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>cesarghali/DNS-Privacy<file_sep>/src/domain_extractor.sh
#!/bin/bash
OUT=$2
find $1 -name "*.pcap.gz" | \
xargs -n 1 tshark -T fields -e ip.src -e dns.qry.name -Y "dns.flags.response eq 0" -r | \
#awk '$2>0 { if (system("grep " $2 " ${OUT}") == 1) print $2 }'
awk '$2>0 { print $2 }' | xargs -n 1 ... | b3d26b1c2e145e5601d7edd2ebac0d8702844587 | [
"Markdown",
"Python",
"Shell"
] | 3 | Shell | cesarghali/DNS-Privacy | 1c4b57528a119649e22b6b9779695a9c792c4288 | 709753507bfad070d129c8281480093f1878c41d |
refs/heads/master | <file_sep>// Search_Student.js
// Computer Science 3200 - Assignment 2
// Author(s): <NAME> (201761376), <NAME> (201712981)
//Could not completed:
//Sectors of 3x3 sectors could not be computed as it reaches an infinite loop
//for unknown reason
class Search_Student {
constructor(grid, config) {
this.config = c... | ca240401afafe0f58f1ff290ef8309b322a24957 | [
"JavaScript"
] | 1 | JavaScript | rabeyabasri/Shortest-path-finding-using-A-Star-algorithm | 92e025fe00bea0c004811f5704df0c0b7fd284d1 | 62d538f474671962da496e14b1d71a7ac83fe77c |
refs/heads/master | <repo_name>YSS17/dev-hiring-challenge<file_sep>/app/models/user.rb
class User < ApplicationRecord
validates :email, presence: true, uniqueness: true, format: { with: /\A\S+@.+\.\S+\z/}
validates :password, presence: true, length: { in: Devise.password_length }, confirmation: true
devise :database_authenticatable... | 73d019bfff0b4a45ad182dc740ccca7874583566 | [
"Markdown",
"Ruby"
] | 7 | Ruby | YSS17/dev-hiring-challenge | 21abb6318f0a8d0f6ad50d9950cbfc62a57d5095 | aa5ebb40c3afd6e9a7a44fd84a731568da32b081 |
refs/heads/master | <file_sep>document.getElementById("amountAndInterest1").style.display = "none"
document.getElementById("amountAndInterest2").style.display = "none"
document.getElementById("amountAndInterest3").style.display = "none"
// output div is hidden at first, starting date (today) is also hidden, although this should be adjust... | 4864c600abf73d6ff75fe10be756d6c9792ce8e4 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | studiozandra/debtline | 164e4a6cf2546a251ffd74486f5dd7f0c5cb5ba6 | ed48524b36615748403e0dcdb4996ac84b26100f |
refs/heads/master | <repo_name>mfilia/sandbox<file_sep>/README.md
# sandbox
## Just screwing around
<file_sep>/cats.py
#!/usr/bin/python
print "cats are awesome!"
| ebcb030d358879d3d8d011af2c53bd9438381ef4 | [
"Markdown",
"Python"
] | 2 | Markdown | mfilia/sandbox | 27c315f126bc123e284fbf6d304f9faa21b0f1af | 677577e62691abac29881d2997ca183e0693cf22 |
refs/heads/master | <repo_name>anshul7sh/Leetcode-Problems<file_sep>/Prob1032/Solution.cpp
// Approach 1:-
class TrieNode {
TrieNode* children[26];
bool word;
public:
TrieNode() {
word=false;
for(int i=0;i<26;i++)
children[i]=nullptr;
}
void insert(string& s) {
Tri... | 6c0df008fe1116dceb3b610a9ac0936b682b9c43 | [
"Markdown",
"Java",
"Text",
"C++"
] | 127 | C++ | anshul7sh/Leetcode-Problems | 1bdea8f3dc061560a7820179f31f81734819056e | 77a56fc8db9771ef7a2cba10810119680bdc0483 |
refs/heads/master | <repo_name>Grishma100/MLMiniProjects<file_sep>/Session 2/faceReco.py
import cv2
cap = cv2.VideoCapture(0)
classifier = cv2.CascadeClassifier("haarcascade_frontFace.xml")
while True:
ret , frame = cap.read()
if ret:
faces= classifier.detectMultiScale(frame)
for face in face... | 27ed3036b7b239db1c1ec8f7a5d30b1d34cb19c6 | [
"Python"
] | 1 | Python | Grishma100/MLMiniProjects | a6dcd497f32415098a223fbbdb7436c2f3543b94 | 839c4e4b8b378e0e2716dcb215bfb642aad86857 |
refs/heads/master | <file_sep>f = open('input.txt', 'r')
lines = f.readlines()
n = len(lines)
m = int(lines[n-1])
pair = []
for i in range(n-1):
pair.append(lines[i].split(":"))
pair[i][1] = pair[i][1].replace("\n", "")
pair.sort ()
for j in range(n-1):
if m % int(pair[j][0]) == 0:
print(pair[j][1], end="")
| dd85ab700919f14268ebb6b008bdae6bc9380948 | [
"Python"
] | 1 | Python | ito3tech/submit | e69a677238fcaa99bd82ae797b011e77d9962a85 | d6e3ad2a297367c9b2bd65d057c8edffc384c2f3 |
refs/heads/master | <file_sep>import sys
import numpy as np
import nltk
import math
from DA_experiments import synth2_experiments
from create_experiment_utilities import write_data, flip_label
np.random.seed(10)
# get synthetic experiment to set up datasets for
exp = sys.argv[1]
train_split = float(sys.argv[2])
flip_domains = synth2_exp... | 09f4d604e8259dbd7df79ce938d23e341d0d0386 | [
"Markdown",
"Python"
] | 17 | Python | karoara/Thesis_Domain_Adaptation | 6a4a4c774391d7af5b10764a32a0727e8e20051b | 4e44b8d45271300a4effbab05bfc4a7282a40bba |
refs/heads/master | <repo_name>cashlu/JavaExecise<file_sep>/src/testThread/testThreadPriority/TestPriority.java
package testThread.testThreadPriority;
/**
* Created by cashlu on 15/3/1.
*/
public class TestPriority {
public static void main(String[] args) {
ThreadDemo demo = new ThreadDemo();
Thread t1 = new Thread(... | bfa9cf20c931f73904293039ea72d42e2fb0bc46 | [
"Java"
] | 65 | Java | cashlu/JavaExecise | cdf3453b29f275de506e125c15100dd10b580c9f | 2a68e3550d6d571c854e486d76ecfa1c66420b94 |
refs/heads/master | <repo_name>mosquito/toasyncio<file_sep>/toasyncio/__init__.py
# encoding: utf-8
version_info = (0, 5, 3)
author_info = (
{"name": "<NAME>", "email": "<EMAIL>"},
{"name": "<NAME>", "email": "<EMAIL>"},
)
__version__ = ".".join(map(str, version_info))
__author__ = ", ".join("{name} <{email}>".format(**a) for a ... | ecadb8448ec85875b0e92395076709aeb7837c66 | [
"Python",
"reStructuredText",
"INI"
] | 8 | Python | mosquito/toasyncio | d3f972b0ff8779d3f2ee0a542b26d3c584595ca9 | 9113f2ff2c94dad489c722d69584ce8a6a6e0ded |
refs/heads/main | <file_sep>const { expect } = require('chai');
const {
buildUnreleasedCommitsMessage,
} = require('../utils/unreleased-commits');
describe('unmerged', () => {
it('can build the unmerged PRs message', () => {
const commits = require('./fixtures/unreleased-commits.json');
const branch = '9-x-y';
const ini... | 3b8aa6ca6ede67d645ee66a68f54c6d9271889b8 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | electron/unreleased | 74e7b4a264761ec1691ec4809953f25b8c9a9b1f | d29bda63be65c3b6f1a79684514697baf7e86585 |
refs/heads/master | <repo_name>YanzheL/adcrawler<file_sep>/services/nfsdoc/docker-compose.yml
version: '3.6'
services:
nfs:
image: itsthenetwork/nfs-server-alpine
volumes:
- /datastore/adimages:/nfsshare # host_directory:container_directory
restart: always
network_mode: host
privileged: true
cap_add:
... | 8b3682bcc8fd9b2f5fab110edb9ce83d9c348f6d | [
"Python",
"Text",
"YAML"
] | 17 | YAML | YanzheL/adcrawler | 97acf5504f7f851b65b1a438e38ffafa5cd46c7f | af1aad24f661d5f5fae9f02310b3574e58967f61 |
refs/heads/master | <repo_name>Paschalis/android_scripts<file_sep>/logkitty/Makefile
#q=@
CROSS_COMPILE=arm-linux-androideabi-
## Common definitions
CC=$(CROSS_COMPILE)gcc
AS=$(CROSS_COMPILE)as
AR=$(CROSS_COMPILE)ar
UTIL=logkitty
# Include log library, and make it position independent (requirement by OS)
CFLAGS+= -llog -fPIE -pie
BIN... | 17e548ee1f584c0a51f1249b702daa6754578efb | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 6 | Makefile | Paschalis/android_scripts | 3a0a4efa951202277954c9d323445c966c37a69d | fe67412679ea38fcee7a1a528a0be5405ad2e41d |
refs/heads/master | <file_sep># Analyzing your Meteobike Data in QGIS
[QGIS](https://qgis.org) is a free and open-source Geographic Information System (GIS) that allows us to perform advanced geographical analysis of the data obtained from one or multiple Meteobike systems. It runs on Linux, Mac OSX, Windows and other systems.
## Insta... | 65cddb6d36deb0903112a00211c048cb8f7f3237 | [
"Markdown",
"Python",
"JavaScript",
"Shell"
] | 9 | Markdown | achristen/Meteobike | b885236ab65e8337c44ef58ee4ac79af61cb346f | 54a2ec4791d00050c9633999020364ba9441e7e2 |
refs/heads/master | <file_sep># Metro
Metro Database Management System
<file_sep>#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<time.h>
#include<string.h>
ifstream fin;
ofstream fout;
class passenger
{
char pname[35];
char traveldate[9];
char bstn[20],dstn[30];
cha... | fcbef0e7f5b261e13268a0f40c489db09d263222 | [
"Markdown",
"C++"
] | 2 | Markdown | nitinnbbhagat/Metro | 40f7a91e3dbbd3728e4160f20462008084fc1b8b | c0e3677061654e81ffb6d1a7bb5d94319c93d631 |
refs/heads/master | <file_sep>import argparse
import json
import numpy as np
import torch
import checkpoint_helper as ch
import image_processor as ip
from PIL import Image
from torch import nn
from torch import optim
from torchvision import datasets, transforms, models
from workspace_utils import active_session
def main():
#Get input... | f71e374ea9e48e4b22b488bf4c67946f81a48639 | [
"Python"
] | 5 | Python | RichardAllison/pytorch_image_classifier | a4b8dae475735b317ef85c249c975a2751e89292 | 1c2b7316d929b098301f95127ee3bfed4ac6afd9 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task1
{
class Program
{
static T GetRemainingFromList<T>(List<T> list, int N)
{
while (list.Count != 1)
{
if (list.Cou... | baee49b2944c505447142e4f9c1b8dcc238957ed | [
"C#"
] | 53 | C# | MILANTYEV/EPAM-external-courses | 495e29b7642ba15ede508bc513c2b592a446cd6e | 652601a2dfd45988eba35cbe1a6b312afc148e80 |
refs/heads/master | <file_sep>from flask import Flask, request, redirect, render_template
app = Flask(__name__)
app.config['DEBUG'] = True
def is_invalid(inpt):
if len(inpt) < 3 or len(inpt) > 20:
return True
elif ' ' in inpt:
return True
return False
def valid_email(inpt):
if '@' in inpt and "." in inp... | 29e5aac8b103a36eb965994d7a8579319f1d9cf4 | [
"Python"
] | 1 | Python | djeffries007/user-signup | 4e6643fc1d05d09d0e2d141c68cc0909b1d69b4e | 36acb6164ae2118562a8a0cf0eecaf1740cd5ece |
refs/heads/master | <file_sep>require 'rails_helper'
RSpec.describe 'As a user' do
describe 'when I visit the mechanics index page' do
it 'shows me a list of all mechanics, including name and years of experience' do
mechanic_1 = Mechanic.create!(name: "Tim", years_experience: 5)
mechanic_2 = Mechanic.create!(name: "Bob... | 51290201781fb49deecee90fbfb3486a9e93890e | [
"Markdown",
"Ruby"
] | 5 | Ruby | ljwhite/b2-mid-mod | 10988339fd0f0c0d3afe27c03e55938af520e52e | 0a3ac5660847eb917d8e505f4098224480cdf2bb |
refs/heads/master | <file_sep>package STUDENT_INFORMATION.CONTROLLER;
import ATTENDANCE_LOGIN.DATAMODEL.Student_Attendance;
import ATTENDANCE_LOGIN.DATAMODEL.Student_Datamodel;
import DATABASE.Database_Commands;
import com.jfoenix.controls.JFXRadioButton;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue... | 17356220c9b6fe2fd6889b21cb7e41f8b34009e6 | [
"Java"
] | 4 | Java | kurt112/Attendance-RFID- | c8fe82ed7b19a41868b36994bf8ef1c3cff90662 | 4098344f1eb126086cd1f88a037ea62ccc1fcbf3 |
refs/heads/main | <file_sep>import { create } from './core';
describe('create', () => {
describe('valid videoId', () => {
const chat = create('uIx8l2xlYVY', {});
it('chat is alive', () => {
expect(chat.isAlive).toBeTruthy();
});
});
});
<file_sep>const regVideoIdOnly = /(^\s*[^&?]{11}\s*$)/;
const regNormal = /v=(... | 349960aa122d92de87baae84ec300e221200befd | [
"Markdown",
"TypeScript"
] | 9 | TypeScript | aliyome/ytchat | 30de1860d6e226783318cbf66861023c10df4bab | 9f0d4882eafde57b0a692ce52b095250cd747b1e |
refs/heads/master | <file_sep>//ハンバーガーメニューの開閉
$('.navbar-toggler').click(function(){//.navbar-toggleをクリックすると
$('.overlay').addClass('active');//.overlayにクラスactiveを付ける
});
$('.sp_menu_close').click(function(){//.sp_menu_closeをクリックすると
$('.overlay').removeClass('active');//.overlayのクラスactiveを外しーの
$('.navbar-collapse').removeCl... | f9ba60d96285874878c4c7601788c3b969aaca1b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | yishii-egc/BS4-EC-Template-old- | ec05a46a9f6eed43e55b3476259aad1367928bea | 8dd9e078b00040454fb350a6267f27f7f90d721a |
refs/heads/master | <file_sep># search.js
Search files by name and extension(it also search sub folders), in the folder contains "search.js"(NodeJS).
Type in the Terminal, at "search.js" location => node search.js *file extension* *file name* and hit enter(search.js must be in the folder we are searching in).
<file_sep>
var text=... | f0f49afc9f4662ca2b5dfa6266fe5030b9b792d6 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | alexg657/search.js | 26c88d76fbf05dcbee199917c2b6e9122c4223be | 8b2844665219dde8de2129b29d7c962a5235a3d7 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import re,urllib2,base64
import calendar
from datetime import *
import time
#, translit, urllib
# Nice TV Plugin
VERSION = 3.6
VIDEO_PREFIX = "/video/nicetv"
NAME = 'nicetv'
ART = 'art-default.jpg'
ICON = 'icon-default.png'
PREFS = 'icon-prefs.p... | 357dc3aa2358313b2e4ea41f6d5beaca480dedc7 | [
"Python"
] | 1 | Python | diddymac6499/nice.bundle | 7ac75f18a54dea540982297a1533d82270a3ab62 | 60bd10bc4e252925537af109b8c23cd55d3ae820 |
refs/heads/master | <file_sep>#include "IntCell.h"
using namespace std;
IntCell::IntCell (int _initVal) {
m_val = _initVal;
}
void IntCell::write ( int _newVal ) {
m_val = _newVal;
}
int IntCell::get ( void ) const {
return m_val;
}
IntCell IntCell::operator+( const IntCell & _rhs ) {
IntCell res;
res.m_val = this->m_val + _rhs.m... | 1977ab2f9038a6189069584dd1e7bddd2afd1a60 | [
"C++"
] | 13 | C++ | Biramon/LP1-Codes | 4f3ed05e8f10c98af34a5ad6cfa86efb9509e8d7 | e91d7fe0fdd9814c0c0b55adda731d908343f4ac |
refs/heads/master | <file_sep>//
// RoundedButton.swift
// smack
//
// Created by <NAME> on 15/02/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
class RoundedButton: UIButton {
@IBInspectable var cornerRadius : CGFloat = 5.0 {
didSet {
self.layer.cornerRadius = cornerRadius
}
... | ab05c05c70e0a5cb6c6f66dadba582d52d7161ff | [
"Swift"
] | 4 | Swift | memetriza/app-smack | db8d6d9a6341c56d462effc693ed67f01ab6ebd5 | ceaac0b1e08a637f63ec958a1b91294c08924528 |
refs/heads/master | <repo_name>daxiangpanda/face_merge<file_sep>/core/triangulation.py
# -*- coding: utf-8 -*-
# @Time : 2018/05/18 13:40
# @Author : <NAME>
import cv2
import numpy as np
import pickle
from PIL import Image, ImageDraw
def draw_point(img, p, color):
cv2.circle(img, (p[0], p[1]), 2, color, cv2.FILLED, cv2.LINE_AA,... | e6292e5c2bbf194f51f6ce0b67a5490c9707a011 | [
"Python"
] | 5 | Python | daxiangpanda/face_merge | 601e1959412ac05c18a178a853a5214cbf2bc8c3 | d5536b334638f8cf9f940c2cc61fa89b5a11fa1f |
refs/heads/master | <file_sep>
## First follow this tutorial to install proper fonts and make them available to R: https://rud.is/rpubs/building-pictograms.html
library(waffle)
library(hrbrthemes)
library(extrafont)
library(dplyr)
## modify plot theme
mod.theme <-theme_ipsum_rc(base_family = "Arial",
plot_t... | a54cf9a12fe1478390e1b633ef7a5e12316ed3c4 | [
"R"
] | 1 | R | sachinjshah/pictogram-ex | d20b97545792c7536f7f65c43b1d0fe4658abf98 | 52476681f74911b39fe3c656fa9802c67b9786d2 |
refs/heads/master | <repo_name>MuhammedAlmaz/GetWeeksArrayOfYear<file_sep>/getWeeksOfYear.js
function getWeeksOfYear(year){
var weeks=Array();
for(var i =0;;i++)
{
if(parseInt(new Date(geStartedDateOfWeek(year,i)).getFullYear())==year-1)
{
continue;
}
... | fbc36597ad3887526e9cff7889696ea6f0fd7c4e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | MuhammedAlmaz/GetWeeksArrayOfYear | 50e920d798b1ed57e04ec6211f63fa87ee0ad0cc | 2d42097bfc4ac64f8a4815833971324edb12de4b |
refs/heads/master | <file_sep># LIRI-NODE-APP
### LIRI - Language Interpretation and Recognition Interface
### Intro
This is my first project using node. This app will get information about a song from Node-Spotify-API, information about a movie from OMDB API, information about bands events from Bands In Town API. Continue reading for i... | af6754cab4e02dc53520400d645bcc7c78181bee | [
"Markdown",
"JavaScript"
] | 2 | Markdown | tsoogthoj/liri-node-app | 27ee0a4bd9f5c9faa06566b1d73234cd9ee89fc4 | 3a80f2a5b5916bdf56a6199b7867e21d5b4304a4 |
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 algoproject3;
import java.util.*;
import java.lang.*;
/**
*
* @author kyle
*/
public class closestPair {
pr... | 80957da54e0ce6c449388f82059bb2fd2606e9f1 | [
"Java"
] | 3 | Java | kdenhartog/Algorithms-CS3330 | e6f3239320fe5951072f744fce5fe128f3f74128 | 45a500c817b56c1d67144ecee431b59241d69b05 |
refs/heads/master | <file_sep>module.exports = {
/**
* 返回数组每个项对应的频率
* @param {array} array
*/
arrayFrequencies(array) {
return array.reduce((a, v) => {
a[v] = a[v] ? a[v] + 1 : 1;
return a;
}, {});
},
/**
* 将一定格式(带父级)的数组转化为obj树结构的方法
* @param {array} items 具有一定格式的obj数组
* @param {string} keyNam... | 20439a4015fd84ba0c6690f9853dafbd6762c340 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 8 | JavaScript | gzx1996/jslib | d31ff31f79016f475a07a5d7f9b9a85ba696f101 | 24e5630eeeed2542677592b097414d138b971bce |
refs/heads/master | <repo_name>markolo25/Python-Crash-Course<file_sep>/Alien Invasion/alien_invasion.py
import sys
import pygame
from ship import Ship
from settings import Settings
def run_game():
pygame.init() #make game
ai_settings = Settings() #make settings object which has settings
screen = pygame.display.set_mode((ai_... | ee34707b69979295d722c88e669f4e97cbf7341c | [
"Python"
] | 2 | Python | markolo25/Python-Crash-Course | 81dc6afd788fd124eb923a21e6f32a56d862a57a | 696c2f71f83bd37895fc884cb86cd46337d17c6d |
refs/heads/master | <repo_name>melchqt/phpPartie1<file_sep>/exo3/index.php
<?php
// <!-- declaration de la variable km -->
$km = 1;
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>php exo3</title>
</head>
<body>
<p>
<?php
// valeur initiale
echo $km;
?>
</p>
<p>
<?php
... | cf4d449603be079e1bd1fa8b47789c4476ffb479 | [
"PHP"
] | 6 | PHP | melchqt/phpPartie1 | fa110a390493808c0226de79fd6a1895c456c918 | 1e6ce94c0dee9d51f87efd04e63d0f3c29c08f11 |
refs/heads/master | <repo_name>Mastek-Zahid/visa_application<file_sep>/visa_application/src/main/java/com/mastek/visaapplication/apis/FamilyInfoAndDependantsAPI.java
package com.mastek.visaapplication.apis;
import javax.ws.rs.BeanParam;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.... | f526103f9e8b4723b1f72515a598791ec68ce28e | [
"Markdown",
"Java",
"TypeScript",
"HTML"
] | 55 | Java | Mastek-Zahid/visa_application | a494f1621c3c325db2734e99d51485f422b2b44c | e0e009f762d43fe6fbdfbf767355409236e71c7d |
refs/heads/main | <repo_name>efzeladat/testfiscalprint<file_sep>/fiscal_print/__manifest__.py
# -*- coding: utf-8 -*-
{
'name': "Fiscal Printer",
'summary': """Download xml receipt for Venezuela Fiscal Printer""",
'description': "",
'author': "<NAME>",
'website': "https://www.innovati.cl",
'category': 'Sales/... | c88a7655e9ffb08754c5ebb8d18d6923cf5ddf46 | [
"Markdown",
"Python"
] | 2 | Python | efzeladat/testfiscalprint | 0baa95d607b720466891a240ef9936ca38aa08b3 | 1e84aaaac44e1bf5eb2e5031e9c2636c5c538631 |
refs/heads/master | <file_sep>#ifndef TARGET_H
#define TARGET_H
#include <stdint.h>
#include <vector>
#include <memory>
#include <algorithm>
namespace amarlon {
class Actor;
typedef std::shared_ptr<Actor> ActorPtr;
struct Target
{
Target(std::vector<ActorPtr> actors_, uint32_t x_, uint32_t y_ )
: actors(actors_)
, x(x_)
... | a3fe5cb0fa81b5b59c70d5c10265209b8d0936f3 | [
"CMake",
"C++",
"Shell"
] | 165 | C++ | pelagos/amarlon | 9375a519988e51bd2176b706e611a02b522818f7 | 5b31eee1052dd4d924074a526112848301bbbcd7 |
refs/heads/master | <repo_name>tamura2004/upload<file_sep>/app/models/plan.rb
class Plan < ApplicationRecord
validates :category, uniqueness: { scope: [:main_group_name, :project_number, :project_name, :accuracy, :dept_name, :group_name, :sub_number, :system_name, :contract_type, :company_name, :member_rank]}
end
<file_sep>/config/route... | ffde32e443a7593fe8e01e22df49956f43fe818f | [
"Ruby"
] | 2 | Ruby | tamura2004/upload | 9bb2ae1bde5c083bf87fe45259a4861ca35958ea | a411e1d0053b236bc276e72c70121dd10aedb9f9 |
refs/heads/master | <repo_name>icdozen/toy_app<file_sep>/README.md
== README
web server. Built using Rails Tutorial
<file_sep>/app/models/user.rb
class User < ActiveRecord::Base
has_many :microposts
validates FILL_IN, presence: true
validates FILL_IN, presence: true
end
| 0cf873be79ee4cfa949715bcfae72e2ee9ebc465 | [
"Markdown",
"Ruby"
] | 2 | Markdown | icdozen/toy_app | 451a32a3b031afad205567cbbd1300942be842b7 | 48cea607115b7ba903c038eefe373938649ba792 |
refs/heads/master | <repo_name>erike123/MyWebSiteBuilder<file_sep>/src/main/java/com/example/demo/domein/models/bindings/CategoryAddBindingModel.java
package com.example.demo.domein.models.bindings;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class CategoryAddBindingModel {
@NotNull... | 9376619430cedadcc7f601e752400f20d6f0f6b8 | [
"Java"
] | 9 | Java | erike123/MyWebSiteBuilder | 95ea6e0044268faf389a52e50b06b06c7d7ac2a0 | 3c5de67fba5d3465b36fbcef551348dba0cb8c2f |
refs/heads/master | <repo_name>Yuseunghoon/asm<file_sep>/modules/gpiotimer/gpioirq_module.c
#include <linux/fs.h> // open(), read(), write(), close()
#include <linux/cdev.h> // register_chardev_region(), cdev_init()
#include <linux/module.h>
#include <linux/io.h> // ioremap(), iounmap()
#include <linux/u... | 5572b0bad5f87fe6a24ac1b5e33d6536a09451fd | [
"C",
"Makefile",
"C++",
"Shell"
] | 50 | C | Yuseunghoon/asm | 30dc110470b7f412cc0892b10152c8fa31891a48 | 28bf4c210a5c42c6d48e7b11d549a51043af4aa1 |
refs/heads/master | <file_sep># Projeto-Otatop
Hey! Bem vindo gerenciador do Projeto Otatop! Nosso projeto tem como finalidade a produção de sites com funcionalidade CRUD
baseado em um modelo Entidade Relacionamento escrito em um arquivo texto padonizado por nós! Legal né?! :D
O projeto está atualmente sendo desenvolvido pelos alunos da ... | d795a8ed14dfde42c91f16748f84a345398e16d5 | [
"Markdown",
"Java"
] | 12 | Markdown | cb130felix/Projeto-Otatop | 566d51a8b444ce13dc45d9663103de03b695e824 | 87cb6a7cec74a93ff6cf70d2bae3e25cb9f4ff3a |
refs/heads/master | <file_sep>// Here is the top-down approach of
// dynamic programming
#include <bits/stdc++.h>
using namespace std;
int arr[1005][1005];
int setM(int W, int wt[], int val[], int n)
{
// Your code here
if(n==0 || W==0)
return 0;
if(arr[n][W]!=-1)
return arr[n][W];
if(wt[n... | 585cf6078dca43b5027e4ec00508afbf492e20a0 | [
"C++"
] | 4 | C++ | arunmorya/vsCodeTestWithGithub | 79ee976a9d1b7ba07406c3e47af2c5ad5a14437a | aa40a4e6aad706ac6910da8875180ff941819194 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import '../css/Apartments.css';
import { getApartment } from '../services/apartments_api';
export default class Show extends Component {
constructor(props){
super(props);
this.state = {
apartment: [],
id: ''
}
}
componentWillMount(){
... | c9fbb42e149977f3802296c29e9244ed930549d5 | [
"JavaScript"
] | 6 | JavaScript | rhiggins32/apartment_finder_frontend | ee2ad321117bf19cadc15e7d3aa0eeeb1f5846bb | 6d81bb4016fa20b989117a45a2215b476096d50d |
refs/heads/master | <repo_name>maoxiangyi/weixin-addfriend<file_sep>/src/main/java/cn/mxy/spider/weixin/A.java
package cn.mxy.spider.weixin;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOExcept... | 88f941b260cc7126f67b3020cf39c9f108de5c4e | [
"Java"
] | 6 | Java | maoxiangyi/weixin-addfriend | 7ba10b9e049fd12543000496e8a0563061c7956e | 5e89e6b776a6f2348c01ce736eeca271541cd85a |
refs/heads/master | <repo_name>RishiNanthan/Quiz<file_sep>/README.md
# Quiz
A Quiz created using OpenCV
<h3> Run sample.py to start the quiz challenge</h3>
<img src="https://github.com/RishiNanthan/Quiz/blob/master/quiz%20output.png?raw=true" alt="quiz output" />
<file_sep>/sample.py
import cv2
from box import Box
import PySimpleGUI as pg... | 554c25716f9dd5ee8ebcf4f1430c013a5d9378bf | [
"Markdown",
"Python"
] | 4 | Markdown | RishiNanthan/Quiz | ad6dd63dee1b6032b2eac142fb8513fef05b0a7c | 6131feaf702ebe40643fc91364aba928ca34fea3 |
refs/heads/master | <file_sep>#!/bin/sh
#!/bin/bash
set -x
should_preprocess_with_codegenerator=true
function failed()
{
echo "Failed: $@" >&2
exit 1
}
if $should_preprocess_with_codegenerator; then
cd "${SOURCE_ROOT}/CodeGeneration"
ruby -w "./cg_generate_objc.rb" --d "${SOURCE_ROOT}" || failed cg_generate_objc;
fi<file_se... | 917bb30c884f46bd5d3228612df9729dce175f86 | [
"Markdown",
"Ruby",
"Shell"
] | 4 | Shell | S2Ler/DSLib | 0a1bcd24a9f13263faa7be6eac1718fa9d473bcd | 7e3c4a6b5ab77bacbf4d4c8dcd5c752593eba214 |
refs/heads/master | <repo_name>textactor/textactor-explorer<file_sep>/src/data/wiki-search-name-repository.ts
import { MongoRepository } from './mongo/mongo-repository';
import { WikiSearchName } from '../entities/wiki-search-name';
import { IWikiSearchNameRepository } from '../repositories/wiki-search-name-repository';
export class Wik... | b55c55c9957350732183e1ce8f4aa911c79a52b0 | [
"Markdown",
"TypeScript"
] | 58 | TypeScript | textactor/textactor-explorer | 489a96b68e7f13abadd9973991e76258558566c7 | 216c73cceb3ae5bdc4a07098ecb92ff677e04b7b |
refs/heads/master | <file_sep>#!/usr/bin/env python
import math
import os
import Gnuplot
Gnuplot.GnuplotOpts.default_term = 'post enh color eps'
color_min=1e100
color_max=0
g = Gnuplot.Gnuplot()
g('set term post enh color eps')
g('set output "a_e_r.eps"')
g.set_range('xrange', (2, 3.5))
#g.set_range('yrange', (1.0, 4.5))
g.set_range('c... | e06595b340cc2edd91cb7a17cbd86b93745fdc95 | [
"C",
"Python",
"Makefile"
] | 43 | Python | zhendongjia/hermit4 | 169ac9b5db2a2be24165ea882353fccfcc16cbb0 | 38f1630f6443c7f40331d0e889c72f71f510a521 |
refs/heads/master | <repo_name>clinnin/ProgrammingAssignment2<file_sep>/cachematrix.R
## Creates a series of functions that can be called to cache
## the inverse (s) of a provided, inversible matrix (x)
makeCacheMatrix <- function(x = matrix()) {
s <- NULL
set <- function(y) {
x <<- y
s <<- NULL
}
get <- function() x
... | 9d9a339efb035e78336ccb5c2e58947fbde9f269 | [
"R"
] | 1 | R | clinnin/ProgrammingAssignment2 | 9634b22015af9e7bb9044e91b2d6faac34aa1a40 | 930fec5558fdb18f098606fb0b742053cf6420f5 |
refs/heads/master | <repo_name>Aeomanate/Tick-tack-toe<file_sep>/main.cpp
#include <iostream>
#include <vector>
#include <string>
#include <numeric>
#include <functional>
#include <conio.h>
#include <windows.h>
class Field {
public:
struct Pos {
int row, col;
};
public:
Field(size_t field_size, size_t abreast_c... | 4b56bb98e24762cc0c0452f8c083acc7f881a660 | [
"Markdown",
"CMake",
"C++"
] | 3 | C++ | Aeomanate/Tick-tack-toe | 2957629fb25011c8347de6b9c348eba484cbd816 | e6f8614de9729709830743d5355fc6ceb614b431 |
refs/heads/master | <repo_name>osama70599/BankingSystem<file_sep>/Final project/src/mainpage/Water.java
package mainpage;
public class Water {
public Water(int x)
{
Process p = new Process(x,2000);
Thread1 t1=new Thread1(p);
Thread2 t2 = new Thread2(p);
t1.start();
t2.start();
}
}
<file_sep>/Final project/src/... | 263af1d4196bf1ff5efaea4fed15b335158d81a8 | [
"Java"
] | 2 | Java | osama70599/BankingSystem | 9b8eb2816238c31469d68f1e245b9a1f59f467bd | 434cc42d60a19c41d9364e330fbd1610d3cb32a7 |
refs/heads/main | <repo_name>brianbentancourt/dynamic-forms<file_sep>/README.md
# dynamic-forms
Dynamic forms with react and Material UI
| e2a1c394f7df1a03bb1bc3fd1606c6f2f291470e | [
"Markdown"
] | 1 | Markdown | brianbentancourt/dynamic-forms | b8f5ad0444cadbc994313adc97605859837c7c25 | 311488cf55cdf6501cc1a5790f25914d211be6f5 |
refs/heads/master | <file_sep><?php
/*
* Plugin Name: Page Map
* Plugin URI: https://github.com/ganlvtech/page-map
* Description: A mini map for WordPress page.
* Author: Ganlv
* Author URI: https://github.com/ganlvtech
* Version: 1.0
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*/
function page_map_enqueue_... | ba8af96c544fb6847c6bbcb0354cb1b4d0d3670b | [
"JavaScript",
"Text",
"PHP"
] | 3 | PHP | ganlvtech/page-map | 22f2ed0c709ff6a3cb35bd64bba690d4d24a465f | f9f0001e0ad3a0882df439683bb1823ad816fd97 |
refs/heads/master | <file_sep>function tabulateAnswers() {
// initialize variables for each choice's score
// If you add more choices and outcomes, you must add another variable here.
var ok = 0;
// get a list of the radio inputs on the page
var choices = document.getElementsByTagName('input');
// loop through all the radio inpu... | 09a0445a53ecce9d53aee33d4de64ad31dfe54ed | [
"JavaScript",
"C#",
"Markdown"
] | 15 | JavaScript | mbogdan2704/mps2 | 4c017a28c91eadfc497b9527799b600022f72144 | e6bfaf8233d63b44a075be04721fe8335e582bf5 |
HEAD | <file_sep>(function(){
var container = document.querySelector('.container');
var prev = document.getElementById('button1');
var next = document.getElementById('button2');
var restart = document.getElementById('top');
var clicks = 0;
var height = 100;
// a hide button function
var hide = function(button){
but... | ad8daa097db5a4d06f65b5d0b7f3b72bf9f5f255 | [
"JavaScript"
] | 1 | JavaScript | Buzzlightyear90/the-green-balloon | 6471af9bc96c0fbd6d6e076ddbeac771c8ba298f | dfd7dba88867f33957b19368998ec494a9892567 |
refs/heads/master | <repo_name>nitant84/test<file_sep>/testJava.java
System.out.println("Hello Me")
<file_sep>/README.md
# test
Test for code deployment
| 36713e2c5185c4ec38d085c3f06a2b61b51930e9 | [
"Markdown",
"Java"
] | 2 | Java | nitant84/test | 7fe71293572b65255579ad8622ef5700de128032 | d07394384631ce7084ed3273a8d0c967e5949255 |
refs/heads/master | <file_sep>import os
import time
import binascii
from locust import Locust, TaskSet, events, task, User, constant_pacing
import grpc.experimental.gevent as grpc_gevent
grpc_gevent.init_gevent()
import grpc
from iroha import Iroha, IrohaGrpc
from iroha import IrohaCrypto as ic
import iroha
import common.writer
import... | 7e6ecdacda8ee2831a1cfd0b8e217252ce393e55 | [
"Python",
"Text",
"Dockerfile",
"Shell"
] | 11 | Python | youhas97/blockchain-iot | 2364960c723f15ef5045316d461ad49e54aae1c3 | 735e2eaf2194d1dd34cca80cbb8b55ac099abc08 |
refs/heads/master | <file_sep>//
// ViewController.swift
// EMILYlingo
//
// Created by <NAME> on 3/31/16.
// Copyright © 2016 EMILYlingo. All rights reserved.
//
import UIKit
import RealmSwift
import AVFoundation
import EZAudio
class ViewController: UIViewController, UITextFieldDelegate, AVAudioRecorderDelegate , EZMicrophoneDelega... | 7c73630424c5be753b4d74b4db4eb7dfd79ec2db | [
"Swift"
] | 1 | Swift | estebansolis/EMILY | 5637f4f6996cfd19ad060185fe8ae14eb55ba6f9 | e717ec70cc82591983552d89b8ec9180fea38d6e |
refs/heads/master | <file_sep>var wdsDemo = angular.module('WoodSite', ['ngResource', 'ngCookies', 'ngRoute', 'homeCtrl']);
window.routes =
{
"/home": {
templateUrl : 'views/home.html',
controller : 'homeCtrl',
requireLogin: true
}
};
wdsDemo.config(['$routeProvider', '$locationProvider', function($routeProvi... | b35dbdceed06d4be7993361fafc4370a1a5035cb | [
"JavaScript"
] | 2 | JavaScript | monajsarkar/BT_DEMO_CARD | 12b2f82737588f5c99b5a2d4ddda8f3cbf2766b7 | c01d1534d626e24102c29bf2869e73696590c75b |
refs/heads/master | <repo_name>conorgilmer/worldcupdraw<file_sep>/java/src/Groups.java
package groups;
import java.util.*;
import java.text.DecimalFormat;
/* class for the seasons results and for writing report */
public class Groups
{
Groups( char group,
int teams,
double points,
double avgEuro,
double avgWorld,
doub... | 19904df18253252a6c8c62a44b49160a981a15f5 | [
"Markdown",
"Java",
"Python",
"PHP"
] | 7 | Java | conorgilmer/worldcupdraw | d1591c3781c35dc706efcee258994beb1b520190 | 06cfaa0f06ea5150fa5a92f280b67e439dbe082d |
refs/heads/master | <file_sep>See http://www.sirikata.com/wiki/index.php?title=Compiling_Awesomium
But the Chromium revision 22725.
The awesomium git repository used is at: http://github.com/pathorn/awesomium/network
The version of awesomium is from the master August 7 checkin, tree fc3239b4f49031285682cb5d78256d56e9001b66
Any method th... | 3ff5982e6e1f9b555e3fa7bcce8798fee6ec139f | [
"C",
"Python",
"Text",
"C++"
] | 4 | Text | loblao/panda3d | 0d61322310ff0a7feb896c52a14fd4238c811dd5 | bfa77453d198bace8cbeaa7a4a007e10c66a042c |
refs/heads/main | <repo_name>PashaEagle/kafka-javafx-learn<file_sep>/javafx-kafka-client/src/sample/handler/UpdateHandler.java
package sample.handler;
import com.fasterxml.jackson.core.type.TypeReference;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import sample.data.Context;
import sample.dto... | fb9afef1aada2952dd1ec7b02c100c1a8473056c | [
"Markdown",
"Java"
] | 4 | Java | PashaEagle/kafka-javafx-learn | a069a4d444be469b6766ae185a82a2bb73d71627 | b2457f08c8de42cb0ca7696db6328b7ed38174e8 |
refs/heads/main | <repo_name>shivamkumar4jmp/Face-detection<file_sep>/face_detect.py
from cv2 import cv2
detect = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
imp_img = cv2.VideoCapture("mark.jpg")
res, img = imp_img.read()
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
faces = detect.detectMultiScale(gray, 1.25,... | db93a2c32fe11881f5dd8c81c20032fa4ac5db6f | [
"Python"
] | 1 | Python | shivamkumar4jmp/Face-detection | 2d7f69264903ed97e1459bfd7e5a92a12827e6ed | 9a53a72e9268b83434856d3af3e7bd71e15de2b3 |
refs/heads/master | <file_sep>const {argv} = require('./yargs')
const funciones = require('./funciones')
let comando = argv._[0];
switch (comando) {
case 'crear':
funciones.crear(argv);
break;
case 'mostrar':
funciones.mostrar();
break;
case 'buscar':
funciones.buscar(arg... | 926e4eeb485c74d1e56368b28129e67ea3f4d267 | [
"JavaScript"
] | 3 | JavaScript | markus993/tarea2 | 25747b37c0068554c49abc88eb31faae56e47320 | 447daff259da0d5ce7731d9054e1abd3f4e2b3f3 |
refs/heads/master | <repo_name>rez151/automl<file_sep>/drdetection.py
import os
from keras import callbacks
from keras import optimizers
from keras.callbacks import History
from keras.layers import Dropout, Flatten, Dense, Activation, BatchNormalization
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.models ... | 589ba3807f70269c4cc9686f2163973e3c8e215b | [
"Python",
"Text"
] | 18 | Python | rez151/automl | 38a36e2625c504163f80ca73ff488d0e996eece3 | 7ffffcc41c66943e83e6890f25f90602edb7cac0 |
refs/heads/master | <repo_name>wankunde/textsplit<file_sep>/src/test/java/com/wankun/textsplit/MockitoTest.java
package com.wankun.textsplit;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
/**
* Mockito 测试框架
* moc... | 341248b753e771c71cc00c346ca0fd0058d2d6bb | [
"Markdown",
"Java",
"Maven POM"
] | 6 | Java | wankunde/textsplit | 166793e61eb74630f769bbca7c101d57b0c4a181 | cff08186866c0fc8606d6a9c3872abe057dcc808 |
refs/heads/master | <file_sep>1. How long did you spend on the coding test? What would you add to your solution if you had more time? If you didn't spend much time on the coding test then use this as an opportunity to explain what you would add.
I had completed the test in 45 mins. I will create separate pipe for the filter the list of ... | b442f05a2aa4b374c8ded67c83ce8b84ab716b5b | [
"Markdown",
"TypeScript"
] | 3 | Markdown | LalithaSridhar/ResturantList | 6c5ea03b7c6aa340c9c273a45cb74d73f39af487 | a189b42f86663c8eb879eaab29e439b94d6133e4 |
refs/heads/master | <repo_name>Lenguti/todo-go-api<file_sep>/main.go
package main
import (
"encoding/json"
"io"
"log"
"net/http"
"strconv"
"strings"
)
const port = ":3000"
const limit = 1 << 20
func main() {
log.Println("now listening on port " + port)
r := MyRouter()
if err := http.ListenAndServe(port, r); err != nil {
lo... | 51dbd02d76c94f5f915d7d9bc841abfb7e183664 | [
"Makefile",
"Go"
] | 3 | Go | Lenguti/todo-go-api | 301cc406720dadc97de75dc21d0869d22057d686 | 0d00892b4fcfe6176bea526fc41acd01c54065ff |
refs/heads/main | <file_sep>#include <stdio.h>
void rotatebyOne(int ar[], int a);
void rotate(int ar[], int n, int a)
{
int i;
for (i = 0; i < n; i++)
rotatebyOne(ar, a);
}
void rotatebyOne(int ar[], int a)
{
int temp = ar[0], i;
for (i = 0; i < a - 1; i++)
ar[i] = ar[i + 1];
ar[a-1] = temp;
}
void printA... | e528eb7d8fa5779b1cea2334312f02e19799c11a | [
"C",
"C++"
] | 19 | C | BrindhaaRavindran/DataStructures | ae6c307348d73795a60ada90a8a30abafc1f0f86 | 5911ee1023596c5910d7546b92ec97b69f58732a |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 1172.16.17.32
-- Generation Time: Jun 04, 2016 at 03:32 AM
-- Server version: 5.6.17
-- PHP Version: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_... | cc58497c375e9e293c73deda391f131be6740e3f | [
"SQL"
] | 1 | SQL | amitstime/jsp_test_git | 7aec772ccb3e865dda2d69b89fe614df09b309c8 | 9d629bd1fb80a347b9b83e3cae85f0dff70e38de |
refs/heads/master | <file_sep>using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace RSocket.Tests
{
[TestClass]
public class ProtocolTests
{
[TestMethod]
public void SimpleInvariantsTest()
{
Assert.AreEqual(0, RSocketProtocol.Header.DEFAULT_STREAM, "Default Stream should always be zero.");
Assert.AreEqual(1, RSock... | 5c4d3382548ae3e422f158c33b9d21dd4b589bbc | [
"C#"
] | 1 | C# | intelliBrain/rsocket-net | 756e8014498654c8d3cea4fb39689f53ee02cb2a | 994d17234d638dd8c79d0a19bc7da4a80d0a0d65 |
refs/heads/main | <file_sep>package akhilesh;
public class hellogit {
public static void main(String[] args) {
System.out.println(" hello ");
System.out.println(" I write in github");
}
}
| 5652af60c5f6cb87d12538b3830a6272132df8ff | [
"Java"
] | 1 | Java | akhil030698/gitrespo | 4245df09c28c0fd721b2f28195f557bcff922977 | 4345b995562ce9667ace7ab5b04e4cf912bc01f0 |
refs/heads/master | <file_sep>const contentS = "<!--CONTENT-->";
const navS = "<!--NAV-->";
module.exports = function renderPage(template, navmenu, content) {
return template
.split(navS)
.join(navmenu)
.split(contentS)
.join(content);
};
| 144a9676a2a09aec4cee509af3a06835cd03ca95 | [
"JavaScript"
] | 1 | JavaScript | riomyers/markdown-folder-to-html | 0af9253ea77561c62c506cc094108a2ac96b56d9 | bc37fad050823b2614bfbe7dde4189552c6ced0d |
refs/heads/master | <repo_name>azmisahin/azmisahin-software-web-architecture-dotnetcore<file_sep>/Models/AppDbContext.cs
using Microsoft.EntityFrameworkCore;
namespace web{
public class AppDbContext : DbContext{
public AppDbContext(DbContextOptions options)
: base(options){
}
public DbSet<Customer> C... | 4836867fd9662b62b1d4d4dcf65390da81d5af43 | [
"Markdown",
"C#"
] | 3 | C# | azmisahin/azmisahin-software-web-architecture-dotnetcore | ef486d3e15f833ca6a68be4ec12fbfbb3c9d5c1b | d3d2e4717efc715a1a4ba5f36c2bc7e8b9db6abb |
refs/heads/master | <file_sep>import React from "react";
import SearchBar from "./searchBar";
import Stories from "./stories";
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
articles0:[],
articles1: [],
articles2: [],
};
this.saveArticles = this.saveArticles.bind... | a86b6fd0b112b0c9b019f3421f0bfc0c33ba85ec | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | james-owen/news_api | 4a8c4832f4fee8e5b865732d9abc1f297c464dfe | dd250a7a776413bf4405f8b99180dedc375a7a54 |
refs/heads/master | <file_sep>const chalk = require('chalk');
const moment = require('moment');
const chalkFn = (color, bold = true, underline = false) => {
let ch = chalk[color];
if (bold) ch = ch.bold;
if (underline) ch = ch.underline;
return ch;
}
const log = (color, domain, message, underline = false) => {
console.log(
... | 99a10da9c87b6a002b55348b6a706f37161af839 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | Kalesberg/Indexed-Uniswap-Draft | f00fa3d83a1b9f69a906d33fb3191076659f93c1 | b0b642d17f7509cdf448afb5466102508e0aedf0 |
refs/heads/master | <file_sep>ip addr add dev JUL-eth0 fd00:fd00:c2b6:b24b:be67:2827:688d:e6a1:6a3b/64
ip addr add dev JUL-eth0 fd00:fdf8:f53e:61e4::18/64
ip -6 route add ::/0 via fd00:300:4:0b10::
<file_sep>#!/bin/bash
################################################################################
####################################... | 102379a9f3200f79d684484a6eaee1da8278b24b | [
"Markdown",
"Python",
"Makefile",
"Shell"
] | 45 | Shell | destmaxi/lingi2142 | 5fac9f0a4d5e76196b63b107093149326d5f470f | d38f0406e4e54baad98738bf2f41eda6c3d17e4f |
refs/heads/master | <repo_name>leandrommoliveira/quero-ser-clickbus<file_sep>/testes/cash-machine/tests/CashMachineTest.php
<?php
use PHPUnit_Framework_TestCase as PHPUnit;
use Application\Controller\CashMachine;
class CashMachineTest extends PHPUnit
{
protected $cashMachine;
public function setUp()
{
$this->cashMa... | 3aef0aaf7aee83685e396a0b3696459e85beffa7 | [
"PHP"
] | 4 | PHP | leandrommoliveira/quero-ser-clickbus | 1c4b71c453643269cb21a56e8249dffb14fede1c | 73b1271d986799b0e0d94797f4004f6dcf1478e9 |
refs/heads/master | <file_sep>
(function($){
$.expr[':'].external = function(object) { // work on this part
return(object.hostname != location.hostname);
};
$.fn.updatePosition = function(event){
return this.each(function(){
$(this).css({
left:event.pageX+20,
top:event.pageY-20
});
});
};
$.fn.toolTip = ... | 17e457a48ce0f7640f5afad52e678821ec1ae99b | [
"JavaScript"
] | 1 | JavaScript | gamwebdev/toolTipPlugin | 13fc0c5604f37137f3e48555506ce55dc196f5bd | 2ed53dcf798cb79e6f36cfb311e2ebece1264378 |
refs/heads/master | <file_sep>XmlConfig
===============
XmlConfig is an application configuration system written in C# and based on XML
Features
----------
XmlConfig offers the following:
- Thread-safe configuration class
- Easy to use and extend
- You can store the configuration in encrypted or plain xml files
- Support of settin... | ec20cf5db5a8403b86d74cfcf9aa1eddd7f91c0f | [
"Markdown",
"C#"
] | 3 | Markdown | sywymj/XmlConfig | 811bc5f8293f05c62ce8ea68fa36b6d414b13837 | 61379494d4bcafd1dacc69f5f584d4c522a4932f |
refs/heads/master | <repo_name>Firnis/memcached<file_sep>/benchmarks/memcache.set.js
'use strict';
/**
* Benchmark dependencies
*/
const Benchmark = require('benchmark');
const microtime = require('microtime');
const {
tinyString,
smallString,
mediumString,
largeString,
printInfo,
runNext,
options,
tests
} = require('./c... | 0e69173725522197d38c97dafbd38f70d943f59c | [
"JavaScript"
] | 3 | JavaScript | Firnis/memcached | 484a5821aa87f203ea6ae70c6d0b5363de1ead07 | 0a40f597bcfb7609889fa40536b6238887ebaaad |
refs/heads/master | <repo_name>fuzexin/wikidata_pro<file_sep>/wikidata_json_import/src/material/Entity.java
package material;
import java.util.ArrayList;
import java.util.Iterator;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import util.JsonFileRead;
/*
* @author JohnsonFu
*
* @date 11-1-2017
*/
public class Entity... | 139bbd25b717daa0fad92e1b221043e8066810e3 | [
"Markdown",
"Java",
"SQL"
] | 5 | Java | fuzexin/wikidata_pro | c933bfa2900b24533f5f9eb946bdd89c077c98ea | e757b510f7b4866ce8af3274ae2bdb2a88b895b7 |
refs/heads/master | <file_sep>import KBucket from 'k-bucket'
import Network from './network'
import fs from 'fs'
import Emitter from 'events'
import { QueryMessage, ResponseMessage } from './message'
import Node from './node'
import InfoHash from './infoHash'
export default class Crawler extends Emitter {
constructor(options = {}) {
... | 83c0cf561c672ec74ca7b11a05d3a74196a4cee8 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | Covertness/node-dht-broker | 26ed1639d8863921c207fd50a94b23cb95460668 | 9d825b6264b0c3c82a3ee3d2975e8824e9dcbe3e |
refs/heads/main | <repo_name>JaschaW/turtle_killer<file_sep>/README.md
# Turtle Killer
This is a helper script to try and delete every possible related items to the infamous Turtle Plugin.
# The Goal
The Turtle Plugin is a virus for most pipelines, and I am sure that most studios and pipelines have their own ways to address the issue,... | 481628ea755d04fb725176311bd6b140831cea35 | [
"Markdown",
"Python"
] | 2 | Markdown | JaschaW/turtle_killer | 8b9351b5037eaf8cf5f5d23f283e184cd588479a | 15fc14ca6be34a9005590122377a8b95b9f39f3b |
refs/heads/master | <file_sep>[SuiteResult context=UploadItemTest]<file_sep>package com.SeleniumFramework.pageObject;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class LoginPage {
WebDriver ldriv... | 677eddcf106702cd4fe884ec286f4d625e26d576 | [
"HTML",
"Markdown",
"Maven POM",
"INI",
"Java"
] | 12 | INI | jimmychen97/Selenium-Framework | 05e005e705b55c508cf6e1cc8be578ea4ef8515d | 4789f2c194d26b93946c5e40c626219c7ab96872 |
refs/heads/master | <repo_name>wjtan/swagger-play<file_sep>/README.md
[](https://travis-ci.org/wjtan/swagger-play)
[  ](https://bintray.com/wjtan/maven/swagger-play2/_latestV... | b980f7de3b55acefe21297ceb0165962ca8f9c20 | [
"Markdown",
"Java"
] | 2 | Markdown | wjtan/swagger-play | c5c5f9505fa75ae3bef1ee473c24ee5dc68c35aa | 44a30397c45a94928a72adf2fe49e409a58bdd10 |
refs/heads/master | <file_sep>build_sitemap <- function(pkg = ".") {
pkg <- as_pkgdown(pkg)
url <- pkg$meta$url
if (is.null(url)) {
return()
}
urls <- paste0(url, "/",
c(
path("reference", unique(pkg$topics$file_out)),
path(pkg$vignettes$file_out)
)
)
write_if_different(pkg, urls, "sitemap.txt", ch... | a37a6b800ac8c1c1ba7417a1e9453deeca6b5804 | [
"R"
] | 1 | R | DataXujing/pkgdown | b074c575119c35459f544f15e3dae3a6d617d9bb | 344c9555e4cd4b38fa57e15e694f5a9bf8919871 |
refs/heads/master | <file_sep>package com.zca.commons;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
/**
* 写内容
* @author Altria
*/
public class TestCommons04 {
public static voi... | de927c61423b9674315c0038cf5d18d50dcfb78c | [
"Java"
] | 2 | Java | Altria11043/Java_IO_Commons | 58ce643260a77e096c2bb6d0c6f035860cbc6a30 | 44e6895c8148c22cadbd096aa6233031e2d0883b |
refs/heads/master | <repo_name>jUNGDAi/sample-server<file_sep>/Dockerfile
FROM node:8-alpine
RUN mkdir /app
COPY *.js /app/
COPY *.json /app/
COPY *.text /app/
WORKDIR /app
RUN npm install
# export port 8000 real port
EXPOSE 8000
CMD "node" "app-express"<file_sep>/app.js
var http = require('http'); // http เป็น build in ของ node มีมาให้... | fa2bfae041fb8e9d90a8e17c1a47bd28d77e529c | [
"JavaScript",
"Dockerfile"
] | 19 | Dockerfile | jUNGDAi/sample-server | 400e23a1858672811b4fd4678f52c3f1f02e94cd | 9f2372b4bfb7d745151116827a37bb36fb2a58c2 |
refs/heads/master | <repo_name>Ruby-Zhuang/lotide<file_sep>/findKeyValue.js
// ACTUAL FUNCTION
const findKeyValue = function(object, value) {
if (!object) {
return;
}
let key;
const existingKeys = Object.keys(object);
for (const currentKey of existingKeys) {
if (object[currentKey] === value) {
key = currentKey;
... | 5a55b4e8e4bda7514307b51e492bad8a07d72d4f | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | Ruby-Zhuang/lotide | 7b5a8a50cc802a8377e106e55292f17835d9f4ac | 640b1d58458ad6b56c9c13cabd57aee263554bc5 |
refs/heads/master | <repo_name>sifana06/reservasi_bordir<file_sep>/database/migrations/2020_04_27_091654_create_orders_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrdersTable extends Migration
{
/**
* Run the migration... | 0cb6d820dc8c94e78ed69a204790a015c96c790d | [
"PHP"
] | 5 | PHP | sifana06/reservasi_bordir | 2ffe48d81764fd8ab92bdc416b9cac5e0c70278d | 8052aba232bf9e7cd726d5b8db318800834f20e5 |
refs/heads/master | <file_sep>void print_servo(double Servo_1, double Servo_2) {
// Serial.print(Servo_1);
// Serial.print(" ");
// Serial.println(Servo_2);
//the function which you want to maximize
while(1){
if (ultrasonic() == 0){
degreePos_1(Servo_1);
degreePos_2(Servo_2);
degreePos_1(0);
degr... | a795581f1e6a9c29f1cc90fd27f06a862c1ffe00 | [
"Python",
"C++"
] | 14 | C++ | parhamkazemi76/RL-crawler | d93bba888e27046258870769d3c6eeb3e4c1b377 | 93f194b41928d29b777b7cbbf4f123431807276c |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import $ from 'jquery';
import 'fullcalendar';
import '../../styles/calendar.css';
class Calendar extends Component {
constructor() {
super()
this.state = {
events: [
{
title: 'Gym',
start: '2018-08-02T10:00:00',
... | 0c76269e90f801a06b7a8a6f34899122313468d3 | [
"JavaScript"
] | 2 | JavaScript | Chrisyango/ScheduleMaker | 7ecebe364b6af33d00e3505b9d061fc7dc58892e | 90e3db635356a8d8167744bbebc928f698ccb6b9 |
refs/heads/master | <repo_name>james-jz-zheng/OtherStuff<file_sep>/core_utils.py
import hashlib
import json
# Helper functions
def hash(block):
block_string = json.dumps(block, sort_keys=True).encode()
return hashlib.sha256(block_string).hexdigest()
def proof_of_work(last_proof):
proof = 0
while valid_proof(last_proof, p... | 324634a9620c3169d62764115132f9b494f126aa | [
"Markdown",
"Python"
] | 12 | Python | james-jz-zheng/OtherStuff | 729d0edb144411427d4fff7bfaecf00258f8a9c6 | d1e6586c6ccffe949d613244d4fe18afd92a1602 |
refs/heads/master | <repo_name>bovacu/Foodamental<file_sep>/app/src/main/java/com/example/bovazque/registro_activity/TipoBusquedaReceta.java
package com.example.bovazque.registro_activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class Tipo... | 0de790fe8f4932b99c0b0f8bbbc20cd568cd1077 | [
"Java"
] | 9 | Java | bovacu/Foodamental | 72c4a79b55b6389247ac2b4942a2bc5bed688c85 | 5124609db47cd745a3c7c885d26bb414d82f8fde |
refs/heads/master | <repo_name>WojciechKalebasiak/ChatApp<file_sep>/client/index.js
import React from 'react';
import ReacDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './components/containers/App';
const render = (Component) => {
ReacDOM.render(
<AppContainer>
<Component ... | e1d41f02d22320a6caea3ba3a83fc0e7f72b3c31 | [
"JavaScript"
] | 1 | JavaScript | WojciechKalebasiak/ChatApp | 5100c18ecfcc0dde71d0dab4645dabbef4dc75f2 | c3970a314920a1a1e2157b8d64b14fc25004b2e4 |
refs/heads/master | <repo_name>mythonk/univergen<file_sep>/main.py
import generate, names
s1 = name.Solarsystem()
s1.display()<file_sep>/names.py
#written in python 3.3
#Copyright by Marv 'Yethiel' Thiel
#Additional programming by Kons '<NAME>' Möller
import random
def peoples_name():
strfile = open("strings/syllables/peoples.txt", "... | dcdee84f6083bf3d60b6674882c70caf0767f587 | [
"Markdown",
"Python"
] | 4 | Python | mythonk/univergen | 1885a8516c64e2fae4220ffc522b08e666fc8b86 | b6801a2f69dd41b9308e44f8f69b037f1d73d394 |
refs/heads/master | <file_sep>var chatLog = ""; // this variable will store previous messages
function sendMessage(message){
// Get previous contents of the chatContainer
chatLog = $("#chatContainer").html();
// This is used to create new lines between chat bot and user messages
if(chatLog.length > 4) // check if chatLog is bigger ... | be5c921be28922748b5e4de5caf06fd7a1ea639d | [
"JavaScript",
"Go",
"Markdown"
] | 3 | JavaScript | Ltrmex/ELIZA-PROJECT | 73507f331361601b3901f6b47aeb7ec30d05abcb | ab7a13cfaeaa8ef05e4a63905011eeff00a2e38f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.