branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import sys
import pytest
try:
import unittest2 as unittest
except ImportError:
import unittest
import ast
from astmonkey import visitors, transformers, utils
class TestGraphNodeVisitor(object):
@pytest.fixture
def visitor(self):
return visitors.GraphNodeVisi... | b6db2adde1b92b670bee37e1b4506fc0613af449 | [
"Python",
"reStructuredText",
"INI"
] | 11 | Python | smgrey/astmonkey | 16b1817fd022b60b1369281af74b465db6db85ff | acbb1a9f4ef467668eb13e3f351578d504a433ff |
refs/heads/main | <file_sep>labels = ['RFI', 'Noise', 'Known Pulsars','Candidates']
rfi_total = 500
rfi_1 = 100
rfi_2 = 100
rfi_3 = 100
rfi_4 = 100
rfi_5 = 100
if rfi_total != rfi_1 + rfi_2 + rfi_3 + rfi_4 + rfi_5:
print("RFI totals do not match")
noise_total = 500
noise_1 = 100
noise_2 = 100
noise_3 = 100
noise_4 = 100
noise_5 = 1... | dcd99e58d018e58ea9e2ba15251075c9dfd231fa | [
"Python"
] | 4 | Python | livsguidetothegalaxy/ROAR_plots | 56bff60aaaeeb4dbebdeafe0df266fcb950d09e2 | 7b5f43793c969e2c5321d4141c3d187459a4f602 |
refs/heads/main | <repo_name>ArtyomSenokosov/Project<file_sep>/service-module/src/main/java/ru/mail/senokosov/artem/service/constant/OrderPaginateConstant.java
package ru.mail.senokosov.artem.service.constant;
public interface OrderPaginateConstant {
int MAXIMUM_ORDERS_ON_PAGE = 10;
}<file_sep>/service-module/src/test/java/ru/mail... | 8c6ececce64de9393bd7a54db47245f6a30925bc | [
"SQL",
"YAML",
"Markdown",
"INI",
"Java"
] | 55 | Java | ArtyomSenokosov/Project | ff762095a3d4546941c1fedfab83174019468e13 | 9a58bc1d05e0083be5742d1e022214f27a229ce9 |
refs/heads/master | <file_sep>//
// RealVectorOperations.swift
// SMUGMath
//
// Created by <NAME> on 2014-06-21.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
import Foundation
import Accelerate
// MARK: Utilities
func operateOn<C: Unsafeable where C.Generator.Element == Float, C.Index == Int>( x: C, y: C, operation: (Unsa... | b8e38cc47d85d7d2c86953fb637654beea1203c5 | [
"Swift"
] | 2 | Swift | vitoziv/SMUGMath-Swift | e7d91197a8a29dfcd692f992ea6d35a158178f89 | 5a5e849f04e8139a72e865570a306d2b6592b209 |
refs/heads/master | <repo_name>ipmanlk/EasySystem<file_sep>/tasks/getItem.php
<?php
// 1 - all done
// 2 - item ID duplicate
// 3 - input details are missing
require_once 'checkSession.php';
if (isset($_GET['itemID']) && !empty($_GET['itemID'])) {
require_once '../setup/config.php';
$itemID = trim($_GET['itemID']);
$stmt = mysqli_pr... | c1f2cf1204127ae4225c3142a934ff7789fe5eef | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 19 | PHP | ipmanlk/EasySystem | ccfb9c4c57a20134f0d403265c27d0291c549a2f | 1bdd85582477d3a4889dec86c03e52960537c734 |
refs/heads/master | <file_sep>import cv2
import numpy as np
from collections import defaultdict
'''
img = cv2.imread('binary_image.png',0)
img_num = np.array(img)
cv2.imshow("the image",img)
print(img_num.shape)
'''
img_num = np.array([[255,255,255,255],[255,0,0,255],[255,0,0,255],[255,255,255,255]])
img_num = np.array([ [i//255... | 79e178bca0712ded0b15ebac53416ae16c21dc6d | [
"Python"
] | 1 | Python | krushnapavan9/Image-segmentation-using-max-flow-min-cut | 025e6be08de92728adbbb907b67e49988674bac2 | fc646cfbd8d94ec114bdf762bad55ce2fbcb5c28 |
refs/heads/master | <file_sep>setwd("~/Desktop")
BF<- read.csv(file="BudgetFood.csv")
attach(BF)
#AND in R is the ampersand &.
data.frame<-subset(BF,wfood>0.75 & size>10)
#combine the two criteria with OR instead of AND using |
some<-subset(BF,wfood>0.75|size>10)
#keep the records with missing values by using the is.na
data<-subset(BF,is.... | 60386832d02e42259bbcdf80cdd2e04e3bff6447 | [
"R"
] | 3 | R | graceshang/882-deno | 090c9c5dbd32b10f8d68b0b7db3ad90ef4839ead | a2b4732f429b83896605949ad034f0eb8f982c89 |
refs/heads/master | <file_sep>package com.example.suyx_processor_lib.processor.utils;
/**
* @author Created by suyxin on 2018/3/16 14:08.
*/
public class StringUtils {
//首字母大写
public static String captureName(String name) {
// name = name.substring(0, 1).toUpperCase() + name.substring(1);
// return name;
... | 07d150b228d5cdca65df01a32a402fe84557fa2e | [
"Markdown",
"Java",
"Gradle"
] | 15 | Java | suyxin/SuyxProcessor | 34006556c6ab7128902e5aad5b653280135437c7 | 0e83770415545fad60ed09d39034ff827bf9f840 |
refs/heads/master | <file_sep>/**
* @name Tik-Tac-Toe
* @version 1.0
* @author Xfordation
*/
// Game Initializer
const gameInit = function () {
/*Constants*/
//current Player
let currentPlayer;
//Message or Whose Turn it will be
let turnStatus = document.getElementById("turnStat");
turnStatus.innerHTML = `<i class="fa fa-... | 2acc12884b0a8b33228baf68652e7456070993b7 | [
"JavaScript"
] | 1 | JavaScript | Xfordation/Tik-Tac-Toe-using-Vanilla-JavaScript | 8bd0d17e25f022481d2e0ad468f27c107100e140 | 6b47c3b791c2ce5e98ec36ce9ffc052e15ec2cef |
refs/heads/master | <file_sep>package data
import (
"database/sql"
_ "github.com/lib/pq"
"github.com/maikeulb/national-parks/app/models"
)
func GetStates(db *sql.DB, start, count int) ([]models.State, error) {
rows, err := db.Query(
`SELECT id, name
FROM states
LIMIT $1
OFFSET $2`,
count, st... | 58d5ecc61ad15767a5f9e6486b9b5fb551652141 | [
"Markdown",
"SQL",
"Go",
"YAML"
] | 14 | Go | maikeulb/national-parks | 74aef5ba6b0b011835d265075094155879060804 | dbe35896cfb73a06dd2e32e0defabac14e85cd9a |
refs/heads/master | <file_sep>#include <iostream>
#include <Reactor/Reactor.hpp>
void test_int()
{
sw::Function<sw::Int(sw::Int, sw::Int)> function;
{
sw::Int x = function.Arg<0>();
sw::Int y = function.Arg<1>();
sw::Int sum = x + y;
sw::Return(sum);
}
sw::Routine* routine = function(L... | 7a871285565a0713ccc878f7776f949f6ce72bf9 | [
"Markdown",
"CMake",
"C++"
] | 3 | C++ | allebacco/jit_test | 7675599ec564762405e78729e77e61a28b97ff69 | 96573399a473b15522c5abec662b59ea55d54ae5 |
refs/heads/master | <file_sep>console.log('url');<file_sep>require('../../css/base.css');
require('../../css/common.less');
// import $ from 'jquery';
/* import('jquery').then($ => {
console.log($);
}); */
/* import('lodash').then(_ => {
// Do something with lodash (a.k.a '_')...
}) */
console.log('user home',$);<file_sep>const pa... | cd4b5964c8fc728784bb29e9646c44af0f0db855 | [
"JavaScript",
"HTML",
"Markdown"
] | 12 | JavaScript | givebest/webpack-multiple-entry | 7ddf5cff09d8379adbb7f34d60a185a68e2c422d | 1f8ebfe406da511c96ecfd948b9277f403c5d1ac |
refs/heads/master | <repo_name>dipbd1/stack-api<file_sep>/src/router/index.js
import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue';
Vue.use(VueRouter);
const Bar = { template: '<div></div>' }
const routes = [
{
path: '/',
name: 'Home',
component: Home,
},
{
path: '/blank',
compone... | f54dadf97fa82cdea47f5040d69a4e8bec4ed0e3 | [
"JavaScript"
] | 1 | JavaScript | dipbd1/stack-api | b531f52b3c29a10c77e8ff0a6755348b4a39fecf | 486a32e985c5bc238b02b40a35deea225d7cbc41 |
refs/heads/master | <repo_name>WahaWaher/node-api-common-template<file_sep>/src/services/README.md
The standalone services (e.g. Database service, Email service, ...)<file_sep>/src/models/README.md
The model data (e.g. Mongoose model)<file_sep>/src/controllers/account/get-profile.ctrl.js
module.exports = (req, res, next) => {
// Get use... | 97e679333715b2c0c0199068a5da4a87df482752 | [
"Markdown",
"JavaScript"
] | 13 | Markdown | WahaWaher/node-api-common-template | a395094e1ae076434aef3da1458c775acf987d6c | f7263d954c9aac265cd0ed4c21aed00532026481 |
refs/heads/master | <repo_name>bkn/frontpage<file_sep>/extractor/test.py
# coding: utf-8
import re
import codecs
import urllib
import urllib2
import simplejson
from bkn_wsf import *
'''
TO EXPERIMENT
Edit bkn_wsf.wsf_test() function or coment out the call below add whatever you want.
I put the tests in a bkn_wsf function so bkn_wsf ca... | 2d6a61c8e65ef0e22c1acec7366e11c801afb9e3 | [
"JavaScript",
"Python"
] | 5 | Python | bkn/frontpage | 8b54476116716b7ca3180a2e475737c9287734a6 | fd09aea1ad054810c1399b047f23f2e20029a00a |
refs/heads/master | <repo_name>jdugan1024/django-kiosk<file_sep>/kiosk/views.py
import StringIO
from django.http import Http404, HttpResponseRedirect, HttpResponse, HttpResponseForbidden, HttpResponseBadRequest
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.views.... | f86afc0acb00aab915b1b6fe621fc48c6b141349 | [
"reStructuredText",
"JavaScript",
"Python",
"Text",
"Shell"
] | 9 | Python | jdugan1024/django-kiosk | 864463687a341d3bd8079125e1750871e8e23af3 | 57d65a32fb2e2aaed3086763d6bf2de9134386d7 |
refs/heads/master | <file_sep>#include <stdio.h>
void main(int argc, char* argv[]){
FILE *f;
//char* file_name = (char*)malloc(50*sizeof(char));
char* file_name[50];
strcpy(file_name, argv[1]);
strcat(file_name, ".txt");
if(file_name == NULL)
{
printf("File is not open!\n");
exit(0);
}
f = fopen(file_name, "w");
if(f ... | 87c5b20a8b3b779d66e12014b84cb16cb5b8d638 | [
"C",
"Python",
"Shell"
] | 4 | C | FPGA-Bot-Yang/Batch_Run | 7de49272834fbbd7c0e0823baccac0652251de91 | 50725f7a587d22b907fd30931a46bebd1fc7ffb5 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
@Component({
selector: 'lib-fb-login',
templateUrl: './fb-login.component.html',
styleUrls: ['./fb-login.component.css']
})
export class FbLoginComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
authenticate(): void {
... | 6d484f85b6289cb0ad8cfc3bc757a825e6cdd291 | [
"Markdown",
"TypeScript"
] | 11 | TypeScript | abdelrahman-salah/ngSocialBtnLogin | 68d7c2945ddc894db4039d6f094b55667c45e2b0 | 60f238554fc8fffdbb72c2dd108afed20f714f87 |
refs/heads/master | <repo_name>hidenny/gce<file_sep>/relaunch-mapr-cluster.sh
#!/bin/bash
#
# Script to relaunch a MapR cluster on Google Cloud intances that
# have been shut down. Google Cloud does not have the "stopped"
# concept for instances, so once nodes are shut down there is
# no way to restart them short of
# deleteinstance... | e6b33a143022246d466c3862ca36ff39efddc60b | [
"Shell"
] | 1 | Shell | hidenny/gce | 7e784c85f8854debb658a4469858a5aa30cf2c54 | ae481b75bfd50f6765e9015a7e804166907525c8 |
refs/heads/master | <repo_name>OzgeDemirel91/Workshop2020<file_sep>/03-ggplot:course_material/course_material.Rmd
---
title: "Data visualisation using ggplot"
subtitle: "RSG Turkey Student Symposium 2020 - Workshop"
author: "<NAME>"
output:
html_document:
df_print: paged
---
# Data visualisation
Data visualisation, in short, is th... | aea57155a73e09b00823df799d75e8cc31cc9661 | [
"Markdown",
"R",
"RMarkdown"
] | 5 | RMarkdown | OzgeDemirel91/Workshop2020 | 99b9439eb3f345ef10ed7bc637f6961fe7437064 | a2d255b78c84e02da204d257fae5d84f816eeeea |
refs/heads/master | <file_sep>
function lineComponent() {
let width = 200;
let height = 200;
let xScale = d3.scaleLinear()
.domain([0, 100])
.range([0, 200]);
let yScale = d3.scaleLinear()
.domain([0, 13])
.range([0, 200]);
let axis = d3.axisBottom(xScale);
let svg = null;
function me(selection) {
i... | 0e61a2f312fe6684a9b63b83e6e541022689a1f6 | [
"JavaScript"
] | 1 | JavaScript | VA602AA-master/lines | 000ac22f7b199151d707563e11cb8ed9e6f2302d | a41072f73357cafab60c4117d3fbb3315fb6f027 |
refs/heads/master | <file_sep># Sparkol-Login-Test
Please be aware that the home page is not 100% secure. This is ok as long as any sensitive data access is done via an api using the jwt and verified.
## Prerequisites
You will need to clone, install and run the auth service specified here (https://github.com/dantame/interview-authentic... | 7fe42a2f0ca6159989113075c05a5a96c2e87002 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | Muffinman75/sparkol-login-test | b9d02203bef88c363b8ad25c3d48de6053e1f8ed | 54ad2db4cf7922ef023bf823437d996b0f18bdc8 |
refs/heads/master | <file_sep># therohitsharma.github.io
<file_sep>//Directive for the drag and drop system.
angular.module('redditApp').directive('ngDrag', function() {
return {
link: function(scope, element) {
element.draggable({ });
}
... | e1a1a200db3f2898d8398364af26dd341f78d453 | [
"Markdown",
"JavaScript"
] | 7 | Markdown | TheRohitSharma/therohitsharma.github.io | e3616ee1018a43eac06b990a6f0322935b180b85 | 6a08f617a8295cf3e4beaaf70c34fbc681c18c45 |
refs/heads/master | <repo_name>j-lopez/WordsForEvilBot<file_sep>/main.py
from trie import Trie
from gameLogic import wordSearch, treasure, runGame
from gameboardGraph import gameboardGraph
from pynput.keyboard import Key, Controller
import random
import numpy as np
def buildTrie():
t = Trie()
with open("words.txt... | 14dbc0bc6d2cbc4047e97275ca4e9759c0e23122 | [
"Python"
] | 4 | Python | j-lopez/WordsForEvilBot | 2f15c4cee2b97c1961a2e266b6c659d59a8f7120 | cdd5e73f6dd172bf4bfb6032f9768ca93515f29d |
refs/heads/master | <repo_name>akhil-06/Basic-change-shape-color-game<file_sep>/README.md
# Basic-change-shape-color-game
# for opening project just OPEN the "changeShape" files.
# others are of no use
<file_sep>/changeShape.js
var current = "square";
var shape = ["square","rectangle","circle", "oval", "triangle-up", "triangle-down", "... | 59e8ecdfaa29dfe139659ac5f082abe3862666c3 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | akhil-06/Basic-change-shape-color-game | 66997010420ce90226c1b1f4068439134c51960a | f1ac6623b27206197f3ef2173190b460d3bb9e68 |
refs/heads/master | <repo_name>Moshalov/course-Project<file_sep>/WebApplication1/WebApplication1/DAO/DAO.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication1.DAO
{
public class DAO
{
public Type[] getArrayOfTypes()
{
return (new Database().G... | fb07e115a4e6a8ee6e369522af13aac403cac055 | [
"C#"
] | 6 | C# | Moshalov/course-Project | 1cae892d82f20a95173cc7076437b620fb5814c8 | 1697ccd309a19c0292e578c64e7bc01c68f8107b |
refs/heads/master | <repo_name>ahaldar/Shakespeare-Character-Model<file_sep>/char-model.py
# Original article at http://nbviewer.jupyter.org/gist/yoavg/d76121dfde2618422139
#
# Python code to implement character level language model
# to generate Shakespeare style text.
from collections import *
def train_char_lm(fname, order=4):
da... | e38304d9b6f916e9b010c4188bacbca566eb9886 | [
"Markdown",
"Python"
] | 2 | Python | ahaldar/Shakespeare-Character-Model | 04f78a645f210ebf4334af9496e6651c0c8d039f | b2b154c0f4be3e3503e824693d18032e3e5063f4 |
refs/heads/master | <repo_name>jaikysh76/python_code<file_sep>/table.py
first_no=2
while(first_no >= 5):
print("table of :",first_no)
second_no=1
while(second_no >= 10):
multiple=first_no*second_no
print(first_no, "x", second_no,"=",multiple)
second_no += 1
print()
first_no += 1
| 195362e64247c94839f423962a0cb06405976f06 | [
"Python"
] | 1 | Python | jaikysh76/python_code | 68403e7171865535db323d35189f516f68fd0063 | 10a365fca6ee85bfbcf945eeea0b9daea9efe4b7 |
refs/heads/master | <file_sep>import React from "react";
import {Nav, Navbar} from "react-bootstrap";
import {Link} from "react-router-dom";
const Topmenu = () => {
return (
<Navbar>
<Navbar.Brand>Spider</Navbar.Brand>
<Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id=... | c4f0f1b2cdb60416ff1963f04970a904a22dc97c | [
"JavaScript",
"HTML"
] | 19 | JavaScript | jvdsandt/spider-browser-react | ffe3d1add3afdc8fe5647570e7695e3caa8c82c8 | 92e62dc3fee6f6a9145bc380338cecea0b5462b8 |
refs/heads/master | <file_sep>package com.maximcuker.cryptocurrencyinfo.domain.model
import com.maximcuker.cryptocurrencyinfo.data.remote.dto.TeamMember
data class CoinDetail(
val coinId:String,
val name: String,
val description: String,
val symbol: String,
val rank: Int,
val isActive: Boolean,
val tags: List... | 72a23c9c82ad4333bd1187d6e5e1b406c49c96a5 | [
"Kotlin"
] | 5 | Kotlin | maximilian6547s/CryptoCurrencyInfo | 13a298a00adb445c781feeabf210408a91837c2f | 369244093835b5fcd2251f2a3717f70ef389719c |
refs/heads/master | <repo_name>aditya-attawar/Autonomous-Differential-Drive-Robot<file_sep>/final_fuzzy_nbt.ino
#include "fis_header.h"
// Number of inputs to the fuzzy inference system
const int fis_gcI = 1;
// Number of outputs to the fuzzy inference system
const int fis_gcO = 1;
// Number of rules to the fuzzy inference system
co... | 0c155c1a87316580be5b2526d14d5ac1a85e4237 | [
"C++"
] | 1 | C++ | aditya-attawar/Autonomous-Differential-Drive-Robot | 880d044c54db4167d3999117cb1071954a0901b3 | 5e0ab418f00fc4011f3f8a2234e01287a0adcdb0 |
refs/heads/main | <file_sep># BlueD-PyDataIngestor
<file_sep>import pandas as pd
import sqlalchemy as sql
db_in = sql.create_engine('postgresql://pvczseja:X0_soxKtUMurTTbHzxe9ygObOxy9sb4R@<EMAIL>/pvczseja')
db_out= sql.create_engine('postgresql://nysggdyc:K137O8Co9J-pYpysZMo-QhKDuJ1FBVDn@batyr.db.elephantsql.com/nysggdyc')
#create ou... | 0c09f19edcff193ba8a9a1948688751b78b4b549 | [
"Markdown",
"Python"
] | 2 | Markdown | mpicatto/BlueD-PyDataIngestor | b63b348e7b14a01ad6bbf49feabf0c08d22306af | 28a063606cc0bc1991c5af75bd290620a35800b5 |
refs/heads/master | <repo_name>TBIkapp/loadgeneratorUI<file_sep>/src/main/java/com/mongodb/loadgenerator/BeanOptions.java
package com.mongodb.loadgenerator;
import java.io.Serializable;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.TextField;
public class BeanOptions implements Serializable {
/**
*
*/
private static final... | 43cb58d9de499f22c796fa39312d6ba7bd92a811 | [
"Java"
] | 2 | Java | TBIkapp/loadgeneratorUI | f9eaf71993770cf7ca06ac2292dad7779da77d2c | 801246f68c5c3cc4259bb9d0a5b893a3b2165934 |
refs/heads/master | <repo_name>TeamDoAnUIT/DoAnLapTrinhTrucQuan<file_sep>/SQLQuery/Tao_bang_user.sql
create database do_an
use do_an
create table users(
id int primary key,
userName varchar(16),
password varchar(16)
)<file_sep>/SQLQuery/Tao_acc_truy_cap_csdl.sql
create login test with password ='<PASSWORD>'
create user test for login t... | 8ef1a96ee68540c260da056e7a14942a78a36688 | [
"SQL"
] | 2 | SQL | TeamDoAnUIT/DoAnLapTrinhTrucQuan | 8b47d2b539ed4f01288ec67119440362a7dccfae | d518d7da06928a3f8f70bb0c4cba8c446533110c |
refs/heads/master | <file_sep># ~~Heroku ICU Buildpack~~
# May 27th 2021: no longer used by any apps
A buildpack for including the ICU library into a Heroku dyno. This is required
as a dependency for several tools.
## How it works
This buildpack makes ICU4C available in the `/app/icu` directory for both
compilation and runtime uses. Th... | 617b50b0c4f7ff849cddbe608e8ef0f3a8085f18 | [
"Markdown",
"Shell"
] | 4 | Markdown | generalassembly/heroku-icu-buildpack | 5b27da84ac04ccd8ebcc28b98b87ccea44810968 | 93d7bac8b754daa87d4053fc63026ba49dad4957 |
refs/heads/master | <file_sep>/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package life;
import java.util.*;
/**
*
* @author dsizzle
*/
public class EvolveTask extends TimerTask {
/**The frame that the task controls*/
private ColonyFrame frame;
/**The colony that the... | 99fc51b1639e22ca8802704edf4ab611d2c02a39 | [
"Java"
] | 1 | Java | DanielShaar/Java-Conway-Life | 636198ec8ccc53a7f9501bea2a9cfaf9ab1b2523 | 8195d5d34a5bcad95b8f596208c4e386d9841731 |
refs/heads/main | <repo_name>pantelis-kan/Project_2020_HW2<file_sep>/README.md
# Project_2020_HW2
https://docs.google.com/document/d/1<KEY>/edit?usp=sharing
<file_sep>/fully_connected.py
import sys
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import keras
from keras.optimizers import Adam,RMSprop
from keras... | 8118a2aff924d5bd70188d9d887cd54a0be2d89d | [
"Markdown",
"Python"
] | 2 | Markdown | pantelis-kan/Project_2020_HW2 | 5adc3c04e274a70d073c467ac20b801ed7ad261b | e9716e10aebf52c141cdbd253ed2c06f7fd51a6e |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 3.15)
project(Chip8)
set(CMAKE_CXX_STANDARD 14)
# Include sub-projects.
if(NOT WIN32)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML COMPONENTS system graphics window audio REQUIRED)
include_directories(${SFML_INCLUDE_DIR})
add_executable(... | 0498a389911b8ea2b70fcfa6f8a91994b23bec7e | [
"CMake",
"C++"
] | 4 | CMake | JamesAnthonyDellaMorte/Chip8 | 51fccedb9cb012a13c2f60a925fdf8261d425be1 | 78ac414c68708426f3a7c05d7466758687af193d |
refs/heads/master | <repo_name>kevb34ns/pinyinify<file_sep>/pinyinify.js
/**
* @file Converts pinyin tone numbers to tone marks.
* @author <NAME> <<EMAIL>>
* @copyright <NAME> 2017. Licensed under the MIT License.
*/
/**
* An object holding arrays of Unicode tone marks for each vowel.
* Each tone mark can be accessed very intuitive... | c9ed6b828746acb1b7bc3f0619693e54e7e9571a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | kevb34ns/pinyinify | acf9e8c0091be1c58bb908870807488f83273c32 | c6d4fef528ddeba48bbe1b4d850982eccfea5ba2 |
refs/heads/main | <file_sep>package keyauth
import (
"os"
"strings"
"github.com/gofiber/fiber/v2"
)
func getKeysInEnv() []string {
var keys []string
for _, e := range os.Environ() {
pair := strings.SplitN(e, "=", 2)
key := pair[0]
value := pair[1]
if strings.HasPrefix(key, "API_KEY_") {
keys = append(keys, value)
... | ad21d09cf04e2104bc2df7bc41e30cedf3d3861a | [
"Markdown",
"Go Module",
"Go"
] | 4 | Go | Amenacliff/fiber-key-auth | 2470b8d3e0e6bfc3e88c3b9c6f91820a522770ef | 88994052335e08bc0b3cbe6871efa47062285ce6 |
refs/heads/master | <repo_name>ymfact/GposMakes<file_sep>/Geometry Train/Assets/BlockSelect.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class BlockSelect : MonoBehaviour {
Vector3 cursor;
Vector3 block, center;
List<Vector3> list;
public int top, left, width, height, mapSize ... | be42af72ac9607a870cc974e0abd2ea34799362f | [
"C#"
] | 6 | C# | ymfact/GposMakes | e3289384f52931a3a34314cf571ef60c2be6aec1 | f94db476b5f0cc1b686ddabf90aef6c7db0228a8 |
refs/heads/master | <file_sep># Stats-BayesNetwork
<file_sep>
# coding: utf-8
# # Project 1
# ### Import data
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import multivariate_normal, norm
import math
import numpy as np # importing this way allows us to refer to numpy as np
df = pd.r... | f37973c0b6e9a1f21b245624709945426319dfa7 | [
"Markdown",
"Python"
] | 2 | Markdown | ebellingham/Stats-BayesNetwork | 95a2e91a33b7eb205d6211eab60f739feb5b30d5 | 37b3f0148f745420ce2345614c98f89df189918c |
refs/heads/master | <repo_name>cesarenaldi/react-router-lifecycle<file_sep>/src/initializeRoutes.js
import { matchRoutes } from 'react-router-config'
import updateRoutes from './updateRoutes'
export default function (routes, path) {
const matches = matchRoutes(routes, path)
if (matches.length === 0) {
return Promise.resolve([])
... | a694e31d4c4336c9d7847711ae51424ba2a32e69 | [
"JavaScript"
] | 10 | JavaScript | cesarenaldi/react-router-lifecycle | 1d26ed7b2df1655bcaa212cfb9b1d19ac855c506 | 74ab7e2038b0c8f81e0e945ab671185d2614e178 |
refs/heads/master | <repo_name>shajedul-islam/exploring-java-memory<file_sep>/src/ExploringMemoryApplication.java
public class ExploringMemoryApplication {
public static void calculate(int calcValue) {
calcValue = calcValue * 100;
}
public static void renameCustomer(Customer customer2) {
customer2.setName("Ro... | 246db36941b9343b1bf2dcf1e1122483318fe457 | [
"Java"
] | 1 | Java | shajedul-islam/exploring-java-memory | fa3e5ec5663bcc5bc08dc86843b02c5f9f833b45 | 83e082baf150f4fac6939e6f55cc9c16c3fd9dbf |
refs/heads/master | <file_sep>#include <stdio.h>
#include <ctime>
#include "Neuron.h"
int main()
{
srand((unsigned)time(NULL));
Neuron* nr = new Neuron(2, 0.1);
//샘플 데이터
double sampleInput[4][2] = { { 0, 0 }, { 0, 1 }, { 1, 0 }, { 1, 1 } };
double sampleOutput[4] = { 0, 1, 1, 0 };
for (int i = 0; i < 5000; i++)
{
for (int j ... | 066b93679a7dad6ebded238fc956997d82945b5b | [
"C++"
] | 3 | C++ | MikaAriel/BasicNeuron | 0204bb9c7f2bea27624aa43c6aed5eee5b23442e | d13e9548d1bdb3e0381e544fa544a4fdf3dbfad0 |
refs/heads/main | <file_sep>#include <gtest/gtest.h>
#include "fibonacci_generator.hpp"
using namespace module1;
class FibonacciGeneratorTest : public ::testing::Test
{
protected:
// You can remove any or all of the following functions if their bodies would
// be empty.
FibonacciGeneratorTest()
{
// You can do... | e0a73c9f974deef885e695ee86ccd4d740fe7eea | [
"CMake",
"Markdown",
"C",
"C++",
"Shell"
] | 15 | C++ | museop/docker-cpp-project | 2519d1cd6476847243b064c44127ce3cd15b447d | f0abd48b1281ae3c0f41915a851ceb471dd1583f |
refs/heads/master | <repo_name>pushkars16/reactPoc<file_sep>/src/components/details/Details.js
import React, {Component} from 'react';
import './Details.css';
import ToggleDisplay from 'react-toggle-display';
import {withRouter} from 'react-router-dom';
import MaterialIcon from 'material-icons-react';
class Details extends Component {
... | f6dcb7a693d5a275be1d2004dd7ad86b1428b5ca | [
"JavaScript"
] | 5 | JavaScript | pushkars16/reactPoc | 8a092c58381b765e9fa20f67679b65527ac5ad8d | f52e27e9a7d1cf24b50cec90e489702369dcddc6 |
refs/heads/master | <repo_name>caseydailey/pickle-notes<file_sep>/picklenotes.py
#see docs: https://docs.python.org/3/library/pickle.html
import pickle
class Notes:
'''
defines properties and methods for a CLI to record user input,
serialize it, write it to a file, and retrieve it.
properties:
all_notes-- (list) containing ... | 09a971c9227b58d8416c02b56d9b0a1417fa8251 | [
"Python"
] | 1 | Python | caseydailey/pickle-notes | 7cfc5c31654537a673c6da262ec0e357aae9a930 | ff7324a13819be1abdf2a82c51c5f7bb0cc9d92c |
refs/heads/master | <repo_name>jexia-inc/matches<file_sep>/Gruntfile.js
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
less: {
options: {
compress: false
},
dev: {
files: {
'app/css/main.css': 'app/css/main.less'
... | 4066f03c23192238eacd3928d1ce03974cf1fb1f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jexia-inc/matches | b4ded4b2d091ef94551e7d81fb34c0a8c61fc50c | 098b6903fb54be0ca938aeced6cffbb57c7cc3fc |
refs/heads/master | <repo_name>mohnish/twentyeight<file_sep>/README.md
## TwentyEight
Mask your messages. Mix your messages inbetween news articles.
### Usage
- Type "facebook" without the quotes in the search field on the top and hit the "Contact Us" link beside it.
- This will take you directly to the secret messaging app that is emb... | 200ef314d69e35b101730fd751e97e84743ae5fa | [
"Markdown",
"JavaScript"
] | 5 | Markdown | mohnish/twentyeight | 79948848e8eebdb2040d4b29fb62e297de93b4d0 | 1f52d7402c78b53cb998221986b4a390e3b407b7 |
refs/heads/main | <repo_name>sngooglee/Computer-Vision-AI-Human-Pose-Estimation<file_sep>/model/model_deploy.js
let video;
let poseNet;
let pose;
let skeleton;
let numOutputs = 4;
let brain;
let label = "";
function setup() {
var canvas = createCanvas(800, 600);
canvas.position(375, 50);
video = createCapture(VIDEO);
... | e7facd8081f04c2a32a7d8db691c2fe05a7f57eb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | sngooglee/Computer-Vision-AI-Human-Pose-Estimation | dde8dd091e6877f36c8ef8d3379911fa2f86a617 | 544728619499fc4b3dad27acc7d9317546b715d7 |
refs/heads/master | <repo_name>jroller03/UniversityRegistrar<file_sep>/UniversityRegistrar.Test/ModelTests/StudentTest.cs
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System;
using UniversityRegistrar.Models;
using UniversityRegistrar;
using MySql.Data.MySqlClient;
namespace UniversityRegis... | 24b2b0cb758acfce2b069cf1dcc10b9cacc9bb6b | [
"C#",
"SQL"
] | 7 | C# | jroller03/UniversityRegistrar | 34c926d04c6c82a114f16fd4833126a507b7efa7 | 631338ddfc3048949ac2ec1f2844f17ef94403a4 |
refs/heads/master | <file_sep>/**
* @class ReportChart
* @extends Graphics
* @param {App.Collection} model
* @param {number} width
* @param {number} height
* @param {number} pixelRatio
* @constructor
*/
App.ReportChart = function ReportChart(model,width,height,pixelRatio)
{
var ModelLocator = App.ModelLocator,
ModelNam... | f56b0871ca1021211e2f6ca9f8a39f8ffc7580af | [
"JavaScript"
] | 82 | JavaScript | alesveselka/Hybrid | 082a0819a0ee86acf713b2ed6f63566645405b7d | e94ffed7d6f0e7d052d893f875f48d628cb6be67 |
refs/heads/master | <repo_name>redfern314/olinjs-3-hw<file_sep>/models/models.js
var mongoose = require('mongoose');
//mongoose.connect('mongodb://localhost/burgers');
var ingredientSchema = mongoose.Schema(
{name: String,
cost: Number
}
);
var orderSchema = mongoose.Schema(
{name: String,
ingredients: [{ type:... | 1b0a4fac45844037f7e8110fba1b6dfb2c3829a5 | [
"JavaScript"
] | 5 | JavaScript | redfern314/olinjs-3-hw | 9953f595d6f22a72ea9a0f5464beb89d05ef6121 | 98bbeff44b9465e7465c7694c04a69c1cfb084a4 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Testing;
namespace GalaSoft.MvvmLight.Test__WP8_
{
public partial c... | 5fe3c86cd316279cfc3d70a11fe47c0dc4ab8292 | [
"C#"
] | 1 | C# | wiyonoaten/MvvmLight2Mvx | 0500179c154939854ab1dc705b6892c0a5c80a9b | 46173882b665b80b17f2dd5e1af40549fda57af2 |
refs/heads/master | <repo_name>lwgray/feedr<file_sep>/app.py
import sys
import feedparser
from colorama import init
from colorama import Back, Style
init(autoreset=True)
# print(Fore.RED + 'some red text')
# print('automatically back to default color again')
url = sys.argv[1]
def latest():
d = feedparser.parse(url)
print (Ba... | 6e128e9b1d00eb85487d524d9af24716ec752da9 | [
"Markdown",
"Python"
] | 2 | Python | lwgray/feedr | 770665fd63d0b310467c2ef8f5e797b6653efada | d2b038d52eef58021eb9e97976ff3c8ac2b741ed |
refs/heads/master | <file_sep>var exception = require('../../exception');
var dbconfigure = require('../dbconfigure');
var utility = require('../../utility');
var Sequelize = require("sequelize");
var sequelize = dbconfigure.getSequelize();
var path = require('path');
var Order = sequelize.import(path.normalize(__dirname + "/../models/Or... | 25f1285957f81b52079ceb01142e76947bb5114f | [
"JavaScript",
"Markdown",
"Maven POM",
"Java",
"Shell"
] | 21 | JavaScript | namu2018/nodejs-webservice-eshop | ea439022bad4eb01533ee20007c0a088dab32614 | cb72cd57430ea5103c97b7e90742769cf7eb6f11 |
refs/heads/master | <repo_name>daniltirsk/-<file_sep>/exercise 1.cpp
#include <iostream>
#include <cmath>
using namespace std;
int main(){
setlocale(0,"Rus");
int f,a;
bool c;
cout << "Select function: (1) y=x^4 (2) y=e^x (3) y=tg(x)"<< endl;
cin >> f;
cout << "Enter the interval -a<=x<=a, enter a"<< e... | 7720dfca4635e7bf1256451121756296ca58dd58 | [
"C++"
] | 9 | C++ | daniltirsk/- | 2e948f894329b633c16623bf8ad9dff6dbb3ffb8 | 46108d8ccd503e48ed684023d8af5a0c001f5a03 |
refs/heads/master | <file_sep># remoteSudo
Alllows use of sudo commands on remote hosts
## Usage<br>
` remoteSudo.sh <user> <command> <host file||comma delimited list>`<br>
## Requirement
Requires sshpass
Install with<br>
` yum install sshpass -y`
## Testing results
<pre>userid@y0319t11229:~$ ./remoteSudo.sh userid 'ls /etc/audi... | b35c22c73ccac57d2728a7eb91e7485b6fb27f2e | [
"Markdown",
"Shell"
] | 2 | Markdown | rossKayHe/remoteSudo | 4ac0ffeddbf0f17fbb112fa4ae979e7d6393a49a | 122b5894e19dc42aa1ab26eb4f0cc11a4c80bf87 |
refs/heads/master | <file_sep>export const state = () => ({
subCategories: [],
})
export const getters = {
getSubCategoiresOfCategory: (state) => (payload) => {
return state.subCategories.filter(item => {
return item.category.title.toLowerCase() == payload.category.toLowerCase();
})
},
getSubCategory: (st... | 62680b90b4a56d23b8761558b26a8b26e67a6c6c | [
"JavaScript"
] | 33 | JavaScript | Mohitpokra/formula | 9df3ea114dd066697f5ee4300786f2f54519a6ed | 9298d77c77a76bf3733019c666e964b007b60e34 |
refs/heads/master | <repo_name>AnnaSu/vue-base-demo<file_sep>/README.md
# vue-base-demo
## Start Server for Website
### Install http-server:
npm install http-server -g
### Usage http-server:
http-server
*Now you can visit http://localhost:8080 to view your server*
***
## Start Server for API
### Install JSON Server
... | f3f5517cfa8182cdaef28357da7fe1e5f85e173e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | AnnaSu/vue-base-demo | d6e638b549217e2742e5b058616065d15b4cfe24 | 53ea5a0798dfbc743b3864aede61d811ca2ec4b7 |
refs/heads/master | <file_sep>exports.notFound = function(req, res){
res.status(404);
res.json({
error: 'Recurso não encontrado :('
});
};
exports.serverError = function(err, req, res){
res.status(err.status || 500);
res.json({
error: err.message
});
};<file_sep>module.exports = function(app){
var userRepository = app.reposito... | 8ab74038ee562d419a0f698401614b84e7db9da6 | [
"JavaScript"
] | 2 | JavaScript | vmussak/programaEstagio | b9e6bd557952e3a5a7fbedd27ffe171d421450e1 | 6beb887a8055ef22e04ebe1702b6f6d83654db13 |
refs/heads/master | <repo_name>andreyselin/tmp_dis<file_sep>/src/frontend/env.ts
export const env = {
logger: {
batchSize: 85,
intervalMs: 2000,
},
baseUrl: 'not-used-as-url-base-yet',
};
<file_sep>/src/frontend/api.ts
import axios from "axios";
const apiAddress = path => `http://localhost:8080${ path }`;
ex... | d6e0e31045e2d3e8e74974061451f99a56db9a7a | [
"JavaScript",
"TypeScript"
] | 8 | TypeScript | andreyselin/tmp_dis | 9774bbc23d1504ba0c9086db6f404648b718cfc5 | 59b81f3d3ab889c5bbe474da70b6cff87cef964c |
refs/heads/master | <repo_name>lovefeier/python1<file_sep>/python1-1
#!/usr/bin/python
# -*- coding: UTF-8 -*-
print('hello world')
#python 3.0 使用('')
#2.0使用""
| 69522a8d36b4fb0b94c6dad1d4338cc0f13ffc4a | [
"Python"
] | 1 | Python | lovefeier/python1 | 56ded630d84e9825f25eed10cf5e5d24b4cd9551 | d57aab2c3730123232f2e7e4d3079456a69360a9 |
refs/heads/master | <file_sep>(function($){
$(function(){
var DrawTool = {} || DrawTool;
DrawTool.loadsvg = function(svgurl){
var d = new $.Deferred;
$('#dom').load(svgurl,function(){
d.resolve();
})
return d.promise();
}
alert('test');
});
})(jQuery);
<file_sep>
(function($){
$(fun... | efdbad497213a4ba1aa0958a60b3b435f4eef1b7 | [
"JavaScript",
"PHP"
] | 5 | JavaScript | dev-fukushima/app-nurie | f5e4ef257ba79f86717f0f2343a571e9a4fd1c7a | 0c8507772532ad5608eb2c48a163e84f2f141e74 |
refs/heads/master | <repo_name>mastenl/Capstone-mleonard14<file_sep>/TicTacToe.cpp
#include "TicTacToe.h"
#include <string>
#include <iostream>
#include <fstream>
//TicTacToe::TicTacToe()
void TicTacToe::boardReset()
{
char posNumber='0';
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
posNumber++;
b... | f4547af2242cf13d98e2bf74f0be6fa92ca0b9a7 | [
"Markdown",
"C++"
] | 4 | C++ | mastenl/Capstone-mleonard14 | 48a81a22f35f5e26b3be3347fffe056efcc641bb | f77b64ed752f484089a8a47eb504490a96d74c2c |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
namespace PerceptronVisualisation
{
public partial class MainForm : Form
{
Perceptron perceptron;
List<Point> poi... | 2c4c48a1d994301517a4d135fd1a41e3573eea6f | [
"Markdown",
"C#"
] | 6 | C# | AntonSvystunov/Perceptron-visualization | 1106c3cbe904c11df5c8991aca8c06d9b2b9ee63 | bf556345b1646dda043056b653dbf24a306fa0ab |
refs/heads/master | <file_sep># iArduinoWo —— node.js and mongodb blog website
iArduinoWo是利用node.js和mongodb搭建的轻博客站点,这里是此站点的源文件
##项目演示网址:http://wo.iArduino.cn
本项目是基于node.js框架rrestjs开发构成的
##rrestjs框架:http://www.rrestjs.com
##在线PS网站:http://www.uupoop.com/
##安装方法:
目前没有对windows环境下做任何测试和支持,请使用linux系统
1、请先安装node.j... | ed765470c1b4f429ede04fe4133a9cdf346d1116 | [
"Markdown",
"JavaScript",
"Shell"
] | 3 | Markdown | schidler/iArduinoWo | ad675a1ba1ff39c08625b6fbb503b6e24ce766ca | a1fdd8b3c1859760c2f786bdc78a67b7d22245ea |
refs/heads/main | <repo_name>peramilo/ML-Pong<file_sep>/README.md
# ML-Pong
An implementation of Deep Q-learning on simple 1 player pong game.
The goal is using machine learning to create and train an agent that will choose best action to perform based on
the state of the game.
Agents decisions are based on expected discounted long-... | 67c3931c1b448b5783c984f7b67ba8cbe0119bb6 | [
"Markdown",
"Python"
] | 3 | Markdown | peramilo/ML-Pong | 8a8f05978a6f8675f02d42647b33163dcb15ed80 | 5ef131b0d26e1c8ac00041b47f32c775ad4bb228 |
refs/heads/master | <file_sep>// ====================================================================================================
//
// Text Analyzer
//
// ====================================================================================================
// --------------------------------------------------
// Initialize when the D... | 821da391f55cf6dbc8130c69da296d377076d553 | [
"JavaScript"
] | 2 | JavaScript | SheenaVasani/text-analyzer-starter-files | 8fd7a9599c9ba4e7fcc14ef640121c3583cc65b0 | 3c64b879e32372bc1f49b76fc469d7d0bcb731c8 |
refs/heads/master | <repo_name>fredlawl/playground-graph-visitor<file_sep>/GraphVisitor/LabelGraph.cs
using GraphLib;
namespace GraphVisitor
{
public class LabelGraph : BaseGraph<LabelGraph, Label>
{
public string Title { get; protected set; }
public LabelGraph(string title)
{
Title = title;
}
public override void Acc... | f38529b49cc66db1fc046910b36ef2b2a8e71498 | [
"Markdown",
"C#"
] | 11 | C# | fredlawl/playground-graph-visitor | 849b9bfabe5a129a7ad9ed524a5411fa5a1664be | e4710b7b58c285b80b099f494ebe63e1c1e42ed4 |
refs/heads/master | <file_sep>#!/bin/bash
#author lll
dbName=test
fileName=`date +%Y%m%d.%H%M`
backupPath=/root/data
dbuser=root
dbpassword=<PASSWORD>
if [ ! -n "$1" ] ;then
echo -e "---请输入需要备份数据库名称---"
exit
fi
if [ "${dbName}" == "$1" ];then
if [ ! -e $backupPath ];then
echo "---正在创建备份路径---"
mkdir -p $backupPath... | fe6317d7d27ddcdda9bbf4858eec85294398ef32 | [
"Shell"
] | 1 | Shell | lfengsw/hello-world | 2207b3a8db22a7d72043578ec93e022da3cc9499 | 8bd949ceb325d7b8cd8bfdf64451c117678e60a0 |
refs/heads/master | <repo_name>claireedanaher/DS501<file_sep>/CaseStudy2/previous/CaseStudy2_DataTags.py
###CASE STUDY 2####
import sys
import pandas as pd
import json
import pymongo
from pymongo import MongoClient
###########################################################################################################################... | 327fbdd0ba7b1343c765086b9f46425d6153528d | [
"Markdown",
"Python"
] | 9 | Python | claireedanaher/DS501 | d8cf2248ea2e8aad1d4c98b3c3d9ae879bbda74a | ec8b6ac314ceeb37ab9cb4b3840e3f71dad2bf70 |
refs/heads/master | <file_sep>let active = document.getElementsByClassName("tab"),
dws_form = document.getElementsByClassName("dws-form")[0].children,
tab_form = document.querySelectorAll(".tab-form");
for (let key of active) {
key.addEventListener("click", function () {
for (let key of dws_form) {
key.cla... | 31cbd8311fe9e560b7de004065b55aa684917234 | [
"JavaScript"
] | 1 | JavaScript | Garo150390/registration | 320692b069b990b4ca5813b1c76d60afbacfd023 | 23ddb1ccbbfd4162c5762bd2eb62fe21d1a62838 |
refs/heads/master | <repo_name>maoyunan/test<file_sep>/lib/connect_db/sqlite_connect.py
# coding=utf-8
from sqlalchemy import Table, Column, Integer, String, MetaData, create_engine
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy.ext.declarative import declarative_base
# import live_seeds
Base = declarative_base()
... | 10e306552051b260e733ae46b23a9ca998f1d2fb | [
"Markdown",
"Python"
] | 8 | Python | maoyunan/test | 4c51450f023fa3c4a88b86e85786cd3a4948da3a | 694d2433af1909b88eee3eb2ee6cd327c3504a42 |
refs/heads/master | <file_sep>using IdentityServer4.Models;
using IdentityServer4.Test;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IS4CCRedirectUriIssue {
public class Config {
protected static ApiResource API_RESOURCE = new ApiResource("test-api", "My API");
... | 508ba8e8dddeba56e341142f4ba82075e8eab2b1 | [
"Markdown",
"C#"
] | 3 | C# | tedchirvasiu/identity-server-4-client-credentials-issue | d89d0604ad237e482a8c6a172e85317c2a2163b7 | e41d57cb2d045550c8fab88359802a18ba670338 |
refs/heads/master | <repo_name>adelrodriguez/wikipedia-viewer<file_sep>/viewer.js
$(document).ready(function() {
$("form").submit(function(event) {
// prevent page from reloading
event.preventDefault();
// clear old results
$(".card-columns").empty();
// search results
search();
});
});
function search() {
var ... | 618e65019cd9be690d9d61601db835c769f23c54 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | adelrodriguez/wikipedia-viewer | 5b5e3a7b3f0021a3473e575f6329b9a5454e6bb4 | 3250abd77f8d4a3a087f77cb96022fa1be6d5a72 |
refs/heads/master | <file_sep>
# Polyseer.io SDK for Node.js
The official Polyseer.io SDK for Node.js. Detailed API information can be found at (https://polyseer.io/documentation).
## About
Polyseer.io is an Integrated Development Platform that instan... | 47b2a32699db3bd45d7a78c372fa8dc0ebb42157 | [
"Markdown",
"JavaScript",
"Makefile"
] | 121 | Markdown | kgnzt/polyseerio-nodejs | 0ad21e8f7ce7fec431b2c8e809511636a88d000d | 9a0d5569d6de4edc888e0d10a5602b1249f85ce8 |
refs/heads/master | <repo_name>ShoufuDu/my_python<file_sep>/mytool.py
import argparse
import getopt
import os
import re
import shutil
import subprocess
import sys
import time
const_short_opt="hps:d:"
const_long_opt=["help","pid","src=","dst="]
# arguments for all process procedure
process_pid=False
process_src=None
process_dst=None
cla... | 79b86b14a26ca9917845738af1da0dd91ecf063a | [
"Python"
] | 2 | Python | ShoufuDu/my_python | bdd54b73e90fb1360b997a6b32adae56b8644177 | cf1d65ca640bca65c9be9c5ddaf599e95e673c7e |
refs/heads/master | <file_sep># Baboule
Just a mother repository
<file_sep>package baboule;
import static org.mockito.Matchers.anyInt;
import baboule.Bonus;
import baboule.Table;
import com.diffblue.deeptestutils.Reflector;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
i... | 7224be79471a5ea5223a590f1b341697f8a4f777 | [
"Markdown",
"Java"
] | 4 | Markdown | Ichkamo/Baboule | c9533365f46cb6872cb243be9b614328fbd7cb29 | e7017e80f12de069c7ac46fa8f82d77db308b270 |
refs/heads/master | <repo_name>mandykoh/webscrubble<file_sep>/version.go
package webscrubble
//go:generate go run vendor/github.com/mandykoh/go-bump/main.go webscrubble
const VersionMajor = "0"
const VersionMinor = "0"
const VersionRevision = "2"
const Version = "0.0.2"
<file_sep>/api/version.go
package api
import (
"encoding/json"
"... | cecd67fc0aff9053ccb429f8e31410449cbe431a | [
"Markdown",
"Go"
] | 5 | Go | mandykoh/webscrubble | 1128b610668ea74a820ed25ace63e6313ec6bb65 | 56ccfb9af1f9737edb46d51aaf966acd52809901 |
refs/heads/master | <repo_name>quyetlc2198/ProjectII<file_sep>/example22_1/myshop/orders/migrations/0002_auto_20200417_0848.py
# Generated by Django 3.0.4 on 2020-04-17 01:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
]
operations = ... | 59cc6ed0318d0b382dee8631e09ba08501acabfd | [
"Python"
] | 16 | Python | quyetlc2198/ProjectII | 3c730c8f04f011b5931f345f9e51e9a803561a23 | 17a7712e5a727acc192bd5881a020898b7dfb113 |
refs/heads/master | <repo_name>GerardoCano/ventas<file_sep>/module/Cporders/src/Module.php
<?php
namespace Cporders;
use Laminas\Db\Adapter\AdapterInterface;
use Laminas\Db\ResultSet\ResultSet;
use Laminas\Db\TableGateway\TableGateway;
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
class Module implements ConfigProviderInte... | d3942d1cd5090c5978c9a714956a5bbf74db2fc9 | [
"SQL",
"PHP"
] | 22 | PHP | GerardoCano/ventas | 8ca66aa5b2e69d3f117ac68fcd46e67eef6602b7 | b14721d8cb12873db75212ba074a5affcfee50d6 |
refs/heads/master | <file_sep>### Reproduce browsers failure to follow redirects in case of Pre-flighted CORS requests
# Running the repro servers
* Download and install [golang[ (https://golang.org/dl/)
* Clone the repo
`git clone <EMAIL>:monmohan/cors-experiment.git`
* Running the API and page server
+ Change to the `issue` dir... | f171e6f14828fbface221cfd6864efa9b7af34a2 | [
"Markdown",
"Go"
] | 5 | Markdown | devocasion/cors-tutorial-practical | 6defee14893a5f26d595365351df56b3d19d2884 | 29eca94f0e7aba919d048a74de96cacb2be5b1b8 |
refs/heads/master | <repo_name>WojRubin/helpdesk<file_sep>/spec/models/comment_spec.rb
require 'spec_helper'
describe Comment do
pending "add some examples to (or delete) #{__FILE__}"
it "get all from table " do
comment1 = Comment.create do |t|
t.ticket_id = '1'
t.user_id = '1'
t.status = 'yes'
t.sharing =... | c0737b68922abd27d7997cec9524fd1060bc6af1 | [
"Ruby"
] | 7 | Ruby | WojRubin/helpdesk | 8114b1a19c3525bb217ad2a60b1165fece5f603d | b59566c82657730ca60225b51e43ef2dca165de5 |
refs/heads/master | <file_sep>def merge(L, R):
array = []
i, j = 0, 0
while i < len(L) and j < len(R):
if L[i] <= R[j]:
array.append(L[i])
i += 1
else:
array.append(R[j])
j += 1
array += L[i:]
array += R[j:]
return array
def mergesort(array):
if len(array) > 1:
q = len(array) // 2
L =... | a33be357260eeb32d3862df2b28fd8e01a06f268 | [
"Python"
] | 5 | Python | ElminsteAumar/Sorting_algorithms | 9cd907500d522fd0fb3cb00870487bc4db8fd4fc | 1b4c0ccea88b0d1a35571a3006d527cea8966f31 |
refs/heads/main | <file_sep>import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import type { AppState } from '../app/store';
export type ArrangeType = 'none' | 'same' | 'next';
export type StyleState = {
startTime: number;
shouldArrangeHorizontally: ArrangeType;
nameConversionTable: { [key: string]: string };
};
co... | 7be7faae3ee96ac6d4a505e67793894ec0b11ece | [
"JavaScript",
"TypeScript"
] | 12 | TypeScript | pacifist24/pricone_tl_app | 8b94a4aacf846d67ded647fc6b322cf7527e72bc | 2ff85dca464dd7db2cc8918626ed74446aa8679f |
refs/heads/master | <repo_name>OssamaGh/Gulpv4<file_sep>/gulpfile.js
//Project Code used in the asset directories
const projectCode = "LRS";
//scss OR sass?
const projectType = "scss";
//Directory
const directory = "./MY-DIRECTORY/" + projectCode;
//Asset Directories
const buildDir = directory + '/bundles';
const cssDir = di... | 46d08161ed6e78953963d408cd95366949d8525d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | OssamaGh/Gulpv4 | a5c08d1a9cc94839c291323d3ff8daec3bf70712 | bab8c63de7df1e1efbc4aea575c92a53f33d0c7c |
refs/heads/master | <repo_name>nokisnojok/useful-for-everything<file_sep>/stream-iframe/index.js
function streamXHR(content = document.body) {
const iframe = document.createElement("iframe");
iframe.style.display = "none";
document.body.appendChild(iframe);
iframe.onload = () => {
iframe.onload = null;
const xhr = new XMLH... | 76a381e4e3d4040a0f74667192a22c42bb2b16a0 | [
"JavaScript",
"TypeScript"
] | 4 | JavaScript | nokisnojok/useful-for-everything | 79a7e565bbd070f5034aee7fc5a5dba62f524fd6 | 3983178e6dea138832f0e491d84c60bc38942f78 |
refs/heads/master | <repo_name>ChausAnton/chronos-anchaus<file_sep>/laravel/app/Http/Controllers/EventController.php
<?php
namespace App\Http\Controllers;
use App\Models\Events;
use Illuminate\Http\Request;
use DB;
class EventController extends Controller
{
public function getEventsForCalendar($id)
{
$calendar = DB::se... | 007942ef0434b64e3a25b81a60fdcac3cb556ddf | [
"JavaScript",
"PHP"
] | 15 | PHP | ChausAnton/chronos-anchaus | 025d979624aaaea3deeb797eb4466c3c1cb29a59 | 2fe967d6d4775f6d25c8e6a2fb0bbf7349b63dfb |
refs/heads/main | <repo_name>mlhomsi/Navio-Pirata-e-Bruxaria<file_sep>/Navio Pirata e Bruxaria/Assets/Scripts/PlayerMovement.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
public float speed;
private Rigidbody2D rb;
//public AudioSource passos... | 77e445f41e736572aa7252fb6b39c2a377b8b229 | [
"Markdown",
"C#"
] | 14 | C# | mlhomsi/Navio-Pirata-e-Bruxaria | 7488ca9176ab5ee48c585d54e63d4c76f5951b21 | 1643e6deae8ba2da935534941a44f9cdc9a5a876 |
refs/heads/master | <repo_name>Nixtov/Arrays<file_sep>/demo2/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace demo2
{
class Program
{
static void Main(string[] args)
{
int [] test = new int [5];
test [2... | 0dde5e57403e97379a9ff84e2ee31a7062dcb63c | [
"C#"
] | 3 | C# | Nixtov/Arrays | 21a6bd18131f2db7a31e1e7ec0649b781fc58c6f | 28d393e9989bd7277dd2471f23bc26f9f74ce713 |
refs/heads/master | <repo_name>radames-rex/wforecast<file_sep>/app/components/app.js
'use strict';
/**
* @ngdoc overview
* @name wForecastApp
* @description
* # wForecastApp
*
* Main module of the application.
*/
angular
.module('wForecastApp', [
'ngAnimate',
'ngAria',
'ngCookies',
'ngMessages',
'ngResource',... | 171b8edc31be3a6e90d27662face150797e2c3c6 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | radames-rex/wforecast | 085adba56e93752b6b18cde0f22d3f66890af3e5 | f1cac9d88b98bfcf85ab8b2a048dbcb2de63893e |
refs/heads/master | <file_sep># landmark-test
Authors: [<NAME>](<EMAIL>), [<NAME>](mailto:<EMAIL>), [<NAME>](), [<NAME>](), [<NAME>](), [<NAME>](), [<NAME>](), [<NAME>](), [<NAME>](), [<NAME>]()
This repository contains all the code and data used in the manuscript:
<NAME>., <NAME>., <NAME>. et al. Individual variation of the masticatory... | 6150b49e670e39af87b49e7695c6a41e32b931c0 | [
"Markdown",
"R",
"RMarkdown",
"Shell"
] | 15 | Markdown | TGuillerme/landmark-test | f8be076f1fa492ab8254ac52c2c72100100339cf | 6f4f0df12dbb5fa5b1065f60e8dc6f7a902c8aff |
refs/heads/master | <repo_name>pligor/anonymizer<file_sep>/resources/screens/d12245cc-1680-458d-89dd-4f0d7fb22724-1518646228006.js
jQuery("#simulation")
.on("click", ".s-d12245cc-1680-458d-89dd-4f0d7fb22724 .click", function(event, data) {
var jEvent, jFirer, cases;
if(data === undefined) { data = event; }
jEvent = jimEv... | 0ce4915069128bf6baa4bbe8232edc7143046ec4 | [
"JavaScript"
] | 5 | JavaScript | pligor/anonymizer | 54c7f1ce871e0633efaf4f368a30d13ac819ac30 | 2cefed53c61eb38fec1daca70a308a9b8d1bd9ac |
refs/heads/master | <repo_name>mayfield/pendulum<file_sep>/build-wheels.sh
#!/bin/bash
PYTHON_VERSIONS="cp27-cp27m cp35-cp35m"
echo "Compile wheels"
for PYTHON in ${PYTHON_VERSIONS}; do
/opt/python/${PYTHON}/bin/pip install -r /io/wheels-requirements.txt
/opt/python/${PYTHON}/bin/pip wheel /io/ -w /io/wheelhouse/
done
echo "Bund... | bb613b9eb6f5279b25908515d1e17d4dff68186b | [
"Shell"
] | 1 | Shell | mayfield/pendulum | bd7e9531bda35c45ddf794138c9967d9454209d4 | eb0b9c66f89a5d164446e728b8f8bc8e8d7f47d9 |
refs/heads/master | <repo_name>zmabunda/swingy<file_sep>/Swingy/src/main/java/com/swingy/model/player/Character.java
package com.swingy.model.player;
import com.swingy.model.artifact.Defense;
import com.swingy.model.artifact.Weapons;
public class Character {
public int hp;
public int level;
public int exp;
public Hero... | bc92c248528fa9d0684a95105287494545d2e8ba | [
"Java"
] | 5 | Java | zmabunda/swingy | 53dc8cefd43481e6d2e4a85ff18ec3128b01e883 | 17fc8273a86fe71aee018621a12ba302bec7b57c |
refs/heads/master | <file_sep>prnt ("new featur love");<file_sep>prnt ("console git start");<file_sep><?php
/* webserver AMPPS
* редактор кода phpStorm
*/
define ("CONSTANT", "12345");
$a = 10;
$b = 11.12;
$c = true;
$d = "1 lesson";
//1
echo $a;
echo $b;
echo $c;
echo $d;
echo CONSTANT;
echo ... | 4c7c38f12ca53822b8d4b6f0f7695f2d161edf73 | [
"PHP"
] | 3 | PHP | umbsse/git-test | 5417e969ddc2b021709ad4870acaf79704520576 | a39833d7e31dc47ad5607b8b127723fa260ca4c1 |
refs/heads/master | <file_sep># Reddit Comment Analysis
## Overview
The purpose of the project was to get experience handling large amount of data. The project invovled over 50 millions reddit comments. Technolgies and frameworks such as MongoDB, SQL, Amazon Web Services and Databricks were used in the analysis of the data. Machine lear... | e0b0b1d0c341b62b6fc191ff597656d9830ad37d | [
"Markdown",
"Python"
] | 3 | Markdown | brydenfogelman/reddit-comment-analysis | b056a5fb21fdd5659cacfd8ab217f9babc19fec2 | ba5812ea562e766ec1bed091a08a865032a39527 |
refs/heads/master | <repo_name>mramakrishnan-chwy/sys6018-competition-titanic<file_sep>/README.md
# Kaggle---Titanic-Machine-Learning-from-Disaster
Using data mining techniques to predict the probability of a person surviving from Titanic disaster
<file_sep>/Titanic_predictions_Data_Mining.R
######## TITANIC PREDICTION - KAGGLE ##########... | 484c7f9a6798196578287865375d172df25a37ed | [
"Markdown",
"R"
] | 2 | Markdown | mramakrishnan-chwy/sys6018-competition-titanic | a6c39a5f30854c74a79b5274c43bfa58344b3af7 | 062cc756d2edc97e8511591205283017b9deed9f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.