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>package kim.guler.berkin.simpledownload
import android.os.Handler
import android.os.Looper
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.isActive
import kotlinx.coroutines.withContext
import okhttp3.OkHttpClient
import okhttp3.Request
import okio.buffer
import okio.sink
import java.io.File
... | 848e30e8b7657195d4e46c9c670c136b37d26678 | [
"Kotlin",
"Gradle"
] | 4 | Kotlin | bigahega/simpledownloader | 855eb37e8d164bd30b79738e78c4d5ce6847c9a3 | 21b91a9020a24b7e9d9dcffea8e9eeddeff5dcd6 |
refs/heads/master | <file_sep>var express = require("express")
var router = express.Router();
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
password : '<PASSWORD>!',
database : 't411db'
});
var torrent_model = {
"id": 0,
"name": null,
"category... | cc6b2ee2243f9c6569095a2db08d22ed6b50ce31 | [
"JavaScript",
"SQL"
] | 6 | JavaScript | Noxionx/NoxNodeServ | 3c73c7a2dfb8348caaa3277fc75309019be3137e | 7cd033b4076d15d5b3ceeebde92a5912417cea82 |
refs/heads/master | <repo_name>pawanpathak03101987/BhattaVyapar<file_sep>/app/src/main/java/com/pawan/bhattavyapar/adapter/HomeFragment_Adapter.kt
package com.pawan.bhattavyapar.adapter
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
impo... | eb9768cb014c80fcd6255a605473e8282dde6923 | [
"Java",
"Kotlin"
] | 9 | Kotlin | pawanpathak03101987/BhattaVyapar | 48d903b1d3d48a8bee55d18afd9f8a2099c8c822 | 8505dedd86e2af827f547d174d579b2612b9777b |
refs/heads/master | <repo_name>Igor3Volf/SOEN387<file_sep>/SOEN387/src/technical_service/UserRDG.java
package technical_service;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import ts.UserTS;
import mod... | 304d0883c1d918cc172f66f86934761fd2e78599 | [
"Markdown",
"Java"
] | 10 | Java | Igor3Volf/SOEN387 | 7ab34340a8d09537a2fdc2ff6b8c2d329d66ae71 | 574d5157e77f16a3975233c0b520a258a9549187 |
refs/heads/master | <file_sep>using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Linq;
using AngleSharp.Html.Dom;
using AngleSharp.Html.Parser;
public static class Api
{
public s... | ddc8a2afad724c674278be67faf7a410f095b6a3 | [
"C#"
] | 1 | C# | SueWeiss/TLSScraper | c8cbf38ba368cbfbd6bac22581ff1f51b26ed46e | d6638d155365b945a9fcc30a7472eeb460b38bd1 |
refs/heads/master | <repo_name>eshta/fixtures-bundle<file_sep>/Tests/Executor/ExecutorTest.php
<?php
namespace Eshta\FixturesBundle\Tests\Executor;
use Eshta\FixturesBundle\Executor\ORMExecutor;
use Eshta\FixturesBundle\Repository\DBALFixtureRepository;
use Eshta\FixturesBundle\Tests\BaseTest;
use Eshta\FixturesBundle\Tests\TestFixture\F... | a2df0bdf52917564ce16dc68aa5695abc37bff62 | [
"Markdown",
"PHP"
] | 14 | PHP | eshta/fixtures-bundle | 80f9e5263d52c44ae29eced0319f359024b30b73 | 3881b7db71f001604f8e5b0a1a30f662b979a460 |
refs/heads/master | <file_sep>function popup() {
var name = $("#orderName").val();
if (name == "") {
alert("주문자 이름을 입력하세요.");
$("#orderName").focus();
return;
}
var count = $("#orderCount").val();
if (count == "--수량을 선택하세요--") {
alert("수량을 선택하세요.");
$("#orderCount")... | 3fdeb722506ffb7d3c3ca5ccbaca7dbc42f4fa5e | [
"JavaScript"
] | 1 | JavaScript | junggghee/scodan7_junghee | 4169ab658eb68f5ec0d1d3a255210a4f0d44bb68 | b6aab295bcd9493ac2d9dd176d6b99811431f3c1 |
refs/heads/master | <repo_name>programmerGM/faculdade_hash_arquivos<file_sep>/include/pessoa.h
/*
* Criação: 09/12/2016
* Alteração 09/18/2016
* Author: <NAME>
* Author: <NAME>
*
* Descrição: Trabalho de Hash/Arquivos
*/
#ifndef PESSOA_H
#define PESSOA_H
#include <iostream>
using namespace std;
class pessoa {
public:
pessoa();
... | 6a3005fc58d66cefa69b1652419ae6c59a3370c9 | [
"Markdown",
"C++"
] | 6 | C++ | programmerGM/faculdade_hash_arquivos | 7b2c6ef739d1beeb7d4b012a2e5a82a7f1212897 | 42fb76bb46f32a6b4b0cd864611a6188807a7320 |
refs/heads/master | <repo_name>dennismoha/Teamwork<file_sep>/controllers/gifs.js
/* eslint-disable no-undef */
const db = require('../dbConfig/db');
const multer = require('multer');
//creating a new gif
const storage = multer.diskStorage({
destination: function(req, file,cb) {
cb(null,'uploads/')
},
filename: function(req,fi... | 0037f6c735650c1f4745b0c217f783355994aa99 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | dennismoha/Teamwork | 809fd60d8656b52d5855cacd7d275b0abe976fb6 | aa9caa3d2d99a40eb0689c59af172c021be6c1b5 |
refs/heads/master | <file_sep>import java.util.ArrayList;
public class Lab_9 {
private static double finalfitness;
public static ScalesSolution RMHC(ArrayList<Double> weights, int n, int iter)
{
ScalesSolution oldsol = new ScalesSolution(n);
double oldfit, newfit = 0;
for (int i = 0; i <= iter; i++)
{
oldfit = oldsol.Sc... | 248f07a8cef4dcfc69f2c0fc2292a7d4b3841368 | [
"Java"
] | 14 | Java | pelumi2000/Level2-Java | 01ed71498fde230622ac6699c0c09e1a16694023 | 9a3b61cc6f16d122b2804efe76d9064241a0b011 |
refs/heads/master | <file_sep>#!/usr/bin/python3
import sys
sys.path.insert(0, './pyAudioAnalysis') # nopep8
import random
import numpy as np
import pyAudioAnalysis
from pyAudioAnalysis import audioTrainTest as aT
import plotly.subplots
import os, argparse, sys
def set_seed(seed=1337):
random.seed(seed)
np.random.seed(seed)
de... | 6270f7efd4efef249b68f13abdfd6420bb0df7d1 | [
"Markdown",
"Python",
"Shell"
] | 9 | Python | gokhansolak/CORSMAL-pyAudioAnalysis | 73dcb935246bf01d847da9fabb67648473a37bb1 | 6d986a3c10021ed9cc3d0a4fa9b0123037350e8e |
refs/heads/master | <repo_name>radtek/workWithPrinter<file_sep>/src/router.js
const router = require('express').Router();
const Printer = require('@thiagoelg/node-printer');
const childProcess = require('child_process');
const { PrinterApp } = require('./common/config');
const LableSample = process.cwd()+'/src/common/testSample.nlbl';
ro... | dddd8d6dbd254b0bb556f0ae216ee23041f9d4a5 | [
"JavaScript",
"C#"
] | 6 | JavaScript | radtek/workWithPrinter | a369c2ea29d87e3057e7fc41f2296bba7f6f295a | acbb9c830edcb80a5bf84958e6291c22d8869444 |
refs/heads/master | <repo_name>pgstuff/usa_ein<file_sep>/src/usa_ein.c
#include "postgres.h"
#include "fmgr.h"
#include "libpq/pqformat.h"
#include "utils/builtins.h"
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
typedef uint32 usa_ein_t;
#define USAEINGetDatum(x) Int32GetDatum(x)
#define DatumGetUSAEIN(x) DatumGetInt32(x)
#define P... | 296e9980a7665f3f4802205985b3210b704e0abe | [
"C",
"SQL"
] | 2 | C | pgstuff/usa_ein | 290630c6c0e66a388adf537e14358f6c6bfda4fc | 7214722d528960317e66dec4d7dc4dff1236e095 |
refs/heads/master | <file_sep>package com.hitherejoe.module_androidtest_only.injection.component;
import com.hitherejoe.module_androidtest_only.injection.module.DataManagerTestModule;
import com.hitherejoe.mvvm_hackernews.injection.component.DataManagerComponent;
import com.hitherejoe.mvvm_hackernews.injection.scope.PerDataManager;
imp... | e8efbb422bcaead8ca1fca2d6cd2857a2a145451 | [
"Java",
"Gradle"
] | 4 | Java | maheshwarLigade/MVVM_Hacker_News | d2d8687e9db634a7df00a3878c9ab6e0dea82c1a | c9a1eb61b54c80285c3e18480e77a54f9716ad7d |
refs/heads/master | <file_sep><?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
$postData = file_get_contents('php://input');
$data = json_decode($postData, true);
$data = json_decode($data['data']);
// Подключаем класс для работы с excel
require_once('PHPExcel.php');
// Подк... | db6011e3a5296a2e61012069b157618b80499fd9 | [
"PHP"
] | 1 | PHP | fukalov1/reklama | ea073f6cdad8c7165a3a5f12a8ca2b9938de32ab | de25881059893899551644be1192c8098dd69626 |
refs/heads/master | <repo_name>Nita112233/test1<file_sep>/formdemografi/admin.py
from django.contrib import admin
from .models import Post
from .models import Patient, Condition, Evidence, Identifier, Address, HumanName
from .models import ContactPoint, Location, Attachment
# from .models import ServiceType, Reference, CodeableConcept, C... | ddc720d086c35ab50d1a2c4927994c922e88508a | [
"Python"
] | 1 | Python | Nita112233/test1 | bb60264af4f2b58c860061bf0f88b4c679dca42f | 5693f0c9c2d42dbf45dd15a8999e67467ac04565 |
refs/heads/master | <repo_name>abhishekmishra/pypicoturtle<file_sep>/src/picoturtle.py
import urllib.request
import urllib.parse
import json
import webbrowser
import builtins
import sys
import datetime
from pathlib import Path
import os.path
import platform
import os
import stat
import subprocess
PICOTURTLE_WEBCANVAS_RELEASES_URL = 'http... | e2274851d2956555eed66706fab4374da1ff7dee | [
"Markdown",
"Python"
] | 3 | Python | abhishekmishra/pypicoturtle | b9d0640b1a6dde6876eee6664ec2c09ac8dfebf9 | dcf2b1cd0bf9e1837ff13965397198f0774582d9 |
refs/heads/main | <file_sep>/*let a = +prompt("1")
let b = +prompt("2")
function pow(a, b) {
let result = a;
for (let i = 1; i < b; i++) {
result *= a
}
return result;
}
alert(pow(a,b))*/
/*function value(a){
let num = 1000;
a = num
while (num > 50) {
console.log(num)
num = num / ... | 965e9d2f06a6d0f87fa4a00af7210af2cdef086d | [
"JavaScript"
] | 2 | JavaScript | EnvyEternal/UserCardHomeWork | ef20f0468e0e658a1fa4006c62a3c7fff30c7e23 | 5a081c4b802808ea0c5e4454eaa317404dbc2f71 |
refs/heads/master | <file_sep>#
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'netronixgroup_test' do
pod 'Alamofire', '~> 4.6'
pod 'SwiftyJSON'
target 'netronixgroup_testTests' do
inherit! :search_paths
end
end
<file_sep>//
// Event.swift
// netronixgroup_test
//
// Create... | 6957d10e9bf6c5b4ac992ef92527eec2a5c0bb19 | [
"Swift",
"Ruby",
"Markdown"
] | 8 | Ruby | romacv/netronixgroup_test | 4ca21600a1c6a5ef46b43dc39bc774e86155d4f6 | 6f6ba0352fad7b97b2b70a022efee720ab07402f |
refs/heads/master | <file_sep>using Assets.Scripts;
using Pathfinding;
using UnityEngine;
using UnityEngine.AI;
public class Unit : MonoBehaviour
{
public AIPath AiPath { get; set; }
public Animator Animator { get; set; }
public Constants.UnitState UnitState;
void Start()
{
AiPath = GetComponent<AIPath>();
AiPath.cons... | 87854bcc4957113aee9a63989a99e8cf31f93c32 | [
"C#"
] | 3 | C# | richhildebrand/TD-RTS | 47d52b6587bc7941f8f95f274881614fa19eb307 | 575cfab9ff1600ca7cdd0fa9b1047ce0533e9174 |
refs/heads/master | <file_sep>FROM node:latest
MAINTAINER Sneaker15 <<EMAIL>>
#Install libpcap-dev
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y \
libpcap-dev \
etherwake && \
apt-get clean && rm -rf /var/lib/apt/list... | 7efdd65b1457aa5d2d793aed352b38352a632dea | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Dockerfile | datenzar/docker-dasher | ab20851735eabaeb867c61d288621d415bd912d7 | 53db4e22c6e9e820511a1efa177d233e81ba5213 |
refs/heads/master | <file_sep>let auto = function() {
let me = {};
publicAPI();
//static method
function getRequiredLicenseCategory() {
return 'B';
}
function publicAPI() {
//default values for AUTO
me.maxSpeed = 100;
me.speed = 0;
me.speedUnit = 'km/h';
me.getSpee... | c5275b79d729f00b414af28bc4e062b4d3232a97 | [
"JavaScript"
] | 1 | JavaScript | norb00/Functional_Pattern_in_OOP_homeTask | b1a28c339b10f88df786bb9f0a9ffb27ead7b2ef | f6ed527c59581193715e6ed16ad4d2e1fa86aaf1 |
refs/heads/master | <repo_name>gwicks/gmusicapi-curl<file_sep>/cplayer.cpp
#include <iostream>
#include <dirent.h>
#include <vector>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string>
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <curl... | c6b6e7f18613855249a1508fc0cdfa9319094324 | [
"Markdown",
"Makefile",
"C++"
] | 6 | C++ | gwicks/gmusicapi-curl | 070da1b516230a3b151e81f1a626c4623b1fd40c | 51dfcaff78e27b4ad414ab565e6b00701659d6f2 |
refs/heads/master | <repo_name>shilliscmu/GRU_By_Hand<file_sep>/gru.py
import torch
import torch.nn as nn
import numpy as np
import itertools
class Sigmoid:
"""docstring for Sigmoid"""
def __init__(self):
pass
def forward(self, x):
self.res = 1/(1+np.exp(-x))
return self.res
def backward(self):
return self.res * (1-self.res)
... | 6bbf1c9cd0c48723dc9d4df1ce80021944d4da34 | [
"Markdown",
"Python"
] | 2 | Python | shilliscmu/GRU_By_Hand | 161325d9883e741d740d1a7925b6e326de112120 | b9623b1f253925f8f79c7cfd7affd820b755ee4a |
refs/heads/master | <file_sep># Inspired by
https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes<file_sep>using System;
namespace GCPFunctionsX.Utilities
{
public class TimeMachine
{
/// <summary>
/// Gets the time right now formatted as a long date string
/// </summary>
/// <re... | 8fae21f88519b170bfeb72fc76f2835258446f46 | [
"Ruby",
"Markdown",
"JavaScript",
"C#",
"Dockerfile",
"Shell"
] | 44 | Markdown | garrettwong/gcp-demos | be9c2f1562e1e6f5cd4eb923d67f4f7a36fcff3a | 901acd26ca64f6eef19f5ae012ff17e0d93fe8eb |
refs/heads/main | <file_sep># Don't print a new line at the start of the prompt
add_newline = false
[line_break]
disabled = true
[character]
error_symbol = "[✘ ❯](bold red)"
success_symbol = "[✔ ❯](bold green)"
vicmd_symbol = "[v ❯](bold blue)"
[package]
disabled = true
[directory]
read_only = " 🔒"
truncation_length = 5
style... | fbec08750f52a4c2cd617b8989b3793f32334088 | [
"TOML",
"Shell"
] | 8 | TOML | yassentarek/dotfiles | 5f49c7ac2e9ec00245a684d401865a0055f0cdc7 | 29730cd0804eecf44e11b8c74e82bd4d573db3a4 |
refs/heads/master | <repo_name>MaysysInc/docker-registry-browser<file_sep>/app/assets/javascripts/repositories.js
$(document).on("turbolinks:load", function() {
$("#delete_confirm").on("keyup", function(e) {
var field = $(this);
var button = $("#delete-button");
if(field.val() == field.data("expected")) {
button.remove... | 4be5d9c3b1f498ef716fcac710d28e6a01dfd4a8 | [
"JavaScript",
"Ruby",
"Markdown"
] | 3 | JavaScript | MaysysInc/docker-registry-browser | dc49de46d4d705ef5445c90d1a95763033aaa165 | f60321bc82a495cf523a8c9eb55f3283eaa6adf8 |
refs/heads/master | <repo_name>innetra/easy_contacts<file_sep>/app/models/person.rb
class Person < Contact
validates_presence_of :name
validates_presence_of :last_name
validates_uniqueness_of :name, :scope => :last_name
belongs_to :company
accepts_nested_attributes_for :company,
:r... | a909988ac7faf7d2242dca1a41b612dced063950 | [
"RDoc",
"Ruby"
] | 29 | Ruby | innetra/easy_contacts | a21226d15dbe2537cce83b688890c693d90f6fed | 82211e88485854a31313d4e8e651ab0da6e774fb |
refs/heads/master | <repo_name>protolif/edtf-ruby<file_sep>/lib/edtf/version.rb
module EDTF
VERSION = '3.0.4'.freeze
end
<file_sep>/Gemfile
source 'https://rubygems.org'
gemspec
group :debug do
gem 'ruby-debug', :require => false, :platform => :jruby
gem 'byebug', :require => false, :platform => :mri
gem 'rubinius-compiler', '~>2... | 59a42aae69cd360b1359c5dee5781508fbc3f4a8 | [
"Ruby"
] | 2 | Ruby | protolif/edtf-ruby | 7f6d3082f9e2c4826ed656ea370be36b42c9a1ee | 36206216787b0693678cb3cbc58eca8a921b4a45 |
refs/heads/master | <file_sep>"""navigation_project_intro.py
Code from the Udacity IPython notebook introduction to the Navigation project.
"""
from unityagents import UnityEnvironment
import numpy as np
env = UnityEnvironment(file_name="Banana.exe")
# get the default brain
brain_name = env.brain_names[0]
brain = env.brains[brain_name]... | 4dfcd9722719a510bb26fa234d8d97136c26e5f0 | [
"Markdown",
"Python"
] | 5 | Python | dsotingco/udacity-drlnd-navigation | 29fe5dc5b4985e8391efd9e9f3ace2b08d40721d | cc7820414ce9bee61be32f4c9047a4ba57e6a364 |
refs/heads/master | <file_sep>require "open-uri"
require "nokogiri"
namespace :scrape do
desc "Race results for a given date"
task :race_results => :environment do
url = "http://racing.hkjc.com/racing/Info/Meeting/Results/English"
parse_data = Nokogiri::HTML(open(url))
i = 0
while (i <= 11) do
j = 1
... | 54267988d2a47bd65c0e39337f3328b84f19113c | [
"Ruby"
] | 5 | Ruby | sion10/Jockey_Scrape | b0201f48b8464815093c0079554b53cb77b9b0f8 | b0188740b849d1475f1faf6ba1fc957b313cd5c6 |
refs/heads/master | <file_sep>import React from 'react';
import { HashRouter as Router, Route } from 'react-router-dom';
import withTracker from '../../withTracker';
import Navigation from '../Navigation';
import SignUpPage from '../SignUp';
import SignInPage from '../SignIn';
import PasswordForgetPage from '../PasswordForget';
import A... | 18027c441add1bcbfd4dfa80aba9acefc4060b28 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | maxabrahamsson/notepad | cd6263b8eede5b11061b76b910a16ac05af2e47b | 3f662541663db9e5a00a14206919aaea32baec0e |
refs/heads/master | <repo_name>zhouhaoxiang/webpackAndReactStudy<file_sep>/todoListwithredux/containers/inputwithconnect.js
import {connect} from 'react-redux';
import {addTodo,saveInfo,changeColor} from './../actions/action'
import defaultFunc from './../actions/action'
import Input from './../components/input';
import {bindActionCreator... | 57e18d2648fa2cffff60dd6d7ddbe3ec8ada104a | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | zhouhaoxiang/webpackAndReactStudy | 076645a8e7db643f86566cf7d7e09dc312d17c32 | 2ea06141c6507bceb988402eb9e01a0a30d62a1d |
refs/heads/master | <repo_name>htelahun/telahun_h_3014_hw3<file_sep>/admin/phpscripts/sessions.php
<?php
//protecting the admin_index page, only shows info on page if logged in
session_start();
function confirm_logged_in(){
if (!isset($_SESSION['user_id'])) {
redirect_to("admin_login.php");
}
}
function logged_out(){
session_... | 653ce93ae9a8d102357482c792752c33c45f6ca6 | [
"JavaScript",
"PHP"
] | 10 | PHP | htelahun/telahun_h_3014_hw3 | 1e1bb6bb400c3d5214d8429a53aa180589f6d46d | a5bf868dac80a69a73bf7f1bacb979c779362585 |
refs/heads/master | <repo_name>gyangsob/algorithmstudy<file_sep>/mercy/mercy.c
#include <stdio.h>
int main(void)
{
unsigned int input_num; // Input contains just one positive integer N
scanf("%d", &input_num);
// for optimization...
while(input_num > 0) {
printf("Hello Algospot!\n");
input_num--;
}
return 0;
}
<file_sep>/dr... | b511dcae94a22e28c20a12bddf43ef93c3f50ff4 | [
"C"
] | 8 | C | gyangsob/algorithmstudy | 42a0f808a05440a03f3c4cf5daa3e1ed4a55f004 | bbb9e4b95032ac988fe836ae48d3bf9e16378aeb |
refs/heads/master | <repo_name>arun-gokul/arun<file_sep>/functions/event/Event.java
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.JSONObject;
import com.catalyst.Context;
import com.catalyst.event.EVENT_STATUS;
import com.catalyst.event.EventRequest;
import com.catalyst.event.CatalystEventHandler;
im... | 1c3ca5c1dfc4dbdeb96fe49f50a0241aa994fede | [
"Java"
] | 2 | Java | arun-gokul/arun | 2b95dd1c0476bd1f16c6fc151380e7993fcb5b75 | 9b529e0bc32274684052c1d5463f32d9a40b892b |
refs/heads/master | <repo_name>barakgonen/barakLihiPCodeGen<file_sep>/Input_Files/HW1/sample14.c
#include <stdio.h>
void main() {
float a;
int b;
double e;
int x;
float f;
f=0;
x=1;
b=1;
a = 5;
e = 7;
// e = a--; //e=5. a=4 store to a and than decrement
printf("%.2f\n",e); //print 5.00
... | 6d2c314becbb8c8da0eb32757985864d040f1aad | [
"C",
"CMake"
] | 26 | C | barakgonen/barakLihiPCodeGen | b79888fe7ffc17a57f3e62de09f3ecff31411e5a | 40bf9f823d9af3d48bf128eaff2502abd7932e2e |
refs/heads/master | <repo_name>Apocaliptic95/SQL<file_sep>/README.md
# SQL
Platforma - projekt bazy dla projektu cake z repozytorium PHP
Piwo i Schronisko - Projekty baz na zajęcia z baz danych
<file_sep>/Postgres-schronisko.sql
DROP TABLE IF EXISTS Adopcja;
DROP TABLE IF EXISTS Przyjecie;
DROP TABLE IF EXISTS Specjalista;
DROP TABLE I... | 0d2e4b5bbb7b8cb7ee055da4a9edcdfeb8524b49 | [
"Markdown",
"SQL"
] | 4 | Markdown | Apocaliptic95/SQL | 67ea7eed4698ebc0b6830e95d9b382d86c6b8989 | ef1b8af6eab90832e23ed6b74e81dc7e64f00785 |
refs/heads/master | <file_sep># PARANDO CONTAINERS
docker-compose down
# REMOVENDO IMAGENS
docker rmi -f ijm/projeto-db
#docker rmi -f npw/projeto-share
docker rmi -f ijm/projeto-core
docker rmi -f ijm/projeto-web
# REMOVENDO VOLUME
#docker volume remove ./bd:/var/lib/postgresql
<file_sep>/*
* To change this license header, choose Lic... | e1ae54c8f8f3ab728fd8fff0f85f131b2f22f1e6 | [
"Markdown",
"Java",
"Dockerfile",
"Shell"
] | 9 | Shell | joseferreir/DAC-projeto | 5415356c1b95db5ea6908bb0a872a4ed682d1204 | 028d78f0d40e01dd4808d4bb4fd6b065cb957a61 |
refs/heads/master | <repo_name>kir-dev13/gulp_setup_0.1<file_sep>/#src/js/script.js
"use strict";
@@include("_checkWebpSupport.js");
| 7754bd150621f7594e467f86c548438f6dd97ee5 | [
"JavaScript"
] | 1 | JavaScript | kir-dev13/gulp_setup_0.1 | ae32fc2fd3e9830fda2d9e2968d5171711f26e0e | 0a29fb9f4bff1e935979d6abde22c891d53c8c21 |
refs/heads/main | <file_sep>Notes:
- Exported bot token environment variable
TODO:
- Check this works with Heroku deployment via gitHub
- Add a heroku hosted database
- Experiment with the app falling asleep
- Better error handling so that one error doesnt take the bot down
- Continue with type script version if wanted<file_sep>const {... | 9da4b1b7518d466b6ed18ad1b320d29d58508392 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 3 | Markdown | esmehm/first-telegram-bot | 55a992b76777a7095c649425e6e57bf836ae2c6b | 7ad967b0e3c442459dc7bc1dd8e15a6519ecec0a |
refs/heads/main | <file_sep>//recebe o retorno através do webhook
$data = json_decode(file_get_contents("php://input"));
print_r($data);
$idasaas = $data->payment->id;
$installment = $data->payment->installment;
$valpago = $data->payment->value;
$vencbol = $data->payment->originalDueDate;
$confirmed = $data->event;
$forma_pagamento = $... | b0c05e7d300070ad1b1cc541ff35455fbe9aa377 | [
"Markdown",
"PHP"
] | 3 | PHP | lucasmatsumoto/asaas | 98b6efed0f77c40d252c4bfce8d9e846f1e7809d | 82ce4a4cfc1ee3997c11c210111a64da00ea779d |
refs/heads/master | <repo_name>lidongcn/js-practice<file_sep>/String/保存.js
/**
* 保存规则 Rules
*/
$scope.saveRules = function () {
// 验证表单, 成功后保存
validator.validate('tradeForm', function () {
Confirm({
title : '确认保存',
con... | b6160d5ed9a7e082d2c2e4becda81b994a9b9a58 | [
"JavaScript",
"HTML",
"Markdown"
] | 4 | JavaScript | lidongcn/js-practice | ecd660d4b25a1f7c5a466223b0877f033f91b3d7 | a0c8cad16383c17b52b7e21e7330c218339c0eae |
refs/heads/master | <file_sep>using MaterialSkin.Common;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace MaterialSkin.Controls
{
public class CMaterialLabel : Label, IMaterialControl
{
[Browsable(false)]
public int Depth { get; set; }
[Browsable(false... | a100d9949e5ce63bac9d0446d31a492064edd86a | [
"Markdown",
"C#"
] | 20 | C# | bugbug2022/DirectorEditor | 4533081aa975e92370b8072123fecd81adc53dc4 | 198427b4cbda9485deb57ab8b9e77d141037f502 |
refs/heads/master | <repo_name>risscasey/MongoStack<file_sep>/MongoDB-Front-End/README.md
# MongoDB-Front-End
<file_sep>/MongoDB-Front-End/js/script.js
let serverURL;
let serverPort;
let url;
let editing = false;
// Get the JSON File
$.ajax({
url: 'config.json',
type: 'GET',
dataType: 'json',
success:function(keys){
serverURL... | 4115a8ca0ec78277bc7b3efee39dcc08352d2794 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | risscasey/MongoStack | ae3d727d3a5fef4246bb2e30ddec08b7a2372459 | 4afb12f7be4a159523afd0ac71ce34b5a89b4d87 |
refs/heads/master | <file_sep>var passport = require('passport'),
AuthConfig = require('../etc/auth.js'),
FacebookStrategy = require('passport-facebook').Strategy,
TwitterStrategy = require('passport-twitter').Strategy,
LocalStrategy = require('passport-local').Strategy,
User = require('../models/user'),... | 68a51d7aadbf96bbdf7c4bebba389e6b2aeefc6c | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | jengo/jengo-node-boilerplate | fb312d377493cec5f9b2b51ecaa092053ca91796 | e96dac3291abfb12d30ff1059e22c329678d201f |
refs/heads/master | <file_sep># blueplanet-screencapture
Executes screen captures of a Blue Planet UI
Usage:
```bash
go install github.com/jgroom33/blueplanet-screencapture
~/go/bin/blueplanet-screencapture -path=https://10.182.18.132/orchestrate/#/list/resource-types -element=.main-body -file=foo.png
```
## Options
-element - https:... | 228ccf63af06bffe18693fe6fc8a77c516504aca | [
"Markdown",
"Go"
] | 2 | Markdown | jgroom33/blueplanet-screencapture | 2e02c9af4ac0c6122124173256d8e5c4d1a028fd | 8f0eae3173ecc92bdef6f2c8a10a7fdf1d2adee2 |
refs/heads/main | <file_sep>$(document).ready(function(){
$("#search").click(function(){
$("#search").css('outline','none') ;
}); | cbf1bdfdabfa804834801c9b5800700fc6b48c49 | [
"JavaScript"
] | 1 | JavaScript | rahulsingh0-0/frontendsite4 | b6644f98251e6debf4a623543db168ae1afdd64e | 20a08f0b52000c3de09cf7fc47da5a0a820f07c6 |
refs/heads/master | <file_sep># nb-quick-upload
Upload Jupyter notebooks as gists quickly and easily. And if you don't want to upload the entire thing? NO PROBLEM. Just upload a few cells!
```bash
git clone https://github.com/jsoma/nb-quick-upload.git
jupyter nbextension install nb-quick-upload --user
jupyter nbextension enable nb-quick... | 6858c69b8d29d4c2fac5a6d4965a8661882905bb | [
"Markdown",
"JavaScript"
] | 3 | Markdown | jsoma/nb-quick-upload | 93c3b6d0ad4749e6f89c1c40ee9732632970e062 | 5ec3623298436606bd417475f8418fe222bafd73 |
refs/heads/master | <file_sep><?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd N... | a1472fa8ae1378e5ce0e09efcf385adaf6a568bd | [
"PHP"
] | 1 | PHP | rllomun/testtechnique | 37e2d326f0882483c0974d1cc6ff2db4dd9e40cb | d891096f7a3ab64afa929955f810652f06ca18ca |
refs/heads/master | <file_sep>import React from 'react';
import {MovieList} from './Movies';
import {BoatList} from './Boats';
import {
SafeAreaView,
StyleSheet,
ScrollView,
Image,
View,
Text,
StatusBar,
} from 'react-native';
const App: () => React$Node = () => {
return (
<ScrollView>
<Vi... | 654d46626142413beaf6d6ac2f43cfc35c022fc3 | [
"JavaScript"
] | 1 | JavaScript | brandon1804/lesson05 | b22ec57f3d9348328e80e2fc3fb6d9c979f5a6dc | f03948ab46ae9f8e246dcf1c21c0342d16af25c0 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import "./App.css";
import contacts from "./contacts.json";
class App extends Component {
state = {
contacts: contacts.slice(0, 5)
};
getRandomActor = () => {
// add random actor
let randomActor = contacts[Math.floor(Math.random() * contacts.lengt... | 7c6c6ba41bb9eeb1a6688eea0da133dc7c7b837b | [
"JavaScript"
] | 1 | JavaScript | guido-an/lab-react-ironcontacts | b9830289da14a863557048260a97f985b7dc1c14 | 102b9c2da6c01693c5377164987c18bc21695f20 |
refs/heads/master | <repo_name>PolarFox/heatpump-ui<file_sep>/heatpump.php
<?php
namespace Polaris;
class Heatpump {
const HEATPUMP_URI = 'http://127.0.0.1:8080';
const VARIABLES = [
'hvac_modes'=>[
['value'=>'heat','label'=>'Lämmitys'],
['value'=>'cool','label'=>'Viilennys'],
['value'=>'dry','label'=>'Kuivaus'],
['value'=... | d8aade93da258e7a85a60b6692f1ce58030e774d | [
"PHP"
] | 3 | PHP | PolarFox/heatpump-ui | 750767e84281c18a7b376f2e83f6811b0f934552 | b10d8f365f3f4f73279eaf0521cce05a1faff58f |
refs/heads/master | <file_sep>package com.rods.kine;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.... | 2176bc56562c1e86b4f3f4663a462781dab029c5 | [
"Java"
] | 10 | Java | kozmapiku/Kine | 6464619d124bf011da08b55d03c3b737f2cb2825 | 047435d6a1382fee490b024ce8300e3430eec6c5 |
refs/heads/master | <repo_name>RemoteSensingFrank/ImageROICut<file_sep>/README.md
# ImageROICut
tools of get image roi
<file_sep>/CMakeLists.txt
cmake_minimum_required(VERSION 3.7)
project(GetImageROI)
set(CMAKE_CXX_STANDARD 11)
set(GTest_LIBRARY "/usr/local/lib/libgtest.a")
set(GDAL_LIBRARY "/usr/local/lib/libgdal.so")
set(GDAL_INCLUDE... | aa58cf087bd9a5b25a466b2c709c0f6d9a388561 | [
"Markdown",
"CMake",
"C++"
] | 3 | Markdown | RemoteSensingFrank/ImageROICut | 28caadb9b039655b4841f1f74cc8fb8bc27fc556 | 03f830ca7dbc2bdf5a05b05f2edf7550d767920a |
refs/heads/master | <repo_name>CompassStudios/CompassStudios.github.io<file_sep>/secretdownload.php
<?php
session_start();
if (!isset($_SESSION['zalogowany']))
{
header('Location: thegatekeeper.php');
exit();
}
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible... | a78739518d7f299095e584089f03148e5ad43ffe | [
"PHP"
] | 2 | PHP | CompassStudios/CompassStudios.github.io | a39c1e527e03c484cb87550c39c2a821d61113db | 5133d7eb6cacc09aede625d315ba5267d78d8bd7 |
refs/heads/master | <repo_name>Organic-Code/tty_screensaver<file_sep>/README.md
TTY Screensaver
========
A tiny tty screensaver, with bubbles (also works for xterms)
How to set (with zsh)
========
Compile with ``gcc screensaver.c -o screensaver``
Add the following to your .zshrc :
```
export TMOUT=xxx
TRAPALRM(){
/path/to/screensa... | 1abde91f99cba3d6fa065d42d3207069a2eda07f | [
"Markdown",
"C"
] | 2 | Markdown | Organic-Code/tty_screensaver | 54fa1058f2b94254f541fcdda42ce91a2474f6e7 | 4e523d1c7c9a864c84490f4fa7e96588722d0661 |
refs/heads/master | <repo_name>NShively/NewProject-Script<file_sep>/newproject.sh
generateWebTemplate()
{
echo "Web Template"
echo // <NAME>
echo // $title>> $FileName.md
echo // $(whoami) >> $FileName.md
echo // $(date) >> $FileName.md
echo // "Description" >> $FileName.md
}
generateCPPTemplate()
{
echo "Cpp Template"
echo // <NAME>
ec... | 881d3fe9b36938279a4b1379e9df976f9c761256 | [
"Shell"
] | 1 | Shell | NShively/NewProject-Script | d12981437ba8ba83bfce16c03a04ba027852e571 | a2a4a3b42c2cd1d929a305733ddb0bdecaee5c89 |
refs/heads/master | <repo_name>ameliepcd/TwitterPredictor<file_sep>/twitter_collect/résultat_analyse.py
import seaborn as sns
from textblob import *
sns.set(style="whitegrid")
results = sns.load_dataset('résultat_collection_sentiment')
#results doit être sous forme d'une dataframe
# Draw a nested barplot to show the repartition of neg... | 3c72c9438e64b6f1aa8b688e38f6d508d6eb92a3 | [
"Python"
] | 12 | Python | ameliepcd/TwitterPredictor | 1c1c1b4f1eaad32b59be231e39c09d61ad624a98 | 7162f9bacdb3d744cbc15cf31ecff3e4050e65aa |
refs/heads/master | <file_sep>function takeANumber(katzDeliLine, name) {
katzDeliLine.push(name)
var arrayIndex = (katzDeliLine.indexOf(name) + 1);
var numberInLine = ("Welcome, " + name + ". You are number " + arrayIndex + " in line.");
return numberInLine
}
function nowServing(katzDeliLine, name) {
if (katzDeliLine[0] !... | b1540e57e92c4a523af6a2f065d16b62465a38bb | [
"JavaScript"
] | 1 | JavaScript | DavidRussPrater/js-deli-counter-bootcamp-prep-000 | 89d8ce33b928d72ce5dbd1a7b209551a4266609f | d76ff3c712b43584ac2f32e68f70df68604fbc36 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import StockContainer from "./StockContainer";
import PortfolioContainer from "./PortfolioContainer";
import SearchBar from "../components/SearchBar";
class MainContainer extends Component {
constructor() {
super();
this.state = {
allStocks: [],
... | 77b37d739fa116c8755360d465ca461523a34e09 | [
"JavaScript"
] | 1 | JavaScript | samgorick/React-Stocks-chicago-web-033020 | bae482b79d9728e9f838ced197fc6cba5049fa68 | c407e7263841d8266cfcec19a9aed2cf1f4c909a |
refs/heads/master | <repo_name>bcotton/FileSetInputFormat<file_sep>/buildfile
# Generated by Buildr 1.4.6, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "com.twitter.twadoop"
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "h... | 8a513ef8376886d2e5cdef3f19602e9e330d5caf | [
"Markdown",
"Java",
"Ruby"
] | 3 | Ruby | bcotton/FileSetInputFormat | 6248eec6a7ab049bda9c6825e34ee8988f569406 | 6118701ad923485d524d8fc29e03bd641474e555 |
refs/heads/master | <repo_name>itcarrillo/GifMe<file_sep>/src/routes/views.js
const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
res.render('home');
});
router.get('/result', (req, res) => {
res.render('result', req.body);
});
router.get('/search', (req, res) => {
res.render('search'... | 6deb6e5145ec367adf6a0bd5cb1643046864c4b1 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | itcarrillo/GifMe | 3f0eff9bca6e1e3919e91dd57f7a7156ea4a6d6b | d9f42d3864ee2ebf9d3e2352d5169a1c989b0ded |
refs/heads/master | <file_sep>#include<stdio.h>
#define M 1000000007
const int MAX = 10000001;
long long f[MAX] = {0};
long long fib(int n)
{
if (n == 0)
return 0;
if (n == 1 || n == 2)
return f[n]=1;
if (n<=10000000&&f[n])
return f[n];
int k = (n & 1)? (n+1)/2 : n/2;
long long res=(n & 1)?... | a0ceeacb44eae99ef84930671c4893aa020c5893 | [
"Java",
"C++"
] | 8 | C++ | MonuKumar0/SPOJ-is-it-a-tree-solution | 2a9705f5cd808406d91042f273f4c96a1697ff90 | 99048aa10e1eb3a151112999c331974e3cf3258d |
refs/heads/master | <file_sep>msg_hello = Hello
msg_menuClose = Close menu
msg_home = Home
msg_servers = Servers
msg_reports = Reports
msg_mapReport = Report''s Map
msg_settings = Settings
msg_about = About
msg_phones = Phones
msg_name = Name
msg_description = Description
msg_url = url
msg_title = Title
msg_cancel = Cance... | 5f2b16492adfaa740dc42ea71c54b8daa4c8b273 | [
"JavaScript",
"Java",
"INI"
] | 4 | INI | javiermazqui/phonegap | 72b835db0b152fe3f162cf12043f4ee900d28588 | 05e9ad65a1efa17913dfa15d9e3db1aa2930b488 |
refs/heads/master | <repo_name>qianbin01/weather-test<file_sep>/app/src/main/java/qb/com/weather_test/utils/DateUtils.java
package qb.com.weather_test.utils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by qianbin on 16/8/9.
*/
public class DateUtils {
private Date date = new D... | fc99196fdd29db463c043fe9fa3ac8fcae9fa0de | [
"Markdown",
"Java"
] | 4 | Java | qianbin01/weather-test | 439a3c83cf78a2f7828b27baee5236597345f98e | 12a17bcf6c60c43da35f5e9ed87c74d5c4245fb2 |
refs/heads/main | <file_sep>//import * as dat from 'dat.gui';
// Type definitions for dat.GUI 0.7
// Project: https://github.com/dataarts/dat.gui
// Definitions by: <NAME> <https://github.com/gyohk>, <NAME> <https://github.com/sonic3d>, <NAME> <https://github.com/rroylance>, <NAME> <https://github.com/singuerinc>, Teoxoy <https://githu... | 7fb6f1799cd44c783fd8a0cfe378530c32b10815 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | agoldstein03/HUGS | 6670315e458fe27efe9fbe377d34300e6554418b | 062e0a6e9450cdf0b505275f1467df39b359a721 |
refs/heads/master | <repo_name>bronzels/flink-crawldrv<file_sep>/src/main/proto/cp.sh
#!/usr/bin/env bash
cp $GOPATH/src/github.com/bronzels/pb/common.proto ./common.proto
cp $GOPATH/src/github.com/bronzels/pb/crawler.proto ./crawler.proto<file_sep>/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20... | e817214fde831ad98b3ceac05aa807afaa6fa0e4 | [
"Maven POM",
"Shell"
] | 3 | Shell | bronzels/flink-crawldrv | 2ffb735db4432b134099046c5b6cd0c5f3a36fc2 | e218951a5bccb01b54f1aaa89060cbd5846bf220 |
refs/heads/master | <repo_name>akaluzny/rProjects<file_sep>/epl/parse_season.R
LoadSeason <- function(filename = "EPL games 13-14.csv") {
# Loads season from specified file containing a csv with all the games
#
# Args:
# filename: Name of file to load, defaults to "EPL 13-14.csv"
#
# Returns:
# Data frame with the follow... | 7378bae14cbbf5f9c72186ec2b9f5623a407bacc | [
"R"
] | 1 | R | akaluzny/rProjects | db7be31ac289bc0dd1b3ac5ba3b9983c2ac788f7 | 0e0dd5f3237a36076847c95699932af04dc7cac9 |
refs/heads/main | <file_sep>#!/bin/sh
VAULTWARDEN_HOME="$(dirname $0)"
cd "${VAULTWARDEN_HOME}"
. ./env.sh
if ! curl -fsS "http://${ROCKET_ADDRESS}:${ROCKET_PORT}/alive" >/dev/null; then
echo "vaultwarden server not alive, restarting it..."
./start.sh
fi
<file_sep>#!/bin/sh
VAULTWARDEN_HOME="$(dirname $0)"
cd "${VAULTWARDEN_H... | 848e97bfc60fb038b4871cecce77120212883e06 | [
"Markdown",
"Python",
"Shell"
] | 6 | Shell | jjlin/bitwardenrs-shared-hosting | 05e9ab34dfc6445fcd513507c4a956f9b79f2167 | 0459ffca6c9090e27ed09c0d2443bbee486d0a30 |
refs/heads/master | <file_sep>log4j.rootCategory=info,stdout,file
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[QC%-d{yyyy-MM-dd HH:mm:ss}] %p [%t] %C.%M(%L) | %m%n
log4j.appender.file=org.apache.log4j.DailyRolli... | 4c87a9a2bacf7f58b8be668a74a3a6855f43b692 | [
"Markdown",
"Java",
"INI"
] | 4 | INI | zhou-hj/NettyProtobufTcpClient | 601667e71d68f0f94ec922f5ac504a4f50bbc5ea | 0d497b56fc1c293b81dcf8f633111d019e733c77 |
refs/heads/master | <file_sep>/*
AMP prototype control
Author - <NAME>
*/
#include <Servo.h>
#define pin_in_1 2 // digital out
#define pin_en_A 3 // PWM
#define pin_in_2 4 // digital out
#define pin_servo 5 // servo pwm pin
#define FORWARD 0 // forward flag
#define REVERSE 1 // reverse flag
#define R_GEAR_1_D 0.04 // 40 mm
... | d030cf784ac71ca620dffe70a7694a0b0d530915 | [
"C++"
] | 1 | C++ | dpimley/AMP-Prototype-Control | 5f989022c4bc72a718ae2f6cb220d69fc961d612 | 124cf95c04d940de9cc920af0f17a47ff95afeec |
refs/heads/master | <repo_name>angus890519/Advanced-homework13<file_sep>/Advanced-homework13.cpp
/* 計算機概論實務-進階練習作業-作業13 */
/* 製作人:郭柏鋒 */
/* 完成時間:2019/05/24 10:00 */
#include <stdio.h> //函示庫
#include <stdlib.h> //函示庫
struct company //定義結構體
{
char name[30],employee[10];
int quota;
};
struct individual //定義結構體
{... | 97146d019baa2338d568fe929287f568c2c5dc3e | [
"C++"
] | 1 | C++ | angus890519/Advanced-homework13 | a8ccd0ba03a76b8391df11b950271c57aa11597d | 7eb9d846c63ab5eac0540cd40dea4c43982a0a06 |
refs/heads/master | <repo_name>Prangwalai994/2_6<file_sep>/MathTests 2_6/UnitTest1.cs
using System;
using Writing_a_simple_UnitTest2_6.Fandementals;
using NUnit.Framework;
namespace MathTests_2_6
{
[TestFixture]
public class MathTests
{
[Test]
public void Add_WhenCalled_ReturnTheSumOfArguments()
{
... | d611210525c321d29e02549b37512bab0195d3a0 | [
"C#"
] | 1 | C# | Prangwalai994/2_6 | 92f66e16640dc815954db0ae2e6b683397ccf6b2 | 339a2d456a52dabd64c6c3fe375a9eace26fd7bc |
refs/heads/master | <file_sep>/*
* Author: <NAME>
* Date: 2019-2-25
* header of tree structure, templates defination must located in header
*/
#ifndef _BINARY_SEARCH_TREE_H_
#define _BINARY_SEARCH_TREE_H_
#include <iostream>
#include <algorithm>
#include "exceptions.h"
template <typename Comparable>
class BinarySearchTree
{
public:
... | bb63318dd823322be3ae24acb668c2956a502609 | [
"Markdown",
"C",
"Makefile",
"C++"
] | 18 | C++ | dabao085/DataStructureInC | 4cbd1b3f9475d331ecdd8b60181eb4baea2c0d64 | 147d129f8614c93474ea195723901e96ca5e6251 |
refs/heads/master | <file_sep>var express = require('express');
var app = express();
var session = require('cookie-session');// Charge le middleware de sessions
var bodyParser = require('body-parser'); // Charge le middleware de gestion des parametres
var urlencodedParser = bodyParser.urlencoded({ extended: false });
//PostgreS
var pg =... | 9c1cc7dc7bc40997a42196e75815ab4e6aceeecd | [
"JavaScript"
] | 1 | JavaScript | VincentCyato/herokuApp | 01a4ba717cd0a3b513153b245fb9ec373c4f2774 | 918b6d6ab2b7d9e1d2099fa69997f135644d2711 |
refs/heads/master | <repo_name>dhony05/RestAPI-ArrayFreeLibrary<file_sep>/src/main/java/com/example/ArrayFreeLibrary/Model/Book.java
package com.example.ArrayFreeLibrary.Model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.p... | b04ce9bcfb798137482357ea2d2dba1cd0572445 | [
"Java",
"INI"
] | 7 | Java | dhony05/RestAPI-ArrayFreeLibrary | 40657bc0f54994ecfe51eae9441f4c40fd4ef6f6 | cff8bd29987163e372d998d233bb39fb529ea7cd |
refs/heads/master | <repo_name>DongningLi/computerNetwork<file_sep>/cls_pro/cls_pro/cls_pro.cpp
#include "stdafx.h"
#include <iostream>
#include <windows.h>
#include <ctime>
#include <stdio.h>
#include<fstream>
#include<iomanip>
#include<string>
#include <sstream>
#include <stdlib.h>
#include <vector>
#include<bitset>
us... | 8760c323dd0a70b9ca38f5f7f88f7186b138cfe8 | [
"C++"
] | 1 | C++ | DongningLi/computerNetwork | e6d23c1abb7bafb801e7551435a16053a5fde0d8 | e43262ea9a915351bb7f0f30aff5d1f22c08eec5 |
refs/heads/master | <file_sep>#include "find_road.h"
#include "move_car.h"
int main(int argc, char** argv)
{
float speed = 0.7;
float Ka = 1.0/200;
float max_speed = 2;
float min_speed = 0.1;
if (argc > 1) { speed = atof(argv[1]); }
if (argc > 2) { Ka = atof(argv[2]); }
if (argc > 3) { max_speed = atof(argv[3]); }
if... | cb7eace6e1185dab448ae965000163644705451f | [
"C++"
] | 4 | C++ | charlie632/ackermann_controller | fc608dc1fdf5df6f6d949ae17a762217733e712c | f50db1ef0951885c986d2ddf8dacf005e2a69d2d |
refs/heads/master | <repo_name>dgro/dhl-sdk-api-bcs<file_sep>/test/Expectation/CommunicationExpectation.php
<?php
/**
* See LICENSE.md for license details.
*/
declare(strict_types=1);
namespace Dhl\Sdk\Paket\Bcs\Test\Expectation;
use PHPUnit\Framework\Assert;
use Psr\Log\Test\TestLogger;
class CommunicationExpectation
{
/**
... | c38e8db7a4ec12dc6ab3a6b9eb33093903569413 | [
"Markdown",
"PHP"
] | 19 | PHP | dgro/dhl-sdk-api-bcs | d247b7768628daba71fda29445998f232d2fb812 | 5499122139e55a39c51f354b706957eb6cf3b8f5 |
refs/heads/master | <repo_name>byu-cs329/lab0-constant-folding<file_sep>/README.md
# Objective
The objective of this lab is to implement [constant folding](https://en.wikipedia.org/wiki/Constant_folding) for a subset of Java and use black-box testing to test its functional correctness. The implementation will use the [org.eclipse.jdt.cor... | e86c1699790791c3cc9235fe6ca25f4396c3c8e1 | [
"Markdown",
"Java"
] | 4 | Markdown | byu-cs329/lab0-constant-folding | d159dd76f4516375e651fb868910a2f9ae85db94 | 0b6f763dc601b3498eca436db749c2c46c769f6f |
refs/heads/master | <file_sep>//
// ContentView.swift
// SwiftUi13
//
// Created by <NAME> on 19/07/20.
// Copyright © 2020 AccessDenied. All rights reserved.
//
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView{
HomePage().navigationBarTitle("Instagram with SwiftUI")
... | 2f635021f4b54df969d8a7ce3d444c753a10931b | [
"Swift"
] | 1 | Swift | rohitsainier/SwiftUi13 | f641e92e22bca45a1fb045a7c016d88332c37e2a | 29ab47a8520e2ddf53d03147f725fec0397738f1 |
refs/heads/master | <file_sep>#include <stdio.h>
#define SIZE 26 /* 26 letters in the alphabet */
#define OFFSET_UPPER 65
#define OFFSET_LOWER 97
/* print histogram of frequencies of different characters */
main()
{
int c, i, j, k, max;
int arr[SIZE];
for (i = 0; i < SIZE; ++i)
{
arr[i] = 0;
}
while ((c = getchar()) != EOF)
{... | 04031c3d74539fae0a3f2891448274b5f1592162 | [
"Markdown",
"C"
] | 2 | C | bsolis19/C | f3fcb9082276de0eca9b9f2f8caff5372047cf84 | 57139095678fec476ef5c605c5cbf11924312ecc |
refs/heads/master | <file_sep>import csv
import numpy as np
import matplotlib.pyplot as plt
# figure out what data we want to use
categories = [] # these ones are the column headers in the csv
installs = [] # this is the installs rrow
ratings = [] # this is the ratings row
with open('data/googeplaystore.csv') as csvfile:
reader = csv.r... | 11844447d0bec312f826d8dba2ab01532e85dd27 | [
"Python"
] | 1 | Python | junior231/dataviz | ec11f14a64af7e4e0d6d6952da64043a0ee20ea5 | d8e20032a0e6886606c76687e8ab64cbfb12c049 |
refs/heads/master | <repo_name>tetsu1026/ogiri-app<file_sep>/app/models/post.rb
class Post < ApplicationRecord
belongs_to :user
has_many :comments, dependent: :destroy
has_one_attached :image
has_many :likes, dependent: :destroy
has_many :post_likes, dependent: :destroy
extend ActiveHash::Associations::ActiveRecordExtensions
... | ca1943f52eaf440a730f2a41962538b9ff397838 | [
"Markdown",
"Ruby"
] | 14 | Ruby | tetsu1026/ogiri-app | 416fc5debb91d9312cd769fdd93058f5dee93774 | 486a84b6f511539a6b1e7b89cdd286724702a027 |
refs/heads/master | <repo_name>neeveecomm/FRDM_KL25Z_ACCESSORY_SHIELD<file_sep>/README.md
# FRDM_KL25Z_ACCESSORY_SHIELD
DF Robot Accessory Sheild MBed OS Driver for FRDM_KL25Z platform<file_sep>/u8g_com_frdmkl25z_ssd_i2c.cpp
/*
Special pin usage:
U8G_PI_I2C_OPTION additional options
U8G_PI_A0_STATE used to store the last valu... | 0da3d22cb6af4532c29ccc0bba6aeb608c740dfc | [
"Markdown",
"C++"
] | 4 | Markdown | neeveecomm/FRDM_KL25Z_ACCESSORY_SHIELD | 1139c928f7db504ba56d67ebe1abe48abbf65dad | 87561339d6e0e6d350d9578b1dd37ec5d66999d7 |
refs/heads/master | <repo_name>mikewatford/snww<file_sep>/html/js/app.js
$(document).foundation();
//Terrill: Add class when the small viewport menu is visible
(function(){
let smallMenu = document.getElementById('topbar-center-logo');
let toggleClass = function(){
if ( smallMenu.style.display != 'none' ) {
document.body.classLis... | 3fa38a4d1506ad68445692fa79cc486f2531bf63 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | mikewatford/snww | cde1e7adab6955ffdb5a630acda06bb0ec7138ee | 2af65ea91ec29e0bc10aa07d5f867a8ce51362ce |
refs/heads/master | <file_sep>package com.example.restclient.repository
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.SubMenu
import android.widget.EditText
import android.widget.SearchView
import androidx.core.view.get
import androidx.lifecycle.LiveData
import androidx.lifecycle.Mutabl... | 2adf14414cd80165e77ede4522213597d2049172 | [
"Markdown",
"Kotlin"
] | 9 | Kotlin | melihaydogd/rest_client | 789575f92fcab8c9fcad99f4d3cd53470c40a289 | 8bbb0f47c75693e85919af173688e0b386edb3cb |
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.Windows.Forms;
using System.Data.OleDb;
namespace CrearCarpetas
{
public partial class Form1 : Form
{
public Form1()
... | f88f75efa550851024164560eff91cb8c634ae79 | [
"C#"
] | 1 | C# | mbrandle/CrearCarpetas | c73081d0351e35ce61bb6c02657eb91d56d601a0 | 3ffb04a8a34679e59fdc2b7397ed421ee1cbfd48 |
refs/heads/master | <repo_name>vbmaster/ZDZ-React-POC<file_sep>/ZDZCCADC/Repositories/IRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace ZDZCCADC.Repositories
{
//public interface IRepository<T> where T : class
... | e228de33a51f652505581019f824c8be72cb6427 | [
"C#"
] | 17 | C# | vbmaster/ZDZ-React-POC | cea643933ac0d818d85634b42c9ddee7086f7dbd | e36ff72aaa68e0a29d71458ce441a3c8e218183e |
refs/heads/master | <repo_name>JeanFelipe23/AndroidStudioProjects<file_sep>/app/src/main/java/felipe/jean/jokenpo/MainActivity.kt
package felipe.jean.jokenpo
import android.media.MediaPlayer
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.content.ContextCompat
import felipe.jean.jokenpo.... | d4469e7558ba149e98895306af090add2e907d1b | [
"Kotlin"
] | 1 | Kotlin | JeanFelipe23/AndroidStudioProjects | 6a57c3ad94b744aeedb82bf09c2756b3d48bbebf | 64258b1410febf2b40eb53cacad360b46aecae9d |
refs/heads/master | <repo_name>panduit-suu/MCDLink<file_sep>/README.md
"# MCDLink"
<file_sep>/MCDLink/MCDLink.cs
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;
u... | d548c922064d50178d1bccdf99642d64251f0507 | [
"Markdown",
"C#"
] | 2 | Markdown | panduit-suu/MCDLink | 22e992b2dbdc35c869ea97962c272e3356d2198c | 51271078015e6ee2fa44a845ab1e9d180287b6ff |
refs/heads/master | <file_sep>package com.bit;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Base {
WebDriver dr;
@Before
public void openBrowser() {
System.setProperty("webdriver.chrome.driver", "/Users/jarrellsimon/Downloads/chromed... | 4c2cf6dc4e03f8d66f1ed153cb94174fd5f14423 | [
"Java"
] | 2 | Java | kawsarusa/hi | b241766cdb34bdf267f9e85ea8b165bcb57a5488 | 3b4e72a4cb067aa71193d8ec4b0bada92497dafc |
refs/heads/main | <repo_name>dhruvesh0910/Mini_LinkedIn<file_sep>/Models/WorkExperience.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
namespace mini_linkedIn.Models
{
publi... | b570bdd80942e8f8a9e6890912bdaf7097afb259 | [
"C#"
] | 8 | C# | dhruvesh0910/Mini_LinkedIn | 3b73567b11e15ae06574a0380c091fb3e1445f93 | 8f624049ad646586e9361faaf812fa500616e02f |
refs/heads/master | <repo_name>pragmatrix/Faser<file_sep>/Faser/Formatter/MemberPath.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Faser.Formatter
{
sealed class MemberPath : IMemberPath
{
public MemberPath(IAggregatePath parent, IMemberInfo member, IEnumerable<Attribute> attributes)
... | 3a26f1349064c0efc6bc7ce84e6e25256e100167 | [
"C#"
] | 42 | C# | pragmatrix/Faser | 9b172d4c81df34c2f610854c7bbb7a936030360a | b73f977e378a9d51e86bb73773b7d5105f7be617 |
refs/heads/master | <file_sep>CREATE DATABASE bee_crypt_bzz;
\c bee_crypt_bzz
CREATE TABLE accounts (id SERIAL PRIMARY KEY, user_name VARCHAR(255), user_email VARCHAR (255), password_digest VARCHAR (255), is_admin BOOLEAN);
\dt
| 3fba165943f3279606239fcaefb977651fb85f50 | [
"SQL"
] | 1 | SQL | spramp/secure_my_splat | b7de6d9ce31e64d0a1f991900a7d2e4796a52a43 | 4e9bbd9e05a0074199a8487fad243ea48c940382 |
refs/heads/master | <file_sep>var items={};
function remove(id){
delete items[$('#row-'+id+' .col-sm-5 p').text()];
$('#row-'+id).remove();
console.log(items);
}
$(document).ready(function() {
var id=0;
$('#add-skill').click(function(event){
var skill=$('#input-skill :selected').text();
var point=$('#input-point')... | 5429862e9d4acdaf6fc11b65757632a9937fdc3e | [
"JavaScript",
"PHP"
] | 33 | JavaScript | alfian853/wngine | 4be3b12b9a5afd9b562b8236d9ea41ecae34c475 | f6cec9ceac7a5e0db828c2fd5c1fdd9d551682ae |
refs/heads/master | <repo_name>authstr/Factorio-toolBox<file_sep>/mod界面/Form1.cs
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;
namespace mod界面
{
public partial class ... | 0ce91da9c672c0249c9f379620cea46dcc9bc775 | [
"C#"
] | 1 | C# | authstr/Factorio-toolBox | 5424f8b87569cac201b3fbe3de0ebfb080668ad7 | d2f1366f321d1cd598e40e717e8c85fa4ab7ac2c |
refs/heads/master | <repo_name>afrianska/rocketline<file_sep>/spec/features/user_visits_homepage_spec.rb
require "rails_helper"
RSpec.feature "User visits homepage" do
scenario "successfull and see a logo" do
visit root_path
expect(page).to have_content "RocketLine"
end
end | db063921ec44361e852cefc43d51acd17e2c0c76 | [
"Ruby"
] | 1 | Ruby | afrianska/rocketline | 591b5dd4aca5b9ea01700a80121750e4191ccaca | 922dd4ae24b6a00e474ff529a2742818cd01f3d1 |
refs/heads/master | <repo_name>teraspawn/template_project<file_sep>/matlab/OrderDendrogram.R
last <- function(x) {
return( x[length(x)] )
}
first_entry <- function(x){
return(x[1])
}
dendrogram_ordering <- function(dataset, weights, filename) {
hc <- hclust(dist(dataset),method="single")
dd <- as.dendrogram(hc)
dd.reord... | 07c4957eb3d7c39bf5c5a9f92d374b7ca7e6f272 | [
"Markdown",
"Python",
"R",
"C++"
] | 17 | R | teraspawn/template_project | 89a8e9d2a323574bd4c0390efe8c58693708f7db | 301d4ce84fe24d4898b71f0fe5bdf9df7f133c83 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.