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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
335b361828132712817027c6b506cb43fac78676 | Java | 0x8801/commit | /contributions/gblake707/java/Fundamentals/2016-09-24.java | UTF-8 | 183 | 1.703125 | 2 | [] | no_license | Common mistake on switch statements
Catch multiple exceptions in a single `catch` block
Metadata: creating a user-defined file attribute
Measuring time
Using `synchronized` statements | true |
c482f6fc46c2eb37b4aa55c5eaea2d08e505eb5b | Java | DavidCThames/MobileMemento | /app/src/main/java/org/mitre/mobilememento/util/HttpIO.java | UTF-8 | 4,278 | 2.65625 | 3 | [] | no_license | package org.mitre.mobilememento.util;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import jav... | true |
88c3f922f4373d1aed64caa7b54dca0414d6291d | Java | zarnowsk/secretAgentInterface | /src/main/java/com/michzarnowski/michal_zarnowski_a3/model/MissionList.java | UTF-8 | 1,046 | 3 | 3 | [] | no_license | package com.michzarnowski.michal_zarnowski_a3.model;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Java bean class modeling Agent's list of missions.
* Allows the user to set and retrieve agent assigned to a set
* of missions, set and retrieve the list of missions and add
* a mission to Agent's l... | true |
8420a81a8ab1e31a3c668d7d03718f5ff378c78f | Java | METS-Programme/openmrs-module-ugandaemr-sync | /api/src/main/java/org/openmrs/module/ugandaemrsync/tasks/SendFHIRDataToCentralServerTask.java | UTF-8 | 713 | 2.265625 | 2 | [] | no_license | package org.openmrs.module.ugandaemrsync.tasks;
import org.openmrs.module.ugandaemrsync.api.UgandaEMRHttpURLConnection;
import org.openmrs.module.ugandaemrsync.server.SyncDataRecord;
import org.openmrs.module.ugandaemrsync.server.SyncFHIRRecord;
import org.openmrs.scheduler.tasks.AbstractTask;
/**
* A Task to Sync a... | true |
4cfce683b9152a7dc26a5b3194fd7809ecf270f2 | Java | DN-Pixel/TalesOfABlinWorld-Zelda_Like_Game | /src/sample/modele/items/Armes/EpeeLongue.java | UTF-8 | 147 | 1.898438 | 2 | [] | no_license | package sample.modele.items.Armes;
public class EpeeLongue extends Melee{
public EpeeLongue() {
super("EpeeLongue", 5, 1000);
}
}
| true |
6912c75315963b49328fb19423f1ef9c6552391b | Java | crazykamal631/java_android | /TestBindingAndViewModel/app/src/main/java/web/com/testbinding3/MainActivity.java | UTF-8 | 1,197 | 2.234375 | 2 | [] | no_license | package web.com.testbinding3;
import android.arch.lifecycle.ViewModelProviders;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;
import web.com.testbinding3.databinding.ActivityMainBinding;
pu... | true |
b16f46326e46b2b901d3365833e5fc723024a5a0 | Java | wensheng930729/platform | /bee-platform-system/platform-common-api/src/main/java/com/bee/platform/common/dto/IndustryDTO.java | UTF-8 | 677 | 1.914063 | 2 | [] | no_license | package com.bee.platform.common.dto;
import com.bee.platform.common.entity.IndustryInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author dell
* @version 1.0.0
* @ClassName IndustryDTO
* @Description 功能描述
* @Date 2019/4/24 16:3... | true |
512ba3ad07f5ef54a6d7d6674a1c0d378678420b | Java | showmeeb/GameBase | /src/com/gamebase/config/SpringWebSocketJavaConfig.java | UTF-8 | 2,023 | 2.25 | 2 | [] | no_license | package com.gamebase.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
import org.spri... | true |
f6934607362d51574e0644cd16d92bdb557b275c | Java | dnef/sensors | /sensor-gtes/src/main/java/gtes/dao/impl/FirmDAOImpl.java | UTF-8 | 345 | 1.929688 | 2 | [] | no_license | package gtes.dao.impl;
import gtes.dao.FirmDAO;
import gtes.dao.common.AbstractHibernateDAO;
import gtes.entity.Firm;
import org.springframework.stereotype.Repository;
@Repository
public class FirmDAOImpl extends AbstractHibernateDAO<Firm> implements FirmDAO {
public FirmDAOImpl() {
super();
setCl... | true |
7c717e57b5911bc8b447c2ddde6606b681528a02 | Java | Srvndo/Six-Men-s-Morrys | /Six Men's Morris/src/sixMensMorris/Ficha.java | UTF-8 | 1,549 | 2.75 | 3 | [] | no_license | package sixMensMorris;
import javax.swing.*;
import org.jpl7.Query;
import java.awt.*;
public class Ficha extends JComponent {
private int x, y;
private Color color;
private String nombre;
private boolean uso;
Ficha(String nombre, int x, int y, Color color){
this.nombre = nombre;
this.x = x... | true |
bce2306e228f1e19af32e3f37b6bc79c04cc94f7 | Java | zhudaydayup/yjbawechat | /src/main/java/yjbd/yjbawechat/Service/PdfThreeService.java | UTF-8 | 52,463 | 1.859375 | 2 | [] | no_license | package yjbd.yjbawechat.Service;
import com.alibaba.fastjson.JSON;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.QRCodeWriter;
import com.itextpdf.text.*;
i... | true |
e304443cc0bf73647102b6fab5e3f55c5234649a | Java | leapframework/framework | /base/lang/src/main/java/leap/lang/value/Page.java | UTF-8 | 3,076 | 2.78125 | 3 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
cf5cebeabf1b46bce64325a848420d286e8f3d4f | Java | asatulsinha4/interviewbit-solutions | /Tree Data Structure/2-Sum Binary Tree/2-SumBinaryTree.java | UTF-8 | 1,397 | 3.703125 | 4 | [] | no_license | /*
Given a binary search tree T, where each node contains a positive integer, and an integer K, you have to find whether or not there exist two different nodes A and B such that A.value + B.value = K.
Return 1 to denote that two such nodes exist. Return 0, otherwise.
Notes
Your solution should run in linear time an... | true |
88cd3e2bcec0be298a40c5d2cef35a5a39dbdc79 | Java | fillipiv/aulasjava | /aula04/exercicios/exercicio03/Veiculo.java | UTF-8 | 568 | 3.546875 | 4 | [] | no_license | package exercicios.exercicio03;
public class Veiculo {
private String modelo;
private String marca;
private double consumo;
public Veiculo(String modelo, String marca, double consumo){
this.modelo = modelo;
this.marca = marca;
this.consumo = consumo;
}
public void carr... | true |
d7fddf076e9cc378ae0088fe42e870fa9110efdf | Java | kohry/Backjoon-Algo | /11657.java | UTF-8 | 2,186 | 3.28125 | 3 | [] | no_license | package b11657;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
static int N;
static int M;
static int INF = 200000000;
static ArrayList<ArrayLis... | true |
c2cb1348c6a33d7afe28820e0e32aae6e171cc1c | Java | johnfourpeople/numbusterWeatherTest | /app/src/main/java/com/test/jb/numbusterweathertest/Network/AsyncForecastConnection.java | UTF-8 | 4,405 | 2.40625 | 2 | [] | no_license | package com.test.jb.numbusterweathertest.Network;
import android.content.ContentValues;
import android.os.AsyncTask;
import android.util.Log;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.test.jb.numbusterweathertest.Database.Contract;
import jav... | true |
1472c7e81f3aac31e200e07c5aa4fa02889caf26 | Java | a2en/Zenly_re | /src/app.zenly.locator_4.8.0_base_source_from_JADX/sources/com/google/common/collect/C10899m0.java | UTF-8 | 449 | 1.96875 | 2 | [] | no_license | package com.google.common.collect;
import java.util.ListIterator;
/* renamed from: com.google.common.collect.m0 */
public abstract class C10899m0<E> extends C10897l0<E> implements ListIterator<E> {
protected C10899m0() {
}
@Deprecated
public final void add(E e) {
throw new UnsupportedOperatio... | true |
7f6efdbfeea228078004bd00f36cacbbd1781ad6 | Java | piotrgiedziun/university | /java_xml/lab9/src/task1/controller/MainController.java | UTF-8 | 1,087 | 2.640625 | 3 | [
"MIT"
] | permissive | package task1.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impor... | true |
54a167dfd6bc717a4befc00dc9e5d907eb38e9a8 | Java | veev520/AndLua | /app/src/main/java/club/veev/andluademo/entity/Test1.java | UTF-8 | 743 | 2.640625 | 3 | [] | no_license | package club.veev.andluademo.entity;
public class Test1 {
private String title;
private String subTitle;
private String content;
public Test1(String title, String subTitle, String content) {
this.title = title;
this.subTitle = subTitle;
this.content = content;
}
@Overr... | true |
fa645d94edf41d1bde1e1ebed9ecb08a166d60d9 | Java | pfista/Curfew | /Curfew/src/main/java/com/curfew/CurfewQueryAdapter.java | UTF-8 | 2,195 | 2.078125 | 2 | [] | no_license | package com.curfew;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.parse.GetCallback;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.pars... | true |
2eaa0e4c723200ae622100755a49001dfcd5fb2e | Java | jensen-liu/jeeProject | /JeeProject/src/main/java/com/jensen/jeeproject/system/service/PermissionService.java | UTF-8 | 517 | 1.804688 | 2 | [] | no_license | package com.jensen.jeeproject.system.service;
import java.util.List;
import com.jensen.jeeproject.common.exception.ServiceException;
import com.jensen.jeeproject.system.entity.Permission;
public interface PermissionService {
Permission getPermById(String id);
List<Permission> getList();
List<Permi... | true |
27e49aaaa2fe180c9991ef7bfb14d958d9fe611b | Java | bellmit/AyjrFiance | /src/main/java/com/hengxin/platform/fund/service/FinancierBreachFundClearingService.java | UTF-8 | 2,347 | 1.992188 | 2 | [] | no_license | package com.hengxin.platform.fund.service;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.hengxin.platform.common.exception.BizServiceException;
import com.hengxin.platform.fund.dto.biz.req.atom.FreezeReq;
import com.hengxin.platform.fund.dto.biz.req.atom.TransferInfo;
import co... | true |
81af37ef9e8f34d43e327a85f69830c3bb6fc9cc | Java | Winely/ElecTongji | /app/src/main/java/me/donggu/electongji/LoucengActivity.java | UTF-8 | 4,090 | 2.015625 | 2 | [] | no_license | package me.donggu.electongji;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android... | true |
77b480481ee08ca0db02dc4794fa5b2ca2a31f93 | Java | lennerd/TwitterGraph | /src/com/lennerd/processing/twitter_graph/status_collector/request/AbstractRequest.java | UTF-8 | 456 | 2.125 | 2 | [
"MIT"
] | permissive | package com.lennerd.processing.twitter_graph.status_collector.request;
import com.lennerd.processing.twitter_graph.status_collector.DataCollector;
abstract public class AbstractRequest implements Request {
protected DataCollector dataCollector;
public AbstractRequest(DataCollector dataCollector) {
t... | true |
9fea532de3aa3c294a64419ee8c0841861702256 | Java | julioarriagada82/springboot-proyecto-final | /src/main/java/my/condominium/service/IIntegranteService.java | UTF-8 | 289 | 1.765625 | 2 | [] | no_license | package my.condominium.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import my.condominium.model.Integrante;
public interface IIntegranteService extends ICRUD<Integrante> {
Page<Integrante> listarPageable(Pageable pageable);
}
| true |
ec54e50deda036a7ce5dc790a46dc72374ef874f | Java | rahulaga/irahul.com | /xst/xst01/com/irahul/XST/XSTConstants.java | UTF-8 | 4,480 | 2.25 | 2 | [] | no_license | /*
* XML Schema Tree
*
* Copyright (c) 2002 Rahul
* All rights reserved.
* http://www.irahul.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above c... | true |
2e17eb6c925a2708331cdc4774b6df3a827a6f58 | Java | avaness/hoolah.co-challenge-java | /src/main/java/co/hoolah/challenge_java/CliProcessor.java | UTF-8 | 2,660 | 2.78125 | 3 | [] | no_license | package co.hoolah.challenge_java;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.time.LocalDateTime;
import java.time.format.DateTimeParseException;
import java.util.concurrent.Callab... | true |
619ee0094512b0b03bdfbe00a66da32bf006a8d0 | Java | AutoGraphQL/APIJSON | /APIJSONORM/src/main/java/apijson/orm/Operation.java | UTF-8 | 2,537 | 2.859375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
This source code is licensed under the Apache License Version 2.0.*/
package apijson.orm;
/**对请求 JSON 的操作
* @author Lemon
*/
public enum Operation {
/**
* 必须传的字段,结构是
* "key0,key1,key2..."
*/
MUST,
/**
* 不允许传的字段,结构是
* "key... | true |
facd2e8f7da771b66112766336cd00fa7e665f18 | Java | YamidDev/multi-tenancy-oauth | /src/main/java/com/yamidev/multitenancy/security/UserTenantInformation.java | UTF-8 | 322 | 1.625 | 2 | [] | no_license | package com.yamidev.multitenancy.security;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserTenantInformation {
private Map<String, String> map = new HashMap<>();
... | true |
b4a56e2318e9faffc608f73b9d53e3e27ae61fc9 | Java | whl-1998/JavaStudyFromWhl | /src/com/whl/dataStructuresAndAlgorithms/dfsAndBfs/InvertBinaryTree.java | UTF-8 | 1,636 | 4.0625 | 4 | [] | no_license | package com.whl.dataStructuresAndAlgorithms.dfsAndBfs;
import com.whl.dataStructuresAndAlgorithms.TreeNode;
import java.util.LinkedList;
import java.util.Queue;
/**
* @author whl
* @version V1.0
* @Title: 226. 翻转二叉树
* @Description: easy
*/
public class InvertBinaryTree {
/**
* 1. 递归
* 思路:将root.le... | true |
47f9cd41b15c27568b660eb1755687b028a58cff | Java | Crush-on-IT/algorithm-study | /src/Dynamic Programming/12865_평범한배낭/백준_12865_평범한배낭2_saeumi.java | UTF-8 | 1,072 | 3.171875 | 3 | [] | no_license | package Dynamic_programming;
import java.io.*;
import java.util.*;
public class 백준_12865_평범한배낭2_saeumi {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringToke... | true |
a3119e0aa0e74e781284f0d4fb758a649b50e56d | Java | njmube/CSE_PL-SQL | /RastreoMx/src/touchesbegan/rastreomx/database/MySQLiteHelper.java | UTF-8 | 3,588 | 2.53125 | 3 | [] | no_license | package touchesbegan.rastreomx.database;
import java.util.ArrayList;
import java.util.List;
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;
pu... | true |
a38f1dff019b18ee5758407f1fd2bd6b174041be | Java | stephengold/Minie | /MinieLibrary/src/test/java/jme3utilities/minie/test/TestClonePhysicsControls.java | UTF-8 | 17,426 | 1.648438 | 2 | [
"BSD-3-Clause"
] | permissive | /*
Copyright (c) 2018-2023, Stephen Gold
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 fol... | true |
319d5324a19b1e6200e8cd7d8d6f0031d1017511 | Java | theHeimes/schedoscope | /schedoscope-metascope/src/main/java/org/schedoscope/metascope/model/key/FieldEntityKey.java | UTF-8 | 2,395 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2015 Otto (GmbH & Co KG)
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable ... | true |
4c5e2df9f6800ff290e83692a8097650b6988660 | Java | joshuajWallace/Tetris | /src/app/ScorePanel.java | UTF-8 | 2,774 | 2.96875 | 3 | [] | no_license | package app;
import java.awt.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.security.CodeSource;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class ScorePanel extends... | true |
b10d117591b29f3ed6e97aa75b5000e7d2716716 | Java | siminabratianu/CTS | /seminar5/src/ro/ase/acs/simpleFactory/Medic.java | UTF-8 | 430 | 2.390625 | 2 | [] | no_license | package ro.ase.acs.simpleFactory;
public class Medic extends PersonalSpital{
public Medic(String nume, int salariul) {
super(nume, salariul);
// TODO Auto-generated constructor stub
}
@Override
public String toString() {
return "Medic [getNume()=" + getNume() + ", getSalariul()=" + getSalariul() + ", getCl... | true |
583ae32bb2d637f5b470e1a7e4b7069b5b15607f | Java | mabuthraa/EasyFlow-Android | /easyflow/src/main/java/com/apipas/easyflow/android/Event.java | UTF-8 | 4,598 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.apipas.easyflow.android;
import android.util.Log;
import com.apipas.easyflow.android.call.EventHandler;
import com.apipas.easyflow.android.err.DefinitionError;
import com.apipas.easyflow.android.err.ExecutionError;
import com.apipas.easyflow.android.err.LogicViolationError;
import java.util.HashMap;
impo... | true |
e11a00e73bd5c99eb4b4255b23c61d0950f14c43 | Java | coinexchain/dex-api-java | /src/main/java/org/coinex/dex/client/model/InlineResponse20037Result.java | UTF-8 | 6,241 | 1.90625 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* CET-Lite for CoinEx Chain
* A REST interface for state queries, transaction generation and broadcasting.
*
* OpenAPI spec version: 3.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/... | true |
2d95f3714006e28bfe904d4461f43bd184871b1d | Java | karunas1/receipt-service | /src/main/java/com/verifone/receipt/enums/TransactionTypeEnumForCBA.java | UTF-8 | 1,303 | 2.03125 | 2 | [] | no_license | package com.verifone.receipt.enums;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum TransactionTypeEnumForCBA {
PREAUTH("PREAUTH"),
EXTEND_TRANSACTION("EXTEND_TRANSACTION"),
SALE("PURCHASE"),
NON_FINANCIAL("NON_FINANCIAL"),
REFUND("REFUND"),
P... | true |
3f8cb29c76ce8cc24ee0456458ae111549b92f24 | Java | tozzr/reqif-hub | /src/main/java/com/tozzr/reqif/domain/Identifiable.java | UTF-8 | 903 | 2.484375 | 2 | [] | no_license | package com.tozzr.reqif.domain;
import org.w3c.dom.Element;
public abstract class Identifiable extends ReqIFElement {
public String identifier;
public String lastChange;
public String longName;
protected Identifiable(final String name) {
super(name);
}
protected Identifiable(final String name, final bool... | true |
e62e59b0b64dbbb5ed4be2ef20a9f81b7aad6daf | Java | Colinwielga/DataMining | /Can I Eat it/src/com/example/can/i/eat/it/MainActivity.java | UTF-8 | 14,023 | 1.914063 | 2 | [] | no_license | package com.example.can.i.eat.it;
import java.util.HashMap;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.R... | true |
2b3933fcaa80c48c4ca43e203002ae0e53feabdc | Java | failgoddess/dq | /server/src/main/java/dq/core/enums/VizVisiblityEnum.java | UTF-8 | 551 | 2.796875 | 3 | [] | no_license | package dq.core.enums;
public enum VizVisiblityEnum {
PORTAL("portal"),
DASHBOARD("dashboard"),
DISPLAY("display"),
SLIDE("slide"),
;
private String viz;
VizVisiblityEnum(String viz) {
this.viz = viz;
}
VizVisiblityEnum() {
}
public static VizVisiblityEnum vizO... | true |
2083f73243e41930cc6021aa70657b7966c1977b | Java | wzzcanoe/cm | /src/main/java/com/ma/cm/mapper/UserMapper.java | UTF-8 | 974 | 2.078125 | 2 | [] | no_license | package com.ma.cm.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import com.ma.cm.entity.User;
p... | true |
cc4dd5f4b25144127f8397c41ea22e9dc33f5942 | Java | adminDavin/hanfu | /hanfu-user-center/src/main/java/com/hanfu/user/center/dao/HfMemberLevelMapper.java | UTF-8 | 3,137 | 1.898438 | 2 | [] | no_license | package com.hanfu.user.center.dao;
import com.hanfu.user.center.model.HfMemberLevel;
import com.hanfu.user.center.model.HfMemberLevelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HfMemberLevelMapper {
/**
* This method was generated by MyBatis Generator.
* ... | true |
601c243f874c8e75c02e895a5dba62ac0b7e5c2d | Java | cammette/DBus | /dbus-commons/src/main/java/com/creditease/dbus/commons/log/processor/rule/IRule.java | UTF-8 | 359 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | package com.creditease.dbus.commons.log.processor.rule;
import com.creditease.dbus.commons.log.processor.parse.RuleGrammar;
import com.creditease.dbus.commons.log.processor.rule.impl.Rules;
import java.util.List;
public interface IRule {
public List<String> transform(List<String> data, List<RuleGrammar> grammar... | true |
5f3508efd14a7f345509b05f248107c6921f3452 | Java | sep35/Simulation | /src/simulations/TriangularGrid.java | UTF-8 | 2,430 | 3.421875 | 3 | [
"MIT"
] | permissive | package simulations;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Shape;
/**
* Class used in Triangular grid simulation
* @author allankiplagat
*
*/
public class TriangularGrid extends Grid {
private double triBase;
private double triHeight;
// coordinates of triangle at top left grid ... | true |
ee507ffe21b39bd114648c4520dd9f186122bffc | Java | GuilhermeAquino01/Java | /fibonacci.java | UTF-8 | 752 | 3.421875 | 3 | [] | no_license | package exercicios;
import javax.swing.JOptionPane;
public class fibonacci {
public static void main(String [] args){
String sn = JOptionPane.showInputDialog("Informe a quantidade de valor desejado");
int n = Integer.parseInt(sn);
JOptionPane.showMessageDialog(null, fibonacci(n));
... | true |
d0a4daab62bab8313359234efac658b041fbfcb2 | Java | youshallnotpass-dev/java-inspections | /lib/src/main/java/dev/youshallnotpass/javaparser/NodePath.java | UTF-8 | 2,568 | 2.75 | 3 | [
"MIT"
] | permissive | package dev.youshallnotpass.javaparser;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.Node;
import com.github.javaparser.ast.PackageDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.body.TypeDeclaration;
import com.github.javapar... | true |
ea9dacc069afcf0de279baf711bd63d452acec8a | Java | anotheria/ano-prise | /src/main/java/net/anotheria/anoprise/fs/FSSaveable.java | UTF-8 | 615 | 2.3125 | 2 | [
"MIT"
] | permissive | package net.anotheria.anoprise.fs;
import java.io.Serializable;
/**
* Interface of the file system service.
*
* @author abolbat
* @version 1.0, 2010/02/11
*/
public interface FSSaveable extends Serializable {
/**
* Returns the owner id of the {@link FSSaveable} object.
*
* @return {@link String}
*/
... | true |
2614f83b5defb30f289aacc83f91aa5a3202841a | Java | mytaowu/leetcode | /串/_151_翻转字符串里的单词.java | UTF-8 | 1,665 | 3.828125 | 4 | [] | no_license | package 串;
import java.awt.CardLayout;
import javax.lang.model.element.VariableElement;
/**
* https://leetcode-cn.com/problems/reverse-words-in-a-string/
* @author 涛宝宝
*
*/
public class _151_翻转字符串里的单词 {
public String reverseWords(String s) {
char[] array = s.toCharArray();
//第一步:去除多余的空格... | true |
9f65aac8b747e09a19996f92ec1861b746497c9e | Java | olegfkl/FizzBuzz_Java | /test/FizzBuzzTest.java | UTF-8 | 598 | 2.609375 | 3 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class FizzBuzzTest {
private FizzBuzz test;
@Before
public void initObjects() {
test = new FizzBuzz();
}
@Test
public void testFizz() {
assertEquals("Fizz", test.play(3));
}
@T... | true |
907ef3f68236b924fb121cf5b9dce4c56bd90330 | Java | SSubPPaRR/Practicum_Advaced_Java | /src/week7/client/Controller.java | UTF-8 | 1,736 | 2.96875 | 3 | [] | no_license | package week7.client;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import java.beans.EventHandler;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.... | true |
1583d1e4b185df997c4ecdf1e48cb57c8d01aca4 | Java | mafsan786git/PROGRAMMING_WITH_JAVA | /CONTEST/Unit-1/I-Contest-2/src/Duplicate.java | UTF-8 | 538 | 3.21875 | 3 | [] | no_license |
import java.util.HashSet;
import java.util.Scanner;
public class Duplicate {
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(0 < t--){
int n = sc.nextInt();
HashSet<Integer> set = new HashSet<>();
f... | true |
bc4d8c4a7666d87f51fa2b570255ea3c7aee39ab | Java | cortezvinicius/links-aplicativos-android | /app/src/main/java/com/cortezvinicius/exemplo/projeto_exemplo/MainActivity.java | UTF-8 | 4,513 | 2.015625 | 2 | [] | no_license | package com.cortezvinicius.exemplo.projeto_exemplo;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import com.cortezvinicius.linksaplicativos.LinksAplicativos;
import android.Manifest;
import android.content.Intent;
import android.conten... | true |
58763d33a68625e31a7b497f1901a5b920e02bfc | Java | RaissaDavinha/AndroidCam | /Objects/src/b4a/example/clseditablegrid.java | UTF-8 | 26,030 | 1.984375 | 2 | [] | no_license | package b4a.example;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;
public class clseditablegrid extends B4AClass.ImplB4AClass implements BA.SubDelegator{
private static java.util.HashMap<String, java.lang.reflect.M... | true |
63c9664c08ae1dab5294a90c81dbfd0c56af6c0d | Java | JasonFromSAGE/Lorinthios-RpgMobs | /me/Lorinth/LRM/Objects/MythicDrops/MythicDropsData.java | UTF-8 | 1,157 | 2.8125 | 3 | [] | no_license | package me.Lorinth.LRM.Objects.MythicDrops;
import me.Lorinth.LRM.Util.ConfigHelper;
import me.Lorinth.LRM.Util.TryParse;
import org.bukkit.configuration.file.FileConfiguration;
import java.util.HashMap;
public class MythicDropsData {
private HashMap<Integer, MythicDropsLevelData> tierData = new HashMap<>();
... | true |
c766a28e2bd6102c4b9da72ff88c0b753763d7e3 | Java | undiscovered-genius/Scanner | /app/src/main/java/com/example/scanner/MainActivity.java | UTF-8 | 3,353 | 2.109375 | 2 | [] | no_license | package com.example.scanner;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.DialogInterface... | true |
2277a8072be1629bbd30198e01882b04ef5224b8 | Java | qlmgg/AA2.0 | /src/com/voole/epg/view/mymagic/.svn/text-base/ConsumerCenterView.java.svn-base | UTF-8 | 8,972 | 1.984375 | 2 | [] | no_license | package com.voole.epg.view.mymagic;
import java.util.List;
import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import com.voole.epg.R;
import com.voole.epg.base.BaseLinearLayout;
import com.voole.epg.base.common.Displa... | true |
76db1a426eab688a8b79a17909a2aac0825f5884 | Java | ogg21/gyb | /src/main/java/com/gyb/utils/JacksonObjectMapper.java | UTF-8 | 944 | 2.34375 | 2 | [] | no_license | package com.gyb.utils;
import java.io.IOException;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.SerializationConfig;
import org.code... | true |
62281a06ac88697a1269b5669f62e5c60e69c38d | Java | h3c-beijing/kai-core-code | /juzz4web/app/lib/dao/AuditLogDao.java | UTF-8 | 991 | 2.0625 | 2 | [] | no_license | package lib.dao;
import java.util.Date;
import java.util.List;
import lib.util.exceptions.ApiException;
import models.AuditLog;
import models.User;
/**
*
* @author Tan Yee Fan
*/
public interface AuditLogDao {
public class Result {
public long count;
public List<AuditLog> logs;
}
public AuditLog get(Long ... | true |
08ab87a66dc76882a9b2d750d5abba7038b6f357 | Java | henriquefps/CinEasy-Plex | /CinEasy Plex/src/interfaces/IFachada.java | UTF-8 | 2,255 | 2.21875 | 2 | [] | no_license | package interfaces;
import java.util.ArrayList;
import beans.Conta;
import beans.Filme;
import beans.Ingresso;
import beans.Sala;
import beans.Sessao;
import beans.Venda;
public interface IFachada {
//Conta
public void cadastrarConta(Conta c) throws Exception;
public void alterarConta(Conta c) th... | true |
511bdf35e809d9cf5886f8d0c61020e812504325 | Java | msfj/msjf-pas | /pas-api/src/main/java/com/msjf/finance/pas/facade/act/ProStepAuditFacade.java | UTF-8 | 435 | 1.765625 | 2 | [] | no_license | package com.msjf.finance.pas.facade.act;
import com.msjf.finance.msjf.core.response.Response;
import com.msjf.finance.pas.facade.act.domain.ProStepAuDomain;
import com.msjf.finance.pas.facade.act.domain.ProStepAuditDomain;
public interface ProStepAuditFacade {
Response setSetAudit(ProStepAuditDomain stepAuditDom... | true |
1f8a4db6c6fd9b15fece40d4b98affb950810cb6 | Java | chengmaotao/rew | /src/main/java/com/zkr/rew/common/utils/UtilsFns.java | UTF-8 | 20,145 | 1.664063 | 2 | [] | no_license | package com.zkr.rew.common.utils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.thinkgem.jeesite.common.utils.CacheUtils;
import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.think... | true |
c474c03159b55224431239571bb54d64e931fa9d | Java | palava/palava-security | /src/main/java/de/cosmocode/palava/security/IsPermitted.java | UTF-8 | 2,695 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2010 CosmoCode GmbH
*
* 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 |
41714bce5b1589ae92f0348f287470aaf9070d69 | Java | hoditac068/LucianMS | /lucian-channel/src/com/lucianms/events/PlayerBeholderEvent.java | UTF-8 | 1,278 | 2.5 | 2 | [] | no_license | package com.lucianms.events;
import com.lucianms.client.MapleCharacter;
import com.lucianms.constants.skills.DarkKnight;
import com.lucianms.events.PacketEvent;
import com.lucianms.nio.receive.MaplePacketReader;
import com.lucianms.server.maps.MapleSummon;
/**
* @author BubblesDev
* @author izarooni
*/
public clas... | true |
af6a121a11547fe1a346456ed5e2f05d1fd2abb6 | Java | MrDimitrio/practical-tasks-for-a-trainee-test-automation-engineer-1 | /src/main/java/io/github/valentyn/nahai/basics/oop/recursion/FibonacciNumber.java | UTF-8 | 831 | 4.28125 | 4 | [
"Apache-2.0"
] | permissive | package io.github.valentyn.nahai.basics.oop.recursion;
/**
* Task:
* Create a method that calculates fibonacci number using recursion.
* The base formula is F(n) = F(n - 1) + F(n - 2).
*
* Задача:
* Создайте метод, который вычисляет число Фибоначчи с помощью рекурсии.
* Базовая формула: F (n) = F (n - 1) + F (n ... | true |
15ccd7941914440b529bc7fe06ddf9264904f3dd | Java | Weefle/AlphaLibaryModules | /ALM-Schematic/src/main/java/de/alphahelix/almschematic/serializer/LocationDiffSerializer.java | UTF-8 | 1,936 | 2.578125 | 3 | [] | no_license | package de.alphahelix.almschematic.serializer;
import com.google.gson.*;
import de.alphahelix.almschematic.Schematic;
import org.bukkit.Material;
import java.lang.reflect.Type;
public class LocationDiffSerializer implements JsonSerializer<Schematic.LocationDiff>, JsonDeserializer<Schematic.LocationDiff> {
@Over... | true |
d2e16c8333de0ef2d71ee73fb5a1fbf953d3a1e4 | Java | stropa/jdbcdslog | /jdbcdslog/src/main/java/org/jdbcdslog/ConfigurationParameters.java | UTF-8 | 3,389 | 2.546875 | 3 | [] | no_license | package org.jdbcdslog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class ConfigurationParameters {
static Logger logger = LoggerFactory.getLogger(ConfigurationParameters.class);
static long slowQuer... | true |
27b3008307caa7c26583ab8a9498f7e1486bd503 | Java | BlueBambooStudios/react-native-track-player | /android/src/main/java/guichaguri/trackplayer/player/players/ExoPlayback.java | UTF-8 | 7,753 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive | package guichaguri.trackplayer.player.players;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.media.session.PlaybackStateCompat;
import com.facebook.react.bridge.Promise;
import com.google.android.exoplayer2.*;
import com.google.android.exoplayer2.ExoPlayer.... | true |
31c4b4aae42578ca01d3ccd02497de6f4a8bbd23 | Java | jenkinsci/github-plugin | /src/test/java/org/jenkinsci/plugins/github/util/JobInfoHelpersTest.java | UTF-8 | 3,330 | 2.203125 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package org.jenkinsci.plugins.github.util;
import com.cloudbees.jenkins.GitHubPushTrigger;
import hudson.model.FreeStyleProject;
import hudson.model.Item;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.junit.ClassRule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import static o... | true |
423ac54c1ed824fa276e94d62308aa5514b9bf8a | Java | EnzoCorrales/LabPApps | /NetBeansProjects/programacion-de-aplicaciones/UyTube/src/main/java/Entidades/uytube/Main.java | UTF-8 | 1,801 | 2.515625 | 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 Entidades.uytube;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persiste... | true |
da261fbc1569d885be5f6809fa5176f9bfa561a0 | Java | wanghu110119/chen_mi | /src/main/java/com/mht/modules/sys/web/SysConfigController.java | UTF-8 | 3,711 | 1.914063 | 2 | [] | no_license | package com.mht.modules.sys.web;
import java.io.IOException;
import java.util.List;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import or... | true |
f506b7a0c233bf569ac2c5618a65981a570c9ce2 | Java | xiaofud/stu_syllabus | /app/src/main/java/com/hjsmallfly/syllabus/parsers/OAParser.java | UTF-8 | 1,740 | 2.3125 | 2 | [] | no_license | package com.hjsmallfly.syllabus.parsers;
import com.hjsmallfly.syllabus.syllabus.OAObject;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
import java.util.ArrayList;
import java.util.List;
/**
* Created by smallfly on 15-11-27.
*/
public class OA... | true |
85c0cf7de6675e6ec66f48d832908ea2c4a92c47 | Java | shortcutssoftware/sc-ols-examples | /v2-examples/java/src/main/java/com/shortcuts/example/java/services/site/GetSitesResponse.java | UTF-8 | 342 | 1.828125 | 2 | [
"ISC"
] | permissive | package com.shortcuts.example.java.services.site;
import com.shortcuts.example.java.services.Paging;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = false)
public class GetSitesResponse {
private List<Site> sites;
private Paging paging;
pr... | true |
db8e9a5dc5c3eb15fbdae3ecf7bfaa26764368e3 | Java | chr1shaefn3r/talk-contract-tests | /motivation/src/test/java/interactions/ConsumerTest.java | UTF-8 | 963 | 2.53125 | 3 | [] | no_license | package interactions;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import org.junit.jupiter.api.Test;
/**
* There is <a href="https://github.com/robindanzinger/chadojs/blob/master/example/example.md">chado.js</a> for javas... | true |
e0b079aab203a0c3666b7caf594545548721615a | Java | alaminsheikh0/Angularjs-Restfull-project | /src/java/com/resources/WebServiceEmp.java | UTF-8 | 1,540 | 2.3125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.resources;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET... | true |
d38dfbf12ed8146003e1a5fb11405dfb7de90305 | Java | hm-quinn/A3Prj | /GameObjectCollection.java | UTF-8 | 1,332 | 3.1875 | 3 | [] | no_license | package com.mycompany.a3;
import java.util.ArrayList;
public class GameObjectCollection implements ICollection{
private ArrayList<GameObject> gameObj;
public GameObjectCollection() {
gameObj = new ArrayList<GameObject>();
}
@Override
public void add(GameObject object) {
// TODO Auto-generated ... | true |
5bb84d947915b98595b793e1015173e01d760287 | Java | MightyDuckD/HTLSTPExercise | /Lab07/src/main/java/at/mightyduck/isbn/ISBNLib.java | UTF-8 | 4,654 | 2.296875 | 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 at.mightyduck.isbn;
import at.mightyduck.isbn.ISBNException;
import at.mightyduck.isbn.ISBN;
import at.mightyduck.isbn.xml.EAN... | true |
191b4806b0f982596197e4e70012c1ec18b46e32 | Java | NthPortal/uhc-plugin | /src/main/java/com/github/nthportal/uhc/events/UHCMinuteEvent.java | UTF-8 | 204 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.github.nthportal.uhc.events;
public class UHCMinuteEvent {
public final int minuteNumber;
public UHCMinuteEvent(int minuteNumber) {
this.minuteNumber = minuteNumber;
}
}
| true |
7625efd177f8b4d08c625787a6ed5448b179bb78 | Java | bagasap10/OOADLabProject | /src/view/RegisterFrame.java | UTF-8 | 5,163 | 2.53125 | 3 | [] | no_license | package view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing... | true |
79064d43019e3aa54fc13d3ec95e85e1cb492aab | Java | 00liberty00/ml_start | /src/ml/controller/ReportsGeneralController.java | UTF-8 | 27,092 | 1.640625 | 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 ml.controller;
import java.math.BigDecimal;
import java.net.URL;
import java.time.LocalDate;
import java.time.ZoneId... | true |
e1ea56271c56a228453f02acc13e1647e70ffcc5 | Java | psun2/Korea-IT-Academy | /(back up) _ 오전/study_a/jj_work/javaProj/src/oops_p/MethodMain.java | UHC | 1,149 | 3.75 | 4 | [] | no_license | package oops_p;
class MethodCla{
int a = 10;
//param X, ret X
void meth_1() { //ҵ
System.out.println("meth_1() ");
}
//param O, ret X
void meth_2(int b, String c) {//Ű
System.out.println("meth_2() :"+b+","+c);
//return 123;
return;
}
//param X, ret O
//int, int meth_3() {
int ... | true |
a82f60d27ec5ac9011af12db7536e17e227be799 | Java | patrickdamery/AudioStreamer | /src/main/java/Services/ConnectionListener.java | UTF-8 | 5,370 | 3.109375 | 3 | [] | no_license | package Services;
import Custom.Attributes;
import org.w3c.dom.Attr;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.*;
/**
* Class that handles connection requests.
* Property of Cabalry Limited.
* Author: Robert Patrick Damery
*/
public class ConnectionListener implements Runnable... | true |
1d07d5fafaa45361c815cf0517027d0fc29741d4 | Java | JoyPanda/wangxian_server | /server/src/com/fy/engineserver/newtask/prizes/TaskPrizeOfPneuma.java | UTF-8 | 1,703 | 2.703125 | 3 | [] | no_license | package com.fy.engineserver.newtask.prizes;
import com.fy.engineserver.newtask.Task;
import com.fy.engineserver.newtask.service.TaskConfig;
import com.fy.engineserver.newtask.service.TaskSubSystem;
import com.fy.engineserver.sprite.Player;
/**
* 任务奖励-修法值
*
*
*/
public class TaskPrizeOfPneuma extends TaskPrize i... | true |
5fe3fddf41ab8f9c154037d187294cb8ae33b111 | Java | itlenergy/itlenergy | /itlenergy-webclient/src/main/java/com/itl_energy/webclient/profile/visualisation/LineGraphControl.java | UTF-8 | 3,649 | 2.671875 | 3 | [
"MIT"
] | permissive | package com.itl_energy.webclient.profile.visualisation;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Stroke;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Line2D;
/**
* Class for representing simple functional relationship.
*
* @author bstephen
... | true |
8fa4cb9be345889655f101bd0eefa8496906305b | Java | shravanAngadi/temp-odb | /java/mono/android/view/View_OnDragListenerImplementor.java | UTF-8 | 1,962 | 1.65625 | 2 | [] | no_license | /*
* Decompiled with CFR 0_110.
*
* Could not load the following classes:
* android.view.DragEvent
* android.view.View
* android.view.View$OnDragListener
* java.lang.Class
* java.lang.Object
* java.lang.String
* java.lang.Throwable
* java.util.ArrayList
*/
package mono.android.view;
import android... | true |
566d7b1a4a87edf6a994c1a9a0eeac785e6797e0 | Java | LiLinXiang/Picbox | /app/src/main/java/ml/puredark/hviewer/libraries/swipeback/common/SwipeBackApplication.java | UTF-8 | 604 | 1.929688 | 2 | [
"MIT"
] | permissive | package ml.puredark.hviewer.libraries.swipeback.common;
import android.app.Activity;
import android.app.Application;
import android.view.View;
/**
* Created by fhf11991 on 2016/7/18.
*/
public class SwipeBackApplication extends Application {
private ActivityLifecycleHelper mActivityLifecycleHelper;
@Over... | true |
ccd91f6b7890c7016450894532f9ec108d29f643 | Java | winhbb/rustyclipse | /rustyclipse/src/org/rustyclipse/RustLaunchConfigurationDelegate.java | UTF-8 | 574 | 1.632813 | 2 | [] | no_license | package org.rustyclipse;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.model.LaunchConfigurationDelegate;
public class RustLaunchConfigurationDele... | true |
77c4fdaab28a63fbc11fc216cc76f93e24130c02 | Java | sunjian666/java.lang.reflect | /src/main/java/Array/GetByteAndArrayAndIndex.java | UTF-8 | 461 | 3.21875 | 3 | [] | no_license | package Array;
import java.lang.reflect.Array;
//以字节形式返回指定数组对象中的索引组件的值。
public class GetByteAndArrayAndIndex {
public static void main(String[] args) {
byte[] array = new byte[]{1,2,3};
System.out.println("array[0] = " + Array.getByte(array, 0));
System.out.println("array[1] = " + Array.g... | true |
4d49632c8a057b9bab7345ffd1b29d64a348afaf | Java | ihmcrobotics/ihmc-open-robotics-software | /ihmc-robotics-toolkit/src/main/java/us/ihmc/robotics/kinematics/ReNumericalInverseKinematicsCalculator.java | UTF-8 | 8,659 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package us.ihmc.robotics.kinematics;
import java.util.Random;
import org.ejml.data.DMatrixRMaj;
import org.ejml.dense.row.CommonOps_DDRM;
import org.ejml.dense.row.NormOps_DDRM;
import org.ejml.dense.row.factory.LinearSolverFactory_DDRM;
import org.ejml.interfaces.linsol.LinearSolverDense;
import us.ihmc.commons.Mat... | true |
25adb1d3a2c025b0f70cacc2bc5c977480b3e6f0 | Java | orb1t/FYzx | /src/physics/links/Particle.java | UTF-8 | 7,489 | 2.25 | 2 | [] | no_license | /*
* Copyright (C) 2014 F(Y)zx :
* Authored by : Jason Pollastrini aka jdub1581,
* All rights reserved.
*
* 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 3 of the License,... | true |
5adf82d67446a0f7d985fac8adc727f2f9f76877 | Java | zhubinsheng/chongwujinghua | /chongWuKongJing/app/src/main/java/com/sim/chongwukongjing/ui/bean/MQTTResult.java | UTF-8 | 1,863 | 1.984375 | 2 | [] | no_license | package com.sim.chongwukongjing.ui.bean;
import com.google.gson.annotations.SerializedName;
public class MQTTResult {
/**
* uid : 94
* rssi : -51
* type : 5678
* 0 : 0
* 1 : 1
* 2 : 1
* 3 : 3
* 4 : 3
* 5 : 0
* 6 : 0
*/
private int uid;
private int r... | true |
5d093086713f293e4f3fcf065fc78bf30af274c4 | Java | igorqueirozzz/colab | /app/src/main/java/br/com/app/colab/enumeration/PointUpdateRequestStatus.java | UTF-8 | 587 | 2.328125 | 2 | [] | no_license | package br.com.app.colab.enumeration;
import br.com.app.colab.enumeration.api.IEnumModel;
public enum PointUpdateRequestStatus implements IEnumModel {
PENDENTE(0,"PENDENTE"),
VERIFICADA(1,"VERIFICADA");
private String description;
private Integer value;
PointUpdateRequestStatus(int value, Stri... | true |
295a7ec6ae392482b6a704ee93d24eaa9f2b12af | Java | IomHamstro/Software-Engineering | /src/Main.java | UTF-8 | 163 | 2.28125 | 2 | [] | no_license | public class Main {
public static void main(String[] args) {
for(int i=0; i < 13; i++)
System.out.println("I’m watching you");
}
}
| true |
0f6d7f8c98294a79a422ce9a826e8ee630f23089 | Java | rly73/Job-App-MotiTracker | /app/src/main/java/com/example/jobappmotitracker/view/JobApplicationList.java | UTF-8 | 2,580 | 2.1875 | 2 | [] | no_license | package com.example.jobappmotitracker.view;
import android.os.AsyncTask;
import android.os.Bundle;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.example.jobappmotit... | true |
6f9c75130725c22216928e966838a950a1dba942 | Java | Yuziquan/NewsBrief | /NewsBrief/app/src/main/java/com/scnu/newsbrief/activity/SearchPageActivity.java | UTF-8 | 1,271 | 2.046875 | 2 | [] | no_license | package com.scnu.newsbrief.activity;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.scnu.newsbrief.R;
public class SearchPageActivity extends AppCompatActivity {
@Override
protected void ... | true |
037ae38b543ce2a94d4fd1d3586f3db7975f167a | Java | aisyahozami97/Final-Year-Project | /app/src/main/java/com/example/preloveditemandevent/VolunteerAdapter.java | UTF-8 | 2,770 | 2.03125 | 2 | [] | no_license | package com.example.preloveditemandevent;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.util.ArrayList;
import java.util... | true |
833404a908aa99a678487002c53899447e411196 | Java | adamfils/SchoolAssistant | /app/src/main/java/com/adamapps/coursealert/model/SearchModel.java | UTF-8 | 1,164 | 2.453125 | 2 | [] | no_license | package com.adamapps.coursealert.model;
public class SearchModel {
private String userImage;
private String userName;
private String userDescription;
private String userLevel;
public SearchModel() {
}
public SearchModel(String userImage, String userName, String userDescription, String u... | true |
fe44077e8cb6ce2fe8e7cb05e313c69d56b31956 | Java | gpruim/semic-pilot-jobmatching | /esco-job-cv-matching/src/main/java/eu/esco/demo/jobcvmatching/web/controller/JobCvMatchingController.java | UTF-8 | 4,515 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package eu.esco.demo.jobcvmatching.web.controller;
import com.google.common.collect.Sets;
import eu.esco.demo.jobcvmatching.root.graph.Edge;
import eu.esco.demo.jobcvmatching.root.graph.Graph;
import eu.esco.demo.jobcvmatching.root.graph.GraphHelper;
import eu.esco.demo.jobcvmatching.root.graph.Node;
import eu.esco.de... | true |
b84813761aabc80865bd9f27f6c26ae0e040e6b7 | Java | wesihun/ARCGIS-FOR-MEIKUANG-ZYP | /app/src/main/java/com/winto/develop/ShenBao/activity/HistoryActivity.java | UTF-8 | 1,754 | 2.03125 | 2 | [] | no_license | package com.winto.develop.ShenBao.activity;
import android.widget.ImageView;
import androidx.viewpager.widget.ViewPager;
import com.google.android.material.tabs.TabLayout;
import com.winto.develop.ShenBao.R;
import com.winto.develop.ShenBao.adapter.MyPagerAdapter;
import com.winto.develop.ShenBao.base.BaseActivity;
... | true |