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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
175b383b47039a2d6b81c07486c3c96b125c728b | Java | RaulG89/CPM-1 | /2018/Modulo/src/logica/Catalogo.java | UTF-8 | 1,922 | 2.609375 | 3 | [] | no_license | package logica;
import java.util.List;
public class Catalogo {
private List<Usuario> usuarios;
private List<Producto> productos;
private double porcentajeDescuento;
public Catalogo() {
// TODO Auto-generated constructor stub
}
public List<Usuario> getUsuarios() {
return usuarios;
}
public void setUsu... | true |
34d4968d380b3f09e6156f0cb110ddf2930c0c8e | Java | lorjnr/php-jasper-integration | /src/java/src/ch/bayo/jasper/model/elements/StaticText.java | UTF-8 | 1,571 | 2.3125 | 2 | [] | no_license | package ch.bayo.jasper.model.elements;
import ch.bayo.jasper.cockpit.Report;
import ch.bayo.jasper.model.generation.ClassGeneratorBase;
import ch.bayo.jasper.model.generation.CommonGeneratorBase;
import ch.bayo.jasper.model.generation.Generatable;
import ch.bayo.jasper.model.generation.GeneratorBase;
import ch.bayo.ja... | true |
d570828e61c350d8667fda0d18998dec312c65dc | Java | debugsw/springcloud | /spring-cloud-jwt/src/main/java/com/spring/cloud/base/jwt/utils/MutablePair.java | UTF-8 | 938 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package com.spring.cloud.base.jwt.utils;
import com.spring.cloud.base.utils.base.Mutable;
import com.spring.cloud.base.utils.map.Pair;
/**
* @Author: ls
* @Description:
* @Date: 2023/4/25 11:29
*/
public class MutablePair<K, V> extends Pair<K, V> implements Mutable<Pair<K, V>> {
private static final long serialV... | true |
0615be346a4b60221efff7af4c68b446aa4aca37 | Java | jfv34/projet5 | /app/src/main/java/com/vincler/jf/projet5/models/ArticleMedia.java | UTF-8 | 859 | 2.421875 | 2 | [] | no_license | package com.vincler.jf.projet5.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
public class ArticleMedia implements Parcelable {
@SerializedName("url")
public String url;
protected ArticleMedia(Parcel in) {
url = in.readString(... | true |
064c250be11d56fdfdd9ced139135ae6c965462d | Java | cheny201/CYF | /code/ant/CYF/src/com/cyf/util/Encrypt.java | UTF-8 | 6,473 | 2.734375 | 3 | [] | no_license | package com.cyf.util;
import java.security.NoSuchAlgorithmException;
import java.security.Security;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import org.apache.commons.lang3.StringUtils;
import com.cyf.log.CYFLog;
/**
* 对密码进行加密和解密,不允许被继承final
* @author ChenY201
... | true |
b52665dd6945d72c5bbaedabc4abb333c18c0a9e | Java | maydayannie/Study | /online-store/src/main/java/model/CartDtl.java | UTF-8 | 1,268 | 2.234375 | 2 | [] | no_license | package model;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the CART_DTL database table.
*
*/
@Entity
@Table(name="CART_DTL")
@NamedQuery(name="CartDtl.findAll", query="SELECT c FROM CartDtl c")
public class CartDtl implements Serializable {
private static final long s... | true |
af9c9c570d5e1689a6b9f0c986de6dab63fb389e | Java | SweerenK/Weekopdracht_Racing | /Teamlid/Teambaas.java | UTF-8 | 400 | 1.8125 | 2 | [] | no_license | package weekopdracht_racing.Teamlid;
import weekopdracht_racing.*;
public class Teambaas extends Teamlid implements Interviewbaar {
public Teambaas() {
}
public Teambaas(String naam, String teamnaam) {
super(naam, teamnaam);
}
public String antwoordGevenOpVragen() {
return "";
}
public void geefO... | true |
5f3770f75fb09eeb2bae55066b07a49752d22601 | Java | Rogiel/httpchannel | /httpchannel-api/src/main/java/com/rogiel/httpchannel/service/DownloadChannel.java | UTF-8 | 1,689 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
dd0683bdb48e4080b3def98151757f9cc0fe520b | Java | harikrishnaps/Amigo | /app/src/main/java/com/example/amigo/Sign_Up.java | UTF-8 | 1,983 | 2.1875 | 2 | [] | no_license | package com.example.amigo;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;
public class Sign... | true |
b5fca3b8dd737ea3162aa8ad6536450c83300f3a | Java | allbizzia/flowersstore_SSH | /src/dao/FUpdate.java | UTF-8 | 2,156 | 2.265625 | 2 | [] | no_license | package dao;
import java.util.List;
import javax.print.attribute.standard.MediaName;
import org.hibernate.Session;
import org.hibernate.Transaction;
import com.sun.xml.internal.bind.v2.model.core.ID;
import pojo.Flowers;
import sun.print.resources.serviceui;
import util.HibernateUtil;
public class FUpdate extends... | true |
d8a35db35fa0e5b14a3c2056c1f839885488689f | Java | va-collabnet-archive/workbench | /wb-mmb/wb-mojo/src/main/java/org/ihtsdo/mojo/mojo/memrefset/mojo/builder/CmrscsRefSetBuilder.java | UTF-8 | 2,220 | 1.96875 | 2 | [] | no_license | /**
* Copyright (c) 2009 International Health Terminology Standards Development
* Organisation
*
* 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/LIC... | true |
aed5cc9b802ac1d2bb3467fd0405d875df5617f4 | Java | sivieri/dima2014 | /src/it/polimi/dima2014/WikiActivity.java | UTF-8 | 460 | 1.929688 | 2 | [] | no_license | package it.polimi.dima2014;
import android.app.Activity;
import android.os.Bundle;
public class WikiActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wiki);
if (savedInstanceS... | true |
9eb761df1923270bbc25c2f9901b42c72a85d3ed | Java | xingwenjings/teacher_everywhere | /src/main/java/com/example/teacher_everywhere/ui/main/fragment/VerifyFragment.java | UTF-8 | 4,413 | 1.90625 | 2 | [] | no_license | package com.example.teacher_everywhere.ui.main.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
impor... | true |
eb34a44ed07e5bad72aa7f221d58e6eb21023265 | Java | VijayEluri/toolkit | /photo/src/main/java/com/trailmagic/image/ui/ImageGroupDisplayController.java | UTF-8 | 3,856 | 1.984375 | 2 | [] | no_license | package com.trailmagic.image.ui;
import com.trailmagic.image.*;
import com.trailmagic.image.security.ImageSecurityService;
import com.trailmagic.user.User;
import com.trailmagic.user.UserRepository;
import com.trailmagic.web.util.WebRequestTools;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
3edaa6d6fb62eb6b923f8d26641eb27288a6c3bf | Java | aleBiriri/HellWorldInnoCV | /app/src/main/java/alejandrodovale/hellworldinnocv/Model/UserEntity.java | UTF-8 | 2,973 | 2.734375 | 3 | [] | no_license | package alejandrodovale.hellworldinnocv.model;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Alejandro Dovale on 18/09/2017.
*/
public class UserEntity implements Serializabl... | true |
ebe5bd2dce709334fc52aceca5a83c103e27b316 | Java | hnivq/baiLabHDT | /src/com/vinhtlq2008110155/tuan8/lab7/bai1/ChuNhat.java | UTF-8 | 1,007 | 2.953125 | 3 | [] | no_license | /*
* create date Oct 28, 2021
* create time: 2:27:15 PM
* author: hinvq
*/
package com.vinhtlq2008110155.tuan8.lab7.bai1;
public class ChuNhat {
private double rong;
private double dai;
/**
* @param dai the dai to set
*/
public void setDai(double dai) {
this.dai = dai;
}
/**
* @param rong the rong to s... | true |
b6443c99f268bc52319e3ea45bb1d994d36c0919 | Java | cansin/chitterim | /src/com/chitter/test/TestServlet.java | UTF-8 | 812 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.chitter.test;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.api.xmpp.XMPPService;
import com.google.appengine.api.xmpp.XMPPServiceFactory;
@SuppressWarnings("serial")
public class T... | true |
e33ee3622b5ce8c6bae1aa83bebff57402084e08 | Java | Ananna04/Lab_Test | /MainActivity.java | UTF-8 | 1,293 | 2.078125 | 2 | [] | no_license | package com.example.user.labtest;
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 MainActivity extends AppCompatActivity {
private EditText nameEdit,emailE... | true |
8016439fc71ef02eeb8e44e0642732f5804ba431 | Java | RedLicorice/progetto_ai_2018 | /backend/src/main/java/it/polito/ai/models/archive/Measure.java | UTF-8 | 4,350 | 2.765625 | 3 | [] | no_license | package it.polito.ai.models.archive;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import it.polito.ai.exceptions.InvalidPositionException;
im... | true |
2319ed56f8eb8881f797773a2bdfaa9733716d97 | Java | Benjamin-Berger/Freshman_Year | /CS140/Assign09/src/assignment06/AND.java | UTF-8 | 940 | 3.484375 | 3 | [] | no_license | package assignment06;
public class AND extends Instruction {
public AND(Processor cpu, Memory memory) {
super(cpu, memory);
}
@Override
public void execute(int arg, boolean immediate, boolean indirect) throws DataAccessException {
if (immediate) {
if(cpu.getAccumu... | true |
a0c851160e0fc52ad36390116a26a34a045b3994 | Java | e517487/proposalManagementApplication | /src/main/java/com/inetpsa/pct00/application/repository/AlgemeenRepository.java | UTF-8 | 386 | 1.820313 | 2 | [] | no_license | package com.inetpsa.pct00.application.repository;
import com.inetpsa.pct00.application.domain.Algemeen;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the Algemeen entity.
*/
@SuppressWarnings("unused")
@Repository
public interf... | true |
fca4b2eab6b5011138885a5ddd5fc1991be4862e | Java | sakibcoolz/Logics | /src/main/java/in/logics/mains/daoimpl/NewItemDaoImpl.java | UTF-8 | 1,116 | 2.09375 | 2 | [] | no_license | package in.logics.mains.daoimpl;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import in.logics.mains.dao.NewItemDao;
import in.logics.mains.model.NewItemMaster;
import in.logics.mains.repository.NewItem... | true |
042f0e65250588e8a7624460a81529b2988e41dd | Java | pszerszen/szparkbigdproject | /analyzer/src/main/java/com/pgs/spark/bigdata/domain/Result.java | UTF-8 | 2,749 | 2.21875 | 2 | [] | no_license | package com.pgs.spark.bigdata.domain;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
impor... | true |
fe3c08dcec009c5892552eaed49736f4ec11d3a6 | Java | sdiq0707/jiapeisharebed | /src/main/java/com/woniu/entity/FeedbackExample.java | UTF-8 | 21,792 | 2.046875 | 2 | [] | no_license | package com.woniu.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class FeedbackExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table feedback
*
* @mbggenerated Mon Aug 19 15:25:36 CST 2... | true |
c2da5588f697ccbb0dfe874bf63614c104ea3809 | Java | zhuifeng1017/Android-Study | /XXXAppstore/src/com/xxx/appstore/common/widget/BaseTabActivity.java | UTF-8 | 835 | 1.867188 | 2 | [] | no_license | package com.xxx.appstore.common.widget;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import com.xxx.appstore.Session;
import com.xxx.appstore.common.ResponseCacheManager;
import com.xxx.appstore.ui.SearchActivity;
import com.mobclick.android.MobclickAgent;
public class Bas... | true |
ac76ddaf62981eb002d4b316466d7ada6509027e | Java | webeyemob/WeSdkDemo | /WeSdkAndroid_Demo/app/src/main/java/com/wesdk/demo/basead/FeedListActivity.java | UTF-8 | 4,952 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.wesdk.demo.basead;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import com.we.sdk.core.api.ad.feedlist.Feed;
import com.we.sdk.core.api.ad.feedlist.FeedList;
import... | true |
9115a3efcbe33486a0af7cede4b89e2c4aa3402c | Java | santakd/dbeaver | /plugins/org.jkiss.dbeaver.parser/src/org/jkiss/dbeaver/parser/common/ParseResult.java | UTF-8 | 1,300 | 1.992188 | 2 | [
"EPL-1.0",
"Apache-2.0",
"LGPL-2.0-or-later"
] | permissive | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp 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/LICE... | true |
a0e1231e76b40fda2bd0f47fd2fd78231a655823 | Java | sislam5489/Lab-3.2----More-Array-Methods-and-Sorting | /Lab3.2/src/lab3/Utilities.java | UTF-8 | 185 | 2.8125 | 3 | [] | no_license | package lab3;
public class Utilities {
public static void printArr(int[] arr)
{
for(int i = 0; i<arr.length; i++)
{
System.out.print(arr[i] + " ");
}
}
}
| true |
8619845ae5cd36ce65bab8100d1c434e45332901 | Java | soojun1009/web_project | /project_20170116/src/com/test/SubjectName.java | UHC | 610 | 2.484375 | 2 | [] | no_license | package com.test;
// ڷ Ŭ
public class SubjectName {
private String sub_name_id, sub_name;
private String course_id;
public String getSub_name_id() {
return sub_name_id;
}
public void setSub_name_id(String sub_name_id) {
this.sub_name_id = sub_name_id;
}
public String getSub_name() {
... | true |
71a67440eeb0ddfcf2d10f1fe1f475ca344abef3 | Java | educsng/cwi-reset-03 | /desafio-resetflix/api-resetflix/src/main/java/br/com/cwi/reset/eduardocassanego/repository/EstudioRepositoryDb.java | UTF-8 | 485 | 1.9375 | 2 | [] | no_license | package br.com.cwi.reset.eduardocassanego.repository;
import br.com.cwi.reset.eduardocassanego.model.Estudio;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface EstudioRepositoryDb extends CrudRepository<Est... | true |
692b3956e593e9143409ba2cf0b5d1e25953ffb9 | Java | vivu001/MedienVerwaltung | /Others/src/Test/Main.java | UTF-8 | 2,022 | 3.46875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Test;
import java.util.Map;
import java.util.TreeMap;
/**
*
* @author Vu Viet Duc
*/
public class Main {
public stati... | true |
dee09ff5c36dd4269aba97f909d9aff4450c0637 | Java | noamshe/aerospike-connection | /src/test/java/BaseTest.java | UTF-8 | 492 | 1.929688 | 2 | [] | no_license | import org.junit.Before;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class BaseTest {
@Before
public void setUp() throws Exception {
MockAerospikeClient mockClient = new MockAerospikeClient();
AerospikeClientFactory mockAerospikeClientFactory = mock(AerospikeCl... | true |
ff6f951c2d6da95a08baa99c8c50f14fda3f6021 | Java | Tarasik91/shop | /src/main/java/com/myshop/dao/ProductInOrderDao.java | UTF-8 | 434 | 2 | 2 | [] | no_license | package com.myshop.dao;
import java.util.List;
import com.myshop.model.Order;
import com.myshop.model.Product;
import com.myshop.model.ProductInOrder;
public interface ProductInOrderDao {
public void addProducts(List<ProductInOrder> products);
public List<ProductInOrder> findByProduct(Product product)... | true |
c1a76abe4c279653fc7b81074ddb7123268e52ec | Java | almothafar/FinePlay | /app/models/framework/strictdatetime/StrictDateTime.java | UTF-8 | 978 | 2.25 | 2 | [
"MIT"
] | permissive | package models.framework.strictdatetime;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
@Entity
@Table(name = "STRICT_DATETIMES", ... | true |
3cce98981a23e1c620983e5e74db585205a026b7 | Java | avkatunin/item | /src/main/java/ru/andreykatunin/config/security/WebSecurityLocalConfig.java | UTF-8 | 1,927 | 2.078125 | 2 | [] | no_license | package ru.andreykatunin.config.security;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.s... | true |
055257114d932062c6f7ee9fab9e5786fcc19b26 | Java | tzarouali/video-rental-api | /app/utils/FilmPriceCalculatorUtils.java | UTF-8 | 1,464 | 3.21875 | 3 | [] | no_license | package utils;
import model.pricecalculator.FilmPriceCalculator;
import model.pricecalculator.NewReleasePriceCalculator;
import model.pricecalculator.OldFilmPriceCalculator;
import model.pricecalculator.RegularFilmPriceCalculator;
/**
* Simple utility class to prepare the film price calculator
*/
public class FilmP... | true |
b4468f4d2ee2b032e3ecdb360ab8624ff4af8619 | Java | ConAlgorithm/fastapp | /temp/src/pdr.src/com/dcloud/android/v4/view/WindowInsetsCompat.java | UTF-8 | 2,389 | 1.921875 | 2 | [] | no_license | /* */ package com.dcloud.android.v4.view;
/* */
/* */ import android.graphics.Rect;
/* */
/* */ public class WindowInsetsCompat
/* */ {
/* */ public int getSystemWindowInsetLeft()
/* */ {
/* 43 */ return 0;
/* */ }
/* */
/* */ public int getSystemWindowInsetTo... | true |
7bf5375cfd1e9401e7740ff71be55630a93272c2 | Java | lokesh-bs/LokeshPractice | /src/Sample2.java | UTF-8 | 201 | 2.21875 | 2 | [] | no_license |
public class Sample2 {
int a, b;
int c= a+b;
int add() {
return c;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
Sample2 sam = new Sample2();
}
}
| true |
c3a8b971cbb9f6695042f2c70bfb4634407fcd31 | Java | liangrui1988/java-admin | /src/test/java/com/huiwan/gdata/email/MethodEmialTest.java | UTF-8 | 1,232 | 2.1875 | 2 | [] | no_license | package com.huiwan.gdata.email;
import org.apache.commons.mail.DefaultAuthenticator;
import org.apache.commons.mail.Email;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;
public class MethodEmialTest {
public final static String hostName = "smtp.163.com";// 协议
public fin... | true |
2808a31a64e32a31f96e0aff9a735dc8eca09d5c | Java | yuehui1124/note | /user/src/main/java/com/laoy/service/PowerFeignService.java | UTF-8 | 664 | 1.976563 | 2 | [] | no_license | package com.laoy.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* description: laoy-cloud
* @author yueyueyue
* @date 2019/3/4 10:53
*
*/
@FeignClient(name = "server-power" ,fallback = PowerFeignFalBackImpl.class)
public inter... | true |
e34452d1f414380fb10d4b18d8c433c1b03f4c29 | Java | gentics/mesh | /rest-model/src/main/java/com/gentics/mesh/core/rest/tag/TagFamilyUpdateRequest.java | UTF-8 | 728 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.gentics.mesh.core.rest.tag;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.core.rest.common.RestModel;
/**
* POJO for a tag family update model.
*/
public class TagFamilyUpdateRequest implements RestModel {
... | true |
01d3c722675b7b70f997a72b42d3a57e1116040a | Java | MalykaK/exception-in-spring | /src/main/java/com/capgemini/bank/service/BankAccountService.java | UTF-8 | 442 | 2.046875 | 2 | [] | no_license | package com.capgemini.bank.service;
import com.capgemini.bank.exceptions.AccountIdNotFoundException;
public interface BankAccountService {
public double getBalance(long accountId) throws AccountIdNotFoundException;
public double withdraw(long accountId, double amount) throws AccountIdNotFoundException;
public d... | true |
579a0c833f71277a952bfda5892ea764e81f3d6c | Java | Juandi30/Lab8PST | /app/src/main/java/com/example/lab8pst/MainActivity.java | UTF-8 | 2,584 | 2.171875 | 2 | [] | no_license | package com.example.lab8pst;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class M... | true |
a37763a24dd9afffe82821d044d58fd01034b7d7 | Java | treejames/SampleProject | /NetWork/src/jp/oest/net/NetWorkActivity.java | UTF-8 | 992 | 2.515625 | 3 | [] | no_license | package jp.oest.net;
import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.widget.Toast;
public class NetWorkActivity extends Activity {
/** Called when the activity is first created. */
@Ov... | true |
a2f9f0a61d6c6e00cc5023c35b9d8b7a8b0ddddd | Java | dolare/ConnectFourGames | /Map.java | UTF-8 | 4,311 | 2.84375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.math.*;
public class Map {
private int m_Columns;
private int m_Rows;
private int m_Map[][];
public int m_Count;
private int m_Place[];
public Map()
{
}
public Map(int Width, int Height)
{
m_Map=new int [Width][Height];
m_Rows=Widt... | true |
448f565797019c7e483f591b2f9640ab004ff69e | Java | mounica-pemmadi/Tickets | /tickets/src/main/java/com/dao_tickets/Dao.java | UTF-8 | 342 | 1.8125 | 2 | [] | no_license | package com.dao_tickets;
import java.util.List;
import com.madal.TicketDetails;
public interface Dao {
public int add(TicketDetails t);
public List<TicketDetails> views();
public int update(TicketDetails t);
public List<TicketDetails> viewRow(int id);
public int Delete(TicketDetails t);
publ... | true |
8a7e8020d22a35b52cabc3a282ebc9e054630d9e | Java | ahormazabal/xetl | /src/main/java/cl/exatech/tools/etl/pipeline/Pipeline.java | UTF-8 | 5,301 | 2.46875 | 2 | [] | no_license | package cl.exatech.tools.etl.pipeline;
import cl.exatech.tools.etl.RiskEtl;
import cl.exatech.tools.etl.StepRegister;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import... | true |
1ae66e42c399dd1bbd54ad3f912de72cee087822 | Java | zackm0571/RX-Java-MVP-Arch | /app/src/main/java/com/zackmatthews/rxjava/views/MainActivity.java | UTF-8 | 3,173 | 2.390625 | 2 | [] | no_license | package com.zackmatthews.rxjava.views;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.... | true |
1061c628cd88e744cd2a9579d0bd9db08e023c24 | Java | saytoonz/Android | /app/src/main/java/com/nsromapa/android/backgroundtasks/DownloadImages.java | UTF-8 | 1,102 | 2.453125 | 2 | [] | no_license | package com.nsromapa.android.backgroundtasks;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
/**
* Created by SAY on 17/08/2018.
*/
public class DownloadImages extends AsyncTask<Voi... | true |
e5b932dd392cae5069004984e3108602ef69968f | Java | 232179773/t9 | /src/main/java/com/t9/system/service/AppendixServiceImpl.java | UTF-8 | 1,500 | 2.234375 | 2 | [] | no_license | package com.t9.system.service;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.t9.system.dao.AppendixDao;
import com.t9.system.entity.Appendix;
import com.t9.system.web.T9Result;
@Service
public cla... | true |
f67a6d6ffd322e6f19ea2bb66b501f818245d272 | Java | cha63506/CompSecurity | /youtube-source/src/com/google/android/apps/youtube/core/client/AdsClient.java | UTF-8 | 811 | 1.617188 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.apps.youtube.core.client;
import com.google.android.apps.youtube.datalib.innertube.model.PlayerResponse;
import com.g... | true |
7de69b696364e69214c396ae89cbcb3949a0690b | Java | ValeraTarasevich/EPAM_JAVA | /Task5/src/by/epam/java/AverageValue.java | UTF-8 | 1,936 | 3.453125 | 3 | [] | no_license | package by.epam.java;
public class AverageValue {
private static final int NUMBER_DIVIDER = 2;
private static final int RETURN_NUMBER = -1;
public static double findAverageArithmetic(double[] array){
checkArray(array);
double sum = 0;
for(int i = 0; i <array.length; i++){
... | true |
d4efca4d03abfdc0cd690f2ba45b2aaee05ed426 | Java | witnesslq/zhengxin | /src/org/xpup/hafmis/sysloan/common/domain/entity/BorrowerAcc.java | UTF-8 | 10,818 | 1.8125 | 2 | [] | no_license | package org.xpup.hafmis.sysloan.common.domain.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenera... | true |
2ad26cb19a957fa6465a97e5613c11c9def3b47d | Java | a559927z/doc | /chinahrd-hrbi/tr-benefit/src/main/java/net/chinahrd/benefit/mvc/pc/service/impl/PerBenefitServiceImpl.java | UTF-8 | 5,674 | 2.0625 | 2 | [] | no_license | package net.chinahrd.benefit.mvc.pc.service.impl;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import net.chinahrd.benefit.mvc.pc.dao.PerBenefitDao;
import net.chinahrd.benefit.mvc.pc.service.PerBenefitService;
import net.chinahrd.entity.dto.pc.benefit.PerBenefitAmountDto;
impor... | true |
85e9bc36ccea80ff270e0216945907967ffd6589 | Java | Zhaoxian-Wu/Hadoop-KNN | /KNN/KnnMapper.java | UTF-8 | 1,228 | 2.703125 | 3 | [] | no_license | package KNN;
import java.io.IOException;
import java.util.Vector;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
public class KnnMapper extends Mapper<LongWritable, Text, LongWritable, Text>{
private... | true |
3e01fd4f7d6733fb15aad1a9d572de15b94af32b | Java | SAndroidEOfficial/sandroide-flic | /example-app/app/src/main/java/com/example/giova/flic/MainActivity.java | UTF-8 | 1,941 | 2.09375 | 2 | [] | no_license | package com.example.giova.flic;
import android.os.Bundle;
import android.widget.TextView;
import it.unibs.sandroide.lib.BLEContext;
import it.unibs.sandroide.lib.activities.SandroideBaseActivity;
import it.unibs.sandroide.lib.item.BLEItem;
import it.unibs.sandroide.lib.item.button.BLEButton;
import it.unibs.sandroide... | true |
f45c3b157e79a5e8b98b2507a14faecaf547527f | Java | geosolutions-it/jai-ext | /jt-jiffle/jt-jiffle-language/src/main/java/it/geosolutions/jaiext/jiffle/runtime/JiffleDirectRuntime.java | UTF-8 | 5,295 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /* JAI-Ext - OpenSource Java Advanced Image Extensions Library
* http://www.geo-solutions.it/
* Copyright 2018 GeoSolutions
*
* 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
* ... | true |
0835920e4f646d6c16ee6956dd50652998ac645b | Java | yhaoch/Algorithm | /217th/Solution.java | UTF-8 | 856 | 3.328125 | 3 | [] | no_license | public class Solution {
public boolean containsDuplicate(int[] nums) {
if(nums.length <= 1)
return false;
Map<Integer,Integer> st = new LinkedHashMap<Integer,Integer>();
for(int i=0;i<nums.length;i++){
if(st.keySet().contains(nums[i]) == true){
//Syste... | true |
18944c187d8107bb691b17b10cf81925fa0b6e35 | Java | WuYunWangYue/ssm-ljz | /ssm-demo/src/main/java/com/ljz/test/thread/test/SomeThread.java | UTF-8 | 276 | 2.28125 | 2 | [] | no_license | package com.ljz.test.thread.test;
public class SomeThread extends Thread {
public void run() {
System.out.println("run...");
}
public static void main(String[] args) {
SomeThread someThread = new SomeThread();
someThread.start();
}
}
| true |
99af37b79ff70e1dc2095238f3d1d1703efcd632 | Java | marclx/tmdm-server-se | /org.talend.mdm.core/src/com/amalto/core/webservice/WSLong.java | UTF-8 | 523 | 1.84375 | 2 | [] | no_license | // This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01,编译版 R40)
// Generated source version: 1.1.2
package com.amalto.core.webservice;
public class WSLong {
protected long value;
public WSLong() {
}
publi... | true |
10bfe2b035b213c2bc05f5ed3d06e7c8e4c76e98 | Java | RomainFALLER/iBoursica- | /src/modules/MVC/model/UrlGetSymbolsJSON.java | UTF-8 | 2,878 | 2.984375 | 3 | [] | no_license | package modules.MVC.model;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
... | true |
3733a361d73f5f03c2cd9cef9eabf6afda55f06e | Java | anhalter42/Minecraft-Bukkit-Circuit | /src/com/mahn42/anhalter42/circuit/CircuitHandler42M2107.java | UTF-8 | 3,472 | 2.28125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mahn42.anhalter42.circuit;
import com.mahn42.framework.BlockPosition;
import com.mahn42.framework.WoolColors;
import java.util.logging.Level;
import org.bukkit.Material;
/**
*
* @author andre
*/
public c... | true |
5ccddb9e03c7f882fd8fd48d9ebcb0fa9a6e7856 | Java | jiwangyu/tzsc | /app/BJTUMidas/app/src/main/java/com/jwy/bjtumidas/fragments/ClassifyFragment.java | UTF-8 | 6,166 | 2.046875 | 2 | [] | no_license | package com.jwy.bjtumidas.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import and... | true |
7f9d5bebc41d2dbae4a6de15c0283419f6dd1841 | Java | yuefeiyg/dayu | /parent/springcloud/tms/src/main/java/com/blcultra/service/impl/AnnotationDataSaveServiceImpl.java | UTF-8 | 12,257 | 1.960938 | 2 | [] | no_license | package com.blcultra.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.blcultra.cons.Common;
import com.blcultra.cons.DbConstant;
import com.blcultra.cons.Messageconstant;
import com.blcultra.dao.*;
import com.blcultra.dto.LabelDataDto;
import com.blcultra.model.*;
impo... | true |
493cfe566f6eac4313ed61ba0c8d349773bf29eb | Java | TimvanSteenbergen/MyDemoVersion8 | /javasource/systemmanagement/proxies/microflows/Microflows.java | UTF-8 | 8,513 | 1.96875 | 2 | [] | no_license | // This file was generated by Mendix Studio Pro.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package systemmanagement.proxies.microflows;
import java.util.HashMap;
import java.util.Map;
import com.mendix.core.Core;
import com.mendix.core.CoreException;
import com.mendix.syste... | true |
148b8d5aa8ef34628ddecfc9c7ac3961a6c25994 | Java | VirtusLab/functional-java-workshop | /src/main/java/com/virtuslab/javaworkshop/exercise02_validation/Validation.java | UTF-8 | 2,130 | 3.21875 | 3 | [] | no_license | package com.virtuslab.javaworkshop.exercise02_validation;
import lombok.Value;
/*
TODO write a validation framework which will be able to:
1. perform simple, static validation of specified fields:
- check if value is not null when is required
- check fixed / min / max length
- check if amount field is... | true |
53b34e55a7dfcc49b1f101df2a92c0321deb0c41 | Java | daiyimin/JavaBasics | /com.ericsson.tc/src/main/java/com/ericsson/tc/svl/SVLand2400comparator.java | UTF-8 | 8,711 | 2.296875 | 2 | [] | no_license | package com.ericsson.tc.svl;
import java.io.IOException;
import org.apache.log4j.Logger;
import com.ericsson.tc.ConfigTool;
import com.ericsson.tc.doc2400.CountryCode;
import com.ericsson.tc.doc2400.Doc2400Bean;
public class SVLand2400comparator {
private Logger logger = Logger.getLogger(SVLand2400comparator.class... | true |
346270c834c562f799c5192ef6fa15329edd7d22 | Java | P79N6A/icse_20_user_study | /methods/Method_42257.java | UTF-8 | 210 | 2.375 | 2 | [] | no_license | public static String getBucketPathByImagePath(String path){
String b[]=path.split("/");
String c="";
for (int x=0; x < b.length - 1; x++) c+=b[x] + "/";
c=c.substring(0,c.length() - 1);
return c;
}
| true |
c89fc1bac4631ae2033ef0d2dc07f6db045bf926 | Java | felipebonezi/compiladores-algol68 | /src/br/upe/poli/compiladores/algol68/core/util/AST/DBCmdDIdAtri.java | UTF-8 | 910 | 2.21875 | 2 | [] | no_license | package br.upe.poli.compiladores.algol68.core.util.AST;
import br.upe.poli.compiladores.algol68.core.checker.SemanticException;
import br.upe.poli.compiladores.algol68.core.checker.Visitor;
import java.util.ArrayList;
/**
* Created by felipebonezi on 25/09/16.
*/
public class DBCmdDIdAtri extends DBCmd {
priv... | true |
0acf23ae6d69b550cfc31a27bd0d8bc3f576f180 | Java | haha88888888/ChessGameServeFrame | /frame/socket/BaseResponse.java | UTF-8 | 826 | 2.421875 | 2 | [] | no_license | package frame.socket;
import lombok.Data;
@Data
public class BaseResponse {
// 消息类型
public int msgType;
// proto数据
public byte[] protoMsg;
// json数据
public String jsonMsg;
// 数据类型 0 proto 1 json
public int dataType = 0;
public BaseResponse() {
}
public BaseResponse(int msgType, byte[] protoMsg... | true |
ef828c519bbeaaca6e37759845129f29738d93fe | Java | bjardon/anuario-ipn | /src/controllers/register/Step5.java | UTF-8 | 1,817 | 2.171875 | 2 | [] | no_license | package controllers.register;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;
import main.Main;
import stages.SceneLoader;
import stages.StageManager;
/**
* Created by root on... | true |
8b255274fed4f0cc75dd9e324c6546cbf4b58662 | Java | pwong00710/SpringMVCHibernateCRUDExample | /src/main/java/org/arpit/java2blog/aop/HitCountHandler.java | UTF-8 | 1,509 | 2.34375 | 2 | [] | no_license | package org.arpit.java2blog.aop;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.arpit.java2blog.common.CookieName;
import org.aspectj.lang.JoinPoint;
import org.springframework.web.util.WebUtils;
public class HitCountHandler {... | true |
09c40bcacbd2c7a5b660fc8bc2dc4b9be14e6fc8 | Java | TobyRet/OnlineStoreKata | /src/main/java/com/codurance/Communications/Email.java | UTF-8 | 155 | 2.203125 | 2 | [] | no_license | package com.codurance.Communications;
public class Email {
private final String message;
public Email(String message) {
this.message = message;
}
}
| true |
af2ddc4c7b9f6835cb3ccea1bca72481ca698a0a | Java | Morfly/MinecraftLauncher | /app/src/main/java/org/spout/nbt/LongTag.java | UTF-8 | 607 | 2.765625 | 3 | [] | no_license | package org.spout.nbt;
public final class LongTag extends Tag {
private final long value;
public LongTag(String str, long j) {
super(str);
this.value = j;
}
public LongTag clone() {
return new LongTag(getName(), this.value);
}
public Long getValue() {
return L... | true |
124d9e3e1ebe2cc6e8b0083dcd0313eb6955a45e | Java | ubdc/Emoji | /src/com/demo/emoji/EmojiUtils.java | UTF-8 | 4,026 | 2.9375 | 3 | [] | no_license | package com.demo.emoji;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* emoji来源参考: https://unicode.org/emoji/charts/full-emoji-list.html
* emoji分类:
* 1.单字符emoji,只有一个char
* 2.⏩⏪#️⃣*️⃣0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣
* 3.多字符emoji,这种字符一般由两个或两个以上的字符组合而成,这种emoji一... | true |
f2a8832e7bbe39311207e102175aa381372329fe | Java | NearsoftApprentice/Apprentice-BigO-hashtables | /Persona.java | UTF-8 | 709 | 2.53125 | 3 | [] | no_license | public class Persona{
private static int _id;
private String _nombre;
private String _apellido;
private String _email;
public Persona(int id, String nombre, String apellido, String email){
_id = id;
_nombre = nombre;
_apellido = apellido;
_email = email;
}
public int getId(){return _id;}
public void ... | true |
65da49263f35854ede9bb67a6357cf471f0728b6 | Java | zswood/AthenaServing | /companion/src/main/java/com/iflytek/ccr/polaris/companion/cache/consumer/ServiceFeedbackQueueConsumer.java | UTF-8 | 3,785 | 2.0625 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"TCL",
"HPND",
"LicenseRef-scancode-unknown-license-reference",
"OpenSSL",
"LicenseRef-scancode-openssl",
"MIT",
"LicenseRef-scancode-ssleay-windows",
"ISC",
"BSD-2-Clause"
] | permissive | package com.iflytek.ccr.polaris.companion.cache.consumer;
import com.iflytek.ccr.log.EasyLogger;
import com.iflytek.ccr.log.EasyLoggerFactory;
import com.iflytek.ccr.polaris.companion.cache.ServiceCacheUtil;
import com.iflytek.ccr.polaris.companion.common.Constants;
import com.iflytek.ccr.polaris.companion.commo... | true |
5b2cec1fd7765a77c77a283afcfccf24aab74278 | Java | jcraw123/InventoryManagementSystem | /src/models/TransferableInventory.java | UTF-8 | 1,111 | 2.9375 | 3 | [] | no_license | package models;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
public class TransferableInventory implements Transferable {
private Inventory inventory;
public static final DataFlavor INVENTOR... | true |
f0da1a9135cac8a8bfeaf3eb4fdb27b6310ad7c4 | Java | yejfgit/project | /ulweb/trunk/src/survey/src/com/survey/service/impl/ReportServiceImpl.java | UTF-8 | 2,530 | 1.828125 | 2 | [] | no_license | package com.survey.service.impl;
import java.util.List;
import com.survey.dao.IDeptDao;
import com.survey.dao.IReportDao;
import com.survey.dao.impl.BaseDao;
import com.survey.service.IReportService;
import com.survey.vo.RequestDetailVO;
import com.survey.vo.SurveyVO;
public class ReportServiceImpl implements IRep... | true |
136ee38a0097489d88cf021ab5c2414859034337 | Java | icconsultingbr/afs | /afs/src/com/anoto/ash/database/FormTypeData.java | UTF-8 | 5,172 | 2.0625 | 2 | [] | no_license | package com.anoto.ash.database;
import java.util.Date;
import java.util.Set;
public class FormTypeData
{
private int formTypeId;
private String formTypeName;
private byte[] pdfFile;
private int maxNbrOfFormCopies;
private int remainingFormCopies;
private int notificationLevel;
private int notificationL... | true |
0a979e291a5b41f3a538ff03d10a1534fcb30fa8 | Java | Balavishn/FurnitureStore | /src/main/java/com/example/furniturestore/Sell_Fragment.java | UTF-8 | 7,026 | 1.984375 | 2 | [] | no_license | package com.example.furniturestore;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.media.Image;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragme... | true |
a2972214361f5cf9522dc9a59b6bfcb408dfef6b | Java | tramyardg/CVparser | /src/main/java/com/cv/parser/saveas/WriteToFile.java | UTF-8 | 2,458 | 2.609375 | 3 | [] | no_license | package com.cv.parser.saveas;
import com.opencsv.CSVWriter;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.StringWriter;
import java.nio.file.Files;
import java.nio.file.Pa... | true |
44835f28dc8d1f162bd442f3539bfbb9c7b0ea60 | Java | hungmans6779/JavaWork-student-practice | /practise/JAVA 2 全方位學習(J2SE 5.0 增修版)/unit 7/Q4_1.java | UTF-8 | 80 | 1.9375 | 2 | [] | no_license | public class Q4_1
{
public void method(int i)
{
System.out.println(10);
}
} | true |
30b0cd6c74db40c77b7cd9a2ebe3e682b8dd6f40 | Java | jadynbrownhcl/Capstone | /src/main/java/com/capstone/webapplication/dto/ITypeCost.java | UTF-8 | 331 | 1.8125 | 2 | [] | no_license | package com.capstone.webapplication.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public interface ITypeCost {
String getTransactionType();
Double get... | true |
b6218d6427d9d23ee2646f2fb2bb304c038e77b3 | Java | guilhermaosales/boletofacil-sdk-java | /boletofacilsdk/src/test/java/com/boletobancario/boletofacilsdk/model/request/ListChargesDatesTest.java | UTF-8 | 1,278 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.boletobancario.boletofacilsdk.model.request;
import org.junit.Assert;
import org.junit.Test;
import com.boletobancario.boletofacilsdk.AbstractTest;
public class ListChargesDatesTest extends AbstractTest {
@Test
public void constructorAndAttributes() {
ListChargesDates obj = new ListChargesDates();
... | true |
d454faedadab9242200f51903550474534f07b26 | Java | IT-xzy/Task | /Java/duanwenkai/Task6/Task6-memcached/src/main/java/com/fml/annotion/ValidateFiled.java | UTF-8 | 1,219 | 2.296875 | 2 | [] | no_license | package com.fml.annotion;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ValidateFiled {
/**
* 参数索引位置
... | true |
166c09e4efd41a125c1feef52b24bd54a29e4639 | Java | bergsonsud/MAP-Fametro | /Map.04/src/Servidor.java | UTF-8 | 1,886 | 2.953125 | 3 | [] | no_license | import java.io.IOException;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
impor... | true |
29acf76b222338c12e1e8629da46e45b89b98e36 | Java | KritikalFabric/corefabric.io | /src/contrib/java/com/cisco/qte/jdtn/general/Location.java | UTF-8 | 4,409 | 2.46875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | /**
Copyright (c) 2010, Cisco Systems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | true |
50744e6690d1a280cb86318a9c8303eab06c8e67 | Java | Kunal30/Programming-Archives | /Third Semester/Chapter2_AdvancedProblems_201401131/201401131_Q1/src/Main.java | UTF-8 | 728 | 3.5 | 4 | [] | no_license | public class Main
{
static int M;
public static void main(String args[])
{
int Arr[]={7,8,9,10,11,12,13,14,15,16,17,18,19,20,3,4,5,6};
System.out.println("Maximum Element="+rotated_binary_search(Arr,Arr.length));
if(M!=Arr.length-1)
System.out.println("Minimum Element="+Arr[M+1]);
else
Syste... | true |
73da2491d98e1c9eb135c7a285f97222e2acf689 | Java | leeshare/MyJavaLib | /flink-ad/src/main/java/com/lixl/stream/sink/AdClientEventTimeBucketer.java | UTF-8 | 2,031 | 2.484375 | 2 | [] | no_license | package com.lixl.stream.sink;
import com.lixl.stream.entity.AdClientLog;
import org.apache.flink.streaming.connectors.fs.Clock;
import org.apache.flink.streaming.connectors.fs.bucketing.Bucketer;
import org.apache.hadoop.fs.Path;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.time.Instant;
... | true |
aaa749fb255c606ec58791d7cfdba7bca80cb349 | Java | raghunaik2009/itce-team8-2012 | /onvif_dec/src/net/biyee/onvifer/NewActivity$1.java | UTF-8 | 5,099 | 1.632813 | 2 | [] | no_license | package net.biyee.onvifer;
import java.io.StringReader;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import net.biyee.android.ONVIF.BodyProbeMatche... | true |
604893671effb726bb16e7fb102cb7e7e3dc08da | Java | hejoseph/Project9 | /Note/src/main/java/sprint2/controller/NoteController.java | UTF-8 | 3,414 | 2.359375 | 2 | [] | no_license | package sprint2.controller;
import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import sprint2.model.Note;
import... | true |
f5017bd06d7edcc2e2247ec7a79b431c981c8b3c | Java | TInSys/itc-reporting | /src/main/java/com/tinsys/itc_reporting/client/service/FXRateServiceAsync.java | UTF-8 | 863 | 1.828125 | 2 | [] | no_license | package com.tinsys.itc_reporting.client.service;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.tinsys.itc_reporting.shared.dto.FXRateDTO;
import com.tinsys.itc_reporting.shared.dto.FiscalPeriodDTO;
import com.tinsys.itc_reporting.shared.dto.ZoneDTO;... | true |
bcad1b9b1b65cdf94b9ac99673ced3d3063e1e96 | Java | AlenaOrdina/StandForMarket | /src/main/java/ru/tsystem/ordinaalena/stand/bean/jsf/ProductList.java | UTF-8 | 576 | 2 | 2 | [] | no_license | package ru.tsystem.ordinaalena.stand.bean.jsf;
import ru.tsystem.ordinaalena.stand.bean.ejb.TopProducts;
import ru.tsystem.ordinaalena.stand.model.Product;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import java.io.Serializable;
import java.util.List;
@ManagedBea... | true |
b16ddf43071f83887a7b78f5e871592516ef4378 | Java | Semy-sudo/STUDY-FILE | /Jnit공부/Junit-Stringcal 코드분석/junitTest/src/test/dd.java | UTF-8 | 207 | 1.96875 | 2 | [] | no_license | package test;
public class dd {
public static void main(String[] args) {
String temp = "";
temp += "1";
int res = 0;
res += Integer.parseInt(temp);
temp= "";
System.out.println(res);
}
}
| true |
3a7eee32700cd2b9bcaccf9a3bf9799139f7416b | Java | bexperr/template-spring-rest-mvc | /src/com/bexperr/app/controller/BanksController.java | UTF-8 | 564 | 1.945313 | 2 | [] | no_license | package com.bexperr.app.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... | true |
71640f0ab2f0ca7c654e72199dda91888bf1c730 | Java | gcsimon/TCP--CarStore | /src/carStoreTest/SedanTest.java | UTF-8 | 598 | 2.328125 | 2 | [
"MIT"
] | permissive | package carStoreTest;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import carStore.Sedan;
public class SedanTest {
Sedan sedan;
String category;
@Before
public void setUp() throws Exception {
this.category = "Basico";
sedan = new Sedan(2010,12000,1120,105,31000,10.... | true |
eedb8622d708c8ec947023eba8dd114a17de355c | Java | jcihain/otp | /src/test/java/cn/xdf/me/otp/service/flow/BamProjectServiceTest.java | UTF-8 | 411 | 1.546875 | 2 | [] | no_license | package cn.xdf.me.otp.service.flow;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import cn.xdf.me.otp.BaseTest;
public class BamProjectServiceTest extends BaseTest {
@Autowired
private BamProjectService bamProjectService;
@Test
public void testFindFetch() {... | true |
a47f144bc1a3dbfd891a0e83e9a09896f9b4089e | Java | zx1413/daneiFourth | /redisTest/jedis/src/test/java/cn/dszx/thquenenTtest.java | UTF-8 | 2,072 | 2.53125 | 3 | [] | no_license | package cn.dszx;
import org.junit.Test;
import redis.clients.jedis.Jedis;
import java.sql.Time;
import java.util.concurrent.TimeUnit;
public class thquenenTtest {
public static void put(String i){
Jedis jedis = new Jedis("192.168.126.129", 6379);
// jedis.lset();
jedis.lpush("list"... | true |
b7bdd5d5cec131609d5dc2366a62769abb22dc70 | Java | sylar2019/meAndroidLibs | /common/src/main/java/me/android/library/common/utils/UriUtils.java | UTF-8 | 3,898 | 2.28125 | 2 | [] | no_license | package me.android.library.common.utils;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
import java.io.File;
/**
* File Name : UriUtils
*
* @autho... | true |