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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
42f823a54dcddf87bf5fab23601b4f9cb81c3e1d | Java | kajuga/Focus-Start | /src/test/java/fedorov/LargestTriangleTest.java | UTF-8 | 1,133 | 2.65625 | 3 | [] | no_license | package fedorov;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.File;
import java.io.IOException;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
import org.junit.Test;
public class LargestTriangleTest {
private String inputFileSmall = "inputSmall.txt";
p... | true |
62fc5b3579a2b62fb427121818451237da836c18 | Java | Wszl/ioc | /src/main/java/org/xdove/ioc/exception/NoSuchBeanClassException.java | UTF-8 | 185 | 1.921875 | 2 | [
"MIT"
] | permissive | package org.xdove.ioc.exception;
public class NoSuchBeanClassException extends RuntimeException {
public NoSuchBeanClassException(String message) {
super(message);
}
}
| true |
3558f2b50d738959ab86c13f28311c00c62026dd | Java | sauravomar/Java-code | /src/hackerrank/FindDiscountedPrice.java | UTF-8 | 2,272 | 3.34375 | 3 | [] | no_license | package com.ril.slot;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class FindDiscountedPrice {
public static void finalPrice(List<Integer> prices) {
int[] minLeftEle = new int[prices.size()];
StringBuilder sb = new StringBuilder();
int sum = 0;
int min = prices.get(pr... | true |
c02330d935ba14fba99dd398d7bee65e20da9c9e | Java | ccorcobado/mastercloudapp-practica27 | /fase1/monolito/src/main/java/es/codeurjc/daw/monolito/infrastructure/PedidoRepository.java | UTF-8 | 288 | 1.554688 | 2 | [] | no_license | package es.codeurjc.daw.monolito.infrastructure;
import org.springframework.data.jpa.repository.JpaRepository;
import es.codeurjc.daw.monolito.domain.Pedido;
import es.codeurjc.daw.monolito.domain.PedidoId;
public interface PedidoRepository extends JpaRepository<Pedido, PedidoId> {
} | true |
31ed12381397d20e177317d81197aa1f1726ce2c | Java | cuba-platform/cuba | /modules/core/test/com/haulmont/cuba/testmodel/fetchsameentity/FetchSameMainEntity.java | UTF-8 | 2,156 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2017 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
b7df25e7ce14b194ac4b7382380573738bdd566c | Java | Jasonandy/andorid-X | /src/cn/ucaner/CaculatorActivity.java | UTF-8 | 4,628 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | /**
* <html>
* <body>
* <P> Copyright 1994 JsonInternational</p>
* <p> All rights reserved.</p>
* <p> Created on 19941115</p>
* <p> Created by Jason From https://github.com/Jasonandy/patterns </p>
* </body>
* </html>
*/
package cn.ucaner;
import android.app.Activity;
import android.content.Intent;
impo... | true |
6b26a2784ae471f94aef6666d029c3269b03cb64 | Java | GhostBob/JavaTwoFall2019 | /Day02/collectionsrock/CollectionsRock.java | UTF-8 | 2,549 | 3.609375 | 4 | [] | no_license | package collectionsrock;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
public class CollectionsRock {
public static void main(Strin... | true |
41a2c5ed5c73f5c199b02da2a20ac925d75f779d | Java | vilizhe/ethparser | /src/test/java/pro/belbix/ethparser/CommonTests.java | UTF-8 | 436 | 2.046875 | 2 | [] | no_license | package pro.belbix.ethparser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static pro.belbix.ethparser.web3.harvest.db.HarvestDBService.aprToApy;
import org.junit.Test;
public class CommonTests {
@Test
public void testAprToApy() {
double apr = 0.743;... | true |
a53ebc009f7ea672a8bda4856819a49966aa4485 | Java | gspandy/camellia | /camellia-dashboard/src/main/java/com/netease/nim/camellia/dashboard/exception/AppException.java | UTF-8 | 682 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.netease.nim.camellia.dashboard.exception;
/**
*
* Created by caojiajun on 2019/11/7.
*/
public class AppException extends RuntimeException {
private int code;
private String msg;
public AppException() {
}
public AppException(int code) {
this.code = code;
}
public A... | true |
68fc86720d02c090f91ae95cb07665d27a12b466 | Java | juaco93/openxava-repymes | /src/com/arsjdev/repymes/model/Localidad.java | UTF-8 | 335 | 1.828125 | 2 | [] | no_license | package com.arsjdev.repymes.model;
import javax.persistence.*;
import org.openxava.annotations.*;
import org.openxava.model.*;
import lombok.*;
@Entity @Data
public class Localidad extends Identifiable{
@ManyToOne(fetch = FetchType.LAZY)
@DescriptionsList
@NoModify
@NoCreate
Departamento departamento;
String ... | true |
6c37d88d5beff42f1e313d1449f146023cf25ec3 | Java | smaharjan99/mocha | /shashiehr/src/main/java/com/cubic/vo/ClinicVO.java | UTF-8 | 227 | 2.03125 | 2 | [] | no_license | package com.cubic.vo;
public class ClinicVO {
private String clinicName;
public String getClinicName() {
return clinicName;
}
public void setClinicName(String clinicName) {
this.clinicName = clinicName;
}
}
| true |
714b5dd8a90343900486a519a124d1761174b15f | Java | csarmientoz/TallerRelaciones | /POOEducacion/src/becker/ejercicio2.java | UTF-8 | 4,593 | 3.046875 | 3 | [] | no_license |
package becker;
import becker.robots.City;
import becker.robots.Direction;
import becker.robots.Robot;
import becker.robots.Wall;
public class ejercicio2 {
public static void main(String[] args){
City bogota = new City();
Wall pared1 = new Wall(bogota, 1, 1, Direction.WEST);
Wall pared2... | true |
7d1974bb394ce1c5cc4740a6a003f5366165e2e1 | Java | DietWatch/dietWatch-master | /mobile/src/main/java/aib/dietwatch/RestNewProductBackgroundTask.java | UTF-8 | 1,757 | 1.953125 | 2 | [] | no_license | package aib.dietwatch;
import org.androidannotations.annotations.Background;
import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.RootContext;
import org.androidannotations.annotations.UiThread;
import org.androidannotations.annotations.rest.RestService;
import org.androidannotati... | true |
5993bf987db2ffd5dac558623899057d8e2de596 | Java | anushakasu44/Automationtestingmaven | /src/test/java/junitTesting/newtoursHomePage.java | UTF-8 | 781 | 2.234375 | 2 | [] | no_license | package junitTesting;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class newtoursHomePage {
ChromeDriver driver;
@FindBy(xpath="//input[@name='userName']")
WebElement Userna... | true |
dafbc50edb11305a3750df1854f1137a6fac7a06 | Java | btolor/Lab8_Ex4 | /src/Ex_4/Circle.java | UTF-8 | 2,069 | 4.0625 | 4 | [] | no_license |
package Ex_4;
public class Circle extends Point{
//Circle Class Variables...
private double area, circumference,radius;
private String center;
//Circle Class constructor...
/*
The constructor method take in three parameters.
The first two parameters are used to execte the
enbeded... | true |
b0d3a59d399476aac4c6f55867bb017e8920decf | Java | JohnSimith/shiro | /src/main/java/com/controller/UserController.java | UTF-8 | 2,379 | 2.296875 | 2 | [] | no_license | package com.controller;
import javax.jws.soap.SOAPBinding.Use;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache.shiro.authc.UsernamePasswo... | true |
da36f780a01cb9495301de38b93ff3237040542c | Java | cjt-AG/barcode4j-core | /src/main/java/org/krysalis/barcode4j/impl/int2of5/ITF14.java | UTF-8 | 1,277 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008 Jeremias Maerki.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | true |
03f56bbee360faa6cc864a019bf8fc70360ee4c9 | Java | xiangyue520/spring-cloud-stream | /spring-cloud-stream/spring-cloud-stream-kafka/src/main/java/com/wanggan/stream/kafka/config/MohrssService.java | UTF-8 | 617 | 1.609375 | 2 | [] | no_license | /**
* Company
* Copyright (C) 1992-2019 All Rights Reserved.
*/
package com.wanggan.stream.kafka.config;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.Subs... | true |
56c1562d89181465c403790f6bdb16c03e776dbe | Java | itsolutionscorp/AutoStyle-Clustering | /all_data/cs61b/src/proj0/475/Board.java | UTF-8 | 14,322 | 3.28125 | 3 | [] | no_license | public class Board {
private Piece[][] pieces; //stores Piece objects
private boolean[][] yesPieces; //stores if there is a piece at that area or not
private static int N = 8; //size of board
private int player = 0; //first player = 0, second player = 1;
private Piece currPiece; //current piece to be moved
pri... | true |
660960717746ba3c0ad363ed63349b1cfa081cb9 | Java | Tsfarias/VSDB | /iDB.java | UTF-8 | 213 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | import java.io.*;
public interface iDB{
public BufferedReader readDB();
public String getFromDB();
public String[] getFromDB(String info);
public String[] getFromDB(String info1, String info2);
}
| true |
b6a4883add8bf565ecf842d17cba488921a8a979 | Java | gayanvoice/library-system-spring | /src/main/java/com/library/web/controller/MemberController.java | UTF-8 | 4,339 | 2.234375 | 2 | [] | no_license | package com.library.web.controller;
import com.library.web.model.Author;
import com.library.web.model.Member;
import com.library.web.repository.MemberRepository;
import com.library.web.viewmodel.CreateMemberForm;
import com.library.web.viewmodel.UpdateMemberForm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory... | true |
0c406cc90d730f2501a32177a4931c86c1e6dcf3 | Java | Fleaman777/javalearn | /src/math1.java | UTF-8 | 207 | 2.859375 | 3 | [] | no_license | public class math1 {
public static int degree(int a, int b){
int c=1;
for(int i=0; i<b; i++){
c=c*a;
}
return c;
}
}
| true |
d8c99643914e1fdb2988ab667d42cefeb7ad17d1 | Java | sanogotech/openconcerto_ERP_JAVA | /jOpenCalendar/src/org/jopencalendar/ui/DayView.java | UTF-8 | 4,358 | 2.78125 | 3 | [] | no_license | package org.jopencalendar.ui;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.swing.Scro... | true |
acaa2853d26e5a28d30477427ba23090c2920cc2 | Java | TNG/ArchUnit | /archunit-example/example-plain/src/main/java/com/tngtech/archunit/example/layers/service/OtherServiceViolatingLayerRules.java | UTF-8 | 519 | 1.734375 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | package com.tngtech.archunit.example.layers.service;
import com.tngtech.archunit.example.layers.controller.UnmarshalTransport;
import com.tngtech.archunit.example.layers.controller.marshaller.ByteUnmarshaller;
import com.tngtech.archunit.example.layers.controller.marshaller.StringUnmarshaller;
public class OtherServi... | true |
7067ba41d0d71e323adb56a0a02daa11bb0079b8 | Java | Dzordzu/BERP | /src/main/java/seeder/job/IDCompanyFileReader.java | UTF-8 | 945 | 2.390625 | 2 | [] | no_license | package seeder.job;
import logic.DataValidatorException;
import logic.identity.ID;
import logic.identity.IDType;
import org.json.JSONObject;
import seeder.SeederFileReader;
import java.io.IOException;
import java.util.List;
import java.util.Vector;
/**
* @XXX DANGEROUS AREA!
*/
public class IDCompanyFileReader ex... | true |
687d5a67ab759d837a6ba53740c1fa2238e114a2 | Java | JerryftGuo/spontzoug-backend | /src/main/java/com/spontzoug/server/service/ICashierService.java | UTF-8 | 624 | 1.78125 | 2 | [] | no_license | package com.spontzoug.server.service;
import com.spontzoug.server.model.Cashier;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.util.Date;
public interface ICashierService {
void create(Cashier b);
Mono<Cashier> findById(final String id);
Mono<Cashier> update(Cashier ... | true |
bbe5fdaee81620229f664f25a6132caab55481a0 | Java | draem0507/commontemplate | /commontemplate/src/main/java/org/commontemplate/standard/scope/ForScopeHandler.java | UTF-8 | 985 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package org.commontemplate.standard.scope;
import org.commontemplate.core.Context;
import org.commontemplate.core.LocalContext;
public class ForScopeHandler extends ScopeHandlerSupport {
private static final long serialVersionUID = 1L;
private String variableName = "for";
public String getVariableNam... | true |
8b58834021df5929ed2dc8977a6e55842a22108b | Java | kkburr/mentorMatch | /src/main/java/com/rallydev/mentorship/embeddedjetty/ExampleServlet.java | UTF-8 | 838 | 2.4375 | 2 | [] | no_license | package com.rallydev.mentorship.embeddedjetty;
import com.rallydev.mentorship.Relationship;
import org.eclipse.jetty.http.HttpStatus;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.i... | true |
f46d40fbee6b9462c015e5a3ea98ad290fa917c8 | Java | blueroutecn/demo-example | /storm-demo/src/main/java/com/thirdlucky/storm/example/pvcount/UVSessionBolt.java | UTF-8 | 1,293 | 2.25 | 2 | [] | no_license | package com.thirdlucky.storm.example.pvcount;
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.Fields;
import org.apache.storm.tuple.Tuple;... | true |
3cda4ba39989d801e1560b44dea9d5362af5beb0 | Java | EthanMiller2/CSCI-111-Intro-To-Java | /Inlab4/Driver.java | UTF-8 | 1,545 | 3.640625 | 4 | [] | no_license |
/**
* Write a description of class Driver here.
*
* @author (Ethan Miller)
* @version (27 Sept 2016)
*/
public class Driver
{
public static void main(String[] args)
{
//create instance of Player class and set the number of at bats and hits
Player p1 = new Player("Joe");
... | true |
6e1bdbc4995b111032198565b81632b880d14cdf | Java | wangjianxiandev/design | /src/yingliangmoshi/yingliangfuza/Tree.java | UTF-8 | 293 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package yingliangmoshi.yingliangfuza;
/**
* Created with IntelliJ IDEA.
* Description:
* User: wjx
* Date: 2019-05-06
* Time: 19:47
*/
public class Tree extends Plant {
@Override
public void display(int xCoord, int yCoord, int age) {
System.out.println(xCoord);
}
}
| true |
896e46e23ea2fe52d544f9158c0d81af3a3dc667 | Java | EDD-season2/caffeine-be | /src/main/java/com/woowacourse/caffeine/domain/Shop.java | UTF-8 | 2,951 | 2.359375 | 2 | [] | no_license | package com.woowacourse.caffeine.domain;
import com.woowacourse.caffeine.application.dto.ShopCreateRequest;
import com.woowacourse.caffeine.application.dto.SignUpRequest;
import com.woowacourse.caffeine.domain.exception.InvalidShopNameException;
import org.springframework.util.StringUtils;
import javax.persistence.Co... | true |
e52a86c9f9b4a44868e2436469c6b2dcbcd4a2cc | Java | singhal95/CampusEnquiry | /app/src/main/java/campus/iit/nitin/com/campusenquiry/MainActivity.java | UTF-8 | 6,032 | 2 | 2 | [] | no_license | package campus.iit.nitin.com.campusenquiry;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.B... | true |
2640d764d49aabe92558b1ee51adceec25c030b0 | Java | jesard/HospitalApp | /src/main/java/net/thumbtack/school/hospital/model/Doctor.java | UTF-8 | 1,998 | 2.78125 | 3 | [] | no_license | package net.thumbtack.school.hospital.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public class Doctor extends User {
private int id;
private String speciality;
private String room;
private List<DaySchedule> schedule = new ArrayList<>();
// private List<Day... | true |
f5b9c37c07aca67e99458cbc874ad6b10380ec95 | Java | ConnorFM/igloo-parent | /igloo/igloo-components/igloo-component-infinispan/src/test/java/org/iglooproject/test/infinispan/util/tasks/AbstractTask.java | UTF-8 | 680 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.iglooproject.test.infinispan.util.tasks;
import org.infinispan.manager.EmbeddedCacheManager;
import org.slf4j.MDC;
import org.iglooproject.test.infinispan.util.TestCacheManagerBuilder;
public abstract class AbstractTask implements Runnable {
private final EmbeddedCacheManager cacheManager;
protected ... | true |
cfc89040e334c26ddef1f1e8371568ccdda5c883 | Java | programming-study/hotel | /src/main/java/usst/cqk/hotel/model/repository/StaffRepository.java | UTF-8 | 209 | 1.679688 | 2 | [] | no_license | package usst.cqk.hotel.model.repository;
import org.springframework.data.repository.CrudRepository;
import usst.cqk.hotel.model.Staff;
public interface StaffRepository extends CrudRepository<Staff,Long> {
}
| true |
9be305a64c00998740ef6dcc9f865b725e5d4e59 | Java | msayanece/BankAccount | /src/BankProject/Customer.java | UTF-8 | 4,474 | 3.453125 | 3 | [] | no_license | /**
* @version 1.0
*
*/
package BankProject;
import java.util.ArrayList;
import java.util.InputMismatchException;
import java.util.Scanner;
import com.SBIBank;
import ip.MyException;
/**
* @author Sayan
*
*/
public final class Customer {
/**
* @param args
*/
public static void main(String[] args) {
... | true |
b4071c16600459e64ac429bb1eda1c071307dfbb | Java | bento0013/BB | /cs/src/main/java/com/bsd/cse/app/security/RoleCore.java | UTF-8 | 8,195 | 1.859375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bsd.cse.app.security;
import com.bsd.cse.common.app.TransactionalProcessor;
import com.bsd.cse.model.security.Group;
import com.bsd.cse.model.security.Role;
import com.bsd.cse.model.security.User;
import ja... | true |
78bb4bd2f8dd471a828d490992856e7dd952a94e | Java | SpineEventEngine/time | /testutil-time/src/main/java/io/spine/time/testing/TimeTests.java | UTF-8 | 2,478 | 2.359375 | 2 | [
"MPL-1.1",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"LGPL-2.1-or-later",
"EPL-1.0",
"Classpath-exception-2.0",
"CC0-1.0",
"GPL-2.0-only",
"WTFPL",
"Apache-2.0",
"MPL-1.0",
"LicenseRef-scancode-public-domain",
"EPL-2.0",
"BSD-3-C... | permissive | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | true |
dc657666513f6ebc1d5655c48868c18869400e53 | Java | nija123098/DiscordBot | /src/main/java/com/github/nija123098/evelyn/discordobjects/wrappers/event/events/DiscordGuildUpdate.java | UTF-8 | 867 | 2.578125 | 3 | [] | no_license | package com.github.nija123098.evelyn.discordobjects.wrappers.event.events;
import com.github.nija123098.evelyn.discordobjects.wrappers.Guild;
import com.github.nija123098.evelyn.discordobjects.wrappers.event.BotEvent;
import sx.blah.discord.handle.impl.events.guild.GuildUpdateEvent;
/**
* Made by nija123098 on 3/31/... | true |
bed2420210b714ec735e611e474a0c968c10f3b2 | Java | thoced/ProjetRavageV3 | /src/coreAI/Node.java | ISO-8859-1 | 1,651 | 2.765625 | 3 | [] | no_license | package coreAI;
import org.jbox2d.common.Vec2;
import coreEntity.Unity;
import coreEntity.UnityBaseController;
import coreEntity.UnityNetController;
public class Node
{
private int type; // wall, ground, ...
private boolean isDiagonal;
private float x,y;
// node utilis par une unit ennemie
private UnityB... | true |
c32ef9153c5b45a1faec9eb3019466c294c29f97 | Java | bharathsoftwarearmy/NewVentureClient | /DonateBlood/DonateBlood/app/src/main/java/com/bijesh/donateblood/models/ui/server/RegisteredUserLocation.java | UTF-8 | 478 | 2 | 2 | [] | no_license | package com.bijesh.donateblood.models.ui.server;
/**
* Created by Bijesh on 1/14/2018.
*/
public class RegisteredUserLocation {
private String city;
private Location location;
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
... | true |
8b80016a186ced17626245b314873c69b6f1de0a | Java | ruanlas/TADS2015 | /OUTROS/SimuladorFinanciamento/src/ExceptionPessoaSemRequisitos.java | UTF-8 | 65 | 1.546875 | 2 | [] | no_license |
public class ExceptionPessoaSemRequisitos extends Exception{
}
| true |
d1af1a1567d418b0b190b0f59cd2ec3af4e8fdb4 | Java | shewsljy/java | /blog/src/cn/jiayuli/blog/AddServlet.java | UTF-8 | 1,646 | 2.859375 | 3 | [] | no_license | package cn.jiayuli.blog;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.annotation.WebServlet;
/**
* @author jiayu
* @description 新版Servlet(3.... | true |
0802a0b1a9f7469864536ca97517e52331b83525 | Java | huhanghao/MvpModuleFramework | /lib_core/src/main/java/com/hhh/lib_core/model/UserInfoManager.java | UTF-8 | 2,746 | 2.59375 | 3 | [] | no_license | package com.hhh.lib_core.model;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.hhh.lib_core.beans.SampleUserBean;
/**
* 用户信息管理对象
*/
public class UserInfoManager {
// 存储用户信息的key
public static final String USER_INFO = "USER_INFO";
// 对象锁
private static final Object SYNC_LOCK ... | true |
04432b0f468c1c639a311866651d0dcc0ae00692 | Java | Schuljakov/TardisMod | /src/main/java/tardis/client/renderer/model/console/SchemaDisplayModel.java | UTF-8 | 2,289 | 2.59375 | 3 | [] | no_license | // Date: 05/10/2014 21:38:21
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package tardis.client.renderer.model.console;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.en... | true |
282630f45fe581abca200f7cfe20a709fb98c469 | Java | pornsukon/CoEMeetingRoomReservation-master | /app/src/main/java/com/coe_reservation_project_year1_2/coemeetingroomreservation/ReservationRoomActivity.java | UTF-8 | 993 | 2.15625 | 2 | [] | no_license | package com.coe_reservation_project_year1_2.coemeetingroomreservation;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class ReservationRoomActivity extends AppCompatActivity implements View.OnC... | true |
2db97e257278bdcfa8c5ef41ea1721c122e9d080 | Java | smileszx/coffeebaby | /java-design-pattern/src/main/java/com/coffee/baby/pattern/adapter/DBOperationAdapter.java | UTF-8 | 561 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.coffee.baby.pattern.adapter;
/**
* @Classname DBOperationAdapter
* @Description TODO
* @Date 2019/1/22 9:11
* @Created by smile.szx
*/
public class DBOperationAdapter extends DBOperationServer{
private DBOperation dbOperation;
public DBOperationAdapter(DBOperation dbOperation) {
this... | true |
b6e2f7f03a2c38314177f72fd58d1d6cca6eecf5 | Java | moutainhigh/foss | /stl/stl-consumer-api/src/main/java/com/deppon/foss/module/settlement/consumer/api/server/dao/ICODBatchEntityDao.java | UTF-8 | 1,044 | 1.96875 | 2 | [] | no_license | package com.deppon.foss.module.settlement.consumer.api.server.dao;
import com.deppon.foss.module.settlement.consumer.api.shared.domain.CODBatchEntity;
import com.deppon.foss.module.settlement.consumer.api.shared.dto.CODBatchDto;
/**
*
* 代收货款批次号实体DAO
*
* @author 046644-foss-zengbinwen
* @date 2012-11-29 下午2:27:... | true |
539ad52c437df64b4cb6eb774eb362ec0c666403 | Java | rodrigoieh/berrygit-with-websphere | /sample/src/kr/co/sample/bbs/TestDto.java | UTF-8 | 479 | 1.953125 | 2 | [] | no_license | package kr.co.sample.bbs;
public class TestDto {
private String prdNm;
private int startNo;
private int endNo;
public String getPrdNm() {
return prdNm;
}
public void setPrdNm(String prdNm) {
this.prdNm = prdNm;
}
public int getStartNo() {
return startNo;
}
public void setStartNo(int ... | true |
080e34cf9d754d267224661f1853a155f4a29796 | Java | tanhao619/sydb | /cdyoue-sydb-rest/src/main/java/com/cdyoue/oddJobs/api/zlcy/WebsiteApi.java | UTF-8 | 3,107 | 1.914063 | 2 | [] | no_license | package com.cdyoue.oddJobs.api.zlcy;
import com.cdyoue.oddJobs.dto.common.HttpMessage;
import com.cdyoue.oddJobs.dto.zlcy.WebsiteRequest;
import com.cdyoue.oddJobs.dto.zlcy.WebsiteSummary;
import com.cdyoue.spring.page.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.s... | true |
f910ea2f9b8db5725fb86a8216ffc8e587efedb1 | Java | huangyf530/Snake | /src/snakeclient/Test.java | UTF-8 | 303 | 2.21875 | 2 | [] | no_license | package snakeclient;
public class Test {
public static void main(String[] args){
MainWindow window = new MainWindow();
try {
window.rcvThread.join();
}
catch (InterruptedException e){
System.out.println("A receive thread");
}
}
}
| true |
9c4797546f9880bc3ec27acfe9c803cc4ef5434c | Java | meghagadad/UDPSocketProgramming | /CoAP_Opt_num_Registry.java | UTF-8 | 1,378 | 1.875 | 2 | [] | no_license | package dummy;
public class CoAP_Opt_num_Registry {
//section 12.2. CoAP Option Numbers Registry
public static final int RESERVED_Zero = 0;
public static final int If_Match = 1;
public static final int URI_HOST = 3;
public static final int ETAG = 4;
public static final int IF_NONE_Match = ... | true |
92aab71b57961bc3032bb6fad5aa867e15780991 | Java | dbolotin/hazelcast | /hazelcast/src/main/java/com/hazelcast/client/impl/protocol/parameters/GetPartitionsParameters.java | UTF-8 | 1,152 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.hazelcast.client.impl.protocol.parameters;
import com.hazelcast.client.impl.protocol.ClientMessage;
import com.hazelcast.client.impl.protocol.ClientMessageType;
@edu.umd.cs.findbugs.annotations.SuppressWarnings({"URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"})
public class GetPartitionsParameters {
public st... | true |
e2e708a875c924d590689afc432ae27ab0637337 | Java | filipmaelbrancke/jwplayer-sdk-android-demo | /app/src/main/java/com/jwplayer/opensourcedemo/videolist/DummyAdapterDelegate.java | UTF-8 | 2,724 | 2.328125 | 2 | [
"BSD-2-Clause"
] | permissive | package com.jwplayer.opensourcedemo.videolist;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | true |
4213e6ef9334bda308df57e0691f229a6e2a87fa | Java | kenvifire/Cannon | /src/Serialize.java | UTF-8 | 2,176 | 2.5625 | 3 | [] | no_license | import org.apache.commons.collections.Transformer;
import org.apache.commons.collections.functors.ChainedTransformer;
import org.apache.commons.collections.functors.ConstantTransformer;
import org.apache.commons.collections.functors.InvokerTransformer;
import org.apache.commons.collections.map.TransformedMap;
import j... | true |
f959eb7b64dd9200de444cce0c53d49d79f1e950 | Java | forest-LF/test | /crm/trunk/0626child_service/src/main/java/com/javasm/aftersale/service/MaintenancepointServiceImpl.java | UTF-8 | 1,185 | 2.0625 | 2 | [] | no_license | package com.javasm.aftersale.service;
import com.javasm.aftersale.entity.Maintenancepoint;
import com.javasm.aftersale.mapper.MaintenancepointMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class MaintenancepointServiceImpl implements IM... | true |
38560c68a92ae02eb731b89936824ded9038fd89 | Java | JoaoLMPereira/cpf | /core/src/main/java/pt/webdetails/cpf/plugincall/base/CallParameters.java | UTF-8 | 1,057 | 2.546875 | 3 | [] | no_license | package pt.webdetails.cpf.plugincall.base;
import java.util.HashMap;
import java.util.Map;
/**
* Helper for {@link IPluginCall} parameters
*/
public class CallParameters {
private Map<String, String[]> params = new HashMap<String, String[]>();
public void put(String name, String value) {
params.put( name,... | true |
b8aefc534d75eaefeb729d42fd37dec037fc8c7a | Java | suai723/android-Learn | /MapAppDemo/src/com/example/mapappdemo/fragment/NotificationFragment.java | UTF-8 | 1,332 | 2.046875 | 2 | [] | no_license | package com.example.mapappdemo.fragment;
import java.util.List;
import com.example.mapappdemo.R;
import com.example.mapappdemo.R.layout;
import com.example.mapappdemo.activity.MainActivity;
import com.example.mapappdemo.adapter.PushListViewAdapter;
import com.example.mapappdemo.entity.PushMsg;
import com.example.mapa... | true |
e82087afc445f55dd270a259edee8e947110c3a0 | Java | xxnr/android_operation_management | /app/src/main/java/com/xxnr/operation/modules/customer/CustomerSearchActivity.java | UTF-8 | 8,952 | 1.953125 | 2 | [] | no_license | package com.xxnr.operation.modules.customer;
import android.content.Context;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.view.... | true |
5c5a6bc6e064c113ed82155a426b41e680751a08 | Java | appform-io/oncall24x7 | /src/main/java/io/appform/oncall24x7/events/SlackcallEventVisitor.java | UTF-8 | 862 | 1.898438 | 2 | [] | no_license | package io.appform.oncall24x7.events;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.appform.oncall24x7.db.ClientInfoDao;
import lombok.NonNull;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import javax.ws.rs.client.Client;
/**
*
*/
@Slf4j
public class SlackcallEventVisitor implemen... | true |
5a9f1b6f0ab25243087cefb9169eff5be95d47d2 | Java | saadbenda/katas-poker | /src/main/java/com/excilys/kataspoker/model/Paquet.java | UTF-8 | 1,082 | 3.21875 | 3 | [] | no_license | package com.excilys.kataspoker.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class Paquet {
private List<Carte> cartes = new ArrayList<>();
public Paquet() {
for (Couleur c : Couleur.values()) {
for (Valeur v : Valeur.values()) {
... | true |
09f50929b8c1c53c66c88a019b287de426665c56 | Java | stubbornness/stubborn | /src/main/java/com/stubborn/result/Result.java | UTF-8 | 1,426 | 2.5625 | 3 | [] | no_license | package com.stubborn.result;
import com.stubborn.message.DefaultMsgInfo;
import com.stubborn.message.MsgInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
* 返回体
*/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class Result extends BaseResult {
/... | true |
6c01cfc293f89ca3ce8190aa2701ed89887c18ec | Java | sylvia969301/E-commerce-website | /ECWebsiteProject/Mr.PurrFed_Web/src/java/uuu/vgb/controller/UpdateServlet.java | UTF-8 | 6,028 | 2.5 | 2 | [] | no_license | package uuu.vgb.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
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.ser... | true |
af679a247cc33f9195d0f80b51bb2dc76f3d987e | Java | Hell0w0/IV1350 | /Higher_Grade/src/main/java/se/kth/IV1350/pos/view/TotalRevenueFileOutput.java | UTF-8 | 1,313 | 3.046875 | 3 | [] | no_license | package se.kth.IV1350.pos.view;
import java.io.IOException;
import se.kth.IV1350.pos.util.PrintWriterComposition;
import se.kth.IV1350.pos.util.PrintWriterInhertance;
/**
*
* @author charl
*/
/**
* TotalRevenueFileOutput This class writes the total income from the register since the program was started.
*/
class... | true |
e13d3d4a09a55166db64bcb0c0697ccdcbf887b9 | Java | sujalak/project2-collaboration | /collaborationBackEnd/src/test/java/com/niit/TestCase/ForumTestCase.java | UTF-8 | 2,071 | 2.4375 | 2 | [] | no_license | package com.niit.TestCase;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ann... | true |
d9147af259bd44290c5e1b5c1f0a95acf9d2f32a | Java | jiwawa123/interview | /src/main/java/com/ji/myarray/MissingNumber.java | UTF-8 | 901 | 3.078125 | 3 | [] | no_license | package com.ji.myarray;/*
user ji
data 2020/2/26
time 9:56 AM
*/
public class MissingNumber {
public static void main(String[] args) {
int arr[] = {2,0};
System.out.println(missingNumber(arr));
}
public static int missingNumber(int[] nums) {
if (nums == null || nums.len... | true |
de733e5d6b5d6dfd281135a3a8e2c24b0fe81ba7 | Java | wire-zhijian/market | /TestProject/src/zhijian/server/Server.java | UTF-8 | 434 | 2.25 | 2 | [] | no_license | package zhijian.server;
import java.io.IOException;
import java.net.ServerSocket;
public class Server {
public final static int PROT = 8888;
private static ServerSocket _serverSocket;
private Server(){}
private static void newInstance() throws IOException{
_serverSocket = new ServerSocket(PROT);
}
public ... | true |
027c7434ab1bf5df4e4c987f62b4b3f3da9e598a | Java | smartinrub/spring-boot-mockito | /src/test/java/com/sergiomartinrubio/springbootmockito/FooServiceWithSpiesTest.java | UTF-8 | 1,025 | 2.40625 | 2 | [] | no_license | package com.sergiomartinrubio.springbootmockito;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Spy;
import org.mockito.junit.jupiter.MockitoExtension;
import static org.assertj.core.api.Assertions.assertThat;
import static org.... | true |
715dc3c35f76652049e2814807b467a50edb418a | Java | WShabti-Team/WShabtiPict | /ClassExample/Calcolatrice.java | UTF-8 | 192 | 2.8125 | 3 | [
"MIT"
] | permissive | package calcolatrice;
public class Calcolatrice {
public int somma(int a, int b) {
return a+b;
}
public float divisione (int a, int b) {
return (float)a/ (float)b;
}
}
| true |
bf53361ff756473d08a6f4b25442964dc3100a8d | Java | jugarsan/editorialQA | /src/components/java/Subscriber.java | UTF-8 | 4,228 | 3.140625 | 3 | [] | no_license | package components.java;
import java.util.LinkedHashMap;
public class Subscriber implements Observer{
private int subscriberid;
private String subscriberFirstName;
private String subscriberLastName;
private String address;
private String postalcode;
private String city;
private String stat... | true |
787493690baea2cb129882923420c63688016771 | Java | vahan8/Watcher | /app/src/main/java/gevorgyan/vahan/newsfeed/remote/background/NewsfeedJobScheduler.java | UTF-8 | 1,202 | 2.046875 | 2 | [] | no_license | package gevorgyan.vahan.newsfeed.remote.background;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import android.os.Build;
public final class NewsfeedJobScheduler {
private NewsfeedJobScheduler() {
}
private stat... | true |
a21556f9ca18dbdbbe447ddb545644e88859d97f | Java | suevip/direwolves | /dispatch/src/test/java/com/edgar/direwolves/dispatch/DispatcherHandlerTest.java | UTF-8 | 2,385 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.edgar.direwolves.dispatch;
import com.edgar.direwolves.core.definition.ApiDefinition;
import com.edgar.direwolves.core.utils.EventbusUtils;
import com.edgar.direwolves.core.utils.JsonUtils;
import com.edgar.direwolves.dispatch.verticle.ApiDispatchVerticle;
import com.edgar.direwolves.verticle.ApiDefinition... | true |
076755e5c6785d8d3ea4cde06b3f76943a2ec07c | Java | AhmedZaki82/LibraryA | /app/src/main/java/com/example/librarya/data/LibraryCursorAdapter.java | UTF-8 | 1,757 | 2.328125 | 2 | [] | no_license | package com.example.librarya.data;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.TextView;
import com.example.librarya.data.LibraryContract.Entry;
i... | true |
ea7b2c5c718b2b3a651dd4152ea3663e6cc5dfe4 | Java | flahn/arch-design-somod | /src/main/java/SIL/SoMod/SoundModel.java | UTF-8 | 19,528 | 2.421875 | 2 | [] | no_license | package SIL.SoMod;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import SIL.SoMod.emission.EqualRayCasting2D;
import SIL.SoMod.emission.PreciseBoundary2D;
import SIL.SoMod.emission.SoundEmissionModel;
import SIL.SoMod.environment.Environment;
import SIL.SoMod.envir... | true |
1abe52903a524e754591c5101713f5bd1b3f2240 | Java | vhuyositsula/Work-Project-Java | /onlineshopping-backend/src/main/java/com/myshop/service/UserDeliveryService.java | UTF-8 | 179 | 1.757813 | 2 | [] | no_license | package com.myshop.service;
import com.myshop.domainModel.UserDelivery;
public interface UserDeliveryService {
UserDelivery findById(Long id);
void removeById(Long id);
} | true |
b384f0aa0c996f66c1787e3193f4b3b5eb3ee1e2 | Java | sucan521/guimeiDB | /src/main/java/cn/guimei/dao/SuperuserDao.java | UTF-8 | 457 | 1.882813 | 2 | [] | no_license | package cn.guimei.dao;
import cn.guimei.pojo.Page;
import cn.guimei.pojo.Superuser;
import java.util.List;
public interface SuperuserDao {
//管理员增删改查
int add(String sql, Superuser superuser);
int del(String sql, Object parameter[]);
int update(String sql, Object parameter[]);
List<Superuser> q... | true |
8fd684b1face6c567d37b71e3d8e8f116c54db0a | Java | s99889989/CustomDisplay | /src/main/java/com/daxton/customdisplay/api/location/Quaternion.java | UTF-8 | 1,513 | 3.046875 | 3 | [
"MIT"
] | permissive | package com.daxton.customdisplay.api.location;
public class Quaternion {
public float w;
public float x;
public float y;
public float z;
public Quaternion() {
}
public Quaternion(float w,float x,float y,float z) {
this.w = w;
this.x = x;
this.y = y;
this.z... | true |
2d5894495b5b8f7d972253599f9f6d35372e26ad | Java | SuleyMjeruman/PoultryFarm | /app/src/main/java/com/ictmcd/poultrykuku/ainakuku_objective.java | UTF-8 | 1,026 | 1.75 | 2 | [] | no_license | package com.ictmcd.poultrykuku;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
public class ainakuku_objective extends AppCompatActivity {
Button button;
... | true |
4a10fd586e6bad114593066c0fc104c3c3b1c78a | Java | masa-oss/restday | /src/jp/oops/clazz/restday/dao/DataAfterVerification.java | UTF-8 | 1,937 | 2.578125 | 3 | [
"MIT"
] | permissive | package jp.oops.clazz.restday.dao;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* <div>Result type after conversion and validation process.</div>
*
* <div>Copyright (c) 2019, 2020 Masahito Hemmi </div>
* <div>This software is... | true |
29ff87dad319cd0003ae32fb137c72d6a4d1093c | Java | emosquera/snsplus | /snsplus_backend/snsplus_backend_client-ejb/src/main/java/com/snsplus/backend/client/facade/EventoFacadeRemote.java | UTF-8 | 802 | 1.9375 | 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 com.snsplus.backend.client.facade;
import com.snsplus.backend.client.dto.EventoDTO;
import com.snsplus.base.localtor.ServiceVe... | true |
46d8da82da114ff637dd4d58181d57af1b710c0c | Java | ZhangydA/CodeCollection | /ContinuousMaximum.java | UTF-8 | 518 | 3.09375 | 3 | [] | no_license | /**
* @Date 2018-03-27
* @author ZhangydA
* @SAU
*/
public class ContinuousMaximum {
public int continuousMaxinum(int arr[]){
int counter = 0;
for (int i = 0;i < arr.length;i ++){
if (arr[i] < 0) counter ++;
}
//如果所有的值都为负值,返回0
if (counter == arr.length) return 0;
int sum = 0,ans = Integer.MIN_VALUE,... | true |
a6474fe83491c88cfb1658d750303cd9ad6c1d53 | Java | yshanstar/Leetcode_Shan_Java | /Leetcode_Java_2/FirstMissingPositive.java | UTF-8 | 515 | 2.859375 | 3 | [] | no_license | public class Solution {
public int firstMissingPositive(int[] A) {
int idx = 0;
while(idx < A.length){
if(A[idx] != idx+1 && A[idx] >= 1 && A[idx] <=A.length && A[idx] != A[A[idx] - 1]){
int tmp = A[idx];
A[idx] = A[tmp-1];
A[tmp-1] = tmp;
}els... | true |
51664927203f0042153196edccc0e34c3df3e4c9 | Java | victornoel/may | /fr.irit.smac.may.speadl/src-gen/fr/irit/smac/may/speadl/speadl/SpeadlFactory.java | UTF-8 | 5,040 | 1.570313 | 2 | [] | no_license | /**
*/
package fr.irit.smac.may.speadl.speadl;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see fr.irit.smac.may.speadl.speadl.SpeadlPackage
* @generate... | true |
82d5605959ff6bc8174f8bb7a6bd2954194d6bec | Java | jaronoff97/MusicPlayer | /MusicPlayer/src/LoginWindow.java | UTF-8 | 7,131 | 2.640625 | 3 | [] | no_license |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URISyntaxException;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
... | true |
3a9655d4466e28184500d67c1adc003d416aab60 | Java | wangchaohu/IntelligentBoiler | /app/src/main/java/com/android/intelligent/customview/CustomLapsenView.java | UTF-8 | 4,949 | 2.28125 | 2 | [] | no_license | package com.android.intelligent.customview;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import com.a... | true |
9a965bf3333c136caae6fe8d30b6d80cf3ddcfea | Java | norazmir/AndroidGeofenceApp | /app/src/main/java/com/test/a88petsmartsdnbhd/HomeActivity.java | UTF-8 | 1,200 | 1.945313 | 2 | [] | no_license | package com.test.a88petsmartsdnbhd;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class HomeActivity extends AppCompatActivity {
private Button buttonStaff, buttonUser;
@Override
pr... | true |
d76a11127e994bbfb9fa84ed139a0ee684ea3dec | Java | royxpf/cloud | /src/main/java/com/baizhitong/resource/dao/share/sqlserver/SharePlatformCloudDiskParamDaoImpl.java | UTF-8 | 1,403 | 2.1875 | 2 | [] | no_license | package com.baizhitong.resource.dao.share.sqlserver;
import org.springframework.stereotype.Component;
import com.baizhitong.common.dao.jdbc.QueryRule;
import com.baizhitong.resource.common.core.dao.BaseSqlServerDao;
import com.baizhitong.resource.dao.share.SharePlatformCloudDiskParamDao;
import com.baizhitong.resourc... | true |
a376fae0cd3ac408614d0cc85b0cf543a3c1cfa6 | Java | gchq/gaffer-experimental | /operation-runner/src/test/java/uk/gov/gchq/gaffer/operation/runner/arguments/ArgumentsTest.java | UTF-8 | 7,940 | 2.34375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | /*
* Copyright 2020 Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | true |
f4c70b2c01efd91e312f2469d3cfb0c0b5c07910 | Java | stersk/android-learning | /p1211_listwidget/src/main/java/com/example/listwidget/MyFactory.java | UTF-8 | 2,016 | 2.1875 | 2 | [] | no_license | package com.example.listwidget;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import android.widget.RemoteViewsService;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
public class MyF... | true |
3345115fa1b2da62366a7736e8ac5d168bae0b08 | Java | mtrajvm/CV-project | /src/main/java/com/qa/CVManager/Interoprability/Rest/TraineeManagerRestController.java | UTF-8 | 1,536 | 2.078125 | 2 | [] | no_license | package com.qa.CVManager.Interoprability.Rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframewo... | true |
b02512005a321736b53466f61286cb35af90e310 | Java | HugoSousa/cflow | /entrega/examples/Example 4/src/teste/Child1.java | UTF-8 | 159 | 1.757813 | 2 | [] | no_license | package teste;
public class Child1 extends SuperClass{
public Child1() {
super();
//@cflow child1const
}
public void foo(){
//@cflow child1
}
}
| true |
14243fc09a696a4dfc75859829c48a8577e28bf3 | Java | OPRoS/TaskEditor | /kr.re.etri.tpl/src/kr/re/etri/tpl/script/debug/thread/DebugThreadContentProvider.java | UTF-8 | 967 | 2.109375 | 2 | [] | no_license | package kr.re.etri.tpl.script.debug.thread;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
public class DebugThreadContentProvider implements ITreeContentProvider {
@Override
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof ThreadNo... | true |
149b863f68b90e1d80e14e886c1a01636fde08ec | Java | SebasBarrera/Laboratory2 | /Main.java | UTF-8 | 13,591 | 2.890625 | 3 | [] | no_license | package ui;
import model.*;
import java.util.*;
public class Main
{
//--------------------------------------------------------------------------------------------------
//Atributes
//--------------------------------------------------------------------------------------------------
//------------------------... | true |
33a0d7ab6ca2910c038e5692f54081885aeae76f | Java | medoer/medo-learning | /demo/algorithm/src/main/java/medo/algorithm/basic/DeepFristSearchImpl.java | UTF-8 | 455 | 2.734375 | 3 | [
"MIT"
] | permissive | package medo.algorithm.basic;
import medo.algorithm.DeepFirstSearch;
public class DeepFristSearchImpl implements DeepFirstSearch {
@Override
public TreeNode run(TreeNode root, int val) {
if (root == null || root.val == val) {
return root;
}
TreeNode left = run(root.left, v... | true |
a7175cdd9a2bf88445591e6217b75683b56db78f | Java | BrewWinds/common | /src/test/Artist.java | UTF-8 | 235 | 2.265625 | 2 | [] | no_license | import java.util.List;
public class Artist {
List<Artist> members;
public List<Artist> getMembers() {
return members;
}
public void setMembers(List<Artist> members) {
this.members = members;
}
}
| true |
8831b8287d4d2c2b828b5fbd65c7bbb04d743c12 | Java | seedzi/new_heixiu | /app/src/main/java/com/xiuxiuchat/call/CallManager.java | UTF-8 | 2,918 | 2.46875 | 2 | [] | no_license | package com.xiuxiuchat.call;
import android.content.Context;
import com.hyphenate.chat.EMClient;
import com.hyphenate.exceptions.EMNoActiveCallException;
import com.hyphenate.exceptions.EMServiceNotReadyException;
/**
* Created by huzhi on 16-6-26.
*/
public class CallManager {
private static String TAG = "Ca... | true |
73660d04d50e2e63f7343ce720527f8a329fefaa | Java | Goyku9/JavaCamp-8.week | /hrms/src/main/java/kodlamaio/hrms/api/controllers/StaffersController.java | UTF-8 | 852 | 2.015625 | 2 | [] | no_license | package kodlamaio.hrms.api.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import... | true |
09c78be76de93c43a2b1fd03d5a5d52fd73a37dc | Java | aberde/aberdevine | /rndcall/src/kr/go/rndcall/mgnt/inquire/vo/InquireSearchVO.java | UTF-8 | 7,557 | 2.3125 | 2 | [] | no_license | package kr.go.rndcall.mgnt.inquire.vo;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.Calendar;
import kr.go.rndcall.mgnt.common.BaseSearchVO;
public class InquireSearchVO extends BaseSearchVO{
// 검색을 위한 조건들
protected String searchTxt = ""; // 검색Text
protected String whichSea... | true |
64ff503c705704d3b136fb93056dc32f8fb590ed | Java | ReubenJ/UltimateAndroid | /src/com/summithillsoftware/ultimate/cloud/CloudResponseStatus.java | UTF-8 | 193 | 1.75 | 2 | [
"MIT"
] | permissive | package com.summithillsoftware.ultimate.cloud;
public enum CloudResponseStatus {
Ok,
Unauthorized,
NotConnectedToInternet,
MarshallingError,
UnacceptableAppVersion,
Timeout,
Unknown
}
| true |