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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e51111d142e0a804cd94729a97571175dc5a5a1b | Java | bleujin/aradon | /test/net/ion/radon/core/TestBaseAradon.java | UTF-8 | 797 | 2.109375 | 2 | [] | no_license | package net.ion.radon.core;
import net.ion.framework.util.InstanceCreationException;
import org.apache.commons.configuration.ConfigurationException;
import org.restlet.Request;
import org.restlet.Response;
import org.restlet.data.Method;
public class TestBaseAradon {
protected Aradon testAradon() throws... | true |
2fdae9e7798884a58a4f2b15cc39e1d2b20f4f47 | Java | enesorhan95/JPokemon | /src/org/jpokemon/pokemon/ConditionEffect.java | UTF-8 | 1,971 | 2.875 | 3 | [] | no_license | package org.jpokemon.pokemon;
public enum ConditionEffect {
BURN, PARALYZE, SLEEP, POISON, FREEZE, CONFUSE, WRAP, FLINCH;
public double persistanceChance() {
switch (this) {
case BURN:
case PARALYZE:
case POISON:
return 1;
case SLEEP:
return .333;
case FREEZE:
... | true |
c40014cc17507106b34b85c8f3901ff0c1420f2d | Java | liangyuan109/109 | /src/main/java/com/search/data/MyIndexFiles.java | UTF-8 | 13,379 | 1.726563 | 2 | [] | no_license | package com.search.data;
import org.apache.lucene.analysis.Analyzer;
/**
* 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 t... | true |
af7e4a46f91d4f818030a9c6e960e7539ccd37e2 | Java | Gamalhassan95/Into-to-Java | /src/Classes/GradeBookTest2.java | UTF-8 | 833 | 3.3125 | 3 | [] | no_license | package Classes;
import java.util.Scanner;
public class GradeBookTest2 {
public static void main( String[] args)
{
Scanner input = new Scanner( System.in );
GradeBook2 myGradeBook = new GradeBook2("g", "h" );
System.out.printf("Initial course name is: %s\n\n", myGradeBook.getCourseNa... | true |
b8550549fb94209742a9efa4227bd157dd764a01 | Java | nanoxic/jNano | /src/test/java/uk/oczadly/karl/jnano/util/CurrencyDivisorTest.java | UTF-8 | 3,570 | 2.859375 | 3 | [
"MIT"
] | permissive | package uk.oczadly.karl.jnano.util;
import uk.oczadly.karl.jnano.tests.UtilTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import java.math.BigDecimal;
import java.math.BigInteger;
import static org.junit.Assert.*;
@Category(UtilTests.class)
public class CurrencyDivisorTest {
... | true |
9630869657fa30b20559b439fcd2767ac292308a | Java | bjuncklaus/KohonenMap | /src/br/com/unisul/Window.java | UTF-8 | 705 | 2.625 | 3 | [] | no_license | package br.com.unisul;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
public class Window extends JFrame {
private static final long serialVersionUID = 4930891648824266753L;
private BufferedImage imagem;
public Window() {
sup... | true |
e3bf59e066a451c2c3303fe62aa4026dfa7adcf3 | Java | yanru0213/JigsawPuzzle | /puzzle/src/puzzle/Puzzle.java | UTF-8 | 42,474 | 2.78125 | 3 | [] | no_license | package puzzle;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.Timer;
public class Puzzle extends JFrame {
JPanel menuP;
JPanel gameP;
JPanel gameoverP;
String types[] = {"Number", "Picture"};
String levels[] = {"Easy(3x3)", "Normal(5x5)", "Hard(7x7)"};
int... | true |
c99eb8a3f2d624831614cb1bd3cf02e22f126330 | Java | DesKar/TShirtSort | /test/SortingAlgorithmsTest/TestSortBySizeColorFabric.java | UTF-8 | 4,214 | 2.578125 | 3 | [] | no_license | package SortingAlgorithmsTest;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import tshirtsort.models.Color;
import tshirtsort.models.Fabric;
import tshirtsort.models.Size;
import tshirtsort.models.TShirt;
import tshirtsort.sorting.algorith... | true |
73316a01db2a1feb8d98b01b4d200382c76a5a6a | Java | TomasBasile/Spring | /springDemo/src/main/java/com/example/springDemo/controller/BlogController.java | UTF-8 | 1,915 | 2.234375 | 2 | [] | no_license | package com.example.springDemo.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | true |
f59f2adc86b0f0c94abb0a3f069625ff6ca2e576 | Java | tinyplan/SuperMarket-MS | /src/main/java/com/software/demo/entity/ApiResult.java | UTF-8 | 1,056 | 2.71875 | 3 | [] | no_license | package com.software.demo.entity;
/**
* 统一请求返回体
*
* @param <T> 数据体类型
*/
public class ApiResult<T> {
protected int code;
protected String message;
protected T data;
protected ApiResult(int code, String message, T data) {
this.code = code;
this.message = message;
this.data = ... | true |
e0516ab9d76800d24353ccf6730855d06069168b | Java | a24otorandell/ProjectAutotest | /src/main/java/screen/AT2ACCDI0028/AT2ACCDI0028Locators.java | UTF-8 | 59,248 | 1.921875 | 2 | [] | no_license | package screen.AT2ACCDI0028;
import java.util.HashMap;
import java.util.Map;
/**
* Created by vsolis on 29/11/2016.
*/
public class AT2ACCDI0028Locators {
Map<String, String> elements = new HashMap<>();
public AT2ACCDI0028Locators (String enviroment){
setElements();
}
public Map<String, St... | true |
e9ec54e37949dcf9f009face4b1bc58369ea2115 | Java | junyuo/AlbertGitProject | /src/albert/practice/designpattern/strategy/PdfExporter.java | UTF-8 | 270 | 2.25 | 2 | [] | no_license | package albert.practice.designpattern.strategy;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class PdfExporter implements ExportStrategy {
@Override
public void exportData(String data) {
log.debug("exporting " + data + " into pdf file.");
}
}
| true |
4444c485b17e1844fd1719a9b676eee2c1da72e3 | Java | Noahhhhha/leetcode | /src/problem/array/[56]合并区间.java | UTF-8 | 1,242 | 3.515625 | 4 | [] | no_license | //给出一个区间的集合,请合并所有重叠的区间。
//
// 示例 1:
//
// 输入: [[1,3],[2,6],[8,10],[15,18]]
//输出: [[1,6],[8,10],[15,18]]
//解释: 区间 [1,3] 和 [2,6] 重叠, 将它们合并为 [1,6].
//
//
// 示例 2:
//
// 输入: [[1,4],[4,5]]
//输出: [[1,5]]
//解释: 区间 [1,4] 和 [4,5] 可被视为重叠区间。
// Related Topics 排序 数组
//leetcode submit region begin(Prohibit modification and d... | true |
e0e124733a44eb3f2bb24336b46147c0a4007bc4 | Java | immutables/immutables | /criteria/common/src/org/immutables/criteria/expression/Operators.java | UTF-8 | 1,394 | 2.34375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Immutables Authors and Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
132aaa07e942bbb80d15652cf03f8db45c7098d2 | Java | akuuindra/Digitalent-Project | /Note/Note/app/src/main/java/com/example/note/Registrasi.java | UTF-8 | 3,027 | 2.375 | 2 | [] | no_license | package com.example.note;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.io.File;
import java.io.FileOutputStream;
public class Registrasi extends AppCompatAct... | true |
10cb4b2dd864508dd8be516b3046419ee0babcc7 | Java | dx4321/Calk | /com/company/operator/IOperator.java | UTF-8 | 158 | 2.234375 | 2 | [] | no_license | package com.company.operator;
import java.math.BigInteger;
public interface IOperator {
String symbol();
Integer calculate(int val1, int val2);
}
| true |
65166e043b110fbf0be348283b189db22586554d | Java | ewardb/spring-cloud-demo | /spring-cloud-demo/src/main/java/org/wq/demo/springclouddemo/node_event_driver/v2/event/Subject.java | UTF-8 | 425 | 1.710938 | 2 | [] | no_license | package org.wq.demo.springclouddemo.node_event_driver.v2.event;
import java.util.HashMap;
/**
* @author wangqiang26
* @mail wangqiang26@jd.com
* @Date 19:30 2018/11/12
*/
public interface Subject {
HashMap<String, String> post(String type, String subject, HashMap<String, String> params) ;
// void posth(... | true |
6796cca4ffda9c1f8a925ad2230beda15bff4379 | Java | clementinej/Quizness | /src/model/MultipleChoice.java | UTF-8 | 1,404 | 3.28125 | 3 | [] | no_license | package model;
import java.util.ArrayList;
import java.util.Set;
public class MultipleChoice extends Question {
private String question;
private String[] choices;
private double pointValue;
private Answers answer;
//private String questionType = "MultipleChoice";
//Multiple choice questions support one que... | true |
15c6399b8336e89f0ee9d3a6649ccecaaf2ae239 | Java | Donpommelo/Uplifted.VFFV | /src/dev/zt/UpliftedVFFV/statusEffects/EquipmentStatus/HiveRhythmItemBStatus.java | UTF-8 | 2,324 | 2.375 | 2 | [] | no_license | package dev.zt.UpliftedVFFV.statusEffects.EquipmentStatus;
import dev.zt.UpliftedVFFV.Battle.Action;
import dev.zt.UpliftedVFFV.party.Schmuck;
import dev.zt.UpliftedVFFV.states.BattleState;
import dev.zt.UpliftedVFFV.statusEffects.PrismaticResistance;
import dev.zt.UpliftedVFFV.statusEffects.status;
import dev.zt.Upli... | true |
ac7cea1423c7f9d31f2d90be15fec4011e0f9634 | Java | dasarianudeep/healthcareinternet | /HealthCareInternetPortal/src/main/java/edu/neu/service/MedicationWorkRequestService.java | UTF-8 | 656 | 2.015625 | 2 | [] | no_license | package edu.neu.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import edu.neu.dao.MedicationWorkRequestDAO;
@Service
public class MedicationWorkRequestService extends ImplementMedicationWorkRequest{
@Autowired
private MedicationWorkRequestD... | true |
b5904a2762f7146e72f775ed401df6d9c083d605 | Java | coder921/filterReloaded | /src/test/java/com/spark/filtering/rest/user/UserServiceTest.java | UTF-8 | 6,076 | 2.09375 | 2 | [] | no_license | package com.spark.filtering.rest.user;
import com.spark.filtering.model.City;
import com.spark.filtering.model.Matches;
import com.spark.filtering.model.User;
import com.spark.filtering.rest.geo.GeoService;
import com.spark.filtering.rest.geo.GeoServiceImpl;
import org.junit.Before;
import org.junit.Test;
import org.j... | true |
89c9395701e55d625498add98532cae2c98cf87f | Java | ydswinter/MultiModelLive | /app/src/main/java/com/yds/multimodellive/model/User.java | UTF-8 | 1,042 | 2.5625 | 3 | [] | no_license | package com.yds.multimodellive.model;
public class User {
private String account;
private String name;
private String description;
public User() {
}
public User(String account, String name, String description) {
this.account = account;
this.name = name;
this.descripti... | true |
1c341e58816ea722f9b953ddb961defee7224169 | Java | albertomv/workcraft | /WorkcraftCore/src/org/workcraft/commands/AbstractTimingCommand.java | UTF-8 | 432 | 2.09375 | 2 | [
"MIT"
] | permissive | package org.workcraft.commands;
import org.workcraft.MenuOrdering;
public abstract class AbstractTimingCommand implements ScriptableCommand<Boolean>, MenuOrdering {
@Override
public final String getSection() {
return "!Timing"; // 0 spaces - positions 5th
}
@Override
public int getPriori... | true |
20ca498114247d6655b54da582e794011271c9da | Java | tcrct/duangframework | /duang-core/src/main/java/com/duangframework/core/config/ConfigFactory.java | UTF-8 | 703 | 2.03125 | 2 | [] | no_license | package com.duangframework.core.config;
import com.duangframework.config.apollo.api.SimpleApolloConfig;
import com.duangframework.config.client.ConfigClient;
import com.duangframework.core.interfaces.IConfig;
/**
* @author Created by laotang
* @date createed in 2018/3/7.
*/
public class ConfigFactory {
privat... | true |
476a5d5d2afcdc02409e56e07f963ef6e3e1e1e2 | Java | toramuryo796/curriculum | /JavaStudy/Cat/src/Cat.java | UTF-8 | 409 | 3.9375 | 4 | [] | no_license |
public class Cat {
private String name;
public int age; //カプセル化していない
//コンストラクタ
public Cat(String n, int a) {
this.name = n;
this.age = a;
}
//メソッド
public void showName() {
System.out.println("名前は" + name + "です");
}
public void showAge() {
System.out.println("年齢は" + age + "才です");
}
public void a... | true |
483ccd3d0364dd4f21b38af36448636c7288d770 | Java | bgeng777/flink-ai-extended | /deep-learning-on-flink/flink-ml-framework/src/test/java/com/alibaba/flink/ml/cluster/storage/ZookeeperStorageImplTest.java | UTF-8 | 2,435 | 1.929688 | 2 | [
"Apache-2.0",
"MIT",
"Python-2.0",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
d90e381ec7029cc277c802a07e55a05fd4f6c9f8 | Java | SafwenBensaid/toolsSystem | /src/java/dto/livraison/CreationDossiers.java | UTF-8 | 6,511 | 2.203125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dto.livraison;
import dto.EnvironnementDTO;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import threads.ExecuterCommandeJshOrT24... | true |
06773ab80dc5d2c56f503063c64b64fc2d78805f | Java | impossibl/pgjdbc-ng | /driver/src/main/java/com/impossibl/postgres/utils/guava/ByteStreams.java | UTF-8 | 11,871 | 2.265625 | 2 | [
"BSD-3-Clause"
] | permissive | /**
* Copyright (c) 2013, impossibl.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of cond... | true |
763ebb7962844bd585e76fbe7730b8bf2dd81232 | Java | airmic/quizboot | /src/main/java/ru/otus/hw/quizboot/service/CommunicateService.java | UTF-8 | 277 | 1.523438 | 2 | [] | no_license | package ru.otus.hw.quizboot.service;
public interface CommunicateService {
void putI10nCode(String str);
void putI10nCode(String str, Object[] objs);
void putString(String str);
void putEmptyLines(int num);
String getObject();
void inputLocale();
}
| true |
d05e87a925c4317793430a097ca4dcd86145c6eb | Java | xhom/spring-ioc | /src/main/java/com/visy/spring/test/AddUserTest4.java | UTF-8 | 561 | 2.4375 | 2 | [] | no_license | package com.visy.spring.test;
import com.visy.spring.core.BeanFactory;
import com.visy.spring.model.User;
import com.visy.spring.service.UserService;
/**
* 通过annotation配置实现自动注入属性值-set(1)
*/
public class AddUserTest4 {
public static void main(String[] args) {
//通过Bean工厂获取对象
UserService userServ... | true |
3df8b4e43e12777a09e88d414b3c0bd9528be65b | Java | alexander-pimenov/javalesson | /chapter_write_with_TDD/src/main/java/ru/pimalex1978/PairOgDigits.java | UTF-8 | 485 | 2.859375 | 3 | [] | no_license | package ru.pimalex1978;
/**
* Класс для хранения пар соответствия
* 1 - I
* 5 - V
* 10 - X
* 50 - L
* 100 - C
* 500 - D
* 1000 - M
*/
public class PairOgDigits {
private int arabic;
private char roman;
public PairOgDigits(int arabic, char roman) {
this.arabic = arabic;
this.roman ... | true |
7d323e6590410199dd974b06e0f367afcfc9256a | Java | qingyouzhuying/KEG-EntityLinkingSystem | /src/edu/tsinghua/el/web/action/LinkingAction.java | UTF-8 | 1,954 | 2.15625 | 2 | [] | no_license | package edu.tsinghua.el.web.action;
import java.util.ArrayList;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.json.annotations.JSON;
import com.opensymphony.... | true |
4353ac04db0592ff85f5a74dc888b410e3b675ca | Java | iezhuhx/cloud | /springcloud-zuul/src/main/java/com/kiiik/web/system/mapper/UserMapper.java | UTF-8 | 632 | 1.757813 | 2 | [] | no_license | package com.kiiik.web.system.mapper;
import java.util.List;
import com.github.pagehelper.Page;
import com.kiiik.web.system.po.Menu;
import com.kiiik.web.system.po.User;
import com.kiiik.web.system.vo.UserCompanyInfor;
import com.kiiik.web.system.vo.UserRoleVo;
/**
*作者 : iechenyb<br>
*类描述: 说点啥<br>
*创建... | true |
2a580471837ebe18856468ba39b4274cf4ec4cdd | Java | zzambers/jenkins-scm-koji-plugin | /src/main/java/org/fakekoji/xmlrpc/server/FakeKojiDB.java | UTF-8 | 11,047 | 2.21875 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright 2015 user.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | true |
a26fd80a49112f3b23252931d04521e84acc681e | Java | thangchuot992011/NaiveBayesInJava | /naivebayes/src/naivebayes/TrainingData.java | UTF-8 | 3,259 | 3.15625 | 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 naivebayes;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectO... | true |
5deb9896dcffb81528183ac4ed86c5efe47fdd18 | Java | aps2019project/project-43 | /clientGame/src/Network.java | UTF-8 | 1,534 | 2.96875 | 3 | [] | no_license | import GamePackage.NetworkObject;
import java.io.EOFException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class Network {
private Socket socket;
private ObjectOutputStream output;
... | true |
91f7cbfd41f1345ecf3b6510209340ea99f578f1 | Java | SnehaSree28/ApiTesting | /src/test/java/BasicsTest.java | UTF-8 | 2,245 | 2.4375 | 2 | [] | no_license | import Files.Payload;
import io.restassured.RestAssured;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
import org.testng.annotations.Test;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;
/**
* Created by lovel on 14-Mar-20.
*/
public class Basi... | true |
1e9c8a8af95df4da794676c1686ecaf1f4421018 | Java | 3588/cus1156 | /Week9/SimpleGuiTester.java | UTF-8 | 149 | 1.710938 | 2 | [] | no_license | package Week9;
public class SimpleGuiTester {
public static void main(String[] args) {
SimpleGui1B gui = new SimpleGui1B();
gui.go();
}
}
| true |
6258ec3b3e5f8eb7e65a136a962b6c51a7f62252 | Java | XiaoFeng2016/RxJavaDemo | /app/src/main/java/im/vinci/materialdesign/module/FakeThing.java | UTF-8 | 112 | 1.53125 | 2 | [] | no_license |
package im.vinci.materialdesign.module;
public class FakeThing {
public int id;
public String name;
}
| true |
08a3db0e0ab89273079132e90ff44c747205d4b2 | Java | kalodiodev/control-my-car-spring-web-app | /src/test/java/eu/kalodiodev/controlmycar/converter/ExpenseDtoToExpenseTest.java | UTF-8 | 1,628 | 2.53125 | 3 | [
"MIT"
] | permissive | package eu.kalodiodev.controlmycar.converter;
import eu.kalodiodev.controlmycar.converter.values.ExpenseValues;
import eu.kalodiodev.controlmycar.domains.Expense;
import eu.kalodiodev.controlmycar.web.model.ExpenseDto;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.LocalD... | true |
21a1f74113ecd754032e803d5499d2c193fd5249 | Java | Leargy/openRemoteMDB | /mutliserver/src/uplink_bags/ExecuteBag.java | UTF-8 | 1,381 | 2.59375 | 3 | [] | no_license | package uplink_bags;
import instructions.concrete.ConcreteDecree;
import java.nio.channels.SocketChannel;
/**
* Пакет исполнения, хранящий
* клиентский канал и команду,
* что клиента заказал
* @author Come_1LL_F00 aka Lenar Khannanov
* @author Leargy aka Anton Sushkevich
* @see TunnelBag
*/
public final class... | true |
b8b436b75c9e18788738dbf2d89c3d36bcbd731c | Java | Xingchen1224/Java-Weather-Report | /GraphPanel.java | UTF-8 | 8,388 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | /*********************************/
/* Author: Xingchen Wang */
/* Email: xwang95@sheffield.ac.uk*/
/* I declare this is my own work.*/
/* 02 / 01/ 2015 */
/*********************************/
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.G... | true |
6ad9a7f8a913e9078cf91c51e6b58f4483dee831 | Java | leekihyn/pol | /web2/src/com/test/servlet/BoardServlet.java | UTF-8 | 4,328 | 2.625 | 3 | [] | no_license | package com.test.servlet;
import java.io.IOException;
import java.util.HashMap;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.test.services.BoardService;
public class B... | true |
1504d25125dea1f7a346b992d187e680faf428d4 | Java | Org-Dat/OrgDat | /src/main/java/Filters/TableFilter.java | UTF-8 | 2,193 | 2.359375 | 2 | [] | no_license | package Filters;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;... | true |
7be719d447ef601c0828445ea2de80eb48d2bda1 | Java | endimion/eidas-proxy | /src/main/java/gr/aegean/eidasproxy/utils/EidasUtils.java | UTF-8 | 3,758 | 2.203125 | 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 gr.aegean.eidasproxy.utils;
import eu.eidas.sp.SpAuthenticationResponseData;
import eu.eidas.sp.SpEidasSamlTools;
import java.... | true |
27357ac0d9bdafbdbfe76b1b5fd3bdf58e16528a | Java | vidhis/PracticeQs | /src/com/vidhi/practice/SubClass.java | UTF-8 | 319 | 2.53125 | 3 | [] | no_license | package com.vidhi.practice;
public class SubClass extends InnerClass{
public void accOut(){
initnum();
super.initnum();
}
public void initnum(){
System.out.println("This is subclass initnum");
}
public static void main(String args[]){
SubClass c = new SubClass();
c.accOut();
}
}
| true |
3e4a8488936b4fa247552d7df273e7e9e9e6ba98 | Java | JCL27/AOW | /Age of war/src/ar/edu/itba/game/backend/upgrades/UnitUpgrade.java | UTF-8 | 698 | 2.703125 | 3 | [] | no_license | package ar.edu.itba.game.backend.upgrades;
import ar.edu.itba.game.backend.logic.GameStats;
import ar.edu.itba.game.backend.logic.Player;
import ar.edu.itba.game.backend.units.UnitType;
import ar.edu.itba.game.backend.units.UnitsLevels;
public class UnitUpgrade extends Upgrade {
public UnitUpgrade(Player player) {... | true |
939d99aa5484d0040f79a2257e2ecda0a4967795 | Java | tubadu/Hotels.com | /src/main/java/com/qa/hotels/util/ElementUtil.java | UTF-8 | 2,543 | 2.390625 | 2 | [] | no_license | package com.qa.hotels.util;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.Select;
import com.qa.hotels.base... | true |
407dfd00105fe922c3c2409ad2e3ee19d5667ed7 | Java | zheng-xin/mytank | /src/com/zhengxin/tank/net/msg/MsgType.java | UTF-8 | 221 | 1.570313 | 2 | [] | no_license | package com.zhengxin.tank.net.msg;
/**
* @Auther: zhengxin
* @Date: 2020/6/22 - 06 - 22 - 20:50
* @Description: com.zhengxin.tank.net.tank
* @version: 1.0
*/
public enum MsgType {
TankInit,BulletInit,TankMove
}
| true |
4e541c21e4961283b78e4a23de1e74ef3e87784c | Java | aman09031999/tcs_project_banking_application | /src/main/java/com/tcs/project/sash/api/AccountAPI.java | UTF-8 | 4,478 | 2.28125 | 2 | [] | no_license | package com.tcs.project.sash.api;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org... | true |
e4d00b4859f909df7f9a698fc0278aa484ba08b6 | Java | QKGood/watchWeb | /src/main/java/com/watch/controller/BrandController.java | UTF-8 | 3,108 | 2.40625 | 2 | [] | no_license | package com.watch.controller;
import com.watch.bean.Admin;
import com.watch.bean.Brand;
import com.watch.common.bean.ComboBox4EasyUI;
import com.watch.common.bean.ControllerResult;
import com.watch.common.bean.Pager4EasyUI;
import com.watch.service.BrandService;
import org.apache.ibatis.annotations.Param;
import org.s... | true |
2ff465c07c3685467c0ca316f02ac3cefda7f64c | Java | jmack-87/SeleniumFramework | /src/test/java/com/ibm/ciclan/Enumerations/HeadSpin/HeadSpin.java | UTF-8 | 4,396 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.ibm.ciclan.Enumerations.HeadSpin;
public enum HeadSpin {
// GENERIC
Generic_Text_SauceDemoUrl("Generic.Text.sauceDemoUrl"),
// DESKTOP
// Module: Login
Login_Text_pageTitle("Login.Text.PageTitle"),
Login_Locator_TextField_UserName("Login.Locator.TextField.UserName"),
Login_Locator_T... | true |
db192e1e423dc75d66978291a1295105fbc76524 | Java | DaanRuiter/Bloody-Glory | /game/net/src/systems/RenderSystem.java | UTF-8 | 1,134 | 2.5625 | 3 | [] | no_license | package net.src.systems;
import java.util.ArrayList;
import net.src.bloodyglory.Engine;
import net.src.gameobjects.Entity;
import net.src.particles.Particle;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
public class RenderSystem extends GameSyst... | true |
7d03e79d3c08ef635e8dbbd52390d56903148f30 | Java | sharmilamurali97/JavaOOPS | /ArraY/src/IndexOutOfBondException.java | UTF-8 | 337 | 3.046875 | 3 | [] | no_license |
public class IndexOutOfBondException {
public static void main(String[] args) {
System.out.println("Index Out Of Bond Exception");
int i=0;
int a[]= {15,25};
// for(i=0;i<=a.length;i++)
// {
// System.out.println(a[i]);
// }
//
System.out.println(a[5]);//don't have value at a[5] so it form index out... | true |
bce5baedfdccdb58a8d5ff908d68613c7450fddd | Java | HelloWangXiangDong/goshopping | /rest/src/main/java/com/taotao/rest/controller/ItemController.java | UTF-8 | 1,530 | 1.9375 | 2 | [] | no_license | package com.taotao.rest.controller;
import com.taotao.common.pojo.TaotaoResult;
import com.taotao.pojo.TbItem;
import com.taotao.pojo.TbItemDesc;
import com.taotao.pojo.TbItemParamItem;
import com.taotao.rest.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... | true |
cc2b8f696134fcc84cd8dbdefcb33d42af41efa3 | Java | toczeek/boczek | /app/src/main/java/com/example/toczek/wrumwrum/Utils/providers/Obd/ObdListener.java | UTF-8 | 114 | 1.6875 | 2 | [] | no_license | package com.example.toczek.wrumwrum.Utils.providers.Obd;
public interface ObdListener {
void wasUpdate();
}
| true |
91ec806180fc878ef91b85af3f545144b0c5f741 | Java | lhncbc/skr-semmed | /tags/SemMed_Version_1.0/src/gov/nih/nlm/semmed/rules/RuleParser.java | UTF-8 | 4,227 | 2.421875 | 2 | [] | no_license | package gov.nih.nlm.semmed.rules;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.... | true |
063bad1e19ac58bfd3e571f9f9a71b90e5835183 | Java | Sunilpore/RxJava-Repo | /RxJava/app/src/main/java/com/rxjavaeg1/operators/RangeOperatorActivity.java | UTF-8 | 2,140 | 2.34375 | 2 | [] | no_license | package com.rxjavaeg1.operators;
import android.content.Context;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.rxjavae... | true |
bc305f5b6433cf7a6b6027d368472e42d57b4739 | Java | higorFischer/Seller | /app/src/main/java/com/team/seller/repositories/UserRepository.java | UTF-8 | 392 | 2.28125 | 2 | [] | no_license | package com.team.seller.repositories;
import android.util.Log;
import com.google.firebase.database.DataSnapshot;
import com.team.seller.models.User;
public class UserRepository extends BaseRepository<User>{
public UserRepository() {
super("User");
}
@Override
public User ReadSnapShots(DataSn... | true |
c17a187a0a05c20272216275fb798d8e4d6eb931 | Java | zy1234567/VGSales | /appdomain/src/main/java/com/ztstech/appdomain/user_case/DeleteAnwser.java | UTF-8 | 754 | 2.171875 | 2 | [] | no_license | package com.ztstech.appdomain.user_case;
import com.ztstech.appdomain.repository.UserRepository;
import com.ztstech.appdomain.utils.RetrofitUtils;
import com.ztstech.vgmate.data.api.QuestionApi;
import com.ztstech.vgmate.data.beans.BaseRespBean;
import io.reactivex.Observable;
/**
* Created by smm on 2017/11/23.
*... | true |
9b963db8ee5ebc6a45c48dee36fd158ae0b2f27f | Java | herskovi/AnagramAppliedMaterial | /src/main/java/com/amat/interfaces/IAnagram.java | UTF-8 | 169 | 1.734375 | 2 | [] | no_license | package com.amat.interfaces;
import com.amat.consts.Consts;
public interface IAnagram
{
public String isWordExistsInLexicographicalDictionary(String fileName);
}
| true |
77737e68290cd988e317f79d99842b3aadd36882 | Java | ioannidis/knowledge-base-information-system | /vks-authentication-service/src/main/java/eu/ioannidis/vks/authenticationservice/models/entities/PasswordResetEntity.java | UTF-8 | 1,287 | 2.328125 | 2 | [] | no_license | package eu.ioannidis.vks.authenticationservice.models.entities;
import eu.ioannidis.vks.authenticationservice.models.entities.embeddablekeys.PasswordResetKey;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "password_reset")
public class PasswordResetEntity {
@EmbeddedId
private Pas... | true |
356d485ca57561a5cddd0ddae59a06ee5567de2e | Java | amanyslamaa/code | /java/ThinkInJava/Operators/src/exp/E03_Aliasing2.java | UTF-8 | 523 | 3.140625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package exp;
import java.util.*;
import static net.mindview.util.Print.*;
/**
*
* @author Administrator
*/
public class E03_Aliasing2 {
static void fun(Integral a)
{
a.f = 2222.0f;
}... | true |
5b83ff68c0ee6d46be79c08592c6d67bf63e2da6 | Java | Tushar515/TDD-Practice | /src/test/java/com/example/demo/utils/DemoApplicationTests.java | UTF-8 | 2,847 | 2.921875 | 3 | [] | no_license | package com.example.demo.utils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.junit.jupiter.api.Assertions.*;
import static org.assertj.core.api.Assertions.assertThat;
import ... | true |
c39ec9b1c49374c89dd4ceefc5b02b8161b2ba26 | Java | thiagomuller/make-magic | /src/main/java/com/thiagomuller/hpapi/exception/NoCharacterFoundException.java | UTF-8 | 186 | 2.125 | 2 | [] | no_license | package com.thiagomuller.hpapi.exception;
public class NoCharacterFoundException extends Exception{
public NoCharacterFoundException(String errorMessage) {
super(errorMessage);
}
}
| true |
76fa86df865aeffbebfeb63f24f7a84daf1a59b3 | Java | sebin-vincent/shopmate | /inventory/src/main/java/com/l7/shopmate/inventory/service/impl/IndexServiceImpl.java | UTF-8 | 1,127 | 2.328125 | 2 | [] | no_license | package com.l7.shopmate.inventory.service.impl;
import com.l7.shopmate.inventory.entity.Item;
import com.l7.shopmate.inventory.model.SkuName;
import com.l7.shopmate.inventory.repository.SkuNameIndexRepository;
import com.l7.shopmate.inventory.repository.SkuNameSearchRepository;
import com.l7.shopmate.inventory.service... | true |
0eb1bd83ef565655758b13a6002d575285ca2b08 | Java | nieland22/BirthdayCake | /app/src/main/java/cs301/birthdaycake/CakeController.java | UTF-8 | 1,281 | 2.359375 | 2 | [] | no_license | package cs301.birthdaycake;
import android.util.Log;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.SeekBar;
public class CakeController implements View.OnClickListener, CompoundButton.OnCheckedChangeListener, SeekBar.OnSeekBarChangeListener{
private CakeView myCakeView;
... | true |
2d82c2a1c1318e3e19db11ab4c9815668cfb912a | Java | mlires/IWVG | /doo/src/main/java/designPatterns/exercises/n2_tickets/v1/operations/TicketOperation.java | UTF-8 | 1,135 | 2.65625 | 3 | [] | no_license | package designPatterns.exercises.n2_tickets.v1.operations;
import designPatterns.exercises.n2_tickets.v1.ticket.CancellationLine;
import designPatterns.exercises.n2_tickets.v1.ticket.Footer;
import designPatterns.exercises.n2_tickets.v1.ticket.Header;
import designPatterns.exercises.n2_tickets.v1.ticket.Repetitio... | true |
431f95e57745589c5d14fe4cec915d1e54777587 | Java | wonwoo/spring5-junit5 | /src/test/java/me/wonwoo/spring/SpringTimingExtension.java | UTF-8 | 414 | 1.664063 | 2 | [] | no_license | package me.wonwoo.spring;
import java.lang.annotation.*;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import me.wonwoo.mockito.TimingExtension;
@ExtendWith({SpringExtension.class, TimingExtension.class})
@Documented
@Inherited
@Retention(R... | true |
721320a1ef4b72e80df75b745a1a2eca60aed998 | Java | mezeinikolett/Prog2H-zik | /4.f/src/Ital.java | UTF-8 | 2,063 | 2.796875 | 3 | [] | no_license |
import java.util.Objects;
import java.util.Date;
/*
* 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.
*/
/**
*
* @author Niki
*/
import java.util.Date;
import java.util.O... | true |
d8c568340648e1c8e5c7cd042b04108104ba3a0d | Java | google/guava | /android/guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java | UTF-8 | 1,606 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
f607f3422e0bce0362e873ef7143306ad70dc364 | Java | chaxin/CHTAndroid3x | /app/src/main/java/com/damenghai/chahuitong/model/bean/Area.java | UTF-8 | 502 | 1.929688 | 2 | [] | no_license | package com.damenghai.chahuitong.model.bean;
/**
* Copyright (c) 2015. LiaoPeiKun Inc. All rights reserved.
*/
public class Area {
private String area_id;
private String area_name;
public String getArea_name() {
return area_name;
}
public void setArea_name(String area_name) {
th... | true |
4278fc3280eba5c6d373dce02272097ed2bf50ec | Java | jonnywei/encrypt-lang | /src/test/java/JsonPTVistorTest.java | UTF-8 | 1,117 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | import com.encryptlang.json.JsonLexer;
import com.encryptlang.json.JsonPTVistor;
import com.encryptlang.json.ParseTreeJsonParser;
import org.junit.Test;
public class JsonPTVistorTest {
@Test
public void testJsonArray(){
String input = "['aaa',444,'ddd']";
JsonLexer jsonLexer = new JsonLexer(... | true |
dae24379bdd85c4c67f1610caa02f7e639ab15a5 | Java | dieterjava/oddjob | /src/java/org/oddjob/logging/log4j/ArchiveAppender.java | UTF-8 | 1,545 | 2.5625 | 3 | [
"BSD-2-Clause"
] | permissive | package org.oddjob.logging.log4j;
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.Layout;
import org.apache.log4j.spi.LoggingEvent;
import org.oddjob.logging.LoggingConstants;
import org.oddjob.logging.cache.LogArchiverCache;
/**
* A Log4j appender which logs to LogArchiver.
*/
public c... | true |
c5d3cae9df66c5eaa30bed5cc31b81aff9b7c7e7 | Java | tarsissantiago/projeto-interdiciplinar | /calculadora/src/br/faccamp/domain/Menos.java | UTF-8 | 336 | 2.375 | 2 | [] | no_license | package br.faccamp.domain;
public class Menos extends Operacao{
public Menos(String primeiro) {
super(primeiro);
// TODO Auto-generated constructor stub
}
@Override
public String calcula(String conteudo) {
double segundo = new Double(conteudo);
guardarValorFixo(segundo);
return ((primeiro-getFixo... | true |
b4cdfc24b925f70be2eb76c0ec5b28cbf42df7d1 | Java | sahunikash/Copy2 | /Practice/src/ArrayPractice/EqualityOfTwoArray.java | UTF-8 | 1,218 | 3 | 3 | [] | no_license | package ArrayPractice;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;
import org.omg.Messaging.SyncScopeHelper;
public class EqualityOfTwoArray
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("num of element for 1st array is"... | true |
8a9171cea6c6c769e72f3d3ab05dc9469b8a6a54 | Java | rasebe/MyFirstSeleniumProject | /src/test/java/CompareTest.java | UTF-8 | 1,979 | 2.140625 | 2 | [] | no_license | import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class CompareTest {
private WebDriver driver;
@Be... | true |
e3ff99f22de985f167c615f98f631fed35df2b69 | Java | japper96/mybatis_demo | /src/main/java/com/test/mybatis/dao/UserMapper.java | UTF-8 | 2,236 | 2.390625 | 2 | [] | no_license | package com.test.mybatis.dao;
import com.test.mybatis.pojo.Order;
import com.test.mybatis.pojo.OrderUser;
import com.test.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UserMapper {
/**
* 登录(直接使用注解指定传入参数名称)
* @param userName
* @param password... | true |
a30e433feaf282305cd70f236b8b8b9f6d67c64e | Java | shanzhaikabi/DataBase | /src/main/java/com/ssh/entity/Shopdiscount.java | UTF-8 | 1,381 | 2.390625 | 2 | [] | no_license | package com.ssh.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;
@Entity
public class Shopdiscount {
private int id;
private int discountType;
private String shopId;
@Id
@Column(name = ... | true |
cc0c13b0eb1f5d9914f3b9ddd53a85bf9445cb84 | Java | BBK-PiJ-2015-00/Exercises | /Game of Life/GameOfLife.java | UTF-8 | 215 | 2.796875 | 3 | [] | no_license |
public class GameOfLife {
public State getNextState (State current, int neighbourCount) {
if(neighbourCount==2)
return current;
if(neighbourCount==3)
return State.LIVE;
return State.DEAD;
}
} | true |
174f671f0f24a873130d240882e448d4069e120f | Java | AndriiStulii/TrustYourSoulGame | /app/src/main/java/com/test/andrewstulii/firstapp/top/PlayersDao.java | UTF-8 | 811 | 2.265625 | 2 | [] | no_license | package com.test.andrewstulii.firstapp.top;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by andrewstulii.
*/
public class PlayersDao extends SQLiteOpenHelper {
private static final String DATABASE_NAME = "TrustYour... | true |
c98f75bb0ca70ccb982b6aa997bc30c0cf704628 | Java | perlovdinger/gloria1 | /Gloria/ProcureMaterialDomain/src/main/java/com/volvo/gloria/procurematerial/d/entities/MaterialHeader.java | UTF-8 | 6,109 | 1.828125 | 2 | [] | no_license | package com.volvo.gloria.procurematerial.d.entities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import ja... | true |
263fd3c91bcad77b93da2517598868a261e5515d | Java | igniterealtime/Smack | /smack-extensions/src/main/java/org/jivesoftware/smackx/xdata/provider/DataFormProvider.java | UTF-8 | 19,513 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* Copyright 2003-2007 Jive Software 2020-2022 Florian Schmaus.
*
* 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 re... | true |
559f65bcf362af36fc42b1ce68fade7efc0a7fa3 | Java | Salim-Alsaeh/HorizonApp | /app/src/main/java/com/androguro/usb/horizon/app/ValuePairs.java | UTF-8 | 1,193 | 2.125 | 2 | [] | no_license | package com.androguro.usb.horizon.app;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Created by mohamed on 1/7/18.
*/
public class ValuePairs {
public static String getUserLAT(Context context) {
SharedPreferences pref = P... | true |
b9aee9ccb8757b3104ebc82112657224d54612b6 | Java | ctec105/Proyecto_JPA-Struts | /src/proyecto/struts/dao/jpa/JPAUtilDAO.java | UTF-8 | 4,769 | 2.171875 | 2 | [] | no_license | package proyecto.struts.dao.jpa;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import proyecto.struts.bean.Area;
import proyecto.struts.bean.ClaseEquipo;
import proyecto.struts.bean.Especialidad;
import proyecto.struts.bean.Estado;
import proyecto.struts.bean.Marca;
i... | true |
a2926938b6a814e914a3090888a760f5e296c5e1 | Java | wtuiawitfk/javaweb | /src/smis/servlet/updateStudentServlet.java | UTF-8 | 1,122 | 2.515625 | 3 | [] | no_license | package smis.servlet;
import smis.dao.IStudentDao;
import smis.dao.impl.StudentDaoImpl;
import smis.domain.Student;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | true |
e51b092b4827854669ae3c7a8c13b8e42fafbbd7 | Java | LluisAguilar/GCTextToSpeech | /app/src/main/java/com/luis/test/gcspeech/RequestMethods.java | UTF-8 | 7,416 | 2.15625 | 2 | [] | no_license | package com.luis.test.gcspeech;
import android.content.Context;
import android.media.MediaPlayer;
import android.util.Log;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.luis.test.gcspeech.gcp.AudioConfig;
import c... | true |
a27603c71022e98b57c0e68bae39b06b8d2f25dc | Java | cash2one/fmps | /trunk/fmps-web/src/main/java/cn/com/fubon/fo/repairplatform/entity/WeixinRepairPlatform.java | UTF-8 | 1,786 | 1.828125 | 2 | [] | no_license | package cn.com.fubon.fo.repairplatform.entity;
import java.sql.Timestamp;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.jeecgframework.core.common.entity.IdEntity;
@Entity
@Table(name = "weixin_repair_platform")
public class WeixinRepairPlatform extends IdEntity {
private String prov... | true |
066b117e1308793ec5e9d02d9fd5806e932cd2e9 | Java | dheeraj9198/DVideoConverter | /src/main/java/VideoConverter/App.java | UTF-8 | 1,476 | 2.3125 | 2 | [] | no_license | //mvn com.zenjava:javafx-maven-plugin:2.0:fix-classpath
package VideoConverter;
import javafx.application.Application;
import javafx.stage.Stage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import np.dheeraj.sachan.transcoder.*;
public class App extends Application {
private static final Logger logge... | true |
992280b18a6a67db155f5328821447566e02ea9d | Java | eabyshev/base | /management/server/core/strategy-manager/strategy-manager-impl/src/main/java/io/subutai/core/strategy/impl/StrategyManagerImpl.java | UTF-8 | 2,684 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package io.subutai.core.strategy.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Strings;
import io.subutai.core.strategy.api.ContainerPlacementStrategy;... | true |
6677e7fb761793e6ae6e36e0a5fd0f63210568a1 | Java | FRCTeamRobohawk3373/FRC_3373_2016 | /3373Robohawks2016/src/org/usfirst/frc/team3373/robot/HawkDrive.java | UTF-8 | 6,156 | 2.703125 | 3 | [] | no_license | package org.usfirst.frc.team3373.robot;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.SPI;
import edu.wpi.first.wpilibj.smartdashboard.*;
public class HawkDrive {
AHRS ahrs = new AHRS(SPI.Port.kMXP);
static boolean motorDone1 = false; //unused currently for goToDistance
static boolean motor... | true |
00a2bc27da4745669decfcf23c7d964a319852a7 | Java | idanci/fcm_android_test | /app/src/main/java/com/idanci/test/MyService.java | UTF-8 | 415 | 1.984375 | 2 | [] | no_license | package com.idanci.test;
import android.util.Log;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
public class MyService extends FirebaseMessagingService {
public MyService() {
}
@Override
public void onMessageReceived(RemoteMessage ... | true |
78ffc02ebf182ad84c46bf0926124f676c2fccbb | Java | Hovspian/Calendar | /calendar/src/CalendarModel.java | UTF-8 | 7,364 | 3.53125 | 4 | [] | no_license | import java.io.*;
import java.util.*;
import javax.swing.event.*;
/**
* Creates a calendar that holds scheduled events.
* Model aspect of MVC.
*/
public class CalendarModel
{
private DailyEvent selectedDay;
private TreeMap<GregorianCalendar, TreeSet<Event>> events;
private ArrayList<ChangeListener... | true |
88b43d82968382532ef2bfbe6b97b90a83b51aa1 | Java | minsik940908/SimpleJava | /Chapter04/src/chap04/ex04/overload/Main.java | UTF-8 | 791 | 3.5 | 4 | [] | no_license | package chap04.ex04.overload;
public class Main {
public static void main(String[] args) {
//overload는 사용자 입장으로 봐야 한다.
//overload가 없으면 메서드의 인자값의 갯수나 타입만 변해도 새로운 네이밍이 필요해 진다.
//오버로드는 같은 이름의 함수를 여러개 만들 수 있다.(매개변수의 갯수와 데이터타입은 달라야 한다.)
//자바는 쓰는 사람 입장에서 쓰기좋게
//모델, 가격, 색상
NoteBook nb1 = new NoteBook("gram",... | true |
ca2d5f5ed77bdd063b9f7dd065e2741895ea124a | Java | adharmad/java-examples | /src/main/java/com/example/javaexamples/reflection/TryClsLoad.java | UTF-8 | 1,141 | 3.4375 | 3 | [] | no_license | package com.example.javaexamples.reflection;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
public class TryClsLoad {
public static void main(String[] args) {
try {
String var1 = "true1";
Object objCons = null;
Class targetCls = Class.forName("lambda.clsload.TestClass");
Syste... | true |
605e58f4a44b164086ef6581fa2b29d06f6f76d4 | Java | lins4tech/sysautos-api | /src/main/java/com/lins4tech/sysautos/api/entities/Loja.java | UTF-8 | 2,543 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.lins4tech.sysautos.api.entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import ... | true |
64ff6efe6bce7fb3b805da0c07bdd5520b126934 | Java | Pratik1007/Homework | /homework_21_09_2019_pratik/src/GenerateRandomInteger.java | UTF-8 | 467 | 3.625 | 4 | [] | no_license | public class GenerateRandomInteger {
// 24. Write a Java program to generate random integers in a specific range.
public static void main(String[] args) {
generate();
}
public static void generate(){
System.out.println("Genrating Random Integer Between 1 to 50: \n ");
double randomdouble = M... | true |
696c0d57e35faf084b4cc73f371a5d5e7b633687 | Java | Vladislav-Kisliy/justforfun | /reactor/src/test/java/vladislav/kisliy/jff/reactor/basic/FlatMapTest.java | UTF-8 | 3,075 | 2.8125 | 3 | [] | no_license | package vladislav.kisliy.jff.reactor.basic;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import java.time.Duration;
import java.util.Set;
import java.util... | true |
70433e2a5df7be2d25379737f1a2c73a54b17825 | Java | meantg/Java_ToDoNote | /DT To Do/src/DTO/TinhTrangDTO.java | UTF-8 | 531 | 2.953125 | 3 | [] | no_license | package DTO;
public class TinhTrangDTO implements Comparable<TinhTrangDTO> {
private Integer stateID;
private String stateName;
public TinhTrangDTO(Integer stateID, String stateName) {
this.stateID = stateID;
this.stateName = stateName;
}
public Integer getStateID() {
retu... | true |
d2c1560d5b2557ee5f239e163ee64843b32e712e | Java | EsionMa/SFT | /src/main/java/com/wangzhixuan/commons/result/RespResult.java | UTF-8 | 1,850 | 2.53125 | 3 | [] | no_license | package com.wangzhixuan.commons.result;
public class RespResult<T> {
private long st;
private long et;
private long taking;
private String code;
private String msg;
private T data;
public RespResult(){
this.st=System.currentTimeMillis();
}
public void getSuccess(T data,String msg){
this.data=data;
this.... | true |