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 com.cfuehrmann.stampy.test.dal;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType... | e930ea6e4b0414e77bb5800284070b93014101f5 | [
"Java",
"SQL"
] | 29 | Java | cfuehrmann/stampy | 4da5f18f1cc04b306e77b4731b283d1f57fecf32 | 6b558c9562155364377a1f5425e0d55b1d1e5e1c |
refs/heads/master | <repo_name>rahul-connect/Eshopper<file_sep>/inc/header.php
<?php include "db/connection.php"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
... | 9250a9b165e37aabecf8c10bdced43d8699ba116 | [
"Markdown",
"SQL",
"PHP"
] | 23 | PHP | rahul-connect/Eshopper | 32bf30215561abc69a6102863edb3d9265ba26bc | f022982ac6ebc561bbf3da36bde4dec686add8a1 |
refs/heads/master | <repo_name>abdullah0ahmed/ksa<file_sep>/ksa.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 18, 2019 at 11:58 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.1.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 ... | 0fc3d747ee52bb01f1d1ee144619486b72b29a17 | [
"SQL"
] | 1 | SQL | abdullah0ahmed/ksa | c68dc18b38bb514a32d503ce22069793a05e8be9 | c8c042427e28730a55327a741ddd77c04a334d81 |
refs/heads/master | <file_sep>"use strict";
import {ExtJSRegistrations} from './src/ext-tool/ExtJS';
declare var exports;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtJSRegistrations = ExtJSRegistrations;<file_sep>declare namespace Ext
{
function create(className: string, config: any) : any;
}<file_sep>... | ba44cc603e4b0d71954a6906cb3139a959473f39 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 8 | TypeScript | freesonlee/ExtTS | d1ba9a85b82ff5f888bc18e5d56f8c69a0e08997 | 36279be57cac18ccfa446530b4b00baa4c205ce1 |
refs/heads/master | <repo_name>tsmurer/LP3A5<file_sep>/src/App.java
public class App {
public static void main(String[] args) throws InterruptedException {
Contagem t1 = new Contagem(0, 5);
Contagem t2 = new Contagem(10, 15);
t1.start();
t1.join();
t2.start();
t2.join();
}
}
| 7e7d3be558f79de38451c64701e55a03dab53a72 | [
"Java"
] | 1 | Java | tsmurer/LP3A5 | fc16d8016dd27ba266938c6bd346614b071eed3e | 7984df5e4ad8f10ce4c15a3a7477b967a0bab2ce |
refs/heads/master | <file_sep>package com.ebaxt.gameserver.client;
public class GameserverException extends RuntimeException {
public GameserverException(String message) {
super(message);
}
}
| 498c5c051b0142af9b8225c5ae89c91de5d3373c | [
"Java"
] | 1 | Java | ebaxt/gameserver-client | d8812bfb904289d417a3a77ac0d19d86a6821186 | a757191acac26f31f8ace1227e4100ebbd462ac7 |
refs/heads/master | <file_sep>import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author <NAME> <EMAIL>
*/
public class BoardTest {
@Test
public void testIsValidEndMove() {
Board b = new Board();
try {
//black non-king
b.switchTurn();
b.makeMove(new Move(5,6,4,5));
b.makeMove(new... | e5564d34eddd143ccef6140252207dc3f8b2a2c6 | [
"Java"
] | 4 | Java | BalajiLaks/CS-451 | d13ee2ad9d835c3a138f24cc0407a774d62b1625 | 94d80f9ccf4c629d939cc9a47a4727e8d717b9d8 |
refs/heads/master | <file_sep>package in.javahome.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class WelcomeBootController {
@RequestMapping("/welcome")
@ResponseBody
publ... | 9dd49ec0094a38c988ad07644cfabe00f9f253fc | [
"Java",
"INI"
] | 3 | Java | Jhometech/spring-boot | 19d85cac70cfc03a291555c0a86010ede4130d5d | 6bb3e08e286a0ace05caae3b30a8cf5297a95612 |
refs/heads/master | <repo_name>RSriwilai/WestCoast_Education_MVC<file_sep>/App/Data/CourseNameRepository.cs
using System.Collections.Generic;
using System.Threading.Tasks;
using App.Entities;
using App.Interfaces;
using Microsoft.EntityFrameworkCore;
namespace App.Data
{
public class CourseNameRepository : ICourseNameRepository
{... | f7858b606a7462f537ba98da000e03bd3157785b | [
"C#"
] | 31 | C# | RSriwilai/WestCoast_Education_MVC | b26364f290eb8222efee1b65ba6789f1bab1f7c3 | fa33a89672844b56d41a5f6448c31d928f3fe925 |
refs/heads/master | <repo_name>onepica/slack-jira-notifier<file_sep>/read-task.php
<?php
/**
* API class for fetching info about a JIRA issues
*/
class JiraTask
{
/**
* Custom field codes
*
* @var array
*/
protected $fieldCodes = [
'sprint' => 'customfield_10600',
];
public function __constr... | 9c29c234667d3fa662d9ac749711137bbb4a7a57 | [
"Markdown",
"INI",
"PHP",
"Shell"
] | 8 | PHP | onepica/slack-jira-notifier | b5bfc88dfd11f818c118cbffb1859f4b4f145e54 | 3cd35488410828dd9d68a635e8a9f0e529c063d5 |
refs/heads/master | <file_sep>import
xx{
}
| 5bf1e6e69922e0189e91b6a146ebb0099889b839 | [
"Java"
] | 1 | Java | lqjun/web_test | 41c1baf0ff1e6d8ab7bf583e7b89cfaf1e3af025 | 4a79bb62534f64a9f0b1f941fded5da0642b34d0 |
refs/heads/main | <file_sep># 04-quiz-app
In this assignment I was given the task to create a quiz in which users would be asked questions that are JavaScript related once they selected the start button. Once the start button is selected and the questions appear, a timer of 60 seconds will begin. If the user answers incorrectly 15 secon... | 6f9fd312e970f045a759a3763f149c5c6b51d5cf | [
"Markdown",
"JavaScript"
] | 2 | Markdown | JAA459/04-quiz-app | 114d23f6797416c5f39595b473bdbcb4c501a9d1 | c77dd90753b2cf09637b0ec61112671e6721d050 |
refs/heads/master | <file_sep>const axios = require("axios");
const apiKey = require("./config/keys");
const geocode = (address, callback) => {
const url = `http://api.openweathermap.org/data/2.5/weather?q= ${address}&appid=${apiKey}`;
axios
.get(url)
.then(({ data }) => {
callback(undefined, {
latitude: data.coord.lat,
... | 6fdf331b1a5de06bce1ed6b712b15af37187b59d | [
"JavaScript"
] | 1 | JavaScript | BinuraEN/weather-forecast-app | 5eaf84ea3aeaa38ded165dc4d5655d0aba6f23b0 | fdacb69ccd96a3be98979f7ceb1603f74943ee5a |
refs/heads/master | <file_sep>CC=/usr/bin/arm-linux-gnueabi-gcc
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=main.c can_lib.c
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=can_test
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.c.o:
$(CC) $(CFLAGS) $< -o $@
<file_sep>/*
* main.c
*
* Created on: Nov 7, 20... | fc97b1ae93de3602a5fc0d9176a4663ac4f96ec1 | [
"C",
"Makefile"
] | 2 | Makefile | BramVL/can_lib | d7bd4c9be6d14ef64b5d102e2f52e9d1565db466 | 6b115ebde4c067cce262c36119100f86842e6fed |
refs/heads/master | <repo_name>phpbench/phpbench<file_sep>/lib/Exception/ConfigurationPreProcessingError.php
<?php
namespace PhpBench\Exception;
use RuntimeException;
class ConfigurationPreProcessingError extends RuntimeException
{
}
<file_sep>/lib/Expression/NodePrinter/ConcatPrinter.php
<?php
namespace PhpBench\Expression\NodePrinte... | 1e293b36888ca4540f9cffbdf2459d2f2be104a4 | [
"reStructuredText",
"Markdown",
"Python",
"Text",
"PHP",
"Shell"
] | 719 | PHP | phpbench/phpbench | 6d269ebfcbf8ea44d7ffe2a4deb9f2509027f74c | 1993a44277bf8dcb99224202d1cb8c6ad8b768c4 |
refs/heads/master | <file_sep>// We need to import the CSS so that webpack will load it.
// The MiniCssExtractPlugin is used to separate it out into
// its own CSS file.
import css from "../css/app.css"
// webpack automatically bundles all modules in your
// entry points. Those entry points can be configured
// in "webpack.config.js".
//... | f39727c6b6255c3e70918088951be17e320d5945 | [
"JavaScript"
] | 1 | JavaScript | dtroyano/recipe-app-learning | d7d81aef37ec49885a2dea93da1bb2b59ac9f715 | 47950bd93bdc72a1676ba678b2d5d7777cc7c2b7 |
refs/heads/master | <file_sep>import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/components/HomePage'
import MLSearch from '@/components/MLSearch'
import RoughSort from '@/components/RoughSort'
import GRClickShow from '@/components/GRClickShow'
import HaoKanDebugDemo from '@/components/HaoKanDebugDemo'
import Ha... | 59ea08c456631153e94efcaf9e70f58a9f0bf32a | [
"JavaScript"
] | 1 | JavaScript | Nanoharcher/Trace-Demo | 80b0d632e1342deb2209137e2b1f387f7a047aa7 | 44be0a6e85bff34ea4b3b6b3335b9fcfc583ea95 |
refs/heads/main | <file_sep>print(344 + 794)
| 6081bfb9f1e142c9468ee2f06fdbe0d6d2baa599 | [
"Python"
] | 1 | Python | unf914/unf914 | 7cd9289de0d3b8b397a4d176f934c824a6b7d99a | b1414232d365b1e10022dc9f7f7e5a5d986ca274 |
refs/heads/master | <repo_name>peterihimire/peterihimire<file_sep>/dist/scripts/script.js
const navbarBtn = document.querySelector('.navbar_btn');
const navbarLinks = document.querySelector('.navbar_links');
const navbarOverlay = document.querySelector('.navbar-overlay');
const navbarHeader = document.querySelector('.navbar_header');
cons... | ec01520e45a447bd807e05b575faf98efad0846d | [
"JavaScript"
] | 1 | JavaScript | peterihimire/peterihimire | 5d19ea747dc953be7154449d5d72cebb5a4c7af1 | 23ca4e6d838cdbd138d6a065b270daee78222ce5 |
refs/heads/master | <repo_name>cerealkiller864/regfb<file_sep>/reg.py
from random import seed
from random import randint
from selenium import webdriver
from selenium.webdriver.support.select import Select
import random, subprocess, time, pyotp, os, io, selenium
#mở chrome
driver = webdriver.Chrome(r'C:\Users\ADMIN\OneDrive\Máy tính\reg\... | 75a9f86b87ec2b23284a7864e82f5b24aca7265a | [
"Python"
] | 1 | Python | cerealkiller864/regfb | 5a346b5b909d2c5482a02732b243e239f70ca196 | 4f2827cb4767296ad5ecd68c21e4538fbaea8b65 |
refs/heads/master | <file_sep>familia
=======
:-)
<file_sep>angular.module('starter.controllers', [])
//
// .controller('DashCtrl', function($scope) {
// })
//
// .controller('FriendsCtrl', function($scope, Friends) {
// $scope.friends = Friends.all();
// })
//
// .controller('FriendDetailCtrl', function($scope, $stateParams, Frie... | 233d03b135ad1f7a63040b9dd97baf8d88561879 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | sharonlin/familia | 875ff9131a4d3bc8b4f0a49178b9508946507051 | 3350f83547a49bc957e5d02d49f6bc95c5fa40bd |
refs/heads/master | <repo_name>King-Benx/WeConnect-React<file_sep>/src/navigation/Logout.js
import React from "react";
import { Link } from "react-router-dom";
const Logout = () => (
// JSX returned
<li>
<Link to="/logout">
<b>
<i className="glyphicon glyphicon-log-out" /> Logout
</b>
</Link>
</li>
);
ex... | 80633510ca6fc590411ed4cada3a5cff2eb83cc0 | [
"JavaScript",
"Markdown"
] | 33 | JavaScript | King-Benx/WeConnect-React | 447290a611bc27d1ac2e8ce8efa83c48e3d098ea | 389d96ef42e947bae6e6342d29a5cc77740c26e6 |
refs/heads/master | <file_sep>import os
import os.path
import librosa
from hparams import hparams as hp
class Stem(object):
def __init__(self, path, targets=None):
self.audio = path
if targets:
self.targets = targets
def load(self):
return librosa.load(self.audio, sr=hp.sample_rate)[0]
class ... | 7fcdc3a3b288de70cf98d99ebf6d0ace0995b91f | [
"Python",
"Text"
] | 21 | Python | edwardsiu/vocal-mask | 45dc71907379a52672669fb8913c8253757f181e | 721e28a5a5564dc766d5d306562fd43c180c9976 |
refs/heads/master | <file_sep>#include<bits/stdc++.h>
#include<windows.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
#include<iomanip>
using namespace std;
// Nguyên Liệu
struct NL{
int maNL;
char tenNL[50];
int soluongNL;
float giaNL;
char nguonnhapNL[50... | 5622651c37f1e19cb5034fda522339bb92c834d6 | [
"C++"
] | 1 | C++ | vianhyeuem/BTL_CTDL_DSLKDoi | a307455223d98b4857809c84647a4eb198e40c8c | 2f2785c51be5836c08a4ddf381b13e99235a32b7 |
refs/heads/master | <file_sep>#' showMap module UI
#'
#' @param id A character vector of length 1.
#'
#' @return A module UI.
#'
#' @examples
#' \dontrun{
#' showMapUI("item")
#' }
showMapUI <- function(id) {
sidebarLayout(
sidebarPanel(
radioButtons(NS(id, "level"),
label = h3("Select item level"),
... | 0e43c4f58b05602fbf25fe664ec891e164bc9973 | [
"Markdown",
"R",
"RMarkdown"
] | 10 | R | mitsuoxv/jp-household | c4ac8f64a9ad0d3923831e30d3a3731017bc631a | 986911b5f60cccc2c1089bfcabebd452844a2a44 |
refs/heads/master | <repo_name>ar-ekt/Quiz-pygame<file_sep>/README.md
Quiz program written by pygame
In the program you should move and select with keyboards and mouse is unusable.
In main menu you should choose one of options(log-in, sign-up or exit).
<p align="center"><img src="https://user-images.githubusercontent.com/57006850/88709... | 16a585104b57c703554a073a324c4624cf633b11 | [
"Markdown",
"Python"
] | 2 | Markdown | ar-ekt/Quiz-pygame | cc3ef04f8b0999f90068c10dc00d3eeba2786148 | 8048fbc28e845dd931ee7f336a1fab6fabc38413 |
refs/heads/master | <repo_name>mohammadKhodashahi/webCloud<file_sep>/app/Http/Controllers/Services/UploadFile/UserFileCreator.php
<?php
namespace App\Http\Controllers\Services\UploadFile;
use App\Models\UserFiles;
class UserFileCreator
{
/**
* @param UploadFileData $data
* @return UserFiles
*/
public function cr... | f91b0b0f47577ca7519658ded3105af75270424e | [
"YAML",
"Markdown",
"JavaScript",
"INI",
"PHP"
] | 18 | PHP | mohammadKhodashahi/webCloud | b1ec814f8efcb44112bcfb2d09fe8bd4248b8a6d | 719c2b1ba1f5c9f28647ef547975b3b3eb07a128 |
refs/heads/master | <file_sep>// JavaScript Document
$(document).ready(function (){
// create a LatLng object containing the coordinate for the center of the map
var latlng = new google.maps.LatLng(27.962951, -82.444573);
// prepare the map properties
var options = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.... | 4c66bb93f0840d9d73511af49fc88c64df55ae33 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | metanomy/cf-mil-oss | 2cc3b831a64fd9ad8a2bf308c5208975440ee513 | 6b399012d2f55228e6ece680ea852290499874ad |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include "bitmap.h"
int main(int argc, char** argv)
{
BITMAP* bmp = NULL;
char* in_file_name;
char* out_file_name;
FILE * fp;
char * line = NULL;
size_t len = 0;
ssize_t read;
fp = fopen("sample.txt", "r");
if (fp == NULL)
{
exit(E... | 67989f7af7295bbe3c6a888c61138b69cf1c806e | [
"C"
] | 3 | C | danpouma/steganography | a16b05c7c1ac907971ee82d8e0ea00e638db625c | 221e03d0f2806594560e61d93cd1dbfbf2e740bd |
refs/heads/master | <repo_name>openube/PennApps-DroneController<file_sep>/README.md
<h1>Drone Controller</h1>
A simple Android app that allows a drone to be controlled via a Myo. App serves as an interface between the two by taking advantage of an Android device's bluetooth and IR capabilities.
This app was built at <b><a href="http://20... | b0153165c50a1745548f14eec1440dff6c88069b | [
"Markdown",
"Java",
"Gradle"
] | 4 | Markdown | openube/PennApps-DroneController | 9e5ec20d0ca63aef8e2845c0e97dab7270c96bf0 | 602370be78db831083b93b19709dce688da3afa9 |
refs/heads/master | <repo_name>hugo-clems/mi-siteweb<file_sep>/src/NIBundle/Entity/Localisation.php
<?php
namespace NIBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Localisation
*
* @ORM\Table(name="localisation")
* @ORM\Entity(repositoryClass="NIBundle\Repository\LocalisationRepository")
*/
class Localisation
{
/**
... | 916492080a06fb62e3a9621e5e9eacd4df0e9e82 | [
"PHP"
] | 5 | PHP | hugo-clems/mi-siteweb | a9f1a842e80d0e37180eec3223ccef5096e9353d | 3f914b3a606bc1ab18e8b06967b440760d960e58 |
refs/heads/master | <repo_name>anisha-rohra/OperatingSystems<file_sep>/Memory Management/starter/clock.c
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <getopt.h>
#include <stdlib.h>
#include "pagetable.h"
extern int memsize;
extern int debug;
extern struct frame *coremap;
// the current place where the clock is ... | a10f065ac5e3518bc08a94827eeee6e4a6aad743 | [
"C",
"Makefile"
] | 8 | C | anisha-rohra/OperatingSystems | 30ffdcc36c1f68ff5975497177d72dc1103c0bdc | eee1504069fcd31735b000057cdfcfce9bab3680 |
refs/heads/master | <repo_name>UnChallengeD/IMDB-Top-rated<file_sep>/imdb top rated.py
from bs4 import BeautifulSoup as bs
import requests
#remove one hashtag from the start of url and run the script.
url='https://www.imdb.com/chart/top' #top rated movies
#url='https://www.imdb.com/chart/top-english-movies' #top rated english movies
#ur... | c03e781dcc03829e369d8ef2e150c612144d1829 | [
"Markdown",
"Python"
] | 2 | Python | UnChallengeD/IMDB-Top-rated | c3122c2e94c58197bea4ecef9f8c15a51f3a71a7 | 44fe03e770178b50f1189c92c009a763f5c1a8ad |
refs/heads/master | <file_sep>var express = require('express');
var globalConfig = require("./config");
var loader = require("./loader");
var cookie = require("cookie-parser");
var app = new express();
// var studentController = require("./web/studentController")
// __dirname表示的当前文件的绝对路径
app.use(express.static(__dirname + "/" + globalConf... | a79be85b2ade790ee1ee91bf5a695c017682f4db | [
"JavaScript"
] | 8 | JavaScript | zhangnailiang/node.js-learning | 2ffc7c35d1b9af82e465a50a389bffab6b6b136c | 1b56a8be5eb522d35ba0ce6efb70be2eaeeeedfd |
refs/heads/master | <file_sep>//
// MSBLEMachineBroadcast.swift
// MSeries
//
// Created by <NAME> on 9/9/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
import Foundation
public class MSBLEMachineBroadcast: NSObject {
public var name = "";
public var address = "";
public var isRealTime = false
public var rec... | 18f15ebb2011b301ea9d3d82d8c7760d36e3251c | [
"Swift",
"Ruby",
"Markdown"
] | 4 | Swift | ish2028/MSeriesBle | c0dc0f2bc8845d8c4761c397f736f5fdfae54999 | f6caccba046f9c14d3d870ce9778ce9207d2ac47 |
refs/heads/master | <repo_name>AndresDiaz1/AngularJSTest<file_sep>/client/app/components/userform/userform.controller.js
class UserformController {
/* @ngInject */
constructor(DataHandler) {
this.name = 'userform';
this.services = {
dataHandler: DataHandler,
};
this.user = {};
this.resetForm();
}
$onInit... | 0d71b63569283a9638fd591215075dc7f0ec5717 | [
"JavaScript"
] | 8 | JavaScript | AndresDiaz1/AngularJSTest | 46139356248975937b2b7f14faeee8db313f42d9 | 95c4c0600efce70fabb4903ea34ecfe4676a3432 |
refs/heads/master | <repo_name>Juneeeee/Scrapy_learning<file_sep>/torrent/torrent/pipelines.py
# -*- coding: utf-8 -*-
import MySQLdb
import MySQLdb.cursors
from torrent.items import TorrentItem
class MySQLPipeline(object):
def __init__(self):
self.connect = MySQLdb.connect(
host='127.0.0.1', db='scrapy_database'... | 8a5640dc3264bf4cecccc41bac0b81cf6bdc1a73 | [
"Markdown",
"SQL",
"Python"
] | 9 | Python | Juneeeee/Scrapy_learning | b624fce7a6b8fafdbbaea120ad46b84ff0e3195b | fa19f52663626510a91cd38f0883cf1fa1a1ae3f |
refs/heads/develop | <file_sep>import pytest
import scipy as sp
import numpy as np
# set up a fixture for the Compartment model
@pytest.fixture(scope='module')
def model():
from compartmentmodels.compartmentmodels import CompartmentModel
model = CompartmentModel()
return model
@pytest.fixture(scope='module')
def TwoCXM():
... | d3f7136b1fccd44a75d6c5bde353ab949b828859 | [
"Markdown",
"Python",
"Text"
] | 9 | Python | michimichi/compartmentmodels | 50f74c314d52e2fede7bc14b712f96524df2cf6b | 2440aeb57ffd2d047f1af355c8795468b3841cc7 |
refs/heads/master | <repo_name>Mratashnejad/django_first_app_templates<file_sep>/selenium/test.py
from selenium import webdriver
from time import sleep
class instabot:
def __init__(self):
self.driver = webdriver.Chrome()
driver.get("https://instagram.com")
sleep(2)
instabot()
# # click radio button
# pytho... | 5bcb4d37cf2ebf8b2d67a4510c19cb35843df7e1 | [
"Python"
] | 19 | Python | Mratashnejad/django_first_app_templates | c74de81634a5dbd9878b57237ca00e3ddbfb0b22 | 9bab0be98f7ab0da4ae74b5930cd7acc533c9b2e |
refs/heads/master | <repo_name>im2jei/0421Shoppingmall<file_sep>/src/Server/ServerCenter.java
package Server;
import java.net.Socket;
import java.util.ArrayList;
import DB.DAOCenter;
public class ServerCenter {
private ArrayList<ServerChat> sList = new ArrayList<>();
private DAOCenter dc = DAOCenter.getInstance();
private ... | b8eacdfdb78dcd5d0c18465d39bca63f4e437d9e | [
"Java"
] | 2 | Java | im2jei/0421Shoppingmall | bd61707766e9718e71e9e186e33ff0704877fa8e | 522ce49b6855f476068f5431f29a44619edf238f |
refs/heads/master | <file_sep>package io.renren.modules.generator.dao;
import io.renren.modules.generator.entity.GoodsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品管理
*
* @author zah
* @email <EMAIL>
* @date 2021-04-01 14:23:11
*/
@Mapper
public interface Good... | 56de548020d9530b3b3e173e9f86f5125386e36d | [
"Java"
] | 1 | Java | zah1996/renrenTest | 4a8b66cad8bb0f90705e83ac338538eb46cdead0 | 0b294e7c21651417fe2fa4414ec98992a3b93267 |
refs/heads/master | <repo_name>ShenTensen/circa<file_sep>/src/names_builtin.h
// Copyright (c) <NAME>. See LICENSE file for license terms.
// This file was generated using name_tool.py
#pragma once
namespace circa {
const int s_addr = 0;
const int s_advance = 1;
const int s_block = 2;
const int s_break = 3;
const int s_case = 4;
const... | 63683c5c3afd447f845e5192097cf660ae87dbfe | [
"Text",
"C++"
] | 22 | C++ | ShenTensen/circa | ef42844e714ec1c467bfbf10121a17b431eedc4c | 75316e3d6ab5029c16301013732a6ec31365023c |
refs/heads/master | <repo_name>itggot-andre-skvarc/storprojekt20<file_sep>/Webbserverprojekt/app.rb
require 'sinatra'
require 'slim'
require 'sqlite3'
require 'bcrypt'
enable :sessions
get('/')do
db = SQLite3::Database.new("db/todo.db")
slim(:index)
end
def set_error(error_message)
session[:error] = error_message
slim(:error)
e... | 6b35ccbfcb11edd50a9b71f5cc908695e21f269a | [
"Ruby"
] | 1 | Ruby | itggot-andre-skvarc/storprojekt20 | 43da33e7fdc2e54c4f9890b0c3dc9a7ca462ddd8 | 611f2944dc18aa41b5f21d61b002cf29abb5f7a3 |
refs/heads/master | <repo_name>johndel/Typeracer-Hack-in-Ruby<file_sep>/README.md
# Typeracer hack in ruby (windows only)
### Description
This is just a fun project I made to check how I could control keyboard from a ruby script in windows. If you are from Greece, check this <a href="http://greeksolution.gr/blog/keyboard-simulation-with-... | 6d169d2532ea39d5eece7ecadc46886806c8f9e8 | [
"Markdown",
"Ruby"
] | 2 | Markdown | johndel/Typeracer-Hack-in-Ruby | 2f20200f8f5aa8dd6367f2c1b21edc96526e2f53 | c623427f5f73e0dfddea4f96b54d6c60baf58047 |
refs/heads/master | <repo_name>rushlet/swihack<file_sep>/src/components/results/results.js
import data from '../../measures_swihack';
import config from './measurement_config';
export default class Results {
constructor() {
this.resultContainer = document.querySelector('.results-container');
}
renderResults(options) ... | 4912ea13557e93e04c76376896a88b8c1385b409 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | rushlet/swihack | 27350885e6130616ac590a08ad2c789afd88f6f7 | a118d2669b13a265501b285141368fe795583632 |
refs/heads/master | <repo_name>CristianGarzon576/CRUDnodejsAWS<file_sep>/get.js
const AWS = require('aws-sdk');
const dynamoDb = new AWS.DynamoDB.DocumentClient();
const headers = {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, HEAD, OPTIONS'
}
const table = 'TAB... | 9cb9a0b374584be0873f0e46ebc3408322e1eeec | [
"JavaScript"
] | 3 | JavaScript | CristianGarzon576/CRUDnodejsAWS | 1b1dd8beaaa549fabf74526aedb1649ef9bbfc9e | a78ab9e9a4b9db34fae16f993cd3fc879a1e5317 |
refs/heads/master | <repo_name>CS2103W14-B4/addressbook-level4<file_sep>/src/test/java/seedu/address/testutil/TypicalCelebrities.java
package seedu.address.testutil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import seedu.address.model.person.Celebrity;
//@@author WJY-norainu
/**
* A utility class cont... | 7681aaff08e9a54ccec80667555028a19a677ab0 | [
"Markdown",
"Java",
"AsciiDoc"
] | 53 | Java | CS2103W14-B4/addressbook-level4 | 07e3267c4b64e7786fb8e2cf41fe7acee411f1cb | 1220cc5383ad29b51d6d96fc5faa4f000fba1aa4 |
refs/heads/main | <repo_name>abdul9876/snakesandladders<file_sep>/hello.c
package com.hello;
public class Main {
public static void main(String[] args) {
System.out.println("hello");
}
}
| 97426543515ea4e8c7d5ad8a72a7da4432cb6185 | [
"C"
] | 1 | C | abdul9876/snakesandladders | ff6f0cf4bdabd6497bf228b1e040ad1ad800cd80 | 2e8def269c5bdf464c1ca2749b5bd241db20a3be |
refs/heads/master | <repo_name>szepeviktor/amd-window<file_sep>/amd-window-concatenate.js
/** @license The MIT License (MIT) Copyright (c) 2014 <NAME> */
/**
* AMD window
* Helps depending on the window object
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
*/
// when concatenating th... | 8cb434ae82ef561f5ebea18d9691d668e5106a5c | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | szepeviktor/amd-window | 93fe110ae1e4b0a92f479b4e94517ea9ab34f15e | 3abc6caa0d3cb93768ffdb4b62b7dc79c03a69ac |
refs/heads/main | <repo_name>chloblo99/infix2postfix<file_sep>/BalancedExpression.java
import java.util.Scanner;
public class BalancedExpression {
private static boolean isBalanced(String expression){
char nextChar, openDelimiter;
Stack<Character> stack = new Stack<Character>();
boolean isBalance... | eb13d35ae7f298e46f94744418195152d2e07ca4 | [
"Java"
] | 2 | Java | chloblo99/infix2postfix | 10756a3192102e1bd012cca6e40b68f3d8dc6bde | f249862c3975dcde49f94debe1cc72c36f79f099 |
refs/heads/master | <repo_name>BeforeYouSay/BeforeYouSay<file_sep>/requirements.txt
flask
nltk
gunicorn
Flask-Failsafe
psycopg2
Flask-SQLAlchemy
Flask-Migrate
alembic
celery
factory-boy
Flask-Migrate
Flask-RESTful
Flask-Script
Jinja2
six
SQLAlchemy-Utils
Werkzeug
psycopg2
pytest
<file_sep>/app.py
from flask import Flask
from flask import ... | 6a69b5717ab5a287b4e79685b374015349748a30 | [
"JavaScript",
"Python",
"Text"
] | 6 | Text | BeforeYouSay/BeforeYouSay | d259ac6760afa4d4b92cca162f7b28284ae39626 | 585528a7eef12f3b33ebb3b1cb9fe98e4fc315d1 |
refs/heads/master | <repo_name>brave44/ccs_website<file_sep>/config/routes.rb
Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
scope '(:locale)', locale: /ru|en/ do
get '/support' => 'pages#support'
get '/features' => 'pages#features'
get '... | 34871ac495b8bee975a9ff614072fc4a4c919151 | [
"Markdown",
"Ruby"
] | 3 | Ruby | brave44/ccs_website | 1830ab3fa91bfc449a1cab0a232606f358ff8b0f | 3786bf11532dd3054f04db0e1cc8f28b481715c0 |
refs/heads/master | <repo_name>pedroagcf/FinalProject-RSD<file_sep>/new/src/client (Case Conflict)/Controller/CodificadorJson.java
package Client.Controller;
import com.google.gson.Gson;
import client.Interface.Codificador;
public class CodificadorJson implements Codificador {
@Override
public String codificar(Object obj) {
Gson g... | 1bd348f7a474e87bec4d07a1d6f5585900ea979a | [
"Java"
] | 12 | Java | pedroagcf/FinalProject-RSD | b826c68a7872565ccc122eca8cb137ee407b433e | d22294b6c9a0e2cc68ab57b089fca3c45d25ae7f |
refs/heads/master | <file_sep># arxiv_downloader
A downloader for arxiv paper
##
<file_sep>import urllib.request
import requests
f = open('./url.txt')
lines = f.readlines()
for line in lines:
url = 'http://xxx.itp.ac.cn/pdf/'+line.strip()+'.pdf'
print(url)
data = urllib.request.urlopen(url).read()
f = open('./gcn/'+lin... | 641f76aac32ced9b04be30e06fb112def4cdf409 | [
"Markdown",
"Python"
] | 2 | Markdown | milk2we/arxiv_downloader | a9ee02994483ac0dfd296d2c56563a1c98225ea3 | 1aef5bcf0385daf85d52cfb95c63ec7e141c392d |
refs/heads/master | <repo_name>vipulnsward/ImageLoader<file_sep>/demo/src/com/novoda/imageloader/demo/activity/LongSmallImageList.java
package com.novoda.imageloader.demo.activity;
import com.novoda.imageloader.core.model.ImageTagFactory;
import com.novoda.imageloader.demo.DemoApplication;
import com.novoda.imageloader.demo.R;
import com... | d023ccd40acf37a1618f7f8daddcdafa525fb4f5 | [
"Java"
] | 6 | Java | vipulnsward/ImageLoader | 831277d49bfc2d9dd5898e454ebdd5fca80d3c3d | c6a985f9314d64091551a438a30c65bd71fe3faf |
refs/heads/master | <file_sep>#![no_std]
#![no_main]
#![feature(unwrap_infallible)]
extern crate panic_itm;
// Core
use cortex_m_rt::entry;
use cortex_m::Peripherals;
// Device
use hx711::Hx711;
use nb::block;
use stm32f1xx_hal::{
pac,
prelude::*,
delay::Delay,
serial::{Config, Serial},
};
use core::fmt::Write;
#[ent... | 6e768dd8b317a0080f4fd69cf8250afddcd99f30 | [
"Markdown",
"Rust",
"TOML"
] | 5 | Rust | jonas-hagen/hx711-examples | e1867e354eaf97c5fa8b6294aae27ab10f768711 | a773b133d49f477636cfa021e97e80f1bd041a89 |
refs/heads/master | <repo_name>sparlampe/taqparser<file_sep>/taqparser.cpp
#include "boost/date_time/posix_time/posix_time.hpp"
#include <iostream>
#include "FileAdapter.hpp"
#include "PriceWriter.hpp"
using namespace std;
using namespace boost;
using namespace boost::posix_time;
int main(int argc, char **argv)
{
try
{
ptime fileTim... | f325843fd7ceae1fab9f66024be52f21fda333de | [
"C++"
] | 5 | C++ | sparlampe/taqparser | 79e33c3876ee2e33f21651b7c4119d6f12305434 | 15607f35f3a63551e62f212f70dd000c4f6bdbc9 |
refs/heads/master | <repo_name>aradhy/shopping-security-ui<file_sep>/src/app/app.component.ts
import { Component, Output, EventEmitter, ChangeDetectorRef, AfterViewChecked } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { FormControl,FormGroup,FormBuilder, NgForm } from '@angular/forms';
import { AuthServ... | 0eb6bc33468df20bc1d0973bb27d7fc2e4263ad7 | [
"TypeScript"
] | 8 | TypeScript | aradhy/shopping-security-ui | 9fed4c91a15a080d4a58198b7594160ceecfe5e2 | e305852bb694dd380e0afd8dabbe9e25e51fd5b4 |
refs/heads/master | <repo_name>Eshankuthu/Build-An-Online-Bank-With-Java-Angular-2-Spring<file_sep>/UserFront/src/main/java/com/userfront/service/AccountService.java
package com.userfront.service;
import com.userfront.domain.PrimaryAccount;
import com.userfront.domain.SavingsAccount;
public interface AccountService {
PrimaryAccount... | 6c8be742a7f4571b632b0fed8ab3b13775ed3781 | [
"Java"
] | 2 | Java | Eshankuthu/Build-An-Online-Bank-With-Java-Angular-2-Spring | 0f01e346b08a0343ff8f923dda115e5c88d56241 | 6d7fbdb2356eb484f77c6f95422155d97269c16a |
refs/heads/master | <file_sep>package com.appsdeveloperblog.app.ws.ui.model.response;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
public class ErrorMessage {
private Date timestamp;
private String message;
public ErrorMessage() {
}
}
<fil... | fe82135e986859efe60006d15e522960101b2b5f | [
"Java"
] | 2 | Java | AnimeshGaur/Spring-mvc | cc4c784d574c3f8890db305314f9627747890b42 | 11b6d25823f224b0176856ecf5e8e9a4b9cc5ab5 |
refs/heads/master | <repo_name>tarunluthra10/ProjectManager<file_sep>/client/src/environments/environment.prod.ts
export const environment = {
production: true,
baseApiUrl: './api/',
isMock: false
};
<file_sep>/client/src/app/view-task/view-task.component.ts
import { Component, OnInit, ViewChild, TemplateRef } from '@angular/core';
... | 8889a7bec59b8b217d198aa8f5496c119abb5144 | [
"C#",
"TypeScript"
] | 27 | TypeScript | tarunluthra10/ProjectManager | 82722411e1825c5857e0020b65cd63f0f1e373b5 | 92eaf8e32b1b30eece21f360c328faba1a047d52 |
refs/heads/master | <file_sep>var express=require("express");
var bodyparser=require("body-parser");
require("./db/db")
var app=express();
app.use("bodyparser.json");
app.get("/",(req,res)=>{
res.send("welcome mr s rama <NAME>");
res.end();
})
app.listen("1111",function(){
console.log("serverlitning port no 1111");
})
| fbdbfdb50b83f582ff6c52fe92f5386d5712fb21 | [
"JavaScript"
] | 1 | JavaScript | srlnp/21-sept-2019 | 4dee1ab7fb72c2a848a0c4a97cc861e7522d86d7 | 61f686e0e1c49b364a5590c82e74c910ca619fc3 |
refs/heads/master | <file_sep>// custom hooks인데 사용하지 않습니다. 지우려다 혹시 몰라서 일단 남겨뒀습니다.
import {useState} from 'react';
const useUndo = (obj) => {
const [state, setState] = useState({
current:obj,
undoList:[],
redoList:[],
})
const actions = {
set:(newObj) => {
state.undoList.push(state.current)
setState({
... | 2ba3d19c535234871686284f278052c003798a8f | [
"JavaScript"
] | 3 | JavaScript | JaGyeomPark/fromdz_ | 31030535c6f758593144314cfd4e9760f7099849 | 48e8899424871a4bcd93a6c2a4b317103e3f2e79 |
refs/heads/master | <file_sep>package Pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import Base.BaseClass;
public class DateOfBirthPage extends BaseClass {
public DateOfBirthPage() {
PageFactory.initElements(driver, this);
verifyTitle("Wha... | c1b325bcd170754fd30ee2279535e5034574099d | [
"JavaScript",
"Java",
"Text",
"INI"
] | 10 | Java | manishpatel1985/Test-Excercise | adc8d68d0c9e1d033d458e6c668b031305979cca | d7392280468210a11362b595b1ac4501da2717ba |
refs/heads/master | <repo_name>4at-nk/calculator<file_sep>/test_calculator.cpp
#include <boost/test/minimal.hpp>
#include "calculator.h"
int test_main(int argc, char* argv[])
{
BOOST_CHECK(Parse("2/1") == 2);
BOOST_CHECK(Parse("-1 + 5 - 3") == 1);
BOOST_CHECK(Parse("-10 + (8 * 2.5) - (3 / 1,5)") == 8);
BOOST_CHECK(Parse("1 + (2 * (2.... | 0386812b65a00956b5024acb7a81fe960248637e | [
"Markdown",
"C++"
] | 4 | C++ | 4at-nk/calculator | 6aec713eaee71599ac86014ca1b4f16fec8018ce | 13807ccdfccc06ae44f5f44d2da2a72464197d21 |
refs/heads/master | <repo_name>elco99/LabPokemon<file_sep>/src/danycheong_11341019_lab8/Pokemon.java
package danycheong_11341019_lab8;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Random;
import javax.swing.ImageIcon;
public class Pokemon implements Serializable{
private String nombre, tipo1, tipo2;
... | 5315d08f66a7f15199e6536f9f47cfa6d7458e44 | [
"Java"
] | 1 | Java | elco99/LabPokemon | 97e453522a9256c447b76d92b235d81d37bd04dd | 101d146beea3084980a339be5e643af4b094f8f3 |
refs/heads/master | <file_sep>/**
* Main JavaScript
* Site Name
*
* Copyright (c) 2015. by Way2CU, http://way2cu.com
* Authors:
*/
// create or use existing site scope
var Site = Site || {};
// make sure variable cache exists
Site.variable_cache = Site.variable_cache || {};
/**
* Check if site is being displayed on mobile.
* @... | def91867a18670d3c47810128dd5166252502353 | [
"JavaScript"
] | 1 | JavaScript | Way2CU/Eran-Ben-Harush-Site | 75c46411857c7bb5433019990b7fc6de16826fe7 | 32530d875a92c70d2bf1f3180796613b2b042a3a |
refs/heads/master | <repo_name>kundan-chaulya/shell-scripts<file_sep>/ScriptTemplate.sh
#!/bin/sh
################################################################################
# Name : ScriptTemplate.sh #
# Author : <NAME> #
# Desc... | 09bce024c0aa533e642de0f37ebc67294df4eea1 | [
"Shell"
] | 1 | Shell | kundan-chaulya/shell-scripts | 325088f8b1aaaec1d96453aa7b0e1fb94b67f298 | 68c1ec0f6d2b3a6f960a9bc6599dfb0bee80385e |
refs/heads/master | <repo_name>cirobarradov/kafka-connect-s3<file_sep>/system_test/run.py
import unittest
import subprocess
import os
import shutil
import time
from datetime import date
import sys
import socket
from kafka import KafkaProducer
import json
from boto.s3.connection import S3Connection, OrdinaryCallingFormat
import ... | a89c8d775268fb66dc74056014e487338e17da40 | [
"Markdown",
"Python",
"INI",
"Gradle"
] | 4 | Python | cirobarradov/kafka-connect-s3 | c9c5a384249c20bef56317fb5e0ab8f3348bdb3c | 8a57512304117f7d12763a4a43a2762f58ba4fcd |
refs/heads/master | <file_sep>-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENG... | a7793bb3eb2a2cf5dbb94bfa953fc533f5c230a7 | [
"Markdown",
"SQL"
] | 2 | SQL | ArieHassan/lab-erd | f26e70d1634c5a6bfb127e98e108d46a0d50febe | 9fe094ff621186cf8bf57086be8b38baa5028f26 |
refs/heads/master | <repo_name>pawel-zun/react-redux-app<file_sep>/src/actions.js
import uuid from 'uuid';
const ADD_COMMENT = 'ADD_COMMENT';
const EDIT_COMMENT = 'EDIT_COMMENT';
const DELETE_COMMENT = 'DELETE_COMMENT';
const THUMB_UP_COMMENT = 'THUMB_UP_COMMENT';
const THUMB_DOWN_COMMENT = 'THUMB_DOWN_COMMENT';
function addComment(text... | d6c7507678191fa65f4aebc7e68b71e0bc592e3e | [
"JavaScript"
] | 1 | JavaScript | pawel-zun/react-redux-app | 762ee5b7518dba5908aacd9a28f9218f2b333770 | 5b73833714220563696c9dc0364150239e662379 |
refs/heads/master | <repo_name>karl-arreola/karreola<file_sep>/public/js/myscripts.js
function openClose(divName, btnName) {
var div = document.getElementById(divName);
var btn = document.getElementById(btnName);
if( div.className == "divClose" ) {
div.className = "";
btn.className = "glyphicon glyphicon-trian... | 5297dda8b38581abdf2f7e195ef2df5b7ee2287f | [
"JavaScript",
"PHP"
] | 2 | JavaScript | karl-arreola/karreola | 0d7caf0f8e285be3383e8b2ab837f7628c9d05a6 | e428fe2aa64bcfd1e5e59f252468894a51c78f05 |
refs/heads/master | <file_sep>Ember.SimpleAuth.AuthenticatedRouteMixin = Ember.Mixin.create({
beforeModel: function(transition) {
if (!this.get('session.isAuthenticated')) {
this.redirectToLogin(transition);
}
},
redirectToLogin: function(transition) {
this.set('session.attemptedTransition', transition);
this.t... | caddb1b1c18b2d0d5d2e091f350fb6c3ee98ab60 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | tjschuck/ember-simple-auth | 22221ffa3aa6a858b22987439f5eb27f2382783e | 7c7da5881af247c7f42113790f24c5fb8f525a74 |
refs/heads/master | <repo_name>wiizzii/Online-Algorithm<file_sep>/Worstcase_pass/SemiOnline.java
import java.util.ArrayList;
public class SemiOnline {
public ArrayList<Passenger> List1 = new ArrayList<>();
public ArrayList<Passenger> sortedList = new ArrayList<>();
ArrayList<Passenger> passengerlist;
int seats;
int stations;
boolea... | b9f987e45f8e19f9a6fae02300801c209592ec17 | [
"Markdown",
"Java"
] | 14 | Java | wiizzii/Online-Algorithm | c1b5ed879b96a90024f1a9d0d6810b49932ec9f3 | 3b2e9b911aaa510e6ba207e6a3e1e223e91c86ee |
refs/heads/master | <repo_name>FrancoisSestier/matrix_layer_stack<file_sep>/test/src/types/matrix_tuple.cpp
#include <gtest/gtest.h>
#include <mls/matrix_tuple.hpp>
#include <mls/strong_types.hpp>
using namespace mls;
TEST(MATRIX_TUPLE, BASE_TYPES) {
matrix_tuple<256, 256, int, char> ck;
{
auto& i = ck.get<int>(2, 3);
... | 95224fba3b6f940dfc7275f63491dde7884c64e0 | [
"Markdown",
"CMake",
"C++"
] | 7 | C++ | FrancoisSestier/matrix_layer_stack | 6678bbb0461b3f7c70f98652b1e71a23f411c1a6 | 08cfd47fdf34a3302aa56c1b34fa6734594e2c8b |
refs/heads/master | <repo_name>tconnolly/BnetApi<file_sep>/spec/bnet_api/wow/wow_auction_data_spec.rb
require 'spec_helper'
describe BnetApi::WoW do
before :each do
BnetApi.configure do |config|
config.api_key = ENV['BNET_API_KEY']
config.api_secret = ENV['BNET_API_SECRET']
end
end
it "gets the URL of an aucti... | fff4976157b04af89d672cc942e6934695171e8e | [
"Markdown",
"Ruby"
] | 27 | Ruby | tconnolly/BnetApi | 0d1c75822e1faafa8f148e0228371ebb04b24bfb | 54246a178f0c03ace42c679155277b508e30a1cb |
refs/heads/main | <repo_name>bdlvhn/codingPractice<file_sep>/coTest/1.basics/ch05_dfsbfs.py
from collections import deque
def ch05_q03():
n, m = map(int, input().split())
graph = []
for i in range(n):
graph.append([*map(int, input())])
def dfs(x, y):
if x < 0 or x >= n or y < 0 or y >= m:
return False
if... | 6f0e76967c3dc89a27cfe91e76e7cec267bdd2a1 | [
"Markdown",
"Python"
] | 29 | Python | bdlvhn/codingPractice | 66c5fb08f3835456166fe2fc306bc47f666ecc86 | 463077378fc62f726306755a8ef61092a269dce9 |
refs/heads/master | <file_sep>#include "Parser.h"
#include<stack>
#pragma once
class Differentiate : public Parser<Expression>
{
public:
explicit Differentiate(const char* _input, std::vector<std::string> &vars): Parser(_input, vars){}
explicit Differentiate(): Parser(){}
virtual ~Differentiate();
virtual Expression eval(... | b9c68888e3e5d31ca13871b3417ff166e2ad93ed | [
"C++",
"PHP"
] | 20 | C++ | mathsatan/mathService | cbde9e6d66ada7983e1dc4a2f526f2519f0fd426 | 3fffbf333c6d5abef5f08b45e73115a921a246c7 |
refs/heads/master | <repo_name>erron522/f1_racer_api<file_sep>/f1_api/app.js
(function() {
var app = angular.module('RacingApp', []);
app.controller('DriverCtrl', function ($http, $scope) {
$http.get("http://ergast.com/api/f1/2017/driverStandings.json").then(function (response) {
$scope.information = response.d... | 2ee41ca603704b615f1219e2c346e8a8b1751dcc | [
"JavaScript"
] | 1 | JavaScript | erron522/f1_racer_api | da2632a195cdc8d08e263d090ec9c4b6092b18f6 | 181134a0bfc3a7e6002600dd1bf05965a67c793c |
refs/heads/master | <file_sep>//
// StatefulViewManagerTests.swift
// StatefulViewManagerTests
//
// Created by <NAME> on 14/10/2018.
// Copyright © 2018 - 2020 <NAME>. All rights reserved.
//
import XCTest
@testable import StatefulViewManager
private final class RootViewController: UIViewController {}
private final class MyCustomE... | 098d7c948c1c2725ee0423e7e4a923fc0cd82c62 | [
"Swift",
"Markdown"
] | 5 | Swift | john-crossley/StatefulViewManager | 5835b38ee48713d17bf53f16abfd2290ae9c73d9 | 16fa74427b248e030b94c240e50c5aa9a0709760 |
refs/heads/master | <repo_name>spramani/SearchingFile<file_sep>/searching data/searching data/Vender/dashbord.js
function search_pro(e) {
console.log($(e).val());
$.ajax({
url: "/image/search_porduct?s_text=" + $(e).val(),
}).done(function (data) {
if ($('#search_input').val() != "") {
if (data !=... | 53c497bb30d3e446eb6281f52bae24a7a48182f0 | [
"JavaScript",
"C#"
] | 5 | JavaScript | spramani/SearchingFile | b586f6867da4988ba4a6a51a9f8335d306d07240 | 33539de738de7168fdaae0398667bc729a97687e |
refs/heads/main | <repo_name>barbarajcs/CaptureConhecimentoHTML<file_sep>/abertura.js
var canvas;//o elemento canvas sobre o qual desenharemos
var background = new Image();
background.src = "abertura.png";
var x = 0//210;//posição horizontal da boneca (com valor inicial)
var y = 240;//posição vertical da boneca (com valor inicia... | 697e6004f0aa506afbeef13cf7a524eebb7374e3 | [
"JavaScript"
] | 3 | JavaScript | barbarajcs/CaptureConhecimentoHTML | 6ea333a3bea60125c37ec53225a82c92e5cbac96 | a05a6977b8472699f8490cf3a15d61ea281a9729 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: 30222
* Date: 2017/11/30
* Time: 10:34
*/
namespace app\api\model;
class Task extends BaseModel
{
public static function getByTaskNo($taskno)
{
$task = self::where('taskno','=',$taskno)
->find();
re... | f38a115a4cfb14c2c8fb1fa627e2ed6ef1f77829 | [
"JavaScript",
"Markdown",
"PHP"
] | 34 | PHP | ruleGreen/WeCampus | 382295dc1867ef88e763577112b7e78da668c9a6 | fddab6a13d5fa6350a175d31729d3d034b9b7509 |
refs/heads/master | <repo_name>Python1320/rtrebooter<file_sep>/rtrebooter/src/main.c
#define _GNU_SOURCE
#include <linux/unistd.h>
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <sys/klog.h>
#include <sys/syslog.h>
#include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/sysinfo.h>
#include <cty... | 179c55a50f614d4f7623a224d7802ffe83ce2a01 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 6 | C | Python1320/rtrebooter | 4b1f11f60749e0cec4adb67f30467809c8c4b409 | 5f5794b3e4b146f9780ac77e18c1cf3be7c4c643 |
refs/heads/master | <file_sep>class Solution:
def insert(self, intervals: List[List[int]], newInterval: List[int]) -> List[List[int]]:
i = 0
start = 0
end = 1
merged = []
# skip intervals where the end of newInterval is greater than start
# of current interval
while i < len(int... | ae693e35358b4c2884f1ff92bfcb9bf70f1fcfcc | [
"Markdown",
"Python"
] | 17 | Python | sumeetparekh94/Leetcode_Questions | 79f492acc2cc3ae9148f5787ca3b42791e634ad0 | eed6dd3ac271ab74ad46005ca6e7611f5cb089c3 |
refs/heads/master | <repo_name>No0ber/ProyectoAsteroides<file_sep>/AsteroidesJGE/app/src/main/java/com/example/asteroidesjge/AlmacenPuntuaciones.java
package com.example.asteroidesjge;
import java.util.List;
public interface AlmacenPuntuaciones {
public void guardarPuntuacion(int puntos, String nombre, long fecha);
public ... | 21b4b61393aaed2dd333b89b089d89f8dfa3b59d | [
"Java"
] | 1 | Java | No0ber/ProyectoAsteroides | ec931c35b3399844ec5c9fd386b8fe70da2f0e4e | 30a1cdbabb2dc130ecbb90baee79dd5a355258fd |
refs/heads/master | <repo_name>HermioneQiu/hbase-excercise<file_sep>/src/main/java/org/mumu/hadoop/QueryByUserIDThread.java
package org.mumu.hadoop;
public class QueryByUserIDThread {
/**
* @param args
*/
public QueryByUserIDThread(long startTime, long endTime, String userID, String fileName) {
/*this.startTim... | 7d09dc1aaec1145a1dd86647c9f426c1546dd2b3 | [
"Java",
"Maven POM"
] | 3 | Java | HermioneQiu/hbase-excercise | 8c086b03c93861d848702d6f188fd13cce1fcd19 | 16e7c39eb67bf451181962af9239fdaa9ed21254 |
refs/heads/master | <file_sep>using SFML.Audio;
using SFML.Graphics;
using SFML.Window;
using System;
namespace Nosing_Simulator
{
public class Game
{
public static int MouseX, MouseY;
public static Vector2i mouseOffset;
public RenderWindow window;
public static Sprite BG, Overlay, failScreen;
public static bool isFailure = ... | 3494d485bfdd90cbc4d5f148f93030d0093df388 | [
"Markdown",
"C#"
] | 5 | C# | robodylan/Nosing-Simulator | 3940ae6c45b668b8dcb2d3e7e6877934d23a58ad | 5c3807f1514739208a9d2ec5a49312766563ac87 |
refs/heads/main | <repo_name>rtmiranda18/miniproject4<file_sep>/script.js
var projectName = document.querySelector ("#projectName");
var projectType = document.querySelector ("#projectType");
var dueDate = document.querySelector ("#dueDate");
var hourlyRate = document.querySelector ("#hourlyRate");
var addProject = document.querySelecto... | 8c25e6719438929336232a4eeb33c7bb081a68a7 | [
"JavaScript"
] | 1 | JavaScript | rtmiranda18/miniproject4 | 9d1d8b032105fcf1d178ab67a8c17f5ab56ba559 | 6f454bc9bfcc586c074aa0b428e3b7400a479726 |
refs/heads/master | <repo_name>LucasLeandro1204/libmongocrypt<file_sep>/bindings/python/.evergreen/test.sh
#!/bin/bash
# Test the Python bindings for libmongocrypt
set -o xtrace # Write all commands first to stderr
set -o errexit # Exit the script with error if any of the commands fail
# MONGOCRYPT_DIR is set by libmongocrypt/.everg... | 1d68eb7328edfaddbf7ef4301e44338ba26e9c9a | [
"Shell"
] | 1 | Shell | LucasLeandro1204/libmongocrypt | 19bb1a4fed5d89a1265054b0b92c224e1a2c5d5e | 74aaf095d5b6b9b4322f4b1f4c969d962fcfe7b0 |
refs/heads/master | <repo_name>propcom/isotope-staggered<file_sep>/script.js
/* Author:
<NAME>
*/
$(function(){
var $container = $('#container');
$container.isotope({
itemSelector: '.element',
layoutMode: 'staggeredMode',
staggeredMode: {
orientation : 'horizontal',
gutter : 145
}
});
});<f... | 4dcf7cfea412b648c80b0ce1a310ca6bce928fd3 | [
"JavaScript"
] | 2 | JavaScript | propcom/isotope-staggered | 715bd5f634a90d1bce310d66460e5ce422a0cc0c | 9bbf6ad2af6a82dc8f7e8d795a2efc1747d1f3fe |
refs/heads/main | <repo_name>anantmishra/london<file_sep>/src/main/java/uk/gov/hmrc/london/configuration/LondonConfiguration.java
package uk.gov.hmrc.london.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.ann... | 8eadb2f2e07acbf313450a8876d2af91abdf8b51 | [
"Markdown",
"Java"
] | 6 | Java | anantmishra/london | 70675eb75c8081846ed277bc7f4aa883b68819c0 | 15a7fbb1c6b954f00dbd53dc86dce2145a9cc79a |
refs/heads/master | <file_sep>#include <iostream>
#include <vector>
using namespace std;
bool isCycle(const vector<int>& djs, int root,
vector<bool>* visited = nullptr) {
if (visited == nullptr) {
visited = new vector<bool>(djs.size(), false);
}
if (root == -1) {
delete (visited);
return false;
}
if (visited->at(root)) {
... | e37feb10f38895ff3c64df256269236a417ee089 | [
"Makefile",
"Java",
"Python",
"C",
"C++"
] | 16 | C++ | pvrs12/competition | 0a40388a9b44ee3a5c1a087cb42c5153757f8581 | a0dd599896526de667c6ef8713f99dcc9b42a478 |
refs/heads/master | <repo_name>und3f/checkhost-client-ruby<file_sep>/README.md
# checkhost-client-ruby
A simple ruby client for [Check-Host.net API](https://check-host.net/about/api).
It was forked from checkhost-ruby to bring higher code quality.
## Installation
Add this line to your application's Gemfile (currently under development... | ea4615cb97912e18d7efb17a91554196590806c5 | [
"Markdown",
"Ruby"
] | 4 | Markdown | und3f/checkhost-client-ruby | 41555cd6d9a24d3c4ce8315c5adf5c0408e94f04 | b8e07a4ab7bf1193864fb8d7096253554c433149 |
refs/heads/master | <repo_name>iamcarlo/tss<file_sep>/index.php
<?php
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
include ("phpfunctions.php");
?>
<link rel="stylesheet" href="css/loginform.css" type="text/css" media="all">
<link rel="stylesheet" href="css/ddcolortabs.css" type="text/c... | 3e41bd2d7924d84faffc555b75febf8791f101e6 | [
"PHP"
] | 6 | PHP | iamcarlo/tss | 761a89502f5c30098adf65ec535486446dff3b2c | 56811ee704addcce70fccb867b7bc10a45239ee6 |
refs/heads/master | <file_sep>
// JavaScript resource loader
// We create a handler function and attach it to the onLaunch property. This function will execute the TVML app is launching.
App.onLaunch = function(options) {
console.log("Hello Columbia iOS Development Meetup");
//MARK: - Properties
var resourceLoader = new... | 0b1da2ea02630dabaee80a7de3b042434922a0b6 | [
"JavaScript",
"Swift"
] | 3 | JavaScript | durul/eurosport | 8f10deb7be97bfea4d5e993d04fb5bd119f13f95 | f486d1edf6709f9c27905c5abe408b8ce7cf667f |
refs/heads/master | <repo_name>DanilMazurkin/TEST-1<file_sep>/database/seeds/DatabaseSeeder.php
<?php
use Illuminate\Database\Seeder;
use App\Models\Product;
use App\Models\Category;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
... | 2f8682b067487d0228ebc508ac7f81e9ab0a6518 | [
"Markdown",
"PHP"
] | 13 | PHP | DanilMazurkin/TEST-1 | 40bcce30f26f378a001c7a9a8f6fd4d9994d85bc | d912904423edd75de92863494aef66ac47c801dd |
refs/heads/master | <file_sep># Dependencies
This document explains why certain dependencies are needed.
## Dev dependencies
- `@types/node`
Type support for node modules.
- `typescript`
Parse and build TypeScript.
- `@types/jest`, `jest`, `ts-jest`
Testing with Jest. `ts-jest` applies type-checking during tests.... | ed0a3daa8e92d465adf5fae9ad68fd99da06f261 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | Zodiase/Typescript-Module-Template | eeecd36bacc03e28cd039988f56fcdc972d72d6b | e70d7febf52fe2f4a59878570d74ff311c83cdcb |
refs/heads/master | <file_sep>package com.hero.spiderman.domain.search;
import com.hero.spiderman.domain.page.Page;
import com.hero.spiderman.processor.util.xml.annotition.Attr;
import com.hero.spiderman.processor.util.xml.annotition.Node;
import com.hero.spiderman.processor.util.xml.annotition.Tag;
import java.io.Serializable;
/**
* ... | 397d2d15f86c00c76ffec76ce3b813a3df888ccc | [
"Java",
"INI"
] | 33 | Java | MilkSDF/spiderman | 4667774c7ac02545d984d7acfdffeec6f550cd54 | 37336acd1276cb0b4f53849209fdf0b820f903ce |
refs/heads/master | <file_sep>"""
Collection of PyTorch activation functions, wrapped to fit Ivy syntax and signature.
"""
# global
import torch as _torch
def relu(x):
return _torch.nn.functional.relu(x)
def leaky_relu(x, alpha:float=0.2):
return _torch.nn.functional.leaky_relu(x, alpha)
def tanh(x):
return _torch.nn.fu... | b3798d200d6bfc9a5de69ba3710aae31fef7da79 | [
"Python",
"Dockerfile"
] | 45 | Python | Nikolatesla-lj/ivy | 723f74a3780073bf9a4b29743fb4f44b551e998c | 7f0aa7cf7a638ea58e0f1e48b6c8f6f04f93669a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.