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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
92f9bbf3f2dfb2fec8d4d2dde1b94a3b3854f48e | Java | warith313/multi_downloader | /android/src/main/java/com/iraqtechno/multidownloader/TaskDbHelper.java | UTF-8 | 2,786 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.iraqtechno.multidownloader;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.iraqtechno.multidownloader.TaskContract.TaskEntry;
public class TaskDbHelper extends SQLiteOpenHelper {
public static final int DATABA... | true |
dc3b10bef979372f3bced1fd40b94a86691463c6 | Java | rmeijer61/titanbank | /src/java/edu/spcollege/titanbank/bll/UserLoginStatus.java | UTF-8 | 2,259 | 2.765625 | 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 edu.spcollege.titanbank.bll;
import java.util.ArrayList;
/**
*
* @author rmeijer
*/
public class UserLoginStatus {
pr... | true |
3fb84ae0b1daf29027a9fe2def085f3a05a7b4d2 | Java | Akshay-Bangde/GYM-Managment- | /app/src/main/java/com/example/smile/adapters/Enquiry_Adapter.java | UTF-8 | 6,416 | 1.945313 | 2 | [] | no_license | package com.example.smile.adapters;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.AsyncTask;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import ... | true |
cd4533878265a8cd0f2ff0d8bf8c2fe2bc43c363 | Java | geniussportsgroup/SoyAnnotations | /src/test/java/example/renderer/SettingsRenderer.java | UTF-8 | 836 | 2.546875 | 3 | [
"MIT"
] | permissive | package example.renderer;
import com.geniussports.soy.context.RendererFactoryContext;
import com.geniussports.soy.factories.rendering.Renderer;
import com.geniussports.soy.factories.rendering.RendererFactoryContextAware;
import example.models.Setting;
import javax.annotation.Nullable;
public class SettingsRenderer i... | true |
237ade3b456d3abf6ff5a2c6f4d64d229e7b8a81 | Java | jbunkley18/gsu-java | /testListner.java | UTF-8 | 797 | 3.34375 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class buttonWithListner extends JFrame implements ActionListener{
// constructor
buttonWithListner(String title){
super (title);
setLayout (new FlowLayout());
setBounds (50,50, 200, 200);
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
JLa... | true |
a7c8b41b278bb6a0d8eeb18e2d4529b59a3249fc | Java | Cpp-Ai-Project/AndroidProject | /app/src/main/java/com/example/maximum/cppai/Frontend/MainActivity.java | UTF-8 | 5,217 | 2.03125 | 2 | [] | no_license | package com.example.maximum.cppai.Frontend;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.suppor... | true |
884c0e62651472bd036d61da8414667921548155 | Java | PVoLan/TestVideoCam | /WS/TestVideoCam/src/ru/pvolan/event/CustomEventListener.java | UTF-8 | 91 | 1.890625 | 2 | [] | no_license | package ru.pvolan.event;
public interface CustomEventListener {
public void onEvent();
}
| true |
e2c3f5f21ad535e4e11403dc683aafb8f5b810b9 | Java | laurenuclark/cmpt220Urena-Clark | /2/Ex3_4.java | UTF-8 | 1,504 | 3.640625 | 4 | [] | no_license | /**
* file: Ex1_3
* author: Lauren Urena-Clark
* course: CMPT 220
* assignment: exercise 1.3
* due date: January, 31, 2017
*
*This file contians the declaration of the
* Ex1_3 abstract data type.
*/
/**
*exercise 1_3
*This class converts a Celsius value to Farenheit.
* This file will print the... | true |
b411d0d217938a3757042bce4143a34b29326564 | Java | martinezmatias/GenPat-data-C3 | /junit_cluster/3171/src_19.java | UTF-8 | 1,529 | 2.328125 | 2 | [] | no_license | package org.junit.experimental.theories.test.runner;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import java.util.List;
import org.hamcrest.Matcher;
import org.junit.Test;
import org.junit.experimental.theories.matchers.api.Each;
import org.junit.experimental.theories.me... | true |
4862def04bd1401869aca404da5eec5f0cdf4453 | Java | a18575759226/parent | /shop-service/src/main/java/com/xmg/shop/mapper/ProductSkuMapper.java | UTF-8 | 630 | 2.09375 | 2 | [] | no_license | package com.xmg.shop.mapper;
import com.xmg.shop.domain.ProductSku;
import java.util.List;
public interface ProductSkuMapper {
int deleteByPrimaryKey(Long id);
int insert(ProductSku record);
ProductSku selectByPrimaryKey(Long id);
List<ProductSku> selectAll();
int updateByPrimaryKey(ProductSku... | true |
5b2169f0f9fbf4e07a859f59dc29797ceb86541b | Java | i1rr/job4j_design | /src/main/java/ru/job4j/design/menu/MenuManager.java | UTF-8 | 1,549 | 3.15625 | 3 | [] | no_license | package ru.job4j.design.menu;
import java.util.ArrayList;
import java.util.List;
public abstract class MenuManager {
private List<MenuManager> subMenuList = new ArrayList<>();
private Output out;
public MenuManager(Output out) {
this.out = out;
}
protected abstract String getName();
... | true |
e2b1ebd263394927b55f768d44c7d01767d80916 | Java | paul-ippolito1954/cmpt220ippolito | /Labs/Lab1/Average_calc.java | UTF-8 | 1,007 | 3.765625 | 4 | [] | no_license | /* Paul Ippolito
CMPT220
1/30/17
This program gets input from the user of their
averages for each of the four rubrics from the
CMPT220 course and then calculates the final
average. */
import java.util.Scanner;
public class Average_calc {
public static void main(String[] args) {
Scanner input = new Scanner(Sys... | true |
6b6f30924868f383cdb457e0bc4dfe9503a89c3b | Java | egordoga/words | /app/src/main/java/com/e/words/view/adapter/ArticleFragmentPagerAdapter.java | UTF-8 | 1,448 | 2.390625 | 2 | [] | no_license | package com.e.words.view.adapter;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import com.e.words.entity.dto.WordObj;
import com.e.words.view.fragment.ArticleFragment;
import com.e.words.view.fragment.FullWordFragment;
import java... | true |
b34fb5a41b6296a7cabfb54b3042ca6112572b08 | Java | suifengJC614/cloudwiz-snmp | /snmp-web/src/main/java/cn/cloudwiz/dalian/snmp/controller/MonitorDeviceController.java | UTF-8 | 4,574 | 2.109375 | 2 | [] | no_license | package cn.cloudwiz.dalian.snmp.controller;
import cn.cloudwiz.dalian.commons.utils.JsonUtils;
import cn.cloudwiz.dalian.snmp.api.device.*;
import cn.cloudwiz.dalian.snmp.utils.ProjectionUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitP... | true |
46b94651a6bf24c1c3b3c86ee430f7000554b498 | Java | freedom541/cclTest | /ccl-jersey-jetty-web/src/main/java/com/ccl/jersey/repository/SimpleUserRepository.java | UTF-8 | 1,588 | 2.65625 | 3 | [] | no_license | package com.ccl.jersey.repository;
import com.ccl.jersey.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by ccl on 17/8/15.
*/
@Repository
public clas... | true |
4373382f98561797fe51238990e02e2b0abf9f90 | Java | mofangwan23/LimsOA | /app/src/main/java/cn/flyrise/feep/main/NewMainMessageContract.java | UTF-8 | 928 | 1.929688 | 2 | [] | no_license | package cn.flyrise.feep.main;
import com.hyphenate.chat.EMConversation;
import java.util.List;
import cn.flyrise.feep.main.message.MessageVO;
/**
* @author ZYP
* @since 2017-04-01 14:04
*/
public interface NewMainMessageContract {
interface IView {
String ALL_MESSAGE_READ = "A";//标记全部消息为已读
void onMessage... | true |
0748f54ef4cd76784b576a6877d0fee518061773 | Java | ajinkyagawade/WebPrototype | /WebPrototype/src/main/java/prototype/beans/ConfigMongoDB.java | UTF-8 | 1,156 | 2.265625 | 2 | [] | no_license |
package prototype.beans;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientU... | true |
551368b491c9f0ad08a1f9835c98b0cbc62ca75f | Java | hgcummings/jarspec | /src/test/java/io/hgc/jarspec/RulesSpec.java | UTF-8 | 1,436 | 2.21875 | 2 | [
"MIT"
] | permissive | package io.hgc.jarspec;
import io.hgc.jarspec.fixtures.rules.ErrorInRuleSpec;
import io.hgc.jarspec.fixtures.rules.ExpensiveDependencySpec;
import io.hgc.jarspec.fixtures.rules.SharedStateSpec;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.RunWith;
import static org.junit.... | true |
75daa69f6589df4d748b1c2ca70a5e1565d3a634 | Java | smitha94/ExampleJavacode | /src/NumberDisplay.java | UTF-8 | 773 | 3.78125 | 4 | [
"MIT"
] | permissive | public class NumberDisplay {
private int limit;
private int value;
public NumberDisplay(int rollOverLimit)
{
limit = rollOverLimit;
value = 0;
}
public void setValue(int replacementValue)
{
if((replacementValue >= 0) && (replacementValu... | true |
215d530257319db359b0bfac3c25259c127fced2 | Java | song121382/defence-nevermore | /nevermore-auth/src/main/java/com/defence/nevermore/auth/config/MybatisConfig.java | UTF-8 | 322 | 1.671875 | 2 | [] | no_license | package com.defence.nevermore.auth.config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
/**
* @Description: java类作用描述
* @Author:
*/
@MapperScan(basePackages = "com.defence.nevermore.auth.mapper")
@Configuration
public class MybatisConfig {
}
| true |
373268098116e247f948ca61e6b5eb191c62e506 | Java | tient3481/duan2 | /src/main/java/com/fpt/hr_management/daoImpl/leave/LeaveEmployeeUpdate.java | UTF-8 | 1,209 | 2.46875 | 2 | [] | no_license | package com.fpt.hr_management.daoImpl.leave;
import java.sql.Connection;
import java.sql.PreparedStatement;
import com.fpt.hr_management.connection.DbConnection;
import com.fpt.hr_management.listener.request.leave.LeaveUpdateRequest;
public class LeaveEmployeeUpdate {
public void update(LeaveUpdateRequest request)... | true |
14e71ed00d540f9b7b93ad08a4667d32043348aa | Java | about3751/springmvc | /src/main/java/com/lc/demo/test/test_interface/Java8Test.java | UTF-8 | 204 | 1.507813 | 2 | [] | no_license | package com.lc.demo.test.test_interface;
import com.lc.demo.entities.Book;
/**
* Created by leich on 2017/3/30.
*/
public class Java8Test implements TestJava8{
public Java8Test()
{
}
}
| true |
7e7c718194d43354271e25ec82971c9f47248d8a | Java | yx7ing/INFS3634-Assignment-Group-7 | /INFS3634AssignmentGroup7/app/src/main/java/com/example/yxting/infs3634assignmentgroup7/Lesson3_7.java | UTF-8 | 8,724 | 1.96875 | 2 | [] | no_license | package com.example.yxting.infs3634assignmentgroup7;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Build;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;... | true |
cd637c02b56f808c3981ad37842a10d40cdf9597 | Java | Luther0812/JAVA_Study | /Test_02/Chapter_Test_019.java | UTF-8 | 424 | 3 | 3 | [] | no_license | /**Language:Java Standard Edition
* Author:Luther
*/
package Test_02;
/**
*
*
*/
import java.util.Scanner;
public class Chapter_Test_019 {
public static void main(String[] args){
double random = System.currentTimeMillis();
double remainFirst = random / 250000000;
double remainSecond = remainFirst / 1000;
... | true |
db7ca095f7e930b6be997ae0f2bc7c6c9ff2a959 | Java | 632215/yuqu | /app/src/main/java/com/a32/yuqu/fragment/FriendFragment.java | UTF-8 | 10,883 | 1.75 | 2 | [] | no_license | package com.a32.yuqu.fragment;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import a... | true |
24729e5f8ee6a76b22eaa1df19bb42b5d92f2742 | Java | cedooo/web | /src/main/java/tk/cedoo/manage/AddNodeAction.java | UTF-8 | 4,585 | 2.234375 | 2 | [] | no_license | package tk.cedoo.manage;
import org.apache.ibatis.session.SqlSession;
import tk.cedoo.common.DoActionResult;
import tk.cedoo.db.DBManager;
import tk.cedoo.po.Link;
import tk.cedoo.po.LinkStyle;
import tk.cedoo.po.Node;
import tk.cedoo.po.NodeStyle;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphon... | true |
6eb0499b7071280d985671b763a81b591f1963fa | Java | lchowdhury/IntelljiProjects | /PracticeSwap.java | UTF-8 | 604 | 3.453125 | 3 | [] | no_license | public class PracticeSwap {
public static void main(String[] args) {
String x= "Framework";
String y= "Automation";
System.out.println("before swapping");
System.out.println("value of x: "+x);
System.out.println("value of y; "+y);
x = x+y;// FrameworkAutomat... | true |
ffc6daac33d1d97688f499d971b86125a187fb2f | Java | minthubk/Telematics | /TelematicsTest/src/com/hsuyucheng/telematics/playing/test/SubtitleTest.java | UTF-8 | 1,294 | 2.59375 | 3 | [] | no_license | package com.hsuyucheng.telematics.playing.test;
import com.hsuyucheng.telematics.playing.Subtitle;
import junit.framework.TestCase;
public class SubtitleTest extends TestCase {
private Subtitle mSubtitle;
private String mSubPath = "/mnt/sdcard/TelematicsTest/test.sub";
protected void setUp() throws Exce... | true |
724c800514dc86e343783d6a6340e57fa6ca84bc | Java | Y-Zheng2011/LeetCode | /src/LCWeek175/LCWeek175_2.java | UTF-8 | 675 | 3.21875 | 3 | [] | no_license | public class LCWeek175_2 {
public int minSteps(String s, String t) {
int[] sets = build(s);
int[] sett = build(t);
int ret = 0;
for (int i = 0; i < 26; i++) {
if (sets[i] > sett[i]) {
ret += sets[i] - sett[i];
}
}
return ret;
... | true |
cfc5b9f551492e69bd5fe19ee418232d3e9ee950 | Java | Ritesh1325/Selenium_HybridFramework_Assignment | /src/test/java/Selenium_Practice/Assignment2.java | UTF-8 | 2,113 | 2.484375 | 2 | [] | no_license | package Selenium_Practice;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selen... | true |
b62931a151bd0fa12518c8aeeb5f9c09883f8f16 | Java | BPI-SINOVOIP/BPI-A64-Android8 | /android/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/WifiStressTest.java | UTF-8 | 15,956 | 1.6875 | 2 | [] | no_license | /*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 app... | true |
357e846f98fb7035c0f3375758f4c98a5d6c49bd | Java | liuyong520/msgsrv-extend | /src/test/java/com/nnk/msgsrv/AnnotationMain.java | UTF-8 | 749 | 1.875 | 2 | [] | no_license | package com.nnk.msgsrv;
import nnk.msgsrv.server.MsgSrvLongConnector;
import org.apache.log4j.PropertyConfigurator;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class AnnotationMain {
public static void main(String[] args) {
AnnotationConfigApplicationCo... | true |
76cfcd09c259bba8f3e3d2486726f67c7cb69cf0 | Java | Samat220/Gorilla-Game | /Game.java | UTF-8 | 908 | 3.5 | 4 | [] | no_license | import java.util.ArrayList;
//The game class describes how game is created and run
public class Game {
//Gorilla game has 2 players and a map
Player player1;
Player player2;
Map map;
//Bellow are setters and getters for two players and the map
public void setPlayer1() {
this.player1 = new ... | true |
90d6aa22e7400a489ab27bd3a166c05d210d721e | Java | DyAutoTest/WebAutoTest | /src/main/java/com/dy/AutoTest/MerchantPortal/PageObject/myinfo/AccountInfoPage.java | UTF-8 | 482 | 1.804688 | 2 | [] | no_license | package com.dy.AutoTest.MerchantPortal.PageObject.myinfo;
import org.openqa.selenium.WebDriver;
import com.dy.AutoTest.web.actions.DoPlus;
import com.dy.AutoTest.web.api.SuperPage;
public class AccountInfoPage extends SuperPage {
public AccountInfoPage(WebDriver driver) {
super(driver);
du.loadLocator("MP_Loc_... | true |
81641811080aa1180b633d932dc864b18aad0320 | Java | zaproxy/zaproxy | /zap/src/main/java/org/parosproxy/paros/network/DecoratedSocketsSslSocketFactory.java | UTF-8 | 4,418 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | true |
f49451592ae55dc3f62e06538804a6bb4f65da77 | Java | jacky-cyber/work | /A2017010-大庆龙南医院自助机项目/02.Engineering/03.Code/01.server/trunk/ssm/src/test/java/com/test/BankServiceTest.java | UTF-8 | 2,720 | 2.296875 | 2 | [] | no_license | package com.test;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.lenovohit.ssm.payment.support.bankPay.config.Constants;
import com.lenovohit.ssm.payment.support.bankPay.model.builder.BankRefundRequestBuilder;
import com.lenovohit.ssm.payment.support.bankPay.model.resu... | true |
70a5fb8e4f99c5f209c394cebee5095663d46519 | Java | mateuszryczek/Combiner | /src/main/java/com/mime/combiner/operation/Operation.java | UTF-8 | 199 | 1.820313 | 2 | [] | no_license | package com.mime.combiner.operation;
import com.mime.combiner.exception.WrongDataTypeException;
public interface Operation {
Object apply(Object a, Object b) throws WrongDataTypeException;
}
| true |
38788b7641a63fe234ff1c1d59f3c34096e6aaed | Java | siggsa/FlightSimTools | /src/com/company/Route.java | UTF-8 | 826 | 3.46875 | 3 | [] | no_license | package com.company;
import java.util.LinkedList;
public class Route {
private LinkedList<Waypoint> route;
public Route(){
this.route = new LinkedList<Waypoint>();
}
public void AddWaypoint(Waypoint waypoint) {
route.add(waypoint);
}
public void RemoveLastWaypoint() {
... | true |
8d9f04d7d74d21788efa09d3171141abb0f75a30 | Java | infinispan/infinispan | /server/router/src/main/java/org/infinispan/server/router/routes/resp/RespServerRouteDestination.java | UTF-8 | 352 | 1.867188 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | package org.infinispan.server.router.routes.resp;
import org.infinispan.server.resp.RespServer;
import org.infinispan.server.router.routes.RouteDestination;
public class RespServerRouteDestination extends RouteDestination<RespServer> {
public RespServerRouteDestination(String name, RespServer respServer) {
... | true |
99c2221109e4a041f12373351c91b55a1b627276 | Java | Novoselov-pavel/npn.vita-soft | /src/main/java/com/npn/vita/soft/controllers/RequestController.java | UTF-8 | 6,935 | 2.484375 | 2 | [] | no_license | package com.npn.vita.soft.controllers;
import com.npn.vita.soft.model.request.Request;
import com.npn.vita.soft.model.request.services.interfaces.RequestInterface;
import com.npn.vita.soft.model.security.UserRoles;
import org.json.simple.parser.ParseException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
i... | true |
8b768806193215b4bcb2aefe87b407e3ad631b87 | Java | saikatHi6/sold-auction | /src/main/java/com/nasdaq/auction/soldauction/model/UserType.java | UTF-8 | 89 | 1.570313 | 2 | [] | no_license | package com.nasdaq.auction.soldauction.model;
public enum UserType {
SELLER,BUYER
}
| true |
9ab4e23e5d4146853f460f9cd34324e820b1894c | Java | rajnishkg/Java_study | /mafs-core-data/src/main/java/com/mikealbert/data/entity/LogBook.java | UTF-8 | 1,953 | 2.140625 | 2 | [] | no_license | package com.mikealbert.data.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* The persistent class for the VISION.LOG_BOOKS database table.
* @author sibley
*/
@Entity
@Table(name="L... | true |
8ec8b2d98d34ae42b837180aab136185ccbf9a51 | Java | sangeetha2898/MyFirstProject | /MyFirstProject/src/Duplicate_Element.java | UTF-8 | 411 | 3.203125 | 3 | [] | no_license | import java.io.*;
public class Duplicate_Element {
public static void main(String[] args) {
int a[]= {4,7,6,2,3,1,9,3};
for(int i = 0; i < a.length; i++) {
for(int j = i + 1; j < a.length; j++) {
if(a[i] == a[j])
{
System.out.print("Duplicat... | true |
1cda2e0517044b662df8ebac354249eb6695c243 | Java | ivanbravi/RinascimentoFramework | /src/gamesearch/players/evaluators/BehaviouralEvaluation.java | UTF-8 | 6,574 | 2.15625 | 2 | [
"MIT"
] | permissive | package gamesearch.players.evaluators;
import gamesearch.players.evaluators.matrix.GridGenerator;
import gamesearch.players.evaluators.matrix.LoadGridGenerator;
import gamesearch.players.evaluators.matrix.NormalisedMatrixSimilarity;
import gamesearch.players.evaluators.matrix.MatrixEvaluator;
import gamesearch.players... | true |
8271aa6048cc642349a680d3ba39a5401975513c | Java | tyhgg/smdfly-facepay | /code/facepay-code/facepay/src/main/java/com/tyhgg/asr/system/entity/OrgInfoPageEntity.java | UTF-8 | 2,423 | 1.71875 | 2 | [] | no_license | package com.tyhgg.asr.system.entity;
import java.io.Serializable;
import com.tyhgg.core.framework.entity.PageEntity;
public class OrgInfoPageEntity extends PageEntity implements Serializable {
private static final long serialVersionUID = 1961146260473841208L;
private int id;
private String orgId;
private Strin... | true |
eeb9915ce890059dc045cde2e3755bffb138bd0d | Java | MicroHero-Taken/HeroTaken | /HeroJDBC/src/main/java/_04shop/ShopBean.java | UTF-8 | 2,193 | 2.765625 | 3 | [] | no_license | package _04shop;
import java.io.Serializable;
import java.sql.Blob;
public class ShopBean implements Serializable{
private static final long serialVersionUID = 1L;
private Integer heroNo;
private String heroName;
private Integer heroPrice;
private Blob heroSkin1;
private Blob heroSkin2;
private Bl... | true |
3a5be6d6c8c6facce6a21f604c05a525fddc8a90 | Java | vmelnychuk/java-concurrency | /src/main/java/model/Counter.java | UTF-8 | 140 | 2.671875 | 3 | [] | no_license | package model;
public interface Counter<T> {
void inc();
void dec();
T getCounterValue();
void setCounterValue(T value);
}
| true |
9676bc3341c292c45cd2f365951d1d503b715a53 | Java | jonathak/mug | /src/java/Fart.java | UTF-8 | 296 | 2.46875 | 2 | [] | no_license | public class Fart {
public static void main(String[] args) {
//Crap x = new Crap();
String y = Crap.fart(" ..from Fart.main().. ");
System.out.println(y);
Double p = Crap.matic(new Double[]{ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 });
System.out.println(p);
}
}
| true |
fe465c78a48aea57176571bdba3d0303ce86e69b | Java | theminecoder/AppBase | /src/main/java/me/theminecoder/appbase/logger/ConsoleWriterHandler.java | UTF-8 | 4,504 | 2.640625 | 3 | [] | no_license | /*
* Copyright (c) 2015, geNAZt
*
* This code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package me.theminecoder.appbase.logger;
import jline.console.ConsoleReader;
import me.theminecoder.appbase.util.ConsoleColor;
import org.fusesource.jansi.Ansi;... | true |
4620dd52b168ea92195009e743eb1ae8f7d1cbac | Java | shangV2/lightning | /lightning.open/src/main/java/com/qing/askengine/model/WordFreq.java | UTF-8 | 691 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | package com.qing.askengine.model;
public class WordFreq implements Comparable<WordFreq> {
private String word;
private int freq;
public WordFreq(String word, int freq) {
super();
this.word = word;
this.freq = freq;
}
@Override
public int compareTo(WordFreq o) {
return word.compareTo(o.word);
}
... | true |
1a788edfcff532ba61d82a8084a20d19c8fd5854 | Java | chinaccj/tcc-transaction | /tcc-demo/demo-itemcenter/demo-itemcenter.facade/src/main/java/com/touna/tcc/demo/itemcenter/facade/intf/ItemFacade.java | UTF-8 | 1,983 | 1.9375 | 2 | [] | no_license | package com.touna.tcc.demo.itemcenter.facade.intf;
import com.touna.tcc.core.TccContext;
import com.touna.tcc.core.TwoPhaseBusinessAction;
/**
* Created by chenchaojian on 17/5/27.
*/
public interface ItemFacade {
/**
*
* @param xid
* @param productId
* @param amount
*/
@TwoPhaseBu... | true |
0d866c524bdbcbce8bb0a901597b7bff5a010bfe | Java | zkywalker/zky | /app/src/main/java/org/zky/zky/utils/ScreenUtils.java | UTF-8 | 1,958 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package org.zky.zky.utils;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.util.TypedValue;
public class ScreenUtils {
/**
* dp2px
*/
public static int dip2px(Context context, float dpValue) {
... | true |
bba54cb69c8beb48d4e8d1a6f2697b0d4000227b | Java | Polux-Proyecto/ProyectPolux | /src/java/com/commercewebapp/objects/Precios.java | UTF-8 | 1,601 | 2.5625 | 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 com.commercewebapp.objects;
/**
*
* @author Mauricio Aguilar
*/
public class Precios {
private String precioUnitario, c... | true |
4f6f33519932fd17b6e626b42ee10a5a87fdafee | Java | hivemq/hivemq-community-edition | /src/main/java/com/hivemq/extensions/auth/AuthContext.java | UTF-8 | 5,931 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-present HiveMQ GmbH
*
* 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 ag... | true |
a365197b2a28710c2a9769ddeb51e1fe5635a8a2 | Java | xu-chao/ssm-base | /src/main/java/com/java/activiti/service/MyTypeService.java | GB18030 | 2,034 | 1.945313 | 2 | [] | no_license | package com.java.activiti.service;
import com.java.activiti.model.Menu;
import com.java.activiti.model.MyType;
import com.java.activiti.pojo.GlobalResultVO;
import com.java.activiti.pojo.Tree;
import java.util.List;
public interface MyTypeService {
/**
* @author LIUHD
* typeCode
* @de... | true |
590ff4e15c0d6d54b559a3863cfe0701cac927b3 | Java | barrymoe1/practice-set-3 | /PS3/src/Account.java | UTF-8 | 2,130 | 3.671875 | 4 | [] | no_license | import java.util.Date;
public class Account {
private int id;//Private int data field named id for the account
private double balance; // double data field named balance for the account
private double annualInterestRate; //Private double data field named annualInterestRate or account
private Date dateCreated; ... | true |
bc6a24ab371d3ecfa48ebd5eeb295c585a079ea0 | Java | LordSerius/biolaboratory | /biolaboratory-core/src/main/java/hu/bioinformatics/biolaboratory/sequence/BiologicalSequence.java | UTF-8 | 39,191 | 2.875 | 3 | [] | no_license | package hu.bioinformatics.biolaboratory.sequence;
import hu.bioinformatics.biolaboratory.utils.ArgumentValidator;
import hu.bioinformatics.biolaboratory.utils.SequenceUtils;
import hu.bioinformatics.biolaboratory.utils.datastructures.CountableOccurrenceMap;
import hu.bioinformatics.biolaboratory.utils.datastructures.O... | true |
6797dd8321fa707cedd1940708998d8f6bc14d2d | Java | Syquel/reactorstate-maven | /reactorstate-maven-common/src/test/java/de/syquel/maven/reactorstate/common/SavedReactorStateManagerTest.java | UTF-8 | 7,647 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package de.syquel.maven.reactorstate.common;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.apache.maven.artifact.Artifact;
import org.... | true |
e524306273b38caebbf6f89e159a460ec68ae64d | Java | enzomotta/etcd4j | /src/main/java/com/enzomotta/etcd4j/EtcdResponse.java | UTF-8 | 495 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.enzomotta.etcd4j;
public class EtcdResponse {
// General values
public String action;
public String key;
public String value;
public long index;
// For set operations
public String prevValue;
public boolean newKey;
// For TTL keys
public String expiration;
public Integer ttl;
// For listing... | true |
9315d5a6cd06c29ef29e0275e097dc74c0135707 | Java | girispeaks/MyRepo | /workspace/Sample/src/seleniumPractice/FlipKart.java | UTF-8 | 961 | 2.3125 | 2 | [] | no_license | package seleniumPractice;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class FlipKart {
public static void main(String[] a... | true |
065239138ead0dcd0501602a27a8601237af414f | Java | awesome-urch/Nistores | /app/src/main/java/com/nistores/awesomeurch/nistores/folders/helpers/InitiatedOrder.java | UTF-8 | 641 | 2.234375 | 2 | [] | no_license | package com.nistores.awesomeurch.nistores.folders.helpers;
public class InitiatedOrder {
private String id;
private String order_id;
private String initiated_date;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getOrd... | true |
1fb85724a250e383b5a8fe764f8796dbd0e1ebda | Java | TscholponChicago/java-project | /src/array/Search.java | UTF-8 | 791 | 3.609375 | 4 | [] | no_license | package array;
import java.util.Arrays;
public class Search {
public static void main(String[] args) {
//TASK declare array and store elements{23,-3,55,67,-9}
// print out index of -3 if it exists in the array
// if it does not exists print zero
int elements[] = {34, 55, 67, -3, 90};
for(int ... | true |
3a1901ee83df2756606d45d28745019ea62d7f54 | Java | Amine-er/citt-wellmart | /wellmart-app/src/main/java/com/citt/wellmart/services/CategoryService.java | UTF-8 | 650 | 2.140625 | 2 | [] | no_license | package com.citt.wellmart.services;
import com.citt.wellmart.entities.Category;
import com.citt.wellmart.repositories.CategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CategoryService {
@A... | true |
0b5d344f404b301afaa1aed3d03f88823fa993c4 | Java | 2103Java/Curriculum-Resources | /Week6/BasicPlanetProject/src/main/java/com/revature/MainDriverForORM.java | UTF-8 | 1,006 | 2.40625 | 2 | [] | no_license | package com.revature;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.revature.dao.PlanetDao;
import com.revature.models.Planet;
public class MainDriverForORM {
public static ApplicationContext appContext = new ClassPath... | true |
1d043e3ac2dabd934e2987ca5fe3bf0a59175fce | Java | NataVK/test | /src/main/java/com/shop/backend/repository/ItemRepository.java | UTF-8 | 534 | 1.664063 | 2 | [] | no_license | package com.shop.backend.repository;
import com.shop.backend.domain.Item;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import javax.persistence.OrderBy;
import java.util.List;
/**
* Created... | true |
b1f18a032ea42364a6b1ac4531f01103b6279ede | Java | fuquanming/fcc | /fcc-web-manage/src/main/java/com/fcc/web/sys/service/impl/RoleServiceImpl.java | UTF-8 | 7,293 | 2.0625 | 2 | [] | no_license | package com.fcc.web.sys.service.impl;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Resource;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.fac... | true |
86cc6b150b1dc94674c5c698ff9ae962127f0f45 | Java | TaylorPlambeck/Speech-to-Text-Translator | /Capture.java | UTF-8 | 5,887 | 2.75 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.Arrays;
import javax.sound.sampled.*;
public class Capture extends JFrame {
protected static boolean running;
static ByteArrayOutputStream out;
static File wavFile = new File(SpeechGUI.PathArray[0]); //l... | true |
675f9109dc86d63c820158a5410b5b62c3b6696f | Java | coopci/ddia | /ddia-common/src/coopci/ddia/UidResult.java | UTF-8 | 87 | 1.539063 | 2 | [] | no_license | package coopci.ddia;
public class UidResult extends Result {
public long uid = -2;
}
| true |
1b27f15e270dcbcee4cccfbe034f2314c163349b | Java | ChoiHeekyeong/megajava | /day12/src/크롤링/네이버증권_크롤링2.java | UHC | 1,533 | 2.859375 | 3 | [] | no_license | package ũѸ;
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class ̹_ũѸ2 {
public static void main(String[] args) {
String[] codes = {"068270", "005930", "004310"};
for (int i = 0; ... | true |
fe6c8a29cb5e9b7bfe9e2df7df04603c55d06d97 | Java | 100hor/Nosql-ppt | /src/main/java/com/nosql/SQLRepository/PrinterSQLRepository.java | UTF-8 | 364 | 1.960938 | 2 | [] | no_license | package com.nosql.SQLRepository;
import com.nosql.SQLEntity.PrinterSQL;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface PrinterSQLRepository extends JpaRepository<PrinterSQL, Long> {
Optional<... | true |
f2485d2eb1fb69c3cd0c98cda0f272a741d33822 | Java | roki021/KTSNWT2020_T21 | /server/src/test/java/com/culturaloffers/maps/repositories/GuestRepositoryIntegrationTest.java | UTF-8 | 1,624 | 1.960938 | 2 | [] | no_license | package com.culturaloffers.maps.repositories;
import com.culturaloffers.maps.model.Guest;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.data.domain... | true |
cadda36fd16489f9b6e136a87179f45bcd4f6f5e | Java | erdemolkun/instant-rates | /app/src/main/java/dynoapps/exchange_rates/provider/ProviderSourceCallbackAdapter.java | UTF-8 | 367 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package dynoapps.exchange_rates.provider;
/**
* Created by erdemmac on 05/12/2016.
*/
/***
* Adapter class for {@link IPollingSource.SourceCallback}
*/
public class ProviderSourceCallbackAdapter<T> implements IPollingSource.SourceCallback<T> {
@Override
public void onResult(T value,int type) {
}
... | true |
150e74df3409ac42be4788b1f88ad2ca75d55211 | Java | nosdeedson/Beyond-School | /beyondschool/src/main/java/br/com/edson/manageBean/EditarPerfil.java | UTF-8 | 6,685 | 2.078125 | 2 | [] | no_license | package br.com.edson.manageBean;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.faces.application.Application;
import javax.faces.application.FacesMessage;
import javax.faces.application.ViewHandler;
imp... | true |
84e4dd349f88b057229c708c30b459911ab7a95c | Java | nendraharyo/presensimahasiswa-sourcecode | /com/google/android/gms/maps/GoogleMapOptions.java | UTF-8 | 12,270 | 1.523438 | 2 | [] | no_license | package com.google.android.gms.maps;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.os.Parcel;
import android.util.AttributeSet;
import com.google.android.gms.R.styleable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelabl... | true |
6be7c431870e7a8b44727457e4ae6db11b6a3e80 | Java | rajvpatil5/Eclipse-New-Version | /DummyDemo/src/test/java/com/pages/EcomTestPage.java | UTF-8 | 943 | 1.609375 | 2 | [] | no_license | package com.pages;
import org.openqa.selenium.By;
public class EcomTestPage {
public static By textEmail = By.xpath("//input[@name='email']");
public static By textPhone = By.xpath("//input[@name='phone']");
public static By textAmount = By.xpath("//*[@id='form-section']/form/div[1]/div[3]/div/div[2]/div[1]/input"... | true |
31957f4887df8db77e107cde32df96b2383e8bcf | Java | dev-comp/xmpp-bot | /src/main/java/com/bftcom/devcomp/api/IDeliveryHandler.java | UTF-8 | 157 | 1.78125 | 2 | [] | no_license | package com.bftcom.devcomp.api;
/**
* @author ikka
* @date: 24.09.2016.
*/
public interface IDeliveryHandler {
void handleDelivery(Message message);
}
| true |
e0d7dcc217e121f6f67237f5be2adaa07c42abfe | Java | vanishedzhou/FinanceCrawler | /src/main/java/tongji/zzy/model/DisclosureInfo.java | UTF-8 | 1,333 | 2 | 2 | [] | no_license | package tongji.zzy.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
public class DisclosureInfo extends BaseInfo {
public String companyCode;
public String companyName;
public String disclosureCategory;
@JsonIgnore
public static final String index = "disclosure";
@JsonIgnore
public String typeDiscl... | true |
8d921060ff23d01b8f2cbc6d3276c7c77b004a1e | Java | aconstantinou123/Hotel-Java-Project | /src/main/java/Rooms/Restaurant.java | UTF-8 | 714 | 3.015625 | 3 | [] | no_license | package Rooms;
public class Restaurant extends Room {
protected int tablesBooked;
protected String currentMenu;
public Restaurant(int capacity, String currentMenu) {
super(capacity);
this.tablesBooked = 0;
this.currentMenu = currentMenu;
}
public String getCurrentMenu() {... | true |
e31a41338ada2783d72b11e26451fac1b320565b | Java | ZuzannaM/SpringAop | /SpringAop/src/main/java/com/moleda/zuzanna/SpringAop/App.java | UTF-8 | 831 | 2.3125 | 2 | [] | no_license | package com.moleda.zuzanna.SpringAop;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.moleda.zuzanna.SpringAop.service.FactoryBeanService;
import com.moleda.zuzanna.SpringAop.service.ShapeService;
pub... | true |
a2e435d060ae2708c5161ff564b57de0fc4fc2dd | Java | MrRmk/SpringBoot-React-Demo | /src/main/java/com/example/dream/bean/User.java | UTF-8 | 3,962 | 2.296875 | 2 | [] | no_license | package com.example.dream.bean;
import java.sql.Timestamp;
public class User {
private String id; // 账号
private String password; // 密码
private String avatar; // 头像路径
private String nickName; // 昵称
private String name; // 姓名
private int sex; // 性别 1:男/2:女
... | true |
3c2f2b63d7393c2c9d160c1976954f7750bc77ae | Java | AnilRdyAleti/ImageLoader | /app/src/main/java/me/anil/imageloader/modules/homescreen/HomeScreenPresenter.java | UTF-8 | 1,615 | 2.15625 | 2 | [] | no_license | package me.anil.imageloader.modules.homescreen;
import android.support.annotation.NonNull;
import android.util.Log;
import java.util.ArrayList;
import me.anil.imageloader.base.BasePresenter;
import me.anil.imageloader.network.RestClient;
import me.anil.imageloader.repository.FeedResponse;
import rx.Observable;
impor... | true |
781cbc052b728f0aa93fa90f25d90f0acecc27e7 | Java | NadineHernandez/Java-Program | /NadineHernandezU1M5Summative/src/main/java/com/company/NadineHernandezU1M5Summative/dao/BookDao.java | UTF-8 | 364 | 2.078125 | 2 | [] | no_license | package com.company.NadineHernandezU1M5Summative.dao;
import com.company.NadineHernandezU1M5Summative.dto.Book;
import java.util.List;
public interface BookDao {
Book addBook(Book book);
Book readBook(int id);
List<Book> readAllBooks();
void updateBook(Book book);
void removeBook(int id);
Lis... | true |
23ff85ea4cdec17dbe33d448a3df2565f305e1e7 | Java | gitnds/YuJiaNew | /app/src/main/java/com/strong/yujiaapp/activity/HumanInfoActivity.java | UTF-8 | 5,091 | 2.046875 | 2 | [] | no_license | package com.strong.yujiaapp.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.... | true |
8228a68474606ee053b5e8a85574bbf0e772960f | Java | WihauShe/SnowyMoney_android | /server/src/cn/cslg/service/IReportService.java | UTF-8 | 359 | 1.78125 | 2 | [] | no_license | package cn.cslg.service;
import cn.cslg.entity.Report;
import java.util.List;
public interface IReportService {
boolean addReport(String ruser,String reason,String evidence);
boolean deleteReport(int id);
List<Report> getAllReports();
List<Report> findReportByCondition(int from,int rows);
int get... | true |
84185e2f1329fa878e8c60b765841ec4ce1f5ed0 | Java | 11657/_3jieduan | /src/main/java/com/qf/controller/kucunController.java | UTF-8 | 1,591 | 2.203125 | 2 | [] | no_license | package com.qf.controller;
import com.qf.pojo.kucun;
import com.qf.service.kucunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapp... | true |
a1d3ca61c8ee6c5aba3995893cb01c7e94691bbd | Java | BenniaoManfei/BenniaoManfei | /src/main/java/service/wx/impl/WxServiceImpl.java | UTF-8 | 5,409 | 2.25 | 2 | [] | no_license | package service.wx.impl;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import model.bean.wx.MaterialNews;
import model.bean.wx.WxAccessToken;
import org.apache.commons.codec.digest.Dige... | true |
7394afdf7cdf11224d046fc56c3079ec08b9d043 | Java | panfront/hello2019 | /src/com/hollycrm/test/StringEncoding.java | UTF-8 | 729 | 3 | 3 | [] | no_license | package com.hollycrm.test;
import java.util.Arrays;
public class StringEncoding {
public static void main(String[] args) throws Exception {
String s = "abc中文";
System.out.println(s);
f(s,null);
f(s,"GBK");
f(s,"UTF-8");
}
/*
* charset 字符集
* encoding字符编码
*/
privat... | true |
3ef6e829ac946f1f2fde85a1556f576e821ab258 | Java | JyothiReddyguduru/Library-Management-system | /src/main/java/com/booknow/controllers/BookCopyController.java | UTF-8 | 1,959 | 2.65625 | 3 | [] | no_license | package com.booknow.controllers;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapp... | true |
e90de35f83f8578a51e9c3e5bb0ac4fbcd46e55d | Java | jandejongh/jqueues | /src/main/java/org/javades/jqueues/r5/extensions/visitscounter/SimQueueVisitsCounterStateHandler.java | UTF-8 | 6,689 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010-2018 Jan de Jongh <jfcmdejongh@gmail.com>, TNO.
*
* 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 |
79ad1056fc60a5e80a26ed20d29bd8fc8457556f | Java | RavinduDharmasena/AF_Project | /spring_project/payment/src/main/java/com/creativelabs/payment/repository/DrugRepository.java | UTF-8 | 333 | 2.0625 | 2 | [] | no_license | package com.creativelabs.payment.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.creativelabs.payment.model.Drug;
@Repository
public interface DrugRepository extends MongoRepository<Drug,String> {
Drug findOneByDrugid(Strin... | true |
d3b3ab7bc6490878cd3674725707b4187e956b18 | Java | wingersoftprojects/EIHDMS | /src/java/eihdms/Deadline_extension.java | UTF-8 | 17,501 | 2.140625 | 2 | [] | no_license | /**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
/**
* Licensee: rlumala
* License Type: Purchased
*... | true |
2f4ab24ef3824a9469650bd15595592c9f2b358b | Java | hanseul-Choi/programmers | /level2_java/게임 맵 최단거리/game_short_path.java | UTF-8 | 1,471 | 3.015625 | 3 | [] | no_license | import java.util.*;
class Solution {
public static int[] dx = {0, 1, -1, 0};
public static int[] dy = {-1, 0, 0, 1}; //하 우 좌 상 (유리한 순서대로)
public static int N,M;
public static int[][] map;
public static int[][] visit;
public class Node {
int x;
int y;
Node(i... | true |
c8a70a14f14d5aebc7e00edc7bd09eaa8e1fad41 | Java | vicky-2020/AutoTest | /Chapter5/src/main/java/com/course/testng/IgnoreTest.java | UTF-8 | 392 | 2.4375 | 2 | [] | no_license | package com.course.testng;
import org.testng.annotations.Test;
public class IgnoreTest {
@Test
public void ignore1(){
System.out.print("ignore1 running");
}
@Test(enabled = false)
public void ignore2(){
System.out.print("ignore1 running");
}
@Test(enabled = true)
publ... | true |
a12aa0a4e98b2dee479c369d83075d047dfdec6d | Java | vodinhhung/Algorithm_practicing | /HUST/BeginningJava/src/tutorial/javabasic/exception/AgeUntils.java | UTF-8 | 348 | 3.40625 | 3 | [] | no_license | package tutorial.javabasic.exception;
public class AgeUntils {
public static void checkAge(int age) throws TooYoungException, TooOldException {
if(age < 18)
throw new TooYoungException("Age " +age+ " too young.");
else if (age > 40)
throw new TooOldException("Age " +age+ " too old");
else System.out.print... | true |
f81ba27707cc4703aa59db1c2f2a40811a721c4d | Java | iivaan/PaxoDataCompare | /src/main/java/com/paxovision/db/lettercase/CaseConversion.java | UTF-8 | 432 | 2.859375 | 3 | [] | no_license | package com.paxovision.db.lettercase;
/**
* Conversion of the case of a {@link String}.
*/
public interface CaseConversion {
/**
* Returns the name of the conversion.
* @return The name of the conversion.
*/
String getConversionName();
/**
* Converts the {@link String} in parameter to another.
... | true |
31a49eddff784b13b86fc97fccf415a448dbfa25 | Java | jbosstools/jbosstools-openshift | /plugins/org.jboss.tools.openshift.common.core/src/org/jboss/tools/openshift/common/core/connection/IConnectionsRegistryListener.java | UTF-8 | 1,438 | 1.929688 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012-2014 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and... | true |
43b3f2a0aa7fac10a43b902f1422ad2a4385a144 | Java | AbhishekTag/RLMS | /src/main/java/com/rlms/dao/CompanyDaoImpl.java | UTF-8 | 4,736 | 2.125 | 2 | [] | no_license | package com.rlms.dao;
import java.util.Date;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotyp... | true |
8dc616525acf5f81aec43fb0f0ffc93113a22edb | Java | andeemarks/checkstyle-edn-listener | /test/org/corvine/checkstyle/EdnListenerTest.java | UTF-8 | 1,651 | 2.28125 | 2 | [] | no_license | package org.corvine.checkstyle;
import com.puppycrawl.tools.checkstyle.api.AuditEvent;
import com.puppycrawl.tools.checkstyle.api.LocalizedMessage;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import static org.junit.Assert... | true |
b26c20b8f853aa647da60c07f5bac9d8d8432bbf | Java | GODueol/Door | /app/src/main/java/com/teamdoor/android/door/SettingActivity/PushAlarmActivity.java | UTF-8 | 4,345 | 2.109375 | 2 | [] | no_license | package com.teamdoor.android.door.SettingActivity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.widget.CompoundButton;
import android.widget.Switch;
import com.teamdoor.android.door.R;
import com.teamdoor.android.door.Util.SharedPr... | true |
981f3455df1e0d16ac9a6592123b9b4515397023 | Java | Warald/cs108 | /src/quiz/model/QuizQuestionAttemptGraded.java | UTF-8 | 91 | 1.6875 | 2 | [] | no_license | package quiz.model;
public enum QuizQuestionAttemptGraded {
undone,
incomplete,
done
}
| true |