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>cmake_minimum_required(VERSION 3.2.2)
project(test_string)
add_executable(${PROJECT_NAME}
main.cpp
${CMAKE_SOURCE_DIR}/src/mystring.cpp
)
add_test(string ${PROJECT_NAME})
<file_sep>#include "cpptest.h"
#include "mystring.h"
#include <iostream>
void testStringBasic()
{
String str1;
EXPEC... | 87b9f656a7c2f409f31617a351b9cf712c543025 | [
"C",
"CMake",
"C++"
] | 20 | CMake | paragonjh/unitTest | 0c04d2256f1c6fe5b7f2f54e3ed35b32dd0bf943 | f78932624a414c79f79f200842f7193fb297d19b |
refs/heads/master | <repo_name>e/experiments<file_sep>/chaining_songs/playlist_builder.py
#!/usr/bin/python
"""
Small script to chain songs
"""
import argparse
import json
class NoValidSongFound(Exception):
pass
class PlaylistBuilder:
"""
Provides some methods to create solid playlists
"""
def __init__(self, ... | 1ec1521c3db0d914d2eb1c452a763193e5761af2 | [
"Markdown",
"Python"
] | 7 | Python | e/experiments | b895018f8146f03f2cb8e4147aca188d3849ee54 | ea282300bf14b5c28bb52f9ac63e12da7d9f231f |
refs/heads/master | <repo_name>belamorris/clicky-game<file_sep>/src/App.js
import React, { Component } from "react";
import { Shake } from "reshake";
import CharacterCard from "./components/CharacterCard";
import Wrapper from "./components/Wrapper";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
import... | d7dc1f07dab1eff082270eca95ecac25497586c3 | [
"JavaScript"
] | 3 | JavaScript | belamorris/clicky-game | 751f1c56a22a0dbcb2d0b92284bde7c963154a57 | c1813a5353de3246f922672c397d2a5a273ab76e |
refs/heads/master | <file_sep>package com.domo.refresh;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.io.IOException;
public class DimRefresh
{
private WebDriver driver;
pub... | 5d738f64a1895b4db62a21251027c6cadae819dd | [
"Java",
"INI"
] | 3 | Java | vikramshekhawat/Automatic_refresh | c756f724d2a43c21257741300f31f66de8911e08 | 722f6bfd235d09253273ca26b7dde82a25ef7610 |
refs/heads/master | <repo_name>montygoldy/moviereview<file_sep>/README.md
This is a sample rails movie review app<file_sep>/app/controllers/reviews_controller.rb
class ReviewsController < ApplicationController
before_action :find_review, only: [:show, :edit, :update, :destroy]
before_action :authenticate_user!
before_action :set_mov... | 675c09c8edcc019f8e956bef7fa5f52e923cb6c8 | [
"Markdown",
"Ruby"
] | 2 | Markdown | montygoldy/moviereview | eb4b2a0d0871470146ba0062a46d06d58dcd292c | 40760490a4cd2689e4475afbc6e6414f9a539314 |
refs/heads/main | <file_sep>package com.finago.interview.task.service;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import java.io.IOException;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.uti... | 9444148d22295d1b452c3f4dbcb4129a2a9753dc | [
"Markdown",
"Java",
"Dockerfile"
] | 5 | Java | snhariharan/batch-processor | e56c1c9d8b24581b44169aa9268b5c1e8ea2e027 | 6e6435ef731dcf5b0dbfdb285b50f440bff7a7df |
refs/heads/master | <repo_name>kangbb/todolist<file_sep>/README.md
# TODOLIST

<br/>一个简单的网站demo。
## 主要特点
1. 完全自动化部署:Travis CLI持续集成+阿里云docker容器服务+阿里云ECS主机
2. 使用docker及docker-compose快速编排服务
3. golang作为后台语言
4. mysql实现主从服务配置
5. ngix实现反向代理
## 项目内容说明
- `core/`:后端服务核心,controller处理前端... | 915da38a85c0e970c84a05fd33676c03edc90c97 | [
"Markdown",
"Go",
"Dockerfile",
"Shell"
] | 8 | Markdown | kangbb/todolist | a509002ba3f7022caf22822ffcdddbe4c25ab335 | 37e10562991fe00ed96d960e6cbce3639d9bf2f0 |
refs/heads/master | <repo_name>Significant-Gravitas/Auto-GPT-Plugins<file_sep>/src/autogpt_plugins/bing_search/README.zh.md
# Auto-GPT 必应搜索插件
语言: [English](https://github.com/Significant-Gravitas/Auto-GPT-Plugins/tree/master/src/autogpt_plugins/bing_search/README.md) | [中文](https://github.com/Significant-Gravitas/Auto-GPT-Plugins/tree/ma... | 9317a3ce2d972e65d4c08242606e10ad99c93c23 | [
"Markdown",
"TOML",
"Makefile",
"INI",
"Python",
"Text",
"Shell"
] | 50 | Markdown | Significant-Gravitas/Auto-GPT-Plugins | 397589394138f9ed43660b1aa99d501a8bfff061 | c751b43fedf34a6e157e09c8b5cd5f9f4e3d17ac |
refs/heads/master | <repo_name>AMMDAW2021/Programacion_c1<file_sep>/03_iteraciones/pseudocode/doWhile.js
do {
operaciones;
} while (condición);<file_sep>/03_iteraciones/propuestos/6.js
let numero = prompt("Introduce un número");
if (numero <= 0) {
console.log("Debes introducir un número mayor que 0");
} else {
let divisible =... | aa456a45f86823284f15ab79a957cc186fae48be | [
"JavaScript"
] | 80 | JavaScript | AMMDAW2021/Programacion_c1 | cc77b2e67a13710964a0f867fb9c457461eea3df | e39f07526ac1f667140ea20c018b5cecee68ba5e |
refs/heads/master | <file_sep># ScreenPlayReto1
Primer Reto de ScreenPlay llenado un formulario
<file_sep>package ScreenPlay.Reto1.Model;
public class RegistroAutomatico {
private String firstName;
private String lastName;
private String adress;
private String email;
private String phone;
private String languages;
private String ... | ea706e29424ffba472a0ad18dbff34f68c29768d | [
"Markdown",
"Java"
] | 2 | Markdown | DavidTorqui/ScreenPlayReto1 | 292cc2d222cbf312b4fbe75afbea7e82ccd708ef | 6704c1db2a79b4b4449f19461868fa9bb1136ea2 |
refs/heads/main | <repo_name>coopercenter/va-local-tax-rates<file_sep>/Appendix-C.Rmd
# Percentage Share of Total Local Taxes from Specific Sources, FY 2018 {#secAppendixC}
```{r}
# Percentage Share of Total Local Taxes from Specific Sources, FY 2018
```
<file_sep>/_book/18-legal-documents.md
# Legal Document Taxes
In fiscal year 201... | 3d298bc9896eda12d27c35bf25e0cd0b50c13b69 | [
"Markdown",
"R",
"RMarkdown"
] | 51 | RMarkdown | coopercenter/va-local-tax-rates | 7907a51314ef5f95b21e16f0785709201f037269 | c2e08709bb9c7b8bed4f89a573fe5ca5d3af5c9f |
refs/heads/master | <file_sep><?php
require_once('model/user.php');
function history()
{
$user = new stdClass();
$user->id = isset($_SESSION['user_id']) ? $_SESSION['user_id'] : false;
$supp_id = isset($_GET['supp']) ? $_GET['supp'] : null;
if ($supp_id !== null) {
var_dump(User::deleteMediaFromHistory($supp... | ecda73c39b823a422ff95ba5709a157f43bc86e6 | [
"SQL",
"PHP"
] | 12 | PHP | Reverse-moT/CodFlix | 019e975b0feb20f40e2f3c585acbe31b3207c5a8 | fc0ac5b49aeb57791ca10a1a243d957880625c34 |
refs/heads/master | <repo_name>kvasnytsyaira/GL_Hibernate_hw1<file_sep>/src/main/java/DAO/DepartmentDAOImpl.java
package DAO;
import model.Department;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import java.util.List;
public class DepartmentDAOImpl implements DAO<Department, Integ... | 1dcde2684d4cef19e6c26b0d1a0bd0d0ce76660f | [
"Java"
] | 2 | Java | kvasnytsyaira/GL_Hibernate_hw1 | b0130a037d7c1f043dbb56112d009426cebb421e | 736daadc4ad90551449181a3bc49157cc4c07cd2 |
refs/heads/master | <file_sep>package com.hackthenorth.android.model;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.*;
public class Update extends Model implements Compa... | 10b1833fa0f31af25ac003f323ff129abaa65f6d | [
"Markdown",
"Java"
] | 13 | Java | hackthenorth/hackthenorth-android | 18fb2826861b415df5367ec5551029a869aeab7a | 197f3ff79e9458e393258876315b6191a2ee85e8 |
refs/heads/master | <file_sep>package com.comers.annotation.mode;
public class Mode {
public static final int MAIN = 1;
public static final int BACKGROUND = 2;
public static final int NEW_THREAD = 3;
public static final int POST_THREAD = 4;
}
<file_sep>implementation-class=com.comers.plugin.OkBusPlugin
<file_sep>apply pl... | ca3c94190be0d4204f0e81ac9b0cd61e3cbae94c | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 17 | Java | comerss/OkBus | c5dd0ba77f661f3db7af3b68fd3d2c242cc4e041 | a948c49be9e41307079abfd9b4d19cdba58f58bf |
refs/heads/master | <repo_name>staimphin/wp_pdf_manager<file_sep>/index.php
<?php
/*
Plugin Name: PDF upload manger
Plugin URI:
Description:PDF management for Wordpress
Version: 0.3
Author: <NAME>
Author email: <EMAIL>
Author URI:
License: GPLv2
*/
/* Copyright 2015 <NAME> (email : <EMAIL>)
This program is free software; you... | d50156de74e0c97bbcae70846f80e11528a5708b | [
"Markdown",
"JavaScript",
"PHP"
] | 9 | PHP | staimphin/wp_pdf_manager | 79228bab63631c51da88ca9f7f140a9c1d143fdb | 318aee826624aa76537782f35138cc5e9710c741 |
refs/heads/master | <file_sep># Flashcard-Generator Command Line App
## Flashcard Generator application is a backend that essentially constitutes an API that allows users to create two types of flashcards:
1. Basic flashcards, which have a front ("Who was the first president of the United States?"), and a back ("<NAME>").
2. Cloze-Delete... | 871da996c532264338d55aa0e7daa9e6dfcdb9ad | [
"Markdown",
"JavaScript"
] | 2 | Markdown | acbrent25/Flashcard-Generator | 6d3954bbe445fd0e146c18c3ef425bdf50122e32 | 4d430bb99c5ab6d94c241de32e7aa1f7b349c4c4 |
refs/heads/main | <file_sep># CodeAcademy-Full-Stack-Engineering<file_sep>let story = 'Last weekend, I took literally the most beautiful bike ride of my life. The route is called "The 9W to Nyack" and it actually stretches all the way from Riverside Park in Manhattan to South Nyack, New Jersey. It\'s really an adventure from beginning t... | dcb5b27ea251276e42b75619decd5504a6ff29f3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bradbieselin/CodeAcademy-Full-Stack-Engineering | 9767dfdbb437f09bff1ae116933159361fcd27c6 | 4a798393b3e84dc77f5a7161acd7fd8da3b1ea69 |
refs/heads/master | <repo_name>omar-enrique/Data-Structures<file_sep>/C++Based/CPP_LinkedList/CppLinkedList/Queue.h
#pragma once
#include "List.h"
template <class T>
class Queue : private List<T>
{
public:
Queue();
~Queue();
bool enqueue(T &data);
bool dequeue(T &data);
};
template <class T>
Queue<T>::Queue() : List<T>()
{
}
temp... | 27ed4f47c155e6bfc6542611e70c1e1ca79c0138 | [
"Markdown",
"Java",
"C++"
] | 17 | C++ | omar-enrique/Data-Structures | 07361c9fed396e41960efd1787a564444a146447 | 8db39c4e33c1d6c9d80feac9e909633c24455f51 |
refs/heads/main | <repo_name>HerbLuo/zz-trans<file_sep>/database/ddl.sql
/* 版本 */
CREATE TABLE version (
id bigint unsigned AUTO_INCREMENT PRIMARY KEY,
uid bigint unsigned NULL COMMENT '当数据私有时可选',
business varchar(32) NOT NULL COMMENT '业务',
... | 7d5840495ef562e2be9fbfc804b16812506e4283 | [
"Markdown",
"SQL",
"TypeScript"
] | 4 | SQL | HerbLuo/zz-trans | affc30f0a769c1d7d7abb9784cf0c79c45ecdded | 26009d877585c96d5498581411a2d5b858001d8c |
refs/heads/master | <repo_name>cherepnalkovski/kafka-time-window<file_sep>/src/main/java/org/arkcase/akrcasetimewindowing/service/TransactionTimestampExtractor.java
package org.arkcase.akrcasetimewindowing.service;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;
import org.apache.kafka.clients.consumer.Consum... | 19d42877d486e296f080d4876f143ccb826c1425 | [
"Markdown",
"Java"
] | 4 | Java | cherepnalkovski/kafka-time-window | 53c6c9f65518efe5511b6e407c6358315db69111 | 85de099cc355b5923d01a85d914cb4b428dc5914 |
refs/heads/master | <repo_name>Kah919/school-domain-dumbo-web-121018<file_sep>/lib/school.rb
# code here!
require 'pry'
class School
def initialize(name)
@name = name
@roster = {}
end
def roster
@roster
end
def add_student(name, grade)
if @roster.keys.include?(grade)
@roster[grade] << name
else
... | c7bab0880b6e07f080746186ab5383868c5d0a43 | [
"Ruby"
] | 1 | Ruby | Kah919/school-domain-dumbo-web-121018 | ba5ac8dc0feacab0e67222853d6e56b9905dff2a | 521d8da6638d23babff25276be0a4efb8e6bbfc4 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package banco;
import bdd.Conexion;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet... | 89f1587af1f7f90c085d01f228ff4da1e9bd8db4 | [
"Java"
] | 5 | Java | reimerghost/EjemplosIPC2 | 06f9918d0b12202e30f3cba86fb1cae4f6cd19f5 | bc78f8fc351e8b4b5bd030161a868c02720cb171 |
refs/heads/master | <file_sep>using COMMON.Entidades;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace COMMON.Interfaces
{
public interface IUsuariosManager : IGenericManager<Usuario>
{
Usuario Login(string usuario, string pass);
Usuario... | b1a9db718ad2617b0c48b3172fff6783241af783 | [
"C#"
] | 15 | C# | gusLopezC/Xamarin_AppMiescuela | b9fe655010a484e395e89c7ab870ecbb3a4cf34c | 5c7fa13ec196c2ba3c7d9051158b13548a3ab067 |
refs/heads/master | <file_sep>tranID=tran_log_id
tranType=description
startDate=start_tran_date
startTime=start_tran_time
endDate=end_tran_date
endTime=end_tran_time
employee=employee_id
controlNum=control_number
lineNum=line_number
whID=wh_id
fromLoc=location_id
toLoc=location_id_2
palletID=hu_id
itemNo=regexp_extract(item_number,'(\\d+)... | f44536f6320be66e22a52c97278b651ccff55f57 | [
"Shell",
"INI"
] | 2 | INI | epermana/hj_tranlog | 64f46645fba9f5d4a9cc3f35c9b1d04d97345dff | 7ae9e8b8a19caabdb086a2bb2a0585768e3ad231 |
refs/heads/master | <file_sep>#coding=utf-8
# 本题为考试单行多行输入输出规范示例,无需提交,不计分。
import sys
for i in range(t):
fi<file_sep>a = 24
for ia in range(3, a + 1): # range包括前者不包括后者
for b in range(1, ia):
for c in range(b, ia):
for d in range(c, ia):
if ia * ia * ia == b * b * b + c * c * c + d * d * d:
... | 4aa64ab1fb77dec07f854660fed46febc573f9e3 | [
"Python"
] | 2 | Python | ZhuoGuihuang/Leetcode | b900cdde99ae7a61e75d865f63acb3576011c47f | 209bee1ba2aabe5e26a5fbf14b289aba0d5e53b2 |
refs/heads/master | <repo_name>Gafchik/MY_OLX<file_sep>/MY_OLX/Controllers/HomeController.cs
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using MY_OLX.Models;
using System.Web;
using System;
using System.Collections.Generic;
using System.Diagnosti... | 7d6c5652edc098256f60ec6a333b583853666c6c | [
"C#"
] | 2 | C# | Gafchik/MY_OLX | b2c03f4e7efcf43c4ff5508446477a22f9c046d1 | a7c5e313e433272d02d14c4e32888d7f2cecf682 |
refs/heads/master | <repo_name>tongjinle/MineBang<file_sep>/src/config.ts
class Config {
static size: number = 64;
static width: number = 10;
static height: number = 8;
static mapHeight:number = 512;
static ratio: number = .2;
static longTouchInterval = 600;
}<file_sep>/src/logic/boomBox.ts
/**
* BoomBox
*/
cl... | 2ec6942305142b1cd6c97a0de618084986de3f2f | [
"TypeScript"
] | 10 | TypeScript | tongjinle/MineBang | f82bb4541c8a2360b4c711c23fc67d0aff84b9b8 | 508f1c4b7a0fa06474e02879f3fb103388551d94 |
refs/heads/master | <repo_name>opendashboard/opendashboard<file_sep>/src/index.js
import express from 'express';
import http from 'http';
import socketio from 'socket.io';
// Create an express instance
const app = express();
// Fire up the express server
const server = http.createServer(app).listen(3000, () => {
console.log('Server is... | 29dedf627c739797a62a8c780f62863a468061ae | [
"JavaScript"
] | 1 | JavaScript | opendashboard/opendashboard | d4f50a92a375b7a1e8555e88d7e759da32816a38 | 4c3711c02d44550be9f62b65ce013f6214ad37b5 |
refs/heads/master | <repo_name>magdkudama/loqate-api<file_sep>/README.md
LOQATE PHP CLIENT
=================
Loqate PHP client. Simply using the API endpoint I need for now.
```php
<?php
use MagdKudama\Loqate\Client;
include_once __DIR__ . '/vendor/autoload.php';
$client = new Client('my-api-key');
$client->bankAccount()->validate('... | f79f8e59f03a96f2c109b063e3f9893c5f8050f5 | [
"Markdown",
"PHP"
] | 6 | Markdown | magdkudama/loqate-api | 8832010694f4b0f341eb07556ca8605eb783dee8 | 78fc5139723d932b56a317a429ef785e1e80025e |
refs/heads/master | <file_sep>package com.luisgarcia.controllers;
import com.luisgarcia.models.Player;
public class PlayerController {
private Player player;
}
<file_sep>package com.luisgarcia;
import com.luisgarcia.models.Board;
import com.luisgarcia.models.Boat;
import com.luisgarcia.models.Player;
import java.util.Scanner;
pub... | 44f4cde3e68bf665e9fe6242fec284eca9b6eadc | [
"Java"
] | 4 | Java | TheLemmon/Battleship | 9ecb342c5ea97a795129bbc3278a156854c62319 | 25e23b25174956c034cde0694d783ccaa56e9110 |
refs/heads/master | <repo_name>GiovanaMayer/project<file_sep>/project-master/rest_blog/api/post/read.php
<?php
// if(!isset($_SERVER['PHP_AUTH_USER'])){
// header('WWW-Authenitcate: Basic realm="Página Restrita"');
// header('HTTP/1.0 401 Unauthorized');
// echo json_encode(["mensagem" => "Autenticação necessária"
//... | acb371442d0c399ba122a5558f36f5bfb82145f6 | [
"SQL",
"PHP"
] | 3 | PHP | GiovanaMayer/project | fee29311870b667a3d58692cbfc4b230758cb1a6 | 36b63d455dd3b23955eba525c406dab5b12c192e |
refs/heads/master | <repo_name>atuljain1383/HOSTAPI<file_sep>/models/student.js
import mongoose from 'mongoose';
import Program from '../models/program.js';
import AbacusSheet from '../models/AbacusSheet.js';
const studentSchema = new mongoose.Schema({
Name: {
type:String,
required:true,
minlength:1,
... | 4a4e65cece4ccf30599cc72e46bd476d323a29ec | [
"JavaScript",
"Dockerfile"
] | 5 | JavaScript | atuljain1383/HOSTAPI | 5e36aace95f244eb75e13cb47a6cdd57c6465f50 | 53523e97b36d9616eca05018a10ae1d95bc1f462 |
refs/heads/master | <repo_name>chintan94/dl-hw<file_sep>/hw1/assignment1/ecbm4040/features/pca.py
import time
import numpy as np
def pca_naive(X, K):
"""
PCA -- naive version
Inputs:
- X: (float) A numpy array of shape (N, D) where N is the number of samples,
D is the number of features
- K: (int) ... | a3abfa455fffa889765d3ad14d557efa3f76f6e1 | [
"Markdown",
"Python"
] | 5 | Python | chintan94/dl-hw | 0f9a5af95a49628e791cd58066c98bdc87601d5d | 76548d5f217ff9604fb0d221092fe47931462b91 |
refs/heads/master | <file_sep>import {builder, metaCache, traverseMeta} from "../simplicity.js";
const renderedItems = new WeakMap();
export function lifeCycle(element = document.body) {
console.time("lifeCycle")
for (const meta of metaCache) {
if (meta[0].element.isConnected) {
traverseMeta(meta, (leaf) =>... | d516159db896ebc1ab0d0611a79512c3f6238f21 | [
"JavaScript"
] | 28 | JavaScript | HerbrichCorporation/simplicity | ef8a413f674c27e80d227e9c91f6fec10ea16c20 | 80ddbe22f74a4f953e5f171089ed7a44b5fa222a |
refs/heads/master | <repo_name>Lepstr/PyBit<file_sep>/README.md
# PyBit
bit manipulation library
<file_sep>/bit.py
from sys import stderr
BYTES_TYPE_I64: int = 64 / 8
BYTES_TYPE_I32: int = 32 / 8
BYTES_TYPE_I16: int = 16 / 8
BYTES_TYPE_I8: int = 8 / 8
class BitfieldType:
pass
def _get_type_by_bits(bits: int) -> int:
if int(b... | 38eb2319892b55bd387b1fc119d918e04974c0a7 | [
"Markdown",
"Python"
] | 2 | Markdown | Lepstr/PyBit | 925d74cca34e598d9b9d37249c2a519df572987f | 5cdec8419e4531699681c4527346f56f8147d424 |
refs/heads/master | <file_sep>const items = document.querySelectorAll(".list-group-item[data-toggle='collapse'");
function cambiarFondo(e){
setTimeout(() => {
if ($(this).attr('aria-expanded') === "false") {
$(this).removeClass('list-group-item-active');
} else {
$(this).addClass('list-group-item-active');
}
},100);
}
item... | 2279a650d28a29cb0c113bf9116ace8b4020041c | [
"JavaScript",
"PHP",
"Markdown"
] | 3 | JavaScript | handcd/EduCapital | efbc012d25ab0c7e9112e01a1a6c23bef7f9630d | 895d1561f22b343470254bbb69b15234e40f748e |
refs/heads/master | <repo_name>Mavitis/RoomInspector<file_sep>/src/root/Preprocessing/open_close_usage.py
import sys
import numpy as np
import scipy as sc
import matcompat
import scipy.ndimage
import matplotlib.pyplot as plt
# if available import pylab (from matlibplot)
try:
import matplotlib.pylab as plt
except ImportError:
pass
... | 278ab17809ff1947d5d4b193c14171d73835686e | [
"Python"
] | 60 | Python | Mavitis/RoomInspector | c70669fa62bbec3ed67e3d453bb6f4df2e5c0e71 | cd4e77c5eb397f4d719de1d912493dd4bca828ff |
refs/heads/master | <repo_name>rafmsou/node-express-sample<file_sep>/utils/travis-scripts/pullrequest.sh
#!/bin/bash
#The -e flag causes the script to exit as soon as one command returns a non-zero exit code.
#The -v flag makes the shell print all lines in the script before executing them
set -ev
if [ "${TRAVIS_PULL_REQUEST}" = "false" ... | c05c8c4a5408e33fe7469eb9238f7cbe48b51fb0 | [
"JavaScript",
"Shell"
] | 4 | Shell | rafmsou/node-express-sample | ec1d32a6356ed912de4060d49e38dcdde1567212 | 0bfe023ee5dbe5c4f5b8fa2a93056a932da538a6 |
refs/heads/master | <file_sep>class Product < ActiveRecord::Base
belongs_to :category
belongs_to :user
has_many :reviews
validates :description, :title, presence: true
validates :price, :format => { :with => /\A\d+(?:\.\d{0,2})?\z/ }, presence: true
def average_rating
sum = 0
self.reviews.each do |review|
sum +... | d4945b42972281f15dcf00168426d7025c1df1c5 | [
"Ruby"
] | 3 | Ruby | badamziom/adam-workshops | 42e1756a7191b16d7b414eda8b29b43aed93facf | 2bb544c800e0e122b3188c233c59eceac82a3770 |
refs/heads/master | <repo_name>girishf15/DataFlairApp<file_sep>/dataflair/demo/views.py
from django.shortcuts import redirect
from django.http import HttpResponse
from django.views.decorators.cache import cache_page
@cache_page(200)
def index(request):
return HttpResponse("<h1>Data Flair Django</h1>Hello, you just configured your Fi... | 4c7af901db1fa16cdf1cc566c749abb0b663ce84 | [
"Python",
"Text"
] | 4 | Python | girishf15/DataFlairApp | 3dd0a9cd55006b29af02b21d85975563126551ac | 2ac27533d953bea2be3227e083414eb7faf711c6 |
refs/heads/master | <file_sep>public class ArrayDeque<T> {
private T[] items;
private int capacity;
private int size;
private int nextFirst;
private int nextLast;
private int modCapacity(int i) {
return (i % capacity);
}
private boolean isFull() {
return (size == capacity);
}
pri... | ec7e366ba23d78b323f8a63eb8e2a659208835c1 | [
"Java"
] | 4 | Java | Asuka20/cs61b-2018-spring | af63284b208b94106a9378bf0ef202ca09a6ac8f | 8b11484956dbe8f261052d790bca8f9d2a1d1683 |
refs/heads/master | <file_sep>class ShoppingExperience < ApplicationRecord
has_many :items , through: :cart
end
<file_sep>Rails.application.routes.draw do
resources :shex_items
resources :shopping_experiences
resources :items
resources :categories
root to: 'posts#index'
resources :posts
resources :home
# For detail... | bcec7c4ce3874f31b5c462b09f284606c2382113 | [
"Ruby"
] | 4 | Ruby | HaroonAzhar/shop_rails | b26555ba3b159439d830552cae9b8e237f1c2064 | 5bccca246387775d178e6c5e6690129a2d45e075 |
refs/heads/master | <repo_name>sabates/couchdb4j<file_sep>/src/test/com/fourspaces/couchdb/test/TestHttpClient.java
package com.fourspaces.couchdb.test;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.cl... | 1362cedb356371b0dd399a500d2f9ab59fdfccc9 | [
"Java"
] | 1 | Java | sabates/couchdb4j | b75e6f6c83ccb7f7fa52f272bb035a711ff9b9cd | 595e0d5e6dfb8aa9206cc00baf1659c60626423c |
refs/heads/main | <file_sep>function DeleteEvents() {
/* The DeleteEvents function in Calendar Scheduler takes input from
the AHS Personal Scheduler Google Spreadsheet and then deletes the
appointments for each class on each school day from the specified
Google Calendar. It only deletes events made by CreateEvents, ... | 0b2a98bda7a5a86a2ca6bfa983431055cfb7f876 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mbezaire/ahs-scheduler | 0d405b2fdf480c5de0526779358902744c13d62a | 5c55dc9c7bb45e27e09bb9dd93821d8891558a96 |
refs/heads/master | <file_sep>function Game(dimensions){//Class
this.dimensions = dimensions;
this.progress = 0;
this.grid = this.generate_grid();
this.previous_square = {};
this.current_square = {};
}
Game.prototype.generate_grid = function(){
arr_of_ns = custom_array(this.dimensions);
my_grid = []
for (var i=0; i<this.dimensio... | c155e85ea1d5504ceab77ae3c028ca7443326aa7 | [
"JavaScript",
"Dockerfile"
] | 2 | JavaScript | nekatak/js-game | 15ca0960d27e87d957c90b89fa0f6de3bad74930 | efe74da6d3ad81b6c144e8624d10c0f1360fe176 |
refs/heads/master | <repo_name>objcio/S01E225-swiftui-layout-explained-view-protocols-and-shapes<file_sep>/README.md
# Swift Talk
## SwiftUI Layout Explained: View Protocols and Shapes
This is the code that accompanies Swift Talk Episode 225: [SwiftUI Layout Explained: View Protocols and Shapes](https://talk.objc.io/episodes/S01E225-swif... | 37d124abd3a7b8fac97fe7015c03df5733d21f49 | [
"Markdown",
"Swift"
] | 2 | Markdown | objcio/S01E225-swiftui-layout-explained-view-protocols-and-shapes | 987f2f643393c955c15292df6c84735fd30fb524 | 783d876428cb9db7b0c3cd2caff9d16642c58269 |
refs/heads/master | <file_sep>class SmsBox:
def __init__(self, id_box, box_code, description):
self._id_box = id_box
self._box_code = box_code
self._description = description
@property
def id_box(self):
return self._id_box
@id_box.setter
def id_box(self, id_box):
self._id_box =... | 3b9b74deb568732bf97a9ac6f352dbfed6e88b32 | [
"Markdown",
"Python",
"Text"
] | 13 | Python | anhquoctran/PiPhone | 47ff148dc267127ab65c1181d5151d1d52081a72 | 122d327dec044f9c25508435e24627bde94b7b5c |
refs/heads/master | <file_sep>//copied from a web site
var propName={0:'project',1:'coder',2:'story',3:'task',4:'iteration',5:'complexity'};
var taskList=Array();
window.addEventListener('load', eventWindowLoaded,false);
function readSingleFile(evt) {
//Retrieve the first (and only!) File from the FileList object
var f = evt.targe... | 2b395c2e3947501309369fcbed52cda59d9e5bab | [
"JavaScript"
] | 1 | JavaScript | davidbethke/Spike2 | 0c84f67bc95b7362b92350323f6b4d4758d387c3 | 9539164322d110c14252db83edcb7ffabc34de52 |
refs/heads/master | <file_sep><h2>Methods run, sorted chronologically</h2><h3>>> means before, << means after</h3><p/><br/><em>Default suite</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/>
<table border="1">
<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>conf... | aec6fa71f3a148cf2ec2f6b21628abf5c684b584 | [
"Java",
"HTML"
] | 4 | HTML | sumithrawirecard/DDDTest | 1addc3e6b78dc9b010b782f9cd9c75e312a15863 | 90afa4171d5e3a7ec3cec13b46352b9c7cea8bbe |
refs/heads/master | <file_sep>#! /usr/bin/python3
# -*- coding:utf-8 -*-
import emoji
import telepot
import traceback
from datetime import datetime, timedelta
class ProgressBot:
def __init__(self, task = "", updates = (0.1, 5*60)):
"""Init the bot."""
# Load the config file
self.loadConfig()
# Save... | fd9ac6fad68f476dfa814812945dd75fb22edb9e | [
"Markdown",
"Python"
] | 3 | Python | a2ohm/ProgressBot | 38657e687ef5e3348ffa52d6bab1fa4a10c1f254 | 1f323aec3b3bdf733960cfbf86a1f5696dc907fa |
refs/heads/master | <file_sep>var app = require('http').createServer(handler).listen(1337);
var io = require('socket.io').listen(app,{origins: '*:*'});
var User = {};
var Ids = [];
var text = [];
function handler(req,res){
res.writeHead(200, {'Content-Type':'text/plain'});
res.end('Hello Node\n You are really really awesome!');
}... | 4352817581db8ea11de638fc23115cc49f930b5c | [
"JavaScript"
] | 1 | JavaScript | tamamadesu/whoisspy | e4ab860379863d84a653c9329a1c03dddda7bb70 | c9fd2720cf86741e60c746ecac33de10e8c6a712 |
refs/heads/master | <repo_name>brtos/simulador<file_sep>/platforms/eclipse_mingw_win32/src/config/tasks.h
void TarefaTempoDoSistema(void);
void TarefaADC(void);
void TarefaGPIO(void);
void SerialTask(void);
void TerminalTask(void);
<file_sep>/platforms/eclipse_mingw_win32/src/drivers/GPIOx.c
/*
* GPIOx.c
*
* Created on: 10 de ago de 2... | 6555089d11fdb5ba8d28183ec3281fed22bae340 | [
"Markdown",
"C",
"Makefile"
] | 19 | C | brtos/simulador | 6ebab3b36f2cca31feabeec148b6bc21cd9e8fae | 1bc83cba9aec07872b06ffc35ce9478a34802214 |
refs/heads/main | <repo_name>BAHSharma/VACovid<file_sep>/CCTPull.py
import pandas as pd
import numpy as np
def CCTPull(CountyVACOVID):
VAMC = pd.read_csv('data_folder/CleanVAMC.csv',dtype={'VISN':'int','VAMC':'str','FIPS':'str','COUNTY':'str','STATE':'str'})
UScovid = pd.read_csv('https://raw.githubusercontent.com/nytimes/covi... | 4fc6415464071e14bf1fa65a28d4c5172bd6a653 | [
"Python"
] | 1 | Python | BAHSharma/VACovid | 31f7d4e26de5d75a1bef0668b6808a840f17d534 | afa544cb00d0b284a5f8ef23b6933185ec987695 |
refs/heads/master | <file_sep>from module import *
while True :
print('Menu', '---------', '1: add', "2: sub", '3: multiply', '4: divide','5: stop', sep='\n')
x = int(input(':'))
if x == 1:
a = int(input('num1 :'))
b = int(input('num2 :'))
print(add(a, b))
elif x == 2:
a = int(inp... | d89852c2779b77e0feb26756f308d8fe50226b12 | [
"Python"
] | 6 | Python | 10kdkd/first_repo | 5ccfd668ec4a06945b65687229acc753b0043369 | f880f04446ca3e4ae230840f6e6a6479042e5e25 |
refs/heads/master | <file_sep>// Create a weapon class
// Fetch data from http://rpg-api.com/weapons - there's conveniently 25 objects
// Make that data objects of the class
// Add objects to an array, and duplicate for filtering
// Show the filtered list
// new objects are pushed to both lists
// filtered list can reset to master
// Card... | 330b587b8e09420491bf82bc36e7ba78559bad88 | [
"JavaScript"
] | 1 | JavaScript | pteroborne/card_project | 40499defa2e6b4305c2aefc6418ee851ac62fb10 | 623b8be661e60faef7c1f19e79ae58460dfb3643 |
refs/heads/master | <file_sep>/**
Problem: Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots ("."), e.g.,172.16.254.1;
Besides, lea... | 1bc32779fbdd9c496962a6db8191bd20ac9e00d6 | [
"Java"
] | 4 | Java | itnug987/LeetCode-June-Challenge | a0b7a71afc82c9e87d0da7567d265dfec53e505c | 2737ba6d3cb08192bb486875813154b8b65c01b0 |
refs/heads/master | <repo_name>svick/XAML-conversion<file_sep>/XAML conversion/Parsers/XamlParser.cs
using System.Xml.Linq;
namespace XamlConversion.Parsers
{
abstract class XamlParser : ParserBase
{
protected XamlParser(XamlConvertor.State state)
: base(state)
{}
public void Parse(XElement el... | 6cad43d055405337772bcff9613ebc2a8b9b69cc | [
"C#"
] | 11 | C# | svick/XAML-conversion | 17e66d0130931cdd4134f30787479de00869967c | 06741d723e4a6d748e05ebd30c009151b7cd1224 |
refs/heads/master | <file_sep>class TagPicture < ApplicationRecord
belongs_to :picture
belongs_to :tag
def self.findByPictures(args)
TagPicture.where('picture_id LIKE :query', query: args)
end
def self.findByTags(args)
TagPicture.where('tag_id LIKE :query', query: args)
end
end
<file_sep>class Picture < ApplicationRe... | 36927f054befc36cbbc0fd177a9d1e617f6b4bb8 | [
"JavaScript",
"Ruby"
] | 11 | Ruby | PierrePlessy/ynsta | 854ed820130dc77d78be1bcc1378881f5ed13740 | e3a06ad3e7ea3827b1af13f20f618d0ce872b142 |
refs/heads/master | <repo_name>Vadrey/PAI_lab<file_sep>/View/lab01.php
<!DOCTYPE html>
<html>
<body>
<?php
echo "
Małpy!
";
$zmienna="Definicja-";
echo
"<h2>Przykładowa \n $zmienna...</h2>";
echo
"$zmienna\n", "Ssaki o czterech chwytnych kończynach\n.";
print
"Zwykle większe od małpiatek\n.";
echo
"Obejmuje małpy szerokonose i małpy ... | c0072b763ff4d0e90fe297e46f334ad77bf25afb | [
"PHP"
] | 1 | PHP | Vadrey/PAI_lab | 5c2435fa77caa6e5d86da7147b3b4accac3553ac | 0bdb2b98c260744d51b6e3f5b078312b9811407a |
refs/heads/master | <repo_name>Boochoo/finland-conora-stats<file_sep>/src/component/templates/Charts/CommonPieChart/index.js
import CommonPieChart from './CommonPieChart';
export default CommonPieChart;
<file_sep>/src/pages/world.js
import fetch from 'isomorphic-fetch';
import dynamic from 'next/dynamic';
import Link from 'next/link';
im... | bfcd81a939de371b3eb940e515407fd329979699 | [
"JavaScript",
"Markdown"
] | 35 | JavaScript | Boochoo/finland-conora-stats | 3b9c706e1c726270c87980d5b568ab42c495fe6c | ca4637ceeaa64ac70a153f3f23a0a40e8e21b3c4 |
refs/heads/master | <repo_name>nhatthinh253/Global_Terrorism_Analysis<file_sep>/global_terrorism.py
import streamlit as st
import numpy as np
import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
import matplotlib.pyplot as plt
import pydeck as pdk
from plotly.subplots import make_subplots
@st.cache
def load_d... | 5f8e658f55c4e83f29fbd7a3a531300dea8c7622 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | nhatthinh253/Global_Terrorism_Analysis | 65b7ed5452f9a18a46ef36010242deb20ba1f855 | 7faad8d63ba7ea3b9ecb3c0ca8171ce3bfac7ead |
refs/heads/master | <file_sep>import numpy as np
from PIL import Image
import matplotlib.pylab as plt
#plt.rcParams['figure.figsize'] = (10, 12.0)
NUM_HADAMARD = 64
def normalize(y):
a,b=np.shape(y)
n = np.zeros((a,b))
for i in range(a):
for j in range(b):
n[i,j] = np.int(y[i,j])
return... | 93b854bce7252bd14893599e8bed2ca90f968c41 | [
"Python",
"Text"
] | 8 | Python | Wink-Xu/signaltosignal_demo | 3787ca7f7a79dee58d643e1572cead39231e785b | a37feb3e99c5b1c5b3cff363093cbb7bd56139eb |
refs/heads/master | <repo_name>EnochSpevivo/fls-international<file_sep>/src/components/application/PersonalInfo.js
import React, { useState } from 'react';
import Formsy from 'formsy-react';
import _isNil from 'lodash.isnil';
import { getCode } from 'country-list';
import TextInput from 'src/components/application/form/TextInput';
import... | 3e66fd27a3585012a8140c5f812f2fbfc4c589cf | [
"JavaScript",
"Markdown"
] | 171 | JavaScript | EnochSpevivo/fls-international | ca629cc4bb8f42a71b1ee411daa66eba2645c836 | 53ac15352c8539c4a055e4bb68158652c807f83d |
refs/heads/master | <file_sep># boot-leetcode
没有什么好说的,干就完了
<file_sep>package com.boot.leetcode;
/**
* @ClassName: _4FindMedianSortedArrays
* @Description:
* @Author: <NAME>
* @CreateTime: 2020-07-16 23:46
* @Version: 1.0
**/
public class _4FindMedianSortedArrays {
public static double findMedianSortArrays(int[] nums1,int[] num... | 91caec79a7e16f5abd4dafe08f6579ed34bb3aeb | [
"Markdown",
"Java"
] | 3 | Markdown | QinghangPeng/boot-leetcode | f6ac9874795b2fb6e620434b806755a2b0062382 | 2cc016e9fc086a1f651ebdfd5b49068a99e196c4 |
refs/heads/main | <repo_name>xhispams/Desafio_asteriscos_y_puntos<file_sep>/asteriscos_y_puntos.rb
#@Author: <NAME>
n = ARGV[0].to_i
n.times do |i|
if i % 2 == 0 # Si es par print i
print '*'
else
print '.'
end
end
print "\n"
| 32bdff4855be5e0caca7e5aac760fb5c65359384 | [
"Ruby"
] | 1 | Ruby | xhispams/Desafio_asteriscos_y_puntos | 8f72776dde62e69a63b0195b47b2f34f3b9c0b98 | 760fd6d6c945e5cc634c50e27d226c628ea02f68 |
refs/heads/master | <file_sep># newlog
A log system written by php
<file_sep><?php
/**
* Created by PhpStorm.
* User: levsion
* Date: 2016/8/5
* Time: 2:56 PM
*/
//配置log常量
if(IS_ONLINE_SERVER)
{
//define('NEW_LOG_HOST','');
define('NEW_LOG_PORT','5151');
define('NEW_LOG_CHANNEL','mapi');
define('NEW_LOG_EXECUTE_TIME'... | a6af3bd927f8af219952d4f9b148bd8953b79d09 | [
"Markdown",
"PHP"
] | 2 | Markdown | levsion/newlog | c7bf027ccec3b0eea7ea2cc83454a7fe66f72dd0 | e440bef852b3aefea40141564f37349105bbffec |
refs/heads/main | <repo_name>nomuyoshi/go_webapp_samples<file_sep>/chapter4/domainfinder/build.sh
#!/bin/zsh
# go install すれば $GOPATH/bin に置かれるのでこのスクリプトは不要
echo dmainfinder build
go build -o domainfinder
echo synonyms build
cd ../synonyms
go build -o ../domainfinder/lib/synonyms
echo available build
cd ../available
go build -o ../dom... | 749d83fe103157c5b21805f51765f97f887c64a5 | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 11 | Shell | nomuyoshi/go_webapp_samples | 72a174ebd212ceca95ac0ca362399fb214b6ebda | 2e0ac5fcb8bb1ef0acbd7e6ded9a8a1587080deb |
refs/heads/master | <file_sep># convert-png-to-jpeg
Converts png files in source dir to jpeg in destination dir.
Usage: convert.py "source directory" "destination directory"
<file_sep>#!/usr/local/bin/python3
import sys
import os
from PIL import Image
try:
src_dir = sys.argv[1]
dst_dir = sys.argv[2]
except IndexError:
print(... | a3ec977f7303ee2205c3047f93a782e8a21909e6 | [
"Markdown",
"Python"
] | 2 | Markdown | marstrander/convert-png-to-jpeg | acf539efa2ce440ad17eeb50c7394c0faa0217e2 | 8b54168f43346bdec564a08d5042dbc99ec3d0fc |
refs/heads/master | <repo_name>ricominten/getViewport<file_sep>/README.md
# getWidthHeight
Javascript get viewport width and height
<file_sep>/getViewport.js
// Get window height
function getHeight() {
return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
};
// Get windo... | 93683623bca131fa698d07f17509a4c8faa8bd2e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ricominten/getViewport | d1ef854635e04c7d6c4c93c3965a2553a318fa2b | 9e2a67f7ad6fb1dd6c166972274971fa6cc8c826 |
refs/heads/master | <repo_name>cookinrelaxin/DS<file_sep>/sort.cpp
#include <iostream>
#include <ctime>
using namespace std;
void print_array(int a[], int N) {
for (int i = 0; i < N; i ++) {
cout<<a[i]<<" ";
}
cout<<endl;
}
void selection_sort(int a[], int N) {
for (int i = 0; i < N; i++) {
int smallest = a[i];
int smallest_in... | 234209348cb7760acefaae8d9703c42dd8010227 | [
"C++"
] | 8 | C++ | cookinrelaxin/DS | f2a53651799cc38185c47f9ed6923405fc317f80 | 3af82fd9d05040045c8cd1e09551c83f583a525e |
refs/heads/master | <repo_name>russellsalcido/Quiz<file_sep>/assets/js/script.js
var StartScreen = document.getElementById("startscreen");
var Questionsdiv = document.getElementById("questions");
var StartBtn = document.getElementById("startbtn");
StartBtn.onclick = startquiz;
var CurrentQuestionIndex = 0;
var questiontitle = document.get... | fc7caaaa78f40c29114760131bb5aab1e6132bed | [
"JavaScript"
] | 1 | JavaScript | russellsalcido/Quiz | 05b19a1d0e417289b49dd6db9cccf2cfba394bd4 | c5004c0941f7d94e9f0c09805e89312b5bc34f09 |
refs/heads/master | <repo_name>walter1999/sample_midterm_p3<file_sep>/p3/Hospital.h
#ifndef HOSPITAL_H_
#define HOSPITAL_H_
#include <string>
#include "Building.h"
class Hospital : public Building {
public:
Hospital(std::string address);
std::string getService();
};
#endif // HOSPITAL_H_
<file_sep>/p3/Hospital.cc
#include "Hospit... | da21b0a2c7348e88ffec92b924a0e4040fbe028a | [
"Makefile",
"C++"
] | 8 | C++ | walter1999/sample_midterm_p3 | 2a522c4dce97f091c9da289d5cf44abd24ea9f47 | 3b51d00ff1abc194fe9663df371bc22b07f18798 |
refs/heads/master | <file_sep>mkdir ~/.vim
cp ./vimfiles/autoload ~/.vim/autoload -r
cp ./vimfiles/plugged ~/.vim/plugged -r
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp ./_vimrc ~/.vimrc
cd ~
vim .vimrc
| da4666cde1050e97f0ec337e75fcaec6c35c7a05 | [
"Shell"
] | 1 | Shell | EduardoPersoft/meuvim | 599526f921ae3c6d0a27602265ec11a0aefdae4b | 64e93ef8e306147cb98fa73e43bb56cfa5d8d5ae |
refs/heads/master | <repo_name>butshuti/bluetoothvpn<file_sep>/bluetooth_vpn/src/main/java/edu/unt/nslab/butshuti/bluetoothvpn/data/view_models/ServiceStatusViewModel.java
package edu.unt.nslab.butshuti.bluetoothvpn.data.view_models;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifec... | 9e9e614d7f017059b327d8d8c65289eed3a4b175 | [
"Markdown",
"Java",
"Gradle"
] | 24 | Java | butshuti/bluetoothvpn | 17bfc990584710c6e0c5ddcb1ed1448fcf6a9660 | 426e645c9f146587318d8868e809a21ed0bd16fe |
refs/heads/master | <file_sep>var express = require('express');
var router = express.Router();
var path = require('path');
var request = require('request');
var cheerio = require('cheerio');
var Comment = require('../models/Comment.js');
var Article = require('../models/Article.js');
router.get('/', function(req, res) {
res.redirec... | 1001f608fd3fff4be8dac06fd1a7ae96182ebf0f | [
"JavaScript"
] | 1 | JavaScript | MatthewANguyen/News-Scrape | ad8b1a45881ff976b175a5b24600817973d9e9e3 | fbbe8339941bc0371968d0c85e33dfb279510024 |
refs/heads/master | <file_sep>var data = {
attrs: {
class: 'item enabled'
},
year: [
{value: 1900, text: '1900年' },
{value: 1901, text: '1901年' },
{value: 1902, text: '1902年' },
{value: 1903, text: '1903年' },
{value: 1904, text: '1904年' },
{value: 1905, text: '1905年' },
{value: 1906, text: '1906年' },
{value: 1907, tex... | e47c27d4cc7390b19be3fe84c945cbae561214c2 | [
"JavaScript"
] | 1 | JavaScript | snjylin/calendar | 09f0bee2e26664597a46ea4b27f1d4412073806b | 6abe6d0fbdc3d596b2e4f7bdf778e5cc72cb5e0d |
refs/heads/master | <file_sep>//
// AlwaysPopupSegue.swift
// One Day
//
// Created by <NAME> on 2020-01-06.
// Copyright © 2020 <NAME>. All rights reserved.
//
import UIKit
class AlwaysPopupSegue : UIStoryboardSegue, UIAdaptivePresentationControllerDelegate
{
override init(identifier: String?, source: UIViewController, destinat... | 1b240c8a12d7c9e37390bbf9559c81330a305f62 | [
"Swift",
"Markdown"
] | 11 | Swift | 99jhs05/Pie-Planner | 81670f862abb7bbc3c9ec1142bf3253096869b63 | 1257940bb44eb904e6102de13b3580424b6c4a2d |
refs/heads/master | <file_sep>#!/bin/bash
########################################################################
#
# bash(1) run commands.
#
#######################################################################
#
# bash(1) completion -- stored in different places
# <dir> bash_completion - basic script
# <dir> bash_comp... | ac7701e9e47b899da32836a2d5eafb609019fe99 | [
"Makefile",
"Shell"
] | 5 | Shell | jaypwindley/Environment | 194cd2177cb47a96d13efc2207e0a6292dd5a56b | 33290d9e717ba79e86cc6ce3a3285fa282333d4b |
refs/heads/main | <file_sep><?php
session_start();
include 'config/koneksi.php';
$user = @$_POST['username'];
$pass = md5(@$_POST['password']);
$query=mysqli_query($conn,"select * from user where usernames='$user' and passwords='$pass'");
$jumlahdata =mysqli_num_rows($query);
if ($jumlahdata == 0 ) {
echo "<scr... | 463e9fb3518c884a6f0c0df37210542773e88f0f | [
"SQL",
"PHP"
] | 14 | PHP | zahraAfa/studentAccomodation_webApp | da28dfcaa2248e91c968748d9992698750c67f37 | c982dc12b126fa69f14d75170291c798d03734df |
refs/heads/master | <file_sep>import { messaging } from 'firebase-admin';
export const send = (tokens, payload) => {
return messaging().sendToDevice(tokens, { notification: payload });
}<file_sep>import { firestore } from 'firebase-admin';
import { Activity } from './../model';
export const addActivity = (activity: Activity, projec... | 0eec15018e140d256a754f334c5c10923174003c | [
"Markdown",
"TypeScript",
"HTML"
] | 91 | TypeScript | rafemu/pod | 5e4e291221ded0bf2f6bdb3dd3f7005ae6b74f82 | 47f971489aac6dfff5a44ac00743dd446c0f6fb3 |
refs/heads/master | <repo_name>udakumar/testrepo<file_sep>/mylog.py
import logging
logging.basicConfig(level=logging.INFO, filename='div.log', filemode='a',\
format='%(asctime)s- %(lineno)d-%(levelname)s-%(message)s-%(funcName)s')
logger = logging.getLogger()<file_sep>/creatinglog.py
from mylog import logger
#INFO
#W... | 3fe8a4c969707a4455d45aa25484a11cedff414b | [
"Python"
] | 2 | Python | udakumar/testrepo | 9065fbe4203ab780985d2a47006cd9d3380a32f8 | a0909577a74e8bbf35a01474198a9c7b0056a655 |
refs/heads/master | <file_sep>package cz.milanhlinak.hellospringbootangular.server.service;
import cz.milanhlinak.hellospringbootangular.server.dto.Greeting;
/**
* Greeting service.
*
* @author <NAME>
*/
public interface GreetingService {
/**
* Creates greeting for given name.
*
* @param name name
* @return ... | 765667de0270e25cd6f357a8f78d488e1c643213 | [
"Markdown",
"Java",
"TypeScript"
] | 3 | Java | milanhlinak/hello-spring-boot-angular | 5429e36226110bf9e9d5109f40d72889c6c031f0 | 9104a9ac756a8071a53b9eb37fbd00349ce91e06 |
refs/heads/master | <repo_name>hamidrezarezaei/insurance<file_sep>/Insurance/ViewComponent/ReminderViewComponent.cs
using DAL;
using Entities;
using Insurance.Services;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace insurance_new
{
public class ReminderViewComponent : ViewComponent
{
#region Cons... | 1f0f77f656b64ec3e27b2603c7cd399c6e6a5096 | [
"C#",
"TypeScript"
] | 102 | C# | hamidrezarezaei/insurance | 85ae43616f8b6e246e41a3bf708af637e86dac2c | b3ee9ca8c31f9520c07b4fb8de5d7298d25657a6 |
refs/heads/master | <repo_name>software-handbook/howto<file_sep>/README.md
# howto
Question and answer
<file_sep>/deploy-sakai/scripts/tomcat
#!/bin/sh
#
# Startup script for Tomcat Servlet Engine
#
# chkconfig: 1235 99 1
# description: Tomcat Servlet Engine
# processname: tomcat
# pidfile: $TOMCAT_HOME/bin/tomcat.pid
#
# User under whic... | fdbbb765705b9ff25b214ccbe0a2cf4cf692e06b | [
"Markdown",
"Shell"
] | 2 | Markdown | software-handbook/howto | 96023b3e1178409a69c7e7e2d611f16cafb2a2bf | 773c6035f8acfb2a75a561852e5ed84e7d8678d9 |
refs/heads/master | <repo_name>sachinpasi/aid-v1<file_sep>/src/Components/PagesComponents/PartnerWithUs/WhoCanApply.js
import React from "react";
const WhoCanApply = ({ Hindi }) => {
return (
<section>
<div className="w-80vw" style={{ margin: "3rem auto" }}>
{Hindi ? (
<div className="w-full flex justify-cen... | 0542d92433664710360d7ddc5157d13c45719943 | [
"JavaScript"
] | 42 | JavaScript | sachinpasi/aid-v1 | 9cddc2368c1332da71e0bb77defddec457df9be9 | 410375fb039e9ca9d7abd55dde99ba429d36e08e |
refs/heads/master | <file_sep><?php
if (isset($_POST) && !empty($_POST)) {
$errors = [];
if (empty($_POST['lastName']) OR strlen($_POST['lastName']) < 2) {
$errors['lastName'] = "The name must be greater than 1 character!";
}
if (empty($_POST['firstName']) OR strlen($_POST['firstName']) < 2) {
$errors['firs... | 1a61e0c12995f8eae42a5721188323c5d91dff4e | [
"PHP"
] | 1 | PHP | Shishifoxy/form | 5dd26f51a968570470a4142b3653580b486c6be2 | b8aa5dcca906048bfecf5a1d284e0713fee5ea94 |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Data.Entity.Core.Metadata.Edm;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVC_Proje.Models;
namespace MVC_Proje.Controllers
{
public class MüşteriController : Controller
{
StokTakipVeritabanıEntities entities ... | af7575f277bd312bc384d222dac6e864e6168c08 | [
"C#"
] | 34 | C# | emirgorkemozdemir/Mvc-Projects | 6d474c693ac9723d826ea9d0082a073a5514903f | 6e638390a06dabc4164d55af02d86420cb567652 |
refs/heads/master | <file_sep>**无感支付**<file_sep>const fs = require("fs");
const path = require("path");
const moment = require('moment');
const tools = require('../../utils/tools');
module.exports = function (router) {
router.get('/heartbeat', async (ctx) => {
ctx.body = {
code: 200,
date: moment().for... | 4daa1daea1689ec19c425214fadae1d8e959ccf5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ycysvler/compare | f671ccc2d0704637d55245b884aa0b16c281b502 | a68b3202711f0975eca8857c503799822e435135 |
refs/heads/master | <repo_name>Hiryu70/WordAddIns<file_sep>/WordAddIns/WordAddIn/Ribbon.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using System.IO;
using Word = Microsoft.Office.Interop.Word;
namespace WordAddIn
{
public partial class Ribbon
{
... | c2a9f6cc8e8918a8b8a98578e4c114713950ab73 | [
"C#"
] | 1 | C# | Hiryu70/WordAddIns | 358bbe63420afbddf80b80585c733ae82f9cdde9 | 236281dad03c7a9b251205e1866ec0c6b9cf7c80 |
refs/heads/master | <file_sep>import mechanicalsoup, re
from sys import argv
import os
'''
if 'RDS_HOSTNAME' in os.environ:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.environ['RDS_DB_NAME'],
'USER': os.environ['RDS_USERNAME'],
'PASSWORD': os.environ['RDS_PASSWORD'],
'HO... | 99430f942200441d89fbf1f289cb62bad8dbce4f | [
"Markdown",
"Python",
"Text"
] | 4 | Python | christinasc/farallonWaterBill | cf7eab5f0fc9ca8c6bf957fd71b77211c727fa46 | 7bd5f444600cbecc022b2df92b85b965a83ace89 |
refs/heads/master | <repo_name>chuksgpfr/Tweet-Miner<file_sep>/piada/src/app/dash/editapidetails/editapidetails.component.ts
import { Component, OnInit } from '@angular/core';
import { DashService } from 'src/app/services/dash.service';
import { FormBuilder, Validators } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
... | 47e13d472185a56d6f053aedd1ac358f6b217cc4 | [
"JavaScript",
"C#",
"TypeScript",
"Markdown"
] | 31 | TypeScript | chuksgpfr/Tweet-Miner | bcaadb5d21994ab479249742550d2b889dd0f7bb | 6ac05d1af745810b1a076f8b2392a93553fa7033 |
refs/heads/master | <repo_name>srmagura/jest-timer-repro<file_sep>/README.md
# jest-timer-repro
Demonstrates a potential bug with Jest fake timers.
Repro steps:
1. `yarn install`
2. `yarn test`
<file_sep>/index.test.ts
import "jest";
beforeEach(() => {
jest.useFakeTimers();
});
function delay(duration: number): Promise<void> {
re... | 601d85cd04ea033a989aa870b8cf9e771ee3efd4 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | srmagura/jest-timer-repro | 6d5681426623f38374337e43d183b0918abf5096 | b2229f4c6b84cdc33da63401c11b8d03ff999e4b |
refs/heads/master | <repo_name>huaiwen/C0Compiler<file_sep>/nametable.cpp
#include "nametable.h"
nametable::nametable()
{
//val = -99999999;
adr = -99999999;
name = "";
}
nametable::~nametable(void)
{
}
nametable::nametable(string s1, int a, int b, string s2)
{
name = s1;
//val = a;
level = b;
belongto = s2;
kind = var;
adr = -1;... | 8a30a1fd1b9ba6b4e44ad009e30809b65cbbc9b6 | [
"C",
"C++"
] | 19 | C++ | huaiwen/C0Compiler | 478579ee288ff113757ce9ef7837b94e42356145 | 7a9e3d655d881068d5aaefc1cdb37634c5ff81a2 |
refs/heads/master | <repo_name>LasVegasRubyGroup/rubyweekend<file_sep>/Gemfile
source 'http://rubygems.org'
gem 'rails', '3.2.13'
gem 'haml'
gem 'haml-rails'
gem 'jquery-rails'
gem 'bcrypt-ruby'
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'
gem 'exception_notification'
group :assets do
gem 'sass-rails'
gem 'coffee-ra... | c2a7b120dbf17815fe35ca19b8a6ad9bf8641d2e | [
"Ruby"
] | 32 | Ruby | LasVegasRubyGroup/rubyweekend | d32e6801169f398a742a374a0299042b5aa0a45e | cd1bd9ed3a3094c8e5500e0fe9985b95238af6f7 |
refs/heads/master | <repo_name>franco954/Editor-de-texto<file_sep>/README.md
# Bloc de notas
Bloc de notas realizado en python con la libreria Tkinter
<img src="./recursos/bloc 2.PNG" width="380"><file_sep>/Editor de Texto.py
from tkinter import *
from tkinter import messagebox
from tkinter import filedialog
root=Tk()
root.c... | 684fa091eb7ad723a1faed7e58634bee4701c046 | [
"Markdown",
"Python"
] | 2 | Markdown | franco954/Editor-de-texto | aadc61ade01492e4642aef80cd565351fe749bf2 | 3db98869d53a6851498ebc9d2df3061d8ef58e06 |
refs/heads/master | <repo_name>devinhenkel/nodemini<file_sep>/models/family.js
var apoc = require('apoc');
//var User = require('../models/user');
//module.exports = mongoose.model('Family', schema);
<file_sep>/assets/app/family/relationship.component.ts
import { Component, OnInit } from "@angular/core";
import { RelationshipService }... | 54ec337bd675fcf6d0808a5a8d95e84429bccc06 | [
"JavaScript",
"TypeScript"
] | 6 | JavaScript | devinhenkel/nodemini | 234362e9150b8dc0c8af0b2f7b795b827dfce7a6 | 57b8bc2a2135cb88d0c27065648fe1a2a88464e5 |
refs/heads/master | <file_sep>function getEle(id) {
return document.getElementById(id);
}
//var list = [];
var dssv = new DanhSachSinhVien();
var validation = new Validation();
getLocalStorage();
function addUser(){
console.log("Day la addUser thanh cong cua thuan");
}
function layDuLieuDauVao(isAdd)
{
var _maSV = getEle("txtMaS... | 0da3b7efab562c1f3db166af9ea8255cdca687e5 | [
"JavaScript"
] | 2 | JavaScript | NguyenDucThuan-CS/qlsv_practice | 3325f2bc7455b2bf13dd1e696de3427f51b6db02 | fa6a9fc22ed0bebf11b826a053f9b93b0b55da06 |
refs/heads/master | <repo_name>kistompa/DeveloperHomework<file_sep>/src/main/java/hu/tt/model/TransactionType.java
package hu.tt.model;
public enum TransactionType {
Deposit,Withdrawal,Transfer,History,User
}
<file_sep>/src/main/java/hu/tt/services/UserTransactionService.java
package hu.tt.services;
import java.util.List;
import hu.tt... | 545a24a99c9c1b65cf89ac66cf4d12beceadd053 | [
"Java"
] | 6 | Java | kistompa/DeveloperHomework | da6e2b3ccaadb57c4cb5e49471cd6c087540ed98 | 2b132f7917cd73346bf6826415fb60f263c42d93 |
refs/heads/master | <repo_name>vanessasuthat03/Customers-saver<file_sep>/src/contexts/CustomerContext.js
import React, { createContext } from "react"
export const CustomerContext = createContext([])
export const UserContext = createContext({})
<file_sep>/src/components/Headers.jsx
import React from "react"
import styled from "styled-comp... | 0ecdb268e986a1fdb9e1a05ab331a63be050762c | [
"JavaScript"
] | 9 | JavaScript | vanessasuthat03/Customers-saver | f00062550c94fe5a1f3725fe8b68dd9b9865748a | 2f40535b9f7bd7293c27f678638bbc564bcc897d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.