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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6fdb467069bc63b54af52d02c6aa749e1409e312 | Java | andresinholucin/AplicacionInvestigadores-App-Zk | /src/ec/edu/upse/proyinv/controlador/misproyecto/ProyectoNuevoComposer.java | UTF-8 | 797 | 1.820313 | 2 | [] | no_license | package ec.edu.upse.proyinv.controlador.misproyecto;
import org.zkoss.bind.annotation.Command;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zul.Window;
public class Pro... | true |
4bb397fd180477ebb10fabd7128992ce5ed59597 | Java | anyedilong/treatment | /src/main/java/com/java/until/validation/VldTest.java | UTF-8 | 749 | 1.804688 | 2 | [] | no_license | package com.java.until.validation;
import com.java.until.validate.Validate;
import com.java.until.validate.ValidateType;
import com.java.until.validate.VldTestArray;
import java.util.List;
public class VldTest {
@Validate(name={"save"},required = true)
private String id;
private String phone;
... | true |
96f4afc84844e2bcf2fe9c283338b13ac6f34051 | Java | fbz1233333/mybatis | /src/main/java/com/example/mybaits/mapper/QuestionMapper.java | UTF-8 | 432 | 1.828125 | 2 | [] | no_license | package com.example.mybaits.mapper;
import com.example.mybaits.entity.Question;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface QuestionMapper {
int deleteByPrimaryKey(String id);
int insert(Question record);
int insertSelective(Question record);
Question selectByPrimaryKey(St... | true |
96f4c5ce3c29ae4876d4c3ae7af64776dd5b012c | Java | Ilyxa987/untitled1 | /src/com/company/Ndrob.java | UTF-8 | 3,510 | 3.390625 | 3 | [] | no_license | package com.company;
public class Ndrob {
private int num; // числитель
private int denom;
private int whole;
//служебные методы: сеттеры, геттеры, конструкторы
public void setNum(int num) {
this.num = num;
}
public void setDenom(int denom) {
if (denom != 0)
this.d... | true |
80d5149830dfc7a07dce6aa271f768d81c70be7d | Java | mohitahmed/Car-Rental-App | /app/src/main/java/com/example/carrentalapp/MainActivity.java | UTF-8 | 3,043 | 2.40625 | 2 | [] | no_license | package com.example.carrentalapp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ViewFlipper;
public class MainActivity extends AppCompatActivity ... | true |
f912d98d9bf468a11516e3168c396b271955082f | Java | Organization-Work/HPE | /HCAS/hcas_java/find-dev/src/main/java/com/autonomy/idolview/DateCounts.java | UTF-8 | 689 | 2.125 | 2 | [] | no_license | package com.autonomy.idolview;
import java.util.LinkedHashMap;
/**
* $Id: //depot/scratch/frontend/find-healthcare/src/main/java/com/autonomy/idolview/DateCounts.java#2 $
* <p/>
* Copyright (c) 2012, Autonomy Systems Ltd.
* <p/>
* Last modified by $Author: tungj $ on $Date: 2013/11/08 $
*/
public class DateCoun... | true |
0d19cb3ec89979c1059ec7ae532657ef0bd85840 | Java | AshishRP94/Competitive-Programming | /C_Ping_pong.java | UTF-8 | 1,942 | 4.125 | 4 | [] | no_license | package competitive_programming;
import java.util.Scanner;
public class C_Ping_pong
{
//The first line contains a single integer t (1≤t≤104) — the number of test cases.
//The first and only line of each test case contains two integers x and y (1≤x,y≤106) — Alice's and Bob's initial stamina.
// 3
// 1 1
// 2 1
//... | true |
ac3b3b0bb7e0ae61ca6f9d337060664804d695c0 | Java | henry0249/spring-data-fabric-chaincode | /spring-data-fabric-chaincode-examples/src/main/java/io/github/hooj0/springdata/fabric/chaincode/example/service/ProposalTransferService.java | UTF-8 | 1,552 | 2.1875 | 2 | [
"MIT"
] | permissive | package io.github.hooj0.springdata.fabric.chaincode.example.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import io.github.hooj0.fabric.sdk.commons.core.execution.result.ResultSet;
import io.github.hooj0.springdata.fabric.chaincode.example.domai... | true |
6cbf99c7f41edba23a2c281421623a6ec2169777 | Java | 92sasha92/COMPILATION | /EX4/FOLDER_2_SRC/IR/IRcommand_Binop_Integers.java | UTF-8 | 2,948 | 2.625 | 3 | [] | no_license | package IR;
import Temp.*;
import MIPS.*;
public class IRcommand_Binop_Integers extends IRcommand{
public Temp t1;
public Temp t2;
public Temp dst;
public String command;
public boolean isAddresses;
public IRcommand_Binop_Integers(String command,Temp dst,Temp t1,Temp t2, boolean isAddresses)
{
this.... | true |
563dbbd47d8deac77e098054d6128de5ed73532d | Java | sssaurabhsuman14/IngBankApplication | /src/main/java/com/ingbank/banking/service/impl/MyEmailServiceImpl.java | UTF-8 | 1,541 | 2.28125 | 2 | [] | no_license | package com.ingbank.banking.service.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Service;
i... | true |
29ea999cdfda8acd814d1b82a55efe1f4d733757 | Java | Halil-Kaya/LinkedListProject | /src/veriyapilari/AnaNode.java | UTF-8 | 567 | 2.234375 | 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 veriyapilari;
/**
* @file AnaNode.java
* @description Ana dugumleri tutmak icin olusturulan AnaNode objesi
* @assignment 1.Ode... | true |
5dc76fe83b94ceefe68ed925947ff70042ac6295 | Java | wolfpi/MAF | /MafChannel/src/com/baidu/maf/message/MessageTypeEnum.java | UTF-8 | 473 | 2.140625 | 2 | [] | no_license | package com.baidu.maf.message;
/**
* Created by hanxin on 2016/5/20.
*/
public enum MessageTypeEnum {
NORMAL("0"),
NETWORK_CHANGE("1"),
REGCHANNEL("2"),
SYSTEM("9"),
APPKEY("1000"),
APPID("1001"),
ALIVE("1002"),
RECONNECT("1003"),
SEQFETCH("1004"),
CHECKOFFLINE("1005");
... | true |
2870d8d1f128e18ac447f3434011a097e1a698e2 | Java | bibiRe/tldlt | /test/com/sysware/tldlt/app/devicetype/DeviceTypeSteps.java | UTF-8 | 978 | 1.9375 | 2 | [] | no_license | package com.sysware.tldlt.app.devicetype;
import org.jbehave.core.annotations.AfterScenario;
import org.jbehave.core.annotations.Given;
import org.jbehave.core.annotations.Then;
import org.jbehave.core.annotations.When;
import com.sysware.tldlt.app.web.devicetype.DeviceTypeAction;
/**
* Type:DeviceTypeSteps
* Desc... | true |
c85586ae554e248a2a8bad747e97e137e9df59bc | Java | Valduy/UdpJavaP2P | /src/connectors/ConnectorBase.java | UTF-8 | 4,513 | 2.921875 | 3 | [] | no_license | package connectors;
import events.Event;
import events.EventArgs;
import events.EventHandler;
import java.io.IOException;
import java.net.*;
import java.util.concurrent.*;
public abstract class ConnectorBase<TResult> implements Callable<TResult> {
protected abstract class ConnectorStateBase<TConnector extends Co... | true |
c543039a3ac9769d9fc4281fc3edd34c9d4a1945 | Java | sooglejay/And | /app/src/main/java/com/and/activities/Home3Activity.java | UTF-8 | 1,108 | 2.03125 | 2 | [] | no_license | package com.and.activities;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.and.R;
import com.and.widget.TitleBar;
/**
* Created by root on 16-2-2.
*/
public class Home3Activity extends AppCompatActivity{
private TitleBar titleBar;
@Override
... | true |
a9465932cfe85de7ce0065cce582956ce020302c | Java | sanyaali/hibernate-semantic-query | /src/test/java/org/hibernate/test/sqm/parser/hql/splitting/QuerySplittingTest.java | UTF-8 | 2,259 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: Apache License, Version 2.0
* See the LICENSE file in the root directory or visit http://www.apache.org/licenses/LICENSE-2.0
*/
package org.hibernate.test.sqm.parser.hql.splitting;
import org.hibernate.sqm.QuerySplitter;
import org.hibernate.s... | true |
d3e7f17269e4d7cc1c14353a025a8b15c5c2e52b | Java | ihmcrobotics/ihmc-open-robotics-software | /ihmc-common-walking-control-modules/src/main/java/us/ihmc/commonWalkingControlModules/capturePoint/ContactStateManager.java | UTF-8 | 11,414 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package us.ihmc.commonWalkingControlModules.capturePoint;
import us.ihmc.commonWalkingControlModules.configurations.WalkingControllerParameters;
import us.ihmc.commons.MathTools;
import us.ihmc.yoVariables.parameters.BooleanParameter;
import us.ihmc.yoVariables.parameters.DoubleParameter;
import us.ihmc.yoVariables.pr... | true |
f8581824a4e0d8738f0b99c22b4eae8a90511c7b | Java | xyyyt/Fotoshop | /src/View/JavaFX/Controller/FXMLInputSceneController.java | UTF-8 | 1,752 | 2.5625 | 3 | [] | no_license | package View.JavaFX.Controller;
import Controller.AController;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.beans.value.ObservableValue;
import javafx.fxml.Initializable;
import javafx.scene.control.TextField;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.s... | true |
1312af111a5251c8a6e7e5530830ab54ca655906 | Java | abhisingh1510/SECheatMode | /app/src/main/java/com/abhisheksingh/ifbservices/AssignCallsPage.java | UTF-8 | 8,898 | 2.1875 | 2 | [] | no_license | package com.abhisheksingh.ifbservices;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class AssignCallsPage extends AppCompatActivity {
int IdOnTask=0,IdOnTaskAs... | true |
5edc7df84e201703360d997db3e749cad8bd09ee | Java | nokok/TwitDuke | /TwitDuke-Core/src/main/java/net/nokok/twitduke/core/view/tweetcell/TweetPanelFactoryImpl.java | UTF-8 | 9,805 | 2.125 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright 2014 noko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | true |
cdba6228ff7e705c534157dc41026ee88f397a55 | Java | prashantrai/Algo_DS_InterviewPrep | /src/leetcode/AddTwoNumbers_2_Medium.java | UTF-8 | 1,302 | 3.34375 | 3 | [] | no_license | package leetcode;
public class AddTwoNumbers_2_Medium {
public static void main(String[] args) {
}
// Time: O(N), N is length of the longest list
// Space : O(N)
//https://leetcode.com/problems/add-two-numbers/
//Looks good
public static ListNode addTwoNumbers(ListNode l1, ListNode l2) {
... | true |
a198009319fabe24d99628a84bbdf28f2d802bc5 | Java | sn4061740/test_study | /demo/app/src/main/java/com/xcore/data/bean/GuestBean.java | UTF-8 | 1,357 | 2.5625 | 3 | [] | no_license | package com.xcore.data.bean;
import com.xcore.data.BaseBean;
import java.io.Serializable;
public class GuestBean extends BaseBean {
GuestItemBean data;
@Override
public String toString() {
return "GuestBean{" +
"data=" + data +
'}';
}
public GuestItemBea... | true |
ff0345dbeb61789f4224f6af1f2c7f089b7b2d22 | Java | DhanukaElectrotech/SafeOFresh04april2021 | /app/src/main/java/com/dhanuka/morningparcel/adapter/StockWiseDetailAdapter.java | UTF-8 | 5,707 | 2.078125 | 2 | [] | no_license | package com.dhanuka.morningparcel.adapter;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview... | true |
19cda9e2963f095a48ab968fd701c1352d5d9c25 | Java | raulcorreia7/isep_lapr4_17_18 | /shared/src/main/java/pt/isep/nsheets/shared/services/AgendaServiceAsync.java | UTF-8 | 910 | 1.75 | 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 pt.isep.nsheets.shared.services;
import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.ArrayList;
/**
*
* @... | true |
d9dcbddec59cac5105724265ac30da1bb3c9fbf8 | Java | 1430916030/bank | /src/bank/Bank.java | GB18030 | 6,541 | 2.875 | 3 | [] | no_license | package bank;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;
//ѡϵͳ
//UserBankд
//ѡӢϵͳʱӢİ
//ϵͳ
public class Bank
{static TradeRecord record=new TradeRecord();
Bank()
{}
//ȡϵͳ
@SuppressWarnings("resource")
boolean withDraw(User a)
{
double num=0.0;
System.out.print("ѡȡĽ... | true |
afa3a7e2868e6109ecdc652a232882e49f9cdeea | Java | DenisDenis2015/RobotWorld | /test-project-back-end/src/test/java/by/rudenko/testproject/scheduler/ScheduledTasksTest.java | UTF-8 | 726 | 2.015625 | 2 | [] | no_license | package by.rudenko.testproject.scheduler;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.verify;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import by.rudenko.testproject.... | true |
8b15f02d10cd2143cc2abf4096423eb9d9cbeab1 | Java | tst-labs/esocial | /src/esocial-jt-service/src/main/java/br/jus/tst/esocialjt/TipoAmbiente.java | UTF-8 | 236 | 2.046875 | 2 | [
"BSD-3-Clause"
] | permissive | package br.jus.tst.esocialjt;
public enum TipoAmbiente {
PRODUCAO(1), PRODUCAO_RESTRITA(2);
private byte codigo;
private TipoAmbiente(int codigo) {
this.codigo = (byte) codigo;
}
public byte codigo() {
return codigo;
}
}
| true |
9b0a091b528f1d11cb15022c35ece95360f1586d | Java | cadox8/FEM | /FEM-Spigot/src/com/cadiducho/fem/core/util/Metodos.java | UTF-8 | 6,127 | 2.6875 | 3 | [
"BSD-3-Clause",
"MIT",
"LGPL-3.0-only",
"GPL-1.0-or-later"
] | permissive | package com.cadiducho.fem.core.util;
import com.cadiducho.fem.core.FEMCore;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Collection;
public class Metodos ... | true |
69645fbc41b027585b2ffaa9609265b05449f0d0 | Java | 2572724988/autumn | /src/autumn-zero/autumn-zero-file-storage/src/main/java/com/autumn/zero/file/storage/application/services/AbstractZoreFileUploadIndependentConfigAppService.java | UTF-8 | 3,980 | 2.28125 | 2 | [] | no_license | package com.autumn.zero.file.storage.application.services;
import com.autumn.application.service.AbstractIndependentConfigApplicationService;
import com.autumn.domain.entities.Entity;
import com.autumn.domain.repositories.EntityRepository;
import com.autumn.util.AutoMapUtils;
import com.autumn.exception.ExceptionUtils... | true |
8cda9678d67b0f071c00e30c87949009b3700a56 | Java | dreadiscool/YikYak-Decompiled | /src/te.java | UTF-8 | 1,045 | 2.28125 | 2 | [] | no_license | public enum te
{
private final tj s;
private final int t;
static
{
te[] arrayOfte = new te[18];
arrayOfte[0] = a;
arrayOfte[1] = b;
arrayOfte[2] = c;
arrayOfte[3] = d;
arrayOfte[4] = e;
arrayOfte[5] = f;
arrayOfte[6] = g;
arrayOfte[7] = h;
arrayOfte[8] ... | true |
1c45f874faa5b29601baec8430929db08d286783 | Java | soulwing/prospecto | /prospecto-api/src/main/java/org/soulwing/prospecto/api/converter/KeyTypeConverters.java | UTF-8 | 1,727 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* File created on Apr 1, 2016
*
* Copyright (c) 2016 Carl Harris, Jr
* and others as noted
*
* 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/LI... | true |
0a1768f11a956b619b61b1c352dabd11aa548e34 | Java | thysce/fast3d | /fast3d/simple/shapes/GeometricBodyBuilder.java | UTF-8 | 2,785 | 3.078125 | 3 | [] | no_license | package fast3d.simple.shapes;
import fast3d.complex.Group;
import fast3d.complex.light.Material;
import fast3d.graphics.Color;
import fast3d.util.ColorGen;
/**
* base class for constructing groups of triangles or AdvTriangles (depending on
* what field you set (material or color)) that make up the shape of a geomet... | true |
617172f287b346665bb2d75756c2822ed41230d0 | Java | SohaniWewelwala/PriceEngine | /engine/src/main/java/com/assessment/engine/dto/PriceAll.java | UTF-8 | 220 | 1.515625 | 2 | [] | no_license | package com.assessment.engine.dto;
import lombok.Data;
import lombok.ToString;
/**
* Created By Sohani on 6/5/2021
*/
@Data
@ToString
public class PriceAll {
private Long productId;
private double price;
}
| true |
a24a32bfd00ddea54506c9338d7950d00c30de6d | Java | VplGradProject/IDE | /src/test/EditCallMethodWindowBase.java | UTF-8 | 2,558 | 2.609375 | 3 | [] | no_license | package test;
import javafx.geometry.Insets;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.RowConstraints;... | true |
8ae91a4219ae22d947b21bfa9cf63a3fa496698f | Java | Roman090783/Figuren | /src/figurenROH/GleichseitigePyramide.java | UTF-8 | 1,183 | 3.03125 | 3 | [] | no_license | package figurenROH;
//Jede Seite ist gleich lang
public class GleichseitigePyramide extends Pyramide{
private double hoehe;
private N_Eck grund;
public GleichseitigePyramide(double hoehe, N_Eck grund) {
super(hoehe, grund);
}
public GleichseitigePyramide(double hoehe, double kante, int anzahlSeiten) {
supe... | true |
9f26734d8f1b67fc8ba308423bae5a245c2bde12 | Java | laohanmsa/WeChatRE | /src/unk/com/tencent/mm/ui/chatting/gj.java | UTF-8 | 1,003 | 1.53125 | 2 | [] | no_license | package unk.com.tencent.mm.ui.chatting;
import android.view.View;
import android.widget.ListView;
import com.tencent.mm.sdk.platformtools.n;
import com.tencent.mm.ui.base.MMPullDownView;
import com.tencent.mm.ui.base.bi;
final class gj
implements bi
{
gj(ChattingUI paramChattingUI)
{
}
public final void zj... | true |
a949b75847e786b18db05b7a744713ca40390bcb | Java | szymper206/geze_calculator | /src/main/java/pl/coderslab/geze_calculator/assortment/Assortment.java | UTF-8 | 1,592 | 2.609375 | 3 | [] | no_license | package pl.coderslab.geze_calculator.assortment;
import lombok.Getter;
import lombok.Setter;
import pl.coderslab.geze_calculator.assortment_products.AssortmentProducts;
import pl.coderslab.geze_calculator.product_group.ProductGroup;
import pl.coderslab.geze_calculator.product_type.ProductType;
import javax.persistenc... | true |
b2ad4fd6b9039c85725314fd06392035bf129397 | Java | yannickrb/tribal | /app/src/main/java/za/co/tribalapp/tribal/ExerciseSession.java | UTF-8 | 1,913 | 2.921875 | 3 | [] | no_license | package za.co.tribalapp.tribal;
/**
* Created by Yannick on 2014/09/12.
*/
public class ExerciseSession
{
//private variables
int id;
String name;
String type;
int duration;
int hrr;
long date;
// no-argument constructor
public ExerciseSession() {}
// full constructor
pu... | true |
733d417cc775b5c8e2ad1e69041ebce11e8790ea | Java | MOldenbourg/autograding-plugin | /src/test/java/io/jenkins/plugins/grading/AnalysisScoreTest.java | UTF-8 | 6,060 | 2.3125 | 2 | [
"MIT"
] | permissive | package io.jenkins.plugins.grading;
import org.junit.jupiter.api.Test;
import net.sf.json.JSONObject;
import io.jenkins.plugins.analysis.core.model.AnalysisResult;
import io.jenkins.plugins.grading.AnalysisConfiguration.AnalysisConfigurationBuilder;
import static io.jenkins.plugins.grading.assertions.Assertions.*;
... | true |
03a428e12087635bf3b318dc7109e0aa100de599 | Java | mP1/walkingkooka | /src/test/java/walkingkooka/predicate/character/NeverCharPredicateTest.java | UTF-8 | 1,758 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | true |
129bd46d47710bae1db165e8870b52b229f66628 | Java | commercetools/commercetools-sdk-java-v2 | /commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/StandalonePriceValueChangedMessagePayloadBuilder.java | UTF-8 | 7,001 | 2.171875 | 2 | [
"Apache-2.0",
"GPL-2.0-only",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"BSD-3-Clause",
"Classpath-exception-2.0"
] | permissive |
package com.commercetools.api.models.message;
import java.util.*;
import java.util.function.Function;
import javax.annotation.Nullable;
import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;
/**
* StandalonePriceValueChangedMessagePayloadBuilder
* <hr>
* Example to create an ins... | true |
01e3bca10c348de2c2a84c2e8a09001e14113c06 | Java | STEMCoders-ABU/Campus-Space-Android-Client | /app/src/main/java/ng/com/stemcoders/campusspace/net/models/ResourceCategoryCommentModel.java | UTF-8 | 2,640 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package ng.com.stemcoders.campusspace.net.models;
import java.io.Serializable;
public class ResourceCategoryCommentModel extends BaseModel
{
private int id;
private int category_id;
private int course_id;
private int department_id;
private int level_id;
private String author;
private Stri... | true |
52b582ef0170fc209ee6f74b59779c0e8c75d832 | Java | RichichiDomotics/poder-judicial | /nsjp-persistencia/src/test/java/mx/gob/segob/nsjp/dao/test/bitacora/BitacoraConsultaDAOImplTest.java | UTF-8 | 4,809 | 2.34375 | 2 | [] | no_license | /**
* Nombre del Programa : BitacoraConsultaDAOImplTest.java
* Autor : GustavoBP
* Compania : Ultrasist
* Proyecto : NSJP Fecha: 31/08/2011
* Marca de cambio : N/A
* Descripcion General : Pruebas Unitarias para el DAO de Bit... | true |
e683ce77eda62a38299e8d0e2377afffb9c0fe0d | Java | bellmit/wms-3 | /rmd_wms_provider/src/main/java/com/rmd/wms/common/service/BaseService.java | UTF-8 | 760 | 2.015625 | 2 | [] | no_license | package com.rmd.wms.common.service;
import com.rmd.wms.db.DataSourceHolder;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
@Repository
public class BaseService {
@Resource(name = "sqlSession")
private SqlSession sqlSessionTemp... | true |
4f9aee0f404abba70268db30059de1e9976378ac | Java | jpachter/workoutservice | /src/main/java/com/gymlife/workoutservice/db/util/SecureRandomFactory.java | UTF-8 | 846 | 2.734375 | 3 | [] | no_license | package com.gymlife.workoutservice.db.util;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class SecureRandomFactory {
//static reference to itself
private static SecureRandomFact... | true |
8fec8418b90d28220da6f6e926ce4657169f64ca | Java | gunner14/old_rr_code | /java_workplace/renren_web_framework/lab/xoa/xoa-api/xiaonei-xoa-protocol.old/trunk/src/main/java/com/renren/xoa/http/HttpClientFactory.java | UTF-8 | 1,031 | 2.328125 | 2 | [] | no_license | package com.renren.xoa.http;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
/**
* @author Li Weibo (weibo.leo@gmail.com) //I believe spring-brother
* @since 2010-3-9 下午02:38:50
*/
public class HttpClientFactory {
private static HttpClient... | true |
9fc906bde7e5f2baf9a206a020b58b14938069b1 | Java | leizheng8686/learningJava | /DrawWindows_swing/src/DrawWindows.java | UTF-8 | 841 | 3.0625 | 3 | [] | no_license | import java.awt.*;
import javax.swing.*;
public class DrawWindows extends JFrame{
DrawWindows(String title, Color bg){
super(title);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(800, 400);
Container c = getContentPane();
c.setBackground(bg);
JButton b = new JButton("OK... | true |
e31a3ab8546461049cb49cd677478fce81d668fd | Java | CSE120PowerRangers/MusicNotes | /src/MusicSheet/Signature.java | UTF-8 | 8,192 | 3.390625 | 3 | [] | no_license | package MusicSheet;
import java.io.Serializable;
import java.util.ArrayList;
import MusicUtil.EnumKeySignature;
import MusicUtil.EnumTimeSignature;
import MusicUtil.NoteName;
/**
* TODO: Allow for adding measures at a particular index instead of just appending
* See if "copying" measures can be done
*
*/
public... | true |
3afef5223646c437549e3faca06e488ce636ca22 | Java | OdinQQ/ZoomDoodleView | /src/com/qtj/zoomdoodleview/TextAction.java | UTF-8 | 826 | 2.859375 | 3 | [] | no_license | package com.qtj.zoomdoodleview;
import android.graphics.Canvas;
import android.graphics.Paint.Align;
public class TextAction extends Action{
public String text;
public float fontSize;
public TextAction( String text, float size, int color, float x, float y){
this.text = text;
fontSize = size;
this.color =... | true |
b26c39dc36793b6a39fdb1a51e25e82ac7c23604 | Java | trmccormick/galaxyGame | /src/galaxy/Tile.java | UTF-8 | 143 | 1.617188 | 2 | [] | no_license | package galaxy;
public enum Tile {
GRASSLANDS, DESERT, ARTIC, JUNGLE, PLAINS, SWAMP, TUNDRA, DEEP_SEA, OCEAN, SHELF, FOREST, BOREAL, ROCK,
}
| true |
d4a183ed54610b75a99846c45b9464d68a8ce484 | Java | vprasanth6855/APINew | /src/test/java/com/rest/api/get/GetBDDApi.java | UTF-8 | 2,243 | 2.34375 | 2 | [] | no_license | package com.rest.api.get;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.respo... | true |
aef16731b9dec313d130d0d0c470dfdd9161bea0 | Java | spring-cloud/spring-cloud-stream-samples | /function-based-stream-app-samples/image-thumbnail-samples/image-thumbnail-stream-sample/image-thumbnail-sink/src/test/java/io/spring/example/image/thumbnail/sink/ThumbnailSinkIntegrationTests.java | UTF-8 | 2,661 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020-2020 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
83c7b30758188bb8afab61dbba8205514e2ad13f | Java | jinho-park/androidkwix | /Practice/app/src/main/java/com/example/owner/practice/Keywordactivity.java | UTF-8 | 1,709 | 2.171875 | 2 | [] | no_license | package com.example.owner.practice;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
... | true |
a57d192bcbe1648bd35d257cf39ac0d2869ea317 | Java | lopis/citybomber | /trunk/gameServer/model/GameSession.java | UTF-8 | 7,762 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive |
package model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONObject;
import exception.*;
public class GameSession implements Runnable{
private HashMap<Integer, GameUser> users = new HashMap<Integer, GameUser>();
private HashMap<Integer, GameBomb> ... | true |
eafc73f0ab1e8af1305a4e635eaa92815d41efa8 | Java | nyomani/goFX | /NextServer/src/main/api/java/org/next/tradable/ContraFill.java | UTF-8 | 166 | 2.078125 | 2 | [] | no_license | package org.next.tradable;
import org.next.api.Price;
public interface ContraFill {
Interest getInterest();
int getQuantity();
Price getPrice();
}
| true |
2752f8adc482969989b7a2a72722a637b57876b6 | Java | gangadkho/Implementations | /src/com/implementation/ganga/stack/PrintReverse.java | UTF-8 | 586 | 3.59375 | 4 | [] | no_license | package com.implementation.ganga.stack;
import java.util.Scanner;
public class PrintReverse {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String input = sc.nextLine();
int length = input.length();
Stack inputStack = new Stack(length);
for(int i=0;i<length;i++) ... | true |
f7d277100a1498690c2e13219b87af1c9f3a4af8 | Java | jjdaunt/advent2020 | /day09b.java | UTF-8 | 2,611 | 3.34375 | 3 | [] | no_license | package com.scratch;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new FileReader("C:\\dev\\scratch\\... | true |
8a8b69a1fde9b0727c7baf8a78cf4f1b1fe29274 | Java | Stanley3/CoachClient | /src/com/chejiawang/android/ui/fragment/OrderHavaOrderFragment.java | UTF-8 | 2,823 | 1.890625 | 2 | [] | no_license | package com.chejiawang.android.ui.fragment;
import java.io.InputStream;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import com.chejiawang.android.adapter.HaveOrderAdapter;
import com.chejiawang.android.adapter.HaveOrderRecycleAdapter;
import com... | true |
c63884b46215a2bc5e4cfa4891ed209126604867 | Java | lkjhg56/finalproject | /finalproject/src/main/java/com/kh/finalproject/entity/UserQuestionResultDto.java | UTF-8 | 1,056 | 1.921875 | 2 | [] | no_license | package com.kh.finalproject.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data@NoArgsConstructor@AllArgsConstructor@Builder
public class UserQuestionResultDto {
/*****************************************************/
//출력용
private... | true |
774e9d7cc1278de681fa7c67636b08c5c0e47608 | Java | ankitachoberediffmail12/VacationExotica | /src/main/java/seleniumgluecode/Corporate.java | UTF-8 | 2,216 | 2.296875 | 2 | [] | no_license | package seleniumgluecode;
import org.openqa.selenium.By;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class Corporate extends Main{
@Given("^user is on homepage$")
public void user_is_on_homepage() throws InterruptedException {
URLSetup... | true |
1e56af2470e8e42405ae1d75ae51956bb50aa72b | Java | gradle/performance-comparisons | /large-multiproject/project89/src/test/java/org/gradle/test/performance89_5/Test89_419.java | UTF-8 | 292 | 1.8125 | 2 | [] | no_license | package org.gradle.test.performance89_5;
import static org.junit.Assert.*;
public class Test89_419 {
private final Production89_419 production = new Production89_419("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | true |
74af28b47267267a747d740b3a2c40d818b37bc5 | Java | pmarrupe/checkstyletest | /src/main/java/com/checkstyle/test/CodeTest.java | UTF-8 | 264 | 1.773438 | 2 | [] | no_license | package com.checkstyle.test;
import java.io.*;
import java.util.*;
public class CodeTest {
public void add(List<String> list) throws FileNotFoundException {
PrintWriter pw = new PrintWriter(new File(""));
Collections.reverse(list);
}
}
| true |
16ce7fa824383357ba98bdfad1546489f04b9c92 | Java | bichozx/TiendaArmoniApplication-main | /app/src/main/java/com/tiendaarmoni/tiendaarmoniapplication/RegistroActivity2.java | UTF-8 | 3,355 | 2.375 | 2 | [] | no_license | package com.tiendaarmoni.tiendaarmoniapplication;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import java.... | true |
ba5163edac62087e97dc50c10c6544ef38961958 | Java | Saviton/SomeJavaCode | /5/Task5/src/elements/candy/Box.java | UTF-8 | 140 | 1.671875 | 2 | [] | no_license | package elements.candy;
import elements.Wrap;
public class Box extends Wrap {
public Box() {
super("Коробка");
}
}
| true |
46537e28a4aee65b243c0ce4cc572f2299c24c0d | Java | aawoznia26/Splendor | /src/main/java/com/kodilla/splendor/Services/JewelService.java | UTF-8 | 4,987 | 2.53125 | 3 | [] | no_license | package com.kodilla.splendor.Services;
import com.kodilla.splendor.Player;
import com.kodilla.splendor.Repository.JewelRepository;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.scene... | true |
3133899d8a2fa04f14d81561dc41f4fbb4df4e45 | Java | fjarar/RegistroPsicosocial | /src/Vista/FrmAcercaDe.java | UTF-8 | 6,421 | 2.1875 | 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 Vista;
/**
*
* @author Intr4Snak3
*/
public class FrmAcercaDe extends javax.swing.JInternalFrame {
/**
* Creates ... | true |
1c8a46cb214ce5e7256af684f6fcafddf8a1b0bc | Java | asenanian/coursedev | /core/src/com/mygdx/Actions/RectangleAction.java | UTF-8 | 1,712 | 2.8125 | 3 | [] | no_license | package com.mygdx.Actions;
import com.mygdx.Entities.GameObjects.Rectangle;
import com.mygdx.GameWorld.GameManager;
import com.mygdx.Renderer.GameRenderer;
import com.mygdx.ui.SimpleButton;
public class RectangleAction extends ActionUtility implements IAction {
private float mouseDown [];
private SimpleButton pi... | true |
5180b540b6387337dcd14fcba329f48530d0d534 | Java | ianomokonov/mobile_2021 | /task2_simple/app/src/main/java/com/example/task2/CaloriesActivity.java | UTF-8 | 2,226 | 2.34375 | 2 | [] | no_license | package com.example.task2;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.example.task2.dto.PersonActivityDto;
import com.example.task2.service.PersonActivityServiceStub;
import com.fasterx... | true |
1947842b585948d36947fb18c5a6358f51ed1d90 | Java | renhai/taurus | /src/main/java/me/renhai/taurus/mq/RabbitMQConfiguration.java | UTF-8 | 485 | 1.75 | 2 | [] | no_license | //package me.renhai.taurus.mq;
//
//import org.springframework.amqp.rabbit.connection.ConnectionFactory;
//import org.springframework.amqp.rabbit.core.RabbitAdmin;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//
//
//@Configuration
//public clas... | true |
75918ead49871d9c72217b91acbd281958d361cb | Java | yilufeng0/serverProject | /src/com/cp/exhibition/AddImageServlet.java | UTF-8 | 2,895 | 1.953125 | 2 | [] | no_license | package com.cp.exhibition;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import ... | true |
45d4f0e3487f23cf5f6ff4696d71a6917cea89eb | Java | gert-wijns/TypeSafeQueryBuilder | /src/main/java/be/shad/tsqb/restrictions/OnGoingDateRestrictionImpl.java | UTF-8 | 6,935 | 2.21875 | 2 | [] | no_license | /*
* Copyright Gert Wijns gert.wijns@gmail.com
*
* 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 l... | true |
e9403b3793fb7637227fad7b0b3fc059ce585232 | Java | iantal/AndroidPermissions | /apks/comparison_qark/com_db_pwcc_dbmobile/classes_dex2jar/android/support/v4/content/ContentResolverCompat.java | UTF-8 | 1,517 | 2 | 2 | [
"Apache-2.0"
] | permissive | package android.support.v4.content;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build.VERSION;
public final class ContentResolverCompat
{
private ContentResolverCompat() {}
public static Cursor query(ContentResolver paramContentResolver, Uri... | true |
3ba58a4fe24860f21ce8616fc1a58060a63a487a | Java | wen-hao-zhang/All-About-SDE-Interview | /src/main/java/org/gnuhpc/interview/leetcode/solutions/ScoreOfParentheses856.java | UTF-8 | 964 | 3.328125 | 3 | [] | no_license | package org.gnuhpc.interview.leetcode.solutions;
import org.junit.Test;
/**
* Copyright gnuhpc 2020/7/4
*/
public class ScoreOfParentheses856 {
public int scoreOfParentheses(String S) {
char[] arr = S.toCharArray();
return helper(arr, 0, arr.length);
}
private int helper(char[] arr, int... | true |
dc14d1d63027fd8ba4b9dd3bd8932eb66c5393d8 | Java | Khuna/amqp-rabbit-wso2 | /src/test/java/org/apache/axis2/transport/amqp/builders/RabbitUrlParserTest.java | UTF-8 | 892 | 2.046875 | 2 | [] | no_license | package org.apache.axis2.transport.amqp.builders;
import static org.junit.Assert.assertEquals;
import org.apache.axis2.transport.amqp.TestConsts;
import org.apache.axis2.transport.amqp.data.RabbitUrl;
import org.junit.Test;
public class RabbitUrlParserTest implements TestConsts {
@Test
public void test1() th... | true |
67f438ed69bd813b736cc8aac2a090a0fddcbb98 | Java | apache/syncope | /client/idrepo/console/src/main/java/org/apache/syncope/client/console/chartjs/PointColorDataSet.java | UTF-8 | 2,320 | 2.28125 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | true |
12bd46d0dcc13f8bb8bbbf36543a80734ac109b6 | Java | jsaikrishna/Passwd-as-a-Service | /passwd/src/main/java/com/passwd/MainController.java | UTF-8 | 3,271 | 2.109375 | 2 | [] | no_license | package com.passwd;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.json.JSONArray;
import org.json.JSONObject;
import org.omg.CosNaming.NamingContextPac... | true |
8c6d1743e54e06e2c61424b3349de2800756d8df | Java | c-meier/Teaching-HEIGVD-RES-2017-Labo-SMTP | /src/PrankClient.java | UTF-8 | 2,782 | 2.546875 | 3 | [] | no_license | import sun.rmi.runtime.Log;
import java.io.*;
import java.net.Socket;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Pattern;
/**
* Created by christopher on 06.04.17.
*/
public class PrankClient implements ISMTPClient {
private static final Logger LOG = Logger.getLogger... | true |
0681a7cd3f9f6e8206ddcf1f1a5365212733af6b | Java | pice-of-cloud/JAVA-01 | /Week_05/04framework10/03starter/demo-starter/src/main/java/io/lvxy/demo/starter/service/DemoService.java | UTF-8 | 515 | 2.421875 | 2 | [] | no_license | package io.lvxy.demo.starter.service;
import io.lvxy.demo.starter.properties.Klass;
import io.lvxy.demo.starter.properties.School;
import io.lvxy.demo.starter.properties.Student;
public class DemoService {
public String sutndentName;
public String className;
public DemoService(String sutndentName, String... | true |
d1fd592ffd2d4cc63cc50ce8d66ad3c0856950a4 | Java | pellepelster/mango | /mango-client-web/src/io/pelle/mango/client/web/MangoMessages.java | UTF-8 | 5,482 | 1.828125 | 2 | [] | no_license | /**
* Copyright (c) 2013 Christian Pelster.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributo... | true |
170211ff7a6aafc97ddcc365f631efd3f3b1c316 | Java | suraj10pai/RESTAPI | /src/JavaTraining/Numbersfrom1to100.java | UTF-8 | 280 | 3.109375 | 3 | [] | no_license | package JavaTraining;
public class Numbersfrom1to100 {
public static void main(String[] args) {
int number =1;
printnumbers(number);
}
public static void printnumbers(int num)
{
if (num<=100) {
System.out.println(num);
printnumbers(num+1);
}
}
}
| true |
f94d39fad6227650e9a5e7716022004bb218cbf9 | Java | lucasandres77/recyclerView | /app/src/main/java/com/example/lucas/practica1listview/AdaptadorPeliculas.java | UTF-8 | 4,148 | 2.421875 | 2 | [] | no_license | package com.example.lucas.practica1listview;
import android.content.Context;
import android.location.GpsStatus;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;... | true |
c6a2d6a6d32e85d07b05b513fb62316c530d3e62 | Java | Yadeah/minichat-server | /src/main/java/com/yadeah/minichat/server/TcpMessage.java | UTF-8 | 633 | 1.820313 | 2 | [] | no_license | package com.yadeah.minichat.server;
import com.yadeah.minichat.common.constant.system.ClientType;
import com.yadeah.minichat.common.constant.system.TcpMessageType;
import lombok.Data;
@Data
public class TcpMessage {
/**
* 消息类型
*/
private TcpMessageType type;
/**
* 请求id
*/
private... | true |
f9bc106ec661fa1208a647a92e94f071bc81a7d5 | Java | thezeroalpha/tictactoe | /src/tic/tac/toe/Board.java | UTF-8 | 3,087 | 4.03125 | 4 | [] | no_license | /*
* Board Class for Tic-Tac-Toe in Java
* Copyright (c) 2015 Alexander Balgavy <a.balgavy@gmail.com>
* Distributed under the WTFNMF Public License
*
* The class that contains the 2D Board array for Tic-Tac-Toe.
*
* Length: 115 lines
*/
package tic.tac.toe;
/**
*
* @author Alex Balgavy
*/
public class Boar... | true |
2dc76960e5da7182ef766efef6b5ae0bf54ab0c8 | Java | essaricy/MySchool | /MySchoolInfrastructure/src/main/java/com/myschool/infra/webserver/agent/StandaloneAgent.java | UTF-8 | 1,942 | 2.5625 | 3 | [] | no_license | package com.myschool.infra.webserver.agent;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
import javax.sql.DataSource;
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
import org.springframework.stereotype.Component;
import com.myschool.common.exception.... | true |
bbdfd36f02a029c592e877312d1a8c55eda6178f | Java | sumitdvlp/PS | /src/MergeSortedArray.java | UTF-8 | 1,129 | 3.328125 | 3 | [] | no_license | /**
* Created by skuma115 on 8/2/2017.
*/
public class MergeSortedArray {
public static void main(String []args){
int []nums1={1,9,21,32,35,87,98,789,8712,12311};
int []nums2={2,3,5,7,43,45,74,211,522};
MergeSortedArray msa=new MergeSortedArray();
msa.printArr(msa.getMergeSortedArr... | true |
d58f72b72819aa0fb63f3b6a8e4b3bc22a4557db | Java | ldawson02/EstuaryGame | /EstuaryGame/src/model/HealthBar.java | UTF-8 | 1,395 | 3.46875 | 3 | [] | no_license | package model;
import java.io.Serializable;
/**
* The HealthBar class holds information about the health of the estuary and has the update method
*
* @author Esme Li
* @version 1.0
* @since 10/25/16
*/
public class HealthBar extends Item implements Serializable {
private final int maxHealth = 100;
private final i... | true |
50e20c091a22466ac63063558210d4ca7b5b0e59 | Java | bermudalocket/SmartMobs | /src/main/java/com/bermudalocket/smartmobs/ReplacementHandler.java | UTF-8 | 5,857 | 2.734375 | 3 | [] | no_license | package com.bermudalocket.smartmobs;
import com.bermudalocket.smartmobs.util.Replacement;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.ent... | true |
f86676fae1f2c9f6203ef665ec2561d73a8c8ee7 | Java | moutainhigh/lotto-skeleton-wl | /src/main/java/com/hhly/skeleton/lotto/base/cooperate/vo/CoOperateOrderInfoVO.java | UTF-8 | 1,245 | 1.929688 | 2 | [] | no_license | package com.hhly.skeleton.lotto.base.cooperate.vo;
import com.hhly.skeleton.lotto.base.order.vo.OrderInfoVO;
/**
* 积分兑换码下单(第三方下单接口)
*
* @author huangchengfang1219
* @date 2018年3月29日
* @company 益彩网络科技公司
* @version 1.0
*/
public class CoOperateOrderInfoVO extends OrderInfoVO {
private static final long serialV... | true |
f125579eabc9e784509deba283600c93ecf2a929 | Java | oguzhanakin1/testinium.oguzhanakin | /testinium/src/main/java/LoginPage.java | UTF-8 | 2,174 | 2.34375 | 2 | [] | no_license |
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util.Iterator;
import java.util.Set;
public class LoginPage
{
WebDriverWait wait;
protected WebDriver webDriver;
... | true |
86ee1ff5b7ea42c6ace7019cbc1bccf7ca371ea3 | Java | danielperez9430/Third-party-Telegram-Apps-Spy | /Talagram/org/telegram/ui/Components/Point.java | UTF-8 | 259 | 2.03125 | 2 | [] | no_license | package org.telegram.ui.Components;
public class Point {
public float x;
public float y;
public Point(float arg1, float arg2) {
super();
this.x = arg1;
this.y = arg2;
}
public Point() {
super();
}
}
| true |
92f899db91892e96b2c1ab9f7084bc90e83b66b2 | Java | RyanTech/myali | /main/src/com/alipay/android/mini/widget/YearMonthPickerDialog.java | UTF-8 | 1,625 | 1.992188 | 2 | [] | no_license | package com.alipay.android.mini.widget;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;
import android.view.LayoutInflater;
import android.view.View;
import com.alipay.android.app.R.id;
import com.alipay.android.app.R.layout;
public class... | true |
04a28f9612872207a56162973a1d92c1f05e9500 | Java | mac-zhenfang/my-test | /mac-test/src/main/java/hadoop/mr/SkipInputFormat.java | UTF-8 | 13,439 | 1.90625 | 2 | [] | no_license | /**
* Need to do: LZO/too see if we NOT use readline.
*/
package hadoop.mr;
import static org.apache.hadoop.mapreduce.lib.input.FileInputFormat.NUM_INPUT_FILES;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
... | true |
2889e55f435fc05caae8e65d915d935c60d29109 | Java | aaryan1/sultanwok | /Sultanwok/src/main/java/com/app2mobile/location/AlaramBroadcastReceiver.java | UTF-8 | 2,652 | 2.109375 | 2 | [] | no_license | package com.app2mobile.location;
import java.util.Calendar;
import java.util.GregorianCalendar;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import andr... | true |
4221aa542b77205a67a038f6f842eb5be780a29e | Java | jothbc/Mobile_Samoel_Financas | /app/src/main/java/jcr/br/financas/Adapter/BoletoAdapter.java | UTF-8 | 3,036 | 2.171875 | 2 | [] | no_license | package jcr.br.financas.Adapter;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import java.util.List;
i... | true |
5dab5ccebf8c42da1b4f4f8ba275c9944888ed33 | Java | anosckin/Auction-Project | /Auction/src/main/java/Models/User_Follower.java | UTF-8 | 1,255 | 2.75 | 3 | [] | no_license | package Models;
import Helper.GeneralConstants;
public class User_Follower implements GeneralConstants {
private int id;
private int followerId;
private int followeeId;
public User_Follower(int id , int followerId , int followeeId) {
this.id = id;
this.followerId=followerId;
... | true |
f1c3cd9d48209ec140c14d63ed1118a22e32019b | Java | cherubguy/TaxCalc | /TaxTest.java | UTF-8 | 1,198 | 2.828125 | 3 | [] | no_license |
public class TaxTest {
public TaxTest() {
}
public boolean assertTaxEqual(double expected, double actual) {
if (expected == actual) {
return true;
}else {
return false;
}
}
public boolean assertTaxNotEqual(double expected, double actual) {
if (expected == actual) {
retur... | true |
f542a1ea9bf45b6916eddafb8205cbdb46d10223 | Java | heibaifu/ChargerSharingSystem | /src/main/java/com/konsonx/po/User.java | UTF-8 | 3,117 | 2.109375 | 2 | [] | no_license | package com.konsonx.po;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table user
*
* @mbg.generated do_not_delete_during_merge
*/
public class User {
/** */
private Integer user_id;
/** */
private String user_phone;
private String user_alias... | true |
1b960077fb5c734da00667ac2b415765746c18b7 | Java | ksdperera/developer-studio | /jaggery/org.eclipse.php.help/src/org/eclipse/php/help/util/HelpContextGenerator.java | UTF-8 | 8,374 | 2.015625 | 2 | [
"Apache-2.0",
"EPL-1.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | true |
9116392dfcfba915860497234a95af29758de146 | Java | FnGZS/ZYPcrazy | /crazyBird/src/main/java/com/crazyBird/dao/secondary/dataobject/SecondaryCapitalDO.java | UTF-8 | 873 | 1.867188 | 2 | [] | no_license | package com.crazyBird.dao.secondary.dataobject;
import java.math.BigDecimal;
public class SecondaryCapitalDO {
private Long id;
private Long userId;
private BigDecimal remainder;
private String gmtCreated;
private String gmtModified;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id ... | true |
ab40279570f2492eedf86cb21c06453c2b7738a4 | Java | wenzhaot/luobo_tool | /laosiji-sources/feng/android/sources/com/meizu/cloud/pushsdk/base/EncryptionWriter.java | UTF-8 | 2,961 | 2.625 | 3 | [] | no_license | package com.meizu.cloud.pushsdk.base;
import android.util.Log;
import com.feng.library.utils.DateUtil;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileFilter;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Compa... | true |