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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
042401a4a8b856eee791071428aae872522d6835 | Java | 52im/NimbleIO | /nimbleio-core/src/main/java/com/generallycloud/nio/component/concurrent/LinkedListM2O.java | UTF-8 | 468 | 2.25 | 2 | [] | no_license | package com.generallycloud.nio.component.concurrent;
public class LinkedListM2O<T> extends AbstractLinkedList<T> implements LinkedList<T> {
private FixedAtomicInteger _end;
protected LinkedListM2O(int capability) {
super(capability);
_end = new FixedAtomicInteger(capability - 1);
}
protected LinkedListM2O()... | true |
b304f0cad227200f463389294a3e25e241cb93c0 | Java | Tagpower/sirh-gestion-paie | /src/main/java/dev/paie/web/controller/RemunerationEmployeController.java | UTF-8 | 2,755 | 2.15625 | 2 | [] | no_license | package dev.paie.web.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframew... | true |
d9ee3aa254f1ba3669dd3b71249739049d59697c | Java | federicotrani/ZMail | /app/src/main/java/com/example/ftrani/zmail/adapters/MensajeAdapter.java | UTF-8 | 2,118 | 2.4375 | 2 | [] | no_license | package com.example.ftrani.zmail.adapters;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.ftrani.zmail.R;
import com.ex... | true |
11d5c22dd2b118193c9a222559b9b42aa31e251c | Java | unive-ingsw2017/bunny-team | /Src/unfinitaly/app/src/main/java/it/unive/dais/bunnyteam/unfinitaly/app/cluster/PercentageClusterRenderer.java | UTF-8 | 3,409 | 2.40625 | 2 | [] | no_license | package it.unive.dais.bunnyteam.unfinitaly.app.cluster;
import android.content.Context;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.MarkerOptions;
import com.google.maps.android.clustering.ClusterManager;
imp... | true |
0c382d4c9650bbcc6917da04c94b432bdd030019 | Java | UrsulaK/iceandfire | /iceandfire_db/src/main/java/iceandfire/de/db/service/repository/HouseRepository.java | UTF-8 | 683 | 2.125 | 2 | [] | no_license | package iceandfire.de.db.service.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import iceandfire.de.db.service.model.House;
publi... | true |
d7a215dea534553af32efb8cc60a5e1aeda1abcb | Java | nikhil2050/NK_ERP_Inventory_Leave_MgmtSys | /EC_ERP/src/main/java/com/ec/erp/repository/ErpEmployeeRepository.java | UTF-8 | 407 | 1.609375 | 2 | [] | no_license | package com.ec.erp.repository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import com.ec.erp.model.ErpEmployee;
import com.ec.erp.softdelete.BaseRepository;
import org.springframework.data.repository.CrudRepository;
@Repository
public interface ErpEmployeeRepos... | true |
7fcf2e922ea8c337a826b0869010aa3c90c346f0 | Java | digi-embedded/android-sample-xbeemanager | /app/src/main/java/com/digi/android/sample/xbeemanager/models/AbstractReceivedPacket.java | UTF-8 | 4,324 | 2.515625 | 3 | [
"ISC"
] | permissive | /*
* Copyright (c) 2014-2021, Digi International Inc. <support@digi.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PR... | true |
c99e45fb0007a96a4dda522c9b0e09dcf4ca107a | Java | SarthakSingh2010/Java_Programming | /exam/test.java | UTF-8 | 233 | 2.5 | 2 | [] | no_license | class test
{
static int x=3;
int y=4;
public static void main(String args[])
{
test obj=new test();
System.out.println("x value "+test.x);
System.out.println("y value "+obj.y);
}
}
| true |
e00fa6fd754c11f1c31f0e80470d63e6a19b8920 | Java | kohsuke/vcc | /vcc-ant-tasks/src/main/java/net/java/dev/vcc/ant/AntLogFactory.java | UTF-8 | 2,410 | 2.140625 | 2 | [] | no_license | package net.java.dev.vcc.ant;
import net.java.dev.vcc.spi.AbstractLogFactory;
import net.java.dev.vcc.spi.AbstractLog;
import net.java.dev.vcc.api.Log;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.Project;
import java.text.MessageFormat;
/**
* Created by IntelliJ IDEA. User: connollys Date: Aug 11,... | true |
c8827d0d73d16b5c8774c03a3deea95a821ed6ec | Java | yangjiugang/teamway | /flf/src/com/fc/flf/eagent/mapper/ICostFeeMapper.java | UTF-8 | 1,425 | 1.992188 | 2 | [] | no_license | package com.fc.flf.eagent.mapper;
import java.util.List;
import java.util.Map;
import com.fc.flf.common.domain.UserCostFee;
/**
* 记录开销Mapper
*
* @author Administrator
*
*/
public interface ICostFeeMapper {
/**
* 开销列表查询
*
* @param map
* @return List<UserCostFee>
*/
List<UserC... | true |
05981e1f790d32e107c17bc94985582823802ccd | Java | SpinyOwl/SpinyGUI | /core/src/main/java/com/spinyowl/spinygui/core/system/event/listener/SystemKeyEventListener.java | UTF-8 | 1,979 | 2.4375 | 2 | [
"MIT"
] | permissive | package com.spinyowl.spinygui.core.system.event.listener;
import com.spinyowl.spinygui.core.event.KeyboardEvent;
import com.spinyowl.spinygui.core.event.processor.EventProcessor;
import com.spinyowl.spinygui.core.input.KeyAction;
import com.spinyowl.spinygui.core.input.Keyboard;
import com.spinyowl.spinygui.core.input... | true |
fa53eaa672b457b2c46521d1d8adebc36b9e34bb | Java | EricksonVaz/AndroidTvAppTutorial | /app/src/main/java/com/ericksoncv/androidtvapptutorial/ui/DetailsActivity.java | UTF-8 | 616 | 1.742188 | 2 | [
"MIT"
] | permissive | package com.ericksoncv.androidtvapptutorial.ui;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentActivity;
import android.os.Bundle;
import com.ericksoncv.androidtvapptutorial.R;
public class DetailsActivity extends FragmentActivity {
public static final String MOVIE = "Mov... | true |
35ae3c22e48d630479311354e7f002ae0253c718 | Java | nhphuong96/my-room | /app/src/main/java/com/myroom/application/RepositoryComponent.java | UTF-8 | 2,766 | 1.921875 | 2 | [] | no_license | package com.myroom.application;
import com.myroom.activity.CreateBillActivity;
import com.myroom.activity.GeneralSettingCurrencyActivity;
import com.myroom.activity.GeneralSettingUtilityActivity;
import com.myroom.adapter.CreateRoomUtilityAdapter;
import com.myroom.adapter.GuestInRoomAdapter;
import com.myroom.adapter... | true |
e90f47b32edb8334cc987110652ca59447d30934 | Java | AlperCakiroglu/derivativeCalculator | /calculator/Newton_Raphson.java | UTF-8 | 1,503 | 2.875 | 3 | [] | no_license | package itujoker.calculator;
public class Newton_Raphson {
private double x;//initial guess
private double e;//absolute err
private int n;
private double d;
private String function;
public Newton_Raphson(double absolute_err, double d, int n, double initial_guess,String function) {
... | true |
a1b56bd13444e25e36b16bc7a827a5f2b68dae32 | Java | simonloach/OOP-Chess-Game | /src/MainGUI.java | UTF-8 | 4,256 | 2.90625 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import java.util.List;
public class MainGUI extends JFrame{
private JPanel PANEL;
private List<JPanel> panelList = new ArrayList<>();
private String[] pola = {"a8", "b... | true |
da5b36a5423cdb9df4accf7cec631169151bf1c7 | Java | Sania7/job4jtasks | /src/test/sort/ReverseOrderTest.java | UTF-8 | 287 | 2.21875 | 2 | [] | no_license | package test.sort;
import org.junit.Test;
import sort.ReverseOrder;
import java.util.Comparator;
import static org.junit.Assert.*;
public class ReverseOrderTest {
@Test
public void test() {
assertEquals(Comparator.reverseOrder(), ReverseOrder.reverseOrder());
}
} | true |
769ba8011521c49dbabe7c8d929121576ac02955 | Java | shining1510386040/spikesystem | /storeservice/src/main/java/com/demo/springboot/storeservice/config/RedisConfig.java | UTF-8 | 3,426 | 2.390625 | 2 | [] | no_license | package com.demo.springboot.storeservice.config;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Pri... | true |
aaec2267ae90471681680e49102613dc31200455 | Java | hyunmimaust/PopularMovies | /app/src/main/java/com/example/android/popularmovies/data/Movie.java | UTF-8 | 2,270 | 2.5 | 2 | [] | no_license | package com.example.android.popularmovies.data;
import android.database.Cursor;
import java.io.Serializable;
/**
* Created by hmaust on 6/28/17.
*/
public class Movie implements Serializable {
String imageUrl;
String title;
String originalLanguage;
Boolean adult;
String overview;
String ... | true |
dcf22f733f98b680869c39b2e8b41b50af59eec5 | Java | lotuswlz/wlz-project | /01.project_as_tool/myTool/src/optdoc/PageInfoUtil.java | EUC-JP | 8,191 | 2.296875 | 2 | [] | no_license | /*
* History
* Version Update Date Updater Details
* 1.0.00 2010-6-9 Cathy Wu Create
*/
package optdoc;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileFilter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.... | true |
d0d675eb2cc2c19c79bfb03d12ec3a33baa40a0e | Java | JaganmohanDevendraguru/AMS | /src/main/java/com/sse/dao/SemesterDAO.java | UTF-8 | 287 | 2.140625 | 2 | [] | no_license | package com.sse.dao;
import java.util.List;
import com.sse.model.Semester;
public interface SemesterDAO {
public List<Semester> findAll();
public Semester findById(String sem);
public int create(Semester sem);
public int deleteById(String id);
public int update(Semester sem);
}
| true |
2c5dc9c9fb4c8dfdfe50fe2d69fa468a6e7eb063 | Java | prgmTrouble/prgmML | /prgmML/src/main/java/com/prgmtrouble/ml/prgmML/math/Tensor.java | UTF-8 | 4,699 | 3.140625 | 3 | [] | no_license | package com.prgmtrouble.ml.prgmML.math;
public final class Tensor {
/**
* Dilates a flattened rank-3 tensor.
*
* @param in Input.
* @param is Input side length.
* @param c Channels.
* @param factor Number of empty rows and columns to add between elements.
* @return Flattened and dilated matri... | true |
91921e1da00dc7e34ea3411d439b86523d9477f8 | Java | NMPavan/MYUdacityBaking | /app/src/main/java/com/example/manikyapavan/myudacitybaking/models/Ingredient.java | UTF-8 | 2,002 | 2.65625 | 3 | [] | no_license | package com.example.manikyapavan.myudacitybaking.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
public class Ingredient implements Parcelable {
@SerializedName(value = "quantity")
private double mIngredientQuantity;
@SerializedName(value... | true |
ee8957d06dad1112864b12ccc1b06a3220bfcab0 | Java | kchandan38/project | /Generic Database Services/src/main/java/com/gendbservices/dbservices/service/DatabaseType.java | UTF-8 | 714 | 1.867188 | 2 | [] | no_license | package com.gendbservices.dbservices.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.gendbservices.dbservices.exception.GenDbException;
import com.gendbservices.dbservices.request.CreatePoolRequest;
import com.gendbservices.dbservices.request.QueryRequest;
import com.gendbservices.dbserv... | true |
141dafdcaf05cc1f7c318d7b24b843a02ff204d6 | Java | outrunJ/algorithm | /java/src/base/dp2/MinCoinsLimit.java | UTF-8 | 7,952 | 3.46875 | 3 | [] | no_license | package base.dp2;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
// (不重复,只1张)/(可重复,限张数),求最小张数
public class MinCoinsLimit {
private static int process(int[] arr, int idx, int rest) {
if (rest < 0) {
return Integer.MAX_VALUE;
}
if (idx == arr.length)... | true |
51b1990529378a368cc2d38a68703166bcdeebad | Java | yeungeek/AndroidRoad | /MVVM-Arsenal/app/src/main/java/com/yeungeek/mvvm/sample/mvvm/GithubViewHolder.java | UTF-8 | 1,151 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.yeungeek.mvvm.sample.mvvm;
import android.app.Application;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.support.annotation.NonNull;
import com.yeungeek.mvvm.core.BaseViewModel;
import com.yeungeek.mvvm.sample.http.DataCallback;
import com.yeungeek.m... | true |
9a8ee4c73d5dd74da64ecb4a4e82c94d727896fb | Java | Avicus/AvicusNetwork | /Hook/Bukkit/src/main/java/net/avicus/hook/credits/reward/CompetitveRewardListener.java | UTF-8 | 2,003 | 2.25 | 2 | [
"MIT"
] | permissive | package net.avicus.hook.credits.reward;
import net.avicus.atlas.sets.competitve.objectives.destroyable.leakable.event.LeakableLeakEvent;
import net.avicus.atlas.sets.competitve.objectives.destroyable.monument.event.MonumentDestroyEvent;
import net.avicus.atlas.sets.competitve.objectives.flag.events.FlagCaptureEvent;
i... | true |
eb2c3c9a9d757118f103ccfe97da579fdd57960c | Java | Hasithazz/High-Street-Bank | /BankGUI/src/GUI/EmployeeEditor.java | UTF-8 | 13,122 | 2.390625 | 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 GUI;
import java.util.ArrayList;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
/**
*
* ... | true |
72df285de60217d0cddb97d55bfb78cdeed79c5a | Java | LanceXuan/Lsproject | /Lsteamtalk/src/com/lesso/action/CcNoticeAction.java | UTF-8 | 9,949 | 1.929688 | 2 | [] | no_license | package com.lesso.action;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.RequestDispatcher;
impor... | true |
045b0bed4e4153969d954d267e7c253b4c964517 | Java | gitlinxd/pawo | /pawo-common/pawo-common-basic/src/main/java/com/gm/user/ShoppingOrders.java | UTF-8 | 2,128 | 1.851563 | 2 | [] | no_license | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
* Copyright (c) 2012-2019. haiyi Inc.
* pawo-common All rights reserved.
*/
package com.gm.user;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableL... | true |
44b7e81b74f438b3d0d92a1ecf88d7240f0e415a | Java | laivieeeee/ruiqing | /code/ruiqing/rq-common/src/main/java/com/ruiqing/common/utils/Resources.java | UTF-8 | 1,981 | 2.25 | 2 | [] | no_license | package com.ruiqing.common.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.u... | true |
248823f2051a105ec3b9a655c94b151c06770db0 | Java | lndlazy/supermarket | /app/src/main/java/com/supermarket/haidilao/home/HomeActivity.java | UTF-8 | 9,850 | 1.625 | 2 | [] | no_license | package com.supermarket.haidilao.home;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
impo... | true |
c7183514aad82c66d29dc7180219484cce24c2df | Java | ChrisL89/OMT | /src/main/java/com/offer/messages/v2/MessageConverter.java | UTF-8 | 3,001 | 2.703125 | 3 | [] | no_license | package com.offer.messages.v2;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.offer.exceptions.InvalidMessageTypeException;
import com.offer.exceptions.MissingHeaderException;
import com.offer.messages.v2.responses.AbstractResponse;
import com.rabbitmq.client.LongString;
import com.rabbitmq.client.Queu... | true |
7f8d73d151b67c2ef1e6743401a1b2eb72067e0e | Java | Peterragheb/CSE430-Android-Development | /Lab6_Money_Collector_Game/app/src/main/java/com/games/peter/lab6_money_collector_game/CustomAdapter.java | UTF-8 | 3,166 | 2.796875 | 3 | [] | no_license | package com.games.peter.lab6_money_collector_game;
/**
* Created by Peter on 30/3/2018.
*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
/... | true |
7d1c9ee0d8f5b2e75a7ba72015c98da6a1125507 | Java | S04Nik/JavaHW | /src/com/company/HW01/array/Array.java | UTF-8 | 1,695 | 3.390625 | 3 | [] | no_license | package com.company.HW01.array;
public class Array implements Imath, Isort {
public int[] nums;
public Array(){
nums=new int[]{1,2,3,4,5,9,12,55,36,78,0};
}
@Override
public int Max() {
int tmp=nums[0];
for(int i:nums){
if(tmp<i) tmp=i;
}
System.o... | true |
9b60591b385a7c13c2224b0145d6599f33193226 | Java | cybernetics/learning-rsocket-using-rsc | /src/test/java/com/example/UpperCaseControllerTest.java | UTF-8 | 860 | 2.09375 | 2 | [] | no_license | package com.example;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.rsocket.context.LocalRSocketServerPort;
import org.springframework.boot.test.context.SpringBootTe... | true |
759276569c4bbb1656121f0b0d00a3a6b35d5ce2 | Java | KangZhiDong/DataLink | /dl-domain/src/main/java/com/ucar/datalink/domain/event/HBaseConfigClearEvent.java | UTF-8 | 748 | 2 | 2 | [
"CDDL-1.1",
"Apache-2.0",
"CDDL-1.0"
] | permissive | package com.ucar.datalink.domain.event;
import com.ucar.datalink.common.event.CallbackEvent;
import com.ucar.datalink.common.utils.FutureCallback;
import com.ucar.datalink.domain.media.MediaSourceInfo;
/**
* Created by qianqian.shi on 2018/11/21.
*/
public class HBaseConfigClearEvent extends CallbackEvent {
pr... | true |
dcb8863dc8201a5fadcfa35420d7f863a45245cc | Java | josepgitz/FuturisticApp | /src/main/java/com/csa/cashsasa/utility/StepOnePersist.java | UTF-8 | 1,911 | 2.40625 | 2 | [] | no_license | package com.csa.cashsasa.utility;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import java.util.HashMap;
public class StepOnePersist
{
SharedPreferences pref;
Editor editor;
Context _c... | true |
9445643bf1cfcf16a19e50556e8d493274e6495f | Java | fbwkzl333/homework5 | /homework5/src/homework5/IsoscelesTriangleStars.java | UTF-8 | 1,300 | 3.75 | 4 | [] | no_license | // 3번메뉴 클래스 :IsoscelesTriangleStars
package homework5;
import java.util.Scanner;
public class IsoscelesTriangleStars {
public void Iso(){
Scanner s = new Scanner(System.in);
System.out.print("이등변삼각형 높이입력 : ");
int input = s.nextInt(); // 높이
int star =0; // * 그리기 할 녀석
int gap = input; // 공백을 그... | true |
e8081f1f09c7f898555d1851d64418d5a6175f15 | Java | xinhaoqi1667/Grasshopper | /Grasshopper_server/src/com/hp/dao/ConditionReleaseDao.java | GB18030 | 623 | 2.21875 | 2 | [] | no_license | package com.hp.dao;
import java.util.List;
import com.hp.entity.Release;
public class ConditionReleaseDao extends BaseDao{
public static void main(String[] args) {
ConditionReleaseDao d = new ConditionReleaseDao();
List<Release> list = d.getlist(1);
System.out.println(list);
for (Release release : list) {
... | true |
f04ed923a58ccc1f48a4bd57306a3f96e0f9e274 | Java | Vignesh78199/Springmvc | /SpringMvcJava/src/main/java/com/spring/Controller/RemoveFriend.java | UTF-8 | 1,850 | 2.265625 | 2 | [] | no_license | package com.spring.Controller;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereoty... | true |
5ece94323a88340617e34377d9dd47dd8fd103c4 | Java | jeshua2018/UIP-PROG2 | /Tarea/Futbool/Jugador15.java | UTF-8 | 203 | 2.0625 | 2 | [
"MIT"
] | permissive | package ArabeUnido;
public class Jugador15 extends Equipo {
public void mostrar() {
System.out.println("posicion es: delantero Izquierdo");
System.out.println("Su dorsal es: ");
}
}
| true |
8e28e67bb66dc01ccf0807bb892949a39c16d589 | Java | yue31313/cnblog | /src/com/cnblogs/android/MyRssActivity.java | GB18030 | 8,165 | 1.90625 | 2 | [] | no_license | package com.cnblogs.android;
import java.util.ArrayList;
import java.util.List;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.os.Async... | true |
6b3057e2ac690f43fa3a870adea33a0436a8ec15 | Java | gAmUssA/hazelcast-simulator | /simulator/src/main/java/com/hazelcast/simulator/protocol/connector/ClientConnector.java | UTF-8 | 4,200 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.hazelcast.simulator.protocol.connector;
import com.hazelcast.simulator.protocol.core.MessageFuture;
import com.hazelcast.simulator.protocol.core.Response;
import com.hazelcast.simulator.protocol.core.SimulatorMessage;
import com.hazelcast.simulator.protocol.handler.MessageEncoder;
import com.hazelcast.simu... | true |
78ba461a2d392bb4f49657e32b7c2db6808e7514 | Java | MarcosGaitan/Proyecto | /Sistema_Restaurante/src/controladores/ControladorUnirMesas.java | UTF-8 | 2,480 | 2.515625 | 3 | [] | no_license | package controladores;
import java.io.IOException;
import java.util.GregorianCalendar;
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.HttpServletRes... | true |
3bcec63ed14173647502730b1904e94c9d8fbc3f | Java | lixiaodong/sharemind | /sharemind/src/com/google/sharemind/dao/ArticleDaoImpl.java | UTF-8 | 849 | 2.203125 | 2 | [] | no_license | package com.google.sharemind.dao;
import javax.annotation.Resource;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import com.google.appengine.api.datastore.Key;
import com.google.sharemind.entity.Article;
public class ArticleDaoImpl implements ... | true |
bfb3c46bb8b463f4b308c1372cc393f5a714ff29 | Java | LingWu0/JingDongJD | /app/src/main/java/com/example/xxsj/jingdongjd/view/activity/GuidePageActivity.java | UTF-8 | 2,324 | 2.375 | 2 | [] | no_license | package com.example.xxsj.jingdongjd.view.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;
import com.example.xxsj.j... | true |
a1260d6ee7259f951948601c7ad335da34ddf851 | Java | togaurav/encuestame | /encuestame-core/src/main/java/org/encuestame/core/exception/EnMeMappingExceptionResolver.java | UTF-8 | 2,630 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | /*
************************************************************************************
* Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2011
* encuestame Development Team.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.... | true |
ef838ce2c7e683b5bcff2108a9aaaef3036e8a88 | Java | fucct/jwp-was | /src/main/java/exception/InvalidRequestBodyException.java | UTF-8 | 211 | 2.03125 | 2 | [] | no_license | package exception;
public class InvalidRequestBodyException extends HttpRequestException {
public InvalidRequestBodyException() {
super("지원하지 않는 request body 형식입니다.");
}
}
| true |
5e23f150ede6e72c755c4e96715dec1142e1b700 | Java | moonlightBeautiful/springMVCStudy | /c00workingGet/src/main/java/com/ims/c01timedTask/c01xml/MyTimeTask.java | UTF-8 | 495 | 2.078125 | 2 | [] | no_license | package com.ims.c01timedTask.c01xml;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat;
import java.util.Date;
@Component
public class MyTimeTask {
/**
* 定时器的任务方法不能有返回值,请求项目一次任意接口后回启动
*/
public void cycleTa... | true |
dd70dd14ed188d722f05385320439e293e37ea40 | Java | mormolis/zbtsm-location-notes | /app/src/main/java/com/example/georgioslamprakis/zboutsam/activities/AddCategories.java | UTF-8 | 4,982 | 2.28125 | 2 | [] | no_license | package com.example.georgioslamprakis.zboutsam.activities;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
im... | true |
edc0f7ae0b076c7efa58f36f725c99722792e9ad | Java | srolemberg/rss-reader | /Simple RSS Reader/src/br/com/samirrolemberg/simplerssreader/adapter/ListarPostsFragmentAdapter.java | UTF-8 | 1,900 | 2.359375 | 2 | [] | no_license | package br.com.samirrolemberg.simplerssreader.adapter;
import java.util.List;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
import android.widget.TextView;
import br.com.samirrolemberg.simplerssreader.R;
import br.com.samirrolembe... | true |
121d3f16c3babbd6900d8898f616bd88627de5db | Java | mpradeep1994/Personal-medical-Application | /code/src/parser/dom_sax/expensesSAX.java | UTF-8 | 4,761 | 2.5 | 2 | [] | no_license | package dom_sax;
import java.io.File;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
public class expensesSAX {
public static void main(String[] args){
try {
... | true |
83f9f0714968df23e0ee698614b222cda041bbb9 | Java | notMoveICome/backApp | /src/main/java/com/hxlc/backstageapp/service/impl/AppNewsServiceImpl.java | UTF-8 | 3,678 | 2.171875 | 2 | [] | no_license | package com.hxlc.backstageapp.service.impl;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.hxlc.backstageapp.mapper.AppNewsMapper;
import com.hxlc.backstageapp.pojo.AppNews;
import com.hxlc.backstageapp.service.AppNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
4a72c66dcfeb072a240bc97d0023c271057df5b8 | Java | pablobecerra94/Algoritmo-de-calidad | /src/com/unlam/analisis/algoritmo/vistas/SeguridadDeAccesoView.java | UTF-8 | 3,902 | 2.296875 | 2 | [] | no_license | package com.unlam.analisis.algoritmo.vistas;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import ja... | true |
51ee4ff4130c243e5b62fe326b3869db900610a1 | Java | didrocks/timetosmile | /app/src/main/java/fr/teamrocks/timetosmile/entities/SmileData.java | UTF-8 | 2,002 | 3.28125 | 3 | [] | no_license | package fr.teamrocks.timetosmile.entities;
import android.os.SystemClock;
import java.util.Date;
import fr.teamrocks.timetosmile.utils.TimeFormat;
/**
* Smile Data storing current smile stats for a given day
*/
public class SmileData extends TimeFormat {
private static final String TAG = "SmileData";
pub... | true |
4f632b3e8f3112fffe6ef394f8ed4fcbf9ea6615 | Java | Nomad95/to-do-list | /src/main/java/pl/pollub/api/commons/factory/GeneralFactory.java | UTF-8 | 538 | 2.390625 | 2 | [] | no_license | package pl.pollub.api.commons.factory;
import pl.pollub.api.collaborators.model.Collaboration;
import pl.pollub.api.collaborators.model.User;
import pl.pollub.api.todo.model.Todo;
public class GeneralFactory {
public static Todo createTodo(Integer id, String content){
return new Todo(id,content);
}
... | true |
76c5ac3077d2874e4a48b9b8b363ed3a440e1044 | Java | jerome-tan-git/kibana | /src/com/inv/parser/TestRedis.java | UTF-8 | 4,119 | 2.453125 | 2 | [] | no_license | package com.inv.parser;
import java.util.List;
import redis.clients.jedis.Jedis;
public class TestRedis {
public static void main(String[] args) throws InterruptedException {
// SimpleDateFormat sdf = new
// SimpleDateFormat("yyyy-MM-dd HH:mm:ss [Z]");
// String json = "{message:'Monitor phone wor... | true |
ea6b82a91e2a09faf437cc2626cbffc456f496c8 | Java | DreamFlyC/yimi | /src/com/lw/traceabilitytype/entity/TraceabilityType.java | UTF-8 | 820 | 2.15625 | 2 | [] | no_license | package com.lw.traceabilitytype.entity;
import java.io.Serializable;
public class TraceabilityType implements Serializable{
private int id;
private String name;
private int parent_id;
private Integer point_id;
private Integer type_id;
public int getId() {
return id;
}
public void setId(int id) {
this.id =... | true |
c05e3b87ec09b6ba462f71ec42adbde41be9e2fd | Java | mraz811/PaRaPaRa | /src/main/java/com/happy/para/model/Notice_IDao.java | UTF-8 | 955 | 1.898438 | 2 | [] | no_license | package com.happy.para.model;
import java.util.List;
import com.happy.para.dto.NoticeDto;
import com.happy.para.dto.PagingDto;
import com.happy.para.dto.ReplyDto;
public interface Notice_IDao {
// Notice
// 공지사항 등록
public boolean noticeWrite(NoticeDto dto);
// 공지사항 수정
public boolean noticeModify... | true |
7fb51bcb5edf9fe12630941170da5c8467e343c8 | Java | anjali628/Pass-data-from-one-activity-to-another | /app/src/main/java/com/example/passdatafromoneactivitytoanotheractivity/MainActivity.java | UTF-8 | 1,181 | 2.21875 | 2 | [] | no_license | package com.example.passdatafromoneactivitytoanotheractivity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity ext... | true |
9895db195ed2dc006a21891ed787106f6fd62469 | Java | sluizin/Gradle-luckdraw | /src/main/java/com/maqiao/was/luckActivity/web/ProjectActivityClass.java | UTF-8 | 9,035 | 2.34375 | 2 | [] | no_license | /**
*
*/
package com.maqiao.was.luckActivity.web;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* 抽奖专题项目类<br>
* 包括基础总数、显示总数、Targetid、开始与结束日期、奖项等... | true |
43d18a1712dc1dea3f5288b6e02e76ce87cf55ba | Java | raniless/AlgorithmStudy | /src/question/leetcode/easy/range101to200/LP160.java | UTF-8 | 1,168 | 3.203125 | 3 | [] | no_license | package question.leetcode.easy.range101to200;
import question.leetcode.util.ListNode;
import java.util.HashSet;
import java.util.Set;
// Intersection of Two Linked Lists
// - https://leetcode.com/problems/intersection-of-two-linked-lists/
public class LP160 {
public static void main(String[] args) {
}
... | true |
4e13fe1fb5c163e3b81fa15802982118ef7cf9c8 | Java | kezabrenda/newsPortal | /src/test/java/models/DepartmentNewsTest.java | UTF-8 | 841 | 2.421875 | 2 | [
"MIT"
] | permissive | package models;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class DepartmentNewsTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void getDepar... | true |
b07063976387ef8b2a066b7a4cac1ceb957ead57 | Java | zhanght86/HSBC20171018 | /LIS/sinosoft-parents/lis-business/src/main/java/com/sinosoft/lis/taskservice/taskinstance/RnewPolAutoTMThread.java | UTF-8 | 10,698 | 1.632813 | 2 | [] | no_license | package com.sinosoft.lis.taskservice.taskinstance;
import org.apache.log4j.Logger;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
import com.sinosoft.lis.db.LCContDB;
import com.sinosoft.lis.db.LDSysVarDB;
import com.sinosoft.lis.db.LMEdorCalDB;
import com.sinosoft.lis... | true |
ed14e1b3fe8a3804ab2dee082ff705f6e0fa480a | Java | 791837060/qipai_huainanmajiang | /qipai_admin_facade/src/main/java/com/anbang/qipai/admin/plan/bean/permission/Role.java | UTF-8 | 623 | 1.953125 | 2 | [] | no_license | package com.anbang.qipai.admin.plan.bean.permission;
import java.util.List;
public class Role {
private String id;// 角色id
private String role;// 角色名称
private List<RoleRefPrivilege> privilegeList;// 权限列表
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String ge... | true |
1b751f00d857b9959a19a5dddfa4ccaf181e2adc | Java | rawrrencee/PointOfSaleSystemV54 | /PointOfSaleSystemV54/PointOfSaleSystemV54Library/build/generated-sources/ap-source-output/entity/CategoryEntity_.java | UTF-8 | 940 | 1.757813 | 2 | [] | no_license | package entity;
import entity.CategoryEntity;
import entity.ProductEntity;
import javax.annotation.Generated;
import javax.persistence.metamodel.ListAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", ... | true |
7d94a2c5c1b4a7d4e7f2f2a01d4b35d4bac59a35 | Java | liorgabay/DontMissItProj | /app/src/main/java/com/example/liorozit/dontmissitproj/SignInActivity.java | UTF-8 | 15,031 | 2 | 2 | [] | no_license | package com.example.liorozit.dontmissitproj;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Lo... | true |
27031e3a01bfb6ab98208481a46e200d915a30f2 | Java | msranand95/new-life | /src/com/lifebuds/data/ImageDAOImpl.java | UTF-8 | 1,837 | 2.640625 | 3 | [] | no_license | package com.lifebuds.data;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.lifebuds.domain.UploadImage;
public class ImageDAOImpl extends MYSQLDatabaseInfo implements I... | true |
a0364b6afb7e84f2727d0d6f3c6800f52ed3498b | Java | wsx180808/- | /web/Project1/JDBC/jdbc3/commons/commons-dbcp-1.2.2-src/src/test/org/apache/commons/dbcp/TestConnectionPool.java | UTF-8 | 17,302 | 2.296875 | 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 may ... | true |
bc38fe0d9339fb1ffa9bd739c9e4b0c592cf013f | Java | Sawrr/gravity-game | /core/src/com/sawyerharris/gravitygame/ui/TextItem.java | UTF-8 | 1,955 | 3.15625 | 3 | [] | no_license | package com.sawyerharris.gravitygame.ui;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.scenes.scene2d.Touchable;
import com.badlogic.gdx.utils.Align;
import c... | true |
bbb43081a35a08ee896af6d9121a3183fd0ad188 | Java | Heverton/ermasterr | /src/org/insightech/er/editor/model/diagram_contents/element/node/table/column/NormalColumn.java | UTF-8 | 20,436 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package org.insightech.er.editor.model.diagram_contents.element.node.table.column;
import java.util.ArrayList;
import java.util.List;
import org.insightech.er.db.sqltype.SqlType;
import org.insightech.er.editor.model.diagram_contents.element.connection.Relation;
import org.insightech.er.editor.model.diagram_co... | true |
78705ce222ceb8a3dfeede8eeee1e1acb7943d1e | Java | TapasDash/Java-Programmes | /Genrics2.java | UTF-8 | 530 | 3.453125 | 3 | [] | no_license | class Genrics2
{
public static void main(String args[])
{
Integer a[]={1,2,3,4,5};
Gen<Integer> ob1=new Gen<Integer>(a);
ob1.display();
Float f[]={1.2f,2.3f,4.5f,6.7f};
Gen<Float> ob2=new Gen<Float>(f);
ob2.display();
ArrayList arl=new ArrayList(1,2,3,4,5);
Gen<ArrayList> obj3=new Gen<Array... | true |
4c2a755ae1c39a0c97f7121e1413b0a7deed390a | Java | diana-dr/Systems-for-Design-and-Implementation | /lab10/core/src/main/java/application/Core/Service/ClientServiceImpl.java | UTF-8 | 1,319 | 2.578125 | 3 | [] | no_license | package application.Core.Service;
import application.Core.Domain.Client;
import application.Core.Domain.Validators.ClientValidator;
import application.Core.Repository.ClientRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
9decb8d3145008df2427671732f29f4f8d1ad7db | Java | GoodListener/Bit_Java | /coding_game/src/algorithm/ex1/PowerSigma.java | UTF-8 | 649 | 3.40625 | 3 | [] | no_license | package algorithm.ex1;
public class PowerSigma {
public static void main(String[] args) {
nonReculsive(5,10);
System.out.println(reculsive(5,5));
}
public static void nonReculsive(int n, int m) {
int result = 0, a=1;
for (int i = 1; i <= n; i++) {
for (int k = 0; k < m; k++) {
... | true |
1604ecfeda3df1483394f69600feade56917cb8d | Java | zxlsyhl/storm-topology-demo | /src/main/java/zxl/com/stormtopologydemo/ConsumeBolt.java | UTF-8 | 1,496 | 2.234375 | 2 | [] | no_license | package zxl.com.stormtopologydemo;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseRichBolt;
import org.apache.storm.tuple.Tuple;
import java.io.FileWriter;
import java.io.IOExc... | true |
cede70cdff791d2f6de67876455e87ffa032d0d8 | Java | karpuwapower1/XMLParser_Greenhouse- | /src/main/java/by/training/task04/karpilovich/command/CommandType.java | UTF-8 | 112 | 1.648438 | 2 | [] | no_license | package by.training.task04.karpilovich.command;
public enum CommandType {
LOGIN, SIGNIN, SIGNOUT, PARSE;
}
| true |
38f915405c1731c345118d0e28ed7e23b3c496e9 | Java | BeiLiLin/Algorithms | /src/main/java/Unit1/test1/Test_13/Parentheses.java | UTF-8 | 3,066 | 3.53125 | 4 | [] | no_license | package Unit1.test1.Test_13;
import edu.princeton.cs.algs4.StdOut;;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Iterator;
import java.util.Scanner;
public class Parentheses<T> implements Iterable<T> {
private T[] a;
private int N;... | true |
79737f5ed5e9e074c20f8f0dc04d081b52584728 | Java | foilen/foilen-infra-plugins-core | /src/test/java/com/foilen/infra/resource/website/WebsiteTest.java | UTF-8 | 11,351 | 1.953125 | 2 | [
"MIT"
] | permissive | /*
Foilen Infra Plugins Core
https://github.com/foilen/foilen-infra-plugins-core
Copyright (c) 2018-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.resource.website;
import java.util.Arrays;
import java.util.HashMap;
import java.uti... | true |
9263e4ae7bfb908f8b092cf04e1d0519e13421aa | Java | stroandr/labs | /trainer/JAVA_LABS/src/main/java/de/gedoplan/seminar/java/exercise/oo/HolzArtikel.java | UTF-8 | 763 | 2.671875 | 3 | [] | no_license | /*
* Copyright (c) 2016
* GEDOPLAN Unternehmensberatung und EDV-Organisation GmbH
* Stieghorster Str. 60, D-33605 Bielefeld, Germany
* http://www.gedoplan.de
* All rights reserved.
*/
package de.gedoplan.seminar.java.exercise.oo;
public class HolzArtikel extends Artikel3 {
private boolean zuschnitt;
publi... | true |
0849664c1c20af9a1f315ae82e8e31e35e2a2a57 | Java | snamper/sofn-server | /sofn-sso-web/src/main/java/com/sofn/service/sso/SSOAppService.java | UTF-8 | 990 | 1.96875 | 2 | [] | no_license | package com.sofn.service.sso;
import com.sofn.core.base.BaseService;
import com.sofn.core.constant.CurrentUser;
import com.sofn.core.support.dubbo.spring.annotation.DubboReference;
import com.sofn.provider.sso.SSOLoginProvider;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service
public ... | true |
e731cf62f1e8c64fb979be898cff0be50f7f7ee3 | Java | nidhalmesselmani/FrontEnd | /app/src/main/java/com/example/nidhal/frontend/mainclasses/FillInsurance.java | UTF-8 | 9,082 | 2.0625 | 2 | [] | no_license | package com.example.nidhal.frontend.mainclasses;
import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import androi... | true |
5bad4e8ad94cc6cb0b51d44ff4767915dc7ccd83 | Java | GaryDev/java-android | /WCFApp/src/org/snow/wcfapp/soap/object/KvmListBase.java | UTF-8 | 1,141 | 2.21875 | 2 | [] | no_license | package org.snow.wcfapp.soap.object;
import java.util.Hashtable;
import java.util.List;
import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;
public abstract class KvmListBase<T> implements KvmSerializable {
public static final String NAMESPACE = "http://snow.org/... | true |
81ba55ed83f8afda086d68bfa478b2ba9d414144 | Java | alexisvincent/ArtExplorer | /src/artexplorer/expressions/X.java | UTF-8 | 365 | 2.4375 | 2 | [] | no_license | package artexplorer.expressions;
import java.util.Random;
/**
*
* @author alexisvincent
*/
public class X extends Expression {
@Override
public double evaluate(double x, double y) {
return x;
}
@Override
public Expression variation(int maxDepth, Random random) {
return leafVar... | true |
fa88e80e4b903f6beaebb41070081403879893d4 | Java | RayWuBlue/Anywhere | /app/src/main/java/com/ray/anywhere/activity/WebContent.java | UTF-8 | 5,279 | 1.84375 | 2 | [] | no_license | package com.ray.anywhere.activity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Vi... | true |
4845654df51004869947f620676479f5113097f9 | Java | hawkular/hawkular-commons | /hawkular-rest-status/src/test/java/org/hawkular/commons/rest/status/ManifestUtilTest.java | UTF-8 | 2,306 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | true |
1c30eab0fe3c51da51609af7a4df48a67d946027 | Java | sfohart/mestrado-ufba-pesquisa-orientada | /pesquisa-orientada/mestrado-core/src/main/java/br/ufba/dcc/mestrado/computacao/repository/impl/TagRepositoryImpl.java | UTF-8 | 2,483 | 2.28125 | 2 | [] | no_license | package br.ufba.dcc.mestrado.computacao.repository.impl;
import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import... | true |
0e472f0102c33aac90189a05330060709cb1663d | Java | Aflynch/DriveSpectrum | /src/com/lynchsoftwareengineering/drivespectrum/MakeTestData.java | UTF-8 | 3,258 | 2.5 | 2 | [] | no_license | package com.lynchsoftwareengineering.drivespectrum;
import java.util.ArrayList;
public class MakeTestData {
public MakeTestData(){
}
public static ArrayList<PointTime> getTestPointTimeArrayList(int numberOfPointTimesInt, int numberOfRountesInt, int numberOfOverLappingRountesInt){
// stringArraylist.add("33.... | true |
b9b5d9846237260c7d8588064da4d30f0896701d | Java | yelcartoubi/ebics-java-service | /src/main/java/io/element36/cash36/ebics/generated/camt_053_001_04/CardAggregated1.java | UTF-8 | 4,994 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.05.13 ... | true |
442eecc186061a9b5997419867cd6811c6967043 | Java | iamslash/learntocode | /leetcode/ParallelCourses/Solution.java | UTF-8 | 1,390 | 3.203125 | 3 | [] | no_license | import java.util.*;
// 9ms 81.46% 46MB 100.00%
// DFS
// O(V+E) O(V)
class Solution {
private boolean dfs(List<List<Integer>> G,
List<Integer> D,
List<Integer> S,
int u) {
// base
if (S.get(u) == 1)
return true;
if (S.get(u) == 0)
... | true |
7a4ce854cc3e1286702f87ca514a4173d1d6e596 | Java | 1284517067/SmartParkAttractInvestmentManagementSystem_ServerSystem | /src/main/java/com/rzh/iot/service/impl/ApprovalProcessNodeServiceImpl.java | UTF-8 | 9,459 | 2.234375 | 2 | [] | no_license | package com.rzh.iot.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.rzh.iot.dao.ApprovalProcessDao;
import com.rzh.iot.dao.ApprovalProcessNodeDao;
import com.rzh.iot.model.ApprovalProcess;
import com.rzh.iot.model.ApprovalProcessNode;
import com.rzh.iot.service.A... | true |
584b69fe2e701dd5c9c6f8ea2f35167d7cd23066 | Java | ajedaev/TestMap | /app/src/main/java/com/map/test/MainActivity.java | UTF-8 | 4,588 | 1.976563 | 2 | [] | no_license | package com.map.test;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.Observer;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.google.android.gms.maps.Came... | true |
7fd728bc2b462a2014ec8871ea1c44c1baabdefc | Java | SibRaza15/BitCoin-Pricer | /src/test/java/com/bitcoin/BitcoinPricerTest.java | UTF-8 | 4,315 | 2.25 | 2 | [] | no_license | package com.bitcoin;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
import org.testng.annotations.DataProvider;
import org.junit.After;
import org.juni... | true |
47e2debb4f8f9746b77ed51a0127db49979baec1 | Java | Sashanity/Sudoku-game | /src/edu/sjsu/cs/cs151/model/EasyGame.java | UTF-8 | 796 | 3.21875 | 3 | [] | no_license | package edu.sjsu.cs.cs151.model;
/**
* This is a Model class
* One of the implementations of the Game class
* Number of set up to the board is 27
*/
import java.util.Random;
/**
* Second implementation of the Gaame class
*
* @author Aleksandra, Ben, Jefferson
*
*/
public class EasyGame extends Game {
/**
... | true |
ea407ec4c0b4b71a9bb31e7549076483c68cac3a | Java | my-jabin/springbootTutorial | /src/main/java/com/jiujiu/springboot/controller/LinkController.java | UTF-8 | 1,560 | 2.453125 | 2 | [] | no_license | package com.jiujiu.springboot.controller;
import com.jiujiu.springboot.annotation.Timed;
import com.jiujiu.springboot.exception.LinkNotFoundException;
import com.jiujiu.springboot.model.Link;
import com.jiujiu.springboot.service.LinkService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springfr... | true |
5969b9270cd29c835ad76f83139770b9d58bb39b | Java | benjaminrclark/cate | /src/main/java/org/cateproject/repository/jpa/auth/UserAccountRepository.java | UTF-8 | 577 | 2.125 | 2 | [
"MIT"
] | permissive | package org.cateproject.repository.jpa.auth;
import org.cateproject.domain.auth.UserAccount;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor... | true |
cc4ee8bb11d6441eff810aada24e630e47480eaa | Java | HessTina-YuI/leetcode-java | /src/main/java/org/yui/medium/p0394/Solution.java | UTF-8 | 1,491 | 3.3125 | 3 | [
"MIT"
] | permissive | package org.yui.medium.p0394;
import java.util.Stack;
/**
* @program: leetcode
* @package: org.yui.hard.p0345
* @description: 394. 字符串解码
* @author: YuI
* @create: 2020/5/28 11:00
**/
public class Solution {
private static class Encode {
/** 重复次数 */
public int time = 0;
/** 拼接字符串 */
... | true |
1562566605e7a975a99458309c76e848d576d516 | Java | rubertmi00/LeftoversCookbook | /src/util/Sanitizer.java | UTF-8 | 164 | 2.390625 | 2 | [] | no_license | package util;
public class Sanitizer {
public static String sanitizeInput(String input) {
return input.replace(";", "").replace("(", "").replace(")", "");
}
}
| true |
ec33fb75d47b0f9fd6891bae873f923acdc0b098 | Java | louismarie/budgetview | /budgetview/bv_server/src/test/java/com/budgetview/server/cloud/functests/CloudAutoImportTest.java | UTF-8 | 10,793 | 1.84375 | 2 | [] | no_license | package com.budgetview.server.cloud.functests;
import com.budgetview.model.TransactionType;
import com.budgetview.server.cloud.functests.testcases.CloudDesktopTestCase;
import com.budgetview.server.cloud.stub.BudgeaStatement;
import com.budgetview.shared.cloud.budgea.BudgeaCategory;
import org.globsframework.utils.Dat... | true |
4d24182c3b23c83d6eb803112f5ee5d62a9db04b | Java | kumaneko-japan/SystemErrorLog | /system-errorLog/src/main/java/syserrLog/message/ResultMessageType.java | UTF-8 | 94 | 1.9375 | 2 | [] | no_license | package syserrLog.message;
public interface ResultMessageType {
String getType();
}
| true |
2713e7bf202c474081845f5b729375739fc396c4 | Java | shaikm/SampleApp | /app/src/main/java/com/nytimes/application/api/ApiManager.java | UTF-8 | 2,808 | 2.328125 | 2 | [] | no_license | package com.nytimes.application.api;
import android.content.Context;
import com.nytimes.application.data.DataManager;
import com.nytimes.application.data.entity.NewsEntity;
import com.nytimes.application.util.Utils;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executors;
import ret... | true |