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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7c250c1fae5478c178954a6d16c74e4741f28cdd | Java | SmileWide/main | /src/main/java/smile/wide/AttributeValueHistogram.java | UTF-8 | 8,123 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
Licensed to the DARPA XDATA project.
DARPA XDATA licenses this file to you 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... | true |
34f448e5749cbcb993185cee1bd24d8cd291a670 | Java | Yyuanshao/WhatsAndroid | /andnext_recyclerview/src/main/java/club/andnext/recyclerview/helper/EditTouchHelper.java | UTF-8 | 7,434 | 2.15625 | 2 | [] | no_license | package club.andnext.recyclerview.helper;
import android.app.Activity;
import android.content.Context;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import andro... | true |
66f9ab7c39e165e4275fc14f5318d91e9e21d555 | Java | jwyming/TaskMgmt | /src/com/eds/ctcb/bean/QryBean.java | UTF-8 | 791 | 2.359375 | 2 | [] | no_license | package com.eds.ctcb.bean;
public class QryBean {
private String hql;
private Object[] paramArray;
public QryBean(String hql,Object[] paramArray){
this.hql = hql;
this.paramArray = paramArray;
}
public String getHql() {
return hql;
}
public void setHql(String hql) {
this.hql = hql;
}
public Obje... | true |
61a6dc05bc93db00208153b0825ace89e097ccee | Java | hadenlee/tarprobe-sim | /java/src/main/java/edu/usfca/tarprobe/extra/POPI.java | UTF-8 | 3,248 | 3.1875 | 3 | [] | no_license | package edu.usfca.tarprobe.extra;
import edu.usfca.tarprobe.common.Entity.Type;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class POPI {
static class Packet {
final Type type;
final int burstId, orderInBurst;
private Packet(int burstId, int orderInBurst, Type t... | true |
557706da1120f25bea0ba0b26af9d6a8131106c1 | Java | JeremieFrc/MatchMooveApplication | /src/main/java/com/societe/project/database/ArticleRepository.java | UTF-8 | 565 | 2.03125 | 2 | [] | no_license | package com.societe.project.database;
import java.util.Date;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.societe.project.database.base.BaseCRUDRepository;
import com.societe.project.models.Article;
@Repository
public inter... | true |
9e1eeeb6ec83f5c461fb208d85ecbbd9d1f1327a | Java | tony1202/vms | /src/main/java/com/gfx/vms/base/service/SystemLogService.java | UTF-8 | 502 | 2.015625 | 2 | [] | no_license | package com.gfx.vms.base.service;
/**
* @author tony
* @date 2018/9/6
* @Description: 系统操作记录
*/
public interface SystemLogService {
/**登入操作*/
String ACCESS_TYPE_LOGIN = "login";
/**登出操作*/
String ACCESS_TYPE_LOGOUT = "logout";
/**
* 新增用户访问记录
* @param userId 用户id
* @param accessIp... | true |
6a7a03be404cc0f8efc02b10cb2737a9d5a6172c | Java | qiandonghf/wiiy_work | /department.business.war/src/com/wiiy/business/action/InvestmentRepeatedVisteAction.java | UTF-8 | 3,117 | 2.109375 | 2 | [] | no_license | package com.wiiy.business.action;
import java.util.List;
import com.wiiy.commons.action.JqGridBaseAction;
import com.wiiy.commons.util.BeanUtil;
import com.wiiy.hibernate.Filter;
import com.wiiy.hibernate.Result;
import com.wiiy.business.entity.InvestmentRepeatedViste;
import com.wiiy.business.service.InvestmentRepe... | true |
fc28efab9f6186be2d10d3fc7658a32cfa532629 | Java | zypus/CAD | /src/intersection/Point.java | UTF-8 | 1,483 | 3.171875 | 3 | [] | no_license | package intersection;
import java.util.ArrayList;
import java.util.List;
public class Point {
private float x;
private float y;
private Segment owner;
boolean start;
boolean end;
List<Segment> intersections = new ArrayList<Segment>();
public boolean isStart() {
return start;
}
public void setStart(bool... | true |
bd5c7ba77284ce7af46c3a672ef649745cb15317 | Java | Sususuperman/LuanDemo | /app/src/main/java/com/hywy/luanhzt/activity/MyRiverActivity.java | UTF-8 | 7,779 | 1.84375 | 2 | [] | no_license | package com.hywy.luanhzt.activity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.cs.android.task.Task;
i... | true |
32b0e902d909b98d4a56d66c2d3f4b194451bcaa | Java | n1k1ton/labs_3_Kurs | /src/Client.java | UTF-8 | 1,322 | 3.171875 | 3 | [] | no_license | import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
public class Client {
private Set<Car> cars;
private String name;
private String surname;
private String login;
public static Set<Client> clients=new HashSet<>();
public Client(String name, String surname, String login) ... | true |
c68425debbdd7a8532c9607c70b91abccc83a181 | Java | mzkh/LudoKing | /sources/com/google/android/gms/internal/ads/zzbld.java | UTF-8 | 597 | 1.5625 | 2 | [] | no_license | package com.google.android.gms.internal.ads;
/* compiled from: com.google.android.gms:play-services-ads@@18.2.0 */
public final class zzbld implements zzdwb<zzcvr> {
private final zzbla zzffu;
private zzbld(zzbla zzbla) {
this.zzffu = zzbla;
}
public static zzbld zzc(zzbla zzbla) {
re... | true |
29b9d2122438483339ab10f9352fb27a42427224 | Java | albertguosgp/murano | /src/main/java/com/murano/oms/model/state/BustedOrder.java | UTF-8 | 286 | 2.140625 | 2 | [] | no_license | package com.murano.oms.model.state;
import com.murano.oms.model.Order;
import com.murano.oms.model.OrderState;
public class BustedOrder implements OrderState {
private Order order;
@Override
public void stateCheck() {
order.setOrderState(new NewOrder());
}
}
| true |
341877ad47a39a72380e7dc8b415131368a02c67 | Java | Hyperb0t/mongo-java | /src/main/java/ru/itis/mongojava/jpa/Main.java | UTF-8 | 1,347 | 2.515625 | 3 | [] | no_license | package ru.itis.mongojava.jpa;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import ru.itis.mongojava.jpa.dao.CompanyRepository;
import ru.itis.mongojava.jpa.dao.PersonRepository;
import ru.itis.mongojava.jpa.dao.VacancyReposito... | true |
268c3623be77c455c1877a5755d2974ddf244874 | Java | oanalavinia/IP_2018_A6 | /sales-app/src/main/java/com/ip/salesapp/repository/SalesRepository.java | UTF-8 | 350 | 1.84375 | 2 | [] | no_license | package com.ip.salesapp.repository;
import com.ip.salesapp.domain.Sales;
import org.springframework.stereotype.Repository;
import org.springframework.data.jpa.repository.*;
/**
* Spring Data JPA repository for the Sales entity.
*/
@SuppressWarnings("unused")
@Repository
public interface SalesRepository extends Jp... | true |
355fb446e89bb1a4ef8ce324c92eabd5b3420bb8 | Java | SchwEmpKo/InnovationTool | /HelpingHand/src/HelpingHand.java | ISO-8859-1 | 766 | 2.921875 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
public class HelpingHand {
public static void main(String[] argv) throws ClassNotFoundException, SQLException
{
//Datenbankverbindung
DBConnection dbc = new DBConnection();
Connection con = dbc.getDatabaseConnection();
... | true |
19cbf1346209b17a33de75dc2639d1a691d7665b | Java | 2016-Arizona-Opportunity-Hack/Team16 | /MDNChoirAndDrama/src/main/java/org/mdn/controller/FileUploadController.java | UTF-8 | 3,090 | 2.359375 | 2 | [] | no_license | package org.mdn.controller;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URLConnection;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.co... | true |
35bfefeecb359a414ab745b8ad50b9097a75e424 | Java | moutainhigh/b2bcloud | /modules/mall/src/main/java/com/haoxuer/b2bcloud/product/data/dao/ProductDao.java | UTF-8 | 725 | 1.984375 | 2 | [] | no_license | package com.haoxuer.b2bcloud.product.data.dao;
import com.haoxuer.b2bcloud.product.data.entity.Product;
import com.haoxuer.discover.data.core.BaseDao;
import com.haoxuer.discover.data.core.Updater;
import com.haoxuer.discover.data.page.Page;
import com.haoxuer.discover.data.page.Pageable;
import java.util.List;
/**... | true |
558d65365d445c79a1c3c9b8c141cb387b84e616 | Java | cjj9812/zeux | /module/system/src/main/java/com/nanshen/module/system/entity/Role.java | UTF-8 | 726 | 1.859375 | 2 | [] | no_license | package com.nanshen.module.system.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Role implements Serializab... | true |
d82bd3251b30c849238a272187f550d4a8be3b7f | Java | SujithVelayudhan/Patient_diary | /app/src/main/java/com/example/sujith/patient_diary/doc_view_pat_frag.java | UTF-8 | 3,269 | 2 | 2 | [] | no_license | package com.example.sujith.patient_diary;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.lo... | true |
87c8186d0203d78b2347da195b40a47138f46bca | Java | tcwgq/learn-java-base | /Day27_Integer/src/com/tcwgq/demo/IntegerDemo3.java | UTF-8 | 831 | 3.921875 | 4 | [] | no_license | package com.tcwgq.demo;
/**
* int类型和String类型的相互转换。
* int --> String
* String --> int
*/
public class IntegerDemo3 {
public static void main(String[] args) {
//int --> String
//方式一
int a = 100;
String s = "" + a;
System.out.println(s);
//方式二
System.out.println(String.valueOf(a));
//方式三
Integer i... | true |
877063e21a21d12ccc1da408ab74fa3a6b827a38 | Java | danamodio/esapi-hackathon | /basic-encoding/basic-encoding-web/src/main/java/org/owasp/esapi/impl/encoding/CSSContext.java | UTF-8 | 5,295 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | package org.owasp.esapi.impl.encoding;
import java.util.ArrayList;
import org.owasp.esapi.core.encoding.EncodingContext;
import org.owasp.esapi.core.encoding.EncodingException;
import org.owasp.esapi.core.encoding.UnencodableCharacterException;
import org.owasp.esapi.impl.encoding.util.HexHelper;
import org.owasp.esa... | true |
9bb565d3c9786723680df8585ecef02f9d3738e9 | Java | sandeepsangole/AlgorithmicSolutions | /src/personal/temp/MazeFinal.java | UTF-8 | 3,901 | 3.75 | 4 | [] | no_license | package personal.temp;/*
Backtracking/recursion to solve a maze.
The program will output all the paths it finds and then output (again)
in the end the last shortest path found.
I found it easiest to simply hardcode the maze in the variables below.
It is IMPORTANT to note there is no error checking. So if the ... | true |
dd94861a11a40230843f07137cb0c625c070a8c2 | Java | bwzou/where | /app/src/main/java/com/creation/where/fragment/TgActivitiesFragment.java | UTF-8 | 3,474 | 2.203125 | 2 | [] | no_license | package com.creation.where.fragment;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... | true |
28a223def7ce84cb0e02c6bc8f9267f100fd7693 | Java | alex-brc/BattleshipAntarctica | /src/org/alien8/util/LogManager.java | UTF-8 | 5,738 | 3.34375 | 3 | [] | no_license | package org.alien8.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDateTime;
/**
* This class implements the log manager. It is implemented as a singleton class, so it is used by
* requesting its instance at runtime.
* <p>
* Its purpose is to log normal and ... | true |
feed3ec3904c39adbf4106ecb934177df9b8b466 | Java | Azenga/PaintApp | /src/main/java/com/shadow/DesignModels.java | UTF-8 | 1,874 | 3.078125 | 3 | [] | no_license | package com.shadow;
import javafx.collections.ObservableList;
import javafx.geometry.Point2D;
import javafx.scene.paint.Paint;
import javafx.scene.shape.*;
public class DesignModels {
public Shape getRect(Point2D startPoint, Point2D endPoint, Paint stroke, Paint fill) {
double x = Math.min(startPoint.ge... | true |
beb716ab2754bc459a6213b61b387a7363cc4a7e | Java | imageinnova/transporter_mod | /src/main/java/com/imageinnova/transporter/inventory/guicontainer/ContainerTransporter.java | UTF-8 | 3,518 | 2.5 | 2 | [] | no_license | package com.imageinnova.transporter.inventory.guicontainer;
import com.imageinnova.transporter.tileentities.TileEntityTransporter;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minec... | true |
fb987ef3e584128a8e0381ffd335c0505d76c6e7 | Java | saykanz/PRQS | /src/cn/hrbcu/com/servlet/adminServlet/DelInsServlet.java | UTF-8 | 1,235 | 2.21875 | 2 | [] | no_license | package cn.hrbcu.com.servlet.adminServlet;
import cn.hrbcu.com.service.impl.AdminServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... | true |
e4e42670a098d5c55eca946a71470bc4ade16c4b | Java | Huicab/proyecto | /HolaMundo/src/app/holamundo.java | UTF-8 | 334 | 2.828125 | 3 | [] | no_license | /**
*
*/
package app;
/**
* @author PC
*
*/
public class holamundo {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Hola mundo");
int a = 1;
System.out.println( "jueeee: " + a );
for(a = 0; a <=10; a++) {
System.out.println(a);
... | true |
e06e26a9750c4767d62880f4038f0c7f19b5479b | Java | wangyong-chengdu/example | /design-example/src/main/java/cd/wangyong/simple_rpc/protocol/Message.java | UTF-8 | 374 | 2.015625 | 2 | [] | no_license | package cd.wangyong.simple_rpc.protocol;
/**
* @author andy
* @since 2020/9/28
*/
public interface Message {
/**
* 消息类型
*/
MessageType getMessageType();
/**
* 会话ID
*/
byte getSessionId();
/**
* 包类型
*/
PackageType getPackageType();
/**
* 消息内容
*/... | true |
48ed90f01d38695f655ee9cb7265b1e1d54360e0 | Java | m3c0d3/junit-put-examples | /src/test/java/com/practicalunittesting/chp05/raceresults/RaceResultsWithCategoriesTest.java | UTF-8 | 1,477 | 2.40625 | 2 | [] | no_license | package com.practicalunittesting.chp05.raceresults;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import static org.mockito.Mockito.*;
/**
* Created by m3c0d3 on 1/16/2018.
*/
public class RaceResultsWithCategoriesTest {
RaceResultsService raceResults = new RaceResultsService();
... | true |
79118ce479c58b725a6697af1d10196108016d4f | Java | CCChicken/Structurize | /src/main/java/com/ldtteam/blockout/views/Box.java | UTF-8 | 1,513 | 2.921875 | 3 | [] | no_license | package com.ldtteam.blockout.views;
import com.ldtteam.blockout.Color;
import com.ldtteam.blockout.PaneParams;
import com.ldtteam.blockout.Render;
import org.jetbrains.annotations.NotNull;
/**
* Simple box element.
*/
public class Box extends View
{
private float lineWidth = 1.0F;
private int color = 0xff00... | true |
4394e7c09a569670f42d08986223e62d84dae076 | Java | iamAvnishSharma/Brightv2 | /app/src/main/java/in/bright/avnish/NotesBranch.java | UTF-8 | 3,965 | 1.898438 | 2 | [] | no_license | package in.bright.avnish;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.VideoView;
public class NotesBranch extends AppCompatActivity {
int s;
... | true |
684880740e6d98a1362c135df30c231d1272df22 | Java | cao2068959/summer | /link/src/main/java/com/chy/summer/link/api/RequestParameter.java | UTF-8 | 4,029 | 2.59375 | 3 | [] | no_license | package com.chy.summer.link.api;
import com.chy.summer.link.api.impl.RequestParameterImpl;
import com.sun.istack.internal.Nullable;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import java.util.List;
/**
* 请求参数的持有人接口
*/
public interface RequestParameter {
/**
* 设置参数名称
*... | true |
a3807e6f11a6e84fa20c5f11d78c9c8f85a07010 | Java | commul/multilingual-ctap-feature | /src/main/java/com/ctapweb/feature/featureAE/LexicalVariationAE.java | UTF-8 | 6,187 | 2.03125 | 2 | [
"BSD-3-Clause"
] | permissive | /**
*
*/
package com.ctapweb.feature.featureAE;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.uima.Uima... | true |
dcb4147f0dd8f5724c5c9a3e58aaaf10a2f5ec29 | Java | garrettmac/FriendNet | /git/FriendNet/app/src/main/java/com/example/garrettmacmaolain/friendnet/Tabs.java | UTF-8 | 3,252 | 2.21875 | 2 | [] | no_license | package com.example.garrettmacmaolain.friendnet;
import android.app.ActionBar;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.Menu... | true |
c2537cbcd21da532833f5768fd301642a3f5ced9 | Java | dudy97/spring_security_repo | /src/main/java/com/luv2code/springsecurity/demo/service/UserServiceImpl.java | UTF-8 | 1,679 | 2.328125 | 2 | [] | no_license | package com.luv2code.springsecurity.demo.service;
import com.luv2code.springsecurity.demo.dao.UserDao;
import com.luv2code.springsecurity.demo.entity.Role;
import com.luv2code.springsecurity.demo.entity.User;
import com.luv2code.springsecurity.demo.user.CrmUser;
import org.springframework.beans.factory.annotation.Auto... | true |
98d22face0cb48678a21a0ca770b2c833da97653 | Java | ddit-cas/cas | /cas/src/main/resources/com/cas/db/dto/PointVO.java | UTF-8 | 808 | 2.125 | 2 | [] | no_license | package com.cas.db.dto;
public class PointVO {
private String chargingNum;
private int chargingAmount;
private String chargingDate;
private String chargingMem;
public String getChargingNum() {
return chargingNum;
}
public void setChargingNum(String chargingNum) {
this.chargingNum = chargin... | true |
e2af8cc3979b780f2867f135a3935a91122d17db | Java | cvinicius987/frameworks-java | /spring/boot-vehicle-delivery-routing/src/main/java/br/com/vehicle/delivery/domain/restaurant/RestaurantRepository.java | UTF-8 | 296 | 1.554688 | 2 | [] | no_license | package br.com.vehicle.delivery.domain.restaurant;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* Gerenciamento dos Restaurantes.
*
* @author Caio
* @since 07/07/2018
* @version 1.0
*/
public interface RestaurantRepository extends JpaRepository<Restaurant, Long>{
} | true |
41bede7282c39a529c975ce025121fbfc8adfba8 | Java | jumarko/poptavka | /poptavka-core/src/main/java/com/eprovement/poptavka/service/jobs/base/Job.java | UTF-8 | 664 | 2.640625 | 3 | [] | no_license | package com.eprovement.poptavka.service.jobs.base;
/**
*
* Basic interface that all jobs should implement.
*
* @author Juraj Martinka
* Date: 4.4.11
*/
public interface Job {
String EVERY_HOUR = "0 0 * * * ? ";
String EVERY_MIDNIGHT = "0 59 23 * * ? ";
/** Once a day early in the morning */
... | true |
3d6ecd25c389f65b4245f72b74d26c0cc21946e4 | Java | rwachtler/ITM13TermStatistics | /src/at/fhj/itm/pswe/servlets/WordOverviewServlet.java | UTF-8 | 2,469 | 2.609375 | 3 | [
"MIT"
] | permissive | package at.fhj.itm.pswe.servlets;
import java.io.IOException;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
impo... | true |
e15b0c1fa1cd253f668551302bc323754eed68e1 | Java | akudrin/Java8_OCP_Exam | /build/classes/com/akudrin/java_stream_api_5/Streams_3.java | UTF-8 | 1,954 | 3.578125 | 4 | [] | 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.akudrin.java_stream_api_5;
import java.util.Arrays;
import java.util.Random;
import java.util.function.Supplier;
import ja... | true |
8dbd7250ff371d3c91a50968c5c651ab592498f7 | Java | asd821226/DoucumentsManagementSystem | /DMS/dms/dms-biz/target/classes/com/bankcomm/novem/biz/common/IManageProcessLogBiz.java | UTF-8 | 400 | 1.710938 | 2 | [] | no_license | package com.bankcomm.novem.biz.common;
import com.bankcomm.novem.bo.common.ProcessLogBo;
/**
*
* @author sunpu sun.pu@bankcomm.com Jul 18, 2012
*
*/
public interface IManageProcessLogBiz {
/**
* 插入操作监控实体
*
* @param processLogBo
* 操作监控实体
* @return 插入后的主键
*/
long inser... | true |
20dcbc67e51b2abdb8bbcbf1576f4b8a93bceb72 | Java | robertoguevr/RobertoMarioGuevaraSerrano | /CEjercicio02/src/main/java/com/roberto/DAO/ClsArchivo.java | UTF-8 | 1,035 | 2.65625 | 3 | [] | no_license | package com.roberto.DAO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import com.roberto.Conexion.ConexionBd;
public class ClsArchivo {
public void guardararchivos(String nombre) {
try {
ConexionBd con = new ConexionBd();
PreparedStatement stm;
String consulta = "insert into image(name... | true |
e51ad8df8e57712c821b86a7f02f96e88a410a8f | Java | brenohff/medonline-backend | /src/main/java/br/com/medonline/service/EnderecoService.java | UTF-8 | 809 | 2.109375 | 2 | [] | no_license | package br.com.medonline.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.medonline.modal.Endereco;
import br.com.medonline.repository.EnderecoRp;
import br.com.medonline.service.exception.NotFound;
... | true |
9b081d18f19d3e80a73f7699215b2f77697e7688 | Java | marcusrogerio/driveLOG | /log/src/main/java/com/design3/log/sql/JourneyDataSource.java | UTF-8 | 4,955 | 2.75 | 3 | [] | no_license | package com.design3.log.sql;
import java.util.ArrayList;
import java.util.List;
import com.design3.log.model.Car;
import com.design3.log.model.Journey;
import com.design3.log.model.Journey.UseType;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.da... | true |
57980642b2e6829af73c458e1ba26da36dead42c | Java | Nandsgit/AlgorithmPractice | /LinkedList and Matrix Mul/CycleLinkedList .java | UTF-8 | 1,596 | 3.953125 | 4 | [] | no_license |
import static org.junit.Assert.*;
/**
* Description of solution: To find if the linked list countains a cycle or not.
* A cycle in a linked list means that some nodes are conencted in the linked list.
* This is an example of implementation of Floyd's Cycle Detection.
*
*/
public class CycleLinkedList {
/*... | true |
8be77376f814fc0607e1cd24c7f2fac281f77f1a | Java | maziesmith/LeetCode | /Reverse String II.java | UTF-8 | 1,334 | 3.921875 | 4 | [] | no_license | /*
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there are less than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and left t... | true |
f3e65f50226cf502c9405a2fae9ec3d017639c01 | Java | javachengwc/java-apply | /modules/frame/modules/ocean/src/main/java/com/ocean/merger/aggregation/AggregationUnitFactory.java | UTF-8 | 727 | 2.59375 | 3 | [] | no_license | package com.ocean.merger.aggregation;
/**
* 聚合函数结果集归并单元工厂
*/
public class AggregationUnitFactory {
public static AggregationUnit create(AggregationColumn.AggregationType type, Class<?> returnType) {
switch (type) {
case MAX:
return new ComparableAggregationUnit(false);
... | true |
7352b2b698a597381d6387156f517f25866f5a15 | Java | wangqinkuan/AndroidHomework | /app/src/main/java/es/source/code/adapter/NotOrderFoodAdapter.java | UTF-8 | 3,724 | 2.265625 | 2 | [] | no_license | package es.source.code.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
... | true |
e4a12a1bd1ce9fa435d3d25f6a7f686dde7caf30 | Java | CSC480-18S/Blue-Team | /Engine/src/main/java/Components/Validator.java | UTF-8 | 16,297 | 2.859375 | 3 | [
"MIT"
] | permissive | package Components;
import Models.GameConstants;
import Models.Move;
import Models.Space;
import Models.Tile;
import Models.TileGenerator;
import Session.Session;
import java.util.ArrayList;
/**
* @Author Bohdan Yevdokymov, Bill Cook
*
* Class to validate word and placement
*/
public class Valida... | true |
9db1cbb0d1d798f6c52d21381e2a93634f895ffe | Java | offbr/JAVA | /java6/src/pack/SwingTest2.java | UTF-8 | 1,642 | 3.015625 | 3 | [] | no_license | package pack;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
public class SwingTest2 extend... | true |
9d3b1ae0080223821524701c436c3ed79c3c73cd | Java | Team2168/2019_Main_Robot | /src/main/java/org/team2168/commands/hatchProbePivot/interlock/MovePivotToMBPosition.java | UTF-8 | 1,704 | 2.390625 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
3b9df088157835b930d8357201aff93d714ba8d7 | Java | DERDRAGON/design-pattern-learning | /src/main/java/com/der/visitorMode/version1/Client.java | UTF-8 | 801 | 2.90625 | 3 | [] | no_license | package com.der.visitorMode.version1;
import java.util.ArrayList;
import java.util.List;
/**
* @ClassName Client
* @Desctiption TODO
* @Author 曹世龙
* @Date 2019/7/27 2:38
* @Version 1.0
**/
public class Client {
public static void main(String[] args) {
List<Person> list = new ArrayList<>();
... | true |
0503bef8fa9987cc88f50d2446b8cff82eb77e01 | Java | enhancedsociety/firefly-android-demo | /app/src/main/java/com/enhancedsociety/firefly/AddressActivity.java | UTF-8 | 6,008 | 2.015625 | 2 | [
"ISC"
] | permissive | package com.enhancedsociety.firefly;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android... | true |
9faee695cd39a791c5333e7e4f2bda4d9191485e | Java | kylezimmerman/school-classmate-android | /app/src/main/java/com/prog3210/classmate/events/EventAdapter.java | UTF-8 | 3,505 | 2.703125 | 3 | [] | no_license | /*
EventAdapter.java
This class generates the ParseQueryAdapters for the Event object for querying an Event in
different ways.
Kyle Zimmerman, Justin Coschi, Sean Coombes
*/
package com.prog3210.classmate.events;
import android.content.Context;
import android.view.View;
import android.view.ViewGrou... | true |
390dac2959e58b3af0ac9652f82555c011644518 | Java | Gopalaanji/vlims_app | /app/src/main/java/dev/info/basic/viswaLab/AnalysisReportsPage/Fragments/AnalysisReportsLubeOilReportsFragment.java | UTF-8 | 21,637 | 1.515625 | 2 | [] | no_license | package dev.info.basic.viswaLab.AnalysisReportsPage.Fragments;
import android.app.Dialog;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.sup... | true |
7e9c2fb1efcae91b9bc4f8018cef5d1f8099767a | Java | vikas6101/ngbillingTelecom | /src/main/java/com/ngbilling/core/server/persistence/dto/mediation/MediationConfiguration.java | UTF-8 | 4,280 | 1.75 | 2 | [] | no_license | /*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein a... | true |
c10d6de9506ee3c263653898a22cfea8531179a1 | Java | Gali998/LasBrisas_HotelManagentApp | /app/src/main/java/com/example/hallresrvation/ContactUs.java | UTF-8 | 10,297 | 2.171875 | 2 | [] | no_license | package com.example.hallresrvation;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
... | true |
e62f256d2e716726d00f4f686afd9d3424444bba | Java | gabrielkirsten/uol-customer-api | /src/main/java/br/com/uol/customerapi/client/fallback/MetaWeatherClientFallbackFactory.java | UTF-8 | 436 | 1.820313 | 2 | [] | no_license | package br.com.uol.customerapi.client.fallback;
import br.com.uol.customerapi.client.MetaWeatherClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
@Component
public class MetaWeatherClientFallbackFactory implements FallbackFactory<MetaWeatherClient> {
@Override
publ... | true |
a898f7f8b8c26ddf32fd4a7fe016470c95deee96 | Java | MirkoMhlsn/SmartTV-App | /SmartHome/src/gui/Controller.java | UTF-8 | 12,376 | 1.898438 | 2 | [] | no_license | package gui;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.LineUnavailableExc... | true |
a08eca3fa0287bc363a00266d5774e1a09c26c60 | Java | misa527528/erp | /src/main/java/com/cqupt/mis/erp/service/product/DevelopingProductService.java | UTF-8 | 1,074 | 2.15625 | 2 | [] | no_license | package com.cqupt.mis.erp.service.product;
import com.cqupt.mis.erp.model.product.DevelopingProduct;
import java.util.List;
public interface DevelopingProductService {
/**
* 取出研发中的产品
* @param userUnique
* @author lx
* @return
*/
List<DevelopingProduct> findDevelopingProductsByUserUnique(String userUniq... | true |
feae006bdc7652cc9234d54413a4c87b971c1b36 | Java | isaavm/cadpessoaspps20141 | /CadastroPessoasExercicio/src/pessoas/controller/ComparadorDeTelefoneDecrescente.java | UTF-8 | 554 | 2.453125 | 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 pessoas.controller;
import java.util.Comparator;
import model.Pessoa;
/**
*
* @author Isaac
*/
public clas... | true |
67517d30af6245d4e4a222f026f2a344aeaa7353 | Java | deciding/organized_lintcode | /array/matrix/M__maximal square.java | UTF-8 | 977 | 3.25 | 3 | [] | no_license | package lintcode;
import java.util.*;
public class Solution {
/**
* @param matrix: a matrix of 0 and 1
* @return: an integer
*/
// key !! Min(mem[i-1][j],mem[i][j-1],mem[i-1][j-1])+1
// because e.g. a 3*3 square has 3 adjacent 2*2 squares at those 3 positions !!
public static int maxSquar... | true |
1becc2b0534407e03aad972408a5ef380dc2f97b | Java | cortizmardones/Springboot | /src/main/java/com/bolsadeideas/springboot/web/app/model/entity/Acceso.java | UTF-8 | 983 | 2.375 | 2 | [] | no_license | package com.bolsadeideas.springboot.web.app.model.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "accesos")
public class Acceso {
@Id
@GeneratedValue(strat... | true |
6f136f8bf31e192c312d6f35ee825a40e9e05d6f | Java | Manideep-aravapalli/Turbo-Care-Assignment | /app/src/main/java/com/example/turbocareassignment/view/SelectTransmissionActivity.java | UTF-8 | 3,628 | 1.984375 | 2 | [] | no_license | package com.example.turbocareassignment.view;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example... | true |
eb5f47fc99ccf385700858565efc1c85f3b5c19e | Java | adminDavin/hanfu | /hanfu-product-center/src/main/java/com/hanfu/product/center/model/DiscountCouponExample.java | UTF-8 | 46,762 | 2.078125 | 2 | [] | no_license | package com.hanfu.product.center.model;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class DiscountCouponExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table discount_coupon
*
* @mbg.generated... | true |
a04e199c6bdfbebae83dcc1095b8d82d64420fc1 | Java | salesiopark/ESPyHarp | /src/espyharp/TabPy.java | UTF-8 | 6,437 | 2.671875 | 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 espyharp;
import java.io.File;
import java.util.function.IntFunction;
import javafx.application.Platform;
import javafx.scene.... | true |
96dd5dd4ce1d704f14961a334148db053397f7cf | Java | NoPointExc/OJProjects | /LeetCode/56_mergeInterval/Test.java | UTF-8 | 597 | 3.125 | 3 | [] | no_license | //{1,3},{2,6},{8,10},{15,18}
import java.util.*;
class Test{
public static void main(String[] args){
//int[][] arr={{2,3},{4,5},{6,7},{8,9},{1,10}};
int[][] arr={{1,3},{2,6},{8,10},{15,18}};
List<Interval> intervals=new ArrayList<Interval> ();
for(int i=0;i<arr.length;i++){
Interval tmp=new Interval(arr[... | true |
080fa6efd360ae66bbd67fef4d827ae9705d4657 | Java | Julie0u812/OOP-2015 | /Java/Content/Bonus - SOLID/SOLID/5.D/com/solid/d/DMain.java | UTF-8 | 957 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.solid.d;
import com.solid.d.bad.BadPrintingService;
import com.solid.d.good.GoodPrintingService;
import com.solid.d.good.HtmlInvoicePrinter;
import com.solid.i.Invoice;
import com.solid.i.good.GoodInvoicePrinter;
public class DMain {
public static void main(String[] args) {
testBadD();
testGoodD();
... | true |
e967c2a6986f1f95283c073d434edbafc1c80f63 | Java | jbelyaeva/java_itgen | /itgen/src/test/java/tests/lkParent/ChatDialogOnlyWithGenaTest.java | UTF-8 | 660 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package tests.lkParent;
/* T-84 */
/* Ребенок без пробного. Открыть диалог и проверить, что диалог только с айтигеником.
*/
import app.testbase.TestBase;
import core.general.RunTestAgain;
import org.testng.annotations.Test;
public class ChatDialogOnlyWithGenaTest extends TestBase {
@Test(retryAnalyzer = RunTestAg... | true |
a4321aca3da2282747e360a616a52965fc665619 | Java | LarryGilbert/silverbullet-springcloud | /authorization-server/src/main/java/com/tianque/service/impl/UserServiceImpl.java | UTF-8 | 579 | 2.046875 | 2 | [] | no_license | package com.tianque.service.impl;
import com.tianque.entity.UserEntity;
import com.tianque.repository.UserRepository;
import com.tianque.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Created by QQ on 2018/7/13.
*/
@Service("u... | true |
5c19928662a598406ffe2a3d32a5f3c571ed786c | Java | maoyueqiang/neuedu1-project-business-interface | /src/main/java/com/neuedu/service/ICartService.java | UTF-8 | 769 | 1.96875 | 2 | [] | no_license | package com.neuedu.service;
import com.neuedu.common.ServerResponse;
public interface ICartService {
//向购物车中添加商品
public ServerResponse add(Integer userId,Integer productId,Integer count);
//显示购物车列表
public ServerResponse list(Integer userId);
//更新购物车中某商品的数量
public ServerResponse update(Int... | true |
a3fc3da6e3f295a6b589cc420f58c1630a022e46 | Java | hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism | /Variant Programs/4-4/5/Waking.java | UTF-8 | 1,373 | 2.625 | 3 | [
"MIT"
] | permissive | public class Waking extends RefillingGambit {
protected synchronized void attachAnnexes(Chapter pagination, Mechanisms afootSummons) {
if (Squares[existing] == null) {
Squares[existing] = pagination;
this.proceedCursor();
return;
}
while (Squares[existing].generateAllocateTreat() != a... | true |
3a1d28d95610c8e6be98977f6b310af56a8d3e8f | Java | aksrajvanshi/YumDrop | /src/main/java/com/app/yumdrop/Controller/InitialPageLoadController.java | UTF-8 | 495 | 1.859375 | 2 | [] | no_license | package com.app.yumdrop.Controller;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@ComponentScan
@Controller
public class InitialPageLoadController {
/**
* Loads the initial publi... | true |
30f8b4dcb40045fd5e7581a17f7682d2297e2651 | Java | jlc488/Java-Bitwise-Operator-Samples | /ca.bcit.comp1451.Session10LabB/src/ca/bcit/comp1451/Session10LabB/InsufficientFundException.java | UTF-8 | 230 | 2.046875 | 2 | [] | no_license | package ca.bcit.comp1451.Session10LabB;
public class InsufficientFundException extends Exception{
/**
*
*/
private static final long serialVersionUID = 1L;
public InsufficientFundException (String m) {
super(m);
}
}
| true |
498c2d12a7a7d4a7cff757b1a152c2436dd4b122 | Java | lenito7606/nihongo | /app/src/main/java/com/lennin/aniceto/nihongonaraimashou/Lesson8_Vocab_Fragment.java | UTF-8 | 6,770 | 2.203125 | 2 | [] | no_license | package com.lennin.aniceto.nihongonaraimashou;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.ExpandableListView;
import android.widget.... | true |
660ff9384173ca108eb2edcf5d416cefed27184c | Java | CharmingW/AlgorithmPractice | /JD/src/com/charmingwong/Pocket.java | UTF-8 | 3,323 | 3.453125 | 3 | [] | no_license | package com.charmingwong;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Pocket {
/** 请完成下面这个函数,实现题目要求的功能 **/
/**
* 当然,你也可以不按照这个模板来作答,完全按照自己的想法来 ^-^
**/
static String process(String pocket, String card) {
if (pocket == null || "".equals(pocket) || car... | true |
5fe725aa5eaad5b8c40361746c669cc76cdfc060 | Java | Rutabus/Rutas | /app/src/main/java/com/aqp/rutabus/rutabusaqp/ui/MapsActivity.java | UTF-8 | 5,028 | 2.015625 | 2 | [] | no_license | package com.aqp.rutabus.rutabusaqp.ui;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.util.Log;
import com.aqp.rutabus.rutabusaqp.App;
import com.aqp.rutabus.r... | true |
6b988f32f9d9df34c5fa6cea739580ecd2bc5196 | Java | vittunyuta-aom/IPScaner | /src/scanners/Scanner.java | UTF-8 | 5,265 | 2.828125 | 3 | [] | no_license | package scanners;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
public class Scanner{
private static Map<String, Integer> scannedTime = new LinkedHashMap<String, Integer>();
private static List<ScannedDevice... | true |
4b8cff51cfa5d19c71aa363e22ff61a07e66b4a7 | Java | dacommweb/ChurchApp | /app/src/main/java/com/suntechnology/churchapp/helper/CodingMsg.java | UTF-8 | 444 | 1.929688 | 2 | [] | no_license | package com.suntechnology.churchapp.helper;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
/**
* Created by Flexy on 9/19/2015.
*/
public class CodingMsg {
public static void l(String message){
if(Global.SHOWLOGS){
Log.d("DAV", message);
}
... | true |
deaa8aa2cfbd17ec4f242bb1c0f5da2588426278 | Java | meenacse97/guviii | /rotate.java | UTF-8 | 317 | 3 | 3 | [] | no_license | package EF;
import java.util.*;
public class rotate {
public static void main(String[] args){
int n=7,k=3;
int[] a={1,2,3,4,5,6,7};
int[] ab=new int[n];
for(int i=0;i<a.length;i++){
ab[i]=a[i]-k;
if(ab[i]<=0){
System.out.print(ab[i]+n);
}
else{
System.out.print(ab[i]);
}
}
}
}
| true |
1d95cf6d17551ab006baeafaad260456f61fb5c8 | Java | kayamuhendiss/spring4-core-maven | /SpringWeek03/src/main/java/com/_03/sterotype/jsr330/service/EmployeeService.java | UTF-8 | 167 | 1.851563 | 2 | [] | no_license | package com._03.sterotype.jsr330.service;
import com._03.sterotype.jsr330.domain.Employee;
public interface EmployeeService {
public void save(Employee emp);
}
| true |
c7edb22daee19c5f73017dafbcda068fd4ee3824 | Java | Edwards9489/estatge-agent-system | /MSc Properties Client/src/client_gui/reporting/ReportingHome.java | UTF-8 | 4,959 | 2.421875 | 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 client_gui.reporting;
import client_gui.IntegerListener;
import client_gui.systemConfig.JTreeInfo;
import java.awt.BorderLayou... | true |
cb60ca977c264b1af117e42f4b461882a30df185 | Java | viniciusjps/leda-roteiros | /PP3-01-Prova-SkipListFromBST-environment/src/main/java/adt/skipList/fromBST/SkipListFromBSTImpl.java | UTF-8 | 1,183 | 2.90625 | 3 | [] | no_license | package adt.skipList.fromBST;
import adt.bst.BST;
import adt.bst.BSTNode;
import adt.bt.BTNode;
import adt.skipList.SkipListImpl;
import adt.skipList.SkipListNode;
public class SkipListFromBSTImpl extends SkipListImpl<Integer> implements SkipListFromBST<Integer> {
public SkipListFromBSTImpl(int maxHeight)... | true |
50977bac40ba957348226c56fa60ffc70ea987d5 | Java | WooYu/Karaok | /app/src/main/java/com/clicktech/snsktv/entity/SearchBySingerNameResponse.java | UTF-8 | 5,305 | 2.03125 | 2 | [] | no_license | package com.clicktech.snsktv.entity;
import com.clicktech.snsktv.arms.base.BaseResponse;
import java.util.List;
/**
* Created by Administrator on 2017/4/24.
*/
public class SearchBySingerNameResponse extends BaseResponse {
private List<SongListBean> songList;
public List<SongListBean> getSongList() {
... | true |
d42f844976525260667a9ef7e4fec21c18d1a091 | Java | CSEKimDoYeon/Daemun | /app/src/main/java/com/example/kimdoyeon/daemun/Daemun_DB/Events.java | UTF-8 | 2,283 | 2.453125 | 2 | [] | no_license | package com.example.kimdoyeon.daemun.Daemun_DB;
import android.graphics.Bitmap;
/**
* Created by KimDoYeon on 2017-12-05.
*/
public class Events {
public String event_key;
public String event_name;
public String event_date;
public String event_place;
public String event_img;
public String e... | true |
44597f06e0b66130e2404b5a4685b8071d4d5525 | Java | sirajtechy/codecamp | /src/com/FindSpecificString.java | UTF-8 | 934 | 3.125 | 3 | [] | no_license | package com;
import java.io.BufferedReader;
import java.io.FileReader;
public class FindSpecificString {
public static void main(String[] args) {
String fileName = "C:\\Users\\siraj\\Desktop\\txtfile.txt" ;
String findString ;
try {
BufferedReader bufferReader = new BufferedReade... | true |
d10816d001828bfeb7ef2b2e53440b829f2fd4ff | Java | RjGreens/codesimple | /hiby/src/hibysad/askForAccessModifier/AccessModifierInterface.java | UTF-8 | 387 | 1.804688 | 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 hibysad.askForAccessModifier;
/**
*
* @author ajay
*/
public interface AccessModifierInterface {
String askForAccessModiF... | true |
8a471542e8be5372be3bf259f311199f7b990bc3 | Java | ChengGeng97/duke | /src/main/java/DukeUi.java | UTF-8 | 3,423 | 3.25 | 3 | [] | no_license | /**
* A class that stores all of Duke's mesages as Strings. These are split into Greetings, Feedback and Error Messages.
*/
public class DukeUi {
//Greeting Messages
public static final String GREET_HELLO
= "Heya! It's friendly neighbourhood Duke at your service!\nWhat's the plan today?";
... | true |
5b7b0bcaa0a1d39f6e97e5fb69233616a70675fc | Java | guidograzioli/heraldry | /heraldry/heraldry-network/src/main/java/com/undebugged/heraldry/messages/ManualControlMessage.java | UTF-8 | 3,069 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2009-2011 jMonkeyEngine
* 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 ... | true |
42d4a9ee979a2dd47b4d783a417d1f1fd56a7201 | Java | ThanhDong272/G33_QLNhaSach | /60 Realisation/Source Code/QuanLyNhaSach/app/src/main/java/com/qat/android/quanlynhasach/admin/AddBookActivity.java | UTF-8 | 9,489 | 1.976563 | 2 | [] | no_license | package com.qat.android.quanlynhasach.admin;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.wid... | true |
57dcb5bcf01dc5b186ab693cfcf47bdd09600074 | Java | jacquesmilitello/legaldocml | /legaldocml-core/src/main/java/io/legaldocml/akn/element/Mapping.java | UTF-8 | 5,538 | 1.882813 | 2 | [] | no_license | package io.legaldocml.akn.element;
import com.google.common.collect.ImmutableMap;
import io.legaldocml.akn.AknObject;
import io.legaldocml.akn.attribute.MappingAtts;
import io.legaldocml.akn.type.AgentRef;
import io.legaldocml.akn.type.EidRef;
import io.legaldocml.akn.type.EventRefRef;
import io.legaldocml.akn.type.Ro... | true |
29048e3b856bab35f6461f2bff845253ec7d6ee9 | Java | EEIT10301/PurchasingSystem | /PurchasingSystem/src/main/java/Account/dao/PO_Vendor_InfoIDao.java | UTF-8 | 441 | 1.820313 | 2 | [] | no_license | package Account.dao;
import java.util.List;
import Account.model.PO_Vendor_InfoBean;
public interface PO_Vendor_InfoIDao {
public abstract PO_Vendor_InfoBean select(String id);
public abstract List<PO_Vendor_InfoBean> select();
public abstract PO_Vendor_InfoBean insert(PO_Vendor_InfoBean bean);
... | true |
9f617b88025c70ed906bff240918dae271f94ddd | Java | zzMOM/CodingInterview | /chapter1/PermutationStrings.java | UTF-8 | 1,166 | 4.1875 | 4 | [] | no_license | package chapter1;
import java.util.Arrays;
/**
*
* 1.3 Given two strings, write a method to decide if one is a permutation of the other.
* (Write a method to decide if two strings are anagrams or not)
* case sensitive???
* white space is significant????
*
* The solutions assume that case sensitive and whitesp... | true |
98a998e30464d6b1975e85377708bcc202ec2be9 | Java | chriptus13/Circuit-Console | /src/view/Panel.java | UTF-8 | 3,711 | 3.234375 | 3 | [] | no_license | package view;
import isel.leic.pg.Console;
import model.Circuit;
import model.Position;
import view.cell.CellView;
import java.awt.event.KeyEvent;
public class Panel {
private Circuit model;
private CellView[][] gridCV;
private long startTime;
/**
* Wait the user to press the key 'Y' or 'N'
... | true |
d8b552409bdaf0c4aebe136d3fe8c27116548877 | Java | PPSHREY/search_karigar | /app/src/main/java/com/scoutlabour/activities/AddNewAddressActivity.java | UTF-8 | 19,738 | 1.835938 | 2 | [] | no_license | package com.scoutlabour.activities;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.os.Handler;
import android.support.annotation.IdRes;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v... | true |
3bf1a36dbb6ff23ed2defb5247119331085b8220 | Java | IanCoolidge0/3dEngine | /src/ic/lwjglgame/game/Model.java | UTF-8 | 1,487 | 2.671875 | 3 | [] | no_license | package ic.lwjglgame.game;
import ic.lwjglgame.math.Matrix4f;
import ic.lwjglgame.math.Vector3f;
public class Model {
private int vaoId;
private int size;
private int texture;
private Vector3f position;
private Vector3f rotation;
private float scale;
public Model(int vaoId, int indicesId, int size, Vector... | true |
48c66bb09f88de7fc22b8e66879eecb7b2424163 | Java | yiyiyayahu/2nd_round | /Queue_Stack/Basic Calculator.java | UTF-8 | 4,191 | 3.921875 | 4 | [] | no_license | /*
Implement a basic calculator to evaluate a simple expression string.
The expression string may contain open ( and closing parentheses ),
the plus + or minus sign -, non-negative integers and empty spaces .
You may assume that the given expression is always valid.
Some examples:
"1 + 1" = 2
" 2-1 + 2 " = 3
"(1+(4... | true |
85ca098e4b5a1db89d15331276d8d722d7f9081d | Java | danfmaia/JavaChess | /src/gui/PiecesDragAndDropListener.java | UTF-8 | 3,123 | 3 | 3 | [] | no_license | package gui;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.List;
public class PiecesDragAndDropListener implements MouseListener, MouseMotionListener {
private List<GuiPiece> guiPieces;
private ChessGui chessGui;
private int dr... | true |
0ae7a21ab83b3fde850169db8739a9dfbf167a2d | Java | alessiogambi/tapestry5-cli | /src/main/java/org/gambi/tapestry5/cli/services/internal/impl/BridgeCLIOptionProviderImpl.java | UTF-8 | 1,709 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package org.gambi.tapestry5.cli.services.internal.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.gambi.tapestry5.cli.data.CLIOption;
import org.gambi.tapestry5.cli.services.internal.BridgeCLIOptionProvider;
public class BridgeCLIOptionProviderImpl ... | true |