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
C++
UTF-8
641
2.71875
3
[]
no_license
#pragma once #include "gl-inl.h" #include "window.h" struct TexUnit { const GLenum unit; const unsigned idx; TexUnit(GLenum unit, unsigned idx) : unit(unit), idx(idx) {} }; class Framebuffer { GLuint fb; GLuint tex_color_buffer; GLuint rbo; GLuint depth_buffer; Window const& window; bool const w...
JavaScript
UTF-8
479
2.953125
3
[]
no_license
'use strict'; function choose_multiples_of_three(collection) { //在这里写入代码 var filter= require('../lodash/zhuyulonglodash/fiter.js'); var evens = filter(collection, function(n){ return n % 3 == 0; }); return evens; } // var array=[]; // // for(var i=0; i<collection.length; i++){ // if(collect...
JavaScript
UTF-8
1,243
3.375
3
[]
no_license
var officeItems = ["stapler", "monitor", "computer", "desk", "lamp", "computer", "lamp", "stapler", "computer", "computer"] var count = 0 for (var i = 0; i < officeItems.length; i++){ if (officeItems[i] === "computer"){ count++ } } console.log(count) // -> 4 var peopleWhoWantToSeeMadMaxFuryRoad = [ {...
Ruby
UTF-8
1,014
2.65625
3
[ "MIT" ]
permissive
describe "Shiritori test" do let(:main){ Shiritori::Main.new } let(:__class__){ Range } let(:__instance__){ 1..10 } describe "Range singleton methods" do it { instance_check(:new, %q(1, 10), obj: __class__) } end describe "Range instance methods" do it { instance_check(:==, %q(1..11)) } it { i...
Ruby
UTF-8
205
3.171875
3
[]
no_license
ventas = { Octubre: 65000, Noviembre: 68000, Diciembre: 72000 } def filter(data) filtered = {} data.each do |k,v| filtered[k]=v if v<70000 end filtered end puts filter(ventas)
Markdown
UTF-8
1,517
3.109375
3
[ "MIT" ]
permissive
# k2so ![](https://img.shields.io/crates/v/k2so.svg) Deploys your software -- The captain said I have to The purpose of this crate is to assist with deployments and infrastructure changes performed via Chef. When using [knife solo](https://matschaffer.github.io/knife-solo/) it requires some arguments passed in such a...
Java
UTF-8
7,904
2.5
2
[]
no_license
package com.chy.summer.framework.core.evn.resolver; import com.chy.summer.framework.core.convert.ConversionService; import com.chy.summer.framework.core.convert.support.ConfigurableConversionService; import com.chy.summer.framework.util.Assert; import com.chy.summer.framework.util.PropertyPlaceholderHelper; import co...
SQL
UTF-8
283
3.328125
3
[]
no_license
USE employees; SELECT from_date FROM dept_emp WHERE emp_no = '101010'; SELECT emp_no, CONCAT(first_name, ' ', last_name), hire_date FROM employees WHERE hire_date IN ( SELECT hire_date FROM employees WHERE emp_no = '101010' ); SELECT title FROM titles WHERE
Shell
UTF-8
12,333
3.34375
3
[ "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause-Views", "BSD-2-Clause" ]
permissive
#!/bin/bash ################################################################################ # Licensed to the OpenAirInterface (OAI) Software Alliance under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The Op...
Java
UTF-8
1,328
3.96875
4
[ "MIT" ]
permissive
package p06_Animals; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(S...
PHP
UTF-8
463
2.546875
3
[ "MIT" ]
permissive
<?php namespace User\Form; /** * Class LoginForm * @package User\Form */ class LoginForm extends AbstractUserForm { /** * Constructor */ public function __construct() { parent::__construct('login'); $this->add([ 'name' => 'send', 'attributes' => [ ...
Java
UTF-8
881
3.03125
3
[]
no_license
package commons; import org.apache.commons.collections4.BidiMap; import org.apache.commons.collections4.bidimap.DualHashBidiMap; import org.apache.commons.collections4.bidimap.DualTreeBidiMap; import org.apache.commons.collections4.bidimap.TreeBidiMap; public class DualTreeBidiMapDemo { public static void main(St...
Python
UTF-8
2,773
3.453125
3
[ "MIT" ]
permissive
#! /usr/bin/python import threading from threading import Thread, Lock from std_msgs.msg import String from time import sleep import copy import rospy import random # These will be initialized later pub1 = None pub2 = None kill = False # Create a lock that controls who has the ball beach_lock = Lock() """ Simple c...
Java
UTF-8
2,348
2.34375
2
[ "MIT" ]
permissive
package com.ruoyi.common.utils.ip; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.cglib.beans.BeanMap; import com.ruoyi.common.config.RuoYiConfig; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.http.HttpUtil; import com.r...
Java
UTF-8
3,317
3.4375
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 homework.make.change; /** * * @author kingk */ import java.util.Scanner; public class HomeWorkMakeChange { /** * ...
Python
UTF-8
2,910
2.546875
3
[]
no_license
# -*- coding: utf-8 -*- """ Created on Wed May 29 21:05:18 2019 @author: Hazem """ import pandas as pd import auxiliary_functions as aux import matplotlib.pyplot as plt import numpy as np from numpy.linalg import matrix_rank as rank # most nan are in 2016, if we drop this we have to filter out less cbf_loaded = pd.re...
Markdown
UTF-8
13,297
2.59375
3
[ "MIT" ]
permissive
# Selecting HybSeq Genes Using MarkerMiner ### Learning Objectives * Use existing genomic/transcriptomic resources for probe design * Run MarkerMiner from the command line * Select single copy genes for HybSeq probe design using multiple orthologs per gene ## Introduction: HybSeq Probe Design HybSeq is a method o...
Ruby
UTF-8
3,071
4.15625
4
[]
no_license
class Board def initialize(board_string) @board_array = board_string.chars @board = {} @possible_values = [1,2,3,4,5,6,7,8,9] @row = [] @column = [] gen_board end def print_board board_array = [] @board.each_value { |value| board_array << value } print "+-------------------...
TypeScript
UTF-8
790
2.6875
3
[]
no_license
import AppError from '@shared/errors/AppError'; import { getCustomRepository } from 'typeorm'; import { IUser } from '../interfaces/user'; import User from '../typeorm/entities/User'; import UserRepository from '../typeorm/repositories/UserRepository'; export default class CreateUserService { public async execute(...
Python
UTF-8
919
2.796875
3
[]
no_license
#!/usr/bin/env python # Tom Poorten, December 2017, UC Davis # get subset of fasta records and make new fasta file from Bio import SeqIO import argparse parser = argparse.ArgumentParser(description='creates a new fasta file with only specified records, which are provided in a text file') parser.add_argument('-i', hel...
Ruby
UTF-8
2,142
3.3125
3
[]
no_license
require 'rspec' require './lib/prct07' describe Fraccion do before :each do @a = Fraccion.new(3,9) @b = Fraccion.new(4,20) @c = Fraccion.new(3,9) @d = Fraccion.new(-3,-9) @e = Fraccion.new(-4,20) end it "Debe existir un numerador" do @a.num.should eq 3 @b.num.should eq 4 end it "Debe existir un ...
Java
UTF-8
3,714
1.945313
2
[]
no_license
package com.bpom.dsras.fragment; import android.annotation.SuppressLint; import android.support.v4.app.Fragment; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.os.Messenger; import android.support.v7.widget.L...
C#
UTF-8
1,065
3.203125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _3._2 { class ClassRoom { private List<Pupil> listOfPupils = new List<Pupil>(); public ClassRoom(Pupil pupil1, Pupil pupil2, Pupil pupil3, Pupil pupil4) { ...
C++
UTF-8
1,879
3.65625
4
[]
no_license
#include "bstset.h" BSTset::BSTset() { root = new TreeNode('a', new TreeNode('b', new TreeNode('d', NULL, NULL), new TreeNode('e', NULL, NULL)), new TreeNode('c', new TreeNode('f'...
Java
UTF-8
986
2.421875
2
[]
no_license
package org.perform.hibernate.model; import java.util.ArrayList; import java.util.Collection; import javax.persistence.Column; import javax.persistence.ElementCollection; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax....
Python
UTF-8
4,039
2.59375
3
[]
no_license
#!/usr/bin/python -u """ packet.py Broodwar IP capture, not stable. 2021.07.02 by stypr (https://harold.kim/) """ import os import sys import locale import binascii import subprocess import pyshark def read_from(s, start): """ (bytes, bytes) -> bytes Read from a given character. >>> read_from(b"test1...
JavaScript
UTF-8
27,478
3.265625
3
[]
no_license
// ==UserScript== // @name Travian // @namespace Osieczna // @include http://ts*.travian.*/dorf1.php* // @version 1 // @grant none // ==/UserScript== // // JavaScript unit // Add-on for the string and number manipulation // // Copyright (c) 2005, 2006, 2007, 2010, 2011 by Ildar Shaim...
C++
UTF-8
1,158
3.046875
3
[]
no_license
/*- * Copyright (c) Iris Dev. team. All rights reserved. * See http://www.communico.pro/license for details. * */ #ifndef _SCOPED_PTR_HPP__ #define _SCOPED_PTR_HPP__ 1 #include "Types.h" namespace IRIS { template <typename T> class ScopedPtr { public: /** @brief Constructor @param pIObj - pointer to obj...
Python
UTF-8
1,816
3.46875
3
[]
no_license
""" ***Author: Dana Mun*** A simple program that uses Yelp.com to get random existing addresses based on the zipcode provided in fileName.xls (make sure it's in .xls extension). This code is compatible with Python 2.7.3 and need to download modules: 1. python pip -m install selenium 2. python pip -m install xlrd 3....
JavaScript
UTF-8
1,040
2.78125
3
[]
no_license
ListCtrl = function (listView,footerView,store) { var addElementToList = function(ele) { listView.addNewElementToList(listView.list,ele); store.add(store.data,ele); }; var updateFooter = function(data) { footerView.updateAllItems(data); }; var updateFooterSelectedItems = function(ele) { if(store.checkEl...
C
UTF-8
2,014
2.515625
3
[]
no_license
#include "PhysicsPrecond.h" PhysicsPrecond::PhysicsPrecond( string label, const Epetra_Map & map) :_my_map(map), d_label(label) { std::cout <<"exsiting physicsprecond constractor"<<std::endl; } PhysicsPrecond::~PhysicsPrecond() { } int PhysicsPrecond::SetUseTranspose(bool UseTranspose) { /* * Disa...
Java
UTF-8
2,731
2.1875
2
[]
no_license
/** * Baijiahulian.com Inc. Copyright (c) 2014-2015 All Rights Reserved. */ package com.xiaozhaoji.dao.impl; import com.google.common.collect.Maps; import com.xiaozhaoji.dao.TalkDao; import com.xiaozhaoji.dao.po.Talk; import com.xiaozhaoji.service.dto.request.Page; import org.springframework.jdbc.core.BeanProperty...
Markdown
UTF-8
1,919
2.75
3
[ "MIT" ]
permissive
--- layout: post title: "Spring IoC/DI 컨테이너" date: 2018-05-06 categories: boostcourse image : https://github.com/KoJunHee/kojunhee.github.io/raw/master/img/boostcourse.jpg --- - 컨테이너 - 인스턴스의 생명 주기를 관리 - Servlet을 실행해주는 WAS는 Servlet 컨테이너를 가지고 있다고 말합니다. - WAS는 웹 브라우저로부터 서블릿 URL에 해당하는 요청을 받으면, 서블릿을 메모리에 올린 후 ...
PHP
UTF-8
802
2.890625
3
[ "MIT" ]
permissive
<?php namespace Kinko\Database\Query; use Illuminate\Database\Query\Builder; abstract class NonRelationalBuilder extends Builder { /** * Execute an accumulation function on the database. * * @param string $field * @param string $operation * @return mixed */ abstract public f...
PHP
UTF-8
658
2.96875
3
[ "MIT" ]
permissive
<?php namespace Phate; /** * CsvRendererクラス * * csvとして出力するレンダラ * * @package PhateFramework * @access public * @author Nobuo Tsuchiya <develop@m.tsuchi99.net> * @create 2016/12/23 **/ class CsvRenderer { /** * カラム名一覧の設定 * * @param array $columnNameArray カラム名一覧 * * @return void ...
Java
UTF-8
4,855
2.546875
3
[ "MIT" ]
permissive
package de.core23.javapicross.controller; import de.core23.javapicross.gui.Actions; import de.core23.javapicross.gui.EditorFrame; import de.core23.javapicross.model.Level; import net.roydesign.app.AboutJMenuItem; import net.roydesign.app.Application; import net.roydesign.app.QuitJMenuItem; import javax.swing.*; impor...
C#
UTF-8
5,178
3.203125
3
[ "BSD-2-Clause" ]
permissive
using System; using Xunit; namespace SharpCollections.Generic { public class BinaryHeapTests { private readonly struct TestType : IComparable<TestType> { public readonly int Priority; public TestType(int priority) { Priority = priority; ...
Java
UTF-8
2,788
2.984375
3
[]
no_license
package model; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class AccountListTest { private AccountList accountList; private Account a1; private Account a2; private Account a3; private Account a4; ...
C#
UTF-8
990
2.59375
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Farmacie.Models; namespace Farmacie.Test.Mock { public class ServiziOgdiFake { public static IEnumerable<Farmacia> RichiamaServizio(Func<Farmacia, bool> query) { ...
Java
UTF-8
1,519
1.914063
2
[]
no_license
package com.union.aimei.common.feign.pc.store.hystrix; import com.github.pagehelper.PageInfo; import com.union.aimei.common.feign.pc.store.StoreFollowerFeign; import com.union.aimei.common.model.store.StoreFollower; import org.springframework.stereotype.Component; /** * 店铺粉丝 * * @author liurenkai * @time 2018/1/1...
Go
UTF-8
872
2.921875
3
[]
no_license
package transformer import ( "encoding/json" "math3usmartins.com/todo-api-golang/account" ) type JsonTransformer struct{} type UserForJson struct { Uuid string `json:"uuid"` Email string `json:"email"` Password string `json:"password"` Roles []string `json:"roles"` } func (transformer JsonTran...
C++
UTF-8
1,896
3.640625
4
[]
no_license
#include "Quadrilateral.h" #include <iostream> #include <cmath> using namespace std; //Must call the super class constructor via member initialization list. //If not, will call the default constructor of super class. Quadrilateral::Quadrilateral(const Point2D points[], int numPoints):Polygon(points, numPoints){ if (...
PHP
UTF-8
1,505
2.875
3
[ "Apache-2.0" ]
permissive
<?php print("<html>\n\t<head>\n\t\t<title>Uploading file...</title></head><body>"); $target_dir = "../img/"; # test commend // $target_file = $target_dir . basename($_FILES["add"]["name"]); $title = $_POST['title']; $target_file = $target_dir . basename($title . ".png"); print("<h1>Uploading $target_file</h1>");...
Python
UTF-8
410
2.921875
3
[]
no_license
from tkinter import * import os def got_clicked(): os.system('python im3.py') top = Tk() top.title("SRM Attendance System") top.geometry("500x500") label=Label(top,text="Attendance System using Face Recognition",relief=RAISED) img=PhotoImage(file='srmlogo.png') Label(top,image=img).pack() label.pack() my_button = ...
Java
UTF-8
838
2.421875
2
[ "MIT" ]
permissive
/* * 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.mgatelabs.bytemapper.support.fields.types; import com.mgatelabs.bytemapper.support.instances.FieldInstance; import com.mg...
Java
UTF-8
1,122
2.765625
3
[]
no_license
package annotool; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.*; public class AnnSplashScreen extends JWindow { final String imageResSplash = "images/screen.jpg"; public AnnSplashScreen() { ImageIcon image = null; JLabel label = new JLabel(image); try { java.net...
PHP
UTF-8
1,946
2.546875
3
[ "MIT" ]
permissive
<?php namespace Whchi\LaravelApplicationInsights\Validators; use ApplicationInsights\Channel\Contracts\Data_Point_Type; use Whchi\LaravelApplicationInsights\Exceptions\TelemetryDataFormatException; class MetricData extends CommonHelper { protected function validateOptionalData(array $data): void { if...
Java
UTF-8
3,035
2.65625
3
[]
no_license
package pipeline; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; /** * @author wensen * @since 2019-04-08 */ public class Defa...
Markdown
UTF-8
2,446
2.921875
3
[ "Apache-2.0" ]
permissive
# Cloud Journey Project Quickstart ![Cloud Journey](title.png "Cloud Journey Tutorial") <walkthrough-tutorial-url url="https://cloud.google.com/compute/docs/gcpquest/intro_project"> </walkthrough-tutorial-url> ## Introduction <walkthrough-tutorial-duration duration="10"></walkthrough-tutorial-duration> Before you...
PHP
UTF-8
541
2.890625
3
[]
no_license
<?php /** * @file hola-mundo.php * @version 1.0 * @author Linea de Codigo (http://lineadecodigo.com) * @date 19-septiembre-2009 * @url http://lineadecodigo.com/php/hola-mundo-en-php/ * @description Programa Hola Mundo en PHP */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "...
Java
UTF-8
713
1.898438
2
[]
no_license
package cn.qlq.service; import java.util.List; import cn.qlq.bean.Doctor; import cn.qlq.bean.Register; import cn.qlq.bean.User; import cn.qlq.bean.Usertype; public interface UserService { public List<User> findAllUser(); public List<Usertype> findAllUsertype(); public List<Register> fin...
Java
UTF-8
685
1.945313
2
[]
no_license
package kr.co.daters.serviceImpl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import kr.co.daters.dao.BoMenuDAO; import kr.co.daters.domain.BoMenuVO; import kr.co.daters.service.BoMenuService; @Service public class BoMenuServic...
Python
UTF-8
689
3.09375
3
[ "Apache-2.0" ]
permissive
class command: '''Command class; allows the user to make their own commands for the AI ''' def __init__(self,inp,function,response=''): self.inp=inp #List self.func=function #Function self.response=response#String commands=[] #Example, shutdown command impor...
C++
UTF-8
3,892
4.46875
4
[]
no_license
/* Problem statement: Design a class to efficiently find the Kth largest element in a stream of numbers. The class should have the following two things: The constructor of the class should accept an integer array containing initial numbers from the stream and an integer ‘K’. The class should expose a function add(in...
Markdown
UTF-8
22,157
2.78125
3
[ "MIT" ]
permissive
--- layout: post title: 实现 socks5 代理 description: 现在很多人都在用,天天用的软件,却对它的实现协议却知之甚少。 category: blog --- socks5 协议继承自 socks 协议。 > 竟然是两年前的旧文,终于要来填坑了。 ## 正向代理和反向代理 反向代理就医院里的挂号处,公司里的行政前台,你不需要关心具体的处理人,不用关心内部逻辑,只需要找到对接人就可以了,反向代理服务器就是这个对接人。 正向代理像是你的望远镜,就是你的皮夹克,穿戴上他,你可以伪装成另一个人,甚至就像附身在你的小跟班身上,通过另一双眼镜去看世界,隐藏自己的身份,逃出生天,正向代理服务器就是...
Java
UTF-8
766
3.390625
3
[]
no_license
package com.learn; import java.util.Arrays; /** * 示例 1: * <p> * 输入: [1,2,3], [1,1] * <p> * 输出: 1 * <p> * 解释: * 你有三个孩子和两块小饼干,3个孩子的胃口值分别是:1,2,3。 * 虽然你有两块小饼干,由于他们的尺寸都是1,你只能让胃口值是1的孩子满足。 * 所以你应该输出1。 */ public class leet455 { public int findContentChildren(int[] g, int[] s) { if (g.length == 0 || s.l...
Python
UTF-8
7,766
3.03125
3
[]
no_license
from collections import defaultdict import pprint import fileinput import math import sys import matplotlib.pyplot as plt import time class TreeNode: def __init__(self, val): self.val = val self.left = None self.right = None class LearnGrammar: def __init__(self): self.probab...
PHP
UTF-8
1,433
2.78125
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['zalogowany'])) { header('Location: index.php'); exit(); } unset($_SESSION['blad']); if (isset($_POST['haslo'])) { //Przypisanie loginu z sesji do zmiennej $user = $_SESSION['user']; $haslo = $_POST['haslo']; require_once "connect.php"; mysqli_report...
Java
UTF-8
5,858
3
3
[ "MIT" ]
permissive
package com.example.app; import java.awt.event.*; import javax.swing.*; public class Calculator { private static Calculator ms_instance = null; public native String print(); public native int key(String val); private JTextField m_output; static { System.loadLibrary("calculator...
Markdown
UTF-8
6,294
2.640625
3
[]
no_license
--- description: "Steps to Prepare Speedy Taco bowl" title: "Steps to Prepare Speedy Taco bowl" slug: 1573-steps-to-prepare-speedy-taco-bowl date: 2020-11-14T02:39:23.042Z image: https://img-global.cpcdn.com/recipes/5579c5ad088b816a/751x532cq70/taco-bowl-recipe-main-photo.jpg thumbnail: https://img-global.cpcdn.com/rec...
Python
UTF-8
1,688
2.625
3
[]
no_license
import struct from multiprocessing import Process from twisted.internet.protocol import Factory from twisted.protocols.basic import LineReceiver from twisted.internet import reactor TAG = "LOGSERVER" class LogServer(LineReceiver): log = None def __init__(self, log): self.log = log def connectio...
Java
UTF-8
329
2.671875
3
[]
no_license
package initializationAndCleanup.exercise; /** * @author Li Yan */ public class Exercise10 { @Override protected void finalize(){ System.out.println("finalize() called"); } public static void main(String[] args){ new Exercise10(); System.gc(); System.runFinalization();...
SQL
UTF-8
5,544
3.3125
3
[]
no_license
-- Version "2016-02-17" -- ...added "BPHRPT:BPH_READ_ROLE" as valid owner-grantee pair create or replace procedure fix_access_to_me ( p_schema varchar2, p_read_grantee varchar2 default user, p_incl_private_synonyms boolean default true, p_excl_type_list varchar2 default null, p_excl_obj_list varchar2 default ...
Java
UTF-8
1,634
3.03125
3
[]
no_license
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner sc=new Scanne...
C
GB18030
851
3.078125
3
[]
no_license
#ifndef _STDDEF_H #define _STDDEF_H #ifndef _PTRDIFF_T #define _PTRDIFF_T typedef long ptrdiff_t; /* ָ͡ */ #endif #ifndef _SIZE_T #define _SIZE_T typedef unsigned long size_t; /* sizeof ص͡ */ #endif #undef NULL #define NULL ((void *)0) /* ָ롣 */ /* 涨һijԱƫλõĺꡣʹøúȷһԱֶΣ * ĽṹдӽṹʼֽƫĽΪsize_t * ʽһ÷(TYPE *)0ǽһ0Ͷ䣨type ca...
Java
UTF-8
557
1.984375
2
[ "MIT" ]
permissive
package org.cobraparser.html.renderer; import java.awt.Graphics; import java.awt.event.MouseEvent; import org.cobraparser.html.domimpl.ModelNode; import org.cobraparser.ua.UserAgentContext; abstract class BaseBlockyRenderable extends BaseElementRenderable { public BaseBlockyRenderable(RenderableContainer containe...
Python
UTF-8
1,175
2.859375
3
[]
no_license
__doc__ = """ create a encrypted code for a file """ __author__ = "Kai" __version__ = "v1.1" from Crypto.Signature import PKCS1_v1_5 from Crypto.PublicKey import RSA from Crypto.Hash import SHA256 import os def create_digital_signature(key_info, der): """ create a digital signature from hashed info :par...
Markdown
UTF-8
1,763
3.171875
3
[]
no_license
# My TicketSwap - Robert Langereis *NOTE THIS PROJECT IS STILL IN DEVELOPMENT* *We had 5 days to finish this final assignment, building both the frontend and backend (to be found here: https://github.com/robertlangereis/my-ticketswap-backend)* This is the frontend webapp is a replica of Ticketswap (basic features), b...
Java
UTF-8
8,701
3.265625
3
[]
no_license
import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import javax.swing.JPanel; import javax.swing.SwingWorker; /** * The panel which displays the Julia set and contains all the calculations * needed to draw it. * @author Daniel * */ @SuppressWarnings...
Markdown
UTF-8
19,487
3.640625
4
[]
no_license
#**CS433** 并行与分布式程序设计 #Project2实验报告 **Group16**:秦格华 刘宸林 ##1 并行思路 ### 1.1 循环并行 在Nbody问题的每一次迭代中,`position_step()`都对每个星体进行了如下的操作: a). 遍历所有星体,计算其他星体对当前星体的引力值; b). 根据所得的引力值,计算当前时间点该星体速度的x和y分量,并且更新该星体的坐标。 可以看出,`position_step()`函数是O(n^2)的。在第一层循环中,对每个星体进行更新;在第二层循环中,利用其他星体的数据来更新该星体受到的引力。 ```c for (i = 0; i < world-...
Java
UTF-8
211
1.726563
2
[ "Apache-2.0" ]
permissive
package com.github.chuross.recyclerviewadapters.internal; import android.view.View; import androidx.annotation.NonNull; public interface EventExecutor { void execute(@NonNull View view, int position); }
Java
UTF-8
2,236
2.34375
2
[]
no_license
package com.example.victorvela.isafeeducationnovo.activity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.example.victorvela.isafeeducationnovo.R; import com.example.victorvela.isafeeducation...
Markdown
UTF-8
1,782
2.859375
3
[ "Apache-2.0" ]
permissive
--- layout: post title: 一天一组Linux命令(文件查询):whiereis category: linux tags: linux keywords: linux whiereis excerpt: "whereis 命令用于查找特定的文件,whereis 查找的速度非常快。" --- ## 目录 ### 简述 whereis 命令用于查找特定的文件,whereis 查找的速度非常快。 ### whereis 命令的使用 `whereis [-bmsu] 文件或目录名` 选项与参数: -b:定位可执行文件 -m:定位帮助文件 -s:定位源代码文件 -u:搜索默认路径下除可执行文件、源代码文件、...
Swift
UTF-8
4,072
2.578125
3
[ "MIT" ]
permissive
// // LocalBaseController.swift // eMia // // Created by Sergey Krotkih on 17/08/2018. // Copyright © 2018 Sergey Krotkih. All rights reserved. // import Foundation import RealmSwift import RxSwift import RxRealm class LocalBaseController { var isDataBaseFetched: Bool { return self.posts.count > 0 ...
C++
UTF-8
1,017
3.265625
3
[]
no_license
/* * 94. Binary Tree Inorder Traversal */ #include "common.h" #include <vector> #include <stack> using namespace std; #if LEET_CODE == 94 struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: vector<int> ...
Java
UTF-8
814
2.203125
2
[]
no_license
package com.init.mascotas.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import com.init.mascotas.entities.Animal; import com.init.mascotas.entities.Prod...
PHP
UTF-8
597
3.234375
3
[]
no_license
<!DOCTYPE html> <html> <head> </title> </head> <body> <form action= “site.php” method=”post”> <input type= “text” name= “student”> <input type= “submit”> </form> <?php $grades=array("Jim"=>"A+", "Pam"=> "B+", "Oscar”=>“C+”); echo $grad...
PHP
UTF-8
2,200
2.578125
3
[ "MIT" ]
permissive
<?php namespace RusaDrako\telegram_bot_engine\object; /** * Этот объект представляет бота или пользователя Telegram. */ class WebhookInfo extends _object_object { /** https://core.telegram.org/bots/api#chat */ protected function add_setting() { $this->set('url', 'str'); # URL-адрес ве...
C++
UTF-8
625
3.046875
3
[]
no_license
// https://www.cnblogs.com/zzhzz/p/5837815.html #include <iostream> using namespace std; int a[21] = {0}; int main() { int t; while(cin >> t) { while (t--) { int n; cin >> n; for (int i = 1; i <= n; ++i) { cin >> a[i]; int j = i - 1;...
C++
UTF-8
942
2.765625
3
[]
no_license
//ABC085C - Otoshidama #include <bits/stdc++.h> #include <iostream> using namespace std; std::vector<int> ktbl = {1000,5000,10000};//小さい順 std::vector<int> ans; int make_sum(int rest,int uidx, int num){ int cnt=0; if (rest == 0) { if ((ans[0]+ans[1]+ans[2]) == num){ cout << ans[2] << " " ...
C
UTF-8
3,905
3.5625
4
[]
no_license
#include "SafeRead.h" int readInt(const char *prompt, int min, int max) { while (1) { printf("%s ", prompt); char str[16]; fgets(str, sizeof(str), stdin); if (strchr(str, '\n') == NULL) { int c; bool flag = true; while ((c = fgetc(stdin)) != '\n' ...
TypeScript
UTF-8
18,908
2.6875
3
[ "Apache-2.0" ]
permissive
import { decodeERC1155AssetData, decodeERC721AssetData, decodeMultiAssetData, ERC1155ProxyWrapper, ERC20Wrapper, ERC721Wrapper, getAssetDataProxyId, } from '@0x/contracts-asset-proxy'; import { AbstractAssetWrapper, constants } from '@0x/contracts-test-utils'; import { AssetProxyId } from '@...
Java
UTF-8
1,400
3.515625
4
[]
no_license
public class Exam2 { public static void main(String[] args) { String student_name_first; String student_name_last; Student [][] school = new Student[5][20]; for(int counter_classroom = 1; counter_classroom < 6; counter_classroom++){ int student_counter = 0; ...
Markdown
UTF-8
1,973
2.671875
3
[ "CC-BY-4.0", "LicenseRef-scancode-public-domain" ]
permissive
# Stata Built-in Dynamic Documents Stata started including dynamic documents capabilities with version 15 (June 2017). However, the capabilities are significantly limited when compared with either R Markdown & knitr or user-built tools that work with earlier versions of Stata such as [Markdoc](http://www.haghish.com/s...
PHP
UTF-8
4,701
2.515625
3
[]
no_license
<?php namespace WSUWP\Plugin\Covid; class Email_Shortcodes { public function init() { } public static function add_shortcodes() { add_shortcode( 'e_post_feed', __CLASS__ . '::do_shortcode_post_feed' ); add_shortcode( 'e_has_posts', __CLASS__ . '::do_shortcode_has_posts' ); add_shortcode( 'e_date', __CLA...
JavaScript
UTF-8
586
4.125
4
[]
no_license
//clase 1 de //alert(saludo) var saludo = "hola mundo desde variable" var array1 = ["Lunes","Martes","Miercoles"] //alert(saludo) console.log(saludo) console.log(array1[0]) var nombre = prompt("Ingresa tu Nombre:","placeholder") alert("Hola "+ nombre) var numero = 1000 //Suma var numeroUsuario = Number(prompt("In...
JavaScript
UTF-8
1,029
2.796875
3
[ "MIT" ]
permissive
function (stack, params, extra) { extra = extra || {}; params = params.slice(0); var last = params.pop(); if (typeof(last) === "object" && !(last instanceof Array)) extra.hash = last; else params.push(last); // values[0] must be a function. if values[1] is a function, then // ap...
Java
UTF-8
951
2.171875
2
[]
no_license
package me.nexters.doctor24.batch.processor; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import me.nexters.doctor24.batch.dto.hospital.detail.HospitalDetailRaw; import me.nexters.doctor24.batch.processor.util.HospitalParser; import me.nexters.domain.hospital.Hospital; import org.springfram...
Java
UTF-8
1,305
2.296875
2
[]
no_license
package com.bean; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; @Entity @Table(name = "retailer_table") public class Retailer { @Id priv...
Markdown
UTF-8
2,754
3.015625
3
[]
no_license
# Monopoly > Own project/application and testing with mock objects in TDD approach (writing test before code) Explain your solution with focus on its design. Does it have low coupling, interfaces, polymorphism, Inversion of Control and Dependency injection as central design principles? If not, why? Otherwise, demonstr...
C++
UTF-8
2,505
2.8125
3
[]
no_license
#include <iostream> #include "gtest/gtest.h" #include "../src/Matrix.h" #include "../src/kNN.h" // --------- SET UP -------------- class runTest : public ::testing::Test { protected: virtual void SetUp() { image_1.setIndex(0, 0, 0); image_1.setIndex(0, 1, 0); } Matrix image_1 = Matrix(1,2...
JavaScript
UTF-8
959
4.1875
4
[]
no_license
// 输入两个整数序列。 第一个表示栈的压入序列, 判断第二个序列是否为栈的弹出序列 // eg: [1, 2, 3, 4, 5], [4, 5, 3, 2, 1] => true // [1, 2, 3, 4, 5], [4, 3, 5, 1, 2] => false const testSq1 = [1, 2, 3, 4, 5], testSq2 = [4, 5, 3, 2, 1], testSq3 = [4, 3, 5, 1, 2]; function isPopOrder(pushSq, popSq) { let stack = []; let pushStart = 0, popEnd =...
Shell
UTF-8
305
3.046875
3
[]
no_license
#!/bin/sh # Add information about current git branch=$(git branch -a --contains `git rev-parse HEAD` | grep -v "detached" | grep "remote") # trims whitespace branch=$(set -f; echo $branch) # Get current head sha sha=$(git rev-parse HEAD) # Create JSON echo "{\"branch\":\"${branch}\",\"sha\":\"${sha}\"}"
C
UTF-8
2,069
2.796875
3
[]
no_license
//#include <kipr/botball.h> void GetChargingStatus(); void GetCreateSensorReadings(); void CreateSimpleMove(); void CreateLineFollowLeftFront(); int main() { create_connect(); msleep(1500); // GetChargingStatus(); // msleep(1500); GetCreateSensorReadings(); msleep(1500); CreateLineFollowLeftFront...
C++
UTF-8
63,093
2.578125
3
[]
no_license
#include <twopi/vk/vulkan_engine.h> #include <stdexcept> #include <iostream> #include <fstream> #include <set> #include <unordered_map> #include <unordered_set> #include <chrono> #include <glm/gtc/matrix_transform.hpp> #define STB_IMAGE_IMPLEMENTATION #include <stb/stb_image.h> #define TINYOBJLOADER_IMPLEMENTATION ...
Java
UTF-8
461
3.171875
3
[]
no_license
package TD; public enum FruitType { Apple, Avocado, Banana, Coconut, Grapes, Lemon, Orange, Peaches, Pear, Pineapple; public static FruitType getByIndex(int index) throws Exception { return FruitType.values()[index]; } public static void showTypes() { ...
C#
UTF-8
2,367
2.90625
3
[]
no_license
using MySql.Data.MySqlClient; using System.Collections.Generic; using System.Data; public class UsuarioDAO { MySqlCommand cmd; MySqlDataReader dr; public MySqlDataReader Dr { get { return dr; } set { dr = value; } } pu...
Ruby
UTF-8
559
3.71875
4
[]
no_license
# Missão 2 # Siga a documentação da gem cpf_cnpj para criar um programa que recebe como entrada um número de cpf e em um método verifique se este número é válido. # # Link da documntação: # # https://github.com/fnando/cpf_cnpj require "cpf_cnpj" def validador_cpf(number) CPF.valid?(number) end puts "Digite o n...
C
UTF-8
1,357
4.125
4
[]
no_license
#include <stdio.h> #include <windows.h> int main() { int hours, employeeID; // Hours an employee worked and their ID float rate, overTime; // Rate of pay and over time float salary; // Salary to be paid // Intro printf("Welcome to the Salary Calculator\n\n\n"); Sleep(2000); // Employee ID...
Markdown
UTF-8
11,460
2.609375
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: 'Samouczek: integracja SSO usługi Azure AD z zarządzaniem zmianami procesów' description: Dowiedz się, jak skonfigurować Logowanie jednokrotne między Azure Active Directory i zmieniać zarządzanie procesami. services: active-directory author: jeevansd manager: CelesteDG ms.reviewer: celested ms.service: activ...