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 |
|---|---|---|---|---|---|---|---|
Shell | UTF-8 | 1,400 | 2.734375 | 3 | [] | no_license | #!/bin/sh -f
# qsub STAR_2pass.pbs
#PBS -l nodes=1:ppn=20
##PBS -l pmem=1gb
#PBS -A open
#PBS -l walltime=23:50:00
#PBS -j oe
#PBS -o STAR_2pass.out
#PBS -N STAR_2pass
#PBS -M juc326@psu.edu
#PBS -m abe
#######################################
module load gcc/5.3.1 samtools/0.1.19 bedtools/2.26.0
export PATH=~/work/ST... |
JavaScript | UTF-8 | 8,342 | 2.609375 | 3 | [] | no_license | //alert("math")
function math_fun(visual){
switch(visual){
case 1:
clear(view);
test_display();
scale_()
stair_step()
math_ksur()
math_ttva()
math_test()
break;
case 2:
clear(view);
test_display();
scale_()
stair_step_w()
math_ttva_w()
math_test()
break;}
}
function math(visual){
switch(visual){
case 1:
da... |
C++ | UTF-8 | 541 | 3 | 3 | [
"MIT"
] | permissive | //向量vector
#include"iostream"
#include"vector"
using namespace std;
int main()
{
vector<int>v1,v2;
int a[]={1949,10,1},i;
vector<int>::iterator It;
v1.assign(a,a+3);
v2.assign(3,10);
for(i=1;i<=5;i++)
v1.push_back(i);
v1.pop_back();
v1.front()-=v1.back();
for(It=v1.begin();It<v1.end();It++)
v2.push_back(*I... |
C++ | UTF-8 | 624 | 3.234375 | 3 | [] | no_license | #ifndef __TOOLARGEARGUMENT_HPP__
#define __TOOLARGEARGUMENT_HPP__
#include "BaseInclude.hpp"
class TooLargeArgumentException : public std::exception
{
std::string msg_;
public:
TooLargeArgumentException(const size_t &pos, const size_t &val, const size_t &max_val)
{
this->msg_ = "Format ... |
C++ | GB18030 | 801 | 2.53125 | 3 | [] | no_license | #ifndef SDL_COMMONINCLUDE_H
#define SDL_COMMONINCLUDE_H
#define _SDL_DEBUG
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <string>
using std::string;
//ͷļ
#ifdef _SDL_DEBUG
#include <iostream>
using std::cout;
using std::endl;
#endif
//ͨñ
extern int SCREEN_WIDTH;
extern int SCREEN_HEIGHT;
const in... |
C# | UTF-8 | 543 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | namespace Pims.Api.Mapping.Converters
{
/// <summary>
/// ParcelConverter static class, provides converters for parcels.
/// </summary>
public static class ParcelConverter
{
/// <summary>
/// Convert the formatted PID string into a number.
/// </summary>
/// <param na... |
Java | UTF-8 | 1,047 | 2.640625 | 3 | [] | no_license | package com.worldtechq.blog.Helper;
import com.google.firebase.database.Exclude;
public class Upload {
private String mname;
private String murl;
//create variable to access the database unique key for image.
private String mkey;
public Upload() {
//empty constructor needed
}
pub... |
C | UTF-8 | 1,372 | 4.09375 | 4 | [] | no_license | #include <stdio.h>
#include "pilha.h"
/*Função para criar uma pilha!*/
Pilha* create_stack (int tam) {
Pilha *p = (Pilha *)malloc(sizeof(Pilha));
p->topo = 0;
p->tam = tam;
p->vetor = (int *)malloc(tam * sizeof(int));
return p;
}
/* Função para inverter uma pilha */
Pilha* reverse_stack (Pilha *original) {
... |
Java | UTF-8 | 151 | 1.804688 | 2 | [] | no_license | package com.demo.osl.rick.Bean;
public class MainMessage extends EventBean {
public MainMessage(String message) {
super(message);
}
}
|
C | UTF-8 | 2,233 | 3.09375 | 3 | [] | no_license | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* push_swap_best_pos.c :+: :+: :+: ... |
C# | UTF-8 | 424 | 2.5625 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace tut2
{
public class ActualParkType
{
private int _myType;
public int MyType
{
get => default(int);
set
{
}
}
... |
Java | UTF-8 | 1,177 | 2.21875 | 2 | [] | no_license | package com.switchfully.orderfromscratch.api;
import com.switchfully.orderfromscratch.service.CustomerService;
import com.switchfully.orderfromscratch.service.dto.GetCustomerDto;
import com.switchfully.orderfromscratch.service.dto.CustomerDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... |
Markdown | UTF-8 | 9,084 | 2.9375 | 3 | [] | no_license | # restful-api-examples
Examples of how to make RESTful API calls and create server-side web API's from Debian-based systems using different languages and bindings.
These examples and files aren't necesserily exclusive to Debian-based systems, but the aptitude (apt) packaging system is. In order to install some of thes... |
Java | UTF-8 | 1,255 | 2.1875 | 2 | [] | no_license | package com.zhifeng.cattle.adapters;
import android.content.Context;
import android.widget.ImageView;
import com.lgh.huanglib.util.config.GlideUtil;
import com.zhifeng.cattle.R;
import com.zhifeng.cattle.modules.OrderListDto;
/**
*
* @ClassName: 退货列表商品适配器
* @Description:
* @Author: lgh
* @Create... |
C | UTF-8 | 10,616 | 3.28125 | 3 | [] | no_license | #include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <sys/times.h>
#define CLK sysconf(_SC_CLK_TCK)
void generate(FILE **file1, size_t size, size_t nmemb) { // size - size of records, nmemb - number of records
if((*file1) == NULL) {
p... |
C++ | UTF-8 | 2,128 | 3.453125 | 3 | [] | no_license | #include <iostream>
#include <string>
#include <memory>
#include <vector>
#include <sstream>
#include <cmath>
#include <math.h>
#include <iomanip>
using namespace std;
class Figure {
public:
virtual double Perimeter() const = 0;
virtual double Area() const = 0;
virtual string Name() const = 0;
};
class Rect : ... |
Python | UTF-8 | 291 | 3.71875 | 4 | [] | no_license | numberA = float(500)
numberB = float(100)
plus = numberA+numberB
minus = numberA-numberB
multiple = numberA*numberB
divis = numberA/numberB
print(numberA,"+",numberB,"=",plus)
print(numberA,"-",numberB,"=",minus)
print(numberA,"*",numberB,"=",multiple)
print(numberA,"/",numberB,"=",divis)
|
JavaScript | UTF-8 | 1,299 | 3.1875 | 3 | [] | no_license | const readline = require('readline');
const yargs = require('yargs');
const rl = readline.createInterface({
input : process.stdin,
output : process.stdout,
terminal:false
});
const note = require('./note.js');
console.log("STARTING NOTE APP");
var argv = yargs.argv;
rl.on('line',(data)=>{
if(d... |
PHP | UTF-8 | 1,892 | 2.65625 | 3 | [] | no_license | <?php
class Mdelivery extends Models {
public function __construct(){
parent::__construct();
}
public function processDelivery( $dataProc ){
try {
$stmt2 = $this->db()->prepare("CALL `_proses_delivery_apk_detail` ( ?, ?, ?, ?, ?, ?, ?, ?, ?)");
$stmt2->execute( $dataProc );
}catch(PDOException $e) {... |
JavaScript | UTF-8 | 1,361 | 4 | 4 | [] | no_license | class Walk {
constructor(location, distance) {
this.location = location;
this.distance = distance;
this.timestamp = new Date();
}
display(){
console.log(`${this.timestamp.getDate()}/` +
`${this.timestamp.getMonth()+1}/` +
`${this.time... |
PHP | UTF-8 | 2,183 | 3.078125 | 3 | [] | no_license | <?php
use PHPUnit\Framework\TestCase;
use Smbkr\Checkout;
use Smbkr\Catalogue;
class CheckoutTest extends TestCase
{
/**
* Tests that Checkout can fail gracefully if given an empty order.
* @test
*/
public function it_returns_0_for_empty_string()
{
$catalogueMock = $this->createMock... |
Java | UTF-8 | 6,132 | 2.390625 | 2 | [] | no_license | package com.lei.admin.service.impl;
import com.aliyun.oss.OSS;
import com.aliyun.oss.model.*;
import com.lei.admin.entity.FileInfo;
import com.lei.admin.mapper.FileInfoMapper;
import com.lei.admin.service.IOSService;
import com.lei.admin.utils.OSSUtils;
import com.lei.admin.vo.OSSFileVO;
import org.springframework.bea... |
C++ | UTF-8 | 2,249 | 3.359375 | 3 | [] | no_license | #include <iostream>
int main() {
// The magic starts here
int gryffindor=0,hufflepuff=0,ravenclaw=0,slytherin=0;
int answer1=0,answer2=0,answer3=0,answer4=0;
std::cout<<"The Sorting Hat Quiz!\n";
std::cout<<"Q1) When I'm dead, I want people to remember me as:\n";
std::cout<<"\n";
std::cout<<" 1) The Go... |
JavaScript | UTF-8 | 1,985 | 2.921875 | 3 | [] | no_license | /**
* @des 将图片地址转成base64
*/
export function getBase64 (imgUrl, callback) {
window.URL = window.URL || window.webkitURL
var xhr = new XMLHttpRequest()
xhr.open('get', imgUrl, true)
// 至关重要
xhr.responseType = 'blob'
xhr.onload = function () {
if (this.status == 200) {
// 得到一个blob对象
var blob =... |
PHP | UTF-8 | 2,589 | 2.53125 | 3 | [] | no_license | <?php include 'admin_includes/header.php'; ?>
<?php
$msg = "";
if (isset($_POST['signup']) && !empty($_POST['username']) && !empty($_POST['password']) && !empty($_POST['first_name']) && !empty($_POST['last_name'])) {
$user = new User();
$user->username = $_POST['username'];
$user->set_file($_FILES['user_image']... |
C# | UTF-8 | 2,457 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Runtime.InteropServices.ComTypes;
using System.Web.Http;
namespace VersionedRestApi.Examples.Controllers
{
public class ExamplesApiController : ApiController
... |
Python | UTF-8 | 308 | 3.078125 | 3 | [] | no_license | import math
class Pet:
"""
this is a Pet class for demo purpose
"""
is_human = False
owner = "Mike Smith"
def __init__(self, height):
self.height = height
pass
# testing this class
if __name__ == '__main__':
chubbles = Pet(height = 5)
print(chubbles.__doc__)
print(chubbles.__dir__)
|
Python | UTF-8 | 2,937 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | # Copyright (C) 2018 Cancer Care Associates
# 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 to ... |
TypeScript | UTF-8 | 4,579 | 3.109375 | 3 | [
"MIT"
] | permissive | import { ICookie, ICookieMap, IBarPrinterInput, IBarPrinterParam } from "./entities";
import inquirer from 'inquirer';
import chalk from 'chalk';
/**
* Convert header set cookie string into an object
* @param cookieString Set cookie header string
*/
export const parseCookies = (cookieString: string): ICookieMap => ... |
Java | UTF-8 | 11,566 | 1.523438 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.12.07 at 11:39:2... |
JavaScript | UTF-8 | 1,452 | 3.125 | 3 | [] | no_license | class Selectors {
constructor(name) {
this.elHP = document.getElementById(`health-${name}`);
this.elProgressbar = document.getElementById(`progressbar-${name}`);
this.imgId = document.getElementById(`sprite-${name}`);
this.pokemonName = document.getElementById(`name-${name}`)
}
}... |
Python | UTF-8 | 1,352 | 4.40625 | 4 | [] | no_license | ##Write a function named printTable() that takes a list of lists of strings
##and displays it in a well-organized table with each column right-justified.
##Assume that all the inner lists will contain the same number of strings.
##For example, the value could look like this:
##tableData = [['apples', 'oranges', '... |
Shell | UTF-8 | 785 | 2.640625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/sh
# Homebrew clang is a bit different from /usr/bin/clang. Invoke clang++ -xc++ -fsyntax-only -v /dev/null to get a list of C/C++ search paths.
# then add them as -isystem into the shell script wrapper. For example:
exec /usr/local/bin/ccls --init='{"clang":{"extraArgs":[
"-std=c11",
"-isystem/usr/local/i... |
Ruby | UTF-8 | 788 | 3.390625 | 3 | [] | no_license | module BoardPrint
def print_board(code=nil)
print_secret_code(code) # for testing purpose; uses an optional parameter 'code'
board.each_with_index do |row, idx|
i = (idx + 1).to_s
i = " #{i}" if i.length < 2
row_print = "#{i} "
row.holes.each do |hole|
row_print += add_text(h... |
Python | UTF-8 | 944 | 4.0625 | 4 | [] | no_license | r"""
给定一个n个元素有序的(升序)整型数组nums和一个目标值target,写一个函数搜索nums中的target,如果目标值存在返回下标,否则返回-1。
示例 1:
输入: nums = [-1,0,3,5,9,12], target = 9
输出: 4
解释: 9 出现在 nums 中并且下标为 4
示例 2:
输入: nums = [-1,0,3,5,9,12], target = 2
输出: -1
解释: 2 不存在 nums 中因此返回 -1
提示:
(1) 你可以假设 nums 中的所有元素是不重复的。
(2) n 将在 [1, 10000]之间。
(3) nums 的每个元素都将在 [-9999, 9... |
JavaScript | UTF-8 | 4,583 | 3.046875 | 3 | [] | no_license | // Require all of the modules needed for this application
const express = require("express");
const bodyParser = require("body-parser");
const fileUpload = require("express-fileupload");
const fs = require("fs");
const path = require("path");
// Set up the packages that we have just required
const app = ex... |
Markdown | UTF-8 | 641 | 2.5625 | 3 | [
"MIT"
] | permissive | # Portfolio
## Author
Roy Rasugu
## Description
This website is my portfolio with various sections like an about, experience which is the websites I've worked on and contact section
## Livepage
https://royrasugu.github.io/project/
## Setup and instruction installations
* Open Terminal (Ctrl+Alt+T)
* git clone htt... |
Python | UTF-8 | 4,608 | 3.078125 | 3 | [] | no_license | import re
import csv
import math
from io import StringIO
from datetime import datetime
from time import time
from flask_restful import Resource, request
from ..mongo_documents.station import Station, RoadPosition
from ..mongo_documents.traffic_reading import TrafficReading, ValidationLevel
#The strings that express... |
TypeScript | UTF-8 | 7,320 | 2.625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | import type {Reducer} from 'react';
import {useReducer} from 'react';
import type {FieldStates, ErrorValue} from '../../../types';
import type {FieldAction} from '../../field';
import {
reduceField,
updateErrorAction as updateFieldError,
initialFieldState,
} from '../../field';
import {mapObject} from '../../../... |
Markdown | UTF-8 | 5,178 | 3.171875 | 3 | [] | no_license | # Liquor World
## Data Centric Development Milestone Project

### **Introduction**
There are many different types of liquor mixes, each with its own unique name and preparation method.
For all liquor lovers, bartenders, pub owners and many more, this website allows them t... |
Python | UTF-8 | 4,659 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/env python3
import argparse
import json
import logging
import os
import subprocess
import tempfile
from typing import List
from urllib import request
REPO = 'https://raw.githubusercontent.com/gockelhahn/qual-o-mat-data'
class Party:
def __init__(self, id: int, name: str):
self.id = id
self.name = n... |
Python | UTF-8 | 1,383 | 2.96875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env python3
#
# memmap.py - small utility to print the memory map of a process on Linux (and probably other Unices as well)
# *and* Windows (similiar to the pmap command found on Linux and Solaris)
#
# Copyright(C) 2019 Constantin Wiemer
import psutil
import os
import sys
#
# format size of t... |
Java | UTF-8 | 680 | 1.960938 | 2 | [] | no_license | package com.testyle.dao;
import com.testyle.model.Data;
import com.testyle.model.Project;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
public interface IDataDao {
List<Data> select(Data data);
int insert(Data data);
int delete(@Param("table")String table, @Para... |
Python | UTF-8 | 702 | 2.640625 | 3 | [] | no_license | import math
from _ast import List
from raytracer.hitable import Hitable, HitRecord
from raytracer.ray import Ray
class HitableList(Hitable):
def __init__(self, hitables=None):
self.hitables = hitables
def get_hitables(self):
return self.hitables
def hit(self,
ray: Ray,
... |
C# | UTF-8 | 3,456 | 2.828125 | 3 | [] | no_license | using CocosSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HeroesRpg.Client.Game.Graphic.Element
{
/// <summary>
///
/// </summary>
public class EnergyBar : CCDrawNode
{
public Func<float> CurrentEnergy {... |
C++ | UTF-8 | 1,709 | 2.8125 | 3 | [] | no_license | #include <QDebug>
#include <QDir>
#include <QFile>
#include <QApplication>
#include "stylesheetmanager.h"
StyleSheetManager::StyleSheetManager(QObject *parent) :
QObject(parent)
{
}
StyleSheetManager::StyleSheetManager(
const QString &filePath, QObject *parent
) : QObject(parent)
{
setFilePath(filePath);
}
... |
JavaScript | UTF-8 | 5,463 | 3.640625 | 4 | [] | no_license | (function(window, document, undefined) {
/* loops over each flavor in function */
function forEachFlavor(functionToDo) {
var container = document.getElementById('container');
var flavors = container.getElementsByClassName('flavor');
for(var i = 0; i < flavors.length; i++)
{
functionToDo(flavors[i])... |
Java | UTF-8 | 198 | 2.5625 | 3 | [] | no_license | import java.util.Scanner;
class Main {
public static void main (String[] args) {
Scanner el= new Scanner(System.in);
int n1=el.nextInt();
int a=n1*n1;
System.out.print(a);
}
} |
Java | UTF-8 | 5,911 | 2.375 | 2 | [] | no_license | package org.matcha.server.concurrent;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.Executor;
import org.matcha.server.net.Defau... |
Python | UTF-8 | 310 | 3.78125 | 4 | [] | no_license | print("----------")
print("Calculator")
print("----------")
print("x=?")
x = input()
print("y=?")
y = input()
Plus = int(x)+int(y)
minute = int(x)-int(y)
Multiplacation = int(x)*int(y)
Devide = int(x)/int(y)
print("x+y","=",Plus)
print("x-y","=",minute)
print("x*y","=",Multiplacation)
print("x/y","=",Devide)
|
Java | UTF-8 | 1,961 | 2.453125 | 2 | [] | no_license | package com.synaptix.component.impl;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.synaptix.component.IPropertyChangeCapable;
public abstract class PropertyChangeCapableImp... |
Java | UTF-8 | 761 | 2.140625 | 2 | [] | no_license | package ru.vksychev.cart.controller;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotati... |
Markdown | UTF-8 | 2,434 | 2.78125 | 3 | [] | no_license | # SFRA Webpack builder
## Why use it?
Webpack can be cumbersome to setup, especially in multicartridge projects for SFRA.
This plugin let you bundle all your `js`, `scss` and `jsx` files out of the box.
- One pre-build `webpack.config.js` for all cartridges and plugins
- No more `sgmf-script`, which interferes with `... |
PHP | UTF-8 | 813 | 2.546875 | 3 | [] | no_license | <?php
class admin_page_COMMENTS extends RF_Admin_Page {
function __construct() {
$this->name = "comments";
$this->label = "Comment";
$this->label_plural = "Comments";
$this->admin_menu = 40;
$this->icon = "forums";
$this->permissions = array(
"all" => "manage_comments"
);
// Be sure to set up the ... |
Java | UTF-8 | 1,297 | 2.078125 | 2 | [] | no_license | package no.nmdc.oaipmh.provider.init;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.support.Abst... |
TypeScript | UTF-8 | 3,968 | 2.5625 | 3 | [
"MIT"
] | permissive | import { Body, Controller, Delete, Get, HttpException, HttpStatus, Param, Post, Put, UseInterceptors } from '@nestjs/common';
import { exception } from 'console';
import { ValidatorInterceptor } from 'src/interceptors/validator.interceptor';
import { CreateAddressContract } from '../contracts/customer/create-address.co... |
C# | UTF-8 | 23,964 | 2.828125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
namespace Snake
{
class Snake
{
#region pola klasy
private ContentMa... |
Python | UTF-8 | 2,473 | 3.09375 | 3 | [] | no_license | """ partial convolution implementation """
import torch
import torch.nn.functional as F
class PConv2d(torch.nn.Conv2d):# bias false per the karpathy tweet 6/30/18
"""A partial convolution layer, implemented from Liu et al (2018)"""
def __init__(self, in_channels, out_channels, kernel_size, stride=1,\
... |
PHP | UTF-8 | 1,474 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace DTL\Extension\Fink\Tests\Integration\Model\Publisher;
use DTL\Extension\Fink\Model\Publisher;
use DTL\Extension\Fink\Model\ReportBuilder;
use DTL\Extension\Fink\Model\Publisher\CsvStreamPublisher;
use DTL\Extension\Fink\Model\Url;
use DTL\Extension\Fink\Tests\IntegrationTestCase;
class CsvStreamPubli... |
Markdown | UTF-8 | 1,079 | 3.09375 | 3 | [
"MIT"
] | permissive | # Anime Quote Generator
A random anime quote generator that generates random quotes from different anime series or movies.
This generator was made as part of finishing the freeCodeCamp "Build a Random Quote Machine" Zipline challenge.
Current amount of quotes: **82**
## Interested in adding more quotes?
If you would... |
Markdown | UTF-8 | 1,001 | 2.75 | 3 | [] | no_license |
# R-Shiny金融科技概念股公司資料分析<h1>
前面是一些簡單的研究說明和變數介紹<h3>

之後可以查詢公司的各項資料(總資產、股東權益總額、營業費用等...)<h4>
下面可以選擇要不要顯示這個公司的股票資料<h4>

選擇顯示公司資料,可以選擇想要知道的資料<h4>

... |
C | UTF-8 | 2,464 | 2.59375 | 3 | [
"MIT"
] | permissive | #include "ColorFrameBuffer.h"
ColorFrameBuffer::
ColorFrameBuffer(GLsizei width, GLsizei height) :
FrameBuffer(),
_width(width),
_height(height) {
GLuint texture;
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, _width, _... |
C++ | UTF-8 | 2,589 | 3.421875 | 3 | [] | no_license | #include <iostream>
#include <vector>
using namespace std;
typedef unsigned long long uint_type;
const int facteur_limite = 100;
const uint_type limite = 1000000000;
// Prototype de fonction
std::vector<int, std::allocator<int> > Crible_Eratosthene_vect(int);
uint_type compteur_Hamming(std::vector<int>, uint_type, ... |
Shell | UTF-8 | 503 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
set -e
echo "Setting up Python environment..."
if [ ! -f "env/bin/activate" ]
then
python3.8 -m venv env
fi
source env/bin/activate
pip install --disable-pip-version-check -q -U -e ./python/
p... |
Java | TIS-620 | 1,086 | 2.078125 | 2 | [] | no_license | package cn.sdut.test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import cn.sdut.persistence.dao.interfaces.Lg20Dao;
public class Lg20DaoTest {
p... |
JavaScript | UTF-8 | 1,440 | 4.53125 | 5 | [
"MIT"
] | permissive | /**
* 객체 리터럴, 생성자 함수
*/
// 빈 객체 생성
var dog = {};
// 프로퍼티 하나 추가
dog.name = "Benji";
// 메서드 추가
dog.getName = function () {
return dog.name;
};
// 메서드 재정의
dog.getName = function () {
return "Fido";
};
// 프로퍼티나 메서드 삭제
delete dog.name;
// 생성 시점에 프로퍼티와 메서드 추가
var dog = {
name: "Benji",
getName: function () {
... |
Python | UTF-8 | 2,893 | 2.65625 | 3 | [] | no_license | import os
from DBModule import DBModule
from host_config.config_reader import read_login_config
from RemoteModule import RemoteModule
from util.command_utils import parse_size_info_response_lines
from util.common_utils import is_localhost, print_error
def find_host_all_tablespace_remain_size_dic(host, database_name)... |
Java | UTF-8 | 755 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.rn.dfsoo.common.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.Date;
/**
* Description:异常信息对象
*
* @author 然诺
* @date 2019/8/28
*/
@Getter
@Setter
@ApiModel(descri... |
Java | UTF-8 | 1,404 | 3.59375 | 4 | [] | no_license | package com.github.year.main;
import java.util.Scanner;
import com.github.year.svc.YearValidator;
public class Driver {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
System.out.println("========== Welcome to leap year checker! ==========\n");
while (true) {
L... |
C# | UTF-8 | 545 | 2.90625 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace project1.Singleton
{
class Program
{
public static Program instance;
public string Name { get; private set; }
protected Program(string Name)
{
... |
Python | UTF-8 | 1,203 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | '''
You are given a 0-indexed string word of length n consisting of digits, and a positive integer m.
The divisibility array div of word is an integer array of length n such that:
div[i] = 1 if the numeric value of word[0,...,i] is divisible by m, or
div[i] = 0 otherwise.
Return the divisibility array of word.
'''
... |
Java | UTF-8 | 829 | 3.390625 | 3 | [] | no_license | package T1to50.T38;
public class Solution {
String[] strings = {"1","11","21","1211",
"111221","312211","13112221","1113213211",
"31131211131221","13211311123113112211"};
public String countAndSay(int n) {
if (n <=0){
return "";
}else if (n <= 10){
... |
JavaScript | UTF-8 | 127 | 2.71875 | 3 | [] | no_license | function jediName(firstName, lastName) {
return lastName.slice(0,3) + firstName.slice(0,2);
}
jediName('David', 'LeeTooPoo'); |
Go | UTF-8 | 2,997 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package main
import (
"bufio"
"encoding/base64"
"encoding/hex"
"encoding/json"
"fmt"
"io"
"os"
"regexp"
"strings"
"github.com/golang/protobuf/proto"
"github.com/nknorg/nkn/v2/pb"
)
// Base64ToHex convert base64 string input to hex string output
func Base64ToHex(in []byte) (out []byte, err error) { // inpu... |
Java | UTF-8 | 648 | 2.09375 | 2 | [] | no_license | package com.ss.lms.repo;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.ss.lms.entity.Author;
@Repository
p... |
Java | UTF-8 | 866 | 3.4375 | 3 | [] | no_license | package com.multithreding.Question6;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class Reentrant {
int level = 0;
Lock lock = new ReentrantLock();
public void outer() throws InterruptedException {
lock.lock();
inner();
lock.unlo... |
Java | UTF-8 | 2,866 | 1.96875 | 2 | [] | no_license | //package com.imran;
//
//import java.io.IOException;
//import java.util.Arrays;
//import java.util.List;
//
//import org.drools.decisiontable.DecisionTableProviderImpl;
//import org.kie.api.KieServices;
//import org.kie.api.builder.KieBuilder;
//import org.kie.api.builder.KieFileSystem;
//import org.kie.api.builder.Ki... |
Markdown | UTF-8 | 1,157 | 2.546875 | 3 | [] | no_license | # 真香
[☞ [2018-08-19] 真香 ](https://mp.weixin.qq.com/s/ux3UdIAtCdE-MEBupOiPWA)
###### 朗文当代高级英语辞典(英英·英汉双解)(第 4 版)
>**smell**
» The stew smelted delicious . 这炖菜闻起来真香。
###### 麦克米伦高阶英汉双解词典
>**aah** /ɑː/
*interjection*
used for showing that you are happy , satisfied , or surprised (表示快乐、满意或惊讶)啊
» Aah... |
Python | UTF-8 | 1,575 | 3.765625 | 4 | [] | no_license | import sys
import os
# get the directory path of this file.
dirname = os.path.dirname(os.path.abspath(__file__))
# get the root of this child directory.
rootdir = os.path.dirname(dirname)
sys.path.append(rootdir)
import palindromechecker
class TestPalindromeClass(object):
"""
This checks whether the method is... |
Java | UTF-8 | 704 | 2.625 | 3 | [] | no_license | package com.itdlc.android.library.hook.base;
import java.lang.reflect.Method;
/**
* Created by felear on 2018/4/25.
*/
public abstract class BaseMethodHandler {
protected abstract boolean beforeHood(Object realObject, Method method, Object[] args);
protected abstract void afterHood(Object realObject, Met... |
C | UTF-8 | 1,507 | 3.234375 | 3 | [] | no_license | #include<stdio.h>
#include<math.h>
#include<time.h>
#include<stdbool.h>
typedef unsigned long long llu;
typedef unsigned long lu;
typedef struct Triplet__ {
int a;
int b;
int c;
} Triplet;
FILE *file_log = NULL;
lu pow2(int n);
bool is_pythagorean(Triplet t);
int sum(Triplet t);
Triplet even_generator(... |
Java | UTF-8 | 6,729 | 2.125 | 2 | [] | no_license | package com.example.gauge;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.UUID;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.... |
PHP | UTF-8 | 13,470 | 2.65625 | 3 | [] | no_license | <?php
namespace codename\core\bucket;
use \codename\core\app;
use codename\core\exception;
use codename\login\context\remote;
/**
* I can manage files on a FTP server.
* @package core
* @since 2016-05-18
*/
class ftp extends \codename\core\bucket implements \codename\core\bucket\bucketInterface {
/**
* C... |
Rust | UTF-8 | 745 | 2.625 | 3 | [
"MIT"
] | permissive | use warp::{filters::BoxedFilter, Filter, Rejection, Reply};
// Option 1: BoxedFilter
// Note that this may be useful for shortening compile times when you are composing many filters.
// Boxing the filters will use dynamic dispatch and speed up compilation while
// making it slightly slower at runtime.
pub fn assets_fi... |
PHP | UTF-8 | 6,334 | 2.71875 | 3 | [] | no_license | <?php
namespace App\Models\Traits;
use App\Models\Role;
use App\Models\Permission;
use Illuminate\Support\Collection;
trait RolePermission
{
/**
* Cheking has role
* @param array $roles include string and number in array
* @return boolean [description]
*/
public function hasPerm... |
C | UTF-8 | 1,623 | 2.625 | 3 | [] | no_license | /// \author MiAM Robotique, Matthieu Vigne
/// \copyright GNU GPLv3
#include "MiAMEurobot/KalmanFilter.h"
void kalman_init(Kalman *k, double angle)
{
// Default dynamics covariance.
k->Q_angle = 0.003;
k->Q_bias = 0.1;
// Default sensor covariance.
k->R_measure = 0.0005;
// Initial angle and ... |
JavaScript | UTF-8 | 6,028 | 2.703125 | 3 | [] | no_license | import React, { Component } from "react";
import produce from "immer";
import { v4 as uuid } from "uuid";
import "./App.css";
import Crud from './comps/Crud'
export default class App extends Component {
nameRef = React.createRef();
state = {
selectedOption: "option1",
hasBike: false,
hasSpine: true,
... |
Python | UTF-8 | 660 | 2.609375 | 3 | [] | no_license | filename='batch.txt'
outside=['mountain', 'opencountry', 'forest']
city=['insidecity', 'street', 'tallbuilding']
dist=dict()
test=list()
for line in open(filename):
res=line.strip().split()
''''
for idx in range(len(res)):
if res[idx] in outside:
res[idx]='outside'
if res[idx] in... |
JavaScript | UTF-8 | 717 | 2.53125 | 3 | [] | no_license | import React from 'react';
export default class SearchForm extends React.Component {
constructor(props) {
super();
this.state = {
input: '',
};
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
this.setState({ input: e.target.value });
}
render() {
return (
<div className={... |
Java | UTF-8 | 281 | 2.390625 | 2 | [] | no_license | package com.cjx913.design_mode.behavioral.state;
public class ProfessionalLevel extends SecondaryLevel {
public ProfessionalLevel(Player player) {
super(player);
}
@Override
public void changeCards() {
System.out.println("可以换牌");
super.changeCards();
}
}
|
Python | UTF-8 | 10,100 | 2.875 | 3 | [] | no_license | import json
import time
import os
from collections import defaultdict
from typing import List, Dict, Tuple, Set
import boto3
class Config:
""" This class represents configuration to be used further. """
# Rekognition will look for any of these words if they belong to its catalogue
PERSON_KEYS: List[str]... |
Java | UTF-8 | 429 | 3.171875 | 3 | [] | no_license | class Solution {
public int maxArea(int[] height) {
int i=0;
int j=height.length-1;
int totalarea=0;
int area=0;
while(i<j)
{
totalarea=(j-i)*Math.min(height[i],height[j]);
area=Math.max(totalarea,area);
if(height[i]<height[j])
{
i++;
... |
SQL | UTF-8 | 130 | 3.1875 | 3 | [] | no_license | # Write your MySQL query statement below
SELECT product_id,
SUM(quantity) AS total_quantity
FROM Sales
GROUP BY product_id; |
TypeScript | UTF-8 | 14,246 | 2.9375 | 3 | [
"BSD-3-Clause"
] | permissive | import { and, assert, assertSoft, eq, implies, not, or, capitalizeFirstLetter} from "./helpers";
import {isDimension, isMeasure } from "./constraints";
function iteFromDict(getValueExpr, dict, type, lastElseValue = 10000){
// dict should be exhaustive
// todo: lowp check values in dict are proper
/*
* Re... |
Java | UTF-8 | 541 | 1.757813 | 2 | [] | no_license | package com.qixiaoyi.cariyou.module.T1splash;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.qixiaoyi.cariyou.R;
import com.qixiaoyi.cariyou.module.T11.EditbusinesshoursActivity;
public class SplashActivity extends Activity {
@Override
protected void onCreat... |
Python | UTF-8 | 1,205 | 3.8125 | 4 | [] | no_license | # def count_word(str1):
# list1 = str1.split(" ")
# list2 = []
# for i in range(0,len(list1)):
# cnt = list1.count(list1[i])
# if list1[i] not in list2:
# list2.append(list1[i])
# print (list1[i]," : ",cnt)
# if __name__=="__main__":
# str1 = input("Enter String : ")
# if(str1.isalnum() or str1.find("... |
Python | UTF-8 | 370 | 3.359375 | 3 | [] | no_license | factorials=[]
val=1
for i in range(1,11):
val *= i
factorials.append(val)
million=1000000
summation=0
addedAmount=[]
for i in range(0,len(factorials)):
count = 0
while million - summation >= factorials[len(factorials)-1-i]:
summation += factorials[len(factorials)-1-i]
count+=1
adde... |
Java | UTF-8 | 4,044 | 2.0625 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.wurmonline.server.intra;
import java.nio.ByteBuffer;
import java.io.IOException;
import java.util.logging.Level;
import com.wurmonline.server.Servers;
import com.wurmonline.server.ServerEntry;
import java.util.logging.Logger;
public final class ServerPingCommand e... |
Java | UTF-8 | 363 | 1.859375 | 2 | [] | no_license | package com.waiwang1113.myreminder.injection;
import com.waiwang1113.myreminder.repository.ReminderTaskRepository;
import javax.inject.Singleton;
import dagger.Component;
/**
* Created by wanwe17 on 2/2/2017.
*/
@Singleton
@Component(modules = {AppModule.class})
public interface AppComponent {
ReminderTaskRep... |
Java | UTF-8 | 2,595 | 2.046875 | 2 | [
"MIT"
] | permissive | package org.mitallast.queue.rest.action.queue;
import com.google.inject.Inject;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpResponseStatus;
import org.mitallast.queue.action.queue.stats.QueueStatsRequest;
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.