branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>Juliannotcg/DesafioSoftplan<file_sep>/server/CalculoJuros/CalculoJuros.Api/AutoMapper/AutoMapperConfiguration.cs
using AutoMapper;
namespace CalculoJuros.Api.AutoMapper
{
public static class AutoMapperConfiguration
{
public static MapperConfiguration RegisterMappings()
{
... | 0ee60936836bd3bbf30130a17830c1011c6adce4 | [
"JavaScript",
"C#"
] | 37 | C# | Juliannotcg/DesafioSoftplan | 701b550cfb2e1ff0e499aa46c2a82202ab3ce8a8 | 380f059c3542cb82b12467a3bfbbf4d2aaec6abb |
refs/heads/main | <file_sep><?php
namespace DanioRex\ClientAtomApi;
use DanioRex\AtomApiBuild\CatalogFactory;
use JetBrains\PhpStorm\ArrayShape;
/**
* Model for every Catalog/Marketing method described in <a href="https://www.atomstore.pl/dokumentacja/545-metody---katalog,-marketing.html">Atomstore Documentation</a>
*/
class Catalo... | 7e7005b497c95c865ce123182300516b3c5d5a3d | [
"Markdown",
"PHP"
] | 26 | PHP | DanioRex/client-atom-api | 29e3c1e071061114dda142d65129d7b7e86ffd54 | 7133ffcafdd38aa9bef228876b9a1d8399370cf2 |
refs/heads/master | <file_sep>name 'dripstat'
maintainer '<NAME>'
maintainer_email 'paulo_ricardo_mg_gmail_without_underscore'
license 'Apache 2.0'
description 'Installs/Configures dripstat agent'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.4'
<file_sep># I... | d8030dcc929c6ed831f98c0ab3c1b81c8e908e6f | [
"Markdown",
"Ruby"
] | 5 | Ruby | chaordic/dripstat-chef | 55936e43dd9d5549720df63ecc4ee17f0b647311 | 6ac217aef839881f0a46621d29025cc0683067f4 |
refs/heads/master | <repo_name>patrickleboutillier/jcscpu-sn74hcxx<file_sep>/ScottIO/ScottIO.ino
#include <LiquidCrystal.h>
// Device types
#define TTY 0
#define TTY_NUM 1
#define RNG 2
// Shift register pins
#define CLOCK_OUT 2
#define DATA_OUT 3
#define LATCH_OUT 4
#define CLOCK_IN 5
#define... | 590a1735080d8efe691247e4bc781f7920dd4903 | [
"Markdown",
"C",
"C++"
] | 15 | C++ | patrickleboutillier/jcscpu-sn74hcxx | 4fb3218d47d85922bfde8f944ce4563f4a9bf2b3 | 3cb4391ffd084c4281582ceb2f9a24e34ad8fb21 |
refs/heads/master | <repo_name>Fiaesrsr/MVVM_StartProjekt<file_sep>/MVVM_StartProjekt/ViewModels/ShellViewModel.cs
using MVVM_StartProjekt.Models;
using Prism.Mvvm;
using MVVM_StartProjekt;
using MVVM_StartProjekt.ExtensionMethods;
using System.Data;
using System.Collections.Generic;
namespace MVVM_StartProjekt.ViewModels
{
class Sh... | 20305a40f1e537fe9ce30cc8b17e709c5af8291b | [
"C#"
] | 2 | C# | Fiaesrsr/MVVM_StartProjekt | 94a7102e3651e0a9d6ab74a57334f2b2b21503f2 | 47ad152641078d4cbd01189867cf24919d71d946 |
refs/heads/master | <repo_name>JimyFengqi/Novel_spider<file_sep>/dingdian/pipelines.py
# -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from dingdian import settings
import os
import urllib2
from d... | 6f7eb826b225e4e109f7f5af1e194e00fa4f3862 | [
"Markdown",
"Python"
] | 4 | Python | JimyFengqi/Novel_spider | bedd29eed89d6b257ac964674642febea0bf9eae | 8a94cf311d89206bb6e6a19a01431954bb7c8d3a |
refs/heads/master | <repo_name>oen142/Study-Jpa-SpringBoot-SpringSecurity<file_sep>/src/main/resources/application.properties
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.datasource.url=jdbc:h2:~/test
spr... | 9ae8c29d2e1c7a12dd4cc61f36e3813f8616c9bc | [
"Java",
"INI"
] | 3 | INI | oen142/Study-Jpa-SpringBoot-SpringSecurity | b200de856cf7517e02c01b7257f57835759981ad | d04aa82370ef33464ff694d8b3fabbbb31f0d716 |
refs/heads/master | <repo_name>hallgrimur1471/pit_strategy_optimizer<file_sep>/src/spreadsheet.py
#!/usr/bin/env python3.7
# Standard library
import re
import pickle
from datetime import timedelta
from typing import Dict, Tuple, List, Any
import os.path
from os.path import dirname, abspath, join
# PyPi
from googleapiclient.discovery imp... | d9c03a776b5b37595689f171b330dcec5a3c1936 | [
"Markdown",
"Python"
] | 5 | Python | hallgrimur1471/pit_strategy_optimizer | 0acc3d99bcf824ac0767d43d95f3f8439881231e | bc3c195645aa44da715c4a1b4f10be2d55b44186 |
refs/heads/main | <file_sep>
from sklearn.model_selection import GridSearchCV
from sklearn.ensemble import RandomForestClassifier
from xgboost import XGBClassifier
from sklearn.metrics import roc_auc_score,accuracy_score
from apps.core.logger import Logger
from sklearn.metrics import r2_score
class ModelTuner:
def __init__(self,r... | f146925c2260114716a259363734eae8fe140984 | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 14 | Python | imdhruv99/Employee-Retention-Prediction | 53f8d8b9ba96bb91e4c6bd9e99067e05254e70ed | 1343e3109520329ec545af346d4fcf50bd3db75f |
refs/heads/master | <file_sep>'use strict';
var exec = require('child_process').exec;
var fs = require('fs');
var path = require('path');
var express = require('express');
module.exports = {
start: startHookReceiver
};
function startHookReceiver(port, configsDirectory) {
console.log('Hook receiver is listening on port: ' +port);
... | 941776cd61759ded5a624aae6749fa56d21752f8 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | aortmannm/hook_receiver | 3ee18de8047b8ed08db17b3cb5ff674b196eb7dd | fb8a2f33d78456304d1408c2b887071e04806289 |
refs/heads/main | <file_sep>// # Review 4 - For loops
// NOTE! Pay close attention to creating code with good and consistent code style.
// Use the variable "i" for all your loops. That variable should *not* be accessible outside the loop. Always use a for loop.
// 1. Make a loop that prints the numbers from 0 to 10.
for(i=0;i<=10;i... | 8cfec9a3bc254a0fbf9b085e89df6cdfd5f5bd58 | [
"JavaScript"
] | 1 | JavaScript | FbW-E01/pb-review-forloops-Asaroz | b66c2971f920b919e61019151ee11c57995ec3c8 | f03e339c2e6e53f62823d07017bb32a0ca418e03 |
refs/heads/master | <file_sep>import argparse
import logging
import os,sys,copy
import Utils
parser = argparse.ArgumentParser()
parser.add_argument('--ConfigFile' , type=str, default='./config.ini', help='config file for everything! Should be .ini file!')
parser.add_argument('--Debug', type=bool, default=False, help='options for debug mo... | 64b7ede359138d6eca1657078e60f28d0a410ee5 | [
"Markdown",
"Python",
"INI"
] | 4 | Python | LittlePawer/RPI_Sensor | abd73b27d78e356a641502a0e4e44dd5317073ff | 9730f5c4534bc7698dfed1c63c60ea0f894f0cf1 |
refs/heads/master | <repo_name>xinxibin/ChangeAppIconDemo-Swift<file_sep>/README.md
# ChangeAppIconDemo-Swift
动态更换 App 图标,从 ios 10.3开始,系统已经支持开发者自己实现api来更改应用图标。
## 新的api
系统api更换图标只有三个方法:
```objc
extension UIApplication {
// If false, alternate icons are not supported for the current process.
@available(iOS 10.3, *)
open v... | ca292c532550e1f1d6881d1d74009fe23a16e9aa | [
"Markdown",
"Swift"
] | 2 | Markdown | xinxibin/ChangeAppIconDemo-Swift | 46cd0f06c40b22301c5406e6c8b7fb13304f14e3 | 56e06bdcf3539900833b262ab176c1e73b291ff9 |
refs/heads/master | <repo_name>ApoorvaHub/MyStore<file_sep>/Explore/src/expackage/radioButton.java
package expackage;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
impo... | f4f7a840027ef1f44b6de4413e60ea1fdf8bdb79 | [
"Java"
] | 2 | Java | ApoorvaHub/MyStore | c40cc182a05ec82a7e4129a19ad51df78ef23efe | faf2862901cbb417163339375e68b56bb861ba22 |
refs/heads/master | <repo_name>LeftoverCurry/ruby_hangman<file_sep>/hangman.rb
# frozen_string_literal: true
require 'json'
# Used to convert and parse saved games.
# Once called, this class will create and run a game
class Game
# Defaults are provided for creating new game
def initialize(user_name, chosen_letters = [],guesses_remai... | 4120f6cf00eb06638191b2ca048411f2d61d4ea9 | [
"Ruby"
] | 2 | Ruby | LeftoverCurry/ruby_hangman | 38c1f37fecea8f9dc58adcbe443478c3402d3d95 | a0778e3606e65f1a8b71270a258ef581895a14f3 |
refs/heads/master | <repo_name>jacekgry/AEM<file_sep>/test_local_search.py
import random
import sys
import time
from collections import defaultdict
import numpy as np
from aem import steepest_local_search_edges, steepest_local_search_vertices, \
greedy_local_search_edges, greedy_local_search_vertices, get_path_length, adjacency_matr... | 59eb65a7d345f2a96a8aace47741d4ff80c53525 | [
"Python"
] | 3 | Python | jacekgry/AEM | 30736f92c9cc6422d44bab28f344861ddc0610e6 | 864f870efc9d7c46a00c14bd7b13ec9cbb84a811 |
refs/heads/master | <file_sep>import { Component, ViewChild } from '@angular/core';
import { NavController, Slides, ToastController } from 'ionic-angular';
import * as WC from 'woocommerce-api';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
Woocommerce: any;
products: any[];
productsMor... | d2cea6c54aa21e4402d9d0fe8a27f142df2e82db | [
"TypeScript"
] | 1 | TypeScript | mariadebawi/woocommerce | c5582a8f84dfc0dce238942c16875ee3bac1d78a | e8e39434c7406f104a05da947b1d4eaa4bbac65c |
refs/heads/master | <file_sep>package parlanchin;
public interface Parlanchin
{
public void habla();
}<file_sep>package parlanchin;
class Gato extends Animal
{
public void habla()
{
super.habla();
System.out.println("¡Miau!");
}
}<file_sep>package parlanchin;
class Perro extends Animal
{
public void habla()
{
super.habla();
System.out.pri... | 2b6da529342c2a0d55897bb391f6107cd1f76139 | [
"Java"
] | 3 | Java | GameCore/Parlanchin | 675f59c071923abf53413ffb9bf1fa57b1d0a84c | 86185332e15d069ad03e2aa5dd0f13f641248f88 |
refs/heads/master | <repo_name>shekharshende/MusicPlayer1.1-master<file_sep>/app/src/main/java/com/example/root/musicplayer/Media/service/MusicService.java
package com.example.root.musicplayer.Media.service;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Pe... | 1e743e3ff302687c0a0f63bf60a64cd7d795003d | [
"Java"
] | 2 | Java | shekharshende/MusicPlayer1.1-master | 2bbdb9ddb47f805f76792354b64d84a0c9243de2 | a5273a3630494f8193b8df1e0768b78efab70ed9 |
refs/heads/master | <repo_name>cnsuhao/fruit<file_sep>/tests/test_normalized_component.py
#!/usr/bin/env python3
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at... | 8ae1152108c374f93507b0fef71a9e2d100f8f85 | [
"Python",
"Shell"
] | 11 | Python | cnsuhao/fruit | d873e2f2d12d08beef9c2f3818706b587fbefc99 | 94ff1ad410532a3d80b5bc2552808cee556d83ea |
refs/heads/master | <repo_name>slowli/arithmetic-parser<file_sep>/parser/src/parser/tests/order.rs
//! Tests for order of operations.
use assert_matches::assert_matches;
use nom::Err as NomErr;
use super::{sp, span, FieldGrammar};
use crate::{
grammars::{F32Grammar, Untyped},
parser::{binary_expr, expr, Complete},
BinaryOp, ... | 945fb69ffe0c1a6bb1c3f3e16694d9106cc6f636 | [
"Markdown",
"Rust",
"JavaScript",
"TOML"
] | 120 | Rust | slowli/arithmetic-parser | 378c05682b5f9942045e6c9323eb6829608c64b6 | dfaf28bc95a51312abd7ad03c0ce033f28735644 |
refs/heads/master | <file_sep>// Sort N Numbers.cpp
//
// Copyright 2015 Akash <<EMAIL>>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later ver... | 1a6ba7d5c55ea18244bc9671070468bcd61a9d79 | [
"C++"
] | 1 | C++ | wildflower20/NumberSorter | 3bc1df49081a26098aaca59d4d7c15e03c433e5b | c5a0c458ff47c4fe88c980d2acf2db3c86f47155 |
refs/heads/main | <file_sep># Class-92-in<file_sep>question_turn="player1";
answer_turn="player2";
player1=localStorage.getItem("player1_username");
player1Score=0;
document.getElementById("player1_name").innerHTML=player1+":";
document.getElementById("player1_score").innerHTML=player1Score;
document.getElementById("pl... | 7c13b92204790b28bdd185833c30328a7bdadc5f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Rayan20107/Class-92-in | 7a3e97f18e55eb8cbaa342e6038eafaf90574351 | c79a21c21ff09e899e34693a3e097fca52d609aa |
refs/heads/master | <repo_name>pholophus/React-Music-App<file_sep>/src/App.js
import React, {useState} from 'react';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
import Songlist from './Components/Songlist';
import Home from './Components/Home';
import Artist from './Components/Artist';
import { Button,... | 492cc13d031f22c61155449a084003df52cc8b49 | [
"JavaScript"
] | 3 | JavaScript | pholophus/React-Music-App | 5f76545023902b68a18fe6330e0396dbd2e784fd | ed1de4f602d0eee4f7145415e4b1a1010ec5fd27 |
refs/heads/master | <repo_name>da34/Vue-m-project<file_sep>/README.md
# vue移动端项目
> A Vue.js project
> 这是我学习vue的第一个项目,很多冗余的代码,请谅解
## 技术栈
* vue全家桶(vuex vue-router)
* mint-ui 组件库
## 项目界面

## 运行
``` bash
# 安装项目依赖模块
npm install
# 运行此项目
npm run dev
```
For a detailed explanation on... | 83b439763a08d0086641585ffca9c6bce831b2c9 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | da34/Vue-m-project | e57058dcc7f7e9f90df1a9605af027f738d731e0 | 8d7bf9c2881bb758e9d6b9ae5e29009cdaaa949a |
refs/heads/master | <file_sep>#!/usr/bin/env python
import dbus
bus = dbus.SessionBus()
remote_object = bus.get_object("org.za.hem.DBus", "/Root")
remote_object = bus.get_object("org.designfu.SampleService", "/SomeObjectX")
iface = dbus.Interface(remote_object, "org.designfu.SampleInterface")
hello_reply_list = remote_object.HelloWorl... | cb46d1f4537e9660fddf898683ca1a6e6689853d | [
"Markdown",
"Python",
"Shell"
] | 4 | Python | lauramcastro/erlang-dbus | 4e908c1d0de0386ee9d83ac757c56fc4610ac606 | fbffd1db5a5ddf3cddec09134fc0bf687e9b2b10 |
refs/heads/master | <repo_name>johanye/portfolio<file_sep>/js/router.js
App.Router.map(function() {
this.route('about', { path: '/about' });
this.route('contact', { path: '/contact' });
this.route('index', {path: '/'});
this.resource('portfolio', { path: '/portfolio' }, function(){
this.resource("project", { path: "/:project_id... | d38b27733c9ff2cb9cce6a7cea3a527964a57e22 | [
"JavaScript"
] | 2 | JavaScript | johanye/portfolio | 17c3420103fef2177819c2bd2d710ac3eec9e056 | f3118547ae5b1b3dc668f0f52409d7cc7ae5a976 |
refs/heads/master | <file_sep>
Spring的Application拥有发布事件并且注册事件监听器的能力,拥有一套完整的事件发布和监听机制。在Java中,通过java.util. EventObject来描述事件,通过java.util. EventListener来描述事件监听器,在众多的框架和组件中,建立一套事件机制通常是基于这两个接口来进行扩展。
在事件机制中,一般有以下几个概念:
- **事件源**:事件产生者,事件是事件源与监听器之间传递的信息
- **事件广播器**:事件源与事件监听器的中介,当事件源发布一个事件时,由事件广播器传递给对应的事件监听器,起到解耦作用
- **事件监听器**:事件处理者
**事件使用示例**
首... | 4488e51506263de4e3e6df75b7d4bee5e828c17f | [
"Markdown",
"Python"
] | 13 | Markdown | luoxn28/warm | 36988a493235aab0a133324a628ac22f96b1b2a4 | 91a8cb0d08ac30f3770b8905c9979a7a0f34769c |
refs/heads/master | <repo_name>kevinqianjiawen/CSCI212-Lab13<file_sep>/WordCount.java
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import java.util.HashMap;
import java.util.Set;
public class WordCount{
private HashMap<String, Integer> frequency;
File fileName;
public WordCount(File file... | ad932bd40243ac53fdabfdce50463f730dcdb08d | [
"Markdown",
"Java"
] | 2 | Java | kevinqianjiawen/CSCI212-Lab13 | 1063c4db1d43d6900faf23e38528d4334876a430 | fb8ec74a049f795b822a3e848f2dd2fb233c84f9 |
refs/heads/master | <repo_name>dopsonbr/feature-toggle-service<file_sep>/src/main/kotlin/com/dopsonbr/featuretoggleservice/FeatureToggleController.kt
package com.dopsonbr.featuretoggleservice
import io.micrometer.core.annotation.Timed
import io.micrometer.spring.web.servlet.WebMvcMetrics
import org.springframework.beans.factory.annotatio... | 29a7a030feff290acc776f7cea060dd81240c3ad | [
"Markdown",
"Kotlin",
"Shell"
] | 4 | Kotlin | dopsonbr/feature-toggle-service | 7a5149c21360c2f988a74b611ec5445c31749508 | f14747678fc8740e1e2cd5cf894b771a5362235d |
refs/heads/master | <file_sep>import React, {Component} from "react";
import {render} from "react-dom";
import axios from "axios";
import {KTVBox} from "./KTVBox";
import {fetchBoxListA} from "../actions/boxListA.js";
class BoxList extends Component{
constructor(props){
super(props);
this.state = {
data: [... | 0ab5fd72ff5b0e976825125e27176470182dba8a | [
"JavaScript",
"Markdown"
] | 35 | JavaScript | JacobWay/smile-you | 5041172f690d0fd1968783c9b615729304338638 | 53e5670f2254bec59358d2681b38d604cac8d681 |
refs/heads/dev | <repo_name>yuu-eguci/SharePointMaid<file_sep>/copy_xlsx_sheet.py
import datetime
import calendar
import openpyxl
import util
# このモジュール用のロガーを取得します。
logger = util.get_my_logger(__name__)
def run(workbook_path: str) -> None:
"""指定した workbook に M月第N月曜日 シートを追加します。
Args:
workbook_path (str): workbook のパス
... | 21cddbae629f5edc75c28bf951b2692d8ffc16c6 | [
"Markdown",
"Python"
] | 9 | Python | yuu-eguci/SharePointMaid | a70355faed9402a5a5532253b40e26ed0d1f145d | 9653176e58b338b2c78d3029b3c89fd849fc5283 |
refs/heads/master | <file_sep>module.exports = {
homepage: "https://moritzr.github.io/dsa-character-sheet",
}<file_sep># DSA character sheet
[](https://github.com/moritzR/dsa-character-sheet/actions)
A webapp for rolling skill checks in the role... | 66c1d6a21ce158fdba7f5aa31b0ce088df44ace4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | MoritzR/dsa-character-sheet | 9a5204e1c08fbb0f84641d66602078702d8e0ea4 | aac70338b34bc6c190d454895c258c7b3aefe609 |
refs/heads/master | <repo_name>Baksonator/fat16<file_sep>/src/rs/raf/os/gui/Main.java
package rs.raf.os.gui;
import rs.raf.os.disk.Disk;
import rs.raf.os.disk.SimpleDisk;
import rs.raf.os.fat.FAT16;
import rs.raf.os.test.MockDirectory;
import rs.raf.os.test.MockFAT;
public class Main {
public static void main(String[] args) {
FAT16 ... | 137444809f593da521f87d32b38556d762f4366e | [
"Markdown",
"Java"
] | 3 | Java | Baksonator/fat16 | 0d9dea9be782f4caf1a4cf986cd4bd7b4ad5ec28 | 81d2ddea0cc08dc06aa9f594acaf5f311c2f7e13 |
refs/heads/master | <repo_name>XSation/AgileUtils<file_sep>/common/src/main/java/com/xk/common/utils/AppUtils.java
package com.xk.common.utils;
import android.app.Application;
/**
* @author xuekai1
* @date 2019-07-03
*/
public class AppUtils {
private static Application application;
public static void init(Application _appli... | 61d6b65c736a6191c06f43a3ee270f1665de59d0 | [
"Markdown",
"Java",
"Gradle"
] | 5 | Java | XSation/AgileUtils | a117855f5d46cea626071cf2dabc0002fa7931b0 | 169fafeb3d16e2a035fc51c5c2dd765dd08751a9 |
refs/heads/main | <file_sep>/* eslint-disable react/display-name */
import React, { cloneElement, forwardRef } from 'react';
import ReactSelect, { components as selectComponents } from 'react-select';
import AsyncReactSelect from 'react-select/async';
import {
Flex,
Tag,
TagCloseButton,
TagLabel,
Divider,
CloseButton,
Cent... | 4e95b616e684842bb74885e84e14f03efda3530e | [
"JavaScript",
"SQL",
"Makefile",
"Markdown"
] | 37 | JavaScript | iamsahebgiri/jeevan-dan | e801e81a82280f926e4a7a76baa16ae011cb4759 | 7a1df08d671bca1db1531ac042dac61f28b1db22 |
refs/heads/master | <repo_name>tinganho/composer<file_sep>/src/harness/runner.ts
/// <reference path='../../typings/connect-modrewrite/connect-modrewrite.d.ts'/>
/// <reference path='../../typings/mocha/mocha.d.ts'/>
/// <reference path='../../typings/chai/chai.d.ts' />
/// <reference path='../../typings/express/express.d.ts'/>
/// <refe... | 690d96192789239f13d196d110062da5b2af0d91 | [
"JavaScript",
"TypeScript"
] | 22 | TypeScript | tinganho/composer | 9189f1aab6f647502fc8de58fdb12b5f09d82ef0 | 850bf74353771a2d2ae17e396f3a17d0c15dc214 |
refs/heads/master | <repo_name>springchill/Springchill<file_sep>/Modules/UtilModules/Http/Controllers/EntityUtilController/SmsController.php
<?php
/**
* Author Ych
*/
namespace Modules\UtilModules\Http\Controllers\EntityUtilController;
use Dotenv\Validator;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use App\Http\Contr... | f85798d55633e3ce25e327e39acf6c0c5f8c9843 | [
"Markdown",
"PHP"
] | 21 | PHP | springchill/Springchill | ffc325d31f4281b4ebc63314ca77eea714d3ebcc | 0a788c35c1e0bf6137a4addc4ab92789c376c34c |
refs/heads/master | <repo_name>feelxing/Tool<file_sep>/MyPattern/src/main/java/com/feelxing/tool/pattern/Pattern_2.java
package com.feelxing.tool.pattern;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by MEV on 2017/3/20.
*/
public class Pattern_... | a0e796c74bd3f1d1f462f6ab6246a0dabef0a59c | [
"Java"
] | 1 | Java | feelxing/Tool | e440c30e2dd3420c6215957722f10ad2da5d189b | 51ecb31da950cd51efed8a2bb9e9f2b2ffabf77f |
refs/heads/master | <file_sep>const pluginLoggin = require("./plugin-logging");
let paths;
let compilation;
beforeEach(() => {
paths = ["a.js", "b.js", "c.js", "a.js"];
compilation = {
warnings: {
push: jest.fn(),
},
errors: {
push: jest.fn(),
},
};
});
it("skips logging if onDetected is supplied", () =>... | 29ac040274bfd15804945745db2c72a50b7fb33f | [
"JavaScript",
"TypeScript",
"Markdown",
"Shell"
] | 18 | JavaScript | sfrieson/circular-dependency-plugin-visualizer | 0995cfefa5f8284b31425b729abf830550f2add0 | 6578ed2b0c5df2ea555fdcb3a8b24c4e77c736f3 |
refs/heads/master | <file_sep># Electron-chat-app
Desktop chat application
<file_sep>const app = require('./lib/app').app;
const port = process.env.PORT || 3010;
app.run(port);
| 714e46b4c939afef39b32aeb61e7734e08edd7ec | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Priyanka-Lubal/Electron-chat-app | e6cd8a2cd9dbd7fa2293a0e238398d34101a9874 | 648f8da6bfc750010be014f73fe8545f2f46088c |
refs/heads/master | <repo_name>atasilyas/SpringBootEcommerceApiJersey<file_sep>/src/main/java/com/melardev/spring/shoppingcartweb/controllers/AddressesController.java
package com.melardev.spring.shoppingcartweb.controllers;
import com.melardev.spring.shoppingcartweb.dtos.response.addresses.AddressListDto;
import com.melardev.spring.shopp... | 0d358a3567b720495351aef5fb5c961de0029eb1 | [
"Java"
] | 11 | Java | atasilyas/SpringBootEcommerceApiJersey | 8beb8100d1941ce537af93a32ac5f9f312aa6d10 | bf07bae47a8e5d6090f3caa8b44acb473b6a6c72 |
refs/heads/master | <file_sep><?php
namespace maoyong;
class Test
{
public function __construct()
{
}
public function test1()
{
echo 'Hello';
}
}<file_sep><?php
/*
* @Author: your name
* @Date: 2020-04-14 09:57:56
* @LastEditTime: 2020-04-14 10:02:31
* @LastEditors: Please set LastEditors
* ... | e060d69049624cd89316a1e8aab3b960dc80db41 | [
"PHP"
] | 2 | PHP | maoyong/Rsa | 260758612878d67c4fdd1f11589bffb98eb5302d | 91982fa12c13f5066e536933f163a7e96b8d63dd |
refs/heads/master | <repo_name>OpenMandrivaAssociation/xfs<file_sep>/xfs.init
#!/bin/sh
#
# xfs: Starts the X Font Server
#
# Version: @(#) /etc/rc.d/init.d/xfs 1.4
#
# chkconfig: 2345 20 10
# description: Starts and stops the X Font Server at boot time and shutdown.
#
# processname: xfs
# config: /etc/X11/fs/config
# hide: tru... | 85626c51c535ccb818e4c1ef0a9c4d0395258c5b | [
"Shell"
] | 1 | Shell | OpenMandrivaAssociation/xfs | 6b85c290d975f141c785f4b00d48fdf271798825 | ac5f85315af57f15483323d0e5a776af1e628d34 |
refs/heads/master | <file_sep>//
// Category+CoreDataClass.swift
// Todoey
//
// Created by <NAME> on 11/10/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
//
import Foundation
import CoreData
public class Category: NSManagedObject {
}
| 52c9f5ca00fb9b81094308f7f9509643c5c7d55d | [
"Swift"
] | 1 | Swift | aaozhogin/Todoey | dd7b27060a58d86d125a62fa73c9db4a769e37c4 | f7ab322f838ab96eeca8c39b3364bde16805e875 |
refs/heads/master | <repo_name>kenenbek/lib<file_sep>/trace.go
package lib
import ("fmt"
)
func SIM_links_observer() string {
var logTraffic string
c := 0.064
for link := range env.routesMap {
queueLength := len(env.routesMap[link].queue)
traffic := c * float64(queueLength)
logTraffic += fmt.Sprintf("%.2f,", traffic)
}
return... | bd4e2d1651577799a2298a49766309e6220378eb | [
"Markdown",
"Go"
] | 13 | Go | kenenbek/lib | d6a15b2feb0c79e4a3d65d1dd52f223e20181bab | 7d150bbfe27e06fe62fa68a92dc2cf932b1c69e4 |
refs/heads/master | <repo_name>hubbdevelopers/hubb<file_sep>/models/communityMember.go
package models
import (
"github.com/jinzhu/gorm"
)
type CommunityMember struct {
gorm.Model
UserId int `gorm:"type:INT(10) UNSIGNED; not null; index"`
CommunityId int `gorm:"type:INT(10) UNSIGNED; not null; index"`
IsOwner bool
}
<file_s... | 1363a10799c56593cc51851dfd4b7b8ced41d4a0 | [
"Go Module",
"Go"
] | 26 | Go | hubbdevelopers/hubb | f82b166d2e09dbbc24217337da79db141550c87c | 3630c08b837d159123dd90567bdc41c325a492d5 |
refs/heads/master | <repo_name>andydlindsay/bar_gen<file_sep>/README.md
# Bar-Gen
#### The customizable bar chart generator
## Table of contents
* [About](#about)
* [Usage](#usage)
* [Example](#example)
* [Parameters](#parameters)
* [The data parameter](#the-data-parameter)
* [The options object](#the-options-object)
... | 3531c6275faa9988d420b4ff7698da182f5717d7 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | andydlindsay/bar_gen | d84223c5b6e05827910909512013989ca71541fa | 5b04b5c63cc9df0d307624acb90aaa9129f1b5aa |
refs/heads/master | <file_sep>import { NoimagePipe } from './noimage.pipe';
describe('NoimagePipe', () => {
it('create an instance', () => {
const pipe = new NoimagePipe();
expect(pipe).toBeTruthy();
});
});
| 3ecd1bf359efb45a79f18136120beec484de9ad2 | [
"TypeScript"
] | 1 | TypeScript | juanvictor/spotiapp | c7963745303c501dd6c818c275273cb1a12cea21 | 434a1694056b104efa1e71836cf8698c3c7d0728 |
refs/heads/master | <repo_name>uiktiomasfeliz/BBlurrMEAN<file_sep>/client/app/index/indexService.js
'use strict';
app
.factory('indexService', function($http) {
var MyService = {};
$http.get('resources/data.json').success(function(response) {
MyService.data = response;
});
return MyService;
... | 391e0ebf25fb1d897c99e41f8f3031e70a736511 | [
"JavaScript"
] | 3 | JavaScript | uiktiomasfeliz/BBlurrMEAN | 1951f4543f60c6c3d401860e8255e694a142016c | d45a36a70dcd27dda464f821e56bcf9f5001d677 |
refs/heads/main | <file_sep>#include <math.h>
void someCalc(double a, double b, double *c)
{
*c = sqrt(pow(a,2) + pow(b,2));
}
void processSomeArray(double inArrayA[1024], double inArrayB[1024], double outArray[1024])
{
for (int i = 0; i < 1024; i++)
{
#pragma HLS PIPELINE
someCalc(inArrayA[i], inArrayB[i], &outArray[i]);
}
}
/... | 017e76c441824ae76a03dc96fdceb9c435c7dc32 | [
"C++"
] | 1 | C++ | Maryamsana-1998/HLS-LAB-3 | 3fb627488aca31852c266f4d96057c036d3476d0 | e3e23fbd9688c0670f7f294ea0cb714604b8198d |
refs/heads/master | <file_sep># Generated by Django 2.1 on 2019-02-11 17:54
import ckeditor_uploader.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name... | 855fe6df6648e831b2d7e680edea7cc6ec698ae3 | [
"Markdown",
"Python",
"JavaScript",
"HTML"
] | 27 | Python | I4Can/NewBlog | f44e1784a4c237fb1f26aa60e100c9a0178e25b9 | aa5b0435dea21832675c494250e99db20eb11f0d |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""Main module."""
class Tibble:
def say_my_name(self):
return "Alex"
<file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `tidydata` package."""
import pytest
from tidydata import tibble
def test_tibble():
"""Sample pytest test function with the... | 454a2f44a8165fa146cd69a2aec8ba8c0a5d258d | [
"Python"
] | 2 | Python | fraxx001/tidydata | cc70b43a2db75efa0ba57da31384e4b30b266498 | 01cfd703df4787ab5b4e14de871564267ffaab7b |
refs/heads/master | <file_sep>//package com.ischoolbar.programmer.dao;
//
//import com.accp.entity.EntityVO;
//
//import javax.persistence.Column;
//import javax.persistence.Table;
//import java.lang.reflect.Field;
//import java.sql.ResultSet;
//import java.sql.SQLException;
//import java.util.ArrayList;
//import java.util.List;
//import ... | c3ea4feedef92d5d0777443027b91e4dc348a59b | [
"Java"
] | 1 | Java | yibo-work/studentManager | 7716928fff251cda8f8e23331bfaf525aab1e447 | a24ccd015b141d1fb8173c93f4aa2e1a48eb54e8 |
refs/heads/master | <repo_name>geksiong/gsx-demo<file_sep>/gsx-demo.ts
import { GsxDemo } from './src/GsxDemo.js';
window.customElements.define('gsx-demo', GsxDemo);
<file_sep>/index.ts
export { GsxDemo } from './src/GsxDemo.js';
<file_sep>/src/GsxDemo.ts
import { html, css, LitElement, property } from 'lit-element';
export class GsxDem... | 4520fa8d95336d1602becc349dceca8782f179f4 | [
"TypeScript"
] | 3 | TypeScript | geksiong/gsx-demo | e036dfd4312fa6fdbbe37619beb9c120ca8b5934 | 610f26bf37ae52f525ada630727f183732d99def |
refs/heads/main | <repo_name>valyanggy/-UwU-<file_sep>/README.md
# generative-idk
I just played with the beautiful library of http://www.generative-gestaltung.de and trying to learn a bit about P5.js since they used it.
Have this thought to incorporate font variable(this website is sourceful for fonts: https://v-fonts.com/licenses/tri... | 7341e635ca7cee50fc6983979ad5d7bbd4a4b654 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | valyanggy/-UwU- | 6004b041a3622f313d3918c81791134bfb162f15 | 82669e2c889f6297937ec309041c8461967d9a54 |
refs/heads/master | <repo_name>ahmed-raza/knb<file_sep>/config/vars.php
<?php
return [
'site_name'=>'Motor Classifieds',
'slogan'=>'Welcome',
];
<file_sep>/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|---------------------------------------------------------------... | 5412db687a7517777ce1085aece2883218064fea | [
"PHP"
] | 9 | PHP | ahmed-raza/knb | e4d86ab49e53f3dad89d4631b6a7efa54907d867 | 6c3769bc7e8d32e11047febfc0177dff9d049a6d |
refs/heads/master | <file_sep>'''
This computes the result of (base ^ exponent) % modulus for large numbers with
both an iterative and recursive solution. Time complexity is O(logN) where N is
the exponent.
'''
def power_mod(base, exponent, modulus):
result = 1
base = base % modulus
while exponent > 0:
if exponent % 2... | 30331c036d16ec6e788323011273e9c3155a5297 | [
"Markdown",
"JavaScript",
"Makefile",
"Python",
"C"
] | 18 | Python | schana/random-hacking | 5eeda2f05681ce9f56f1b9114255c2392e92ee9a | 77fb707cf6d270f6566277e76981fb4b352a701e |
refs/heads/master | <repo_name>bojosteph/redux-thunk-lab-online-web-pt-102218<file_sep>/src/actions/catActions.js
import {
LOADING_CATS,
FETCH_CATS
} from './types'
export const fetchCats = () => {
return (dispatch) => {
dispatch({ type: LOADING_CATS })
return fetch('http://localhost:4000/db')
.then(response => response... | 80baa98bd1d2127162c1f7cd8ebdb95f7580a42a | [
"JavaScript"
] | 4 | JavaScript | bojosteph/redux-thunk-lab-online-web-pt-102218 | 52e521d1fea7bd6a59c65c727db928c42152fe43 | 2f79b7bce87bcd199c343bbc0a351cd73c1d5d80 |
refs/heads/master | <file_sep># GuessNum
A simple number guessing game. The original idea was came from a question on page 247 of the book "C# Programming(Hanbit academy)".
I got only the idea and the soruce code was created by me with references.
<file_sep>// GuessNum Created by <NAME>
// <EMAIL>
using System;
using System.Collections.G... | 36ac8ba399ed7b313ff95e65ab84aabe580ad46f | [
"Markdown",
"C#"
] | 2 | Markdown | royalsapper/GuessNum | e48df9813475da052b78dbeb78f35e92836bf653 | 8a210a3248eee2d68f2af860da67124da6512523 |
refs/heads/master | <repo_name>vladimir-pitchkurov/simple_express_json_routing<file_sep>/db.js
var mongoClient = require('mongodb').MongoClient;
var state = {
db : null
};
exports.connect = function (url, callback) {
if(state.db){
return callback();
}
MongoClient.connect(url, function (err, db) {
if(err){... | d7e9aeae14a8e7bdad73805a63af6d6877b218a5 | [
"JavaScript"
] | 1 | JavaScript | vladimir-pitchkurov/simple_express_json_routing | 2e7a0d10621eed4e7d8d111136a50a7b537f3803 | 0294db45600afeece055016e192f9f63defe09ce |
refs/heads/master | <file_sep>require_relative 'lib/aoc'
BLOCKS = "10 3 15 10 5 15 5 15 9 2 5 8 5 2 3 6"
puts "Part 1: " + debug_count_cycles(BLOCKS).to_s
#puts "Part 2: " + maze_jump2(MAZE).to_s
<file_sep>def get_tree(filename)
data = {}
re = 'Step\ (.)\ .*\ step\ (.)\ can\ begin'
File.foreach(filename) do |line|
matches = li... | d1f943106e007f032d0fa616176f336d99820a8d | [
"Rust",
"Python",
"Ruby"
] | 47 | Ruby | jstoja/aoc | 340f504c57a543dc53e6c16f89995310030edd8c | 079bf838769aa5856430f768490f37256fe3d7f8 |
refs/heads/main | <file_sep>const fs = require('fs');
const data = JSON.parse(fs.readFileSync('data03.json'));;
console.log(data.length);
let sum = 0;
for (let i = 0; i < data.length; i++) {
let temp = data[i];
// console.log(data[i]);
for (let j = i + 1; j < data.length; j++) {
if (temp.id === data[j].id) {
data.splic... | 4b410d6182a39324c9a2f209809d3b288b729fe7 | [
"JavaScript"
] | 3 | JavaScript | phap96019/SpaMapAPI | 444e177303e9ace342c3ab14817c477c2ccbdb53 | ad494a1b2b5b7c523a00a1637f9248fc0b443935 |
refs/heads/main | <repo_name>robinlzw/MapViewer<file_sep>/README.md
# MapViewer
This is a personal project where I try to parse OSM XML data and display it
in my custom built map renderer.
Map data comes from OpenStreetmap.
Pretty much all polygons in this map viewer are created by [<NAME>](https://people.eecs.berkeley.edu/~jrs/)s 2D... | f0c5e046de27e1d6e9ed619abfd430f2e842e75f | [
"Markdown",
"CMake",
"C++"
] | 5 | Markdown | robinlzw/MapViewer | 274b3d03b4089c377b7ad69e6b2484e6489bf7be | eb1e079c17cb6ca83f954cc5e4a0319c809c2a73 |
refs/heads/main | <repo_name>AkshajRaut/WhatsappAuto<file_sep>/README.md
Whatsapp Script to automate sending messages to multiple contacts at once
<file_sep>/whatsapp.py
from selenium import webdriver
from time import sleep
driver = webdriver.Chrome('/Users/akshajraut/Downloads/chromedriver')
driver.get("https://web.whatsapp.com/")
wai... | 8a15f01f24fe5e6a8055aa4238ce0fd893c9d35e | [
"Markdown",
"Python"
] | 2 | Markdown | AkshajRaut/WhatsappAuto | c7a0b23628e161cc82f1fd72ae13247f8e447295 | 867b2498ca15f66b27ec84ed361683d014333285 |
refs/heads/master | <repo_name>Sallenet/sallenetapp<file_sep>/www/addons/sallenet/controllers/horario.js
// (C) Copyright 2015 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apac... | 53417cd879a8f6658a9b9eed082ae2a0a9e6e5e6 | [
"JavaScript"
] | 8 | JavaScript | Sallenet/sallenetapp | 694e3d411bdbb226507fff807846a108287905b7 | 639bfc3a758ce7f265f4fd088f271347cd4c11be |
refs/heads/master | <file_sep>package com.filter;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation... | 9fe91435237258791d95cf25099f3e64a8fd66a0 | [
"Java",
"INI"
] | 5 | Java | viktorv67412/jdbc | 41283a4183c1765dff4aef31a466384d5653431b | 879cbe66e1df9c7e062de5176c40ffb6ccebe095 |
refs/heads/master | <file_sep>import config from 'config'
import utils from 'utils'
import classes from 'dom-classes'
import Default from './default'
import gsap from 'gsap'
import query from 'query-dom-components'
import $ from 'jquery'
import swiper from 'swiper'
const EASE = Power4.easeOut;
const WORKITEMIMAGES = [
{
title: 'toito... | 3c1563578ca26e85b48a05e12fd57ff68681c987 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | DeCotii/decotiis-design | 922a1f23450ef7cae2361dcb1605bd3e235952e3 | e66ea77a169716205ebefeb85e5a77cd4eb3e440 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AcidEffect : MonoBehaviour
{
//move right at speed - should probably get direction from spider
//detect player and deal damge via Idamageable
//destroy after time limit
[SerializeField] bool ... | 6086cf7d38cdc633c3e92ffe2f59009fef21fc66 | [
"C#"
] | 11 | C# | mightyDavros/DungeonEscape | 30b7dda87a98dbf18af058091431c0b782bb178d | d108d9c981e4dcf3e51508777f9baef7d21e3d11 |
refs/heads/master | <repo_name>thesli/HKUST-COMP2011-2013-LAB8-NanoSocialNetworking<file_sep>/sns.cpp
#include <vector>
#include <iostream>
#include <stdlib.h>
#include "sns.h"
using namespace std;
User cUser("","","");
SNS n;
User::User(string s,string p,string m){
username = s;
password = p;
msg = m;
Id = n.uList.size();
}
boo... | 485a5da601560a4634ac71b0b1bbcb4676108e7e | [
"C++"
] | 2 | C++ | thesli/HKUST-COMP2011-2013-LAB8-NanoSocialNetworking | 3abae48e30c5d33939561073a90969fb349b47c9 | 3f28809b847f5ec20b309e9de21bee010fcdb8de |
refs/heads/master | <file_sep>from gate import Gate
GATE_TYPES = {
"gen": [
"gen",
0,
{"threshold": -2}
],
"por": [
"por",
0,
{"threshold": 0.1}
],
"ret": [
"ret",
0,
{"threshold": 0.2}
],
"sub": [
"sub",
0,
{"thres... | dc123ba02b2e6aeb49ae3e26a54fdaa2d7097526 | [
"Markdown",
"Python"
] | 9 | Python | kvfairchild/MNIST-MLP | 9b154ba1694dd98d38a594b2a3706d4fab78d794 | 4dd89b9d410010758ca99b9ad7a6b3f2ff822d99 |
refs/heads/master | <file_sep>package ttt
type PositionTranslator struct {
TransMap map[int][]int
}
func NewPositionTranslator() *PositionTranslator {
pt := new(PositionTranslator)
myMap := make(map[int][]int)
counter := 0
for i := 0; i < 3; i++ {
for j := 0; j < 3; j++ {
var s = []int{i, j}
myMap[counter] = s
counter++
... | c19f628ec69a048b59865bdc82ea8ff735d66b09 | [
"Go"
] | 8 | Go | mk29142/UnbeatableTicTacToeGO | 14adf26c7a5627e994411bfb0ea6381a8eb33f0a | f043abc2bcd408b13f96f15c9025f1fc0cefb3a3 |
refs/heads/master | <file_sep>/**
* Copyright (c) 2016 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | d8cff4bc0aeab66b64df8d67ba32799158da9657 | [
"Markdown",
"Java",
"Maven POM"
] | 16 | Java | trustedanalytics-ng/h2o-broker | dbaea0bcaa344411c85f48e75fe83f2bf25fd3be | bd90eefe245ce09d2447770fb0d3e2b22150d74e |
refs/heads/master | <file_sep>class MyMongoid::DuplicateFieldError < RuntimeError
end
class MyMongoid::UnknownAttributeError < RuntimeError
end
class MyMongoid::UnconfiguredDatabaseError < RuntimeError
end
class MyMongoid::RecordNotFoundError < RuntimeError
end<file_sep>require "spec_helper"
class Ceshi
include MyMongoid::Document
#... | 8cf39d9b616feac71e935489f0cd99f8ea5d3626 | [
"Markdown",
"Ruby"
] | 6 | Ruby | qinjker/my_mongoid | bb4cb570a6b210a632f95eae7e86249a4618026f | de0a0887056fc3695a6ab7e17d0b5a7600c0d490 |
refs/heads/master | <file_sep>package com.zq.product.entity;
import java.io.Serializable;
import java.util.Date;
/**
* @author
*/
public class BuyCar implements Serializable {
private String id;
private String userId;
private String productId;
private String productName;
private Long proNum;
private String p... | 88d62e1e331688a76c2c1c4cb2b1564ef93fb1ad | [
"JavaScript",
"Java",
"TypeScript"
] | 13 | Java | zhangqin1103/storeDemo | f7bed0e29c659995565956acaf9d4120bc318bb3 | 748a33faaa6769f8a81b2af1c6ae5c33fe7e0018 |
refs/heads/master | <file_sep>ebs-sidekick
===
Attaches the specified EBS volume to the calling EC2 instance. Detaches when the container exits.
Usage
---
```
// Press CTRL-C to detach
docker run -ti \
--env AWS_ACCESS_KEY_ID=... \
--env AWS_SECRET_ACCESS_KEY=... \
--env VOLUME_ID=... \
--env DEVICE=/dev/sdf \
--env... | 909e3086450d5b62029a1bfbaec10604683cafca | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Markdown | olalonde/docker-ebs-sidekick | 6813835f6b08a62ff7624c32dc0cb8098133823c | c75b3815183c1cdb824adb7e7e20b294101ebbb6 |
refs/heads/master | <repo_name>KnowledgeLab/GSS_code<file_sep>/descriptives_outcomes_over_time/visualization_outcomesOverTime_random_AND_actual_models.py
# -*- coding: utf-8 -*-
"""
Created on Fri May 09 12:08:37 2014
@author: Misha
"""
import statsmodels.formula.api as smf
import pandas as pd
import numpy as np
import cPickle as cp
from... | 9d5d42656869c43438c8827dec6626ca2b3b1c4d | [
"Python"
] | 65 | Python | KnowledgeLab/GSS_code | 0687100e12ee6dd6a89625cb11515606e4a2a6ca | 7d1fa37c6c579cd21f5fd3bc4b70a28d4ea24821 |
refs/heads/master | <file_sep>noinst_LIBRARIES = libwave.a
if WITH_LIBDDD_PATH
LIBDDD_CPP=-I$(LIBDDD_ROOT)
LIBDDD_PATH=$(LIBDDD_ROOT)/libDDD.a
else
LIBDDD_LINK=-lddd
endif
if WITH_LIBITS_PATH
LIBITS_CPP=-I$(LIBITS_ROOT)
LIBITS_PATH=$(LIBITS_ROOT)/../lib/libITS.a
else
LIBITS_LINK=-lITS
endif
AM_CPPFLAGS = -Wall -g -O2 -I $(top_sr... | ecaa0e51bdb45c5b8e39234693f0c98ddd7ac17b | [
"Makefile",
"C++"
] | 4 | Makefile | Neptunia94/ITS-CTL | 127d7ea72282a2649017669eb0d84e2f35267418 | b62606991d2395102510311d3c5007fc6f6c787e |
refs/heads/master | <file_sep>
import json
import urllib.parse
import boto3
import time
import os
def lambda_handler(event, context):
AMIsParamName = event['AMIsParamName'];
region=os.environ['AWS_DEFAULT_REGION']
ec2 = boto3.client('ec2',region)
ssm = boto3.client('ssm',region)
inspector = boto3.client('ins... | 453285ad0be950ba2e693326b28a31d6d833417a | [
"Python"
] | 1 | Python | januradha/AWS_Inspector_Assessment_Python_API | 331a4402352ee7abd50508312facd15c6ca6db28 | 0cfcc4540c8cac94b6254ca540f778284e934f42 |
refs/heads/master | <repo_name>FioFiyo/fizzbuzz<file_sep>/fizzbuzz.rb
#Fizzbuzz 1 to 100. For the multiples of 3, print "Fizz" instead of the number;multiples of 5, print "Buzz" instead of the number. For numbers which are multiples of both 3 and 5 print "FizzBuzz"
count = 0
while number < 99 do
count = count + 1
if (count % 3 == 0 &... | 2cd6524fb2f8af9e3f36f46160f211e28192086e | [
"Ruby"
] | 1 | Ruby | FioFiyo/fizzbuzz | b40b5cc4ccef6848878eccd1e6c6a8bd9ac7c60e | 04c6c2c806dd6735c4311f5b5be9f33ff0b80ac6 |
refs/heads/master | <file_sep>/*!
* Url-NimoPoly
*Copyright (c) - 2016 - <NAME>
*/
'use strict'
var nimoPoly = {
navlist : "", // nav bar list
/*
Url params checking function
*/
check : function (nav){
var VerifyStringNav = nav.replace(/[`@()!'~$*^%"#:;.,{}_|]/gi,"");
for (var i = 0; i < this.navlist.length; i++) {... | 281dfe713221414f38451ca5a7224f6a291f04ba | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | hashemirafsan/url-nimopoly | 199c0f61f6f36c2d9489e4b6f48aea0b53e54298 | 1e1916fbad4b9f79f647a33ff73edcd5d8993d9c |
refs/heads/master | <repo_name>Aztherion/werckertest<file_sep>/src/HelloWercker/Program.cs
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace HelloWercker
{
class Program
{
... | f1e01f8cc74ac4f9db69db852b1b3a389358f355 | [
"C#",
"Shell"
] | 3 | C# | Aztherion/werckertest | 9e05ceb0d90b9ee79695a5f11ce36d0bfb24f75d | 512a51af515a78da849a6280fb1dc58b8b5654dc |
refs/heads/master | <repo_name>LabsFAST/lab7-174070MuhammadZain<file_sep>/l174070_Q3.cpp
#include<iostream>
#include<string>
using namespace std;
class Employee
{
private:
string firstName;
string lastName;
string address;
int *department;
static int count;
public:
Employee();
Employee(string name, string lname, stri... | 41e64cea8db792c0226692ec35423679a5219c14 | [
"C++"
] | 3 | C++ | LabsFAST/lab7-174070MuhammadZain | 9f6038be3952621154278a59634d78cf109b46da | 941c93e53cb7e63315cbe2c80fda193d3509e78a |
refs/heads/master | <repo_name>clearos/app-web-proxy-plugin<file_sep>/language/en_US/web_proxy_plugin_lang.php
<?php
$lang['web_proxy_plugin_app_description'] = 'Web Proxy Policies provide access control for the Web Proxy app.';
$lang['web_proxy_plugin_app_name'] = 'Web Proxy Policies';
$lang['web_proxy_plugin_web_proxy_user'] = 'Web Pro... | 56a47361a4ea086edab5f93b3217e6d2d726b42b | [
"PHP"
] | 1 | PHP | clearos/app-web-proxy-plugin | 2c30d51e2a59ab53c954cc63bc206d2a2f92b62e | 9c932080f99019f29062f90c354352a8b96a6dea |
refs/heads/main | <file_sep>using UnityEngine;
using UnityEngine.SceneManagement;
public class CollisionHandler : MonoBehaviour
{
private void OnCollisionEnter(Collision other)
{
switch (other.gameObject.tag)
{
case "Friendly":
Debug.Log("Friendly");
break;
... | 98760a1754c0a4ff36ea6ae73c0869b6df02bebd | [
"C#"
] | 2 | C# | zhomen/ProjectBoost | fd66e39080aa1cb5788b6436f6849b0fdddb5f91 | 6a73a62225d8290803ba9301dd3cd8eca7f164e5 |
refs/heads/master | <file_sep>package entities
import (
"time"
)
//User represents application user and has a string ID (which is still being reconsidered)
type User struct {
ID string
Username string
FirstName string
MiddleName string
LastName string
Email string
Password string
Interests []Topic
Privileg... | 551ed010ac0a5e935e1e0d6b2ed83b227ded1491 | [
"Markdown",
"SQL",
"Go"
] | 9 | Go | bezamo/techreview | 7b08f754c21ae94269996eccaed06fe723c00ac3 | 7ef201d498e6231b3e3f1cc57b0135e5f6b91e3f |
refs/heads/master | <repo_name>jzzxh/Aframe_WebAR_ANGSW<file_sep>/main.js
var anges_s
var angle_deg
var state = 0
var sts
//var xstate = 0
/*
// This component hides and shows certain elements as the camera moves
AFRAME.registerComponent('portal', {
schema: {
width: {default: 4},
... | 697dff60efbff49e4773a68d037cce3a05a67b3c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jzzxh/Aframe_WebAR_ANGSW | 97bedd86b46ee9e5f47bea9285521b1a0077d333 | 718142e2ba23c53da988cbe1226f0fdc124fdb3d |
refs/heads/master | <file_sep>@PACKAGE_INIT@
set_and_check(HEPMC_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
find_library(HEPMC_LIB NAMES HepMC HINTS @PACKAGE_LIB_INSTALL_DIR@)
find_library(ROOTIO_LIB NAMES HepMCrootIO HINTS @PACKAGE_LIB_INSTALL_DIR@)
if(EXISTS ${ROOTIO_LIB})
set(HEPMC_LIBRARIES ${HEPMC_LIB} ${ROOTIO_LIB})
else()
... | 42d0d7f3df4407f3ac0bb994a3ca2686f6ed2d30 | [
"Markdown",
"CMake",
"C++"
] | 9 | CMake | hoosiki/HepMC3 | 2ba9fba4645e7907214ea1668c6e32f5900b0d1a | 9343d859bade61bae23a6f0a58169bc5a53c9b0c |
refs/heads/master | <file_sep>import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="viralapi",
version="0.0.1",
author="<NAME>",
author_email="<EMAIL>",
description="Automate Viral discover pipeline",
long_description=long_description,
long_description_c... | e29f4fa1a0f81f73515d8b4d6e242b6a6fcf894a | [
"Markdown",
"Python",
"Text"
] | 5 | Python | glickmac/viralapi | 4e4cfe2fd6e95be63a88a0995c536469d66b5867 | dbc27d393bfa47fca0313fb0d86b59336b023fcd |
refs/heads/main | <file_sep># webreplgui
A simple GUI for Web REPL.
Uses https://pypi.org/project/webrepl/.
Install webrepl
`pip3 install webrepl`
Run with `python3 webreplgui.py`

<file_sep>import webrepl
imp... | 7f561d8a4b64ffd6bd76c57cd13fccce7de829b5 | [
"Markdown",
"Python"
] | 2 | Markdown | matthewfelgate2/webreplgui | 8c5b62d24db124ab769bb9e353988d5207fc0da6 | 35545d86ae721887d381f868eb6ccc1b3fd734ff |
refs/heads/master | <repo_name>Rizwan-Raza/C-Exampler-Hub<file_sep>/rizzu/QUIT.C
//Global variables
extern int ch2;
void quit()
{
drawMenu();
drawBox(32,2,18,1);
gotoxy(34,3);
textcolor(BRDR);
printf("Main Menu ");
textcolor(MENU);
printf("%c Exit",16);
textbackground(BACK);
textcolor(TXET);
gotoxy(4,6);
printf("Are you Sure!!... | a87eadafa33d8d6f1494ba13c48ef3885c21e927 | [
"Markdown",
"C"
] | 15 | C | Rizwan-Raza/C-Exampler-Hub | de1b80b60408f23e23392852ade1a182fb208dde | 8901d94e40e0c0c38a371b54e3774f6637d231b2 |
refs/heads/master | <file_sep>#******************************************#
# Kalle's Wildstar Addon Updater #
# Version 3.0 8/9/2014 #
#******************************************#
import sys
import requests
import re
import json
import os
from io import BytesIO
import zipfile
from bs4 import BeautifulSoup, ... | 895cb1e40773470022d6ef596b6b4986ad9aea18 | [
"Python"
] | 1 | Python | KalleV/WSAddonUpdater | ec3fca92e6a2f38921e81d57f555bcc9c7d253d0 | b8b8bac7bc79b2298e9d7d65431512309dd7f0d5 |
refs/heads/master | <repo_name>arbinish/angular-practice<file_sep>/static/js/ngtest.js
var app;
app = angular.module('ngTest', ['ngRoute', 'ngResource']);
app.config(function($routeProvider){
$routeProvider.when('/', {
controller: 'indexCtrl',
templateUrl: '/static/tmpl/index.tmpl'
}
).when('/user... | 49c713bed84b3730151f0b6b503c00037d0d9e7f | [
"JavaScript"
] | 1 | JavaScript | arbinish/angular-practice | 783f6d651dc6404d1bb15209700d80c296d43e34 | 97789e468216f04990a3c12a6c7dabdc9194f734 |
refs/heads/master | <file_sep>//<KEY>
//cbddad34f36fad23632da76adb29d37a
export const key = '<KEY>';
export const proxy = 'https://cors-anywhere.herokuapp.com/'; | c611bfbf4449a657f9ae52837fb08264b171aa15 | [
"JavaScript"
] | 1 | JavaScript | sinajamoly/foodRecipesApp | 304059756c2040a1b5abb9ac49b11dd6a35ed6dd | 3b55b98999214bae04514e6ca39c7bdc1be6cf4e |
refs/heads/master | <repo_name>TimHugh/portfolio<file_sep>/test/controllers/admin/welcome_controller_test.rb
require 'test_helper'
class Admin::WelcomeControllerTest < ActionController::TestCase
def setup
sign_in
get :index
end
def test_response
response.status.must_equal 200
end
def test_links_to_projects
res... | f9c843747524ec9ada630c794119d6fe26f7c9b8 | [
"Markdown",
"Ruby"
] | 19 | Ruby | TimHugh/portfolio | aa5573ff2db084a532b6801947677fdab4b3f765 | b63535c1ba82a252a5f503aef657004aca4bff79 |
refs/heads/master | <file_sep>export {};
let message = 'Welcome Back';
console.log(message);
let isBeginner: boolean = true;
let total: number = 0;
let name: string = 'Isabel';
//name = true;
let sentence: string = `My name is ${name}
Hello! Nice to meet you`;
console.log(sentence);
//total.
let n: null = null;
let u: undefined = und... | 3d6eec2aa1a6e5379b324d1c82d32dc16a91206d | [
"TypeScript"
] | 1 | TypeScript | isabelchua/typescript-random | 422b731d3bcb9607c50a8757f34989a80330aa18 | 82ca77fef121f629760026eda14b4c06c11f2929 |
refs/heads/master | <file_sep>source 'https://rubygems.org'
gem 'sinatra'
gem 'haml'
gem 'activerecord', '3.0.20'
gem 'mysql'
ruby '2.1.3'
<file_sep>#!/usr/bin/env ruby
require 'sinatra'
require 'haml'
require 'active_record'
set :root, File.dirname(__FILE__) # set root as parent directory of current file
# model
ActiveRecord::Base.est... | bd2108ace5b956f174e4d355b3b169f0acee5945 | [
"Ruby"
] | 2 | Ruby | bookstein/translate_ruby | 4a33f43f78b7f33a21bfbcf74e97f122b5cadc96 | 656ec341003377431137efc87720bf6911ac6503 |
refs/heads/master | <repo_name>tomlurge/mteam<file_sep>/docs/how2hadoop.md
# get started
## log into user hadoop
log in t@mteam:~$ sudo -s -H -u hadoop
log out hadoop@mteam:/home/t$ exit
t@mteam:~$
## check that hadoop is running
hadoop@mteam:~$ hadoop
should print out usage documentation
## start HDFS
hadoop@m... | 4f190795a70fcbac1e0087cb97517768edcaaa23 | [
"Markdown",
"Java"
] | 13 | Markdown | tomlurge/mteam | 0904f11f6a7015569dc10c2fd201b2d5002862b1 | 86d49179093fb5407928172a9977fb18d751bc4e |
refs/heads/master | <file_sep>// GLOBAL API
const API_BASE_URL = "https://api-social-network-next.herokuapp.com";
// LOCAL API
//const API_BASE_URL = "http://localhost:1337";
export default API_BASE_URL;<file_sep>import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import App from "./... | d0e9af8003b26f99f7b561e45115ab57d8583257 | [
"JavaScript",
"Markdown"
] | 19 | JavaScript | antoine-tech/social-network | 7dbebad6ec731741805767802eaa8d81e3418929 | f77b5b12ba9e191c891f84885d62cbd7cea9359d |
refs/heads/master | <file_sep>#!/usr/bin/python
# -*- coding: UTF-8 -*-
import unittest
from appium import webdriver
import time,os,sys
import huadongdemo
import jietudemo
class ybgcaselogout(unittest.TestCase):
def setUp(self):
"Hook method for setting up the test fixture before exercising it."
self.verificationError... | 41f7bbb1ee7622feb64affe6cd3782a45655191c | [
"Python"
] | 11 | Python | zhenghuaining/pytestdemo | d88c5baa607923127d07f2e0764cdcb8749e6405 | 3507638102421e2461fe426be865418c9f0c6b5c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.