branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>include ':app'
rootProject.name='BakirTest3'
<file_sep>package com.example.bakirtest3.ui.home;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import a... | e1ae118cf3ee754060111f959caca84942cb2557 | [
"Java",
"Gradle"
] | 2 | Gradle | hernad/BakirMTELL1 | 2840dc869e6e96569265c0f806289a50ffbec5a1 | 790015f171ed2c3aa12e04f66ac2b92adeb9a5aa |
refs/heads/master | <repo_name>StefhBautista/for-review<file_sep>/If_1.cpp
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a;
cout << "Enter number of units: ";
cin >> a;
cout << "Enter second number: ";
cin >> b;
if (a < b)
cout << "First number is less than second. \n";
else if (a > b... | dc79456026caefbdc8d1ecf5fa6ad5b2bd6bcd99 | [
"C++"
] | 6 | C++ | StefhBautista/for-review | d7f7d9253da68ac7d5f39b46370d601996267548 | 5a9f37d473f53ce6910eb82dae083412cbc7193c |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Xml;
public class MonsterFactory : MonoBehaviour{
public static MonsterFactory Monster_Factory;
private List<Monster> Monsters; //make into list of lists
void Awake(){
if (Monster_Factory == n... | 64981b42692721bcce0d32bff87f070245a7c3eb | [
"C#"
] | 56 | C# | Dev-Awesome/Danmachi-Inspired-mobilegame | 8c45c327372bb0a8eb475ea96ca7dfb003f78654 | 7bef32828c6ccc57224f7fe5a3b63a50ed3233e4 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import {
Header,
Table,
Message,
Button,
Icon,
Input,
Loader
} from 'semantic-ui-react';
import Layout from '../../../share/AdminLayoutExample';
import { getResources } from './actions';
import { Names... | fd45b75ceada3406fdd57e1b77a7d62d68468c19 | [
"JavaScript",
"Markdown",
"Shell"
] | 70 | JavaScript | taviroquai/fullstack-js | 1f717be49f9668cb3a08c0abe5d949589324e54d | 77c06c810e6e7d70fb640e262caffe43ba07b809 |
refs/heads/master | <repo_name>wind8166/Send<file_sep>/src/Send_Mail/Demo.java
package Send_Mail;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLExcepti... | e055ab86d32b343f835c2603f7c48f98efceeed9 | [
"Java"
] | 1 | Java | wind8166/Send | 7f8ada61695b3cdba028fcdd2962d088bf9276c0 | cb75746522385d7787d9c39a1de4bacae40359bd |
refs/heads/master | <repo_name>ARubiose/slide-deck-visualization<file_sep>/src/slide-deck-visualization.ts
import * as d3 from "d3";
import "./style.css";
import {
IProvenanceSlide,
ProvenanceSlide,
IProvenanceSlidedeck
} from "@visualstorytelling/provenance-core";
import { all } from "q";
function firstArgThis(f: (...args:... | d4f99a58570d9754a8dfd9e28ddf7f9ba66345cb | [
"TypeScript"
] | 1 | TypeScript | ARubiose/slide-deck-visualization | 3572e8775d73e78a4e4e31dcd4bd4d7421736c23 | 0d2897e2224018044bbcff32f64b885dc438a86f |
refs/heads/master | <file_sep>const apiURL = "https://v2.jokeapi.dev/joke/";
import { getSelectedCheckboxValues } from "../utils/selectedCheckboxes.js";
import { addSearchQuery } from "../utils/searchQueryAmountAndLanguage.js";
import { selectAmount } from "../utils/searchQueryAmountAndLanguage.js";
import { selectLanguage } from "../uti... | 709733bab3d58689482ccad7ba5a051b866d2ca9 | [
"JavaScript"
] | 5 | JavaScript | CmlSph/APIs_PROJECT_CEMAL_MODULES | 9c5d258854fafa82111798eeaa63755bf47623b6 | 570dda04f7506ae7300a81b70c004085309c687e |
refs/heads/main | <repo_name>misterpki/java-securerandom<file_sep>/src/main/java/SecureRandomNumberGenerator.java
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.stream.IntStream;
/**
* Generates secure pseudo-random numbers
*
* @author <NAME>
*/
public final class SecureRandomNumb... | 8544b29edc9b6cbe92dfdbe4a599a615d041b8f0 | [
"Java"
] | 2 | Java | misterpki/java-securerandom | f2022fa187ecd3015e1b66f0927f4479501940df | 7d67dcb554f8ad6a96ff65dc2c14181e74649920 |
refs/heads/master | <file_sep>import EStyleSheet from 'react-native-extended-stylesheet';
const styles = EStyleSheet.create({
container: {
paddingTop: 24,
flexDirection: 'row',
paddingLeft: 20,
alignItems: 'center',
paddingRight: 20,
},
detailsWrapper: {
justifyContent: 'center',
alignItems: 'center',
... | 1a55223def72a412311fd85abd03b397f587139a | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | a7mdkhaled/Music-App | ca5cfa0f9924f259a9aaba80c910be8df2ad1e6f | 3d0b60cb0dc9813570ac4150a4ed2b743731f4d3 |
refs/heads/master | <repo_name>kibibyte7/Pi4f0n4d0<file_sep>/commands/ping.js
module.exports.run = async (client, message) => {
message.channel.send("Pong !").then(m => m.edit(`:ping_pong: __${Math.round(message.author.client.ping + client.ping)}__ ms !`))
}
module.exports.help = {
name: "ping"
}<file_sep>/commands/wp.js
const rand... | fac40dc58e7f3b0c247546118be8b03811fe2375 | [
"JavaScript"
] | 24 | JavaScript | kibibyte7/Pi4f0n4d0 | ecfe95aea98d54b1140a686b4a60c745d68a56d9 | ea1c44363e3c24807be98cb01063ed0544f0cace |
refs/heads/master | <file_sep>import React from 'react';
import Navbar from "./Navbar";
import {connect} from "react-redux";
import FriendsItem from "./FriendsItem/FriendsItem";
class NavbarContainer extends React.Component {
constructor(props) {
super(props);
this.nameElements = this.props.nameNavbar.map(n => <Frien... | d07bacad0e8c45198077884532445544673acf8c | [
"JavaScript"
] | 4 | JavaScript | Romanlatyk1313/my_app | ccb75a08ed6132bc8a59674a999c92ac513cccd4 | 4a75727a45b2c0e363792017f715e15387a6a19e |
refs/heads/main | <repo_name>romerorei/foodbistro<file_sep>/test/controllers/order_items_controller_test.rb
require 'test_helper'
class OrderItemsControllerTest < ActionDispatch::IntegrationTest
test "should get create" do
get orders_items_create_url
assert_response :success
end
test "should get update" do
get orders... | 9069d905055e9a8abe5daa8ffdfdb973fbeb7e4b | [
"Ruby"
] | 7 | Ruby | romerorei/foodbistro | b8370e8ea4b25b10df09188166a8f4aafa18ca06 | 766e6ae7297a707179dbad2ba0a456a688c6e7c9 |
refs/heads/main | <repo_name>JoshSee96/Group3_A4<file_sep>/index.js
const express = require('express');
const app = express();
const nodemon = require('nodemon');
app.use(express.json());
//MongoDB Package
const mongoose = require('mongoose');
const PORT = 1200;
const dbUrl = "mongodb+srv://admin:<EMAIL>/myFirstDatabase?retryWrites=t... | c6376afc3b8bc2f8b5dd023609d8d51833202e2b | [
"JavaScript"
] | 1 | JavaScript | JoshSee96/Group3_A4 | 9b0f81ed3cd18133e2ddeb70d901bff862383efa | 61d4832f0d46710d8a91c30df9e3010a8d08be37 |
refs/heads/master | <repo_name>ifasim/lafoi<file_sep>/db/migrate/20160705220954_add_picture_fields.rb
class AddPictureFields < ActiveRecord::Migration
def self.up
change_table :products do |t|
t.attachment :avatar_product
end
end
def self.down
remove_attachment :products, :avatar_product
end
end
<fi... | d7091b228a5201942123d21210576084c8787a18 | [
"Ruby"
] | 8 | Ruby | ifasim/lafoi | 034280407ed0ac88832c4124662a0e55f681e8a7 | ef2b02c4ee4f3989e923492949683d48abe740c9 |
refs/heads/master | <file_sep>def meun():
print('''*************************************************************************
* 1.录入学生信息和成绩 *
* *
* 2.显示学生信息 *
* ... | 663f372e4de38b37e8ad4d4495271da33155ef9f | [
"Python"
] | 1 | Python | mo-ziyu/py | e0160030328a78e0a774cb9f2284e4bfb9cd1756 | 77658b8d3e5b2b1684a03d59f0c6a2abf2f99d1c |
refs/heads/master | <repo_name>oittaa/shell-scripts<file_sep>/cryptswap-setup.sh
#!/bin/sh
set -e
command -v cryptsetup >/dev/null 2>&1 || {
echo "Command cryptsetup is missing. Please, install cryptsetup package."
exit 1
}
[ -f /var/cryptswap ] && {
echo "/var/cryptswap exists already."
exit 1
}
[ ! -f /etc/crypttab ] &&... | a34c3ea7148c49ee1fccbc8cdcafa9a8718042b8 | [
"Markdown",
"Shell"
] | 9 | Shell | oittaa/shell-scripts | 6310c638e77bfc4700602d4645ecb6a72bb3cf45 | 0328a8d3d3090b1136a4c421fbf5e75e02a4dce1 |
refs/heads/master | <file_sep>package andres.dev.com.menurestaurant.Model;
import java.util.ArrayList;
public class Category {
private int id;
private String Name;
private String imagePath;
private String Description;
private Category Parent;
private ArrayList<Category> subCategory;
public Category() {
... | 0958ad22ce2b9ec48f468349efc9f2e86fe7f09b | [
"Java"
] | 7 | Java | andrespaez90/RestaurantMenu | 1a6cdb2a503725ba473b607ff7416d640c9563c7 | 23e05fb39750d29b8f0cf4842deb26cf413205b4 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Mail\VerifyEmail;
use App\models\Auth;
use App\User;
use App\Validate;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Session;
class RegController extends Controller
{
p... | 7c6dcde49070a589fa5fde244130af5d9faf185d | [
"JavaScript",
"PHP"
] | 16 | PHP | Igoryan93/Laravel-blog | 37d6bef4402d4808a229e7cd6f0e0fa7a6ccc6ca | 98495559df6f54c07e75aadef6c2c6c445f8ae9c |
refs/heads/master | <repo_name>bronte999/TwittR<file_sep>/R/top_tweets.R
# top_tweets_interval
#
#
#' @import tidyverse
#' @import lubridate
#' @param data Twitter API User Timeline data frame
#' @param num_tweets how many tweets to include (ex: top 10 tweets)
#' @param time_start start of time interval investigating
#' @param time_end e... | 64981107bd6857a79d1559dfc6107adff4926639 | [
"Markdown",
"R",
"RMarkdown"
] | 7 | R | bronte999/TwittR | 80aa11d638e52093cedba89a6ccbf2cf9d1ead79 | a440f6849aaa6113fa16443dcd03f868aad318b8 |
refs/heads/master | <repo_name>lenaireland/Lemmings<file_sep>/lemmings.py
"""Lazy lemmings.
Find the farthest any single lemming needs to travel for food.
>>> furthest(3, [0, 1, 2])
0
>>> furthest(3, [2])
2
>>> furthest(3, [0])
2
>>> furthest(6, [2, 4])
2
>>> furthest(7, [0, 6])
3
"""
# >... | 755b1a56bcd05f02ab9c2685f5dfa6e9e41d51b8 | [
"Python"
] | 1 | Python | lenaireland/Lemmings | a1603d1deb7f1a5b99dc86017e559eb8e393618e | 41c22d8aed1e7ecc0cfcad0d22af4938f95678d1 |
refs/heads/master | <file_sep>library(digest)
library(dplyr)
library(purrr)
library(ggplot2)
# ____________________________________________________________________________
# A block example ####
block_example <- list(index = 1,
timestamp = "2018-01-05 17.0... | b1aebe2bba13b3d69067b2f322f2ac63e9eb2bff | [
"R"
] | 1 | R | homer3018/Blockchain | 35b046a1870777036c35ef1b999719fd563bc1e4 | 45e0c70887135b1d15cbedc5f832cb1ad8d8d1f7 |
refs/heads/master | <file_sep>//
// SizeSource.swift
// HelloWorldSwift
//
// Created by <NAME> on 2019/1/25.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
open class SizeSource<Data> {
public init() {}
open func size(at index: Int, data: Data, collectionSize: CGSize) -> CGSize {
return collec... | 4a0799dcac983966dd571801dea1ea682c4df6b9 | [
"Swift"
] | 17 | Swift | Swift-gavin/HelloWorldSwift | 82402deb47743461729c46b7661c3d64931c02ad | 4874d48aa012e83ada926a8d1e8cd587560441ed |
refs/heads/master | <file_sep>from rest_framework import serializers
from .models import ReviewModel
class ReviewSerializer(serializers.ModelSerializer):
class Meta:
model = ReviewModel
fields = [
"id",
# "title",
"rate",
"content",
"author",
... | d569bd9fcb63b9254238295100dbf2da2dd2c1b9 | [
"JavaScript",
"Python",
"Markdown"
] | 27 | Python | onewns/UWantBeer | 0e9c4687d5e15fb6e134905e28ff620af42832e8 | 702fae245d2db91561a275946ab3f535cb5271c3 |
refs/heads/master | <file_sep>// this is what you would do if you liked things to be easy:
// var stringifyJSON = JSON.stringify;
// but you don't so you're going to write it from scratch:
var stringifyJSON = function(obj) {
// your code goes here
// create an array name result
//if typeof strings want to return string
// if typeof nu... | a34270ad40e1a5ec73e9c352248c154e1858cf76 | [
"JavaScript"
] | 2 | JavaScript | ddai85/recursion-review | 4045123361a93e39ffa0b80e01baed32063ded7e | 76be3f33cf35465fe1f38d03218a732a092f6d77 |
refs/heads/master | <repo_name>vonrashey/Github-Users<file_sep>/src/Db.js
import Dexie from 'dexie';
const db = new Dexie('GithubUsers');
db.version(1).stores({
testData: 'datakey'
});
export default db;
<file_sep>/src/App.js
import React, { useState, useEffect } from 'react';
import { saveDataInIndexDB, getDataFromIndexDB... | 6f796adb368eb6b268e74b0a0787f10732f17da1 | [
"JavaScript"
] | 2 | JavaScript | vonrashey/Github-Users | 7090ef83d91a2b990ed4d8702ec98647fa36a027 | 1418064dfced2c8f0da2568e02c01ae39e651073 |
refs/heads/master | <file_sep># java-for-qa
A basic Java JUnit project to learn and implement OOPS concepts.
Clone or download the project.
Pre-requisites:
* JDK Installed
* MAVEN Installed
In the root folder where the `pom.xml` resides, run the following command:
~~~~~~~~
mvn test
~~~~~~~~
And you should see something like:
~~~~~... | 4d2ae72920a1736ac9d1a2fb2f65fe795c282f1b | [
"Markdown",
"Java"
] | 7 | Markdown | swatisharmab1/JavaForQa | ea9d3ec3ac0777eeb2c6223457434acd0d9c022f | 8ffebdbc5237b6e5bea50cfc23a272051e57f16f |
refs/heads/master | <file_sep># Bamazon
An Amazon-like storefront using MySQL. The app will take in orders from customers and deplete stock from the store's inventory.
### How it works
1. A database containg a *products* table with 10 items, is created using MySQL.
1. To start the application, navigate to the *Bamazon* folder in terminal... | 71dd20dd2bb9701b2345acd0653fe83ece6e8ce6 | [
"Markdown",
"SQL",
"JavaScript"
] | 3 | Markdown | dara-anya/Bamazon | 476710a069c3bf46a462cc81028b530a30f334af | cd493ea62733f79c8bf532440ee71a66405fad92 |
refs/heads/master | <repo_name>danwgun/csce-482<file_sep>/recipe/scrape_chow.py
import bs4 as bs
import urllib.request
import re
import csv
chowhoundDB = []
headers=["recipe Name", "ingedrient", "cookTime", "calories", "fat(g)", "carbohydrate(g)", "protein(g)", "cholesterol(mg)", "sodium(mg)", "Image Link","recipe link"]
chowhoundDB.app... | 0687683f0b62adec31b4b8d5a7b4936fa1dbede0 | [
"Python"
] | 8 | Python | danwgun/csce-482 | c949ed0e63056eaf90d79e7b60be0b3c0832e84a | 7065d8183dfe0216918a52e84dd65e8de697cdc1 |
refs/heads/main | <file_sep>
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var paper1,ground;
var box1,box2,box3;
function preload()
{
dustbinImage = loadImage("dustbingreen.png");
}
function setup() {
createCanvas(1600, 500);
engine = Engine.create();
worl... | 623c5cf45e7cd966a26da026300976e08be091c8 | [
"JavaScript"
] | 1 | JavaScript | SaanviSReddy/cb-2-bustbin-problem | f4df0f0ebdc1e0f8295c26e9aaa6e707d4ac1b4d | 19fb95a3066f0c3b80bf734ef3fdcde513a027c8 |
refs/heads/master | <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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bb.nsg.pact</groupId>
<artifactId>pact-provider</ar... | f6342b8987bd4b6b653297d57be025c346cb492c | [
"Java",
"Maven POM",
"Dockerfile",
"INI"
] | 5 | Maven POM | narendra13790/sis-service | 7a4cd56edc8f6c26b1af7c07b4064771802dd4e3 | d6354a335a7315d25742a9b22d4d52e8ccc25c4f |
refs/heads/master | <file_sep><?php
namespace PetroPack\PaginadoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Response;
class PaginadoController extends Controller
{
/**
* Paginado de los listados
... | 57eb6002ddb37bffb4eecf6c271a95928801cf15 | [
"JavaScript",
"PHP"
] | 30 | PHP | omarhectorsosa/petro-pack | 44d51bb122daa2e48c6db745a7fd84abe9725ceb | 90d9c2238157dfdd4412e492a7b7e4fc72bd1d3f |
refs/heads/master | <file_sep>require 'jsonclient'
class RestHook
def initialize(unit)
@unit = unit
end
def emit(action , msg)
prot = @unit.conf['pollen_prot'] || 'http'
host = @unit.conf['pollen_host'] || 'localhost'
port = @unit.conf['pollen_port'] || '3000'
path = @unit.conf['pollen_path'] || 'hookhandle... | 3821584a69564275ab74a6502690893639096069 | [
"Markdown",
"Ruby"
] | 2 | Ruby | floraison/pollen | f8f971e4c8f9e8c4c3686e4204f00cb844d12c6f | 0e2f4fd7376f4a52f4266a778d58ddcb972fd468 |
refs/heads/master | <file_sep>
module.exports = function parseStringAsArray(arrayAsString){
//recebendo string, convertendo em array - percorrendo as techs com map e para cada, limpa os espaços com trim()
return arrayAsString.split(',').map(tech=> tech.trim());
}<file_sep>const express = require('express');
const mongoose = require(... | 4a50cd738f7fa688b7e73e5a82dcef91951e8a60 | [
"JavaScript"
] | 5 | JavaScript | JhonathanRibeiro/SemanaOmniStack10 | f6d44749fac8915f5e311ee0be71d5819e26447d | ff3a242999dd9e53fbb42ed4493a1ea117d13805 |
refs/heads/master | <repo_name>GravitasCapstone/BMP-Code<file_sep>/I2C_code.h
#define SYS_FREQ 200000000
void delay_us(unsigned int us)
{
// Convert microseconds us into how many clock ticks it will take
us *= SYS_FREQ / 1000000 / 2; // Core Timer updates every 2 ticks
_CP0_SET_COUNT(0); // Set Core Timer count ... | e97be61341de26678f4f14642b6d81f9ddb66368 | [
"Markdown",
"C",
"C++"
] | 3 | C | GravitasCapstone/BMP-Code | 92c2020386953e3b422f360a19fb945302b29c41 | fee115adff7c1afa01bd597b63feddf944ea225b |
refs/heads/master | <file_sep># Adhearsion Restful RPC component
Provides a RESTful API for RPC calls over HTTP, allowing control of an Adhearsion application from almost any application.
When enabled, this component will start up a HTTP server within the Adhearsion process and accept POST requests to invoke Ruby methods shared in the me... | 35bb4d686b4bf8d0fd8624415bb076c10e380078 | [
"Markdown",
"Ruby"
] | 2 | Markdown | adhearsion/ahn-restful-rpc | 5ea79b610dfa7e935714c0f605d353a91050af06 | 383b51ea7f59a35817f98370d4f651c7da04192a |
refs/heads/master | <repo_name>leeturner/spring-boot-graphql-example<file_sep>/src/main/java/com/leeturner/graphql/invoices/model/Invoice.kt
package com.leeturner.graphql.invoices.model
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
impor... | 635b3a807f2af332899bfbff74b7817f08c994dc | [
"Markdown",
"Java",
"Maven POM",
"Kotlin"
] | 10 | Kotlin | leeturner/spring-boot-graphql-example | 645fc9af3ff5c337ba7add31da4cb0cc85064167 | f97959a774557ece9a29aff20612c39f2a8136a7 |
refs/heads/master | <repo_name>TBusen/food-inspections-evaluation<file_sep>/server.r
###This is a Shiny App based on the Chicago food prediction model code
#Please see the original code for comments on functionality
#https://github.com/Chicago/food-inspections-evaluation/blob/master/CODE/30_glmnet_model.R
#https://github.com/Chicago/food-... | fb0dda3c7b8da7dd3f6624892a8696ea4acf0a01 | [
"Markdown",
"R"
] | 5 | R | TBusen/food-inspections-evaluation | f79efd79a6921d22eecd8d8edd31511363f9378c | c6b361e63045c381f4f186b31e29039e7346fec8 |
refs/heads/master | <file_sep>package Controllers;
public class Cart {
private String pizza_name;
private int pizza_unit;
private double pizza_price;
public Cart(String pizza_name,int pizza_unit,double pizza_price){
this.pizza_name = pizza_name;
this.pizza_unit = pizza_unit;
this.pizza_price = piz... | 7a210709e2b531e4171b43bf0b07cc78dbb90a85 | [
"Java"
] | 4 | Java | kyraymege/JavaFX-PizzaOrderApp | 8884090f3d0b80f5daa2a957af7f3df5956041de | 73ddd0a2368af37da5ba1a7510eca4c025fbc7b1 |
refs/heads/master | <file_sep>#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/************************************************************************/
/********** fatalerr **********/
/************************************************************... | d61d08331a8a74712cc7f6987b1763fa37116d2f | [
"C",
"Makefile",
"Shell"
] | 28 | C | haideraltahan/EECS3221-Assignments | 481a51a04efb714ba8a209dd3f06b10791258e33 | fb8ae721b003b33a06e72d29d1e6b9807eb3bb25 |
refs/heads/master | <file_sep>package com.quaudio.dumbpug.quaudioapp;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.quaudio.dumbpug.qua... | f909c83f55499cdf94588ad7f915610ab7d84073 | [
"Java"
] | 7 | Java | nikkorn/QuAudio-Android-Client | 61737289ca154d0ef59d428f37b5949178737a39 | 50b9c0dadc7c554e854911eaafde54d0f2b61ef1 |
refs/heads/master | <file_sep># COVID-19 Testing Site
Made by <NAME> and <NAME>
CSE 316 Final Project
Built With:
- PostgreSQL
- Express
- React
- Node.js
Features:
- Authentication using JSON Web Tokens (JWT)
- Role-Based Access Control (Employees can only access their results and lab employees can only access the lab pages)
-
<fil... | c93c6919f513a5dd0d5cefe7e58f40c661508859 | [
"Markdown",
"SQL",
"JavaScript"
] | 12 | Markdown | law-lin/covidTestingSite | d9bc691050a933d6a5d7ca319a05935ddba333b2 | 84132f32e22b8889204b0cb4eea8df78488a5e63 |
refs/heads/master | <file_sep>from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.label import Label
from kivy.uix.widget import Widget
from kivy.uix.gridlayout import GridLayout
from kivy.lang import Builder
from kivy.uix.floatlayout import FloatLayout
from kivy.animation imp... | 488eed2f091c8901784485d2661e8200235af4f6 | [
"Python"
] | 4 | Python | Jeffrey7890/project_1 | 7922ae08730e35f2d16cda5cabe74049693932df | 8c44c471fce8162b17a8d21e53184d0d6c5d0001 |
refs/heads/master | <repo_name>brazeiro63/eda<file_sep>/plot1.R
if (!existsFunction("getDataNeeded")) {
source("get_data.R")
}
if (!exists("hpc_df")) {
hpc_df <- getDataNeeded("../data/household_power_consumption.txt")
}
png(filename = "plot1.png")
gap_v <- hpc_df$Global_active_power
hist(
x = gap_v,
col = "red",
main = "Globa... | 3636184f4f70ad3d8635fb4f157fda1c01d9b63e | [
"R"
] | 5 | R | brazeiro63/eda | 1b1f93dbe1fb87b44296e86d35194f762782eaea | 05b9f0d31461f1fc5f8edfcd111a888f86b92b03 |
refs/heads/master | <repo_name>mariolenis/CaliJS-TypeScript-angular<file_sep>/nbproject/project.properties
auxiliary.netbeanstypescript.compileOnSave=true
auxiliary.org-netbeans-modules-javascript-nodejs.enabled=true
auxiliary.org-netbeans-modules-javascript-nodejs.run_2e_enabled=true
auxiliary.org-netbeans-modules-javascript-nodejs.st... | 6501a2ef235372201774b82906392e808f33f4d4 | [
"JavaScript",
"TypeScript",
"INI"
] | 5 | INI | mariolenis/CaliJS-TypeScript-angular | 86e869a984a45584f3f0d9e0c12e769e32205954 | 4ffc8c0536f71912b0c50343f2bd33779f94d7b5 |
refs/heads/master | <repo_name>thisishuey/notes-app-ui<file_sep>/src/Routes.js
import React from 'react';
import { Route, Switch } from 'react-router';
import { PropTypes } from 'prop-types';
import Confirm from './containers/Confirm';
import Home from './containers/Home';
import Login from './containers/Login';
import NewNote from './con... | 90c3e35938a6d413e33a9ffe7bca0bf4da764f50 | [
"JavaScript"
] | 7 | JavaScript | thisishuey/notes-app-ui | 59d5fa2636e774d9fc1c9a109d99842e2adc8454 | e40b69c1c5615259b786e44be2a5d17cb037519a |
refs/heads/main | <repo_name>alejandrosofter/appAsociacion<file_sep>/server/main.js
import { Meteor } from 'meteor/meteor';
var getFacturasOs=function(datos,idOs){
var salida=[]
if(datos)
for(var i=0;i<datos.length;i++){
if(datos[i].idObraSocial==idOs)salida.push(datos[i]);
}
return salida;
}
var getUsuario=function(id){... | 7b0f9920ec3034b1495ffd43bd32fbec7b770fe6 | [
"JavaScript",
"Python"
] | 12 | JavaScript | alejandrosofter/appAsociacion | b2acbf24ad3a28a16765c76c2f0653f5ced34d94 | 1eb05dbee8f0ba3dbe50a9d5c120dca008f011f2 |
refs/heads/master | <file_sep>package OOPSConcept;
public class CallbyValueandCallByReference {
int p;
int q;
public static void main(String[] args) {
// TODO Auto-generated method stub
CallbyValueandCallByReference obj =new CallbyValueandCallByReference();
int x=10;
int y=20;
obj.testSum(x, y); //call by value OR pas... | cb2e95a5a0a1c275044bb84272547c8116a3a26d | [
"Java"
] | 9 | Java | KapaleAnup/JavaBasicSession | b14cab1ed621a28e3d2b83dd2932fa8f35aa56ce | 991c5caa9f31659f7fb3d3d86d20dba971241a90 |
refs/heads/main | <repo_name>akshayakula/nylon<file_sep>/nylon/supplementaries/handlers.py
from sklearn.metrics import accuracy_score
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
import os
from sklearn.ensemble import BaggingClassifier
import sys
from importlib import import_module... | a32fca7c9d8d37877d16643d5292fd2a53eb4d94 | [
"Markdown",
"Python"
] | 6 | Python | akshayakula/nylon | 4af9d2aece3e00f7d9036e471b27aa9af767c4ff | dea1746a111d6c6eea362d200750d59453581093 |
refs/heads/master | <file_sep>'''
*********************
* *
* *
* *
*********************
'''
def boxPrint(symbol, width, height):
print(symbol * width)
for i in range(height - 2):
print(symbol + (' ' * (width -2 )) + symbol)
print(symbol * width)
boxPrint('O',... | 763cbcf0b7494dbbc031029bbfb7344b3ee71879 | [
"Python"
] | 14 | Python | sah855/workshops | a3e799aafab088ebd51b5d73b1514f2483e47c67 | 80e8fe487359edae8b4dd6b07685d6c3e47cd95e |
refs/heads/master | <file_sep>package control;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@Sup... | 33f27edae1aafe6810e73c501a43eb9eda926d4f | [
"Markdown",
"Java"
] | 12 | Java | cxmarcelo/rpgValeDoParaiso | 082dc29e9f42cd13cb008ce0a7cc6d05986376da | 70c87471af53ed18d0081cf10051bf321b2c28e1 |
refs/heads/master | <file_sep>all: p4.c clean
gcc -g p4.c -o p4 -lpthread
clean:
rm -f *.txt *.o p4
<file_sep>/* Single Author info:
* vramakr2 <NAME>
* amuckad <NAME>
* bramach2 <NAME>
* Group info:
* bramach2 <NAME>
* vramakr2 <NAME>
* amuckad <NAME>
* */
#include <stdio.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#in... | 7f2ceccd7ae1a1903373e5ddfc90cbd2006bda54 | [
"C",
"Makefile"
] | 2 | Makefile | tnybny/failure-detector-using-a-gossip-based-heartbeat-algorithm | 6fcf5f26a7e4978770a9ba8f3740116ccf410ea3 | d606cb9404c273ee25d8e438e142a99af13bb533 |
refs/heads/master | <repo_name>TianyangZhan/x86-Assembly-Projects<file_sep>/triMatMult.cpp
//
// This program multiply the two matrices and display the resulting compressed matrix
//
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
// open the file and get the data in the file
void readFile(const char* fileN... | 90ddfdddc8818d3cfadfbac68854d42a86cf7405 | [
"C",
"C++"
] | 6 | C++ | TianyangZhan/x86-Assembly-Projects | 993615cbd3951a12824b3fdc30de314351de8896 | 9eaa12946153fc5dc88efd0cc9fe80c1e6e148b4 |
refs/heads/main | <repo_name>cklein05/tomcat<file_sep>/java/org/apache/tomcat/util/compat/JreCompat.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF l... | 327d0b0500612617f3d832a3b90d7afff4684fbe | [
"Java"
] | 4 | Java | cklein05/tomcat | fd0775cbd47793b98e5479b3e319fa86b4105a30 | 8216e939aa06e1afe7db3f62796cb5c68930c079 |
refs/heads/master | <repo_name>fernandezpablo85/hello-go<file_sep>/main.go
package main
import (
"code.google.com/p/rsc/qr"
"io/ioutil"
"flag"
)
func main() {
content := flag.String("content", "default", "the content to be encoded")
fileName := flag.String("out", "qr", "the name of the outputted qr file")
flag.Parse()
code,... | ddb5ee3c5da6a01acc0ae3198b9c0fb1ff647eb0 | [
"Go"
] | 1 | Go | fernandezpablo85/hello-go | 27d23388c0077448c1d3d44fd61b979c5e0e3354 | 9930b316dd6a44d73c875ce4fbe95901c86f25be |
refs/heads/master | <repo_name>domino4991/hikingSite<file_sep>/app/js/common.js
$(function() {
$('.owl-carousel').owlCarousel({
loop: true,
dots: true,
dotsContainer: '.dots',
nav: false,
navText: ['<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'],
item... | 1d53b63d8365e4b9be7213bfe2aa70dc8a7e3612 | [
"JavaScript"
] | 1 | JavaScript | domino4991/hikingSite | 2d58866be0c22d86bc8c955b578ca2e485eec945 | 8a19dab847aadcccf690b95d1963d2d7d9205d9b |
refs/heads/master | <repo_name>Yumanook/STORMLite<file_sep>/LED_control4.py
import RPi.GPIO as GPIO, time, random
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
class Charlie:
'''
Class for control of the charlieplexed SparkFun 8x7 LED Array.
'''
def __init__(self, pins):
'''
pins: type 'list', list of int... | c457fc1419fbb3c52d4784bc68cab17bb1690db7 | [
"Markdown",
"Python"
] | 5 | Python | Yumanook/STORMLite | 9372991820f210ba39b8f9c311c5fd1bc9950056 | 4f34dc44efc49fe9ed52475d0e3763395b118af7 |
refs/heads/main | <file_sep>// <NAME>
// CSC 325: Algorithms and Advanced Data Structures
// Implmentation of the Binary Addition Algorithm
#include <iostream>
#include <vector>
#include <string>
using namespace std;
string addingBinaryNumbers(int n, string a, string b){
// C is a vector that will hold the sum
string C = "";... | e844a375ebc77714b38e08fc8a288101917234ad | [
"C++"
] | 1 | C++ | DaltonWemer/binary-addition | 72e4c78c374500b1393bf9f724ae14b3ccf615eb | f17db26ffc126256f90494efd1ea85f929c6b0e8 |
refs/heads/master | <file_sep><?php
class Notify implements SplObserver
{
/**
* @inheritdoc
*/
public function update(SplSubject $subject)
{
echo("La classe Notify a été alerté. L'article '" . $subject->getArticle()->getTitle() . "' a été crée.\n");
// Ici dans un cas réel, on envoie un ... | 36b737122a71c7e0dfdbf217f5edad5aef8b0c9c | [
"Markdown",
"PHP"
] | 3 | PHP | nfouka/ListennerJava | 7765c79b9c2d8d51fd67b4d50ff6d8710c426434 | fb552ae2b0d9caa095d61639a74f6ce7f47ee53c |
refs/heads/master | <file_sep>#!/bin/bash
go run main.go -v &
sleep 1
# curl -k --proxy localhost:8080 --proxytunnel 'https://example.com?foo=bar'
# curl -k --proxy localhost:8080 'https://example.com?foo=baz'
curl -k --proxy localhost:8080 -o release.tgz 'https://bosh.io/d/github.com/cloudfoundry-community/cron-boshrelease?v=1.1.3'
sl... | 39c557944645014be97fccc86edbd9e244800cce | [
"Go",
"Go Module",
"Markdown",
"Shell"
] | 6 | Shell | Qarik-Group/artifactory-cache-proxy | f8c63344611b492de7b8e0bd18701520f3181ed4 | 9998c1d2fe013ad7a2c991b5358075a4ebaf85d7 |
refs/heads/master | <file_sep>
$scrape_scripts = Dir[File.join(File.expand_path("../scripts", __FILE__), "*.rb")] # get an array of all the scripts...
class DealScraper
def initialize
@user_agent = "Mozilla/5.0 (X11; Linux i686 on x86_64; rv:12.0) Gecko/20100101 Firefox/12.0"
end
def perform
$scrape_scripts.each do |script|... | f6efcfb35766ad6ba3e6ddd6db621365f0c7a0b3 | [
"Ruby"
] | 6 | Ruby | jloleysens/dealscraperapp | 302d38c31f383602d24fd190dbc1a6df70f732b4 | b388c75548fa5aba52c90a691f34b0ab64488d85 |
refs/heads/master | <file_sep>import React, { useState } from "react";
import PropTypes from "prop-types";
import {
Form,
FormGroup,
FormLabel,
FormControl,
FormCheck,
Button,
} from "react-bootstrap";
import TaskModel, { priorities } from "models/Task";
const NewTaskForm = ({ add }) => {
const initTask = new TaskModel();
... | c47855fd5a2f1619c1e971fb531e774f3f28086b | [
"JavaScript"
] | 7 | JavaScript | DavidLegrand/todolist | a935b07dafcf75976702eeb1315e8258643120db | 8f875f4d2c4aabbb70691eb2567ffb78353f01dc |
refs/heads/master | <file_sep>/*
NodeMCU (ESP12E)
Author : <NAME> (Kaohsiung, Taiwan) 2018-10-09 21:00
https://www.facebook.com/francefu
*/
#include <ESP8266WiFi.h> //ESP12E
const char* ssid = "xxxxx"; //your network SSID
const char* password = "<PASSWORD>"; //your network password
void setup()
{
Serial.beg... | 24877782c4db40c98079c691fc0cf3348c0a513b | [
"C++"
] | 1 | C++ | sofiisi/Arduino | 83cc29b9637a0918cc329ba5daab65399068bf2c | 082816994d210e090ac996a90a34c3458a045052 |
refs/heads/master | <file_sep>
from pylsm import lsmreader
from tifffile import TiffFile
from skimage.feature import blob_dog, peak_local_max
from skimage import filters, util
import numpy as np
from scipy.ndimage import filters as spFilt
import nibabel as nib
# import sklearn
from sklearn.metrics.pairwise import euclidean_distances... | 2a2dd8e6b064e67384990c9c5b494bfa2dd709c0 | [
"Python",
"Shell"
] | 14 | Python | evariste/confocal-clonal | 91d6a5535ac60a5192273e3547e6752f34b13550 | b92c2587b4d3ecd9178fcf4455afb98b4fb00537 |
refs/heads/master | <repo_name>NatalieButr/petlist-form-using-react.js<file_sep>/README.md
# petlist-form-using-react.js
petlist form using react.js
<file_sep>/src/PetItem.js
import React from 'react';
class PetItem extends React.Component {
constructor(props) {
super(props); }
render() {
const { name, owner, date, t... | 858047eef485a4c74ce37bce3ae4ae2e5edb63fe | [
"Markdown",
"JavaScript"
] | 3 | Markdown | NatalieButr/petlist-form-using-react.js | 8a18a40f78edda34a6a86761522b9931a75740fd | 4bc0a2ff9353230d2583e8c9c11bcb3e003f8cfd |
refs/heads/master | <file_sep>Game cerdas cermat sederhana ini merupakan Final Project dari mata kuliah Pemrograman Jaringan yang diajar oleh <NAME>.
Permainan ini dibangun menggunakan bahasa pemrograman Java dan menggunakan konsep Multicast sebagai protokol komunikasi antara Server dan para Clientnya.
Cara jalankan:
- Pastikan sudah te... | 60cb453006576bb50e4aa35518b46f8d9f177c0a | [
"Markdown",
"SQL"
] | 2 | Markdown | rogojagad/cerdas-cermat-Progjar | 54e6e7bbdca9da90dc30b59609287f7654c0dfd7 | 1e2da8b87e3c6385c85f6713127361fb5a70ed54 |
refs/heads/master | <repo_name>theleewise/React-Forecast<file_sep>/README.md
https://theleewise.github.io/React-Forecast/
<file_sep>/src/components/App.js
import React from "react";
import styled from "styled-components";
import Day from "./Day";
const AppWrapper = styled.div`
font-family: 'Helvetica', sans-serif;
margin-left: a... | 7c26ab7470a7b7df2d821d5c790b910b52a3eb71 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | theleewise/React-Forecast | d3e9cf4d0adc17064bb018829d26c557bf257330 | f909136d966dd7661ae26c0e7869dd312baebe56 |
refs/heads/master | <file_sep>-- Exercise 5 : sub-queries
-- 1. Show all employees, salary and the difference of average salaries of the company with id = 1
-- A.
SELECT * FROM roles;
SELECT * FROM companies;
SELECT * FROM employees;
-- B.
SELECT e.name, r.salary
FROM employees e
JOIN roles r ON (r.id = e.role_id)
GROUP BY e.name, r.sa... | 13ac16c3539c1b4f0bb8189e68f2960c19e75ba2 | [
"Markdown",
"SQL"
] | 23 | SQL | zballos/sql_exercises | c08e95f3a5a47d882cc3889aa36b2f993d8de521 | feff5ce5fa68b9063ff3439cad50bad191ca31e4 |
refs/heads/master | <repo_name>NanaAY/cs112_labs<file_sep>/README.md
# cs112_labs
Lab Submissions from Data Structures class
<file_sep>/lab05/List.h
/* List.h
* Name: <NAME>
* Date: Oct 9 2018
* Lab05
*/
#ifndef LIST_H_
#define LIST_H_
typedef double Item;
class List {
public:
List();
~List();
void append(Item it);
unsigned getS... | a2d89c9d55c25785ef858f2f55ecac00f8e62c21 | [
"Markdown",
"C++"
] | 10 | Markdown | NanaAY/cs112_labs | 41f0e48e5e529e31da2e3e4fbf41d1441d5181e5 | 139869f93e8ba58859f4a0379f6f59c32c5785d2 |
refs/heads/master | <file_sep>#ifndef STATS_H
#define STATS_H
/**
* This function returns the average over two integer numbers.
*
* @param a First number
* @param b Second number
* @returns The arithmetic mean of the two numbers
*/
float two_averages(int a, int b);
/**
* This function returns the average of an array of integers. ... | 963b66810bfbf7bd07f53273f1d2a2ce65c0fc6b | [
"C",
"Makefile"
] | 5 | C | macmahoni4/OperatingSystemsPA1 | 86adf2398cba9f8a5547833665055517dda0fb64 | d42d8ae6753bf558224f89058240419708e7556a |
refs/heads/master | <repo_name>qingyu24/programs<file_sep>/Core/ServerCore/src/core/detail/impl/socket/protocol/HeadLengthProtocol.java
/**
* HeadLengthProtocol.java 2012-7-9下午3:07:11
*/
package core.detail.impl.socket.protocol;
import java.nio.*;
import core.detail.impl.socket.*;
import core.detail.interface_.*;
/**
* @author ddoq
... | fc0f5c6757617bf296f5b9cf77cbb272214c523c | [
"C#",
"Java",
"SQL"
] | 156 | Java | qingyu24/programs | b8735b544bcd3a830a86dd7c9bb09b4f9a6c38d1 | bc48abc2d101027b8db58cadbc8181001611bf6d |
refs/heads/master | <file_sep>//
// UEQNetwork.swift
// USGSEarthQuakes
//
// Created by <NAME> on 1/26/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
import Foundation
typealias UEQNetworkCallback = (Result<Data, DataResponseError>) -> ()
class UEQNetwork {
fileprivate let session: URLSession!
init(session: URLSess... | abe6114397017ac7b76d602526045a4209bf088c | [
"Swift"
] | 10 | Swift | sreeruth/USGSEarthQuakes | c4b50c458f4ac2a32b6ce346c100d0c0c3278aa3 | d1dc72ed397821d9c3a3f2c4428e494265d93e97 |
refs/heads/master | <repo_name>erupothu/tutorial-microservices-gateway<file_sep>/student-service/src/main/java/com/tutorial/model/StudentEntity.java
package com.tutorial.model;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
... | b18554f3f97cc9fbe0f7e38addcd69284a9d3ea9 | [
"Markdown",
"Java"
] | 5 | Java | erupothu/tutorial-microservices-gateway | 666fb7a62f3889a9499eafe3117dac16b91407d1 | 6f99f3d9bdfca1e62a66f02c363dcc28c861b495 |
refs/heads/master | <repo_name>gvmikhailov/ORACLE<file_sep>/Уникальные клиенты из интервала переставште покупать в интервал.sql
SELECT DISTINCT(P_UID), TO_CHAR(MAX(ORDERS.CREATEDTS), 'DD.MM.YY') FROM HYBRIS.ORDERS
JOIN HYBRIS.USERS ON USERS.PK = ORDERS.P_USER
WHERE ORDERS.CREATEDTS BETWEEN '01.04.17 00.00.00,000000000' AND '31.03.18 23.5... | d0e9a5322d3a28806a27f63f5636e2c9e577a154 | [
"SQL"
] | 14 | SQL | gvmikhailov/ORACLE | e5aaa24d50eb8d54f012e3d8ae9eb60e58f844d8 | 316f8e1adc4e1bb5e2eee7c28e335facdcf0a55c |
refs/heads/master | <file_sep>package com.simplemobiletools.filemanager.extensions
import android.content.res.Resources
import android.graphics.*
fun Resources.getColoredIcon(colorId: Int, resId: Int): Bitmap {
val options = BitmapFactory.Options()
options.inMutable = true
val bitmap = BitmapFactory.decodeResource(this, resI... | 768b7d96f3cd7a2a23c79dcd23184a998a077afd | [
"Java",
"Kotlin"
] | 5 | Kotlin | SurvivingDeveloper/File-Manager-master | f0dbb5e37538ed651e9cd7e982eb889aea8cd75a | c33ea23ff33a7fb811e6b66306280330dcb2597f |
refs/heads/main | <repo_name>brenda1815/p-u3<file_sep>/app/Http/Controllers/CursoController.php
<?php
namespace App\Http\Controllers;
use Cursos;
use Illuminate\Http\Request;
class CursoController extends Controller
{
public function index(){
// $cursos= Cursos::all();
return view('curso.index', compact('cursos'))... | 5681082cc5a979bcf5a390aae25b8c2fea498f80 | [
"PHP"
] | 1 | PHP | brenda1815/p-u3 | a45ccd391d4ea6bb688e366da9c2182bbc2c8bd7 | c8092dbae12f7c16745edeca3a2f1e1bef992ac1 |
refs/heads/master | <repo_name>OnizukaJS/lab-react-ironcontacts<file_sep>/src/components/sortbypopularity/SortByPopularity.js
import React from 'react';
const SortByPopularity = (props) => {
return <button onClick={props.sortByPopularity}>Sort by Popularity</button>;
};
export default SortByPopularity;
<file_sep>/src/components/sortby... | 1ce4b083d06a0d07a9850f292135b55929c8c7b6 | [
"JavaScript"
] | 3 | JavaScript | OnizukaJS/lab-react-ironcontacts | 2439b587ce4e3178244af28d86eaa59415740fac | 8db4d588bc6deb642c3167fd8f53b99bde1f8f91 |
refs/heads/master | <file_sep>javascript: (function() {
var getFieldElement = function(fieldName) {
return $("doc-viewer table td[title='%FIELD%'] + td > div".replace("%FIELD%", fieldName));
};
var formatSql = function (query, params) {
if (!query) return "";
params = params || [];
var replaceAll = fu... | f219ae915f7c046b35d15896e598649a8f66ed0f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | petrkoula/kibanaSqlLogFormatter | 5ab049b792f79064b125669993feeed84ace3cad | 324069a4f029b080e47961c0c9ce4e6f523290c1 |
refs/heads/master | <repo_name>junqingchang/image-captioning<file_sep>/README.md
# Image Captioning Model.
Remember to change the File directory in the various python files please.<br>
Comes in two flavours. One model is the default one suggested by Yunjey at https://github.com/yunjey/pytorch-tutorial/tree/master/tutorials/03-advanced/ima... | 69f12035c26f9f0904dda084056e1211d8766fb9 | [
"Markdown",
"Python",
"Text"
] | 13 | Markdown | junqingchang/image-captioning | e281ed450eb63afc4284cb72fb732fc7f631c2d2 | f63b387e7aa61959b3d8305bda48509b519b1031 |
refs/heads/master | <file_sep>
#include "Apprifix.h"
void apprifix(){
int skt_fd;
if((skt_fd = socket(AF_INET, SOCK_DGRAM, 0)) == SOKET_ERROR){
fprintf(stderr, "erreur de la socket\n");
exit(SOCK_ERROR);
}
struct sockaddr_in addr/*, addr_bind*/;
memset(&addr, 0, sizeof(struct sockaddr_in));
//addr_exp.sin_family = 0;//h... | 7cb108850a18958a39e31e748a82cdb91acb26ba | [
"C",
"Makefile",
"C++"
] | 13 | C | Setsuna-F/reseau | 8cec74074529b65c1ca727e2884c1586dd54ff56 | f4b6b9b2e5ab0e0077746630e432c1c09d96b8df |
refs/heads/master | <repo_name>qingfengmy/puzzle<file_sep>/src/qingfengmy/puzzle/PrefHelp.java
package qingfengmy.puzzle;
import com.qingfengmy.childpuzzle.R;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;
p... | f3abe5bb511e677d915b6d558e971c1ca3862e93 | [
"Java",
"INI"
] | 8 | Java | qingfengmy/puzzle | c0cb7f2017f5eca6fabe1b0fce51d356002ebb7e | 9952cd96072a88b67be8a2657a1888b819adff28 |
refs/heads/master | <repo_name>basilfx/go-ble-berrylan<file_sep>/service_wireless.go
package berrylan
import (
"encoding/json"
"github.com/basilfx/go-ble-berrylan/spec"
"github.com/basilfx/go-ble-utilities/characteristics"
"github.com/basilfx/go-utilities/observable"
"github.com/go-ble/ble"
log "github.com/sirupsen/logrus"
)
//... | 583285a8c55fb2536bf56903df42c9098068465e | [
"Markdown",
"Go Module",
"Go"
] | 16 | Go | basilfx/go-ble-berrylan | a40c1e2d7f28b6a62d4f6e85dcc8ee34c82d1174 | 4fb642947a9849c570e0a1fdf8dd18a193a098d9 |
refs/heads/master | <file_sep>/**
*
*/
package com.tallkids.swimmeet.model;
/**
* @author Paul
*
*/
public class HeatModel extends Model {
}
<file_sep>package com.tallkids.swimmeet.app;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
@SuppressWarnings("serial")
public class SwimMee... | db87a8e82c96d7782a77b8fb24633f56149d483d | [
"Java"
] | 3 | Java | plovesm/swim-meet | 11e2ba6bf9bd31ded1c14ae581bfa06a32c680d5 | e83a9f8c2de193d1cba443060df601f922df647f |
refs/heads/development | <file_sep>import React from 'react';
const JS_LOADER = '[js-loader]';
class InfoScreen extends React.Component {
constructor(props) {
super(props);
this.InfoScreen = React.createRef();
if (this.props.source) {
this.sourceName = new URL(this.props.source).hostname.replace('www.... | f6418afe1cbac43652693093739c046be0332c75 | [
"JavaScript"
] | 9 | JavaScript | acedinstitute/swiper-app | 4d1e0530e270bcac18cf62562ca06e9fb576c8a8 | d5893942bd41a191cae50ee303d5b39609f5c358 |
refs/heads/master | <repo_name>ericmandel/pdflinks<file_sep>/PDFLinks.java
/*
*
* PDFLINKS: extract the links and the link-less destinations from a PDF file
* add URI and GoTo links to a PDF file
* usage:
* # list existing links and anchors in pdf file
* java PDFlinks [pdffile]
*
* # list existing links in pdf file... | 100193fa66ce4f76a7f4a1bede62f0ad50eef8fe | [
"Markdown",
"Java",
"Makefile",
"Shell"
] | 4 | Java | ericmandel/pdflinks | 17a14d1c45d0c305177d267271cd287f203ed268 | f63aff21dd9a4b631ff3dd94d3b973c20745b065 |
refs/heads/master | <file_sep># Pak3r
<file_sep>#!/usr/bin/env node
// require modules
const process = require('process')
const fs = require('fs')
const archiver = require('archiver')
const path = require('path')
const hasha = require('hasha')
require('yargs')
.scriptName('pak3r')
.usage('$0 <cmd> [args]')
.command('... | 91d71d35c3e97b3d32b62331c28ad1081bfbc383 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | a4t1/pak3r | 979a765d2dc5fe6058e334c6780bff6e6d62eea4 | 83b48c7098dc389c82cf5d9ce809c56e599a2fe9 |
refs/heads/master | <repo_name>nareshraj423/Java-Refactoring-to-Design-Patterns<file_sep>/text-helper-facade/src/main/java/com/textwrappers/adapter/WordImplReplaced.java
package com.textwrappers.adapter;
import com.definitionbuddy.entities.DictWord;
import com.textwrappers.entities.Word;
import java.util.List;
/**
* Solution two - if ... | 3226b69acc0712534015af4dc7992e9cb0012b2f | [
"Markdown",
"Java"
] | 20 | Java | nareshraj423/Java-Refactoring-to-Design-Patterns | e918af50daa8922ec545ccef9fc957a48b2a918c | eace33997b50acb7d009aea3d5c55f5b9e3e4a26 |
refs/heads/master | <repo_name>sergeyfrolenko/html5book-layout<file_sep>/gulpfile.js
const gulp = require("gulp");
const pug = require("gulp-pug");
const ejs = require("gulp-ejs");
const rename = require('gulp-rename');
const sass = require("gulp-sass");
// const cssnano = require("gulp-cssnano");
const concat = require("gulp-concat");
//... | f57d0254cbf42055178f094caf18ca0833457290 | [
"JavaScript"
] | 1 | JavaScript | sergeyfrolenko/html5book-layout | 4b02874739766e6191615c057e045307637937a6 | 9d7bc801f72db629fc1b3e6977119e92f07fb182 |
refs/heads/master | <file_sep># RansomwareAESPython
Simple python code for Ransomware - Which uses AES encryption for the files in specified folders
Make the changes to the paths depending on your OS (Windows/Linux)
**Use this for enducational purpose only**
<file_sep>#!/usr/bin/python
import os
from random import randint
from Crypto.Ciph... | 02a482a61ad5b5d5c3f6420b794083ba896880b0 | [
"Markdown",
"Python"
] | 3 | Markdown | AsifAhamad/RansomwareAESPython | b64ac0b8a8cb767035d1e184c968173ec6fb851c | 39b26a44de6c7d3f31471beb346dabf6ffd97784 |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Seeder;
use App\Match;
use App\Services\LolRequestService;
class MatchsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$lolService = new LolRequestService();
$result = $lolSe... | b88a06aff485983a24d9cd32f4466cc5575dabe5 | [
"Markdown",
"PHP"
] | 26 | PHP | mauriciopcj/if-gg | d6a69e59841b1cd6a510c173f14da0d03f946dd5 | c7a7155d136062cfa33f6469e63c8a61347ff248 |
refs/heads/master | <repo_name>Abbrave/CAN-panel<file_sep>/CANSignalControlPanel/Data/CANData.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/*
* CANData.cs 用于容纳CAN的收发的数据容器
*/
namespace CANSignalControlPanel.Data {
/*
* @Author: Yuanyifan
* @Create: 2017-5-6
*
* Send d... | 62ebe6015ed9ccbf7bd35628b2aa4c815a31ef34 | [
"JavaScript",
"C#",
"Markdown",
"INI"
] | 44 | C# | Abbrave/CAN-panel | b518af94ba0a14c8f831f313c01588de39a7684b | f112bca9a7df385c4c1f5d957f89e2c653b04358 |
refs/heads/master | <file_sep>//
// ViewController.swift
// RPS
//
// Created by <NAME> on 11/5/18.
// Copyright © 2018 New York University School of Professional Studies. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var appSign: UILabel!
@IBOutlet weak var gameStatus: UILabel... | 541ca00be1758058abe09fbb5d896ccb4db71360 | [
"Swift"
] | 3 | Swift | WS18SCA01-MarkMeretzky/RPS | 9a373b7f4a4406cb36442b0a244ce735032492d7 | de6605e96e71ea8cad70eecf004d25df1dbdac2c |
refs/heads/master | <repo_name>ravishankardubey/power-function<file_sep>/PowerFunction.c
#include<stdio.h>
#include<math.h>
int find(int, int, int);
long calcPower(int, int);
int calcMod(long, int);
void main(){
int x;
int n;
int d;
printf("Enter values of x, n & d : ");
scanf("%d %d %d", &x, &n, &d);
... | 4f8214a21d07f3232bd3835a1d0abfc6e1e3800a | [
"C"
] | 1 | C | ravishankardubey/power-function | 5c482a52ccb8edc7c3fae5032553074bbb9ed9e2 | bd37a1b4869afe5966f14d4135b3c0db8188a4eb |
refs/heads/master | <file_sep>#include <termios.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <curses.h>
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define BUFSIZE 4000 //размер буфера для считывания файла
int... | 468e074f30f20b3d90e0be5439a6a7c6597957df | [
"C"
] | 2 | C | avaterpro/learning | f68fbed98d99266d24384fff2d273b274ef69897 | 56854301c8eddb4067593a8e5a57ff0bf4df7bf2 |
refs/heads/master | <repo_name>iLtc/Advent-of-Code<file_sep>/2016/Day2Part2.rb
keypad = [[nil, nil, 1, nil, nil], [nil, 2, 3, 4, nil], [5, 6, 7, 8, 9], [nil, 'A', 'B', 'C', nil], [nil, nil, 'D', nil, nil]]
currentY = 2
currentX = 0
lines = Array.new
while(true)
temp = gets.strip
if temp.empty?
break
end
lines.push(temp)
en... | 9eeae18a286819a41652e202238d66be14dfb7e7 | [
"Ruby"
] | 6 | Ruby | iLtc/Advent-of-Code | 7135ae693c9a80e319dc5f7fb6428dbef31c6fde | d52092012a85faacd812295eac8e2a38c348cb3c |
refs/heads/master | <file_sep><?php
// Get latest posts by author //
$author_posts = 'https://api.steemjs.com/get_discussions_by_blog?query={"tag":"'.$author_input.'","limit":"1"}';
$file_get_author = file_get_contents($author_posts);
$json_author = json_decode($file_get_author, true);
foreach ($json_author as $author_latest_... | 2d23cbdc2aa3a94cd68c7d4c528fa8681ba144bf | [
"PHP"
] | 2 | PHP | tyraelll/Steem-checker | 93a96669c4fe48cec763a5fb081764e01e96ae61 | 291fc62a0d34d534fdb651d52e31e65acce101a5 |
refs/heads/master | <repo_name>magmkri/MCTS-with-NN<file_sep>/HexManager.py
from GameManager import GameManager
from copy import deepcopy
import networkx as nx
from math import sqrt
import matplotlib.pyplot as plt
class HexManager(GameManager):
def __init__(self, size, frame_rate, P):
super().__init__(P)
self.siz... | c559445e514ca30e87b93ba3e1083352203a9c20 | [
"Markdown",
"Python"
] | 2 | Python | magmkri/MCTS-with-NN | 9dce9712d8d9d36a8cb2129058b8f056dc384fa4 | 27d67b5698ed7ed7c1edf4390674be0c6d888938 |
refs/heads/master | <repo_name>odb2/JSFunction_UnitTest<file_sep>/README.md
# JSFunction_UnitTest
## Table of Contents
* Task
* How to Run
* Solution
* How to Run
* Test Cases
## Task
1. Write a javascript (ES6) function that takes a single argument of an array of strings,
and returns the total number of repeated strings. For instance,... | f2ea8b8b821541e92d59983e2b93000392f4b8ce | [
"Markdown",
"JavaScript"
] | 2 | Markdown | odb2/JSFunction_UnitTest | f6906e1a2acc8ab11960ff42113adcb5d28fa206 | f488c6fdfb9bf9605111a821fdba203b7120df19 |
refs/heads/master | <file_sep>import React from "react";
import { connect, } from "react-redux";
import Stick from "./Stick";
const StickList = ({ sticks }) => (
<ul>
{ sticks.map( t =>
<Stick key={t.id} {...t} />
)}
</ul>
)
const mapStateToProps = (state) => {
return { sticks: state.sticks, };
}
export default con... | b3cc2a79bdccddd4e7054912f2d010bb6e28222b | [
"JavaScript"
] | 1 | JavaScript | baardvark/redux-stickyNotes | 1fe9e323fbfeac9ee713774ce295998eb275990e | f9c25484e9635ed1caf92bfb4c5f75b4b4304d61 |
refs/heads/main | <repo_name>hanapp-cz/memory-game<file_sep>/src/js/Card.js
export default class Card {
constructor(id, name, img = '', text = '') {
this._id = id;
this._name = name;
this._img = img;
this._text = text;
}
get id() {
return this._id;
}
get name() {
return this._name;
}
get img() {
... | ebcda4c5b053f09c1559e4d698bc310f511ae4b0 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | hanapp-cz/memory-game | 04de21e63ab5a7d1a56e8aeccb82e33eff8db44f | 8798e35ca85b7181400fcbd659e5a3c8b5d864fe |
refs/heads/master | <file_sep>import React, { useRef } from 'react';
function TableRow({ piece, index, onTableRowClick }) {
const tr = useRef(null);
const onRowClick = () => {
const { previousSibling, nextSibling } = tr.current.parentNode;
const payload = {
genre: previousSibling.innerHTML,
artist: tr.current.inn... | 18e3f02f43c13017571c1638b20d818766631257 | [
"JavaScript"
] | 2 | JavaScript | mustsee/electro-admin | 8fe33c6ff4d70f01784dc2b518e161262c8e65a0 | 39052da7c7e068ae79d06df26a4110e79761adec |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.