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/main | <repo_name>Atharva-Phatak/A2OJ<file_sep>/README.md
# A2OJ
Solutions to A2OJ Ladders
<file_sep>/codeforces-1300/young-physicst.py
n = int(input())
l = []
for _ in range(n):
l.append(list(map(int , input().split())))
ans = [sum(col) for col in zip(*l)]
if any(ans):
print("NO")
else:
print("YES")
| 3afef998cdd0923d89983506b286b6ed11b14178 | [
"Markdown",
"Python"
] | 2 | Markdown | Atharva-Phatak/A2OJ | d2d20c53236fba1e4b4a7cc8465b4fe03bedd7e2 | 26f3302e2c3d7721914f460950f0bab816597233 |
refs/heads/main | <repo_name>michaelvangelovski/wp-tus<file_sep>/wp-tus.php
<?php
/**
* Plugin Name: WP Tus
* Plugin URI: <plugin URI>
* Description: Tus Server in WordPress.
* Version: 0.0.0
* Author: <author name>
* Author URI: <author URI>
* License: GPL2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
... | ac6249424c390dfae6ec30bfc4894d3da6156faa | [
"PHP"
] | 1 | PHP | michaelvangelovski/wp-tus | 1979dde42b5a2c2cbcc42755f30962975a549103 | 2ffaaaa5c2c7b481d7aa215f033ab7d0e4487cd3 |
refs/heads/master | <repo_name>itshosted/smtpw<file_sep>/smtpw.sh
#!/bin/bash
# /etc/rc.d/init.d/smtpw
#
# Init.d (CentOS) script for spawning smtpw.
#
. /etc/init.d/functions
SERVICE="smtpw"
DIR="/storage/smtpw"
USER="$SERVICE"
LOG="/var/log/$SERVICE"
PSNAME="smtpw -c=./config.json"
status() {
ps aux | grep -v grep | grep "$PSNAME" > ... | 6d128ea14b49ba663e108cce4d431cb7d66bf3d0 | [
"PHP",
"Go",
"Go Module",
"Dockerfile",
"Shell"
] | 5 | Shell | itshosted/smtpw | 18bba7533e7e788d3a7fe0b0be8790a437c67a8b | 701518f8cedbf40672855eba182f7ddb3bf8a3c7 |
refs/heads/master | <repo_name>rajvaya/letschat<file_sep>/src/config.js
const Config = {
apiKey: "<KEY>",
authDomain: "letschat-1111.firebaseapp.com",
databaseURL: "https://letschat-1111-default-rtdb.firebaseio.com",
projectId: "letschat-1111",
storageBucket: "letschat-1111.appspot.com",
messagingSenderId: "5275177404",
appI... | 3c72d0403de391766126805b218800146cf2d1f0 | [
"JavaScript"
] | 4 | JavaScript | rajvaya/letschat | 442d166ac1387042ede11fb5c3a35a202df201a7 | 86e0c3f2f9a4622e137b0e2e8772790188c7c755 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: 启天
* Date: 2017/10/17
* Time: 17:49
*/
namespace app\common\validate;
use think\Validate;
class AdminUser extends Validate{
protected $rule = [
'username' => 'require|max:25',
'password' => '<PASSWORD>',
'phone' => 'number|max:11',
... | 9ca6c9ae412122ca8ff438aa9bbeee6e4682d4a4 | [
"PHP"
] | 4 | PHP | suqinglin113x/WhyMews | be67134da9d8b8da45d8db050f83b2e92a8ff51c | 5558766094d7593b4f68e0764ab1d20720063c47 |
refs/heads/master | <repo_name>essjay05/WDI-SM-62_w09-d04_rails-blog-LAB<file_sep>/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = ... | c9e9f6bfbc73bd324c1504f63fe83cae9e5cbd57 | [
"Ruby"
] | 1 | Ruby | essjay05/WDI-SM-62_w09-d04_rails-blog-LAB | 5e5255911f9866675111ce6c6120999e9f78a667 | ba671f890b9c6dc3b1694fc6bc0249c8c2bcc5f8 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { FAKER_TYPES } from './faker-type';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
typeList = [
{ name: 'number', displayName... | 3de525666e25b66201a22f5392977af81102ee6f | [
"TypeScript"
] | 1 | TypeScript | thai2902/faker-ui | 8a87c6b048b7c806defe8cb5171661a026ad9e63 | 14c6a02268b147b869081f355b304b30872bfbc4 |
refs/heads/master | <repo_name>NorbertCseh/mevn-chat<file_sep>/api/room/RoomApi.js
const express = require('express')
const passport = require('passport')
const router = express.Router()
const Room = require('../../models/Room')
const User = require('../../models/User')
const validator = require('validator')
router.post(
'/create-room'... | 5a3d663f673c8728ceef838cd2bafd814f43769a | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | NorbertCseh/mevn-chat | 1ce6d84cf2806c75bdf5efbbd5b69586da08baae | 3ff19847af041a328f866eb98e1bb28aa34edeab |
refs/heads/master | <file_sep>import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'search'
})
export class SearchPipe implements PipeTransform {
public transform(value: any[], keys: [], term: string) {
if (!term) return value;
return (value || [])
.filter(item => keys
.some(key => item[key].toLowerCase... | a45f83ae8f345d7876d3b87579b4b3d6da1f04f2 | [
"TypeScript"
] | 6 | TypeScript | bakhtiyarov-r/OpCodeTest | 31f20a45116b8a7049cac1b99fac34a23f354bca | 0fe57888f47b82de8143ea4551e11476aac9d548 |
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 software_fundamental;
/**
*
* @author khanh
*/
public class pillbox_73194 {
/**
* @param ... | bfe50675cb63b8f05259d70420429f9b767c9c6f | [
"Java"
] | 2 | Java | hamzsajjad150/student_demo | b77e2b0f4fc8e4dc972009c39431aba68d85096f | 8c5321891d9bb009219b4d7e590c6bbfb5fcff47 |
refs/heads/master | <file_sep><?php get_header(); ?>
<div class="cover">
<div class="cover-image">
<div class="masthead"><NAME></div>
</div>
</div>
<?php
$dir = "partials/";
$partials = array( "news", "music", "videos", "featured", "photos", "events", "munz-mind" );
foreach ( $partials as $partial ) {
get_template_... | 84ac50e8f24c3d3d67684069d0a06cdd1e800bc9 | [
"JavaScript",
"PHP"
] | 10 | PHP | iamricky/damien-palace | 668f359ea1e6d589843746f19b4a4585ff9a68dd | 846dea4f0866cbe3db37062582acc7a7306b88c1 |
refs/heads/master | <file_sep>### @export "import-the-library"
import pyalm.pyalm as alm
### @export "get-single-doi"
article = alm.get_alm("10.1371/journal.pone.0029797", info="summary")
### @export "print-article"
article
### @export "print-biblio"
article.title
article.url
### @export "print-ids"
article.doi
article.pmid
### @expo... | 9ed440681c02ccd6939a93d40df0836095c3b8a2 | [
"Markdown",
"Python"
] | 15 | Python | lagotto/pyalm | 3d4df6acf6215c0512afb4564d50a1c77b088380 | 2afda29691a71d525b6148a128185de6bc056b9d |
refs/heads/master | <file_sep>import java.awt.*;
import javax.swing.*;
public class Cube extends JFrame{
//public class Cube {
static Corner wgo;
static Corner wbo;
static Corner wbr;
static Corner wgr;
static Corner ygo;
static Corner ybo;
static Corner ybr;
static Corner ygr;
static JFrame frame;
static Display d;... | cef9a7e3aa0da81ddec13f747f8467c4f2205284 | [
"Java"
] | 3 | Java | WAC4173/Programs | 0bec36c31ef90f968ea787da3a741076c5bf619f | 1e4f09b27ccfcb75a2edb52241673b8161c8d3e1 |
refs/heads/master | <repo_name>artisdom/nix-prefix<file_sep>/bin/check-nss.py
#!/usr/bin/env python
import os
import pwd
print pwd.getpwuid(os.getuid())
<file_sep>/bin/update-glibc-hack.sh
#!/usr/bin/env bash
python=$(nix-build -A python $NIXPKGS)/bin/python
$python ./bin/check-nss.py
set -e
(cd nixpkgs/
git reset --hard remotes/origin/ma... | cc88ce60e55f073e91252a0419e937bb790b26a3 | [
"Python",
"Makefile",
"Shell"
] | 7 | Python | artisdom/nix-prefix | a5c44d4f700fabfb498407c234d64c844850b029 | 1faeb65a3077030426dc1fe1a03231974ddb1d9b |
refs/heads/master | <repo_name>weal1312/image<file_sep>/image.py
import argparse
import os
from PIL import Image
class IMG:
def __init__(self, source_path, dest_dir):
self.img = Image.open(source_path)
self.width, self.height = self.img.size
self.dest_dir = dest_dir
self.filename = os.path.basename(source_path)
def crop(self)... | c811e37d51d29b9b97dce7a96e6945f8ee9d9b0f | [
"Markdown",
"Python"
] | 2 | Python | weal1312/image | 284d2bae28242db2f6f1b73a9deafeb57e112261 | 224e51c88d3059d6288a2ef59eea57dbfbe398dd |
refs/heads/master | <repo_name>rajesh6927/php-coding-standards<file_sep>/.php_cs.dist
<?php
declare(strict_types=1);
use Mollie\PhpCodingStandards\PhpCsFixer\Rules;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->name('.php_cs.dist') // Fix this file as well
->in(__DIR__);
$overrides = [
'declare... | f0b0f7fde3a427bf5ee0f9e02073f70e42e1fcc7 | [
"PHP"
] | 1 | PHP | rajesh6927/php-coding-standards | 9b2bb6cabac9462068baf7cb25a2b45cfe9abf28 | 0c3eca7bb3fae7f440c09d84ecdbeaed89129096 |
refs/heads/master | <repo_name>wang-yang/cell_signalling_analysis<file_sep>/src/odps/odps-console-dist-public/odps_config.ini
project_name=
access_id=
access_key=
end_point=
tunnel_endpoint=
log_view_host=
https_check=
# confirm threshold for query input size(unit: GB)
data_size_confirm=
<file_sep>/src/api_platform/api_platform.py
#-*- c... | 225fa17ad5d8cbc91d457bfea8bd1a43f43ebcc7 | [
"Markdown",
"Python",
"INI"
] | 7 | INI | wang-yang/cell_signalling_analysis | f3c8f320fa87cc68a3b4cd26325191f23bbe4706 | 2e90e53981bdea7186d0db413e488b6a3eded281 |
refs/heads/master | <repo_name>B-pea/LinkList-practise<file_sep>/LinkList.cpp
//链表的主要操作 创建、删除、插入、输出、排序、反序、销毁
#include<stdlib.h>
#include<stdio.h>
#include <iostream>
using namespace std;
typedef struct node
{
int data;
struct node* next;
}*LinkList;
LinkList head = NULL;
bool create_new(int data) //创建新表头
{
head = (LinkList)malloc(s... | daf23b6b1340fe24bb8df6c57bd8f610bb430702 | [
"C++"
] | 1 | C++ | B-pea/LinkList-practise | 17743f41d1b5d21d02e978ea67e55c8f7fd046bc | 888e182108b7e7865d19a7566ad35c5475ca564d |
refs/heads/master | <file_sep>const bing = require("../../libraries/bing.js");
const hefengWeather = require("../../libraries/hefengWeather.js");
const doubanMovie = require("../../libraries/doubanMovie.js");
const one = require("../../libraries/one.js");
var App = getApp();
var that = this;
Page({
data: {
//顶部轮播图片
images: [],
... | 6042620371c2ecf507864811bcb40ab199b2e634 | [
"JavaScript"
] | 6 | JavaScript | 595105530/wechat-demo | 4feeb51328c00e112aacb805a1addaf72266d9d5 | 1b682b0515f422f1b952a7fdb4cf404d96c89e9e |
refs/heads/main | <repo_name>vers-dev/azimut<file_sep>/js/app.js
const burgerMenu = document.querySelector(".header-trigger");
const menu = document.querySelector(".header-menu");
const closeMenu = document.querySelector(".header-menu__close");
burgerMenu.addEventListener("click", () => {
menu.classList.add("show");
});
clos... | a2dc7fa9372cc4bc2bf2988a4c1d646045feb555 | [
"JavaScript"
] | 1 | JavaScript | vers-dev/azimut | 71be79ffef69d40b8fc1231a203cae0662a58c69 | e769024507a1af82a736b91690b5cf8f4a4beb0b |
refs/heads/master | <repo_name>churellano/minigames-console<file_sep>/ext_buttons.h
// ext_buttons.h
// Routines/definitions for 3 external push buttons
// by <NAME>
#ifndef EXT_BUTTONS_H
#define EXT_BUTTONS_H
#include <stdbool.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#in... | d3b456696a09404437d9e19ff00119d77b373461 | [
"JavaScript",
"C",
"Makefile",
"Markdown"
] | 35 | C | churellano/minigames-console | 300c350315d436ae6ee88befc40e1a30457537a3 | fd2dd9ebab379fa0646f1a51c8b67f1105a2093d |
refs/heads/master | <repo_name>jhjguxin/multi_xml<file_sep>/spec/helper.rb
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start
require 'multi_xml'
require 'rspec'
RSpec.configure do |config|
confi... | c1a9c8a6dec16c902723a4f4c2dc7215d1a03a9d | [
"Ruby"
] | 1 | Ruby | jhjguxin/multi_xml | 16f2889ff6e7ec43d1d80de1c60652cdda18fc42 | db5d13160089f05e81321142c3f902f189d6526b |
refs/heads/master | <file_sep>Rails.application.routes.draw do
root 'static#index'
get 'static/team'
get '/team', to: 'static#team'
get 'static/contact'
get '/contact', to: 'static#contact'
get '/new_gossips', to: 'create_gossip#new_gossip'
post '/new_gossips', to: "create_gossip#new_gossip"
get '/:id', to: 'gossip#one_gos... | b535be4dff3dcece3ba9597ee3b14cda63ce8a53 | [
"Markdown",
"Ruby"
] | 7 | Ruby | VAJangoFett/Gossip_Project | 2f423d3a24e1cc88de5198a6ac0b761f3c2a625b | e3e69f1616c280118176130bc6d361f7dd8f8900 |
refs/heads/master | <repo_name>mcvitanic/ProgrammingAssignment2<file_sep>/cachematrix.R
# Example usage:
# > mm <- matrix(rnorm(9), nrow = 3) // Create a matrix mm 3 x 3
# > cmm <- makeCacheMatrix(mm) // Create our special matrix
# > cmm$get() // Return the matrix
# > cacheSo... | b8ceb7592358f4b800aa9021c6b5f935309f81d6 | [
"R"
] | 1 | R | mcvitanic/ProgrammingAssignment2 | d0b4792d57e38849d935c3fb872b6435a88e550c | 828eb67bacf507417e784136f1d8f4b02defd4e6 |
refs/heads/master | <repo_name>supermanc88/TdiDriver<file_sep>/TdiDriverTest/TdiDriver.cpp
#include "TdiDriver.h"
#ifdef __cplusplus
extern "C"
{
#endif
PDEVICE_OBJECT g_TcpFltObj = NULL;
PDEVICE_OBJECT g_UdpFltObj = NULL;
PDEVICE_OBJECT g_TcpOldObj = NULL;
PDEVICE_OBJECT g_UdpOldObj = NULL;
typedef struct
{
TDI_ADDRESS_INFO *tai;
PF... | e34888055f34f528b7eb5721f468de543bf5b4c2 | [
"Markdown",
"C",
"C++"
] | 3 | C++ | supermanc88/TdiDriver | 40bb9533858355362b6dfd8638bae1cea2f3ed2c | d8d4bed1293c6972f74cd183ffaebf8500e34098 |
refs/heads/master | <file_sep>require 'rspec'
require_relative './bytestring'
describe "ByteString" do
it 'can convert b64 to hex' do
orig = "<KEY>"
result = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
response = ByteString.from_b64(orig).to_hex
expect(response).... | 3b41dcd272a5944984c5c49df8627233b8656b4c | [
"TOML",
"Rust",
"Ruby",
"Markdown"
] | 16 | Ruby | RBangel/mcrypto | 754ef4e1bfd099b212b23e3e56d3f90d3b383339 | f3669ea51b982e293f8ac0d92c3975034aee894e |
refs/heads/master | <file_sep>import numpy as np
import re
import random
import json
import collections
import numpy as np
#import util.parameters as params
from tqdm import tqdm
import nltk
from nltk.corpus import wordnet as wn
import os
import pickle
import multiprocessing as mp
from itertools import islice, chain
from nltk.tag import ... | 87265d008eb6bf12e18705e584b68c4bdadec7d8 | [
"Python"
] | 6 | Python | chengchingwen/Entailment_model | cc3a6389e6adc14c69324f2cd4400d62c0df0b0e | 9b4ec392f433a12d16821161a29eea5c24cefcdc |
refs/heads/main | <repo_name>queer/notify<file_sep>/Cargo.toml
[package]
name = "notify"
version = "5.0.0-pre.10"
description = "Cross-platform filesystem notification library"
documentation = "https://docs.rs/notify"
homepage = "https://github.com/notify-rs/notify"
repository = "https://github.com/notify-rs/notify.git"
readme = "READM... | 3513d3b18d1647b22e7116bf5a4cd6399663a212 | [
"TOML",
"Rust",
"Markdown"
] | 9 | TOML | queer/notify | 1fac9caec14b00f3ef23ace38eb1d1d7d7f0e3f3 | f31583f980ddfa664a1c42ebf2e55f740ab7879f |
refs/heads/master | <repo_name>lipsworld/meuppt-estilo-shortcodes<file_sep>/README.md
# meuppt-estilo-shortcodes
Habilita uso de shortcodes de estilo e diversos elementos na edição de posts e páginas
<file_sep>/meuppt-estilo.php
<?php
/*
Plugin Name: MeuPPT - Shortcodes, estilos e elementos
Plugin URI: https://github.com/lipsworld/meu... | 6cf21c6079527ec3db46a672e7dddf1b0c83ad63 | [
"Markdown",
"PHP"
] | 2 | Markdown | lipsworld/meuppt-estilo-shortcodes | 07db82f27810710073d2938b3a023bb52cb38514 | 5a90a0bbd03996b8f2ba45d226c1fb005ee18163 |
refs/heads/master | <repo_name>brenosoares/teste-arquivei<file_sep>/README.md
# Teste Arquivei
Este projeto tem como base o [Create Reac App](https://github.com/facebook/create-react-app) para rodar basta clonar a basta, entrar na pasta clonada e rodar `npm install` e depois `npm start` ou `yarn start`
O projeto irá rodar no link [http:... | 77201cabd1316e0c9ffc913ba6ed719ff8bf9951 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | brenosoares/teste-arquivei | 9fe409b3d11c70032acf40077dcca4fb44c346a8 | a09609bf22b384a66fd9169666d87b6b86735bf2 |
refs/heads/master | <repo_name>iloveicedgreentea/crypto-eink<file_sep>/README.md
# crypto-eink
This is a display "driver" for my pi0. Very WIP, currently rewriting in Go. Posted here just for reference, this is deprecated and will be replaced soon.
This was intended to be used as a passive display to check crypto but the rewrite will mak... | 64c163762b33865e5a5dd6be766fac91b7df4055 | [
"Markdown",
"Python",
"Shell"
] | 3 | Markdown | iloveicedgreentea/crypto-eink | b9f0b454ea11017d426e6abe6cb594eb51bf00f2 | 0dc218a9ebceb677184a504066bcdc36a3b8d5dc |
refs/heads/master | <file_sep># my-o-FirstAirGuitar
## Initialization
### Requirements
* Myo Connect and SDK ([Windows / Mac](https://developer.thalmic.com/downloads)) - you will have to sign up for a Myo Developer Account (just takes email)
* Python 2.7.9 (pre-installed on Macs, on Windows go [here](https://www.python.org/downloads/rele... | 4d58e631e60d57d8dd46559487515323e468c637 | [
"Markdown",
"Python",
"Text"
] | 14 | Markdown | hexavi42/my-o-FirstAirGuitar | 7212f540e86149b1cc96357280dd246dc5ac70b7 | 676280573225a5c9060215131ce0d0c55e3c671c |
refs/heads/master | <file_sep>package launcher;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Toolkit;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.image.BufferedImage;
impor... | 3d2a14fae344da31b8314e345d9dd3ea91f2f3bb | [
"Markdown",
"Java"
] | 3 | Java | ThizThizzyDizzy/thizzyz-games-launcher | 885eff98b9ce75db80ef9b124feebdf1dbb44026 | d14152477c847e583dcb3faf717dbbd809b77625 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# -*- coding: utf8 -*-
# base of Read.py
import RPi.GPIO as GPIO
import MFRC522
import signal
import time
import sys
import os
import subprocess
from random import randint
# SoC als Pinreferenz waehlen
GPIO.setmode(GPIO.BOARD)
GPIO.cleanup()
# Pin 24 vom SoC als Input deklarieren und P... | d77110708792d27fafc6b4f7147d4602aed2ec3d | [
"Python"
] | 1 | Python | SaschaJohn/rfidBox | 7e0e7755bb2aad734cf70e6e1d1d900f182f5828 | 13f276bf3905bcd8d2b21613929b0bcd1d8878ce |
refs/heads/main | <file_sep>export const color = {
fullSliderBar: 'hsl(174, 77%, 80%)',
sliderBackground: 'hsl(174, 86%, 45%)',
discountBackground: 'hsl(14,92%, 95%)',
discountText: 'hsl(15,100%,70%)',
ctaText: 'hsl(226,100%,87%)',
pricingComponentBackground: 'hsl(0,0%,100%)',
mainBackground: 'hsl(230, 100%, 99%)',
emptySliderBa... | 534e722838029f2a8d4324eb5ab726b606d5d697 | [
"JavaScript"
] | 3 | JavaScript | cconner57/React-Interactive-Pricing-Component | 6a0f7384869453b9e973a7f20b8366f5715138b2 | adad85c56ef96e512857351db758526c74785d87 |
refs/heads/master | <repo_name>nguyenhongnhatlam/BooksShopOnline<file_sep>/Models/BookDatabaseInitializer .cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
namespace BooksShopOnline.Models
{
public class BookDatabaseInitializer : DropCreateDatabaseAlways<BookContext>
... | 181845a608b6f45ad0d0874fdf9df6826a7d7ca2 | [
"Markdown",
"C#"
] | 2 | C# | nguyenhongnhatlam/BooksShopOnline | 5894ceace8548b78d60d0b622f07264fe09f96a4 | 379917640ea815ae4a0951713fd295dc23556c70 |
refs/heads/master | <file_sep>import nltk
from six import text_type
def _get_kwarg(kwargs, key, default):
if key in kwargs:
arg = kwargs[key]
del kwargs[key]
else:
arg = default
return arg
class CustomFreqDist(nltk.probability.FreqDist):
def custom_plot(self, *args, **kwargs):
try:
... | ab957aad586c2195ff5a22a7ed7597fb4365da22 | [
"Python"
] | 1 | Python | annabl38/Project_1 | 7c5eafc187200dc4363843fe0e76e384d428ab47 | 8a9102cd345bca531c0383ce5cfe9ed2f8beb60d |
refs/heads/master | <file_sep>suite('Menu Link Tests', function() {
test('page should contain links to HowTo, Team, Register & Blog page', function(){
assert($('a[href="wieesfunktioniert"]').length);
assert($('a[href="team"]').length);
assert($('a[href="http://www.guesswhapp.net/#/login"]').length);
assert($('a[href="http://guesswhap... | 45df3227e5dd16912e7a1aa3ebfe6c81658a6adb | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | olafguesswhapp/GuessWhappNodeExpress | 01c02d4a9dfa7cb562c82d3ffb3b942ab1cde151 | 286f693f91ec4814b74c613aa9ab30d6fe5016e9 |
refs/heads/master | <file_sep>import csv, json
from flask import Flask,render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html')
@app.route('/maps/example1.json')
def example1():
f = open('./static/js/maps/example1.json', 'rt', encoding='UTF8')
print("stage1")
data = f.read... | 2126e31b0227cbf28845f80a2f64ed881e4ea24a | [
"Markdown",
"Python",
"JavaScript"
] | 4 | Python | Chipsama/snuMapHack | 9d148b15893a3c585ade6669f7ac28c4ab3293f5 | a5ab718c3a5a4d1e8cd70c61fa5597f9e633ecf8 |
refs/heads/master | <repo_name>alejandro945/coffee-shop<file_sep>/src/model/Ages.java
package model;
import java.util.ArrayList;
public class Ages {
private ArrayList<Double> ages;
private double prom;
public Ages() {
this.ages = new ArrayList<Double>();
}
public ArrayList<Double> getAges() {
return... | c1915603d2f323a5c3ea4f6438af0c7ffb79669b | [
"Java"
] | 1 | Java | alejandro945/coffee-shop | 1b9122d2f76af355f5a4c5064dfc5b16c3da630d | ab337515fa4b88a78111c5b82a8980d843de8f90 |
refs/heads/main | <file_sep>package swp490.spa.entities;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Data
@Getter
@Setter
@Table(name = "category", schema = "public")
public class Category implements Serializable {
@Id
@GeneratedValue(strategy = Gen... | e5b21d7a6656994266ca5fa419ca32d011ff8b8d | [
"Java"
] | 19 | Java | phongpttse63166/testLogin | 0ecbedcb6d1c9ba9428ea3bda4de1bb11a7d4a3a | 9248ee6e0c33b277dc23023c999ee64fb37541d6 |
refs/heads/master | <repo_name>yasha-o-d/Roll-My-Dice<file_sep>/main.cpp
// main.cpp
// Jesse's Actual Second Challenge
// Created by <NAME> on 1/4/18.
// Copyright © 2018 <NAME>. All rights reserved.
#include <iostream>
using namespace std;
int main() {
int nDice = 10; //Defines number of dic... | 6e0f6d4e9a8ac4ef407683ea035c04be78339d3b | [
"Markdown",
"C++"
] | 2 | C++ | yasha-o-d/Roll-My-Dice | b16ef7acf17834170278192a61b0d155931aecf7 | 71a477123988c595019d75ac71cb981b511c7b17 |
refs/heads/master | <repo_name>V1zz/Test.TextEditor<file_sep>/Test.TextEditor/StartForm.cs
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Test.TextEditor
{
public interface IStartForm
{
string FilePath { get; }
string Content { get; set; }
void SetSymbolCount(int count);
event EventHandler FileOpen... | 79863e434aea06d89cd4efe31a41bb5f6e42045a | [
"C#"
] | 4 | C# | V1zz/Test.TextEditor | a2d53813e495cf32a83ce169f2d35234e45456ca | b273ee7c30e0aa47dfa1e1b3b563e15a13a6de0f |
refs/heads/master | <repo_name>Kat-Kimani/Basics-of-String-Data<file_sep>/Basics of String Data/stringdata.cpp
#include<iostream>
#include<string>
using namespace std;
int main()
{
cout << "Capturing String Data Type and Limitation of cinn>> : \n";
string cinmyname;
string getlinemyname;
cout << " Type in your full name : ";
getli... | 8af87cafc281e8da1dc4298e88433e9645a055fa | [
"C++"
] | 1 | C++ | Kat-Kimani/Basics-of-String-Data | 18cb32671caa3ff3c57527ec3654871f7bac1a49 | e8dbc08c9206e4493fef59d6e7933b02c3057baf |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Text;
namespace WhatsNewInCSharp8
{
class DoingMany : IDoMany
{
public void Something()
{
throw new NotImplementedException();
}
//public void Else()
//{
// Console.WriteLine(... | 607db889a868e5d97afba63eb411879ae5dbc9ea | [
"C#"
] | 23 | C# | marcoparenzan/NetConf2019 | 413f228aac2627b489fdd6c92af52d8602a07f93 | cd8201901ee30c12589b4f932986c740e679e5a4 |
refs/heads/master | <repo_name>nkn1/gtestLearnning<file_sep>/main.cpp
#include "gtest/gtest.h"
TEST(targetFunction01, 00001) { EXPECT_EQ(1, 1); }
TEST(targetFunction01, 00002) { EXPECT_EQ(1, 1); }
TEST(targetFunction01, 00003) { EXPECT_EQ(1, 1); }
TEST(targetFunction01, 00004) { EXPECT_EQ(1, 1); }
TEST(targetFunction01, 00005) { ... | e8c5b11b41fe3d6dd4f9de7a39178c283584eadd | [
"Makefile",
"C++"
] | 2 | C++ | nkn1/gtestLearnning | b61d6ba79cdc0b77945618f05919e02735d55920 | 718242e545ef13d1874bf2e7e7d5c98ae7aca45e |
refs/heads/master | <repo_name>edlerd/imagelib<file_sep>/src/02-python.sh
#!/bin/bash
# load virtualenvwrapper for python (after custom PATHs)
venvwrap="virtualenvwrapper.sh"
/usr/bin/which $venvwrap
if [ $? -eq 0 ]; then
venvwrap=`/usr/bin/which $venvwrap`
source $venvwrap
fi
workon OpenCV-3.4.3-py3
cd /root/src
ipython -i ima... | fe1dcf21f614178d15345d5e1cc62239afc07707 | [
"Markdown",
"Python",
"Shell"
] | 4 | Shell | edlerd/imagelib | 3b076217b90876ab43a68ea08e287834be6c5bcb | 133f6b6dbee61df1e15bff42959baa3a98002d00 |
refs/heads/master | <file_sep>/**
* @copyright 2017 <NAME>, <EMAIL>
*/
#ifndef _MTLOBJECTEXCEPTIONS_HPP_
#define _MTLOBJECTEXCEPTIONS_HPP_
#include <exception>
using namespace std;
class MtlParseException : public exception {
const char * what () const throw () {
return "Failed parsing the file";
}
};
#endif /* _MTLOBJE... | e1f32fad9a652417c82fcecfc72547dae860892c | [
"Markdown",
"Makefile",
"C++"
] | 11 | C++ | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | 853607e2b05844350b390ffba5e91e7ad516c3c3 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Linq;
using Orleans.Runtime;
using Orleans.Transactions.Abstractions;
using static Newtonsoft.Json.JsonConvert;
namespace Orleans.T... | e6bedd59ea780e8ff73f6227ecf8d18a35e108d5 | [
"C#"
] | 4 | C# | csyszf/Orleans.Transactions.MongoDB | 5e2148ed6322f3e036f71d5214a6e7bbb9439ed9 | d1777f0e069b28fc3c97775379642258af1e2ee7 |
refs/heads/master | <file_sep>import React, { useState } from 'react';
import { TextInput, View, Button, TouchableOpacity } from 'react-native';
import { adicionarProdutos } from '../../data/produto/produto_db'
import Icon from 'react-native-vector-icons/SimpleLineIcons';
export function Cadastro({ navigation }) {
const [nome, set... | 8495f68aa5af129af62d2abb32e24b964f958948 | [
"JavaScript"
] | 15 | JavaScript | GustavoRF77/DesenvolvimentoMobile_Serratec | 962664ab366ba3e7d09536cd3c7176a9ed27bedf | 0d52afa7571e9edb4f29f5121011b76608542ef8 |
refs/heads/master | <repo_name>JackLuo0826/ReactVideoPlayer<file_sep>/README.md
# ReduxVideoPlayer
This is a simple YouTube player made with React.js. To run just navigate to project folder and type the following in windows cmd/powershell:
> npm start
Then open browser and enter url - localhost:8080
<file_sep>/src/index.js
import _ fro... | d17a5d2406a31b9dad6a3462af869309279305c2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | JackLuo0826/ReactVideoPlayer | 87450b467eb22873c778e353e4efb96a32f2c788 | 347b6e4daae643db3a8f88436951411a22df4e6c |
refs/heads/master | <repo_name>zhuiyv/GestureLock<file_sep>/src/com/android/view/MyCycle.java
package com.android.view;
public class MyCycle {
private float r; // 半径长度
private int x; //简略坐标
private int y; //简略坐标
private int perSize; //坐标系数
private boolean onTouch; // false=未选中
public float getR() {
return r;
}
public ... | fe97da820802f838a7bf808a604848d9277789be | [
"Java"
] | 2 | Java | zhuiyv/GestureLock | 1b27f6ebff89346dd0f3bf085b5c7e4e41c14631 | b2326041ffe1e4efc72acde1191bc8cadeab03db |
refs/heads/master | <file_sep>'use strict';
if (!WEBGL.isWebGLAvailable()) {
document.body.appendChild(WEBGL.getWebGLErrorMessage());
}
let renderer, camera, scene;
let pointerLockControls, position;
// let orbitControls;
let clock = new THREE.Clock();
let dracoLoader = new THREE.DRACOLoader();
THREE.DRACOLoader.getDecoderModule();
TH... | ccd86183e5e59616fca82a63a0d67b1420bc79d6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ngchanway/react360tutorial | f5ea0de61cd24fc2987500c51689618451f425a9 | 67c651c33d7564ec91d598f528d32de4d266c04e |
refs/heads/master | <repo_name>LeoLeBras/experimental-molecular-graphql<file_sep>/shared/graphql-binding-customer/src/resolvers.ts
import { GraphQLResolveInfo } from 'graphql'
import { BillingBinding } from '@acme/graphql-binding-billing'
import { Client } from './binding'
interface Context {
database: any
bindings: {
billing: Bi... | b439c6a3a26df7b8e82007fd6f5d51561dba86d1 | [
"Markdown",
"TypeScript"
] | 26 | TypeScript | LeoLeBras/experimental-molecular-graphql | 2f0de0025656c121ba101ab5bd817ea8f2586cd6 | 1f35f19d17d03afe7263f61dfd30747da61d67ba |
refs/heads/master | <file_sep>import { inject, InjectionKey, provide } from '@vue/composition-api';
import { VueRouter } from 'vue-router/types/router';
const RouterKey: InjectionKey<VueRouter> = Symbol();
export function provideRouter(router: VueRouter) {
provide(RouterKey, router);
}
export function useRouter():... | 8fe5a58d833eb3b81f68036641105d8162482cd7 | [
"TypeScript"
] | 8 | TypeScript | adamJacewicz/vue3-reflex | 397d4f59a83b91bfaa06f788d97151bce122ae05 | 99ef4672de4a0790e937dd0428689bea9a0937da |
refs/heads/master | <file_sep>int color(int a)
{
switch(a)
{
case 1:return 37;
case 3:return 31;
case 2:return 36;
case 5:return 32;
case 8:return 33;
case 13:return 34;
case 21:return 35;
case 34:return 36;
case 55:return 35;
case 89:return 33;
case 144:return 37;
case 233:return 31;
case 377:return 32;
cas... | f4aeeb415a7373771a531808bf56aa8dc4d49433 | [
"C"
] | 2 | C | MADHURIbaradi/fibonacci-2048 | 08b29334196f1c4eac38d322c6e60e638a0c6033 | 922a3a3c1686456db04ee9fe81963f67ffcf0be0 |
refs/heads/master | <file_sep><?php
namespace App\Controller;
class FooController
{
} | 22bb2a35b8005a5f993b08fac76174b476826a42 | [
"PHP"
] | 1 | PHP | maximebarlet/mutli_container_sf | 6ab8e837107fa903b208d640e4acd83e7bc16152 | ae7794a8e4d5bddce891668c79ed668488beb7ec |
refs/heads/master | <repo_name>pkindalov/JavaProgrammingBasic<file_sep>/AdvancedLoops/BinarySort_Quick.java
import java.util.Arrays;
public class BinarySort_Quick {
// Quick Approach
public static void binarySort_Quick(int[] arr) {
// Set pivot to 1
int pivot = 1;
int j = 0;
// Each time a 0 is encountered, we increment j
... | 89b22fbdb227c49d36f5be04230f2029ae76b767 | [
"Markdown",
"Java"
] | 6 | Java | pkindalov/JavaProgrammingBasic | d834faa23eb5d664e750bab45313a2d044e8ce53 | 1405419ad80bba1bf813d00477848b802e38c0a0 |
refs/heads/main | <repo_name>SarahZarei/Car-Detection<file_sep>/car detection.py
import cv2
cap = cv2.VideoCapture('video.avi')
car_cascade = cv2.CascadeClassifier('cars.xml')
#width = cap.get(3) # float width
#height = cap.get(4) # float height
# Make a video writer to see if video being taken as input inflict any cha... | f750a59588ca448ac562cdce66a7cf979cd209db | [
"Markdown",
"Python"
] | 2 | Python | SarahZarei/Car-Detection | 8366ae7b489cf8b58a56c5dc18a4eb30410a6947 | 7dc2552c31706a1338ccdcc1e3e2c2dd41ac9e49 |
refs/heads/master | <file_sep><?php
require_once '../classes/PHPExcel.php';
// excel reader and destination file name
$filetype = 'Excel2007';
$filename = 'Data.xlsx';
// Save csv file to xlsx format
$objReader = PHPExcel_IOFactory::createReader('CSV');
$objPHPExcel = $objReader->load('data/testdata.csv');
$objWriter = PHPExcel_IOFactor... | 5fbc15197cb5b0f206ff8aa9c6ccdce08dbb7f9f | [
"Markdown",
"PHP"
] | 10 | PHP | Crowles/hgphp | ff17e74ba550459538eab833675f02a9a00306c9 | c14a18dd340446f79d8fb2f59b46d39a2c5b40bc |
refs/heads/master | <repo_name>Gobinathnagaraj/entry_form<file_sep>/README.md
# entry_form
## Description
### This is student data entry form...!
#### Screenshot for database

#### Screenshot for pageview
 Create a class called Rational for performing arithmetic with fractions.
Write a Program to test your class.
Use integer variables to represent the private data of the class -- the numerator and the denominator.
Provide a constructor that enables an object of ... | 4b1f0574df9a705e563bc41341e3bedff995760e | [
"Markdown",
"C++"
] | 4 | Markdown | eymelendez/Rational-Class-Exercise | 6a8ecb5249720dc61fc5c34bf9d3a441bd160110 | 099416c8aadcf329c803ad4eba85417c2270e5ee |
refs/heads/master | <repo_name>Cheat-Detective-CDT/Repacker<file_sep>/README.md
# Repacker
1.14.4+ Minecraft open-source deobfuscator using official Mojang mappings
## Usage
`java -jar Repaker.jar <cacheDir> <version>`
example:
`java -jar Repaker.jar . 1.14.4`
**/!\\ This project is designed to be used as a library and not as a execu... | 58979f6bb928022f74c463068666b21bf8a77e38 | [
"Markdown",
"Java",
"Gradle"
] | 4 | Markdown | Cheat-Detective-CDT/Repacker | 350213b65fad2c14228c7e955ff1aa4afa72f499 | 1f766dbe6d4aaae7de59056d5d3081e726377596 |
refs/heads/main | <file_sep># Sweaty-Mania
2D Game in LibGDX, OpenGL, LWJGL
- Pretty garbage cuz im new to the lib
- Uses MIT License
- Made by shab
<file_sep>package com.mygdx.game;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class MyGdxGame ... | af4f9560c51cef1958335bcd2e35789502eefdf4 | [
"Markdown",
"Java"
] | 2 | Markdown | shabman/Sweaty-Mania | dccb632f6bccd4c879b5bcbfed282b1638096e11 | ffc197eabf44f33c702da7349e133d40dbbd43a0 |
refs/heads/master | <file_sep>This is a small flask app project that enable tanzania candidates to check their results online by simply searching their student number in full. The project is on going and open source because it is made to help the tanzania socity and not for the need to make any sort of profit
Launched via Ngrok for now f... | 22214e4bb93e291605d595c9c01972eaf60cb0b9 | [
"Python",
"Text"
] | 4 | Text | Ymcmbennie/Matokeo00 | c1d0ca8e97186d071c70d0fa0a4f1fc901b849b1 | 02a3cb1a49f261f10cdb9d526bdbc6767950d41b |
refs/heads/main | <repo_name>riyaz-pasha/ticketing<file_sep>/auth/src/routes/__test__/current-user.test.ts
import request from "supertest";
import { app } from "../../app";
const signupRequest = (reqBody: any) => request(app)
.post("/api/users/signup")
.send(reqBody)
const currentUserequest = (cookie: any) => request(app)
... | 92e46904ab2bd052756b9b888bc09a29eb82cc0f | [
"TypeScript"
] | 23 | TypeScript | riyaz-pasha/ticketing | 2167b220fc5c52ca18f5bebea9e21a2ddc59e0d4 | 5c41cfc3f30e8c074c6b7ba490d368bd0c2baefe |
refs/heads/master | <repo_name>adlele/es6-msteams-samples-yelp-integration-nodejs<file_sep>/src/bot.js
import * as builder from 'botbuilder';
import * as teams from 'botbuilder-teams';
import config from 'config';
var connector;
export default class Echobot {
static setup(app) {
if (!config.has("bot.appId")) {
// We are running l... | 0d32b506ba71b8b2d82651d39d3c21febe79f58a | [
"JavaScript"
] | 1 | JavaScript | adlele/es6-msteams-samples-yelp-integration-nodejs | 9499d1dc9a4f684963f7c7de96512537e3e9778d | 21cf0a15d11c67c5c8ced3018845b4b8c6bf3aa0 |
refs/heads/master | <file_sep>/*
* Observer pattern
*/
public abstract class CoordinateSubject {
protected Ship observer;
// TODO
// update the observer
// read about the observer pattern
//
// I couldn't call a ship. Attempted to research the observer pattern
// before and during the exam, but had no success. Tried updating the... | 5d93d12c5e0d1f35483e4934a64766fbcb12d509 | [
"Java"
] | 1 | Java | trev0115/Vandise-agile-sp2018-oop | 290f9d15e15c0fce109cbf540e4991adbe4f1665 | e334c0d068348b0ecb2354588d115e037d27f377 |
refs/heads/master | <file_sep>class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
n = len(nums)
if n == 0:
return 0
i, j = 0, 0
while j < n:
k = 1
v = nums[j]
j += 1
while j < n and nums[j] == v:
j += 1
... | 86cd22354f2431087c9b3ff06188f071afb3eb72 | [
"Ruby",
"Python",
"C",
"Go",
"C++"
] | 484 | Python | tlxxzj/leetcode | 06dbf4f5b505a6a41e0d93367eedd231b611a84b | 0c072a74d7e61ef4700388122f2270e46c4ac22e |
refs/heads/main | <file_sep># Basic-C-Calculator
Its a basic Console Calculator , that can +, -, / and *
Note: Made that programm just for fun.
<file_sep>#include <stdio.h>
#include <stdbool.h>
#include <time.h>
int main(void) {
bool loop = true;
double num1;
double num2;
char op;
char y_or_n;
printf("\nThats a basic ... | 100634291137b8e22382ea4951cb31643edc5ce0 | [
"Markdown",
"C"
] | 2 | Markdown | Tasy-real/Basic-C-Calculator | a7a3b959764ed2e4c70e9b1d1e2ccaf965764fe6 | 7e29ee8dfb73e51a98c5eef17785661c081d5f98 |
refs/heads/master | <file_sep>from PIL import Image
import pytesseract
import os
if os.path.exists("output.txt"):
os.remove("output.txt")
# Simple image to string
output = pytesseract.image_to_string(Image.open('image.png'))
print(output)
f = open("output.txt", "w+")
f.write(output)
f.close()
| 8dce5aee884ebdd8160dee637ccd34bac1c51980 | [
"Python"
] | 1 | Python | leandrommoliveira/image-recognition | 65a4bf96d887b08e58969c2d5c22c6a1f81f8a41 | 67fe1d2b98da36e5331b6ddb357f675100a781de |
refs/heads/master | <repo_name>automaticinfotech/ECOMM<file_sep>/src/main/java/com/aits/FactoryClasses/IRandomNumber.java
package com.aits.FactoryClasses;
public interface IRandomNumber {
public int genrateRandomNumber();
}
<file_sep>/src/main/java/com/aits/model/DiscountMaster.java
package com.aits.model;
import java.util.List;
im... | 90a8eb7e8cf44533074259f3785a6c6d8e6e1b95 | [
"Java"
] | 16 | Java | automaticinfotech/ECOMM | ed698f895654b5a1651d8b3f29fd88eb661527ba | 2b1cc99e4c39a4fb36cac90ad8bab2077b81301e |
refs/heads/master | <repo_name>ainc/awesome-jobs<file_sep>/app/controllers/user_info_controller.rb
class UserInfoController < ApplicationController
def index
if user_signed_in?
@jobs = current_user.watching_jobs.order(:created_at).paginate(page: params[:page])
@possible_jobs = Job.all.order(created_at: :desc).take(5)
... | cc203a23c7eda485ba56117a2f9c621006d5f47b | [
"Markdown",
"Ruby"
] | 23 | Ruby | ainc/awesome-jobs | 3db9cd3c89ec4a4d5190231f0198dd48751ca40c | 665a8163e1ba0b4033c3dcecdba05b741ca77f42 |
refs/heads/master | <repo_name>Ibuki-Suika/DPlayer-node<file_sep>/README.md
# DPlayer backend
> Node.js backend for [DPlayer](https://github.com/DIYgod/DPlayer)
## Usage
### Start
```shell
docker-compose build
docker-compose pull
docker-compose up # -d for run it in the background
```
### Data & logs
Database data: `~/dplayer/db`
DP... | 7e188121d978ea62edd9d1afcb48ddfc7bb10640 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | Ibuki-Suika/DPlayer-node | e796e2f71267867000f6531556321a124ae246e9 | 38cae29cecacc2934c2f7636836e0ab6cf5ec321 |
refs/heads/master | <repo_name>zhangchuheng123/PAT<file_sep>/1001.c
#include <stdio.h>
int main(int argc, char const *argv[])
{
int a,b;
int sum;
int seperateSum[10];
int counter = 0;
scanf("%d",&a);
scanf("%d",&b);
sum = a + b;
// dealing with negative sign
if (sum < 0)
c{
printf("-");
sum = (- sum);
}
// seperate the... | ff9c5c23daea177437cf635a9bf9196ad1a970f9 | [
"Markdown",
"C"
] | 11 | C | zhangchuheng123/PAT | b9da180bd0589d5e819b88a4c5633a0c3c108a94 | 0721cde5a6cbce7d15dbd5b2c5e5d78de9678d86 |
refs/heads/master | <file_sep>import React, { useState, useEffect } from "react";
import Axios from "axios";
const ChatBox = props => {
const [error, setError] = useState({
error: false
});
const [msg, setMsg] = useState("");
const [msgCount, setMsgCount] = useState(0);
const [selfData, setSelf] = useState(null);
const [g... | 0b6bc535d95a17f04704329b7022f4ee21be859a | [
"JavaScript"
] | 12 | JavaScript | ThePardeep/chat_app | 6242c5ee6ebff435edf8702534afe4164530e156 | 1630dda790e2fdc457b3934d53b108608d4ccee0 |
refs/heads/master | <repo_name>JosephColby/MEDITECH---Drupal---Meditech.com<file_sep>/js/snazzymaps/snazzy.js
google.maps.event.addDomListener(window, 'load', init);
function init() {
var mapOptions = {
zoom: 15,
center: new google.maps.LatLng(42.222403, -71.174153),
styles: [{
"featureType": "land... | acf01ea7352c6690fe5ab696790f70f56a5a05ef | [
"JavaScript"
] | 3 | JavaScript | JosephColby/MEDITECH---Drupal---Meditech.com | ee71709e28af4c9da0a027cf5c81f16c37da2e6b | a891a4413de348d25c5e0c77af7b3d07c21a95f4 |
refs/heads/master | <repo_name>AllenShen/ios-p2ptest<file_sep>/ios-p2ptest/Classes/p2pnetwork/P2PConnectManager.h
//
// Created by 沈冬冬 on 14-2-12.
//
//
#ifndef __RakNetHandler_H_
#define __RakNetHandler_H_
#include <iostream>
#include "RakNetStuff.h"
#include "DS_Multilist.h"
#include "P2PDefines.h"
#include "NatTypeDetecteUPNPHandle... | 98b9c3ce464dc4faf71ae813cf842b4b576bab79 | [
"C",
"C++"
] | 21 | C++ | AllenShen/ios-p2ptest | 3430b0c1dc122a4ba68d79ad1da9a51ea268e85e | acb8bfd66baa5036a1a0d0d35f663efe39369b0d |
refs/heads/master | <repo_name>Rinaloving/NPoco<file_sep>/README.md
# NPoco
C#
<file_sep>/NpocoDemo/NpocoDemo/Program.cs
using NPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NpocoDemo
{
class Program
{
static void Main(string[] args)
... | 707a5ea4e81e92fcb0e97948fa8f9f24e7540872 | [
"Markdown",
"C#"
] | 2 | Markdown | Rinaloving/NPoco | 16be532cea83ecb9e2e907d36b65ad86f596b3ea | 18ce987b0052d8fd08a5823e9b682cfd3082044a |
refs/heads/master | <file_sep>bootnodes=["enode://6ad4d78f7ada3ac6a03e11c5397242851c3730e44920ef5c8cfff4810de01c1e04f8e85fcab958dfed32b1cff2b7b4500751aa4ddd46daa1827d833046c65b94@127.0.0.1:30303"]
p2p-port="30306"
rpc-http-enabled=true
rpc-http-host="0.0.0.0"
rpc-http-api=["ADMIN,ETH,NET,WEB3,IBFT,PERM,DEBUG,MINER,EEA,PRIV,TXPOOL"]
rpc-... | 0bed309c2275a92c69fd8a4ad8f17707bb154b91 | [
"TOML",
"Markdown",
"Shell"
] | 7 | TOML | blockcheq/besu-node | c30e38f7f139d5b9f233de6cbf72c4f9d2000109 | 7720658d3d3e13f35b04913ff391532ee4fc1b9f |
refs/heads/master | <file_sep>
var bio = {
'name': '<NAME>',
'role': 'Web Developer',
'contacts': {
'mobile': '(650)-380-4377',
'email': '<EMAIL>',
'github': 'markghsu',
'twitter': 'http://twitter.com/markghsu',
'location': 'Tustin, CA'
},
'welcomeMessage': 'Hello World!',
'skills':['php','javascript','C#','HTML','CSS'],
... | 2093bf638f8c6cfbdd399a85e5fbbfa626f23ea5 | [
"JavaScript"
] | 1 | JavaScript | markghsu/frontend-nanodegree-resume | 2b0508ae62464a56713780d939de7f7433fd730e | 47b9db03b38de25bcbb4e1cbd624dc091755799c |
refs/heads/master | <file_sep>"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Assets = require("./components/Assets");
var _Assets2 = _interopRequireDefault(_Assets);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _Assets2.default;<... | 6500560799cce48f9c6dc14e542dd37b40a7a361 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | luatnd/aframe-react-assets | 8db25461c978ff0b4ab9002760c5d06f991f9f6f | de7d4e95af0c6dd791deaa84625634dcd548ae73 |
refs/heads/main | <repo_name>deus2020/codes-tp7<file_sep>/1622847114074_Program.cs
using System;
using System.Threading;
using System.Data;
public class BoundedBuffer
{
// Complete this class
private int ReadData;
public BoundedBuffer(){}
}
class MyProducer
{
private Random rand = new Random(1);
... | d3a1b39ca9f2770974f19bba11816673c4dd3a84 | [
"C#"
] | 1 | C# | deus2020/codes-tp7 | f16f66302947bd0e7711326fa1e9dd84e61962e9 | 0d3606c433837fb6f0ebcdd65f067dab13d6c195 |
refs/heads/main | <file_sep>"""
<NAME> ,GeeksForGeeks
Originally using C++
"""
import sys
#print(sys.getrecursionlimit())
sys.setrecursionlimit(15000)
#print(sys.getrecursionlimit())
dp = [-1]*1000000
def fib(n):
if(n<=1):
return n
if (dp[n - 1] != -1) :
first = dp[n - 1]
else:
... | 924038f29dbd837c0abc3800c2354b3e7289143c | [
"Markdown",
"Python"
] | 3 | Python | Bharath-Gopal/week2 | 18df753d3470e7bc3eae83cf7759e767073e9523 | da0be36f770c5c18cceebbb1c345cf4ef7ed63cc |
refs/heads/master | <repo_name>xarrondo/API<file_sep>/Api.php
<?php
function sendTweet($mensaje){
ini_set('display_errors', 1);
require_once('TwitterAPIExchange.php');
/** Set access tokens here - see: https://dev.twitter.com/apps/ **/
$settings = array(
'oauth_access_token' => "<KEY>",
'oauth_access_token_secret' => "<KEY>",
'consumer_ke... | badd5980e43b920c3618863def425959daa4e743 | [
"Markdown",
"PHP"
] | 2 | PHP | xarrondo/API | 15df76c89e8f544bf4f6c8976238b71cdaae23de | bf79d4f77d702e031f2b1201cc95117c60c283bc |
refs/heads/master | <repo_name>asyba/pebble-plex-remote<file_sep>/README.md
pebble-plex-remote
==================

##Plex Remote for Pebble
- Uses PebbleKitJS from Pebble SDK 2.0
- Configurable from Pebble's smartphone application
##[Demo Video](http://www.y... | 4da55e6add66d9e7c39f06f9a5193d3fc88b5227 | [
"Markdown",
"C"
] | 2 | Markdown | asyba/pebble-plex-remote | 5f6641785b71cef1aab9c9d384dedde9bbfa5258 | ef8b6d0a0a918ca06eb1f4e9b56f296b9b409bfd |
refs/heads/master | <file_sep>// JavaScript Document
function reCalc()
{
var income, expenses, liquid, rate, qualify;
income = document.getElementById('nettincome').value;
expenses = document.getElementById('expenses').value;
liquid = income - expense... | b63e828e85c2bbf6f78000737506303aa9e6c82d | [
"JavaScript"
] | 1 | JavaScript | tommeintjes/BondcalcV1 | 7f7ee939d383680e39f7416567b3bd8e321034bf | cf8fb6e16d805a34c16ccb66d4af330aa4170134 |
refs/heads/master | <repo_name>rchpro/tap-as-a-service<file_sep>/neutron_taas/services/taas/taas_plugin.py
# Copyright (C) 2015 Ericsson AB
# Copyright (c) 2015 Gigamon
#
# 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 Licen... | a2584f95721ba0b749bbf7c9ac58d83f7765fb78 | [
"Python"
] | 2 | Python | rchpro/tap-as-a-service | fe2d77448da04809ebf1925502923e34327ed080 | a4f9ffa93911012a6790cf68d5fe35fb118bbf1e |
refs/heads/master | <repo_name>prospectsource/prospectsource.github.io<file_sep>/js/plans-features-react.js
var PlayerRegistration = React.createClass({
mixins: [ReactFireMixin],
getInitialState: function() {
return {
prospects: [],
planSelection: '',
};
},
componentWillMount: function() {
var firebaseRef... | 1595b96e59f29c81801ef8cefc74090c2ca59b9e | [
"JavaScript",
"Markdown"
] | 26 | JavaScript | prospectsource/prospectsource.github.io | 21eb9012759a45c79f1b5eabc90dc9ddfe1220c8 | 70ddafda51a77bd87c38f346fb3fe105c175b2b3 |
refs/heads/master | <repo_name>bwong199/MEAN-discussion-board<file_sep>/server/config/routes.js
var users = require("./../controllers/users.js");
var topics = require("./../controllers/topics.js");
var posts = require("./../controllers/posts.js");
var comments = require("./../controllers/comments.js");
module.exports = function(app) {... | 35cc1576f02f7aa83b62e9bd05e161dd170b9c44 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | bwong199/MEAN-discussion-board | b74dbd3e78ac54fe5c0a8547902dde09b3db8c94 | 9bdcaef0bd8e9e4dd4c15614554db431de5280a1 |
refs/heads/master | <repo_name>kingalois/calendarexport<file_sep>/at.am.googlecalendarexporter.product/pom.xml
<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</m... | 24ca405bfe1b7af1f5cbd493810cf04e2d24328e | [
"Java",
"Maven POM",
"INI"
] | 4 | Maven POM | kingalois/calendarexport | 7b5f540ce1cb759c2075fa7de3c3e499d5222c75 | 6aa97058c566d2c4088d97f0f611ada0b59882c7 |
refs/heads/master | <repo_name>anya-x/android-eservices-staticfragmenttabs<file_sep>/app/src/main/java/android/eservices/staticfragmenttabs/FragmentOne.java
package android.eservices.staticfragmenttabs;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.... | 005794371a37acf15dbdc27fc6361fed25a40859 | [
"Java"
] | 2 | Java | anya-x/android-eservices-staticfragmenttabs | 65d3a528d9eb82a9e06bb5beb8dcec2b41998270 | 3bd6ce2c72a325e80ea9ba697987b18ec3b70feb |
refs/heads/master | <repo_name>YijunSu/Gradient-descent-algorithms<file_sep>/GD.py
import numpy as np
import random
def train_BGD(x, y, alpha, theta, max_iters, epsilon):
"""
批量梯度下降算法
x: 训练集,
y: 标签,
theta:参数向量
alpha: 学习率,
max_iters: 最大迭代次数
epsilon:阈值
"""
m, _ = np.shape(x)
for i i... | 64b160afe4d316dbbe97cbe5b58ef9f4f80fcaaf | [
"Markdown",
"Python"
] | 2 | Python | YijunSu/Gradient-descent-algorithms | b0dac751b8b6a420f0c192611a42d2758ad622a9 | 3068eeb7ccc6bf0a13816fd6edf009a0497bd748 |
refs/heads/master | <repo_name>surajtamang/playnepal<file_sep>/app/controllers/Login.java
package controllers;
import play.*;
import play.mvc.*;
import play.data.validation.*;
import play.libs.*;
import play.cache.*;
import java.util.*;
import models.*;
public class Login extends Controller {
@Before
static void addUser() {
... | 99317cbd499413499007413d4bb4c921b473cd00 | [
"Markdown",
"Java"
] | 3 | Java | surajtamang/playnepal | 2886ed91111f72ce06ad1b09294116e6c09c605b | 2b911b7304a7d33b1b5582ceae53318577996e8c |
refs/heads/master | <repo_name>llyt/frontend-project-lvl1<file_sep>/Makefile
install:
npm install
start:
sudo npx babel-node src/bin/brain-games.js
publish:
npm publish --dry-run
lint:
npx eslint .
even:
sudo npx babel-node src/bin/brain-even.js
calc:
sudo npx babel-node src/bin/brain-calc.js
gcd:
sudo npx babel-node src/bin/... | e74a63492b7031d876f34794b680b5d87d8bfb2c | [
"JavaScript",
"Makefile",
"Markdown"
] | 6 | Makefile | llyt/frontend-project-lvl1 | 1f24ccca40bc46ea95be7f405689b12d40f9f13b | 975ca8bbbc1b592756d4d1aaab93b17080e901f4 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: 1418349
* Date: 07/03/2016
* Time: 09:38
*/
echo "Hello World";
?>
| db8eb8b186ed7c91b987a2fd14c53b53c0cba7d1 | [
"PHP"
] | 1 | PHP | uchejudeegbue/Design | a70eb60b80132922ff56d067443c9d7f7c4ff4b3 | 00c7463d804dd740fea0cae8b7e09d26335f5954 |
refs/heads/master | <repo_name>fauzirifky/csgraph_editor<file_sep>/app/info.js
/**
* @author tpan496
* Script that deals with the information panel on the right.
*/
var paperString = "1. This editor is best suited for creating mathematical graphs.<br/> 2. Supports ctrl-c/ctrl-v operations on node and labels. <br/>3. Save your graph ei... | ec52b2a696e45c7bf7a813c08dfb19ca60cff9be | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | fauzirifky/csgraph_editor | 18d0594b0ac7d5bf76afec4177ba0b287d7e3f24 | feeef3f755bbe6be6ce8a94878106e37b8acba88 |
refs/heads/development | <repo_name>NiiazalyDzhumaliev/bookstore<file_sep>/src/components/App.js
import BookList from '../containers/BookList';
import BooksForm from '../containers/BooksForm';
import Header from './Header';
import styles from './App.module.css';
function App() {
return (
<div className={styles.app}>
<div className... | 1b2e5c46bf39c54258e5ff46c8e4d70453c47227 | [
"JavaScript"
] | 7 | JavaScript | NiiazalyDzhumaliev/bookstore | d7522b2899cc6e9f275ab1f8a38be548bb1f114e | f678f9c57a9921034e3eb3564842773ce6833316 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Registro_Productos.BD
{
public partial class Form1 : Form
{
public F... | 9d323df72c27f25c2bc9b040fdb7e3a1376ef344 | [
"Markdown",
"C#"
] | 5 | C# | enspdf/App_productos | ee1362937f82b0e22b37925cb51447562aa95369 | cbf31c2e15caccaa846c085753158333deb98f01 |
refs/heads/master | <file_sep>#!/usr/bin/env python
import logging
import custom_logging
from features_fetcher import FeaturesFetcher
from redis_interface import RedisInterface
from dooino import Dooino
logger = logging.getLogger(__name__)
class Setup(RedisInterface):
REDIS_KEY = "dooinos"
def __init__(self, name, ip):
... | 99c6503da231181c24be98c39c667c5799d9aba1 | [
"Markdown",
"Python"
] | 12 | Python | dooino/web | 34a2b1e64ba74c13c5b27f5b749b43cda28003d3 | 935fb8d083e6ee5bc405f3a2195a85aec65e7ec8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.