branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import React, { useEffect } from 'react';
import { StatusBar } from 'react-native';
// import * as Font from 'expo-font';
import createRouter from './src/Routes';
export default function App() {
const Routes = createRouter();
// useEffect(() => {
// Font.loadAsync({
// // eslint-disable-next-li... | 1f49511db45d52dd28b1034ee80fdc9bce4b12e5 | [
"JavaScript"
] | 4 | JavaScript | godrix/idEstudantil | 7b31c2b4e93f072cb811ddc45493a86dad9109a4 | 526609d029585659cebd4544299d88f9cd86c0f6 |
refs/heads/master | <repo_name>ForrestProjects/WebsiteFancyThat<file_sep>/Test site/test.js
$(document).ready(function() {
$('div').click(function() {
$(this).fadeOut('slow');
});
});
window.alert(5 + 6);
<file_sep>/home.js
$(document).ready(function() {
$('#cata').click(function() {
$(this).fadeOut('slow');
... | 6482f6eeb74731c27fc561359aadcea1ee4fd7d2 | [
"JavaScript"
] | 2 | JavaScript | ForrestProjects/WebsiteFancyThat | dc0ad3c7d44448de3633d79b79d698f8bd3739dc | 2af3cbc10fa4456346323c8972a314576d9c4c74 |
refs/heads/main | <file_sep>package com.example.Albumproject.album;
import com.example.Albumproject.album.Album;
import com.example.Albumproject.album.CreateAlbum;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.sql.SQLException;
@WebServlet(name = "NewAl... | 906c0ee9b0a85989a6b77ac973387c96cc766cad | [
"Java"
] | 6 | Java | krakenhacker/PhotoAlbum | 5364f47d59b0821adaa843f4a3de42aaeee0d657 | 72856a89bd418a73216d445c97122bf00b23307d |
refs/heads/master | <repo_name>astiusa/jwt-sign<file_sep>/generateToken.js
#!/usr/bin/env node
'use strict';
var cli = require('cli');
var jwtSign = require('./index.js');
cli.parse({
name: ['n', 'Name of user'],
read: ['r', 'Read authorization'],
write: ['w', 'Write authorization'],
secret: ['s', 'JWT secret']
});
cli.mai... | 8a93db728ec4a38da7d84d8278ae8290f5554d2e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | astiusa/jwt-sign | c9070bd7b4041cf9c577491a6332c95887cba467 | 7d7afc6625e822e101b6737d1dd3f2df599944af |
refs/heads/main | <file_sep># Steps to install Rust
<br />
## Installing Rust on Windows
#### Visit [Install Rust](https://www.rust-lang.org/tools/install) to download RUSTUP-INIT.EXE (32/64 BIT) to install rust.
## Installing Rust on Windows Subsystem for Linux
#### If you’re a Windows Subsystem for Linux user run the fo... | e8857157932320135b607c5ce957ead3a63c1e92 | [
"Markdown",
"Rust"
] | 4 | Markdown | ankitksh81/learn-rust | 401dc6893202a31d05003ca08cd1f6fcee33ecbb | c38dde65b5bb6acfe79cab064f0dc6a16c08f5ba |
refs/heads/master | <file_sep>
/**
* formatter.js
* Lógica para o processamento e extração de números das
* strings recebidas pelos farmers.
*
*/
exports.extractNumbers = function (textArr) {
let numbers = [];
for (let txt of textArr) {
try {
if (!txt) continue;
txt = txt.toString();
... | 6f793b0e7201b2e20c43769d2b4024321a38cbb0 | [
"JavaScript"
] | 3 | JavaScript | lbltavares/benford-law | 4886c018cbe242ccf64342adec3fe13d3383be7d | f55a09401c48a4e4101d84766c9b5e2c40849069 |
refs/heads/main | <file_sep>import instaloader
i = instaloader.Instaloader()
username = input("enter username:- ")
i.download_profile(username,profile_pic_only=True)
| 37ecfd01166d5b13640bc692e646a839cea635f3 | [
"Python"
] | 1 | Python | Ajithjohnson33/Instagram_dwld-Profilepic | dd6bafd1d32bf77cf8ee66298759d0def80a0d82 | 5364dd1e2acfb10dbea48863cd4a04281dad0860 |
refs/heads/master | <file_sep>/*
* Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
* All rights reserved.
* Official Web Site: http://www.xiaominfo.com.
* Developer Web Site: http://open.xiaominfo.com.
*/
package com.xiaominfo.oss.service.impl;
import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.google.c... | d0dd60f6a6c73dfed9c99c574982b6c3574eaa27 | [
"Java",
"SQL"
] | 4 | Java | wmy596/oss-server | 95d1760f28f020aa6f4ab484d91221c80f9a3262 | 0d2c8c63405cb09c3e6424a365a4b283cebe226e |
refs/heads/master | <file_sep>require('./style.scss');
const items = [
{
id:"p0",
categoryTitle:"快速开始",
items:[
{id:"c0",title:"安装",url:"installation.html"},
{id:"c1",title:"Hello World",url:"hello.html"},
{id:"c2",title:"介绍JSX",url:"jsx.html"},
{id:"c3",title:"渲... | 9c2da95edfe1d4150fb6e2ccc3c863df821458d3 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | xianlong1226/react-webpack | 0f3200efdd3002525c00d155ce40508f2fbcd392 | 60c162b8d3b6ff5a056f20a577463a131987b71f |
refs/heads/master | <file_sep>#!/bin/bash
echo "Enter the start stop step"
read START END STEP
for i in $($START..$END..$STEP)
do
echo "Your numbers are" {$i}
done<file_sep>#!/bin/bash
#input
echo "Enter your full name and age"
read FIRSTNAME LASTNAME AGE
echo "Hello $FIRSTNAME $LASTNAME, you're $AGE years old"<file_sep>#!/bin/bash
C... | 5624562443d637c62ee0ddbb11ee52c03b08b3d1 | [
"Shell"
] | 5 | Shell | Olatoye-Daramola/Bash_Script | 88732a9c8fc0dfa21a8e93896ac562c47aa5f722 | c0192c4d9411d37b45685547ce730b44ea1988e9 |
refs/heads/master | <file_sep>-- :name create-task! :! :n
-- :doc creates a new task record
INSERT INTO tasks
(title, description, priority, size, done)
VALUES (:title, :description, :priority, :size, FALSE)
-- :name update-task! :! :n
-- :doc update an existing task record
UPDATE tasks
SET title = :title, title = :title, description = :... | c337538bc2a7fde2fb06f7347973a00be260b883 | [
"SQL"
] | 2 | SQL | davidpaniz/todolist-luminus | fb46b5a525d2cb76df18e2acf8b088d4a09a7770 | 62861388d15e354463c899f861819e23cc15c32f |
refs/heads/master | <file_sep>// from data.js
var tableData = data;
//var date_filter;
//console.log(typeof tableData.datetime);
// Manipulating HTML Content
// Reference to table body
var tbody = d3.select("tbody");
//console.log(tbody.text())
// Looping through each Object in the whole data
tableData.forEach(each_object =>
{
... | d466ddcbd3db391ac5b318bef584368e67460aac | [
"JavaScript"
] | 2 | JavaScript | MahathiV/javascript-challenge | 36631d7937e457d7712948bc291930104d787b24 | 4a32688ce9959a08183dcaf338d929470a5a22ee |
refs/heads/master | <repo_name>josh0xA/ring3-kit<file_sep>/src/DLL/hook.h
#pragma once
#ifndef __HOOK_H
#define __HOOK_H
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <Psapi.h>
#include <iostream>
#include <TlHelp32.h>
#include <stdio.h>
#include <stdlib.h>
#include <winternl.h>
// Updated user commit
#de... | 7ce058ef69aa416fd4b04bde0037d2673c3ae6bd | [
"Markdown",
"C++"
] | 3 | C++ | josh0xA/ring3-kit | 0f4cafa14c7bf2bef2f7c980468de7be8f8f24a5 | 6857d7413f6d81889ba1ccde11ff283287260490 |
refs/heads/master | <file_sep>package com.hackathon_sg.sg_hackathon_lendingAppRest;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.... | 157fc9bde502e39573c9f994edcecafafd765d98 | [
"Java",
"TypeScript"
] | 11 | Java | Allah-The-Dev/mounten_men-lending_app | bcced0b9c841071e4d14a20940515a9bc3c58666 | 28746ec8b4310ba912933b258c752230a2e7ac3c |
refs/heads/master | <repo_name>Eli-Benakot/Coupon-Wonderland<file_sep>/couponProjectPhase3/src/main/java/app/core/controllers/ImageController.java
package app.core.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.ann... | 34e100ad8645ba0d9cdf19fb537c3ef38071035d | [
"Java"
] | 1 | Java | Eli-Benakot/Coupon-Wonderland | 74b47facea7b41b99adf0b78eac284afc1e274d5 | 3d0c0126e5c9ead5aa0ef56f347249f7728b0b5b |
refs/heads/master | <file_sep>from pprint import pprint
import sys
import collections
def toStr(n,base):
convertString = "0123456789ABCDEF"
if n < base:
return convertString[n]
else:
return toStr(n//base,base) + convertString[n%base]
print(toStr(1453,16))
# 4 * 3 * 2 * 1 = 24
def factorial(num):
if num < 2:
... | 962558f1760b40fe92894e9b0d909a8274bd8468 | [
"Markdown",
"Python"
] | 26 | Python | anilgautam1987/PythonicRepo | 37a27cebb1b1f0dc3f8af9401208b7670bbdeef1 | fc7e4a8e0c350f5fbc26ade65afe32c3b913ba75 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <iostream>
#include <string.h>
#include "harmony10.h"
#include "harmony_efim.h"
#include "testlib.h"
#include "libxml/xmlreader.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
using namespace std;
FILE *fp;
HarmonyServerHandle *Serhandle;
char *trim_space( char *str )
{
char... | 2f0f08563f3c224d1f1fac0b0ef87d4099a2681b | [
"Markdown",
"Python",
"Text",
"C++"
] | 26 | C++ | rameshho/problem-solving | 575b011104e124676ee33a212fc3e303d62440af | 1c2d049dea3f40888a9c8bacb17b9e0db2d35c85 |
refs/heads/main | <repo_name>danonymous856/MiniProject-YT<file_sep>/Basics.py
import cv2
import numpy as np
import face_recognition
imgX=face_recognition.load_image_file('images/<NAME>.jpg')
imgX=cv2.cvtColor(imgX, cv2.COLOR_BGR2RGB)
imgTest=face_recognition.load_image_file('images/jeff_bezos.jpg')
imgTest=cv2.cvtColor(imgTest... | 60d1bcd23fe97916cda3d0a72c32ba04b4063606 | [
"Markdown",
"Python"
] | 2 | Python | danonymous856/MiniProject-YT | bfd7a2f61ee9233a01d21e027c1582459a341461 | f783dbf71af4c60b09e057b2114caf2156b3b5e8 |
refs/heads/master | <file_sep>## Test environments
* local OS X install, R 3.5.0
* ubuntu 12.04 (on travis-ci), R 3.5.0
* win-builder (devel and release)
## R CMD check results
0 errors | 0 warnings | 0 notes
There were no ERRORs or WARNINGs or NOTEs
## Reverse dependencies
Reverse dependencies for the packages `naniar` and `PCRedux` ... | c591d08c79fa73161e6585ea89e0da3c11bcc867 | [
"Markdown",
"R"
] | 3 | Markdown | yonicd/visdat | febf9302d80b26bf1e8d504fa86cc12568c8f2d1 | b0c4ad4eae140c62aa36109595151409bd49ccdd |
refs/heads/master | <file_sep>#makefile
.SUFFIXES:
.SUFFIXES: .o
vpath %.c src
vpath %.h include
vpath %.o obj
PROG = heysteimkeclient
CC = g++
LD = g++
LDFLAGS =
#-Lmodules/libhttp -l/libhttp -lpthread -ldl
OBJPATH = obj
OBJS = \
App.o \
main.o
OBJS_w_PATH = $(patsubst %,$(OBJPATH)/%,$(OBJS))
INCPATH = include
SRCPATH... | 86266ad3f878ad891d7055d38350e99b8b9e1e48 | [
"Markdown",
"C",
"Makefile"
] | 5 | Makefile | einsteinmaster/NativeCHeySteimkeClient | 1f24e580d49ecad6f29e1cb47c1fb0600509e684 | 95ddb661723838b64d86671dca1ae9d24b5c5d62 |
refs/heads/master | <file_sep>// EssentialJS v0.1.0
// Copyright (c)2014 <NAME>
// Distributed under MIT license
// http://roperzh.github.io/essential.js
window.Essential = {
rootElement: document,
Core: {},
// Start
// -----
//
// Wakes up the engine, searching and attaching
// behaviors with their prope... | 4288bd26aa886b57c16a8b789a84fa476adab7e3 | [
"JavaScript"
] | 3 | JavaScript | bernardocorbella/essential.js | ffd60b17b1137234c5fd2c1aaa664dbc5e326e65 | c6f67289d1ffc73861bde55c6e721fde8e7725ac |
refs/heads/master | <repo_name>linalinalin/test<file_sep>/dist/littleTool.js
/********************
* layercake
* PC端 JS工具集
* 因为是内容使用,不保证通用
* Created by 林丽娜 on 16/1/29.
*/
(function ($) {
/***************************
* 模糊搜索
* 使用方式:
* $('').autoComplete({
url: ,
dataName: ... | b8728896323656c7de11e7c9a59665125ef26854 | [
"JavaScript"
] | 1 | JavaScript | linalinalin/test | ef57b504fc38e6413d8957812d9541e36b22315a | 54dd6f35c7b7f98368a2c236b52767c157e11404 |
refs/heads/master | <file_sep>/**
* @Title: RetrieveTest.java
* @Package com.lidong.it.mp
* @Description: TODO
* @author 杨小琪
* @date 2019年11月8日 下午4:18:06
* @version V1.0
*/
package com.lidong.it.mp;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import o... | 94e7d749e7dbdcc06effcf80c11f6e7f598be9e7 | [
"Java"
] | 3 | Java | YangSan007/mybatis-plus | e68da4d7c18b544fafc26cbb9ce08c7e3c419320 | 67c5518bad29ca36ff76ef04a86635dd1d1fedd0 |
refs/heads/master | <repo_name>Courag/algorithm_code<file_sep>/18软工1班-180021105326-江松坤.cpp
#include<stdio.h>
template<class Type>
int BinarySearch(Type a[],const Type&x, int n)
{
int left=0;int right =n-1;
while(left<=right)
{
int middle=(left+right)/2;
if(x==a[middle])
return middle;
else if(x>a[middle])
left=middle+1;
e... | ac19ef63a1fe3595653ab524ec089a436eb110df | [
"C++"
] | 1 | C++ | Courag/algorithm_code | 2c7f3f6d39cfb6be7ee94fae4b150f4de8a45c11 | 21ada0efdf814d8d57fe6822220f4c435ee46df2 |
refs/heads/master | <repo_name>Carlos-Claro/verificaArquivosPOW<file_sep>/app/test_main.py
# -*- coding: utf-8 -*-
import unittest
import sys
from main import main
class TestMain(unittest.TestCase):
def setUp(self):
self.query = myQuery()
def test_string(self):
string = 'select * from imoveis'
v... | 332f7cc2d69b49dacd50ade3e8e5a19fd937d221 | [
"Markdown",
"Python"
] | 3 | Python | Carlos-Claro/verificaArquivosPOW | 3798ee14aec0422069eb5b70dfd1b7b8ed680982 | f74878f4cf3bd64664bafcea0be478ceabf8b9bd |
refs/heads/master | <file_sep>import { Component, ViewChild } from '@angular/core';
import { NavController, NavParams, Navbar } from 'ionic-angular';
@Component({
selector: 'page-button',
templateUrl: 'button.html'
})
export class ButtonPage {
@ViewChild(Navbar) navBar: Navbar;
constructor(public navCtrl: NavController, public ... | 17dc41753d3770d6d75ec9deba0086369ea4392f | [
"TypeScript"
] | 1 | TypeScript | juniorabranches/ionic-backButtonEvent | 3b82c7b2d7710308fd43d33ac76d08b01e1b2dbd | 5e603a79d1718adcbdaf439da19ba6513b8630e1 |
refs/heads/master | <file_sep># citygml-ifc-python
some useful code to script on citygml, ifc data
<file_sep>import os
import xml.etree.ElementTree as et
"""This program coded for establish xlink mechanism on FME exported GML files."""
base_path = os.path.dirname(os.path.realpath(__file__))
xml_file = os.path.join(base_path, "... | 89e7c449c70885268a1b6388abbeb9dc140a999b | [
"Markdown",
"Python"
] | 2 | Markdown | MohamedAlabassy/citygml-ifc-python | 6e0ae15f8371a9545d7213c3d24c06b8dbb02ef1 | 84839a7d955720f84402b88ca84620c6a1cdc381 |
refs/heads/main | <file_sep>import os
import json
# OpenWeatherMap API Key
weather_api_key = "e1496dcd9562bc83e54c223a5dc375b6"
# Google API Key
g_key = "<KEY>"
| f31e438bb896df68d7c207cd17f28321fdd5b6ef | [
"Python"
] | 1 | Python | CAguayoRb/Python-API-Challenge | 01618aa5aa9035dcbf3c6522c423066a0eafe2ef | ae540214ca7ea104bb45c7f4ad4364d299a01544 |
refs/heads/master | <repo_name>rakkot-vm/Currency-parser<file_sep>/models/CpAvgprices.php
<?php
namespace app\models;
/**
* This is the model class for table "{{%cp_avgprices}}".
*
* @property int $id
* @property int $date
* @property int $currency
* @property double $purchase
* @property double $sale
* @property double $interba... | 9ef3c05ddbfc4a1c54974214e9566d6e1fc800d6 | [
"Markdown",
"PHP"
] | 18 | PHP | rakkot-vm/Currency-parser | 953251250d2931f1e1da083c6cbdb2cdaf89779a | 6a77594de809dc25a46d526812e9a00130637012 |
refs/heads/main | <repo_name>Sigma003/BotD<file_sep>/index.js
const Discord = require('discord.js');
const client = new Discord.Client();
const fs = require('fs');
const express = require("express");
const app = express();
const { TOKEN , prefix } = require('./properties.json');
app.use(express.static("public"));
app.get("/", function... | 4acb43926d1c3cd1aa800397a5a7973c81faf8b3 | [
"JavaScript"
] | 1 | JavaScript | Sigma003/BotD | a698c1e0eccf6d6e42b39e66e5e78b0317b1b600 | 72e3442de7ec32ce2fa13e0a0d89604eb86bafde |
refs/heads/master | <repo_name>truongkma/rails-vue<file_sep>/lib/rails-vue/view_helper.rb
module Rails
module Vue
module ViewHelper
def vue_component(component_name, data = {}, options = {})
init_vuejs(component_name, data, options)
init_component(component_name, options)
end
private
def init... | a81707b1b58a2b6bd6c9ab6a829b3b99895a595d | [
"Markdown",
"Ruby"
] | 4 | Ruby | truongkma/rails-vue | 79a129aaa4651664137164e8d48213b6f54f72aa | 9d2e04f1eb280cd01bc10c989fc72293692b87fc |
refs/heads/master | <repo_name>LibertyPie/libertypie-admin<file_sep>/src/actions/permissionManagerActions.js
/**
* LibertyPie (https://libertypie.com)
* @author LibertyPie <<EMAIL>>
* @license MIT
*/
import {
PERMISSION_MANAGER_ERROR,
PERMISSION_MANAGER_REQUEST,
PERMISSION_MANAGER_SUCCESS,
PERMISSION_MANAGER_UPDATE... | 2e87f922ef554af55e1b37d652c63290a8253780 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | LibertyPie/libertypie-admin | 91b9cd8006050f2473563ac673907b778b818b79 | c61bf68dd87c5372af2a13d4c44dc84a206346e0 |
refs/heads/master | <repo_name>ValentinMSU/HSE-ML1-Sokolov<file_sep>/README.md
# HSE-ML1-Sokolov
Course tasks and homework
<file_sep>/functions.py
import math
def prod_non_zero_diag(x):
res = 1
for i in range(len(x)):
for j in range(len(x[i])):
if (i == j) & (x[i][j] != 0):
res = res * x[i][j]
return res
def are_multisets... | 242f68d8f7f3feca3c8007137d6dd71e97eab68b | [
"Markdown",
"Python"
] | 3 | Markdown | ValentinMSU/HSE-ML1-Sokolov | 41037d8e238c3ba1abad239355a4d911b3a2b896 | 0ae201fc8caf39721a2a5ef1853c87b0707b0b2d |
refs/heads/master | <file_sep>nyagos.setenv("HOME", nyagos.getenv("USERPROFILE"))
nyagos.completion_slash = true
-- unix shell like aliases.
nyagos.alias.cp = "copy $*"
nyagos.alias.mv = "move $*"
nyagos.alias.rm = "del $*"
nyagos.alias.la = "ls -a $*"
nyagos.alias.ll = "ls -l $*"
nyagos.alias.cat = "type $*"
-- scoop aliases like... | 4a258ebab476db17d09688b52dc5731208904c12 | [
"Lua"
] | 2 | Lua | rkbk60/config | 2d6c7ebbbf0aeb390b7836240926daf152f1c778 | 5a7578455eab7e257fddf2161ceb4ae4aea774b7 |
refs/heads/master | <repo_name>tanay123456789/shopping_cart<file_sep>/my-app/src/Components/BuyPage.js
import React,{useState,useEffect} from "react"
import Axios from "axios";
import cartItem from "./CartItem";
import { random,commerce,datatype } from "faker";
import {Container,Col,Row} from "reactstrap"
import CartItem from "./CartItem... | 5f4ae85ee8fa2292b7eb1f388775a868b54fd1eb | [
"JavaScript"
] | 1 | JavaScript | tanay123456789/shopping_cart | 45af905b5a140d72325dc5716d4f1108053a75b8 | 4f19bb4200d84a389ab1bf278c3aae5113d331b2 |
refs/heads/master | <repo_name>matin1998/MatinApi<file_sep>/src/main/kotlin/com/example/dto/UserDto.kt
package com.example.dto
data class UserDto(
val id: String,
val color: String,
val carName: String,
val licencePlate:String
)<file_sep>/src/main/kotlin/com/example/repository/UserRepository.kt
package com.example.reposit... | 0cde066a59d6a61bdc5aa3c25d21ea22f5ed5978 | [
"Kotlin"
] | 8 | Kotlin | matin1998/MatinApi | beb38603b49e2bd741432f6bc4fe5e421e9b71dd | 0a34dbc3f1d62f83b05cca8ca7345b726ec5e992 |
refs/heads/main | <file_sep>/* eslint-disable jsx-a11y/label-has-associated-control */
/* eslint-disable react/button-has-type */
import React from 'react';
import { Link } from 'react-router-dom';
const SignupOpt = () => (
<div className="flex flex-col mx-auto justify-center p-4 lg:w-2/12 lg:mt-20">
<Link
to="/cadastro-res... | 2878fbab847a13a8d17a3fd8d61e35bb1d68f316 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | Xandowns/tanomenu-front | 5c9cffcc5fab5fb36eff3a572f3b29dfe35119c3 | 34b25ce7a990d4f08fc55866b9e2d1a49e9e9ab0 |
refs/heads/master | <repo_name>navitran/cofeeshop<file_sep>/src/main/java/edu/mum/coffee/domain/User.java
package edu.mum.coffee.domain;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persis... | 27fe20823515443fb35270189fe382119d06a2d9 | [
"Markdown",
"Java"
] | 7 | Java | navitran/cofeeshop | 04f48b174ad0b1151a366dc045cf388774bb6963 | f43723980d7e62e2e763572f5a59d88c109c2d3d |
refs/heads/main | <repo_name>JosueMolinaMorales/PriorityQueueCS2Project<file_sep>/README.md
# PriorityQueueCS2Project
Computer Science 2 Project
<file_sep>/sourcecode/ArrayMaxHeap.cpp
/**
* @file: ArrayMaxHeap.cpp
* @author: cwoods
* @class: ArrayMaxHeap
*
* Created on April 14, 2019, 6:50 PM
*/
#include "ArrayMaxHeap.h"
#... | cb405efb982a4d41f4ed632e28bf714602cac691 | [
"Markdown",
"C++"
] | 10 | Markdown | JosueMolinaMorales/PriorityQueueCS2Project | f39823b7e695ab38083f1f0e6cdcb2b9ba7a8cac | dfc006612ff00aa1e088b2e4f7f94fdc0f237683 |
refs/heads/master | <file_sep>#ifndef EndStateH;
#define EndStateH
#include "GameState.h"
#include "MenuButton.h"
#include "checkML.h"
#include <iostream>
class EndState : public GameState {
protected:
MenuButton* playButton;
MenuButton* menuButton;
public:
EndState(SDLApplication* app);
static void playButtonClicked(SDLApplication... | 8967115411a25892d77c66a4f715b46e719887d8 | [
"C++"
] | 34 | C++ | onaranjoUCM/TPV-Arkanoid | 57fcc8a0f02d19145c89edebe476a1604d74e0a6 | d6dd5c7bfd486fdc4bfd87e013334f3cf9b4db39 |
refs/heads/master | <repo_name>caubesin/bmi-calculator<file_sep>/src/const/index.js
export const CALCULATE_BMI = 'CALCULATE_BMI';
export const REMOVE_DATA = 'REMOVE_DATA';
export const UNDO_DATA = 'UNDO_DATA';<file_sep>/src/component/chart.js
import React from 'react';
import {connect} from 'react-redux';
import {Line} from 'react-chartjs... | b712f8e72da5d776505f155b77388c4dafd23aaf | [
"JavaScript"
] | 8 | JavaScript | caubesin/bmi-calculator | 9bb6c6f83e21d12bcaac3ce768c28a7edc147bd9 | c88e63db5f28c2883389de323d4c88797d3b1f56 |
refs/heads/master | <file_sep>## Installation ##
> npm install
## Watch for changes ##
> npm run dev
Use http://localhost:1234/ in your browser.
## Build for production ##
> npm run build
## FAQ ##
Where do I add my SASS files?
In the /sass folder
## How do I import more SASS files ##
Import them in index.js
<file_sep>import './sas... | fdc652050236b908258c5cf1b25b1e5c07134080 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ericvalois/parcel-starter | 8b3f80578bcc3549d0483706f2eb372e2af4325c | 15de36e5de16aa5aa7f535d27da2c0697d594e7c |
refs/heads/master | <repo_name>547/webpTest<file_sep>/Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
inhibit_all_warnings!
target 'webpTest' do
pod 'SDWebImage'
pod 'SDWebImageWebPCoder'
end
# SDWebImageWebPCoder 里面引用了Goole官方解码webp格式的库:libwebp,这个库实际指向Goole的网站,国内下载很困难,所以要到GitHub... | c5c07c75390e42c217c30366e3db0bb436b546bb | [
"Swift",
"Ruby"
] | 3 | Ruby | 547/webpTest | 5b8eb11ae13a7e2128154169b93c8b8eec7fb1ef | 4778cb5679d313f7bc236098e593688399651500 |
refs/heads/master | <file_sep>/*
* 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.profesorfalken.jsensors;
import com.profesorfalken.jsensors.model.components.Components;
import com.profesorfalk... | b59622f025f3684f3536d3e68dd8c052174c8188 | [
"Java"
] | 1 | Java | GBernardo10/Github-03-09 | 6fa576003e8c083e45ad9d32fff7d1488bd51b93 | 064a0c4471ef48185643218935c85049538ca10c |
refs/heads/master | <file_sep>#ifndef BASE_GAME_ENTITY_H
#define BASE_GAME_ENTITY_H
//------------------------------------------------------------------------
//
// Name: BaseGameEntity.h
//
// Desc: Base class to define a common interface for all game
// entities
//
//-------------------------------------------------------------... | 5de49ade08b3e41425a0333b5509f45ac958b5fb | [
"C++"
] | 11 | C++ | Markof87/AI-SteeringBehaviors | 1982999d2702484b1445de03ef6e35af3e446aae | ae6caea8379d9fa61711257bc40b16325f723e6c |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# This python 3.6+ script is a quick products.py file generator
import json
import re
import http.client
import sys
def main():
conn = http.client.HTTPSConnection("raw.githubusercontent.com")
conn.request("GET", "/LIFX/products/master/products.json")
resp = conn.getrespons... | 18e356cef3fff72ee3045202ef525c608a060551 | [
"Markdown",
"Python"
] | 31 | Python | mclarkk/lifxlan | 261e0f7fe23782e9d77241e0703f15ab12311663 | 2ee8fe3e5bd8355bd51f2bfe0940082daaef4f57 |
refs/heads/master | <repo_name>letrungkien211/RGBClustering<file_sep>/RGBClustering/DistanceLayer.h
#pragma once
#include "Layer.h"
namespace NeuralNetwork {
class DistanceLayer:public Layer {
public:
DistanceLayer(int inputSize, int outputSize);
virtual ~DistanceLayer();
virtual vec Compute(const vec & input);
/... | 5e7da2cb729799e090cc21d7919b41c6844e55d0 | [
"C++"
] | 23 | C++ | letrungkien211/RGBClustering | 2e7530ced31b36752a442859174419818f1bf680 | e9c511fe4ddd06acf3cc2ae443b6a750b7b1df80 |
refs/heads/master | <repo_name>carsonkaylor1/ShootingRange<file_sep>/Assets/Scripts/BulletScript.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BulletScript : MonoBehaviour
{
public float maxDistance = 100000;
public GameObject decalHitWall;
public float inFrontOfWall = 0.01f;... | 7017a3c53a7204e884e4aa2f03c3dc302de40a53 | [
"C#"
] | 6 | C# | carsonkaylor1/ShootingRange | 922b30ecffcb04754f51a2d32d69bb160084c2af | f482dcbf808354f3264d0d797572f8ac0cdefd2d |
refs/heads/master | <file_sep>class Load < ApplicationRecord
belongs_to :store
belongs_to :user
def invoice
end
end
<file_sep>class LoadsController < ApplicationController
before_action :set_load, only: [:show, :edit, :update, :destroy]
# GET /loads
# GET /loads.json
def index
@loads = Load.all
# @inv = Stripe::In... | 6637a18bb4ef00fca5aae9fca83b3f72ad94d9c4 | [
"Markdown",
"Ruby"
] | 12 | Ruby | aminamos/laundly | 22bf8e4a2c5042262d22531daac4f2a71d93fcac | 04b92bcb915da2a89120ec15e53c3ccb49f2f693 |
refs/heads/master | <file_sep>package com.schroeter.spring.showcase.controller;
import com.schroeter.spring.showcase.services.GreetingService;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
@Controller
public class ConstructorInjectedController {
private final Greetin... | f93fbf78f99ef8913d489b07fb34b5fe3e7f1745 | [
"Java"
] | 3 | Java | Julesmuc/spring-cheat-sheet | b44c7fa32b9dc56232317d2226819975dba590e5 | 60862c7c4ace1844b3567e4d2ff634768524d1ed |
refs/heads/master | <file_sep>#!/bin/bash
#
# Define Usage & Function(s)
#=====================================================
function Usage() {
cat << USAGE
This script is intended to preprocess the DWI data
for Neonates in the IRC287H study.
Compulsory inputs required in the following order:
<Diffusion Weighted Image (DWI)>
<Re... | 53294daf02d0354550433860e1d1c72450ba7631 | [
"Markdown",
"Python",
"Shell"
] | 6 | Shell | AdebayoBraimah/DWI_Preprocessing | f4c0c634fc44d3171477072edd7f7c6d366c3924 | 52efe40cef566332366fbcfc14f762f510a7cb35 |
refs/heads/master | <repo_name>Robbedebie/taskmanager<file_sep>/src/test/java/be/ucll/taskmanager/TaskTest.java
package be.ucll.taskmanager;
import be.ucll.taskmanager.domain.service.ServiceException;
import be.ucll.taskmanager.domain.service.Subtask;
import be.ucll.taskmanager.domain.service.Task;
import org.junit.Test;
import org.sprin... | 102eed6d73e58907de82db1c50772188f8242f9e | [
"Java",
"INI"
] | 6 | Java | Robbedebie/taskmanager | b7c1cf3d9d6b6797846b61707d416c96c992f535 | de2969faddb397aec31ca46b06a4ec8438d1c1c7 |
refs/heads/master | <file_sep>/******************************************
Treehouse FSJS Techdegree:
project 1 - A Random Quote Generator
Author: <NAME>
June 12th 2019
******************************************/
// array of objects with quotes
var quotes = [
{
quote: "Great men are not born great, they grow great.",
source: "<N... | 131e0b9d7f78743ec2c548b3732519b6268f28b6 | [
"JavaScript"
] | 1 | JavaScript | KevinHaire/Treehouse-Project-1 | 055b05926afc511e3b775d818e4294fbca356496 | c04a24f33eb0db35435e5db1baa3465f61c557cf |
refs/heads/master | <repo_name>phpxiaobo/laravel_taobaoke<file_sep>/app/Http/Controllers/Login/LoginController.php
<?php
namespace App\Http\Controllers\Login;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class LoginController extends Controller
{
/**
* 显示登录页面
*
*/
publ... | d3c82a323377360d6ebfbfcdaf80261839922272 | [
"Markdown",
"PHP",
"INI"
] | 29 | PHP | phpxiaobo/laravel_taobaoke | b3b15b891ca0883c3c0f8e5eb01bcdcf51f31f3d | 397d21d47b8010b8b77ff5813008011d3c966274 |
refs/heads/master | <repo_name>7revor/mini-ui<file_sep>/src/mixins/customEvent/index.js
import { fmtEvent } from '../../util'
/**
* 自定义组件点击事件处理
*/
export default {
methods: {
tapHandler: function (event) {
if (this.props.onTap && !this.props.disabled) {
if (typeof this.props.onTap === 'function') {
const ev... | 2f7cf099519a8d26d65d92c626d06b040def76ad | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | 7revor/mini-ui | a7ddfecfdba3a20c6e0613328f30cc48042c0068 | 7ad609b8318242cf06a078cfc7cbf57086920ce0 |
refs/heads/master | <repo_name>volkovasystems/read-json-file-sync<file_sep>/README.md
# read-json-file-sync
Read JSON file synchronously.
<file_sep>/read-json-file-sync.js
var readFileSync = require( "fs" ).readFileSync;
var parse = JSON.parse;
var readJSONFileSync = function readJSONFileSync( ){
return parse( readFileSync.apply( nul... | d46a9258bda60e6df6f5725fbd045ca6006112d5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | volkovasystems/read-json-file-sync | c8780da54400908401bb6fc73016c469eb9917a1 | 6a18ee8ed010d77d7e54b75ce20675b7ceed9f8d |
refs/heads/master | <file_sep>package now;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.sikuli.script.Button;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Location;
import org.sikuli.script.Match;
import org.sikuli.script.Screen;
public c... | 579da2186613d1adad0387cb77faa800d2980528 | [
"Java"
] | 1 | Java | JPrasannanjaneyulu/practice | 5aaa50d0c76fbf30306fa83620cb74c728723de7 | cda3d9bffa04b3c02c6d09f54c5028713915a8b0 |
refs/heads/master | <file_sep>module ApplicationHelper
#We have to make this method abstract for others to use
#because it is in the application.html.erb file
def hidden_div_if(condition, attributes = {}, &block)
if condition
attributes["style"] = "display: none"
end
content_tag("div", attributes, &block)
end
end... | a3613104a3ee1dae85e45ab1cc23c252cc739d0b | [
"RDoc",
"Ruby"
] | 3 | Ruby | drubio1989/Depot_App | 08c5ab2b7f3147897d39c7d3b4dfcbf1625e29dc | dcfba79b4e9755d8dbe9f19fcdbee7f810bb724b |
refs/heads/master | <repo_name>lauren-hp/tweet-shortener-web-080717<file_sep>/tweet_shortener.rb
def dictionary
replacements = {
"hello" => "hi",
"to" => "2",
"two" => "2",
"too" => "2",
"for" => "4",
"For" => "4",
"be" => "b",
"you" => "u",
"at" => "@",
"and" => "&"
}
end
def word_substituter(... | 9802917843cb61af3eb7b1fc09679c764a70bc76 | [
"Ruby"
] | 1 | Ruby | lauren-hp/tweet-shortener-web-080717 | 85177b5001459bc307527617def5a8b93b5930c4 | edd5ad8c392c328b0b8edae63a3f94255062dc68 |
refs/heads/master | <file_sep>function getAllPropertyNames(o){
var props=[]
do props.push(...Object.getOwnPropertyNames(o))
while (o=Object.getPrototypeOf(o))
return props
}
function type(obj){
return ({}).toString.call(obj).match(/\s([^\]]+)/)[1].toLowerCase()
}
module.exports=function(opts){
if(opts===u... | 75d0198595dab9f067c5b5049758b1b51a6d6a0c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jnvm/runtime-autocomplete | 82025d9066d3daa6a138ecf41959b3bcc7ebefc0 | 98bb7c0f89e593934c4e01927967ef88d4e99464 |
refs/heads/master | <file_sep>//importing mongoose module.
const mongoose = require('mongoose')
//import schema.
const Schema = mongoose.Schema;
let productSchema = new Schema(
{
productId: {
type: String,
unique: true
},
title:{
type:String,
default:''
... | 2107565222a403d5b72d4c8be025795c765d249f | [
"JavaScript"
] | 4 | JavaScript | tushargupta99/EcommerceAPI | cb4fe8bca3997c08be44293ba43ffe9bce0c8fd2 | 0afdc929759188d91c7794cf34d82f47048a11c8 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <mpi.h>
#include <string.h>
int size, rank;
double* linspace(double a, double b, int n){
//this subroutine mimicks the matlab function linspace
double c; int i;
double *u = malloc(n*sizeof(double));
c = (b -... | 35ad68592fc96219ce62ac0bef1e9402cbd0d774 | [
"Markdown",
"C",
"Makefile"
] | 4 | C | aansari2/Distributed-Computing-on-MPI | 7b61f2eadc4ac726583681dad9c5b0eef32e4193 | 8bd31089b437c431d40af6f44716a74102e09e5b |
refs/heads/master | <repo_name>AliSaluja/simpleCalc<file_sep>/app/app.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import platform
PYTHON_VER = int(platform.python_version().split(".")[0])
if PYTHON_VER < 3:
import Tkinter as tkinter
import tkMessageBox
else:
import tkinter
from tkinter import messagebox as tkMessageBox... | db41eb09463729810a060738a76c9c78d8969bd6 | [
"Python"
] | 1 | Python | AliSaluja/simpleCalc | 597c3fc288627ea5927c1083ffe3f3620762593f | 91e8b54ff59a47416de69c9d31457fc737dacc1f |
refs/heads/main | <file_sep># lab4 分支预测
### 实验目的
* 实现BTB(Branch Target Buffer)和BHT(Branch History Table)两种动态分支预测器
* 体会动态分支预测对流水线性能的影响
### 实验内容
* 阶段一:在Lab3阶段二的RV32I Core基础上,实现BTB
* 阶段二:实现BHT
* 阶段二**需要在阶段一的基础上实现**,不能仅实现阶段二
### 实验指导
* BTB
* 我们要实现的BTB本质可以理解为是1bit预测器,如果上次这条分支指令跳转,那么这次它也跳转;如果上次不跳,那么这次也不跳
* BTB实现一个buffer,保存当前地址高位、目标地址和有... | 7c9b73564266a0bb44798b039d62b0a694961812 | [
"Markdown",
"Python"
] | 10 | Markdown | isaacveg/USTC-CA2021spring-LAB | d796f91ecfef0b249079cfaa13f21f1ec9bd7f5e | d22b6ca0804d7efe13eb2abc204f19c6bb411754 |
refs/heads/master | <file_sep>// #![feature(duration_as_u128)]
#![deny(warnings)]
#[macro_use]
extern crate log;
#[macro_use]
extern crate error_chain;
extern crate nix;
extern crate libc;
extern crate oci;
extern crate prctl;
extern crate railcar;
#[macro_use]
extern crate scopeguard;
extern crate lazy_static;
use nix::errno::Errno;
use... | 4555465fb6a4383259845a5bcc2a16e6dd90a49b | [
"Markdown",
"Rust",
"Dockerfile",
"TOML"
] | 5 | Rust | GitaiQAQ/rJudge | 5eec61e587367c073cd5998513b17bfe357775c6 | 77bf5e833d808646b1b84794e3bfc39357a74af1 |
refs/heads/master | <file_sep>#coding:utf-8
while True:
N = raw_input('N入力:')
if len(N) == 0:
break
else:
N = int(N)
x = float(input('x入力:'))
tem_list = [str(N)+"\n",str(x)+"\n"]
shisuu_file = open('shisuu.txt','w')
shisuu_file.writelines(tem_list)
shisuu_file.flush()
... | e599aa3559df0d0fd70fb60a22c0d73df0ced10f | [
"Python"
] | 1 | Python | ShinyaTabata/test | 27c9379513edbe8c474fca8340fec90c9882da07 | 89fad29847ea4f8886f7233fce30a9196925216b |
refs/heads/master | <file_sep>import numpy as np
import math
def LR(train_x, train_y, learning_rate):
new_train_x=np.zeros((train_x.shape[0],train_x.shape[1]+1))
for i in range(0,train_x.shape[0]):
for j in range(0,train_x.shape[1]):
new_train_x[i][j]=train_x[i][j]
new_train_x[i][-1]=1
w=np.ones(tr... | 676fb5153be78bb372b99cb402b4ab17fcb839aa | [
"Markdown",
"Python"
] | 9 | Python | d-zhou12/MachineLearning | 75995e047b93b892c3db30f4466558cb74776b7b | 4649421a317a665c6e5f32724f6769ec3abf2af4 |
refs/heads/master | <file_sep>#include <iostream>
#include <omp.h>
#include <fstream>
using namespace std;
int prime(int i)
{
int x;
for(x=2;x<=i/2;x++)
{
if(i%x) continue;
else return 0;
}
return 1;
}
int main()
{
int i;
double wtime;
int count = 0;
ofstream f;
f.open ("serial.txt");
wtime = omp_get_wtime();
{
... | e667a452fe7488001af0237aa85c3a9b8c370cd3 | [
"Makefile",
"Text",
"C",
"C++",
"Shell"
] | 18 | C++ | Tarush-Singh35/High-Performance-Parallel-Programming | 1d991f2c16c2bd3a96528982ccdbad1ebb80bee3 | b5cc30aa89efa4c53907031c32a08007ab839a2d |
refs/heads/master | <file_sep>// ==UserScript==
// @name Pixiv-rusher-boy
// @match https://www.pixiv.net/bookmark_new_illust.php
// @description made by fredgy-kun
// ==/UserScript==
console.log('starid: '+localStorage.getItem('banana'));
var warnaudio = new Audio('https://files.catbox.moe/amlyta.mp3');
warnaudio.addEventList... | eb82ab38321af4bb33f793e59d8316a68e6ee071 | [
"JavaScript"
] | 1 | JavaScript | fredgido/fredgido.github.io | 6ee12953ca4cebf1c2df378ed2896ab4e5c59324 | 72383aedbd1ed61d4b20d27bf0c240aff7ad284b |
refs/heads/6.0 | <repo_name>blissthuan/vendor_validus<file_sep>/vendorsetup.sh
#!/bin/sh
add_lunch_combo validus_angler-userdebug
add_lunch_combo validus_dlx-userdebug
add_lunch_combo validus_endeavoru-userdebug
add_lunch_combo validus_m8-userdebug
add_lunch_combo validus_d800-userdebug
add_lunch_combo validus_d801-userdebug
add_lunc... | 2c8a65717741a9bdbbf0fff666c59d4bcbb83888 | [
"Makefile",
"Shell"
] | 2 | Shell | blissthuan/vendor_validus | bba5ad5d311c8014f003211a52c6879894db04e0 | 48cb5e47f9d2588086618ab52cbe11f049b4c67b |
refs/heads/main | <repo_name>Marcos-Vinicius-Vilela-Franco/Sistema-Recados-Laravel<file_sep>/routes/web.php
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Auth;
/*
|--------------------------------------------------------------------------
| Web Routes
|------------------------------------------------------... | c02d690e5389cda83c197344905e0c41f3794941 | [
"PHP"
] | 4 | PHP | Marcos-Vinicius-Vilela-Franco/Sistema-Recados-Laravel | b65acd8f7477b7b7be982d25372805d969afd9c9 | d3d41557ac920525b7250ad91ca0be9e6380da2f |
refs/heads/master | <repo_name>qiansc/autojs-startup<file_sep>/README.md
# About
Autojs Startup Project
<file_sep>/scripts/index.js
const { dateFormat } = require("./util");
const messageTarget = "运营FE小组"; // "文件互传助手";
function sendHiMessage() {
launch('com.baidu.hi');
const button = id("navigator_tab_unread_count").findOne().p... | 7ba105c9e877c7a2e43ec928dc10a139415f2586 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | qiansc/autojs-startup | 00e53f8be5e89ef9d3cdef801f14c964087f9f41 | 6109ba10ec9659135080c6ec3850d5328186abcf |
refs/heads/master | <repo_name>abhish002/expensify-app<file_sep>/src/tests/reducers/expenses.test.js
import expensesReducer from '../../reducers/expenses';
import expenses from '../fixtures/expenses';
import moment from 'moment';
test('set default state', ()=>{
const state = expensesReducer(undefined, { type: '@@INIT' })
expect(s... | 81255c910050de306be14d1629822254bd79426a | [
"JavaScript"
] | 3 | JavaScript | abhish002/expensify-app | 80b396511b31948157ad7bfaf4d2b10f3ea0eba3 | 903ea82b3e1a554a5b64d582a3a19ee7ce63ea62 |
refs/heads/master | <file_sep>use core::{usize, u8, u16, u32, u64};
use core::{isize, i8, i16, i32, i64};
use core::{f32, f64};
pub trait Bounded {
fn min_value() -> Self;
fn max_value() -> Self;
}
macro_rules! trait_bounded {
($t:ty, $min:expr, $max:expr) => {
impl Bounded for $t {
#[inline(always)]
... | b0bdbfba076c377793b6a400fbee487220b62142 | [
"Markdown",
"Rust"
] | 3 | Rust | nathanfaucett/rs-bounded | 359c91bf92b85ab39937480d3785659b5a5ffb14 | 984a0f99e3eec456fc48d957f740135f168abf4d |
refs/heads/master | <file_sep>#!/usr/bin/python
"""List the total disk space and disk space contributions of all subfolders in the given path.
Both figures only differ if there are inodes which are hardlinks from multiple of these
folders. Then the contributions show how much disk space would be gained if one of the
folders would be dele... | cd515e43fc6784a54963dc864579bee8f0cc3911 | [
"reStructuredText",
"Markdown",
"TOML",
"Python",
"Shell"
] | 13 | Python | chr1st1ank/forester | b4e5f6c3d647bbd25c7416dfe51dd4705dc82e0a | d98fd9b5377015fe7286fec36cae41f6fe4860a9 |
refs/heads/master | <file_sep>x = int(input("Enter the number "))
n = int(input("nth root "))
if x < 0 and n % 2 == 0:
print("undefined")
else:
def f(x, n):
return x**(1/n)
print(f(x, n)) | cc9f23b7d5126fa16f8fa1b95dc105eb560fff2f | [
"Python"
] | 1 | Python | Islam231bi/Finding-the-nth-root-of-any-number | 45a3de1fce8e7c57388da483fc5aa32eaa7c3d9a | 7501173b7345f54c1e137a6dabebe63dd7c6ebcc |
refs/heads/main | <file_sep>import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.util.Scanner;
public class MultiClient2 {
public static void main(String[] args) {
try {
Scanner sc =new Scanner(System.in);
InetAddress ip = I... | b9138fb9c0e3077e966b221d6a359b8b7b55df7d | [
"Markdown",
"Java"
] | 2 | Java | mrazmeen/SLIIT-ANS-Assignments | 306efd066d95a3ac441d61f7418c3059d36341f0 | 9e4672ca96f9eac1a7401d2ff4d36a56a8366352 |
refs/heads/master | <file_sep>The PHP sample has been migrated to [https://github.com/layerhq/layer-identity-token-php](https://github.com/layerhq/layer-identity-token-php)
<file_sep>The scala sample has been migrated to [https://github.com/layerhq/layer-identity-token-scala](https://github.com/layerhq/layer-identity-token-scala)
<file_se... | 713c5d840a61a61f8a87169d091d2f98fdc3bcde | [
"Markdown",
"Go"
] | 9 | Markdown | layerhq/support | 9d834413fcac51fcc2c887497637da9836ec82af | 0bd0ec0cdf954d80d2d8a03f60f22f3bbfc85887 |
refs/heads/master | <repo_name>snowwithrain/springboot<file_sep>/src/main/java/com/zxd/bean/Order.java
package com.zxd.bean;
import com.alibaba.fastjson.JSON;
import org.springframework.data.mongodb.core.mapping.Document;
import javax.persistence.Id;
/**
* 订单
*
* @author zxd
* @create 2017-03-31 16:34
**/
@Document
public class Or... | e396a8bfc589f52e0fcfef2f8fd3c5296d9fad35 | [
"Java"
] | 2 | Java | snowwithrain/springboot | 169b5c65cdb73205356cab2d54d9e2761b3720d7 | bd85944a70f2f629fdf2568e862b0d5206a8f2d2 |
refs/heads/master | <file_sep>namespace Challonge.Participants
{
public class ParticipantBuilder
{
/// <summary>
/// The name displayed in the bracket/schedule
/// </summary>
public string Name { get; set; }
/// <summary>
/// The challonge username of this participant
/// <... | d3383521be5a47c02fd358a89de91b3e3e59e239 | [
"Markdown",
"C#",
"HTML"
] | 27 | C# | ErwanTLG/Challonge.Net | 543636eacf459c6c7a72c3a094bb608df30e8596 | e6da9d6c6f97d04ab75939675630ca66ecc20c95 |
refs/heads/master | <file_sep>let express = require('express');
let controllers = require('../controllers');
let router = express.Router();
/***
* GET /
* @returns: {JSON} sends a hello message
*/
router.get('/', controllers.hello);
module.exports = router;
<file_sep>
async function hello(req, res) {
return res.json({ message... | 26bc74d43e829e0f54969c368517497a7016a9e9 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | man-goat/rounders-api | 6b0c09427ede4b5da23f974b1cbf6a20b3273425 | 28fcecaa4c02dc345a6370321d9127ff3678240d |
refs/heads/master | <repo_name>clairemuller/jeoparody_backend<file_sep>/app/serializers/clue_serializer.rb
class ClueSerializer < ActiveModel::Serializer
attributes :id, :question, :answer
belongs_to :category
end
<file_sep>/db/seeds.rb
#
# ###### SEEDING FROM API - TOOK TWO HOURS #######
#
# def create_clue(clue)
# if !Clue.find_b... | e8a7dda541c6ceffaee2838d0d87535a64fb0512 | [
"Ruby"
] | 5 | Ruby | clairemuller/jeoparody_backend | e904fb6a0e8c13b71f0db259ebf428cbc1834159 | cd50863af5359e17bbc933fad553cad1fe2240b3 |
refs/heads/master | <repo_name>Ushiosan23/JavascriptDomLib<file_sep>/dom.js
((w, d) => {
// ---------------------------------------------------
// WINDOW
// ---------------------------------------------------
w.on = w.addEventListener.bind(w); // Like addEventListener
w.$ = d.querySelector.bind(d... | 7d61a320a23a7665126f834a7868a9465ddbefc7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Ushiosan23/JavascriptDomLib | 20db2b80b527fb8d26086f4f14360c795d707ac4 | f2a088dbb439bc9c14541ea8136884eaa9c70a84 |
refs/heads/master | <repo_name>rozd-yehor/hw4<file_sep>/src/ua/org/oa/erozdolovskiy/Main.java
package ua.org.oa.erozdolovskiy;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
/*Создаём объекты класса Teacher и используем метод displayDocents для вывода списка доцентов.*/
Teac... | 591f4e45ea422d32a053811603d1d0f5d117263a | [
"Java"
] | 1 | Java | rozd-yehor/hw4 | 89dac382d2bed941e56d236edb1911156e6d07a7 | 5ac7716a3a9730afd05c1a0c2c885c31ef50c526 |
refs/heads/master | <file_sep>#include <iostream>
main() {
int lmao;
if (1 != 2)
std::cout << "Yolo";
} | 5923339c9cf4772e831a28fdfbdc1448743d2cc3 | [
"C++"
] | 1 | C++ | WantGuns/hacker-news | fbaa0a450cbc99796422e39fcbd6e37f121c2eef | 7e2786cee4dc2837b504ce10fd87692e8ea2329b |
refs/heads/main | <repo_name>3alexey/Slug-hunter<file_sep>/README.md
# Slug-hunter
Another attempt to catch slugs in the garden
<file_sep>/wifi-robot-eng-debug.ino
/*
* Copyright (c) 2015, Xiaoer Geek Technology Co., Ltd.
* All rights reserved.
*
* File name: wifi-robots
* File identification:
* Abstract: Wi-Fi robot smart car con... | d56fe0ce1fbbf08c6115c7cf8c348cef607fc2eb | [
"Markdown",
"C++"
] | 2 | Markdown | 3alexey/Slug-hunter | 12b59816a2b5c76fa43ca2a30d801423424e7eec | 4b67ba715c2c7de62d9ed7250ec8939dbb8f8a36 |
refs/heads/master | <file_sep>from urllib2 import urlopen
from hashlib import md5
from os import path
import smtplib
stateFilePath = "/tmp/.pageChecker"
def send_email(receiver, subject, body):
sender = "<EMAIL>"
msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s"
%(sender, receiver, subject, body))
s = smtplib.SMTP... | c1ef78d5252b464dd43085e071f97379130b2f4a | [
"Python"
] | 1 | Python | princebhatia09/WebPage-Checker | 281f2b0e964584e6d51da0ee9e5bb98271504ddd | 7ab9e015199e3514b1dc88d80ca258e374fddfcb |
refs/heads/master | <repo_name>Narrqtor/py-bsqli<file_sep>/README.md
# py-bsqli
Python package for Blind SQL injections
## Table of contents
#### [TODO](#todo)
#### [Sources](#sources)
## TODO
+ request class
+ function handler
## Sources
[python.org](https://docs.python.org/)
<file_sep>/py-bsqli/__init__.py
#!/usr/bin/env pytho... | a111ff1dc34ae1fc283f491e92c99cb84bebf12a | [
"Markdown",
"Python"
] | 3 | Markdown | Narrqtor/py-bsqli | e0f1eecd8a182f329f814103719ed6f7780677d4 | 8ffc7efe3ee916bb742f28cb0e36774ce68a6fb3 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BYSDN.Models
{
public class TimeLineBodyModel
{
public string ShortTime { get; set; }
public string ShortDate { get; set; }
public string Type { get; set; }
public string Bo... | 044645507ef5e4e1aaa28aa79b2c2774175e233d | [
"JavaScript",
"C#",
"Markdown"
] | 21 | C# | Samzhang029/BYSDN | 9bec136db61b0d9ccdfb45be4e12ace7f3a4eed1 | b4b8c5ce25eb5b089a91791e4776f341e1e86b4a |
refs/heads/master | <repo_name>c475/ftpserver<file_sep>/RequestHandlers.py
import StateHandlers
from FTPCommander import FTPCommander
from responses import (
SERVICE_READY_NEW_USER,
SYNTAX_ERROR_COMMAND,
SYNTAX_ERROR_PARAMS
)
from SendAndReceive import SendAndReceive
from types import FunctionType
class FTPRequestHandler(... | b4ec1ba6b8eaa22c45c10f1f2c106013c2afecdb | [
"Markdown",
"Python"
] | 9 | Python | c475/ftpserver | 41766424132eea4f1688e94cdc07f21fa34f4cbd | 5807fc3d214bd419dd0dad38d1b4084704dd8abb |
refs/heads/master | <file_sep><?php
if($_POST){
if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['phone'])){
echo '<script>
$(document).ready(function(){
swal("Xin Lỗi !","Vui Lòng Điền Đầy Đủ Thông Tin!","warning");
});
</script>';
}else{
$name = ($_POST['name']);
$email = ($_POST['email']);
... | 118ee984c4817af6c3d8bba26ed7edcfa21a3946 | [
"PHP"
] | 1 | PHP | huynhminhnhan/minhchau | 1c069ced02f947505384518951dc2033e5101b75 | f0af96ac32971864473c0c78c5d1aea7153c54e6 |
refs/heads/master | <file_sep>---
title: "Growth Trial - Abagold"
author: "<NAME>"
date: "July 19, 2015"
output: html_document
---
This is the data that I am going to use for the paper. I still need to add the glucose stuff
#Section 1
###Raw data for Weight, Length and CF of *Ulva* experiment = ulva_rawdata_nonames.csv
#Section 2
###... | ce39dba83870d9953356173a298e3acbbe8f21f4 | [
"Markdown",
"R",
"RMarkdown"
] | 8 | RMarkdown | MorgsMidae/2012_Growth_Ulva | d75ba3272413589091dd8a8fcc415e7a3a8f08c5 | e3d4258d83a7da71431050fc7df5f33e06302ff9 |
refs/heads/master | <repo_name>sebastianpos/CAP<file_sep>/FindOp.sh
#!/bin/bash
#Creating cap_operations
#LoadPackage( "CAP" );
#L := Concatenation( CAP_INTERNAL_CAN_COMPUTE_FILTER_LIST.CanComputeForAllCategories, CAP_INTERNAL_CAN_COMPUTE_FILTER_LIST.CanComputeForSpecialCategories );
#LL := List( L, i -> i{[ 11 .. Length( i ) ]} );
#Perf... | 846691a19db53fccfe3d046b906c9f4f91f0f311 | [
"Shell"
] | 1 | Shell | sebastianpos/CAP | 49279820ef36e0662442a21b9c69bbca20c1b5c1 | 5bb06c1029535a34af4e38efb549c8ec699dc58b |
refs/heads/master | <repo_name>tingod/1bot<file_sep>/bot.py
# coding: utf-8
import os
from telegram.ext import CommandHandler, MessageHandler, Filters, CallbackQueryHandler
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from basebot import BaseBot
from models import tuling, toutiao, qiubai, yiguan
from utils.utils impo... | 36f80cd219eb409bcbfba515290bafec0f0f9938 | [
"Python"
] | 9 | Python | tingod/1bot | ffb168ca365014e43b6e4f33aba0e9e27fd811de | 4860cb8be9c295d1ea153cef01d9d922f9f832af |
refs/heads/master | <repo_name>SJ-Lazar/MovieApp<file_sep>/Client/Helpers/IRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MovieApp.Shared.Entities;
namespace MovieApp.Client.Helpers
{
public interface IRepository
{
List<Movie> GetMovies();
}
}
<fil... | 2f19b31f441493d74aa8b70eb1c36c39d5f07e5a | [
"C#"
] | 11 | C# | SJ-Lazar/MovieApp | 57e4ee738f48d0d8a26b192f2928ac6bee1d5a5c | bf42fbc7f2c7ae00cab2771e1b22b68b7687c9f2 |
refs/heads/master | <repo_name>taxkiss/wechat2.0<file_sep>/relogin.php
<html>
<head><title>WeChat</title>
<script type="text/javascript">
function NameGetFocus(){
document.frmLogin.username.focus();
}
function CheckValid(){
if(document.frmLogin.username.value==""){
alert("请输入正确的昵称!");
document.frmLogin.usernamr.focus();
r... | c4732b69e0427d8e94be64f9ea4196065121f9c8 | [
"PHP"
] | 10 | PHP | taxkiss/wechat2.0 | 9459d5dbd5929cc0c49948dd853a21de8ca23ef5 | 46a8fefb83a5613f4c708ce4cf06d4c154284384 |
refs/heads/master | <repo_name>guifonte/tangamandappio<file_sep>/src/app/tasks/task.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Subject } from 'rxjs';
import { map } from 'rxjs/operators';
import { Router } from '@angular/router';
import { environment } from "../../en... | 64e75338accc5bf9f69245b41304897d2f4cb5ae | [
"JavaScript",
"TypeScript",
"HTML"
] | 13 | TypeScript | guifonte/tangamandappio | 9c034256a31b1c3eacab59c40003d1c2394ef8fc | a093ccf389d55ca1779e249c18b91fd426b09f3e |
refs/heads/master | <file_sep>import Taro, { Component } from '@tarojs/taro'
import { View, Text, Swiper, SwiperItem, ScrollView} from '@tarojs/components'
import {
AtInput,
AtForm,
AtMessage,
AtButton,
AtTextarea,
AtActivityIndicator,
AtDivider, AtIcon, AtTabBar } from 'taro-ui'
import './study.scss'
import {StudyFinish... | b7ec693f0985227e017072a37898a2da5ee95403 | [
"JavaScript"
] | 10 | JavaScript | threementor/fx_xcx | b4e20251c54803fd168f6ce22daf97739e2e831d | d2f1c1505076e82cd9d0cb77be7117126a027010 |
refs/heads/main | <repo_name>BenJamesbabala/USV-backend<file_sep>/mqttrecv/requirements.txt
certifi==2020.12.5
chardet==4.0.0
idna==2.10
paho-mqtt==1.5.1
requests==2.25.1
SQLAlchemy==1.3.20
urllib3==1.26.2
PyMySQL==0.9.3<file_sep>/run_dev.py
from app import create_app
if __name__ == '__main__':
app = create_app('development... | 143dd91067cfb22f46cb103ccf85dc89dbe04406 | [
"SQL",
"YAML",
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 34 | Text | BenJamesbabala/USV-backend | fafe30911001db26779a66ad3e3a395ccc83b513 | d64eff63618b579fffc7cf573f41869336b3dad3 |
refs/heads/master | <repo_name>mmqqdd/emacs-configure-files<file_sep>/a1.cpp
1234
2333
4445
modified 1
| e75f3d0e94a04b3185028e8f8974a4fb56c14a31 | [
"C++"
] | 1 | C++ | mmqqdd/emacs-configure-files | 6f80e94883e69bb1a45715c4ef64b63d61c11448 | b6491c15213ff0751035954561ad2eb230c085e4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.