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><?php
namespace Digitonic\ApiTestSuite;
use Digitonic\ApiTestSuite\Concerns\AssertPagination;
use Digitonic\ApiTestSuite\Concerns\AssertsErrorFormat;
use Digitonic\ApiTestSuite\Concerns\AssertsOutput;
use Digitonic\ApiTestSuite\Concerns\DeterminesAssertions;
use Digitonic\ApiTestSuite\Concerns\GeneratesTest... | 1d288c9069faf5404eaffb8e2448dfa1a10684a1 | [
"Markdown",
"PHP"
] | 39 | PHP | digitonic/api-test-suite | 88699ad2fc3445ca6ab926bcc500cfed6085329f | 7c1170987f1cfd4228e6de1d9f18786153167038 |
refs/heads/master | <repo_name>novoselrok/nbody-wasm<file_sep>/bhtree.h
#ifndef NBODY_WASM_BHTREE_H
#define NBODY_WASM_BHTREE_H
#include <memory>
#include "body.h"
class BHTree {
private:
const double THETA = 0.5;
std::shared_ptr<Body> body;
std::shared_ptr<Quad> quad;
std::shared_ptr<BHTree> firstQuad;
std::shared... | 97a8c75be88eaaf15fee6800c1a618a34b6caa10 | [
"Markdown",
"CMake",
"JavaScript",
"C++"
] | 11 | C++ | novoselrok/nbody-wasm | 8813c2a8ab82eedea9ebe52d363c3c4d4e7e6058 | e5c926a4164fa3df1a74a48d735cba5447762a5c |
refs/heads/main | <file_sep>import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
{
path: "/",
name: "main",
component: () =>
import(/* webpackChunkName: "pixfarm-main" */ "@/views/Main.vue"),
meta: {
title: "Pixfarmon"
}
},
{
path: "*",
name: "404... | 062af3fb245ad790dce04b4446c5931f3c035014 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | TouchFishBoys/PixFarmon-frontend | 24044fb5b01067af0b0bceaafa8e0d844f0ed6b8 | ac9b308e56f4b356f8e8eb5888e0d8e097071e99 |
refs/heads/master | <repo_name>TradeHero/MG1000-FH-PENALTY<file_sep>/server.sh
#!/bin/sh
#grunt clean
#grunt prod
python -m SimpleHTTPServer
<file_sep>/src/lib/thcanvas-v0.1.0.min.js
/*! THCanvas v0.1.0 2014-11-20 http://www.tradehero.mobi by TradeHero */
var Assets = function () {
var a, b = function (a) {
console.debug("[ass... | 1e7e25212159d65a1f8598a130fc6dfd9c447b0c | [
"JavaScript",
"Shell"
] | 3 | Shell | TradeHero/MG1000-FH-PENALTY | ea1b4174ea9f0d17808c1ff291fe861221e8a99e | cc8ae57eefa199585acd1b7d6f31179b88ad18b8 |
refs/heads/master | <repo_name>GlobePH/agri-market<file_sep>/src/app/User.php
<?php
namespace App;
use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use GlobeLab\User\SubscriberTrait;
class User extends Authenticatable
{
use HasApiTokens, Notifiable,... | 4404d9f12624cc6dcbc8381b07e0590895cbcb0b | [
"SQL",
"YAML",
"JavaScript",
"Markdown",
"PHP",
"Dockerfile"
] | 20 | PHP | GlobePH/agri-market | 1298e874f6d874e0f0d1250aa08a76ccb6d50791 | e2c7f8202b01bd6a40e41aefab48f11710c89807 |
refs/heads/master | <file_sep>declare module "rc-util/lib/KeyCode" {
var Ret: {ESC:any;TAB:any;};
export default Ret;
}
declare module "rc-util/lib/getScrollBarSize" {
var Ret: any;
export default Ret;
}
declare module "rc-util/lib/getContainerRenderMixin" {
var Ret: any;
export default Ret;
}
declare module "object-assign"... | cdf43f003ff3c38d4eb115bd67b77fc958d3dc7f | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | wuguanghai45/dialog | 6fffe34d70db6c6b4d85c8c3bfdaba562729dd1f | 9d3c2c90b798e6b721f74a275f5d39fe029be54a |
refs/heads/master | <file_sep>import MapReduce, sys
import json
mr = MapReduce.MapReduce()
def mapper():
for line in sys.stdin:
record = json.loads(line)
name = record[0]
mr.emit_intermediate(name, 1)
print json.dumps(mr.intermediate)
mapper()<file_sep>i = 1
j = 2
s = str((i,j))
print s
print s[1]
print... | 6475e7481fdf27a9d9165e1c5fe887e8532e7eb2 | [
"SQL",
"Python"
] | 14 | Python | mRasey/homework | d5e721b8b2ec2354eea66571fa517c340bce4f4a | ba22e19eb307e38d45c687619e74d09e04aedcf6 |
refs/heads/main | <file_sep>library(shiny)
library(tidyverse)
library(tidycensus)
# Define UI for application that draws a histogram
ui <- navbarPage(
"Milestone 3",
tabPanel("Final Milestone",
mainPanel(titlePanel("Graphs of Data"),
imageOutput("data"),
imageOutput("da... | 5f4c4db3926d3368956f96436a9f32f49a5c9dcd | [
"R"
] | 1 | R | hanarubykim/milestone-4 | cdc11648d3981ad84d79ae558f97e119a2cb2b9b | 7db2809b704dca8966551de0ca60576e22eb0a0e |
refs/heads/master | <file_sep>from unittest import TestCase, TestLoader, TextTestRunner, skip
from unittest.mock import patch
import sys
from pathlib import Path
import shutil
from optconvert import Converter, Model, MplWithExtData, parse_args, command_line, Messages, Solvers
class TestConverter(TestCase):
def test_run(self):
... | a6146ad3bc0d5664d2ab29319a6b3da1a60c517d | [
"Markdown",
"Python"
] | 10 | Python | pashtetGP/optconvert | 6dacf2d177c26f3e7f20bce34362878db53bfa13 | f025de16a3073e2aa0aa851a7396fdd98f6b6f3e |
refs/heads/master | <file_sep>import styled from "styled-components";
export const CartItemContainer = styled.div`
width: 100%;
display: flex;
height: 100px;
margin-bottom: 10px;
img {
width: 25%;
}
`;
export const ItemDetails = styled.div`
width: 90%;
display: flex;
flex-direction: column;
align-items: flex-sta... | 91a53f57eef77b2e0b4f1a5b15e94197a6223fd6 | [
"JavaScript"
] | 1 | JavaScript | GiSttorto/bluebutterfly-clothing-shop | 84b297026df6cd12c8d3ec59887df25cf17554b2 | ff8dfb694750ca12d554128d6953bd4e87cd6bb5 |
refs/heads/master | <file_sep># chickpea-cpp
This is a repository meant to showcase simple C++ programs I wrote at Northeastern University, I'm still updating it as the class goes along. Enjoy! Check out each branch (Chickpea_#) to see coding samples week to week.
<file_sep>/**********
* <NAME>
* CET 2300
* Object Oriented Programming
... | 5c2b3f16acb3c7bc1b2ea83aa7bc4b2541f8b9bf | [
"Markdown",
"C++"
] | 4 | Markdown | sumukund/chickpea-cpp | bbf624f868ba7a03380162ffb3fb667349db7714 | 99be3318bb94d583c707901abb26a8621c7f3098 |
refs/heads/master | <repo_name>opsdroid/opsdroid-homeassistant<file_sep>/opsdroid_homeassistant/tests/test_matcher.py
import pytest
from asyncio import sleep
@pytest.mark.asyncio
async def test_match_hass_state_changed(mock_skill):
test_entity = "light.kitchen_lights"
assert await mock_skill.get_state(test_entity) == "on"
a... | 774efbb4181ecd3434b04010eb0cbc5557bd42e0 | [
"YAML",
"Markdown",
"INI",
"Python",
"Text"
] | 23 | Python | opsdroid/opsdroid-homeassistant | 26bbab526ee1a932ec059d04c60f4bdaa1db1112 | aa5903b09d631bae5f4e852b11f00ae92003735a |
refs/heads/master | <repo_name>irena57/ExData_Plotting1<file_sep>/plot4.R
## Assignment 1 in Exploratory Data Analysis, plot #4
## Plotting a set of 4 plots concerning Energy Consumption (plot 4)
#####################################################################
# Reading data from the file "household_power_consumption.txt"
#
# Vari... | 24f6c931668f0922b33f65eb00d58fed5252de9f | [
"R"
] | 4 | R | irena57/ExData_Plotting1 | 4e0ef0445e0be3b82807f8b7b57090e4c040b3db | e0bb750e5dac7423fdb88c4eb57b4920855ec72b |
refs/heads/master | <repo_name>flavours/registry-java<file_sep>/tmp/model/ValidatableConfig.java
package com.divio.flavours.fam.gradle.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.validation.ConstraintViolation;
import java.util.Set;
public interface ValidatableConfig<AST> {
@JsonIgnore
Set<Constraint... | 13da3f7a25a953ef26098baac4a5a78dce451087 | [
"Markdown",
"Java",
"Dockerfile",
"INI"
] | 15 | Java | flavours/registry-java | 64fd54f759398b11f83a20389b6ad3888041564d | 3adcf687eb1e0ac8f8e5479b4a36db35f3ca7d31 |
refs/heads/master | <repo_name>happyhj/simple-world-time<file_sep>/src/actions/constants.js
// ACTION
export const UTC_TIME_AQUIRED = 'UTC_TIME_AQUIRED'
export const LOCAL_TIMEZONE_AQUIRED = 'LOCAL_TIMEZONE_AQUIRED'
export const SEARCH_RESULT_FETCHED = 'SEARCH_RESULT_FETCHED'
export const NEAR_CITIES_FETCHED = 'NEAR_CITIES_FETCHED'
export... | 4356451cf2e5a2b82144967e392995abe0510f52 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | happyhj/simple-world-time | f4e56c430d1ad59da7ecf016b17a492fb9d0ef32 | 920d5340f61dc8147e04eb58720a15f98e5c548e |
refs/heads/master | <repo_name>JamesSmelser/ISTA220<file_sep>/hw/ISTA220HW03.md
// Subject: C# HW 3
// Author: <NAME>
// Date: July 6, 2019
---------------------------------------
# C# Programming Homework 03
## Chapter 03, C# Step by Step
### Readings
#### Read chapter 3 in the C# Step by Step book.
##### Discussion Questions
###### Ans... | 7d0382cb0e0fb8011718181091824ad422252bb7 | [
"Markdown",
"C#"
] | 34 | Markdown | JamesSmelser/ISTA220 | 4740894cc6b5df6d669fb94e7ba5a70a620ff0b3 | 57d539bfa6667b85429ed799021fe761d146b7a1 |
refs/heads/master | <repo_name>1907-jul01-java/project-1-ramhue<file_sep>/employee-redistr/src/main/java/com/revature/entities/EmployeeDao.java
package com.revature.entities;
import java.util.List;
import java.util.ArrayList;
import java.sql.*;
import com.revature.domain.Employee;
/**
* EmployeeDao
*/
public class EmployeeDao impleme... | fa3487086891432187074f4ef185cae63d108896 | [
"Java"
] | 5 | Java | 1907-jul01-java/project-1-ramhue | f8edf9507bff5f5b0cb7b509c91577d18ff7eb5f | 843e3870cbb1ccadd7d1077793f8878cef8d680e |
refs/heads/main | <file_sep>FROM wordpress:5-php7.2-apache
RUN pecl install -f xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.client_host=host.docker.interna... | 7303854e04b999e76df7ca640d9131594cc0c740 | [
"Markdown",
"TypeScript",
"Dockerfile"
] | 8 | Dockerfile | deeNewearth/MintGateWPWidget | 7a3d3f0c5b4b0e5bdea16ed164e264bbf0e928c3 | f36dacca2d79dc4d989ee4cd78831301dcd7c12b |
refs/heads/master | <repo_name>randomlylostperson/Voyeur<file_sep>/README.md
# Voyeur
### A social media favoring less views over more and users are anonymous.
I was tired of seeing overly manicured social media profiles and disliked user history. On Voyour each user gets only one post and when you repost you simply overwrite your previ... | 5e939283aada5c212d911edc5d780e2a7b4bfa32 | [
"Markdown",
"JavaScript"
] | 8 | Markdown | randomlylostperson/Voyeur | a103b902286375f971eaefb18e688bc34243e7ea | b20a23ae3e0ecc178f56b268bb07e2f503b0faed |
refs/heads/master | <repo_name>gdarruda/scrap-akoob<file_sep>/skoob/spiders/reviews_skoob.py
import scrapy
class ReviewsSkoob(scrapy.Spider):
name = "reviewsSkoob"
def start_requests(self):
urls = ["https://www.skoob.com.br/livro/resenhas/" + str(i) for i in range(1, 456920)]
for url in urls:
yield... | abb9174134d574a84f71f61cd45f5c80c1114316 | [
"Python"
] | 1 | Python | gdarruda/scrap-akoob | 887bff93ba59e0f022a14051f02cbf9cf58f8444 | c8d3442108ae32d165913ae88c60c7ead4aa184d |
refs/heads/master | <file_sep>uiprim_popup_spawn = system_load("uiprim/popup.lua")();
system_load("uiprim/buttongrid.lua");<file_sep>return {
headless = true,
disable_vrbridge = true,
no_combiner = true,
bindings = {
}
};<file_sep>local function run_entry(menu, cmd, val, path, inpath)
local ent = table.find_key_i(men... | ca987635a9d63796f28fa90e04a0a3d2a368e02d | [
"Markdown",
"Lua"
] | 27 | Lua | krishpranav/nextdisplay | ccaba29fa537e60bb0a3fced9b2410d1446d87a4 | 639dd8cafceb7bb2ecae7b9b6f421d434e8a3fd8 |
refs/heads/Sprint-9 | <file_sep>/*
* Sprint novo.c
*
* Created: 30/04/2021 22:10:39
* Author : pc
*/
#define F_CPU 16000000UL
#define BAUD 9600
#define MYUBRR F_CPU/16/BAUD-1
#include <util/delay.h>
#include <avr/io.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include "nokia5110.c"
uint8_t FreqRespiracao = 5, animacao ... | 7d29913d67a0d5db5a8cfa515aa87faed8da083a | [
"C"
] | 1 | C | MayaraAcc/Ventilador-Mec-nico-Simulado | f5eb6e196385a966b8e18a85ede69668c0dbe84f | 4392cea20c3a3ce54026deeafb6abdf11de4e130 |
refs/heads/master | <repo_name>MounikaDhanraj/DigitalTurbineTest<file_sep>/app/src/main/java/com/example/mounikadhanraj/digitalturbinetest/repository/AdRepositoryImpl.kt
package com.example.mounikadhanraj.digitalturbinetest.repository
import com.example.mounikadhanraj.digitalturbinetest.api.APIClient
class AdRepositoryImpl:AdRepository ... | ff26f3dd2cc449c52d10cca5a939a9360a51c304 | [
"Markdown",
"Kotlin"
] | 14 | Kotlin | MounikaDhanraj/DigitalTurbineTest | 089b964d97bbd61901b89584dea7cc2d37e40921 | 0698195cd266c1920c19426b6e5c2072f7e917c6 |
refs/heads/master | <repo_name>aarjavsheth/Calculator<file_sep>/README.md
# Calculator
Calculator built using Java Swing and AWT
<file_sep>/Calculator.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Calculator {
/**
* Create the application.
*/
private Calculator() {
... | 41412769888de565d8168cb0203be0215da38fd0 | [
"Markdown",
"Java"
] | 2 | Markdown | aarjavsheth/Calculator | bb6e6c47160103571635238e5db900a8f133f58e | ddf5959976bdf75b16cd87708374d5e2a7b3847b |
refs/heads/master | <repo_name>threevi/kankun_smartplug<file_sep>/README.md
# kankun_smartplug
Scripts and files for Kankun Smart Plug home automation
<file_sep>/bootstrap_smartplug.sh
#!/usr/bin/env bash
_ROOT_PASSWD="<<PASSWORD>>"
_NETWORK_SSID="<NETWORK_SSID>"
_NETWORK_PASSWD="<<PASSWORD>>"
#==========================================... | 924b9c76ec1d374c42259652045dfabb7f760454 | [
"Markdown",
"Shell"
] | 2 | Markdown | threevi/kankun_smartplug | ca03f59a1459ec831e5bbf3a661ceb6f63a4e8e8 | f53847c640953117b58ac94f83722df41536410b |
refs/heads/master | <repo_name>1997808/zerotech_intern_input<file_sep>/src/components/content/table.js
import React from 'react'
export default function Table(props) {
const { data, setPage } = props
return (
<>
<table class="table table-dark">
<thead>
<tr>
<th scope="col">Image</th>
... | c7b2a0ebdfaeaa915f5a8c14a31d3d9026921347 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | 1997808/zerotech_intern_input | b44189a9c138579ae38a8d70c00604807b558c34 | 2c576bf9f80a35a27e300c08681d8fb8d0b40308 |
refs/heads/main | <repo_name>deepika1708/Employee-Management-System<file_sep>/empmgmt/dao/UserDAO.java
/*
* 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 empmgmt.dao;
import empmgmt.dbutil... | c58026302e74cfe6b57eb5fee131f82c82115657 | [
"Java"
] | 4 | Java | deepika1708/Employee-Management-System | 535c26758060d7e871cde59b97b9f9eb7f841367 | f5d285adcf495bd376a5ad85cd08250a89888a41 |
refs/heads/master | <file_sep>package tk.dbcore.accounts;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
/**
* Project: amugona
* FileName: AccountDto
* Date: 2015-09-14
* Time: 오후 2:34
* Author: Hadeslee
* Note:
* To change this template ... | 83401ee1fd5bc0afc40bf61d81ee2a7da8967aab | [
"Java"
] | 2 | Java | EricSeokgon/amugona | d4d7544c0e7006bac6ae694c4a1af589452fa281 | a30f1a734e88c894967be9aa825a3167be2d0c90 |
refs/heads/master | <repo_name>ericlarssen-wf/aws-lambda-fsm-workflows<file_sep>/tests/aws_lambda_fsm/test_aws.py
# Copyright 2016 Workiva Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.... | 17541bc9e9e1738316ece0b71094296ad779c5ea | [
"Python",
"Text"
] | 2 | Python | ericlarssen-wf/aws-lambda-fsm-workflows | 0fdff380b1c6fc03fecb61365342db244455d0e1 | f639f22ece58971fa884f6a451ca371a43958db6 |
refs/heads/master | <file_sep><?php
DEFINE('LOGGING', false);
if(LOGGING) {
$start = microtime(true);
}
//letters to create words from
$letters = $_GET['letters'];
$letters_array = str_split($letters);
//number of letters in a word
$num_letters = $_GET['wordlen'];
//if we want to update the dictionary
$update_dictionary = $_GET['upda... | 8b8a2a8ea9396fe686923e7e1c1df00ae26991f4 | [
"PHP"
] | 1 | PHP | jmanion/4pics1word | e89e583d8712efc16619ce113acb7e48be8b61f1 | 2e3238cfe71587ecdba66ae38944de2a8a0c4620 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FillUserInfo</title>
</head>
<body>
<p>注册成功!请继续填写补充相关信息,使你的帐号具备订场的效力</p>
<p>注意!填写的信息应与THUinfo上的记录一致,否则在订场时将出现错误</p>
<form action = "/AddComplete" method = "post">
学生证号:<input type="text" name="studentId"><br>
... | 25a135eaa157d17e534c88ef472cad8028ddf657 | [
"JavaScript",
"HTML"
] | 3 | HTML | lushenghan/THUReservationSystem | 640e7c3d958689e79f5751781906eba117d957dd | e895d0147bb06e600759db4760975146aa061a2c |
refs/heads/master | <repo_name>hypebeast/morphin<file_sep>/src/utils/utils.py
# -*- coding: utf-8 -*-
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=90:
# Copyright (C) 2007-2008 <NAME> <<EMAIL>>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | 6f0a52ed2982628008027d647cbd79d6ddad23cf | [
"Python",
"Shell"
] | 16 | Python | hypebeast/morphin | f85f6de569ed0965f07fcec7afabca8c7637ebfa | 5067128ddbf6ce6872c0d678eb2efcc8b5850eb6 |
refs/heads/master | <file_sep>package com.mycompany.webapp.controllers;
import com.mycompany.webapp.constants.RequestMappings;
import com.mycompany.webapp.daos.AuthenticateDao;
import com.mycompany.webapp.security.TokenAuthenticationProvider;
import com.mycompany.webapp.security.TokenService;
import org.slf4j.Logger;
import org.slf4j.Log... | aec06fc3d34ecf68d3ba54310589f8b03be6a3f4 | [
"Java",
"SQL"
] | 5 | Java | ValeryIvanov/WebApp | daa7f2ab3e49b04c6944b7a3eb5b029cf6207ea9 | ea42e70ac024839275477061049f6bc6ce6a95fd |
refs/heads/master | <file_sep>from board import A6, A7, A5, A21
from machine import Pin, ENC, PWM, Timer
from time import sleep
pin1 = Pin(A5, mode = Pin.OPEN_DRAIN)
pin2 = Pin(A21, mode = Pin.OPEN_DRAIN)
speed = -100
ain1 = PWM(pin1, freq = 10000, duty = 0, timer= 0)
ain2 = PWM(pin2, freq = 10000, duty = 0, timer=0)
encA_pin = Pin(A6)
... | f0dfaba003b660c17d45c734b5e991fd5cf93a86 | [
"Python",
"Text"
] | 18 | Python | patrickscholl/EE49-Labs | 8598e19b851202a4469b8e81d30576352fde2cf0 | 62bb36e03353358b3c6d690f0a8d76eaf295b9fb |
refs/heads/master | <repo_name>samilawson/DiscoBot<file_sep>/DiscoBot.js
const Discord = require("discord.js");
const bot = new Discord.Client();
const size = "36"; //number of colors, more makes a smoother transition
const rainbow = new Array(size);
//the math
for (var i=0; i<size; i++) {
var red = sin_to_hex(i, 0 * Math.PI * 2/3)... | e0568b04d4c8f026933435a35ecbff7c14883abd | [
"JavaScript"
] | 1 | JavaScript | samilawson/DiscoBot | aaa6e622b32bae95913c5427ef555597f39822de | ec604da3a29d766ebc203ebefccb6fc9f726bce7 |
refs/heads/master | <file_sep><?php
include("../include/dbconnect.php");
//Creates new record as per request
date_default_timezone_set("Asia/Jakarta");
//Connect to database
$data = $_FILES['foto']['name'];
$datacheck = $_FILES['check']['name'];
if($_SERVER['REQUEST_METHOD']=='POST')
{
if(!empty($data))
{
$yellow_perc_v... | 6585a53c936c911112ff72049749c98b8dd43bce | [
"SQL",
"PHP"
] | 2 | PHP | MFaishal/test | 4b832d76a0f267983401097d8930df39b875289c | 69e5af9f4155ec92af360e7b6151a9c306643918 |
refs/heads/master | <repo_name>tomo007/CovjeceNeLjutiSe<file_sep>/ČovječeNeLjutiSe/CovjeceNeLjutiSe.h
// CovjeceNeLjutiSe.h : main header file for the CovjeceNeLjutiSe application
//
#pragma once
#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif
#include "resource.h" // main symbols
// ... | efd12bd2e5224162588b5cf17984245da7e8569b | [
"C",
"C++"
] | 14 | C++ | tomo007/CovjeceNeLjutiSe | d457496153bfd60c5182605fcf7038380551f2ab | f5e91f84495bc81398b3acdfee00220eb69c7e5f |
refs/heads/master | <file_sep>package com.practice.wrapper;
public class WrapperDemo {
public static void changeIt(Object i) {
Integer d = (Integer)i;
d++;
}
public static void main(String[] args) {
Object i = new Integer(0);
changeIt(i);
System.out.println(i);
}
}
<file_sep>package com.practice.enums;
import java.lang.En... | 17bc48aa93989abc3615691c80e84a90b5fd3a1d | [
"Java"
] | 6 | Java | akhare-dheeraj/CoreJavaPractice | c659fb74ae0d0428ec0ea6a51b4fe01ca7bf3b76 | 61b97a99af510a17420dd0c9ae0030abfea201b0 |
refs/heads/master | <file_sep>import spidev
import time
adc_channel = 0
spi = spidev.SpiDev()
spi.open(0,0)
def readadc(adcnum):
# read SPI data from MCP3004 chip, 4 possible adc's (0 thru 3)
if adcnum >3 or adcnum <0:
return-1
r = spi.xfer2([1,8+adcnum <<4,0])
adcout = ((r[1] &3) <<8)+r[2]
return adcout
while True:
va... | e2cb6530d059c360cb2c56bbc5d81b57e1f7cfee | [
"Python"
] | 1 | Python | youcantnot/Linkerkit | 61f4191505c9d0e31e516f270c4d6fc0693fc216 | 753f4788b5008ee872aeebaef991a056c7a7edcf |
refs/heads/main | <file_sep>using Assets.Scripts.ModelControllers;
using Assets.Scripts.Models;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
public class SearchManager : MonoBehaviour
{
[SerializeField]
private ElementTableManager InfoTable;
private... | 51e2d00040bd2064d726e0616d84df66def6705d | [
"C#"
] | 37 | C# | ArturGimbarr75/Gimbarr | 817b35392b868b8c747c2e5fb07df8a3c0271227 | 9c6405d9248d3c97d0e5f9a6aa9d3fa40d934680 |
refs/heads/master | <repo_name>kravciak/spec-cleaner<file_sep>/pkgconfig-update.sh
#!/usr/bin/env bash
verify_fetch() {
if [[ -z ${1} ]]; then
echo "Specify the URL to verify"
exit 1
fi
local curl=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' "${1}")
if [[ ! ( ${curl} == 302 || ${curl} =... | 30c4edaa40c81476afc0f6c4c4f94a548f7a27ac | [
"Shell"
] | 1 | Shell | kravciak/spec-cleaner | b9f7b55cd30463e87eceedd375fb66b2a1b87e41 | 1efd41c8bd1569addf65dda1432ba39f19627725 |
refs/heads/master | <repo_name>lanns-skynns/2Domi-Nations2<file_sep>/Java In/Domi-Nations/src/dominations/Main.java
package dominations;
import dominations.model.*;
public class Main {
public static void main(String[] args) {
new Partie();
}
}
<file_sep>/Java In/Domi-Nations/src/dominations/model/Partie.java
package dom... | 4dcae0793923ceb6c5b5ff26492e749b1bef3050 | [
"Java"
] | 3 | Java | lanns-skynns/2Domi-Nations2 | 2e94db61643b4437395ea6df935c51760142e49f | 748c303480ee3952c9721a7d07f73291ccca32aa |
refs/heads/master | <file_sep># Search Github - Documentação
O projeto foi desenvolvido pensando em uma arquitetura de serviços, para isso foi estruturado usando AngularJs para consumo da API rest do Github, tratamento dessas informações e envio posterior para o usuário final.
A seguir é detalhado como foi o processo de desenvolvimento,... | 7b6370691fdadca4bdfffb6a107c11b0e2a48efc | [
"Markdown",
"JavaScript"
] | 8 | Markdown | DenisdS/front-end-test | 43db7040134df61e847f2f007d2374b4374890d2 | 99b48efeb2a98e1bfd406fb9ac688d5a1e3fcac8 |
refs/heads/master | <file_sep>package org.toptaxi.booking.adapters;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import org.toptaxi.boo... | 063b754f4a5fb4134a2bc5dd8a1e5aa85a877dbe | [
"Java"
] | 10 | Java | rusCom/Booking5 | ec86d453fdd396d10692e0b7262548349a0a0f9f | 442db1d0d0a28b0cfc390510e69aadda42a737b4 |
refs/heads/master | <file_sep>A basic todolist app.
Working link found here: https://elk75-todo-list.herokuapp.com/
<file_sep>var express = require("express"),
router = express.Router();
const middleware = require('../middleware/index');
router.get("/", middleware.isLoggedIn, function(req, res) {
console.log('here');
console.lo... | 39f753768f6a03bea7d1d892ca43e72ab2cbdf0f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ELK75/Todo-List-App | d6d8a43f14254720536f133c30b0478ef1d05bc0 | 0fec96ae03b063556816aec60be438693043f275 |
refs/heads/master | <file_sep>class tree
{
};
class bst :public tree
{
bst *leftSubtree; //укаазатель на левое поддерево
bst *rightSubtree; //укаазатель на правое поддерево
int value; // информационное поле
public:
bst();
bst(int val);
~bst();
void addNodeWrapper(int key); // добавление нового элемента по ключу
void addNode(bs... | 353ea162e9cefe6740adc307646ab21e823fb5d9 | [
"C++"
] | 4 | C++ | VaccineDevil/DynamicStructures | 671b1f5005c04ed945b2820e3d2fefc5de073c90 | fcddc7ddf31d468eaff12fe651d1e938f0b8e47e |
refs/heads/master | <repo_name>Alan-huazai/201802<file_sep>/20180218/2.client/client.c
#include "func.h"
int main(int argc,char*argv[])
{
if(argc!=3)
{
printf("error args\n");
return -1;
}
int sfd;
sfd=socket(AF_INET,SOCK_STREAM,0);
if(-1==sfd)
{
perror("socket");
return -1;
}
struct sockaddr_in ser;
bzero(&ser,sizeof(se... | 211358902ff93b311b458076b095b431d0872ff2 | [
"C",
"Makefile"
] | 36 | C | Alan-huazai/201802 | 93f6c9f08920cab0e2ad349f927c7c3dc9ea7103 | 52ba1391a3033fb8f0b63250c3792a23f5b20e27 |
refs/heads/master | <file_sep>const socket = io();
function scrollToBottom() {
//selector
let messages = jQuery('#messages');
let newMessage = messages.children('li:last-child');
//heights
let clientHeight = messages.prop('clientHeight');
let scrollTop = messages.prop('scrollTop');
let scrollHeight = messages... | 165f726aeae698eea21d950e7673bbbb88ccfc6c | [
"JavaScript"
] | 2 | JavaScript | SirTejas/nodejs-chat-app | 6848d6f8f865ef3e69ee3f95fdcea443111b1b14 | 8aa8e9daeb91ce2f9ccc00ddf51846818780f50e |
refs/heads/master | <file_sep>import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class IntegerToEnglishWords {
/**
* 将非负整数转换为其对应的英文表示。可以保证给定输入小于 231 - 1 。
*
* 示例 1:
*
* 输入: 123
* 输出: "One Hundred Twenty Three"
* 示例 2:
*
* 输入: 12345
* 输出: "Twelve Thousa... | 447de518295169ba2ca0626fe980be9a6e74ede8 | [
"Java"
] | 1 | Java | 423232065/leetcode | 2dd67cb393ca9385e37219b9ab5d7aa0d015c49c | 89870f9eb3e532f7f157cb6cefe5ab3195de0ed7 |
refs/heads/master | <file_sep>package main
import (
// "fmt"
"io/ioutil"
"log"
"encoding/xml"
"net/http"
"net/url"
)
var MTAURL = "http://web.mta.info/status/serviceStatus.txt"
func check(err error) {
if err != nil {
log.Fatal(err)
}
}
type Service struct {
RequestTimestamp string `xml:"timestamp"`
Subway st... | d707afe8fc091b315b7df78ecf99eaf45f68a872 | [
"Go"
] | 1 | Go | shamoons/go-mta-sample | ec5517d95a64e8ab881660b9ddc73e9a2855deba | fe1f59c38602eca81b94d2f7a1b0e358341e4c7b |
refs/heads/master | <repo_name>Denis-Log/SWS<file_sep>/SallyCntr.java
package com.chcat.external.sallywsapi;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;... | 1d0a6320d2fbfa96a0dc42058fb953ad7a6f0fbb | [
"Java"
] | 1 | Java | Denis-Log/SWS | 4592ef2eb8c0a76eede3b6e091d5f9c526edc6ba | c0e18d203fbd93ca89c9fab47d0df0a2f2bbd191 |
refs/heads/master | <repo_name>agiardina/garden-photos<file_sep>/src/sidebar_item.h
//
// sidebar_item.h
// gardenphotos
//
// Created by <NAME> on 07/03/21.
//
#ifndef sidebar_item_h
#define sidebar_item_h
#include <iostream>
#include <wx/wx.h>
wxDECLARE_EVENT(GP_SIDEBAR_CLICK, wxCommandEvent);
class sidebar_item: public wxPanel
{... | 6f78cc94523a1dffd86c8b6ecb6ba98fac0aec09 | [
"Markdown",
"C",
"CMake",
"C++"
] | 24 | C++ | agiardina/garden-photos | 097643758cc0dfd2fec697368bb566b8d111296e | fd224c5ee80c75cd2ffb39a83428bbe1f4c46144 |
refs/heads/master | <file_sep>Leap-Input
=========
C# app for basic mouse movement and WASD emulation.
Move your finger or tool on the XY plane, cursor will follow. Sensitivity and y-offset can be set (there is some visible stutter on highest sensitivity with highspeed mode).
Checking WASD disables mouse and enables WASD emulation. This... | 55bc59964dde023f7dd14f18b1e5dc8d8cfa0db6 | [
"Markdown",
"C#"
] | 3 | Markdown | Wildstraywolf/Leap-Input | 0f9c84a14c416668ba0ac3f27c27bcb29d9309d2 | 3d09d92f36799de3bfff151ba390070817369a2d |
refs/heads/master | <repo_name>kuritka/trash<file_sep>/demo-logging.md
# Demo logging
## prerequisities
```sh
helm repo update
```
## NO COLOR, JSON, INFO
```shell script
helm -n k8gb upgrade -i k8gb chart/k8gb -f chart/k8gb/values.yaml \
--set k8gb.log.format=json --set k8gb.log.level=info
k logs -l name=k8gb
```
## NO COLOR, SIMP... | 9beaf91422de22d695934d1488b907b17ba5cc91 | [
"Markdown",
"Python"
] | 4 | Markdown | kuritka/trash | bbc1929c51c70c640f8680390a2cdeabf568f444 | e66402f8b94f102da11c17df1302f535e7689dae |
refs/heads/master | <repo_name>meghammy/Hangman-Game<file_sep>/assets/Javascript/games.js
var dog = [
["P","O","O","D","L","E"],
["K","O","N","G","T","O","Y"],
["B","U","L","L","D","O","G"],
["P","O","O","P","B","A","G"],
["T","E","N","N","I","S","B","A","L","L"],
["L","E","A","S","H"]
]
var random = Math.floor((Math.r... | 83e6be26c1e4d4548b600e3b85f6df00cf295eff | [
"JavaScript"
] | 1 | JavaScript | meghammy/Hangman-Game | fd82fc922a44d1f69ede439c93bb05dad3cdc58f | 2740400411cc42718fe51ab92bb88d718de44be0 |
refs/heads/master | <repo_name>HashirMalik98/FitnessApp<file_sep>/app/src/main/java/com/example/xrezut/personalfitnessapp/SplashScreen.java
package com.example.xrezut.personalfitnessapp;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity... | 84c9f8a851a31649d82c3a0576fca67e58405deb | [
"Markdown",
"Java"
] | 2 | Java | HashirMalik98/FitnessApp | 0cd17d8d16d6cf6982d9c39bb5c6e17d706e9b1c | 60e9130ab9acc0ef58d74e4f01ec3ce448398e27 |
refs/heads/main | <repo_name>MakeSomeFakeNews/leechee-pay<file_sep>/leechee-pay-service/src/main/java/com/office2easy/service/system/service/ISysLogService.java
package com.office2easy.service.system.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.off... | 7ccb6c1d3a28307ae6aaa87d746e68d3ff4d3bb6 | [
"Markdown",
"Java",
"Maven POM"
] | 10 | Java | MakeSomeFakeNews/leechee-pay | 707effae6476c9f928bf0a09878ae4c222e64e11 | f61518b5a5e9ffa6297b4d596595726fabe9b499 |
refs/heads/master | <repo_name>cesarlenin/my-discipline<file_sep>/src/pages/LandingPage/LandingPage.js
import React, { Component } from 'react';
import LogInform from '../../components/LogInform/LogInform';
import './LandingPage.css';
export class LandingPage extends Component {
render() {
return (
<section className = 'landi... | 3e8b446f2a9018a3d06563d29b9eac50736ab0af | [
"JavaScript",
"Markdown"
] | 19 | JavaScript | cesarlenin/my-discipline | 7cf8b6bb166993f33d958f6552068a0d43c94b36 | 22dca2b3a35efc80a028854c33f3da2946b54773 |
refs/heads/main | <repo_name>novansandi/tugasbesarweb.github.io<file_sep>/Tugas Besar/siswa.php
<!DOCTYPE html>
<html>
<head>
<title>Perpustakaan Kita</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="container" style="margin-top: 64px;">
<div id="table">
<table align="center... | 16402185d2998012703dd4292a0fe460ffb1ba7c | [
"SQL",
"PHP"
] | 16 | PHP | novansandi/tugasbesarweb.github.io | 3bfe133baee9ab4de13a03915929aad0d368fcd8 | a275dc7fa0990ba7b91899725f826f3b45096394 |
refs/heads/master | <repo_name>achsoft/AccessorMutator.Utility<file_sep>/tests/Unit/WriteOnlyPropertyTest.php
<?php
/**
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE file.
* Redistributions of files must retain the above copyright notice.
*
* @copyright (c) 2014, <NAME>
* @li... | 8338971be1d7c48d4cc28c0623f730229dbf25f0 | [
"Markdown",
"PHP"
] | 8 | PHP | achsoft/AccessorMutator.Utility | adca8e3a43e8606168c160ef59afc9fcaa2322c9 | fdb105201aab698e8e92439c450690f8cc8523e4 |
refs/heads/master | <repo_name>hangilmmu/SoftwarerEngineering<file_sep>/Mp3Manager/src/DBConnecter.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
public class DBConnecter {
Connection conn;
Statement stmt;
... | 19cfc37ca6e86d7234560027f59bdb3119aa466f | [
"Java"
] | 1 | Java | hangilmmu/SoftwarerEngineering | db20b7d040695bbac328b680cace078a6dc5b4e5 | c3ba90455b7a61ec5e2776365c1f75705b2e5994 |
refs/heads/master | <repo_name>Jonhks/mi-app-swift<file_sep>/foodMap/ViewController.swift
//
// ViewController.swift
// foodMap
//
// Created by <NAME> on 12/12/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import FirebaseAuth
class ViewController: UIViewController {
@IBOutlet weak var emailLogin: U... | b35c1ba7376554feb17686c1d2d0a3b05b96cb17 | [
"Swift"
] | 6 | Swift | Jonhks/mi-app-swift | 91c7afd3fcb3991ade1f0ec4b7599fa1e083e408 | d16a674d4dd01c9d1e4c40812f9604517f595d58 |
refs/heads/master | <repo_name>1330494/Practica10<file_sep>/models/Links.php
<?php
class Pages{
public static function linksModel($links){
if($links == "alumnos" || $links == "usuarios" || $links == "carreras" || $links == "maestros"
|| $links == "categorias" || $links == "tutorias" || $links == "tutorias-admin"|| $links == ... | f0746fa9e089796a9395231e0cb1a4ec77b7b3cd | [
"Markdown",
"SQL",
"PHP"
] | 19 | PHP | 1330494/Practica10 | 06173444944766e4e58bb3dd44c8749ec6d7aea8 | b4ee3d56952b5f975e578ec64ac334e98c6b9221 |
refs/heads/master | <repo_name>malerey/clase-94<file_sep>/src/App.js
import React, {useState} from 'react';
const App = () => {
const [form, setForm] = useState({
input: '',
select:''
})
const handleChange = e => {
setForm({...form, [e.target.name]: e.target.value} )
}
console.log(form)
return (
<div class... | c0580d77e1a0cf7c319fd11cd05d0ba09e500a5b | [
"JavaScript"
] | 1 | JavaScript | malerey/clase-94 | c2cccd9d42f1499a9fb31111c2ec2297834e22ba | bc0a10741dffe638eff9f925cb2834aefdd3cd2b |
refs/heads/master | <repo_name>havatry/AEF<file_sep>/README.md
# AEF
虚拟网络映射算法
--帮助文档
1. 生成测试用例, 使用类vnreal.algorithms.myAEF.util.ProduceCase
参数配置如下
```java
Properties properties = new Properties();
properties.put("snNodes", "100"); // 底层节点数
properties.put("minVNodes", "5");
properties.put("maxVNodes", "10"); // 上面参数和... | bfd4f6cf8c59c5f6db1dc9d07b649fb9e772583a | [
"Markdown",
"Java",
"Python"
] | 18 | Markdown | havatry/AEF | 8c7aa1dd73e0d62bfb4b4749a24cecee6a7e6ce8 | 3e44259a07bfb065a638758d60b8af5b5124b285 |
refs/heads/main | <repo_name>gadyx619/registration--form<file_sep>/process.php
<?php
session_start();
include('conn.php');
$id=0;
$fname='';
$lname='';
$age='';
$email='';
$pass='';
$gender='';
$dob='';
$cbox='';
$update='false';
if(isset($_POST['save'])){
$fname=$_POST['fname'];
$l... | 5b6923a65010823ebc925b25477f9edd9e2f1f3f | [
"PHP"
] | 3 | PHP | gadyx619/registration--form | a054388bd719243bce79f3362226d6b8ef27ebb9 | 297a7bd3808f5b35cc9e3121516d1ed1b67d8157 |
refs/heads/master | <file_sep><?php
$n = rand(1, 30);
echo "N = ".$n."<br><br>";
if( $n % 2 == 0)
echo $n." é multiplo de 2.<br>";
if( $n % 3 == 0)
echo $n." é multiplo de 3.<br>";
if( $n % 7 == 0)
echo $n." é multiplo de 7.<br>";
?><file_sep><?php
$data1 = mktime(0,0,0,02,28,2016);
$data2 = mktime(0,0,0,03,04,2016... | 0e0af7bca5e269cf807d48dcd94f8144d5e1933f | [
"Markdown",
"HTML",
"PHP"
] | 46 | PHP | CiroboyBR/Exercicios_PHP | e9807e4bdeb4c845d18c0cb806c2a9f59afda778 | b1e00415a7c57a300367e47aca1de43a13b2228f |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TLDAPComp;
namespace DemoLDAP
{
public partial class Form1 : Form
... | a4c895ce9aa62ec8264240054f21c869ab680cde | [
"C#"
] | 1 | C# | tuncgulec/CS | bab3d49795120ff1b2748dceb1299ad7dcb10cf6 | e2fa18c232411c53972a923e1fff1934c4faeee5 |
refs/heads/main | <repo_name>divukman/spring_state_machine_demo<file_sep>/src/main/java/tech/dimitar/spring/statemachinedemo/repository/PaymentRepository.java
package tech.dimitar.spring.statemachinedemo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import tech.dimitar.spring.statemachinedemo.domain.Payment;... | 5042758b63bea757b87953f0ec63f9dac7e0af1b | [
"Markdown",
"Java"
] | 3 | Java | divukman/spring_state_machine_demo | 831b098dc60d2f90ef0b4093efd9dc2a7d71f33f | 2cce54ed14289fcda0b2ae55f2df8a0e9d10e1aa |
refs/heads/master | <file_sep>const configWindow = {
alwaysOnTop: true,
hidden: true
};
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create("index.html", configWindow, function(appWin) {
appWin.contentWindow.addEventListener("DOMContentLoaded", function(e) {
var webview = appWin.contentWindow.d... | 527d863f0c815a6cc7b80c4869d047630b3dc6c7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | thadeu/youtube-always-on-top | 23d0fc200d1a80ab89d9fe90a442900ee35f4439 | 26e95941028b22e994d9ebda6220604476bc0838 |
refs/heads/master | <file_sep>lbuild:
CGO_ENABLED=0 GO111MODULE=on GOOS=linux GOARCH=amd64 go build
drun: dbuild
docker run --rm -p=8080:8080 server:1.0
dbuild: build
docker build -t web:1.0 .
<file_sep>package main
import (
"fmt"
"log"
"yojeeTW/pb"
consulapi "github.com/hashicorp/consul/api"
"google.golang.org/grpc"
)
var... | 03fda57dbd0eca01b0715266ec73cc26fdf4af80 | [
"Markdown",
"Makefile",
"Go Module",
"Go",
"Dockerfile"
] | 15 | Makefile | batphonhan/yojeeTW | 9e4462b3031dcf59a6e52b981160107751cbbada | 8c2497340373bd2e3a5e8f4e45c11bb42800f6e9 |
refs/heads/master | <file_sep>package com.yinawu.app.ws.shared.dto;
import com.yinawu.app.ws.Validation.Custom;
import com.yinawu.app.ws.Validation.UserValidator;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
/**
* Created by ywu on 7/21/18.
*/
@Custom(validator = UserValidator.class)
public class UserDTO ... | 85815e51378ba64b5839483dbfec73c4f47fecef | [
"Markdown",
"Java",
"Maven POM"
] | 9 | Java | yinaw/mobile-ws | 2130edf5f270df6c8fc6c022d3c70b8eab941272 | bb98742f5211f9fabf9affd7013103e2bed743ed |
refs/heads/master | <repo_name>vponomaryov/python_exercises<file_sep>/list_sorting.py
import random
import timeit
# === Quick sorting ===
def _quick_sort(list_, start, end):
li, ri = start, end
pivot = list_[(start + end) // 2]
while li <= ri:
while list_[li] < pivot:
li += 1
while list_[ri] > pi... | de8a8cb4c21d379b862c76ae1a3ca79bb69d9017 | [
"Python"
] | 3 | Python | vponomaryov/python_exercises | dfa22039a0e4243821c48b4e9112c205d5525704 | 1f9286b802392f7ee4ceae8e8ad8bd96d55cb436 |
refs/heads/master | <repo_name>Cruisoring/EasyXML<file_sep>/src/main/java/org/easyxml/parser/DomParser.java
/*
* Copyright (C) 2014 <NAME>
* Created on May 18, 2015
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lic... | 4b28220af90ec8e1df666129b2971c1361484d70 | [
"Markdown",
"Java"
] | 4 | Java | Cruisoring/EasyXML | 5b00677e7446eebe02821bf5cc7ff5e242a7eb77 | ed53769eb667a0090e2812dafbcd5456c6d7fae2 |
refs/heads/master | <repo_name>ryangrayson/MethodOverloading<file_sep>/MethodOverloading/MethodOverloading/Program.cs
using System;
namespace MethodOverloading
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please enter amount of money in your wallet");
var... | 9cb1ea77dc152217485ddd4530ae77e6aee15d5a | [
"C#"
] | 1 | C# | ryangrayson/MethodOverloading | 035edf110f01b99aefd686decef28a32c5ea9b01 | 4eeb95e83a4009a942f0e207b555282a1e8ed04e |
refs/heads/master | <file_sep>import deuces as de
from pypokerengine.players import BasePokerPlayer
from random import randint
# our main PokerPlay the training will be based on him (thus he has only 10 possible actions defined below)
class HeuristicPlayer(BasePokerPlayer):
def __init__(self):
self.__community_card = []
... | b61713d10a9774ee8b4f32d21f3f83bc40538c13 | [
"Markdown",
"Python"
] | 8 | Python | NilusvanEdel/NN_TF_RedSlenderLoridae | 446bcee3cfba77a2fa560b4be44f0cf98eca14e2 | d0218c5c784ed3e7d35105de4d99340d7a86a606 |
refs/heads/master | <file_sep>define(function(require) {
var angular = require('lib/angular');
/** @nginject */
function HeaderDirective() {
return {
templateUrl: 'js/app/components/header/header.html',
controller: HeaderController,
controllerAs: 'ctrl',
scope: {}
}
}
/** @nginject ... | 13e470888342c02f61ba03fc79a2a80bf62df648 | [
"JavaScript"
] | 21 | JavaScript | zeddic/books | 15a7eefa06084e2a75b2830724b9ef6ae8f1da12 | d666409c5a82babb5d0ae60cca0827cdb2c5cf81 |
refs/heads/master | <repo_name>kingcort01/gulp_project<file_sep>/app/js/lib/extension.js
var i = 0;
function init(){
for(var x = 0; x <= 99; x++){
console.log("This is number : ", x * i);
if(x % 2 == 0){
i++;
}
}
}
init(); | deaf26dcdba36af05fd422ec018a8221c6bea817 | [
"JavaScript"
] | 1 | JavaScript | kingcort01/gulp_project | 0e453d86c30947815c23d1cd91381ca89e148547 | 816c690b114feded32463a17fb803a54908a320f |
refs/heads/master | <repo_name>bebrws/OSX-Global-Shortcuts<file_sep>/README.md
# What is this
Finally an easy way, for me at least to get my terminal to pop up by keypress without installing a bunch of junk
Just run install.sh and follow the instructions
This will add a Services so that you can create a Key Binding through OSX System ... | 1668b15436cfb714552242509560f00a3c9ecdf4 | [
"Markdown",
"Shell"
] | 2 | Markdown | bebrws/OSX-Global-Shortcuts | 5ff5b06268595f0fee7c0b4050bbbb3032b93819 | e94e29a201e04eb9d5ac2113199c658e20623556 |
refs/heads/main | <file_sep>import React, { Component } from 'react'
export default class FilterObject extends Component {
constructor() {
super()
this.state = {
unFilteredArray: [{dog:'goldendoodle', age: 2, name: 'Daisy'}, {dog:'lab', age: 10, name: 'Pepper'}, {dog:'goldendoodle', age: 1, name: 'Rosie'... | 5481098b638cb0735793dc28de74ff2d5e76dcee | [
"JavaScript"
] | 1 | JavaScript | annegolladay/react-prob-wk10 | 69055f99db99d2704d554e1068ee36e74124a72c | 86498b4330492276db4ca8edae9d7e96acd56f0f |
refs/heads/master | <repo_name>priteshadulkar/github-project-for-jenkins<file_sep>/src/main/java/com/java/program/StringP.java
package com.java.program;
import org.testng.annotations.Test;
public class StringP {
String s1 = "Selenium ";
String s2 = "12hdjsjdksa";
String conc ;
@Test
public void con()
{
for(int i = 0 ; i<=s... | fbb3b27e7486b0391c0edeb8490a162c26ae0b93 | [
"Java"
] | 6 | Java | priteshadulkar/github-project-for-jenkins | 86f09569aaaa71f7a4f1b91a5d4339b3f931c1a0 | 716fdb8e6e3b3125e5b5b7ea27e7f33fae58d67a |
refs/heads/master | <repo_name>ClassCloud/Add-to-Semantic-Scuttle-WebExt<file_sep>/README.md
# Add-to-Semantic-Scuttle-WebExt
Add to (Semantic)Scuttle WebExt is a simple extension for your web browser that allows to add bookmarks to a (Semantic)Scuttle instance.
(Semantic)Scuttle is a social bookmarking tool experimenting with tags and c... | ce8a62f1a50faf217507100f31a984063653edbd | [
"Markdown",
"JavaScript"
] | 3 | Markdown | ClassCloud/Add-to-Semantic-Scuttle-WebExt | c35c6c30f449a4be804392223c78751937037312 | 1cfb86568a6c493e7d8fcc2555a4bc3bc0350489 |
refs/heads/master | <repo_name>DanielSiepmann/t3docs-cli<file_sep>/tests/Commands/PrepareDeploymentCommandTest.php
<?php
namespace TYPO3\Documentation\Tests\Commands;
/*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licens... | 4f3caf729e3abade147822d09932cf10a9139cda | [
"PHP"
] | 2 | PHP | DanielSiepmann/t3docs-cli | 42f3198aeab31a351bb57845fc74092df6c35574 | ba539424f65273f151d9ee454930a82354f02278 |
refs/heads/main | <repo_name>Mridul11/performance-review-app<file_sep>/client/src/components/CustomElements/ProtectedRoute/protected-route.component.js
import React, { useContext, } from 'react';
import { Route, Redirect } from 'react-router-dom';
import { ContextStore } from '../../../context/ContextStore';
import EmployeePage from '... | 0e58d7c44be3564e74d8c9db773fef68f8816f0d | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | Mridul11/performance-review-app | 446a5c9a7e8060642b2342a69569eed3f3ab0c68 | d93e50178c3ea57091210c9689a41b9ea99c8f82 |
refs/heads/master | <repo_name>VictorKamyshin/bd-second-semester<file_sep>/src/main/java/ru/mail/park/dao/implementation/Truncator.java
package ru.mail.park.dao.implementation;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
/**
* Created by victor on 23.11.16.
*/
public class Truncator {
publi... | 07f20c3df697412318ff73c06f9f3de6e02d1e97 | [
"Java",
"INI"
] | 13 | Java | VictorKamyshin/bd-second-semester | 2a782e437673e221fceb4820aca23e1d9e316f9b | c704fa4a9667abc101b6bdd4ca94b995f10da45e |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { addExpense } from '../../store/actions'
import AddExpenseForm from './AddExpenseForm';
import './AddExpense.css';
class AddExpense extends Component {
onAddExpense = (expense... | 6bd2c866abb8145d799dcbb29313006560d73903 | [
"JavaScript"
] | 15 | JavaScript | mike055/expenses-ui | de93359bebbed80903c6a33d4be4c8c56305dc28 | b2a382be143e351f3177b37e58747a8c57aeb027 |
refs/heads/main | <repo_name>Josh-Munro/StaticBlog_JoshMunro<file_sep>/README.md
# StaticBlog_JoshMunro
Building a Strapi Blog Using Jekyll and Strapi
This is a tutorial based for Web502
Date: 18/10/21
<file_sep>/backend/extensions/users-permissions/config/jwt.js
module.exports = {
jwtSecret: process.env.JWT_SECRET || '90072ee5-5f52... | ac2469e3b19c1506688d1cdeec6828c225ddef59 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Josh-Munro/StaticBlog_JoshMunro | 852392b5341b4be35c33d3fa00dad6fa0fa69caa | 6ef5f1a7cda940360a4e32054ba9bddefa972981 |
refs/heads/master | <repo_name>solaz0824/e-commerce-project-server<file_sep>/helpers/orderEmailBody.js
const styles = require('./orderEmailStyles')
module.exports = (name,_id, total, cart) => (
`<div style=${styles.container}>
<h1>Hello ${name}, thank you for your order!</h1>
<h3>Your order number is ${_id}</h3>
... | 7d0e46271a7ef3f9965a8d0b4bc50d0cce46ba9b | [
"JavaScript"
] | 17 | JavaScript | solaz0824/e-commerce-project-server | 1a802755e9c370f841117604f2c3f604060ec9af | 622e4351bda6ba658ca9dfabf57d9a8a4573f6f5 |
refs/heads/master | <file_sep>import numpy as np
import os
import pandas as pd
def import_csv(path):
dir_path = os.path.dirname(os.path.realpath(__file__)) + path
return pd.read_csv(dir_path)
def split_df(df, split=0.8):
pt = np.random.rand(len(df)) < split
return df[pt], df[~pt]
<file_sep>import numpy as np
def format_... | 2bdf26e6f4b51bde188ce16e5e312f74520d0b33 | [
"Python"
] | 5 | Python | eroeum/FMNIST-tensorflow | c2e0b8418aba32aed934bb7e3db850f3d0915482 | 61c161b4de22946f4efcf4cbab3619479ed80caa |
refs/heads/master | <file_sep>
# coding: utf-8
# In[2]:
import pandas as pd
data=pd.read_csv("train.csv",index_col='id', parse_dates=True)
data.head()
# In[3]:
data.corr()
# In[6]:
data['vendor_id']
# In[7]:
data.head()
# In[8]:
from math import *
def dis(x1,x2,y1,y2):
x=pow((x2-x1),2)
y=pow((y2-y1),2)
retur... | 574c68627a2deaff063793f467bef949f2b4f49d | [
"Python"
] | 1 | Python | Balamurugan55/ML | 4dcf76a2ff5e04e1b62c7b1ca22d4327ebe9cdf6 | 86514b0b62e1157696223b079544cd11ce6d0d72 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace nohejbal_tymy
{
public static class Michacka
... | 7f2e5dc163dbac9ebc47b65490515fbb03d59a4a | [
"C#"
] | 1 | C# | Majkluss/nohejbal_tymy | 9dca9d582b7beb21c777b78a6193192e5702d77a | fe68a3158c3a342a9b0c1ec9ff16548e5156c3b6 |
refs/heads/master | <file_sep>#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
use tokio_test::assert_err;
#[tokio::test]
async fn pause_time_in_main() {
tokio::time::pause();
}
#[tokio::test]
async fn pause_time_in_task() {
let t = tokio::spawn(async {
tokio::time::pause();
});
t.await.unwrap();
}
#[tokio... | 58b2f67b516e23601846d686f29c869972937cc3 | [
"Markdown",
"Rust"
] | 9 | Rust | shantanu28sharma/tokio | 0e85985ab09a5ebac7426371493e7f4adecb4d90 | 3fb16e5edea863da87add700d70e0c113362e1ac |
refs/heads/master | <repo_name>adlersd/CodeCommerce<file_sep>/app/Http/Controllers/StoreController.php
<?php
namespace CodeCommerce\Http\Controllers;
use CodeCommerce\Category;
use CodeCommerce\Product;
use Illuminate\Http\Request;
use CodeCommerce\Http\Requests;
use CodeCommerce\Http\Controllers\Controller;
class StoreController exte... | 8e914dff41d6c395d126819adeae627a74e88e4d | [
"PHP"
] | 11 | PHP | adlersd/CodeCommerce | 512542b14173287230f66b2f7c5c8007ef690ee4 | 2386f8a4e74a973b5e97541e379f7c8de128b648 |
refs/heads/master | <file_sep>freedict(原名opendict,后来在打包的时候发现软件仓库有同名,遂改之)当前最新版本2018-5.1
### 开发背景
学习Qt和Deepin系统下软件的开发,与此同时学习其他的计算机技术,需要阅读英文资料。Google浏览器的翻译插件和深度用户社区的Rekols-dict都很好用,但是我觉得还不够,需要一个记录查询历史的功能,以便日后复习,这样对英语水平的提高是有帮助的。本应用超轻量的,由于目前基本都是我自己和同学在使用这个软件,Linux版本的有道词典也在重构中,所以我并没有对本应用做进一步进行优化。如果有同学需要我修改一些东西,我很乐意帮助的,直接在issue中提出或者给我发邮件就好了... | 3760d56e9361c1912bc6938f57970ba07f56d289 | [
"Markdown",
"C++"
] | 2 | Markdown | olrearn/freedict | 96550f84d30e7e645cd4e9cce29d25ea22e0120c | bcaa8d84444c4fcdcf61afb61402055d71c35aa6 |
refs/heads/main | <repo_name>geraldelorm/tlc-java-project<file_sep>/README.md
# tlc-java-project
TCL Java OOP Project
<file_sep>/src/com/turntabl/LectureTest.java
package com.turntabl;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class LectureTest {
... | 20c3865ccee234eaa3960befcedb35f7ee87a201 | [
"Markdown",
"Java"
] | 3 | Markdown | geraldelorm/tlc-java-project | 139a476d626ada9ffc1cedb761208574bf8c8d81 | 11ba8e1915fd6fc843acec3a0275033af46b182a |
refs/heads/master | <repo_name>sanishmahadik/play<file_sep>/interview_practice/rgb_format.cc
//Format an RGB value (three 1-byte numbers) as a 6-digit hexadecimal string.
//FIXME: Challenge here it printing single digits correctly. e.g. 10 should be
//0a and not " a" (space char).
#include <stdio.h>
#include <stdlib.h>
int main(int arg... | 4dda3681f20515644bdcd728d871a6944434c595 | [
"C",
"C++"
] | 30 | C++ | sanishmahadik/play | e120ab01be61701acf5e5a205412a5be5e853f25 | dfe0ab9238dbb78ffe84e4f80cb75c9332ff717b |
refs/heads/master | <repo_name>chaimtime/AP<file_sep>/CarTest.java
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class CarTest {
Car Ford = new Car();
@Test
void testToString() {
assertEquals("Name: Ford\nMPG: 20.0",Ford.toString());
}
@Test
void testDrive(){
Ford.drive(100);
assertE... | 6c4a3aba79be41bae58dc7fe111b9d4a67173135 | [
"Java"
] | 3 | Java | chaimtime/AP | fed674daa04f8612f3f9250700cfc7a7667b884b | e076af037525dca1b478c6bc6d17fff805cbb363 |
refs/heads/master | <file_sep>fn main() {
unsafe {
let coord = proj_sys::proj_coord(1., 2., 3., 4.);
println!("{:#?}", coord.v);
}
}
<file_sep>[package]
name = "proj-sys-bug"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/r... | 09cbbcb467ee61e4d38351f46bfde5c756746d3d | [
"TOML",
"Rust"
] | 2 | Rust | frewsxcv/proj-sys-bug | f1b6edf90f7880416a0d42da4017c994f1e40a21 | 405020b7fe2894b7074400f76d9b5e8351ba2ea6 |
refs/heads/main | <repo_name>SethPuhala/start-page<file_sep>/Strt/EVE-HOME/index.js
let now = new Date();
let hours = now.getHours();
if (hours > 12){
hours -=12;
}
let minutes = now.getMinutes();
if (minutes < 10){
minutes = ('0' + minutes);
}
let time = (hours + ':' + minutes)
document.getElementById("timetext").innerHTML = time
... | f0c21f2804fb3c6ef5c7022d1f3103d2f49fd517 | [
"JavaScript"
] | 2 | JavaScript | SethPuhala/start-page | fd336b66f67cef8c299695a35d4476683b59fb9e | b665ec0a3c6bf535853ad0d9f182cb7f4a9781e8 |
refs/heads/master | <repo_name>digovc/Web<file_sep>/Html/Componente/Botao/BotaoHtml.cs
using NetZ.Web.Server.Arquivo.Css;
namespace NetZ.Web.Html.Componente.Botao
{
public class BotaoHtml : ComponenteHtmlBase, ITagNivel
{
#region Constantes
public enum EnmLado
{
DIREITA,
ESQUERDA,... | b0585de4e34a5409a712779863146733e3f33647 | [
"C#",
"SQL"
] | 143 | C# | digovc/Web | 685ba5e3a4154005c45238a4d003379db716d9cd | 03155d88f2521346b08c365e1188a16833404a44 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.