branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/main | <repo_name>orkuntemiz/MetuISFever<file_sep>/predict.py
import tensorflow as tf
import tensorflow_hub as hub
import torch
from transformers import BartTokenizer, BartForConditionalGeneration
from transformers import AutoModelForQuestionAnswering, AutoTokenizer
torch_device = 'cuda'
QA_TOKENIZER = AutoTokenizer.from_pr... | ac80967681bb40f31e56b9e482efe8c833edb117 | [
"Markdown",
"Python"
] | 2 | Python | orkuntemiz/MetuISFever | c7f254a76ee1954472d900ce4e7205d6ebc3a46e | 4de011bcb5827f90c34165448db13ae13ef5f47c |
refs/heads/master | <repo_name>aahadpatel/search_engine<file_sep>/webpage.cpp
#include <iostream>
#include <string>
#include <cctype>
#include <set>
#include "webpage.h"
using namespace std;
Webpage::Webpage()
{
}
Webpage::~Webpage()
{
}
//making the string lowercase
string Webpage::lowerWord(string word)
{
string ret = "";
for(i... | 2eb9a67edbb18dc8e82e6f040f2bfb3fc4ad351d | [
"Markdown",
"Makefile",
"C++"
] | 10 | C++ | aahadpatel/search_engine | 65a9e585479b7c647f16d441d6f48fe04d199f16 | 93d04aadf4879b3b6c2c33b7a8957f90ded9c667 |
refs/heads/master | <repo_name>linuxlovr1/lunch_lady<file_sep>/lunch_lady.rb
# Basic Objectives:
# - user chooses from a list of main dishes
# - user chooses 2 side dish items
# - computer repeats users order
# - computer totals lunch items and displays total
# Bonus Objectives:
# - user can choose as many "add-on" items as they want bef... | 4005fa985da3395873879706f5e06c66df3aae55 | [
"Ruby"
] | 1 | Ruby | linuxlovr1/lunch_lady | 6478c6a3983d09fb8f9d0c762e3ce032bf62c072 | f892d0d1fa100bb783148e0bbdf1f4ca8a8f6b99 |
refs/heads/master | <repo_name>JanSimek/routing-homework<file_sep>/README.md
[](https://github.com/JanSimek/routing-homework/actions) [](https://codeb... | f7f01853354224cf720d6da993e17345cdade5cc | [
"Markdown",
"Java",
"INI"
] | 9 | Markdown | JanSimek/routing-homework | 28599b75fd1cf403fd2f0b7b19b0dc344e5590a0 | 7cdf58f4ae2f8426d367222950a0abb2dc1cd3fb |
refs/heads/main | <repo_name>smartprogrammer2/DictionaryOffline<file_sep>/components/Header.js
import * as React from 'react';
import {Component} from 'react';
import {Text, View, StyleSheet} from 'react-native';
class Header extends React.Component {
render() {
return (
<View>
<Text styl... | c54e19ad78bd5b20a36649e5c169a45e24168ae6 | [
"JavaScript"
] | 2 | JavaScript | smartprogrammer2/DictionaryOffline | ca007aa7ebd77a8fa8d8db03c241f5b6f3c0a02d | a97221d0e944acd2120333700e4af3ea52fa50ff |
refs/heads/master | <file_sep>$(function () {
var dateArrays = [
"2015.2.3", "2015.2.4", "2015.2.5", "2015.2.6", "2015.2.7", "2015.2.8",
"2015.2.9", "2015.2.10", "2015.2.11", "2015.2.12", "2015.2.13", "2015.2.14"
];
// console.log(dateArrays)
datePicker(dateArrays);
function datePicker(dateArrays) {
... | cb18be01ed576c30db57772c60943cef9d4e56ec | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | yuanzhaokang/date_brush | 065e2c929107a09e09ce13be0bdb8a71d916aea0 | a0e3d41c2ac6bd4355e099fa60d8c2db9b158ee3 |
refs/heads/master | <repo_name>webplantmedia/pinterest-rss-widget<file_sep>/pinterest-rss-widget.php
<?php
/*
Plugin Name: Pinterest RSS Widget
Plugin URI: http://www.bkmacdaddy.com/pinterest-rss-widget-a-wordpress-plugin-to-display-your-latest-pins/
Description: Display up to 25 of your latest Pinterest Pins in your sidebar. You are ... | a5ed9e8379771203d876da89947acaa8f49ed954 | [
"Text",
"PHP"
] | 2 | PHP | webplantmedia/pinterest-rss-widget | 2f2e26a2b35752a8752d66d163416cce47d38248 | c942c8633d2f5ed5bcfe278bc81f7d9efa660a5d |
refs/heads/master | <file_sep>name 'magento'
maintainer '<NAME>'
maintainer_email '<EMAIL>'
license 'GPLv3'
description 'Installs/Configures server software for Magento app'
long_description 'Installs/Configures server software for Magento app'
version '0.1.20'
depends 'vhost'
depends 'php_fpm'
de... | c41de411b7d3517331cc6f625c6e2d4bd45a2f87 | [
"Markdown",
"Ruby"
] | 34 | Ruby | EcomDev/chef-magento | be17e0ebc496cad44ea5ea18a0c0980cbf115721 | 019692166b75538c62d308a58c7494544a046da2 |
refs/heads/master | <repo_name>elauffenburger/oar<file_sep>/core/common/general.go
package common
import (
"math/rand"
"time"
)
var src = rand.New(rand.NewSource(time.Now().UnixNano()))
func GetRandomValue(list *[]string) string {
return (*list)[rand.Intn(len(*list))]
}
<file_sep>/test/test-can-convert-and-stream-to-sql.... | 170c9502867b9e63350027358203ee3afe602b6b | [
"Markdown",
"SQL",
"Go"
] | 15 | Go | elauffenburger/oar | 331ffc01278dd9c890959ef699f931278b8ee756 | aa31bb1a07396a794082ea642903c98ff8e40854 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
get 'topics/new'
get 'sessions/new'
root 'pages#index'
get 'pages/help'
get 'login', to: 'sessions#new'
post 'login', to: 'sessions#create'
delete 'logout', to: 'sessions#destroy'
resources :users
resources :topics
get 'favorites/index'... | f83fd5702380315cc604e1ee90dfb6134c5c5999 | [
"Ruby"
] | 2 | Ruby | mirutowa/pictgram | 2999c4e246db141a4d6f767fbc1da982772ab29f | a29b3a486343beac3896cff5c06177f5ccb79b50 |
refs/heads/master | <file_sep>def Bisectionmethod(x):
return (x**3)-(2*x**2)-4
a=2
b=3
print("Bisectionmethod")
for i in range(1,20):
x0=(a+b)/2
print(x0)
fx0=Bisectionmethod(x0)
fa=Bisectionmethod(a)
fb=Bisectionmethod(b)
if fa*fx0<0:
b=x0
else:
a=x0
| 47299d5adfa1e941549c75fc07a567b7c8e82264 | [
"Python"
] | 1 | Python | csebu/first-assignment-on-solution-of-equation-in-one-variable-IsratMili | 0748658696a929dcfd1ce2e7d1fd1e34f13c0d2e | fc59f7a4ca76a00c8f78eeccab886680d208f42c |
refs/heads/master | <repo_name>SudipBiswasRana/first_spring-mvc_sping-data_CRUD_using-Spring-Boot<file_sep>/simple-springmvc-crud-Springdata-jpa/src/main/java/com/rana/mvc/base/controllers/HomeController.java
package com.rana.mvc.base.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.an... | 977ec452e3a62894a821ac1471e5bbfca087229c | [
"Markdown",
"Java",
"INI"
] | 4 | Java | SudipBiswasRana/first_spring-mvc_sping-data_CRUD_using-Spring-Boot | 8e049b5242021b107919aaed35d195b76be75141 | 6afb1acd1ba15565cc1a04c6dd8246b47abddb87 |
refs/heads/master | <file_sep>#!/bin/bash/python
import os
def django_setup():
os.system('yum -y install python-pip')
os.system('pip install virtualenv')
os.system('pip install --upgrade pip')
os.system('mkdir /opt/django')
os.chdir('/opt/django')
os.system('sudo useradd jfernando_vazquez')
os.system('yum -y install epel-r... | 08507320c434f16c5ebbee489dcfb63d9c6308ab | [
"Markdown",
"Python"
] | 2 | Python | Fernvaz/Automatation_python_django | 2789482f20cf7d2fd218653b222b3d77eb659bbc | baa479691ddee01b8781c64e94b309925fe3dcc9 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerManager : MonoBehaviour
{
public float spd = 1f;
public GameObject manager;
Animator animator;
Vector3 currentEulerAngles;
Quaternion currentRotation;
public float jumpForce = ... | c46ef790086e86e739b35280c4229b4b37eb3e35 | [
"C#"
] | 3 | C# | isaacHuh/platformer | 6e8be745639a08f40e1d741ef10af05ac27e33b8 | eb6c6fa2eecf04b7a0ede935676110be7af726bf |
refs/heads/master | <repo_name>pineoc/BattleShipUnity<file_sep>/Assets/CS/SeaControler.cs
using UnityEngine;
using System.Collections;
public class SeaControler : MonoBehaviour {
public GameObject fogPrefab;
public GameObject firePrefab;
GameObject fog;
GameObject fire;
public int occpied; //현재 타일에 배가 있는지 검사할 때 ... | e35ccea728f5b441e75c340b1f511853e0c4e60e | [
"C#"
] | 3 | C# | pineoc/BattleShipUnity | 4758bbb16ff6a9b9639c94f14888bf8700dbe65a | 16245aaed4befdc2ba03e8ad3447f612d59a7ef3 |
refs/heads/master | <file_sep># Common Commands
alias q=’exit’
alias c=’clear’
alias h=’history’
alias cs=’clear;ls’
alias p=’cat’
alias pd=’pwd’
alias lsa=’ls -a’
alias lsl=’ls -l’
alias pd=’pwd’
alias t=’time’
alias k='kill'
alias null=’/dev/null’
# Directories
alias home='cd ~'
alias root='cd /'
alias dtop='cd ~/Desktop'
# Common pro... | 3d4c8694d15709bdbef2f0a2464f2813c97cd20a | [
"Shell"
] | 1 | Shell | KMH19/bashrc | 86d69f98656f91f74df1586f8d40479248979eb5 | bbe1db48f30ee57deccdf72ffd6ae702f6358421 |
refs/heads/master | <file_sep><?php
require"curl.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Movies</title>
<link rel="stylesheet" href="https://stackpath.boot... | 5c9d898310cfc08ddbdd6ba0ed29c8b79fb3298f | [
"Markdown",
"PHP"
] | 5 | PHP | karrarjasim/Movies | eaaafd19337fe139b85c202dd0b69631727c8f5e | d0771ae8bbacfa7a3fa8f09d3c8bf0f063c93b6b |
refs/heads/master | <repo_name>mateusmcg/poker-azure-devops<file_sep>/PokerAzureDevops/Util/Util.cs
using System;
using System.Collections.Generic;
using PokerAzureDevops.Enums;
using PokerAzureDevops.Model;
namespace PokerAzureDevops.Util
{
public static class Util
{
public static List<Carta> GetBaralho()
{
... | 0f12b8d12bc6ffaadd7683005bf2bf48bb0b6458 | [
"Markdown",
"C#"
] | 15 | C# | mateusmcg/poker-azure-devops | ad49e072166fa1bd44757dca3a648b2a91e4db8a | 87e29037ed5495c0361b15b2175f71fb4ffd55a8 |
refs/heads/master | <repo_name>gracepowell145/wr5_react-and-redux_review<file_sep>/src/Components/Header.js
import React from 'react';
function Header() {
return (
<header className='header'>
<h1>Mood Journal</h1>
<h4>"See how you deteriorate over time, in real time!"</h4>
</header>
)
}
ex... | fdd29017b8d76c0bf5287dd0ceda4e02aec275a4 | [
"JavaScript"
] | 2 | JavaScript | gracepowell145/wr5_react-and-redux_review | 1ba8bd71c4104f4f21d1d6191b4944ef3bafb420 | beab0913cea5093a006a55381fe2ed6e5acbba97 |
refs/heads/master | <repo_name>mhuang0711/health-farm<file_sep>/README.md
# health-farm
<file_sep>/story.js
$(document).ready(function(){
//menu
$(".menu").click(function(){
//if($('.menu').hasClass('open')) {
$("body").css("backgroundImage","url(home-menu.jpg)");
$(".story-page").css("display","none");
... | bdc012ae8159c696a899781e124b371d6cc1b1e7 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | mhuang0711/health-farm | 831e38a03bcd9ced79c84d932d3a418f0fd105c4 | a2a1f0306b46838c36569f38a393a3f4aa8af33a |
refs/heads/master | <repo_name>A1caida/matrix_sort<file_sep>/masiv s diog/masiv s diog.cpp
#include<iostream>
#include<stdlib.h>
#include<time.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
srand(time(NULL));
const int n = 5;
int** ar;
ar = new int* [n];
for (int i = 0; i < n; i++)
{
ar[i] = ... | 4cb85abbadaeda15385187a07ec1a30dc33c39c8 | [
"C++"
] | 1 | C++ | A1caida/matrix_sort | fb3895fc1a60428da011194e15abb29e57958b8d | 5acf82b55c3cba4c9bf961bce746456afd03081a |
refs/heads/master | <file_sep>class ChangeStartDateMeetings < ActiveRecord::Migration[5.0]
def change
change_column :meetings, :start_date, :datetime
change_column :meetings, :end_date, :datetime
end
end
<file_sep>class Person < ApplicationRecord
has_many :meeting
end
<file_sep>class Meeting < ApplicationRecord
belongs_to :per... | 7164d8e12256230fddebda9cadb6ef82e70ea520 | [
"Ruby"
] | 4 | Ruby | JackGerbert/SimonDoes | 9042be5fa2416ac0250079e152f94266cc0e0f96 | 0ecaba5a703078e6cc6f05a146eeea5ffa562fb5 |
refs/heads/main | <repo_name>Anhxinhtrai/case-md2<file_sep>/case-md2/App/Models/Category.php
<?php
namespace App\Model;
class Category extends Model
{
public function getCategory()
{
$sql= "SELECT category_id,categoriesName FROM categories";
$stmt=$this->conn->query($sql);
return $stmt->fetchAll();
... | a789f3100eebf542e944f7859f041a619cba2e2f | [
"SQL",
"PHP"
] | 21 | PHP | Anhxinhtrai/case-md2 | 522d5412eb46b4173c68245d65c0d3197e047a87 | 722cc246720e336886a21fc78408efb184c47e65 |
refs/heads/master | <file_sep>/*
* vrs_cv5.h
*
* Created on: 18. 10. 2016
* Author: P3k
*/
#ifndef VRS_CV5_H_
#define VRS_CV5_H_
#include "stm32l1xx.h"
void blikaj(uint16_t AD_value); //blikanie led
uint16_t nacitaj(void);
void adc_init(void); //inicializacia adc
void led(void); //inicializacia led
void adc_irq(vo... | 9bab123cc052de11099f29656768f815ccd6595f | [
"C"
] | 2 | C | qwer456/vrs_cv5 | a4228bf45a0cd635f6a0b5d23cc73a8148c92380 | dd91db0756541df27c7b1631f5c12ba265624f3d |
refs/heads/main | <repo_name>SeabassJames/Bird-and-Squirrel-The-Get-to-the-Goal-Puzzle-Game<file_sep>/src/sfoye-final-project/MyPathPlanner.cpp
#include "MyPathPlanner.h"
#include "MyGame.h"
#include <iostream>
#include <queue>
using namespace mathtool;
namespace GMUCS425
{
MyPathPlanner::MyPathPlanner(MyScene * scene, MyAgent * ag... | 4837297f31286cc536561bc5e6fd68825242d7bb | [
"Markdown",
"C++"
] | 3 | C++ | SeabassJames/Bird-and-Squirrel-The-Get-to-the-Goal-Puzzle-Game | 8dfc7669cb4d913354a5a9d5f5f9b5b744066aa4 | bc7d208c3f4f3d013bc7ab626a29f671d6525b8f |
refs/heads/master | <file_sep>const c1 = () => import(/* webpackChunkName: "page--src--templates--project-post-vue" */ "/Users/zhangziru/font-end/Gridsome-demo/my-gridsome-site/src/templates/ProjectPost.vue")
const c2 = () => import(/* webpackChunkName: "page--src--templates--journal-post-vue" */ "/Users/zhangziru/font-end/Gridsome-demo/m... | a686b38c3f2db38ef339c2f304c02848944276ee | [
"JavaScript"
] | 1 | JavaScript | Norazz/gridsome-blog | c8f0540ee9c1483e36e4c96a832cb6a30a26ea17 | 45171276b18f4f906dd1afc15b8b88a461c275ad |
refs/heads/master | <repo_name>Sevencloud0217/Login<file_sep>/boke/boke/bokeson/migrations/0002_auto_20190916_1000.py
# Generated by Django 2.2.1 on 2019-09-16 02:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bokeson', '0001_initial'),... | 9c818d6dc539239d0199bac02ec9ed762e02cf29 | [
"Python"
] | 14 | Python | Sevencloud0217/Login | ac8797b0fc3c230ae06399ee18b17b406009b2d9 | 86ee715919ac285aec0ef3c4edaad8e6c7898f1f |
refs/heads/master | <repo_name>janzenz/learning-redux<file_sep>/webpack.config.js
var webpack = require('webpack')
var path = require('path')
// Represent the directory path of the bundle file output
var BUILD_DIR = path.resolve(__dirname, 'public/assets/js/')
// Holds the directory path of the application codebase
var APP_DIR = path.res... | 46bf3c123b1de037cf2a2dc49f3f9fa7aa729c58 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | janzenz/learning-redux | c17e4717103f4cce7e3a23fe19cd64174bb79386 | 8c5bdf17b796d0299b9d1c4fe7fd4262f39f79a7 |
refs/heads/master | <file_sep>package golangexamples
import "github.com/ehteshamz/greetings"
// returns the contents of the slice concatenated together and separated by a dash (-).
func ConcatSlice(sliceToConcat []byte) string {
concatedString := ""
for i,elem := range sliceToConcat{
concatedString+=string(elem)
if i!=len(sli... | 5583765a4e31f68e045c1e0b482bd52d3f246a48 | [
"Go"
] | 1 | Go | mairafarooq97/golangexamples | abf88255d07b505a40029f636103d3650aceda71 | c3e2e74280a99a0f61fce41e4d9d75502ebc9ac0 |
refs/heads/master | <file_sep>#include "crash.h"
#include <complex.h>
#include <inttypes.h>
#include <stdio.h>
void enable_alignment_check(void);
typedef complex double cdbl;
int main(void) {
enable_alignment_check();
/* An overlay of complex values and bytes. */
union {
cdbl val[2];
unsigned char buf[sizeof(cdbl[2])];
... | 92d4507e0be8d5316c3a7824bc6de1da3d8cda42 | [
"C",
"Makefile"
] | 129 | C | zeroed/pebbles | becb02c21d7e2338a82ab3a6c72e72d69fec5b6f | 7fc449cbff8cfd55a8efdcca5e60069952b3804b |
refs/heads/master | <file_sep>\name{distlist}
\alias{distlist}
\title{Compute distance lists on the CShapes dataset}
\description{
This function computes a distance list for the given date.
It selects all the active CShapes polygons, determines their distances and
outputs a distance list. A distance list is a list of dyads of coun... | a06c6b75026c1f78ffaf4f7d6410bfa0340beea5 | [
"R"
] | 7 | R | thereseanders/cshapes | 623b3f94dd3d6e554d8a4b526295a9d8cc625856 | e4c8d8917a381f5b6e1a4e0ff000065d94c7f57e |
refs/heads/main | <file_sep>import copy
#dictionary format: [usability per weight index (initially 0), needed parts, weight in grams (initially), usability]
products = {"Notebook Office 13": [0, 205, 2451, 40],
"Notebook Office 14": [0, 420, 2978, 35],
"Notebook outdoor": [0, 450, 3625, 80],
"Mob... | d62a61a9d529bc0236d98f7353c9a5b7d70dd251 | [
"Markdown",
"Python"
] | 2 | Python | MoritzKraus/getinitBWI | 145479a46f5f1d763348f1d2040662077dd8f4f8 | 0fc37e62976f0a2c6f86c0f30c905f0aa2a2e5ed |
refs/heads/master | <repo_name>vishalsinghji/visitorbackened<file_sep>/models/postMessage.js
import mongoose from 'mongoose';
const postSchema = mongoose.Schema({
phone: Number,
purpose: String,
name: String,
address: String,
selectedFile: String,
createdAt: {
type: Date,
default: new Date(),
}... | 7eb6c32b723154b61cf8d025116e6e6cfd4ac560 | [
"JavaScript"
] | 1 | JavaScript | vishalsinghji/visitorbackened | df62634de9d01658481795a3d8396fa9f2fdb8bb | 63ed4bbd61ac416f969f783a54cab4934bf0524d |
refs/heads/master | <file_sep>function makeRequest(urlEndpoint, func) {
let request = new XMLHttpRequest();
let jsonObj = null, obj = null;
request.onload = function() {
if (this.responseText) {
jsonObj = this.responseText;
obj = JSON.parse(jsonObj);
func(obj);
} else {
... | af30f0a475c1e47fda1acf58f815eff5855c9ad8 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Chondan/MovieReviewFromSTUDIO-GHIBLI-API | c28e3346330a3f86a3461ef1430750dab8b99be4 | 82da5e43660454801d66d1eae361851d7f18dabd |
refs/heads/master | <file_sep>#!/bin/bash
for file in $(ls *.js *.css *.json); do
MD5=`md5sum $file|awk '{ print $1 }'`
sed -i -e "s/\(.*$file?md5=\)\w*\"/\1$MD5\"/" index.htm
done
<file_sep>"use strict";
var _Utils = require("./utils.js");
var _Drawer = require("./draw.js");
var _Actions = require("./actions.js");
var _SecretActions =... | 2ecdd41e74bf2e26e3a4dfdf489990545ceac955 | [
"JavaScript",
"Markdown",
"Makefile",
"Dockerfile",
"Shell"
] | 21 | Shell | SiTLar/pyt-vanilla-html | 5a98035057a6b02a1c0fdc4d5799709bac66d6b6 | 07e48bad24c6fdcf5c8a3b8b84a80bb5b319b8a7 |
refs/heads/master | <file_sep>#Analysis of Culex fitness by vertebrate blood host
#June 11, 2018
#<NAME> and <NAME>
library(lme4)
#use setwd() to set your working directory
Exp1_data <- read.csv("~/Desktop/Mervin-Culex_Fitness_by_Blood/data/Exp1_Host_Blood_Fitness_Study_Replicates.csv", header = T)
#adding column for number eggs per f... | 761b1dcc8ac529f658a50e906a8f562a61013df2 | [
"Markdown",
"R",
"RMarkdown"
] | 5 | R | mcadamme/Culex_Fitness_By_Blood | 88c4edb2bc5892db37c97bff86676ac69b5717ac | 5a360be9b8cb8252151861d4a7e591ca5e82667f |
refs/heads/master | <repo_name>oyvind-kjerland/Fellespro25<file_sep>/ktn2/TODO.txt
-Chat backlog fungerer ikke
- norske tegn
- logout
- Sjekk at brukernavn har godkjente tegn<file_sep>/README.md
Fellespro25
===========
Fellesprosjekt for gruppe 25
<file_sep>/ktn2/server.py
# -*- coding: utf-8 -*-
import SocketServer
import socket
import ... | 9269b5baabd68875b5ee651b6eb4a15822f4f82b | [
"Markdown",
"SQL",
"Python",
"Text"
] | 8 | Text | oyvind-kjerland/Fellespro25 | 76af1694bafd276fac4b603d9d12224e8a5fdf28 | adbf1f7307b842e70a303b0cce0a204705f75452 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
namespace ExcelWorld
{
public partial class Ribbon1
{
public Form1 form1;
private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
{
}
... | d4625b5800905c40b6906ef5fd77c57af7e997f8 | [
"C#"
] | 1 | C# | nrapmed/ExcelWorld | f1f95fbe1dc5aefc23b59c58aae974db7293d36d | 5efb576e7f4835ab18c9d69354c8eb86a7f79483 |
refs/heads/master | <repo_name>Kyryn/MultiColorSTL2<file_sep>/js/stl.js
var container = document.getElementById('container');
var W = 500, H = 400;
// window.innerWidth, window.innerHeight ;
var scene = new THREE.Scene();
scene.background = new THREE.Color(0xEEEEEE);
var camera = new THREE.PerspectiveCamera(75, W / H, 1, 1000);
// ... | f19b55708bca22c8815a829edf2116ba7b35ca9c | [
"JavaScript"
] | 2 | JavaScript | Kyryn/MultiColorSTL2 | 3c0bf7082e79f6952d12b778e1303b66bd0dcb68 | 26b03677ef79068eb61933eaf9a34c1b9487871d |
refs/heads/master | <repo_name>coolxx/zhentiyidong<file_sep>/js/index.js
$(function(){
if($(window).width()<720){
(function (win,doc){
function change(){
doc.documentElement.style.fontSize=20*doc.documentElement.clientWidth/360+'px';
}
change();
win.addEventListener('resize',change,false);
})(window,document);
... | 5ff798871d1a7b4e4149a2673948f268c54f3b96 | [
"JavaScript"
] | 1 | JavaScript | coolxx/zhentiyidong | 0ab54e7e7db1a73b55fd4ca68e13a7c0a114f31e | 68c3042155ae0824f417deac7c61a5c23a7362b8 |
refs/heads/master | <file_sep>package com.mipl.rxandroiddemo.activity;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.mipl.rxandroiddemo.MainActivity;
impo... | 56962488d1c58740e4521bcc428a0d9bd6e56dee | [
"Java"
] | 1 | Java | ranasaha1212/RxJava-RxAndroid-Demo | aa95370d48a250a605a126c5f5dc64288d2594c6 | dd891ccabeaa0cd10d38d4c70f3308359fd5908b |
refs/heads/master | <file_sep>package com.vanniktech.rxriddles
import com.vanniktech.rxriddles.solutions.Riddle12Solution
import com.vanniktech.rxriddles.tools.RxRule
import io.reactivex.Observable
import org.assertj.core.api.Assertions.assertThat
import org.junit.Rule
import org.junit.Test
import java.util.concurrent.TimeUnit
import jav... | b8c11b3fbe5e151d1ffddcdf31ba4bd1e9a271fd | [
"Kotlin"
] | 6 | Kotlin | mbachorski/RxRiddles | 62f1f4a18a9a8282d2cd7a8c4b4d44c22ce2aea9 | 102c0501848a74127f3c7b3d5ea773f75807753c |
refs/heads/master | <repo_name>hwanderlust/js-beatles-loops-lab-bootcamp-prep-000<file_sep>/index.js
function theBeatlesPlay(musicians,instruments) {
var a = [];
var b = musicians.length
var i;
for (i = 0; i < b; i++) {
a.push(musicians[i] +" plays " + instruments[i]);
}
return a;
}
function johnLennonFacts(facts) {
... | 192de58bf711da40735da216bcf3cf69d2485f2c | [
"JavaScript"
] | 1 | JavaScript | hwanderlust/js-beatles-loops-lab-bootcamp-prep-000 | 590a1f5c08404d9f68979d9bdcbb7f364cce8bef | 9f18fb5c363218db839865d6a032c1739c5e8b59 |
refs/heads/main | <file_sep>"""
SPT_TOOL
@author <NAME>
ITQB-UNL BCB 2021
"""
import math
import xml.etree.ElementTree as ET
from Analysis import *
from matplotlib import pyplot as plt
class TrackV2:
def __init__(self, im, x, y, samplerate, name, ellipse=None):
# Raw data
self.imageobject = im
self.x =... | 06f9c93666721b57730c29cc78d70d1388f75ab9 | [
"Markdown",
"Python",
"Text"
] | 13 | Python | antmsbrito/SPT_Tool | c9aff669692312c807f2fb09d6ba316ab9d26709 | 3503e194264d727893bd189968cd8bd79a4f4989 |
refs/heads/master | <repo_name>novas-meng/fastserializer<file_sep>/src/serializer/intSerializer.java
package serializer;
import novasIo.Output;
/**
* Created by novas on 16/2/28.
*/
public class intSerializer
{
//从字节数组中读取基本信息,返回
//写int数组的时候,首先写入1,表示基本类型,2表示不是基本类型
//然后写入基本类型的索引,比如1表示int
//然后写入名称长度,名称,最后是值
public st... | ac16af7a1eb2595f0b144b75b918e6a44d1584ce | [
"Java"
] | 5 | Java | novas-meng/fastserializer | e9e1fdd8ffca4f6de8d2df3a0c8b3f4302203da7 | 556f615e55571c734b179ce41f66bc1b85404d0d |
refs/heads/master | <repo_name>akbarbmirza/hws-whitehouse-petitions<file_sep>/README.md
# hws-whitehouse-petitions
Project 7: Whitehouse Petitions from Hacking with Swift
<file_sep>/Whitehouse Petitions/Controllers/ViewController.swift
//
// ViewController.swift
// Whitehouse Petitions
//
// Created by <NAME> on 6/14/17.
// Copyright ... | 044baf2cdc815d474567a1429e86ef011934a879 | [
"Markdown",
"Swift"
] | 2 | Markdown | akbarbmirza/hws-whitehouse-petitions | 4ba79baa1ba51b932ef71f67db1300088e7638e9 | 7a4b6b607319085808efa8e6800f5dd60247ccf7 |
refs/heads/master | <file_sep>public class ListItem {
String text;
String path; // For media files and directories
boolean isDirectory;
public ListItem( String text, boolean isDirectory ) {
this.text = text;
this.isDirectory = isDirectory;
}
public String getText() {
return text;
}
public void setText( String... | 466ac891934069b57e893b128b7bad07dd996da3 | [
"Java",
"Shell"
] | 10 | Java | jeffrego/mhhtpc | 7e4bf7438516eccfb8bfb62e8fa8e26a31bbacf1 | 0fcf81b5c914e0b5b317dab6a6a7ae763761f571 |
refs/heads/master | <file_sep>API Reference
=============
The following is a full listing and description of the modules and functions
within the Valuehorizon Forex App for your API usage:
.. automodule:: forex.models
:members:
<file_sep>.. Valuehorizon Forex documentation master file, created by
sphinx-quickstart on Tue May 2... | 4de7bd4bac917eacae0ed49ace8bff59668039fa | [
"Python",
"reStructuredText",
"INI"
] | 17 | reStructuredText | Valuehorizon/forex | e921379ae6c9d07ddad87a1fd3b5bb8fdfc74cb8 | 4492cef009ca22461a08582baa91848e6847357a |
refs/heads/master | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_operator_non_member.cpp :+: :+... | be97084bed5208c25dcda55e0e768c2722985d72 | [
"Markdown",
"C++"
] | 37 | C++ | Jean-xavierr/42Ft_containers | f156709dc39aa9bf332131a7c226c85cbecd5f10 | 59650fa6fc04c918a42c51fc735ff10d3a44c286 |
refs/heads/main | <repo_name>enderfree/alg<file_sep>/if_while/if_while10.c
#include<stdio.h>
int main()
{
int var;
int numberOfOdd = 0;
int numberOfEven = 0;
int sumOfOdd = 0;
int sumOfEven = 0;
char yesOrNo;
do{
printf("Do you want to enter an integer? (Y 0r N)\n");
scanf("%c", &yesOrNo);... | 4812c223638cd8a3ae76e5d6bada509ae83580d4 | [
"C"
] | 22 | C | enderfree/alg | 01d425ce5dd2d3c172b5e0bc9ceb305c4e31af58 | 046b59ecc680efb3c4fbb04c6886f225287e4bcd |
refs/heads/master | <file_sep>package com.priyam.spring;/**
* Created by dni_tahniat on 24/1/2017.
*/
import com.priyam.spring.entity.Student;
import com.priyam.spring.repository.StudentRepo;
import com.priyam.spring.service.IStudentService;
import com.priyam.spring.service.StudentServiceImpl;
import org.junit.Before;
import org.junit.... | a27f498378c8bab6782c5132c78373f4d3ececea | [
"Markdown",
"Java"
] | 6 | Java | tahniat-ashraf/StudentCourseRegistration-SpringBoot-OracleDB | bd0a197e5ce526445a7272546450a3e47909ef25 | 34f2f12296ea49f6934c3160b7c7090365085dce |
refs/heads/master | <repo_name>maleowy/CodeJamRunner<file_sep>/CodeJamRunner/Enums/ProblemEnum.cs
namespace CodeJamRunner.Enums
{
public enum ProblemEnum
{
A,
B,
C,
D,
E
}
}
<file_sep>/CodeJamRunner/Program.cs
using System;
using System.IO;
using CodeJamRunner.Enums;
namespace CodeJamRunner
{
class MainClass
{
public st... | 45a951cd529aae7728a9d9e2f16603dbb2a6d27d | [
"Markdown",
"C#"
] | 8 | C# | maleowy/CodeJamRunner | acfcd485202c2c5510aa3e79dd59319ae732dd77 | 66d393d1ef3d60e498f8d1badd62ae533ed04509 |
refs/heads/master | <file_sep>using NUnit.Framework;
using System.Dynamic;
using Lib.Extensions;
namespace LibTests.Extensions
{
[TestFixture]
public class ExpandoExtensionsTests
{
[Test]
public void HasProperty_should_return_true_if_object_has_property()
{
dynamic foo = new Exp... | 7267df3974fbf79e7f6bbcab5cc6c985903be630 | [
"C#"
] | 30 | C# | Somnid/cs-lib | 17a36bd6f20f50c8d156cb20c744348459f4f915 | e697559b4b326ac32b2a785d9602d9bd58d3a331 |
refs/heads/master | <file_sep>#!/bin/bash
# mp's todo checklist
# Run ./todo.sh to find your unfinished business!
# It basically just greps all the .c, .h, and makefile files in the current
# the directory it's in for the phrase "todo" and formats the output nicely.
# (as per the frankly disturbing amount of regex used)
echo -e "... | d1db15c159b92571b229d162bec38f89ecce129b | [
"Shell"
] | 1 | Shell | mpowelltech/CSSE2310 | 6521c9a6885d808f2552c7784eb3b688c2b98425 | 7ead8511604c6e18ba9cc80448aaa6a54cd2b45f |
refs/heads/master | <file_sep><?php
session_start();
$email=$_POST["email"];
$password=$_POST["pass"];
$mysqli=new mysqli("localhost","shashank","shasha2777","web");
$sql="SELECT * FROM signup WHERE email='$email' AND password='$password'";
$result=mysqli_query($mysqli,$sql);
if (mysqli_num_rows($result) > 0) {
// output data of each... | 4d797fca486e7a1dd5364f79a4251b976b6a364d | [
"Markdown",
"PHP"
] | 5 | PHP | ShashankBongale/Buzzgames | 6302561f1351a98ffb9fa0af1e47ebf21252ab4f | e10e4be428e105a22661e237a96e95b97e1b28e8 |
refs/heads/master | <file_sep>package com.james.jettydemo;
import org.eclipse.jetty.server.Server;
public class SimplestServer {
private static void startServer(){
Server server = new Server(8080);
server.setHandler(new HelloHandler());
try {
server.start();
server.join();
} catch (Exception e) {
e.printStackTrace();... | 4625cc437971acabde6a86efe630e85efd0ba23d | [
"Java"
] | 1 | Java | jameszkw/loadbalancer | f9912de2adf550abcb76da1950dbc175d2dfdc78 | 5934a525aba5e49b33eef214f808f6544d3186de |
refs/heads/master | <repo_name>matuszed/Atlas<file_sep>/Atlas.py
import json
import time
import time,hmac,base64,hashlib,urllib,urllib2,json
from hashlib import sha256
from decimal import Decimal
import datetime
import sys
import os
import httplib
import requests
#Adapted from Gox Class
class AtlasClient:
timeout = 15
tryout = 0
def ... | 6e617410e477a15a165ac46c603685c07146574d | [
"Python"
] | 1 | Python | matuszed/Atlas | 6494e58abe0d4a8c6ed8628582be86d855c3f53f | 68860a42179e02cf42c25267cef44392a95b00b1 |
refs/heads/main | <file_sep>:plugin: kv
:type: filter
///////////////////////////////////////////
START - GENERATED VARIABLES, DO NOT EDIT!
///////////////////////////////////////////
:version: %VERSION%
:release_date: %RELEASE_DATE%
:changelog_url: %CHANGELOG_URL%
:include_path: ../../../../logstash/docs/include
//////////////////////... | 0c8dd5c3ec06b7043c12670bfa0b2316526002fa | [
"Markdown",
"Ruby",
"AsciiDoc"
] | 4 | AsciiDoc | logstash-plugins/logstash-filter-kv | cdabd65486c0b9a3fc16207bfb385d48a0d1a9a7 | 945ebc4978c16286df9ce15b1cf02b3863eb14b8 |
refs/heads/master | <repo_name>Jaycar-Electronics/Wall-Dodging-Robot<file_sep>/robotCode/robotCode.ino
// Wall Doding robot code
// <NAME> 2020
#include <AFMotor.h>
const int ldr_pin = A5;
const int trigger_pin = A2;
const int echo_pin = A3;
const int light_threshold = 700;
const int sonar_threshold = 200;
AF_DCMotor left_motor(4);
AF... | 282f644c65234bccd1ec8b377f1ef044b83ccbfa | [
"Markdown",
"C++"
] | 3 | C++ | Jaycar-Electronics/Wall-Dodging-Robot | 02604fcd1d58aae902fe3fcd0dcefca24a0a5d2a | 2029e61029e136680a80b1a53fdf1d8c0ecfe157 |
refs/heads/master | <repo_name>andrewvora/horokov<file_sep>/scripts/main.js
var sentenceSize = 10;
var numSentenceOffset = Math.floor(sentenceSize/3 + Math.pow(-1, 0.5 - Math.random()));
var numSentences = Math.floor(sentenceSize/2) + Math.floor(sentenceSize*Math.random());
numSentences = numSentences < 3 ? numSentences : 3;
var SetHoro... | a5de40f27479fe290b647f144b4aab626dd8e8ee | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | andrewvora/horokov | 0f7b539bdfc88bc0f66f6d587621b7f5193e6580 | aa2a3706da66e6974f8a2f0a46032731b251e916 |
refs/heads/master | <repo_name>LaoDie1/godot_vector_graphics<file_sep>/README.md
Vector Graphics for Godot.
* This is an experiment
* It's written in C++ 11, so it's editor-only
* All vector graphics can be converted into `MeshInstance2D`s
* I have very little time to work on this
Live Demo:
https://www.youtube.com/watch?v=EsTSf5dytbs&... | a722267c983fd6ec736514c3ab6d25e81d11ecc3 | [
"Markdown",
"Python"
] | 3 | Markdown | LaoDie1/godot_vector_graphics | bf8c8702ea83e9746b5b23c813ca3b710bca46bc | d5560b52d0361756b910a5db4e9a352e5630f4e1 |
refs/heads/master | <repo_name>SiddharthShukla547/Login<file_sep>/src/app/login/login.component.ts
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms'
import { Router } from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',... | 6e00ef0d366069c86644fd820ca24e17304bc7d0 | [
"TypeScript"
] | 1 | TypeScript | SiddharthShukla547/Login | f659ee2ad4b8afbb13d5067f4c7f6547cae84c5e | b6c7eb774f41ab647bd22cad1138fa11305835ed |
refs/heads/master | <file_sep>#!/usr/bin/env bash
pip3 install virtualenv
<file_sep># config
### Prerequisites
* Clone this repo to `~/git/config`
* Install `xcode`
### Usage
To set up everything from scratch, run the following:
```
cd ~/git/config/utils
./do_everything.sh
```
To periodically update homebrew, run this from the term... | 0795d81c37fcd1cb554f132ec28db940fc7ede13 | [
"Markdown",
"Shell"
] | 11 | Shell | schana/config | f46a872b0ceec49d735791a1ff599cb58aedb78a | 48e357368eca9542bc34ca869b2763ab12ce3cba |
refs/heads/master | <repo_name>gortazar/master-data-science-cloud-architectures<file_sep>/README.md
# master-data-science-cloud-architectures
Reources for Cloud Architectures in Master Data Science at URJC
<file_sep>/hadoop/hadoopuser-install.sh
#!/bin/bash
HADOOP_ROL=$1
HADOOP_MASTER_IP=$2
HADOOP_SLAVE_IP=$3
if [ "$HADOOP_ROL" = "maste... | 2e8228a46cab32327420bccfac58c3d82d97f576 | [
"Markdown",
"Shell"
] | 3 | Markdown | gortazar/master-data-science-cloud-architectures | 174f8c7d805547532bca9bc8f947514eb2905653 | 6da70dc9c5d4d6d5546acbd33d066b8bb4ad70d2 |
refs/heads/master | <repo_name>hwangJi-dev/project2<file_sep>/diaryProject/diaryProject/Sources/FriendsData.swift
//
// FriendsData.swift
// diaryProject
//
// Created by 황지은 on 2020/07/05.
// Copyright © 2020 황지은. All rights reserved.
//
import UIKit
class FriendsData: NSObject {
var userid: String = ""
var passwd: Str... | 7dd5b2fb0e274ab202c98ca3127ed6c610918f7e | [
"Swift",
"Markdown"
] | 13 | Swift | hwangJi-dev/project2 | b2872b787aafba75746ad161f6049108f6639ecb | cb023da0e974a4652c9f2893de99086b9cbd735a |
refs/heads/master | <file_sep>post '/issue_statuses/update_issue_closed' => 'issue_statuses#update_issue_closed'<file_sep>require 'redmine'
require 'rubygems'
require 'delayed_job'
require File.dirname(__FILE__) + '/lib/issue_closed.rb'
Redmine::Plugin.register :redmine_issue_closed do
name 'Redmine Issue Closed plugin'
author 'Eque... | c513d9f25a6a956871a2c3b3415c68855886036d | [
"RDoc",
"Ruby"
] | 6 | Ruby | SnowdogApps/redmine_issue_closed | 049e76c6bf31abe3ab7892cc79e9491c1b48421f | f0a3ce0a5a2f472b7bcb96148e1f1cab1512dbe3 |
refs/heads/master | <repo_name>Godfrey1989/JXC<file_sep>/src/main/java/com/gtt/repository/UserRepository.java
package com.gtt.repository;
import com.gtt.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.r... | c638aad4d9cd15acf80051bc9131c0997e27890b | [
"Java"
] | 5 | Java | Godfrey1989/JXC | 898d612d9e4c7e059973ff262163de279ed1bfd6 | aa8fa9f7b1cc09c8e252a031c497752fa5247f88 |
refs/heads/master | <file_sep>import React from 'react';
import Todo from './Todo'
const TodosList = (props) => {
let todos = props.todos
const todosList = todos.map((todo) => {
let id = todos.indexOf(todo)
console.log(todo)
return(
<Todo
id={id}
text={todo.text}
... | 1fbe208b208090f0232398d5ba462455dd9c7a5f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | hupaulcamacho/lifecycle-methods-lab | bd6be1cfd9f84b6cfae7a92322ff2222f94874ce | 94bfe303c9aba3404ec53b85a72e2dcc08a61921 |
refs/heads/master | <file_sep>/*
<one line to give the library's name and an idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; eithe... | 7a0f961ab9c3c85ca11f43ec222e6d077eb88c85 | [
"CMake",
"C++"
] | 46 | C++ | HobbyBlobby/Koushin | 4f59ce7285a55815db23781fa59905d3438dce7d | 52e76e30c3293d23a96c7f89cf0e3614b79cacce |
refs/heads/master | <repo_name>scaldas/CM20151_HW8_CaldasSebastian<file_sep>/codigoSubmissions/MiercolesRegresionPorEventos.R
library(lubridate)
library(caret)
library(dplyr)
file <- '/Users/caldasrivera/Dropbox/UniAndes/Semestres Academicos/Septimo Semestre/Metodos Computacionales/Tareas/Tarea8/CM20151_HW8_CaldasSebastian/data/training_... | c680191138c9171615a2cf7cb585b7acf42de45b | [
"Markdown",
"R",
"RMarkdown"
] | 7 | R | scaldas/CM20151_HW8_CaldasSebastian | b33037ec38a73715f96edc5a4c37252a5c9466b2 | d0cebb6246682000c51771b377bd808c47ef7c5d |
refs/heads/master | <file_sep>'use strict';
var items = ['ivandro', 'ordnavi', 'leamsi', 'ismael'];
items.forEach((item, idx) => {
console.log(item);
});
console.log('Hello world');
<file_sep># BasicRouting
<file_sep>'use strict';
var http = require('http');
var fs = require('fs');
var port = process.env.PORT || 1337;
http.creat... | baacf454a44a8f23cf90c2bdafbdc2cb70e94182 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 18 | JavaScript | ivandrofly/learning-nodejs | 5b33a7a94c7df96a7de8f47902a51cdfecfdf099 | dc536006e16e8a3c6ed4390b7c417387547fd928 |
refs/heads/master | <file_sep>import React from "react"
const countries=["Poland","Turkey","Spain","Italy","Czech Republic","Mexico","Colombia","Brazil","Argentine","Chile."]
const Footer = () => {
return (
<footer>
<p class="foot">
We are leaders in 10 countries:
{countries.map((... | 391ecb05da35e211e1c97e04fd5e8011be09534b | [
"JavaScript"
] | 2 | JavaScript | Ch-Omar/docplanner-clone | f5af42d6406ab71b7cffc13520aecb496b4ec8ef | 0efdb98c47d2f5cf830a4aa2b50922539a9e9014 |
refs/heads/master | <file_sep>import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Flatten, MaxPooling2D
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import os
train_dir = 'cats_and_dogs/train'
validation_dir = 'cats_and_dogs/validation'
test_di... | 67aebccc68d267e69a98a3d3471b9d581e2badb9 | [
"Python"
] | 3 | Python | LennardFranz/machine_learning | 5c2b7c4a415668c2c890f450e936ca07c3b4bef7 | a81320dce7bab22f64c97c225185e4aa5703f4da |
refs/heads/main | <file_sep>
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
require('./config/config');
app.use(bodyParser.urlencoded({extend: false}));
app.use(bodyParser.json());
app.get('/usuario', function(req, resp) {
resp.json('get Usuario');
});
app.post('/usuario', fu... | 63d338f7a0828b19148e73dc72c43576bb70e0d0 | [
"JavaScript"
] | 1 | JavaScript | JorgeMochonBernal/node-rest-server | 780078e661634be8049458e134139ac54f21c043 | c4347a2b492595a489bd9b1404ffed403c66fa14 |
refs/heads/master | <file_sep>package ru.mail.aslanisl.devcandidates;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.Toast;
import java.util.ArrayLi... | 60b01c98b4b91d7d011d3c3f46bc4560902f5580 | [
"Java"
] | 1 | Java | Aslanisl/Devcandidates | 58e2dda1689df3457759ef6718c041744e4dc36d | 280b4d54b76fa5b1fea6af3b85040d2cc94e74aa |
refs/heads/master | <repo_name>jasonsutter87/angular-decoupled-blog-frontend<file_sep>/src/app/posts/posts.component.ts
import { Component, OnInit } from '@angular/core';
import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
import { Post } from '../post';
import { Observable } from 'rxjs/Observable';
import 'rxjs/ad... | 91e209fc5faeb526e1c6374aa211a5b030839232 | [
"TypeScript"
] | 1 | TypeScript | jasonsutter87/angular-decoupled-blog-frontend | 304c293e53fe2d12f7334abf0fd2e3799f812444 | 92634ab99bc0de98bdc3f76b46d555808c86bf17 |
refs/heads/master | <repo_name>agarcia-carecloud/m1-pulse-check<file_sep>/starter-code/src/assessment1.js
// Write a function that returns the product of 2 numbers
function product(x, y) {
if(x === null || x === undefined || y === null || y == undefined) return false;
return (x * y); //multiplies both parameters to return product.
}
... | b6e2c13588e76c6e5bd4394550c63ae045ea88f5 | [
"JavaScript"
] | 1 | JavaScript | agarcia-carecloud/m1-pulse-check | 99ed99ac5358841e6eec8a9f8e6e248ea9940e41 | d7b551a58876ac3ad9482e53b236e1420edb4402 |
refs/heads/master | <file_sep>
#include<cstdio>
#include<ctime>
#include<cstdlib>
#include<cassert>
#include<algorithm>
#define sz 100000
#define MERGE 1
#define INS 2
int a[sz+5], b[sz+5], c[sz+5];
void merge(int A[],int p, int q, int r)
{
int n1= q-p +1 ;
int n2= r-q ;
int L[n1+1] , R[n2+1] ;
for(... | 1f45e8f03e6b9c949bc125fe37052e5342adec18 | [
"C++"
] | 19 | C++ | Anika-alam/Algorithm | b8dc935b73381100efa9a763b4de988c96f729a1 | 65d3a5c2b9f15ebaa13591901cb0a5b6eb608118 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { withRouter } from "react-router";
import fileImage from '../images/file.png'
import folderImage from '../images/folder.png'
class TableRow extends Component {
convertBytes(size) {
const prefixes = ['B', 'KB', 'MB', 'GB'];
let power = 0;
while(size > 1... | f16a26eef72a510ed51e1fe7814d3d96aeaa1483 | [
"JavaScript"
] | 7 | JavaScript | MeetYourRuiner/Pi-File-Explorer | 08b264428034f17c53667fd454ef76ed3386f225 | 416270a793f3c312a1022635168ed452c6eee136 |
refs/heads/master | <repo_name>jlucangelio/matasano-crypto-challenges<file_sep>/challenge19.py
import utils
CIPHERTEXTS = []
NONCE = 0
KEY = utils.ByteArray.random(utils.AES_BLOCKSIZE_BYTES)
with open("challenge19.txt") as f:
for i, line in enumerate(f.readlines()):
# print line.strip()
plaintext = utils.ByteArray.fro... | 2c1e4715664c448fe5db7eb70d6993b78a41b7f0 | [
"Markdown",
"Python"
] | 16 | Python | jlucangelio/matasano-crypto-challenges | 76695eb946055c4b36363e90a667741649b8c0b6 | 3265397645b30d25bdf4d38ecd6dc142fb6ce2a4 |
refs/heads/main | <repo_name>Fanger53/init_rails<file_sep>/app/views/costumers/_costumer.json.jbuilder
json.extract! costumer, :id, :name, :last, :customer_id, :created_at, :updated_at
json.url costumer_url(costumer, format: :json)
<file_sep>/test/controllers/costumers_controller_test.rb
require 'test_helper'
class CostumersControllerT... | 2181e72fca830f97b3fd56c02af240263f76d948 | [
"Ruby"
] | 7 | Ruby | Fanger53/init_rails | c39ea6a79ca4a8d67cfd822ea1d704f8627421e1 | a332f9cf3bd85624d7b1360cd4aeeb8f92cc94af |
refs/heads/master | <repo_name>jdobner/gradle-experiments<file_sep>/creating-multi-project-builds/greeting-library/build.gradle
plugins {
id 'groovy'
id 'java-library'
}
dependencies {
api 'org.codehaus.groovy:groovy:2.4.10'
testImplementation 'org.spockframework:spock-core:1.0-groovy-2.4', {
exclude module: 'gr... | 1ef3b689e4b4bcf102b0c51f61d88a9ef1349296 | [
"Java",
"Gradle"
] | 5 | Gradle | jdobner/gradle-experiments | 0cf35adf674efcdbce974921f632b2114911d381 | 3a8a242e0561246b4f53fa3c1e53120bf6133dbb |
refs/heads/master | <repo_name>isokar/gladys-serial<file_sep>/lib/setup.js
var SerialPort = require('serialport');
var Promise = require('bluebird');
var connect = require('./connect.js');
module.exports = function() {
// first, we list all connected USB devices
return listUsbDevices()
.then(function(ports) {
sails.log.info(... | cf2e25421b3c7a4ec4b21245a6d09369243e30cb | [
"JavaScript"
] | 1 | JavaScript | isokar/gladys-serial | 15c6cc6770d47906e470542e997620e05801f5a5 | a4642c7a88a1aa4e5072fd2a228156e5d97c480d |
refs/heads/master | <repo_name>careeryumi/Game<file_sep>/FinalProjectShell/Components/HighScoreComponent.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.IO;
namespace FinalProjectShell
{
public class HighScoreComponent : DrawableGameComponent
{
Te... | ab7b70efe37552023184e8ce6f270ee3a56a817f | [
"C#"
] | 13 | C# | careeryumi/Game | 3dfc75a1dbaedcd0f00a089b133f1250b5b17c9d | 1ef1329ab2d198b3846bf253b9ec7f7713f67e3c |
refs/heads/master | <file_sep>#!/bin/sh
curl -s -H "X-CLIENT-TYPE: android-phone" -H "X-CLIENT-VERSION: 2.9.4-rc2" -H "X-Pipejump-Auth: $1" -H "X-Futuresimple-Token: $1" -H "X-Futuresimple-Api-Token: $1" $2 | python -mjson.tool
<file_sep>function init_rvmrc(){
current_dir=$(basename `pwd`)
ruby_version=$(rvm use $1> /dev/null && ~/.r... | fb30757f8996f397fc3690103251f8288fcc98f2 | [
"Ruby",
"Shell"
] | 10 | Shell | mehowte/dotfiles | 04dfd5ca51c6ab1d10e237fd2544195b8cd2d96f | 91dd378cd3cc11ee8d0ea2fcf10cda272d295e66 |
refs/heads/master | <repo_name>OpenNuvoton/N32901-3_NonOS_BSP<file_sep>/SIC_SECC/Src/fmi.h
#include <stdio.h>
#include "wbio.h"
//#define _SIC_USE_INT_
//#define DEBUG
#define TIMER0 0
//#define printf sysprintf
//#define _USE_DAT3_DETECT_
//-- function return value
#define Successful 0
#define Fail 1
#ifdef ECOS
#def... | da0b6e25c6898734296099de90069ed76ed1d65b | [
"C",
"INI"
] | 41 | C | OpenNuvoton/N32901-3_NonOS_BSP | 8315e28d519a83a9245c288e0f60f5934af1c09f | 65f40e204aadf86e613dc6062d3959db44f9b05d |
refs/heads/master | <file_sep>require File.join(Rails.root, 'bot/tattletale.rb')
<file_sep># Instroduction
freestyle bot in slack

# Usage
set up in local
```
bundle install
export SLACK_API_TOKEN= ...
rails s
```
if you want to deploy to heroku
```
heroku config:set SLACK_API_TOKEN= ...
git push herok... | b80af708c7b66b38cbdf8b5796ef2eb2519bcb2b | [
"Markdown",
"Ruby"
] | 4 | Ruby | chengcyber/slack-hiphopman | 9d87fb8f866033d58d00533ecdeab41a9fcccf3b | 3c0905391c61072432183b8f8ca8bf62c6710b80 |
refs/heads/master | <file_sep>$:.unshift File.dirname($0)
require 'ants.rb'
def log s
# $stderr.puts s
end
ai=AI.new
history = {}
visits = {}
ai.setup do |ai|
# your setup code here, if any
end
ai.run do |ai|
current_orders = {}
ai.my_ants.each_with_index do |ant, i|
log "Distance between -1,0 and 0,5:"
log ai.distan... | 653022b5e51d053ae8262169f8ee59efb9420ff6 | [
"Ruby"
] | 1 | Ruby | kek/antbot | bed2432d91d20c47814b3658d636168356a09ff6 | ccfa513825c6dda6a6f9d2404507e8338d819928 |
refs/heads/master | <repo_name>ghostlpx/alertUI<file_sep>/js/widget.js
//为Widget类添加统一的生命周期
define(function(){
function Widget(){
//this.handlers = {};
this.boundingBox = {}; //属性:最外层容器
}
Widget.prototype = {
on : function(type,handle){
if( typeof this.handlers[type] == 'undefined' ){
this.handlers[type] = [];
}
... | 2a4b1c788ee2e6eea277a23040f6a5ce19828813 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ghostlpx/alertUI | 74c989d7211cfe9bf856a7796813b0f263256290 | 0ce1f95cd3851f37e30777430a1acb144b47fd8c |
refs/heads/master | <repo_name>Kyramee/La_poutine_avec_tables<file_sep>/poutine/src/poutine/Facture.java
package poutine;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
import java.text.DecimalFormat;
import java.text.SimpleDa... | d91262888f1dfc25dbaaaff520bc7364d2427702 | [
"Java"
] | 1 | Java | Kyramee/La_poutine_avec_tables | 88757af9d5dcfb20df465f333113c562481e9ad0 | 897c8349d189d7d739b9b90491e8293134ea6608 |
refs/heads/master | <repo_name>dr4g0nsr/xtreamui<file_sep>/README.md
So this has been a long time coming, but here's a new release. Okay it's still early access, I just needed to get something out there for the following reasons:
To show I'm back
To fix some security issues that could affect earlier releases
Now this release addresses a ... | 8f76b534c8d2ad97d6cbdf4aac06a7cef1cb1acf | [
"Markdown",
"PHP"
] | 3 | Markdown | dr4g0nsr/xtreamui | 2ae921f8b0967cf9c5a2cc065809f8d5917b666a | 1ec7bf53991577786efe2bf5cb0be6a7c93fced1 |
refs/heads/master | <repo_name>tslwn/digging-the-data<file_sep>/README.md
# theme2d
This visualisation is in response to 360Giving's challenge ['Digging the Data'](https://www.threesixtygiving.org/data/reports-publications-and-analysis/data-visualisation-challenge/), for which I chose to answer the question 'Who has funded what themes th... | 21a3680da896a5e50eb50f6bd9668d04ba2f9fb1 | [
"Markdown",
"Python",
"JavaScript"
] | 3 | Markdown | tslwn/digging-the-data | 1aa2d8d02bc840050cc5b76fe25404c9201cb4c7 | 1f8aaa6313984a3626d4bfc07f144780490e3758 |
refs/heads/master | <repo_name>ahmadnassri/node-oas-fastify<file_sep>/lib/plugin.js
const convertPath = require('./helpers/convert-path')
const parameters = require('./helpers/parameters')
const security = require('./helpers/security')
module.exports = function (instance, opts, next) {
// TODO check & validate opts.spec
// associate... | 9c637eadea6272f23d9212fa5ea76ffbf9b57866 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | ahmadnassri/node-oas-fastify | c60d5f4002c196c30b0bf0a18dbac0c3e44e5f03 | 7dc7297bf36fa1f5b588aec34ce97e1558b17b8e |
refs/heads/master | <file_sep>import ot
import numpy as np
from scipy.spatial import distance_matrix
def compute_map(A, B, metric="euclidean"):
M = compute_dist(A,B)
na = A.shape[0]
a = np.ones(na) / na
nb = B.shape[0]
b = np.ones(nb) / nb
return ot.emd(a, b, M)
def compute_wasserstein(A, B, metric="euclidean... | 3913bc08a804d45268506d644315544499e6e720 | [
"Markdown",
"Python"
] | 4 | Python | kwekuka/ot | 5149c03ea21bd41b8cb8bc9b715a2a994b564b65 | ddce97d06a9666bbf984882e361239e1ef67f7a6 |
refs/heads/master | <repo_name>infomaniac50/ecwid-wordpress-plugin<file_sep>/templates/admin/welcome-connect.php
<div class="ec-form">
<div class="ec-button">
<form action="<?php echo $connect_url; ?>" method="post">
<button type="submit" class="btn btn--large btn--orange"><?php _e( 'Connect Your Store', 'ecwid-shopping-cart' ); ?><... | a4f8a2ee3a50ba10f1a4ad1122beaab6ed41127c | [
"PHP"
] | 1 | PHP | infomaniac50/ecwid-wordpress-plugin | 944b9db2ee67c0894d64afd8f5e7f18a2d943cca | e6661eb5268942bf815a83ddf52820b56a0c58cb |
refs/heads/master | <file_sep>@javax.xml.bind.annotation.XmlSchema(namespace = "http://server.suma/")
package suma.server;
<file_sep><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/maven-v4_0_0.xsd">
<mo... | 81013c38aa43f009c834eebb4364ae488d0659a8 | [
"Java",
"Maven POM"
] | 2 | Java | LisbethHernandez/WSInformatica | c555095ab6673644e7845eb9d1d08d84a75b8d06 | 5619111d82b2f55f618f6f812a8f3a4a05f7bef4 |
refs/heads/master | <repo_name>halfs2/bootcamp-dio-pratica-net<file_sep>/src/Entity/EntityBase.cs
using System;
using FluentValidation.Results;
namespace DIO.Series.Entity
{
public abstract class EntityBase
{
protected ValidationResult ValidationResult;
public int Id { get; private set; }
public... | 2a3af7e4535157521248e620536353af2d333358 | [
"C#"
] | 3 | C# | halfs2/bootcamp-dio-pratica-net | 4336e1fb264e8640cbcb256b40057b7913f085f7 | 0b0b28e03295791110004e7869da28940a2bcb9e |
refs/heads/master | <file_sep>package blackjack;
public class Player {
private String name;
private Hand hand;
public Player(String name) {
this.name = name;
this.hand = new Hand();
}
//here i made a constructor for the Dealer
public Player() {
this.name = "Dealer";
this.hand = new Hand();
}
@Override
public ... | 4c9cd34cc88fd169c00ee20bf3644b7b393b1da1 | [
"Markdown",
"Java"
] | 4 | Java | moseslee88/BlackJackProject | 11e7149b44d9d1fde1c87fe0df503f6ad4cfe867 | baf0a65cd27addebac71f750b97e69ef6c389dbd |
refs/heads/master | <repo_name>mykhailog/ember-math-helpers<file_sep>/addon/helpers/gcd.js
import { helper } from '@ember/component/helper';
/**
* Returns the greatest positive integer that divides each of two integers
*/
export function gcd([_a = 0, _b = 0]) {
const a = Math.abs(_a);
const b = Math.abs(_b);
if (a === 0) {
r... | 17db5980b4fa5a20800ef9a7fe7cbe6fcfca2b54 | [
"JavaScript"
] | 2 | JavaScript | mykhailog/ember-math-helpers | 4b6bab817bd4fcf94c4b42f9ffdcc43e6c558a8e | 48cfa635bfefb71209fbfe7ddbe698594e53f937 |
refs/heads/master | <file_sep>package com.quandoo.reservoir.model;
import com.google.gson.annotations.SerializedName;
import org.parceler.Parcel;
import io.realm.CustomerRealmProxy;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by ercanozcan on 03/09/16.
*/
@Parcel(implementations = { CustomerRe... | e2e32b6c51fe233deea249ab43fce6da8b5ea5d9 | [
"Java"
] | 4 | Java | aercanozcan/Reservoir | 82f12e080aba44623dcf055bb8aa96afb8ca03e9 | ceb81e2d79dd406d4f398d005d4c82f6f9f67d7c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.