language stringclasses 15
values | src_encoding stringclasses 34
values | length_bytes int64 6 7.85M | score float64 1.5 5.69 | int_score int64 2 5 | detected_licenses listlengths 0 160 | license_type stringclasses 2
values | text stringlengths 9 7.85M |
|---|---|---|---|---|---|---|---|
Java | UTF-8 | 1,152 | 2.484375 | 2 | [] | no_license | package com.jpa.domain;
import javax.persistence.*;
import java.io.Serializable;
/**
* 描述:TODO
*
* @author chhliu
*/
@Entity
@Table(name = "PERSON")
public class Person implements Serializable {
@Id
@GeneratedValue
private Integer id;
private String name;
private String address;
@OneToOne... |
JavaScript | UTF-8 | 4,636 | 2.625 | 3 | [] | no_license | import {h} from 'preact'
import {useEffect, useState} from "preact/hooks";
import {request, transform1} from "../../utils";
import message from "../../components/Message";
export default ()=> {
// 存储设备名称的对象.第二个参数是函数,用来设置值,是一个异步的函数
const [name, setName] = useState(undefined)
// 存储用密码的对象
const [password, setPa... |
Markdown | UTF-8 | 3,832 | 2.625 | 3 | [] | no_license | # Discussion
This survey shows that most rural hospitals in NZ are reliant on POC-cTn at least some of the time (overnight) and most are reliant on POC-cTn 24-hours per day.
Although a significant proportion of hospitals indicated that they have access to high-sensitivity troponin, this was a 'send away' test to a dis... |
C++ | UTF-8 | 3,944 | 2.53125 | 3 | [] | no_license | /* =============================================================================
(C): Nitish Kanabar - 2012. nitish@indigoriverllc.com
--------------------------------------------------------------------------------
class lumacu::Level1 : definitions
=============================================================... |
JavaScript | UTF-8 | 5,752 | 2.578125 | 3 | [] | no_license | import React from 'react'
import classnames from 'classnames'
import {types, defaults} from '../../mixins/textInputProps'
import textInput from '../../mixins/textInput'
import inputMessage from '../../mixins/inputMessage'
const MINUTE = 60
const HOUR = 60 * 60
const hours = (duration) => (duration - duration % HOUR)... |
PHP | UTF-8 | 2,778 | 2.609375 | 3 | [
"MIT"
] | permissive | <?php
include 'conexion.php'; // Incluimos la conexion
// Recibimos los parametros por método POST
$num = $_POST['numero'];
$pregunta = $_POST['pregunta'];
$rescor = $_POST['rc'];
$resin = $_POST['ri'];
$resin2 = $_POST['ri2'];
$resin3 = $_POST['ri3'];
$materia = $_POST['materias'];
/*
$seccion = "... |
Java | UTF-8 | 645 | 2.0625 | 2 | [] | no_license | package com.switchfully.bram.eurder.dto;
import com.switchfully.bram.eurder.instances.orders.ItemGroup;
import java.util.List;
public class CreateOrderDto {
private String customerId;
private List<ItemGroup> itemGroups;
public String getCustomerId() {
return customerId;
}
public CreateO... |
Java | UTF-8 | 1,097 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.zzq.websocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframewo... |
JavaScript | UTF-8 | 4,158 | 3.28125 | 3 | [
"MIT"
] | permissive | function ThePigDicePlayer(pigDicePlayerName, rollPigDicePoints, accumulatedRollDicePoints) {
this.pigDicePlayerName = pigDicePlayerName;
this.rollPigDicePoints = rollPigDicePoints;
this.accumulatedRollDicePoints = accumulatedRollDicePoints;
}
ThePigDicePlayer.prototype.roll = function() {
var diceNu... |
Java | UTF-8 | 1,214 | 2.234375 | 2 | [
"MIT"
] | permissive | package ledger;
import probable.DayCaretaker;
import grower.Presenter;
public class ManufacturerCase extends ledger.SummitHistories
implements java.lang.Comparable<ManufacturerCase> {
private grower.Presenter boss;
public static final java.lang.String ArseJump = "CAN_START";
public static final java.lang.St... |
Markdown | UTF-8 | 630 | 3.40625 | 3 | [
"MIT"
] | permissive | # Telelog - Log via Telegram
Sends your log to your Telegram account. Uses the Telegram Bot API.
## Setup
- Create a Bot (and get its token), see https://core.telegram.org/bots
- Start chatting with the bot (and actually send something - needed for the next step)
- To get the `CHAT_ID` send the following request:
`c... |
Java | UTF-8 | 2,170 | 2.1875 | 2 | [] | no_license | package com.aduhack.whatareyoucravingforagain.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
imp... |
Java | UTF-8 | 892 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.therandomlabs.utils.config;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.electronwill.nightconfig.core.file.CommentedFileConfig;
final class ConfigData {
final List<String> commen... |
Java | UTF-8 | 2,638 | 3.21875 | 3 | [] | no_license | package com.interview.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import java.util.List;
import java.util.Map;
/**
* Gson 简单封装的工具类.
* <p>
* 依赖:
* jdk 1.8
* GSON json 转换库
*
* @author rxliuli
*/
public final class GsonUtil {
/**
* 定义一个用于... |
C | UTF-8 | 513 | 2.6875 | 3 | [
"MIT"
] | permissive | // RUN: %ucc -o %t %s
// RUN: [ `%t | grep '^#' | wc -l` -eq 1 ]
// RUN: %t | grep -F '# 35 53'
strcmpany(char *a, char *b)
{
return (a[0] == b[0] && a[1] == b[1])
|| (a[0] == b[1] && a[1] == b[0]);
}
main()
{
printf("hex dec\n");
for(int i = 10; i < 100; i++){
char buf[2][4];
snprintf(buf[0], sizeof buf... |
Java | UTF-8 | 3,350 | 2.734375 | 3 | [] | no_license | package csv.read.dictionary;
import csv.read.BasicCsvReader;
import csv.read.dictionary.DictionaryCsvReader;
import csv.read.dictionary.DictionaryCsvReaderFactory;
import csv.read.exception.HeaderReadException;
import org.junit.Before;
import org.junit.Test;
import java.io.InputStream;
import java.util.Arrays;
impor... |
C++ | UTF-8 | 642 | 3.53125 | 4 | [] | no_license | #include <iostream>
#include <cmath>
using namespace std;
double compoundInterest(double P, double i, double n)
{
double interest = P * pow(1 + 0.01*i, n) - P;
return interest;
}
int main()
{
int principal;
double interestRate;
int numberOfYears;
cout <<"How much are you investing?\n";
c... |
PHP | UTF-8 | 6,178 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2010, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace lithium\g11n;
use \lithium\core\Environment;
use \lithium\util\String;
use \lithium\g11n\Locale;
u... |
C# | UTF-8 | 902 | 2.796875 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Data.Entity;
namespace EF6_DotNetStandard.EF
{
public class BlogDBInitializer : DropCreateDatabaseAlways<BloggingDbContext>
{
public BlogDBInitializer()
{
Console.WriteLine("Creating new database now...");
}
... |
Python | UTF-8 | 1,019 | 2.765625 | 3 | [] | no_license | from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0
from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0
import time
driver = webdriver.Firefox()
driver.get("http://ww... |
Java | UTF-8 | 2,150 | 2.46875 | 2 | [] | no_license | package org.ksmart.franchise.head.stock.controller;
import java.util.List;
import org.apache.log4j.Logger;
import org.ksmart.franchise.head.stock.model.Stock;
import org.ksmart.franchise.head.stock.service.StockService;
import org.ksmart.franchise.head.util.Search;
import org.springframework.beans.factory.annotation.... |
PHP | UTF-8 | 1,162 | 2.546875 | 3 | [] | no_license | <?php
namespace Home\Model;
use Think\Model;
class LogisticsModel extends Model {
public function getLogisticsId($data,$userId){
$where=array();
$where['logistics_company_name']=trim($data['companyName']);
$where['logistics_receiver']=trim($data['receiver']);
$where['logistics_receiver_phone']=trim($data['r... |
Java | UTF-8 | 849 | 2.015625 | 2 | [] | no_license | package com.springboot.repository;
import com.springboot.Application;
import com.springboot.model.Shipwreck;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.tes... |
C | UTF-8 | 1,085 | 3.578125 | 4 | [] | no_license | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "queue.h"
#define MAXS 1000
void esPalindromo(TStack* stack, TQueue* queue) {
char a, b;
while(!Stack_isEmpty(stack)) {
a = Stack_pop(stack);
b = Queue_dequeue(queue);
if(a != b) {
... |
Markdown | UTF-8 | 4,412 | 2.65625 | 3 | [] | no_license | ---
description: "Step-by-Step Guide to Prepare Award-winning Cheese n garlic biscuits"
title: "Step-by-Step Guide to Prepare Award-winning Cheese n garlic biscuits"
slug: 1256-step-by-step-guide-to-prepare-award-winning-cheese-n-garlic-biscuits
date: 2020-07-28T16:12:04.591Z
image: https://img-global.cpcdn.com/recipes... |
PHP | UTF-8 | 1,143 | 2.5625 | 3 | [] | no_license | <?php
session_start();
if (!(is_numeric($_SESSION['uida']) && $_SESSION['uida'] > 0)) exit();
session_write_close();
$path = "uploads/";
$valid_formats = array("jpg", "png", "gif","jpeg");
if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST")
{
$name = $_FILES['photoimg']['name'];
$size = $_FILES['photoimg']['... |
JavaScript | UTF-8 | 2,361 | 2.546875 | 3 | [] | no_license | import React, { Component } from 'react';
import Login from './Login';
import mySocket from 'socket.io-client';//importing socket packege
class Signup extends Component {
constructor(props){
super(props);
this.state={
username: "",
password: "",
changeToSignIn: f... |
JavaScript | UTF-8 | 1,058 | 2.84375 | 3 | [] | no_license | import React,{useState} from 'react'
import styles from './App.module.css';
//Display component is build to show the button and onhover show the tooltip.
const Display = ({top, left}) => {
//creating the state display to show the tooltip if true and setDisplay to change its value on hover
const [display, setD... |
Swift | UTF-8 | 1,744 | 2.765625 | 3 | [] | no_license | //
// MovieDetailsViewController.swift
// MovieFinder
//
// Created by apple on 01/04/21.
//
import UIKit
final class MovieDetailsViewController: UIViewController {
var presenter: MovieDetailsPresenter?
@IBOutlet weak var directors: UILabel!
@IBOutlet weak var writers: UILabel!
@IBOutlet weak var ... |
C | UTF-8 | 424 | 3.78125 | 4 | [] | no_license | #include<stdio.h>
typedef unsigned int UINT ;
int CountOne(UINT iNo);
int main()
{
int iNo=0,iRet=0;
printf("Enter A Number ");
scanf("%d",&iNo);
iRet=CountOne(iNo);
printf("Number of Bit is One Count :%d",iRet);
return 0;
}
int CountOne(UINT iNo)
{
int iCount=0;
while (iNo != 0)
{
... |
C# | UTF-8 | 16,251 | 2.921875 | 3 | [
"MIT"
] | permissive | using System;
using System.Threading.Tasks;
namespace W.IO.Pipes
{
/// <summary>
/// Read/Write functionality for Pipe
/// </summary>
public static class PipeReadWriteExtensions
{
//#region Read/Write
///// <summary>
///// Write an array of bytes to the pipe
///// <... |
C | UTF-8 | 2,320 | 3.015625 | 3 | [] | no_license | #include <stdio.h>
#include <stdlib.h>
#include "LinkedList.h"
#include "Employee.h"
/** \brief Parsea los datos los datos de los empleados desde el archivo data.csv (modo texto).
*
* \param path char*
* \param pArrayListEmployee LinkedList*
* \return int
*
*/
int parser_PeliculaFromText(FILE* pFile, LinkedList*... |
C++ | UTF-8 | 1,685 | 2.703125 | 3 | [] | no_license | #include "StdAfx.h"
#include "MFCExt.h"
void delay(long ms) // Zeit im ms
{
#ifndef WIN32
clock_t cl;
cl=clock();
while (1000.0*(double)(clock()-cl)/(double)CLOCKS_PER_SEC<(double)ms);
#else
HANDLE wait_timer;
MSG message;
if (ms>0)
{
wait_timer=CreateWaitableTimer(NULL,TRUE,NULL);
WaitForSingleObje... |
Python | UTF-8 | 1,059 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env python3
import base64
import os
import requests
from hashlib import sha1
import shutil
sha1_list = []
workdir = "pictures"
url = "http://pictures-storage-service:80/pictures"
for item_file in os.listdir("pictures"):
with open("pictures/" + item_file, "rb") as image_file:
image_file_read =... |
C++ | UTF-8 | 555 | 3.078125 | 3 | [] | no_license | #include <iostream>
using namespace std;
int rectCover(int number) {
if(number==0)
return 0;
if(number==1)
return 1;
int prevalue=1;
int preprevalue=1;
int value;
for(int i=2;i<=number;i++)
{
value=prevalue+preprevalue;
... |
Java | UTF-8 | 6,376 | 1.9375 | 2 | [] | no_license | package com.example.programmers.fyp;
import android.annotation.TargetApi;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
impor... |
PHP | UTF-8 | 802 | 2.609375 | 3 | [] | no_license | <?php
class Dynamic_menus {
private $ci;
public function __construct()
{
$this->ci =& get_instance();
$this->ci->load->model('Menu_model');
}
public function generate()
{
$mainmenus = $this->ci->Menu_model->getMain();
$result = array();
foreach ($mainmenus as $key => $mainmenu) {
$resul... |
Rust | UTF-8 | 491 | 2.84375 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | use std::fmt;
#[derive(Debug)]
pub struct ChromaticPropertiesError {
pub message: String,
}
impl ChromaticPropertiesError {
pub fn new(message: impl AsRef<str>) -> Self {
ChromaticPropertiesError {
message: String::from(message.as_ref()),
}
}
}
impl fmt::Display for ChromaticP... |
C# | UTF-8 | 1,997 | 2.546875 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClinicaFrba
{
class ComprarBonoController
{
private ComprarBono form;
private PlanMedico planMedicoUsuario;
public ComprarBonoController(ComprarBono form)
... |
Shell | UTF-8 | 3,543 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
PAIRS_CONFIG_PATH=~/.gitpairables
if which tput >/dev/null 2>&1; then
bold=$(tput bold)
normal=$(tput sgr0)
fi
git_pair_help () {
echo "Usage:"
echo " git pair [ list | add | reset | show | help ]"
echo " git pair set <nickname-1> [<nickname-2> ... <nickname-n>]"
echo
echo "Commands:"
e... |
Java | UTF-8 | 668 | 2.34375 | 2 | [] | no_license | package org.shivas.common.statistics;
public interface Characteristic {
CharacteristicType type();
short base();
void base(short base);
void plusBase(short base);
void minusBase(short minus);
short equipment();
void equipment(short equipment);
void plusEquipment(short equipment);
void minusEq... |
C++ | UTF-8 | 3,534 | 2.671875 | 3 | [] | no_license | #include "corruptioninfo.h"
CorruptionInfo::CorruptionInfo()
{
m_outfile = "";
m_type = CorruptionType::None;
m_step = 0;
m_start = 0;
m_end = std::numeric_limits<uint32_t>::max();
m_value = 0;
m_list = false;
}
CorruptionInfo::CorruptionInfo(std::vector<std::string>& args)
{
// Set default values... |
Ruby | UTF-8 | 241 | 3.84375 | 4 | [] | no_license | puts "What is your first name?"
first_name = gets.chomp
puts "What is your last name?"
last_name = gets.chomp
puts "Your full name is #{first_name} #{last_name}"
puts "Enter a number to multiply by 2"
input = gets.chomp
puts input.to_i * 2
|
SQL | UTF-8 | 4,181 | 4.3125 | 4 | [] | no_license | /**create database movieapp;*/
use movieapp;
create table person(ActorID varchar(9), CastName varchar(255), Height double, Birthday varchar(10), PlaceOfBirth varchar(255), DateOfDeath varchar(10), MainOccupation varchar(255), KnownForTitles varchar(255), primary key(ActorID));
create table movie(ID varchar(9), Title... |
C# | UTF-8 | 659 | 2.5625 | 3 | [
"MIT"
] | permissive | using Microsoft.Extensions.Configuration;
namespace Taml.Configuration
{
/// <summary>
/// Represents a Taml file as an <see cref="IConfigurationSource"/>.
/// </summary>
public class TamlConfigurationSource : FileConfigurationSource
{
/// <summary>
/// Builds the <see cref="TamlConfigurationProvider"/> for t... |
C++ | SHIFT_JIS | 6,349 | 2.953125 | 3 | [] | no_license | /****************************************
LLGMN̎
******************************************/
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <random>
#include <algorithm>
#include <cmath>
#include "tdata_class.h"
#include "function.h"
using namespace std;
//`d... |
TypeScript | UTF-8 | 6,329 | 2.625 | 3 | [
"MIT"
] | permissive | /// <reference path="./mediaRecorder.d.ts" />
// angular
import {Injectable} from '@angular/core';
import {WindowService} from '../../core/index';
import {SmartArray} from './SmartArray';
//avalon
import {WebMicrophoneService} from '../index';
import {Observable} from 'rxjs/Observable';
import {Subscriber} from 'rxjs/... |
C# | UTF-8 | 783 | 2.8125 | 3 | [
"BSD-3-Clause",
"MS-PL"
] | permissive | using GameObjects.TroopDetail;
namespace GameObjects
{
public class PathCacheKey
{
public Architecture a1;
public Architecture a2;
public MilitaryKind k;
public PathCacheKey(Architecture a1, Architecture a2, MilitaryKind k)
{
this.a1 = a1;
this... |
Java | UTF-8 | 7,067 | 2.96875 | 3 | [] | no_license | import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
/**
* Class to handle SQL operations
*
* @author Michael Norton
* @version 1.0
*
*/
public class S... |
Markdown | UTF-8 | 1,533 | 2.609375 | 3 | [] | no_license | ## Writable etc/passwd file
This is a List of CTF Challenges in which privilege Escalation would be done because the etc/passwd file is Writable. Clicking on the Lab Name, will redirect you to the writeup of that particular lab on [hackingarticles](https://www.hackingarticles.in). We have performed and compiled this l... |
Markdown | UTF-8 | 834 | 3.28125 | 3 | [
"MIT"
] | permissive | # css-effects #
**css-effects** library emulates some of common jQuery animations, such as fadeIn(), slideUp(), slideDown(), etc.
The effects included within the library are the following:
- `.fadeIn`
- `.slideUp`
- `.slideDown`
- `.slideLeft`
- `.slideRight`
- `.expandOpen`
- `.expandUp`
## How to use ##
Using the... |
PHP | UTF-8 | 3,392 | 3.1875 | 3 | [] | no_license | <?php
/**
* Checks the application configuration to determine which modules/actions are supposed
* to be secure and ensures they are using https. This filter will also redirect https
* requests to non-secured pages back to http if the strict option is set in the configuration
* file.
*
* @author Casey Cambra <c... |
Java | UTF-8 | 2,946 | 2.4375 | 2 | [
"BSD-3-Clause"
] | permissive | package com.programmerdan.minecraft.simpleadminhacks.hacks.basic;
import co.aikar.commands.BaseCommand;
import co.aikar.commands.annotation.CommandAlias;
import co.aikar.commands.annotation.CommandPermission;
import com.programmerdan.minecraft.banstick.BanStick;
import com.programmerdan.minecraft.banstick.handler.BanS... |
Java | UTF-8 | 13,757 | 2.3125 | 2 | [] | no_license | package com.youyou.math;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
public class MathGenApp {
private static JFrame f... |
Java | UTF-8 | 2,387 | 2.328125 | 2 | [
"MIT"
] | permissive | package li.vin.netv2;
import android.support.annotation.NonNull;
import com.google.gson.Gson;
import java.text.SimpleDateFormat;
import li.vin.netv2.model.misc.IsoDateFormat;
import li.vin.netv2.model.misc.StrictGson;
import li.vin.netv2.request.VinliRequest;
import li.vin.netv2.util.Lazy;
import rx.functions.Func0;
... |
Python | UTF-8 | 556 | 3.28125 | 3 | [] | no_license | input_string=input()
inp_list=list(input_string)
dup_list=inp_list[:]
empty_list=[]
list_len=len(dup_list)
vowels=['a','e','i','o','u']
for i in range(0,list_len):
if dup_list[i] in vowels:
if i==0:
empty_list.append(inp_list[i+1])
elif i==list_len-1:
empty_list.append(inp_li... |
Java | UTF-8 | 7,196 | 2.109375 | 2 | [] | no_license | package com.atguigu.gmall.manager;
import com.alibaba.fastjson.JSON;
import com.atguigu.gmall.manager.constant.RedisCacheKeyConst;
import com.atguigu.gmall.manager.mapper.BaseCatalog1Mapper;
import com.atguigu.gmall.manager.mapper.UserMapper;
import com.atguigu.gmall.manager.sku.SkuAttrValue;
import com.atguigu.gmall.... |
Markdown | UTF-8 | 1,942 | 2.78125 | 3 | [
"MIT"
] | permissive | # iox9
Framework for user flows monitoring in establishments.
## Branches organization
``master``: the IOx9 framework release branch
``iox9-dev``: the IOx9 framework development branch
``rapx9-dev``: the RAPx9 application development branch
## Framework workflow
You have things that capture data which contain an i... |
Java | UTF-8 | 1,780 | 3.546875 | 4 | [] | no_license | package visulas;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class MessageBar {
private JLabel text;
private JLabel progress;
private JLabel background;
/**
* creates a message field where the message can be displayed and progress can be shown
* @para... |
Swift | UTF-8 | 1,165 | 2.890625 | 3 | [] | no_license | //
// Mission.swift
// CryptoniteCev
//
// Created by alumnos on 09/03/2021.
// Copyright © 2021 user177257. All rights reserved.
//
import Foundation
import UIKit
class Mission{
private var _id : Int
private var _icon : UIImage
private var _description : String
private var _isFinished : Int
... |
C++ | UTF-8 | 367 | 2.8125 | 3 | [] | no_license | #ifndef _VECTOR3_H_
#define _VECTOR3_H_
#include "Vector2.h"
namespace Engine {
struct Vector3 {
float x, y, z;
Vector3() : x(0), y(0), z(0) {};
explicit Vector3(float xv, float yv, float zv) : x(xv), y(yv), z(zv) {};
explicit Vector3(const Vector2& v) : x(v.x), y(v.y), z(0) {};
inline operator Vector2 (... |
Java | UTF-8 | 4,333 | 3.25 | 3 | [] | no_license | package com.techproed;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.Assert;
import org.junit.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.Set;
import java.util.concu... |
Java | UTF-8 | 4,294 | 2.375 | 2 | [] | no_license | package Entity;
// default package
// Generated 4-Nov-2016 9:50:44 PM by Hibernate Tools 4.3.1.Final
import java.util.List;
import javax.naming.InitialContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Session;
i... |
Markdown | UTF-8 | 14,277 | 3.5625 | 4 | [
"MIT"
] | permissive | <h1 align = "center">实验三. 频率计设计实验报告</h1>
<h5 align = "center">无58 吴昆 2015010625</h5>
## 一、实验目的:
1. 掌握频率计的原理和设计方法。
## 二、设计:
### 0. 管脚替换说明
要求开关SW7和LED7分别为高量程选择与指示灯,由于SW7接触不良,现替换为SW8(V2)和LED8(V13),括号内为对应管脚。
### 1. 原理
频率计内部实现框图如下所示,其内部包括频率量程处理模块(10分频)、时钟频率产
生模块、控制信号产生模块、十进制计数器模块、锁存器模块、译码显示模块等。:

利用系统时钟产生... |
Markdown | UTF-8 | 1,487 | 2.859375 | 3 | [] | no_license | # Article 18
Lorsque les dispositions applicables à la forme sociale choisie n'imposent pas la constitution d'un conseil d'administration ou d'un conseil de surveillance, il est institué un conseil de surveillance. Ce conseil est élu par l'assemblée générale parmi les associés. Les dirigeants sociaux, leur conjoint et... |
Java | UTF-8 | 7,424 | 2.375 | 2 | [] | no_license | package htw.controls;
// <editor-fold defaultstate="collapsed" desc="Imports">
import htw.*;
import htw.resources.Images;
import java.awt.Component;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.EventObjec... |
Java | UTF-8 | 1,360 | 2.375 | 2 | [] | no_license | package com.qtk.tcpclient;
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 java.util.ArrayList;
/**
* Created by Jack on 2018-01-19.
*/
public class ClientListAdap... |
Markdown | UTF-8 | 2,671 | 3.21875 | 3 | [] | no_license | # <center>SARVA Yoga - Backend Technical Exercise</center>
Thanks for interviewing with us @ SARVA Yoga, to better assess your skills and experience, we would like you to take this short technical exercise.
Please follow the following instructions to complete your exercise.
1. Create a new private repository (GitHub... |
Java | UTF-8 | 532 | 2.71875 | 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 blackjack;
/**
*
* @author gubotdev
*/
public class Card {
//identifiers for each cards value and type
public final... |
C# | UTF-8 | 1,795 | 3.3125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using RobotArm.Interfaces;
namespace RobotArm.Helpers
{
public static class Helper
{
public static bool Between(this double num, double lower, double upper, bool inclusive = false) {
upper += 0.000001;
lower -= 0.000001;
return... |
PHP | UTF-8 | 707 | 2.78125 | 3 | [] | no_license | <?php namespace LLPM\Users;
use Laracasts\Commander\CommandHandler;
use Laracasts\Commander\Events\DispatchableTrait;
use LLPM\Repositories\RoleRepository;
use Role;
class RegisterRoleCommandHandler implements CommandHandler {
use DispatchableTrait;
protected $roleRepository;
function __construct(RoleRepository... |
PHP | UTF-8 | 170 | 2.625 | 3 | [] | no_license | <?php
namespace Shopex\Encrypt;
interface AdaptarInterface
{
public function encrypt($key, $stringToEncrypt);
public function decrypt($key, $stringToDecrypt);
}
|
Markdown | UTF-8 | 5,467 | 3.921875 | 4 | [] | no_license | 二
§第一章 女婴
“暗号”的故事告一段落,将来的发展如何,谁也不能预测。事实是,二活佛转世灵童的确立,遥遥无期。若有人告诉我,说这件事就此不了了之,我也不会太奇怪。但推测最大的可能,是装模作样一番,表示找到了,做一场热热闹闹的戏,反正一切全在控制之下,受牵线人牵扯的傀儡,是甚么形状,都不重要。
和“暗号”相仿的是“密码”,我有一个有关密码的故事——那不是普通的密码,而是和一切生物有关的生命密码。这个密码的重要性,无可比拟,或者说,只有生命本身,才能比拟。
有一些现象,十分神奇,也大是有趣。所谓生命密码,自然是一连串的数字所组成。而在中国传统的玄学上,许多和命运有关的运算和推测,也由一连串的... |
TypeScript | UTF-8 | 307 | 3.625 | 4 | [] | no_license | /* Given a string, compute recursively
a new string where all the lowercase 'x'
chars have been changed to 'y' chars */
function xToy(str: string): string {
if (!str.includes('x')) {
return str;
}
return xToy(str.replace('x', 'y'));
}
console.log(xToy('excuse me are you an ex-xibashton?'));
|
Java | UTF-8 | 410 | 1.75 | 2 | [] | no_license | package com.hc360.koiambuyer.myinterface.iview;
import com.hc360.koiambuyer.api.bean.AddressInfo;
/**
* Project: IAmBuyer
* Author: 张佳林
* Version: 1.0
* Date: 2017/10/16
* Modify: //TODO
* Description: //TODO
* Copyright notice:
*/
public interface IEditShipAddressView {
void getAddress(AddressInf... |
Markdown | UTF-8 | 18,821 | 3.171875 | 3 | [
"MIT"
] | permissive | ---
layout: post
title: 【文章】互联网产品设计之可用性
summary: 可用性定义:产品可用性也叫用户可用性,是指产品真正能够提供客户功能信息的实用性。假设所有的功能都是没问题的,那接下来的工作就是确保它能够按用户期望的方式行事。
featured-img: sleek
---
本文在“人人都是产品经理”网站的文章发布地址是:[http://www.woshipm.com/pd/852792.html](http://www.woshipm.com/pd/852792.html)
*可用性定义:产品可用性也叫用户可用性,是指产品真正能够提供客户功能信息的实用性。假设所有的功能都是没问题的,那接下来的工作... |
Python | UTF-8 | 858 | 3.96875 | 4 | [] | no_license | # 希尔排序,插入排序的改进版本,增加了gap
def shell_sort(alist):
"""希尔排序算法"""
n = len(alist)
# 特殊情况,只有一个数
if n <= 1:
return
gap = n // 2 # n//2 是对结果取整数部分
while gap >= 1: # gap变化到0之前,插入算法的执行次数
# 以下是插入算法,与普通插入算法的区别就是gap步长
for j in range(gap, n):
i = j
... |
Java | UTF-8 | 6,112 | 1.851563 | 2 | [] | no_license | package com.pro.test.core.vo;
import com.pro.test.web.entity.TbHxpArticle;
import com.pro.test.web.entity.TbHxpTags;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* Created by hxpeng on 2016/10/17.
*/
public class TbHxpArticleVo implements Serializable {
private static final l... |
C# | UTF-8 | 5,818 | 3.15625 | 3 | [] | no_license | using Xunit;
using AOC2020.Search;
using System;
using System.Linq;
namespace AOC2020.Tests
{
public class GraphSearchTests
{
private const string _acyclicGraph = @"1: 2 3
2: 4 5
3: 6 7";
private const string _cyclicGraph = @"1: 2 3
2: 4 5
3: 6 7
7: 1 2";
[Fact]
public void sh... |
Markdown | UTF-8 | 2,186 | 2.96875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ---
title: Clearing Browser Cache
taxonomy:
category: docs
---
After upgrading EPESI to the latest version some cached files (javascript, css) may not update. When using old version of files the layout may be broken or an application is not working correctly. **Clearing your browser cache** will cause the browser ... |
Markdown | UTF-8 | 1,219 | 2.984375 | 3 | [] | no_license | # What is an OS
Created 12/03/2016
---
##### 1.2.4 Interrupts
Hardware signals which are sent to the CPU by the devices it is connected to. They interrupt the CPU from what it is doing and demand that it spend a few colock cycles servicing a request.
Interrupts have `levels`, high level interrupt can interrupt low ... |
Markdown | UTF-8 | 1,046 | 3.203125 | 3 | [] | no_license | # jHTML2Md
A simple converter from HTML to Markdown in Java.
I created this project for importing notes on Capsa Notes.
Currently it hasn't any options. I plan to add different markdown styles (Headers using # instead of underline =, for example).
## How to use it:
It's pretty simple, first add jSoup to the classpa... |
Java | UTF-8 | 1,169 | 1.890625 | 2 | [
"MIT"
] | permissive | package com.seezoon.dao.modules.sys.entity;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import com.seezoon.dao.framework.entity.PageCondition;
import com.seezoon.dao.framework.sort.annotation.SortField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
... |
JavaScript | UTF-8 | 794 | 2.5625 | 3 | [] | no_license | import React, { useState, useEffect } from "react";
import "./styles.css";
import Navbar from "./comps/Navbar";
import API from "./API";
import MoviesGrid from "./comps/MoviesGrid";
export default function App() {
const [genres, setGenres] = useState([]);
const [movies, setMovies] = useState([]);
const [activeGe... |
Shell | UTF-8 | 347 | 2.703125 | 3 | [] | no_license | #!/bin/bash
# Written by Etienne Laurin
# Let's code for the blackberry!
APPNAME="`basename "$1" .jar`"
RAPC=/home/atnnn/blackberry/JDE-4.5/MDS/classpath/rapc.jar
RIM=/home/atnnn/blackberry/JDE-4.5/lib
JAD=
if test -f "$APPNAME".jad; then
JAD=jad="$APPNAME".jad
fi
java -jar $RAPC import=$RIM/net_rim_api.jar cod... |
JavaScript | UTF-8 | 1,033 | 2.875 | 3 | [] | no_license | import React, { Component } from 'react';
import SushiContainer from './containers/SushiContainer';
import Table from './containers/Table';
// Endpoint!
const API = "http://localhost:3000/sushis"
class App extends Component {
state = {
sushis: [],
plates: [],
budget: 100
}
getSushis = () => fetch(... |
Java | UTF-8 | 2,130 | 2.078125 | 2 | [] | no_license | package net.skhu.domain;
import java.time.LocalDateTime;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persiste... |
Go | UTF-8 | 523 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | package main
import (
"fmt"
)
func SplitValues(f func(sum int) (int, int)) {
x, y := f(50)
fmt.Println(x, y)
}
func main() {
// Initialise some arbitrary values
a, b := 5, 8
// a function value
fn := func(sum int) (int, int) {
x := sum * a / b
y := sum - x
return x, y
}
// Passing function value as a... |
Python | UTF-8 | 1,799 | 4.0625 | 4 | [] | no_license | from math import ceil
from unittest import TestCase
BITS_PER_INT = 32
class BitArray:
"""
BitArray is a space efficient array that holds a value of 1 or 0 at each index.
"""
def __init__(self, size: int) -> None:
self._size = size
self._list = [0] * ceil(size / BITS_PER_INT)
def... |
Markdown | UTF-8 | 656 | 2.515625 | 3 | [] | no_license | # nodebackup
Create backup files with node.js application
To start the app:
1. Install packages: npm install
2. Install ruby
3. Install compass (gem install compass)
4. Run 'grunt' command first to generate the folders properly.
5. Run grunt watch: 'grunt watch' to autocompile the scss files on change. OR 6.
6. Instal... |
Swift | UTF-8 | 517 | 2.90625 | 3 | [] | no_license | //
// UnzipService.swift
// ZipDownload
//
// Created by Duncan MacDonald on 11/3/17.
// Copyright © 2017 Duncan MacDonald. All rights reserved.
//
import Foundation
import Zip
class UnzipService {
static func unzip(url: URL, name: String, completion: @escaping (URL) -> Void) {
Zip.addCustomFileE... |
PHP | UTF-8 | 1,708 | 2.53125 | 3 | [] | no_license | <?php
namespace App\FrontModule\Presenters;
use App\Model\ArticleManager;
use App\Model\UserManager;
use App\Model\ProjectManager;
use Nette\Application\BadRequestException;
use Nette\Application\UI\Presenter;
use Nette\Security\User;
class DefaultPresenter extends BasePresenter
{
public $articleManager;
/**
* @... |
C | UTF-8 | 878 | 3.1875 | 3 | [
"BSD-3-Clause"
] | permissive | /*
* Funny Language - a free style programming language.
* Copyright (C) 2015 by fanguangping (fanguangping@163.com)
* queue.h
*/
#ifndef QUEUE_H_
#define QUEUE_H_
typedef struct _QueueNode {
void *element;
struct _QueueNode *next;
} QueueNode;
typedef struct _Queue {
struct _QueueNode *head;
struct _QueueNo... |
Java | UTF-8 | 534 | 1.59375 | 2 | [] | no_license | package com.path.dao.core.cifrelation;
import java.util.List;
import com.path.dbmaps.vo.RELATION_BETWEEN_CIFSVO;
import com.path.lib.common.exception.DAOException;
import com.path.vo.core.cifrelation.CifRelationSC;
public interface CifRelationDAO
{
public int cifRelationListCount(CifRelationSC criteria) t... |
Swift | UTF-8 | 1,487 | 2.53125 | 3 | [] | no_license | //
// Dialog.swift
// Dialog
//
// Created by zhuxuhong on 2018/3/14.
// Copyright © 2018年 zhuxuhong. All rights reserved.
//
import UIKit
public struct Dialog {
public static func dismiss(completion: (() -> Void)?){
if let vc = DialogTool.topViewControllerOfApplicationKeyWindow, vc.isKind(of: DialogV... |
JavaScript | UHC | 145 | 2.546875 | 3 | [] | no_license | var fs = require('fs');
fs.writeFileSync("food.text"," ڰ ƿ ");
console.log(fs.readFileSync("food.txt").toString()); |
Python | UTF-8 | 1,646 | 2.890625 | 3 | [] | no_license |
# coding: utf-8
# In[94]:
import numpy as np
import matplotlib.pyplot as plt
from bokeh.plotting import figure, show, output_file
from bokeh.models import Circle, ColumnDataSource, Line, Span, LinearAxis, Range1d, CategoricalColorMapper
import pandas as pd
import math
Dataset = pd.read_csv('DWH_Training.csv',hea... |
Python | UTF-8 | 1,217 | 3.328125 | 3 | [] | no_license | #!/usr/bin/python3
import argparse
import re
# Setup the arg parser
parser = argparse.ArgumentParser()
parser.add_argument("time", type=str, help="colon separated time")
parser.add_argument(
"-f", "--framerate", type=int, help="30", default=30, choices=[24, 25, 29, 30, 60]
)
args = parser.parse_args()
# Setup ... |
SQL | UTF-8 | 9,407 | 3.234375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Sep 04, 2020 at 11:01 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
JavaScript | UTF-8 | 626 | 3.09375 | 3 | [] | no_license | document.addEventListener("DOMContentLoaded", init);
function init() {
var text = "<p>Please visit <a href=\"http://academy.telerik.com\">our site</a> to choose a training course." +
" Also visit <a href=\"www.devbg.org\">our forum</a> to discuss the courses.</p>";
var modifiedText = replaceAnchor(text);
showMess... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.