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>// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 797cc8c1e370191981080bc68b1667e843ebfae2 | [
"TypeScript"
] | 2 | TypeScript | SurferJeffAtGoogle/nodejs-video-intelligence | 34bc168cfd66ab8e9512c751f23dc3c9de413cfe | 21cd9566afbcd894e13ca50d4ce4702bac06ba05 |
refs/heads/master | <file_sep><?php
namespace app\social;
class Youtube {
} <file_sep><?php
namespace app\social;
class Twitter {
}
<file_sep><?php
namespace models;
use app\Core;
class Exemple {
protected $core;
function __construct() {
$this->core = Core::getInstance();
}
//__ Get all posts
publi... | 61df3fd9743a8726991db50bdcb06a889677d2ec | [
"Markdown",
"PHP"
] | 6 | PHP | Guillaume-RICHARD/dev-php | 3a93f9bac867fc8c41c62524cdb6737dbba2c501 | 644e14da6bbdde71ab3f60ba09643d5773f5abaa |
refs/heads/master | <file_sep>package t4ka.com.lifecyclestudy.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
import t4ka.com.lifecyclestudy.R;
impo... | 866a6b1efd034e3c0e629229a28d8ad5471fa6a7 | [
"Java"
] | 1 | Java | D3vel0pper/Lifecyclestudy | 2693a1543ede788f505303e80c65564647f920a4 | 06f3f184253a8bfd24ca812e67768e6de5178f1f |
refs/heads/master | <repo_name>Diegod96/Cryptography<file_sep>/IndexOfCoincidence/tester.py
import math
# Uses Counter to get the frequency of letters in provided text
def frequencyAnalysis(input_text):
frequency = {}
for keys in input_text:
frequency[keys] = frequency.get(keys, 0) + 1
return frequency
# Aff... | adffede88312a6ffc8c5cc6447f32cc26aa94cb2 | [
"Markdown",
"Python"
] | 4 | Python | Diegod96/Cryptography | 06297ecc5ba3871f5df54542d4fc5f335d4a066a | ff79776282fc4e770aee23f2bb9cf243fe906d4d |
refs/heads/master | <repo_name>openmrs/openmrs-module-spa<file_sep>/omod/src/test/java/org/openmrs/module/spa/servlet/SpaServletTest.java
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0... | 94516500ab5e80ffc15a26ab33a458f97291b6cf | [
"Markdown",
"Java",
"Shell"
] | 5 | Java | openmrs/openmrs-module-spa | 589f30b837f87d5cae885eb4ee1c06ed3e2af5e5 | 860eeb249c2c616c95948be84497770b5943cb03 |
refs/heads/master | <repo_name>lkhan961221/elasticsearchstudy<file_sep>/src/main/java/com/haan/elasticsearchstudy/config/ESConfig.java
package com.haan.elasticsearchstudy.config;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.Transpor... | 4ea52c56105e7e1df1a7d0b12aa8a6cfd6f90804 | [
"Java"
] | 2 | Java | lkhan961221/elasticsearchstudy | beac38870413952528799b05f6c7120736697a45 | cbcb7522e53bd6f30b95fe0e269530989b2babde |
refs/heads/master | <file_sep>= クラスの構造と初歩のパターン
== はじめに
このプロジェクトは、ごく簡易なカードゲームを題材として、Javaのクラス作成パターンを意識する練習を狙ったハンズオン用のプロジェクトです。
Javaでプログラミングの基本文法や、`ArrayList` などの標準ライブラリの使い方を学んだレベルの学習者の利用を想定しています。
このプロジェクトで取り上げる(取り上げたい)内容は以下の通りです。
- クラス、フィールド、メソッド、コンストラクタ
- リスト
- 列挙型
- イミュータブルとミュータブル
- クラスを跨ぐ処理の切り分け
- 色々なものをクラスで表す
- [line-through]#同値性と同... | 4ec4c4fc718b3547d01d685e540d3f59287103db | [
"Java",
"AsciiDoc"
] | 6 | AsciiDoc | gishi-yama/CardGame | e5c3fcd287eb0689c6c4607eb56a2afe966a8f91 | f8308af89d11aa7153262a748455260187a69d2e |
refs/heads/master | <repo_name>wahidAmini/addressMVC<file_sep>/view/detail_user_view.php
<h2>Bienvenu sur votre porfile monsieur <?=$user['prenom']?></h2>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>First Name</th>
<th>Expediteur</th>
<th>Description</th>
<th>Adress</th>
<th... | 04fd9a76e969c0c7d6ef4778a179b81b24a2e3da | [
"PHP"
] | 15 | PHP | wahidAmini/addressMVC | d2aa48d002655305e391c302cf2f20abdd877825 | fb8fc9a1e7ebd721a7d9ad657e9c165a326cd8bd |
refs/heads/master | <repo_name>roybass/raa<file_sep>/src/component/arrow-pagination.js
import React from 'react';
import Button from '@material-ui/core/Button';
import ChevronLeft from '@material-ui/icons/ChevronLeft';
import ChevronRight from '@material-ui/icons/ChevronRight';
import Toolbar from '@material-ui/core/Toolbar';
const Arro... | c811a5dbf03be1490d19cb062101bfbf97cba5d1 | [
"JavaScript",
"Shell"
] | 24 | JavaScript | roybass/raa | 621b562054e1e0be216cb925461339edf098be67 | 988f0b4ca88a1cdf00645f0109005b005601bb66 |
refs/heads/master | <file_sep>import numpy as np
import re
import random
import feedparser
def loadDataSet():
postingList = [['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'],
['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid'],
['my', 'dalmation', 'is', 'so', 'cute', 'I', 'l... | 3867902dadf8a12884de9869aef8fef893971327 | [
"Python"
] | 5 | Python | sxx01/- | 614bc09e7622d05420fc15c1edc481db167a7d2d | 4315feec21de22674ee42eb822c0bd3ab524a405 |
refs/heads/master | <repo_name>nuasg/coursedj<file_sep>/public/js/services/mainService.js
// js/services/mainService.js
var app = angular.module('mainService', []);
app.factory('ASG', function($http, $location) {
var NOT_A_KEY;
if ($location.$$host === 'localhost') {
NOT_A_KEY = "<KEY>"; // DEBUG
} else {
NOT_A_KEY = "<KEY>"; // ... | d745120aa83cbc18cbed7fe9ec633bfcfd09736b | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | nuasg/coursedj | 4a7246226acd7d025df6e441f1070461c9de1023 | 5faa29cdf7a6e299d277a337dc4f807f59108944 |
refs/heads/main | <repo_name>liuyaxin99/Woocommerce<file_sep>/src/pages/menu/menu.ts
import { Component, ViewChild} from '@angular/core';
import {NavController, NavParams, ModalController } from 'ionic-angular';
import {HomePage} from '../home/home';
import {Signup} from '../signup/signup';
import {Login} from '../login/login';
import {... | fb59c231377d1499d301451afb2eba3e9562724a | [
"TypeScript"
] | 1 | TypeScript | liuyaxin99/Woocommerce | 7629c964dca6ee3d4409564923aaaf1b2e567fe5 | c273c2dff16a39887d8541a16a98e31b463587f9 |
refs/heads/master | <repo_name>dldinternet/ec2dream<file_sep>/puppet/puppet_push.sh
#!/bin/sh
#
# Customized pocketknife to run puppet apply on remote node
#
# Env Variable EC2_PUPPET_REPOSITORY puppet_repository
# Env Variable EC2_PUPPET_PARAMETERS puppet_parameters
# puppet_push
# add extra pocketknife_puppet parameters by chang... | fd370072eb7908501eee4bf5b9d7f1f38f6e5581 | [
"Markdown",
"Ruby",
"Shell"
] | 20 | Shell | dldinternet/ec2dream | 354445e8abeb35db63d634e22103acc31c2e76af | 508dea282b19c15f4bf641da75afe64acece7e96 |
refs/heads/master | <repo_name>suhas-ds/mlops-project1<file_sep>/get_model.py
"""
This script will be used by the user to tell the structure of classifier model we have to train and modify, then we save the model structure in a file model.data, which will be used later by make_model.py to write the real code for the classifier and
then m... | 68aee0959c3416411e489d76f588314d24623cd8 | [
"Markdown",
"Python"
] | 4 | Python | suhas-ds/mlops-project1 | 963ecc079326fa5292cac4cc3d611726c4442f62 | e2e70643af684a941d18b13728e46d8ca725b372 |
refs/heads/master | <file_sep>({
loadparam : function(component, event, controller) {
var actionGetCity = component.get("c.getCity");
actionGetCity.setCallback(this, function(response) {
var state = response.getState();
if (state === "SUCCESS") {
component.set("v.s... | 75fc7e299692b123698ea5a59fbd604d34436cd1 | [
"JavaScript"
] | 1 | JavaScript | navsegdasha/HotelsProject | e6aafe76a26ce8a5e346efceeb5e5863ed915fe8 | 25fb286c7b611fccf888e671736b653af66ca2c5 |
refs/heads/master | <file_sep>const Result = require('./constants/result');
const Sequelize = require('sequelize');
const Constant = require('./constants/constant');
async function connectDatabase(dbName, user, pass, ip) {
const db = new Sequelize(dbName, user, pass, {
host: ip,
dialect: 'mssql',
operatorsAlia... | 6fe0f1fc91a1398f73994888013b67ea52876b67 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | NAP-BN-Test/project_youtube_follow_nodejs | 74f53b1927505f510f654e558452e979e62e753b | d10d89a1c5f78e3efd63f9862ca3864bf1a275e6 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BirdSpawner : MonoBehaviour
{
public Transform[] spawnPositions;
public GameObject[] birds;
public bool keepSpawning = true;
public Transform flyingBirds;
float PROBABILITY = 0.5f;
... | 210ba6ed1e9f9dfdfcc82cd2d7a9cdec567c2105 | [
"Markdown",
"C#"
] | 3 | C# | 5hivanand/tap-n-kill | a4c338f46fef4c9565a43568f14e128689917fe5 | 824b2ea81d6a370a07a2717261c839e7f57d40ab |
refs/heads/master | <repo_name>apktool/LearnCPP<file_sep>/7.26.04.cpp
/**
* @file 7.26.04.cpp
* @brief 嵌套类构造函数和析构函数的执行次序
* @author LiWenGang
* @date 2016-07-26
*/
#include<iostream>
using namespace std;
class Object{
public:
Object();
~Object();
};
class Container{
public:
Container();
~Container();
private:
Object obj... | cfd10d4992df62a4708b94ee0009498987b09744 | [
"C++"
] | 109 | C++ | apktool/LearnCPP | 7bc405320b243b140d516fd56b9c469b158dac9b | d67732d457e0bb6e70ef09b8c8861dea5d4fd44a |
refs/heads/master | <file_sep>package io.renren.modules.banana.generator.service;
import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.banana.generator.entity.BananaGoodsCamiloEntity;
import java.util.Map;
/**
* 商品卡密
*
* @author chenweilong
* @email <EMAIL>
* @date 201... | 632a0d6176116bbd8be877fd209ece75a1e97898 | [
"Java"
] | 11 | Java | chenweilong1022/banner | 7d1a9cdb7d02cd526d918f95a7e21b0672074f51 | 2a23ebfba74f4252a4fce04f397ee05b7748e4b0 |
refs/heads/master | <file_sep>package com.huangxy.mcadapter;
import android.view.View;
/**
* Created by huangxy on 2016/10/28.
* https://github.com/GitSmark/McAdapter
*/
public class IAdapterView {
public interface OnClickListener {
void onClick(View view, int position);
}
public interface OnLongClickListener {
... | a44ca6322a6253a9579b9947fc5f82111fce44ec | [
"Markdown",
"Java"
] | 8 | Java | GitSmark/McAdapter | 3dd1d456e970ef512da732f2dcdc2702d1d1b378 | e889eeb68ce62dce18bcc3b6169ba29a0ddaa62c |
refs/heads/master | <file_sep><?php
class ContactController {
public function __construct() {
}
public function run() {
include View . 'header.php';
include View . 'contact.php';
include View . 'footer.php';
}
}
?>
<file_sep><?php
class TechEducationController{
public function __construct() {
}
public... | 043f40697b8925ef02a7f58eeffd4c4f65203105 | [
"Markdown",
"PHP"
] | 13 | PHP | weichuan888/4wings-test | 499b4376e4aeb759079d48db99668ef57106d85f | 66a4b37381d8c577292d89ee83ad5d7b57e8cf43 |
refs/heads/master | <file_sep>import React from "react";
import { FaRegHandPaper } from "react-icons/fa";
const BuyCancel = () => {
return (
<div>
<div className="cancelPageOneBox">
<FaRegHandPaper size="5rem" className="buy" />
<div className="buyBox">
<h>Thanks for your help. Your opinion is really... | 98119a332e1ea9f0179ecb15eb15a461c2a26ab3 | [
"JavaScript"
] | 19 | JavaScript | MaysTaleeb98/Userpilot_Billing | e869a8ee70d568603b245b459d3d73daa2f752a6 | bbd83aa5bca99e7876d72d23c835457b1ceb175e |
refs/heads/master | <file_sep>package com.github.ar7ific1al.pokechat;
// PokeChat v0.1a by Ar7ific1al
import java.io.File;
import java.util.HashMap;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginManager;
import... | b1d7803b0b5b135e1aa09ee8bbaa71215f039665 | [
"Java"
] | 2 | Java | Ar7ific1al/PokeChat | d9e11f40b65ef6c27016293da26becb78dd12650 | 626bf278a65c09374db489899ad2b6e937b9fc06 |
refs/heads/master | <file_sep>plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '1.2.2'
id "net.foragerr.jmeter" version "1.0-2.13"
}
repositories {
jcenter()
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
ext {
vertxVersion = '3.2.... | 7cc1fa29c4eecd693c2e2f6124f1ed8a0a2c6c30 | [
"Markdown",
"Shell",
"Gradle"
] | 5 | Gradle | jkozlowski/vertx-test | 905d80429c63d6e9fd04968d995e31c2aa3e05dd | ae51b599191a61603303a89c1fed7be7855c7dd7 |
refs/heads/master | <repo_name>Nicell/madhacks-2018<file_sep>/static/profile.js
const client = algoliasearch('TBGMQ0SV5L', 'b1fe63a6f280ea84a773f7ec1f679c7d');
const index = client.initIndex('dev_pokedex');
const id = location.pathname.split('/').pop();
index.search({
query: id
}, (err, content) => {
const pokemon = content.hits... | 01cb9ee565aaa342e06219add3c556852b372057 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | Nicell/madhacks-2018 | eae108719dd5f9711ba7ec0aae1f3e37f0c76727 | b78ae1d2de41563c5df32528b8d2dc24681ad7ab |
refs/heads/master | <repo_name>Lujie1996/fasthttp<file_sep>/examples/fileserver/generate_files.py
import os
import random
import string
def generate_big_random_letters(filename,size):
"""
generate big random letters/alphabets to a file
:param filename: the filename
:param size: the size in bytes
:return: void
"""
... | 47d9cb8b2d10d984a22e6dd1b79627af79057f1f | [
"Python",
"Dockerfile"
] | 2 | Python | Lujie1996/fasthttp | 2db5ed52c10e90602f03ed0820453d794a27b4da | cfcb6040ad01d9d2b78e44e38134829735bc6397 |
refs/heads/main | <file_sep>import numpy as np
class morphology_3d():
def __init__(self):
pass
def erosion(self,img,selem=np.array([[[False,False,False],[False,True,False],[False,False,False]],[[False,True,False],[True,True,True],[False,True,False]],[[False,False,False],[False,True,False],[False,False,False]]]),thresh=2... | 7847b73d7431dbc6ef4682058ae9031320881f3a | [
"Python"
] | 1 | Python | MPutterman/3D-Morphology | 5474a481f92f475dc8d8360e274227dc886ad562 | 03d39578aafebb0d9fc14ca4592cd3c6539734a4 |
refs/heads/master | <file_sep>package com.webchat.event;
/**
*
* @author <NAME>
*/
public class UserLoggedOutEvent {
private String username;
public UserLoggedOutEvent(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.usern... | 50aaff58f92bf3c70aac2c0316f0f9842ce6772e | [
"Java"
] | 9 | Java | AnnaLikhachova/WebSoket-Spring-Boot-AnimeJS | 2d3c2f2812c6af95d700a76305fdf9039b0bfa13 | 7d8ea0c2a3ea378aa977ec0fdeb38a9bb150bdbf |
refs/heads/master | <file_sep>#!/usr/bin/env python
"""Script to auto-generate our API docs.
"""
# stdlib imports
import sys
import re
# local imports
from apigen import ApiDocWriter
# version comparison
from distutils.version import LooseVersion as V
#*****************************************************************************
def a... | 2908ad85e9d5e57ddf5de642f0ed4288ad6a8b0c | [
"Python",
"reStructuredText",
"INI"
] | 23 | Python | mekman/popeye | 772bfbdd00216edf17430473c28975096cd218a3 | 63b90e32618353ca022e590e8633d8a6cb818b25 |
refs/heads/master | <repo_name>residentpipe/Bang-Bang<file_sep>/Bang Bang/Assets/Scripts/Disparo.cs
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Disparo : MonoBehaviour {
float Velocidad;
Rigidbody2D bala;
SpringJoint2D union;
Vector3 mousePos;
Vector3 objectPos;
public Text te... | e35833148eecf37ff733ca192f7e78b657e8ae08 | [
"C#"
] | 4 | C# | residentpipe/Bang-Bang | 6519bde9259584b96a1bb351aa621851218662b7 | 3b635fbb52ab331bf23d18254e2b061d833b36ca |
refs/heads/main | <repo_name>Abdulrahman-Adel/Minimal-Computer-Hardware-Store<file_sep>/src/OrderPage.java
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import java.awt.Window;
import java.awt.Color;
import javax.swing.JButton;
import j... | 12bb472fc875a328a000a02d13a3bae57758ea4e | [
"Markdown",
"Java",
"SQL"
] | 13 | Java | Abdulrahman-Adel/Minimal-Computer-Hardware-Store | f56ccfe75058f8cd101119e7bd08b0d1741abf3c | 842bcc28740de08ce4ee933b09d73cef8c26062a |
refs/heads/main | <repo_name>kiuyas/lifegame<file_sep>/LifeGame/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LifeGame
{
public partial class For... | 37e03442485ead9e5a92fd400298ffd5cf422bb9 | [
"Markdown",
"C#"
] | 2 | C# | kiuyas/lifegame | 297f23a1b97575f8d1c9b73e6e5331f45a6c25fc | 69e694699ec91a7fe8cd3b62625b6ab85b28620c |
refs/heads/master | <repo_name>NanaEB/BA<file_sep>/omnetpp.fsm.editor.workspace/org.kermeta.fsm.gmf.diagram/src/fsm/diagram/providers/FsmParserProvider.java
package fsm.diagram.providers;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runti... | cc205620a42a2e5efcb68707e2a751c82965b6f6 | [
"Java",
"C++",
"INI"
] | 33 | Java | NanaEB/BA | 20bff57199604cfe5be1268d5835920be1604d71 | e4fe80feabc3579fc59bf747bb3a0c4cf9eb9bf9 |
refs/heads/main | <file_sep>var PLAY = 1;
var END = 0;
var gameState = PLAY;
var path1,jack,sun,ground
var cloudsGroup,hurdlesGroup
var score=0
function preload(){
path=loadImage("backgroundImg.png")
running = loadAnimation("leg1.png","leg2.png","leg3.png","leg4.png","leg5.png","leg6.png","leg7.png","leg8.png");
hur... | 9979399d0e90292c13b9f5b9e80cd723d77f1077 | [
"JavaScript"
] | 1 | JavaScript | ragav5042/YOUR-OWN-INFINITE-RUNNER-GAME | 073ee97db4228ec1726a8a44a2b76809b6aa2610 | 3109a4f7baf2d443bfb03baf2ecd2f0bd5706b0b |
refs/heads/main | <file_sep>var nav = document.createElement('ul')
nav.setAttribute('class','nav')
var l1 = document.createElement('a')
l1.setAttribute('href','index.html')
l1.innerHTML = " Random Number Generator "
l1.setAttribute('class','l1')
nav.appendChild(l1)
var l2 = document.createElement('a')
l2.setAttribute('href','ind... | 312c0867904da90d939607fa0059f38f9a083252 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nitishmohan8/Frontend-Projects | aba235982c5511d9f259e4c036e2bd4bfc7ec13a | 69dced5b5943b8d3936305c645cd853aed7a5e8f |
refs/heads/master | <repo_name>rokap0127/roguelike<file_sep>/Assets/Script/Item/Key.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Key : MonoBehaviour
{
public GameObject[] shutter;
public GameObject[] bridge;
private void OnCollisionEnter2D(Collision2D collision)
{
... | be9192ce5204482e6244f28869533627ca1c176c | [
"C#"
] | 41 | C# | rokap0127/roguelike | 1cecf6db5bf988ac2818f9f3ad113ff558840131 | d4d0efd94b1d72d713eb7a92dcf8b1b601ab7f8c |
refs/heads/master | <file_sep># Yummly API Credentials
YUMMLY_ID=xxxxxxxx
YUMMLY_API_KEY=<KEY>
<file_sep>'use strict';
require('dotenv').config();
global.expect = require('expect.js');
global.yummly = require('../lib/yummly');
global.credentials = {
id: process.env.YUMMLY_ID || '3cbb14d1',
key: process.env.YUMMLY_API_KEY || '6eed2... | c11ebca64586f6d81056b5561170c21d248107c4 | [
"JavaScript",
"Shell"
] | 2 | Shell | mattkrick/node-yummly | 30da259b1634e0eb396fcd7a0feff3f56323a164 | 6dcdffa8eda48bbfbdd25f2ce1d46565a3ed5a7e |
refs/heads/master | <file_sep>import React from 'react';
import logo from '../../assets/images/logo.png';
export default function Logo() {
return (
<div className="header__logo_box">
<div className="header__logo">ravraw.io</div>
</div>
);
}
<file_sep>import React from 'react';
export default function Skills() {
retur... | 09d70f1e5b144a4b99993c680e412d5e9f9b1c01 | [
"JavaScript"
] | 7 | JavaScript | ravraw/ravraw_porfolio | 14d5b056905a9fea6cf149ea0665740372fcf8a0 | 5de6e5fd5e840ca2f0dd4b55b689f0dbd18bb7b3 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
from django import forms
from django.conf import settings
from django.forms import MultiWidget
from django.utils.safestring import mark_safe
from .utils import get_backend
class MapWidget(MultiWidget):
def __init__(self, att... | f6c26ffb12610e1fa6143c981909f9a484cc35f5 | [
"reStructuredText",
"JavaScript",
"Markdown",
"Python",
"Text"
] | 15 | Python | silentsokolov/django-treasuremap | 9f047a55860368393bdd86ef42e61fd8c0e1ee74 | c4e8eaa52b7292681b5dd2fbb4c150763baedfe3 |
refs/heads/master | <file_sep>## 嘗試用最新版gradle 5.4.1 與 JDK12 去建構 Spring boot 微服務專案
### build.gradle新增
plugins {
id 'java'
id 'org.springframework.boot' version '2.1.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.7.RELEASE'
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile... | 31aa2af93bb32c4aef9e68841242c0af4481adc4 | [
"Markdown",
"Java"
] | 2 | Markdown | seanjef/boot | c1f4ea15527ae866e809d5e7fe66bd214fae6bc6 | bf524682042867d7656ffb6eb20f6724bd736727 |
refs/heads/master | <repo_name>schoolsplay/slimmemeter-rpi<file_sep>/start_server.sh
#!/usr/bin/env bash
cd /home/pi/slimmemeter-rpi/rspiWebServer || exit
python3 app.py
<file_sep>/P1uitlezen.py
# DSMR P1 uitlezen
import time
versie = "1.0"
import sys
import serial
#####################################################################... | 776a8d5a1e71777ca8cd1b4978acafaf48c63d27 | [
"Markdown",
"Python",
"Shell"
] | 9 | Shell | schoolsplay/slimmemeter-rpi | 6b8e30fed39b72d098e70203abcf9dc6287d45d4 | 701b698af4cb0d910a394e473ada016d1598fe57 |
refs/heads/master | <file_sep>class Fetch
def get_words
d = ""
a = []
d = Nokogiri::HTML(open("http://cutup.heroku.com/thedocument"))
document = d.css('div#container').each do |c|
a << c
a = a.to_s
end
a = a.gsub(/<\/?[^>]*>/, "")
new = a.split(/ /)
num = new.size
one = rand(num)
... | 2a610f29bd733208490e713c59bbbd18ac00b736 | [
"JavaScript",
"Ruby"
] | 4 | Ruby | mkarges/kill_the_buddha | d68e6867fea06fdb8c74dbf2f247d026176e36f3 | c9395c94f89e347087bd6ac893c5db2f3e845078 |
refs/heads/master | <repo_name>camargoguilherme/api-filmes-teste<file_sep>/src/models/episodio.js
const mongoose = require('mongoose');
const EpisodioSchema = mongoose.Schema({
title: String,
uri: String,
uriVideo: [String],
referer: String,
dublado: Boolean
}, {
timestamps: true
});
module.exports = mongoose.model('Episodio... | 2ad97fb2d1b757cecd5d1f6e47a43c6947a5ada3 | [
"JavaScript",
"Markdown"
] | 18 | JavaScript | camargoguilherme/api-filmes-teste | c07794458180e75ccc9c418c87db7ddd32ba0ebb | 77db55ee4f8f4c65e095c3d14e93f73abba015ab |
refs/heads/master | <repo_name>zhangzju/learnG2<file_sep>/README.md
# learn g2
g2是蚂蚁金服发布的antv三件套中的用于数据可视化的类库,相比于echarts和D3,功能上不是特别强大,但是应该能满足基本的数据可视化需求。
关键的一点是,相比于独立的功能完备的类库,g2的优势在于背后有一整个家族的支撑,antd和antv作为出色的类库,能够让g2在适配方面做得更好。
这个repo是循序渐进了解g2这个类库的记录。
## 文件说明
这个仓库使用vue.js来实现各种数据图表的绘制,同时附加文档说明~
具体有用到的文件夹是src和document.
1. src:源代码目录
2. d... | 7fb77abc8591a76fb576167d71ac95d19ec416b4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | zhangzju/learnG2 | 6e0eef1073c17b11a1bd4d442bf2f82057fb57d2 | f696f278129e70bfcb5e215f60fefb6aaad52eba |
refs/heads/master | <file_sep>module github.com/xdire/algrefresh
go 1.12
<file_sep>package queues
import (
"fmt"
"github.com/xdire/algrefresh/lists"
"testing"
)
type testStruct struct {
name string
}
func TestPriorityQueueList_AddStruct(t *testing.T) {
sa := &PriorityQueueList{}
sa.list = lists.NewLinkedListOrdered(lists.Ordere... | a24c5fec8af68a707274f7d2e931dc1999b1406d | [
"Go",
"Go Module"
] | 28 | Go Module | xdire/algrefresh | d7f2c59f65ed7b27e2d7cf1e649419fcb8d0fcc8 | 2b841b3263b7fa4852dd0c8dfce4ca916d495200 |
refs/heads/main | <file_sep># FP2021
1. Add files to local folder
2. Commit files and changes to github desktop
3. Push files and changes to origin
4. Go to github.com and make sure changes were updated
<file_sep># Load in Libraries
library("ggplot")
library("lattice")
# Assess data format
str(AverageGasPrice)
# Looks good
# Assess ... | bc06662ca678528288bd509b25cdf76143c0bc35 | [
"Markdown",
"R"
] | 2 | Markdown | Danny1991x2/FP2021 | 587e3e3b94a9b6bafd0d2c7d6e004add6fe415b3 | 518cedf095d9a22243df2cd33ef81b7ac104860c |
refs/heads/master | <file_sep>json.extract! @user, :name, :description, :created_at, :updated_at
<file_sep>PaperclipExample::Application.routes.draw do
resources :users
resources :homes
root 'users#index'
end
<file_sep>class RemoveColumnsfromHomes < ActiveRecord::Migration[5.0]
def change
remove_column :homes, :avatar
end
en... | 096bad7962cfe2b77e046379e75467813d40deeb | [
"Markdown",
"Ruby"
] | 4 | Ruby | suresh407/paperclip | 0949300178dc710b6ede003b00a804f3963da41b | f20e4c860be5b1cfff69af50d0537c6973abc58b |
refs/heads/master | <repo_name>VertiPub/ooziebuild<file_sep>/scripts/justbuildpost4.0.0.sh
#!/bin/sh -ex
umask 0022
cd ${WORKSPACE}/oozie
mkdir -p ${WORKSPACE}/.m2
echo "<settings></settings>" > ${WORKSPACE}/.m2/settings.xml
if [ -z ${WORKSPACE} ] || [ -z ${HADOOP_VERSION} ] || [ -z ${PIG_VERSION} ] || [ -z ${HIVE_VERSION} ]; then
echo... | 60505d4b6b9d9f60918999abfa828dd05b25e9cf | [
"Markdown",
"Shell"
] | 6 | Shell | VertiPub/ooziebuild | 4238cf3ce9be074cdc76b5f64e88da5892b2e368 | c60e6cfa12c8f6ad1854bddecacddc134b61dd90 |
refs/heads/master | <repo_name>anothersaddeveloper/test_repo_agile_project_long_name<file_sep>/README.md
# Title For this repo
So far we get error 415 when hook tries to communicate with Bamboo<file_sep>/some.py
print("hello")
print("hello")
print("Great success") | 54a72b95eed10da7e413150a7aaf9a8dc4278ea4 | [
"Markdown",
"Python"
] | 2 | Markdown | anothersaddeveloper/test_repo_agile_project_long_name | a985b74eba5571be73c7df2a5b0dc75fd4b33254 | 00398b4b78008b36a1b2360cab70106b3b8754d1 |
refs/heads/main | <file_sep>import logging
import os
from typing import List
import gspread
import jaconv
from oauth2client.service_account import ServiceAccountCredentials
from slackbot.bot import Bot
from slackbot.bot import respond_to
from slackbot.dispatcher import Message
handler = logging.StreamHandler()
logger = logging.getLogg... | 8818522b4ef14ccf9f8d43a819eaf456cd7cc571 | [
"Markdown",
"TOML",
"Python",
"Dockerfile"
] | 5 | Python | kuriyosh/term-slack-bot | fbb58b31258b41e6522202a4bd18cec1cd35b5f9 | cf1f5a0e1bfe9549dd500d43ff2ee8ed2a8f73bf |
refs/heads/master | <file_sep>package com.thiru.learn.recursion;
import java.util.Arrays;
import java.util.List;
public class BinaryStrings {
public static void main(String[] args) {
int[] array = new int[4];
printBinary(array, 4);
}
static void printBinary(int[] array, int len) {
if (len == 0) {
System.out.p... | cf451f702e17638ec4614e55498a39ad56591fe4 | [
"Java"
] | 6 | Java | thirunavukarasut/learn | b261530a1b4ac84db03956886ae18862ecf6e9c4 | d49b5cbc7ae8293839c96b06099938d635a89470 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it shoul... | f9f3f35ba34049a1105b7fdfeaca03d27ef5f7a5 | [
"PHP"
] | 2 | PHP | richangsharma/blog | 1265b9665d409b5f55ec886e5763226e3291df2d | a785e57f185ad5316237cc5000c4b3514a4c03a5 |
refs/heads/master | <file_sep>const fs = require("fs");
console.log("type something...");
process.stdin.on("data", data => {
console.log(`I read ${data.length -1} character of text`);
});
<file_sep># lorem ipsum
## Non quam lacus
### Vel elit<file_sep>const fs = require("fs");
const writeStream =fs.createWriteStream("./node_pract... | bbc1dba3d488d2c7c519ab185b95cd951dff8678 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Gonzalezenios/node_practice | 2be2e1b47346b5c4a69f9b99da80364ef846b905 | fad8fe29e0c16d0a54a53f02edd885a035854814 |
refs/heads/master | <repo_name>lec92/cargomania5<file_sep>/cargomania5/formularios/guardarTarifa.php
<?php
extract($_POST);//con esta función se extrae todo lo que viene desde el formulario y crea una variable por campo
$objGuardar=new CargoMania;
//Observen que en lugar de poner $_POST["txtCodigo"] solo se pone $txtCodigo, esto lo hace ... | c34b187a514ae3388b434a2ecf3facaa561fc58f | [
"JavaScript",
"Markdown",
"PHP"
] | 31 | PHP | lec92/cargomania5 | f449b6da8e7229bb43dc19b04d713306c47fd956 | b2bd9195c907d7d63adf73d91b9177386bba81e5 |
refs/heads/master | <file_sep>//
// CommonProtocols.h
// IkasGame
//
// Created by <NAME> on 2014-12-24.
//
//
#ifndef __IkasCocosGame__CommonProtocols
#define __IkasCocosGame__CommonProtocols
class GameHUDDelegate
{
public:
virtual void showMenu() = 0;
virtual void hideMenu() = 0;
};
class GamePlayDelegate
{
public:
vir... | 659bf3edc2fc412de11ca884221e5e59a75c4d09 | [
"Markdown",
"C++"
] | 52 | C++ | irontec/Ikasesteka | e5c33445f7ed4aefae7cebbc4f60b00fc943c6eb | be143e0a9a47a498d9bdb9beaab9b8441ee4836b |
refs/heads/master | <file_sep>
public class tarjeta
{
// instance variables - replace the example below with your own
private float saldo;
public tarjeta()
{
// initialise instance variables
saldo = 0;
}
public void depositar(float dinero)
{
// put your code here
saldo = sa... | 532dba91f51879ccbe969fd4d17a4d5f6119b450 | [
"Java"
] | 1 | Java | MarioHdz1093/targejta | 26e0718402c68e5ec036e6c6bfcf72be3d959b31 | f174d352003a127593159875b1014957fa715395 |
refs/heads/master | <file_sep>//[EXAM] Create bouncy simulator. Get board from ExampleInput.js.
// Y – when bouncing objects enters it move it to random direction
// other that it came and Y turns into 0, X – border, 0 – boards object can travel,
// 1 – bouncing object. The program is to show how the object would travel and bounce
/... | c45e8a3c141713a82e18afaa5f22dc96b49cf2ee | [
"JavaScript"
] | 2 | JavaScript | dworakowska/egzamin_JS | d83cb0ced5337000ebc3c5611309a27f169b1638 | d34172e91f573159f94f46da98dd3d883986be5b |
refs/heads/master | <file_sep>import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-reference',
templateUrl: './reference.component.html',
styleUrls: ['./reference.component.css'],
encapsulation: ViewEncapsulation.None
})
export ... | f5de1b600d14a8b62edbdc132860a4a22499b6b6 | [
"TypeScript"
] | 7 | TypeScript | bidziil/hoho | de5815789f159c759ea99a3d51b442060f4c3473 | fc1cf4e5dc8ae61835dc0c85f1b0b436fae09475 |
refs/heads/master | <repo_name>miwanowski/med_projekt<file_sep>/src/lib/candidate.cpp
#include "candidate.h"
Candidate::Candidate(Partition* newPartition) {
partition_ = newPartition;
}<file_sep>/src/main.cpp
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
#include "fun.h"
#include "utils.h... | 9fc257c4f78ace0db3fba34869aea3fce8023b6f | [
"Markdown",
"Makefile",
"Text",
"C++",
"Shell"
] | 24 | C++ | miwanowski/med_projekt | c9a4ee8576ef9a5bf084fd83256efb6ced2f19f7 | b49fbcd8028e1765128fac4ecdb0d46f972ff707 |
refs/heads/master | <repo_name>Mat08251/exoalgo16-03-2020<file_sep>/README.md
"# exoalgo16-03-2020"
<file_sep>/exo.js
var a = 4;
var b = 5;
if (a > b){
console.log ('a est plus grand que b');
}
else {
console.log ('il est plus grand');
}
var c = 2;
var d = 15;
c, d = d, c;
console.log(d, c);
var result= a + b;
console.log ... | 6007c2360502c8ce731fcaa6b9e70401035c6016 | [
"Markdown",
"JavaScript",
"PHP"
] | 3 | Markdown | Mat08251/exoalgo16-03-2020 | 1ea40b0808744e0cc626028ec14fa284a8e5c5ea | cd0ee27672440d21ebfa6bae7006fdb07ca089c1 |
refs/heads/master | <repo_name>lavatahir/NHLFantasyAI<file_sep>/README.md
"# NHLFantasyAI"
<file_sep>/src/Lineup.java
import java.util.*;
public class Lineup{
private LinkedList<Skater> forwardLine;
private LinkedList<Skater> defenseLine;
private LinkedList<Player> goalieLine;
static final RosterGenerator rg = new RosterGenerator(... | 0b8cea5f19f9b75d5823e4133a5f7393f6fe388d | [
"Markdown",
"Java"
] | 6 | Markdown | lavatahir/NHLFantasyAI | 90f56d9ba80254f8b10a32461d03567a35a426c4 | a7c9e17374992121f1bc36561444a41519fb6b1b |
refs/heads/master | <repo_name>UniDomi/geopitalBackend<file_sep>/app/controllers/attribute_types_controller.rb
include AttributeTypesHelper
class AttributeTypesController < ApplicationController
def index
@types = AttributeType.all
end
def parse
upload = Upload.find(params[:id])
data = Spreadsheet.open 'public'+upload.... | 59293f3c823392f57d133b79460a9ab09970cef9 | [
"Ruby"
] | 30 | Ruby | UniDomi/geopitalBackend | da012e32cc403c5b4a53ad77075daee3c741d953 | 91961053a50eb3822ffa1993310c879a576c2d72 |
refs/heads/master | <file_sep>/*
* resultset.h
*
* Author: <NAME> <<EMAIL>>
* URL: https://amiq11.tumblr.com
* License: MIT License
* Created: 2014-11-26
*
*/
#pragma once
#include <string>
namespace senrigan
{
class ResultSet
{
public:
... | fa81c4ebb8bd2057a05cb3bebba0f0a78696a7d6 | [
"SQL",
"Markdown",
"Python",
"C",
"C++"
] | 26 | C++ | cloudpbl-senrigan/combinator | 91a45ac5d471f4a7527375db29e06b0fda2eea0d | 02faf1ace746672a466f97864590de88e6801b8d |
refs/heads/master | <file_sep>====================
period documentation
====================
Contents:
.. toctree::
:maxdepth: 5
:numbered:
:glob:
source_doc/period
todo
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<file_sep># -*- coding: utf-8 -*-
import argparse
de... | 690321615d69b7cf35e7994540eb9f1e32a2c765 | [
"Python",
"Text",
"reStructuredText"
] | 8 | reStructuredText | swills/period | 014f3c766940658904c52547d8cf8c12d4895e07 | 5c542a262427ec93b2672c180f283eba6844fa21 |
refs/heads/master | <file_sep>bintree: main.c bst.c bst.h tree_tests.c tree_tests.h
gcc -o bintree main.c bst.c bst.h tree_tests.c tree_tests.h
debug: main.c bst.c bst.h tree_tests.c tree_tests.h
gcc -g -o debug main.c bst.c bst.h tree_tests.c tree_tests.h
clean:
rm bintree debug core debug.txt
<file_sep>#include <stdio.h>
#include... | 505f5da76ebc9be0394ceede7b0c17ed30c90017 | [
"SQL",
"Markdown",
"Makefile",
"Java",
"Python",
"PHP",
"C",
"C++",
"Shell"
] | 238 | Makefile | dic3jam/how-i-learned | 0383f677f5330dd3cfaa5cebd7883bc878915fa7 | c70a712a78f4baca4332d3b497da94600fc237eb |
refs/heads/master | <file_sep>from Rbac_utils.Rbac_ready_functions import rbac_utils
from cbas.cbas_base import CBASBaseTest
from remote.remote_util import RemoteMachineShellConnection
class CBASError:
errors = [
# Error codes starting with 2XXXX
{
"id": "user_unauthorized",
"msg": ["Unauthori... | 1ecf7118d68d43bb54894771fddb9930a690a6b6 | [
"Python",
"INI"
] | 2 | Python | ritalrw/Jython | 7e2d316b3f6be4533040308c83dfa52f34894d92 | 5929d55bd0154521ad1a8375940deacfbbc624a6 |
refs/heads/master | <repo_name>mvines/silk-camera-facedetect<file_sep>/index.js
'use strict';
const log = require('silk-alog');
const Camera = require('silk-camera').default;
const path = require('path');
const FACE_CASCADE = path.join(__dirname, 'haarcascade_frontalface_alt.xml');
require('./device').init();
let camera = new Camera()... | a120faee893b8ef8bb762a328a986bcd537112de | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mvines/silk-camera-facedetect | 62212a315e5a99fe5253aa78676c3c3fde5d9329 | 7e881e77c4f6b03f003c2804e24586516fe3a289 |
refs/heads/master | <repo_name>nicmr/sensor-tiles<file_sep>/README.md
# sensor-tiles

[](https://www.npmjs.com/@gwenmohr/sensor-tiles-js)
Algorithms for our geographical data visualizatio... | b5bb19337bfa9c8051765e2bc9494060db5d7349 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | nicmr/sensor-tiles | 3f1944d53489e453ac7e3877c765894286fc4115 | b9b0ce4d38fd86fb50ed79fd990b775faca4e006 |
refs/heads/master | <repo_name>dungeon2567/edgedb<file_sep>/docs/edgeql/functions/setagg.rst
.. _ref_eql_functions_setagg:
==========
Aggregates
==========
:index: set aggregate
.. eql:function:: std::count(s: SET OF anytype) -> int64
:index: aggregate
Return the number of elements in a set.
.. code-block:: edgeql-repl
... | 0ec43a20a03e7b1ed88e4bbc11e647691f918f86 | [
"Python",
"Makefile",
"reStructuredText"
] | 21 | reStructuredText | dungeon2567/edgedb | f5bbd3bc6599faad320f7821d771b56396a1fb9a | 1d34d7ec9f571de6a0e56ac79bae9da3c36e752c |
refs/heads/master | <file_sep>const express = require('express');
const router = express.Router();
// Controllers
const authController = require('../controllers/auth');
// Loga o usuario
router.post('/login', authController.login);
// Registra uma usuário novo
router.post('/register', authController.register);
module.exports = router;... | 5857fd295bae1b6929d6bb9c49923fd24120b92b | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | thauan312/FiscalizeGuanambi | b7befcfbb288b3d47287ba0f27676cfa55a6e956 | 5f4b9a21e88f4ac820a2ce2531806a41a074c58e |
refs/heads/master | <file_sep>//importing api's
const express = require('express')
const Users = require('./routes/usersRoute')
const Auth = require('./routes/authRoute')
const Contact = require('./routes/contactRoute')
const Blogs = require('./routes/blogRoute')
const Notification = require('./routes/notifications')
const Projects = r... | 0d15928611f965c2e2c2a4a0b9126ce7cbda91b7 | [
"JavaScript"
] | 15 | JavaScript | satiwankumar/LIVE_MATTERS | 029f398cf1c862a2b4fbe82789cf1167b5cd2d1b | b5b1a6013f4e5723576e328ce0897f2f2ea01adc |
refs/heads/master | <repo_name>matara/faker_api_app<file_sep>/test/interfaces/web_test.rb
require 'test_helper'
require 'rack_test_helper'
describe app do
let(:web_host) { 'test.domain.com' }
before do
env('HTTP_HOST', web_host)
end
describe 'main page' do
before do
get '/'
end
it 'render main page' do
... | 64515eaef44ff42b3967f6b4c26e2e8673b3d74b | [
"Ruby"
] | 6 | Ruby | matara/faker_api_app | 14dbe6580e6861f48907dc39f3ebeeed364e0e2b | 5cf1d2103db29b03c8c910153b899fbf5984b7da |
refs/heads/master | <repo_name>xiaochuankk123/python-spider<file_sep>/test/test.py
import pyautogui
import time
import random
def moveAndClick(x,y,*timeout):
#随机常量
#x,y随机距离
randomSize=random.uniform(0, 20)
#鼠标移动时间
mouseMoveSecs=random.uniform(0, 0.1)
#点击次数
clickTimes=random.randint(4,8)
#间隔
secs=rando... | e132f40177110f4c89b2b9f581a5233132929dc9 | [
"Python"
] | 1 | Python | xiaochuankk123/python-spider | 25a2bf3a2bff05e0031d1640783907ef4f5ff534 | ae45ac6f1314ba0fc1d6d69101cefe9a8a3cb38f |
refs/heads/master | <repo_name>Spanfile/DHCP-UI<file_sep>/dhcp-ui-frontend/src/common/config/IHostsConfig.ts
import { ICommonConfig, IConfigCollection } from "common/config/ICommonConfig";
import { IOptionsConfig } from "common/config/IOptionsConfig";
export type IHostsConfig = IConfigCollection<IHostConfig>;
export default interface IH... | 8b3f5396e6fdf63e4bfe5844967bd0ba320b18c8 | [
"Python",
"Text",
"TypeScript",
"Dockerfile",
"Shell"
] | 26 | TypeScript | Spanfile/DHCP-UI | 31baf31ff0f4a497ef6c427c3ef13fbdaff9a419 | 80c15ca466dc743191eb16cb85f4d2ea9143beef |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import * as Mess from './../../constants/Message'
export default class CartItem extends Component {
ChangeNumber(id,number){
this.props.changeNumber(id,number);
this.props.changeMessenger(Mess.MSG_UPDATE_CART_SUCCESS);
}
RemoveCartItem (id)... | 53010b4c4b006a28056680f0ce67b5f9462ae01e | [
"JavaScript"
] | 20 | JavaScript | TuanDong/React-JS | 7dd8b47696f674e80d10cf23567af30eb67687a0 | cff50849eb3a34e6defcdaae9948905b8448c144 |
refs/heads/master | <file_sep>import LinearSearcher
import unittest
class TestLinearSearcher(unittest.TestCase):
#Test 1
def test_list_element_is_available(self):
'''find the element 5 in list'''
list = [3, 1, 5, 2, 4]
expected = True
actual = LinearSearcher.isAvailable(list, 5)
self.assertEqu... | 26081eb1b0b7a20bc9bc84aaf24c97e20121133d | [
"Markdown",
"Python"
] | 3 | Python | rajasekaran36/pythonTrys | 8c8e4472774cef9dab3101e265ce191b451bead9 | 45fa977dca533434ecfaa4f17a1318437ef95cf6 |
refs/heads/main | <file_sep>const News = require('../models/News')
module.exports = async (req, res) => {
const news = await News.findById(req.params.id)
res.render('news', {
news
})
}<file_sep>const News = require('../models/News')
module.exports = async (req, res) => {
const allNews = await News.find({})
c... | 0e76a269821aebf9a968e9afedb6225a5b999aa1 | [
"JavaScript"
] | 7 | JavaScript | AsfandToor/News_Site | 8f5f1fff8d50bd5507bb7fd5d60b47ed06f7bdc0 | 0f8592d3e2081d406a8a7a5d5864452cbd893dda |
refs/heads/master | <file_sep>```
title: Dienstleistungen
layout: page
tags: ['intro','page']
pageOrder: 2
keywords: service, abgasuntersuchung, hauptuntersuchung, unfallinstantsetzung, reifen, klima
description: Hier stellen wir Ihnen unsere Dienstleistungen vor.
```
<img src="/images/icons/fahrzeuge.png" alt="Fahrzeuge" class="pull-ce... | 0db424be4cee81c28949526441077e9c9943928d | [
"Markdown",
"HTML",
"PHP"
] | 7 | Markdown | it4workflow/autohartmann | 0f9ca56fb5b815abefd94733b65cc4e98e9594dc | 0496c4281c06ce0771ed11c1f65f629677ba1fbc |
refs/heads/master | <repo_name>MarsMuse/gateway<file_sep>/ServiceVendor/src/main/java/com/artisan/auth/EnvironmentController.java
package com.artisan.auth;
import com.artisan.transmit.slot.FlumeBootStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework... | 0399da361ed17c76f8c9c1468b1c929b5abfdebd | [
"Markdown",
"Java",
"INI"
] | 8 | Java | MarsMuse/gateway | ea7cc8eaa54cff23fc7250b641ac7ae8a173a72a | f4155a914bd5cf0937479b6fd1d6e289f58f24e8 |
refs/heads/master | <file_sep>export class OrigDestPairs {
DestinationPairs: string;
Counts: number;
}<file_sep>import { Component, OnInit, SystemJsNgModuleLoader } from '@angular/core';
import { Data } from '../models/data';
import { DataService } from '../service/data.service';
@Component({
selector: 'app-data-list',
te... | dfe38b4664d673854a34a40a1f61941b768a36cf | [
"TypeScript"
] | 16 | TypeScript | oSoc20/destination-insight-fe | 09772c4e8bb5c09f7c9a5f9cc3efa5afb0bd6992 | 09ed62a80c50bc7b41c711898b65d79a37419db1 |
refs/heads/master | <repo_name>dseskey/noggleboggle-aws<file_sep>/rest/src/handlers/registration.js
const Bluebird = require("bluebird");
const mongoose = require('mongoose');
const validator = require('validator');
const UserModel = require('../model/User.js');
mongoose.Promise = Bluebird;
const createErrorResponse = (statusCode, mess... | 03f17093258c2b7c7cfb2572878b88b5d51735d0 | [
"JavaScript"
] | 11 | JavaScript | dseskey/noggleboggle-aws | d1885b2e74915c112616c81ceb991b399cf1f18a | 200461844188b194ea0687b3d8b1ff31030efb70 |
refs/heads/master | <file_sep>import numpy as np
import kmeans
import common
import naive_em
import em
X = np.loadtxt("toy_data.txt")
# TODO: Your code here
for K in [1,2,3,4]:
costs = []
for seed in range(10000):
mixture, post = common.init(X, K, seed= seed)
mixture, post, cost = kmeans.run(X, mixture, post)
... | 4fb8ab69e173c109889bd67b12c58caa836d3f59 | [
"Markdown",
"Python"
] | 4 | Python | mohsinali5152/MITx_machine_learning | d83e8583c91bcef1edc8222caedb63d62d4da36d | 4254a522a3021cde6020f98abcc4dadbc7f689be |
refs/heads/master | <repo_name>elitenomad/mobilApp<file_sep>/platforms/ios/www/js/chats/index.js
/**
* Created by pranavaswaroop on 28/07/2014.
*/
angular.module('chatApp.tabs.chats',[]); | bfd05d6de318db9e20929a313a9af029ad0f7d15 | [
"JavaScript"
] | 1 | JavaScript | elitenomad/mobilApp | 8946fd92bcd181ec1a70910b91c67f53491eb218 | ae62cbca34da85e6c6e20d6a987aae101ca6d3a7 |
refs/heads/master | <repo_name>lovePelmeshki/URIS_KP<file_sep>/Model/Place.cs
using System.Collections.Generic;
namespace URIS_KP
{
/// <summary>
/// Место (точка), где установлен датчик на локации
/// </summary>
public class Place
{
public int Id { get; set; }
public string Name { get; set; }
... | 862c8c2a6529b1efdc08fd10ddff089d36a7c7e4 | [
"C#"
] | 9 | C# | lovePelmeshki/URIS_KP | 1ca5018b2e55eb64ac093a8f905adaa11516c5ff | 886d34efc44bb8642ec0e0852bb41a1776bbed25 |
refs/heads/master | <file_sep># Walking the BSR Parser Forest
The parser builds a BSR set in the package `<module>/goutil/bsr` generated by gogll. Package `bsr` exports two functions to walk the parse forest:
1. `func GetRoot() (roots []Slot)` returns the roots of all complete parse trees recognised by the parser. If the grammar is unam... | 341af431097af4fcbf53a913d6e7474db6bb5839 | [
"Markdown",
"Go",
"Makefile"
] | 7 | Markdown | isgasho/gogll | ca68cd7264a5b106ef0b61d846622c31b5693047 | afe6722476f392dd4e361ccf546aca31dedca4df |
refs/heads/master | <repo_name>MaherAliwe/Financial-Front<file_sep>/src/pages/CategoryExpense.js
import React from 'react'
export default function CategoryExpense() {
return (
<div>
<h1>Category expense page </h1>
</div>
)
}
<file_sep>/src/pages/MonthlyReports.js
import React from 'react'
export defaul... | d1f9f55654ab3bf7430b22f1bcda4fbae43e2e7b | [
"JavaScript"
] | 4 | JavaScript | MaherAliwe/Financial-Front | d8d92c785c162b0497fc40ab6d8a546de4ac0a98 | 674e3ca2b71ec646b0f69c7beb13f12b38d45e9d |
refs/heads/main | <repo_name>dianabivol/tekwill-homework<file_sep>/src/com/tekwill/learning/basics/acessmodifiers/testing/Doc.java
package com.tekwill.learning.basics.acessmodifiers.testing;
import com.tekwill.learning.basics.accessmodifiers.software.Employee;
public class Doc {
Employee employee;
public void checkPublic() {
... | 23fa73007b8ee976b3017fc44df97cc8f3727eeb | [
"Markdown",
"Java"
] | 4 | Java | dianabivol/tekwill-homework | bbdd019dde1fc510556b0c323f6e54621d1edee3 | 170223e7acc89fb02fedb232e8824ea3807e80cd |
refs/heads/master | <repo_name>jod35/ruby-adventuring<file_sep>/case expressions.rb
def get_DayName(abr)
day_name=""
case abr
when "mon"
day_name ="Monday"
when "tue"
day_name ="Tuesday"
when "wed"
day_name ="Wednesday"
when "thur"
day_name ="Thursday"
when "fri"
... | 4282f7ddcec1c6c83cbb2a812c5a8c5ceb0cecea | [
"Markdown",
"Ruby"
] | 29 | Ruby | jod35/ruby-adventuring | 6b84ae3fefd466df6af0f992c3025ecad88a5302 | 16b0717de9fb313f2902835a4ca64198dc6cdeff |
refs/heads/master | <repo_name>acoelho/ExData_Plotting1<file_sep>/plot1.R
#download data if needed
if (!file.exists("./household_power_consumption.txt")) {
if (!file.exists("./exdata%2Fdata%2Fhousehold_power_consumption.zip")) {
fURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
down... | e32a467c145cab72e2a346a8f28e66de9cdff274 | [
"R"
] | 4 | R | acoelho/ExData_Plotting1 | 5e264f9a09d52807caba568fb5931b837591d475 | 80d330f77e3b4d29be634aaeb19494cd5d034821 |
refs/heads/master | <file_sep># config valid for current version and patch releases of Capistrano
lock "~> 3.12.1"
set :rbenv_type, :user
set :rbenv_ruby, '2.6.3'
set :application, "animatedgif"
set :repo_url, "<EMAIL>:maful/animatedgif-me.git"
set :user, "#{ENV['SERVER_USER']}"
set :puma_threads, [4, 16]
set :puma_workers, 0
set :pty,... | 992a1e55af4f6e9475f59fdc09db4a4473263008 | [
"Ruby"
] | 1 | Ruby | maful/animatedgif-me | 0875bad093a6c31201a1968464da86d36a22fe05 | 376627701a3fe5a59e6816fab2461e7ffb0af531 |
refs/heads/main | <file_sep>#!/bin/sh
rm -r data_set
rm -r running_time
mkdir data_set
mkdir running_time
echo "Generating Data Set.."
python runscript.py 1000 data_set/0_data_1000.txt
python runscript.py 5000 data_set/1_data_5000.txt
python runscript.py 10000 data_set/2_data_10000.txt
python runscript.py 50000 data_set/3_data_50000.... | c99dbd168e0da83a25240e6f5af34e0ba9844c1d | [
"Markdown",
"CMake",
"C++",
"Shell"
] | 43 | Shell | michaelsoliman1/Algorithms-DesignPatterns | 68fc03c20dda72116dffc098ad14a025e68ee9b4 | 07df05f800bea5ace8f67104f42879ccf96f27ac |
refs/heads/master | <repo_name>lai32290/nlw-proffy<file_sep>/mobile/README.md
# Proffy Mobile
## How to Run
Run the following command in the project folder terminal
```
# Moving into the mobile folder
$ code mobile
# Install the dependencies
$ npm install
# Run the server
$ npm start
```
Now the terminal will provide a QR Code, insta... | bc45849469bbc62ba059e398b9c603a1af35c3da | [
"Markdown",
"TypeScript"
] | 5 | Markdown | lai32290/nlw-proffy | febb7d13acb4ff41f1d895a621754d498f9abd36 | 3e96c6c6c2ef3e7d45455f62be87e36d8f06be1a |
refs/heads/master | <repo_name>wilsonzlin/cabinet<file_sep>/src/client/_common/ui.ts
import { Duration } from "luxon";
import { useEffect, useRef, useState } from "react";
export const useScreenDimensions = () => {
const [height, setHeight] = useState(0);
const [width, setWidth] = useState(0);
useEffect(() => {
const listener =... | ae38f04ba73fe1847708ee79a9a3b760690c4e6e | [
"JavaScript",
"TypeScript",
"Markdown"
] | 16 | TypeScript | wilsonzlin/cabinet | 03e1a4e53645d293896bc36b22a6f1dcbbf88b22 | 8a6415e46574777ab3db72b412f688ec0e188c0c |
refs/heads/master | <repo_name>Nadern96/TripReservation-<file_sep>/TripReserv/Trip/designTrip/apps.py
from django.apps import AppConfig
class DesigntripConfig(AppConfig):
name = 'designTrip'
<file_sep>/TripReserv/Trip/TripPackages/migrations/0005_auto_20190421_1421.py
# Generated by Django 2.2 on 2019-04-21 12:21
from django.db imp... | 436a4330047d3cc75a6af43661a3099896c3c7ae | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 30 | Python | Nadern96/TripReservation- | 5a78136cb36d23f67ef375e976b452fc7365bc53 | f20fbe5bc7dcd31ed1c94f783ae34973e86440ba |
refs/heads/master | <repo_name>jude1997felix/Music-Classification<file_sep>/README.md
# Music-Classification
A project was to classify a set of 200 songs into like or dislike by the user based on the previous interest of songs of the user.
The models used to classify are
### 1. Logistic Regression
### 2. Linear Discriminant Analysis
###... | 0bf19bb8a37cf93c94f36092b6349ce5c545a5f5 | [
"Markdown",
"Python"
] | 2 | Markdown | jude1997felix/Music-Classification | fa2b1f1037d6f938d1b7a43b15f958f718423f43 | d581469f748220dfac94d1f2067335e0f272a93b |
refs/heads/master | <repo_name>Felix-lx/webpack-vue-practice<file_sep>/01base/src/main.js
console.log(111);
import './js/demo1'
import {fn} from './js/demo2'
fn()
import './less/index.less'
import obj from './js/demo3'
console.log(obj.name,obj.age,obj.gender);
<file_sep>/01base/src/js/demo2.js
export const fn = ()=>{console.log("我是demo2")... | 03ad95b209833ba820ecefd83bf0ad38bb360fe9 | [
"JavaScript"
] | 5 | JavaScript | Felix-lx/webpack-vue-practice | 80a6aff503ff52532fb88b1377b49996135ef2ad | 6787b129d6917b759a2001a13eb92eb9c1b476a9 |
refs/heads/main | <repo_name>saivivek7495/Predicting-Customer-Churn_Neural-Networks_Deep-Learning<file_sep>/helper.py
from sklearn.metrics import confusion_matrix, roc_curve, auc
import matplotlib.pyplot as plt
# Function to compute the metrics
def compute_metrics(train_pred, y_train, test_pred, y_test):
# Confusion matrix for trai... | 717619cd981c5d7492b34010162cc821b09244b8 | [
"Markdown",
"Python"
] | 3 | Python | saivivek7495/Predicting-Customer-Churn_Neural-Networks_Deep-Learning | 8f2de75a3c5cb1e28a830edec3683b30da2ea406 | 47d02eb861c9421d95a49c165410949e5f4c92ed |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import { FormBuilder, FormControl, Validators } from '@angular/forms';
import { HttpClient } from '@angular/common/http';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
... | 14c3248b036564867b19e1f60e556165e2170273 | [
"TypeScript"
] | 1 | TypeScript | sreenivasarajiv/global-mantra-demo | 8e82cae91ba810a2e359390180a004d7dafa0d52 | 6c69da7e9cd789c134452f1355d4c2fbab52b69c |
refs/heads/main | <repo_name>garrettroth/Metaverse-Sicariis<file_sep>/README.md
# Metaverse-Sicariis
The Sicarrii are known to be the first organized cloak and dagger assassin group, their goal was to free the Judean people from Roman Occupation. They were succussesful due to the tools and resources at their disposal. This repository... | 3de26610573401457170585493f2e15dac6fa5ee | [
"Markdown",
"Python"
] | 2 | Markdown | garrettroth/Metaverse-Sicariis | 181d1b4e5cb68026a3d58f944024dfc019b85ef3 | 6018a975e66a21a12c0d9de5b10e2007d69c9ce0 |
refs/heads/master | <file_sep>import requests
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import style
import statistics
import math
import pylab as pl
from scipy.stats import lognorm
style.use('ggplot')
day_before = input("how many days you need for API?: ") #Days for API
cRs = input("What is... | 836e476023b4e99bef21ae4b876aabd6b849e63a | [
"Markdown",
"Python"
] | 2 | Python | GreatSoshiant/Monte-Carlo | ebfdb0502250859554abe4baeb64fca0855daecc | 980a9278c0453ada2ba8730600edef8dc757f95b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.