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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b1ad59268bd9785d02cf0ae2b92cbd4147a83979 | Java | carlosap92/LoginFace | /samples/Scrumptious/src/com/facebook/scrumptious/TabActivity.java | UTF-8 | 1,909 | 2.109375 | 2 | [] | no_license | package com.facebook.scrumptious;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTabHost;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TabHost;
public class Ta... | true |
01a33cb60ffb5fa4a1a0960d2ed68d1fcc440550 | Java | ziemm/basic-code | /basic-code/src/cn/xie/base02/demoStream/DemoStreamList.java | UTF-8 | 1,165 | 3.3125 | 3 | [] | no_license | package cn.xie.base02.demoStream;
import java.util.ArrayList;
import java.util.stream.Stream;
/**
* @author: xie
* @create: 2019-10-12 20:37
**/
public class DemoStreamList {
public static void main(String[] args) {
//第一支队伍
ArrayList<String> one = new ArrayList<>();
one.add("迪丽热巴");
... | true |
8393f6a1b6e1fa66d4c539ae8d587e5f552b7d47 | Java | RobertoXocop-seguros/rosetabackend-platzi-spring | /src/main/java/com/rxocop/rosetabackend/web/controller/CompraController.java | UTF-8 | 1,198 | 2.046875 | 2 | [] | no_license | package com.rxocop.rosetabackend.web.controller;
import com.rxocop.rosetabackend.persistence.entity.Compra;
import com.rxocop.rosetabackend.persistence.inter.CompraRepositoryInt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.R... | true |
785c02f9023d71162a81044505eb31f8fd9e6640 | Java | masterweb87/BoxCongress | /app/src/main/java/masterwb/design/arkcongress/adapters/EventTypeAdapter.java | UTF-8 | 693 | 2.21875 | 2 | [] | no_license | package masterwb.design.arkcongress.adapters;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
/**
* Created by Administrator on 12-09-2016.
*/
public class EventTypeAdapter extends ArrayAdapter<CharSequence... | true |
5f2fca2c320a0e582c317ab3e52f9a164cf32e59 | Java | BrenoBrandao77/state | /state/estados/Cinza.java | UTF-8 | 392 | 2.25 | 2 | [] | no_license | package estados;
import java.util.List;
import entidades.No;
import interfaci.Cor;
public class Cinza extends Cor {
@Override
public void busca(No no, List<No> lista) {
}
@Override
public void assumiu(No no, List<No> lista) {
for(No adj : no.getAdjacentes()) {
adj.buscaProfun... | true |
6963d7d6b781466363edf5e3b39d9cb44a010b39 | Java | VincentHuis/bakbijbel | /BakBijbel/app/src/main/java/com/bakbijbel/bakbijbel/LoginActivity.java | UTF-8 | 3,108 | 2.25 | 2 | [] | no_license | package com.bakbijbel.bakbijbel;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.... | true |
39e55803b2573dde201ded7082cb8da478291472 | Java | fernandesdiego/cursomc | /src/main/java/com/diegof/cursomc/repositories/EnderecoRepository.java | UTF-8 | 292 | 1.585938 | 2 | [] | no_license | package com.diegof.cursomc.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.diegof.cursomc.domain.Endereco;
@Repository
public interface EnderecoRepository extends JpaRepository<Endereco, Integer>{
}
| true |
dfd54d6871c646ef824fe0e6a66e83486f746b3f | Java | jinapark08-Ruler/Ruler-H | /javaapp0426/src/hiding/StudentTest.java | UTF-8 | 490 | 3.09375 | 3 | [] | no_license | package hiding;
public class StudentTest {
public static void main(String[] args) {
// private 변수를 확인해보기 위한 클래스
Student studentLee = new Student();
//private 변수로 선언한 studentName이기 때문에 오류 발생
//studentLee.studentName = "이상원";
//set을 이용한 멤버 변수에 이름 값 대입
studentLee.setStudentName("이상원");
//get을 이용해서 확... | true |
bdeefdadbc9e890bd2d13c39ce060aaaae581836 | Java | 1739745826/XueCheng | /xc-service-ucenter/src/main/java/com/xuecheng/ucenter/service/UserService.java | UTF-8 | 1,922 | 2.09375 | 2 | [] | no_license | package com.xuecheng.ucenter.service;
import com.xuecheng.framework.domain.ucenter.XcCompanyUser;
import com.xuecheng.framework.domain.ucenter.XcMenu;
import com.xuecheng.framework.domain.ucenter.XcUser;
import com.xuecheng.framework.domain.ucenter.ext.XcUserExt;
import com.xuecheng.ucenter.dao.XcComparyUserRepostory;... | true |
b18502ac9e2d57513a3eea0d0059dc074caccde5 | Java | danielcagostinho/LearningJava | /src/JavaExercises1_2.java | UTF-8 | 5,862 | 3.5 | 4 | [] | no_license | public class JavaExercises1_2 {
public static void main(String[] args){
// Arguments: theta, evenDivide(1), evenDivide(2), triSide(1), triSide(2), triSide(3), randInt(1), randInt(2)
double theta = Double.parseDouble(args[0]);
trigIdentity(theta);
addConcatOutput();
charOutput... | true |
9b4dd4de238fe5f725a96e62941df8ea3d679ff3 | Java | gigayou/reservation-app | /pojo/src/main/java/com/ices/pojo/code/Address.java | UTF-8 | 741 | 1.835938 | 2 | [] | no_license | package com.ices.pojo.code;
import com.ices.reservation.common.sql.Column;
import com.ices.reservation.common.sql.Table;
import com.ices.reservation.common.utils.Page;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
@Table(name = "addr_code"... | true |
e8bcf5ee8c17bb96f38370b79c0d152385ef509c | Java | md-5/SpecialSource | /src/main/java/net/md_5/specialsource/AccessMap.java | UTF-8 | 7,671 | 2.234375 | 2 | [
"BSD-3-Clause"
] | permissive | /**
* Copyright (c) 2012, md_5. 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 conditions and the fo... | true |
e91987d4138cf4fe4e01ba3e8cd6d67328d3b69b | Java | yuhang123wo/sp | /src/main/java/com/yh/st/base/config/aop/LoggerControllerAdvice.java | UTF-8 | 2,261 | 2.421875 | 2 | [] | no_license | package com.yh.st.base.config.aop;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.asp... | true |
7de5bf3ea2361130eb8fcda19b71008866d3cff9 | Java | 2016IMIEL3B/2016 | /Groupe3/Insurance/dao/src/main/java/repository/DriverRepository.java | UTF-8 | 221 | 1.789063 | 2 | [] | no_license | package repository;
import model.Driver;
import org.springframework.data.repository.CrudRepository;
/**
* Created by Enzo on 18/04/2016.
*/
public interface DriverRepository extends CrudRepository<Driver,Integer> {
}
| true |
75b9fef6e138065d7f4d3762a88bfb89cdc86b45 | Java | DiegoSant0s/DWR2 | /DWR2SeguroAutomotivo/src/main/java/br/com/dwr2/seguroAutomotivo/repository/TelefoneRepository.java | UTF-8 | 320 | 1.648438 | 2 | [] | no_license | package br.com.dwr2.seguroAutomotivo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import br.com.dwr2.seguroAutomotivo.entidades.Telefone;
@Repository
public interface TelefoneRepository extends JpaRepository<Telefone, Long> {
}
| true |
6ac6095356ae133d7cf780a39514b1a2e051034f | Java | chiakilalala/JAVAProject | /src/main/java/com/train/Ticket.java | UTF-8 | 365 | 2.78125 | 3 | [] | no_license | package com.train;
public class Ticket {
int tickets;
int round;
public Ticket(int round, int tickets) {
this.tickets = tickets;
this.round = round;
}
public void print(){
System.out.println("Total tickets:"+tickets+"\t"+"Round-trip:"+round+"\t"+"Total"+"\t"+(int)((tic... | true |
24bccb925971563d3e874193f05ff9d08429a8f7 | Java | Cobbe/notaql | /src/main/java/notaql/parser/antlr/NotaQL2ColumnInVisitor.java | UTF-8 | 12,956 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | // Generated from notaql\parser\antlr\NotaQL2ColumnIn.g4 by ANTLR 4.2.1
package notaql.parser.antlr;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link NotaQL2ColumnInParser}.
*
*... | true |
b220f90daba7015773f57dd556f025166548032d | Java | rainishjj/afterClass | /20200301/prototype/src/main/java/com/rainish/proxy/IPerson.java | UTF-8 | 85 | 1.757813 | 2 | [] | no_license | package com.rainish.proxy;
public interface IPerson {
public void findLove();
}
| true |
a5d471ab8a9e4a607b0c79ad60e0208c0f48d4cc | Java | arekop100/LAB_5 | /src/main/java/pl/edu/pwsztar/service/serviceImpl/MovieServiceImpl.java | UTF-8 | 2,217 | 2.4375 | 2 | [] | no_license | package pl.edu.pwsztar.service.serviceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pl.edu.pwsztar.domain.dto.CreateMovieDto;
import pl.edu.pwsztar.domain.dto.MovieDto;
import pl.edu.pw... | true |
b81326331263b2e7d6c365a57e9ebce56748e479 | Java | BashayrYahya/Smart-Messenger | /app/src/main/java/com/example/root/smartmessenger/activity/ThirdFregment.java | UTF-8 | 6,480 | 1.984375 | 2 | [] | no_license | package com.example.root.smartmessenger.activity;
import android.content.Context;
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.Button;
import... | true |
966a5bef18c6e339911e723e35e59aaeb10c6018 | Java | kys4548/2020_Simple_Web_Project | /스프링 기반 REST API 개발_인프런 백기선/rest-api-with-spring/src/test/java/com/example/demoinflearnrestapi/events/EventControllerTests.java | UTF-8 | 16,466 | 1.796875 | 2 | [] | no_license | package com.example.demoinflearnrestapi.events;
import com.example.demoinflearnrestapi.accounts.Account;
import com.example.demoinflearnrestapi.accounts.AccountRepository;
import com.example.demoinflearnrestapi.accounts.AccountRole;
import com.example.demoinflearnrestapi.accounts.AccountService;
import com.example.dem... | true |
405235ec8aa7b935ef8003d5c7fb6e333022b1a3 | Java | kpomier777/Patronesexam2 | /src/main/java/state/basic/Prendido.java | UTF-8 | 748 | 2.828125 | 3 | [] | no_license | package state.basic;
public class Prendido implements IStateComputadora {
@Override
public void handler(Computadora computadora) {
System.out.println("** Estado: Prendido**");
int cantidadProg=(int)(Math.random()*20+1);
computadora.setProgramasAbiertos(""+cantidadProg);
com... | true |
8791a2bf08949feb1a5de662cbd67ea8f4dcabb8 | Java | MaryRosariaTaft/cse219_javafx-software-development | /Project2_PoseMaker/PoseMakerApp/src/pm/data/DataManager.java | UTF-8 | 931 | 2.640625 | 3 | [] | no_license | package pm.data;
import pm.gui.Workspace;
import saf.components.AppDataComponent;
import saf.AppTemplate;
/**
* This class serves as the data management component for this application.
*
* @author Richard McKenna
* @author Mary R. Taft
* @version 1.0
*/
public class DataManager implements AppDataComponent {
... | true |
0f28baddafde2cf78a5f2e040172faba62bae00e | Java | lmr1109665009/oa | /java/service-oa/src/main/java/com/suneee/eas/oa/service/car/impl/CarInsuranceServiceImpl.java | UTF-8 | 4,383 | 2.1875 | 2 | [] | no_license | /**
* Copyright (C), 2015-2018, XXX有限公司
* FileName: CarInsuranceServiceImpl
* Author: lmr
* Date: 2018/8/16 13:41
* Description:
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.suneee.eas.oa.service.car.impl;
imp... | true |
5ba88e10b62c50e43a4f6c90065fd2ee246b6ef0 | Java | OnClickListener2048/Fapiaobao | /app/src/main/java/com/pilipa/fapiaobao/ui/fragment/UploadNormalReceiptFragment.java | UTF-8 | 19,734 | 1.539063 | 2 | [] | no_license | package com.pilipa.fapiaobao.ui.fragment;
import android.Manifest;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.util.DiffUtil;
import... | true |
9d88b6aca646bb38db63032d27b4d2b609a8eb42 | Java | AndroidTestingWorkshop/Pokedex | /app/src/main/java/gojek/pokedex/main/PokemonsPresenter.java | UTF-8 | 827 | 2.375 | 2 | [] | no_license | package gojek.pokedex.main;
import java.util.List;
import gojek.pokedex.common.NetworkError;
import gojek.pokedex.model.Pokemon;
public class PokemonsPresenter {
private PokemonsView view;
private PokemonService pokemonService;
public PokemonsPresenter(PokemonsView view, PokemonService pokemonService) ... | true |
2f7a6a7c9d7c96dc7be8f3321aba3a8a107b1b84 | Java | Mqwere/Name-Compiler | /src/Core/Generator.java | UTF-8 | 1,611 | 2.984375 | 3 | [] | no_license | package Core;
import java.util.ArrayList;
import java.util.Random;
public class Generator {
private static Random ladyLuck = new Random();
private static ArrayList<String> content = new ArrayList<>();
private static int fuckups = 0;
public static void generate(int noGen, int minLen, int maxLen) {
for(int i=0;... | true |
1515911b78c3942968700dfad4afaa4a0b9c5273 | Java | ironcolumn/guitarSys | /api/src/main/java/com/example/demo/dao/BuilderRepository.java | UTF-8 | 371 | 1.757813 | 2 | [] | no_license | package com.example.demo.dao;
import com.example.demo.model.Builder;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
@EnableAutoConfiguration
public interface BuilderRepos... | true |
323c9a827fbaec05545d97dc70d45a3951532590 | Java | pubnub/chat-examples-java | /app/snippets/chatresourcecenter/EncryptionTest.java | UTF-8 | 2,042 | 2.125 | 2 | [
"MIT"
] | permissive | package chatresourcecenter;
import com.pubnub.api.PNConfiguration;
import com.pubnub.api.PubNub;
import com.pubnub.api.PubNubException;
import org.junit.Test;
import java.util.UUID;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
... | true |
1cf3f04734107fc0b8858e79781c7f98765925f4 | Java | QuantumImmortality/Auto-System-Input | /src/Manager.java | UTF-8 | 639 | 2.75 | 3 | [] | no_license | import Input.Keyboard;
import java.awt.*;
public class Manager {
private static Robot robot;
public static void main(String[] args){
final Robot ROBOT = initialiseRobot();
Keyboard keyboard = new Keyboard();
keyboard.keyboardInput(robot);
}
private static Robot initialiseRo... | true |
e4d473e10fdb4b7eab79561c440a7c8514e2ea7a | Java | tanyujie/base-easymis | /txlcn-easymis/src/main/java/org/easymis/base/txlcn/TxlcnEasymisApplication.java | UTF-8 | 470 | 1.570313 | 2 | [] | no_license | package org.easymis.base.txlcn;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.codingapi.txlcn.tm.config.EnableTransactionManagerServer;
@SpringBootApplication
@EnableTransactionManagerServer
public class TxlcnEasymisApplication {
//... | true |
fcc004464fc88813b8071361793ec5da7ff28d5a | Java | divannn/eclipse | /plain-gef/com.dob.property/src/com/dob/property/editor/StringCellEditor.java | UTF-8 | 458 | 2.421875 | 2 | [] | no_license | package com.dob.property.editor;
import org.eclipse.jface.viewers.TextCellEditor;
import org.eclipse.swt.widgets.Composite;
/**
* @author idanilov
*
*/
public class StringCellEditor extends TextCellEditor {
public StringCellEditor(Composite parent) {
super(parent);
}
@Override
protected void doSetValue(Obj... | true |
2454278297265b592c25a8067fe77de3c4567a68 | Java | JetBrains/intellij-community | /platform/platform-impl/src/com/intellij/openapi/wm/impl/WindowWatcher.java | UTF-8 | 10,890 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.wm.impl;
import com.intellij.ide.DataManager;
import com.intellij.ide.impl.ProjectUtil;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.open... | true |
1bc8de431f3f50fd395c9a3a7ae12db6bf7d9624 | Java | patryk35/KorkoAndoridApp | /app/src/main/java/com/example/patryk/korko/containers/BoxesContainer.java | UTF-8 | 1,302 | 3.234375 | 3 | [] | no_license | package com.example.patryk.korko.containers;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Patryk on 2017-04-24.
*/
public class BoxesContainer {
List<String> name;
List<Boolean> value;
public BoxesContainer() {
name = new ArrayList<>();
value = new... | true |
7cbbaa848a51ac9e70816a98fd98dd4c94d4274d | Java | xSegFaultx/Photos | /Photos91/src/controller/userPListController.java | UTF-8 | 29,458 | 2.484375 | 2 | [] | no_license | package controller;
import java.util.*;
import java.nio.file.*;
import java.io.*;
import java.text.SimpleDateFormat;
import model.album;
import model.albumList;
import model.userlist;
import model.imgR;
import model.tag;
import model.taglist;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import j... | true |
0ad201fefac3ae8af4cfde677c4cca32b7bf7f44 | Java | sztony/newsellinggas | /src/main/java/com/aote/rs/charge/enddate/IEndDate.java | GB18030 | 315 | 1.78125 | 2 | [] | no_license | package com.aote.rs.charge.enddate;
import java.util.Calendar;
import org.springframework.orm.hibernate3.HibernateTemplate;
/**
* 㳭ѽֹ
* @author Administrator
*
*/
public interface IEndDate {
Calendar enddate(String userid,HibernateTemplate hibernateTemplate);
}
| true |
17f226648f2ded293159c9ac5845f8e704d68211 | Java | ThirdIInc/Third-I-Portal | /hrsaas/src/org/struts/action/vendor/VendorRegistrationAction.java | UTF-8 | 8,968 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package org.struts.action.vendor;
/** @ Author : Archana Salunkhe
* @ purpose : Developed for Vendor Registration
* @ Date : 08-May-2012
*/
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Map;
import javax.imageio.ImageIO;
import jav... | true |
395ef4f2cc5af87744f7c8ba8d80c68d94e373cd | Java | 0niconico0/TestTool2 | /TestTool2/src/orgin/regex.java | UTF-8 | 168 | 2.0625 | 2 | [] | no_license | package orgin;
public class regex {
public static void main(String args[]){
float result = (float) 1/3;
System.out.println(Math.round(result));
}
}
| true |
8238b0ba4f4bb82e4623420a136b3dd06b9af12b | Java | uca-m1informatique-softeng/s2-gestiondeprojet-jokr | /java/moteur/src/main/java/sw_aventure/seven_wonders/DeroulementJeu.java | UTF-8 | 11,807 | 2.71875 | 3 | [] | no_license | package sw_aventure.seven_wonders;
import objet_commun.Carte;
import exception.NegativeNumberException;
import sw_aventure.objetjeu.*;
import metier.EnumRessources;
import utilitaire_jeu.Inventaire;
import utilitaire_jeu.Plateau;
import utilitaire_jeu.SetInventaire;
import utils.affichage.Colors;
import utils.affichag... | true |
59ab11afbdf162aaef1829b3d5bf5247e6188136 | Java | tjh-git/qq | /SuperClient/src/comm/langsin/msg_file/MsgVoiceResp.java | UTF-8 | 530 | 2.265625 | 2 | [] | no_license | package comm.langsin.msg_file;
import java.util.Arrays;
import comm.langsin.msg_log_reg.MsgHead;
public class MsgVoiceResp extends MsgHead {
private String Name;
private byte[] Voice;
@Override
public String toString() {
return super.toString() + "MsgVoiceResp [Voice="
+ Arrays.toString(Voice) + "]";
}
... | true |
7286a8a966d109aa7e7b9b8eb7bb07c56fef6c53 | Java | kschulst/julekalender-api | /src/main/java/no/juleluka/api/calendar/participant/CalendarParticipantService.java | UTF-8 | 3,036 | 2.421875 | 2 | [] | no_license | package no.juleluka.api.calendar.participant;
import no.juleluka.api.calendar.Calendar;
import no.juleluka.api.calendar.CalendarException;
import no.juleluka.api.calendar.CalendarRepository;
import no.juleluka.api.user.UserInfo;
import no.juleluka.api.user.UserInfoRepository;
import no.juleluka.api.user.UserInfoServic... | true |
6ff327cb4c1b01434f62f5697ceefbc0d91906bf | Java | NotSoMadMax/PuzzlesForFun | /src/Medium/CountCompleteTreeNodes.java | UTF-8 | 1,775 | 3.46875 | 3 | [] | no_license | package medium;
public class CountCompleteTreeNodes {
// 98%, but why ???
public int countNodes_fast(TreeNode root) {
if(root==null) return 0;
if (root.val != Integer.MIN_VALUE) {
root.val = Integer.MIN_VALUE;
return 1 + countNodes(root.left) + countNodes(root.right);
... | true |
69fa094b034c31492e6548a5497c6ae50744d390 | Java | majpyi/cs | /src/main/java/MyHttpSessionListener.java | UTF-8 | 695 | 2.875 | 3 | [] | no_license | import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
/*
* HttpSessionListener实现类
* sessionCreated() -- 在HttpSession对象被创建后被调用
* sessionDestroyed() -- -- 在HttpSession对象被销毁前调用
* HttpSessionEvent -- 事件类对象
* 该类有getSession(),用来获取当前HttpSession对象,即获取事件源对象
*/
public class MyHttp... | true |
b95293ed779c3c7d96d1b0b02d0ee45ed3ef5d74 | Java | rimmugygr/Customer-Credit | /Credit/src/main/java/springboot/credit/dto/CreditDto.java | UTF-8 | 187 | 1.78125 | 2 | [] | no_license | package springboot.credit.dto;
import lombok.*;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CreditDto {
private Integer id;
private String creditName;
}
| true |
c56eaed2b2f28bfdbbc52f7dca975173801290dc | Java | USF-CS245-09-2017/practice-assignment-05-safyao | /MergeSort.java | UTF-8 | 2,331 | 4.3125 | 4 | [] | no_license | import java.util.Arrays;
public class MergeSort implements SortingAlgorithm
{
//Sort function splits given array into a left and right side.
//Recursively calls itself to continue splitting the arrays in half.
//Calls merge to put arrays back together.
public void sort (int[] a)
{
if (a.length > 1)
{
int[]... | true |
69ef28fcf87ca4d8f74c722557069d8c37a309e9 | Java | cristianoflima/bibliotecaApi | /src/main/java/br/com/obpc/livrariaObpcApi/daos/LivroDao.java | UTF-8 | 3,305 | 2.640625 | 3 | [] | no_license | package br.com.obpc.livrariaObpcApi.daos;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... | true |
d95fa165d896ebc39f90975754f0385633b7cd73 | Java | MikhailKlimenko/redmine-java-api | /src/main/java/com/taskadapter/redmineapi/RedmineProcessingException.java | UTF-8 | 810 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package com.taskadapter.redmineapi;
import java.util.List;
public class RedmineProcessingException extends RedmineException {
private static final long serialVersionUID = 1L;
private final List<String> errors;
private String text = "";
// TODO Refactor this to get rid of adding "\n". it should be up... | true |
25eab4659c29dee619d6189184f32751211867d6 | Java | Nitijkatiyar/coreyclient_android_studio | /app/src/main/java/com/coremobile/coreyhealth/analytics/CMN_GraphModel.java | UTF-8 | 1,074 | 1.9375 | 2 | [] | no_license | package com.coremobile.coreyhealth.analytics;
import java.io.Serializable;
/**
* Created by ireslab on 1/6/2016.
*/
public class CMN_GraphModel implements Serializable {
CMN_GraphOptionsModel graphOptions;
CMN_DetailGraphDataModel detailGraphDataValuesModel;
CMN_GraphDataModel graphDataValuesModel;
... | true |
d416d9179ff182fbc29074bbb4607fc0fd06691e | Java | zohreb71/DecryptorExtension | /src/burp/BurpExtender.java | UTF-8 | 5,367 | 2.4375 | 2 | [] | no_license | package burp;
import javax.swing.*;
import java.awt.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.List;
public class BurpExtender implements IBurpExtender, IMessageEditorTabFactory , ITab{
private IBurpExtenderCallbacks callbacks;
private IExtensionHelpe... | true |
8fff7d8099eac08e08fc016cf9ff5d58f66edfdd | Java | danielleon/elleon-public | /elleon-core/elleon-core-application/src/main/java/de/elleon/dbca/util/persistence/DAOCommand.java | UTF-8 | 129 | 1.625 | 2 | [] | no_license | package de.elleon.dbca.util.persistence;
interface DAOCommand {
Object execute(DAOManager daoManager) throws Exception;
}
| true |
a1f4badf21114b6d59914924c543c7d92db173a7 | Java | FamilyPop/FamilyPop_j2y | /FamilyPop/FamilyPop/src/main/java/com/j2y/familypop/activity/popup/Popup_messageBox_shareImage.java | UTF-8 | 1,930 | 2.078125 | 2 | [] | no_license | package com.j2y.familypop.activity.popup;
import android.app.Activity;
import android.app.Dialog;
import android.media.Image;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.wid... | true |
3d9fe9b6b5e30f7fd8646a58d59721953dfa7c3d | Java | neerajprasad/DSA | /src/com/interview/dp/Stairs.java | UTF-8 | 442 | 3.515625 | 4 | [] | no_license | package interview.dp;
public class Stairs {
public static int climbStairs(int n) {
int f[] = new int[n+2]; // 1 extra to handle case, n = 0
int i;
/* 0th and 1st number of the series are 0 and 1*/
f[0] = 0;
f[1] = 1;
if(n==0) return 0;
if(n==1) return 1;
... | true |
4e9762566efc5e24fdd61726b9c4c2199a2713ef | Java | ecs160ss12019/OneB | /app/src/main/java/com/example/breakout/BONoPowerUp.java | UTF-8 | 681 | 2.171875 | 2 | [] | no_license | package com.example.breakout;
import android.graphics.Canvas;
import android.graphics.Paint;
public class BONoPowerUp extends BOPowerUp {
public BOGameController gc;
public BONoPowerUp (BOGameController gc) {
this.gc = gc;
}
@Override
public void apply(BOGameController gc) {
// ... | true |
19474fc56456e8d61128b53a5979ef303dc6440a | Java | CKubinec/Games | /src/RockPaperScissors/Player.java | UTF-8 | 1,530 | 3.4375 | 3 | [] | no_license | package RockPaperScissors;
import java.util.concurrent.ThreadLocalRandom;
/**
* The type Player.
*
* @author Craig Kubinec ID:3433193
* @assignment FINAL EXAM
* @date July 29 2020
*/
public class Player implements Runnable {
/**
* The Attack name.
*/
String attackName;
... | true |
3cb37d2279861957b15eb386ceaf778abbcfd3f6 | Java | jtlai0921/XB1812- | /XB1812_教學資源/XB1812_範例程式/Sample/CH07/CalendarSet_1.java | BIG5 | 296 | 3.3125 | 3 | [] | no_license | import java.util.*;
class CalendarSet_1{
public static void main(String args[]){
Calendar now=Calendar.getInstance();
now.set(Calendar.YEAR,2020);
System.out.println("{b~סG"+now.get(Calendar.YEAR));
System.out.println("{bG"+ (now.get(Calendar.MONTH)+1) );
}
}
| true |
ada2747c1d8539ae8dd378e405a8515fd4488af5 | Java | prashant31191/oat-android | /src/com/worth/oat/TakePhoto.java | UTF-8 | 3,724 | 2.515625 | 3 | [] | no_license | package com.worth.oat;
import java.io.IOException;
import android.app.Activity;
import android.content.Intent;
import android.hardware.Camera;
import android.hardware.Camera.PictureCallback;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widge... | true |
053c50640353a4ec2092cc05333ddd5a8b768c4a | Java | Rayworld8/Privalia | /app/src/main/java/com/simbiotic/privalia/views/activities/MainActivity.java | UTF-8 | 4,817 | 2.125 | 2 | [] | no_license | package com.simbiotic.privalia.views.activities;
import android.app.SearchManager;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Search... | true |
9f107b781e16b02197d2186acfb731defc57d329 | Java | 175272511/valinor-parent | /valinor-note/valinor-note-api/src/main/java/com/ninesale/valinor/note/api/model/response/album/DubboGetAlbumContentResponse.java | UTF-8 | 670 | 1.804688 | 2 | [] | no_license | package com.ninesale.valinor.note.api.model.response.album;
import java.util.List;
import com.pubpi.valinor.dubbo.base.model.DubboBasicResponse;
/**
* 添加评论返回类
*
* @author skyhawk wthuan@foxmail.com
* @date 2015年11月21日 下午2:04:09
*
*/
public class DubboGetAlbumContentResponse extends DubboBasicResponse {
priv... | true |
c4bdb9904e188236fcac1ca1ccab0d2ccc815c7c | Java | wolox-training/ss-java | /src/main/java/wolox/training/integration/dto/Classifications.java | UTF-8 | 1,323 | 2.015625 | 2 | [] | no_license |
package wolox.training.integration.dto;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashMap;
import java.util.List;
import java.ut... | true |
80d5326f44563f724f0c91f35841c17335199f38 | Java | zjlwmz/java-web | /SchoolService/src/cn/emay/common/response/ResponeResultClasses.java | UTF-8 | 302 | 1.859375 | 2 | [] | no_license | package cn.emay.common.response;
import java.util.List;
import cn.emay.model.Classes;
public class ResponeResultClasses extends ResponseResultBase{
private List<Classes>list;
public List<Classes> getList() {
return list;
}
public void setList(List<Classes> list) {
this.list = list;
}
}
| true |
9bcdca39bbdab239a98ee23fa2353615292fc419 | Java | PrateekSharma1712/FUT18PackOpener | /app/src/main/java/com/prateek/fut17packopener/ui/PackDetailsActivity.java | UTF-8 | 5,159 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.prateek.fut17packopener.ui;
import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import ... | true |
50c38afca6b03e9533b550d1d224dc973a4a0500 | Java | navikt/common-java-modules | /client/src/main/java/no/nav/common/client/aktoroppslag/AktorregisterHttpClient.java | UTF-8 | 10,645 | 1.992188 | 2 | [
"MIT"
] | permissive | package no.nav.common.client.aktoroppslag;
import com.fasterxml.jackson.databind.type.MapType;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import no.nav.common.client.aktoroppslag.BrukerIdenter;
import no.nav.common.client.aktorregister.AktorregisterClient;
import no.nav.common.client.aktorregister.I... | true |
d18970fc8ffcc11d2ea0d9113f522d97c55fd515 | Java | ashishjain1988/BCB569_Assignments | /src/main/java/Assignment1/BCB569/MainClass.java | UTF-8 | 17,793 | 2.9375 | 3 | [] | no_license | package Assignment1.BCB569;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
imp... | true |
5940f9ad4ad67e22c40e8a915dc0f6020a732af9 | Java | maite820/M09-cohete | /M09 cohetes fase 2/src/com/cohete/view/Uso_cohetes.java | UTF-8 | 1,146 | 3.0625 | 3 | [] | no_license | package com.cohete.view;
import com.cohete.domain.*;
public class Uso_cohetes {
public static void main(String[] args) {
//FASE 2:
// cohetes con sus codigos y numero de propulsores
Cohete cohete1 = new Cohete("32WESSDS",3);
Cohete cohete2 = new Cohete("LDSFJA32",6);
... | true |
10de6dc0dfb63bcefc85b024398e1902b6597222 | Java | themindfuldev/eai | /eai-cms/app/controllers/ControladorInicial.java | UTF-8 | 216 | 1.523438 | 2 | [] | no_license | package controllers;
import play.mvc.Result;
import views.html.index;
public class ControladorInicial extends ControladorMestre {
public static Result index() {
return ok(index.render(null));
}
}
| true |
e81219dc915a76936aa16944df623234d05f6fdc | Java | apache/sling-org-apache-sling-engine | /src/main/java/org/apache/sling/engine/impl/log/RequestLoggerResponse.java | UTF-8 | 14,830 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
5bee49bd42656d94d848e6f940e717f8ffeb67f1 | Java | sergotsevr/ArchivePlus | /src/main/java/com/example/demo/services/OperationTypeService.java | UTF-8 | 2,814 | 2.515625 | 3 | [] | no_license | package com.example.demo.services;
import com.example.demo.entities.OperationType;
import com.example.demo.entities.OperationTypeDto;
import com.example.demo.repositories.OperationTypeRepository;
import com.example.demo.utils.Mapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.b... | true |
f5329aeeb972dc44ed374f5d42efcdeb5be07341 | Java | pengshuai2010/practiceJava | /practiceJava/src/lintCode/Q140.java | UTF-8 | 1,510 | 3.640625 | 4 | [] | no_license | package lintCode;
public class Q140 {
/*
* Fast Power Show result
*
* 30:00 Start Calculate the an % b where a, b and n are all 32bit integers.
*
* Example For 231 % 3 = 2
*
* For 1001000 % 1000 = 0
*
* Challenge O(logn)
*/
/*
* @param a, b, n: 32bit integers
*
* @return: An integer
... | true |
3e53c1b470c33df7717cb45bc8c6ed5d2be9f99b | Java | seokheecho/bigdata3 | /bit-java01/src/main/java/step12/ex6/Truck.java | UTF-8 | 126 | 1.773438 | 2 | [] | no_license | package step12.ex6;
public class Truck extends Car {
float ton; // 트럭의 적재량
boolean dump; // 덤프 여부
}
| true |
4f6b71ced6542fbb2558fa554c91ab93e573ddae | Java | MechaMonst3r/Data-Structures-Assignment-1 | /Lab1/Lab1Exercise2/src/lab1exercise2/Rectangle2D.java | UTF-8 | 2,201 | 3.4375 | 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 lab1exercise2;
/**
*
* @author work
*/
public class Rectangle2D {
double xpos, ypos, width, height;
public Re... | true |
400b56f4da7678b6a83666031611d8b4d7ec8c88 | Java | kuldeep-singh-5894/KANG_E-Learning_System | /src/kang/com/Search_s.java | UTF-8 | 2,852 | 2.484375 | 2 | [] | no_license | package kang.com;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... | true |
19d9902c8cdec7f86b224937112226f03cad3b25 | Java | qhq123/there-logic | /DbConnection.java | UTF-8 | 771 | 2.375 | 2 | [] | no_license | package threelogic;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DbConnection {
static Connection connection;
DbConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException
{
Class.forName("com.micro... | true |
0f57b9f8a31bd029b59005f51a2cea7a476ef25a | Java | argodev/BiLab | /BiLab/bilab_working/BiLab/src/uk/ac/sanger/artemis/editor/ExternalApplication.java | UTF-8 | 6,330 | 2.515625 | 3 | [] | no_license | /*
*
* created: Wed Aug 3 2004
*
* This file is part of Artemis
*
* Copyright(C) 2000 Genome Research Limited
*
* 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; either version 2
* of ... | true |
9179ebd5c91118e3a599beead3dcfc524698fd1e | Java | songtaehyeon1/Employment_Project | /itzProject/src/com/itzProject/home/myhome/CommandimgSave.java | UTF-8 | 1,593 | 2.171875 | 2 | [] | no_license | package com.itzProject.home.myhome;
import java.io.File;
import java.io.IOException;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.itzProject.home.Comm... | true |
7a748acc7c3d4409439ce941ea29859081e5e597 | Java | java-prolog-connectivity/jpc.examples | /src/main/java/org/jpc/examples/metro/model/hlapi/MetroHLApi.java | UTF-8 | 1,748 | 2.25 | 2 | [] | no_license | package org.jpc.examples.metro.model.hlapi;
import static java.util.Arrays.asList;
import static org.jpc.engine.prolog.PrologEngines.getPrologEngine;
import java.util.List;
import org.jpc.Jpc;
import org.jpc.JpcBuilder;
import org.jpc.engine.logtalk.LogtalkObject;
import org.jpc.engine.prolog.PrologEngine;
import or... | true |
e3b95b7c135f2427bda59b0f87e3462ed9be0311 | Java | liuyang0923/joycool | /WEB-INF/src/net/joycool/wap/bean/friend/FriendLevelBean.java | UTF-8 | 1,504 | 2.109375 | 2 | [] | no_license | package net.joycool.wap.bean.friend;
public class FriendLevelBean {
int id;
int fromId;
int toId;
int levelValue;
String updateDatetime;
String createDatetime;
/**
* @return Returns the createDatetime.
*/
public String getCreateDatetime() {
return createDatetime;
}
/**
* @param createDatetime The cre... | true |
f05b0c506e504cb775d978d6fa2e3a04ff8248e8 | Java | Arathi/OpenGameDev | /src/org/beh/gamedev/Employee.java | UTF-8 | 3,552 | 2.578125 | 3 | [] | no_license | package org.beh.gamedev;
public class Employee {
public static final int JOBTITLE_PROGRAMER = 0;
public static final int JOBTITLE_WRITER = 1;
public static final int JOBTITLE_DESIGNER = 2;
public static final int JOBTITLE_SOUND_ENG = 3;
public static final int JOBTITLE_DIRECT = 4;
public static final int... | true |
80b5e0b57e454597be73d19490c3d71584e0a50f | Java | s-nisha/CustomerMgmt | /src/main/java/com/task/customer/dao/ICustomerDAO.java | UTF-8 | 255 | 1.9375 | 2 | [] | no_license | package com.task.customer.dao;
import com.task.customer.entities.Customer;
public interface ICustomerDAO {
public Customer add(Customer customer);
public Customer findByID(long customerID);
public Customer update(Customer customer);
}
| true |
d2cbf6a45fe0e763a94c100fcfccb69dc360ce8f | Java | pipipan/CycleFun | /app/src/main/java/jsp/activity/RoutesActivity.java | UTF-8 | 970 | 2.09375 | 2 | [] | no_license | package jsp.activity;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class RoutesActivity extends Activity {
public static String[] recommendationsArray = {"Santa Clara --> Mountain View", "Palo Alto -->... | true |
2fc09cb840b5a28dafaeb99cd088251800ace744 | Java | deiz123/demo-store | /src/main/java/com/pnrpu/store/service/OrderItemService.java | UTF-8 | 192 | 1.679688 | 2 | [] | no_license | package com.pnrpu.store.service;
import com.pnrpu.store.persistence.entity.OrderItem;
import java.util.List;
public interface OrderItemService {
void saveAll(List<OrderItem> orders);
}
| true |
e244005f327f387c9d893b693b058adb0e970fdb | Java | vehpsr/VkMusicCrawler | /crawler-logic/src/main/java/com/gans/vk/logic/service/LogicService.java | UTF-8 | 1,018 | 1.914063 | 2 | [] | no_license | package com.gans.vk.logic.service;
import java.util.List;
import java.util.Map.Entry;
import com.gans.vk.data.AudioLibrary;
import com.gans.vk.data.RecommendedArtistsData;
import com.gans.vk.logic.processor.AudioProcessor;
import com.google.common.collect.Multimap;
public interface LogicService {
Au... | true |
73c59b277c715e7d71b9c41279099831c8be8d82 | Java | apache/geode | /geode-core/src/integrationTest/java/org/apache/geode/internal/process/PidFileIntegrationTest.java | UTF-8 | 6,121 | 2.234375 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"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 may not ... | true |
cdbed7b3337037fd0ab4334f946e07aa8a778198 | Java | kylesyx/online-test-server | /src/main/java/com/ks_xlm/dao/UserDao.java | UTF-8 | 543 | 1.929688 | 2 | [] | no_license | package com.ks_xlm.dao;
import com.ks_xlm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import java.util.List;
/*
注册用户接口
*/
@Repository
//@Mapper
public interface UserDao {
//用户注册增加
... | true |
dd26bec7723a6b735060d03c68ecec43394dd049 | Java | 386959653/backwordframework | /p2p-core/src/main/java/com/pds/p2p/core/fastjson/FastJsonUtils.java | UTF-8 | 281 | 1.820313 | 2 | [] | no_license | package com.pds.p2p.core.fastjson;
import com.alibaba.fastjson.JSON;
public class FastJsonUtils {
public static <T> T parse(String text, String handleUnknown, Class<T> cls) {
return JSON.parseObject(text, cls, new HandleUnknownExtraProcessor(handleUnknown));
}
}
| true |
37131b846f291387d95cbb8e50cc1836ea8340e5 | Java | subramanyamg2198/selenium | /Selenium/src/Gmail.java | UTF-8 | 1,086 | 2.046875 | 2 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.*;
public class Gmail {
public static void main(String[] args) throws InterruptedException {
System.s... | true |
3849b38b2b6a4c1cb1b92d63a9bd21ea248192a8 | Java | djingwu/hybrid-development | /clbs/src/main/java/com/zw/platform/controller/core/CustomColumnController.java | UTF-8 | 5,666 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.zw.platform.controller.core;
import com.alibaba.fastjson.JSON;
import com.zw.adas.utils.controller.AdasControllerTemplate;
import com.zw.platform.service.core.CustomColumnService;
import com.zw.platform.util.GetIpAddr;
import com.zw.platform.util.StrUtil;
import com.zw.platform.util.common.AvoidRepeatSubmi... | true |
f3d02f1b11350eee9f5c8ddcfc851f8df5c9f690 | Java | LeyiliKeang/MySniffer | /src/com/leyilikeang/common/example/CreateTcpPacketExample.java | UTF-8 | 1,202 | 2.453125 | 2 | [] | no_license | package com.leyilikeang.common.example;
import org.jnetpcap.packet.JMemoryPacket;
import org.jnetpcap.packet.JPacket;
import org.jnetpcap.protocol.JProtocol;
import org.jnetpcap.protocol.lan.Ethernet;
import org.jnetpcap.protocol.network.Ip4;
import org.jnetpcap.protocol.tcpip.Tcp;
/**
* @author likang
* @date 2018... | true |
9f618399014abe3f8da1ccbc1aef61f3c22e600c | Java | Agorapps/POSTJSON | /app/src/main/java/prueba/envioxml/alvaro/postjson/MainActivity.java | UTF-8 | 18,919 | 1.859375 | 2 | [] | no_license | package prueba.envioxml.alvaro.postjson;
import java.io.File;
import java.io.IOException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpVersion;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.Cl... | true |
2bc1dda594283014fbfc4662a60971f398c5cd15 | Java | zhongxingyu/Seer | /Diff-Raw-Data/16/16_c8bd9ec24e51c5975c3dffa3a607a27cd208292f/CompilerAstCompletionNodeFinder/16_c8bd9ec24e51c5975c3dffa3a607a27cd208292f_CompilerAstCompletionNodeFinder_s.java | UTF-8 | 38,527 | 1.523438 | 2 | [] | no_license | /**
* Copyright (c) 2010 Darmstadt University of Technology.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
... | true |
2325f9fad6592549525bc5f1d1900ab388248501 | Java | cuicuicui123/pdjfy | /app/src/main/java/com/goodo/app/email/presenter/SelectPersonPresenterImpl.java | UTF-8 | 7,412 | 2.09375 | 2 | [] | no_license | package com.goodo.app.email.presenter;
import com.goodo.app.base.BaseActivity;
import com.goodo.app.email.model.UnitBean;
import com.goodo.app.email.model.UnitUserBean;
import com.goodo.app.email.view.SelectPersonView;
import com.goodo.app.rxjava.HttpMethods;
import com.goodo.app.rxjava.MySubscriber;
import com.goodo.... | true |
fa4f6e0b82baa79f31b69f7cfd1580aa1cf2e9b9 | Java | Bahar17/MyApi | /src/test/java/com/my/api/domain/AddressTest.java | UTF-8 | 1,297 | 2.515625 | 3 | [] | no_license | package com.my.api.domain;
import static org.junit.Assert.assertNotNull;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.my.api.service.ApplicationConstants;
/**
*
* The Class AddressTest.
*
*/
public class AddressTest {
/**
* Class under test.
*/
@SuppressWarnin... | true |
c9953b1019918007212c081da1a167c7a1333103 | Java | Harbormaster-AI/freeport-cloned | /src/main/java/com/freeport/dao/TournamentDAO.java | UTF-8 | 6,400 | 2.390625 | 2 | [] | no_license | /*******************************************************************************
Turnstone Biologics Confidential
2018 Turnstone Biologics
All Rights Reserved.
This file is subject to the terms and conditions defined in
file 'license.txt', which is part of this source code package.
Contri... | true |
1f1d4df5f7d678d291f27cd5551e2c4a08d799fd | Java | YoshThePinetree/FuzzyCMeans | /src/defo/main.java | UTF-8 | 167 | 1.789063 | 2 | [] | no_license | package defo;
public class main {
public static void main (String arg[]) {
System.out.println("Fuzzy C Means");
FCM fcm = new FCM();
fcm.FuzzyCMeans();
}
}
| true |
a00e24e78b7d6cf1d8336c062797bfc771bd599a | Java | tuk2000/sundaygame | /core/src/com/sunday/engine/environment/window/WindowEnvironment.java | UTF-8 | 1,273 | 2.390625 | 2 | [] | no_license | package com.sunday.engine.environment.window;
import com.sunday.engine.common.Data;
import com.sunday.engine.common.context.DataContext;
import com.sunday.engine.contextbank.ContextBank;
import com.sunday.engine.environment.EnvironmentDataContext;
import com.sunday.engine.rule.Condition;
import com.sunday.engine.rule.... | true |
aa209055c7d8851999c64a106712589a1f49b2f5 | Java | zkt1061749991/revdol-cq | /src/main/java/com/example/demo/domin/Event.java | UTF-8 | 420 | 1.90625 | 2 | [] | no_license | package com.example.demo.domin;
import lombok.Data;
import java.io.Serializable;
import java.sql.Date;
@Data
public class Event implements Serializable{
private int id;
private int state;
private int type;
private String event_title;
private String event_alt;
private String event_body;
pr... | true |
dc8015b82f7f998aa16371f4ce748f20c2780696 | Java | ankitsorathiya/Er-Algorithm-and-Dr-Data-Structure | /src/test/java/com/engineeralgorithmanddrdatastructure/combinactory/SumWithKDigitsTest.java | UTF-8 | 1,813 | 2.890625 | 3 | [
"MIT"
] | permissive | package com.engineeralgorithmanddrdatastructure.combinactory;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameter... | true |
e7624b301344ea256ddcd449fdbf385bb0102fc2 | Java | thanass/ThanCal | /app/src/main/java/edu/thanassis/thancal/MainActivity.java | UTF-8 | 3,165 | 2.46875 | 2 | [] | no_license | package edu.thanassis.thancal;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import edu.thanassis.thancal.R;
public class MainActivity extends A... | true |
b275c34a56b8e4892f694dc4a40a97136682faa9 | Java | hiepnhse61627/CapstoneProject | /04.Source/CapstoneMVC/src/main/java/com/capstone/controllers/StudentPassFailSubjectController.java | UTF-8 | 4,870 | 2.28125 | 2 | [] | no_license | package com.capstone.controllers;
import com.capstone.entities.MarksEntity;
import com.capstone.entities.RealSemesterEntity;
import com.capstone.models.Global;
import com.capstone.models.Ultilities;
import com.capstone.services.*;
import com.google.common.collect.Lists;
import com.google.gson.Gson;
import com.google.g... | true |
1c115fb41cfbcaa4397449640b259af978049c7b | Java | mairan/Local | /src/self/kiwi/dao/ItemDAO.java | UTF-8 | 420 | 2.046875 | 2 | [] | no_license | package self.kiwi.dao;
import java.net.UnknownHostException;
import com.mongodb.DBCollection;
import self.kiwi.model.GeneralItem;
public class ItemDAO extends MongoWrapper {
public ItemDAO()
throws UnknownHostException {
super();
// TODO Auto-generated constructor stub
}
public void insert(GeneralItem ... | true |
82cd4a2cd85b1852adb58dfbcac5faba330593db | Java | racsor/prueba | /src/main/java/org/alterq/domain/UserAlterQ.java | UTF-8 | 2,912 | 1.929688 | 2 | [] | no_license | package org.alterq.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class UserAlterQ implements Serializable {
@Id
private String id;
private String nick... | true |