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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3fe82c47ef121467ee2fca6763628b4fe5038892 | Java | majdi14789/ecommerce | /e-commerceRev/ejbModule/tn/esprit/e_commerce/persistence/Gouvernorat.java | UTF-8 | 1,096 | 2.46875 | 2 | [] | no_license | package tn.esprit.e_commerce.persistence;
import java.io.Serializable;
import java.lang.String;
import java.util.List;
import javax.persistence.*;
/**
* Entity implementation class for Entity: Gouvernorat
*
*/
@Entity
public class Gouvernorat implements Serializable {
private int idGouvernorat;
... | true |
ba52aca14210c093579136fa439b826ce387e7c7 | Java | bg2010yang/rest-client | /restclient/src/main/java/org/wisdom/tool/model/Cause.java | UTF-8 | 2,844 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017-present, Yudong (Dom) Wang
*
* 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 |
a74513dfa02477af967f2a9ba0b52d3d6109bd9d | Java | htom70/BankcardTransactionGenerator | /src/main/java/user/card/generator/domain/vendor/Vendor.java | UTF-8 | 752 | 2.171875 | 2 | [] | no_license | package user.card.generator.domain.vendor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.stereotype.Service;
import user.card.generator.domain.city.City;
import javax.persistence.*;... | true |
e783c5b952dca29dd33f282a061341afec082e68 | Java | ashwiniraj1994/training | /training01/addsubmuldiv.java | UTF-8 | 1,238 | 3.625 | 4 | [] | no_license | package ashwini;
import java.util.Scanner;
/**
* Created by ashwinirajasekar on 4/13/17.
*/
public class addsubmuldiv {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int num1;
int num2;
System.out.println("Enter the first number : ");
num... | true |
a1dbc0ac90d36d6a9d11c161a3f30b83ce18e5c5 | Java | Ziolson/Nauka | /MultipleActivities/app/src/main/java/com/example/ziolson/multipleactivities/SecondActivity.java | UTF-8 | 635 | 2.203125 | 2 | [] | no_license | package com.example.ziolson.multipleactivities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
public class SecondActivity extends AppCompatActivity {
@Override
prote... | true |
1e568cd0f64f0997e1f3bd61cb1f7069a679129a | Java | mangreen/WEBs | /TESC/src/edu/ntnu/tesc/controller/.svn/text-base/TestPrivilegeController.java.svn-base | UTF-8 | 2,472 | 2.53125 | 3 | [] | no_license | package edu.ntnu.tesc.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import edu.ntnu.tesc.module.beans.Privilege;
import edu.nt... | true |
df9f99d915e35bb85a809ee6af0a6f96dc8eb7f5 | Java | java-assignment-ecommerce/test | /central-booking-system/src/main/java/com/cybage/bookings/controller/CentralBookingsController.java | UTF-8 | 5,716 | 2.171875 | 2 | [] | no_license | package com.cybage.bookings.controller;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.htt... | true |
59fbca1da3927d3b89a853cbcf4add46861bb620 | Java | Liu233w/theoretical-evaluation | /src/main/java/edu/nwpu/machunyan/theoreticalEvaluation/analyze/pojo/TestcaseWeightForProgram.java | UTF-8 | 311 | 2.015625 | 2 | [
"MIT"
] | permissive | package edu.nwpu.machunyan.theoreticalEvaluation.analyze.pojo;
import lombok.Value;
import java.util.List;
/**
* 表示一个程序的title和测试用例
*/
@Value
public class TestcaseWeightForProgram {
String title;
String formulaTitle;
List<TestcaseWeightForTestcase> testcaseWeights;
}
| true |
354d431fa2ce7bbf42d5008e3be3326429d4d493 | Java | zeke89/otus-end-course-golubcov | /src/test/java/AboutTests.java | UTF-8 | 570 | 2.28125 | 2 | [] | no_license | import io.qameta.allure.Severity;
import org.testng.annotations.Test;
import pages.AboutPage;
import static io.qameta.allure.SeverityLevel.CRITICAL;
public class AboutTests extends BaseTest {
@Severity(CRITICAL)
@Test(description = "Check information about company")
public void checkInformationAboutCompa... | true |
e4752108c61832cc26475e3a13694637e2254454 | Java | panangam/oras-banchoff-geom-2018 | /demo-javafiles/demo/gfx/Transformation.java | UTF-8 | 508 | 2.359375 | 2 | [] | no_license | //
// Transformation.java
// Demo
//
// Created by David Eigen on Wed Aug 06 2003.
// Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//
package demo.gfx;
public class Transformation {
/**
* the transformation matrix
*/
public Matrix4D mat;
/**
* inverse transpose of the tr... | true |
8f83bdca821af80ab5af9ca6e1a662de0ac5bb91 | Java | bk8335/project2_runTracker | /app/src/main/java/example/codeclan/com/runtracker/RunListViewActivity.java | UTF-8 | 2,487 | 2.328125 | 2 | [] | no_license | package example.codeclan.com.runtracker;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.ListView... | true |
e990b2e66a4cd5d84363ab081e02878c6cf082b3 | Java | Vengat/Consumer_services_android_2.0 | /app/src/main/java/com/example/vengatr/consumer_services_android_20/rest_classes/GetJob.java | UTF-8 | 5,722 | 2.15625 | 2 | [] | no_license | package com.example.vengatr.consumer_services_android_20.rest_classes;
import android.content.Context;
import android.util.Log;
import com.example.vengatr.consumer_services_android_20.model.Job;
import com.example.vengatr.consumer_services_android_20.util.CSProperties;
import com.fasterxml.jackson.databind.ObjectMapp... | true |
469d92dc1c5e42e34f121683433526f135bb5479 | Java | SayaliBhagat/Hospital-Emergency-Case-Management-System | /src/Business/PathLab/PathLabDirectory.java | UTF-8 | 545 | 1.9375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Business.PathLab;
import java.util.ArrayList;
/**
*
* @author puja_
*/
public class PathLabDirectory {
... | true |
95f954e9599acf9212d2aa5594cbc23bedc4f2ca | Java | Rubilmax/rubidia | /RubidiaCore/src/me/pmilon/RubidiaCore/tags/TagStand.java | UTF-8 | 3,269 | 2.765625 | 3 | [] | no_license | package me.pmilon.RubidiaCore.tags;
import me.pmilon.RubidiaCore.Core;
import me.pmilon.RubidiaCore.packets.FakeArmorStand;
import me.pmilon.RubidiaCore.tasks.BukkitTask;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
public class TagStand {
protected final Entity hol... | true |
dd99d0b5c107bf9d1d2aac98a9ff069084d98019 | Java | imrafaelmerino/vertx-effect | /src/test/java/vertx/effect/api/VertxRefTests.java | UTF-8 | 6,207 | 2.375 | 2 | [] | no_license | package vertx.effect.api;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.junit5.Checkpoint;
import io.vertx.junit5.VertxExtension;
import io.vertx.junit5.VertxTestContext;
import jsonvalues.JsObj;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org... | true |
9c30c048ee34d486dc0321064cc1a48ae42ce373 | Java | viklink/HomeWorks | /src/source/it/butov/user/UserRetrieverImpl.java | UTF-8 | 1,065 | 2.75 | 3 | [] | no_license | package source.it.butov.user;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Scanner;
public class UserRetrieverImpl implements UserRetriever {
private UserConverter userConverter;
public UserRetrieverImpl(UserConverter userCon... | true |
7c4a1935d9ba1972ca9ec7d31bd6a19e06f284d1 | Java | anjarafrizal12/KamusArabIndonesia | /app/src/main/java/id/co/sweetmushroom/kamusbahasaarab/holder/HistoryViewHolder.java | UTF-8 | 496 | 1.976563 | 2 | [] | no_license | package id.co.sweetmushroom.kamusbahasaarab.holder;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import id.co.sweetmushroom.kamusbahasaarab.R;
public class HistoryViewHolder extends RecyclerView.ViewHolder {
public Text... | true |
0204240c658a7d9fdfb51a314bf7ca4b0240ac3d | Java | jakobk/mascherl | /test/test-web-spring-hibernate/src/main/java/org/mascherl/example/page/MailInboxPage.java | UTF-8 | 9,651 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015, Jakob Korherr
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
34914056484d68db114feee8b619c35ebf2d11f9 | Java | qub2qub/First | /CommandLine/src/Inheritance/Parent1.java | UTF-8 | 255 | 3.09375 | 3 | [] | no_license | package Inheritance;
public class Parent1 {
Parent1() {
System.out.println("Parent1 Constructor");
init();
}
void init() {
System.out.println("init Parent");
print(2);
}
void print(int/*Integer */value) {
System.out.println(value);
}
}
| true |
cb547ffda28b807a1db7541ef05cd31304675f4e | Java | ljk761626336/Fjysdemo | /fjdemo/src/main/java/titan/com/test/report/ReportActivity.java | UTF-8 | 5,499 | 1.789063 | 2 | [] | no_license | package titan.com.test.report;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import com.esri.arcgisruntime.dat... | true |
0532c82a0ebf1e158b07f2861105cf72e5bf360b | Java | ox123/openmessaging-storage-dledger | /dledger/src/main/java/io/openmessaging/storage/dledger/BatchAppendFuture.java | UTF-8 | 1,357 | 2.03125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2017-2022 The DLedger 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 applicable l... | true |
9c6bd8bae8e14fa67cef50531f0e0142af4508b7 | Java | RostyslavZadyraichuk/PlazaM-Backend | /src/main/java/com/site/plazam/repository/CinemaRepository.java | UTF-8 | 741 | 2.125 | 2 | [] | no_license | package com.site.plazam.repository;
import com.site.plazam.domain.Cinema;
import com.site.plazam.domain.Country;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repo... | true |
34db5c5eedf2e8ab27d444d49a888daf7aab2c3e | Java | wwwtete/AndroidSamples | /videocachelib/src/main/java/com/wangw/videocache/HttpProxyCache.java | UTF-8 | 4,900 | 2.453125 | 2 | [] | no_license | package com.wangw.videocache;
import android.text.TextUtils;
import com.wangw.videocache.file.FileCache;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import static com.wangw.videocache.ProxyCacheUtils.DEFAULT_BUFFER_SIZE;
/**
* 真正的读取文件和保存文件
... | true |
4f5e44eb7d811b0a93bb0fac0e2c64855f457fab | Java | ee08b397/CC150 | /src/ch05/Problem_5_1.java | UTF-8 | 524 | 3.34375 | 3 | [] | no_license | package ch05;
public class Problem_5_1 {
public int insert(int n, int m, int i, int j){
//create mask 11111_00000_11
//all zeros from bit i to bit j
int mask = ~(((1 << (j+1)) - 1) << i);
//clear bits [i,j] in n
int temp = n & mask;
//shift m i bits, and OR operation to set bits in n
return temp | (m <<... | true |
75ea0405999b25eaece5e3b9564ff6f16dae4bc0 | Java | thaspius/satellite-data | /src/main/java/org/demo/satellite/models/db/SatelliteModel.java | UTF-8 | 1,681 | 2.453125 | 2 | [] | no_license | package org.demo.satellite.models.db;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
@Entity
@Table(name = "sat... | true |
a6a17e1abc3b4b2b83e0c5230ce0c028d678dc50 | Java | onyas/leetcode | /src/main/java/com/onyas/leetcode/P003LongestSubstringWithoutRepeatingCharacters.java | UTF-8 | 2,370 | 3.828125 | 4 | [] | no_license | package com.onyas.leetcode;
import java.util.HashMap;
import java.util.Map;
/**
* Given a string, find the length of the longest substring without repeating
* characters. For example, the longest substring without repeating letters for
* "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring... | true |
62eb3e49860902c1650d7e3ecbbec22420a5ab05 | Java | tanvir-shanto/Hunting-Frenzy | /src/com/hunt/states/State.java | UTF-8 | 468 | 2.671875 | 3 | [] | no_license | package com.hunt.states;
import java.awt.Graphics;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
public abstract class State implements KeyListener, MouseListener {
private static State currentState = null;
public static void setState(State state) {
currentState = state;
}
... | true |
9edeb2a443216a1398d954e45a8a5a113ce0c2bb | Java | djtwisty/ccah | /sources/com/google/firebase/crash/zzg.java | UTF-8 | 350 | 1.867188 | 2 | [] | no_license | package com.google.firebase.crash;
import com.google.android.gms.internal.crash.zzm;
import java.util.concurrent.Callable;
final class zzg implements Callable<zzm> {
private final /* synthetic */ zzf zzy;
zzg(zzf zzf) {
this.zzy = zzf;
}
public final /* synthetic */ Object call() {
r... | true |
43dce479628221446e61c6c7dc08f22cad436506 | Java | wvsu-cict-cit207/students | /bscs2a/activities/activity3/CarabanoActivity3/Conversion.java | UTF-8 | 657 | 3.46875 | 3 | [] | no_license | package conversion;
import java.io.*;
public class Conversion {
public static void main(String[] args) {
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
try{
System.out.print("Enter temperature in Celsius: ");
String celsiusStr = br.readLine();
... | true |
6968e122f324737a6d2c7e6bbfb766045793b8ac | Java | SemenchenkoAlexander/kr2015 | /src/GameState/Level1State.java | UTF-8 | 2,833 | 2.953125 | 3 | [] | no_license | package GameState;
import Entity.Enemies.Slugger;
import Entity.Enemy;
import Entity.Player;
import Main.GamePanel;
import TileMap.Background;
import TileMap.TileMap;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
public class Level1State extends GameState {
private TileMap tileMap... | true |
55b0328b00b7b488e77d0c94f6b74ac693bf1368 | Java | wan199461/bobo | /src/main/java/com/wanbo/java8/DefaultMethod.java | UTF-8 | 140 | 1.632813 | 2 | [] | no_license | package com.wanbo.java8;
public class DefaultMethod {
public static void main(String[] args) {
// Drawer.drawPoint(Ert);
}
}
| true |
57008a69d6329c832ffa12d3bd1d5680c912ca17 | Java | vo0doO/microcredit | /hunter-hash-module/src/main/java/com/altova/xml/AnyTypeNode.java | UTF-8 | 1,587 | 2.3125 | 2 | [] | no_license | package com.altova.xml;
import com.altova.types.SchemaString;
import com.altova.types.SchemaType;
import com.altova.xml.Document;
import com.altova.xml.Node;
public class AnyTypeNode extends Node {
public AnyTypeNode(AnyTypeNode node) {
super((Node)node);
}
public AnyTypeNode(org.w3c.dom.Node node) {
... | true |
2f7f93e45d84a5143ab226704bbeecc991e8757b | Java | zemlni/SLogo | /src/backend/parser/GroupStartExpression.java | UTF-8 | 1,312 | 3 | 3 | [
"MIT"
] | permissive | package backend.parser;
import backend.BackendController;
import backend.Variable;
/**
* This class is the implementation of the Group Expression. An instance of this
* class is created when the parser identifies the beginning of a group - ie the
* beginning of a command with an unlimited amount of parameters.
*/... | true |
be05d6fe895f24c03c749ce0cffb753dd9ffc2af | Java | aitonjiaotong/BaMinGongWuCar | /src/cn/com/easytaxi/common/HeadBean.java | UTF-8 | 2,231 | 2.484375 | 2 | [] | no_license | package cn.com.easytaxi.common;
import org.apache.http.util.ByteArrayBuffer;
public class HeadBean {
private short magic = 0x2012;
private short version = 0x0000;
private short error = 0;
private short property = 0; // 特性
private short msg; // 消息码
private short length;// 数据长度
privat... | true |
f2f06e146f51507ca11336c2295acec011edabda | Java | parkhaianh/sodaubai | /src/main/java/haianh/com/edu/sodaubai/utils/PasswordsEqualConstraintValidator.java | UTF-8 | 1,146 | 2.671875 | 3 | [] | no_license | package haianh.com.edu.sodaubai.utils;
import java.lang.reflect.Method;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class PasswordsEqualConstraintValidator implements ConstraintValidator<PasswordsEqualConstraint, Object>{
@Override
public void initialize... | true |
e0a5260cc0e5ae48148335ebfd91efccd5ab408e | Java | 438972218/ztb-server | /permission-service/src/main/java/com/xdcplus/permission/constants/Oauth2Constant.java | UTF-8 | 549 | 1.84375 | 2 | [] | no_license | package com.xdcplus.permission.constants;
/**
* Oauth2 常量类
*
* @author Rong.Jia
* @date 2021/05/21 17:24
*/
public class Oauth2Constant {
public static final String OAUTH2_CLIENT = "ztb-manage";
public static final String[] AUTHORIZED_GRANT_TYPES = new String[]{"password", "refresh_token"};
public... | true |
f96bee5618729b65b0ca365142d82d84b902abc6 | Java | himanshusharma184/HackRankPrograms | /src/main/java/interview/StringPartOfString.java | UTF-8 | 577 | 3.046875 | 3 | [] | no_license | package interview;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
public class StringPartOfString {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s = scanner.next();
String t = scanner.next();... | true |
6209395b990560772834ca44990bc559e62f703e | Java | chaerun/epu | /src/main/java/com/kemenkes/epu/service/impl/ConfigServiceImpl.java | UTF-8 | 1,059 | 2.015625 | 2 | [] | no_license | package com.kemenkes.epu.service.impl;
import java.io.Serializable;
import java.util.List;
import javax.transaction.Transactional;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kemenkes.epu.common.dao.Gen... | true |
7a78b7ba71591d0ce05959a4aea8e286ae563545 | Java | HyChangChen/ctw | /back/src/main/java/com/ctw/domain/role/RoleEntity.java | UTF-8 | 2,545 | 2.5 | 2 | [] | no_license | package com.ctw.domain.role;
import javax.validation.constraints.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* t_sys_role
*/
pub... | true |
c7ffaa656854994f9c5df9fff25f79d28987502d | Java | vanderzago/jobs | /src/test/java/com/projetas/car/api/CarApiApplicationTests.java | UTF-8 | 331 | 1.609375 | 2 | [
"MIT"
] | permissive | package com.projetas.car.api;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
CarServiceTest.class,
CarResourceTest.class,
CarRestTests.class
})
public class CarApiApplicationTests {
@Test
public void contextLoads()... | true |
585cd17468d4c5dbbf966b3e6972574284074cd3 | Java | phother/penghao | /src/main/java/sample/bizfuse/web/config/web/WebConfiguration.java | UTF-8 | 3,516 | 1.945313 | 2 | [] | no_license | package sample.bizfuse.web.config.web;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import javax.servlet.MultipartConfigElement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web... | true |
5302171553f1ce46f25c580efc227b53a274679b | Java | yousss/test | /src/test/java/commonLibs/ExtentFactory.java | UTF-8 | 1,211 | 2.328125 | 2 | [] | no_license | package commonLibs;
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.ExtentTest;
import com.relevantcodes.extentreports.LogStatus;
import commonLibsInterfaces.IReport;
public class ExtentFactory implements IReport {
private ExtentReports extent;
private ExtentTest test;
... | true |
4bf56b96f6ffb043cbdc1b5293ca74df2017fcae | Java | BondarenkoArtur/vpnAppTest | /app/src/main/java/com/inverita/vpnapptask/utils/NetworkUtils.java | UTF-8 | 11,568 | 2.34375 | 2 | [] | no_license | package com.inverita.vpnapptask.utils;
import android.content.Context;
import android.os.AsyncTask;
import com.inverita.vpnapptask.R;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.... | true |
9539585d01943eb786b25bf6586d508a09e8d359 | Java | gitter-badger/jmisb | /api/src/main/java/org/jmisb/api/klv/st0102/localset/OcMethod.java | UTF-8 | 4,301 | 2.59375 | 3 | [
"MIT"
] | permissive | package org.jmisb.api.klv.st0102.localset;
import org.jmisb.api.klv.st0102.CountryCodingMethod;
import org.jmisb.api.klv.st0102.ISecurityMetadataValue;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* Object Country Coding Method (ST 0102 tag 12)
*/
public class OcMethod implements IS... | true |
0d5a62854529ba6dfb8deab5401b415af6796af3 | Java | amalatesta/OAFramework | /tutorial/jdevhome/jdev/myprojects/oracle/apps/fnd/framework/toolbox/samplelib/webui/TreeDetailsCO.java | UTF-8 | 2,808 | 1.859375 | 2 | [] | no_license | /*===========================================================================+
| Copyright (c) 2001, 2003 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| ... | true |
def1bf33f683f4ee24355c6a99533013f367240c | Java | androidappdemo/Info | /app/src/main/java/com/magicalboy/info/MainActivity.java | UTF-8 | 1,681 | 2.734375 | 3 | [] | no_license | package com.magicalboy.info;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import java.util.Set;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInsta... | true |
cf135f4c2725f67bb57f27677eb1348bd76e770c | Java | zjm168love/spring-boot_integrate_rabbitMQ | /src/main/java/com/neo/rabbit/config/TopicRabbit_limitedQueueConfig.java | UTF-8 | 4,228 | 2.046875 | 2 | [] | no_license | package com.neo.rabbit.config;
import com.neo.rabbit.topic.TopicConfirmCallback;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.amqp.rabbit.conn... | true |
0e55af4740f9591598504034d27c35a5c0fbf65a | Java | lordantonelli/AMenu | /br.usp.icmc.amenu/src-gen/br/usp/icmc/amenu/aMenu/Configurations.java | UTF-8 | 1,991 | 1.664063 | 2 | [] | no_license | /**
*/
package br.usp.icmc.amenu.aMenu;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Configurations</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <l... | true |
ebd1496cd98bccbdfc354c03bb7f0799bb56b77f | Java | JoeQiang/TranSoprt | /TranSoprt Maven Webapp/src/main/java/com/vanroid/transopt/service/GRFactoryServiceImp.java | UTF-8 | 6,614 | 2.03125 | 2 | [] | no_license | package com.vanroid.transopt.service;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.Db;... | true |
5e0531c1dd500dbfbeae7346a5126071dba1010e | Java | beginagainjava/javabasic | /src/java06_class/method/Method_01.java | UHC | 996 | 4 | 4 | [] | no_license | package java06_class.method;
public class Method_01 {
//0. ҵ ⺻ ۼ
public void method() {
}
//1. ҵ ̸ -> ϴ ǥϴ ̸ ϱ
//2. Ű ۼ -> ʿ ϴ
//3. ڵ ۼ -> ҵ尡 ۼ,
//4. returnڵ ۼ -> ȯ
//5. returnŸ ۼ -> returnڵ Ÿ
//---------------------------
//2 ϴ (ҵ)
public int add(int num1... | true |
786c8e204e21549b40f2372067d36db8fba41c56 | Java | bhaven55/lab8 | /BoardGame.java | UTF-8 | 6,791 | 3.5625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
public class BoardGame
{
//protected fields of BoardGame
protected LinkedHashMap<String, GamePiece> playerPieces;
protected LinkedHashMap<String, Location> pl... | true |
046aea50e560edaad0388a430dc6227b2e937552 | Java | momattos87/RecordTv | /src/main/java/br/com/record/instar/app/Instar_Ingestion.java | UTF-8 | 1,891 | 2.03125 | 2 | [] | no_license | package br.com.record.instar.app;
import br.com.record.instar.conf.Carrega_Conf;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import br.com.record.instar.hive.DadosBrutos;
public class Instar_Ingestion {
public static void main(String[]... | true |
57b3e2f757879fdeac22e9a5017402f4a6f0b275 | Java | basumatarau/trainingJavaCore | /src/com/codeHeap/threads/carBuilder/DriveTrainRobot.java | UTF-8 | 334 | 2.46875 | 2 | [] | no_license | package com.codeHeap.threads.carBuilder;
public class DriveTrainRobot extends Robot {
DriveTrainRobot(RobotPool robotPool) {
super(robotPool);
}
@Override
protected void performService() {
System.out.println(this + " is installing driveTrain");
assembler.getTheCar().addDriveTra... | true |
4f12f4603dcd65932b85543ac79568a1c30e97f5 | Java | wangzhibing/md | /src/com/md/service/SymptomItemValueService.java | UTF-8 | 851 | 2.078125 | 2 | [] | no_license | package com.md.service;
import java.util.List;
import com.md.entity.SymptomItemValue;
/**
* 症状条目数值表服务层
* @author owen
*/
public interface SymptomItemValueService {
/**
* 返回症状条目数值
* @return
*/
public List<SymptomItemValue> querySymptomItemValueInfo(SymptomItemValue siv);
/**
* 通... | true |
a26f0ea135ea45240cfa4d0b760bde3e3c7ba216 | Java | Ahmed-Salah-asu/AFaqy-Task | /TAF/src/main/java/pages/CheckOutPage.java | UTF-8 | 2,845 | 2.171875 | 2 | [] | no_license | package pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.Select;
public class CheckOutPage extends PageBase {
public CheckOutPage(WebDriver driver) {
super(driver);
}
@FindBy(id="input... | true |
c8439e88d0241bf4590fbd4cc51ec35ce5893220 | Java | SegundoLeiva/Stansa | /Stansa/src/main/java/com/stansa/domain/ConsumoConsulta.java | UTF-8 | 1,114 | 1.851563 | 2 | [] | no_license | package com.stansa.domain;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class ConsumoConsulta {
@Id
private String idConsumo;
private String sedeCliente;
private String tipoContrato;
private String fechaCreacion;
private String idUsuarioCreacion;
public S... | true |
1b2b3f8315dc6260ff2c8faa71c613c338302183 | Java | CaptainBlackCat/P2PMoney | /P2PMon/app/src/main/java/com/ly/p2pmon/common/CrashHandler.java | UTF-8 | 2,045 | 2.40625 | 2 | [] | no_license | package com.ly.p2pmon.common;
import android.content.Context;
import android.os.Build;
import android.os.Looper;
import android.os.Process;
import android.util.Log;
import android.widget.Toast;
/**
* Created by 12758 on 2016/5/8.
*/
public class CrashHandler implements Thread.UncaughtExceptionHandler {
privat... | true |
df59ff868ccbf713d119d04931cb259e4688f4f4 | Java | matheosu/CFA | /web/src/main/java/br/edu/unigranrio/ect/si/cfa/web/converter/CalendarConverter.java | UTF-8 | 1,312 | 2.4375 | 2 | [] | no_license | package br.edu.unigranrio.ect.si.cfa.web.converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.ti... | true |
e379cc62f6077db9bf5c8a911d00abca9db8a69e | Java | jainsanchits/CouponDunia-Task | /app/src/main/java/com/sjain/couponduniatask/network/apimodel/APITaskResponse.java | UTF-8 | 935 | 2.015625 | 2 | [] | no_license | package com.sjain.couponduniatask.network.apimodel;
import com.google.gson.annotations.SerializedName;
import com.sjain.couponduniatask.model.TaskResponse;
/**
* Created by sjain on 31/10/17.
*/
public class APITaskResponse {
@SerializedName("success")
private Boolean success;
@SerializedName("authenti... | true |
7381ceaed235ec83f989ad9c5c1e53000908c548 | Java | Arquisoft/dashboard_i2a | /src/test/java/dashboard/cucumber/CucumberPersistence.java | UTF-8 | 842 | 2.375 | 2 | [
"Unlicense"
] | permissive | package dashboard.cucumber;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import dashboard.dto.Proposal;
import dashboard.persistence.Persistence;
import dashboard.persistence.ProposalDao;
import org.junit.Assert;
import java.util.List;
public class CucumberPers... | true |
d121871536f54e37f624bd3d9cdf09eca9ab29a7 | Java | TitasNandi/Summer_Project | /com.stud.titas.sandbox/src/main/java/dkpro/similarity/experiments/sts2013baseline/example/MyTextSimilarityMeasure.java | UTF-8 | 1,210 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2013
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
... | true |
30c85b46a9a45603345f564e85d3ca9cb7850331 | Java | nextworks-it/MEC-applications | /MEC012/mec012-client/src/main/java/io/swagger/client/model/RabEstSubscriptionFilterCriteriaQci.java | UTF-8 | 4,122 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* ETSI GS MEC 012 - Radio Network Information API
* The ETSI MEC ISG MEC012 Radio Network Information API described using OpenAPI.
*
* OpenAPI spec version: 2.1.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not ed... | true |
b067720f26b46e082217650a95ed4826ef20d565 | Java | nrybicki/MU_Java_work | /Spring 2021/CSE 274/2021-02-09_Interfaces/src/ClientCode.java | UTF-8 | 187 | 2.234375 | 2 | [] | no_license |
public class ClientCode {
public static void main(String[] args) {
StringBag bag = new ArrayWordBag();
bag.add("cat");
bag.add("dog");
System.out.println(bag.size());
}
}
| true |
c2704f676bc2a2aa18e8a445f96db5129f03f0de | Java | SneakingShadow/Force | /force_common/shadow/force/registry/ItemGameRegistry.java | UTF-8 | 250 | 1.507813 | 2 | [] | no_license | package shadow.force.registry;
import shadow.force.item.Items;
import cpw.mods.fml.common.registry.GameRegistry;
public class ItemGameRegistry {
public ItemGameRegistry(){
GameRegistry.registerItem(Items.forceCrystal, "forceCrystal");
}
} | true |
eaab392f8efa23dae12babb392ebd2176a85c26a | Java | andrewspence2020/Introduction-to-java-with-Daniel-Liang-11th-Edition | /ANDREW SPENCE JAVA HOMEWORK/JAVA HOMEWORK CHAPTER 4/java_homework_page155Q4_18.java | UTF-8 | 1,182 | 3.40625 | 3 | [] | no_license | package Java_homework;
import java.util.Scanner;
public class java_homework_page155Q4_18 {
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Scanner input = new Scanner (System.in);
//make sure to press enter after each character
System.o... | true |
b66bbc5c7b643f010e17eed7cfc73de6f67f9c05 | Java | jing0515/Xiangmu_er_Zhoukao2 | /app/src/main/java/com/bawei/lvwenjing/xiangmu_er_zhoukao2/Adapters.java | UTF-8 | 1,747 | 2.375 | 2 | [] | no_license | package com.bawei.lvwenjing.xiangmu_er_zhoukao2;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import java.util.List;
/**
* Created by leno... | true |
b6644c4198ceedfbacc2b411ee79eaee7cdc7372 | Java | taejoo1990/JavaPractice | /src/pk06/StudentMain.java | UHC | 553 | 3.34375 | 3 | [] | no_license | package pk06;
public class StudentMain {
public static void main(String[] args) {
//ʵ带 ̿Ͽ
Student stdA=new Student();
stdA.StudentName="Ƚ";
//System.out.println(stdA.StudentName);
System.out.println(stdA.getStudentName());
System.out.println(stdA);//hip memory
System.out.println("------------------... | true |
6c3c58ecd154eb7b4856b160dde999f142ecbb3b | Java | gprohorov/vsem3 | /src/pro/edu/collectionss/Student.java | UTF-8 | 1,903 | 3.390625 | 3 | [] | no_license | package pro.edu.collectionss;
/*
@author george
@project vsem3
@class Student
@version 1.0.0
@since 31.03.2021 - 19.07
*/
import java.time.LocalDate;
import java.util.Objects;
// POJO class
public class Student {
private String name;
private LocalDate birth;
private Gender gender;
p... | true |
a800bc963e35aaec0490b995667a49523977740b | Java | 1Basileus/MuelliAlgs | /NaviSearch/NaivSearch.java | UTF-8 | 377 | 3.21875 | 3 | [] | no_license | public class NaivSearch {
public boolean search(String text, String pattern){
boolean found = false;
for(int i=0; i<text.length() - pattern.length(); i++){
String subString = text.substring(i, i + pattern.length());
if(subString.equals(pattern)){
found = true... | true |
304e208066494b8bf1cf40bae18ea9b14bec4373 | Java | nalonsoh/web-app-prueba | /src/main/java/es/noelalonso/webappprueba/WebServletPrueba.java | UTF-8 | 794 | 2.234375 | 2 | [] | no_license | package es.noelalonso.webappprueba;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementati... | true |
9f2b56f540f6729fd4bcece64a8302714cc9b854 | Java | kuvi112/BAOCAOTHUCTAP | /NhacViec/app/src/main/java/com/example/ongnauvi/nhacviec/ClassCV.java | UTF-8 | 1,821 | 2.171875 | 2 | [] | no_license | package com.example.ongnauvi.nhacviec;
/**
* Created by OngNauVi on 03/06/2017.
*/
public class ClassCV {
private int Macv;
private String Tencv;
private String Mota;
private String Ngay;
private String Gio;
private String Kieulaplai;
private String Trangthai;
public ClassCV() {
... | true |
fca66064427ca2dc62a808c2581451415b02cb2e | Java | ni350305/autodeploy | /src/main/java/cn/com/easy/deploy/entity/DeployProjectEntity.java | UTF-8 | 562 | 1.953125 | 2 | [
"MIT"
] | permissive |
package cn.com.easy.deploy.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
import cn.com.easy.deploy.persistence.BaseEntity;
/**
* 部署项目表
*
* @author nibili
*
*/
@Entity
@Table(name = "easy_deploy_project")
public class DeployProjectEntity extends BaseEntity {
pri... | true |
2d80e0750cfb0320db17e4f8246f5d0e6f3ebe52 | Java | x2yu/zhongxin-manager | /src/main/java/com/zhongxin/manager/service/impl/TblUserServiceImpl.java | UTF-8 | 521 | 1.5 | 2 | [] | no_license | package com.zhongxin.manager.service.impl;
import com.zhongxin.manager.entity.TblUser;
import com.zhongxin.manager.mapper.TblUserMapper;
import com.zhongxin.manager.service.ITblUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
*... | true |
a069e46348a24b06c8c674333a81ded932f59e89 | Java | PolitePeoplePlan/backdoored | /com/google/api/client/util/Clock.java | UTF-8 | 336 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.google.api.client.util;
public interface Clock
{
public static final Clock SYSTEM = new Clock() {
Clock$1() {
super();
}
@Override
public long currentTimeMillis() {
return System.currentTimeMillis();
}
};
long current... | true |
7cd4d9a9557ca927d04390952c1c7e7883c580e6 | Java | ucloud/ufile-sdk-java | /ufile/ufile-core/src/main/java/cn/ucloud/ufile/http/request/body/UploadRequestBody.java | UTF-8 | 7,230 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package cn.ucloud.ufile.http.request.body;
import cn.ucloud.ufile.UfileConstants;
import cn.ucloud.ufile.http.OnProgressListener;
import cn.ucloud.ufile.http.ProgressConfig;
import cn.ucloud.ufile.util.FileUtil;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okio.BufferedSink;
import okio.Source;
import... | true |
7d995ad03f07cc1bc3c447d2225aa12ff4349fb3 | Java | JackChan1999/boohee_v5.6 | /src/main/java/com/meiqia/meiqiasdk/util/MQChatAdapter.java | UTF-8 | 31,742 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | package com.meiqia.meiqiasdk.util;
import android.graphics.drawable.AnimationDrawable;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import... | true |
0efd57ac4dcadb46e375c06b54ba2a8d1d2c63fd | Java | sauravomar/Java-code | /src/hackerrank/LevenshetienDistance.java | UTF-8 | 617 | 3.1875 | 3 | [] | no_license | package com.ril.slot;
public class LevenshetienDistance {
public static int calculate(String from, String to) {
if (from.equals(to))
return 0;
if(from.length() == 0) return to.length();
if(to.length() == 0) return from.length();
if (from.charAt(0) == to.charAt(0))
return calculate(from.substring(1... | true |
903bc330aa14f8271e17b839f13b1f762afbefba | Java | ParanoidUser/codewars-handbook | /kata/retired/open-a-weak-chest/main/Burglar.java | UTF-8 | 361 | 2.84375 | 3 | [
"MIT"
] | permissive | import java.util.function.IntConsumer;
class Burglar {
WeakChest lockpick(WeakChest chest) {
IntConsumer pick = pin -> {
try {
chest.openChest(pin);
} catch (Exception invalid) {
// invalid code
}
};
for (int pin = 0; !chest.isOpen() && pin < 1000; pin++) {
pick.a... | true |
11dd6229c604011396ab39f3b03d61bef75e77d6 | Java | carlosnsilva/codigo-voluntario-backend | /src/main/java/com/projeto/codigovoluntario/service/usuarioService.java | UTF-8 | 1,569 | 2.125 | 2 | [] | no_license | package com.projeto.codigovoluntario.service;
import com.projeto.codigovoluntario.controller.repositorios.usuarioRepositorio;
import com.projeto.codigovoluntario.model.Usuario;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Servic... | true |
1b67299ece4a971202f257f7084a095138ba54e7 | Java | EllisLevine/RobotCodeTest | /src/org/usfirst/frc/team86/robot/Shooter.java | UTF-8 | 1,531 | 2.984375 | 3 | [] | no_license | package org.usfirst.frc.team86.robot;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
public class Shooter {
// Instance variables
private Victor shooter;
private Victor conveyor;
private Victor agitator;
private Victor vibrator;
private Victor snorfler;
// Joysti... | true |
7f98c4b02034793e2e7ea6ab410f881920685165 | Java | stuckless/sagetv-phoenix-core | /src/main/java/sagex/phoenix/db/AndFilter.java | UTF-8 | 605 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package sagex.phoenix.db;
import sagex.phoenix.util.Pair;
import sagex.phoenix.vfs.IMediaResource;
import sagex.phoenix.vfs.filters.IResourceFilter;
public class AndFilter extends Pair<IResourceFilter, IResourceFilter> implements IResourceFilter {
public AndFilter() {
super();
}
public AndFilter(... | true |
f7b3f9c14b6bef2da0fc2f071e6fd6cd5ae91954 | Java | nishantautomationlabs/interview-problems | /src/main/java/com/nal/leetcode/tree/BinaryTreeMaximumPathSum.java | UTF-8 | 1,149 | 3.71875 | 4 | [] | no_license | package com.nal.leetcode.tree;
/**
* Created by nishant on 28/03/20.
* 124. Binary Tree Maximum Path Sum
* Given a non-empty binary tree, find the maximum path sum.
* For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child connections. The... | true |
11b51d8061f3da5b8112fec47f827fe66006dbac | Java | lmtree13/oms-trade | /oms-trade-dto/src/main/java/com/baize/oms/dto/OrderInvDto.java | UTF-8 | 806 | 2.046875 | 2 | [] | no_license | package com.baize.oms.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author quleiming
* @version 1.0
* @date 2021/7/21 9:36
**/
@Data
public class OrderInvDto {
@ApiModelProperty(value = "买家税号")
private String taxpayerId;
@ApiModelProperty(value = "抬头类型:personal 个人,e... | true |
817ae4245de59745a1c6a1101e532d1bd837fcc5 | Java | fcu-d0223470/exit_project | /app/src/main/java/jacky/androidprogram/Database/DBHandler.java | UTF-8 | 61,560 | 1.84375 | 2 | [] | no_license | package jacky.androidprogram.Database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.text.SimpleDateFormat;
import java.util.Arra... | true |
8e1627eb515dc6df876ca7441b088c09d472af99 | Java | mrthlinh/TypeResolution_Oracle | /src/hibernate/hibernate_class_38.java | UTF-8 | 545 | 2.09375 | 2 | [] | no_license | package hibernate;
//ID = 3556392
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
public class hibernate_class_38 {
public static void main(String... args) {
SessionFactory sessionFact = new Configuration().config... | true |
f2f8a3bac4c68e847e10700b5fa87ff3e26775e6 | Java | xiangruyimobuliaoq/qycode | /app/src/main/java/com/nst/qycode/ui/RoomActivity.java | UTF-8 | 15,105 | 1.640625 | 2 | [] | no_license | package com.nst.qycode.ui;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageButton;
import android.wi... | true |
0e362c5cabdeb71284781706842a905d83085f7f | Java | sloiza/Taller2 | /app/src/main/java/tp/taller2/udrive/LogOutDialogFragment.java | UTF-8 | 2,524 | 2.765625 | 3 | [] | no_license | package tp.taller2.udrive;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.app.DialogFragment;
import android.app.AlertDialog;
public class LogOutDialogFragment extends DialogFragment {
@Override
public Dialog onCreateDia... | true |
eaac96c345f0a0382fcfd3f9dc2c97cf2636003a | Java | feiout/l2r | /src/main/java/com/l2r/exceptions/ContactExistException.java | UTF-8 | 444 | 2.1875 | 2 | [] | no_license | package com.l2r.exceptions;
import org.springframework.http.HttpStatus;
public class ContactExistException extends ResourceException{
private static final long serialVersionUID = -754592641316815578L;
public ContactExistException(){
this.message = "联系人重复,请查询后处理!";
}
@Override
public HttpStatus getHttpStatu... | true |
efe810f5803a2ee3f10b85111c012b429ad45d73 | Java | tanzhenqiGit/Be_01 | /project/DanDan/src/com/example/contents/five/intent/SecondActivity.java | GB18030 | 1,801 | 2.296875 | 2 | [] | no_license | /**
* Copyright 2014 Tan_ZhenQi's Studio
* All right reserved.
* Create on 2014-12-15
*
* @author author E-mail:tan_zhenqi@163.com
* @version create time : 2014-12-15 2:35:02
* @class SecondActivity.java
*/
package com.example.contents.five.intent;
import java.util.Set;
import com.example.dandan.R;
import android... | true |
e17c9aa007b4820d3c8232914a4406b45e7d8138 | Java | SDNTeam/DevAutomation_smoke | /src/test/java/icix/Tests/TC9675_Test.java | ISO-8859-1 | 1,059 | 2.25 | 2 | [] | no_license | package icix.Tests;
import java.lang.reflect.Method;
import org.testng.annotations.Test;
import icix.Modules.DocumentLibrary;
import icix.Modules.LoginOut;
import icix.TestData.DocumentLibraryTestData;
import icix.TestData.LoginOutTestData;
import icix.Utils.ConsoleLog;
import icix.Utils.Log;
import icix.Uti... | true |
d2972bc081c49ce7bff0f41ecfad0e321644ad08 | Java | Arasefe/OCAPREP | /src/_27Exceptions/CheckedExceptions/Exception1.java | UTF-8 | 484 | 3.71875 | 4 | [] | no_license | package _27Exceptions.CheckedExceptions;
public class Exception1 {
public static void main(String[] args) {
int j=1;
try{
int i=doIt()/(j=2);
System.out.println(i);
}catch(Exception e){
System.out.println("j ="+j);
}
}
public static in... | true |
0cdc6e3f9d62d97edafb890bf6d3eee50a8dc4c0 | Java | Vexatos/complexmachines | /src/minecraft/com/archadia/complexmachines/helper/RestrictedList.java | UTF-8 | 719 | 3.359375 | 3 | [] | no_license | package com.archadia.complexmachines.helper;
import java.util.ArrayList;
/**
* @author Archadia
*
*/
public class RestrictedList<K> {
private ArrayList<K> list;
private int sizeLimit;
public RestrictedList(int size) {
sizeLimit = size;
}
public ArrayList<K> getList() {
return list;
}
public void ... | true |
02f1e26a846eec99fbfc17d848806d2e33779f88 | Java | subhasett/todo-app | /src/main/java/com/subha/test/repository/TodoRepository.java | UTF-8 | 269 | 1.742188 | 2 | [] | no_license | package com.subha.test.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.subha.test.model.Todo;
public interface TodoRepository extends JpaRepository<Todo,Integer>{
List<Todo> findByUser(String user);
}
| true |
3493bda3be2bd21a33c1e062bdeebea2313c75d7 | Java | supachawal/JavaProgramming | /numbercruncher/program5_2/RegulaFalsiApplet.java | UTF-8 | 490 | 2.5625 | 3 | [] | no_license | package numbercruncher.program5_2;
import numbercruncher.graphutils.DemoApplet;
/**
* PROGRAM 5-2a: Regula Falsi Algorithm (Interactive Applet)
*
* Interactively demonstrate the Regula Falsi Algorithm on various
* functions. Either single-step or let the program automatically
* step once each half second.
*/
p... | true |
f40e68d96e2db32bcb4b96b399da043e00c0a080 | Java | msoftteam/KVC-ICT | /app/src/main/java/app/kvc/fragments/AccountFragment.java | UTF-8 | 1,052 | 1.851563 | 2 | [] | no_license | package app.kvc.fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import app.kvc.kvc_ict.R;
/**
* Created by DSOFT on 6/22/2017 AD.
*/
... | true |
f525b2c5f549aee5a9bee216a2446016a1761308 | Java | sbanik76/java-sdk | /yodlee-java-sdk/src/test/java/com/yodlee/sdk/test/saml/StatementsApiSdkSamlTest.java | UTF-8 | 1,035 | 1.734375 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
*
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
package com.yodlee.sdk.test.saml;
import org.databene.benerator.anno.Source;
import org.testng.annotations.Test;
import com.yodlee.sdk.api.StatementsApi;
i... | true |
74b40d6d0926a8d6da326f4fb2e5fcf1e43ea7c1 | Java | Den-Jun/PC_MALL | /mall-Provider-api/provider-tpc-api/src/main/java/com/junbaobao/service/PcTpcMqResendLogService.java | UTF-8 | 422 | 1.6875 | 2 | [] | no_license | package com.junbaobao.service;
import com.junbaobao.model.PcTpcMqResendLog;
public interface PcTpcMqResendLogService{
int deleteByPrimaryKey(Long id);
int insert(PcTpcMqResendLog record);
int insertSelective(PcTpcMqResendLog record);
PcTpcMqResendLog selectByPrimaryKey(Long id);
int updateByP... | true |
45ebb5395eb6056aeebb6a7a4915d95cec3c7e15 | Java | youweixue/RipplePower | /eclipse/libs_src/org/ripple/bouncycastle/crypto/generators/DSTU4145KeyPairGenerator.java | UTF-8 | 721 | 2.171875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | package org.ripple.bouncycastle.crypto.generators;
import org.ripple.bouncycastle.crypto.AsymmetricCipherKeyPair;
import org.ripple.bouncycastle.crypto.params.ECPrivateKeyParameters;
import org.ripple.bouncycastle.crypto.params.ECPublicKeyParameters;
public class DSTU4145KeyPairGenerator extends ECKeyPairGenerator {
... | true |
bca055c75fcc2da8e130cfd0b64e56802edea30f | Java | IvanAlfredo/SistemasDistribuidos | /src/utilidades/Fmt.java | UTF-8 | 5,555 | 2.6875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package utilidades;
import static java.awt.Frame.MAXIMIZED_BOTH;
import static java.awt.Frame.MAXIMIZED_HORIZ;
import static java.awt.Frame.MAXIMIZED_VERT;
import java.awt.Toolkit;
import java.text.DecimalFormat;
impor... | true |
e87bcd89dc5e86455f36a60a0a58715e9560727b | Java | pengxiansen/NineNineBrothers | /app/src/main/java/com/messoft/gzmy/nineninebrothers/ui/login/ResetPswActivity.java | UTF-8 | 3,106 | 2.234375 | 2 | [] | no_license | package com.messoft.gzmy.nineninebrothers.ui.login;
import android.os.Bundle;
import android.view.View;
import com.messoft.gzmy.nineninebrothers.R;
import com.messoft.gzmy.nineninebrothers.base.BaseActivity;
import com.messoft.gzmy.nineninebrothers.databinding.ActivityResetPswBinding;
import com.messoft.gzmy.ninenine... | true |