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><?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use AppBundle\Entity\Advert;
class DefaultController extends Controller
{
public function indexAction(Request $request)
{
return $this->render('defa... | f6e63311f7e5ef0c51c8b24cdf766329b0e149dd | [
"Markdown",
"PHP"
] | 3 | PHP | Burdy777/symfony- | 86558caf19ab662917686021d73712842173378d | 07db272c03943b65558c18509548cf1e4c9f30aa |
refs/heads/main | <file_sep>import { Route, Switch } from 'react-router-dom';
import Account from './pages/Account';
import AuthRoute from './pages/AuthRoute';
import ForgotPassword from './pages/ForgotPassword';
import Home from './pages/Home';
import Invite from './pages/Invite';
import Landing from './pages/Landing';
import Login fro... | ae6fd5bd21d5240e278c06567b779f4cd7570b65 | [
"JavaScript"
] | 3 | JavaScript | hoseinABH98/discord-client | e1a073454e089352150d1f0f7fd6a6051e10a050 | 373c43dc9865bd0703b4a8b798ce19d48c9a6eb8 |
refs/heads/master | <repo_name>ashrafemp/smartlearningdesktop<file_sep>/src/app/Home.java
/* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package app;
import Decoder.BASE64Decoder;
import Decoder.BASE64Enc... | c22b0c27b72c5291bfc6ddfcaeb1f00a7789409f | [
"Java"
] | 1 | Java | ashrafemp/smartlearningdesktop | 24aa1b695b6093ee3922190d93ab45d98d2f8776 | f3c979251a451f38149fef079abd7ab3fc416b46 |
refs/heads/master | <file_sep>package com.practice;
import java.util.Scanner;
public class Evenorodd {
public static void main(String[] args) {
int n;
System.out.print("enter any number");
Scanner sc=new Scanner(System.in);
n=sc.nextInt();
if(n%2==0)
{
System.out.println("enter number is even"+n);
}
else
{
Sy... | 80459faffd7ec5340b56e8ce0d2cee2a39a90741 | [
"Java"
] | 9 | Java | pranitha-mandadi/pran | cc923be999efe935776143df72af9a58ff0194e8 | 8616331c4431c4b9c33d98e5e7973c7b58228771 |
refs/heads/master | <repo_name>esthercuan/cssi-3-javascript-warmup<file_sep>/answer_key.js
// -- DAY 3 ANSWER KEY: Code Writing --
// 1. Write a function called myName that simply returns your name as a string.
// -- Store that string in a variable called thisIsMyName
// -- Log the value of that variable to the console.
function myName(... | 44140f173f080641576669a947ccc6394747e768 | [
"JavaScript"
] | 1 | JavaScript | esthercuan/cssi-3-javascript-warmup | ce5eebb6753fa7cead8acc5306e8d343264e3d14 | f0c9af06ea3eb4c22385289a4bff538e2b4dc908 |
refs/heads/master | <file_sep>package gui;
import javax.swing.*;
public class ComboBoxEditor extends DefaultCellEditor {
JComboBox box;
public ComboBoxEditor(DefaultComboBoxModel comboModel) {
super(new JComboBox(comboModel));
}
}<file_sep>package helper;
import DAOHibernateModel.DAOCity;
import DAOHibernateModel.DA... | 90b91ecd03273b58dde283ac0339ea575d5f3fe3 | [
"Java"
] | 5 | Java | blitz156/SUBD | 98d0364eaac00f7046014367e84efcb264cc7b8e | 16ec45819322c1db019d18b379417660a61f085b |
refs/heads/master | <file_sep>package operations
import (
middleware "github.com/go-openapi/runtime/middleware"
//"cassandragenrest/models"
"github.com/stevef1uk/cassandragenrest/models"
"github.com/gocql/gocql"
"fmt"
"os"
"log"
)
/** func Search(params GetAccountsParams) middleware.Responder {
payload1 :... | dfe510c2b08321699c5354059afc75496d1a55d3 | [
"Go"
] | 1 | Go | stevef1uk/cassandragenrest | aa4cbb24812d450bdf231de2da6acde30e199039 | 9e20e62ecde28a6bd1b4739e12d99dc92b8c8971 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Task;
class TodoController extends Controller
{
//
public function __construct(){
return $this->middleware(['auth']);
}
public function index(){
$tasks=Task::latest()->get();
r... | f7d29933e9a52e220080b322b0f2b46d1f94c3c6 | [
"PHP"
] | 3 | PHP | BlertaAhmeti/todo_app | d6fa43363906e42c8ebcf24a13b5f17390e81b2a | b6b15d5d2ab9bd542b3f7383673c1e7f9e1dcfcb |
refs/heads/master | <file_sep>server.port=9003
spring.cloud.stream.bindings.input.destination=usage-cost<file_sep>server.port=9001
spring.cloud.stream.bindings.output.destination=product_details_search
<file_sep>package com.cliq.sample.productsender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.bean... | ef24bd3e0ff72ec08e206ca046c3baa73e9135c4 | [
"Markdown",
"Java",
"INI"
] | 5 | INI | contact2amit/EventDrivenSearch | ab9e7aba345b3eea7e88ac4bae56adc52a15ec62 | e29eb70d900b783de96dff5f37d5a5ce90cd08d4 |
refs/heads/main | <repo_name>ndY0/torrjs-server<file_sep>/src/interfaces/genchannel.ts
import { GenServer } from "torrjs-core/src/interfaces/genserver";
import {
keyForBaseMiddlewares,
keyForNamespace,
keyForGateMap,
} from "../utils/symbols";
import { SocketIoMiddleware, SocketMiddleware } from "../utils/types";
abstract class G... | b1722847a423d3f6544191944f94e7b24c0a8f06 | [
"Markdown",
"TypeScript"
] | 12 | TypeScript | ndY0/torrjs-server | 49354bac10b5d8f0e0c39fc7330e0c569c3d52d9 | e09f474374e265163b8de21fc91e6de4818fc4f3 |
refs/heads/master | <file_sep>package controller
import "github.com/gin-gonic/gin"
func Index(c *gin.Context) {
c.String(400, "post to /push")
}
| 6062da38e108a8d6e47f503e47c1f910cfa55065 | [
"Go"
] | 1 | Go | ttys3/wechat-work-message-push-go | d955f65c5f3a48fb4ccbdac6cbc8a8a2070f3cf5 | c4ba7237c380e4d98213210052382aaa06480b4b |
refs/heads/master | <file_sep>var http = require('http');
var cheerio = require('cheerio');
var endpoint = 'http://www.mollymoon.com/flavors/seasonal';
http.get(endpoint, function (res) {
var noaaResponseString = '';
console.log('Status Code: ' + res.statusCode);
if (res.statusCode != 200) {
... | ededaa9060a15719c1b6313a643305f6d9d2ef20 | [
"JavaScript"
] | 2 | JavaScript | hsuhanooi/molly-moon-alexa | e6c461c4a942db0ff1ea3f97480b03232eebe200 | fbd78b89bbbf587140ca61acd4af692a637d7009 |
refs/heads/master | <file_sep>export const SET_USER = "SET_USER";
export type SET_USER_ACTION = {
type: typeof SET_USER,
user: TUser,
};
export type TUserAction
= SET_USER_ACTION;
export type TUser = {
name: string,
};
export type TUserState = {
user?: TUser,
};
<file_sep>import { TBoard } from "../../views/desktop/board/boar... | 783228b79d353d98d96081735c30b256c86182f2 | [
"JavaScript",
"TypeScript"
] | 21 | TypeScript | proProbe/retropoker | e4131b91c7576ce5d658c3b528ab0f08fb952c17 | 1034e23b575943ec5dfcf84f341f55a85a2a834f |
refs/heads/master | <file_sep>import networkx as nx
def noedges():
noedges = nx.DiGraph()
noedges.add_nodes_from(range(3))
return noedges
def directed():
directed = nx.DiGraph()
directed.add_nodes_from(range(4))
directed.add_edges_from([
(0, 3),
(1, 0),
(2, 0),
(2, 1),
(3... | 4fc09244c93d0b56f056477d5c274a8d35d41561 | [
"Markdown",
"Python",
"Text"
] | 26 | Python | baldassarreFe/torchgraphs | ae42b917c0494c2201743f9c420cff466156e132 | 4cae6a6e2831e49c9b0f327faf3710ab553c43e2 |
refs/heads/main | <file_sep># Google Software Product Sprint
This repo contains <NAME>'s portfolio and SPS projects.
<file_sep>package com.google.sps.servlets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.... | adf5230f721191077835feb7bf0ca6fa216419a4 | [
"Markdown",
"Java"
] | 2 | Markdown | tyjedz/my-portfolio | a0962fbede149a704cf90a4bfa601df7e9b5f55f | 2b9bd5d9bee6ca854a0d8461898b0c7e9dfdca08 |
refs/heads/master | <file_sep>vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|14 Mar 2016 12:57:02 -0000
vti_extenderversion:SR|12.0.0.0
vti_author:SR|STUDENTS\\itjblund592
vti_modifiedby:SR|STUDENTS\\itdomara586
vti_timecreated:TR|01 Mar 2016 11:35:58 -0000
vti_backlinkinfo:VX|
vti_nexttolasttimemodified:TW|08 Mar 2016 11:14:04 -0000
vti... | 5616a401b274998f5622c5adb21e4e3505b612f2 | [
"PHP"
] | 13 | PHP | thecraicbear/TheRestaurantProject | 8af2ce46d14dfed0de0e7c36e25680df3acab796 | 4b3c6068f0cad5ed2c6ff19f43b395766f59bcb8 |
refs/heads/master | <file_sep>(function ($) {
"use strict";
Drupal.behaviors.customBehavior = {
// perform jQuery as normal in here
attach: function (context, settings) {
if (!(context instanceof HTMLDocument)) return;
$(function () {
$(".feedback-slider").responsiveSlides({
... | 4f290d4ca62973cebe0d4991271456888d1d3b26 | [
"JavaScript"
] | 1 | JavaScript | Svetlana712/plastic | 127b18f37bfbcf51d5b2220af6e2d5b5fbb44cfc | 98b534804814380d1dd9f25d8d2cabb24c95f472 |
refs/heads/master | <file_sep>"""mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | d4be93ba250fde9295292591157c287cc7c758f5 | [
"Markdown",
"Python",
"JavaScript"
] | 15 | Python | Prolht/mysite-todo-list | bc2611bba14e2a2bc2648b11e367d2449c6df65d | 151abb86d566300e49110aa51693be97e20ebd50 |
refs/heads/master | <repo_name>beingmartinbmc/Employee-Full-Stack<file_sep>/frontend/employee-manager-app/src/app/components/create-employee/create-employee.component.ts
import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { EmployeeSe... | 71c6c165a4301340ae9e07b71d0834482efa8d11 | [
"Java",
"TypeScript"
] | 5 | TypeScript | beingmartinbmc/Employee-Full-Stack | e7b4acc058d2f989be0dacdfa18ed2dd05ce5751 | ad210308e8526a946588ec48cbc0043c3f8efa6f |
refs/heads/master | <file_sep>Magento 2.x support:
=====================
The repo for Magento 2 version of our module is available in the new repository of the module : [https://github.com/onilab/magento-2-google-api-chart-fix/](https://github.com/onilab/magento-2-google-api-chart-fix/).
About this module:
===================
https://o... | 806be494131ec712fa9b61f09c2a159aa80da92a | [
"Markdown",
"PHP"
] | 4 | Markdown | onilab/magento-1-google-api-chart-fix | a6ecc00f34df3a8c5a06b7e046725b0f0a121997 | 7f538752119fe9d7cf00ea6aaa6f6b03e11e9805 |
refs/heads/master | <repo_name>tduboys/beamium<file_sep>/src/lib/mod.rs
use std::error::Error;
pub mod transcompiler;
pub fn add_labels(line: &str, labels: &str) -> Result<String, Box<Error>> {
if labels.is_empty() {
return Ok(String::from(line));
}
let mut parts = line.splitn(2, '{');
let class = parts.next().... | 03ec7f90c44f91c38ed3aca792522035cb9c0b97 | [
"TOML",
"Rust",
"Dockerfile"
] | 6 | Rust | tduboys/beamium | 5bbb18471bde8a5182a5ace73bf8510ff1ffe6ad | 0e17f1fbec010703c12fdb72dd7fe7db87b0333d |
refs/heads/master | <repo_name>dbdoyle182/CodeVents<file_sep>/src/features/user/UserDetailed/UserDetailedPage.jsx
import React, {Component} from 'react';
import {Button, Card, Grid, Header, Icon, Image, Item, List, Menu, Segment} from "semantic-ui-react";
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
impo... | 17deb588bbf31d6d0186c72c7655e3fecd9d722b | [
"JavaScript"
] | 1 | JavaScript | dbdoyle182/CodeVents | dd63cd5b9310fafe2ae0ab9acbbf7734ab4515fc | 233cd5632283b11c91570986e7328d70988ef1e7 |
refs/heads/master | <file_sep>/*
* Copyright (C) 2016, 2017 Computer Graphics Group, University of Siegen
* Written by <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction... | 83c97e8cde9e0cfd0ba13c7467fe62ec489da9fa | [
"Makefile",
"CMake",
"C++"
] | 37 | C++ | insonifi/vr-maze | 15093b4b3ff0e7df970cc83315c016b43f67b257 | 70a9f92a1cc6d0dc8e99e0892a7694dea51edadd |
refs/heads/master | <repo_name>mpurohit88/express-uploader<file_sep>/build/precache-manifest.1619a51b3ba68be19578440bc5c10748.js
self.__precacheManifest = [
{
"revision": "c5a1ea7d33ba65bd928b9c578328518a",
"url": "/static/media/logo2.c5a1ea7d.png"
},
{
"revision": "ff853f5222254ee75e5b",
"url": "/static/css/main.1b0... | 170146699c72cf65ae550b618893bd005011e144 | [
"JavaScript"
] | 1 | JavaScript | mpurohit88/express-uploader | 9a6d41a0559a580e506f9ae27ff1a88770f7b67a | 0d0a71e029532aabf09b38bbfe4d550858d83499 |
refs/heads/master | <file_sep>//Dependencies - default
var express = require('express');
var bodyParser = require('body-parser');
var cors = require('cors');
var morgan = require('morgan');
var mongoose = require('mongoose');
var session = require('express-session');
var passport = require('passport');
var GoogleStrategy = require('passpo... | cd8c7c475d36dfbac9e5d3e6665afc882198386d | [
"JavaScript"
] | 6 | JavaScript | vijaypatha/mymoodwall | c69333dee7a65141a8d77a82825d0418e9bbb159 | 9aae11a62ada125b020008273a78e673dfbe1e0f |
refs/heads/main | <repo_name>slteksystemsllc/logstash<file_sep>/automated_install.sh
#!/bin/bash
cd /opt/
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y wget
sudo wget https://raw.githubusercontent.com/slteksystemsllc/logstash/main/scripts/prereq.sh && sudo bash prereq.sh
sudo wget https://raw.githubuserco... | 6776390be43002dfda7b702795be2db57660e410 | [
"Markdown",
"Shell"
] | 3 | Shell | slteksystemsllc/logstash | ae4cc5736f525baec4c50817792d63bdb6d8b13f | e7e59f6598c31ce17b1d1541b22203c1f413bf97 |
refs/heads/master | <file_sep># phalcon-test-helpers
TestUnit base and mocking requests
<file_sep><?php
/**
* Extends Phalcon's base class for functional tests
*
* @author <NAME> <<EMAIL>>
* @since 1.0
*/
namespace canis\phalcon\testing;
use Phalcon\Test\FunctionalTestCase as BaseFunctionalTestCase;
use Phalcon\Mvc\Application as P... | 32e32df7e5a399e8926646553ac38482cf0ab4d3 | [
"Markdown",
"PHP"
] | 2 | Markdown | canis-io/phalcon-test-helpers | 543d6777e1f6d4971a2f4291c14c4fe6b1728a3f | 7c5a1c0475a2556ca2da3a9cc7a5b1c689ebc8fb |
refs/heads/master | <file_sep>import sys
import os
curpath = os.path.abspath(os.path.dirname(__file__))
rootpath = os.path.split(curpath)[0]
print(rootpath)
sys.path.append(rootpath)
import torch
#import matplotlib
import os
#matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
import shutil
i... | 81a43dc312d177f9cb3ad4fc53e88843bce2613e | [
"Markdown",
"Python",
"Shell"
] | 16 | Python | 1006927966/multi_label-classification- | dd8acfd7a65a4017dbf73267a7e5ec8dc64eb38e | 055aec013b8e39da655d576df28ea1b54ac91baa |
refs/heads/master | <file_sep># Name: <NAME>
# Course: CPE 202
# Instructor: <NAME>
# Assignment: Lab 8
# Term: Fall 2017
import unittest
from sep_chain_ht import MyHashTable
class TestLab8(unittest.TestCase):
def test_insert(self):
h = MyHashTable()
h[12] = "dog"
self.assertEqual(h[12]... | 133e5d33603ec662873527720b338ec3ee248af6 | [
"Python"
] | 2 | Python | tylrdvs277/HashTable | b867d6cde5cc2db51be0c92ede48e1dab442c863 | 987e729e8803a55f29fc5ecece1cd334811ebf4b |
refs/heads/master | <repo_name>abagali1/tictactoe<file_sep>/src/Driver15.java
import javax.swing.*;
public class Driver15{
public static void main(String[] args){
JFrame frame = new JFrame("TicTacToe");
String d = JOptionPane.showInputDialog("Choose difficulty: 0(less impossible), 1(impossible)");
if(d == nul... | b7812f2d3040f7c3b4b681e3d46077da000cc7c6 | [
"Markdown",
"Java"
] | 2 | Java | abagali1/tictactoe | ab55ecc12be9e683a4ffacf39e668aa3bfd23a84 | c9f724c050a03854f371420687af1017541dc05d |
refs/heads/master | <repo_name>cryptobuks/item-auction-auction-blockchain<file_sep>/decent-auction/addmoney.php
<?php
include("functions/functions.php");
$base_url="10.1.18.33:3000/api/";
$access_token="<KEY>";
// $urlitem="10.1.18.33:3000/api/Item/1?access_token=<KEY>";
// $getitem=callAPI('GET',$urlitem,false);
// echo... | 6fa42e23aada6ce75999ac7441a905ef195f2d0b | [
"JavaScript",
"Markdown",
"Text",
"PHP"
] | 13 | PHP | cryptobuks/item-auction-auction-blockchain | 6f4ca8702442f94ac6ad135a843f45d4c71f9ae7 | 78531b67c4f878c621c1ade206fa251f5e73c934 |
refs/heads/master | <repo_name>gubo123/wf<file_sep>/Workflow/Controllers/HomeController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Workflow.Controllers
{
public class HomeController : Controller
{
public ActionResult Index(int? id)
... | 0d0933a4f9e3ccf080c875524f45cde65df06bcd | [
"C#"
] | 2 | C# | gubo123/wf | 4d5cdf3385ad5da3bd56bd5b32e33f3c3c7eee5c | 2ba8b03af5872ac13003e4a01dbf29f7c728539b |
refs/heads/master | <file_sep>import React from 'react';
import { connect } from 'react-redux';
import RadialAxis from './RadialAxis';
import AngularAxis from './AngularAxis';
import RadialPolygon from './RadialPolygon';
import { normalizeData } from '../helpers/numericHelpers';
function mapStateToProps(state) {
return {
width: sta... | eb3066c67127ef9199121a3394272b809d0612c3 | [
"JavaScript",
"Markdown"
] | 20 | JavaScript | mmmaaatttttt/new-favorite-songs | fdf3bb401d5c9d7ef71b251ccb135dfa411c3cc2 | d3bc1d70701be362cc68432ee44359fa5511707f |
refs/heads/master | <repo_name>apcragg/ECE306-Car<file_sep>/serial_interrupts.c
//============================================================================//
// File Name : serial_interrupts.c
//
// Description: This file contains the ADC ISR code
//
// Author: <NAME>
// Date: March 2016
// Compiler: Built with IAR Embedded Workbench V... | a5f6cbedf6307007ccd604a3495f227c2ce4989f | [
"C"
] | 33 | C | apcragg/ECE306-Car | 8c0bc5b8d3f2b74b57b42e5b2f24f81d1456456d | 78019ed40e58e86252c26994afb1234e4b115c7d |
refs/heads/master | <repo_name>graehl/subword-nmt<file_sep>/apply_bpe.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: <NAME>
"""Use operations learned with learn_bpe.py to encode a new text.
The text will not be smaller, but use only a fixed vocabulary, with rare words
encoded as variable-length sequences of subword units.
Refere... | 12d14cdf3c51bfa7f62285c2de37c98fc5f8e7c1 | [
"Python",
"Shell"
] | 9 | Python | graehl/subword-nmt | 1af13a1da64312c674d36e4dc6fbf9e36bf6cdc8 | e58b535c85a8fe7171c508866755911cb0e9bab6 |
refs/heads/master | <file_sep>{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"baseUrl": "src",
"paths": {
"@storage/*": ["storage/*"],
"@cache": ["storage/cache/cache.ts"],
"@localStorage": ["storage/local/local.ts"],
"@gqlClient": ["api/g... | bc241a839a86f29a5c1eaf0daec13b5057f1ced7 | [
"YAML",
"Markdown",
"JavaScript",
"JSON with Comments",
"TypeScript",
"Dockerfile",
"Shell"
] | 26 | JSON with Comments | Wyvarn/space-xplorer-client | f31dae70d7361a34b64e56562b6d9be7a6093c55 | aa34f3c4e5c15a2924e00171596474e04fcbf0e9 |
refs/heads/master | <file_sep>def rscript(file)
sh "cd analysis && Rscript #{file}"
end
namespace :data do
desc 'Fetch data from the userbase-stats MySQL database'
task :fetch do
sh "bin/fetch userbase-stats data"
end
desc 'Collect the profile lengths of the processed samples'
task :length do
sh "bin/body-length data... | b301b72051418c7f048800062e8d6c4f828e5866 | [
"Markdown",
"Ruby",
"R"
] | 25 | Ruby | DmitryKey/nlp-spam | 62549f095bbdcb5f857ad03c5bea5f8976409109 | 8b9458b546d8fb34c05bf5d1950be9b625e05654 |
refs/heads/master | <repo_name>anttisalonen/sscene<file_sep>/sscene/Model.cpp
#include "Model.h"
#include <stdexcept>
#include <iostream>
#include "HelperFunctions.h"
using namespace Common;
using namespace Scene;
namespace Scene {
Model::Model(const std::string& filename)
{
mScene = mImporter.ReadFile(filename,
aiProcess_CalcTan... | 0e5e24c8e645e13746fa0316f4655290409ea01b | [
"Makefile",
"C++",
"Shell"
] | 9 | C++ | anttisalonen/sscene | 3e9ad245a3dbf5b6e1dc30e6587a18df13e15cb4 | 0ec5480a612490a796ea7967195f5c04ed1bbc38 |
refs/heads/master | <file_sep>'''
This script can download posts and comments from public Facebook pages. It requires Python 3.
INSTRUCTIONS
1. This script is written for Python 3 and won't work with previous Python versions.
2. You need to create your own Facebook app, which you can do here: https://developers.facebook.com/apps D... | 6e74dd574806fc0cb4365679cd4543c1d2da08b2 | [
"Python"
] | 1 | Python | ivofurman/fb_scrape_public | a8d59e15e783be7624cdd78a958eaa4039563869 | 0c95a98db847add0492a2b967349a2d4ab556e45 |
refs/heads/master | <repo_name>dyakonoff/dash-clinic<file_sep>/modules/web/src/com/haulmont/sample/petclinic/web/widgets/FlyingPikachuWidgetEditor.java
package com.haulmont.sample.petclinic.web.widgets;
import com.haulmont.addon.dashboard.web.annotation.WidgetParam;
import com.haulmont.cuba.gui.WindowParam;
import com.haulmont.cuba.gui.c... | 80f1bc6720c6433777fe644559eb8c4d81338c2e | [
"Java"
] | 1 | Java | dyakonoff/dash-clinic | 875e3b472c6053a009a277d3f4dd8395bdb15b44 | 6819f997371e1063589746192e2c34bd487f963d |
refs/heads/master | <repo_name>marissa-shaffer/node-api2-guided<file_sep>/index.js
const express = require("express")
const usersRouter = require("./users/users-router")
const welcomeRouter = require("./welcome/welcome-router")
const server = express()
const port = 4000
server.use(express.json())
server.use(usersRouter)
// create ... | 388cb78df46a51ed8c8647538c4a06f633f61c75 | [
"JavaScript"
] | 1 | JavaScript | marissa-shaffer/node-api2-guided | ade6dafdb99d752cf36fd2515847fcf74731dee1 | bf76beb0640ffe7d0a7dacbd73148e76e75df4ba |
refs/heads/master | <repo_name>Habashi94/NC-News<file_sep>/controllers/comment-controller.js
const {
updateCommentById,
removeCommentById
} = require("../models/comment-model");
exports.patchCommentById = (req, res, next) => {
updateCommentById(req.params, req.body)
.then(comment => {
res.status(200).send({ comment });
... | 6844393f84ff08577b7dff1ab413eb428b3dd56f | [
"JavaScript"
] | 7 | JavaScript | Habashi94/NC-News | 3160d2dd0fba562c137f3803d99dce532bdf515f | 930f406a7b256e567e2a1ea7496172cdb96e64bb |
refs/heads/master | <repo_name>RCiesielczuk/backpack-ios<file_sep>/Example/Backpack/Views/CollectionView Cells/IconsPreviewCollectionViewCell.swift
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2018-2020 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... | fe337f01947c6263aa4c12f942c21f4adff99785 | [
"Swift",
"Ruby",
"Markdown"
] | 19 | Swift | RCiesielczuk/backpack-ios | b0a6946e2cdc641d05dce2d06b0e23f7ef1eb69c | 445ed2597e08e4ad655edf775a469590598782b4 |
refs/heads/master | <file_sep>package com.lzj.spring.pojo;
import com.lzj.spring.interfaces.Quest;
/**
* Demo class
*
* @author drose
* @date 2019/5/21 22:00
*/
public class KillDragonQuest implements Quest {
@Override
public void commonQuest() {
System.out.println("执行铲除恶龙的任务");
}
}
<file_sep>package com.lzj.spr... | 0850890cec3e2c690d93ce1e0a0657f703d71e0d | [
"Java"
] | 3 | Java | mylzj/spring | 7bb30395ae74dd7bf7ac14e4de077d7b4a685051 | fdac18e03dfe2a758e116d11eff365243d074541 |
refs/heads/master | <repo_name>Swanand-Kulkarni94/Bokeh_Python<file_sep>/Bokeh_BarPandasNested.py
#Bokeh Python
"""
Link
https://bokeh.pydata.org/en/latest/docs/gallery/bar_pandas_groupby_nested.html
"""
from bokeh.io import show, output_file
from bokeh.plotting import figure
from bokeh.palettes import Spectral5
from bokeh.... | 25e4fb9265d6c76a905c7ce2c19cbca0cb318815 | [
"Python"
] | 12 | Python | Swanand-Kulkarni94/Bokeh_Python | 97fdb42a1f6bbdc99a4678273f398aa4ba8c37f7 | df30ef61b953bed9a228b8c14f927b2805846f9f |
refs/heads/master | <repo_name>xicheng87/Redbase<file_sep>/src/pf_test2.cc
//
// File: pf_test2.cc
// Description: Test PF component
// Authors: <NAME> (<EMAIL>)
//
// 1997: This file was created to utilize the statistics manager to ensure
// that the buffer manager was performing correctly. Note that you must
// compile the p... | 9ba4a6af783d268e4db957ae2548dc75de171679 | [
"Markdown",
"C++"
] | 13 | C++ | xicheng87/Redbase | 97ae875d4f58d2b1ee3811d2f2706428e8c9de37 | 24c742348bf240370594c27ecc6ad44ea68d4bfc |
refs/heads/master | <repo_name>BorisUp/instaphoto<file_sep>/app/controllers/pages_controller.rb
class PagesController < ApplicationController
def landing
end
def about
end
end
| 7e37f6749bf6e9f41ae040d0b5df1dd50a0f5e07 | [
"Ruby"
] | 1 | Ruby | BorisUp/instaphoto | 746288bf062cc9b5569ab902d0b5fc4be136c943 | 3382ca438ed3df36ee23bc52a4f83c9161053dea |
refs/heads/main | <file_sep>import folium # to visualize data that’s been manipulated in Python on an interactive leaflet map.
import pandas # so we can use our csv file
data = pandas.read_csv("Volcanoes.csv") # Loads the csv containing details of the volcanoes
lat = list(data["LAT"]) # pulls the Latitude from the data variable... | 9353f5edcf163affb7e0a7a8a4aa945d1a16bd60 | [
"Markdown",
"Python"
] | 2 | Python | Thealltommo/US_volcanoes | c2d6f1fe8bb1b2866a15b2900f4240c2566f0e6e | 7912f8c68f3030e941adca78025a38b86ba67abb |
refs/heads/main | <file_sep>import pathlib
from pathlib import Path
import numpy as np
from sklearn.preprocessing import LabelBinarizer
import torch
from torch.utils.data import Dataset, DataLoader
from tqdm import tqdm
class MelspMetricDataset(Dataset):
def __init__(self, melsp_dir: pathlib.PosixPath,
speakers:... | f310958ff25007bf9081f798c427999be4a07ae6 | [
"Python",
"Text"
] | 7 | Python | kargenk/melsp_metric_learn | ffdd9a8970909fe2537ce7ccd134b450d809a283 | 89905a68a533e17fca084379cc771b876ddc0bf4 |
refs/heads/master | <repo_name>gunyoung1123/test2<file_sep>/spring1107/src/ex3/AfterThrowAdvice.java
package ex3;
//예외도 일종의 로그이다.
//반환되고 실행되는 부분에대한 예외를 공통관심사항으로 처리하고 싶을 때
public class AfterThrowAdvice {
//JoinPoint jp생략....
public void commThrow(Exception ex) {
System.out.println("예외 메시지 : "+ex.getMessage());
}
}
<file_sep>... | 50faf4f38f4af8ada1f29c0f8ecf50a57a0b18ef | [
"Java"
] | 7 | Java | gunyoung1123/test2 | a08fdd2454b80a605f779d77118a768b141abd1f | 5a5400ff1bbe0b129f01e4f0c09189fd69d8079b |
refs/heads/master | <file_sep>
class User:
def __init__(self,userid,posts):
self.userid = userid
self.posts = posts
class Post:
def __init__(self,postid,totalComment,totalNegComment,totalNegWord):
self.postid = postid
self.totalComment =totalComment
self.totalNegComment=totalNegComment
... | ab18e19ae1e8ebe405552619cf09d37403914fcf | [
"Markdown",
"Python",
"R"
] | 18 | Python | RahatIbnRafiq/NetworkAnalysisAndModelingCourseCodes | e383e1b5b277440e78ce7521ba6f061149a5d9f3 | 320abb18e5c0a0b802360c353e39813a1cf74b92 |
refs/heads/master | <file_sep>n, m = map(int , input().split())
result = 0
for i in range(n):
data = list(map(int , input().split()))
# 현재 줄에서 가장 작은 수 찾기
min_value = min(data)
# 가장 작은 수 들 중에서 가장 큰 수 찾기
result = max(result , min_value)
print(result) # 최종 답안 제출 | 663136e8aa8f4a73288584fdc51b6b3b7c4fecf1 | [
"Python"
] | 1 | Python | YkmKangMin/codingTest | b8f1892c33ff0904ed06dcb0c378b4700496c63f | 6ae8742f4f70f11c0edfdc6bb6dbacd2ede6462c |
refs/heads/main | <file_sep>// -------- MINI EXERCISE 1
// const isGoodDog = true;
/* TODO: Uncomment the line above then create a promise, haveTreat, that resolves
with the string 'Good dog; have treat'
if the above constant is assigned to true and and rejects with the string
'Bad dog; no treat' if assigned false.
*/
/... | db6b4bc9be02e9b81725f416fd6d1fd59db1ea07 | [
"JavaScript",
"HTML",
"Markdown"
] | 12 | JavaScript | emihhorn/codeup-web-exercises | 9d8dbe60d933237dc9645a85b273fcd6cf217fab | 1119ef360670207e0f172bbc292929cecac42582 |
refs/heads/master | <repo_name>pancheliuha/slider<file_sep>/source/js/app.js
(function($) {
"use strict";
var slider = require('./modules/slider');
if ($('.slider').length) {
slider();
}
})(jQuery);<file_sep>/README.md
#SLIDER
Node -v i used : 7.7.1
npm : v.4.3.0
Getting started:
1. clone this repo
2. ... | a7e18c4e649de8c3ba85557d968d75dbd9678c26 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | pancheliuha/slider | b03bd5e6f50969bb988a621421d3508e9b23bef8 | ca2f065162e1a702a0dc652c084031b4050d276f |
refs/heads/master | <file_sep>module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
module Paymate
class Return < ActiveMerchant::Billing::Integrations::Return
SUCCESS = "PA"
CODES = { "PA" => "Payment is approved",
"PD" => "Payment is declined",
... | a0ae5ee1c2d2d28ef88f2b8aee9b4a931ee9d88d | [
"Ruby"
] | 3 | Ruby | esb/active_merchant | 258936a306e65dc6bdf65ef3fe6f707e598b2d56 | 2b8fe95512f14c2079d6c3a17880bb624924f02b |
refs/heads/master | <repo_name>CartYuyDgs/PythonDemo<file_sep>/README.md
# PythonDemo
python小例子
<file_sep>/excel/main.py
import openpyxl
xlsl = "D:\code\python\excel\main.xlsx"
def main():
wb = openpyxl.load_workbook(xlsl)
print(wb.sheetnames)
ws = wb.active
print(ws)
print(ws['A1'].value)
for i in range(1,5,1):
... | 87022cd2bb3661600db417f255c11c8b75ca46b7 | [
"Markdown",
"Python"
] | 2 | Markdown | CartYuyDgs/PythonDemo | 574e289085990d17d3553ca966ec19226b255b1c | a2436c78b5cfa0e03194ade5652cd896c93f6533 |
refs/heads/master | <repo_name>HyperLLC/WebForms2BlazorServer<file_sep>/src/WebFormsToBlazorServerCommands/Migration/WebFormToBlazorServerMigration.Config.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Xml;
using CodeFactory.VisualStudio;
using Newtonsoft.Json;
namespace ... | f84378b84b491e220f49badb5b7e6f0623f3ffd2 | [
"Markdown",
"C#"
] | 32 | C# | HyperLLC/WebForms2BlazorServer | bb560dec68cb55998ff03c9c2573dc5cac61e4f1 | 0bfc4e89b8f0781bb6b072f16549db90b4324158 |
refs/heads/master | <file_sep>package Cinema;
import java.util.Scanner;
public class Cinema {
final static Scanner sc = new Scanner(System.in);
static int totalRows = 0, totalSeats = 0;
static int aRow = 0, aSeat = 0;
static int countTen = 0, countEight = 0;
public static void main(String[] args) {
try {
... | 072db7a57460a6d548bf2b8b7447d665ed9e8f33 | [
"Markdown",
"Java"
] | 2 | Java | Tejaswini-tikariha/Simple--Cinema-room | b11469340efaa543b31fa5af2770062e4e70725b | a42e7b13e7d4b989af0423bf00f4d16cf685720f |
refs/heads/master | <repo_name>ZHAOTING/WebDataMining_Kaggle<file_sep>/py/history/linear_ridge_regression.py
# 11.27 ver 1
# seems better
import os
import csv
import nltk
import numpy as np
from sklearn.feature_extraction.text import *
from sklearn.feature_selection import SelectKBest, SelectPercentile, chi2, f_classif
from sklearn.linea... | 15962301e000191b9ab568c8ac8758ecebd34e47 | [
"Markdown",
"Python"
] | 19 | Python | ZHAOTING/WebDataMining_Kaggle | a1401ae70759a43d638d85a785cfabb240503f93 | b84b5cbe9b355afc43bb871af91ef3a36ee8248a |
refs/heads/master | <file_sep>#pragma once
class Part
{
int points;
char shape;
int length;
public:
Part(const int&, const char&, const int length = 1);
Part(const Part&);
Part() = default;
public:
int getPoints() const;
char getShape() const;
int getLength() const;
public:
void set(const int... | 2119a29cb16eb6f4922a9d9ca9e26bcbc5ac8d05 | [
"Markdown",
"C++"
] | 5 | C++ | shu7bh/Snake-Game | b868eb41d4adc1894aee6debed307f4cbadb81d2 | dd5b9b0265fc20d6dd9e4d9358cec6ddfd61e0d7 |
refs/heads/master | <file_sep>var getUserID=function(){
return 50;
}
var isUserValid=function(){
console.log(getUserID());
if(getUserID()>30){
return true;
}else{
return false;
}
}
if(isUserValid()){
console.log(`User valid`);
}else{
console.log(`User not valid`);
}
<file_sep>let firstNumber = 5... | d2b716c9ec3843f8bc649f20a25ff91bcb9620c7 | [
"JavaScript"
] | 84 | JavaScript | Angelleu/JSpractices | aa1ca79ca0fcc0785a673806dc4464c614196dc7 | 01f4f3b7a47f49825176d4751daf3723f30e1db5 |
refs/heads/master | <repo_name>kattymay/Bamazon<file_sep>/README.md
# Bamazon
Bamazon is an application that allows users to chose a product to purchase, as well as the quantity of the item they'd like to buy. The app then gives the user a shopping cart total.
The products table should have each of the following columns:
* item_id (uniqu... | 4e463989dcf2507bbfbd9baa1847f6fc640caa24 | [
"Markdown",
"SQL"
] | 2 | Markdown | kattymay/Bamazon | 8fb593c0e37b85a86bd15d427b80cc11dc7e18b6 | a4507956d527f9bb00531fb6597b11b6edd59d76 |
refs/heads/main | <repo_name>Bartucz/JsAlapokGit<file_sep>/js.js
/*segédfüggvények*/
function ID(nev) {
return document.getElementById(nev);
}
function EvLis(item, event, func) {
item.addEventListener(event, func, false);
}
function beker() {
var a = Number(ID("a").value);
var b = Number(ID("b").value);
... | 253c4dee27645bdc5f9d7d6f5e23bbb5e9069885 | [
"JavaScript"
] | 1 | JavaScript | Bartucz/JsAlapokGit | 0a1732a28ecbd3495f826b92aff834af1090de1e | f1c61bfe1910b116744592b648f133d8579907ee |
refs/heads/master | <repo_name>dr0l3/DataProcessing<file_sep>/src/RandomTest/SerializeClassifierToJsonTEst.java
package RandomTest;
import ArffFile.CompleteFeatureFileGenerator;
import Core.BiasConfiguration;
import Core.ClassifierType;
import weka.classifiers.Classifier;
import weka.classifiers.meta.FilteredClassifier;
import weka.core.... | d9c32bf5b26f4edc01016a10ebfac95d581df4cf | [
"Java"
] | 28 | Java | dr0l3/DataProcessing | ea22b7664d47ad1269b86e642b352b8c0e56a677 | 9b1573388e04278126d6783021e51423026513e3 |
refs/heads/master | <file_sep>require "twitter"
require "./key"
stream = Twitter::Streaming::Client.new do |config|
config.consumer_key = CONSUMER_KEY
config.consumer_secret = CONSUMER_SECRET
config.access_token = OAUTH_TOKEN
config.access_token_secret = OAUTH_TOKEN_SECRET
end
rest = Twitter::REST::Client.new d... | bc2940dbab5b1635186e2a5d6ebfa223d77b6265 | [
"Ruby"
] | 2 | Ruby | hoshito/twitter_bot | 240ab72275aa8bc9a09da98cfc31363ed2326bd6 | d718747b32b26c5c8ef19845faa126abf5982506 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# coding: utf-8
# In[1]:
import os
import tensorflow as tf
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
# In[3]:
# Turn off TensorFlow warning messages in program output
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# Load training data set from CSV file
training... | 12bf6ba59c7a8b78fe67d4842e297cf876bca117 | [
"Python"
] | 1 | Python | JINU8/Personal-ML-Projects | bfeb4ee77f0a5f9d39fa6b9d5327bbc70db5c74d | cfb3259d9f1c7c2217ac297d3ceacf70237dace3 |
refs/heads/master | <file_sep>package jp.co.board.action.home;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import jp.co.board.dao.comment.CommentDao;
import jp.co.board.dto.comment.IUserComment;
import jp.co.board.service.comment.CommentService;
import org.apache.struts2.conventio... | 7ee57741d3896c754b74a34e654d5036d515e545 | [
"Java"
] | 6 | Java | TsujiTakuya55/Board | a87cb224e9dc2d126d315bdbf8ab1eea046af426 | 6a68289a7df0ecb6d58a3730b06e99b899a09b79 |
refs/heads/main | <repo_name>rwlloyd/ServoPanAndTiltHead<file_sep>/controller.py
"""
controller.py
Python3 script to control two servos and a raspberry pi camera in a pan and tilt mechanism.
The first servo pans the second servo and tilt mechanism which holds the raspberry pi camera.
dependencies:
pip3 install gpiozero
pip3 install p... | 57e8e35ed53ac10de3eea35930f1eead0fbde976 | [
"Markdown",
"Python"
] | 3 | Python | rwlloyd/ServoPanAndTiltHead | 6405f3cd75c169a154346837a70d978c6092c314 | 393740798fe332c733bb6c8ece6547d1cc70edb9 |
refs/heads/master | <file_sep>{
"targets": [
{
"target_name": "balanced-match",
"sources": [ "src/balanced-match.cc" ],
}
]
}
<file_sep>[](https://travis-ci.org/shivanth/balanced-match-native)
# Balanced-match
A N-API versio... | f135ad8a82495e58724ccea729b99bd1c7ab5f13 | [
"Markdown",
"Python",
"C++"
] | 3 | Python | shivanth/balanced-match-native | dfa9677b474e5406de8ef9898a70eba1260a0d7b | 9e1b538cebdd1bb70d889db39d5dd911f57b3631 |
refs/heads/master | <file_sep><?php
namespace sephp\core;
use sephp\sephp;
/**
* 模板引擎实现类
*
* @author seatle<<EMAIL>>
* @version $Id$
*/
class view {
private static $_instance = null;
// 自定义模版标签填充数据用
public static $blocksdata = array();
// 最终输出的数据
public static $final_output;
protected static $config = null;
/**
* Smarty... | fee80828cf50c6a4a49a61e515af65f9c2d8d718 | [
"JavaScript",
"PHP",
"INI"
] | 85 | PHP | gangkui1688/sephp | 61d40059409d61d36e834e1eec718c8db090b6c3 | cfb034ca205a30c4d8accc670f989a147c2ba40b |
refs/heads/master | <file_sep>const create = (req, res, Collection) => {
const newEntry = req.body;
Collection.create(newEntry, (e, newEntry) => {
if (e) {
console.log(e);
res.sendStatus(500);
} else {
res.send(newEntry);
}
});
};
const readMany = (req, res, Collecti... | 6b8845f468f7a0db9e5e93841b2aad95c4fabf06 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | thienan1312023/income-expenditure | d07722cee79ebbfe74e2f0ac1640e2214c800848 | f3514a8f95ca38106e65bd555920a6bc6fa9bf48 |
refs/heads/master | <file_sep>FactoryGirl.define do
factory :org do
name { Faker::Company.name }
code { Faker::Lorem.characters(5) }
end
end
<file_sep>class CommunicationSerializer < ActiveModel::Serializer
attributes :id, :org_code, :client_code, :primary_email, :secondary_email, :primary_phone, :secondary_phone
end
<file_s... | 19927c447eebda1025a87024073260371a7f1dea | [
"JavaScript",
"Ruby",
"Markdown",
"Shell"
] | 82 | Ruby | poorananb/sentinel | 1d4530eaacab5070e275a0a5e53293c1c9a2afe8 | f156f3733fe51e9ecdf453f689250b46ac74012a |
refs/heads/master | <file_sep>import numpy as np
import random as rn
def portText(file):
"""This function imports a text file as a reference"""
with open(file,'r') as tex:
ref = tex.read().split()
return ref
def portMat(file):
"""This funciton imports an already existing matrix to describe the
probabilities o... | dc360d07b5a5c643a50bb71097ace26bd1f96a5d | [
"Markdown",
"Python"
] | 3 | Python | tunaLandslide/HonorsContract | cb5014d48da9f6e694ff935716e5c00406524882 | 1949bd155396b684f5c7262251456a26d426f78d |
refs/heads/master | <repo_name>masenmatthews/Rails_AJAX_CodeReview<file_sep>/app/models/user.rb
class User < ApplicationRecord
has_secure_password
has_many :orders
validates :password, :presence => true, length: { in: 6..18 }, :on => :create
validates :password, :confirmation => true, length: { in: 6..18 }, :on => :update
def ... | dbcfd94d9f574bf8c57592cdab81737191ba1210 | [
"Markdown",
"Ruby"
] | 5 | Ruby | masenmatthews/Rails_AJAX_CodeReview | 749d31f04d974aa728b0844365a74dea6dff0240 | 16ad35253191e04b525a1e681493fa489781adce |
refs/heads/master | <repo_name>slin30/Exploratory-Data-Analysis<file_sep>/EDA_00_Notes.R
# Downloading Data --------------------------------------------------------
# Relative vs absolute dir
# setwd("../") moves up one dir
# setwd("./data") moves...down one dir?
#Checking for and creating directories
# file.exists("dir_name") to se... | f2360c382a51b3b3fe60a3630d47143cb0ff4222 | [
"R"
] | 3 | R | slin30/Exploratory-Data-Analysis | c4c61854ed1624db8dfa1b0ea1da7bfc3a2e5bba | f2d804b8716e4cdb0a2bbee85375ca503524b311 |
refs/heads/master | <repo_name>mechcloud/large-app<file_sep>/vue.config.js
var path = require('path');
module.exports = {
productionSourceMap: false,
devServer: {
disableHostCheck: true,
port: 8091
}
};
<file_sep>/src/store/mutations.js
export default {
updateReloadFlag(state) {
state.reloadFlag = !state.reloadFlag
}
}
<file_s... | c6f9951773eb86a5cd966e0ce134e25a299d2874 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mechcloud/large-app | 062add8455d0740af05f66ed245d8a0d49093b2f | dc8faa3f911374ece77ded21ee90ced52a000d40 |
refs/heads/master | <repo_name>MatProg2k/Generator_Perestanovok<file_sep>/Task/Task.cpp
#include "stdafx.h"
#include <iostream>
#include <ctime>
#include <locale>
#include <fstream>
#include <vector>
__int64 Factorial(int number)
{
if ((number == 1) | (number == 0))
{
return 1;
}
return Factorial(number - 1) ... | c833fadd679864db04d6b951ba32c75b0b853eba | [
"C++"
] | 1 | C++ | MatProg2k/Generator_Perestanovok | f283a7bc201db41869737db31b5cc54180c51124 | 10e00e149bd7a9ed0e81a293e5ec15147b17b4ba |
refs/heads/master | <repo_name>Canabria/Lab4P2_CarlosSanabria<file_sep>/Lab4P2_CarlosSanabria/src/lab4p2_carlossanabria/Desarrolladores.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lab4p2... | 9328d51e0d8afef7dedaef55972cf79454c7d64a | [
"Java"
] | 3 | Java | Canabria/Lab4P2_CarlosSanabria | b33f48850ee0f22a0e755f3a570f3ab57850c3e9 | 72ef59c7f40eded44475fe46fe60d6df247d537d |
refs/heads/main | <repo_name>sobin227/plan_children-1<file_sep>/test3.py
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
import numpy as np
import torchvision
from torchvision import datasets, models, transforms
import matplotlib.pyplot as plt
import time
import os
import copy
from num... | 479cd7c26f500a2eda86e7fcc9bef2a45908f7d5 | [
"Python"
] | 2 | Python | sobin227/plan_children-1 | 0a113feba08bad58d46443a5c8ebf3e522f66ab1 | e99cc1368674845ed2b5db9d0629923a64fec95a |
refs/heads/master | <repo_name>JayBazuzi/gitprompt<file_sep>/cache/DirectoryMonitor.cpp
#include "stdafx.h"
#include "DirectoryMonitor.h"
#include "DebugLogger.h"
CDirectoryMonitor::CDirectoryMonitor(const wstring& path)
:m_path(path),
m_callback(nullptr),
m_callbackContext(nullptr),
m_hDirectory(INVALID_HANDLE_VALUE)
{
::ZeroMemory... | 5099d6a1ab85bfe10da3874692a5f9f26e332883 | [
"C++"
] | 1 | C++ | JayBazuzi/gitprompt | 932af9574ba402187d159092ada46c97f51dcb8d | 1e068699013e62fee900d9be906212f439528aae |
refs/heads/master | <repo_name>fannheyward/fannheyward.github.io<file_sep>/_posts/2018-06-17-8-years-in-beijing.markdown
---
layout: post
title: 8 Years in Beijing
date: 2018-06-17 10:23:09 +0800
---
8.
<file_sep>/_posts/2009-05-15-set-out-again.markdown
---
layout: post
title: "再出发"
---
现在是北京时间20:00,三个小时后我将是在火车上,再次出发,回郑州参加笔试。周一收到了笔试通知,... | 744a01d1e4076af04859b28c457dc5528b1f8245 | [
"Markdown",
"JavaScript",
"Dockerfile",
"Ruby"
] | 518 | Markdown | fannheyward/fannheyward.github.io | d8cf04dbded8cd917e9976c9e50bcfb80fbf5fd0 | 3adeb76b2981b2a1762966e0cf4cab3d026dce7a |
refs/heads/master | <file_sep>import { Project } from "ts-morph";
export class CurrentProject {
project: Project;
constructor () {
this.project = new Project();
}
}<file_sep>export { FileSystemReader, Reader } from './utils/fs-reader';<file_sep>const fs = require('fs');
const path = require('path');
export function getAngularType(t... | 3953cc9012d38a99c85aa187daaa098a8c91ce02 | [
"TypeScript"
] | 11 | TypeScript | ericbfriday/iowa | 9096b285409d0298a1f9f1bb30da6f4aec784a43 | a1853a89b7f785915ab776689a18fef77063558a |
refs/heads/main | <repo_name>dsvalerian/palette-generator<file_sep>/README.md
# palette-generator
A simple-to-use web app for quickly creating beautiful color ramps and palettes.
## Description
palette-generator is a web application built to allow users to quickly and simply design their own color palettes according to a small selectio... | 31923f8491b4bb1d24aea5d73346072d4746a963 | [
"Markdown",
"JavaScript"
] | 8 | Markdown | dsvalerian/palette-generator | b2d21a9bb340f6d92f3e6a9edc334f75ae9f8b11 | dbe3d90db107ef93dcb031bc75579c331a5fa501 |
refs/heads/master | <file_sep>//
// ViewController.swift
// ToDo
//
// Created by <NAME> on 29.12.20.
//
import UIKit
class ToDoViewController: UIViewController {
// MARK: - Outlets
@IBOutlet weak var toDoTableView: UITableView!
var itemArray = [Item]()
var switchControl = UISwitch()
// Erstell... | bc83b97b578949e2962b9ac63195b5ce9174b3f1 | [
"Swift"
] | 4 | Swift | RobinRuf/todo | db5a8e0875ebe4a16860699c7756d7e8ca106f6b | d8b0c965c0b2c5d65c917abac2f90b52765e1d17 |
refs/heads/master | <repo_name>gameeTH/2WaySSL-example<file_sep>/README.md
**Referernce repo:**
- https://gist.github.com/pcan/e384fcad2a83e3ce20f9a4c33f4a13ae
**Suggestion:**
- Try to use "axios" for more reliability
<file_sep>/Server/server-express.js
var fs = require('fs'),
http = require('http'),
https = require('https'),
... | 1e544d7b7b1332507b57534468132f46b392f7fb | [
"Markdown",
"JavaScript"
] | 2 | Markdown | gameeTH/2WaySSL-example | e4e7b07dc06ed528bdd106c7211c5cb65ee8111c | 2b92db64fa0ec82641268fdc3c662a9793328d64 |
refs/heads/main | <repo_name>yamagame/hello-typescript<file_sep>/libs/message.ts
import { hello } from "libs/hello";
export const HelloMessage = (message: string) => `${hello} ${message}`;
<file_sep>/README.md
# TypeScript Template Project
## 開発開始
次の yarn コマンドで必要なモジュールをインストールします。
```
$ yarn install
```
次のコマンドで実行します。
```
$ yarn sta... | ab8a17d7282f23a208a11cb227300bdcf3732bef | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | yamagame/hello-typescript | 27e8d2cda2e6a8cb0a598e184ef07b30961894ea | ff430ffb3522ef7ad58abe83ac07996bcce21072 |
refs/heads/master | <file_sep>## In order to speed up the computation of the inverse of an invertible matrix, we will create a new matrix which caches it's own inverse
## As long as the original matrix does not change rather than computing the inverse of the original matrix all the time, we rely on the cached value
## so that the inverse ... | 42fbf24837a342b558d3a27ba5bccda58d0daab9 | [
"R"
] | 1 | R | PietroSulis/ProgrammingAssignment2 | a96d22dd0ed7f5c4109360273bf0fc422e98d387 | 74877d3ef3a257e2b9d715d6ce043f3d2bf88590 |
refs/heads/master | <repo_name>Breaddsmall/bookstore<file_sep>/fe/test/test_search.py
import time
import pytest
from fe.access import auth
from fe import conf
import uuid
class TestSearch:
@pytest.fixture(autouse=True)
def pre_run_initialization(self):
self.auth = auth.Auth(conf.URL)
self.author = "test_author_{}... | ddd89227b5c5ae791c9068ca37a2bb4186dbe5d7 | [
"Markdown",
"Python"
] | 16 | Python | Breaddsmall/bookstore | e02d097d1976d5b9fb5291ed16f471d25d82d895 | ecf1c8b5189a3cd693db29d2815614891a84a1d7 |
refs/heads/main | <file_sep>#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include<conio.h>
#include<float.h>
#include<time.h>
#include <dos.h>
#include <conio.h>
#include <dos.h>
extern char ** map;
extern int ** locations;
extern int x,y;//size of map
extern float time_game;
extern int * AI_assist ;
extern int y_loc_rai... | 763233c59aa1ad6aa314322efea6fa284affac69 | [
"C"
] | 3 | C | alihaghighat/Game_console | bb3fe7ca45f4266421c730598aee0869a7f0a345 | f235d1d98537f201799da674c5518b963826c776 |
refs/heads/main | <repo_name>ShimmyLikeJamie/tic_tac_toe<file_sep>/README.md
# tic_tac_toe
https://theodinproject.com/courses/javascript/lessons/tic-tac-toe-javascript
<file_sep>/scripts/main.js
const gameBoard = (function() {
//Putting tiles in an array because the project specs demand it
tiles = []
//grab all the DO... | 50c3838e3ec4a09694c62c16af1a426087e64591 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ShimmyLikeJamie/tic_tac_toe | ce7b9c057c21ba9aca6bd8f841c0b6b85c08b752 | 07ad2c0ae143d2a0120a3c66f047024e4bfc219e |
refs/heads/master | <file_sep>using System;
using Eventos.IO.Domain.Eventos;
namespace Eventos.IO.Console.Tests
{
class Program
{
static void Main(string[] args)
{
var evento = new Evento(
"Nome do Evento",
"Descrição curta",
"Descrição longa... | 5fb345a6b4165112cb9ed29ac0039eaa529ae541 | [
"C#"
] | 19 | C# | guisfits/Eventos.IO | aa047c41c949fd1c7a5f69b0c39fc1ab58ee7a6d | 96ba4e9106109dc8cf663aa84ba437763eeb6b2b |
refs/heads/master | <file_sep>import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
/**
* Created by abhisheky on 22/2/16.
*/
public class SampleGeneration{
public static void main(String [] args){
Optics optics= new Optics();
optics.getDataPoints();
... | 759a2f3a16eda29a832b672115797cb1e3482563 | [
"Markdown",
"Makefile",
"Java",
"Python",
"C",
"C++",
"Shell"
] | 47 | Java | abhicse32/8th-Semester | 279731d4b932992c9aa8701c221bb3acd4caf67d | dc88a3532e510be1d99b125398947e044bbbebdf |
refs/heads/main | <file_sep>import functools
class ScanNode:
def __init__(self, args):
self.file = args[0]
self.buffer = []
self.data = iter(args[1])
def __iter__(self):
return self
def __next__(self):
return next(self.data)
class LimitNode:
def __init__(self, prevNode, args)... | 5fa1f6faa1ce6795095a473d8dcb363983ea4ee9 | [
"Python"
] | 3 | Python | jmhwang7/query-executor | 2402cb571762bc9fe15cbdbafc4d632d79aaf0df | 5919be6500c0ab6b214e4ed7df0f613498a65a52 |
refs/heads/master | <file_sep>package com.horus.travelweather.model
import com.google.gson.annotations.SerializedName
data class WeatherDetailsResponse(val weather : List<WeatherItem> = emptyList(),
@SerializedName("main")
val temperature : TemperatureItem =
... | 0ddb1ea839780b659e7042274376ea7326149f5a | [
"Kotlin",
"Gradle"
] | 49 | Kotlin | QuangTrungK15/TravelWeather | 344c7380766ec8aab5a95917de9bd6c2b2085cf5 | 49f82bcff4db0573c12575f5f3b3622831a45ed2 |
refs/heads/master | <file_sep>
CWD=`pwd`
help:
@echo "USAGE:"
@echo "make update Updates all of the submodules within the project"
@echo "make clean Cleans out all of the generated code within a submodule (mainly docs/tags)"
@echo "make add_bundle name=<bundle-name> ... | fb3ca0dbf1dc694080d669b68097f63bca9bf97d | [
"Makefile",
"Shell"
] | 2 | Makefile | tumes/vimfiles | becfa3103ee837570f1d50749df290da859dcbaa | 065f3af95fabb1632068b4d878b334de67260685 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { ServiceService } from '../../services/service.service';
@Component({
selector: 'app-info',
templateUrl: './info.component.html',
styleUrls: ['./info.component.css']
// tslint:disable-next-line:use-input-property-decorator
})
export class Inf... | 3f4d1593dbc87cd47724fe3cd30856ba314bbcde | [
"TypeScript"
] | 4 | TypeScript | sanketkarandikar/angular4FrontEnd | 028b77eb6a36a1bbc5848ea38d6b85ddf49525f6 | ac868d79193af7d8b6487754f9293a0b668aad76 |
refs/heads/master | <file_sep>package com.bbs;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springfram... | 379199a58a804b01096b64d7fe9962bcdb810e34 | [
"Markdown",
"Java",
"Gradle"
] | 14 | Java | HMBSbige/DXW_BBS | a3d531e25f5c2af824dfb1210aa0766abc3dbd7b | c8196ecdf17223ea8a6700d4e71d9bceb47facf3 |
refs/heads/master | <repo_name>amanzeekverma/zeek123<file_sep>/settings.gradle
include ':app'
rootProject.name = "ZeeK123"<file_sep>/app/src/main/java/com/zeek/zeek123/MainActivity.kt
package com.zeek.zeek123
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Bu... | 7825aa246164a74bfc511dbe362aff1dd82e11bb | [
"Markdown",
"Kotlin",
"Gradle"
] | 3 | Gradle | amanzeekverma/zeek123 | 036eb96dbe44538dd2c2fa19e8b78eb04ec21672 | 95935ca559fc0fac768584256fdbe067ab77ea80 |
refs/heads/master | <repo_name>atheJack/lqsUtil<file_sep>/settings.gradle
rootProject.name = "ImpTest"
include ':app'
include ':lqsutil'
include ':mylibrary'
<file_sep>/mylibrary/src/main/java/com/example/mylibrary/Manager.java
package com.example.mylibrary;
public class Manager {
public static final int CONST_NUM = 1;
}
| a873326a8f0079d89123988ecda5a506f6516a53 | [
"Java",
"Gradle"
] | 2 | Gradle | atheJack/lqsUtil | 97fd8a2e0470d050de0e9b1d811846db0216500a | 158b4e87b309f4d9b0b9aa5bec8a234df6de9824 |
refs/heads/main | <repo_name>PinitS/TENT-PAGE-EDITOR<file_sep>/src/pageBuilder/PageBuilder.js
import React, { useState } from 'react'
import { v4 as uuidv4 } from 'uuid';
import IMG from './components/IMG';
import TextAndYoutube from './components/TextAndYoutube';
import Title from './components/Title';
import Youtube from './component... | 90180c992fac5ec3f5970024cd3fe4479c769a2d | [
"JavaScript"
] | 2 | JavaScript | PinitS/TENT-PAGE-EDITOR | 7c04ae37c249cf45a8ea94f1c00b4ad022c46984 | add938c1bfb0d2ad6dcf46f2c1c7c347be4bdb64 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.