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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f2892813dbc33bf5e1baeb71d6d86d6a67c384dd | Java | xeonye/croswork | /cros-block/src/main/java/com/cros/block/api/coprs/CoprApiService.java | UTF-8 | 1,377 | 1.914063 | 2 | [] | no_license | package com.cros.block.api.coprs;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.cros.block.api.dao.mongodb.MongoDBBaseDao;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
/**
* @Title: LeadsService.java
* @Package com.citroen.ledp.api.leads
* @Descript... | true |
30ef3156e55d59f3d92d91b2a43fb1a66db9c08c | Java | Tahler/chess | /src/edu/neumont/pro180/chess/core/model/BoardBuffer.java | UTF-8 | 259 | 2.109375 | 2 | [] | no_license | package edu.neumont.pro180.chess.core.model;
/**
* Used only by the MoveValidator to test if a move would put the king in check
*/
public class BoardBuffer extends AbstractBoard {
public BoardBuffer(AbstractBoard board) {
super(board);
}
}
| true |
a1757f5f5a03f325b6b55cd23e74ef60db47dae1 | Java | pbustos97/Android-Password-Manager | /app/src/main/java/com/example/passwordmanager/database/PasswordDbSchema.java | UTF-8 | 712 | 1.984375 | 2 | [] | no_license | package com.example.passwordmanager.database;
import com.example.passwordmanager.SingleFragmentActivity;
public class PasswordDbSchema {
public static final class PasswordTable {
public static final String NAME = "passwords";
public static final class Cols {
public static final String... | true |
c648b83b9d4cd5d3990c0471d9924740f33a5f38 | Java | edwinace/projects | /SpringMVC-Spring-Hibernate/src/main/java/rml/model/po/Tequip.java | UTF-8 | 1,958 | 2.375 | 2 | [] | no_license | package rml.model.po;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Tequip entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "QEQUIP", schema = "")
public class Tequip implements java.io.Serializable {
// Fie... | true |
02f2e753405bda0e3d956934224932e3e122d213 | Java | Karurragul/gitnew | /src/gitnew/first.java | UTF-8 | 512 | 2.09375 | 2 | [] | no_license | package gitnew;
public class first {
public static void main(String [] args) {
System.out.println("++++");
System.out.println("Hi Good Morning");
System.out.println("___");
System.out.println("Hi Good Morning");
System.out.println("@@@@");
System.out.println("Hi Good Morning");
System.out.println("Gokul... | true |
c03e03acd75a28ff4e474dafa3f5d9c60c987f8f | Java | HQIZCC/hq-bs-lcts | /src/main/java/com/hqizcc/ltcs/hqbsltcs/service/UserInfoServiceImpl.java | UTF-8 | 562 | 2.046875 | 2 | [] | no_license | package com.hqizcc.ltcs.hqbsltcs.service;
import com.hqizcc.ltcs.hqbsltcs.mapper.UserInfoMapper;
import com.hqizcc.ltcs.hqbsltcs.model.UserInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class UserInfoServiceImpl implements UserInfoService {
@Resource
p... | true |
a65a71c9d1df5947d543513c69a0a7ceb5abc2bc | Java | google-code/assignmentwarehouse | /warehouse2009-3-31/src/service/com/carsite/service/RoleManager.java | UTF-8 | 1,002 | 1.992188 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-mattkruse"
] | permissive | /**
* Business Service Interface to handle communication between web and
* persistence layer.
*
* <p><a href="RoleManager.java.html"><i>View Source</i></a></p>
*
* @author <a href="mailto:dan@getrolling.com">Dan Kibler </a>
*/
package com.carsite.service;
import java.util.List;
import com.carsite.d... | true |
37671f097a3fd01099553da6547690fa5c44c71f | Java | NSU-SU21-CSE486-1/1712305_SU21_CSE486_1 | /Theory/Assignment/Assignment03/Project03/app/src/main/java/com/hmtsoft/uniclubz/ui/assignment03/modal/EditPersonalInformationBottomSheet.java | UTF-8 | 3,061 | 2.125 | 2 | [] | no_license | package com.hmtsoft.uniclubz.ui.assignment03.modal;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProvider;
import com.google.android.material.datepicker.MaterialDatePicker;
import com.hmtsoft.uniclubz.R;
import com.hmtsoft.uniclubz.databinding.BottomSheetEditPerso... | true |
2b7796902abe88df47ca564748c2c1754d0a80ff | Java | tangside163/ssminter | /my-biz/src/main/java/org/tangsi/user/UserController.java | UTF-8 | 2,344 | 2.03125 | 2 | [] | no_license | package org.tangsi.user;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframewo... | true |
5a78f42fd1d5e2cfca0b797d87b53b4f83e0baaa | Java | RanHaiLang/SpringBootDemo | /src/main/java/com/rminfo/service/impl/UserServiceImpl.java | UTF-8 | 1,702 | 2.09375 | 2 | [] | no_license | package com.rminfo.service.impl;
import com.rminfo.dao.UserRepository;
import com.rminfo.mapper.db2.UserMapper2;
import com.rminfo.model.Users;
import com.rminfo.model.shiro.UserInfo;
import com.rminfo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.d... | true |
2c86306eee76f8fdfbabd9466f584c9bdf416753 | Java | KaplinNikolai/JWD_Task01 | /EpamTasks/src/main/java/by/training/epam/homework/Task_10/Task_10.java | UTF-8 | 778 | 3.25 | 3 | [] | no_license | package by.training.epam.homework.Task_10;
import java.util.LinkedList;
import java.util.List;
public class Task_10 {
public List<List<Double>> tan(double a, double b, double h) {
List<Double> angle = new LinkedList<>();
List<Double> tan = new LinkedList<>();
List<List<Double>... | true |
28209131d10c8eed246754503bfad54566f9b0f3 | Java | DmitryDerkach/TMS | /TeachMeSkills/src/homework_lesson3/Task11.java | UTF-8 | 1,072 | 3.84375 | 4 | [] | no_license | package homework_lesson3;
import java.util.Random;
import java.util.Scanner;
public class Task11 {
public static void main(String[] args) {
//Creation of the array with n length and filling it with random num-s from 0 to 9
Scanner sc = new Scanner(System.in);
Random r = new Random();
System.out.print("Enter... | true |
bd396c4a5f94317e90f734ec5423258ad0a7b18c | Java | neno--/incrediblemachine | /src/main/java/com/github/nenomm/im/aop/PoorLittleObject.java | UTF-8 | 265 | 1.9375 | 2 | [] | no_license | package com.github.nenomm.im.aop;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class PoorLittleObject {
static Logger logger = LoggerFactory.getLogger(PoorLittleObject.class);
public void helpMe() {
logger.info("Executing helpMe()");
}
}
| true |
bbefae262529514d551f67f9c8a58af883d9840e | Java | godfried/minke-web | /src/za/ac/sun/cs/hons/minke/client/serialization/entities/HasID.java | UTF-8 | 116 | 1.765625 | 2 | [] | no_license | package za.ac.sun.cs.hons.minke.client.serialization.entities;
public interface HasID {
public long getID();
}
| true |
5a50165de6e940ec5fce540e350e8287cb0dbc89 | Java | uliss3s/utils | /java/database/sqlutil/parsers/custom/StringListParser.java | UTF-8 | 839 | 2.78125 | 3 | [
"MIT"
] | permissive | package br.gov.am.sefaz.util.sqlutil.parsers.custom;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
public class StringListParser implements Function<Object,List> {
@Override
public List apply(Object value) {
if (value instanceof Object[]) {
return Arr... | true |
d5abb369c352eb0527e7d35a628e8b6cae3dd352 | Java | smiletiezi/shijijingying | /src/com/py/shijijingying/service/YearEndService.java | UTF-8 | 901 | 1.960938 | 2 | [] | no_license | package com.py.shijijingying.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.py.shijijingying.dao.YearEndDao;
import com.py.shijijingying.entity.YearEnd;
@Service
public class YearEndService {
@Auto... | true |
aa9ebb0e601e8e10de020c17d677432116af120c | Java | ojobinv/shopkeeper | /src/main/java/dev/ovj/shopkeeper/repository/RoleRepository.java | UTF-8 | 217 | 1.617188 | 2 | [] | no_license | package dev.ovj.shopkeeper.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import dev.ovj.shopkeeper.entity.Role;
public interface RoleRepository extends JpaRepository<Role, Integer> {
}
| true |
8d4969eeb7e9652c961a62b0c67e684ee4c03756 | Java | chaoming0625/TraveFriend | /src/com/gotraveling/insthub/ecmobile/adapter/D0_CategoryAdapter.java | UTF-8 | 2,167 | 2.125 | 2 | [] | no_license | package com.gotraveling.insthub.ecmobile.adapter;
//
// __
// /\ \ _
// ____ ____ ___\ \ \_/ \ _____ ___ ___
// / _ \ / __ \ / __ \ \ < __ /\__ \ / __ \ / __ \
// /\ \_\ \/\ __//\ __/\ \ \\ \ /\_\ \/_/ / /\ \_\ \/\ \_\ \
// \ ... | true |
f13e07f62b3ebdd7fb9804a4d61bda6581657804 | Java | baraabilal/cmps252_hw4.2 | /src/cmps252/HW4_2/UnitTesting/record_2073.java | UTF-8 | 2,438 | 2.671875 | 3 | [
"MIT"
] | permissive | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | true |
9e3b29931e9748a73e6aef1b3f9bcefafd5a3bda | Java | VitorMartinezz/Trabalho_Pronota | /src/common/VO/Log.java | UTF-8 | 675 | 2.109375 | 2 | [] | no_license | package common.VO;
import common.generic.model;
import java.time.LocalDateTime;
public class Log extends model {
private String description;
private User user;
private LocalDateTime createAt;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user =... | true |
6ea41d41a4d6e98764ba2c25f1f23b0900924b31 | Java | MarfaKirina/smart-fooddy | /src/olga/com/healthy/food/ui/helpers/ListAdapter.java | UTF-8 | 2,367 | 2.40625 | 2 | [] | no_license | package olga.com.healthy.food.ui.helpers;
import java.util.Vector;
import olga.com.healthy.food.R;
import olga.com.healthy.food.model.Details;
import olga.com.healthy.food.ui.Utils;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import andr... | true |
339884907652c46213a9eca352c71a1421a5afe5 | Java | igralex1/Patterns-Java | /Builder - CoffeeBuilder/src/pvt/core/CapuchinoBuilder.java | UTF-8 | 752 | 2.765625 | 3 | [] | no_license | package pvt.core;
public class CapuchinoBuilder implements BuilderCoffee {
private String nameOfCoffee = "Capuchino";
Coffee coffee = new Coffee();
@Override
public void appendHotWater() {
}
@Override
public void appendEspresso() {
coffee.addIngredients("espresso");
}
@Ov... | true |
41298198b30b5c3c1c547a4a87faa694ff672a4d | Java | Jrossi3/CS284 | /CS 284/IDLList/IDLListTest.java | UTF-8 | 4,145 | 3.125 | 3 | [] | no_license | /** @author Jason Rossi
* Date: Mar 8, 2020
* I pledge my honor that I have abided by the Stevens Honor System.
*/
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
class IDLListTest
{
@Test... | true |
b7ec860b42dac807ca8d070264a0a68c3f5ccc02 | Java | nuxeo/nuxeo | /nuxeo-services/login/nuxeo-platform-login-saml2/src/main/java/org/nuxeo/ecm/platform/auth/saml/slo/SLOProfileImpl.java | UTF-8 | 6,087 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | true |
fa2c338ebe38aa55e3e55c787a5a662b30475ef8 | Java | mmuhamadamirzaidi/QwisApp | /app/src/main/java/com/mmuhamadamirzaidi/qwisapp/SignInActivity.java | UTF-8 | 7,533 | 2.390625 | 2 | [] | no_license | package com.mmuhamadamirzaidi.qwisapp;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import ... | true |
2aaed81d9d7d6da3d03c12b787aa2b0e2f7d02c9 | Java | dimajarosh/mobile_park | /app/src/main/java/com/example/rozrah/MainActivity.java | UTF-8 | 4,573 | 2.03125 | 2 | [] | no_license | package com.example.rozrah;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Edi... | true |
0b13bb45a24e68a2f902c1ab15c03503c92b4a21 | Java | mjurinic/Postter | /app/src/main/java/hr/foi/mjurinic/postter/mvp/views/NewPostView.java | UTF-8 | 162 | 1.523438 | 2 | [] | no_license | package hr.foi.mjurinic.postter.mvp.views;
/**
* Created by mjurinic on 07.01.16..
*/
public interface NewPostView extends BaseView {
void onSuccess();
}
| true |
7875742d7b1790f9e4e0468cb040df45c35781b8 | Java | asalem2/project2Practice | /app/src/main/java/com/bignerdranch/android/criminalintent/StoryListActivity.java | UTF-8 | 259 | 1.796875 | 2 | [] | no_license | package com.bignerdranch.android.criminalintent;
import android.support.v4.app.Fragment;
public class StoryListActivity extends StoryFragmentActivity {
@Override
protected Fragment createFragment() {
return new StoryListFragment();
}
}
| true |
188670fda6ce0a8b6fbab686c555a2a39077592b | Java | kerraway/play-with-data-structures | /src/main/java/com/github/kerraway/datastructures/tree/heap/MaxHeap.java | UTF-8 | 4,320 | 3.734375 | 4 | [] | no_license | package com.github.kerraway.datastructures.tree.heap;
import com.github.kerraway.datastructures.list.array.v2.ArrayList;
import com.github.kerraway.datastructures.util.Assert;
/**
* The heap is a complete binary tree.
* <pre>
* 50
* [0]
* / \
* 40 60
* [1] ... | true |
f0b3962db848f9508f15024bb752d574c4f5c3bd | Java | kvolstorf/OscamAndroidMonitor | /src/streamboard/opensource/oscam/ServerProfiles.java | UTF-8 | 8,528 | 2.265625 | 2 | [] | no_license | package streamboard.opensource.oscam;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import androi... | true |
e636e99a4ea92747893efefeb5a930f959bf2e86 | Java | EasonJo/WebPractice | /WebDemo/src/com/eason/demo/BaseServlet.java | UTF-8 | 1,357 | 2.640625 | 3 | [] | no_license | package com.eason.demo;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.Method;
/**
* @author Eas... | true |
9b80d0d9f406e478891ba4cc9c8b94b9e819ea71 | Java | nadiaartamonova/JKTVR18WebLibrary | /src/java/entity/User.java | UTF-8 | 2,154 | 2.40625 | 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 entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistenc... | true |
39cceca50db85b2324fc960d4b27895f2d115b99 | Java | bytemechanics/flashback-cache | /src/main/java/org/bytemechanics/cache/flashback/internal/TTLCacheRegistry.java | UTF-8 | 2,581 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 Byte Mechanics.
*
* 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 agree... | true |
43addb7c460db07520c6b5c4cac9bf2e97800261 | Java | AdelinaCampean/Beauty-Salon | /SalonInfrumusetare/src/model/BuilderStatistica.java | UTF-8 | 167 | 2.40625 | 2 | [] | no_license | package model;
public class BuilderStatistica {
public Statistici createSt(String title)
{
Statistici st = new Statistici(title);
return st;
}
}
| true |
9f47221be592252e8acfa2797daefe03853068e1 | Java | liorgins/old-regression-maven-compat | /tests/com/aqua/sanity/scenarioparam/RunModeActivator.java | UTF-8 | 551 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.aqua.sanity.scenarioparam;
import jsystem.framework.GeneralEnums.RunMode;
import junit.framework.SystemTestCase;
import com.aqua.jsystemobject.ActivateRunnerFixture;
/**
*/
public class RunModeActivator extends SystemTestCase {
private RunMode runMode = RunMode.DROP_EVERY_RUN;
public RunModeActivat... | true |
8ca44b093cfe42d03beb815fa868a7c1bb18cab4 | Java | nguyendinhhoang97/java-binary-matrix | /src/BinaryMatrix.java | UTF-8 | 689 | 3.640625 | 4 | [] | no_license | import java.util.Random;
import java.util.Scanner;
public class BinaryMatrix {
public static void main(String[] args) {
System.out.println("Enter size of matrix: ");
Scanner scanner = new Scanner(System.in);
int size = scanner.nextInt();
System.out.println("Matrix with size is " + s... | true |
56332ff67139190fa6da5962730fe8c248978ae9 | Java | zhangchengfu/max | /max_shiro/src/main/java/com/laozhang/max_shiro/service/RoleResourcesService.java | UTF-8 | 233 | 1.65625 | 2 | [] | no_license | package com.laozhang.max_shiro.service;
import com.laozhang.max_shiro.entity.RoleResourcesKey;
public interface RoleResourcesService extends IService<RoleResourcesKey> {
void addRoleResources(RoleResourcesKey roleResources);
}
| true |
32f0d6d66d358549e412a958a6703d5268c6f3f4 | Java | SDNHandoverProject/Context-aware-Multi-criteria-Handover-at-Software-Defined-Network-Edge | /ODLControllerApp/src/com/info/WifiInfoItem.java | GB18030 | 1,783 | 2.4375 | 2 | [] | no_license | package com.info;
public class WifiInfoItem {
private String SSID; //wifiSSID
private int Rssi; //wifiǰֻ֪źǿ
private boolean isConnect; //Ƿ뵱ǰwifiźŽ
private double AB = 0.0; // wifiźţʱǶ
private int ChargeLevel; //wifiķõȼ
private double DistaFromAndroid; //androidֻľ
private double Longi... | true |
38c7aea6bd015f76f7f7e2b46b5523e50cf52ec4 | Java | MarkelRyabtsev/itstep.markel.androidproject | /app/src/main/java/com/example/markel/itstepandroidproject/Contracts/ISecondView.java | UTF-8 | 200 | 1.5 | 2 | [] | no_license | package com.example.markel.itstepandroidproject.Contracts;
import android.view.animation.Animation;
public interface ISecondView extends IView {
void transitionActivityAction(Class activity);
}
| true |
9d93d1109d34f2ead03731f98d3e2560cf2d304e | Java | FilipeMourao/Siemens | /Android Application/app/src/main/java/com/example/power/ledcode/Event.java | UTF-8 | 1,085 | 2.671875 | 3 | [] | no_license | package com.example.power.ledcode;
import android.support.annotation.NonNull;
import java.util.Calendar;
import static java.lang.Math.toIntExact;
public class Event implements Comparable<Event> {
Calendar calendar;
String title;
String location;
public Event(Calendar calendar, String title, String ... | true |
69e4e8d090c137e196e3426190d2b5c03bb60a19 | Java | Shramkova/Lab4 | /src/box/Sklad.java | UTF-8 | 923 | 2.296875 | 2 | [] | no_license | package box;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.Alert;
import java.io.File;
import java.util.regex.Pattern;
public interface Sklad {
File file = new File("Zurnal.txt");
File file2 = new File("Zurnal2.txt");
Alert alert = new Aler... | true |
8ca0c99a20e5753ea8d27742c272ac0ff01e9698 | Java | chongdy/tt100_base | /src/cn/shrek/base/example/DBTestActivity.java | UTF-8 | 13,437 | 1.976563 | 2 | [] | no_license | package cn.shrek.base.example;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import android.database.sqlite.SQLiteDatabase;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.But... | true |
331ac99f319d0265465cc79198a1de6ce8150331 | Java | xuanhe22/MMOServer | /src/com/games/mmo/vo/SystemPartPo.java | UTF-8 | 892 | 2.25 | 2 | [] | no_license | package com.games.mmo.vo;
import com.storm.lib.base.BasePropertyVo;
public class SystemPartPo extends BasePropertyVo{
/**
*
*/
private static final long serialVersionUID = 1L;
public int useNum;
public int openNum;
public double useRate;
public int type;
public SystemPartPo(int useNum, int openNum, double... | true |
6277419c6917ce7291b4c81d1a2307ebf3eadc05 | Java | lll1590/only-for-show | /app/src/main/java/com/beiyongjin/byg/views/iconfont/IconTextView.java | UTF-8 | 877 | 1.953125 | 2 | [] | no_license | package com.beiyongjin.byg.views.iconfont;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.TextView;
import com.beiyongjin.byg.MyApplication;
import com.beiyongjin.byg.R;
/**
* Created by chenming
* Created Date 17/4/19 22:29
* ma... | true |
e25dd54dc1cc3721efda7e1615692b26f2330f09 | Java | ESSeRE-Lab/qualitas.class-corpus | /projects/castor-1.3.3/cpactf/src/test/java/org/castor/cpa/test/test2177/Entity.java | UTF-8 | 447 | 2.078125 | 2 | [] | no_license | package org.castor.cpa.test.test2177;
import org.junit.Ignore;
@Ignore
public final class Entity {
private Integer _id;
private CustomType _name;
public Integer getId() {
return _id;
}
public void setId(final Integer id) {
_id = id;
}
public CustomType g... | true |
e4054d62fcd99195fad54037ebe59c47e4592481 | Java | KingJA/RentManager | /app/src/main/java/com/kingja/cardpackage/base/BaseTitleActivity.java | UTF-8 | 606 | 1.640625 | 2 | [] | no_license | package com.kingja.cardpackage.base;
public class BaseTitleActivity extends BaseActivity {
@Override
protected void initVariables() {
// TODO Auto-generated method stub
}
@Override
protected void initView() {
// TODO Auto-generated method stub
}
@Override
protected void initNet() {
// TODO Auto-gene... | true |
60407c139f3e3f2066345c16060612ff0e874ce1 | Java | SPEAR-SE/LogInBugReportsEmpirical_Data | /code_changes/Apache_projects/HADOOP-1070/8114d93197a04538128713597c3c4f02d3094fe7/JRecord.java | UTF-8 | 17,676 | 1.992188 | 2 | [] | no_license | /**
* 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"... | true |
18b2c2052fd6e8fb38ba12ecbd7320314070f17f | Java | antonioalmeida/feup-comp | /src/codeGeneration/StackController.java | UTF-8 | 1,546 | 2.875 | 3 | [] | no_license | package codeGeneration;
import java.util.HashMap;
public class StackController {
private static HashMap<YalInstructions, Integer> costs;
private int maxSize;
private int currentSize;
static {
costs = new HashMap();
costs.put(YalInstructions.ILOAD, 1);
costs.put(YalInstructi... | true |
09bf94f8d16cc1e4b9ff6322acbc6222ee777dea | Java | SalahAbuMsameh/backend-training | /Lampda-streams-examples/src/main/java/com/digitinary/training/exercise/PhoneBook.java | UTF-8 | 770 | 3.046875 | 3 | [] | no_license | package com.digitinary.training.exercise;
/**
*
* Apr 20, 2021
* @author Salah Abu Msameh
*/
public class PhoneBook {
private int id;
private String name;
private String phoneNo;
public PhoneBook(int id, String name, String phoneNo) {
this.id = id;
this.name = name;
this.phoneNo = phoneNo;
}
publi... | true |
549cfa5de49789d37ca8eb33de3fbfea03257d8a | Java | RyanTech/meeting-1 | /Meetisan/src/com/meetisan/meetisan/widget/ShaderAnimLayout.java | UTF-8 | 2,643 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.meetisan.meetisan.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.Region;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListe... | true |
375581b2b7c885936c499cc4c39d7431c8f904a0 | Java | hashgraph/hedera-mirror-node | /hedera-mirror-monitor/src/main/java/com/hedera/mirror/monitor/publish/generator/CompositeTransactionGenerator.java | UTF-8 | 5,964 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020-2023 Hedera Hashgraph, LLC
*
* 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 applicab... | true |
ff725f54e5d3bf14563ba30bc8851c8c5ab2227c | Java | xmwyong/BusLocation | /idea/old_pro/mygps/src/com/hibernatespring/Gps.java | UTF-8 | 560 | 2.0625 | 2 | [] | no_license | package com.hibernatespring;
import java.util.Date;
/**
* Gps entity. @author MyEclipse Persistence Tools
*/
public class Gps extends AbstractGps implements java.io.Serializable {
// Constructors
/** default constructor */
public Gps() {
}
/** full constructor */
public Gps(Integer busId, float busLati, fl... | true |
35032f4f1d3509093b0f4e22dd1744428d5736d1 | Java | kimvandenberg/Netflix | /src/presentation/GUI.java | UTF-8 | 40,176 | 1.882813 | 2 | [] | no_license | package presentation;
import application.*;
import com.toedter.calendar.JDateChooser;
import com.toedter.calendar.JSpinnerDateEditor;
import domain.Listeners.AccountListeners.AccountCreateListener;
import domain.Listeners.AccountListeners.AccountDeleteListener;
import domain.Listeners.AccountListeners.AccountOverview.... | true |
e1f63832623b1f82984d573cd61b7885182d0a13 | Java | ranggahai/MyShoppingMall | /app/src/main/java/com/example/telkomsel/myshoppingmall/CartAdapter.java | UTF-8 | 5,479 | 2.15625 | 2 | [] | no_license | package com.example.telkomsel.myshoppingmall;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.... | true |
f50270bc146c98dc56192519e0bb275daf4d961c | Java | sonhvip4/Busticket | /src/busticket/model/Ticket.java | UTF-8 | 1,843 | 2.375 | 2 | [] | no_license | package busticket.model;
public class Ticket {
private int id;
private String idBill;
private int idSeat;
private String status;
private int idSession;
private Session sessionObject;
private Seat seatObject;
private Bill billObject;
public Ticket() {
super();
}
public Ticket(String idBill, int idSea... | true |
2a9d8f44fd74e85629f0d6fe83ef07235bffafec | Java | padrig64/ValidationFramework | /validationframework-core/src/test/java/com/google/code/validationframework/base/transform/NotEqualsTransformerTest.java | UTF-8 | 3,125 | 2.109375 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2017, ValidationFramework Authors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* ... | true |
d4815cd3f6cd34625fe860181279749daff26250 | Java | xiejames/pointunion | /pointunion/src/com/pointunion/web/util/CityUtil.java | GB18030 | 5,650 | 2.34375 | 2 | [] | no_license | package com.pointunion.web.util;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
public class CityUtil implements java.io.Serializable {
private String[][] cityArr = new String[][]{
{"", "Ϸ|||ɽ|ɽ|||ͭ|ߺ||||||||||쳤||"},
{"", ""},
{"", ""},
... | true |
bc94b810a7cbc292adad32fa5504bae22e577fbb | Java | ageevSa27/GiftBox | /src/main/java/Util.java | UTF-8 | 523 | 2.875 | 3 | [] | no_license | public class Util {
public static void Takeit(){
Box gifts = new Box();
gifts.add(new Caramel("Carame1l", 1, 2, "tasty"));
gifts.add(new Caramel("Caramel2", 2, 5, "tasty"));
gifts.add(new Haribo("Haribo1", 3, 4, "yellow"));
gifts.add(new Haribo("Haribo2", 5, 5, "yellow"));
... | true |
64bbaf76172a56e7161e20430e616f25c898da4e | Java | pengzhetech/leetcode | /editor/cn/FindTheShortestSuperstring_943.java | UTF-8 | 1,059 | 3.25 | 3 | [] | no_license | //给定一个字符串数组 A,找到以 A 中每个字符串作为子字符串的最短字符串。
//
// 我们可以假设 A 中没有字符串是 A 中另一个字符串的子字符串。
//
//
//
// 示例 1:
//
// 输入:["alex","loves","leetcode"]
//输出:"alexlovesleetcode"
//解释:"alex","loves","leetcode" 的所有排列都会被接受。
//
// 示例 2:
//
// 输入:["catg","ctaagt","gcta","ttca","atgcatc"]
//输出:"gctaagttcatgcatc"
//
//
//
// 提示:
//
// ... | true |
e73342ca8f2cd46ab71d96528aafdef613d2b8b3 | Java | LamYunfu/PAT-upper-level | /code/AllRoadsLeadToRomaByDFS.java | GB18030 | 2,917 | 3.03125 | 3 | [] | no_license | package com.zju.algorithem.pat;
import java.util.ArrayList;
import java.util.Scanner;
public class AllRoadsLeadToRomaByDFS {
private static int N; //
private static int K; //֮·;
private static boolean visited[]; //жǷ߹
private static ArrayList<Integer> path = new ArrayList<Integer>(); //洢ǰҵ·
priva... | true |
bf37998c96ec67402b2c69127a47c23ecf473900 | Java | BrandonSwanepoel/Swingy | /swingy/src/main/java/com/bswanepo/App.java | UTF-8 | 250 | 1.625 | 2 | [] | no_license | package com.bswanepo;
public class App {
public static void main(String[] args) {
LobbyController lobbyController = new LobbyController();
lobbyController.startScreen();
lobbyController.startOrEndGame();
}
} | true |
914b9dba6a64ab87091c34837446216f5da8d754 | Java | Rossyafk/technical-test | /src/main/java/com/rizandoelrizo/ij/server/service/AuthorizationService.java | UTF-8 | 1,031 | 2.640625 | 3 | [] | no_license | package com.rizandoelrizo.ij.server.service;
import com.rizandoelrizo.ij.server.model.Role;
import com.rizandoelrizo.ij.server.model.User;
/**
* Interface responsible of the user authorization.
*/
public interface AuthorizationService {
/**
* Checks if the given username and password are valid.
* @p... | true |
70e6324ec92259deb5af4579ea760e83a82ec4ce | Java | dyuziyan/P2P | /wx-trade/wx-depotbhbank-api/src/main/java/com/wx/depotbank/utils/OrderUtil.java | UTF-8 | 2,503 | 2.640625 | 3 | [] | no_license | /******************************************************************************
* Copyright (C) 2015 ShenZhen WuXingCaiFu Technology Co.,Ltd
* All Rights Reserved.
* 本软件为深圳五星财富互联网金融服务有限公司开发研制。未经本公司正式书面同意,其他任何个人、团体
* 不得使用、复制、修改或发布本软件.
*****************************************************************************/
pa... | true |
35153f2e2d83b61395d1db9b4a80c0a4c3eb98f1 | Java | VbKoshak/carina_api | /src/main/java/com/solvd/automation/lab/carina/demo/bo/azure/AzureAuthor.java | UTF-8 | 1,441 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.solvd.automation.lab.carina.demo.bo.azure;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class AzureAuthor {
private String id;
private String idBook;
private String firstName;
private String lastName;
@JsonCreator
... | true |
aba44cc16d9ebcc1a9905bc154befd92e6f42403 | Java | zhongxingyu/Seer | /Diff-Raw-Data/7/7_291a719808828a469c56174c2f2b0fd386222326/MyFeedbackEdge/7_291a719808828a469c56174c2f2b0fd386222326_MyFeedbackEdge_s.java | UTF-8 | 2,625 | 2.625 | 3 | [] | no_license | ////////////////////////////////FeedbackHistoryGraphEdge//////////////////////////////////
package trustGrapher.graph;
import cu.repsystestbed.graphs.FeedbackHistoryGraphEdge;
import cu.repsystestbed.data.Feedback;
import cu.repsystestbed.entities.Agent;
import utilities.ChatterBox;
/**
* A wrapper for the... | true |
8a6cfef44982d4ec0ed97b623919dda642ea8208 | Java | pratibhagyl/HomeAssignment | /playground-basic-master/playground-basic-master/src/main/java/SampleClient.java | UTF-8 | 2,402 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.rest.client.api.IGenericClient;
import ca.uhn.fhir.rest.client.interceptor.LoggingInterceptor;
import java.util.ArrayList;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.Patient;
public class SampleClient {
private final static String FO... | true |
647a175c0b8c6bb6025540f2576cd41e1b152585 | Java | uigwebuike/Custodian | /src/com/custodian/ClaimsCenter/ClaimsCenterMenuScreen.java | UTF-8 | 8,713 | 1.945313 | 2 | [] | no_license | package com.custodian.ClaimsCenter;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.graphics.Colo... | true |
8a88fd0353b4027037f6ca9121ee7488666897c5 | Java | justinkchen/giraffe | /GiraffeAndroid/src/com/cs210/giraffe/AddGraffitiFragment.java | UTF-8 | 25,030 | 1.75 | 2 | [] | no_license | package com.cs210.giraffe;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
impor... | true |
ffdf85f1d3480ba6e1f14718d6702d3c9eeb1487 | Java | RAFSoftLab/studsluzba-jpa-model-podataka-i-sloj-za-pristup-podacima-amd | /studsluzba/src/main/java/studsluzba/repositories/StudentRepository.java | UTF-8 | 2,350 | 2.140625 | 2 | [] | no_license | package studsluzba.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import studsluzba.model.ObnovaGodine;
import studsluzba.model.PolozenPredmet;
import studsluzba.model.Student;
import studsluzba.model.UpisGodine;
... | true |
8993f4fa62ce09a96522251456d8c816951aeed8 | Java | brrt2/ExercisesJA | /src/main/java/general/Powers.java | UTF-8 | 600 | 3.75 | 4 | [] | no_license | package general;
public class Powers {
public static void main(String[] args) {
System.out.println(new Powers().calculatePower(5,3));
System.out.println(new Powers().calculatePowerRecursively(5,3));
}
private int calculatePower(int base, int exponent) {
int result = 1;
f... | true |
f00d07b736857a8dc03b1af40bb54f83e081a633 | Java | alibaba/otter | /shared/common/src/main/java/com/alibaba/otter/shared/common/utils/version/VersionInfo.java | UTF-8 | 3,989 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* 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 ... | true |
ea177809fa4ecacea03b8222d2f5bfa6e24b64bd | Java | bchappet/dnfsim | /src/input/ReaderFullVideo.java | UTF-8 | 11,376 | 2.453125 | 2 | [] | no_license | package input;
import java.awt.image.BufferedImage;
import com.xuggle.mediatool.IMediaReader;
import com.xuggle.mediatool.MediaListenerAdapter;
import com.xuggle.mediatool.ToolFactory;
import com.xuggle.mediatool.event.IVideoPictureEvent;
import com.xuggle.xuggler.IContainer;
import com.xuggle.xuggler.IStream;
import... | true |
a4400405d51402f3d48d190fbd00b31b480b6c15 | Java | ucxTech/dbdemo | /src/main/java/com/ucx/training/dbdemo/exception/ResponseException.java | UTF-8 | 491 | 2.328125 | 2 | [] | no_license | package com.ucx.training.dbdemo.exception;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.http.HttpStatus;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ResponseException extends Exception {
private Ht... | true |
76a0388eacd2eff23a9880fa9eecdc78bcdaf389 | Java | vespa-engine/vespa | /vespaclient-core/src/main/java/com/yahoo/feedhandler/FeedResponse.java | UTF-8 | 3,767 | 1.898438 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.feedhandler;
import com.yahoo.clientmetrics.RouteMetricSet;
import com.yahoo.documentapi.messagebus.protocol.DocumentProtocol;
import com.yahoo.documentapi.messagebus.protocol.PutDocumentMessage;
... | true |
0a69919abeb4c3f3cbbe4059af1a2aa8ae05fa07 | Java | shadowridgedev/relevance-based-on-parse-trees | /src/main/java/opennlp/tools/chatbot/PageByTagsParser.java | UTF-8 | 4,512 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package opennlp.tools.chatbot;
import org.apache.commons.lang.StringUtils;
import org.jsoup.Jsoup;
import org.jsoup.helper.Validate;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import ... | true |
f3eea866cc45c244db541eae82859b4e236484b7 | Java | ArtCouSan/Projeto_Integrador_3_Semestre | /agenciaturismo/src/main/java/br/senac/tads3/pi03b/gruposete/models/RelatorioValores.java | UTF-8 | 810 | 2.5 | 2 | [
"MIT"
] | permissive | package br.senac.tads3.pi03b.gruposete.models;
public class RelatorioValores {
private String filial;
private float valor;
private String data;
public RelatorioValores(String filial, float valor, String data) {
this.filial = filial;
this.valor = valor;
this.data = d... | true |
656e35521cf7e9fd44d18ded6a42f2aac9ef1650 | Java | bio-guoda/preston | /preston-cli/src/test/java/bio/guoda/preston/cmd/CmdCopyToTest.java | UTF-8 | 6,795 | 1.929688 | 2 | [
"MIT",
"CC-BY-NC-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package bio.guoda.preston.cmd;
import bio.guoda.preston.store.KeyTo1LevelPath;
import net.lingala.zip4j.ZipFile;
import org.apache.commons.io.IOUtils;
import org.hamcrest.core.Is;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.FileInputStream;... | true |
dd50efed08122df508dd9559fdb324d20534e887 | Java | degulab/SOARS | /src/Program5.0/src/soars/common/utility/tool/file/Entry.java | UTF-8 | 379 | 2.359375 | 2 | [
"MIT"
] | permissive | /**
*
*/
package soars.common.utility.tool.file;
import java.io.File;
/**
* @author kurata
*
*/
public class Entry {
/**
*
*/
public String _path = "";
/**
*
*/
public File _file = null;
/**
* @param path
* @param file
*/
public Entry(String path, File fil... | true |
1536a000740e9a6b73e742da32e4b136977cb756 | Java | cckmit/astrobee_gds | /org.vlcj/uk/co/caprica/vlcj/player/events/MediaPlayerEventFactory.java | UTF-8 | 15,939 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /*
* This file is part of VLCJ.
*
* VLCJ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VLCJ is distributed in the hope th... | true |
5b60e3135e270604bfe5c38c15a2f7934a66db83 | Java | EkinKucuk/CompoundDesignPatterns | /src/Factories/Apple.java | UTF-8 | 1,131 | 2.84375 | 3 | [] | no_license | package Factories;
import Adapter.SMS;
import Adapter.Turkcell;
import Command.Command;
import Observer.Motion;
import Observer.Smoke;
import Observer.Subject;
import Singleton.Logger;
public class Apple extends Sensor {
private Command[] commands;
private Subject subject;
private SMS sms;
private String type;... | true |
d20508e325af07c0a7eda88041742cc72f25fec9 | Java | abhinavnishant/SkyNet-V1 | /app/src/main/java/in/co/maxxwarez/skynet/Device.java | UTF-8 | 801 | 2.34375 | 2 | [] | no_license | package in.co.maxxwarez.skynet;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
class Device {
public String id;
public List<Data> data = null;
public Map<String, Object> additionalProperties = new HashMap<String, Object>();
public String getId() {
return id;
}
... | true |
cf2ceafb1c331d40006a936658b2e077f97c2edc | Java | ehabibov/jagger | /chassis/core/src/main/java/com/griddynamics/jagger/invoker/OneByOneLoadBalancer.java | UTF-8 | 3,231 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2010-2012 Grid Dynamics Consulting Services, Inc, All Rights Reserved
* http://www.griddynamics.com
*
* This library is free software; you can redistribute it and/or modify it under the terms of
* the Apache License; either
* version 2.0 of the License, or any later version.
*
* THIS SOFTWARE... | true |
874c6907c2d4ba3bd55b352548952cb472ee16f2 | Java | bandalas/AMS | /Sistema/src/controller/RelativeController.java | UTF-8 | 594 | 2.53125 | 3 | [] | no_license | package controller;
import java.sql.SQLException;
import database.RelativeDB;
import model.Relative;
public class RelativeController {
private RelativeDB rdb = new RelativeDB();
public void connect() throws Exception {
rdb.connect();
}
public void disconnect() {
rdb.disconnect();
}
public void addRel... | true |
27d0525abac35426746bc233bd52ab3ea5b375af | Java | kingweiliu/allProjs | /QPA/src/com/example/qpa/BootCompleteReceiver.java | UTF-8 | 269 | 1.757813 | 2 | [] | no_license | package com.example.qpa;
import android.content.*;
import android.util.Log;
public class BootCompleteReceiver extends BroadcastReceiver {
public void onReceive(Context ctx, Intent arg1){
Log.i(PublicDef.LogTag, "onreceive" + arg1.getAction() );
}
}
| true |
b30b9c38a5119f43ee0fd7152cd26743f18f21da | Java | Grinyov/Examples | /src/nested/ShipRunner.java | UTF-8 | 419 | 2.609375 | 3 | [] | no_license | package nested;
/**
* Created by green on 22.07.2015.
*/
public class ShipRunner {
public static void main(String[ ] args) {
// вызов статического метода
Ship.LifeBoat.down();
// создание объекта статического класса
Ship.LifeBoat lifeBoat = new Ship.LifeBoat();
// вызов обычного метода
l... | true |
f446ac728afd1752accadaf5dedeb6b12a1e485f | Java | Kitsopappas/bikr | /src/com/chris/brkopani/gui/GetRect.java | UTF-8 | 494 | 2.015625 | 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.chris.brkopani.gui;
import java.awt.Color;
/**
*
* @author xristos
*/
public class GetRect {
public static final ... | true |
c06fed2745ce5094743d3c05988fc72e00a284e3 | Java | naomiyung/Mills-APCS-Aug2015 | /Naomi Projects/BunchesOfTriangles.java | UTF-8 | 877 | 3.71875 | 4 | [] | no_license |
/**
* BunchesOfTriangles is a strange drawing comprised of two triangles on either side of a rectangle
made up of two triangles.
*
* Naomi Yung
* 9/21/15
*/
public class BunchesOfTriangles
{
public static void main(String[] args) {
for(int i=0; i<=6; i++){
for(int j=0; j<=6-i; j++){
... | true |
9d3a4c926f9a050387c2dbbde3090b4719a44e60 | Java | dmygaienko/practice | /practice-patterns/src/main/java/com/mygaienko/patterns/behavioral/strategy/recursive/TaxPayer.java | UTF-8 | 535 | 3.25 | 3 | [] | no_license | package com.mygaienko.patterns.behavioral.strategy.recursive;
/**
* Created by dmygaenko on 19/05/2016.
*/
abstract class TaxPayer<P extends TaxPayer<P>> {
public long income;
private TaxStrategy<P> strategy;
public TaxPayer(long income, TaxStrategy<P> strategy) {
this.income = income;
t... | true |
4c15ae286130cabefe8bf60f7aefe2a407567572 | Java | cckmit/OEPv2 | /oep-ssomgt-portlet/docroot/WEB-INF/src/org/oep/ssomgt/action/RSAToolPortlet.java | UTF-8 | 7,909 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package org.oep.ssomgt.action;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security... | true |
0e9f44f57f5317ea5a30a741fd19b5279ae63516 | Java | kenlim/GenericMavenizedGAEProject | /src/main/java/com/unintendeduse/restful/datatable/DataTableHelper.java | UTF-8 | 545 | 2.5 | 2 | [] | no_license | package com.unintendeduse.restful.datatable;
import com.google.common.collect.Lists;
import com.unintendeduse.models.TodoItem;
import java.util.ArrayList;
import java.util.List;
public class DataTableHelper {
public static List<List<String>> transformIntoListOfListOfStrings(List<TodoItem> list) {
ArrayLi... | true |
53d9682374e10560ae650dcdbb59020b1bfed2ff | Java | jpvargasdev/ActiveAndroidExample | /app/src/main/java/com/thelastclown/activeandroidtest/dbUtils.java | UTF-8 | 722 | 2.21875 | 2 | [] | no_license | package com.thelastclown.activeandroidtest;
import android.util.Log;
import com.activeandroid.query.Select;
import java.util.List;
/**
* Created by c02stfgvfvh3 on 2/11/17.
*/
public class dbUtils {
public static List<Category> getCategories(){
return new Select().from(Category.class).execute();
... | true |
bb1696bbf42ffe9e2e98453a9859c3ade46a5942 | Java | krish-17/web_utility_app | /src/main/java/com/wau/clock/alarm/AlarmAPIImpl.java | UTF-8 | 8,231 | 2.65625 | 3 | [] | no_license | package com.wau.clock.alarm;
import com.wau.time.TimeZoneAPI;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class AlarmAPIImpl implements AlarmAPI {
private static final String ALARM_NAME_REGEX = "^[a-zA-Z0-9 ,.'@!]+$";
private String userId;
private String ala... | true |
90e7b2205ccb1bc66cb523b80cddf20dc5c5d1b0 | Java | devernul/javasample | /test/Weak.java | UTF-8 | 509 | 2.96875 | 3 | [] | no_license | package test;
import java.util.Date;
import java.util.Map;
import java.util.WeakHashMap;
public class Weak {
public static void main(String[] args) {
Map<Date, String> map = new WeakHashMap<Date, String>();
Date date = new Date();
map.put(date, "information");
date = null;
... | true |
bb5327dabcb0ee413ef4b29485f6bca364522782 | Java | HIM/XAUT | /SSMClass/src/main/java/xaut/service/Impl/UserServiceImpl.java | UTF-8 | 1,012 | 2.28125 | 2 | [] | no_license | package xaut.service.Impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xaut.dao.UserDao;
import xaut.entity.User;
import xaut.service.UserService;
@Service("userService")
public class UserServiceImpl implements UserService {
@Autowired
Us... | true |
41fa0948a45943139bc1cf8d1625f5728f18d33e | Java | DataDog/dd-trace-java | /dd-java-agent/instrumentation/spring-webflux-5/src/main/java/datadog/trace/instrumentation/springwebflux/server/AdviceUtils.java | UTF-8 | 4,326 | 2.125 | 2 | [
"Apache-2.0",
"UPL-1.0",
"MIT",
"BSD-3-Clause"
] | permissive | package datadog.trace.instrumentation.springwebflux.server;
import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.activateSpan;
import static datadog.trace.instrumentation.springwebflux.server.SpringWebfluxHttpServerDecorator.DECORATE;
import datadog.trace.api.GenericClassValue;
import datadog.trace.b... | true |
10f956af1112dae5d39e1afbcf6f90584771d4ca | Java | Kailashmandal/Corejava_with_kailash | /Wrapper2.java | UTF-8 | 1,071 | 3.796875 | 4 | [] | no_license | public class Wrapper2 {
public static void main(String[] args) {
/*
Autoboxing: automatic conversion of primitive type to object of their corresponding wrapper class.
*/
int x=10;
Integer y=Integer.valueOf(x); // manual conversion of int to Integer
Integer z... | true |
08c63050121bfebaae6793c95a7f2b6ef4121ff8 | Java | artsaldel/VISI | /src/Micro/CPU.java | UTF-8 | 7,188 | 2.203125 | 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 Micro;
/**
*
* @author greivin
*/
public class CPU {
//all
ControlUnit CU = new ControlUnit();
boolean Stall = ... | true |
fa4e48c87131381d931019f9bad35ddb51595e73 | Java | EsraaSliem/Et3amWebServices | /src/main/java/eg/iti/et3am/dao/implementions/AdminDaoImpl.java | UTF-8 | 1,494 | 2.171875 | 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 eg.iti.et3am.dao.implementions;
import eg.iti.et3am.dao.interfaces.AdminDao;
import eg.iti.et3am.model.Admins;
import eg.iti.... | true |
45f2e1ce2483b0c016ab5d8564577164e3371cc8 | Java | kqyang0000/soft-design | /src/com/kqyang/chapter06/command/example/ChangfenChef.java | UTF-8 | 512 | 2.71875 | 3 | [] | no_license | package com.kqyang.chapter06.command.example;
import javax.swing.*;
public class ChangfenChef extends JFrame {
private JLabel l = new JLabel();
public ChangfenChef() {
super("煮肠粉");
l.setIcon(new ImageIcon("src/image/ChangFen.jpg"));
this.add(l);
this.setLocation(30, 30);
... | true |
db576d906c56eb57a15651bc6a6cace3b2dcb1d1 | Java | chrischengwen/we | /crm/src/com/sxxy/service/impl/NoticeServiceImpl.java | UTF-8 | 835 | 2 | 2 | [] | no_license | package com.sxxy.service.impl;
import java.util.List;
import com.sxxy.dao.NoticeDAO;
import com.sxxy.dao.impl.NoticeDaoImpl;
import com.sxxy.po.NoticeInfo;
import com.sxxy.service.NoticeService;
public class NoticeServiceImpl implements NoticeService{
NoticeDAO dao = new NoticeDaoImpl();
public boole... | true |