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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
50bcaceaa89392064771c0cf61ad0ecb14561ba4 | Java | scut-west/spring-cloud-study | /microservice-simple-consumer-movie/src/main/java/com/itmuch/cloud/microservicesimpleconsumermovie/feign/FeignClientFallback.java | UTF-8 | 510 | 2.09375 | 2 | [] | no_license | package com.itmuch.cloud.microservicesimpleconsumermovie.feign;
import com.itmuch.cloud.microservicesimpleconsumermovie.entity.User;
import com.itmuch.cloud.microservicesimpleconsumermovie.feign.UserFeignClient;
import org.springframework.stereotype.Component;
@Component
public class FeignClientFallback implements Us... | true |
a1222b51ca0206bb69b1ca4ceb2fb0a9b3794c26 | Java | DuyguKeskek/Yoloo | /app/src/main/java/com/yoloo/android/data/repository/post/PostResponseTransformer.java | UTF-8 | 1,181 | 2.15625 | 2 | [] | no_license | package com.yoloo.android.data.repository.post;
import com.annimon.stream.Stream;
import com.yoloo.android.data.Response;
import com.yoloo.android.data.model.PostRealm;
import com.yoloo.backend.yolooApi.model.CollectionResponsePostEntity;
import io.reactivex.Observable;
import io.reactivex.ObservableSource;
import io.... | true |
21ca822aa6a2fd50e1b1b5bcf120d91407a8c275 | Java | iatulrai/DataCenter | /Student/src/com/work/SAction.java | UTF-8 | 3,156 | 2.09375 | 2 | [] | no_license | package com.work;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class SAction extends ActionSupport {
/**
*
*/
... | true |
35523bd0c2bcc448952e135b9e247aaedbc8585e | Java | ceeck65/puppyapp | /app/src/main/java/io/github/ceeck65/android/pyppysApp/Picasso/PicassoClient.java | UTF-8 | 661 | 2.265625 | 2 | [] | no_license | package io.github.ceeck65.android.pyppysApp.Picasso;
import android.content.Context;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
import io.github.ceeck65.android.pyppysApp.R;
/**
* Created by mariofernandez on 8/8/16.
*/
public class PicassoClient {
public static void loadPicasso(C... | true |
eaecc110ef3217c8798893352c2b6b2f4c6718d2 | Java | evstpetr/SystemInfoServer | /src/ru/pes/systeminfoserver/object/SoftInformation.java | UTF-8 | 937 | 2.609375 | 3 | [] | no_license | package ru.pes.systeminfoserver.object;
import java.io.Serializable;
import java.util.ArrayList;
public class SoftInformation implements Serializable{
private ArrayList<String> SOFT;
private ArrayList<String> SOFT86;
public SoftInformation(ArrayList<String> SOFT, ArrayList<String> SOFT86... | true |
2b0bc88daae9d323fe3e3e83ae84193e7dfb7c88 | Java | IvanS63/angular-spring-security-app | /userapp-backend/src/main/java/com/myapp/userapp/config/WebAppInitializer.java | UTF-8 | 1,445 | 2.140625 | 2 | [] | no_license | package com.myapp.userapp.config;
import org.springframework.web.filter.CharacterEncodingFilter;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import javax.servlet.Filter;
/**
* Represents DispatcherServlet configuration
*/
public class WebAppInitializer exte... | true |
a32f98903b26f497104255f6b1510669d2d1ca0d | Java | swanzai/ColourPlayer | /src/data/PropertiesLoader.java | UTF-8 | 2,057 | 2.53125 | 3 | [] | no_license | /* Copyright (C) 2006 Michael Voong
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope th... | true |
36ce162b2fbdaadd9efb4f65ff08ab264d2b150e | Java | EUBD/SSV | /src/main/java/Deobfuscator/Deobfuskator.java | UTF-8 | 4,501 | 2.515625 | 3 | [] | no_license | package Deobfuscator;
public class Deobfuskator implements IDeobfuskator,IContextDeobfuscator {
StringBuilder beforeDeobfuscatetext;
private StringBuilder deobfuscatetext;
//String[] _IGNORE_SUMBOL = {};
String[] _LITERAL_NAMES = { "[", "]", "(", ")", "{", "}", ";", ",",
"... | true |
d394030355362cab4675180242ca695b4a188f4e | Java | ondersh/simple-cinema-automation | /src/com/yjs3508/framework/data/StatementTask.java | UTF-8 | 195 | 2.03125 | 2 | [] | no_license | package com.yjs3508.framework.data;
import java.sql.SQLException;
import java.sql.Statement;
public interface StatementTask<E> {
E doInStatement(Statement statement) throws SQLException;
}
| true |
f37d0555966e1ffa55438cf2748fe54620ec19db | Java | Nukkit-coders/MobPlugin | /src/main/java/nukkitcoders/mobplugin/entities/animal/WalkingAnimal.java | UTF-8 | 2,297 | 2.640625 | 3 | [] | no_license | package nukkitcoders.mobplugin.entities.animal;
import cn.nukkit.Player;
import cn.nukkit.event.entity.EntityDamageEvent;
import cn.nukkit.level.format.FullChunk;
import cn.nukkit.math.Vector3;
import cn.nukkit.nbt.tag.CompoundTag;
import nukkitcoders.mobplugin.entities.WalkingEntity;
import nukkitcoders.mobpl... | true |
be16c8a7ab556d325f9a7a5e90a9148b7a667e5c | Java | SilverNarcissus/CreckingInterviewPractice | /src/main/java/bit_manipulation/DoubleToBinary.java | UTF-8 | 1,022 | 4.4375 | 4 | [] | no_license | package bit_manipulation;
//Binary to String: Given a real number between 0 and 1 (e.g., 0.72) that is passed in as a double, print the binary representation.
// If the number cannot be represented accurately in binary with at most 32 characters, print"ERROR:'
public class DoubleToBinary {
public static void main(S... | true |
7964d172a2e415a3ab2d7a5fcf7c6f83af5a203b | Java | zengfanyu/NiubilityVideoPlayer | /app/src/main/java/com/project/fanyuzeng/niubilityvideoplayer/activity/FavoriteActivity.java | UTF-8 | 6,526 | 1.828125 | 2 | [] | no_license | package com.project.fanyuzeng.niubilityvideoplayer.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.Menu;
import android.view.MenuItem;
import android.vi... | true |
5c852ef331bcb55cd1ac68daed4c6226920e1b67 | Java | fabriceci/cms-model | /src/main/java/be/fcip/cms/validator/FilesTotalSizeValidator.java | UTF-8 | 864 | 2.359375 | 2 | [] | no_license | package be.fcip.cms.validator;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class FilesTotalSizeValidator implements ConstraintValidator<FilesTotalSize, MultipartFile[]> {
private long max;
pr... | true |
7f6d05671d8ce8f197fa0a9d214a5fd9f9dd4cc3 | Java | vuchkov/onedev | /server-core/src/main/java/io/onedev/server/web/component/commit/graph/CommitGraphResourceReference.java | UTF-8 | 1,052 | 1.898438 | 2 | [
"MIT"
] | permissive | package io.onedev.server.web.component.commit.graph;
import java.util.List;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.CssResourceReference;
import io.onedev.... | true |
2f636c80f207fc2b9640a8368e6945294c1fb82c | Java | leandroZanatta/Lar | /lar-server/src/main/java/br/com/lar/server/repository/domain/Usuario.java | UTF-8 | 1,445 | 2.015625 | 2 | [] | no_license | package br.com.lar.server.repository.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import ... | true |
7669fb7b2665a861a7b2029be3c9617b7e260c98 | Java | Land-Fairy/ssm_mall | /src/main/java/com/mmall/service/impl/CategoryServiceImpl.java | UTF-8 | 3,624 | 2.515625 | 3 | [] | no_license | package com.mmall.service.impl;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.mmall.common.ServerResponse;
import com.mmall.dao.CategoryMapper;
import com.mmall.pojo.Category;
import com.mmall.service.ICategoryService;
import lombok.extern.slf4j.Slf4j;
import org.apache.comm... | true |
ea8b7530d4a8b7a33a4627d47f4ac9aac4834983 | Java | zaijua/InterfazPFC | /template_ugr/src/es/ugr/template_ugr/Tablas.java | ISO-8859-10 | 14,426 | 1.953125 | 2 | [] | no_license | package es.ugr.template_ugr;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.StringTokenizer;
import org.achartengine.... | true |
aef5321e4399b49d9fe6b0fc8288f52c195ab1bc | Java | heqiyoujing/SpringBootD | /src/main/java/spring/boot/com/ImplemtntAndAbstract/ContractBeihang.java | UTF-8 | 128 | 1.984375 | 2 | [] | no_license | package spring.boot.com.ImplemtntAndAbstract;
/**
* 接口
*/
public interface ContractBeihang {
void scriptBeihang();
}
| true |
d403bb17c6a377a64fbab4ca3a9e7809b1c6362f | Java | shangriDong/DialogTest | /app/src/main/java/com/dqs/shangri/dialogtest/IMBasicDialog.java | UTF-8 | 6,698 | 2.09375 | 2 | [] | no_license | package com.dqs.shangri.dialogtest;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
/**
* Created by Shangri on 5/5/2016.
... | true |
64a2e3891d86c3c4b101a3ef6172eb35ecbb096b | Java | He1md4ll/LaskaKiTester | /src/controller/StatisiticsController.java | UTF-8 | 4,240 | 2.71875 | 3 | [] | no_license | package controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.google.common.eventbus.Subscribe;
import entities.Player;
import entities.PlayerList;
import event.MatchEndedEvent;
import event.MatchErrorEvent;
import ev... | true |
d53f8ff75f8615ef7a48ce4ecb1b052d499a5164 | Java | cvdat2097/tidi-BE | /src/main/java/tuan/tidi/entity/Discount.java | UTF-8 | 1,420 | 2.1875 | 2 | [] | no_license | package tuan.tidi.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(name = "discount")
public class Discount {
@Id
... | true |
f1de8a784a8ee24cbb2cc56562e556f921275405 | Java | filif123/Shopking | /src/sk/shopking/controllers/CFXMLUsers.java | UTF-8 | 9,436 | 2.171875 | 2 | [] | no_license | package sk.shopking.controllers;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import java... | true |
62b68e0d937b0503b42753955ca07cd9fedbd933 | Java | saswata-dutta/modern-synchronizers | /src/eu/javaspecialists/concurrent/playground/varhandles/Position.java | UTF-8 | 669 | 2.75 | 3 | [] | no_license | /*
* This class forms part of the Thread Safety with Phaser,
* StampedLock and VarHandle Talk by Dr Heinz Kabutz from
* JavaSpecialists.eu and may not be distributed without written
* consent.
*
* (C)opyright 2020 Heinz Max Kabutz, All rights reserved.
*/
package eu.javaspecialists.concurrent.playground.varhand... | true |
c09d9af5f9053f85cac1bafab19cbf451a32543d | Java | arr15334/hdt6_JCF | /hdt6/test/OperacionesTest.java | UTF-8 | 1,564 | 2.859375 | 3 | [] | no_license | /*
*solo se prueba el metodo isSubconjunto para hacer el profiler del metodo
*/
import java.util.ArrayList;
import java.util.Set;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
... | true |
717287b418c6b3ee557c711a8f6b9a3459f38cea | Java | 191118javaExt/project-0-stefanimarieangel | /src/main/java/com/revature/models/Employee.java | UTF-8 | 2,231 | 2.671875 | 3 | [] | no_license | package com.revature.models;
import java.util.Objects;
public class Employee {
private int userId;
private String userFirstName;
private String userLastName;
private String password;
private String email;
private boolean isAdmin;
public int getUserId() {
return userId;
}
public void setUserId(int userId)... | true |
0771528caa9f215ac7c91cf1acad4b2b7babcc12 | Java | moutainhigh/jkzx1 | /core/src/main/java/tech/tongyu/bct/client/dto/AccountDTO.java | UTF-8 | 7,341 | 2.046875 | 2 | [] | no_license | package tech.tongyu.bct.client.dto;
import tech.tongyu.bct.common.api.doc.BctField;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
public class AccountDTO {
@BctField(description = "账户编号")
private String accountId; // 账户ID
@BctField(description = "交易对手")
... | true |
6db911260fc680b8f99b3d9230cb1ee4303a45a3 | Java | b00lduck/jbdd | /com.nigames.jbdd.rest.service/src/main/java/com/nigames/jbdd/service/config/ApplicationConfig.java | UTF-8 | 1,426 | 1.75 | 2 | [] | no_license | package com.nigames.jbdd.service.config;
import com.nigames.jbdd.service.config.dev.CreateDefaultUsersConfig;
import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.ann... | true |
f05b7c588aeed27e4c8f8a050f49c323b642d464 | Java | ferGainey/aydoo2016 | /ejercicio_libreria/src/test/java/ar/edu/untref/aydoo/ArticuloDeLibreriaTest.java | UTF-8 | 907 | 2.8125 | 3 | [] | no_license | package ar.edu.untref.aydoo;
import org.junit.Test;
import junit.framework.Assert;
@SuppressWarnings("deprecation")
public class ArticuloDeLibreriaTest {
@Test
public void ponerNombreAlArticuloDeLibreria(){
ArticuloDeLibreria miArticuloDeLibreria = new ArticuloDeLibreria("Plasticola");
Assert.assertEquals("Pl... | true |
176de15b177829f3e442be7092dd1fbe9bc5e991 | Java | thombergs/code-examples | /mockito/src/main/java/org/example/silenum/mockito/domain/entity/Canton.java | UTF-8 | 2,187 | 2.75 | 3 | [
"MIT"
] | permissive | package org.example.silenum.mockito.domain.entity;
import java.util.Set;
public class Canton extends BaseDomain {
private final String name;
private final String abbreviation;
private final Country country;
private final Set<City> cities;
private Canton(Builder builder) {
super(builder);... | true |
ab4dbd3612f96111f871a117cf3ea36570a4cf09 | Java | benbabic/SimpleWanda | /src/fr/irit/wanda/servlet/Create.java | ISO-8859-1 | 12,729 | 1.976563 | 2 | [] | no_license | package fr.irit.wanda.servlet;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import jav... | true |
27aefc57e0628b8a2c99580a606a9219ea833ef7 | Java | jmp2196jmp/Java_Projects | /basicsj/src/mark/Average.java | UTF-8 | 503 | 3.140625 | 3 | [] | no_license | package mark;
import java.util.Scanner;
public class Average {
public static void main(String[] args) {
int lim,i,sum=0,av;
int []h = new int[10];
Scanner hs=new Scanner(System.in);
System.out.println("enter the number of students");
lim=hs.nextInt();
System.out.println("enter the marks of s... | true |
19ad9748dbfdbfc1de6976e493478040bf291660 | Java | mattunderscorechampion/tree-root | /trees-spi/src/test/java/com/mattunderscore/trees/spi/impl/AbstractNodeToRelatedTreeConverterTest.java | UTF-8 | 5,548 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive | /* Copyright © 2015 Matthew Champion
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 the follow... | true |
fa7371f86efde05b9024f14fc674efec62708b20 | Java | moutainhigh/mall-3 | /mall-dev-d102cfc1eecc5dccc4721ec4176eda35cc67dabf/mall-common/src/main/java/com/youmu/common/alipay/utils/AliPayUtils.java | UTF-8 | 8,922 | 2.140625 | 2 | [] | no_license | /**
* youmu Service Inc
* All Rights Reserved @2017
*
*/
package com.youmu.common.alipay.utils;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRe... | true |
4682eb58a2576277bb0fbde37fce88e8892faa84 | Java | paul566576/office | /src/main/java/aimprosoft/departments/model/Employer.java | UTF-8 | 2,040 | 3.0625 | 3 | [] | no_license | package aimprosoft.departments.model;
import java.util.Date;
import java.util.Objects;
public class Employer {
private int id;
private String name;
private int depId;
private String email;
private Date employedAt;
public Employer() {}
public Employer(int id, String name, int depId, Stri... | true |
98d06824eded10b91d86eb827d4a5aab8990cffc | Java | SunAlwaysOnline/LeetCode | /src/leetcode/medium/phase14/Number1372.java | UTF-8 | 2,812 | 3.5625 | 4 | [] | no_license | package leetcode.medium.phase14;
import datastructure.BinaryTree;
import method.Classic;
import method.DP;
/**
* @author qcy
* @create 2021/03/09 16:00:02
* 1372. 二叉树中的最长交错路径
*
* 给你一棵以 root 为根的二叉树,二叉树中的交错路径定义如下:
*
* 选择二叉树中 任意 节点和一个方向(左或者右)。
* 如果前进方向为右,那么移动到当前节点的的右子节点,否则移动到它的左子节点。
* 改变前进方向:左变右或者右变左。
* 重复第二步和... | true |
884427f7e684e5ff9ee7370723c37d3ffd95db54 | Java | mac-kenz0/java-practice | /course/tutorial3/tutorial22/src/tutorial22/App.java | UTF-8 | 712 | 3.5 | 4 | [] | no_license | package tutorial22;
class Machine{
private String name;
private int code;
/* the name of your constructor has to be the same as your class*/
public Machine() {
name = "Ann";
System.out.println(name);
System.out.println();
}
public Machine (String name){
this.name = name;
System.out.println("second cons... | true |
c649e8bea904964ab3e9d6ad4b91312fc264009d | Java | shado90/snapshotapp | /main/com/snapshot/mongoconnection/Document/AccountDocument.java | UTF-8 | 1,898 | 2.328125 | 2 | [] | no_license | package com.snapshot.mongoconnection.Document;
import static com.mongodb.client.model.Filters.eq;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import org.bson.Document;
import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCollection;
import com.mongodb.client... | true |
0e186ca5a51a895297bc665c2c1089dff3252800 | Java | bmshejwal/simpleaopexample | /src/main/java/com/examples/com/student/StudentServiceImpl.java | UTF-8 | 511 | 2.234375 | 2 | [] | no_license | package com.examples.com.student;
import com.examples.com.employee.Employee;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
@Service
public class StudentServiceImpl implements StudentService {
private Map<Long, Employee> students = new HashMap<Long, Employee>();
... | true |
2cb5b9e41a57c4c0b1050ff9a7bad5ee844ae8c5 | Java | Balamsd7/crudoperations | /cts-training/flight-booking/src/main/java/com/balamsd7/flightbooking/service/AirlineService.java | UTF-8 | 7,004 | 2.40625 | 2 | [] | no_license | package com.balamsd7.flightbooking.service;
import com.balamsd7.flightbooking.Exception.BusinessException;
import com.balamsd7.flightbooking.dto.AirlineDto;
import com.balamsd7.flightbooking.dto.ResponseDataDto;
import com.balamsd7.flightbooking.model.Airline;
import com.balamsd7.flightbooking.repository.Airline... | true |
f090b94e02648864afabdc26dfb88b323698bea1 | Java | gaoinsh/majorSpider | /src/main/java/com/spider/common/utils/ItemProcessor.java | UTF-8 | 202 | 1.53125 | 2 | [] | no_license | package com.spider.common.utils;
import java.util.List;
/**
* Created by xiang.gao on 2017/5/17.
* project majorSpider
*/
public interface ItemProcessor<T> {
void doInProcess(List<T> list);
}
| true |
9b02eebc73bb4223caa848bbc00d62adb46f90d0 | Java | hjy30312/rbmall | /src/main/java/qy/rb/domain/Employee.java | UTF-8 | 2,063 | 2.5 | 2 | [] | no_license | package qy.rb.domain;
/**
* 雇员表
* @author hjy
* @create 2018/01/22
**/
public class Employee {
private String employeeID;
private String employeeName;
private String employeeType;
private String employeeLoginName;
private String employeePassword;
private String employeeRemark;
@Override
public String to... | true |
587451aa09c60e35dbd9783f699256fe671b1e73 | Java | turlygazhy/jerserWS-example | /src/main/java/kz/stock/StockResource.java | UTF-8 | 674 | 2.390625 | 2 | [] | no_license | package kz.stock;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.ArrayList;
import java.util.List;
@Path("stock")
public class StockResource {
@GET
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public ... | true |
33a83b798604295029d48f441ee6aae69e84c9bc | Java | RealMichael/MKS21X | /04ReversedCharSequence/ReversedCharSequence.java | UTF-8 | 603 | 3.453125 | 3 | [] | no_license | public class ReversedCharSequence implements CharSequence{
private String data;
public ReversedCharSequence(String s){
data = s;
String data2 = "";
for(int i = data.length() - 1;i >= 0; i--){
data2 += data.charAt(i);
}
data = data2;
}
public char charAt(int index){
return data.charAt(index);
... | true |
0dcca1988b79a2e7f285dd7239ebc4329036e179 | Java | PowerStat/Validation | /src/test/java/de/powerstat/validation/values/test/PostalCodeTests.java | UTF-8 | 6,859 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020-2022 Dipl.-Inform. Kai Hofmann. All rights reserved!
*/
package de.powerstat.validation.values.test;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import stati... | true |
a929853386b6b261c16a8233fa98a69ab4843441 | Java | mosmant/JavaStudyHalUk | /JavaStudyHalUk/src/MENTORING/ExecutionOrder/ExecutionOrder2.java | UTF-8 | 421 | 3.15625 | 3 | [] | no_license | package MENTORING.ExecutionOrder;
public class ExecutionOrder2 {
static{
System.out.println("Hello this is a static block");
}
ExecutionOrder2(){
System.out.println("Hello this a constructor");
}
public static void demo() {
System.out.println("Hello this is an instance metho... | true |
d250f0a1c3fd1f02a6c7595121c5d4baaa08323f | Java | nrg-dev/stumosys | /src/main/java/com/stumosys/managedBean/StudentPerformanceMB.java | UTF-8 | 40,841 | 1.703125 | 2 | [] | no_license | package com.stumosys.managedBean;
//import java.awt.Desktop;
//import java.io.File;
//import java.io.FileOutputStream;
//import java.io.OutputStream;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
//import java.util.Arrays;
import java.util.Date;
import java.util.List;
//i... | true |
a24675129fa04a510dcf1be019f1bee566479a58 | Java | fedefrappi/MontePacMan | /src/mcts/TreeNode.java | UTF-8 | 3,812 | 2.765625 | 3 | [] | no_license | package mcts;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import controllers.examples.LegacyTeam;
import controllers.examples.RandomMsPacMan;
import controllers.examples.RandomNonReverseMsPacMan;
import controllers.examples.RandomSemiNonReverseMsPacMan;
import core.Game;
i... | true |
d6f24a4a53fcab421210593481f25f5126f4a6c3 | Java | ChenChain/blogsite | /src/main/java/com/chain/blog/service/user/UserService.java | UTF-8 | 241 | 1.820313 | 2 | [] | no_license | package com.chain.blog.service.user;
import com.chain.blog.entity.User;
import org.springframework.stereotype.Service;
@Service
public interface UserService {
User checkUser(String username, String password);
User checkUser();
}
| true |
12cce44c393dd99aa1b0b69eb788f123f968f914 | Java | fischerfel/TUM-Crypto | /data/cipher/insecure/Snippet10012918_34377.java | UTF-8 | 2,219 | 2.875 | 3 | [] | no_license | static Cipher createCipher(int mode, String password) throws Exception {
PBEKeySpec keySpec = new PBEKeySpec(password.toCharArray());
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
SecretKey key = keyFactory.generateSecret(keySpec);
Messag... | true |
1598fa9236460f5d7f18abebd245dc5ad009827f | Java | indravathikalepalli/WTN5.0 | /Milestone_1/src/com/wipro/mettl/arrays/Mostfrequentdigit.java | UTF-8 | 336 | 2.65625 | 3 | [] | no_license | package com.wipro.mettl.arrays;
public class Mostfrequentdigit {
String s="";
for(int i=0;i<input2;i++){
s=s+String.valueOf(input1[i]);
}
int a[]=new int[10];
for(int i=0;i<s.length();i++){
char c= s.charAt(i);
a[c-'0']++;
}
int c=0;
int f=0;
for(int i=0;i<10;i++){
if(c<=a[i]){
c=a[i];
f=i;
}
... | true |
5abb8733e6281c8c31f92ed7735f7d78ec782b33 | Java | yzhixiang/mobilesafe | /src/com/itheima/mobilesafe/activity/SelectContactActivity.java | GB18030 | 3,062 | 2.40625 | 2 | [] | no_license | package com.itheima.mobilesafe.activity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bund... | true |
1f54744fe6fe629d5dbe76cfaad1a28dd61bb5bb | Java | sky270691/generic-authserver | /src/main/java/com/genericauthserver/entity/Authority.java | UTF-8 | 1,015 | 2.328125 | 2 | [] | no_license | package com.genericauthserver.entity;
import javax.persistence.*;
import java.util.List;
@Entity
public class Authority {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String name;
private String description;
@ManyToMany(mappedBy = "authorityList",cascade ... | true |
de6775cfee5d88f10b76c317aeeab6e604f7595e | Java | HRussellZFAC023/Holborn-Carpark | /holborn-car-park-client/src/main/java/uk/co/holborn/carparkclient/MainAppLauncher.java | UTF-8 | 349 | 2.03125 | 2 | [] | no_license | /*
* Copyright (c) 2019. Ionut-Vlad Alboiu.
*/
package uk.co.holborn.carparkclient;
/**
* Launches the class that opens the main application
* bug: this is a workaround for some javaFX modules bugs
*
* @author Vlad Alboiu
* @version 1.0
*/
public class MainAppLauncher {
public static void main(String[] ar... | true |
5e4bd7568d8c44290561cc8c65571aadbf023c35 | Java | WahyuDecoder/TugasStrategiAlgoritma | /TowerOfHanoi/src/tugas/strategiAlgoritma/towerofhanoi/Pergerakan.java | UTF-8 | 913 | 2.625 | 3 | [] | no_license | package tugas.strategiAlgoritma.towerofhanoi;
/**
* Class Pergerakan
* @author WahyuDecoder dan ZulAzizKhan
*/
public class Pergerakan {
private int jejak;
private int menaraAsal;
private int menaraTujuan;
public Pergerakan(int jejak, int menaraAsal, int menaraTujuan) {
this.j... | true |
577691a12c8c51bf238e7fff34aa0bf3989fecdd | Java | Ochernobas/Sobrecarga_de_metodos | /src/br/com/teste/sobrecarga/Veículos.java | ISO-8859-1 | 574 | 2.796875 | 3 | [] | no_license | package br.com.teste.sobrecarga;
public class Veculos {
UsaVeiculos usa = new UsaVeiculos();
private float vel;
public void Acelerar(Carro carro) {
this.vel = (carro.GetTempo() * 100) / (carro.GetPeso()/10);
UsaVeiculos.EnviarDados(carro, this.vel);
System.out.println("Est usando o metodo do carro")... | true |
dccf881fc2c80da04838313afdf1573cf76ebaef | Java | caidao/JVM-practice | /src/main/java/paner/lambda/demo/Java8Tester.java | UTF-8 | 2,149 | 3.4375 | 3 | [] | no_license | package paner.lambda.demo;
import java.util.ArrayList;
import java.util.List;
/**
* Created by www-data on 17/2/21.
*/
public class Java8Tester {
public static void main(String args[]){
Java8Tester tester = new Java8Tester();
List<String> list = new ArrayList<>();
list.stream();
// ... | true |
1849a79668289867ba683708d20fa9bc0b3f1155 | Java | 1216762130/ssm | /src/main/java/com/zking/ssm/mapper/SysRolePermissonMapper.java | UTF-8 | 212 | 1.71875 | 2 | [] | no_license | package com.zking.ssm.mapper;
import com.zking.ssm.model.SysRolePermisson;
public interface SysRolePermissonMapper {
int insert(SysRolePermisson record);
int insertSelective(SysRolePermisson record);
} | true |
72a33288e46c915ddbb7ee7ed14b02cf6464c35e | Java | kuronosec/vulnfinder | /report generator/src/main/java/edu/udea/vulnfinder/reportGenerator/model/FieldAlert.java | UTF-8 | 3,127 | 2.640625 | 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 edu.udea.vulnfinder.reportGenerator.model;
import com.hp.gagawa.java.elements.A;
import com.hp.gagawa.java.elements.Td;
import... | true |
4faa189c08461f26024034fe9a40541945bb5556 | Java | dim4o/chat-server | /src/main/java/com/dim/chatserver/model/MessageTypeConverter.java | UTF-8 | 440 | 2.328125 | 2 | [] | no_license | package com.dim.chatserver.model;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
/**
* Enables the use of case-insensitive enumerations request parameters
*/
@Component
public class MessageTypeConverter implements Converter<String, MessageType> {
@... | true |
a7ba27607a8252f848f2dd61372a6d391ca3619a | Java | mecury/Test | /app/src/main/java/com/example/test/adapter/FuiAdapter.java | UTF-8 | 3,299 | 2.234375 | 2 | [] | no_license | package com.example.test.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.test.R;
import com.example.test.entity.HelpData;
import java.util.ArrayL... | true |
41c3f98dc6011a0bed1337453c18d218a499cf00 | Java | reines/home | /policy-server-web/src/main/java/com/furnaghan/home/web/config/PolicyServerWebConfiguration.java | UTF-8 | 499 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.furnaghan.home.web.config;
import com.furnaghan.home.policy.config.PolicyServerConfiguration;
import io.dropwizard.Configuration;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
public class PolicyServerWebConfiguration extends Configuration {
@Valid
@NotNull
priv... | true |
b137a5fa065d039b09b3cffc42346de688b60d6b | Java | serkan-ozal/joker | /joker-engine/src/test/java/cs/bilkent/joker/engine/adaptation/impl/bottleneckresolver/RegionExtenderTest.java | UTF-8 | 3,421 | 1.867188 | 2 | [] | no_license | package cs.bilkent.joker.engine.adaptation.impl.bottleneckresolver;
import org.junit.Before;
import org.junit.Test;
import cs.bilkent.joker.engine.adaptation.AdaptationAction;
import cs.bilkent.joker.engine.adaptation.impl.adaptationaction.RegionRebalanceAction;
import cs.bilkent.joker.engine.flow.PipelineId;
import ... | true |
b6d7f002d037083b5b74a6c7fc8fb98c6b691b0f | Java | SaeidKazemi78/Complete-Spring-Security | /src/Notes/repository/CarRfIdRepository.java | UTF-8 | 2,049 | 1.914063 | 2 | [] | no_license | package ir.donyapardaz.niopdc.base.repository;
import ir.donyapardaz.niopdc.base.domain.CarRfId;
import org.javers.spring.annotation.JaversSpringDataAuditable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
imp... | true |
eea9d04daf8fa726cf6c1e5c2f84f22d965392a0 | Java | denzelb5/conference-demo | /src/main/java/com/pluralsightspring/conferencedemo/models/TicketType.java | UTF-8 | 1,283 | 2.1875 | 2 | [] | no_license | package com.pluralsightspring.conferencedemo.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity(name = "ticket_types")
public class TicketType {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)... | true |
36d7d091444a89b75e9e34006fd7fe19f826d2a0 | Java | chiranjiviNeupane/financialServices | /user/src/main/java/com/home/user/repository/UserRepository.java | UTF-8 | 252 | 1.890625 | 2 | [] | no_license | package com.home.user.repository;
import com.home.user.model.UserModel;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<UserModel, Long> {
UserModel findByUserId(Long UserId);
}
| true |
48cedcd88dcf1b84efcd2c44320f536c78d068cc | Java | autolock-anonymous/autolock-benchmark | /benchmarks/src/jomp/sor/SOR.java | UTF-8 | 2,193 | 2.359375 | 2 | [] | no_license | package jomp.sor.withlock;
import jomp.jgfutil.JGFInstrumentor;
import jomp.jgfutil.*;
import top.liebes.anno.Perm;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class SOR {
public static ReentrantReadWriteLock GtotalLock=new ReentrantReadWriteLock();
public static double Gtotal=0.0;
@Perm(requ... | true |
169a77bb62537627b5c71df0b2bf0766a152c9d2 | Java | Hugh940125/InterestingThings | /app/src/main/java/com/example/hugh/interesting/DesignPattern/BuilderPattern/GlassBottle.java | UTF-8 | 233 | 2.453125 | 2 | [] | no_license | package com.example.hugh.interesting.DesignPattern.BuilderPattern;
/**
* Created by Hugh on 2019/7/4.
*/
public class GlassBottle implements Packing {
@Override
public String pack() {
return "GlassBottle";
}
}
| true |
9d922067d42ed097f3931bb712fdd28903dd78c7 | Java | yoelfbt/Feed_Me | /app/src/main/java/com/example/yoelfebryan/feedme/CRUD/DoneActivity.java | UTF-8 | 875 | 2.03125 | 2 | [] | no_license | package com.example.yoelfebryan.feedme.CRUD;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.yoelfebryan.feedme.R;
import com.example.yoelfebryan.feedme.UI.MenuActivity;
public class D... | true |
7824805011a345714c691c02e191b632ca9b1b94 | Java | jurayev/CalculatorUnitTestingJUnit | /src/test/java/kz/epam/unittesting/tests/CtgCalculatorTest.java | UTF-8 | 955 | 2.6875 | 3 | [] | no_license | package kz.epam.unittesting.tests;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
@RunWith(Parameterized.class)
public class CtgCalculatorTest extends BaseTest {
private double a;
p... | true |
39ccefe3d0cde19cc95359ace4e15b04342209b1 | Java | ggzb/ggzb | /AULive/src/main/java/com/ilikezhibo/ggzb/userinfo/mymoney/MyMoneyActivity.java | UTF-8 | 10,444 | 1.757813 | 2 | [] | no_license | package com.ilikezhibo.ggzb.userinfo.mymoney;
import com.ilikezhibo.ggzb.AULiveApplication;
import java.util.ArrayList;
import android.content.Intent;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
... | true |
e06b05e296f490f101b5cd2c4e518add1f308259 | Java | wjymo/ZhenaiSpider | /spider-zhenai/src/test/java/com/wjy/TestEs.java | UTF-8 | 2,799 | 1.960938 | 2 | [] | no_license | package com.wjy;
import com.google.common.collect.Maps;
import com.wjy.entity.UserProfile;
import org.elasticsearch.action.get.GetRequest;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
import org.elastic... | true |
68c5b4c9e297f536daeb6d2b0d06c7edc168c47a | Java | tanggongwen/DouYinWu | /app/src/main/java/com/example/qd/douyinwu/utils/AppManager.java | UTF-8 | 4,744 | 2.625 | 3 | [
"MIT"
] | permissive | package com.example.qd.douyinwu.utils;
import android.app.Activity;
import android.content.Context;
import java.util.Stack;
/**
* activity堆栈式管理
*/
public class AppManager {
private static Stack<Activity> activityStack = new Stack<Activity>();
private static AppManager instance;
private AppManager() {... | true |
40bf63664bc48185e4c96aa026cf8da7f2d9b736 | Java | damilolarandolph/JavaBoy | /src/main/java/JavaBoy/cpu/instructions/Swap.java | UTF-8 | 1,798 | 2.8125 | 3 | [
"MIT"
] | permissive | package JavaBoy.cpu.instructions;
import JavaBoy.cpu.CPU;
import JavaBoy.cpu.REGISTERS;
import JavaBoy.cpu.flags.FLAGS;
import JavaBoy.cpu.registers.RegisterPairs;
import static JavaBoy.utils.BitUtils.getLsn;
import static JavaBoy.utils.BitUtils.getMsn;
public class Swap implements Instruction {
@Override
p... | true |
78fbda8a7442e55eb41656a49cf75fd72013c1c1 | Java | Xuwudong/algo | /src/main/java/com/xwd/list/AddTwoNumbers.java | UTF-8 | 1,378 | 4.15625 | 4 | [] | no_license | package com.xwd.list;
/**
* 2. 两数相加
* 给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。
* <p>
* 如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。
* <p>
* 您可以假设除了数字 0 之外,这两个数都不会以 0 开头。
* <p>
* 示例:
* <p>
* 输入:(2 -> 4 -> 3) + (5 -> 6 -> 4)
* 输出:7 -> 0 -> 8
* 原因:342 + 465 = 807
*/
public class AddTwoNumbers... | true |
01208499b540555a75daaf5d078ac3441679de1a | Java | Avangarde2225/JavaSmallProject | /src/test/java/AbstractConted/EmployeeLogin.java | UTF-8 | 184 | 1.828125 | 2 | [] | no_license | package AbstractConted;
public class EmployeeLogin extends AbstractLogin {
@Override
public void testLogin() {
}
@Override
public void testPassword() {
}
}
| true |
2358f418f6fa0a71f14fa63c9c3f6cfc18100921 | Java | jonneg12/javatdd11 | /src/main/java/ru/netology/CreditCalculator.java | UTF-8 | 1,333 | 3.0625 | 3 | [] | no_license | package ru.netology;
public class CreditCalculator {
private int creditAmount;
private double interestRate;
private int monthsToRepay;
public int getCreditAmount() {
return creditAmount;
}
public void setCreditAmount(int creditAmount) {
this.creditAmount = creditAmount;
}
... | true |
6427bd2f6020236bf2ecb3e8de9a601bb25fd115 | Java | aws/aws-sdk-java | /aws-java-sdk-translate/src/main/java/com/amazonaws/services/translate/model/UnsupportedLanguagePairException.java | UTF-8 | 4,239 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | true |
9e2028fff740c173e05fc6e2573d5d2dd5909d5e | Java | ningshuaichen1991/MyRpc | /src/main/java/com/rpc/v5/Consumer.java | UTF-8 | 544 | 2.203125 | 2 | [] | no_license | package com.rpc.v5;
import com.rpc.common.IOrderService;
import com.rpc.common.Order;
import java.io.IOException;
public class Consumer {
public static void main(String[] args) throws IOException, ClassNotFoundException {
Stub stub = new Stub();
IOrderService service = stub.getStup(IOrderServi... | true |
7943b6fd237c625f1a6345b0191cf1de8d46102c | Java | Letractively/wisematches.temp | /modules/services/src/main/java/billiongoods/server/services/payment/OrderListener.java | UTF-8 | 341 | 1.875 | 2 | [] | no_license | package billiongoods.server.services.payment;
/**
* @author Sergey Klimenko (smklimenko@gmail.com)
*/
public interface OrderListener {
void orderRefund(Order order, String token, double amount);
void orderStateChanged(Order order, OrderState oldState, OrderState newState);
void orderContentChanged(Ord... | true |
da2eea7f08b1d632bdf628cd98cafff3b9b68d04 | Java | ciphereck/omofonia | /app/app/src/main/java/com/ciphereck/omofonia/retrofit/routes/ElectionRoutes.java | UTF-8 | 735 | 1.929688 | 2 | [] | no_license | package com.ciphereck.omofonia.retrofit.routes;
import com.ciphereck.omofonia.model.election.Election;
import com.ciphereck.omofonia.model.request.VoteModel;
import com.ciphereck.omofonia.model.response.ElectionResponseModel;
import com.google.gson.JsonElement;
import java.util.List;
import io.reactivex.rxjava3.core... | true |
7122572466d30c4715581daa9e6a0476e6649d3c | Java | pallavi001/Week3Assignment | /src/com/sapient/shapes/Square.java | UTF-8 | 183 | 2.9375 | 3 | [] | no_license | package com.sapient.shapes;
public class Square {
public void calculateArea(int side)
{
double area=side*side;
System.out.println("The area of the square is "+ area);
}
}
| true |
d959caea009bac4ccf8fe06d57c5f7f5c9498153 | Java | adrianaherrera24/Desktop | /Desktop/src/EditarCursos/EditarControl.java | UTF-8 | 2,304 | 2.40625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package EditarCursos;
import AccesoDatos.GlobalException;
import AccesoDatos.NoDataException;
import Control.Control;
import... | true |
a8be4c5c4704e862d0b5c47e526f278fbca7bdc8 | Java | BhaveshKabra/Bewery-Producer | /src/main/java/org/bhavesh/micro/controller/BeerController.java | UTF-8 | 2,819 | 2.296875 | 2 | [] | no_license | package org.bhavesh.micro.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.validation.Valid;
import org.bhavesh.micro.service.BeerService;
import org.bhavesh.micro.web.bean.Beer;
import org.bhavesh.micro.web.bean.dto.BeerDTO;
import org.springframework.http.HttpHeade... | true |
74c3f9dbd522b0e4e394788871846ca3070ee2e7 | Java | nishaunny/finalsamplecodestackroute | /SpringBoot/favourites/src/main/java/com/ustg/favourites/controller/FavouritesController.java | UTF-8 | 2,949 | 2.40625 | 2 | [] | no_license | package com.ustg.favourites.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.anno... | true |
a7db974a11ccf3ceac79fdf58f3d7dd6e96a7951 | Java | lucassilvas/GigApp | /Gig/app/src/main/java/com/example/lucas/gig/usuarios/Chat.java | UTF-8 | 7,710 | 2.34375 | 2 | [] | no_license | package com.example.lucas.gig.usuarios;
import android.content.Context;
import android.util.Log;
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import co... | true |
1544a13b3f5eadd1e42b92aa2c254f81c8c5fb68 | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/com/tencent/mm/e/b/ak.java | UTF-8 | 3,365 | 1.882813 | 2 | [] | no_license | package com.tencent.mm.e.b;
import android.content.ContentValues;
import android.database.Cursor;
import com.tencent.mm.sdk.h.c;
public abstract class ak extends c {
private static final int bES = "md5".hashCode();
private static final int bEs = "lang".hashCode();
private static final int bFd = "groupId".... | true |
a3006a6ec41d3c89e631e7c60ea06456273a7ed2 | Java | CatalinStefan11/SpringBootChat | /src/main/java/com/example/demo/configuration/SchedulerConfig.java | UTF-8 | 420 | 1.945313 | 2 | [] | no_license | package com.example.demo.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.stereotype.Component;
@Component
public class SchedulerConfig {
@Be... | true |
86a09eddb1397427864d5132a8bf1e2f2f0672f9 | Java | prakashne4/CrudTest | /app/src/main/java/com/example/testcrud/RegisterActivity.java | UTF-8 | 7,153 | 2.53125 | 3 | [] | no_license | package com.example.testcrud;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widg... | true |
93b88f6b60b57438061b5eb58f55d9121b3ba9a1 | Java | hipri/visual-recognition | /src/main/java/com/acn/acit/watsonservices/visualrecognition/DetectFace.java | UTF-8 | 796 | 2.234375 | 2 | [] | no_license | package com.acn.acit.watsonservices.visualrecognition;
import java.io.File;
import java.io.FileNotFoundException;
import com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition;
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.DetectFacesOptions;
import com.ibm.watson.developer_cloud.v... | true |
960c0fb4c0199e6cab8402b65b4450ccd9dc8b38 | Java | CristianAguerreClavel/PMM | /PAreasProject/PAreas/src/main/java/aguerre/cristian/pmm/MainActivity.java | UTF-8 | 1,912 | 2.296875 | 2 | [] | no_license | package aguerre.cristian.pmm;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import ... | true |
d9455e76d6daeafd37da7b6ca6544b8891f85773 | Java | PabloAvaz/proyecto | /src/main/java/com/dto/acciones/AccionEquipableDto.java | UTF-8 | 266 | 1.734375 | 2 | [] | no_license | package com.dto.acciones;
import com.domain.entity.producto.Skin;
import lombok.Getter;
import lombok.Setter;
/**
* Dto de las acciones equipables
* @author Pablo
*
*/
@Getter
@Setter
public class AccionEquipableDto extends AccionDto {
private Skin skin;
}
| true |
9ed98c1631757b7d78e7298c40e9016490373260 | Java | jideas/spark-whxc-cms | /code/src/com/spark/cms/services/goods/impl/GoodsServiceImpl.java | GB18030 | 26,690 | 1.695313 | 2 | [] | no_license | package com.spark.cms.services.goods.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.hibernate.annotations.common.util.StringHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | true |
cb22ec60c383aa1895a6583a12355886016e8743 | Java | stevenvt888/codedFiles | /ComputerMain.java | UTF-8 | 1,039 | 3.78125 | 4 | [] | no_license | package ITDiffMemory;
import java.util.Scanner;
public class ComputerMain {
// As parameters, the command line arguments
public static void main(String[] args) {
int diffMemory;
// Created an instance for existing computer.
Computer existedComputer = new Compute... | true |
1d84f3c3b3de38ee2538ed068b1cb66d009b6fa7 | Java | parksangoh/Calculator | /app/src/main/java/com/example/a805_11/calculator/MainActivity.java | UTF-8 | 5,097 | 2.65625 | 3 | [] | no_license | package com.example.a805_11.calculator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class MainActi... | true |
69afeca6c1c2501dd6fa3bdb5021b2a270cb0892 | Java | puitiza/FirstDemo | /items-service/src/main/java/com/udemy/microservices/items/service/ItemServiceFeign.java | UTF-8 | 1,072 | 2.234375 | 2 | [] | no_license | package com.udemy.microservices.items.service;
import com.udemy.microservices.items.model.Item;
import com.udemy.microservices.items.model.Product;
import com.udemy.microservices.items.rest.ProductsClient;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Primary;
import org.springfr... | true |
af1b73cd92fbbe405afe93ff3bc6e41c2c67f369 | Java | pedrosan7os/bennu-renderers | /bennu-renderers/src/main/java/pt/ist/fenixWebFramework/renderers/components/HtmlStyle.java | UTF-8 | 1,404 | 2.46875 | 2 | [] | no_license | package pt.ist.fenixWebFramework.renderers.components;
import javax.servlet.jsp.PageContext;
import pt.ist.fenixWebFramework.renderers.components.tags.HtmlTag;
public class HtmlStyle extends HtmlComponent {
private String type;
private String media;
private String text;
private CharSequence styleBod... | true |
a4fbabbb8cfcebffb2f4ce7925eadaccc73c1c60 | Java | DTStack/Taier | /taier-data-develop/src/main/java/com/dtstack/taier/develop/vo/console/ComponentBindTenantVO.java | UTF-8 | 1,899 | 1.773438 | 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 |
b94d4848a03c678528cfba124401e3d30b4d065f | Java | amarsagar/GsonVolley | /app/src/main/java/com/example/amar/webapi/Contacts.java | UTF-8 | 1,306 | 2.171875 | 2 | [] | no_license | package com.example.amar.webapi;
import com.google.gson.annotations.SerializedName;
/**
* Created by amar on 9/7/2016.
*/
public class Contacts {
@SerializedName("id")
String id;
@SerializedName("name")
String name;
@SerializedName("address")
String address;
@SerializedName("email")
... | true |
9538dd9e6975503b1fa637ae758ad8936f8eb8ac | Java | trotzig/CMFaur---deprecated--replaced-by-Burrito- | /src/cmfaur/annotations/ReadOnly.java | UTF-8 | 444 | 1.992188 | 2 | [] | no_license | package cmfaur.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Används för att annotera fält i model-klasser,
* för att det inte ska gå att redigera i admin
*
* @author m... | true |
9348588bc468d7180fb9542e03a208714be9eefc | Java | lenik/stack | /plover/core/plover-arch/src/test/java/com/bee32/plover/inject/SimpleContainerTest.java | UTF-8 | 1,122 | 2.671875 | 3 | [] | no_license | package com.bee32.plover.inject;
import java.io.File;
import org.junit.Assert;
import org.junit.Test;
public class SimpleContainerTest
extends Assert {
@Test
public void testRequireSameClass()
throws ContextException {
SimpleContainer container = new SimpleContainer();
S... | true |