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 | 1,799 | 2.75 | 3 | [] | no_license | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CheckUntil : MonoBehaviour {
private int CheckedTime = 0;
private float DelaySecond = 2f;
private int TimeoutMinits = 5;
private int CheckingTime;
public static bool isGetResult = fa... |
C++ | UTF-8 | 6,336 | 2.765625 | 3 | [
"MIT"
] | permissive | // Copyright (c) 2016 Klemens D. Morgenstern
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/**
* \file boost/process/group.hpp
*
* Defines a group process class.
* For additional information see the platfo... |
Python | UTF-8 | 106 | 3.109375 | 3 | [] | no_license | names=['马成超','张自豪','袁玉华','白明睿']
for i in names:
print('%s:你好么'%i)
|
C# | UTF-8 | 3,192 | 3.234375 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ex2
{
class DrunkenNumbers
{
static void Main(string[] args)
{
double numberOfTours = double.Parse(Console.ReadLine());
long mitkoBeers = 0;
... |
Java | UTF-8 | 1,390 | 2.59375 | 3 | [] | no_license | package kr.ac.kopo.account.user.ui;
import kr.ac.kopo.account.user.vo.UserVO;
public class SignUpUI extends BaseUI{
@Override
public void execute() throws Exception {
System.out.println("=================================================================");
System.out.println("\t\t\t회원가입");
System.out.println(... |
JavaScript | UTF-8 | 5,151 | 2.640625 | 3 | [
"MIT"
] | permissive | const implementations = {
c: {
name: "C",
repo: "cdtp",
},
cpp: {
name: "C++",
repo: "cppdtp",
},
cs: {
name: "C#",
repo: "CSDTP",
},
java: {
name: "Java",
repo: "JDTP",
},
ts: {
name: "JavaScript/TypeScript",
repo: "dtp.js",
},
py: {
name: "Python",
... |
C | UTF-8 | 3,229 | 3.375 | 3 | [] | no_license | #include "treap.h"
node* init_node(int val) {
node* new_node = (node*)malloc(sizeof(node));
if (!new_node)
return NULL;
new_node->left = new_node->right = NULL;
new_node->val = val;
new_node->prior = rand();
new_node->count = 1;
return new_node;
}
int get_count(node* p) {
return p ? p->count : 0;
}
void... |
C | UTF-8 | 3,056 | 2.90625 | 3 | [] | no_license | #include "my_http_server.h"
// @ Taskes SSID and wrapps it in html from.
static char *form_wrapper(char *ssid_name) {
char res[400];
bzero(res, 400);
sprintf(res, "<form enctype=\"text/plain\" action=\"/\" method=\"post\">\
<p>%s <input name=\"%s\" value=\"\" type=\"text\" size=\"40\... |
Markdown | UTF-8 | 1,051 | 2.5625 | 3 | [
"MIT"
] | permissive | <a name="dbk_configure"></a>
## dbk_configure
```python
dbk_configure(name, profile)
```
For example, if the BUILD file contains:
```python
dbk_configure(
name = "cfg"
profile = "DEFAULT",
)
```
<table class="table table-condensed table-bordered table-params">
<colgroup>
<col class="col-param" />
<co... |
Java | UTF-8 | 2,564 | 2.796875 | 3 | [] | no_license | package fiabilitate;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
public class GeneratePredicate {
private static ScriptEngineManager factory = new ScriptEngineManager();
private static ScriptEngine engine = factory.getEngineByName("JavaScrip... |
Java | UTF-8 | 105 | 1.789063 | 2 | [
"MIT"
] | permissive | package TP3;
class InvalidKeyException extends Exception {
public InvalidKeyException() {
}
}
|
JavaScript | UTF-8 | 2,887 | 2.515625 | 3 | [
"MIT"
] | permissive | import React, { Component } from 'react';
import * as d3 from 'd3';
import PropTypes from 'prop-types';
// Utils
import {
COLOR_BLACK, COLOR_BLUE_DARK, COLOR_CYAN_DARK, COLOR_RED_DARK,
} from '../../../utils/constants';
class PostTimeline extends Component {
componentDidMount() {
const { numberOfPosts } = thi... |
Python | UTF-8 | 4,110 | 2.84375 | 3 | [
"ISC"
] | permissive | import logging
from typing import Collection, Dict, List, Optional, Sequence
import wx
from wx.lib.mixins.listctrl import ColumnSorterMixin
logger = logging.getLogger(__name__)
class AdvancedListCtrl(wx.ListCtrl, ColumnSorterMixin):
# wx.LC_SORT_* breaks idtopos
def __init__(self, *args, **kwargs):
... |
PHP | UTF-8 | 1,880 | 2.578125 | 3 | [] | no_license | <?php
// mengambil ID
$id = $_GET['id'];
$query = mysqli_query($koneksi, "SELECT kode_merk,nama_merk FROM merk WHERE kode_merk='$id'");
$data = mysqli_fetch_array($query);
//Proses Update Data Hak akses
if (isset($_POST['update'])) {
$kode_merk = $_POST['kode_merk'];
$nama_merk = ucfirst($_POST['nama_merk']);... |
C | UTF-8 | 3,067 | 3.203125 | 3 | [] | no_license | /************
Instructions To run this code:
Run ./server from bash Before running client
************/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <string.h>
#include <time.h>
double power(double,double);
struct my_msgbuf {
l... |
Python | UTF-8 | 267 | 3.640625 | 4 | [] | no_license | n=int(input("Enter a number : "))
def num(n):
s=0
while(n>0):
r=n%10
s=s+r**2
n=n//10
return (s)
def Canada(n):
s1=0
for i in range(1,n+1):
if n%i==0:
s1+=i
if (s1-1-n)==num(n):
return True
else:
return False
print(Canada(n))
|
PHP | UTF-8 | 3,220 | 2.546875 | 3 | [] | no_license | <?php
require_once ("../classes/Question.php");
require_once ("../classes/Answer.php");
require_once ("../db/QuizDbUtil.php");
session_start();
if (!isset($_SESSION['username'])) {
header('location:login.php');
}
$db=new QuizDbUtil("config1.ini");
$que=new Question();
$ans=new Answer();
?>
<?php
include("header.php"... |
Python | UTF-8 | 11,349 | 2.5625 | 3 | [] | no_license | from InspectorG.utils import SliceBbox, ImgViewer, SaveDict, LoadDict
import collections as clct
from tqdm import tqdm
import random
import numpy as np
import cv2
import os
class FeatureGenerator:
def __init__ (self, imgdict, task_name, aug = None, feature_dir = 'InspectorG/DICT'):
"""
Args:
... |
JavaScript | UTF-8 | 6,092 | 2.828125 | 3 | [] | no_license | /*
Copyright The Infusion copyright holders
See the AUTHORS.md file at the top-level directory of this distribution and at
https://github.com/fluid-project/infusion/raw/main/AUTHORS.md.
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compl... |
Java | UTF-8 | 1,601 | 2.46875 | 2 | [] | no_license | package com.zfz.recommendation;
import org.springframework.data.relational.core.sql.In;
import java.io.*;
public class FileTool {
private static String fileName = "D:\\web\\user.csv";
private static String tmpFileName = "D:\\web\\tmp.csv";
public boolean append(Integer userId, Integer book_id, Double rat... |
Python | UTF-8 | 2,127 | 3.125 | 3 | [] | no_license |
# coding: utf-8
# # Python Example for recording and playing back the quanitzed version of recording.
# <br/>
# #### Import relevant modules.
# In[1]:
"""
Using Pyaudio, record sound from the audio device and plot, for 8 seconds, and display it live in a Window.
Usage example: python pyrecplotanimation.py test.wav... |
Markdown | UTF-8 | 11,215 | 3.5 | 4 | [] | no_license | # Problem Set: Exception Handling
## Directions
Complete all questions below.
## Practice
<!-- Question 1 -->
<!-- prettier-ignore-start -->
### !challenge
* type: code-snippet
* language: python3.6
* id: XwJz6l
* title: Exception Handling
### !question
Given these tests, provide the function body that will mak... |
C | UTF-8 | 2,039 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | /**
* This example shows the loopback feature on I2S.
* Incoming data on RX are sent back on TX. Received data will not be stored in
* memory.
*/
#include "pmsis.h"
#include "bsp/bsp.h"
#define NB_CHANNELS ( 4 )
#define NB_ACTIVE_CHANNELS ( 4 )
static struct pi_device i2s;
static int test_entry()
{
i... |
Shell | UTF-8 | 709 | 3.5625 | 4 | [] | no_license | #!/bin/sh
yaml() {
docker run --rm -i -v "${PWD}":/workdir mikefarah/yq yq "$@"
}
parse_image() {
service_name=$1
service_version=$(cat "$service_name/package.json" | jq .version --raw-output)
printf "docker.pkg.github.com/czarsimon/webca/$service_name:$service_version"
}
update_image() {
service_n... |
Markdown | UTF-8 | 1,554 | 2.765625 | 3 | [] | no_license | ---
title: undefined reference to sem and stdout
date: 2019-06-05 00:00:00
cover: /img/Tux.svg
categories:
- Dev-Code
tags:
- Linux
- signal
- stdout
- gcc
---
# 一个系统信号量相关函数的问题,一个stdout相关的问题
## 未定义的引用:sem函数(`Undefined Reference to Sem_*`)
GCC没有默认地支持C的API中的信号函数例如`sem_init` `sem_post` `sem_wait` (这很常见,GCC总是不... |
Markdown | UTF-8 | 2,282 | 2.921875 | 3 | [] | no_license | ---
title: New Version Coming Soon
date: '2015-04-30'
layout: post
excerpt_separator: "noexcerpt"
permalink: /blog/new-version-coming-soon/
tags:
- HappyFunTimes
dsq_thread_id: '3724924797'
---
I've been trying forever to ship a Unity3D plugin. After seeing [Uniduino](http://www.uniduino.com/) though and working with... |
Shell | UTF-8 | 3,237 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# dibuat : bayu imbang, 7 Feb 2012
# =================================
# objective : membuat key-file
if [ $# -lt 2 ];then
echo "bil_make_key_file.sh <input DIR> <output file>"
echo "==========================================="
exit
fi
wmocode=/usr/people/imbangla/didah/official/sta_id.txt
database... |
Python | UTF-8 | 1,479 | 3.15625 | 3 | [] | no_license |
# import Presentation class
# from pptx library
from pptx import Presentation
from pathlib import Path
from os.path import isfile, join
import os
from alive_progress import alive_bar
from tkinter import Tk
from tkinter.filedialog import askdirectory
# Method to get content from slides
def getPowerpointContent(path):
... |
JavaScript | UTF-8 | 151 | 3.1875 | 3 | [] | no_license | let x = 14;
if (x > 10) {
//Tosihaara
console.log("x = yli kymmenen");
}
else {
//Epätosihaara
console.log("x = kymmenen tai alle");
} |
Java | UTF-8 | 6,210 | 2.453125 | 2 | [] | no_license | package controller;
import com.mongodb.*;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import model.Employee;
import org.bson... |
Java | UTF-8 | 1,219 | 2.515625 | 3 | [] | no_license | package ftn.is.util.xmlAdapters;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import ftn.is.model.Odsek;
import ftn.is.util.CustomTManager;
public class XmlAdapterOdsek extends XmlAdapter<XmlAdapterOdsek.AdaptedOdsek, Odsek>{
private CustomTManager utx;
... |
Java | UTF-8 | 836 | 3.0625 | 3 | [] | no_license | public class Solution {
public int minCost(int[] stones) {
// Write your solution here.
int len = stones.length;
int[][] cost = new int[len][len];//cost[i][j] is the min cost to merge stones from index i to j including i and j.
int[][] weight = new int[len][len];//weight[i][j] is the total weight of s... |
Shell | UTF-8 | 644 | 3.828125 | 4 | [] | no_license | if [ $# -ne 2 ]
then
echo "ERROR: La ejecución del programa es: ./ejercicio2.sh <nombre_fichero.txt> <numero_segundos>"
exit 1
fi
if [ ! -f $1 ];
then
echo "$1 no es un fichero"
exit 1
fi
if [ $2 -lt 1 ];
then
echo "El número de segundos debe ser mayor o igual que 1"
exit 1
fi
for x in $(cat $1)
do
ping -c 1 ... |
Java | UTF-8 | 1,536 | 2.5625 | 3 | [] | no_license | package com.samsung.idajavaclient;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.Client;
import com.esotericsoftware.minlog.Log;
import java.io.IOException;
import java.util.Scanner;
public class idaClient {
public static Client client;
public static Scanner scanner;
public... |
Python | UTF-8 | 12,111 | 2.78125 | 3 | [
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Zlib",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"BSD-3-Clause",
"OpenSSL",
"MIT"
] | permissive | #!/usr/bin/env python
#
# Copyright (c) 2009, 2010, Henry Precheur <henry@precheur.org>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWA... |
Java | UTF-8 | 641 | 2.84375 | 3 | [] | no_license | package clasesAbstractas_Empleados;
public class Administrativo extends Empleado {
private int horasExtra;
public Administrativo (int codigo, String nombre,int sueldo,Empresa enlace,int hExtra){
super(codigo,nombre,sueldo,enlace);
horasExtra=hExtra;
enlace.incrementarNumEmpleados();
}
public Administ... |
Ruby | UTF-8 | 1,395 | 3.609375 | 4 | [] | no_license | require "komaba/array"
def make_array(height, width)
a = Array.new(height)
for row in 0..width-1
a[row] = Array.new(width)
end
a
end
def put_initialize_cells(a)
for row in 0..a.size-1
for col in 0..a[row].size-1
a[row][col] = rand(2) # 0 or 1
end
end
end
def count(board, row, col)
hei... |
Shell | UTF-8 | 357 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
function _usage {
echo "usage: $0 <1st search term> <2nd search term>...<nth search term> "
}
# check that we have a couple of params.
if [ $# = 0 ]; then
_usage
fi
# loop over inputs
command="grep --line-number --recursive --color=auto --exclude=*.{pyc,png,jpg} "
for arg in $*; do
comman... |
Markdown | UTF-8 | 886 | 2.703125 | 3 | [
"MIT"
] | permissive | # redis-scan
Scan redis keys with pattern and do something to them, Aliyun redis cluster is supported.
## install
```
npm i shimo-redis-scan
```
## usage
```javascript
const RedisScan = require('shimo-redis-scan')
const Ioredis = require('ioredis')
// All keys is optional
const task = new RedisScan({
// pattern
... |
Java | UTF-8 | 2,446 | 2.921875 | 3 | [] | no_license | /******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*****************************************************... |
JavaScript | UTF-8 | 3,323 | 2.578125 | 3 | [] | no_license | import 'bootstrap/dist/css/bootstrap.min.css';
import React, {useState} from "react";
import "./Task.css"
const Task = (props) => {
let empl, cr
try {
empl = props.users.find(x => x.id === props.item.employeeid.toString()).login
cr = props.users.find(x => x.id === props.item.creatorid.toString... |
Java | UTF-8 | 213 | 1.5625 | 2 | [] | no_license | package com.mototown.dao;
import org.springframework.data.repository.CrudRepository;
import com.mototown.models.Vehicle;
public interface MotoTownRepository extends CrudRepository<Vehicle, Long> {
}
|
Swift | UTF-8 | 1,792 | 2.765625 | 3 | [] | no_license | //
// PetsDataSource.swift
// Pet Finder
//
// Created by 张嘉夫 on 2017/6/9.
// Copyright © 2017年 张嘉夫. All rights reserved.
//
import UIKit
import Pets
import MobileCoreServices
class PetsDataSource: NSObject, UITableViewDataSource {
var pets: [Pet]
init(pets: [Pet]) {
self.pets = pets
super.init()
... |
C++ | UTF-8 | 1,822 | 3.609375 | 4 | [] | no_license | //Hamiltonian Cycle --- Backtracking
#include<iostream>
#define V 5
using namespace std;
bool isSafe(bool graph[V][V],int path[V],int pos,int p){
int i;
if(graph[pos][path[p-1]] == 0 ){
return false;
}
for(i=0;i<p;i++){
if(path[i]==pos)
return false;
}
return true;
}
bool hamCycleUtil(bool gr... |
Rust | UTF-8 | 507 | 2.828125 | 3 | [
"MIT"
] | permissive | use crate::pattern::Pattern;
#[derive(Debug, PartialEq)]
pub struct Bind<'a, T> {
pub name: &'static str,
pub help: Option<&'static str>,
pub required: bool,
pub patterns: Vec<Pattern<'a>>,
pub takes_parameter: bool,
pub kind: T,
}
impl<'a, T> Bind<'a, T>
where
T: Copy,
{
pub fn matche... |
JavaScript | UTF-8 | 5,355 | 3 | 3 | [] | no_license | const $listaContainer = $('.container-lista');
const urlPokemon = "https://pokeapi.co/api/v2/pokemon"
let offset = 0;
let limite = 807;
let id = 1 + offset;
pokemonData = {};
function cargarListaPokemon() {
fetch(urlPokemon + '?offsset=' + offset + "&limit=" + limite)
.then(res => res.json())
.th... |
Shell | UTF-8 | 1,162 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
fix () {
ionice -c 3 \
nice -n 19 \
ffmpeg -i "$MFPATH"/"$NAME"."$EXT" -copyts -map 0 -c copy -f mpegts "$MFPATH"/"$NAME".tmp_"$EXT" && \
mv -f "$MFPATH"/"$NAME".tmp_"$EXT" "$MFPATH"/"$NAME"."$EXT"
}
skip () {
INI_FILE="/config/comskip/comskip.ini"
if [ ! -f $INI_FILE ]; then
INI_FILE="/u... |
Swift | UTF-8 | 4,961 | 2.53125 | 3 | [] | no_license | //
// ImageViewController.swift
// Dog breeds
//
// Created by Александр Осипов on 01.08.2020.
// Copyright © 2020 Александр Осипов. All rights reserved.
//
import UIKit
class ImageViewController: UIViewController {
@IBOutlet weak var imageCollectionView: UICollectionView!
@IBOutlet weak var imageNav... |
Swift | UTF-8 | 2,996 | 2.734375 | 3 | [] | no_license | import RxSwift
import RxSwiftExt
import Firebase
import Himotoki
import Library
extension Firebase {
struct Post: PostType {
let id: PostID
let prompt: String
let author: UserID
static func fromFirebase(ref: DataSnapshot) -> Post? {
guard let json = ref.value as? [Str... |
C++ | UTF-8 | 4,848 | 3.078125 | 3 | [] | no_license | //
// Copyright 2015 Yangbin Lin. All Rights Reserved.
//
// Author: yblin@jmu.edu.cn (Yangbin Lin)
//
// This file is part of the Code Library.
//
#ifndef VISUALIZATION_PLOT_AXIS_H_
#define VISUALIZATION_PLOT_AXIS_H_
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#inclu... |
Java | UTF-8 | 1,593 | 2.203125 | 2 | [] | no_license | package com.test.controller;
import com.test.model.Picture;
import com.test.service.LoginService;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import... |
Python | UTF-8 | 1,293 | 4.53125 | 5 | [] | no_license | #demonstrate math operations in python
#initialize some variables
x = 2
xx = 2.5
y = 4
yy = 4.5
yyy = 5.1
print yy/xx #quotient
print yy//xx #floored quotient - lower integer bound; type takes on the types of input
#take x to the power of y
powY = pow(y,x)
powY_ = y**x
print powY, powY_
#remainder of yy/x
print y... |
JavaScript | UTF-8 | 527 | 4.65625 | 5 | [] | no_license | /*
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10 001st prime number?
*/
function isPrime(number){
if(number%2==0)
return false;
var sqrt = Math.floor(Math.sqrt(number));
for(var i=3;i<=sqrt;i+=2){
if(number%i==0)
return false;
... |
TypeScript | UTF-8 | 5,588 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | import { IRoundTile, TileValue, TileSetGroup } from "../../models/tile";
import _ from "lodash";
import { TileStatus } from "../../models/tileStatus";
export const GetPossibleChow = (
boardActiveTile: IRoundTile,
playerActiveTiles: IRoundTile[]
): Array<IRoundTile[]> => {
let chowTilesOptions: Array<IRoundTile[]... |
TypeScript | UTF-8 | 1,596 | 2.6875 | 3 | [
"MIT"
] | permissive | import { WritableStreamBuffer } from 'stream-buffers'
import { OutPacketBase } from 'packets/out/packet'
import { PacketId } from 'packets/definitions'
import { PacketString } from 'packets/packetstring'
import { ExtendedSocket } from 'extendedsocket'
/**
* sends out the result of a login attempt
* Structure:
* ... |
Java | UTF-8 | 830 | 2.734375 | 3 | [
"MIT"
] | permissive | package com.brentonbostick.capsloc.world.sprites;
import static com.brentonbostick.capsloc.CapslocApplication.APP;
import com.brentonbostick.capsloc.Resource;
import com.brentonbostick.capsloc.ui.Image;
import com.brentonbostick.capsloc.ui.paint.RenderingContext;
public abstract class Sheet {
Resource res;
Image... |
PHP | UTF-8 | 3,591 | 2.640625 | 3 | [] | no_license | <?php
/**
* TechDivision\WebSocketContainer\Application
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
*/
namespace TechDivision\WebSocketContainer;
use Guzzle... |
Swift | UTF-8 | 738 | 3.078125 | 3 | [] | no_license | //
// Goal.swift
// uReadLiteracy
//
// Created by Duy Le 2 on 11/24/18.
// Copyright © 2018 AdaptConsulting. All rights reserved.
//
import Foundation
class GoalModel{
let name:String
var progress:Int!
let date:Date
init(name:String,date:Date){
self.name = name
self.date = da... |
Shell | UTF-8 | 3,769 | 3.15625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#v10.0.3
globalconf="${workdir}/cbsd.conf";
CBSDMODULE="build"
MYARG=""
MYOPTARG="ver arch target_arch maxjobs clean name basename ccache notify stable emulator"
MYDESC="Build kernel from sources"
set -e
. ${globalconf}
set +e
. ${subr}
init $*
over="${ver}"
oarch="${arch}"
[ -z "${NICE}" ] && NICE="0"
.... |
C# | UTF-8 | 974 | 3.84375 | 4 | [] | no_license | //8. Write a program that extracts from a given text all sentences containing given word.
// Example: The word is "in".
using System;
class ExtractSentencesByWord
{
static void Main()
{
string text = "We are living in a yellow submarine. We don't have anything else. Inside the submarine is very ti... |
Markdown | UTF-8 | 1,462 | 2.53125 | 3 | [
"MIT"
] | permissive | ---
layout: post
title: "[新闻]Win 7 重新变成头号桌面系统"
excerpt: "Win 10 算个毛!Win 7 是王道!"
categories: [新闻]
comments: true
---
# [新闻]Win 7 重新变成头号桌面系统 微软迫不得已把重心偏向 Win 7
<i class="icon-pencil"></i> 通讯员:SYY
---
大家猴久不见~
可忧君又来了(话说这还是第一次好吗~)
我先来问大家一个问题~
你用什么系统?
我猜大部分奥友都是 Windows 7 吧
原因很简单——稳定!
而近日,微软迫不得已把重心偏向 Win 7
Why?
GOGOGO!
-... |
C# | UTF-8 | 758 | 2.984375 | 3 | [] | no_license | using System;
namespace MIE.Dto
{
public class ReservationCount : IComparable<ReservationCount>
{
public int TimeId { get; set; }
public string StartTime { get; set; }
public string Date { get; set; }
public int Count { get; set; }
private DateTime dateTime;
... |
C++ | UTF-8 | 2,335 | 2.78125 | 3 | [] | no_license | #include "shader.h"
int Shader::load() {
char vertShaderPath[strlen(resourcePath) + 5];
char fragShaderPath[strlen(resourcePath) + 5];
strcpy(vertShaderPath, resourcePath);
strcpy(fragShaderPath, resourcePath);
strcat(vertShaderPath, ".vert");
strcat(fragShaderPath, ".frag");
std::ifstream vertShaderFile(vertS... |
C++ | UTF-8 | 280 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #include <iostream>
#include "fibonacci.cpp"
int main()
{
auto max = 15;
auto number = 0;
while (number <= max)
{
std::cout << "fibonacci of " << number << ": " << fibonacci(number)
<< std::endl;
number++;
}
return 0;
}
|
Java | UTF-8 | 3,556 | 2.265625 | 2 | [
"Apache-2.0",
"GPL-2.0-only"
] | permissive | /*
* Copyright (C) 2012 Brendan Robert (BLuRry) brendan.robert@gmail.com.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) ... |
Python | UTF-8 | 434 | 3.9375 | 4 | [] | no_license | # pizza_slices.py
# Calculates the maximum number of pizza slices to divide a pizza into,
# so that the minimum area per slice is maintained.
# Robert Morales (0849639)
# Fall 2012
# Oct 2, 2012
from math import pi
MIN_SLICE_AREA = 56
def main():
radius = float(input("Enter the radius of the pizza: "))
area... |
Markdown | UTF-8 | 3,419 | 2.828125 | 3 | [] | no_license | ---
layout: post
title: "Develop and Evaluate Large Deep Learning Models with Keras on AWS"
date: 2016-11-13
categories: ['Setup & Environment']
---
Large deep learning models require a lot of compute time to run. You can run them on your CPU but it can take hours or days to get a result. If you have access to a GPU o... |
Markdown | UTF-8 | 1,912 | 3.078125 | 3 | [
"MIT"
] | permissive | ---
prev: false
next: false
---
# Contributing
Our website is powered by Vue and VuePress - which opens up a couple of different routes for contribution. One is contributing in the form of pure content; the other is contributing to the Vue components themselves. We'll outline those two processes below.
## Updating o... |
Java | UTF-8 | 676 | 1.835938 | 2 | [] | no_license | package com.amazon.ws.emr.hadoop.fs.shaded.org.apache.commons.math.analysis;
import com.amazon.ws.emr.hadoop.fs.shaded.org.apache.commons.math.FunctionEvaluationException;
class ComposableFunction$31
extends ComposableFunction
{
ComposableFunction$31(ComposableFunction paramComposableFunction, UnivariateRealFunct... |
Java | UHC | 361 | 3.015625 | 3 | [] | no_license | package com.orange.datatype;
public class LongTest {
public static void main(String[] args) {
long bigNumber = 100000000000L; // 1õ
long bigNumber2 = 100000000000L;// ڿ 'L' ־ݴϴ. int ū̱ ڿ L δ
System.out.println(bigNumber);
System.out.println(bigNumber2);
}
}
|
Java | UTF-8 | 3,374 | 3.15625 | 3 | [] | no_license | package GenericLibrary;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
i... |
Python | UTF-8 | 406 | 3.828125 | 4 | [] | no_license | def cipher(characters):
a = []
for character in characters:
if character.islower():
ascii = ord(character)
a.append(chr(219 - ascii))
else:
a.append(character)
return ''.join(a)
a = "Hoge Fuga PiYo"
encryption = cipher(a)
decryption = cipher(encrypti... |
JavaScript | UTF-8 | 2,353 | 2.53125 | 3 | [] | no_license | import React, { useState, useRef } from "react";
import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons"; // ES Module "as" syntax: ;
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
export function Login(props) {
const pInput = useRef();
const [pText, setPText] = useState("");
con... |
Python | UTF-8 | 132 | 3.328125 | 3 | [] | no_license | a=input("Enter first no:")
b=input("Enter second no:")
sum=int(a)+int(b)
print("Sum is:",sum)
|
C++ | UTF-8 | 332 | 3.171875 | 3 | [
"CC-BY-3.0"
] | permissive | int inPin = 7; // pushbutton connected to digital pin 7
int val = 0; // variable to store the read value
void setup() {
Serial.begin(9600);
pinMode(inPin, INPUT); // sets the digital pin 7 as input
}
void loop() {
val = digitalRead(inPin); // read the input pin
Serial.print(val);
Serial.pri... |
Markdown | UTF-8 | 1,707 | 2.796875 | 3 | [
"MIT",
"CC-BY-4.0"
] | permissive | ---
title: Delete nodes for VMware Solutions (AVS) - Azure
description: Learn how to delete nodes from your VMWare with AVS deployment
author: sharaths-cs
ms.author: dikamath
ms.date: 08/05/2019
ms.topic: article
ms.service: azure-vmware-cloudsimple
ms.reviewer: cynthn
manager: dikamath
---
# Delete nodes from Azure ... |
Java | UTF-8 | 1,832 | 3.984375 | 4 | [] | no_license | package com.danleinbach.game.design.entities;
import java.awt.*;
import java.util.Observable;
/**
* Game Entity is an object representing the players and elements in a game.
* The object handels its own updateing and drawing. It also extends observable
* so it can notify its observers of any changes in its state.
... |
SQL | UTF-8 | 34,429 | 2.875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 14-12-2014 a las 18:44:44
-- Versión del servidor: 5.5.16
-- Versión de PHP: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER... |
PHP | UTF-8 | 1,922 | 2.65625 | 3 | [] | no_license | <?php
//Connect to mysql
$connection = new mysqli('localhost', 'root', '');
if ($connection->connect_error) {
die("Connection failed: " . $connection->connect_error);
}
// Create database
$sql = "CREATE DATABASE IF NOT EXISTS change_org";
if ($connection->query($sql) === TRUE) {
} else {
echo "Error creating ... |
C | UTF-8 | 4,252 | 3.46875 | 3 | [
"Unlicense"
] | permissive | #include "buffer.h"
#include <string.h>
#include <assert.h>
#include <talloc.h>
struct buffer {
bool fast_prepend;
size_t item_size;
size_t alloc_len;
char *front_addr;
char *back_addr;
void *ptr;
};
struct buffer *buffer_new(size_t item_size,
size_t init_capacity,
... |
C | UTF-8 | 811 | 3.65625 | 4 | [] | no_license | #include <stddef.h>
#include "memcpy.h"
/**
* Copy a memory area.
*
* <p>The memcpy function copies n bytes from memory area pointed to
* by src (source area) to memory area pointed to by dest (destination
* area). The memory areas may not overlap.
*
* @param dest destination area
* @param src source area
... |
PHP | UTF-8 | 3,005 | 2.84375 | 3 | [] | no_license | <?php
/**
* 大转盘、刮刮乐等抽奖,抽中之后奖品从奖池删除,绝对概率,数量递减;
*/
//定义一个奖品数组,id为几等奖,prize为奖品名称,v为中奖概率,
//下面例子中sun(v)=100,所以平板电脑的中奖概率就是1%;
$prize_arr = array(
'0' => array('id'=>1,'prize'=>'平板电脑','v'=>1,'num'=>1),
'1' => array('id'=>2,'prize'=>'数码相机','v'=>5,'num'=>2),
'2' => array('id'=>3,'prize'=>'音箱设备','v'=>10,'num'=>5)... |
Markdown | UTF-8 | 8,205 | 2.953125 | 3 | [] | no_license | ---
title: Ionic Angular | FusionCharts
description: This article outlines the steps to create your chart in ionic framework with Angular.
heading: Ionic Angular
---
FusionCharts is a JavaScript charting library that allows you to create interactive charts, gauges, maps, and dashboards in JavaScript. Ionic is an open ... |
Shell | UTF-8 | 288 | 2.765625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
COMMITMESSAGE=$(git log --pretty=%s | head -1 | grep -G "^\[maven-release-plugin\] prepare for next development iteration$")
if [ -z "$COMMITMESSAGE" ]; then
git checkout develop
mvn release:prepare -B -Dskiptests
mvn release:perform --settings deploy-settings.xml
fi
|
JavaScript | UTF-8 | 3,109 | 4.5 | 4 | [] | no_license | /* ARRAYS - en lista med ett eller flera värden */
// names = []
// var names = []
// let names = []
//const names = []
// const name = "Albin"
// name = "Åberg" //detta funkar inte att göra så här.
// const names = ["Albin"]
// names[0] = "Albin" // detta fungerar
// const person = { firstName: "Albin"}
// perso... |
C# | UTF-8 | 52,064 | 2.78125 | 3 | [
"MIT",
"CC-BY-4.0"
] | permissive | using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Drawing.Drawing2D;
using System.Runtime.InteropServices;
namespace System.Drawing.ClassicGraphicsExamples3CS
{
/// <summary>
/// Summary description for Form1.... |
Python | UTF-8 | 8,107 | 3.21875 | 3 | [
"MIT"
] | permissive | # -*- mode: python; coding: utf-8 -*-
# Copyright 2012-2014 Peter Williams <peter@newton.cx> and collaborators.
# Licensed under the MIT License.
"""pwkit.contours - Tracing contours in functions and data.
Uses my own homebrew algorithm. So far, it's only tested on extremely
well-behaved functions, so probably doesn'... |
Java | UTF-8 | 1,527 | 2.234375 | 2 | [] | no_license | package Entity;
// Generated 9 nov. 2019 21:08:11 by Hibernate Tools 4.3.1
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java... |
JavaScript | UTF-8 | 2,942 | 2.515625 | 3 | [] | no_license | const Tought = require('../models/Tought')
const User = require('../models/User')
const { Op } = require('sequelize')
module.exports = class ToughController {
static async dashboard(req, res) {
const userId = req.session.userid
const user = await User.findOne({
where: {
id: userId,
},
... |
Java | UTF-8 | 3,528 | 3.21875 | 3 | [] | no_license | //package tools;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.sql.*;
public class Loader {
private static final String file = "Markets.csv";
private static BufferedReader reader;
public Loader() {
//... |
C++ | UTF-8 | 490 | 3.234375 | 3 | [] | no_license | #include <iostream>
#include <cmath>
using namespace std;
int main(){
double x, y, result1, result2, result3, result4, result5 ;
x = 3;
y = 4;
result1 = abs(x + y);
cout << result1 <<endl;
result2 = abs(x) + abs(y);
cout << result2 << endl;
result3 = pow(x, 3)/ x + y;
cout << res... |
C | UTF-8 | 696 | 3.109375 | 3 | [] | no_license | #include <stdio.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <string.h>
int main(int argc, char *argv[])
{
// 1. 创建/打开共享内存,大小为4k
int shmid = shmget(1000, 0, 0);
if (shmid == -1) {
perror("shmget error");
return -1;
}
// 2. 当前进程和共享内存关联
void *ptr = shmat(shmid, NULL, 0);
if (ptr == (void*... |
C# | UTF-8 | 5,494 | 2.90625 | 3 | [] | no_license | using Logit_Transport.Data;
using Logit_Transport.Data.Models;
using Logit_Transport.DataProcessor.ImportDto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Logit_Transport.Services
{
public class ParticipantService : IPraticipantService
... |
Java | UTF-8 | 2,708 | 2.53125 | 3 | [
"MIT"
] | permissive | package com.graphs.commands;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
import com.graphs.AbstractTest;
import com.graphs.exception.GraphException;
import com.graphs.exception.NoSuchRouteException;
public class RoutesCommandTest extends ... |
Java | UTF-8 | 1,963 | 2.078125 | 2 | [] | no_license | /***********************************************************************************************************************
*
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance... |
SQL | UTF-8 | 2,657 | 2.90625 | 3 | [] | no_license | ALTER TABLE Student
ADD CONSTRAINT fks_course_code FOREIGN KEY(CourseCode) REFERENCES Course(CourseCode)
ON DELETE RESTRICT
ON UPDATE CASCADE;
ALTER TABLE PQualification
ADD CONSTRAINT fkp_student_id FOREIGN KEY(StudentID) REFERENCES Student(StudentID)
ON DELETE CASCADE
ON UPDATE CASCADE;
ALTER TABLE Course
ADD CONST... |
Java | UTF-8 | 3,975 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package projectzulu.common.mobs.entity;
import java.util.EnumSet;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.passive.IAnimals;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
impor... |
C# | UTF-8 | 1,882 | 3.25 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.DirectoryServices.AccountManagement;
using System.Linq;
using System.Text;
namespace TestADLogin
{
[Serializable]
public class ADUser : IComparable
{
public ADUser()
{ }
public ADUser(UserPrincipal principal)
{
FirstName = principal.GivenName... |
Markdown | UTF-8 | 1,224 | 2.734375 | 3 | [] | no_license | # kmer-counter-abseil
The `kfs` program reads in multiline FASTA records, counts canonical kmers using the [Abseil C++ `container:flat_hash_map`](https://github.com/abseil/abseil-cpp).
## Abseil C++
Integration of the Abseil C++ kit requires use of [`bazel`](https://www.bazel.build/), *e.g.*, on OS X:
```
$ brew ca... |
Java | UTF-8 | 409 | 2.515625 | 3 | [] | no_license | package kr.co.fastcampus.eatgo.domain;
import lombok.Getter;
@Getter
public class Restaurant {
private Long id;
private String name;
private String address;
public Restaurant(Long id, String name, String address) {
this.id = id;
this.name = name;
this.address = address;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.