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 func.java;
import static func.java.controlflow.expressions.ExpressionHub.return_;
import java.util.Optional;
public class UnlessExpressionQuickTest
{
public static void main(String[] args)
{
Optional<String> output = return_(() -> "output").unless_(true);
System.out.println(output.orElse("n... | f65cc48c10b714d81c730739d713240be1ec512f | [
"Markdown",
"Java"
] | 26 | Java | EZGames/functional-java | bc7df7439e139eae66591827f2485f1908207ca7 | 00ea53a433ffad5632fc0cf2ae1401f31cd731fd |
refs/heads/master | <file_sep>source :rubygems
gemspec
gem "httpclient", "~> 2.1.5"
gem 'httpi', git: 'git://github.com/davidlesches/httpi.git'
| 8a2c1919d9a314026f38000d5bf137a175817e09 | [
"Ruby"
] | 1 | Ruby | sdatinguinoo-stratpoint/savon | 3964ca96aac29cbd1d9e7b259592bb3e3c51aec1 | b257954ea6ba06024a52e027730dcee887934673 |
refs/heads/master | <file_sep>package ru.reimu.demo.reactor.more.dto;
import lombok.Data;
/**
* @Author: Tomonori
* @Date: 2019/7/25 16:23
* @Desc:
*/
@Data
public class ArticleDto {
private Integer id;
private Integer tag_id;
private String title;
private String description;
private String content;
private ... | dc0a675d5bfb1c33c27c5330ae7b31d8a339f19b | [
"Markdown",
"Java"
] | 6 | Java | gutrse3321/spring-reactor-demo | ebaa412c61a8add2d7776738ec97abb1a5224d80 | 95525e49fc15c82b882eea3af598d99e47ed9ecd |
refs/heads/main | <repo_name>bazinga183/Mapping_Earthquakes<file_sep>/Mapping_GeoJSON_Points/static/js/logics.js
// Add console.log to check to see if our code is working.
console.log("working");
// Create the map object with a center and a zoom level.
let map = L.map('mapid').setView([30, 30], 2);
// Tile layer
let streets = L.tileLa... | 33cf1152b48e87628de37a6f88387862d3e56ee8 | [
"JavaScript"
] | 1 | JavaScript | bazinga183/Mapping_Earthquakes | 1579cbde6c937632dab7dcc38f565a7c6f4af522 | f4dc9b1d77cb274a0dcc5867132a4ab03ea63666 |
refs/heads/master | <repo_name>strategist922/saiku-reporting-core<file_sep>/src/main/java/org/saiku/reporting/component/IReportingComponent.java
package org.saiku.reporting.component;
public interface IReportingComponent {
}
//private void generateHtmlReport(MasterReport output, OutputStream stream,
// Map<String, Object> reportPa... | 98d03323aebdf08bdcd2ffeefe2c7ea2dd23658e | [
"Java"
] | 3 | Java | strategist922/saiku-reporting-core | 77446ce37aa83bffddc70e7b4b05d93dbbc1d496 | 9703e84a5095e06d47978e604d645ccc68033548 |
refs/heads/master | <repo_name>timkom10/AIclass<file_sep>/DotsandBoxes.py
import random#used for generating random scores
import time #used to time everything
import copy#used to make a different object so that the algorithm could try out different moves
class Dotbox(object):#the Dotbox game class
def __init__(self, size=5, positio... | 5ba6a9f8d1fa1362eca9923ee48a9def1d6be834 | [
"Markdown",
"Python"
] | 4 | Python | timkom10/AIclass | 0557b212f74ee7e855b94926a230c261dccf7a6a | 892b2df6b61cea8f0bb26a824dff55cd020df1a8 |
refs/heads/master | <file_sep>from settings import APP_ID
import json
import requests
city_id = '524894'
answers = {
"привет": "И тебе привет!",
"как дела": "Лучше всех.",
"пока": "Увидимся?"
}
num_words = {
'один': 1,
'два': 2,
'три': 3,
'четыре': 4,
'пять': 5,
'шесть': 6,
'семь': 7,
... | c2494b20ca65fec5ca9ec384d0c5090185987d77 | [
"Python"
] | 8 | Python | kondyurin/learn_python | 1aee4526c3df679c9d90357760d344938c970159 | 0f650817f0b6e97fb5881edd148a5ff36b168710 |
refs/heads/master | <repo_name>thorlund/rendering<file_sep>/raytrace/Triangle.cpp
// 02562 Rendering Framework
// Written by <NAME>, 2011
// Copyright (c) DTU Informatics 2011
#include <optix_world.h>
#include "HitInfo.h"
#include "Triangle.h"
#include <stdlib.h>
using namespace optix;
bool intersect_triangle(const Ray& ray,... | 6da3740464cfcc95b095d769974876eb8faf716d | [
"Makefile",
"CMake",
"C++"
] | 6 | C++ | thorlund/rendering | 648633722d7685f4a2c939595e96d79d34cba344 | 8e46b9f11e6c88eb105dfaf9b35ce3c8ca9588f7 |
refs/heads/master | <repo_name>AlanSosaITT/Poo2019<file_sep>/Cambio/Cambio/Operaciones.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cambio
{
class Operaciones
{
public void Bienvenido()
{
Data d = new Data();
... | c3efbaa55f9208cc405563aabf32509a13a85321 | [
"Markdown",
"C#"
] | 39 | C# | AlanSosaITT/Poo2019 | 9c9e084266a67c7037ac94e7ff99321e77b7268c | a44fa229d2338a45d9321405e0c345a54d8861b0 |
refs/heads/master | <file_sep>#!/bin/bash
cd /var/www/app
exec bundle exec rake resque:work QUEUE=*
| 9dbc3d7cfacd46375e6d4f1b4d9adb4baf79bf41 | [
"Shell"
] | 1 | Shell | mariusz-blaszczak/hound | 3df42935d92388849beec83eba0e43714a0686ab | c54b95c0511c2c0c59e197b3a3cbcbba81606b95 |
refs/heads/master | <file_sep>platform :ios, 9.0
use_frameworks!
target 'Example' do
pod 'Crashlytics'
end
| 5f22d9f59b317140623e0024fc3c1167d041012a | [
"Ruby"
] | 1 | Ruby | wangko27/nexus3-cocoa | abeacb1fac1d0b1bfd318afd06edff762edbae84 | 20d8761b8f94533e5fbd074ccb40be929250d69c |
refs/heads/master | <file_sep>import './assets/scss/index.scss' // Customize UI <---
import Vue from 'vue'
import App from './App.vue'
import router from './router'
/* eslint-disable-next-line no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})
<file_sep># vueboilerplate
To start vue from scratch w... | 9fe94e74fdd3e43044363354af9a6c66b951cc3b | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | antony-andrus/vueboilerplate | 9569ada5d554ec3ccc76e5fb31ca8622537262fa | cf6bfc20695258967c006bd19fe7af554f1e058f |
refs/heads/master | <repo_name>parmar-gaurav/groovy<file_sep>/newSiteTemplate.sh
#!/bin/sh
if ls ${WORKSPACE}/exports/ecom-dw/sites/replacements* 1> /dev/null 2>&1; then
echo "files do exist"
if [ ! -z "$Export_Site_ID" ]
then
echo "NPM Installation is in progress... "
npm install
echo "Export site....."
if [ ... | b140b6a3f268ef1c0776471089a334a6d842fc00 | [
"Shell"
] | 1 | Shell | parmar-gaurav/groovy | e3d8fea1ae41d81d0e4146b71f22d4b2090a4618 | 1fb3186d9b7173844ae905de94a5b0c706e023a0 |
refs/heads/master | <repo_name>denyamber/manager<file_sep>/src/main/java/com/example/demo/hr/manager/services/ExportSalariesService.java
package com.example.demo.hr.manager.services;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | 80bffc2e251c75d0a10654280607b675b9a51ec2 | [
"Java",
"SQL",
"Gradle"
] | 8 | Java | denyamber/manager | 7d142666639d686af0c9e44bab4a7b2fd76b438d | d680964cc00066bde95893837bad33a64497b561 |
refs/heads/master | <repo_name>Segamegadrive/telemetry<file_sep>/dbconn.py
from influxdb import InfluxDBClient
client = InfluxDBClient(host='localhost', port='8086', database='metrics')
client.switch_database('metrics')
<file_sep>/README.md
"# telemetry"
<file_sep>/metric.py
import requests
import dbconn
#import datetime as dt
url = "h... | 4f1744486f596ffc7e61ce4363e2aab972752073 | [
"Markdown",
"Python"
] | 3 | Python | Segamegadrive/telemetry | 8671f442d1e40000f9fccbbdcea7c9af507dd7ab | 2a8f5b0660fa0331bd110e92447d5ff1334babaa |
refs/heads/master | <file_sep>Facebook-Module-Droid
=====================
Module of Integrating Facebook Graph API For Android
<file_sep>package com.module.facebook.activities;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.... | a16473831491b35636af99a85ef3b3cc0880987f | [
"Markdown",
"Java"
] | 3 | Markdown | cooldreamer91/Facebook-Module-Droid | a5e8435358e3bf7c710029e269c3f5e8454f54b2 | 62400526bfbc7240c9244c76d72644ad4f1dffd9 |
refs/heads/main | <repo_name>mujtaba193/Document_Management_System<file_sep>/dbcon.py
import psycopg2
import sys, os
import numpy as np
import pandas as pd
from werkzeug.utils import find_modules
import credential__sql as creds
import pandas.io.sql as psql
from datetime import datetime
## ****** LOAD PSQL DATABASE ***** ##
class Postgr... | ebd1f9126e07ce7c50ca103d1d6f327c74b9f670 | [
"Markdown",
"SQL",
"Python",
"HTML"
] | 11 | Python | mujtaba193/Document_Management_System | fbc56eaf91a5b3c8287400b942ff25c47eb319bb | 732671bcfa46ea1b90242530a9617721d2df6005 |
refs/heads/master | <file_sep>'use strict';
var timeElm = document.getElementById('time');
var doc = document.documentElement;
var clientWidth = doc.clientWidth;
var clientHeight = doc.clientHeight;
var pad = function pad(val) {
return val < 10 ? '0' + val : val;
};
var time$ = Rx.Observable.interval(1000).map(function () {
var tim... | 00b9e5834d2dd9a7f50732a5b499e62162e85546 | [
"JavaScript",
"Java"
] | 3 | JavaScript | BooMiny/photo-js-java | 9765b78292eaecdfb0b49a8438292c490bbd982c | c0b768ecebe888e63e509499b8c63b0e01267625 |
refs/heads/master | <repo_name>gor08001/CS-313<file_sep>/upload_file.php
<?php
session_start();
$con = new mysqli("localhost", "usr", "<PASSWORD>","<PASSWORD>");
//Check Connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$allowedEx... | d3383b2cf1bd0ff3f1b1e087e50121a6113b88ef | [
"PHP"
] | 13 | PHP | gor08001/CS-313 | 46b00a978b439fa477e46ecbb38f6a6431ede904 | 26e95a6052eebf31cac899b5aa4455f41dc63395 |
refs/heads/master | <repo_name>nklnkl/csc326-lab3<file_sep>/polynomial.cpp
#include "polynomial.h"
Polynomial::Polynomial () {
size = 0;
coefficients = new int [size];
}
Polynomial::~Polynomial () {
delete [] coefficients;
}
bool Polynomial::add (int * addend, int addendSize) {
// To store the final answers.
int * sum;
int... | a24820146aae636080c2928fc5901c9b301f3c2b | [
"C++"
] | 5 | C++ | nklnkl/csc326-lab3 | 324214fb49181bcfe1a7a6245cc2e933f12bce70 | 59d84d5fd511e78a137f8ed478fd619497a3f0f9 |
refs/heads/master | <repo_name>xiao233ming/autoEmail<file_sep>/auto_email.py
#! /usr/bin/env python
# -*- coding: UTF-8 -*-
import smtplib
from email.mime.text import MIMEText
mailto_list=["<EMAIL>","<EMAIL>","<EMAIL>"] #收件人(列表)
mail_host="smtp.163.com" #使用的邮箱的smtp服务器地址,这里是163的smtp地址
mail_user="<EMAIL>" ... | ae8326a56747a839d025c85cff221f89c69580f8 | [
"Markdown",
"Python"
] | 2 | Python | xiao233ming/autoEmail | 569dacf18abb94c22d30f44749c28713e4903465 | a861d876d63cf7d93e21555fcbf43d842c8f794f |
refs/heads/master | <file_sep>from server.models.information import Information
class Dashboard():
def getWindVelocities(self):
return {"windVelocities": [0.5, 25.5, 50.5, 75.5, 100.5, 125.5, 150.5]}
def getWindDirection(self):
return {"windDirection": 45.0}
def getTemperature(self):
return {"tempe... | 09ec18198b4a182a7cc38842b2daae6ac0f14157 | [
"Markdown",
"Python"
] | 6 | Python | petit-romain/Weather-Station-Server | 929f4f30bbb309ae24fbe0084bc927a04609f6ba | cde5943cb8cc729b7fb8988344ddae87a639460c |
refs/heads/master | <repo_name>r-jenish/SIC-Disassembler<file_sep>/disassembler.cpp
#include "disassembler.h"
#include "convertor.h"
#include "symtable.h"
#include "optable.h"
#include "util.h"
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
using namespace std;
string programname;
int star... | 7094502c016e4763a519d5d747cae8439858db48 | [
"Markdown",
"C",
"CMake",
"C++"
] | 13 | C++ | r-jenish/SIC-Disassembler | 424b4cd627ed76978adc68603db260be0feedf31 | 23783ba91e312526d34f758ecb5ae74bbb5932e5 |
refs/heads/master | <repo_name>HappyDg/ledheadlampbasedonfk4<file_sep>/BSP/Include/SchM_BswM.h
/**********************************************************************************************************************
* COPYRIGHT
* -----------------------------------------------------------------------------------------------------------... | d533b79da0fe810e0e63c1d682b65d9dbc9f93eb | [
"C",
"Makefile"
] | 218 | C | HappyDg/ledheadlampbasedonfk4 | 76099a2f7af689bcda01ed415f33ae7f707b97b6 | 99bdcda47e8bf91119a02f97a4d9782eddf02465 |
refs/heads/master | <repo_name>edgard/docker-rtorrent<file_sep>/README.md
docker-rtorrent
---------------
This container runs rtorrent and rutorrent (using nginx and php-fpm).
Running manually
----------------
docker build -t edgard/rtorrent .
docker run -d --name rtorrent -p 80:80 -p 63256:63256 -v /srv/rtorrent:/data edgard/rto... | 6e9841c7c8e65aa4b4c4e48e20ae9b86fd826b30 | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Markdown | edgard/docker-rtorrent | b5bc1e064e037a36d671831c9a5f2a9573a44d51 | e6a84702a7654448656c635381880da08c9f9aae |
refs/heads/master | <repo_name>Grandpied33/IOT_crypto<file_sep>/API.py
#!/usr/bin/env python3.5
#-*- coding: utf-8 -*-
############################################
#__author__ = <NAME> #
# __email__ = "<EMAIL>" #
# __status__ = "Production"... | f2867ca506b3becc4cf6fc1033db3e62a1b4b981 | [
"Markdown",
"Python"
] | 2 | Python | Grandpied33/IOT_crypto | f7219ec9b17f461998d78f71f68cc0c27ab30780 | 67a2889af6b2a2d5dcb1eaab54f7223e1d1ac10e |
refs/heads/master | <file_sep>using System;
using System.Data;
using System.Data.SqlClient;
using System.Web;
public partial class client_Webforms_Afterlogin_ClientALDivorceRegForm : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}<file_sep>using System;
using System.Collections.Generic;
us... | 11aa696da0f296f762713a516228cfedbc8a092d | [
"Markdown",
"C#"
] | 8 | C# | vrajsoni98/Marriage-Registration-Web-App-MarDiv- | 7d73582cf0c078027aa5e5285aa539f468a51001 | e44883149b1d31949ad800e93f7c7a726db2beca |
refs/heads/master | <repo_name>hungnso/btvn1<file_sep>/interger/main.js
class Interger {
constructor(output, firstSelector, secondSelector) {
this.firstSelector = firstSelector;
this.secondSelector = secondSelector;
this.output = document.getElementById(output)
}
find = () => {
let outputHTML = ''
const firstNumb... | 0603c2ef2aaccd292b82efc953f0eef5dacb29e1 | [
"JavaScript"
] | 2 | JavaScript | hungnso/btvn1 | d6169d2f480e151cbbb10d0837a1b5960795b21a | ff31b371081a59a03a35a96837d01feafc4fc640 |
refs/heads/master | <repo_name>kananats/slv<file_sep>/Assets/Controller.cs
using UnityEngine;
using UnityEngine.UI;
public class Controller : MonoBehaviour
{
public static Controller instance;
private static string KEY_CURRENT_LEVEL = "CurrentLevel";
private static string KEY_CURRENT_PERCENTAGE = "CurrentPercentage";
pr... | 447d80454ba788541d6c7e68a641d571a26087fb | [
"Markdown",
"C#"
] | 4 | C# | kananats/slv | 8cc3c1a342c17e75ceeaf37c4419ea63ca038dbb | 602c1adea382b727ca68eea60f9b3990d1ac10ed |
refs/heads/master | <file_sep>def crossover(parents: list, probability: float):
pass<file_sep>import numpy as np
class University:
def __init__(self, rooms: list, courses: list):
self.rooms = rooms
self.courses = courses
times = []
for room in rooms:
times = times + room.available_time... | f41eaf5edfb010fcf38f86d38770b96b7b0a0774 | [
"Python"
] | 9 | Python | JamesKelly3/GeneticTimetabling | 318ef8a2014b3b5e18a4118649c7d7d054639aba | ead7376d2b03e6ea4bddacbf6a4000c2a4669cf6 |
refs/heads/master | <file_sep>/*
*File: Car.h
*Author: <NAME>.
*Description: Declaration of the Car class.
*Last Mod: 11/09/2019
* */
class Car{
public:
char id;
int len;
enum orientation;
bool polarity;
Pos* head;
}
struct Pos{
int x;
int y;
}
<file_sep>/*
*File: Screen.h
*... | 85ea383e6cd8391f03fc64c421d7e796086b869b | [
"C++"
] | 5 | C++ | carrral/rush-hour-cpp | 2b18d76760362f111f100d50b49f549d93bdb0fa | 904e60dbf5a12bd36ffe95c59517a12e40ac230c |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: vad
* Date: 2/7/16
* Time: 11:54 PM
*/
namespace AppBundle\Controller\Administration;
use AppBundle\Form\Type\UserType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\Framew... | 1fa7d18f8259dfadec305aa05765bce7a44a0211 | [
"Markdown",
"PHP",
"Shell"
] | 22 | PHP | vsmihaylovsky/gh_symfony_blog | 67fea874e0db79c156e63ea08387b57c4ac87f6d | 1875fb3e1e567a11e45317674e586653eb27325c |
refs/heads/8.0 | <file_sep>
# -*- coding: utf-8 -*-
##############################################################################
#
# Authors: <NAME>
# Copyright (c) 2015 Acsone SA/NV (http://www.acsone.eu)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gener... | 21d23dc45c8ba2d772a0cacfaa389a3186f287a1 | [
"Python"
] | 2 | Python | taktik/hr-timesheet | d5ab96dde1ebd24e4f74c8a4b79f57d3d99d10c7 | dfa55ab4657b74da10abc0f18a8b0c69e1a3dec3 |
refs/heads/master | <file_sep># Argentometry
### Common psychometric task implementations for Silver Lab
#### How to use DigitSpan and SART v2.0
**Introduction**
These tasks are designed to be as plug-and-play as possible, with a simple CSV-based data output format.
The tasks have been tested to run on PsychoPy Standalone version 1.84.... | e9469c7e31a1a4ed61237cc8c16d38e940729882 | [
"Markdown",
"Python"
] | 4 | Markdown | abizer/argentometry | b8a3f3139ed01cdd0a52fd4024241d5d7a198038 | 388ed02df202d5c92981641acbdff80649df48dc |
refs/heads/master | <file_sep>rm (list = ls())
setwd("D:/Disco_LorenaD_2020/003_Cursos/017_CursoR_Uni/Clase24052020/Clase02_R4DS")
dir()
#### Cargamos la data ####
retail <- read.csv(file = "RetailSales.csv.txt")
#### Alguna informacion de DF ####
class(retail)
str(retail)
colnames(retail)
View(retail)
####Limpieza de datos ####
# No... | 9ba8ab33ed0fd43f4fa7e3619aae441a3b90be72 | [
"R"
] | 9 | R | LorenaDuenas/Clase02R4DS | f6c76757977b76fe15f4240f920256f4a9008b26 | b8c62d50027eeb13d0d4425319bd4e0c6b73169a |
refs/heads/master | <repo_name>keitaroemotion/tstac<file_sep>/README.md
# tstac
simple testing tool to enrich the stack trace such that
you more can focus on debugging:
## Installation
```
./installer
```
## usage
```
$tstac [file path]
```
<file_sep>/tstac
#!/usr/bin/env ruby
require "colorize"
file = ARGV[0]
command = "ruby -I... | 5d7e83aad35e593549c7d7ebd746edcf07a94585 | [
"Markdown",
"Ruby"
] | 2 | Markdown | keitaroemotion/tstac | eb2e06c219810f590f0cadfa992fec5b97bd1183 | a7a3db9076ec5d26cc6ef8442cbb633647e86928 |
refs/heads/master | <repo_name>prabhatks12/NewsFeed<file_sep>/README.md
# Overview :
Its an app to feed the news from json file uploaded to the server .
## Details :
The first page is login page. The second page shows temperature and on scrolling it shows the news. The news type can be either :
- An image with a text.
- A video file wit... | bdd205188e7627c61c0e379bea6add7b5202c25a | [
"Markdown",
"Java"
] | 2 | Markdown | prabhatks12/NewsFeed | c2ee8acd152a408438ed283e8c7d4ea0e4186d54 | 5146579d559cd70fef830d4278f6e57295a6ed37 |
refs/heads/master | <file_sep>import random
def get_best_index(x, top):
ordered = sorted(x, reverse=True)
indeces = sorted(range(len(x)), key=lambda k: x[k], reverse=True)
unused_probs = 0.0
for i in range(top, len(ordered)):
unused_probs += ordered[i]
for i in range(0, top):
ordered[i] += unused_pro... | f551719c11da3183b188816f8e7477aa5d41de49 | [
"Python"
] | 6 | Python | stevefai/bandmate | e33d7f20509adbcabbbde43a3caa8b66c68544ac | 043d7af7a85175201a28e31369382439948cb82d |
refs/heads/master | <file_sep><?php
$vcducount = 0;
$vcdu_packet_size = 882;
$vcdu_header_size = 10;
$mpdus = null;
$vcdus = null;
// $fh = fopen ("2015_06_09_15_16_10.vcdu", "rb");
$fh = fopen ( "2015_06_11_14_51_10.vcdu", "rb" );
$cur = 1;
$header = fread ( $fh, filesize ( "2015_06_11_14_51_10.vcdu" ) );
$res = @unpack ( "C*", $... | fe493d9afff62be0b420dc84575da43e24878a70 | [
"Markdown",
"PHP"
] | 2 | PHP | jmceara/php-meteor | dd528f8ca3cd3dbd83456d0dd2019ab7cbe2b4e3 | a015325559218c9fdbacdb99686bea47cc954121 |
refs/heads/main | <repo_name>jiaz123/mvc<file_sep>/application/static/js/admin/admin.js
$(function (){
$(".form-horizontal").validate({
rules: {
user: {
required: true,
minlength: 5
},
pass: {
required: true
}
},
... | f725d021dd6bd8fa95b83f34e27a0c6b1319a2fb | [
"JavaScript",
"PHP"
] | 17 | JavaScript | jiaz123/mvc | 0a65950035e3534f61f90e6a1d7f68fbc717d6ab | 626c165ba9d3271305c6057bf54191f5d8655fe3 |
refs/heads/master | <repo_name>teambition/hexo<file_sep>/test/util.js
var util = require('../lib/util'),
titlecase = util.titlecase,
yfm = util.yfm;
describe('Utilities', function(){
describe('titlecase()', function(){
it('All upper case', function(){
titlecase('TODAY IS A BEATUIFUL DAY').should.eql('Today Is a Beatuiful ... | d2195f75fa3e2dd49354652fc6eab44378dda97f | [
"JavaScript"
] | 1 | JavaScript | teambition/hexo | 9d9a1ccfc16a44cbbf94afe8a779d791ac70258a | 2ec6e79eb7e16bb6910557ec3e5646c819386f7d |
refs/heads/master | <file_sep># stu_manage
这是一个简单的学生信息管理系统。
<file_sep>#include<stdio.h>
#include<gtk/gtk.h>
int main(int argc ,char *argv[])
{
GtkWidget *login_window;
GtkWidget *login_table0;
GtkWidget *login_table1;
GtkWidget *login_table2;
GtkWidget *login_table3;
GtkWidget *login_table4;
GtkWidget *login_ok_btn;
GtkWidget *... | 1f1f87dc73102a01544f134e6c66330ef97a72e4 | [
"Markdown",
"C"
] | 2 | Markdown | liyixiaov/stu_manage | 53de3bc75cdfbf8d57f46654432e09901b1c015e | c9fa80aef1f63392514f458e5d3af857821c4e8a |
refs/heads/develop | <repo_name>MaciejBalas/SELogicGates<file_sep>/SELogicGates/SELogicGates/MODEBUT.H
#ifndef DefModeBut
#define DefModeBut
#include "button.h"
#include "element.h"
class CModeButton:public CButton
{
CElement*ButtonElement;
public:
void DrawButton();
void ChangeText(char*);
int ClickButton();
CModeButton(TElementTy... | a18d294b1db542ccd43564f455ae1fd641cb0e74 | [
"C",
"C++"
] | 34 | C++ | MaciejBalas/SELogicGates | 6dc8f020c8e9d902b6ac6fec3133bc73991011f3 | cf6dfbccbfbcec8222ddd21b34f501971fc58cf2 |
refs/heads/master | <repo_name>goanpixie/MEAN-Mart<file_sep>/server/controllers/users.js
var mongoose = require('mongoose')
var User = mongoose.model('User')
var Product = mongoose.model('Product')
var Order = mongoose.model('Order')
console.log("I am at the users Controller-Backend")
function UsersController() {
this.addCustomer ... | 1fed6d2eb9c55b3a98ceba0e90d7c7a2f5ba6888 | [
"JavaScript"
] | 8 | JavaScript | goanpixie/MEAN-Mart | 8ca00edc771989d4e41baefddeba00dbaab23c9a | 0af3b4dff2f027a4b88f2dc58623bf4bddf396a4 |
refs/heads/master | <repo_name>lenkatilka/Cleaning_Data_Project<file_sep>/Codebook.md
# DATA DICTIONARY - UCI HAR Dataset Tidy Data
##### the description in the following text was inspired by features_info.txt in UCI HAR Dataset:
#####"The features selected for this database come from the accelerometer and gyroscope 3-axial raw signals t... | 820f40b89b92e1389ee6d3224196490eda800b57 | [
"Markdown",
"R"
] | 3 | Markdown | lenkatilka/Cleaning_Data_Project | 45a0ce465f7ac04b2822f71917a0024334855cfa | f65b2a363e3c9abc0b86e79bc3727dd3d877b3a2 |
refs/heads/master | <repo_name>sahajdhingra26/Data-Structures<file_sep>/Data-Structures---Problem-Solving/infix-to-postfix-using-stack.c
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
struct Node {
char data;
struct Node* link;
};
struct Node* top = NULL;
void push(char x){
struct Node* temp;
temp =malloc(sizeof(s... | 09b778fb44d98e5883419ffdc04f4dcd9968e878 | [
"C",
"Text"
] | 7 | C | sahajdhingra26/Data-Structures | 550fa6890cd87a3c102d6bd8baacdd24199200e3 | 56ec0b70fe9f70bb7617828679644ba3254039b1 |
refs/heads/master | <repo_name>IASAStudy/CodeForJava<file_sep>/src/ch2/ScannerEx.java
package ch2;
import java.util.*;
public class ScannerEx {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in); // 입력을 위한 Scanner객체 생성
String input = scanner.nextLine(); // 입력대기 상태 -> 입력 후 엔터키 누르면 입력한 내용이 문자열로 반환
i... | b12193382806c19c7821619c1e8370a411b81e3c | [
"Java"
] | 19 | Java | IASAStudy/CodeForJava | 8dc83ca24ef0379c9d326c4bfb78aa2efb2c8159 | ad21f4b076f2c67d02a907e678ff0b2ca23fd41a |
refs/heads/master | <repo_name>fmorriso/APM-communication<file_sep>/README.md
# APM Component Communication
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.1 and Angular 5.2.6.
## My GitHub
[My GitHub](https://github.com/fmorriso/APM-communication)
## Modifications
* Upgraded Angular-CL... | 9a98f2ab00daaf20083fb375984a8696fbda3ba9 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | fmorriso/APM-communication | cde5c43b0bd32b4bfe67f2945c76e78cf7d30d19 | d12d9c2c95ee2d31c8ed474f0c90420d59756521 |
refs/heads/master | <repo_name>Spiznasm/ruby_exercises<file_sep>/bubble_sort.rb
def bubble_sort(arr)
sorted = false
iteration_length = arr.length - 1
while sorted == false
sorted = true
(0..iteration_length).each do |index|
if index == iteration_length
iteration_length -= 1
elsif arr[index] <= arr[index+1]
... | 811c6d1c5a7ec6337206177701954352425d9441 | [
"Ruby"
] | 11 | Ruby | Spiznasm/ruby_exercises | 99633d91c3e52e3d3b68f366d7f09958158516dc | 28fe052c344534d2bfcc69265ca580c4046891fd |
refs/heads/master | <repo_name>ElijahBouchard/pygame<file_sep>/Player.py
import pygame
walkRight = [pygame.image.load('walkRight/R0.png'), pygame.image.load('walkRight/R1.png'), pygame.image.load('walkRight/R2.png'), pygame.image.load('walkRight/R3.png'), pygame.image.load('walkRight/R4.png')]
walkLeft = [pygame.image.load('walkLeft/L0.p... | 058056d198ff7c2b9182bf8fc6ebcc5d2fbeebd2 | [
"Python"
] | 4 | Python | ElijahBouchard/pygame | fb7d751fab5530785ad0db94013d7d60984175cc | 7d2ecc7298fce239d648b314e834e6b00e74e5f9 |
refs/heads/master | <repo_name>osd-pwr/isat.pwr.edu.pl<file_sep>/include/menu13.php
<?
function home(){
echo '<div style="text-align: center; padding: 100px"> <h4 style="color: #204a88; font-size:17pt;">35th International Conference<br>
Information Systems Architecture and Technology</h4>
<p class="style2"><em><NAME>, POLAND<br... | 72ac6af467b04a68a38075a524a043f2cb39bc9a | [
"PHP"
] | 3 | PHP | osd-pwr/isat.pwr.edu.pl | 565054b853e7dd40715a38e73b457b562b514fcb | 268dca159eed11ec7fdfe195836f1e8f559071e9 |
refs/heads/master | <file_sep>from room import Room
from player import Player
from os import system, name
# Declare all the rooms
room = {
'outside': Room("Outside Cave Entrance",
"North of you, the cave mount beckons"),
'foyer': Room("Foyer", """Dim light filters in from the south. Dusty
passages run n... | 81e25e13629d4dabbe4daf3212a3d8bea74c0be3 | [
"Python"
] | 2 | Python | AuFeld/Intro-Python-II | 3a31e5991a218ca59264867df41fca7706405908 | 394ee6a332865cb851ee5e6d65b493479f1e1873 |
refs/heads/master | <repo_name>e-dzia/pea_1<file_sep>/CMakeLists.txt
cmake_minimum_required(VERSION 3.8)
project(pea_1)
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES
CMakeLists.txt
Graph.cpp
Graph.h
GraphMatrix.cpp
GraphMatrix.h
main.cpp
Timer.cpp
Timer.h
TravellingSalesmanProblem.cpp
TravellingSale... | fa5a22cd33396c7a65678e34713cce4d1e3c98fe | [
"Markdown",
"CMake",
"C++"
] | 5 | CMake | e-dzia/pea_1 | 035d3d7b66632d8231ed9dd2c48bb0fcbed90612 | 485a41d2cd0669ca35b1702196625d1b45dacb91 |
refs/heads/master | <repo_name>marekboro/Library-w11d2HW<file_sep>/src/main/java/Library.java
import java.util.ArrayList;
import java.util.HashMap;
public class Library {
// Attributes
private ArrayList<Book> bookCollection;
private int capacity;
private HashMap<String, Integer> genreDB;
//constructor
public Libr... | 62a605299357c343d302e27ab51f808cc703bfca | [
"Java"
] | 1 | Java | marekboro/Library-w11d2HW | 59ad9563ae22bf6304776761de497479a988099c | 55d33c5e768d86d19fde99966fbc73dbdae2be20 |
refs/heads/master | <file_sep>json.extract! aluno, :id, :nome, :matricula, :curso, :emailpessoal, :emaillasalle, :created_at, :updated_at
json.url aluno_url(aluno, format: :json)
<file_sep>class CreateAlunos < ActiveRecord::Migration[5.1]
def change
create_table :alunos do |t|
t.string :nome
t.decimal :matricula
t.... | 7535b9d67d8aa09bb044503f8629a9ed0684efb6 | [
"Ruby"
] | 2 | Ruby | Izalena/simple-crud-project | 7b8c054327eabaface773132e2473d674a8d9330 | ddcc5d4c6818c72be3267fd4218e68d293e8e819 |
refs/heads/master | <repo_name>SaveTheRbtz/ripple20<file_sep>/README.md
```
$ go build
$ sudo setcap cap_net_raw,cap_net_admin,cap_dac_override+eip ./ripple20
$ ./ripple20 -delay 16ms 172.16.0.0/12 2>&1 | tee scan_results.txt
```
```
Usage of ./ripple20:
-delay duration
delay between probes (default 8ms)
-ignore-... | e202c263f44a964bce5471cf4208fb2d6649ec91 | [
"Markdown",
"Go"
] | 2 | Markdown | SaveTheRbtz/ripple20 | f1098c702943c7b9d0808273077e18a67d047886 | 1a1675480a360b20f5813e540e8fbe25a6c945a9 |
refs/heads/master | <file_sep>import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import os
import cv2
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
import keras
from keras import backend as K
from keras.layers import Conv2D, MaxPool2D, A... | a67ec682c4eb1fa78848e989470c05edecdedb3a | [
"Python"
] | 1 | Python | imran-suny/Machine-Learning | cdb59eaaab6a74a0b42536d27cc48710d0ae552d | a7558926a9ef089b381aa66d37f4725200994053 |
refs/heads/master | <repo_name>happilysheep/shiro-demo<file_sep>/src/main/java/com/example/demo/DemoApplication.java
package com.example.demo;
import com.alibaba.fastjson.JSON;
import com.example.demo.util.Test1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.s... | b9f54f209bd96b6575eafb8b2a46b3eb028dfc3a | [
"Java"
] | 1 | Java | happilysheep/shiro-demo | cc77bb094a3c6e5842f28ac3b219ade821ee9aff | 6ba44c430e4122296cbb3f7490f10e0bbdbca263 |
refs/heads/master | <file_sep>// requirejs configuration
requirejs.config({
paths: {
'text': 'lib/text/text'
}
});
// main
require([
'text!templates/scriptservice-syntax.json',
'text!templates/messageformat-sample.json',
'text!templates/javascript-snippet.json'
], function(serviceSyntax, messageFormatSyntax, s... | e90aa95a10362309bf5e6a5bd056768075714ade | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | yoonhyung/assist-sample | 87397f02a6cbd4bc0885dbb3140a402cf55e3817 | 443fa59fe581795c0dadf08ea53570d554c38ac7 |
refs/heads/master | <file_sep>--创建早餐店管理系统
--员工类型表
CREATE TABLE staff_type
(
id INT(10) PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(32) UNIQUE NOT NULL,
isdelete INT(1) DEFAULT 1 NOT NULL
);
--员工表
CREATE TABLE staff_info
(
id INT(10) PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(32) NOT ... | deda7a7ab4c6b46c37ada4f947362aee91e2dd73 | [
"Java",
"SQL"
] | 7 | SQL | zzxtz007/BreakfastManageSystem | 5f096e2df08ec0de14d9fccebd75b90db3de6735 | 9ec0a6e033c5f9c31791090939350ff14670c7e6 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace PartTimeJob.Models
{
public class WithQualificationJob
{
public int Id ... | ce7256c40b3f3262b482d399d1a7778f0f716035 | [
"C#"
] | 12 | C# | Nandathilaka/PartTimeJob_WebApp | 590f24725d508b0366a6c051854265da1d1f3dd8 | bbcb1f7ff60fd4ff24c1c4dbf592535e7ef16517 |
refs/heads/master | <repo_name>20minute/learningAIwithExemples<file_sep>/tp1/readme.txt
<NAME> (ZHEL09059603)
<NAME> (LEOA25089709)
we have finished questions 3.1-3.4.
<file_sep>/tp1/code_source_devoir_1/Buckland_Chapter2-State Machines/WestWorldWithMessaging/Steve.h
#ifndef STEVE_H
#define STEVE_H
//----------------------------------... | a15032ec8e48c0dae2674b1ba12d90efd9c820cd | [
"Text",
"C++"
] | 9 | Text | 20minute/learningAIwithExemples | 5ccfef4d8897df98d1ea14d022d72a12512732a5 | 0fd4000a11b2b7a1ac50d96cf7749df9812b0124 |
refs/heads/master | <repo_name>sowbaghya2102/starperformer<file_sep>/subprogram.java
package pageobject;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.openqa.selenium.Alert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium... | 4563e6ee31aa54f38548cf0d348951fdab3fd935 | [
"Markdown",
"Java"
] | 3 | Java | sowbaghya2102/starperformer | 85f2e1be9dcf0db2298a6c0fd402a69e62de1731 | a36c9cb4b633e4515d0f4d8e2bd8ec47c95419d5 |
refs/heads/master | <file_sep>class CatRentalRequest < ApplicationRecord
validates :cat_id, :start_date, :end_date, :status, presence: true
validates :status, inclusion: {in: %w(PENDING APPROVED DENIED)}
def overlapping_requests
CatRentalRequest
.find_by(id: self.cat_id)
.where("start_date > #{self.end_date} OR end... | 43db567a0202c7dae54f829d07c7f0d1327322f4 | [
"Ruby"
] | 3 | Ruby | ahmadaladdasi/W4D2 | 149bf5cd72426bd6c16dbcb946a906feb4e98835 | 27823d60979331e11b853114a7404364666cf0ea |
refs/heads/master | <file_sep>//setting angle to degrees
angleMode = "degrees";
//function to set up ship
var Ship = function() {
//setting starting position, velocity, acceleration and angle
this.position = new PVector(width/2, height/2);
this.velocity = new PVector(0,0);
this.acceleration = new PVector(0, 0);
this.a... | 5ed05609aed3c4837dbe6190cc952b430313cea4 | [
"JavaScript",
"HTML",
"Markdown"
] | 12 | JavaScript | ZachFaria/Khan-Academy-Code | d94139c1be562af048fb81920446d235bd9680f1 | 4e9824794312f7682f0ae187120836974082e7b5 |
refs/heads/master | <repo_name>ZPLEDGE/Java-OCP<file_sep>/src/Practice_08_3/Goal.java
package Practice_08_3;
public class Goal {
public Team teamScored;
public Player playerScored;
public double timeScored;
}
<file_sep>/src/Practice_07_4/League.java
package Practice_07_4;
public class League {
public static void mai... | 5e1bc66248ed04d53cc5489faefca82e5620a660 | [
"Java"
] | 9 | Java | ZPLEDGE/Java-OCP | c1259dbfb9fa36c9beb2bc88a165a362954de0f4 | e1147397ce162aa97a3fe1a8b5f0801220c616b0 |
refs/heads/master | <repo_name>MrcSnm/love.js<file_sep>/readme.md
Love.js
============
This is [LÖVE](https://love2d.org/) ported to the web using [Emscripten](https://kripken.github.io/emscripten-site/).
It differs from [Motor](https://github.com/rnlf/motor) or [Punchdrunk](https://github.com/TannerRogalsky/punchdrunk) in that it is no... | 0d9e88d2b4c2b9253592f4d98126013d27384dfb | [
"Markdown",
"Shell",
"Lua"
] | 5 | Markdown | MrcSnm/love.js | c2f2225befdb9446d3fc735cc9c8e5564af76815 | 8d654b6433a5910cb7b2aeab457f6803e8438c54 |
refs/heads/master | <file_sep>src = ../../Sources/ormlite-core-4.48-sources.jar<file_sep>package com.hg.android.widget;
import java.io.File;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content... | a1cdca14f3a6bd9eed44ba134ac91c9354170346 | [
"Java",
"INI"
] | 14 | INI | wangzhongli/commen | a25aeec24982963df0844071a54408eb3feb80b1 | 60e93969596da1a42bbf93974c9cbd9059bcf852 |
refs/heads/master | <repo_name>andriy5/MVC_PiePHP<file_sep>/src/Controller/AppController.php
<?php
class AppController extends Controller{
public function indexAction() {
echo "** indexAction appelé via AppController **\n";
}
}
<file_sep>/src/routes.php
<?php
// Routage parametrique
Router::connect("user/{id}", ["controller" =>... | 045bab49e7f7149f76fd27f9838616eb77dfd37c | [
"PHP"
] | 15 | PHP | andriy5/MVC_PiePHP | 6d3d2f744741525166dad92b156a6635ac32c04f | 5d0ac3854a7eafd532354678886d9c0beb006bf9 |
refs/heads/master | <file_sep>import firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/auth';
var firebaseConfig = {
apiKey: "<KEY>",
authDomain: "tennis-app-36b3c.firebaseapp.com",
databaseURL: "https://tennis-app-36b3c.firebaseio.com",
projectId: "tennis-app-36b3c",
storageBucket... | 3154af56d7540e76357cdb9a6f9faa24bf982a50 | [
"JavaScript"
] | 2 | JavaScript | DaCastle/tennis-app | ee9d1110d6ac46d653a26f482105e84b5aa4ddcd | 07e7b93d61b5f35165b213dcde335a45f4d78837 |
refs/heads/master | <repo_name>spooon1993/kahoot-project<file_sep>/server/db.js
const mongoose = require('mongoose');
const connectDB = () => {
return mongoose.connect('mongodb://admin:<EMAIL>:49079/kahoot');
};
mongoose.connection.on('error', (e) => {
console.log('CHECK YOUR DATABASE!');
console.log(e);
});
mongoose.connection.on... | 3df6a84b5707c5f1b1e8c0c70449d8949c45a69b | [
"JavaScript"
] | 21 | JavaScript | spooon1993/kahoot-project | a4a1cb0c5479803e1407e752a045a1dc086b46b9 | 7e9e97706550d5321ccbcb52fb228be8d8e82374 |
refs/heads/master | <repo_name>duckhee/first_stm32f103_make<file_sep>/Menu/src/main_menu.c
#define MAIN_MENU_LOCAL
#include "main_menu.h"
#define MAX_ARGS 30
typedef bool;
#define true 1
#define false 0
RCC_ClocksTypeDef rcc_clocks;
uint8_t ch;
void System_Information()
{
printf("SYSCLK_Fre... | 9531b03ea6ffc5717fb0ae3e13d483c6b452a475 | [
"C",
"Makefile"
] | 18 | C | duckhee/first_stm32f103_make | 2698497bfe9dd221b5e812b8ba961f0a1cbc3e4d | 866c3a0cb493f1bea148f4128b43eb5859a92b92 |
refs/heads/master | <file_sep><?php
header('Content-Type: text/plain');
if($_GET != NULL) {
$output = json_encode($_GET);
echo $output;
}
if($_POST != NULL) {
$output = json_encode($_POST);
echo $output;
}
?><file_sep><?php
session_start();
session_destroy();
?>
<!DOCTYPE html>
<html>
<head>
<title>Assignment 4 login... | 1eaed7172ad21a5a7d2ff3240fd37cac89a79c9e | [
"PHP"
] | 5 | PHP | loraymond/cs290-assignment4_part1 | 2e5d27f25bb34ae5e5da570138719a94d904b025 | df7fee8d2a36d44b825d3b09f8435951557221c4 |
refs/heads/master | <file_sep>//
// ViewController.swift
// G68L4
//
// Created by <NAME> on 1/31/19.
// Copyright © 2019 RockSoft. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view... | 741c346befffa2bededf3ff2febcce83383808b3 | [
"Swift"
] | 1 | Swift | blezin2205/G68L4 | 3419b7622a9dca9c19954e8d1cb5a08f6aed33de | 2ede9fda4251f07f635bc6d6537346cf8afc0c79 |
refs/heads/main | <file_sep>import os
from flask import Flask, flash, jsonify, render_template, request, send_from_directory
from flask_uploads import IMAGES, UploadSet, configure_uploads
import cv2
import numpy as np
from PIL import Image
import io
app = Flask(__name__)
photos = UploadSet("photos", IMAGES)
app.config["UPLOADED_PHOT... | 27b9d92b32f491c17dbf2d9e61c8a62c1638ed1e | [
"Python",
"HTML"
] | 2 | Python | bernardo300/FlaskUploadImg | cb38d4490b05103c4918f87927f84dc175e14876 | b4ed5ecbf1afac583c871b0b30ee11235914332e |
refs/heads/master | <file_sep>////////////////////////////////////////////////////////////
// <NAME>
// [CSE 002]
// Homework 04 - Program #2: Days in Month Calculator
// September 23, 2014
// import scanner
import java.util.Scanner ;
// add class
public class Month {
// add main method
public static void main(String [... | 2f1162fecfd1e1b4012e20949ce9733ef6a38593 | [
"Java"
] | 12 | Java | apiccione/CSE2 | 31edaf6af2c13af7ae852008d2ed304a10341499 | 7f8da14575c91f060cbcd7e458273a1347e2821f |
refs/heads/master | <file_sep><?php namespace App\Services;
use Event;
use App\Random;
use Exception;
use Tymon\JWTAuth\Facades\JWTAuth;
/**
* Class AuthService
* @package Hoopla\Services
*/
class AuthService
{
/**
* @param $data
* @return array
*/
public function login($data)
{
$credentials = [
... | 2b38167641d3cf6ba7579c22faf99d0036b8cbd2 | [
"JavaScript",
"PHP"
] | 13 | PHP | ajoelp/Laravel-Api-Mongo | 800701f74b044a54adcdb38bb1c22ce5deaaa8a8 | 3a3152589a043fd70e361e0fddca17aba8e4ae8a |
refs/heads/master | <file_sep>package main
import "fmt"
func main() {
var c, pyhon, java bool
var i int
fmt.Println(i, c, pyhon, java)
}
<file_sep>// +build ignore
// +debug ignore
package main
import (
"fmt"
"math"
)
func add(x int, y int) int {
return x + y
}
func pi() float32 {
return (math.Pi)
}
... | 99a74ee86d4e0fd6debff74a864c2dff66cbe558 | [
"Go"
] | 3 | Go | tomkake/Go_project | 049005f86c575ad212a93c8bde4f4d3e8c65a693 | b2ccb6667cbb99ad465911450623d3887ee7f732 |
refs/heads/master | <file_sep>angular
.module("mudyo.gumul", [])
.directive("gumul", function($filter, $http) {
return {
restrict: "C",
scope: true,
link: function($scope, $element) {
var
// mixes default settings and custom settings
def = $.extend({
... | 8dc0fd6e48cd4a048487a457ebdd3f428ece8ada | [
"JavaScript"
] | 2 | JavaScript | zkyz/mudyo-gumul | b4d15e6e90af62f5b4e4a74f1abf511a3365b99d | 4a0bc695a40499ac187ddbff01fb0f86274fce6c |
refs/heads/master | <repo_name>jeevan437/Login-Application<file_sep>/user_app/urls.py
from django.contrib.auth import views as auth_views
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^login/', auth_views.login),
url(r'^logout/', auth_views.logout, {'next_page': '/login/'}),
url(r'^register/', vi... | 7d26abd5c24487eb55d7ae2f7dba493b9b755874 | [
"Python"
] | 5 | Python | jeevan437/Login-Application | 770f1c247e2532adca7b0c8a7c061eaaa2997322 | 565304f9025902df6944514a4e3711be67e16add |
refs/heads/master | <file_sep>import React from 'react';
import Header from './header';
import Body from './body';
import PropTypes from 'prop-types';
class App extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
console.log('did mount');
}
render() {
console.log('app', this.props)... | 8c42f8e3dcfebc958d0cee6abfdd6c63487414e6 | [
"JavaScript"
] | 5 | JavaScript | devsweeting/HackerNews | b59c799eb8ee9a9afa916f02449e34d5516daee8 | f5f69c7f507f02c676daf3f9a0710f9b15799cfd |
refs/heads/master | <repo_name>jenyaivanova521/WeddingApp<file_sep>/nativescript-app/app/shared/services/task.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { API_URL } from '~/shared/config... | 754831e23728275b2fba3942838ecc458615bd14 | [
"TypeScript",
"HTML",
"Shell"
] | 328 | TypeScript | jenyaivanova521/WeddingApp | 9c25a32d384a76dc2fed11415bfe3b9e3b93b61d | 11b1785c001123272b68c3b78727fb6576f1ca58 |
refs/heads/master | <file_sep>describe("Application main view", () => {
beforeEach(() => {
cy.server();
cy.route({
method: "GET",
url:
"https://cors-anywhere.herokuapp.com/https://api.github.com/search/users?q=Barack",
response: "fixture:search_query.json",
});
cy.visit("/");
});
it("contai... | 67442ad1ecf160e65825ac1306f4709391d74df9 | [
"JavaScript"
] | 1 | JavaScript | johanperjulius1/gh-api-client-remake | 8d0b1befe86e228c91aabac7f0fa830020accd3c | d7f72f07b6fed469551763efc881123ca16cc1d2 |
refs/heads/master | <file_sep># Cart
Simple shopping cart.
This module provides a simple tax computing algorithm and the receipt layout print.
## Installation
To install this module simply clone the repository
```
git clone <EMAIL>:depsir/cart.git
```
## Basic usage
```
# Import the module
import cart
# Build a cart
my_cart = cart... | 9b0532027badd5feef5530a1451a9cc5bcd73147 | [
"Markdown",
"Python"
] | 5 | Markdown | depsir/cart | 6fd09177d3bc67dd80205bbc763494f6dd55ca0c | 99c052aeee2a614110440ac4ce005f5eb98eccc2 |
refs/heads/master | <repo_name>Mackiovello/PresModels<file_sep>/src/ResultModel.cs
using System;
using Starcounter;
namespace PresModels
{
public enum ResultFlag
{
Pass,
Note,
Error
}
[Database]
public class ResultModel
{
public ResultFlag ResultFlag { get; set; }
public ... | e5e37141aac5b68c69f7357bff809ca2e0095ab7 | [
"C#"
] | 2 | C# | Mackiovello/PresModels | 30b9f899c71a3308985cae54a41aa07c2fc4f834 | d335605d28ab48019520c5cd82b946447c568247 |
refs/heads/master | <repo_name>aaahmad22/kwk-l1-mothers-day-methods-kwk-students-l1-raleigh-072318<file_sep>/mothers_day.rb
## Define your method, mothers_day, below. Go through the README and update your method as needed!
def mothers_day('mom')
"Happy Mother's Day, #{mothers_day}!"
end
def mothers_day("Beyonce")
"Happy Mother's Day,... | 203aa44d85272676bc96bab1d2957686159b9427 | [
"Ruby"
] | 1 | Ruby | aaahmad22/kwk-l1-mothers-day-methods-kwk-students-l1-raleigh-072318 | e8b7bbef01325c3e22a1bd6c8425fbda7873d3ba | 02834e199deeeaa49d18d328942c2a3df3fe915b |
refs/heads/master | <repo_name>arshad2101/dsi-capstone<file_sep>/src/inference.py
from keras.models import load_model
from keras.preprocessing import image
import numpy as np
import os
import matplotlib.pyplot as plt
# dimensions of our images
img_width, img_height = 256, 256
# load the model we saved
model = load_model('../mode... | f3eff07b9d6d4d893fcab44ddd9e751e1b19dab9 | [
"Python"
] | 1 | Python | arshad2101/dsi-capstone | a0e78d95b7465197cc60a772af4f2f16967ce546 | 835a74045fe109174e11e27ae06ffd42765ffac3 |
refs/heads/master | <file_sep>module.exports = function main() {
let sequence = new Sequence([6, 9, 15, -2, 92, 11]);
console.log(`o) 最小值 = ${sequence.minimum()}
o) 最大值 = ${sequence.maximum()}
o) 元素数量 = ${sequence.Sequence_length()}
o) 平均值 = ${sequence.Sequence_mean()}`);
};
/*Sequence类,用来表示序列,包含最小值arrmin,最大值arrmax,序列长度arrlen,平均值... | 08c577f5052cbf053ba1c1f97adc356fb52ea647 | [
"JavaScript"
] | 1 | JavaScript | zhengwenli/2018-07-30-09-00-49-1532941249 | 33bf855e856308784ccbb3e3822ca98f8e426358 | 53b2ca8ae9ed13b346ed12660017eead2afbd7ec |
refs/heads/master | <file_sep>//@author J-Schuller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _9_17_inclass
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Please enter your favorite baseball te... | 2ed1ea69864496bc394703a0e4def3046b8a42b3 | [
"C#"
] | 1 | C# | schu8762/9-17-inclass | 9274ca930d16936a96e962a55ba2377f1d6297b9 | 14c36c1e91be895dc4c481a88139ac18117d9ffe |
refs/heads/master | <file_sep>$(function() {
$('input[type="button"]').click(function() {
$("#result").text("");
$.ajax({
data: {
noIncludes: $("#noIncludes").is(":checked")
},
dataType: "json",
type: "GET",
url: "/case/" + this.id
}).done(function(data) {
$("#result").text(JSON.stringify(data));
}).fail(fun... | 7a84d511416b44c43514a0ccbe21ccadb1a0b618 | [
"JavaScript",
"Java"
] | 2 | JavaScript | gpgekko/TemplateTest | 323043e685c1ec8a49c51b49b638c673a3f6f60b | a1640ec4f74a7ad4eb218bd0b87515413d506043 |
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;
namespace CalculatorNew
{
public partial class FormCalculator : Form
{
public ... | 1313d379ef66d4c79fa3a3ba349fc95f15a5b813 | [
"C#"
] | 1 | C# | ChristinaDiann/CalculatorNew | 40f5ca17d8ddd89ad2584c98e282d91826d78b69 | 446d72c7cae9a3ba54f8b7c49d8822bdea75f7f0 |
refs/heads/master | <file_sep># LabML
MLkit face detection API and code uses
FaceContourGraphics.java
---------------------------------------------
This code helps updates the face instance from the detection of the most recent frame and draws the face
annotations for position on the supplied canvas.
GraphicOverlay.java
------------... | a8697551ba1d25f27620f2e483a77499232b37ea | [
"Markdown",
"Java"
] | 2 | Markdown | chapagaisa/LabML | d7a73cca04b7b2e87ea08403c289011f11769540 | 1c786bdae8404277b8af7ebfd17544443b4bb870 |
refs/heads/master | <file_sep>import _ from 'lodash'
import { firebaseMutations } from 'vuexfire'
export default {
updateUserCollections: (state, value) => { state.userCollections = _.unionBy(value, state.userCollections, '.key') },
setCollection: (state, value) => { state.collection = value },
setTitle: (state, value) => { state.t... | 8b25c06f19d8aa0661f447238d008480801750fe | [
"JavaScript"
] | 4 | JavaScript | han-tyumi/either-or | eeed7fe43f78266a7634fd3110feed18fd5bf886 | a0fbde30d74f5aa4400dc8fcd7072140e9a37308 |
refs/heads/main | <repo_name>jonathankohen/viewing_party<file_sep>/client/src/views/Login.jsx
import React from 'react';
import { Link } from '@reach/router';
const Login = () => {
return <Link to="/auth/twitch">Login with Twitch</Link>;
};
export default Login;
<file_sep>/server/controllers/auth.controller.js
const User = require... | 56105d7246b2d4f8c5dcfff62c9cecd1d04cd24e | [
"JavaScript"
] | 3 | JavaScript | jonathankohen/viewing_party | 674a00cab2242afe6d553025876d1442d599589f | 7a3fcf2720241ad4c908617bc21e66965ed4bd6b |
refs/heads/master | <repo_name>bombkiml/phpbeech<file_sep>/beech
#!/usr/bin/env php
<?php
if (file_exists(__DIR__ . '.\vendor')) {
require __DIR__ . '.\vendor\bombkiml\beech-cli\src\console.php';
}
<file_sep>/beech-framework/Controller.php
<?php
class Controller {
public function __construct() {
$this->view = new View();
}
... | d02559ee87c7c9899d7ba9f348de4c59e1d5f02f | [
"Markdown",
"JavaScript",
"PHP"
] | 22 | PHP | bombkiml/phpbeech | 8eef4919f3da48c82a9c0ece928accd73066404d | 14467e2abc1e30bf5b6206a35d1c57f76e7343eb |
refs/heads/master | <repo_name>Adalab/project-promo-m-module-3-team-4<file_sep>/web/src/components/App.js
import "../stylesheets/App.scss";
import { CardGenerator } from "./Card/CardGenerator";
import { Landing } from "./Landing";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
function App() {
return (
... | 201c712fab9eb828265151571461e3824e44f4d0 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | Adalab/project-promo-m-module-3-team-4 | 4599973ebd5990223efdafeefe2b94fd39f59759 | c457405c85fcbba104244ecb8a31f0563f49a408 |
refs/heads/master | <repo_name>fishstor/project<file_sep>/test.py
print('hello world')
print('hello world again')
print('haha') | 2d18896511da32d774fdb9c30b72c57a37378ed2 | [
"Python"
] | 1 | Python | fishstor/project | ea8834c4b7c1633e1be6c5582bbb4d7e78a3ab0c | d872b736471b550c5af356ff71994ece1c18ba4b |
refs/heads/master | <repo_name>gdmgent-1718-webdev1/oefening-07-briavers<file_sep>/index.php
<?php
$fibonaci = [0,1];
for($i = 2; $i < 100; ++$i){
$fibonaci[$i] = $fibonaci[$i-1] + $fibonaci[$i-2];
}
foreach ($fibonaci as $j) {
echo "${j}".PHP_EOL;
} | 3cbaa4e23efb5cf0b06ae1d1e9e0a9dd3d9f3268 | [
"PHP"
] | 1 | PHP | gdmgent-1718-webdev1/oefening-07-briavers | 89cf462b5313f2cc090524c5960a0c00860cf1a1 | 2fcb9d01750342905d95d5085153cfaca1dee5ac |
refs/heads/master | <repo_name>ZhangZiLiX/SearchUtils<file_sep>/app/src/main/java/com/bwie/searchview/SearchViewTest.java
package com.bwie.searchview;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.net.http.SslError;
import android.support.an... | f2354a99c3b93e447d7a92534044ec455748dc95 | [
"Java"
] | 1 | Java | ZhangZiLiX/SearchUtils | f766f0f6a13284a8d320f0d3c8f26e1981d751ed | cc5827bf00cbab6c8529de6209e46ce7ce9c508a |
refs/heads/master | <file_sep>import tensorflow as tf
class remove_duplicate:
def __init__(self, appearance_feature, geometric_feature, sample_roi, roi_score, roi_cls_loc, is_duplicated=False):
# sess = tf.Session()
# number of relation
self.Nr = 16
# appearance feature dimension
self.appearan... | 79aba18d2ad786210f9c6305570e0c11aeb5b7b3 | [
"Markdown",
"Python"
] | 3 | Python | rui-qian/Relation-Networks-for-Object-Detection-tensorflow | f2e84fe4d37dc5db9de79889f4cfe83ef695f273 | 95911370ab72575b3dd15b265de6368e32e2d70f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.