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>KyleBlackwell01/Algorithms<file_sep>/Algorithms/InsertionSort/Program.cs
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InsertionSort
{
public class Program
{
static void Main(string[] args)
... | f56e894921206d85292619b733c32a2648d7d8ad | [
"C#"
] | 4 | C# | KyleBlackwell01/Algorithms | 1e4ce8ae58179d779460ec981980d10f131e57cb | 7611ec00b071c0cc1a92d3a260add40d724a5a48 |
refs/heads/master | <file_sep>#!/usr/local/bin/python3
import csv
import re
expensePlaces = [ 'The UPS Store', 'Amazon', 'Dollar Tree', 'NetFlix', 'Oriental Trading', 'Costco WHSE', 'Office Depot', '<NAME>', 'Discount School', 'Powell\'s', 'Blick Art', 'Home Depot', 'Dollar Tr', 'Oak Hall', 'DiscountMugs', 'Sports Authority', 'Citi Card'... | d0a7b024e37265079811c0f99052aa6f4d4e6dc5 | [
"Markdown",
"Python"
] | 2 | Python | MidnightSkulker/Tax-Preparation | ad9db5536694e401d11398d890526f655d15a6ec | c4fd493688b844acd62d8a2b454478e5baef5067 |
refs/heads/master | <file_sep>import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Tabbar, TabbarItem, Button, NavBar,
Tab, Tabs, Calendar,Swipe ,
SwipeItem,PullRefresh,Field,Form,
Search,Icon,Empty,Grid, GridItem,
Toast,Sticky,ActionBar, ActionBarIcon,
... | 8c4d3e04394d2f60dc8aa9e635e956a92ac68de7 | [
"JavaScript",
"TypeScript"
] | 5 | TypeScript | Chan-picle/putaojia | 5c4b828fde7fedb419010f62929cf359c14f62ab | 6bc56460794c7cec167a59c3f5147b6213852a39 |
refs/heads/master | <repo_name>peidong-hu/docker-x2go-pycharm<file_sep>/docker/start-sshd.sh
#!/bin/sh
# Create ssh "client" key
# http://stackoverflow.com/a/20977657
USER_HOME=/home/docker
KEYGEN=/usr/bin/ssh-keygen
KEYFILE=${USER_HOME}/.ssh/id_rsa
if [ ! -f $KEYFILE ]; then
$KEYGEN -q -t rsa -N "" -f $KEYFILE
cat $KEYFILE.pu... | 4aacd3ea273b69681d0663a46671c9ee95f8a3b5 | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Shell | peidong-hu/docker-x2go-pycharm | 54c0b42369268b54d6c5580b4956d947c24c0af9 | f92abb2837b671376e30e69506c15a59d9ed3c0a |
refs/heads/master | <file_sep>import re
import nltk
import os
import sys as Sys
from nltk.tokenize import WhitespaceTokenizer
from nltk import ne_chunk, pos_tag, word_tokenize
from nltk.tree import Tree
from nltk.tokenize.util import regexp_span_tokenize
finalArticles = []
articleName = input("Insira o nome do arquivo: ")
textName = inp... | cf5c2ad39494dac313c3e742fbb5d451945f4294 | [
"Python"
] | 2 | Python | cyro809/trabalho-nltk | 6d07a3fb9d059d37a5a0e84946a5b34153af3c61 | 31669eb658c5fa98cd3011bacbae9bce4cf4a9e9 |
refs/heads/main | <file_sep>import pytest
from main import get_notifications, weather_handler, get_weather, news_handler, get_news, \
covid_handler, get_covid
"""
The modules to test are as such:
get_notifications - see if it returns a list
weather_handler - see if it returns 4 variables: float, int, int, string
get_weather... | 0b53ab95c46bc019e7627dcf48c0c281aa4525f4 | [
"Markdown",
"Python"
] | 3 | Python | AdarshPrusty7/ECM1400-CA3 | b6719c115944e6f7a80bf4f0a2f6a2f45653420b | 5bff4cbd9b08159c6685665bcdf8331f76ba50bb |
refs/heads/master | <file_sep>export const card1 = {
index: 1,
tags: ["N3", "感動"],
text: "問い合わせる",
hiragana: "といあわせる",
furigana: [
{
kanji: "問",
furi: "と",
},
{
kanji: "合",
furi: "あ",
},
],
english: "Inquire",
};
export const cards = [card1];
<file_sep>import { Action, TOGGLE_DEFAULT_... | dd2c1ff0398538d6cd28efeb6eb0a7230104aab4 | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | elsonlim/flip-cards-ui | 041d61f58e6655000509fa130888015274235970 | c0600a8a81fe5f6f2ffa26593b787f2e50f0cc66 |
refs/heads/master | <file_sep>
import numpy as np
from scipy.misc import logsumexp
from misc import sigmoid
class layer_sigmoid(object):
def __init__(self, dim_in, dim_out):
self.dim_in = dim_in
self.dim_out = dim_out
max_wt = 2 * np.sqrt(6.0 / (dim_in + dim_out))
self.weight = (np.random.rand(sel... | 0ba147f2b48c8b212d8299daff902176203370ab | [
"Python"
] | 10 | Python | spring01/dl_nets | 765e18876b8d95fd5c9c1b4a4847cbebde7fee53 | d9384526c0c08d1f7c116c7c30abd57811ad5164 |
refs/heads/master | <file_sep>import ui.View as View;
import ui.ImageView as ImageView;
exports = Class(View, function (supr) {
this.init = function (opts) {
//Set default width / height
opts = merge(opts, {
width: 91,
height: 91
});
supr(this, 'init', [opts]);
//Add the color BG
this.addSubview(new ImageView... | 7078990cd5cea2944bc2e308565f28c0a3fad29c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | presentcreative/gc-memtest | cc5d749b3f3e25248b3695a13b4ea0d5d80de15e | 2eaf16f90ccd89d60da729e3879ba8adee14d3dc |
refs/heads/master | <repo_name>developercyrus/jsf-primefaces-snippets<file_sep>/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<g... | b54151ef5890987a7dd9638b1f954094e87c373b | [
"Java",
"Maven POM"
] | 3 | Maven POM | developercyrus/jsf-primefaces-snippets | 337e943e773c9f5b82c49540b2a9b2365a01c555 | 58782ebccb01fb346bfed2c1ecc6443a76453241 |
refs/heads/master | <file_sep>from sklearn.neural_network import MLPClassifier
from sklearn import datasets
iris = datasets.load_iris()
entradas = iris.data
saidas = iris.target
redeNeural = MLPClassifier(verbose=True,
max_iter=1000)
redeNeural.fit(entradas, saidas)
redeNeural.predict([[5, 7.2, 5.1, 2.2]])<f... | 16cfd42c82afa08049e2c6ccc280e190280429ef | [
"Markdown",
"Python"
] | 5 | Python | HigorC/machineLearning | 83d418b27f43a5d99861f7b4fb130619a088152d | 10691ef4fd875945a211acb658d8ad56280ff4e6 |
refs/heads/master | <file_sep>#Retrive input from user
puts "What units for domain are you using?(singular)"
domainUnits = gets.to_s
puts "What is the input file directory?(end with .csv)"
inputDirectory = gets.to_s.chomp
puts "What would you like the output directory to be called(end with a .dat)?"
outputDirectory = gets.to_s.chomp
#Retr... | 590f97fd00e97001ef0963e2dc7b7ff68d7e838b | [
"Ruby"
] | 1 | Ruby | lukepsauer/statisticslab | 9166882ff07d030f140b616a84c58db4d6cf622e | 46ac117868853f9b3addbbecb93906361071b4cd |
refs/heads/master | <repo_name>zoomie/concurrent_goland_api<file_sep>/README.md
# Go API
All the action is in the app.go
I know that it's a bit silly to access a Redis Database though an http connection as the speed gained from using RAM memory is lost by networking bandwidth. My reason is that I wanted to learn how Redis worked with G... | 266891afe4bc7c03c9e29c42d3d61cb79b087a18 | [
"Markdown",
"Go"
] | 5 | Markdown | zoomie/concurrent_goland_api | 870101b65d3b7dae052b2f0587496258e156abf2 | 5b9d99aa0da84b9fd061e68c11faf8655de62d47 |
refs/heads/master | <file_sep>
[<-이전기록보기](https://github.com/whydda/zuuladdressproxy/blob/master/README.md)
# ZUUL을 이용한 proxy서버 규현 #1
## RIBBON(Load Balancer)을 이용하여 서버 URI에 따라서 http://www.juso.go.kr 또는 http://openapi.molit.go.kr/를 통한 API 호출을 분기 처리
> - RIBBON dependency 추가
> - request url
> - response
## 참고사이트
[참고(https://supawer072... | 1b1a9e6ef8dc7f0aa5e7377c8e73922c107ff3f1 | [
"Markdown",
"Java",
"INI"
] | 4 | Markdown | whydda/zuuladdressproxy | 6c58284650112fb380cc55e981c2ad2e246ae59f | c6a318c982352b0f3afd4f4a95f4782a146445d0 |
refs/heads/main | <repo_name>sunlibo111111/core_Sample<file_sep>/V7/Program.cs
using System;
using System.Threading;
namespace MultithreadingApplication
{
class ThreadCreationProgram
{
//public static void CallToChildThread()
//{
// Console.WriteLine("Child thread starts");
//}
//sta... | c4b10c4e525d4945290cddd7ff203a4f307db671 | [
"C#"
] | 4 | C# | sunlibo111111/core_Sample | d59e6a5ac9d5d5ff72201b83cebb338cad34a222 | 015026dc8dbbf0d6ca6ffd3495fa44b6cd4319f2 |
refs/heads/master | <repo_name>Feroz0408/Kroger-round2<file_sep>/src/components/category-details/CategoryDetails.jsx
import React from 'react';
import './CategoryDetails.css';
const CategoryDetails = props => {
return (
<div className={!props.categoryDetails.length > 0 ? 'hide' : 'show'}>
<h3> Items in Category: ({props.short... | 321f5882823e67e197c34cae69f34fc54e8bc9d0 | [
"JavaScript"
] | 2 | JavaScript | Feroz0408/Kroger-round2 | 62024833e18e54d508fe1b9ccf491f989eb40fc9 | 585ac90cff57b15b559056b51470ab6fedc8f240 |
refs/heads/master | <repo_name>KamilaKautzmann/TrabalhoFinal_Genio<file_sep>/src/Genio/Arvore.java
package Genio;
import java.util.Scanner;
public class Arvore {
public Nodo raiz;
// metodo que recebe o valor do usuario e chama o inserir.
public void inserirUm(int valor, String pergunta) {
inserir(raiz, valor, pergunta);
}
pub... | ac27417ecf56fce0a8d0f5d4b13262be2614f074 | [
"Java"
] | 2 | Java | KamilaKautzmann/TrabalhoFinal_Genio | bdebbaccbf43b436bfffa81cb5aaa62521915033 | 8f812398c7386f1156880f1c309d0c5ad23c7d56 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'merge_image.ui'
##
## Created by: Qt User Interface Compiler version 6.4.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#####... | 32b223bf80e4965a9745b17340d4b92fcaaa9599 | [
"Markdown",
"Python"
] | 10 | Python | yjmm10/Seal4OCR | 76224411f0aeb337d5bec67e38e43f8e06c99a54 | 28e8ecc83a8e2e0060ad910eeed060dd01bbe736 |
refs/heads/master | <repo_name>6-cky/Learngit<file_sep>/Application01/settings.gradle
include ':app'
rootProject.name = "Application01"<file_sep>/Week102/app/src/main/java/com/example/week102/NewsContentActivity.java
package com.example.week102;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
impor... | b9da2b0a84e2ed726995498aadc5234e40118be9 | [
"Java",
"Gradle"
] | 6 | Gradle | 6-cky/Learngit | 02fd8d1f0d87ef7ea73e209a0aafe4ac141b74cb | 37583977e164ca3c49948bb647d2c65356d19f65 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.... | d6788ea7b6d746a1ca423337b6e17d01fa3a5ae5 | [
"Markdown",
"C#"
] | 6 | C# | hunostor/EmailSenderMicroservice | 0239ef25541a7571ee479597486ee651eaf90982 | 8ae98c09960b0e3b10fc0170b61e0e7a98dd03f2 |
refs/heads/master | <repo_name>GaidukStan/rsoi_lab1<file_sep>/link2.py
from flask import Flask, redirect, request
import requests
import configparser
import requests.auth
import json
from data import secret_key, client_id
redirect_uri = r"http://127.0.0.1:5000/app"
auth_url = r"https://www.linkedin.com/uas/oauth2/authorization"
api_url =... | 550cbf323f957635aee50e4cfd4d00fc97a92da4 | [
"Markdown",
"Python"
] | 2 | Python | GaidukStan/rsoi_lab1 | 124b298f665ccbfb6186bba5f3d5c320fa8355ee | 815b5612de9f1407b4cb0aa42a433d8077ac836c |
refs/heads/master | <repo_name>syndenbock/BagBrother<file_sep>/ItemCount.lua
--[[
Copyright 2011-2020 <NAME>
BagBrother is distributed under the terms of the GNU General Public License (Version 3).
As a special exception, the copyright holders of this addon do not give permission to
redistribute and/or modify it.
This addon is distribute... | 1a556170298bab53861d57874d7f4120ef84c448 | [
"Lua"
] | 2 | Lua | syndenbock/BagBrother | 35f2f0fe33aeedec77ad88dad961cc1cfd92b9f2 | 2918f92b99a536196f26f29a78035e52b7abff70 |
refs/heads/master | <file_sep><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class InicioModel extends CI_Model {
public function __construct(){
parent::__construct();
}
public function insertarVisita($data){
if($this->db->insert('visitas', $data)){
return TRUE;
}
return FALSE;
}
public fun... | a7a2930cd2b84dfc59e0ac8bf3d9307203bb2d4d | [
"Markdown",
"SQL",
"PHP"
] | 19 | PHP | Luiscode7/cpp | dbe086e52ad950b27ce7b42a634fb930740f5fe2 | 4e1f048785a73c7868dceaa248c2bbf79db35f26 |
refs/heads/master | <file_sep>PyGithub==1.26.0
rethinkdb==2.3.0.post3
<file_sep># jeffops-backend
Python backend for JeffOps
## Instructions
### Github updater
```sh
./github-updater.py
```
<file_sep>import rethinkdb as r
r.connect( "localhost", 28015).repl()
r.db("test").table_create("projects").run()
r.table("projects").insert([
... | 644d2b03601edd666a6c50ceb671fea16b110a9b | [
"Markdown",
"Python",
"Text"
] | 4 | Text | JeffOps/jeffops-backend | e0b13eb9cae9d4ba6c0932a5cf2ec6265dd0ed6a | c8b39b3937d888f8c4cec7db92c5b602b7e0c50a |
refs/heads/master | <repo_name>HR-SEA16-SDC2/zakbar<file_sep>/database/schema.sql
DROP DATABASE IF EXISTS qanda;
CREATE DATABASE qanda;
USE qanda;
CREATE TABLE questions (
question_id SERIAL NOT NULL,
product_id INTEGER NOT NULL,
body VARCHAR (250) NOT NULL,
date_written DATE NOT NULL,
asker_name VARCHAR(250) NOT NULL,
aske... | 4fd82fd78773c8ad64abd48c3cc9a42d2e167776 | [
"JavaScript",
"SQL"
] | 3 | SQL | HR-SEA16-SDC2/zakbar | 5d85bd6d60c8d238fd400a37a6a991966236c072 | ecad67e6fc832291bf1bc202ccb5a2f260dcfb78 |
refs/heads/master | <repo_name>gibberfish/FootballResultsApiIntegrationTests<file_sep>/src/test/java/mindbadger/football/api/AbstractRestAssuredTest.java
package mindbadger.football.api;
import com.jayway.restassured.RestAssured;
import org.junit.After;
import org.junit.Before;
import java.io.IOException;
import java.util.HashSet;
impor... | 7e109f1999c7787ab9de4dd741e808e4305ca7e0 | [
"Markdown",
"Java",
"INI"
] | 5 | Java | gibberfish/FootballResultsApiIntegrationTests | d2736b71b51ba3e58610ff75731176ed325df08f | e034c022feccab3b69fb3284eb3010da5a777022 |
refs/heads/master | <repo_name>abdulhaseeb036/Promise-in-js<file_sep>/app.js
// simple js run syscrounusy means line by line
// var a = "haseeb";
// console.log(a);
// var b = "hassan";
// console.log(b);
//>>> simple line 4 print a and then b;
//<<< now let loop between them loop print 1000 number b/w a & b
// var a = "haseeb";
// co... | 410b9cc8ccc41f4151d05d359b5c5d27a9add8f9 | [
"JavaScript"
] | 1 | JavaScript | abdulhaseeb036/Promise-in-js | c86524fc405a714c5ffdbf065f37bd059b5740a0 | d26daa84fbddda86b4ee7aea09e9e9672a5df516 |
refs/heads/master | <file_sep># liri-node-app
Input:
$ node liri.js
twitter:
? What would you like to do? my-tweets
spotify:
? What would you like to do? spotify-this-song
? Which song? dust in the wind
omdb:
? What would you like to do? movie-this
? Which movie? titanic
read:
? What would you like to do? do-what-it-says
<file_sep>... | 2588d0cc8b29203511b32fcce6b6f7d9b89ba5e7 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bananaseo/liri-node-app | 0667b4b982c3d1d64a1494022d1ef135503852c9 | 723e251b4aa8359f9c8f97f625c3a9cf9729d50b |
refs/heads/master | <file_sep>/*
* PartsBasedDetectorOnVideo
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Chili lab, EPFL.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:... | 98dec71e5abd9f33f4966f2f94784828b81d29a0 | [
"Markdown",
"C",
"C++"
] | 11 | C++ | caomw/PartsBasedDetectorOnVideo | 0d19a662a2b705ca7854de45685b3a1b2d66d970 | b3c0c2486a83afc0b7be87d1adbd3b4385620e49 |
refs/heads/master | <file_sep># Gesture-based-Remote-Controlled-Smart-Wheel-Chair
# PROBLEM BEING ADDRESSED
The wheelchairs are usually controlled by a joystick attached to it. It is not possible to control the wheelchair remotely. It is not possible to provide maneuvering assistance if need be. We plan to implement remote maneuvering a... | fdbe042a717e0727d5bdefcf269c560eaa176a76 | [
"Markdown",
"C",
"Makefile"
] | 8 | Markdown | deep6000/Bt-Mesh-Gesture-based-Remote-Controlled-Smart-Wheel-Chair | add0ab4be0c6f6053d3f48f0e430f1e61fc89e3d | a45a9aaab165d1e7a15639cf10a658a6a2b5e583 |
refs/heads/master | <repo_name>zhenyi2697/dashboard-demo<file_sep>/webpack/loaders.js
var scripts = {
test: /\.tsx?$/,
loader: 'ts-loader'
};
var styles = {
test: /\.(css|less)$/,
loader: 'style!css!less'
};
module.exports = [
scripts,
styles
];<file_sep>/README.md
# Voice Dashboard Demo
## Environement setup
... | 2a8c95ba77065b73736465220d6b31d2f00a7626 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | zhenyi2697/dashboard-demo | b79059ae695b95d8dc65576123cd54b128fc2b40 | e5c1b4ace4f3827e640e323358a44c661705e9e6 |
refs/heads/master | <file_sep>import '@testing-library/jest-dom/extend-expect'
import { render, screen, fireEvent } from '@testing-library/react';
import Explorer, { SAT2BTC, Pager} from './Explorer';
import App from './App'
test('renders loading text', () => {
render(<Explorer />);
const linkElement = screen.getByText(/Loading.../i)... | 3bf7c30b63bfff1b5e4c2dfd21b1480cbabf880d | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | jimboyeah/abt-blocklet-demo | b86f94f158d4120037b70af6bbf138d14d4e3078 | 5fda5d9ce00e4d78daa5f9aed75d3921cd865889 |
refs/heads/master | <file_sep>`ifndef DEFINE_STATE
// This defines the states for BIST
typedef enum logic [3:0] {
S_IDLE,
S_START,
S_WRITE_CYCLE,
S_DELAY_1,
S_DELAY_2,
S_READ_CYCLE,
S_DELAY_3,
S_DELAY_4,
S_WRITE_CYCLE_2,
S_DELAY_5,
S_DELAY_6,
S_READ_CYCLE_2,
S_DELAY_7,
S_DELAY_8
} BIST_state_type;
par... | 87480f802b1ae59be27f289e9c547d38489b87c6 | [
"C"
] | 1 | C | mahmof4/3dq5-labs | c47d329ab2a290178c7676fd15b7104fafed0bf0 | 4b142dddb243d6659aa582046637a12f4031bf54 |
refs/heads/master | <file_sep>import os
#basedir = os.path.abspath(os.path.dirname(__file__))
USERNAME = ''
PASSWORD = ''
SERVER = ''
S_JQL = ''
<file_sep>from app import app
from jira.client import JIRA
from config import SERVER, USERNAME, PASSWORD, S_JQL
options = {
'server': str(SERVER)
}
jira = JIRA(options, basic_auth=(USERNA... | 30153e09f4e6d1cbc0e682680800ebcb0afb1291 | [
"Markdown",
"Python"
] | 5 | Python | cmgc/jira-watcher | 8317e20460e3fd091cb7f9037b321de575171368 | ba76fef7e98d039dc7f48a5b39cdef1048546e82 |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 3.4)
project(ARTOOLKIT_BOILERPLATE)
#if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# # OS X
# set(PLATFORM_CXX_FLAGS "-framework OpenGL")
#
#elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# # Linux
# set(PLATFORM_CXX_FLAGS "-lGL")
#endif()
find_package(OpenGL REQUIRED)
f... | a9f9478648c23979cb35a9568e90b8a025da96d6 | [
"C",
"CMake"
] | 2 | CMake | wallywyyoung/artoolkit_sdl_boilerplate | 17eca05c677def2dd6ce434616d97ed896f07d12 | 8b1afa8c96155d4949964e6d525fea625ef09642 |
refs/heads/main | <repo_name>angeloxenakis/mma-data-scraper<file_sep>/app/models/scraper.rb
require "nokogiri"
require "open-uri"
require "pry"
class Scraper
# letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
def scan_pages
lett... | 441d30ae69585e0cbfb0e4d75638fbc367b65f9b | [
"Ruby"
] | 2 | Ruby | angeloxenakis/mma-data-scraper | 54d6c80f0be6533e4c761224249adc3a6f657820 | a143d2faa1ab279bb0aa5399732b06ab8779a061 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
npm install -g batshit
# install test projects
for project in convention configuration; do
pushd "test/$project"
npm install
npm link
popd
done
<file_sep>#!/usr/bin/env bash
# This `bon` impersonates another `<script> ...` - the (node.js) implementation.
# The few extras are loc... | 14b0a9648e516c3dbbf1d47310ab3a4a6a0eb288 | [
"JavaScript",
"Markdown",
"Shell"
] | 11 | Shell | orlin/bon | 1c040b8c43af9e4d1b6aa97a7b4dc71534f63580 | 9c78b82cecde177cdb859a24e54db7f07c35d4f9 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import {Router} from '@angular/router';
import {UserService} from './user/user.service';
import {User} from './user/User';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
providers: [
UserServi... | 767d611f3178fb870a63fac617d0d2caa3720e59 | [
"TypeScript"
] | 4 | TypeScript | sabrinaeva/angular4.0 | f7cf947ec55d40a7e8f25503e4b4d798a1f9a405 | 7cbb21a2325061957fc11454dbf35cdc2e0b0e67 |
refs/heads/master | <repo_name>ITS-UofIowa/desmoines.uiowa.edu<file_sep>/modules/custom/dsm_common/dsm_common.features.field_instance.inc
<?php
/**
* @file
* dsm_common.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function dsm_common_field_default_field_instances() {
$field_instances = a... | bc483e676f6e720ad132651a8f429379a9b19853 | [
"PHP"
] | 1 | PHP | ITS-UofIowa/desmoines.uiowa.edu | 2b11f2f63854a5e8626c6323924a9a06a8bb2189 | 67e51830b7127ec3e5fe5bc1e7189ad8187190b3 |
refs/heads/master | <file_sep>export default [
{
time: "Winter 2018",
company: "flashback music",
description: "An Android app made during CSE 110 - an app that plays music downloaded from an online database and dynamically creates a flashback playlist based on friends and user's activity.",
skill: [... | 20d7a9f72e7f2938ebaff6a91806ef1560b3bae9 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | vdibs/vdibs | 64211c00a142be7d9880fb8d9f191cd3cd924df5 | f508d495a4acb6a3d7dbcd47d7760261650fbde2 |
refs/heads/master | <repo_name>nbiton/bugzilla-customisation<file_sep>/deploy.sh
#!/bin/bash
curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-v0.6.6 && chmod +x /usr/local/bin/ecs-cli
/usr/local/bin/ecs-cli configure -c master -p lmb-dev -r ap-southeast-1
test -f aws-env && source aws-env
envsubs... | 6c3f3e9867012ee4a099ff634e2e9562a4626bd1 | [
"Markdown",
"Makefile",
"YAML",
"Shell"
] | 6 | Shell | nbiton/bugzilla-customisation | b77dd99a2e6b6edc34497b020406d682ccc12536 | cd42c08f16dbd6fd67c67c15f6e41545a657a7a4 |
refs/heads/master | <file_sep>docker build -t jorge00alves/multi-client:latest -f ./client/Dockerfile ./client
docker build -t jorge00alves/multi-server:latest -f ./server/Dockerfile ./server
docker build -t jorge00alves/multi-worker:latest -f ./worker/Dockerfile ./worker
docker push jorge00alves/multi-client:latest
docker push jorge00al... | d026238d9522c809a53001b8efbf5ef264d00a3f | [
"Shell"
] | 1 | Shell | jorgealves1986/multi-k8s | 82d32e50cda7b6191c0ea6b5ce9493d4e94731a5 | d4aa7edd769c7bafa3df16ceed101f18622a52b5 |
refs/heads/master | <file_sep>class Item < ApplicationRecord
belongs_to :user
belongs_to :category
# belongs_to :brand
has_many :images
# has_many :comments
end
| 050581337c651c7e0316c3b0b753518a76d58d3f | [
"Ruby"
] | 1 | Ruby | aquarius25/mercari-38-weekend | 3b5bccb5147e886e09f9770a8048c8f3189b3607 | 027e4f0692fa56857b5003a8087b0929ad743b4c |
refs/heads/master | <repo_name>urbanambroz/ReactApp<file_sep>/src/App.js
import React, {Component} from 'react';
import {DrawerAppContent} from "@material/react-drawer";
import {TopAppBarFixedAdjust} from '@material/react-top-app-bar';
import MaterialIcon from '@material/react-material-icon';
import './App.css';
import 'popper.js';
import... | 3080f12147979aa7d637af1d35391dd08e80e067 | [
"JavaScript"
] | 8 | JavaScript | urbanambroz/ReactApp | 62d2dff27d78ba68e22d67dee8cd9390d0ec7b4d | 5cd659a048493d2ce18c114908dfc8e6692c8a75 |
refs/heads/master | <file_sep>var config = {};
config.consoleMode = true;
config.luis = {};
config.luis.appId = "";
config.luis.appKey = "";
config.api = {};
config.api.pkey = "pkey";
config.api.apiKey = "apiKey";
config.api.url = "apiUrl";
config.port = 9099;
module.exports = config;<file_sep>var builder = require('botbuilder');
var... | 84966e50e5a3032d8ca54b6801c534da65758ee9 | [
"JavaScript"
] | 4 | JavaScript | xmedved1/chatbot | 6b8c10731a1a8d3d2045c38deaaff6c242080082 | 669921e7b97083ecab36073cf277836d8d83f995 |
refs/heads/master | <repo_name>sgupt9999/apache<file_sep>/apache-rhce.sh
#!/bin/bash
#
# All the apache web server objectives for the RHCE exam
#
INSTALLPACKAGES="httpd firewalld openssl mod_ssl"
REMOVEPACKAGES="httpd httpd-tools"
PUBLICIP=172.16.31.10
PRIVATEIP=172.31.30.29
SERVER1="server1.myserver.com"
SERVER2="server2.myserver.com"
... | 1a1caebdd1539d9cee1f1fa123692c16a0df81c6 | [
"Markdown",
"Shell"
] | 5 | Shell | sgupt9999/apache | d18c560d1a43f18acd9d1adcce5a02aee921a220 | 92f5c322f48daa178e5470e90a2a49d59e92d0f7 |
refs/heads/master | <file_sep>package com.example.hp.musicplayerapp.MOdels
import android.app.Service
import android.content.ContentUris
import android.content.Intent
import android.media.AudioManager
import android.media.MediaPlayer
import android.os.Binder
import android.os.IBinder
import android.os.PowerManager
import android.util.Log... | 86807054d2e0c57bee157a7a0bbc6aefd3bca915 | [
"Kotlin"
] | 3 | Kotlin | michelebenvenuto/Laboratorio6 | 1c2e09a22472164861e1562c2b8a2229dfa4d813 | 6b60941ccfb20de7894e863f1a4a089c917fa129 |
refs/heads/master | <file_sep>import pygame
pygame.init()
win = pygame.display.set_mode((500,480))
pygame.display.set_caption("First Game")
path="J://personal github//Game//"
walkRight = [pygame.image.load(path+'R1.png'), pygame.image.load(path+'R2.png'), pygame.image.load(path+'R3.png'), pygame.image.load(path+'R4.png'), pygame.image.l... | dda100c6f5bc2dc58b18d4d1d290fc4dafcd29b0 | [
"Python"
] | 1 | Python | jennings1716/pygame | 2d10134a13d64fd5846ebdc1486fac1d19bc1b7f | 1e48a23dd57b19c9f0540a81315395d1fa92f6df |
refs/heads/master | <repo_name>romainreignier/lcov_badge_generator<file_sep>/README.md
# `lcov_badge_generator`

A badge generator for coverage report generated by [`lcov`](http://ltp.sourceforge.net/coverage/lcov.php).
## Example
;
const router = express.Router();
const User = require("../model/user");
const bcrypt = require("bcrypt");
const jwt = require("jsonwebtoken");
const multer = require("multer");
const checkAuth = require("../middleware/check-auth");
var userId;
var date= new Date;
var dateS... | dd0c2e989e8fbfb2d7d01a754a227b62f6d430c8 | [
"JavaScript",
"TypeScript"
] | 11 | JavaScript | Anmolk7/CORMS | 6b372eacc7e8da20906b4abaed6a5eb433c6ff93 | 6aaeca8917a7ff6f0738ee3b6f62dfbfca4a492d |
refs/heads/main | <file_sep>module.exports = (sequelize, Sequelize) => {
const CarPartOffice = sequelize.define('carPartOffice', {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true,
allowNull: false,
},
description: {
type: Sequelize.TEXT,
},
image: {
type: Seq... | 6494eb79b94520cf7056d833da7c00f7f564b0bd | [
"JavaScript",
"TypeScript",
"Markdown"
] | 57 | JavaScript | ilyalezhnev/CarServiceMaster | c69ace362663f19ef0adc502f54ad9ac463ee65e | f9e92b9b16ac00623e62098a2fc554055d78c496 |
refs/heads/master | <file_sep># $ python2 collectMeasures.py > outfile.txt
import mmap
import os
import sys
cwd = os.getcwd()
count = 1
collector = []
toSearch = "Measurement result summary"
for subdir, dirs, files in os.walk(cwd):
for file in files:
if file.endswith(".log"):
with open(file, 'rU') as fid:
f... | 446a4df90aa5f8316b05527ae083d4477c60f26b | [
"Python"
] | 2 | Python | finkenauer/circuit-reliability | 5e8394714c6d9e564958d835a67e524fa6c82141 | f70d8311239a64994463735d8da4f6d346d624ac |
refs/heads/main | <file_sep># Rename .env.example to .env once you have your API keys
SHOPIFY_API_KEY="YOUR_API_KEY_GOES_HERE"
SHOPIFY_API_SECRET_KEY="YOUR_API_SECRET_GOES_HERE"<file_sep># automate-envelopes
Automate envelope making!
<file_sep>import styles from './app.module.scss';
import Button from '@material-ui/core/Button';
expor... | 0b8dbaf1dafd9989d59c39c1aa88578a13bc56e7 | [
"Markdown",
"JavaScript",
"Shell"
] | 3 | Shell | leroywan/automate-envelopes | a3ad91865f94f565cbf3fbf97181e49ad053ffbb | fc2348428cbdd5972f1d6c9662728feeee9c4c47 |
refs/heads/master | <repo_name>Tushige/Glasses<file_sep>/src/containers/NavigationBar/NavigationBar.js
/*******************************************************************************
* @file NavigationBar.js
* Contains the component that describes the 'navigation bar' at the top of the
* page
**************************************... | 96cf8e2526ff0df3565d113e4a71730d8f488487 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | Tushige/Glasses | 3b74bd8b3e08606491a2fc3ee0ced0176dc257b4 | e38b974cc5c3fd0cd71b891ab2cc95b038c8611b |
refs/heads/master | <repo_name>loleg/PoetRNN<file_sep>/rnn/preprocessing.py
# coding: utf-8
import numpy as np
import csv
# some lists that are useful later
letter_distribution_en = np.array(
[.08167, .01492, .02782, .04253, .12702, .02228, .02015, .06094, .06966, .00153, .00772, .04025, .02406, .06749,
.07507, .01929, .00095, ... | e85cda4dbc21df30d1c0c2e86c9af9f5f3e4bceb | [
"Python"
] | 2 | Python | loleg/PoetRNN | ca1b68c61f02bb9c6b5abd15ed90ec3b17b29621 | aa49a84f25f4bb087818805a2074058039baa4ea |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Printing;
using System.IO;
namespace masterF
{
... | e6d3402b08992f74f3d0cd2cfe97e68c5269418e | [
"C#"
] | 3 | C# | RuEnHub/MasterFunction | 4b930e51f1e7cb8cc0876208b657e4267afb3da1 | 546711a2bb42ff90f1850f0865d86b8c79b6eede |
refs/heads/master | <file_sep># This repository has been archived.
hadoopbuild
===========
wrapper repo for hadoop builds.
<file_sep>#!/bin/sh -ex
# deal with the fuse artifacts to create a tarball
ALTISCALE_RELEASE=${ALTISCALE_RELEASE:-0.1.0}
tar -C ${WORKSPACE}/hadoop-common/hadoop-hdfs-project/hadoop-hdfs/target/native/main/native/f... | 840452b219fa102a79127c7786aa8918c45c765a | [
"Markdown",
"Shell"
] | 2 | Markdown | VertiPub/hadoopbuild | 95d4e7cc5f061ee558406989a240086da41a7aab | ad97c48d43866de5d74aaec2ec51767ee5232f21 |
refs/heads/master | <repo_name>llewok/Vikings<file_sep>/src/game/game.java
package game;
import org.newdawn.slick.*;
/**
* Created by bob on 6/08/15.
*/
public class game extends BasicGame {
Animation sheetRunning;
anim dude;
Map map;
public game()
{
super("Game");
}
public static void main(String[]... | d6c96712cb135417a386cb3fbd056269f454e742 | [
"Java"
] | 3 | Java | llewok/Vikings | a53508b1075d5c4777a543cde20d5ac1da9c5f19 | bde3d2a73dee846ae4d95a708e3a5e68f7f30a7a |
refs/heads/master | <file_sep>let test;
console.log(test);
function add(num1,num2) {
console.log(num1 + num2);
return
}
const result = add(32,4);
console.log(result);
function add(num1,num2) {
console.log(num1);
}
const result = add(3);
console.log(result);
const person = {name: '<NAME>',phone:354356};
console.log(pe... | 049770d78daf2786e9b2c1aeae29da018dc7464d | [
"JavaScript",
"C"
] | 5 | JavaScript | MdGolamMostafa/advanced-javaScript-practice | c902464b111efb5e6f818c23e00c6ca2dd5f4942 | 73472db3d7918ad034d6c6d28d2d9bc19c02e372 |
refs/heads/master | <repo_name>jkingsbery/agentsim<file_sep>/agent.py
from numpy import matrix
import random
class Agent:
def __init__(self):
self.quantity=random.randrange(10)
self.cash=random.randrange(100)
self.reservation_price=8
self.market_rate=10
self.cost_to_create=5
self.value... | 03549d8de51efac693658ab801db7864966d9d7e | [
"Python"
] | 1 | Python | jkingsbery/agentsim | ba13f870d28bae9686ccf5bb3422e6bbe841980c | fb57a71684b1622db471e1abe3a9ef1dc90189db |
refs/heads/master | <repo_name>NaryxHaxns/Jabberwocky-Sweeper-Project-1<file_sep>/README.md
# ~~Mine~~**Jabberwocky**-Sweeper

### A Lewis Carroll themed edition of the classic Minesweeper game.
______________________________________________________________________
## A Brief History
______... | 6b1f9a2b1b4bbb34cb469f612e2761642c7cc4f7 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | NaryxHaxns/Jabberwocky-Sweeper-Project-1 | e976635cc51a59fcebab9fb11158ecfab62f3189 | adc1db358e7e2c87ad837dc9795739b9048857a6 |
refs/heads/master | <file_sep>#ifndef TEXTONYMSLIB_H_INCLUDED
#define TEXTONYMSLIB_H_INCLUDED
using namespace std;
struct elemento {
string palavra;
string numero;
int textonyms;
};
//Cabezera das funçoes da biblioteca
int mostrarMenu();
bool finalizar();
void encherVetor(vector<elemento> &elementos, string nomeArquivo);
vo... | e59fcf1f821253a5cec4fab773d78eb3d031ed46 | [
"C++"
] | 3 | C++ | Thenasker/TEXTOMYMS | d7ac053e7e61399d385fb6caaf5a5f9ae97f4230 | 6f212200d6443d9a64a1bd4e3d0315db5db5502b |
refs/heads/main | <repo_name>Styro457/google-trends<file_sep>/index.js
import Express from "express";
import cors from "cors";
import { getAverageWordSearches } from "./google-trends.js";
const app = Express();
app.use(cors({
origin: '*'
}));
app.get("/average-word-search/:word", (req, res) => {
getAverageWordSearches(req.pa... | 05464358a5cf4dfd5d61b7262f58fe40a089fd04 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Styro457/google-trends | b3c802732903627bce68860f6ddf39c06cf92b03 | ff8816ef7c189351321773df4545c3e27bfbc5b7 |
refs/heads/main | <repo_name>tech-akash/Blood-Bank1<file_sep>/plasmaapp/migrations/0010_auto_20210812_2123.py
# Generated by Django 3.2.6 on 2021-08-12 21:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plasmaapp', '0009_auto_20210812_2117'),
]
operations = [... | 3d6e60fb66128fb712c3c35d66ff01c34649907f | [
"Python",
"HTML"
] | 21 | Python | tech-akash/Blood-Bank1 | 51e304fd8c3c9532e63b6efaa13a2974027374c8 | 45bcee1b0b2cdbe4415aea141c6364031e50ac36 |
refs/heads/master | <file_sep># Advanced Gatsby Wordpress ACF Starter
This is a bare-bones repository to help you get started building pages in gatsby in a component-like fashion with Wordpress using the Advanced Custom Field (ACF) plugin's Flexible Content field on multiple post types.
<br/>
Heavily inspired by <NAME>'s [gatsby-starter... | 0708443e6b10bede0ba40e93b03d6d7b19f2b316 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | kylesnod/gatsby-wp-acf-starter | 30ce8533f7619557ac71f7c7c30060d85bacb621 | 0239c0ccbc18878e261e81f2b557c58c9b38ffd4 |
refs/heads/master | <repo_name>Schrominger/spin1BEC<file_sep>/py-code/readme.md
## Hamiltonian of spin-1 BEC
$$
H = q*h_0 + \frac{c}{2N}h_2 + r*h_1
$$
- $h_0$:单粒子哈密顿量,这里取$h_0 = \hat N_1+\hat N_{-1}$;
- $h_2$:相互作用哈密顿量,这里取$h_2 = {\mathbf{\hat F}^2-2N}$;
- $h_1$:不同$F_z$-block之间的耦合哈密顿量,这里取 $h_1=\hat F_x$。
### 数态基:$|N_1,N_0,N_{-1}\rang... | ef7f10c7b11952b8dcc715074f2150442c0a3ea6 | [
"Markdown",
"Python"
] | 4 | Markdown | Schrominger/spin1BEC | d3398494215b1c9d8c2de059a6ba2702316fa2be | fa5e3ba7dd1567cff9310afe2770bf0889157d1b |
refs/heads/master | <file_sep>package com.example.demo.repository;
import com.example.demo.entity.Facture;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
impor... | 8b0213b3b1ceb577d97005588b3833bbc24d72e3 | [
"Java"
] | 1 | Java | guesmiIslem/PartieBackEnd | e1a367c5705c45cbad1c36f31a38aba041235cc3 | 58542618976ed5cab39ac74f37550ce97d7fa3a6 |
refs/heads/master | <repo_name>PapercraftTeam/Flash_Project<file_sep>/app/src/main/java/com/grieferpig/flash/whiteLightActivity.java
package com.grieferpig.flash;
import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.SeekBar;
import androidx.appcompat.... | 8c0e02f0e88fe893d23475501d81fcabb2fbb713 | [
"Markdown",
"Java"
] | 6 | Java | PapercraftTeam/Flash_Project | 9a0181e6cb23bebf256a57c3f26cba0a1a7d1b1d | 3abe264721b0f4cac41fb2aa5191c4950d22b1fe |
refs/heads/master | <file_sep>#quoridor projet 1
import argparse
import api
import pprint as pp
idul = 'donap1'
stade_jeu = {
"joueurs": [
{"nom": "idul", "murs": 7, "pos": [5, 5]},
{"nom": "automate", "murs": 3, "pos": [8, 6]}],
"murs": {
"horizontaux": [[4, 4], [2, 6], [3, 8], [5, 8], [7, 8]],
"verticaux": [[6, 2], [4, 4], [2, 6], [... | efc66d6579a0391dd39b458d745ebf355d7a48e6 | [
"Python"
] | 3 | Python | Dominic2222/quorridor | 55b83cb3f55ecc04cfe4c92b7c9dd619e1cd0dfe | b75cae682e6beed2f823f4f0430bb7cb0556bf96 |
refs/heads/master | <file_sep>import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.config.productionTip = false
new Vue({
router,
store,
re... | 653e1ab2d0698fd5dc7992ff21689550e75d7245 | [
"JavaScript"
] | 4 | JavaScript | Zheng-hs/ZHS | b8dfbff33d22ad7ebbbdf55a787e2db941d9d2eb | d404139b1ad7702c0ab9ca09b04d62a9c29c9087 |
refs/heads/master | <file_sep><?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
class Clientes extends Model
{
public static function getClientes()
{
$clientes = DB::table('clientes')
->join('situacoes', 'situacoes.id', '=', 'clientes.situacao')
->select('... | ac7d9ae26ce06e24bf05db9dff3c2dfcdf18f133 | [
"PHP"
] | 4 | PHP | alex1980alves/cmsL6 | 5dcbf020c2967ed71b7f572b3edd9fe58f715461 | 28b568dff87f29d85cf71b969fa1cde69fc47967 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Mail\TaskCheckout;
use Exception;
use Illuminate\Http\Request;
use App\Task;
use App\Student;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Mail;
use Symfony\Component\Finder\Exception\AccessDeniedException;
class TaskController extends Cont... | 2c030323d87fa8be3f71d60c3cedb5473713b467 | [
"PHP",
"Shell"
] | 6 | PHP | toshoatanasov/assignments | 4787bc75b68c720937f25cfbfeb8b223a1aa4958 | 5464346ab0eeecd2bbd94ef04e2e46d39f508f40 |
refs/heads/master | <file_sep>package helloworldsam;
public class HelloWorldSam {
public static void main(String[] args) {
}
public static void somethingFunny(){
System.out.println("How many ROman emperors does it take to run an Empire for a year? 5! XD");
}
}
| 9028e22ebca8e15adbe6d90e3f1515d4a1a02609 | [
"Java"
] | 1 | Java | SamB7201/Github-Collab-Sam | 055c020a422539f898955a9c3503d7d688bfbc59 | 065bc8b64a94df07058d91797649aee4bbd5e9fb |
refs/heads/master | <file_sep><?php
use Doctrine\ORM\Mapping as ORM;
/**
* Handler
*
* @ORM\Table(name="handler")
* @ORM\Entity
*/
class Handler
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer", nullable=true)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $... | 575d36cd50df5b1f7986554d16e39f4d3dc95811 | [
"Markdown",
"PHP",
"Shell"
] | 55 | PHP | missinglink/mongrel2-php | 28c87f9a0a05e9c837cb94b4c4af5d5a76278327 | 0da3ea4b1cc18bc1c7e4f5e4d3bb74e41bd2f20a |
refs/heads/master | <file_sep>#include "../log/Logger.h"
#include <iostream>
#include <vector>
#include <unordered_map>
//g++ -Wall -std=c++14 LogConfig.cpp -o testLogConfig
using namespace ign;
int main()
{
log::Logger logger;
logger.cfg.mode = log::Config::W_TIME | log::Config::W_TERM | log::Config::W_THREAD_ID;
logger.cfg.configu... | a29254e14543b1ed9b6c1b0c0d024d8609a2f7cb | [
"Markdown",
"C++"
] | 12 | C++ | Tassim/Ignis | 9981b06056789ac7d2c345de801010394da9492d | 390e3619c38635369d19729348179d460ecbbb22 |
refs/heads/master | <file_sep>/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*---------------------------------------------------------------... | 0c290adf1dce29f3996ef243b70dee6827de64ba | [
"Markdown",
"TypeScript"
] | 14 | TypeScript | imodeljs/react-hooks | 00e2fc8387bfd6e92c2b2a141a848468f6e5e7df | 27727e394d6b675703ba548fc9e1c565aab9a791 |
refs/heads/master | <repo_name>ashishmaurya/wholesale-ecommerce<file_sep>/content-product.php
<div class="product-item col-sm-12 col-md-4 col-lg-3 ">
<!-- <h3>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h3> -->
<?php the_post_thumbnail(); ?>
<h2>
<?p... | c1a6192c3f1143ef439c46116e6f16305e64a3e9 | [
"PHP"
] | 4 | PHP | ashishmaurya/wholesale-ecommerce | 5d8c25b64ecb2c02cb3fe0ba9cb550233ed54f2d | c3ec4365c0a50c84af64aeeb46cd247141a2f1a3 |
refs/heads/master | <repo_name>abhinavzspace/koa2-kickstarter<file_sep>/src/service/user.js
const users = [
'ava',
'boyd',
'raylan',
'winona',
];
export const getUsers = () => users;
| af570a054f342fe5c4c4741216543c08eb4cbb79 | [
"JavaScript"
] | 1 | JavaScript | abhinavzspace/koa2-kickstarter | 5dec2419f99809004020289b041103ae040704f3 | 4ff06b9dd413343de19d7cd1d8bdb6acee3e02fe |
refs/heads/master | <file_sep>#include<iostream>
#include<algorithm>
using namespace std;
bool binarySearchReacursive(int* array, int startIndex, int lastIndex, int element)
{
if(startIndex>lastIndex)
return false;
else
{
int mid=(startIndex+lastIndex)/2;
if(array[mid]==element)
return true;
else i... | f70f35fc1113f2462e1c9faba4a21379771f4bcf | [
"C++"
] | 1 | C++ | DDUC-CS-Sanjeet/binarysearch-alindsingh281 | ee2a06f2225ca2bc580a0d93d2c0df50ca1ec514 | f956d1a35c6526b61b4067618066b100c8f3694d |
refs/heads/master | <file_sep>var staticAssets = [
'/',
'style.css',
'script.js'
]
self.addEventListener("install", async event => {
const cache = await caches.open("news-static");
cache.addAll(staticAssets);
});
self.addEventListener("fetch", function() {
console.log("Fetch");
}); | 8b9b606587581dcc48cccf65450dd641bc0456cc | [
"JavaScript"
] | 1 | JavaScript | reachtokish/practicing-PWA | 56008c0ba82f5bf0d1b274ef8f37066ab1bdc0a0 | 64c5ee73a3fd02f0f8670bcb6f54960ba40c9ff0 |
refs/heads/master | <repo_name>bhavana0187/CompassFostering<file_sep>/Models/Policy.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompassFostering.Models
{
public enum PolicyStatus
{
/// <summary>
/// Policy start date is in the future
/// </... | f1f164444da1bf9701e3a5a88a884b1c64259762 | [
"C#"
] | 2 | C# | bhavana0187/CompassFostering | 24dc37a95a1073575ba2d3ab348e171c9bcb0413 | ac391958abad6fc6b4faa84b0252775a5ad1f8a3 |
refs/heads/master | <file_sep>Descrição:
Algoritmo genético para resolução do problema da mochila binária.
Passos do algoritmo:
1. Gera população P com N indivíduos
2. Avalia P
3. Seleciona os pais
4. Reprodução da nova geração
5. Processo de mutação
6. Volte ao passo 2
Definir:
- O cromossomo;
- O operador de crossover;
- O operador de... | 1c39d924c3beb5b080bd582a90f6e6ef2e92618b | [
"Markdown",
"Python"
] | 4 | Markdown | mat-marques/AlgoritmoGenetico_ProblemaDaMochila | 8affbc91929922d4888118d242a95af5b1b0d627 | 3b98c479cc9e450bad01ba1b2e0a5472215d8749 |
refs/heads/main | <repo_name>OuyKai/qlib<file_sep>/qlib/contrib/model/pytorch_ippe.py
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from __future__ import division
from __future__ import print_function
import numpy as np
import pandas as pd
import copy
import random
from .pytorch_utils import count_parameter... | a2e5856836d993c1a043dd38754d83d206d4dd34 | [
"Python"
] | 1 | Python | OuyKai/qlib | 2c22871217b00a9d4d507919e66f7590ac899a7d | aed2f25e113f8073ed32b450902e2d1cd3eecef2 |
refs/heads/master | <repo_name>rodrigoieh/MinkPhantomJSDriver<file_sep>/bin/run-tests.sh
#!/bin/bash
set -e
BIN_DIR=$(cd $(dirname $0); pwd)
start_browser_api(){
LOCAL_PHANTOMJS="${BIN_DIR}/phantomjs"
if [ -f ${LOCAL_PHANTOMJS} ]; then
${LOCAL_PHANTOMJS} --ssl-protocol=any --ignore-ssl-errors=true "$BIN_DIR/../vendor/jcalderonzu... | b029fb1e89162473455523489c4c2a956830ba2c | [
"Shell"
] | 1 | Shell | rodrigoieh/MinkPhantomJSDriver | 00f2a62e892609550e11b27f0670a64d4fdeadde | 38a4a7cf68f339da0899263cccf5d473f320e0a2 |
refs/heads/master | <repo_name>oliverh57/Vision<file_sep>/php/proxy/proxy-stream.php
<?php
$config = include(dirname(__DIR__, 2)."/setup/config.php");
$server = $_GET['server'];
$port = $_GET['port'];
if($_GET['auth'] == $config['auth'])
{
$url = "/"; // image url on server
set_time_limit(0);
$fp = fsockopen($server, $port, $e... | 7911db844a70b223188f07b9f285e8b785738def | [
"Markdown",
"PHP"
] | 6 | PHP | oliverh57/Vision | be7e94caf530c5cc108f25975cd7161b0097afc2 | ebbd536f183f759827b89f1ca75a0c9b6347d0c0 |
refs/heads/master | <file_sep>// Package conv implements conversion functions between basic data types.
package conv
import (
"errors"
"fmt"
"strconv"
)
var (
ErrUnknownType = errors.New("unknown type")
)
// ShouldInt64 converts the value into int64.
func ShouldInt64(v interface{}) (int64, error) {
switch v := v.(type) {
case str... | 38bb4eb7c70580e7e93757db150479483aaa2491 | [
"Go"
] | 2 | Go | onelrdm/conv | fb6cea39ce1d1c25ef952d742814b78633da1372 | 314946a200617325d99871ab1c19151e5ddffd09 |
refs/heads/master | <file_sep>require 'pry'
class CashRegister
attr_accessor :discount, :total, :list, :last_transaction
def initialize(discount = nil)
@total = 0
@discount = discount
@list = []
end
def add_item(title, price, quantity = 1)
@total += price * quantity
self.last_transaction = price * quan... | 8df601839d2056edeaf332a1e63376458d7454dd | [
"Ruby"
] | 1 | Ruby | d14a248/oo-cash-register-nyc-web-051418 | 48910723a5743a4887ca511f624480f7fd7361d6 | ec4a45b4cfe4d65a07c22381f28a6c09b80a32a7 |
refs/heads/master | <repo_name>oswystan/relayserver<file_sep>/x509.c
/*
**************************************************************************************
* Filename: x509.c
* Description: source file
*
* Version: 1.0
* Created: 2018-02-23 21:43:12
*
* Revision: initial draft;
**************... | cdcf22ba30326273ba67b8636640224313312956 | [
"Markdown",
"C",
"Makefile",
"C++"
] | 16 | C | oswystan/relayserver | 3428b7a8d6e533a22b440453e1b37356cf191c4f | b7bda69f0005cca82357d0e143d6572d9eff1aab |
refs/heads/master | <repo_name>Surajit98/trail-android<file_sep>/app/src/main/java/com/amalbit/animationongooglemap/U.kt
package com.amalbit.animationongooglemap
import android.util.Log
class U {
companion object {
@JvmStatic fun log(tag: String, msg: String) {
Log.d(tag, msg);
}
}
} | 265ace6b170989419b96e17c547d4f6f9da9de78 | [
"Kotlin"
] | 1 | Kotlin | Surajit98/trail-android | 14ec7338ffbba5eb38944344d9858552e77fe632 | e99113703820bf6c7060632a78aef979a8e42d25 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a grou... | e166014a706681c1146d18e182a5a64ff9fe8c13 | [
"Markdown",
"PHP"
] | 7 | PHP | Altazi-Hussein/nuitInfo | 3d95f97a3bb396a5d884c5732245e7578126b6f5 | dbb74176d7f12a9b08346df44d772070e3ac5370 |
refs/heads/master | <file_sep>#!/bin/bash
# script to adapt to the network config after the TC install
#
/opt/schoolserver/xsce/xsce-network
systemctl disable finish-install.service
<file_sep>#!/bin/sh
. /etc/xsce/xsce.env
cd $XSCE_DIR
# while we're here untrack local vars
git update-index --assume-unchanged vars/local_vars.yml
# get... | 38c65b4c3be3ffcd0c21bbdcc8274361b9fd9b54 | [
"Python",
"reStructuredText",
"Shell"
] | 14 | Shell | georgejhunt/installer | b054768fac29952467101b0cbfbb572c0b5c5ca9 | 3946545e4c348c788bbd16658161f69b22138ef3 |
refs/heads/master | <repo_name>wilsonalfonzo/routing<file_sep>/js/forms.js
//OpenLayers.ProxyHost = "proxy.cgi?url=";
var fields;
var trackingLayer;
var wfsurl;
var capaWfs;
var cols;
// WFS DISCAPACITADOS VARIABLES
var fieldsDiscapacitados;
var protDiscapacitados;
var dataDiscapacitados;
var colsDiscapacitados;
// WFS ALBERGUES VARIABL... | 9e79b909304f793d85d2a90ea2bbb23776598bb5 | [
"JavaScript",
"PHP"
] | 12 | JavaScript | wilsonalfonzo/routing | 405c30372508d264be7fbb0f5743dddd02d57a55 | af0e9fa79704f985b1ede5f4b02aebb39453739e |
refs/heads/master | <repo_name>z1059022306/ceshi4qi<file_sep>/cesi04_test_test_01/if_test_01.py
# 练习if语句
# if 语句 就是用来进行条件判断的
# if 要判断的条件:
# 条件成立时,要做的事情
# ……
"""
1.定义一个整数变量记录年龄
2.判断是否满 18 岁 (>=)
3.如果满 18 岁,允许进网吧嗨皮
"""
# 定义一个变量,记录年龄
per_age = 19
# 判断是否满18岁(>=)
if per_age >= 18:
# 如果满足这个条件就执行下面的语句
print("允许进入网吧嗨... | f52306ac83cdb75b4563fb4f2d1b70480a6a9f08 | [
"Python"
] | 8 | Python | z1059022306/ceshi4qi | d71af0fbba656512e8a6bb786cf3d8aa86dbc81a | 33e1b1e5944ca95204c433d8d62bb7875e3b73e6 |
refs/heads/master | <file_sep>s = input()
a = list(input().split())
f = int(0)
for i in a:
if s[0]==i[0] or s[1]==i[1]:
f=1
if f:
print("YES")
else:
print("NO")<file_sep>t = int(input())
s = input()
z = 0
n = 0
for i in s:
if i=='z':
z += 1
elif i=='n':
n += 1
for i in range(n):
print("1",en... | 1c6a7125c8ea024050045fb18a685daadcfbcb0f | [
"Markdown",
"Python",
"C++"
] | 252 | Python | HurayraIIT/competitive-programming | 3b9bc3066c70284cddab0f3e39ffc3e9cd59225f | 0e2f40cf1cae76129eac0cd8402b62165a6c29e4 |
refs/heads/master | <repo_name>hossamib/rrr<file_sep>/Assignments/rec4.js
require("./send");
//console.log(peo);
//console.log("hello");<file_sep>/Assignments/Assignments3.js
const fs = require('fs');
//Read file
fs.readFile('./documents/readnote.txt', (err, data) => {
if (err) {
console.log(err);
}
console.log(dat... | 4b98b4bd67d3aefcab0dc93360533d17f9a4613d | [
"JavaScript"
] | 4 | JavaScript | hossamib/rrr | e3b6f1f98e86a26def620ab2f0bbddfad5f6efcd | e330f35d59049f31fbaadd174382bd1e01c9eb5f |
refs/heads/master | <repo_name>Jonnay101/testWebServer<file_sep>/go.mod
module github.com/Jonnay101/testWebServer
go 1.13
require (
github.com/go-chi/chi v4.1.2+incompatible
github.com/labstack/echo v3.3.10+incompatible
github.com/labstack/echo/v4 v4.1.16
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
)
<file_sep... | 55f824a1b02a6f8abd1202ec6e0b63479aead743 | [
"Go",
"Go Module"
] | 2 | Go Module | Jonnay101/testWebServer | b69946b22d1a3664f57813ca844c35820c256f48 | 044e46624ba196084679e03d783d4963fe1e340a |
refs/heads/master | <file_sep>#!/usr/bin/env python3
#
# Copyright (c) 2016-2017, The OpenThread Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/li... | 1fccffad83a570bd459b1b077426db673568bb47 | [
"Python"
] | 1 | Python | DangZRQ/pyspinel | 02f38db1d2d79207eb66f9a689b0213d74ddd53a | a2fd9f6e28c87781d270f941613bf9d0eac6090d |
refs/heads/master | <file_sep>import React from 'react';
import {Button} from 'reactstrap';
const CustomButton = ({name, color, size, type}) => {
return (
<Button
type={type}
color={color}
size={size}
>
{name}
</Button>
)
}
export default CustomButton;<file_sep>import rootReducer from './... | b7194b49078e0adf509d0c60221d2247b290f57c | [
"JavaScript"
] | 18 | JavaScript | waqaarKeubik/react-saga | c5a2bb5ec9de70e8ff3f8023014eb237b80c206b | 6382ccc70bf217a9da11aef043783b2171269dac |
refs/heads/master | <file_sep>#ifndef DATA_SERVICE
#define DATA_SERVICE
#include "../config/configService.h"
#include <Arduino.h>
#include <ESP8266HTTPClient.h>
class DataService
{
private:
HTTPClient httpClient;
ConfigService configurationService;
public:
DataService(ConfigService configService);
int sendSenso... | 09c8056aac43706a1060608602a1670d7049d583 | [
"Markdown",
"C",
"C++"
] | 18 | C++ | lkiss/PlantManager_Endpoint_Wifi | 0989cb89e503d618f87778040daf03a7938a80db | 9dc4f9cc72b13106b29a780202750ff2c4a4770f |
refs/heads/main | <file_sep><?php
require_once("maincore.php");
require_once(BASEDIR.STYLE."tpl.start.php");
require_once("lea.core.php");
score_games();
if( session_check() == TRUE AND TRUE == db_get_data("active","lea_players","user_id",$_SESSION['userid']) AND check_int($_GET['id']) == TRUE )
{
if(@$_POST['send'] == "msg")
... | 812120c37d559e25f42d9e12de150ea90ee41e93 | [
"Markdown",
"SQL",
"PHP"
] | 52 | PHP | dgutkowski/cms-php5-closed | 7b2648890b45266bdce28865d0ec56391ec7a97d | 9fb341eb189ab2e4de7b6291e658457f465d1575 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.