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 | <repo_name>Finabashi/Koby_Project<file_sep>/README.md
# Koby_Project
Exercice Git
<file_sep>/fonction.js
// exercise 1
function perimetre(number1, number2, number3, number4) {
return (number1 + number2 + number3 + number4)
}
// exercise 2
function aire(number1, number2) {
return (number1 * number2)
}
document.g... | f3b87c7dc7154fea8073425bbbb32a1d9e8a3395 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Finabashi/Koby_Project | 1566767f86b6dc9842069e522ad487f4aba4ad1d | 7017fbca9b49a21380fb3f02f69ca69c1e150715 |
refs/heads/master | <file_sep>package ru.boiko.se;
import lombok.SneakyThrows;
import java.util.concurrent.*;
/**
* Домашнее задание к уроку 5
*/
public class App {
private static final int CARS_COUNT = 4;
@SneakyThrows
public static void main(String[] args) {
final CyclicBarrier cyclicBarrier = new CyclicBarrier... | 6e1ed15fefd95007410b021539ff4f4a8d625268 | [
"Java"
] | 1 | Java | NikiArt/lessonfive | 31cc1b5a18e2e8cc8496a23f07abb5b15538c7d0 | cf9f278841ad91b9156be01750cc0d4a231fa0f2 |
refs/heads/main | <repo_name>nandozz/ESP1-smart-lamp<file_sep>/IP_setting/IP_setting.ino
#include <ESP8266WiFi.h>
const char* ssid = "Thanks God"; // Isi dengan nama wifi anad
const char* password = "<PASSWORD>@"; //wifi password nya
WiFiServer server(80);
#define pin_relay 0 // pin relaya pada GPIO0
IPAddress local_IP(192, 168, 1... | d24b5e5c7980bbd9b9c1a7fc812a76f7b22139ae | [
"Markdown",
"C++"
] | 4 | C++ | nandozz/ESP1-smart-lamp | 090d223b9b46839ce1cfc60dbb3faba1a1efaf08 | bf7fe3c90c20de0b03cea22af85444b0277a8c84 |
refs/heads/master | <repo_name>xlplbo/libevent<file_sep>/Client/main.cpp
#include <stdio.h>
#include <assert.h>
#include <WinSock2.h>
int main(int argc, char **argv)
{
#ifdef WIN32
WSADATA wsa_data;
WSAStartup(0x0201, &wsa_data);
#endif
struct sockaddr_in server_address;
memset( &server_address, 0, sizeof( server_address ) );
serv... | 912a97a82defe9fc9e0b174580d446b5c1bf818c | [
"C++"
] | 1 | C++ | xlplbo/libevent | 3c3c0c68fac7ed96c081a60bd16d0a8fd7c23996 | bcd174b6eb191f336772d5fec75c3a5c6d725b90 |
refs/heads/master | <repo_name>bobbyangelov/mood-guesser<file_sep>/flask-backend/mood-guesser.py
from datetime import datetime
from flask import (
Flask,
abort,
flash,
redirect,
render_template,
request,
url_for,
)
app = Flask(__name__)
app.config['DEBUG'] == True
@app.route('/')
def show_index():
return... | 555efdcaa4b49660b776512c259b84f3d77500c2 | [
"Python"
] | 4 | Python | bobbyangelov/mood-guesser | 33f647a5f4008202980a29f634d46601ceac6e5a | effb34d1dafc03010e9eb6e66eb8ee6881f526d7 |
refs/heads/master | <file_sep>---
name: Question
about: Describe this issue template's purpose here.
---
<!--
1. Please make sure that you have searched in the older issues before submitting a new one!
2. Please fill out all the required information!
-->
#### I am submitting a
- [x] Question
#### Description
#### What is the use... | 749c2f087595adda87df21f288453eb57460d96d | [
"Markdown",
"TypeScript"
] | 3 | Markdown | mustafahakeem/ngx-sharebuttons | fe1b90afef5ec81a31e942a51449887ed2e7fbb1 | 24c0017ac5d07d5c11d2986f3314fd8aa02603f4 |
refs/heads/master | <file_sep>package ds.hdfs;
import proto.ProtoHDFS;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.regi... | b62986c8c8c085eda701ebcd9c477d3cdc375468 | [
"Java"
] | 4 | Java | KevinWu97/MapReduce | a0559e496f176bcfc40bda5c285e3db72ea08797 | e852ac8ca8ee4d724e3c86a8b95736946ee28ce6 |
refs/heads/master | <repo_name>cyanpencil/LD30<file_sep>/LD30/public_html/Engine.js
//Questo engine viene chiamato dentro Main, con setTimeout(engine_main_loop, 0), creando un altro thread
var t = Date.now();
var t_tick = 20;
var variazione = 0.05;
var t_sleep, lastFrameTime = 0, framesTime = 0, startFrame = 0;
function engine_main_loop()... | 3d67ca50131a808e98c0d93a17c0ee223b3b4dc9 | [
"JavaScript",
"Markdown",
"INI"
] | 7 | JavaScript | cyanpencil/LD30 | 4f4182cb4930a58adcca891bacc141e58a3eab5d | 1d76187a761722bc6d4b3b00bd5d5d0f9f0b733e |
refs/heads/master | <repo_name>vi109/Destinations<file_sep>/resources/js/main.js
// Auto slide one
var slideIndex = 0;
carousel();
function carousel() {
var i;
var x = document.getElementsByClassName("slide");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
slideIndex++;
if (slideIndex > x.length) {slideI... | c58c0145d190497eac6df448ff97cdbe127be9ba | [
"JavaScript"
] | 1 | JavaScript | vi109/Destinations | 3bc93e410f416b90fac822c8068c89cee3198f2c | a4114a882087de1cb36e42023c430af9172ed37e |
refs/heads/master | <repo_name>kevin90045/Gravel<file_sep>/Assets/Scripts/DropRock.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Dummiesman;
using System.IO;
using System;
using System.Xml;
public class DropRock : MonoBehaviour
{
public Transform Stone;
public int GravelCount = 0;
pu... | d6096c60d9f01b377ac6895f3d04b0a3c58e38d1 | [
"C#"
] | 1 | C# | kevin90045/Gravel | e898ac11421c30fa61d56ed89456a5aefbaaba30 | af8420efbb268d8db427ad42cd2ec76db2afe2f5 |
refs/heads/master | <repo_name>a2gs/Arduino_ethernetHTTPServer<file_sep>/README.md
# Arduino_ethernetHTTPServer
Arduino Set/Get/Status GPIO HTTP Server using Ethernet Shield W5100
<file_sep>/Arduino_ethernetHTTPServer/Arduino_ethernetHTTPServer.ino
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED... | d381ed79c6ca69d3e91d21f37e5cf56939f6a30b | [
"Markdown",
"C++"
] | 2 | Markdown | a2gs/Arduino_ethernetHTTPServer | e06ec3cd36c19bb4e783c3e2eca9373298c0a835 | 3520434c8af0966178759183c016145e5b76c1a6 |
refs/heads/master | <file_sep>Flow.init = function(o) {
o = (o || {});
var watch = (o.watch || true),
fileList = [];
var calledDir = (o.buildpath || Flow.path.called);
var configPath = calledDir + '/flow.json';
var config = require(configPath);
var project = (config.project || false);
//Will recompile proj... | 48ba7a3fd7cd36e2d9e446c221d10b49f8bbbcd5 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | travis4all/flowin | 0e8b57e80545af7191d71c5f33015bd66d8856fd | bee1afee65609b9e6e5314ceead9fb52da6970d4 |
refs/heads/master | <file_sep>pip3 install django-cors-headers
<file_sep># Generated by Django 2.2 on 2019-04-13 23:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Restaurant', '0001_initial'),
]
operations =... | aa269e92a7658ecc1649f61d9cedb4cac8775684 | [
"JavaScript",
"Markdown",
"Python",
"Text",
"Shell"
] | 37 | Shell | YujiaYan0709/Instantler | 283055a5c9a144763b16e37c4166474ebec2cd46 | 9e990a813132ddefe2574f69393cc1f51d4c3cc2 |
refs/heads/master | <repo_name>Shadoweh/Holidays<file_sep>/Holidays.Api/Models/HolidayNameModel.cs
using Newtonsoft.Json;
namespace Holidays.Api.Models
{
public class HolidayNameModel
{
[JsonProperty("lang")]
public string Language { get; set; }
[JsonProperty("text")]
public string Name { get; set... | fe59960d00fa40b17da2b8cd64061f3551b8d4c6 | [
"C#"
] | 11 | C# | Shadoweh/Holidays | 2c10ac42e8f3b984d05e9c90fb2a43e1d12dce8e | c53fda7de12c37edee66dfe8bdc76f84bcb72f8a |
refs/heads/main | <repo_name>Neskoff/wordoftheday-backend<file_sep>/src/main/java/com/rbt/wordoftheday/webControllers/PrizeController.java
package com.rbt.wordoftheday.webControllers;
import com.rbt.wordoftheday.domain.Prize;
import com.rbt.wordoftheday.services.prizeService.PrizeService;
import org.springframework.beans.factory.annota... | d5fe2e71a4eaa7cba178c4da80ada33ff3f9a5b0 | [
"Java",
"SQL",
"INI"
] | 19 | Java | Neskoff/wordoftheday-backend | 25af3376d8b12a546db37e67e70086b1aa1459dd | c1a23b9795e25efa24c3955ce423f6c92c70443d |
refs/heads/master | <file_sep><?php
//Desde aca manejaremos la aplicacion.
require_once 'controllers/errores.php';
class App {
function __construct () {
$url = isset($_GET['url']) ? $_GET['url'] : NULL;
$url = rtrim($url, '/'); //quitar los slash del URL.
$url = explode('/', $url); //Dividir URL por ... | 5aa4408d25837c0edc5d2f10f004c1c96b87a328 | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 115 | PHP | RAAO-uptaeb/Sistema-transporte | 2b1b2be408b2056cc137c6084311cb708d3cc44d | 8cc51f8dce5dde9f89569fb4610e054b87178c40 |
refs/heads/master | <file_sep><?php
$zoo = array
(
"Africa" => array("Smilodon", "Equus grevyi", "Calotragus scoparius"),
"North America" => array("Stylinodon", "Coryphodon", "Embolotherium ergilense"),
"South America" => array("Astrapotherium magnum", "Toxodon", ... | 76ec9ee761cc1eb97b4a6f1f010099f1af033419 | [
"PHP"
] | 2 | PHP | a-alex2000/zoo | 60ee91489ab4b5f4e1f85a2abc697976ec9b9700 | ccdcb38ccf469f927bbbf8185a1ce1484fb07243 |
refs/heads/master | <repo_name>AugustArchive/qtradio.js<file_sep>/readme.md
# qtradio.moe API
> :tulip: **API wrapper for qtradio.moe made in JavaScript**
>
> :warning: **This wrapper is deprecated, don't use this because it will not work!**
## Usage
```js
const qtradio = require('qtradio.js');
const radio = qtradio.createInsta... | c9146678096e669cdddae9b2c2204c298bcbaaad | [
"Markdown",
"TypeScript",
"JavaScript"
] | 5 | Markdown | AugustArchive/qtradio.js | fd6d320eeed177359745d0574ca736fe227e4664 | 8c1a083682f6684d47824d19c73d0a805c7f5513 |
refs/heads/master | <file_sep><?php
namespace application\contorllers;
class BoardController extends contorllers
{
public function index($category, $idx, $pageNo)
{
$model = new \application\models\BoardModel();
$list = $model->selectList($category, $idx, $pageNo);
require_once 'application/views.board.in... | 6281803040c49fb859ddc9958a738cd6a84616a2 | [
"Markdown",
"PHP"
] | 5 | PHP | devpang20/php-mvc | ba86aa1ae1cf58d1fa613629bfae469ec3edb6d5 | 716fe1107a4f4b1090c94de64a2ca2779184350c |
refs/heads/master | <file_sep>package com.btc.web.service;
import com.btc.web.notification.EmailAlertNotification;
import com.btc.web.web.WebServiceController;
import com.google.common.collect.Maps;
import org.quartz.DisallowConcurrentExecution;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.fac... | 26c48450897b3c42d77deb17ded19a830f8e3f76 | [
"Markdown",
"Java",
"SQL",
"Gradle"
] | 14 | Java | everettwolf/btc-service | 5400e338b7a80bd244961a8839c4797558dc79e6 | fcd9fbfcf2e1f6855d06769b28666e957d8a6c49 |
refs/heads/master | <file_sep>package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"sync"
"time"
)
type Long struct {
LongUrl string `json:longUrl`
}
func crawl(half []string, ab []string, a string, key string) {
var wg sync.WaitGroup
addr := "https://www.googleapis.com/urlshortener/v1/url?shortUrl... | 6376c56c1144ac6ae9138950cc0d5fb2bae44627 | [
"Go"
] | 1 | Go | shortOS3/googlcrawler | e3c5d854734f51835a7761b1133ab34211205d3e | eb539c69081ec26ec99ebe6853b62d5ff87a09ad |
refs/heads/main | <file_sep>#!/usr/bin/python3
"""
Function that finds a peak in a list of unsorted integers.
"""
def find_peak(list_of_integers):
""" Function that finds a peak in a list of unsorted integers. """
a = 0
b = len(list_of_integers) - 1
if len(list_of_integers) == 0:
return(None)
while (a < ... | 6e82a53dda77397c1b15ad4c0dc0f41974bf1d61 | [
"Python"
] | 1 | Python | MedJarraya/google-higher_level_programming | 61ddbbd1e2acc1ac65b79ba423128a20dd976227 | 038bd87e170a1e2aaa427c574a463a1f1a2dcdd0 |
refs/heads/master | <file_sep>package me.phelps.andenginedemo.activity;
import org.andengine.engine.camera.Camera;
import org.andengine.engine.options.EngineOptions;
import org.andengine.engine.options.ScreenOrientation;
import org.andengine.engine.options.resolutionpolicy.RatioResolutionPolicy;
import org.andengine.entity.modifier.PathM... | e1b73d19aa0a91a43c61f62b287ed590c73a8f03 | [
"Java"
] | 6 | Java | chenqian2651489/AndEngine | cd4308c00af9fa0a8d8156cae777c8936fea3531 | e7028909e1be1576b61344fea4d95183949b2adc |
refs/heads/master | <repo_name>droquo/koha_bib_export<file_sep>/koha_config-example.py
'''copy this file as koha_config.py and change the credentials and settings below'''
'''your koha credentials'''
user = 'admin' #put your admin username here
passwd = '<PASSWORD>' #put your admin pa... | dcf9ac6b76e49ee14e945a4916a89a5487dd927e | [
"Markdown",
"Python"
] | 3 | Python | droquo/koha_bib_export | e65ebce8d72b52abdddbe5e18da0c41299f87b9a | b4531cd15af3d111c12c1a3842b7c95690942d9d |
refs/heads/master | <file_sep>package com.example.project_uas.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class Product {
@SerializedName("idProduct")
@Expose
var idProduct:Int? = null
@SerializedName("nama")
@Expose
var nama:String? = null
@SerializedNa... | 4fea9aa57af94eb60c8dfe1c1111dab8f9d4ace5 | [
"Kotlin"
] | 20 | Kotlin | mosanidev/shop_kotlin | 8e197bd4f0201e4ec574f00034c6f4827bb249bb | 2ecde3a375e81997ea3ec861ad94ccf6b21e0747 |
refs/heads/master | <repo_name>davcache/MegaDeskWebApp---JeaninaAndCache<file_sep>/MegaDeskWebApp - JeaninaAndCache/Desk.cs
public class Desk
{
public int Width { get; set; }
public int Depth { get; set; }
public int NumberOfDrawers { get; set; }
public enum SurfaceMaterial
{
Lamina... | fd53e6623dd758004ef5969a5de6708b0ba391cb | [
"C#"
] | 2 | C# | davcache/MegaDeskWebApp---JeaninaAndCache | 0ca33c2274552a474ba5a4db9e6fa1251b8df427 | 19f017bc01acb1405d3fdc6d0f26b18138f7bcce |
refs/heads/master | <file_sep>import os
import sys
from ExcelLoader import Generator
class CSharpGenerator(Generator):
def __init__(self, excel, workspace):
super(CSharpGenerator, self).__init__(excel, workspace)
def export_csharp(self):
provider_template = open(os.path.join(self.workspace, self.cfg['provider_... | 8d7cc2eafcce7eb2e9c52c3dfb994f8bcc86a139 | [
"Markdown",
"C#",
"Python"
] | 13 | Python | kaluluosi/Excel2Json | 5c4d7441cb957087fe1fa5706dc1a9a800152811 | 1fa870e69031a0ca2552eea4e3aaa0b553425209 |
refs/heads/master | <file_sep>#include <iostream>
#include <string>
#include <fstream>
#include <algorithm>
#include <array>
#include <cstring>
using namespace std;
void MergeInts(int arr[], int low, int high, int mid); // Combines sorted values
void MergeSortInts(int *arr, int low, int high); // Splits array into two halves
void MergeS... | d0cc0054abc64daa845556b2a885ca0b554c22d0 | [
"C++"
] | 1 | C++ | ebuinevicius/TwoFileMatchFinder | 8951a816ad37df12447e59d0222b37cd342d77ca | 5a9b44d0448a149c42704415f2d1e92a48057762 |
refs/heads/master | <file_sep>string(43) "/usr/local/phpbin/pg_dump -i -n '"BOOK"' -a"
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'LATIN1';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET search_path ... | 5b87b247814c26441a61c13d454df7201e04af18 | [
"Java",
"SQL",
"Text"
] | 40 | SQL | nimajen/Book | 545ae61b745e63a6f3ab3a3fbc7da0841254bc5e | 0b56a13aa2bd31fc78056dfd917be450fec078ca |
refs/heads/master | <file_sep>package com.pattern.chain;
import java.util.Arrays;
import java.util.List;
/**
* @author cody
* @version V1.0
* @create 2017/10/22 21:32
*/
public class ChainClient {
static class ChainHandleA extends ChainHandle{
@Override
protected void handleProcess() {
System.out.prin... | 97d5da782568ea40358ba330590717d3911d9efc | [
"Java",
"Text"
] | 12 | Java | yuejhan/springboot | 1df65f8e051d9438cf2cd46f95d7f606229284bf | 30e0ae7987b096eadd2d62a644e62a0e61c358c4 |
refs/heads/master | <file_sep> //<NAME>
//Period 2
//Computer Systems Research
//Citizen class file
import java.util.*;
public class Citizen
{
private double happiness;
private double workrate;
private double health;
private double wealth;
private double wealthAssess;
private double a... | 612054384009dc2b279edc752823fd6c69f87594 | [
"Java"
] | 4 | Java | Formless/GeneticAlgorithmProject | 0835deb78fdb38fe8d4458ecfcbee79c1aa55626 | 67819f779f3058571412e2db6086ad7d459853cf |
refs/heads/master | <repo_name>rs-renato/springframework-testing<file_sep>/src/test/java/guru/springframework/MockWithExtensionTest.java
package guru.springframework;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import ja... | 5090cb1b57853e74038733a5e659088d35f41d0b | [
"Java"
] | 4 | Java | rs-renato/springframework-testing | 2f6440a07d47289d669e7dc72cd29cae3b1582f6 | 5f95ea1ba983e54ae83224c0eae3e92477e4bcc5 |
refs/heads/master | <file_sep>package com.company;
import javax.management.monitor.GaugeMonitor;
import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int player = 3;
int opponent = 3;
Game(player, opponent);
}
public static void Game(int P, ... | 0fcba4f4ea47b92cd2b9c855e2b1f9428993589c | [
"Java"
] | 1 | Java | Kirill-YoSen/Game | b890563cb27604514ef5660229cd4225d859629d | 5e22747efe3f9dc4c8d70f089accdf0ad53a113f |
refs/heads/master | <file_sep>package view;
import controller.ControllerProdutos;
import controller.ControllerVendas;
import java.util.ArrayList;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.SwingConstants;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
i... | b07866a01e31c47c953678685c41adf8af4acafe | [
"Markdown",
"Java"
] | 9 | Java | igorcavichiolle/SistemaPdvWellsBurguer | 6239867281d8da4dc6aa2c2043725b0cf7769557 | 9b5e4ccd698de6d04b1a27e0b30faba57b864e97 |
refs/heads/main | <repo_name>AlexDest-Dev/DE2020_CT1<file_sep>/README.md
# DE2020_CT1
DE course 2020, Computational Task 1, <NAME>, BS19-03
<file_sep>/src/de_task/model/methods/ImprovedEulerMethod.java
package de_task.model.methods;
import de_task.model.base.NumericalMethod;
public class ImprovedEulerMethod extends NumericalMethod {
... | 65b7b1bf68e9aaaf00ca54a4ca924a874e499dc1 | [
"Markdown",
"Java"
] | 8 | Markdown | AlexDest-Dev/DE2020_CT1 | 112391298a16c827ba2b0ef966a3797659be0988 | baa077011958c829808b44ee51008c683f9a46c5 |
refs/heads/master | <file_sep>rootProject.name='Db_T_2'
include ':app'
<file_sep># SQLite Database Example Android App by d4rk-lucif3r

- This App uses the SQlite Database in Android.
# Description
- The main activity consi... | 2263fae242bcc5aaec52bbaa608b9d3db0eadb1b | [
"Markdown",
"Java",
"Gradle"
] | 3 | Gradle | d4rk-lucif3r/SQLite-Database-Example-Android-App | 2876a962ce177e34a5d2e7989f5181533f4d2167 | 8a6c1fc5a4ac57370df35366694148ac553a3933 |
refs/heads/master | <repo_name>sgshy1995/static-server-nodejs<file_sep>/public/main.js
console.log('这是一个静态页面,当你看到我时,说明你搭建成功啦!')<file_sep>/README.md
## 静态服务器
使用 Node.js 构建的静态服务器。
### 使用环境
首先,保证你已安装 [Node.js](https://nodejs.org/zh-cn/download/),如已安装请忽略。
### 创建静态资源目录
你的静态文件目录默认需要放在 `./public/`,你可以在 server.js 中做出设置。
### 创建服务环境
指定端口(必须)... | 0bf4e6056a6f84f3349a1005a51d060cb0d22806 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | sgshy1995/static-server-nodejs | d44addab753ae87c6de4de8489aaa91981b6c09b | 6210e10780e2ad61e1dd448ea3a9390473fc104e |
refs/heads/master | <repo_name>CwBear/web<file_sep>/Controlador/CProducto.php
<?php
include_once 'Modelo/Producto.php';
class CProducto {
private $catalogo = [];
private $carrito = [];
public function getCatalogo() {
return $this->catalogo;
}
public function getCarrito() {
return $this->car... | 32dcc7fe1d97c92fa8dc9a8230a0cf160acc1ce1 | [
"PHP"
] | 8 | PHP | CwBear/web | ddd041ffc658d9b1839639633d3818edc21e500f | 40d00772d5de45e340368048f0f344553587b0cd |
refs/heads/master | <repo_name>seunx/webdb-challenge<file_sep>/server/seeds/001-actions.js
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return knex("actions")
.del()
.then(function() {
// Inserts seed entries
return knex("actions").insert([
{
id: 1,
name: "For... | 707d2f4871411a7a5e4cefe5c3ac997099c62f60 | [
"JavaScript"
] | 3 | JavaScript | seunx/webdb-challenge | 9c56a066bb9b4bddd6e3c0bf1c6b894b00b93fe9 | 90a12cb3c87db0d248a00fe503f4f97522b1debd |
refs/heads/master | <repo_name>AakashSharma01/AQI-Visualtion<file_sep>/Impact of COVID-19 on AQI.py
#!/usr/bin/env python
# coding: utf-8
import pandas as pd
import numpy as np
import os
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from matplotlib.dates import DateFormatter
import matplotlib.ticker as ticker
get_ip... | 3cb27b1aeffff7a9010fad6aae5dcf147f1b7873 | [
"Python"
] | 1 | Python | AakashSharma01/AQI-Visualtion | c5340f6ccde7f2fb1f5494a10d9b2dedb162ed69 | 5a3012c57b3032ee6ecc33438c1a2b7319abe6d6 |
refs/heads/master | <repo_name>deviamsale/vue-iamsale<file_sep>/src/store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'
import { stat } from 'fs';
Vue.use( Vuex )
const createStore = () => {
return new Vuex.Store({
state: {
default_data : null,
alias_data : {},
... | e2cf43308670b1b6575eb10471289c50314a9ac8 | [
"JavaScript"
] | 3 | JavaScript | deviamsale/vue-iamsale | a7fa350145387bd9a7924bd5a30cc9b6396d34b9 | 0728047aed20e5a864b3f38115c17d2667aedf81 |
refs/heads/master | <file_sep># Web_Spider_byPython
江南大学教务处课表爬虫
<file_sep># -*- coding:utf-8 -*-
# author :Max
import re
import urllib
import urllib2
import cookielib
# 通过创建Spider类,用Spider类的两个方法来实现爬虫
class Spider:
filename = 'cookie.txt'
cookie = cookielib.MozillaCookieJar(filename)
opener = urllib2.build_opener(urllib2.H... | 5bc28a9204f902d616c754e203589102b7e916a3 | [
"Markdown",
"Python"
] | 2 | Markdown | cheatcodezky/Web_Spider_byPython | 593b53a044d928c154e71bd61ccaa7a42ea11a15 | 9d4c512df9f26ff40a28b6cd239784bb92c92128 |
refs/heads/master | <file_sep>use bucket_list;
db.dropDatabase();
db.items.insertMany([
{
item: "take a bubble bath with <NAME>",
status: "false"
},
{
item: "drink a daiquiri in Harry's bar",
status: "false"
},
{
item: "ride a wave",
status: "true"
},
{
item: "fight a pig",
status: "fals... | 938a0b71a59b3627834c574c46eaab29ff42d064 | [
"JavaScript"
] | 5 | JavaScript | MikeBlumenthal/lab_bucket_list | a4819553ddbf5af557a4ba0d8f1175a84e49ec84 | c6e591774fb7fd58cc9a7ae898c12a48f88a45f6 |
refs/heads/master | <repo_name>codesquad-member-2020/photos-2<file_sep>/PhotosApp/PhotosApp/Model/ImageData.swift
//
// ImageData.swift
// PhotosApp
//
// Created by delma on 2020/03/18.
// Copyright © 2020 Codesquad. All rights reserved.
//
import Foundation
struct ImageData {
var title: String
var image: String
var dat... | 24f17efa1afe3e111d2a3079bf81e25b25339643 | [
"Swift",
"Markdown"
] | 12 | Swift | codesquad-member-2020/photos-2 | 3ab1436676c400f656b5cefcc63c0ae7ac2ddb14 | 3ca12a052ccf023d5cc3867ce7aa1b945742c501 |
refs/heads/master | <file_sep>module Types
class RepoType < Types::BaseObject
field :name, String, null: false
end
end
<file_sep>module Types
class UserType < Types::BaseObject
field :login, String, null: false
field :name, String, null: false
field :repos, [RepoType], null: false
end
end
<file_sep>module Types
c... | 68d94f0e892e239e2c93e2238faa085a1a39f81b | [
"Ruby"
] | 3 | Ruby | Onixikum/gitapi | ee95e7686a4a0cd306a927f4a80f0d2957dd6816 | 2fbce87b61985d817c85565e326c69801596ef96 |
refs/heads/master | <file_sep>package itcollege.team09.entities;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Pre... | 116da5d7443027ec532939bea9157512529326fa | [
"Java"
] | 4 | Java | Mailis/Team09.BorderGuard | 33816bdb279997f8e0e7441b1626830ed3e5d091 | c756b1f21774d81f9f766670cc889fd1d69907cf |
refs/heads/master | <repo_name>joel329/sound-project-challenge-2<file_sep>/main.ts
while (true) {
if (input.lightLevel() > 5) {
light.setAll(color.rgb(255, 0, 0))
music.playMelody("E B C5 A B G A F ", 120)
music.stopAllSounds()
}
}
<file_sep>/main.py
while True:
if input.light_level() > 5:
... | ab83d563294e9c889efe91113ee9c3bd236c71f3 | [
"Python",
"TypeScript"
] | 2 | TypeScript | joel329/sound-project-challenge-2 | 9064157d28745310752e5b855812aa2a2906b703 | 1e50e1fe1738b27e98003ff018f385a29bf34373 |
refs/heads/main | <repo_name>SpookedByRoaches/Pico-HX8357-Parallel-Interface<file_sep>/README.md
# HX8357 8-bit Parallel Pi Pico Interface
- There is not much support for customizable parallel communication with the
TFT driver chip: HX8357. Hopefully this helps others on their projects as
much as it did for me
- This is based on the ... | eb60f03a4fa6fdec61273fbd5abd91396f45930a | [
"Markdown",
"C",
"C++"
] | 5 | Markdown | SpookedByRoaches/Pico-HX8357-Parallel-Interface | c2575ea7c1db99f259d7272e392e6b5e618c77d3 | a705048c1c82629591e463b3e3ec4ad8ffdec2d1 |
refs/heads/master | <file_sep>class Committee < ActiveRecord::Base
include ScrapedModel
validates_presence_of :title, :url, :uid, :council_id
validates_uniqueness_of :title, :scope => :council_id
belongs_to :council
has_many :meetings
has_many :memberships, :primary_key => :uid
has_many :members, :through => :memberships, :e... | be021236db78cd0ba9f564bdb8f35ce7e95c71d4 | [
"Ruby"
] | 100 | Ruby | CountCulture/twfy_local_parser | 8d4c9d9ab9c42be623c9a2974b5926de9f3222bc | 37c14c2b9415c2c41ccb92a0e739cc5c36df2782 |
refs/heads/master | <file_sep><?php
class DB_Functions {
private $db;
//put your code here
// constructor
function __construct() {
include_once './db_connect.php';
include_once '../../config.php';
// connecting to database
$this->db = new DB_Connect();
$this->db->conn... | 515c3f545ab0c95cf6d783160c9c1b27ade305ba | [
"SQL",
"Swift",
"Markdown",
"Java",
"PHP",
"Shell"
] | 36 | PHP | skennedsl/Documentation | cf45a2dcc85d3b96526574e7440860a4c7a3a63a | 84657361ec6c20957b570047265073a0d2345303 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import "./Reports.css";
class Reports extends Component {
constructor(props) {
super(props);
this.state = {
data: []
}
}
loadReports() {
const url = "http://localhost:3004/reports";
fetch(url).then(res... | 01f7a7270fa8d1291fd5902fd52e46ca6059145e | [
"JavaScript"
] | 2 | JavaScript | fonsecaricardos/teste-nave | 202c0c3fc05c176a7785fbf44fe86259bbc98f0a | 2363490103c6c9da316dab8d7de21669b99bd854 |
refs/heads/master | <repo_name>surajsingh2/pixelindia<file_sep>/Pixel_India/src/com/pixelindia/action/MessageAction.java
package com.pixelindia.action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.pixelindia.dao.MessageDAO;
import com.pixelindia.model.MessageDetails;
public... | 2cb77ec844a1a1103fb1ef6e03da3a4ea61ef041 | [
"Java"
] | 7 | Java | surajsingh2/pixelindia | 465e89a5921f901f1a6f888a898425bf1047ea32 | 285cf7b927ec4f832b79115cec221b9140e86959 |
refs/heads/master | <file_sep>package com.mms.cases.design.strategy;
import org.springframework.lang.NonNull;
import java.io.Serializable;
public interface FormService {
CommonPairResponse<String, Serializable> submitForm(@NonNull FormSubmitRequest request);
}
<file_sep>package com.mms.cases.leetcode.link;
/**
* 删除字符串中的所有相邻重复项
... | ba312b361d4b3d9e6d0c3beda8fe988c9333526c | [
"Markdown",
"Java"
] | 4 | Java | mmszhou/personal-cases | ca0c30e2cf9682d27a3394dd6538a8384eb150ef | 09ecac7a238269b117554ec9942440a8c3e03bdf |
refs/heads/master | <repo_name>Macarse/sia2011<file_sep>/tp02/images/generate_noise.py
# -*- coding: iso-8859-1 -*-
import Image
import sys
import random
def generate():
random.seed(1337)
func = get_value_random
func_name = ""
if "inverse" == sys.argv[1]:
func = get_value_inverse
func_name = "inverse"
else:
func = get_value_r... | 171e445859c4ba6e670b5ca9121e610cf3c6527b | [
"Java",
"Python",
"Maven POM",
"Shell"
] | 12 | Python | Macarse/sia2011 | 2bc461c915d37b844bf68d8ce7c49adc00ad894a | 3c9edbee25fa63a5f2732112221788b133f8a009 |
refs/heads/master | <file_sep>from tkinter import *
from tkinter import ttk
from tkinter import ttk
root = Tk()
root.title('title')
root.geometry("400x400")
def comboclick(event):
msg = f"index: {myCombo.current()}, value: {myCombo.get()}"
Label(root, text=msg).pack()
Label(root, text=clicked.get()).pack()
options = [
"red",
"g... | 6a4326f294dda8fc320d0058efa56b08aaef7049 | [
"Python"
] | 30 | Python | DimaOmb/Tkinter_Lecture | a59e1932f21553f90b05823904aa7505759041a7 | 620aff056c416ee3b1aa372f9a5ebaf287e6c4bc |
refs/heads/master | <file_sep>'''
Setup of Python virtualenv sandboxes via virtualenvwrapper.
=====================================
'''
# Import python libs
import logging
import os
logger = logging.getLogger(__name__) # pylint: disable-msg=C0103
def _venv_data(name, runas):
# run a dummy/useless operation to ensure the virtual... | fc68536c01e08205c0351b91da87cf0573a4c420 | [
"Markdown",
"Python"
] | 4 | Python | jaddison/salt-base-states | e020f431e64f05a329246a4444e2bfdf0382a95d | 675ccee0f8360fb3263374141914787b9f7f14b8 |
refs/heads/main | <file_sep>import { PokeApiSearchPokemonResultType } from '../types/PokeApi';
const pokeApiUrl: string = 'https://pokeapi.co/api/v2';
export async function getPokemonById(pokemonId: number|string) : Promise<PokeApiSearchPokemonResultType> {
let url: string = `${pokeApiUrl}/pokemon/${pokemonId}`;
let response =... | 4f8e6c73438266afd66418a7c2556a251264830a | [
"Markdown",
"TypeScript",
"Dockerfile"
] | 4 | TypeScript | AkeUs/pokedex-react | 5475a43acc64e5d21c90122af1c6a8d7e971e5b7 | a68029fa6d0fc0436de4a52edfca435fb67c477f |
refs/heads/master | <file_sep>import _ from 'lodash';
import { FETCH_POSTS,FETCH_POST, DELETE_POST } from '../actions';
export default function(state = {},action){
switch(action.type){
case DELETE_POST:
return _.omit(state,action.payload);
case FETCH_POST:
// const post = action.payload.data;
// const newState = { ...state ... | 26ce1e5605d71d206e32e37c0060bf8a933f5766 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | rafaalb/BlogsReact | 573828147705684e8f6b1fdc29674192f2f3745c | 448ba7f45acfce752c9aae1db86abd78e6157005 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceProgramm
{
class TextUser
{
}
}
<file_sep>using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Net;
usi... | 7b874bd1d2cdbf4a56eb55b1c628149b55901ae3 | [
"C#"
] | 3 | C# | Tentrun/mysql-authorization | 57b7be22184acf7bd9b7b0de39458900b64b2491 | 7573dbb1612fc86f37bd4e2d74f8b7014950b55e |
refs/heads/master | <file_sep>import sys
from ProvModel import Module, Object
import fn_logged
in1 = sys.argv[1]
d1 = Object(in1)
m = fn_logged.cr_to_bed_logged(d1)
d2 = m.run()
sys.stdout.write(d2.ref)
<file_sep># takes 2 arguments and sums them up
# arguments are passed as command line arguments
# invocation command : python Add_ProV... | 2a39265183a0a83d4f7693bd3f59f0f7a9729123 | [
"Markdown",
"Python",
"Text"
] | 51 | Python | rayhan-ferdous/ProvMod | eb9d8b6555c65e2d76594812c6b314383f99285a | 1f67811b1b19f47532b7f4f53b506953b7b989a8 |
refs/heads/master | <repo_name>neilgen/CCS<file_sep>/ccs/ScopeGuard.h
#ifndef SCOPEGUARD_H
#define SCOPEGUARD_H
#include <functional>
#define SCOPEGUARD_LINENAME_CAT(name, line) name##line
#define SCOPEGUARD_LINENAME(name, line) SCOPEGUARD_LINENAME_CAT(name, line)
class ScopeGuard{
public:
explicit ScopeGuard(std::function< void (... | 6b5c390630bac584c9284bde7e556a8f4bf8184e | [
"Markdown",
"C++"
] | 4 | C++ | neilgen/CCS | 69483388068226d5d0ad958fb622ebed0502bec0 | 6c5aef790573a517dc743634f3505fffcd44a603 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
root 'home#index'
post 'results' => 'home#results'
get 'results' => 'home#results'
get 'test' => 'home#test'
end<file_sep>json.extract! restaurant, :id, :name, :rating, :address, :address2, :address3, :city, :phone, :price, :url, :image, :created_at, :updated_at
json.u... | 02209a061b5d9ce450a6a88e4bcb3985cbe8bd04 | [
"Ruby"
] | 2 | Ruby | geoffreycestaro/yelp2 | 7cac6e80f573a2d68d01e8ffce2cfcd8723286e7 | 4ef1e739bf488d5973cb424946f3a5809a8985d6 |
refs/heads/main | <repo_name>bap-rang-bo/face_mask_detection<file_sep>/main.py
import cv2
import dlib
# Load the detector
detector = dlib.get_frontal_face_detector()
# Load the predictor
predictor = dlib.shape_predictor("/home/bau/Desktop/thay_lam/face_recognition/shape_predictor_68_face_landmarks.dat")
# read the image
cap = cv2.Vid... | 089f555995ebc71af6e85f12a477f3b6bbbf1fa2 | [
"Python"
] | 4 | Python | bap-rang-bo/face_mask_detection | 82aed89a021a425383a1212f05af205cf0294350 | 85e9d39b454eef63ef682eeb057d86a6d9d71a70 |
refs/heads/master | <repo_name>joshdyer1992/JoshInc<file_sep>/JoshInc.Core/StockHistory.cs
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JoshInc.Core
{
public class StockHistory
{
public List<SharePrice> SharePrices { get; set; }
public StockHisto... | 289b37af93d194b93e3c19c4515e4359b8d3ff4f | [
"C#"
] | 4 | C# | joshdyer1992/JoshInc | a0f32c4cbbdb328464a2ca19bed3325adb20ed68 | 015825ddef287e599e14f6fd12bf607d8e0dbb40 |
refs/heads/master | <file_sep>// you can also use imports, for example:
import java.util.*;
// you can write to stdout for debugging purposes, e.g.
// System.out.println("this is a debug message");
class Solution {
public int[] solution(String S, int[] P, int[] Q) {
// write your code in Java SE 8
int [] result = ne... | 67d478f30cd0a6d15e9af3a6cbf27d8637f7767b | [
"JavaScript",
"Java"
] | 2 | Java | macpaik/algorithm | e3ee58c617666b5323cd5e494f0912262a6d0178 | f0a63b317005ba1ec90a9a29297d36b28303baa7 |
refs/heads/master | <repo_name>chartjs/chartjs-chart-financial<file_sep>/src/element.candlestick.js
'use strict';
import {Chart} from 'chart.js';
import {merge, valueOrDefault} from 'chart.js/helpers';
import {FinancialElement} from './element.financial';
const globalOpts = Chart.defaults;
export class CandlestickElement extends Finan... | f4bc3aedfb9c753283eb3920f823d0d3994b3cc0 | [
"JavaScript",
"TypeScript",
"Markdown",
"Shell"
] | 15 | JavaScript | chartjs/chartjs-chart-financial | 1e2316369a2ec0df229ba8d154d8c9ac816dc90f | e759112db43536188a50c77d3652dfd6709116e0 |
refs/heads/master | <file_sep>//Function that swaps two elements in an array.
//For an array a[] and two indexes i and j, we could exchange the i'th and j'th elemments by the call
#define swap(a, i, j) \
{int t; t=a[i]; a[i]=a[j]; a[j]=t;}
<file_sep>//Convert a number in the range 0..6 into a weekday name.
//0 returns "Sun", 1 ret... | 68e691998163f471ee486cd63b8bb354474cc2ad | [
"C"
] | 39 | C | martinlecs/1927_revision | 5a2dd2dac8adc29ef1545e2ec4506f0d83b8b339 | 89345d9724bd729bbe0fbf3b09999875b8dd55bc |
refs/heads/master | <file_sep>const errors = require('./errors')
const badDigits = /[^0-9+ \(\)-\.]/
const extension = /^(?:\+?1[ .-]?)?(?:([0-9]{3})|\(([0-9]{3})\))[ .-]?([0-9]{3})[ .-]?([0-9]{4})(?:#|ext.?)([0-9]+)$/
const ideal = /^(?:\+?1[ .-]?)?(?:([0-9]{3})|\(([0-9]{3})\))[ .-]?([0-9]{3})[ .-]?([0-9]{4})$/
const validNonNumerals = ... | dbb8e23ec6dc4b2f149fd36de8bc6c7c9745702e | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | shawninder/tel-input | 8cd46fdcb6a2fcde081447c2b68e5dbc7c8df9f1 | 36193b5add5ccab8a072a05ed7deb36eb5266e92 |
refs/heads/master | <repo_name>epeterik/react_country2<file_sep>/src/containers/blockMembership.js
//app imports
import React, { Component } from 'react';
import { connect } from "react-redux";
//css imports
import '../ui-toolkit/css/nm-cx/main.css';
import '../css/custom.css';
//App Imports
import { WaitSpinner } from '../components/wa... | 07366b8481bd891bafcb3d969485e7f57b0b1ed6 | [
"JavaScript"
] | 5 | JavaScript | epeterik/react_country2 | 1233aa2ed12d48bc588a8c45146e2a54bad07f25 | a3f549bba25881ca50cec037ad58641dec64fc92 |
refs/heads/main | <repo_name>adityamahamuni/cpp<file_sep>/DS/LinkedList/DoublyLinkedList.h
#pragma once
#ifndef _DOUBLYLINKEDLIST_H_
#define _DOUBLYLINKEDLIST_H_
#include<iostream>
#include<exception>
class DoublyLinkedListException : virtual public std::exception {
std::string msg;
public:
DoublyLinkedListException(std::string ms... | a9df30ea420802a48a53a3173ef91eda5f957b24 | [
"Text",
"C++"
] | 29 | C++ | adityamahamuni/cpp | 0da46038fce6c49e59bf635c84531a29f167b7bd | 7ad72721604fe4d3e499e3ab0d31e8270c9a1cd1 |
refs/heads/master | <file_sep>#!/bin/bash
jira_project_name="EB3AND"
jira_url="https://alterplay.atlassian.net"
jira_token="<KEY>"
from_status="Team Review"
to_status="Ready for QA"
slack_webhoock="<KEY>"
custom_jira_value="6"
custom_jira_field="customfield_11360"
changelogpath="changelog.txt"
if [ -z "$jira_project_name" ]; then
ec... | b0a244ac9fe0e427dc95af063840d15a5aa53b88 | [
"Shell"
] | 1 | Shell | frakc/jira-move-task | 806627ec9d31a995875f72aa3905b47c6364c3e3 | f6f2b268dae46731763616e6e7157d5ec84a90d4 |
refs/heads/main | <repo_name>vib1307/angular-ssr-project<file_sep>/src/app/launch-programs/launch-programs.component.ts
import { Component, OnInit } from '@angular/core';
import { AppService } from '../app.service';
@Component({
selector: 'app-launch-programs',
templateUrl: './launch-programs.component.html',
styleUrls: ['./launc... | 9296bd568bec9febc512e3a6554ffd1eca070f17 | [
"TypeScript"
] | 2 | TypeScript | vib1307/angular-ssr-project | 90cb0e23144c87f4bfaba0e78a1a6512e2ec28da | 21dc3e53254bff81c2a25632ba44c09f42f91b2d |
refs/heads/master | <file_sep>using Assets.Scripts;
using UnityEngine;
/// <summary>
/// Dragable Menu
/// </summary>
public class ConnectionSettings : GUIDraggableObject
{
private string m_Name;
private int m_Value; // May have this for tracking menu numbers or some such
// Holds cass to call
private Connec... | 78593fd861f86cf69a33b9f02301c9fcf535e85c | [
"C#",
"SQL"
] | 11 | C# | P4r4d0x42/Schemaverse-FE | d2576732a8fbe5b9da1caa2ec295a9528c1c9b7d | 10b809cf46a33ab2ff9de6cc1075ec8bc69f4301 |
refs/heads/master | <file_sep>package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
import c... | 2ccb4d8f0447f9367266525bec48c818bfd98b14 | [
"Markdown",
"Java"
] | 2 | Java | RoboBachelor/FTC-2018-TEAM1820 | 0759507af841a21d965707e2484f80f3502b6a19 | c349cb0da72f7286112d87ddbdf6d866680b83f2 |
refs/heads/master | <file_sep>package com.boavista.jobbatch.step;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.... | d63179168f4b4bc7fa6054d9ea4d79befdde6dbf | [
"Java",
"INI"
] | 2 | Java | Airlon/SpringBatchMonitoracao | 0533522859457b1d0e37dc4f5c964f14726ac05a | bb5f140b338712d16ad769969be601ab4219bd90 |
refs/heads/master | <file_sep># KeyboardCoverDemo
# KeyboardCoverDemo
<file_sep>package com.stingerzou.keyboardcoverdemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ScrollView;
import java.net.DatagramPacket;
public class MainActivity extends AppCompatActiv... | aa7bf29dee661685f71bb8c1d667cb576a6b935d | [
"Markdown",
"Java"
] | 2 | Markdown | stingerzou/KeyboardCoverDemo | 839b7298acac1d871cfabf3b280bf65168ff8672 | cef80b2114a0941fe245477aa516c6967537eef3 |
refs/heads/master | <repo_name>timothyjeffcoat/semanticbits<file_sep>/data/sample_sql.sql
-- sample sql (should see 2 rows)
select ae.id, ae.safety_report_id, p.patient_age, p.patient_sex , d.medicinal_product, r.meddra_primary_term
from adverse_events ae
join patients p on p.adverse_event_id = ae.id
left join patient_drugs pd on pd.pat... | b61653cc996f67cb8baf396c4d13ada2af0f8ee2 | [
"JavaScript",
"SQL",
"Markdown"
] | 8 | SQL | timothyjeffcoat/semanticbits | 15627587e342f2e4acc42f85ca4fca28914727db | 8a88174d98613264e46c2a6d9391b7128e2f69cd |
refs/heads/master | <repo_name>souravsaha/I-REX<file_sep>/src/main/java/lucdeb/commands/SearchCommand.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lucdeb.commands;
import static common.C... | f171ff30d4899303984202e76ba8823ca69f415c | [
"Markdown",
"Java"
] | 24 | Java | souravsaha/I-REX | d3d5a9bd4208314374fd54ed607b9e268310574e | 2b4a24182bb561f47fe4f2a7bd3a12def03c4417 |
refs/heads/main | <repo_name>Siddhant128-bit/Nayve-Bayes-Classification<file_sep>/main.py
import pandas as pd
import re
data_set=pd.read_csv('spam.csv')
data_set['Message']=data_set['Message'].str.replace('\W',' ')
data_set['Message']=data_set['Message'].str.lower()
data_set['Message']=data_set['Message'].str.split()
vocabulary=... | 53900769780b3830a42cf67c764339edcd1dd5ab | [
"Python"
] | 2 | Python | Siddhant128-bit/Nayve-Bayes-Classification | b65c41c9b971bcec35b338e43418e896d6084b57 | 4f9a78397724a24e54389ad4d30e5795ed8e4880 |
refs/heads/master | <repo_name>anshuman73/2016-CBSE-Grade-12-Results<file_sep>/Result Extractor.py
"""
Copyright 2016, <NAME> (anshuman73)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... | 382f01aa992e34d2ba63f3050ccbdc703feb1729 | [
"Markdown",
"Python"
] | 3 | Python | anshuman73/2016-CBSE-Grade-12-Results | 0f2927ac837d18a5ce2d5a70bb8def397e70b4bd | 0731e476489ae16ed01fa02b9e856ab4d5c0c6b3 |
refs/heads/main | <file_sep>import { useState } from 'react';
import './assets/App.css';
import data from "./data"
function App() {
const [number,setNumber] = useState(0);
const [text,setText] = useState([]);
const [copy , setCopy] = useState(false);
const handleSubmit = (event) => {
event.preventDefault();
setText(dat... | 79ef52857971cf2c81fc7c9eca89c45ab624546a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | hadiraz/reactMini_8_loremIpsum | 84f9c8c63145bfcb980eee52d89fdd2d7f1e11df | 81c474720f6c16638681c00df45b25bf06705197 |
refs/heads/master | <file_sep>import re
import time
import os
import requests
import argparse
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by imp... | 87fc26e0079e7bedbb0d81262177e333217a88e5 | [
"Python"
] | 1 | Python | Johnny4Fun/song_downloader | a2531743022d00016e2d388f5398858f5f0dcd39 | f8049fcf86c8e0ddf61cb8af9056c6bb8b276dac |
refs/heads/master | <file_sep>import React from 'react';
export default function Migration() {
return <div>Migration</div>;
}
<file_sep>using System;
using System.Text;
namespace dotnet_migration_toolkit.Services
{
public class PathModel
{
public string path { get; set; }
}
}
<file_sep>import { combineReducers } fr... | 342f1c6bf733b729f867d1f6abcc89c6aa70b3f1 | [
"JavaScript",
"C#"
] | 11 | JavaScript | theonly1me/dotnet-migration-toolkit-ui | be95efa6800dd1d209949b61790880c804d43816 | 5803d6736c3844931ac90ac59eeafa4db64ece95 |
refs/heads/master | <file_sep>package com.riseapps.marusyaobjloader.model.material;
import java.util.Arrays;
public class TextureOptionModel {
private TextureType type;
private float sharpness;
private float brightness;
private float contrast;
private float[] originOffset;
private float[] scale;
private float... | a44c6d32dcc8b0e91c8a3f3281f2bf770f426ea0 | [
"CMake",
"Markdown",
"Gradle",
"Java",
"Python",
"C++"
] | 14 | Java | dmitryusikriseapps/MarusyaObjLoader | 9688ac83925253fc29a2a7e887866efde13218c0 | d34c56dc980e15db3ecfa43e48296b6c32e0cc65 |
refs/heads/master | <repo_name>NicklasJensen/Cdio3Gruppe11<file_sep>/src/dtu/client/Menu.java
package dtu.client;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.... | da5afc281da8e163feccfa262f06f47165950d42 | [
"Java"
] | 2 | Java | NicklasJensen/Cdio3Gruppe11 | 5df1f94c99168a015a9727e14b1eb58cded7374a | 5dd16d7fce6f67bf821c88828ff45f2bc11b374c |
refs/heads/master | <repo_name>surya-prakash-singh/-Moodi-CMS<file_sep>/admin/posts.php
<?php include "includes/admin_header.php" ?>
<div id="wrapper">
<!-- Navigation -->
<?php include "includes/admin_navigation.php" ?>
<div id="page-wrapper">
<div class="container-fluid">
<!-... | 0a3dcfdbef9929c19acdd47ece5832fb3eb01696 | [
"Markdown",
"PHP"
] | 2 | PHP | surya-prakash-singh/-Moodi-CMS | 60c73299f5c0d7ea610af642998456ca8e2d4c66 | 4c79f77b6aa4a3412cbe23a18347719fc0146231 |
refs/heads/master | <repo_name>KevinAlvss/react-first-site<file_sep>/src/components/Title/index.js
import React from 'react';
import './styles.css'
function Title() {
return (
<div id="title-container">
<h1><NAME></h1>
<strong>Quem concorda respira</strong>
</div>
);
}
export default Title;<file_sep>/src/compo... | 7d5bb82138c26631e00634098e4c6bd94a10e2d1 | [
"JavaScript"
] | 3 | JavaScript | KevinAlvss/react-first-site | 9474edf39a220aa16ce1ada188f3bbc5f6c2218c | d1284b440ce997b22343cc3d23568e1aa456187a |
refs/heads/master | <file_sep>require 'socket' # Get sockets from stdlib
server = TCPServer.open('0.0.0.0', 2000) # Socket to listen on all interaces at port 2000
loop { # Servers run forever
Thread.start(server.accept) do |client|
puts "Accepted connection from #{client.peeraddr}"
10.times d... | 612bc018d0f8384183e0c8b9a22b71ba4d5b8492 | [
"Ruby"
] | 4 | Ruby | clivemjeffery/teambutton | c693ba8efa1c64c7c31281f08fc6a75b1dae4eed | eec8b3c96fa6815e2143e90c669b6765223220c5 |
refs/heads/master | <repo_name>DavidArchibald/ArchiveBot<file_sep>/reddit.go
package main
import (
"fmt"
"net/http"
"strconv"
"sync"
"time"
"github.com/vartanbeno/go-reddit/reddit"
)
// RedditConfig is the toml configuration for Reddit.
type RedditConfig struct {
Username string `toml:"username"`
Password string `toml:"... | 969526cdac69ea52d57cc4b07b64ac7f7a727614 | [
"TOML",
"Go Module",
"Go"
] | 13 | Go | DavidArchibald/ArchiveBot | c9726b976134a852f85ebf8cd7a9271770ac20f9 | 928c16819b097ffd3d522463a4a8e98f65a8590c |
refs/heads/master | <file_sep># 橘猫
orange-mall
springCloud + consul <file_sep>package com.linyi.mall.orange.web.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linyi.mall.orange.common.entity.User;
/**
* <p>
* Mapper 接口
* </p>
*
* @author linyi
* @since 2019-04-17
*/
public interface UserMapper exten... | d9ea9b4018f176bc17e82ddd772cd4206aa668b1 | [
"Markdown",
"Java",
"Maven POM"
] | 3 | Markdown | linyi4843/orange | 04356a9b081e5a0d83a50ca2ff13757a4cca69b6 | 1cb349f41494045fa71912cad24318d374437bd2 |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.verticle.k8s</g... | ad0a7df447663113ae6f5a1dc51174bab35942e1 | [
"Markdown",
"Java",
"Maven POM"
] | 3 | Maven POM | verticle-io/oculus | ed0131bade7340d96f3377770500fbafaefbaea1 | 38b9b9e78ddc98f5b86ddceb9dcb126514e6c466 |
refs/heads/master | <repo_name>RodrigoCerdaR/sort-algorithms<file_sep>/Lab 1 algoritmos Rodrigo Cerda/Lab 1 Rodrigo Cerda R/auxiliares.h
#ifndef AUXILIARES_H_INCLUDED
#define AUXILIARES_H_INCLUDED
#endif // AUXILIARES_H_INCLUDED
/**< Estructura inferior. En ella se almacenan los datos de rendimiento de cada algoritmo */
typedef ... | 3ad001ad048ea327cd4a8ffb16c787032e2d10e3 | [
"Markdown",
"C"
] | 7 | C | RodrigoCerdaR/sort-algorithms | 5d1ac66d0e8dd68f20b2d82afe832bb19fc62b45 | d457ba2d90a2c5b7af12b791d1753e4aa3f2cfbf |
refs/heads/master | <repo_name>NP-chaonay/LinuxTroubleshooter<file_sep>/GraphicalLogin.py
#!/usr/bin/python3
import sys,posix,time
Name='<NAME>'
Author='NP-chaonay'
Issues='- Cannot login to user screen but always loop back to the login screen.\n\
- User appeared as already logged in without your action.'
code=None
def getUserID(user_na... | 59f47fa20afdfc203686242bfd3762ddb5e79afa | [
"Markdown",
"Python"
] | 2 | Python | NP-chaonay/LinuxTroubleshooter | bb27cebb40ab807af340134ba21b25da859df3b3 | 664acaac7b808517d60368cef6cf3076e4d599d7 |
refs/heads/master | <repo_name>wfpc/SuperSTUN<file_sep>/SuperSTUNServer.py
import socket
import threading
import time
import sys
from multiprocessing import Process, Pipe, Queue
def sendError(error, addr, sock):
print 'ERROR ', error, ' on user ', addr
sock.sendto(error, addr)
def createSocket(port):
sock = socket.socket(socket.AF_IN... | aa569502d19f24b301fc7f995fe6b29b68640aec | [
"Markdown",
"Python"
] | 2 | Python | wfpc/SuperSTUN | f01791ad4ad433adae350fe41e9cb86c373e14e1 | 1335625c3845c6d785c871b7a34d7e3a040f7d2b |
refs/heads/master | <repo_name>standardgalactic/vim-codespell<file_sep>/dict/build.sh
rm all.list
cat *.list >> all.temp
mv all.temp all.list
aspell --lang=en create master ./cs.dict < all.list
<file_sep>/plugin/codespell.py
# TODO: correct header
# Python 3
from collections import defaultdict
import re
from subprocess import Popen, PIPE... | 40314eeae9a8199bd09003be25096f60d0bdca72 | [
"Markdown",
"Python",
"Shell"
] | 3 | Shell | standardgalactic/vim-codespell | bd9efe8331a9f15929562d7a5fbecbcf7bef6c9b | bdd1c7563111647b2188975cd01ec02cffc2b4b1 |
refs/heads/master | <file_sep>"""
Applications enviroment configuration settings
"""
from os import getenv
class Config:
"""
Common configurations
"""
SECRET_KEY = getenv('SECRET KEY', 'my_precious_secret_key')
DEBUG = False
class DevelopmentConfig(Config):
"""
Development configurations
"""
DEBUG... | 0dc45607f7c9723fe8bcd50efca893b48bb642fd | [
"Markdown",
"Python"
] | 5 | Python | frankip/book-share | 6e453f9c096ac71e8693b1d60cd3503aa698ef9e | feb9dc69444fa71331da7fae269ad83413cc17b4 |
refs/heads/master | <repo_name>onkcharkupalli1051/c-programming<file_sep>/DS/LINKED LIST/dll_1_23_11_20.c
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *next,*prev;
};
struct node *head = 0, *temp, *tail;
void create();
void display();
void insert();
void insertatbeg();
void insertatend();
void insert... | 34f404b882001eb8f5e5660eb6162b702454e17e | [
"C",
"C++"
] | 66 | C | onkcharkupalli1051/c-programming | 29aedc781f268b22cd2f30df72e8873063ff98cb | b811dcf6e3ccd9748410ea0d5fb7f3759137fd4a |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import axios from 'axios';
import AuthFunctions from '../../../AuthFunctions';
import { Redirect } from 'react-router-dom';
import './RegisterForm.css';
class RegisterForm extends Component {
constructor() {
super();
this.state = {
name: '',
... | f09bd1981a5ca85062095e137f3840cc55fb0336 | [
"JavaScript"
] | 11 | JavaScript | mikeint/profile_template_full_stack | 9073ed6d5402b4a0cc1c70972dfc1add27f255da | 5f2659fa7513f3a5462fb5213545867c3f66027a |
refs/heads/master | <file_sep>#immport-galaxy tools
<file_sep>#!/usr/bin/env python
from __future__ import print_function
import sys
import os
import pandas as pd
from argparse import ArgumentParser
def compare_file(file_un, file_dx):
df1 = pd.read_table(file_un)
df2 = pd.read_table(file_dx)
if df1.equals(df2):
print... | 47b2d418fdf835d7d0d94dc012f76cdeba5f3949 | [
"Markdown",
"Python"
] | 2 | Markdown | cristhomas/immport-galaxy-tools | 2434fd65e60f7f7967f289cbce7107ebbb49c4fc | 5e8992c70b28a833daf68d3a9864700329f68a56 |
refs/heads/master | <file_sep>"use strict";
/////creating universal variables/////
const variableGroup = {
////Variables used by LoginScene////
characterButton: null,
characterSelect: null,
headArrow: null,
headSelect: null,
headSelectIcon: null,
////Variables used by the UI Scene////
menu: null,
lookTab: null,
itemsTab: null,
... | 5c24f3218aa4cc3683f161b2855a6ed8fc0e900e | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | twintailsstudios/Top-Down-Test-Game | 59ad0d031dc9f9ba055c7b0f603f936a667485b8 | 6f42cba12e704f19476882c4c02ae45506ff5bfb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.