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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
451d732596a1b5b55a8592fc1ca30aa00a222ccf | Java | OverCry/Man-Kalah | /src/kalah/House.java | UTF-8 | 153 | 1.875 | 2 | [] | no_license | package kalah;
import kalah.Interface.IHouse;
public class House extends Storage implements IHouse {
public House (){
_amount = 0;
}
}
| true |
08894f4462731ed19253d6c72c090e436987708a | Java | riddy6421/Braintree-Nigeria | /Matimatiks-android/app/src/main/java/matimatiks/matimatiks/Summary.java | UTF-8 | 6,568 | 1.960938 | 2 | [] | no_license | package matimatiks.matimatiks;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.... | true |
7de79ab7dd70cc2e1e15cb2afea31c1ae3cd2a07 | Java | Squizen/ClickAndGo | /app/src/main/java/breakthecode/com/clickandgo/interfaces/SharedPreferencesHelper.java | UTF-8 | 642 | 1.914063 | 2 | [] | no_license | package breakthecode.com.clickandgo.interfaces;
import java.util.ArrayList;
import java.util.List;
import breakthecode.com.clickandgo.entity.City;
import breakthecode.com.clickandgo.entity.UserTicket;
public interface SharedPreferencesHelper {
boolean isCityFromPicked();
void setCityFromPicked(boolean isPi... | true |
e39da9143c3dbf04eb3ef2f517b4487c447bb2fe | Java | Venky9630/my-practice-questions | /myProject/src/myProject/Private_Override.java | UTF-8 | 545 | 2.953125 | 3 | [] | no_license | package myProject;
public class Private_Override {
private void m1() {
System.out.println("A m1");
}
static void m2() {
System.out.println("A m2");
}
}
class B15 extends Private_Override{
private void m1() {
System.out.println("B m1");
}
static void m2() {
System.out.println("B m2");... | true |
fbcb0ccb430231f62f8cca281dc71b4d30650206 | Java | Saladilb/JAVA_IT_PARK_WORK | /HomeWorks/Task8/Program.java | UTF-8 | 1,802 | 3.578125 | 4 | [] | no_license |
import java.util.Random;
public class Program {
Random random = new Random();
int numberOfRows;
int numberOfColumns;
int [][] matrix;
private void run() {
gettingRandomMatrix();
showArray("Случайно сгенерированная матрица для задачи: ");
System.out.println();
Sys... | true |
e3a00b0430f1434b01c6c1cbfc2711dffa8c537d | Java | Ad115/My-Processing-sketchbook | /Processing tutorials/Interactivity_MisticBalls/application.linux64/source/mistic_balls.java | UTF-8 | 1,111 | 2.28125 | 2 | [] | no_license | import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
import java.io.OutputStream;
import jav... | true |
f5953b93ebd8638f32aa8d32916c618ebce43a77 | Java | MrrrLuiigii/EternityWars-Backend | /Api/src/main/java/com/eternitywars/api/DAL/Contexts/Lobby/LobbyHibernateContext.java | UTF-8 | 681 | 2.390625 | 2 | [] | no_license | package com.eternitywars.api.DAL.Contexts.Lobby;
import com.eternitywars.api.Interfaces.Lobby.ILobbyContext;
import com.eternitywars.api.Models.Lobby;
import com.eternitywars.api.Models.Player;
public class LobbyHibernateContext implements ILobbyContext {
@Override
public boolean JoinLobby(Lobby lobby, Player... | true |
0cb09ab7953e33d1a0365afb7cdbc1f919d99629 | Java | rafapereira/spaceprobe | /src/main/java/elo7/spaceprobe/service/spec/NavigationService.java | UTF-8 | 362 | 1.90625 | 2 | [] | no_license | package elo7.spaceprobe.service.spec;
import elo7.spaceprobe.domain.Field;
import elo7.spaceprobe.domain.LandReport;
import elo7.spaceprobe.domain.probe.Probe;
public interface NavigationService {
String createField(int x, int y);
LandReport landProbe(Probe probe);
Boolean moveProbe(int probeId, String... | true |
253e23bb04fcdce054571d184eb5fde60d12be15 | Java | irmate210/utm | /A-Lab 2 APPOO/APPOO2_Max/src/CustomQueue.java | UTF-8 | 645 | 3.59375 | 4 | [] | no_license | import java.util.*;
public class CustomQueue {
private Queue<Masini> queue;
public CustomQueue(){
this.queue = new LinkedList<>();
}
Queue<Masini> GetQueue(){
return this.queue;
}
void AddElement(Masini obj){
queue.add(obj);
}
void Print(){
System.out... | true |
a93f8a8e4b523faed8aa58afb020d228be1a3cbf | Java | raisercostin/exiftool | /src/main/java/com/thebuzzmedia/exiftool/CleanupTimerTask.java | UTF-8 | 893 | 2.984375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.thebuzzmedia.exiftool;
import java.util.Timer;
import java.util.TimerTask;
/**
* Class used to represent the {@link TimerTask} used by the internal auto
* cleanup {@link Timer} to call {@link ExifToolNew3#close()} after a specified
* interval of inactivity.
*
* @author Riyad Kalla (softw... | true |
28eed200a671c2a942ea266db06bc203d9da5768 | Java | dhirajn72/allmylocalstuff | /MAVEN/CoreTest/src/main/java/com/java/core/thread/Test.java | UTF-8 | 698 | 3.484375 | 3 | [] | no_license | package com.java.core.thread;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Test {
public static void main(String[] args) {
TestA testA = new TestA();
ExecutorService executorService = Executors.newFixedThreadPool(3);
for (int i = 0; i < 5; i++) {
executorS... | true |
6a36d0531a11368d612ee6e5bc6ba8dd64e3c4c1 | Java | lkjust08/distributed-transaction-process | /reliable-message-transaction/rm-account/src/main/java/com/hason/dtp/account/controller/UserController.java | UTF-8 | 1,248 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.hason.dtp.account.controller;
import com.hason.dtp.account.api.UserApi;
import com.hason.dtp.account.entity.User;
import com.hason.dtp.account.service.UserService;
import com.hason.dtp.core.support.MediaTypes;
import com.hason.dtp.core.utils.result.Result;
import com.hason.dtp.core.utils.result.ResultBuild... | true |
07a9d99d3c8dd3dc9f50e4fbf3a1901103735324 | Java | CruiseZhang/SparkTrafficProject | /Codes/SecondPart/SelfDefineAccumulator.java | UTF-8 | 5,250 | 3.421875 | 3 | [] | no_license | package com.bjsxt.spark.skynet;
import com.bjsxt.spark.constant.Constants;
import com.bjsxt.spark.util.StringUtils;
import org.apache.spark.util.AccumulatorV2;
/**父类为AccumulatorV2<String, String>
* isZero: 当AccumulatorV2中存在类似数据不存在这种问题时,是否结束程序。
* copy: 拷贝一个新的AccumulatorV2
* reset: 重置AccumulatorV2中的数据
* add: 操作数据累加... | true |
28cea1e204a816c912585aff869e7b330352068d | Java | SuperStep/testing-platform-vaadin | /src/main/java/com/sust/testing/platform/backend/repository/TokensRepository.java | UTF-8 | 468 | 1.953125 | 2 | [
"Unlicense"
] | permissive | package com.sust.testing.platform.backend.repository;
import com.sust.testing.platform.backend.entity.User;
import com.sust.testing.platform.backend.entity.VerificationToken;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Jp... | true |
1f6926153734c9c9e6b6e273f3603d9a96eb07e3 | Java | BlueCodeSystems/opensrp-server | /opensrp-connector/src/main/java/org/opensrp/connector/rapidpro/AnnouncementMessage.java | UTF-8 | 427 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package org.opensrp.connector.rapidpro;
public class AnnouncementMessage extends MessageFactory {
@Override
public Message getClientType(ClientType type) {
// TODO Auto-generated method stub
Message message = null;
if (type == ClientType.mother) {
message = new WomanAnnouncementMessage();
} else if (typ... | true |
4568e343a41b970cef79bbb45574ac9757071492 | Java | suwongogogo/mutube | /mutube/src/User/Service/ChangePasswordService.java | UTF-8 | 991 | 2.640625 | 3 | [] | no_license | package User.Service;
import java.sql.Connection;
import java.sql.SQLException;
import Connection.ConnectionProvider;
import User.DAO.UserDAO;
import User.Model.User;
public class ChangePasswordService {
private static ChangePasswordService instance = new ChangePasswordService();
private ChangePasswordS... | true |
5c39547dadfafd9592fd6db690014ee40940ecde | Java | Jimaloo/GADSLeaderboard-Application | /app/src/main/java/com/jim/gadsleaderboard/fragments/SubmissionResultDialogFragment.java | UTF-8 | 2,224 | 2.265625 | 2 | [] | no_license | package com.jim.gadsleaderboard.fragments;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageButton;
import android.widg... | true |
5970293046afbc361be40748b78a860509940dac | Java | iron2014hieu/bansachonline | /app/src/main/java/iron2014/bansachonline/ApiRetrofit/InTerFace/ApiInTerFaceHoadon.java | UTF-8 | 1,922 | 1.78125 | 2 | [] | no_license | package iron2014.bansachonline.ApiRetrofit.InTerFace;
import java.util.List;
import iron2014.bansachonline.model.CTHD;
import iron2014.bansachonline.model.Hoadon;
import iron2014.bansachonline.model.KhuyenMai;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface ApiInTerFa... | true |
c37c1ea377b6e48a34acc12bd90cda1c98d12c6f | Java | tientm0411/Relationship_Management_12_03 | /RM_12_03/app/src/main/java/lofy/fpt/edu/vn/rm_12_03/entity/UserAccount.java | UTF-8 | 1,475 | 2.5 | 2 | [] | no_license | package lofy.fpt.edu.vn.rm_12_03.entity;
public class UserAccount {
public String accountId;
public String accountName;
public String accountPassword;
public String getAccountId() {
return accountId;
}
public String getAccountName() {
return accountName;
}
public Stri... | true |
22e2c7606f68aec1272e0a19cded7c2783a78585 | Java | Danushan99/savari_food_app | /app/src/main/java/mad/example/jeyavarman/Tastypie.java | UTF-8 | 777 | 1.921875 | 2 | [] | no_license | package mad.example.jeyavarman;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Tastypie extends AppCompatActivity {
private Button propaybtn;
@Override
protected void onCreate(Bundl... | true |
f628741ce358bdd7671254607532f97ab71d2e65 | Java | shirayner/spring-boot-sample | /sample-task/sample-schedule-quartz/src/main/java/com/ray/study/smaple/sb/schedule/quartz/controller/QuartzJobController.java | UTF-8 | 2,455 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.ray.study.smaple.sb.schedule.quartz.controller;
import com.ray.study.smaple.sb.schedule.quartz.entity.QuartzJob;
import com.ray.study.smaple.sb.schedule.quartz.exception.BadRequestException;
import com.ray.study.smaple.sb.schedule.quartz.service.QuartzJobService;
import lombok.extern.slf4j.Slf4j;
import or... | true |
5f84256147435c3c4d41c7b5d40ebb4a5696f035 | Java | binbin0915/learn-java-base-9-to-20 | /jvm/src/main/java/com/flydean/TestVolatile1.java | UTF-8 | 606 | 3.109375 | 3 | [] | no_license | package com.flydean;
/**
* @author wayne
* @version TestVolatile, 2020/6/30
*/
public class TestVolatile1 {
private static int int1;
private static volatile int int2;
private static int int3;
private static int int4;
private static int int5;
public static void main(String[] args) throws I... | true |
d38d0051b14b46d27d94b938902ce528bf66e806 | Java | shixinwei17/multimediaapp | /app/src/main/java/com/neusoft/shixinwei/multimediaapp/activity_register.java | UTF-8 | 1,294 | 2.28125 | 2 | [] | no_license | package com.neusoft.shixinwei.multimediaapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class activity_register extends AppCompatActivity {
@Ove... | true |
b27afb33c1ab905d4203c4bd0d660f32bda7551b | Java | itgabrut/Shop2 | /dao/src/main/java/com/ilya/model/Address.java | UTF-8 | 1,575 | 2.59375 | 3 | [] | no_license | package com.ilya.model;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
* Created by ilya on 20.08.2016.
* Address
*/
@Embeddable
public class Address {
public Address() {
}
public Address(String country, String city, String zip, String street, String house, String app) {
... | true |
e782267ed7b9c038ab40e615d6e44e5b669da70e | Java | jerickson54/UNSWBOOKassign2 | /src/db/Friends.java | UTF-8 | 2,895 | 2.515625 | 3 | [] | no_license | package db;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "Friends")
public class Friends {
private String name;
private String emailAddress;
private String dob;
private String gender;
private int age;
priva... | true |
05b2df9e5ab84815e5c9864e1968a72362578175 | Java | Levischwartzberg/JavaOOP | /common/src/common/helpers/DateHelper.java | UTF-8 | 314 | 2.375 | 2 | [] | no_license | package common.helpers;
public class DateHelper {
public static java.sql.Date utilDateToSqlDate(java.util.Date date) {
return new java.sql.Date(date.getTime());
}
public static java.util.Date sqlDateToUtilDate(java.sql.Date date) {
return new java.util.Date(date.getTime());
}
}
| true |
3f74ea09aab5e24099c660cd6a820711297aaef4 | Java | bulejava/jetty-debug | /jetty-util/src/test/java/org/eclipse/jetty/util/thread/strategy/ExecuteProduceConsumeTest.java | UTF-8 | 10,192 | 2.421875 | 2 | [] | no_license | //
// ========================================================================
// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | true |
c0624952e46ca896d90990a1f4a5ed1d0bfb9dc8 | Java | RushaliSetia/java-core-and-advanced | /BigBangApp/src/question1/OnlineCustomer.java | UTF-8 | 942 | 2.765625 | 3 | [] | no_license | package question1;
public class OnlineCustomer extends Customer {
private String discountCoupon;
public OnlineCustomer() {
super();
}
public OnlineCustomer(String customername, String customertype, int customerid, String discountCoupon) {
super(customername, customertype, customerid);
this.dis... | true |
d6621660e05eec32c84c69ae3e42c7d94104ff03 | Java | eFaps/eFaps-WebApp-Install | /src/main/efaps/ESJP/org/efaps/esjp/ui/rest/DashboardController_Base.java | UTF-8 | 10,558 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2003 - 2020 The eFaps Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | true |
98725e68fd88c6b0ae74020e35b1327d8e78bc9f | Java | cspack/codepath-Tweety | /app/src/main/java/com/cspack/tweety/interfaces/ZoomThumbnailInterfaceListener.java | UTF-8 | 274 | 1.796875 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.cspack.tweety.interfaces;
import android.view.View;
import android.widget.ImageView;
/**
* Created by chris on 11/6/16.
*/
public interface ZoomThumbnailInterfaceListener {
ImageView getZoomImageView();
void zoomImageFromThumb(final View thumbView);
}
| true |
2d73f88ebef142a78838873401b05a4e1df8c893 | Java | jojozhai/hdcy-android2 | /app/src/main/java/com/hdcy/app/model/Comments.java | UTF-8 | 490 | 2.046875 | 2 | [] | no_license | package com.hdcy.app.model;
import java.io.Serializable;
import java.util.List;
/**
* Created by WeiYanGeorge on 2016-08-23.
*/
public class Comments implements Serializable {
private static final long serialVersionUID = 1L;
private List<CommentsContent> commentsContents ;
public void setContent(Lis... | true |
81f56e4194ffd9a34df20409d9973f1191c4e231 | Java | hhammidd/app2 | /src/main/java/com/hamidApp1/dao/reportTime/ReportMonthDao.java | UTF-8 | 210 | 1.78125 | 2 | [] | no_license | package com.hamidApp1.dao.reportTime;
import com.hamidApp1.model.reportTiming.ReportMontlyListBean;
import java.util.List;
public interface ReportMonthDao {
List<ReportMontlyListBean> reportMonthly();
}
| true |
ce80a11f56fa844516d2c00b1f5e95b3008ea7e0 | Java | kamta0425/AttendanceManager | /app/src/main/java/attendance/Manager/Record.java | UTF-8 | 1,213 | 2.484375 | 2 | [] | no_license | package attendance.Manager;
import java.util.Locale;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.TextView;
public class Record extends Activity {
TextView total, percent, attended;
@Override
protected void onCreate(Bu... | true |
90c581d69271c24730a4bfd4b23a3be19365a1c3 | Java | naufalislam/Belajar-Mengaji | /app/src/main/java/com/pale/belajarmengaji/KuisTebakBacaanActivity.java | UTF-8 | 1,788 | 1.945313 | 2 | [] | no_license | package com.pale.belajarmengaji;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageButton;
public class KuisTebakBacaanActivity extends AppCompatActivity {
ImageButton pi... | true |
e7395712f09954741a32ba93427e3eaf549afadf | Java | solesdcorona/arki | /jif/base/base-commons/src/test/java/com/walmart/jif/util/test/FileUtilTestCase.java | UTF-8 | 1,194 | 2.421875 | 2 | [] | no_license | package com.walmart.jif.util.test;
import java.io.File;
import java.io.IOException;
import junit.framework.TestCase;
import com.walmart.jif.util.FileUtil;
import org.junit.Test;
/**
* Class template for FileUtilTestCase.
*
* @author jcorona
* @since 5/11/2015 - 04:48:39 PM
*/
public class FileUtilTestCase ex... | true |
4bb6ab6be31a00aa486359d8ab39e714b088d03b | Java | ddamddi/design_pattern | /src/main/java/org/jsoup/examples/Wikipedia.java | UTF-8 | 1,030 | 2.703125 | 3 | [] | no_license | package org.jsoup.examples;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
/**
* A simple example, used on the jsoup website.
*/
public class Wikipedia {
public static void main(String[] args) throws IOExcep... | true |
4b7302fe0713e04d8cda4b5d1a8b800afb54577b | Java | petcrystal/GithubExercise | /app/src/main/java/com/zlm/project/connect/exception/CustomException.java | UTF-8 | 1,465 | 2.484375 | 2 | [] | no_license | package com.zlm.project.connect.exception;
import com.google.gson.JsonParseException;
import android.net.ParseException;
import org.json.JSONException;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
/**
* @author Milla
* @create 2019/3/27
*/
publi... | true |
6102686101d6b7385c4f3ddf3b6b82fadea8f987 | Java | ybak/casc-framework | /csas-framework/hoomsun-loan-impl/src/main/java/com/hoomsun/after/server/impl/SettleCustomerServerImpl.java | UTF-8 | 3,385 | 2.078125 | 2 | [] | no_license | /**
* Copyright www.hoomsun.com 红上金融信息服务(上海)有限公司
*/
package com.hoomsun.after.server.impl;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hoomsun.after.api.model.param.SettleCustomerReq;... | true |
89ae19b23f2eabc061632f04644dd3dfb35f39ec | Java | vincentkslim/Poker | /PokerClient.java | UTF-8 | 23,617 | 3.09375 | 3 | [] | no_license | /* Vincent Lim
* PokerClient.java
* Client side program of the poker game
*/
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.util.*;
public class PokerClient extends JFrame implements ActionListener, Runnable {
private... | true |
b12e7a9bac7bbb36cbdecb73a2b5a627bd5db378 | Java | YuqingDuan/JavaSE_reflect | /reflect/src/ref_08/ToolDemo.java | UTF-8 | 354 | 2.578125 | 3 | [] | no_license | package ref_08;
import ref_01.Person;
public class ToolDemo {
public static void main(String[] args) throws Exception {
Person p = new Person();
Tool t = new Tool();
t.setProperty(p, "name", "林青霞");
t.setProperty(p, "age", 27);
System.out.println(p);
System.out.prin... | true |
5aba3ea53c16d715f672f28d7f23b9caaaf32b8f | Java | Ncapitan/TrafficSim | /TrafficLights.java | UTF-8 | 994 | 3.171875 | 3 | [] | no_license | package edu.csc150;
import greenfoot.Actor;
public class TrafficLights extends Actor {
static String[] lights = new String[]{"images/trafficLightGreen.png", "images/trafficLightYellow.png", "images/trafficLightRed.png"};
public int rotation;
private int COLOR;
private int count;
private static final int NS = 1... | true |
785413383e596bb2eeeee6716e1be77e4e8648d3 | Java | rexlManu/mionge | /server/src/main/java/eu/miopowered/mionge/server/networking/packet/PacketState.java | UTF-8 | 509 | 2.4375 | 2 | [] | no_license | package eu.miopowered.mionge.server.networking.packet;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Accessors;
import java.util.Arrays;
@AllArgsConstructor
@Getter
@Accessors(fluent = true)
public enum PacketState {
HANDSHAKE(0), STATUS(1), LOGIN(2), PLAY(3);
private i... | true |
280f5e299a5687dba92f2f13f4b8fe98b371032e | Java | carlos5240/CursoSpring | /MicroservicioAp/src/main/java/com/org/microservice/ap/services/AlumnoService.java | UTF-8 | 345 | 1.898438 | 2 | [] | no_license | package com.org.microservice.ap.services;
import java.util.List;
import java.util.Optional;
import com.org.microservice.commons.alumnos.model.entity.Alumno;
import com.org.microservice.commons.services.CommonService;
public interface AlumnoService extends CommonService<Alumno>{
public List<Alumno> findByNombreOrA... | true |
28e5d99627bbc4dd54a6e20f661ad4d9be93722f | Java | fairyhawk/beiker-Deprecated | /src/com/beike/dao/businessbackground/VipStatisticsDao.java | UTF-8 | 3,524 | 2.25 | 2 | [] | no_license | package com.beike.dao.businessbackground;
import java.util.List;
import java.util.Map;
public interface VipStatisticsDao {
/**
* 查询当天交易信息
* @param dateStart 开始日期
* @param dateEnd 结束日期
* @return
*/
public List<Map<String,Object>> queryTrxOrderInfo(String dateStart,String dateEnd);
/**
... | true |
598e5f748bbf233783eb72eeeabc574bc1a237dd | Java | mrly202016/algorithm016 | /Week_02/src/main/java/TwoSum.java | UTF-8 | 446 | 3.0625 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Map;
/**
* TwoSum
*/
public class TwoSum {
public int[] twoSum(int[] nums, int target) {
Map<Integer,Integer> map=new HashMap<>();
for(int i=0;i<nums.length;i++){
int num=target-nums[i];
if(map.containsKey(num)){
r... | true |
163af20660c40c24b1866b2972a0228ec9013865 | Java | palexcast/dat250-poll-io | /src/main/java/no/hvl/dat250/jpa/models/entities/VoteEntity.java | UTF-8 | 430 | 2.140625 | 2 | [] | no_license | package no.hvl.dat250.jpa.models.entities;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import java.util.UUID;
@Entity(name = "POLL_VOTE")
@Data
@ToString
public class VoteEntity {
public VoteEntity() {
this.id = UUID.randomUUID().toString();
}
@Id
private String i... | true |
4aee0b56c05cb4bb6748ed445e6625d62eadfaaa | Java | tinyhippos/phonegap-blackberry-webworks | /framework/ext/src/com/phonegap/json4j/internal/JSON4JStringWriter.java | UTF-8 | 1,011 | 2.5 | 2 | [
"BSD-3-Clause",
"MIT"
] | permissive | /*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2011, IBM Corporation
*/
package com.phonegap.json4j.internal;
import java.io.IOException;
import java.io.Writer;
publi... | true |
16093cb65362be1f5b2fcdb0dd325a4f5c9948ad | Java | cilia-workbench/cilia-workbench | /cilia-workbench-helpers/cilia-elements/src/main/java/fr/liglab/adele/cilia/workbench/helpers/collectors/CounterCollector.java | UTF-8 | 1,061 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright Universite Joseph Fourier (www.ujf-grenoble.fr)
* 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 b... | true |
e026a04f8f932be125a38bdf5d3fa56a6b58bf09 | Java | OnPositive/aml | /org.aml.ograph/src/test/java/org/aml/ograph/SimpleTest.java | UTF-8 | 230 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | package org.aml.ograph;
import org.aml.ograph.builder.GraphBuilder;
import junit.framework.TestCase;
public class SimpleTest extends TestCase {
public void test0(){
GraphBuilder.build("/crud/api.raml");
}
}
| true |
9854ae18299be25292f280f2aafdfe6f44834051 | Java | ideaconsult/ambit-mirror | /ambit2-apps/ambit2-www/src/main/java/ambit2/rest/admin/DBTextReporter.java | UTF-8 | 1,050 | 2.15625 | 2 | [] | no_license | package ambit2.rest.admin;
import java.io.Writer;
import net.idea.modbcum.i.exceptions.AmbitException;
import net.idea.modbcum.i.exceptions.DbAmbitException;
import net.idea.modbcum.r.QueryReporter;
import ambit2.db.version.AmbitDBVersion;
import ambit2.db.version.DBVersionQuery;
public class DBTextReporte... | true |
74f4254a33e145d9a64e9954123e3d0d5e87f286 | Java | heliguo/news | /app/src/main/java/com/lgh/news/GuideActivity.java | UTF-8 | 5,228 | 2.15625 | 2 | [] | no_license | package com.lgh.news;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.wid... | true |
45f3a3cb960701d76883fa30d885a6a03fdb0a11 | Java | june-kang/Spring | /ch08/src/main/java/kr/co/ch08/UserService.java | UTF-8 | 348 | 1.882813 | 2 | [] | no_license | package kr.co.ch08;
import java.util.List;
public interface UserService {
public void insertUser(UserVO vo) throws Exception;
public List<UserVO> selectUserList() throws Exception;
public UserVO selectUserOne(String uid) throws Exception;
public void updateUser() throws Exception;
public void deleteU... | true |
2ebcea2da99b2485147dd9df8187dd27363e6547 | Java | Damaer/Mybatis-Learning | /jdbc-01-CURD/src/main/java/action/StudentAction.java | UTF-8 | 1,576 | 2.859375 | 3 | [] | no_license | package action;
import java.util.List;
import dao.StudentDao;
import model.Student;
public class StudentAction {
/**
* @param args
*/
public static void main(String[] args) {
StudentDao studentDao = new StudentDao();
// TODO Auto-generated method stub
System.out.println("... | true |
0d8973e6078d61e2a70f0bc418aa456463c4672a | Java | Figo96it/Java | /Zajecia 03-12/src/sortowanie/SortowaniePrzezWstawianie.java | UTF-8 | 986 | 3.328125 | 3 | [] | no_license | package sortowanie;
import java.util.ArrayList;
import java.util.List;
public class SortowaniePrzezWstawianie implements Sortowanie {
@Override
public String getNazwaAlgorytmu() {
return "Sortowanie Przez Wstawianie";
}
@Override
public int[] sortuj(int[] tablica) {
L... | true |
90e23230545e35d1acccf7619f8b05759bb695c2 | Java | urvaius/droiddice | /droiddice/src/com/arne5/droiddice/DieGroup.java | UTF-8 | 1,800 | 3.109375 | 3 | [] | no_license | package com.arne5.droiddice;
import ec.util.MersenneTwisterFast;
import android.content.ContentValues;
public class DieGroup {
protected int Quantity;
protected int Sides;
protected int Adder;
protected int Multiplier;
protected MersenneTwisterFast Randomizer;
public static final String COLUMN_NAME_SIDES = "s... | true |
71a7ee603fac3eb55d423afadd5a3bec15b4a91c | Java | karthik990/G_Farm_Application | /sources/com/flurry/sdk/C1659cf.java | UTF-8 | 914 | 1.703125 | 2 | [] | no_license | package com.flurry.sdk;
/* renamed from: com.flurry.sdk.cf */
public final class C1659cf {
/* renamed from: b */
private static C1659cf f810b;
/* renamed from: a */
public C1644bz f811a = C1644bz.m630a();
/* renamed from: a */
public static synchronized C1659cf m673a() {
C1659cf cfVa... | true |
ccad1192e3c8393bc744c15c961bc5842d220371 | Java | JustinPeanut/LOL-show | /LOL-show/LOL-show-mysql/src/main/java/com/peanut/service/OrderHeroServiceImpl.java | UTF-8 | 3,733 | 2.15625 | 2 | [] | no_license | package com.peanut.service;
import com.peanut.entity.po.OrderHeroPO;
import com.peanut.entity.po.OrderHeroPOExample;
import com.peanut.entity.vo.OrderHeroInPageVO;
import com.peanut.entity.vo.OrderHeroVO;
import com.peanut.mapper.OrderHeroPOMapper;
import org.springframework.beans.BeanUtils;
import org.springframework... | true |
136a71376e5f679dc9f8c282ef28cadcb4a22e94 | Java | 17721541089/springcloudstudy | /java8/src/main/java/com/example/java8/chapter4/Dish.java | UTF-8 | 188 | 1.976563 | 2 | [] | no_license | package com.example.java8.chapter4;
import lombok.Data;
@Data
public class Dish {
private final String name;
private final boolean vegetarian;
private final int calories;
}
| true |
9fab61949312c8d29af93a61668e17833e1041bd | Java | JoseCanova/repository-spring-core | /core-base/core-base/src/main/java/org/nanotek/entities/immutables/ReleaseGroupCommentEntity.java | UTF-8 | 120 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package org.nanotek.entities.immutables;
public interface ReleaseGroupCommentEntity<T> {
T getReleaseGroupComment();
}
| true |
b4cb5212d82e6496aca9e85d4a1b3d59180483e5 | Java | Muralidhargoudediga/JavaClass | /src/FunChain.java | UTF-8 | 420 | 3.625 | 4 | [] | no_license | class FuncChain {
int x, y;
void output(){
System.out.println("x: "+x);
System.out.println("y: "+y);
}
FuncChain input(int x, int y) {
this.x = x;
this.y = y;
return this;
}
public static void main(String[] args) {
FuncChain f = new FuncChain();
f.input(10, 20).output();
}
}
class FuncChai... | true |
b49c7df213401b41f5e6be305682a636e8ec9c39 | Java | sallyf/sallyf | /src/main/java/com/sallyf/sallyf/Form/OptionsConsumer.java | UTF-8 | 137 | 1.804688 | 2 | [
"MIT"
] | permissive | package com.sallyf.sallyf.Form;
@FunctionalInterface
public interface OptionsConsumer<O extends Options>
{
void apply(O options);
}
| true |
0bda35b9a1013850d5d0c001834b7aaae108d1dd | Java | obaby/bjqd | /src/main/java/cn/qqtheme/framework/picker/DateTimePicker.java | UTF-8 | 15,992 | 2.28125 | 2 | [] | no_license | package cn.qqtheme.framework.picker;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import cn.qqtheme.framework.util.DateUtils;
import cn.qqtheme.framework.widget.WheelV... | true |
a537bbe5e7ccf8190c5c6197abf553c9c4fe18e6 | Java | cedesk/data-exchange | /client/src/main/java/ru/skoltech/cedl/dataexchange/ui/controller/ImportTradespaceFromExcelController.java | UTF-8 | 11,223 | 1.945313 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Copyright 2017 Skolkovo Institute of Science and Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | true |
5c5270087f5b007711b025dceca4c15c7437be6d | Java | syedirfan33/my-shopping | /src/main/java/com/shopping/my/entity/AccessTokenEntity.java | UTF-8 | 1,495 | 2.0625 | 2 | [] | no_license | package com.shopping.my.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.p... | true |
04f04cee85f2120c83a18fb47106e8f3460f6534 | Java | ASF175/MySimpleMessenger | /app/src/main/java/com/example/chattest/Authentication/SignInFragment.java | UTF-8 | 17,929 | 1.640625 | 2 | [] | no_license | package com.example.chattest.Authentication;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.util.Base64;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText... | true |
7c5f635e0044303afd5fbe47ece68aae0dd13b48 | Java | selcukes/selcukes-java | /webdriver-binaries/src/main/java/io/github/selcukes/wdb/util/UrlHelper.java | UTF-8 | 2,033 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) Ramesh Babu Prudhvi.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | true |
ff39be45be0541d3dda76c78b18a03a285398f27 | Java | bernardobreder/monograph | /brederplugin/src/breder/plugin/wizard/BWizardUtil.java | UTF-8 | 1,736 | 2.125 | 2 | [] | no_license | package breder.plugin.wizard;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
import org.eclipse.ui.dialogs.ISelectionStatusValidator;
impor... | true |
a776a2b09dd78107325cb87e885c87936db28d63 | Java | 592052103/all | /demo/HealthSjl/demo/src/main/java/com/sjl/health/mapper/THealthDataDefineMapper.java | UTF-8 | 785 | 1.789063 | 2 | [] | no_license | package com.sjl.health.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.sjl.health.entity.THealthDataDefine;
public interface THealthDataDefineMapper {
int deleteByPrimaryKey(Long defineId);
int insert(THealthDataDefine record);
int insertSelective(THealthDataDef... | true |
7d0b9e32e32238574a45f3fff39746aea7a924a6 | Java | chanjungkim/oldPage | /study/androidstudy/eclipse-workspace/DesignPattern_Day04_Mission/src/elevator/VoiceNotice.java | UTF-8 | 322 | 2.765625 | 3 | [
"MIT"
] | permissive | package elevator;
public class VoiceNotice implements Observer {
private ElevatorController controller;
public VoiceNotice(ElevatorController controller) {
this.controller = controller;
}
public void update() {
int curFloor = controller.getCurFloor();
System.out.println("Voice Notice: " + curFloor);
}
... | true |
f3e5ef7c6bab2d409d7eeaef3c70d0767e274039 | Java | pawansingh12009/MatrimonialWebProject | /build/generated/src/org/apache/jsp/Login_jsp.java | UTF-8 | 7,830 | 1.554688 | 2 | [] | no_license | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.ResultSet;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.Connection;
public final class Login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements or... | true |
86788a89b9705b218f26ad659f480ad973051355 | Java | alkoyro/potato-market | /potato-domain/src/main/java/com/epam/libg/domain/PotatoBag.java | UTF-8 | 2,357 | 2.59375 | 3 | [] | no_license | package com.epam.libg.domain;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;
/**
* POJO represents Potato Bag entity
*/
public class PotatoBag {
@NotNull... | true |
eefc8fa6049984d1bdc23b60e7b1da7addb6d8d7 | Java | AnhNguyen92/Java-Core | /src/main/java/javacore/algorithm/leetcode/under1800/DesignAuthenticationManager.java | UTF-8 | 931 | 3.046875 | 3 | [] | no_license | package javacore.algorithm.leetcode.under1800;
import java.util.HashMap;
import java.util.Map;
/*
* LeetCode 1797. Design Authentication Manager
*/
public class DesignAuthenticationManager {
private int timeToLive;
private Map<String, Integer> map = new HashMap<>();
public DesignAuthenticationManager(int ... | true |
c5840558f68220a07fea495d5fe00498b2042331 | Java | Viinyard/SE_TP2 | /src/main/Camion.java | UTF-8 | 1,103 | 3.265625 | 3 | [] | no_license | package main;
/**
*
*/
/**
* @author VinYarD
*
* SE_TP2//Camion.java
* 10 oct. 2017
*/
public class Camion extends Thread implements Strategy {
private int stock = 0;
private Ville v;
private int pos = 0;
public Camion(Ville v) {
this.v = v;
}
@Override
public void run() {
while(true) {
... | true |
0eede6c5e35b5e5ba8c74de266955ee531e75d0d | Java | mhzhou95/Chat-App-Spring-Backend | /src/main/java/com/github/mhzhou95/MingChatAppServer/controller/MessageController.java | UTF-8 | 2,621 | 2.21875 | 2 | [] | no_license | package com.github.mhzhou95.MingChatAppServer.controller;
import com.github.mhzhou95.MingChatAppServer.model.Message;
import com.github.mhzhou95.MingChatAppServer.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframewor... | true |
618b38db028b45a0a9021053e0d3c982fbaf97a4 | Java | RaulGalindo100/SGPF | /SGPF/src/main/java/unam/mx/SGPF/model/controller/UsuarioFuncionalJpaController.java | UTF-8 | 10,140 | 2.140625 | 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 unam.mx.SGPF.model.controller;
import java.io.Serializable;
import javax.persistence.Query;
import javax.persistence.EntityNot... | true |
47f673dc268d2d161e891eec34c087a9c6eedbb5 | Java | Whyusernameisalreadytaken/future | /lambda/src/main/java/com/future/observer/AbstractSubject.java | UTF-8 | 832 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | package com.future.observer;
import java.util.Vector;
/**
* abstract subject
*
* @author liming
* @date 2018-01-03 17:17
*/
public abstract class AbstractSubject<O,S> implements ExtSubject<O,S>{
private Vector<O> vector;
public AbstractSubject(){
this.vector = new Vector<>();
}
/**
... | true |
f8a4cd25edc5163e10464f33b44509cfde44041c | Java | PMDGJJW/JAVAwork | /day16/src/ticktext.java | UTF-8 | 367 | 2.203125 | 2 | [] | no_license | public class ticktext {
public static void main(String[] args) {
ticket t = new ticket("广州---北京",100);
Mythread m = new Mythread(t);
Thread t1 = new Thread(m,"窗口A");
Thread t2 = new Thread(m,"窗口B");
Thread t3 = new Thread(m,"窗口C");
t1.start();
t2.start();
... | true |
f57697f5c214531a1cfbd945503722f7b176119c | Java | yilaoban/hy_esite2.0 | /src/com/huiyee/esite/filter/ReadFontFilter.java | UTF-8 | 1,258 | 2.4375 | 2 | [] | no_license |
package com.huiyee.esite.filter;
import java.awt.Font;
import java.io.File;
import java.io.FilenameFilter;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import com.huiyee.esite.util.HyConfig;
import com.huiyee.esit... | true |
9dd8536b93179822c5cadd1cc3137765e8e7b7b8 | Java | snuspl/incubator-nemo | /compiler/frontend/spark/src/main/java/org/apache/nemo/compiler/frontend/spark/coder/SparkEncoderFactory.java | UTF-8 | 2,576 | 1.765625 | 2 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
31693936e11f7e1800e1624f78cbbd81debaae15 | Java | ysy1989mvp/oaattendance | /src/main/java/com/qkz5/oaattendance/dao/IApprovalFormDAO.java | UTF-8 | 2,338 | 2.25 | 2 | [] | no_license | package com.qkz5.oaattendance.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.qkz5.oaattendance.criteria.ApprovalFormCriteria;
import com.qkz5.oaattendance.entity.mojo.ApprovalFormAO;
import com.qkz5.oaattendance.entity.pojo.ApprovalForm;
@Repository
public interface IAppro... | true |
b6ec4032d42a47009a6a888b73ea53b947a78687 | Java | KevinN7/SysConc | /Sys_Conc_Share/src/linda/shm/ProcessusBloque.java | UTF-8 | 439 | 2.453125 | 2 | [] | no_license | package linda.shm;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import linda.Linda.eventMode;
public class ProcessusBloque {
Condition cds;
eventMode mode;
public ProcessusBloque(Lock lock, eventMode m) {
this.cds = lock.newCondition();
this.mode = m;
}... | true |
7984bb0ba173846c75fc18b5eb9777c5df08a83e | Java | NcsPvt/Taxiplexer | /app/src/main/java/itcurves/ncs/AckType.java | UTF-8 | 158 | 1.828125 | 2 | [] | no_license | package itcurves.ncs;
public final class AckType {
public static final int NEW = 0;
public static final int SACK = 1;
public static final int DACK = 2;
}
| true |
f2ad5507e2fe2fadcbacc5688ff63595570d3edd | Java | LittleBrains/YesOrNo | /app/src/main/java/ru/littlebrains/yesorno/QuestionModel.java | UTF-8 | 240 | 1.734375 | 2 | [] | no_license | package ru.littlebrains.yesorno;
import java.io.Serializable;
/**
* Created by Evgeny on 22.05.2016.
*/
public class QuestionModel implements Serializable {
public String question;
public int answer;
public int timestamp;
}
| true |
b84cdb8fc66401ee4c91cc8dc198484cb57a3cdc | Java | kwongyen/Battleships | /src/main/java/com/youngcolfield/battleship/domain/Account.java | UTF-8 | 452 | 1.875 | 2 | [] | no_license | package com.youngcolfield.battleship.domain;
import lombok.Data;
import javax.persistence.*;
@Data
@Entity
public class Account {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
private String email;
@OneToOne
@JoinColumn(name="stats_id")
private Stats statsid;
... | true |
2056b28d13d5153390260436b48cd7702d66eb1b | Java | Kewby/CapstoneProject | /src/cashierpage/CashierPageController.java | UTF-8 | 3,699 | 2.375 | 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 cashierpage;
import adminpage.AdminPageController;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.... | true |
cbfb73da2bec0eadba89b77e6c158092836639f8 | Java | AaronMakhoba/Junior-Software-Engineer-Job-Application | /TestArea.java | UTF-8 | 563 | 3.609375 | 4 | [] | no_license | import java.util.Scanner;
public class TestArea {
public static void main(String[] args) {
//declaring base and height
int base = 0;
int height = 0;
int area = 0;
// declaring Scanner Object
Scanner sc = new Scanner(System.in);
System.out.println("Enter base of base: ");
... | true |
c21f7e40aa56329bf1af630744b3f1c63cbcd6e0 | Java | Shrey-Viradiya/OOP_Java | /LPW/Try.java | UTF-8 | 788 | 3.265625 | 3 | [] | no_license | import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.Scanner;
class Try{
public static void main(String[] args) throws Exception {
File csv = new File("data.csv");
try{
BufferedWriter bw = new BufferedWriter(new FileWriter(csv,true));
... | true |
b2ca013fed028932153b36b50f49b1cefef7d672 | Java | lixfn/tms_mvn_1.0 | /util/src/main/java/com/fly/util/SpringContextUtil.java | UTF-8 | 435 | 1.875 | 2 | [] | no_license | package com.fly.util;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class SpringContextUtil implements ApplicationContextAware {
@Override
public void setApplicationContext(Application... | true |
a36bc1a021264907f723c0677276688b4a3148be | Java | doDev-IITP/IITP-App | /app/src/main/java/com/grobo/notifications/main/ExamFragment.java | UTF-8 | 1,998 | 2.046875 | 2 | [
"MIT"
] | permissive | package com.grobo.notifications.main;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.grobo.notifications.R;
/**
* A simple {@link Fragment} subclass.
*/
public class ExamFragment extends Frag... | true |
e192dfd6688d887199c5b88641864d73f9920844 | Java | hxgJG/OkHttpDemo | /app/src/main/java/com/hexg/okhttpdemo/MainActivity.java | UTF-8 | 1,258 | 1.960938 | 2 | [] | no_license | package com.hexg.okhttpdemo;
import android.os.Bundle;
import android.util.Log;
import com.hexg.okhttpdemo.http.XOkHttp;
import com.hexg.okhttpdemo.http.bean.TestBean;
import com.hexg.okhttpdemo.http.listener.ErrorCode;
import com.hexg.okhttpdemo.http.listener.IJsonDataListener;
import androidx.appcompat.app.AppComp... | true |
3a373c0b4c10b7ff2f7811792f653ad645e50523 | Java | mxiyuan/LintCode | /Java/900_closest_binary_search_tree_value.java | UTF-8 | 1,054 | 3.71875 | 4 | [] | no_license | /**
* Definition of TreeNode:
* public class TreeNode {
* public int val;
* public TreeNode left, right;
* public TreeNode(int val) {
* this.val = val;
* this.left = this.right = null;
* }
* }
*/
public class Solution {
/**
* @param root: the given BST
* @param t... | true |
a080a170e13798b971159566345608fa9054c1e7 | Java | xp-zhao/learn-java | /learn-lambda/src/main/java/com/xp/collectors/Reduce.java | UTF-8 | 583 | 3.328125 | 3 | [
"MIT"
] | permissive | package com.xp.collectors;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collector;
import java.util.stream.Collectors;
/**
* @author zhaoxiaoping
* @Description: reduce 累加示例
* @Date 2020-12-1
**/
public class Reduce {
public static void main(String[] args) {
List<Integer> list = ... | true |
102c89b9c2c1bca599b7373afd0e7bdb01732756 | Java | imdadareeph/devwebspring | /devweb/src/com/devweb/form/config/servlet3/MyWebInitializer.java | UTF-8 | 725 | 1.960938 | 2 | [] | no_license | package com.devweb.form.config.servlet3;
/*package com.devweb.form.config.servlet3;
import javax.servlet.Filter;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import com.devweb.form.config.SpringRootConfig;
import com.devweb.form.config.SpringWebConfig;
public ... | true |
2131f5274a56471c73def5ceefc17f4b5db1c58e | Java | pedromlcosta/Minigolf | /desktop/src/com/lpoo/MiniGolf/desktop/DesktopLauncher.java | UTF-8 | 758 | 2.515625 | 3 | [] | no_license | package com.lpoo.MiniGolf.desktop;
import com.badlogic.gdx.Files.FileType;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.lpoo.MiniGolf.logic.MiniGolf;
public class DesktopLauncher {
public static void main(String[] ar... | true |
11e87f5eab9d44acdd5bb7e7d0330da922aeb36f | Java | TeamBattleClient/TeamBattleRemake | /TeamBattle/src/minecraft/net/minecraft/client/particle/EntityCrit2FX.java | UTF-8 | 1,915 | 2.359375 | 2 | [] | no_license | package net.minecraft.client.particle;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
public class EntityCrit2FX extends EntityFX {
private int currentLife;
private final int maximumLife;
private final String particleName;
/** Entity that ha... | true |
d251a77f3071c0a7d3edd40c01d6ed6ee480fc9c | Java | liyucc/OnlineShop | /TestAnnotation4/src/com/cong/shop/user/action/UserAction.java | GB18030 | 3,439 | 2.296875 | 2 | [] | no_license | package com.cong.shop.user.action;
import java.io.IOException;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.cong.shop.... | true |
983285cd67f608fe05e26f4701a006cc6ed7a864 | Java | tabergma/similar_author_identification | /clustering/src/main/java/de/hpi/smm/clustering/BlogPost.java | UTF-8 | 1,484 | 2.515625 | 3 | [
"MIT"
] | permissive | package de.hpi.smm.clustering;
import org.apache.mahout.clustering.classify.WeightedPropertyVectorWritable;
import org.apache.mahout.math.Vector;
public class BlogPost {
private int clusterNumber;
private int documentId;
private Double[] point;
public static BlogPost createFromVector(int clusterId, ... | true |
0004c05acb2d2c18f5d0a74d31e422201b282e52 | Java | huynt57/ProjectSEM2_BKAP_C1209J | /src/GUI/Classes/RemovablePanel.java | UTF-8 | 1,820 | 2.96875 | 3 | [] | no_license | package GUI.Classes;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JPanel;
public class RemovablePanel extends JPanel implements MouseListener, MouseMo... | true |
6ec502a7678a04d99fdb0e0c682fbdd8a1e1c8f4 | Java | t19d/juego_palabras_encadenadas | /app/src/main/java/com/encadenadas/td/encadenadas/GameOfflinevsIAActivity.java | UTF-8 | 11,568 | 2.359375 | 2 | [] | no_license | package com.encadenadas.td.encadenadas;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.... | true |
3285d639d50ec5a1a36bcee77d6fc548c1a7f0b2 | Java | CCATObservatory/observing-tool | /orac/src/main/orac/ukirt/iter/SpIterCGS4CalObs.java | UTF-8 | 22,902 | 1.695313 | 2 | [] | no_license | /*
* Copyright 1999-2001 United Kingdom Astronomy Technology Centre, an
* establishment of the Science and Technology Facilities Council.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ... | true |