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>package com.prisbox.zzp.base.controller;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class BaseController {
static Logger logger = Logger.getLogger(BaseController.class);
@RequestMappi... | 380b84664c8f86329dc77cf273e0b1dae6906eba | [
"Java"
] | 1 | Java | wynzn2009/zop | 2c5a2b3973f09aa35744059374e16ee284c5c88f | 862e5c9a19eddf4bc1dd50171bbcbb650e85bf76 |
refs/heads/master | <repo_name>yunusyerli1/customer<file_sep>/src/redux/reducers/customerReducers.js
import { FETCH_CUSTOMERS, DELETE_CUSTOMER, UPDATE_CUSTOMER, CREATE_CUSTOMER } from "../types";
export const customerReducer = (state={}, action) => {
switch(action.type) {
case FETCH_CUSTOMERS:
return {customers: ... | f39942b917bfeb724ed0dfbc6d18c98dc7d44c9a | [
"JavaScript"
] | 9 | JavaScript | yunusyerli1/customer | 4b2733bf2c10d79be486fad850b8570b2c765fe9 | e72cf8240547a8c5dc41dd4a4d0c26db77e3db27 |
refs/heads/master | <repo_name>dougdworkin/jQuery_streetfighter<file_sep>/js/app.js
$(document).ready(function(){
// Control starting and pausing music
$('.playTheme').click(function () {
$('#theme').trigger('play');
});
$('.pauseTheme').click(function () {
$('#theme').trigger('pause');
});
// **** Opening title animations *******... | 0d8073a9eea0b2e113dfca00dc8341755422ea3d | [
"JavaScript"
] | 1 | JavaScript | dougdworkin/jQuery_streetfighter | 32aea1b2ada0b19fad27fa6b4b138af6a583198c | b1bd7d7b8ab8bca3559c5636b0f5896727d01fb4 |
refs/heads/master | <repo_name>anbrandt/Angular-MultiView<file_sep>/src/app/second.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-second',
template: '<p> Second Component </p> <img src="http://www.clker.com/cliparts/y/G/s/h/j/O/two-md.png">',
})
export class SecondComponent {
}
<file_sep>/src/app/... | 9c7811716cdb615e2743699cd65105e8b889a4eb | [
"TypeScript"
] | 5 | TypeScript | anbrandt/Angular-MultiView | e2976c1c946cb11000d5cfe9bf662d67542a28cb | fa4e3467695ceaba77c15ab1981c6d4bfe19765a |
refs/heads/master | <repo_name>sundropgold/sequelizedBurger<file_sep>/db/seeds.sql
INSERT INTO burgers(burger_name)
VALUES ("Big Meaty Burger");
INSERT INTO burgers(burger_name)
VALUES ("Krabby Patty Burger");
INSERT INTO burgers(burger_name)
VALUES ("Pretty Patty Burger");
INSERT INTO burgers(burger_name)
VALUES ("The Chick Filleter")... | 9814130d3feb169f756c73be6b48db60cf171015 | [
"JavaScript",
"SQL",
"Markdown"
] | 4 | SQL | sundropgold/sequelizedBurger | 500638af8b8c47ea3f9637ee3446fd13c4fb5f80 | ada2f276d52fbd7a6168e2b1ae75fd8e6337a187 |
refs/heads/master | <repo_name>GiorgiSheklashvili/Authcoin-truffle<file_sep>/test/TestRevokeEntityIdentityRecord.js
const util = require('ethereumjs-util');
var AuthCoin = artifacts.require("AuthCoin");
var ECSignatureVerifier = artifacts.require("signatures/ECSignatureVerifier");
var RsaSignatureVerifier = artifacts.require("signatures/R... | 86eab079a74d105f83cf2745e7efc6be1fbe658a | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | GiorgiSheklashvili/Authcoin-truffle | 9e6db9e7aeace309b9ad56da585c011e548ef726 | 590c071608f7699e7bec3427469a623947f4eaee |
refs/heads/master | <repo_name>rampas90/persnal_study<file_sep>/게시판만들기/c-cgi-mysql 게시판 만들기/cgi-bin/db_lib.h
#include "/usr/include/mysql/mysql.h"
#define server "dev-smc.com"
#define user "root"
#define pwd "<PASSWORD>"
#define database "main"
MYSQL *connection=NULL, conn;
MYSQL_RES *res; // (SELECT, SHOW, DESCRIBE, EXPLAIN)등의 쿼리를 ... | 23fe65bebb8207cf8cab219c53d310ad56dd76b6 | [
"SQL",
"HTML",
"Markdown",
"JavaScript",
"INI",
"Java",
"Python",
"C"
] | 158 | C | rampas90/persnal_study | 72e85e493cc0972dc237039eaef4353644400e7b | 6eb148c78d7bbf7687976bdc7d56f7317cd7896a |
refs/heads/main | <repo_name>guanzhuyang/my-leetcode<file_sep>/src/com/yang/LeetCode897.java
package com.yang;
import java.util.ArrayList;
import java.util.List;
/**
* @description:
*
* 897. 递增顺序搜索树
*
* 给你一棵二叉搜索树,请你 按中序遍历 将其重新排列为一棵递增顺序搜索树,使树中最左边的节点成为树的根节点,并且每个节点没有左子节点,只有一个右子节点。
*
*
*
* 示例 1:
*
*
* 输入:root = [5,3,6,2,4,nu... | f47038613c4f4c76918c4a2f87dfc4289ca15869 | [
"Java"
] | 36 | Java | guanzhuyang/my-leetcode | 3c891139a6d1a09571e4cdb5bdf80d8dcfe5cb07 | 922becbb41962a8500a2638a1377d2443db985ca |
refs/heads/master | <file_sep>--CREATE DATABASE BankOfTomorrow
CREATE TABLE Employees
( Employee_ID NUMBER(15) NOT NULL,
FirstName VARCHAR(255) NOT NULL,
LastName VARCHAR(255) NOT NULL,
JobTitle VARCHAR(255) NOT NULL,
Fullname VARCHAR(255),
Salary DECIMAL NOT NULL,
Address VARCHAR(255) NOT NULL,
Manager_ID NUMBER(15),
De... | a1e3e7886ca255c0d2ad2eeef120f92daaa6e790 | [
"SQL"
] | 1 | SQL | mimz-skywalker/SynergyInternshipTask1_BankOfTomorrow | 9bc63bc00058f8dfc544246f819fe780014a5787 | 14bc93c57d765fc2565c91ad93dc217b78b6dc94 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import {Grid, Cell} from 'react-mdl';
import Education from './education';
import Experience from './experience';
import Skills from './skills';
class Resume extends Component{
render(){
return(
<div className="resume-background" /*style={{backg... | e1019ded7148d30fc3b6f615c442b48b16e503f7 | [
"JavaScript"
] | 2 | JavaScript | ETSlagle/portfolio | f1801423fb71124c69357331d2ab18a199f48644 | e2348658c5f9687f2dbb4094e59db2d967625705 |
refs/heads/master | <repo_name>family-group/grandpascan<file_sep>/src/components/PeersView.jsx
import React from 'react';
// importing styles
import './styles/TransactionsView.css';
// importing utils
import Xhr from '../utils/Xhr';
// importing components
import TableData from './TableData';
// importing columns
import { peersViewData } ... | ef9e58e3f781b1c2fafdacfc77d25d77bcc00b87 | [
"JavaScript"
] | 33 | JavaScript | family-group/grandpascan | e68d19ec240eb5d888755371a49c756f9c868a86 | 23e5913975e7a0ee094e031978d60789186373eb |
refs/heads/master | <file_sep>var Player = function(id){
this.id = id;
this.lastRollSum = 0;
};
exports.Player = Player<file_sep># dice-app
###Using docker:
1. docker build -t glisauskas/dice-app .
2. docker run -p 8080:8080 -d glisauskas/dice-app
###or not:
1. npm install
2. node app.js
#####Resulting url: http://localhost:80... | cc030659c6085f373949b73cf081e064b749294d | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | npmcdn-to-unpkg-bot/dice-app | 1f57972ed490bd71dc6aac276a73bf75cf10c4e4 | 2d67038e96b7149903a7414631406f2952a9e2c6 |
refs/heads/master | <file_sep>/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 requi... | 88acbd9e34bf673e77617701d0d6d3d5c7917f4b | [
"C",
"C++"
] | 2 | C++ | hank5000/NativeCodec | cdfdb00f640d420c797afb69a759108c6da69ddd | 1c2c0a06d31e3528440754c740091501852dd39d |
refs/heads/master | <file_sep>package com.testauto.framework.testsuite.general;
import com.testauto.framework.pageobjects.HomePage;
import com.testauto.framework.testsuite.WebDriverListener;
import org.apache.log4j.Logger;
import org.junit.*;
import org.junit.Test;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import... | 299fc7f0f601aa42b686bd5f99b8ae0f161707fb | [
"Java"
] | 1 | Java | globant-mahesh/UICucumberTestNG | 4887d16b34a778b856c4a25ac1721fc7513d26c4 | df5b4faaa474ebfd95ab1220ca0266ea2d4901ea |
refs/heads/master | <file_sep>#------------------------------------------------------------------------------------------------------------#
### 1.0 LOAD LIBRARY'S ----
import os, sys
import pandas as pd
import numpy as np
import dateutil
# Workflow
# 1.Create a neural network that can convert Celsius to Fahrenheit
# and examine the w... | 13121de253eb931103821367dda30d963125f6c8 | [
"Markdown",
"Python"
] | 10 | Python | PaulCristina/predict_basketball_scores | 9e6c60bf97af7ac65c66eb1f60ee8a46150912e6 | 6e3458c44983d305674607fbabfd6765dc4abf80 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pbo10k.pkg10119920.latihan41.massajenis;
/**
*
* @author
* NAMA : <NAME>
* KELAS : IF10K
* NIM : 1... | 8682f7216318a4234dd22d02ef1b15fdadf32c0f | [
"Java"
] | 1 | Java | ursBot/PBO10K-10119920-Latihan41-MassaJenis | 205749a3199dbed7151ea05855dbf0f4faacb696 | 5c5b101bd2cd101648364950dcbfa347e43ec15c |
refs/heads/main | <repo_name>man-ish-fs-2021/spacex-internship-challenge-for-man-ish-fs-2021<file_sep>/src/actions/actionTypes.js
export const UPDATE_LAUNCH = "UPDATE_LAUNCH";
export const START_FETCH = "START_FETCH";
<file_sep>/src/components/Table.js
import React, { useState } from "react";
import { PaginationComp } from "./index";
im... | 0c96652f006faed9816478820e29356d8ec4dd07 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | man-ish-fs-2021/spacex-internship-challenge-for-man-ish-fs-2021 | 3690481c59c2156653d86a6a1462341c4b3c0a41 | 5f1d83533a90b425502d03db0a1ba1ffff0c7d3e |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using ZXing;
namespace QRCodeScanner
{
public partial class MainPage : ContentPage
{
public MainPage()
{
I... | c001b5c3876f6958eb919d0263ce37535944a456 | [
"C#"
] | 1 | C# | sh1karasu/QRCodeScanner | b8b45e2010683ea824cec8a58898eed29f4c37e0 | 850c55f96f08dd5a9705a26f53e58d51f76a06c5 |
refs/heads/master | <repo_name>j0nesma/advent-of-code-2020<file_sep>/src/test/java/matthew/jones/advent/of/code/days/day4/keyValues/ExpirationYearTest.java
package matthew.jones.advent.of.code.days.day4.keyValues;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*... | 39637dae591f2db42d80bf1953231fcac9968764 | [
"Java"
] | 15 | Java | j0nesma/advent-of-code-2020 | 5fff83bd4f1a3665f46e400a41c9bd691f4ec021 | d5aed787dc34341bfc7caeeae7955983bff5f09f |
refs/heads/master | <repo_name>ridouku/pycasbin<file_sep>/requirements.txt
casbin==1.9.2
<file_sep>/README.md
# Casbin demo with python
This repository contains a little demo about casbin implementation
## Getting started
Follow the next instructions to get the project ready to use.
## Requirements:
- [Python version 3](https://www.p... | 40f7d71972ff9e72e37b0de268ce37a59c399562 | [
"Markdown",
"Python",
"Text"
] | 3 | Text | ridouku/pycasbin | 2d93f89c326e59ae2e7fc3d9d7e8e35a40ba2eff | ff46c15fd6f560c984d95d27ee34e989abf637da |
refs/heads/master | <repo_name>webber999/pushgateway<file_sep>/go.mod
module github.com/prometheus/pushgateway
require (
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 // ... | cb925367160fe443ddb96fc7b3d536c679e4af2d | [
"Go",
"Go Module",
"Dockerfile",
"Markdown"
] | 4 | Go Module | webber999/pushgateway | 949c8316b893f0676025abf94cd5ad5c382d5071 | 233e764ba59970951a3e5b3a02206b024ec8a7d5 |
refs/heads/master | <file_sep>from node import *
import util
import math
from random import *
from hiddenlayer import *
class OutLayer:
def __init__(self,inLayer,legalLabels):
self.inLayer = inLayer;
self.legalLabels = legalLabels;
self.nodes = self.makeOutputNodes();
self.outputList = util.Counter();
def makeOutputNodes(self... | c5f3a4c608a78e8a78a5233935630d0c9999b0ae | [
"Python"
] | 6 | Python | onlyhalfwaytrue/Supervised_Learning | 3ca8ff0653ef278aaa1edbccc7d87347339e0f89 | 54a8f0bc383f0ba0cedb5e207d16212163cef68c |
refs/heads/master | <file_sep># readme
## 概要
このプロジェクトはcvxgenで自動生成されたCソースコードをc++で呼び出せるようにしたものです.
### やったこと
* cmakeでビルドできるようにした
* cvxgenで生成したコードはライブラリとしてソースフォルダとは分離
* ついでに,ビルドスクリプトの実行だけで,cmake→makeまで行うようにした
## 実行
プロジェクトルートで`./build.sh`を実行
## TODO
* cvxgenフォルダに`CMakeLists.txt`をコピーしなくても良いようにしたい
<file_sep>#! /bin/sh
if [ ! -d build ];... | f8d33011cadba9fb36cf0f3e73a7ae1f28388da0 | [
"Markdown",
"CMake",
"C++",
"Shell"
] | 5 | Markdown | shino-kei/cvxgen_test | c59e6987c1604199415e01a0229999cfa0a52ecb | b997a5d294a2e6d9f8eea18192ba500d1ffcabc1 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
devise_for :users
root to: 'pages#home'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
get '/kitchen_sink', to: 'pages#kitchen_sink' if Rails.env.development?
get '/home_video', to: 'pages#home_video' if Rails.env... | 5d3af8ece771d0ee5f2a871738f362b9ab9425de | [
"JavaScript",
"Ruby"
] | 17 | Ruby | rodsimon1/usicz | b2389dfcbe3c474bd11740240912101be1db2e12 | e2ab9d90eec4f51a214342eb28b3fdc4688c8b0f |
refs/heads/master | <file_sep><?php
return function(){
static $public = true;
$hash = microtime(true);
$hash = number_format($hash,6,'.','');
$hash = str_replace('.','',$hash);
$hash = random_int(1,9).$hash;
$hash = gmp_strval($hash, 36);
return $hash;
}
?>
<file_sep>// ({}).apps('nameMethod',function(response){});
// ({"nam... | 68dee913545bdab4da2a472f8bb9d7904d17a330 | [
"JavaScript",
"Markdown",
"PHP",
"Shell"
] | 8 | PHP | LiveSugar/framework | 73104be99f0b27757e8673cd890f6f8be779ee79 | 46b65cec1a38ad64db57968949f5e3125ef1ab4c |
refs/heads/master | <file_sep>#Import modules
import picamera
import picamera.array
import time
import cv2
#Initialize camera
camera = picamera.PiCamera()
camera.resolution = (640,480)
rawCapture = picamera.array.PiRGBArray(camera)
#Let camera warm up
time.sleep(0.1)
#Capture image
camera.capture(rawCapture, format="bgr")
img = rawCaptu... | f509e37c61fa987ac687196ceb91c0af141b1329 | [
"Python"
] | 1 | Python | iblack18/henry | a32b7714186c32f79d9b24ceec475e8d09caa1f5 | e91c4c9ec4b951d607fa38b3760975f64a11243b |
refs/heads/master | <repo_name>ddumin501/Spring<file_sep>/README.md
# Spring
- Spring의 기초
- mybatis와 연동하기
- Spring-MVC
<file_sep>/spring/src/a/First.java
package a;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import o... | 728a8934f30343c02ea1a54e10e03c5ccfe0905a | [
"Markdown",
"Java"
] | 4 | Markdown | ddumin501/Spring | 35c9df4475fdae8030891bfc6477aca73393e5fa | a52bea36fe82e42f5fee780f9fbaad383c445db4 |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>i... | f57de966dd56c478e2aa9b1b37276e1ed3071315 | [
"Markdown",
"Java",
"Maven POM"
] | 11 | Maven POM | webdude21/movies | 532012d5d307edd0ca766b0bc61498617a34cab5 | 24bb0383feeec28056f8db59f7c618f464f0e832 |
refs/heads/master | <repo_name>untael/partysearcher-backend<file_sep>/src/connect.js
import Axios from 'axios'
import Qs from 'qs'
const connect = Axios.create({
baseURL: `${HTTPS ? 'https' : 'http'}://${API_URL}`,
paramsSerializer: (params) => {
return Qs.stringify(params)
},
})
export default axiosInstance
<file_sep>/routes/... | 9e0597a765bea11becdc9494ef3f198086c24bb8 | [
"JavaScript"
] | 4 | JavaScript | untael/partysearcher-backend | 5004e901406640a645fa751402f8d60f67a3700d | 0553230cf6a2c1d071c0f100a77fa900671c06c1 |
refs/heads/master | <repo_name>KienHeo/csharp-tutorial-for-beginners<file_sep>/IfElse and SwitchCase/Exercises.cs
using System;
namespace Conditionals
{
public class Exercises
{
public static void Main(string[] argc)
{
/*// Exercise 1:
Console.Write("Enter a number: ");
var nu... | 53576da96f50b694c7fc23d07c4ebaf64b1eef8d | [
"C#"
] | 6 | C# | KienHeo/csharp-tutorial-for-beginners | db5d613fd74a7b697aa2b3f8776314ac80394a3b | b8f36341b3dc9272e3d4e77f85dc825ade9f6ac4 |
refs/heads/master | <repo_name>y-endo/learn-jest<file_sep>/README.md
# LearnJest
Jest学習用リポジトリ
<file_sep>/src/VueButton/index.test.js
import { mount } from '@vue/test-utils';
import VueButton from './index';
describe('VueButton', () => {
const wrapper = mount(VueButton, {
propsData: {
text: 'テスト'
}
});
it('props.textが... | 0652b644c3bf7833624e2a39d682fe72f8609e94 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | y-endo/learn-jest | face214fb5baf76b8408923d2d08b6a540857bd5 | 1bbf7109a06321e7adfc14d78e1142d126b8266f |
refs/heads/master | <repo_name>Marcos2Junior/Trabalho1Cacao4Semestre<file_sep>/login.php
<?php
require('./autoloader.php');
$usuarios = new Usuarios();
$status = $usuarios->verificaStatus();
if($status != 0) {
die("Você já está logado!");
}
if($_POST) {
$destino = $usuarios->logarUsuario($_POST['usuario'], $_POST['senha']);
die("<m... | 1630790e47def9d3c99f59ebcf0719c6074ab5ce | [
"SQL",
"PHP"
] | 14 | PHP | Marcos2Junior/Trabalho1Cacao4Semestre | b816ef4168cd7dc61bacdead9a8642a1f36d8f88 | 7f2ef13b06672fc191b45be6ea1094973d7c4b93 |
refs/heads/master | <repo_name>gissilali/java-mortgage-calculator<file_sep>/src/main/java/com/company/Main.java
package com.company;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
public class Main {
public static void main(String[] args) throws InterruptedException {
MortgageController mortgage = new Mortg... | 9f04ca4adcf89522f86ea98a04f4cf4968404f1c | [
"Java"
] | 1 | Java | gissilali/java-mortgage-calculator | bfd65b4630c2bb0b082ae280e72f9ede2a32f875 | 0db4f36610f859dfd87a2579dbf1ba33e016202e |
refs/heads/master | <file_sep>//
// AlarmListViewController.swift
// SampleClock
//
// Created by 濱田一輝 on 2019/12/15.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import UserNotifications
class AlarmListViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var alar... | bd89b215a44d2f1817548c7278057a1548d31dce | [
"Swift",
"Markdown"
] | 5 | Swift | kzkhmd/SampleClock | 1ff947a241d93b8f0c243ebe25cc035629474019 | 8d000e015d25ced094294a2b2a3d760f79487607 |
refs/heads/master | <file_sep>var scorm = pipwerks.SCORM;
$( document ).ready( init );
function init()
{
scorm.version = "2004";
connect();
var learnerName = getValue( "cmi.learner_name" );
$( "#Name" ).html( "Bonjour " + learnerName + " !!!" );
$( "#goto1" ).click( goto1 );
$( "#goto2" ).click( goto2 );
$( "#goto3" ).cl... | f997b64333eea14763d5b8d4bef4d1f26ddcb122 | [
"JavaScript"
] | 1 | JavaScript | tyd01/sco_navigation_test | 9acdc3d2101b7fb4d73fda0e88865e3b85cf7a22 | 88f43b2bc5bce2cd2013208b8ed6f33704a7a24d |
refs/heads/master | <repo_name>Blesfia/protractor-workshop-2017<file_sep>/src/page/ProductList.page.ts
import { $, ElementFinder, promise } from 'protractor';
export class ProductListPage {
private get tShirtProduct(): ElementFinder {
return $('#center_column > .product_list > li .product_img_link');
}
public goToTShirtProduct... | 6c512f50bedf41cd29bdbe1cd1b88acc1595eb2f | [
"TypeScript"
] | 7 | TypeScript | Blesfia/protractor-workshop-2017 | d295553ea44d1b61ef5a83d55b7b554f180ff15e | 31b4ef2e6dfe3a5efe0df22859284e90e663d65a |
refs/heads/master | <repo_name>roxanemomeni/mlproject<file_sep>/tests/ tool_test.py
import mlproject
# Import from our lib
from mlproject.tools import haversine
import pytest
def test_haversine():
lon1, lat1, lon2, lat2 = (48.865070, 2.380009, 48.235070, 2.393409)
out = haversine(lon1, lat1, lon2, lat2)
assert(out) == 70.00... | 7f8f4d50b5c66666efc9a8ad45864ab8f3d5878a | [
"Python"
] | 1 | Python | roxanemomeni/mlproject | 1eac8d90371052d0a46a3f64f18e4c2b613312f2 | 3fded64385db870d7dd4fa18a309a898f84c74de |
refs/heads/master | <repo_name>Estein21/instagram-puller<file_sep>/emails.py
import urllib2, ssl, json, re, sys
context = ssl._create_unverified_context()
response = urllib2.urlopen(url, context=context)
query = 'beauty'
url = 'https://www.instagram.com/web/search/topsearch/?query=' + str(query)
dictUsers = []
def getEmail(account):
... | 71059e69eaba64b66edd5b6434bda344b69f4416 | [
"Markdown",
"Python"
] | 2 | Python | Estein21/instagram-puller | 0ffd12337db4fafe3970bf0902009f146e306152 | c9f7f18f11a0167cd3260dc1d535d85bde366cf9 |
refs/heads/master | <repo_name>wish899/pinpongrobots<file_sep>/bouncing_ball.py
import numpy as np
#Sources used to make this:
#https://yyknosekai.wordpress.com/2015/10/21/losing-height-a-bouncing-ball/
#https://www.youtube.com/watch?v=Mp8bz5P1m4I
class BouncingBall():
def __init__(self, mass=0, y_threshold=2.65):
self.mass... | 7593bde6f1c6020cb25a96071a72d0e22e5097c4 | [
"Markdown",
"Python",
"Lua"
] | 8 | Python | wish899/pinpongrobots | 31ba237587590a7a3d01dc861309e1d665ffa171 | 3ee1c0b8f4e3a39638a7e04d6cf28a8677c9e1b1 |
refs/heads/master | <repo_name>DrewTAJ/wordpress-theme<file_sep>/single.php
<?php
// If comments are open or we have at least one comment, load up the comment template.
get_header();
?>
<div class="container-fluid">
<div class="row">
<div class="col-sm-9">
<?php if( have_posts() ) : ?>
<?php wh... | 9bb89c7e62dde9752ef6797d8394b6d0e4b75397 | [
"Markdown",
"PHP"
] | 10 | PHP | DrewTAJ/wordpress-theme | cdd8777a352b1cbb6262ed23c226b550b36b50f8 | e727c73483309473b6ffd1c65beea66fd356058d |
refs/heads/master | <repo_name>dgusaas/pthread<file_sep>/fib.c
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
struct args_s {
int n;
int result;
};
void *iterative_fib(void *ptr);
void *recursive_fib(void *ptr);
int main(int argc, char *argv[])
{
pthread_t thread1;
struct args_s args;
long status;
args.n = atoi(argv... | 9232fb1d329cf9fc04abcd75027b24233af38191 | [
"C"
] | 1 | C | dgusaas/pthread | 2504988fbe8acb51c91f50d59742db11b012a860 | fe25b3afcd09ec4e6b40e38bd2d17ae3fad88562 |
refs/heads/master | <repo_name>weizai118/receiver-meow<file_sep>/qqpet/qqpet/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml.Linq;
namespace qqpet
{
class Program
{
stati... | 4a16bf6d32ee5c0905857f71d12def03be6988db | [
"Markdown",
"C#"
] | 8 | C# | weizai118/receiver-meow | 2fba0500a4a5175b2568f346fc838ad0937ccd50 | 11d873983063d2d19ae45ed9fcfb69d17c6e9b86 |
refs/heads/main | <repo_name>MuhammadOsama320/hello<file_sep>/home/views.py
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from home.models import Entry
# Create your views here.
def home(request):
return render(request, "home.html")
def show(request):
data = Entry.objects.all(... | 7145191b7c5b9fd840ef18d3d972487d7756539e | [
"Python"
] | 4 | Python | MuhammadOsama320/hello | a253f5576d6a7d1c3303c24807963d4c1dc40d5c | 33f03fa71a155e63c1ce0b4241d5ba6a1c8819f1 |
refs/heads/master | <repo_name>heianzhihuo/deeplearning-course-project<file_sep>/model.py
import torch
from torchvision import transforms, models, datasets
NCHW = (4,3,224,224)
NUM_EPOCHS = 10
class MetricLearningNet(torch.nn.Module):
def __init__(self):
super(MetricLearningNet, self).__init__()
self.net1 = models.r... | a2aaf40958a6deeda653b6784f3d75bb03bbb082 | [
"Markdown",
"Python"
] | 2 | Python | heianzhihuo/deeplearning-course-project | 3679832f20503244afb5d3100daff0a66909075c | 0781bfe3df0061dcdab9a78b4555ba04286c6662 |
refs/heads/master | <file_sep>#include <iostream>
using namespace std;
class complex
{
int real, imaginary;
public:
complex() //default constructor
{
real = imaginary = 0;
}
complex(int r, int i) //parametrized constructor
{
real = r;
imaginary = i;
}
complex(complex &x) //copy constr... | a12a2207494870dd0fd8731c65f4efb0040ca297 | [
"C++"
] | 1 | C++ | nilestark10/CPP-Programs | b42b795dcfd9adf042f67ee540795a01f7be5b4b | b7ae39a5198ae75c1f374c3bc4def0a0cb847b04 |
refs/heads/master | <file_sep>#include"scullc.h"
dev_t devno;
struct scullc_dev scull_dev={
.data=NULL,
.size=0,
.itemsize=1000
};
struct file_operations my_fops={
.owner=THIS_MODULE,
.read=scullc_read,
.write=scullc_write,
.open=scullc_open,
.release=scullc_release,
.llseek=scullc_llseek
};
int scul... | da3e37e8a69a042b0e9a1afb0913210973e3e828 | [
"C",
"Makefile",
"Shell"
] | 11 | C | lhcmaple/mydriver | 945cbd4582480f67cafd5e2fd1d9f9ad9b54c594 | 9d9b67f6ec1886fd7450b2e4d891cbb2d7726093 |
refs/heads/master | <repo_name>davidccs/C<file_sep>/listIteratorInt.c
/*
listIteratorInt.c ... list Iterator ADT implementation
Written by <NAME>
Date: 14/3/2017
*/
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "listIteratorInt.h"
#define TRUE 1
#define FALSE 0
typedef struct node *Node;
// doubly link list... | 7805ea8f37f69c8caa1bc9585a7d7a873d911671 | [
"Markdown",
"C"
] | 3 | C | davidccs/C | 9dfa6229e9fd5c8641e83389f7ebb89b16abc8e2 | bc54d36e3b6b7edda4d94ebb947bc412f583a811 |
refs/heads/master | <repo_name>miolfo/file-line-calculator<file_sep>/line-calculator.py
import os
import argparse
def calculate_lines(path, extension):
dirs = os.listdir(path)
linecount = 0
for dir in dirs:
if os.path.isfile(os.path.join(path, dir)):
linecount += get_lines_in_file(path, dir)
return lin... | 14ea253853597243bdaadce87897740c61c10375 | [
"Python"
] | 1 | Python | miolfo/file-line-calculator | 59358cbb7af88c060fba5320879fe21c07dee7d3 | e9604ecee76349698f331812b3d2a6c90ee16d49 |
refs/heads/main | <file_sep>package test;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({ FigurasTest.class, FigurasTestParametrizada.class })
public class FigurasTestSuit {
}
<file_sep>package figuras;
public class Main {
public st... | 66d1911fbc6a04ed48925932f8bcadf55f60b674 | [
"Java"
] | 5 | Java | antonio-sanchezz/JUnit04 | 7901a297f7ae714bf260a00c1ebe57d62a6f2eca | 9b1bebe81916b83819a4c03fc8f4e00621c853c2 |
refs/heads/master | <file_sep># astar-core
#### Description
A-Star algorithm
#### Installation
```sh
npm install astar-core --save
or
yarn add astar-core
```
### Usage
```js
import AStarCore from "astar-core";
const { AStar, Graph } = AStarCore;
// map size equals 【gridSize x gridSize】
const gridSize = 10;
// decide how many wa... | 6eedc64e73e7d62fa1a995a207eab820fbfa2820 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 8 | Markdown | FEYeh/astar-core | 598755abdc2ec398e90069c4506c21cf5fb07f05 | 7e3483cd27ee6a6dc1a3697c3af06a5b43af15f4 |
refs/heads/master | <file_sep>
var thisHost;
function beginCheck(localhost) {
thisHost = localhost;
var domain = encodeURIComponent($('#website').val());
var url = thisHost + "/MozMetrics/fetchLinksMetrics?domain="+domain;
$('#entryForm').hide();
$('#spinner').show();
$.get(url, processLinksMetrics);
}
function pr... | 868ea9bf8781e9ce63222a657b5d8d1e6e6d8208 | [
"JavaScript",
"Java"
] | 4 | JavaScript | brianmarey/InstagramAutomationWebApp | 324ca075ccd0c984da12aaa3dad49a390f15b774 | 9998ab3c6c6443d15d3dd633e3a3ab2296989116 |
refs/heads/master | <repo_name>Arthurlpgc/Compiladores<file_sep>/src/alpgc_jvsnVisitor.java
// Generated from alpgc_jvsn.g4 by ANTLR 4.4
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link alpgc_j... | ada84dd97d424b7d222ad3cb6b2b372922353c9a | [
"Java"
] | 4 | Java | Arthurlpgc/Compiladores | c82728c7cf3cec007ac5fe276fb6df6b6b46ef21 | ba9a3e79c48ab19e8690c9661c1b7d30384cad4e |
refs/heads/master | <file_sep>Canova
=========================
[](https://gitter.im/deeplearning4j/deeplearning4j?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Canova is an Apache2 Licensed open-sourc... | abe3011c3a657aa635ab52b8baea1f475da82150 | [
"Markdown",
"Java"
] | 4 | Markdown | srgnuclear/Canova | 2f942e6fb9ad7776f183802d032c9161348f8a0e | 735f3c2d72e5804440bc715bed69ceb29e5f7e9b |
refs/heads/master | <repo_name>erliyusnaidi/maimasjid<file_sep>/Events/src/com/events/Register.java
package com.events;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import com.events.custom.CustomActivity;
import com.events.model.Status;
import com.events... | 4f7bdd4ed1ac7ce7440a36f02786c57d56c663f7 | [
"Markdown",
"Java",
"HTML"
] | 8 | Java | erliyusnaidi/maimasjid | 74a28245a7bb4085562c0888a9fb4235f3df4125 | 6aee7bcbcf8b681ad3b89462eb12d6dca83d221f |
refs/heads/master | <repo_name>micahbrich/homebrew-tap<file_sep>/ga-cohort.rb
class GaCohort < Formula
desc "A tiny little app to get your GA Baseline-copied Trello ready to go"
homepage "https://github.com/micahbrich/ga-cohort/"
url "https://github.com/micahbrich/ga-cohort/archive/0.0.2.tar.gz"
version "0.0.2"
sha256 "e55afe2dc... | 1e61882de55aa3fdb45a423c2184f30e666da679 | [
"Markdown",
"Ruby"
] | 3 | Ruby | micahbrich/homebrew-tap | 20fe93d48720503238f13f32b77305c505e3d2a1 | 308058ecd574f2ce1088ff641356bf93453491b1 |
refs/heads/main | <file_sep>#P4 E4 - rgion
#Pida al usuario tres números y un cuarto número, y compruebe si éste
#último es divisor de los tres números primeros.
numero1=float(input("introduza el primer numero"))
numero2=float(input("introduzca el segundo numero"))
numero3=float(input("introduzca el tercer numero"))
numero4=float(input(... | 551ff2928bbb1969274a0cb7cccb1519ef89608e | [
"Python"
] | 4 | Python | cifpfbmoll/practica-4-python-jmjimenezn | 53a98d9545f7c83395ee843ae5083ffb1fcd603a | dcadbd0ac6a7a9a0ffa7b519df4020a9baf775d9 |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-titles-showcase',
templateUrl: './titles-showcase.component.html',
styleUrls: ['./titles-showcase.component.scss'],
})
export class TitlesShowcaseComponent implements OnInit {
constructor() {}
ngOnInit() {}
}
<file_sep>... | 1bb8949786ad18b2dd8616da06aee617e8fbdb1e | [
"Markdown",
"TypeScript"
] | 52 | TypeScript | yenaungideal/iras-eservices | f2fa3bb87507b1a6815c609c8aaf5f9b7ef97406 | 7cd53df2caf6008268af770e9cecd75d31649c80 |
refs/heads/master | <file_sep>// TreeShowDlg.h : 头文件
//
#pragma once
#include "afxcmn.h"
// CTreeShowDlg 对话框
class CTreeShowDlg : public CDialogEx
{
// 构造
public:
CTreeShowDlg(CWnd* pParent = NULL); // 标准构造函数
~CTreeShowDlg();
// 对话框数据
enum { IDD = IDD_TREESHOW_DIALOG };
protected:
virtual void DoDataExchange(CDa... | a9ac3fbc84cc9053b91862820ecfdd75d6952285 | [
"C++"
] | 2 | C++ | halforc/TreeShow | 6b95f5525ff04bd27efd5a04321cbe600aa789fa | 0c8bf0ab99979ffa179c379d57935b297aa4346c |
refs/heads/master | <repo_name>daschne8/your-own-js-and-css-in-rails-online-web-ft-031119<file_sep>/app/assets/javascripts/hide.js
function hideWhenClicked(element){
$(element.target).hide()
}
$('#hide_this').click(hideWhenClicked);
| 050fd797146782192274fbc330d723d6df906b5e | [
"JavaScript"
] | 1 | JavaScript | daschne8/your-own-js-and-css-in-rails-online-web-ft-031119 | 83bbd11e61a5af41663b495721913072569c0d95 | dd75913c6bb4ebbda7a5db05c0706a0c6c16957e |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Description;
using WebApiCAR.Models;
namespace WebApiCAR.Controllers
... | 81a983a2add341d02c8848f8c0a42a2378c3f8cb | [
"C#"
] | 8 | C# | jimmy14cr/WebApiCAR | 760ade15b04488a64d7f04b3cf9cc0335c492806 | 42b3933d6e652680c3b6b56666022285b615a627 |
refs/heads/master | <repo_name>zarq/galgje<file_sep>/galgje_gamemaster.py
import re
from galgje_utils import debug
import random as random_
choice = random_.Random().choice
del random_
debug("Woorden inlezen...")
all_words = []
with open('dutch', 'r') as f:
for line in f:
word = line.strip().lower()
all_wor... | b4c9f94c3887cd1a34e80f039b18cbcdfd868ae4 | [
"Python"
] | 11 | Python | zarq/galgje | 5b616c07fe333937e5ee8784b51f02942fcb83b3 | 65e4d6df2016115f6f15f679b9b2e8e9d8d85e10 |
refs/heads/master | <file_sep>'use strict';
var gulp = require('gulp'),
mocha = require('gulp-spawn-mocha');
gulp.task('test', function () {
return gulp.src(['test/*.spec.js'], {
read: false
})
.pipe(mocha({
r: 'test/helpers/setup.js',
istanbul: true
}));
});
gulp.task('default', ['test'], function () ... | 23d674e18a60e724f23ccca6514e7efd372ffcfc | [
"JavaScript"
] | 3 | JavaScript | izigibran/text-to-image | e54d50bc9cd32d852306eb522cb7b5294a0a78c1 | f7a9d954ed55849f99a19570c7b24d84f05394b4 |
refs/heads/master | <repo_name>wscarval/OldHunters<file_sep>/guild_watcher.py
import logging
import re
import urllib.parse
import requests
import pickle
import json
import time
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)
consoleHandler = logging.StreamHandler()
consoleHandler.setFormatter(logging.Formatter('%(asctime)s... | 44a66f5ee2b251fe975338a27dde93543e9f2cd7 | [
"Markdown",
"Python"
] | 2 | Python | wscarval/OldHunters | b9c458527365257ff836daeb75da63adec7a5641 | b315b8bb5a8628e9f08f338677882e073c2b277c |
refs/heads/master | <file_sep>#!/usr/bin/python3
#Problem 1 - Multiples of 3 and 5
#If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
#Find the sum of all the multiples of 3 or 5 below 1000.
totalsum=0
for currentnum in range(0,1000):
if(currentnum%5==0 ... | 50f022f2a4bee8f4c9c34e0b4707c342635c1c71 | [
"Python"
] | 6 | Python | thepegasus/projecteuler | 546e4f7d209910ea3fb4ded526e9e90e100aa2c7 | cae01c673eab2f689221f2041607f7fad96bcf7e |
refs/heads/master | <repo_name>bartlett705/tango-sierra<file_sep>/todo.txt
[todo]
I didn't end up having time to implement all of the bonus features,
but I wanted to include some thoughts on how I would do it:
- Game Search - Since we already have all the game info available, I would add a text input box at the top of the page, with its... | 864b59da7c368a63e177162dc4528257abf7ca40 | [
"TypeScript",
"Text"
] | 10 | Text | bartlett705/tango-sierra | 20df23b965ee92d2b696000bd86f8b4829534e7c | 39a253c1cdd74b034d7148b55826f52d72c121a7 |
refs/heads/master | <repo_name>lucas-clemente/seminar-macroscopicity<file_sep>/assets/js/main.js
// Generated by CoffeeScript 1.6.2
(function() {
var refs;
refs = {};
$('[data-reflabel]').each(function() {
var $this;
$this = $(this);
$this.addClass('reference');
$this.find('a').prepend('<i class="icon-file-alt"></... | 88b85d63fb589fbe9aa4ad2844e51a97a550707a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | lucas-clemente/seminar-macroscopicity | 3988b6a5649e34a2dba1ced9403f43cb3e62b81b | 3fdd0d1376fc28c3e35903f66e22dafe0306792b |
refs/heads/master | <repo_name>wsaunders1014/CodeIgniterTestBuild<file_sep>/api/application/models/Theatres_model.php
<?php
class Theatres_model extends CI_Model {
public function __construct(){
$this->load->database();
}
public function get_theatres(){
$query = $this->db->get('theatres');
return $query->result_array();
}
publ... | 38cef06146b29edc28f056d18f890abbfe0d505a | [
"PHP"
] | 2 | PHP | wsaunders1014/CodeIgniterTestBuild | 940ea89b5335d50e5c2326576c8778d9619a1d33 | cfae8c937cb0f2cdb8b7d312cb29653df9aa1e8f |
refs/heads/master | <repo_name>ska-telescope/csp-lmc-prototype<file_sep>/Dockerfile
FROM nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:0.2.2 AS buildenv
FROM nexus.engageska-portugal.pt/ska-docker/ska-python-runtime:0.2.2 AS runtime
# create ipython profile to so that itango doesn't fail if ipython hasn't run yet
RUN ipython... | ace97594ef4fe038a7787e46d2cff7350a5b68e6 | [
"reStructuredText",
"Markdown",
"Makefile",
"Python",
"Dockerfile",
"Shell"
] | 31 | Dockerfile | ska-telescope/csp-lmc-prototype | 36f35d7a0b4385d8e139a0a055cfa219d6c13a9a | 574be5aa8f3c8e6a70ac058b3cd9dc5dd5ced96b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesignPatternsLib.StructuralPatterns.Decorator
{
public class Component : ComponentBase
{
public override string Operation()
{
return "component";... | 2948fae813038434aeb4620cce40fdebc1d9e631 | [
"C#"
] | 70 | C# | MiguelArteagaOrozco/DesignPatterns | 05942e361d60742aae82cbbbbac8a8e95df71566 | c95f35c92cd492c13a64aa3c40b3a10924220ba6 |
refs/heads/master | <file_sep>package de.wusel.wusellab.game;
public class Game {
private final Room room = new Room(800, 600);
private final Player player1 = new Player(Position.at(0, 50));
private final Player player2 = new Player(Position.at(50, 0));
private final Area goal = new Area(700,500,100,100);
... | 07fbf6cae4ae38d8fa6c7be00a9e6d49c1db1074 | [
"Java",
"Gradle"
] | 7 | Java | simonhampe/wusellab | 5b80cd33112e11abb533c37b067f2f6d0b5f1893 | 7a6e017cc3094f709c9dac5cba2982714aa813cd |
refs/heads/main | <repo_name>Davide01/language-classification<file_sep>/app/lang_model/utils.py
def map_language_code(language_code: str) -> str:
languages = {
"da": "Danish",
"sv": "Swedish",
"no": "Norwegian"
}
if language_code not in languages:
raise ValueError("Language not supported")
... | ce25d18f07f39b2c270aa43ca7bbe0895490f092 | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 10 | Python | Davide01/language-classification | 68d480194a463a063f94326c86f31187299acf60 | 32b789a446f43ad6abe448bbf11cc06d445dff3f |
refs/heads/master | <repo_name>ChewyChiyu/Street-Fighter<file_sep>/src/textureClass/Texture.java
package textureClass;
public class Texture {
public static void loadDhalsimTextures(){
new DhalsimTexture();
}
public static void loadRyuTextures(){
new RyuTexture();
}
public static void loadEHondaTextures(){
new EHondaTexture... | e0895a5cd8aa135c4ea7ee0ac687ceaefd9a0ce9 | [
"Markdown",
"Java"
] | 14 | Java | ChewyChiyu/Street-Fighter | 00fcf0c4d98f3d5ae220a3dd9712f24fed1439ba | ccf8fa9cae0464decd116b349b65f8faaa3649e6 |
refs/heads/master | <file_sep>module.exports = {
jwtSecret: process.env.JWT_SECRET || '<KEY>'
};<file_sep># Strapi application
My JAM Stack application (backend)
| 0a89e6d11e530d8a5cb0d9395d89dd0b55e7be82 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ThingsOfBeam/JAM-thingsofbeam-app-backend | 4c87279982b0c058069e6eb5f44063dfb5044a29 | f6613018f2c82925bf16062d98260e3c298322d1 |
refs/heads/master | <repo_name>richardartoul/regex-engine<file_sep>/regexEngine.js
var regexEngine = function(regex, string) {
// Since JavaScript doesn't support pointer arithmetic, we mimic
// that behavior using counter variables which indicate which position
// in the array we want to be referencing at each step in the recursion... | 1a8c6005fab4da01183c22741dd77442e4e03ae8 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | richardartoul/regex-engine | e61aad510e506f14de754231f230b1d431d8c7be | 0dae8fa93f9b5748816e87901a389bd058b6f726 |
refs/heads/master | <file_sep>use std::env;
use std::path::Path;
use std::fs::File;
use std::io::prelude::*;
fn simd_type(w: &mut Write, t: &str, width: u32, length: u32) {
assert!(length >= 2);
assert!(t == "f" || t == "u" || t == "i");
let ty = format!("{}{}", t, width);
let mut contents = String::new();
for _ in (... | a23e20227adf52ae083861d46efbac333063ef1e | [
"TOML",
"Rust"
] | 3 | Rust | huonw/simdty | 18e9f5101ad8fde72acbda3eb161a1e70354c3f6 | 3a22131c648efde1639b368c3f2f5b04d295b2d3 |
refs/heads/master | <repo_name>mo-spec1/mo-spec1-sauclabsdemo<file_sep>/src/test/java/com/saucedemo/Readme.md
Project Overview:
1) How to run the project
- Access the Runner via this path src/test/java/com/saucedemo/runner
- Right-click on the TestRunner class
- Click on Run 'TestRunner'
- At this stage your test should all run successfu... | ece49c4a855690abc98da3f8eb83915059bd9238 | [
"Markdown",
"Java"
] | 4 | Markdown | mo-spec1/mo-spec1-sauclabsdemo | 2efadbc48bd0577fb7df1668dc1610950451db5c | 9eb2d3c80c57421e4f3ab7947123df35bf0b15ab |
refs/heads/main | <repo_name>XueWang2019/Arvato_customer_segmentation<file_sep>/etl.py
#!/usr/bin/env python
# coding: utf-8
# In[1]:
# import libraries here; add more as necessary
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# magic word for producing visualizations in notebook
get_ip... | 64bdb4cf859c8bc5b9479ef7a9ae1b956bd554b8 | [
"Markdown",
"Python"
] | 2 | Python | XueWang2019/Arvato_customer_segmentation | 3c239d974b4e9df131ceed0915a54e95e8d0b0a4 | e57f1ce6c59a34ec7fc381101e3093aa03d5cc62 |
refs/heads/main | <file_sep>from random import randint,sample
import time
password=chr(randint(65,90))
password+=chr(randint(65,90))
password+=str(randint(0,9))
password+=str(randint(0,9))
password+=chr(randint(97,122))
password+=chr(randint(97,122))
password+=chr(64)
finalpass=''.join(sample(password,len(password)))
p... | df4aea6527f68ac89b36306c08f49fa597d8f217 | [
"Python"
] | 1 | Python | JaySurana0710/Password-Generator | c20740cc36136444f2ba5ee7d947e96b6ebebe49 | 0e64b8c0ef1be30ea669a3d4cf1be1f55d8a05d3 |
refs/heads/master | <file_sep><?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
... | 485ea1528fcda5bdfbaebdb9b5226b58fab4c43e | [
"JavaScript",
"PHP"
] | 12 | PHP | ToviKurztag/moodle-block_video | f2806c75ac9ba43e0576243ec38ef6106f95b51e | b59941af9999ed63fa709e97c0f604756f5845c5 |
refs/heads/main | <repo_name>AthamAbdullox/Recipe-Search-App<file_sep>/src/contexts/axios.js
import axios from "axios";
const options = {
method: 'GET',
url: 'https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/100/information',
headers: {
'x-rapidapi-key': '79d55e6135msh32b4af25cbeedd5p14a581jsn1c7792f0... | 9c0261ab0fc2c30ae24954a99212e130fc46c47b | [
"JavaScript"
] | 5 | JavaScript | AthamAbdullox/Recipe-Search-App | fd6d6e51a0a469b8225eb04c58f87cab9c67d542 | 6e53922d6609dbfc938b122334dffb08e9d0fc67 |
refs/heads/master | <file_sep>Django==1.11
django-environ==0.4.5
django-rosetta==0.9.0
microsofttranslator==0.8
polib==1.1.0
<file_sep>.. _api-utils:
.. currentmodule:: guardian.utils
Utilities
=========
.. automodule:: guardian.utils
get_anonymous_user
------------------
.. autofunction:: get_anonymous_user
get_identity
----------... | 95558961b7316ea338064b1f068a0d7ceaa5e55f | [
"HTML",
"reStructuredText",
"INI",
"Python",
"Text",
"Shell"
] | 33 | Text | rmgorman/django-guardian | 0d4a634561fccd1f510d2f6e0b64ef99ad21ccf4 | fddaa3d350681014e7e5dd3ee74fcc9b919eb6ed |
refs/heads/master | <repo_name>samtfm/nice-rocks-landing-page<file_sep>/src/App.js
import React from 'react';
import './App.scss';
import Banner from './components/Banner';
import { ThemeProvider } from '@material-ui/core'
import { createMuiTheme } from '@material-ui/core/styles';
import InfoSection from './components/InfoSection';
import... | 440c964a672417dff18ab65acc35f3184e000005 | [
"JavaScript"
] | 4 | JavaScript | samtfm/nice-rocks-landing-page | d551178c5e48971b2ed54c039ddb0ab7b416a914 | 34647e21445c3711c1ac827d132adef5b0058ddd |
refs/heads/master | <file_sep>
/* A simple One-Pass Compiler */
/* global.h */
#include <stdio.h> /* include declarations for i/o routines */
#include <ctype.h> /* ... and for character test routines */
#include <stdlib.h> /*and for some standard routines, such as exit*/
#include <string.h> /* ... and for string routines */
#... | 54deb758fe50afce21528cc43d8ebe38ecb4ff03 | [
"C"
] | 1 | C | emranbm/eLex | 21012cd5929ecc8d1a9bf132a765335aa0f455c8 | ce638104dc8c2f8cf03424acd58455b7e0607fe6 |
refs/heads/master | <repo_name>jacekngo/CVApp-master<file_sep>/app/src/main/java/io/github/wzieba/supercv/MainActivity.java
package io.github.wzieba.supercv;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.NavigationView;
import android.... | cdacf3d39d16bb45e84b0145019cdb24e6a0c5bc | [
"Java"
] | 1 | Java | jacekngo/CVApp-master | 58e3a5ae62714ccf962f2e5c5fd09728fab26021 | c6635b2433502102b1819099f9b5e47fc95492fa |
refs/heads/master | <repo_name>olossss/3DModel<file_sep>/3DModel/Game1.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace _3DModel
{
public class Game1 : Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
private Model mod... | 76be7182d0460af871940423e1da5545d9c5bfa6 | [
"C#"
] | 1 | C# | olossss/3DModel | 84b7e7ff7a497d5e0595719c307da0c77e64dcad | 98edcf028d75ec810488d66251ea2632fe100237 |
refs/heads/master | <repo_name>lordcirth/minetest-digipad<file_sep>/README.txt
HybridDog has taken over maintaining this mod
https://github.com/HybridDog/digipad
The digipad allows you to enter a number 1-10 digits, which will be sent down
a digiline. You can select channels 1-3 with buttons in the formspec. channels
are prefixed with "... | b906e89b9aba9a2b0a12d02c7a201cedd206ef54 | [
"Text",
"Lua"
] | 3 | Text | lordcirth/minetest-digipad | 9182584ffcc80e351efaf4337c52f1ba8bf40f74 | 351b23c3361ae50c461999f12bdd9ce4c6e73729 |
refs/heads/main | <file_sep>let userScore=0;
let compScore=0;
const userScore_span=document.getElementById("userscore");
const compScore_span=document.getElementById("computerscore");
const scoreboard_div=document.querySelector(".scoreboard");
const result_p=document.querySelector(".result > p");
const rock_div=document.getElement... | fbd8bb2d33ceeebd0b85fdb0fdb5540be84e5a18 | [
"JavaScript"
] | 1 | JavaScript | ashishmaithani17/ROCK_PAPER_SCISSORS | d7f44fb89661be203d66717f48604221e0b7f760 | d2f634c31b72e13557cbfd527fbfd38455332d76 |
refs/heads/master | <repo_name>stephanwlee/mendel<file_sep>/packages/mendel-config/src/helpers/validator.js
const chalk = require('chalk');
const _errors = [];
function maybeThrowIfError() {
if (!_errors.length) return;
throw new Error('Configuration Errors\n' + _errors.join('\n'));
}
module.exports = function createValidator(s... | 08b75e0a21e1e0d5b922ba7618649b8e643a59ef | [
"JavaScript",
"Markdown",
"Shell"
] | 133 | JavaScript | stephanwlee/mendel | 28ba8a89e51161e4d2125c6797d606ed56207b64 | e87508872eaa70537be1674a2bd9af928c59b398 |
refs/heads/master | <file_sep>const Math = {};
function sumar(x1,x2){
return x1 + x2;
}
function restar(x1,x2){
return x1 - x2;
}
function multiplicacion(x1,x2){
return x1 * x2;
}
function division(x1,x2){
if(x2 == 0){
console.log('No se puede dividir por 0');
}else{
return x1/x2;
}
}
Math.suma... | 3702a79fdc1e228fdd5147bc6f85c7c2cdd57e12 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | kaxer1/aprendiendo-javascript | 1bbd8f03566cf3655129bd8e5cb62d7475f69f76 | 0090c699d28b5f875b368f56c6579a9b1baedcbe |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import 'bootstrap/dist/css/bootstrap.css';
import FormProduct from './FormProduct';
import ProductsPanel from './ProductsPanel';
class Products extends Component{
render(){
return (
<div className = 'container'>
<div className='border round... | 0ba4093409d8bb1b14ba9801427577f73df32141 | [
"JavaScript"
] | 5 | JavaScript | gabrielmarden/React-Product-Form | 6837970803ce76f6389961c69e7fa283e322d101 | bbef9be9189e6a67a766c699a04a1e8fd51d542c |
refs/heads/master | <repo_name>anlancan96/stateofchain<file_sep>/index.js
import path from 'path'
const express = require('express');
const compression = require('compression');
const bodyParser = require('body-parser');
const PORT = process.env.NODE_ENV || 3000;
const app = express();
app.set('views', path.join(__dirname, 'views'));
va... | 52387fcc3f05dc085b452d896f13da82a8a54efd | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | anlancan96/stateofchain | 818fafccce402767889a6884dc942fc6b3e956c8 | 5aaacdd0e0e4430792e5e340d98fece20ec8a015 |
refs/heads/master | <repo_name>Stances/NFG.TimeTracker<file_sep>/NFG.TimeTracker/ViewModels/ObservableObject.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace NFG.TimeTracker... | afb9f9f31e942e9ea7943345ca75318494e1750c | [
"C#"
] | 1 | C# | Stances/NFG.TimeTracker | 89357f111e51192b68d6dd8b86f2bde00dc1a5e6 | 7ffbc48d3d2f51ba4ccc8f14e681f66a0f102d71 |
refs/heads/master | <file_sep>docker build \
--rm=true \
--build-arg http_proxy=$http_proxy \
--build-arg HTTP_PROXY=$http_proxy \
--build-arg HTTPS_PROXY=$https_proxy \
--build-arg https_proxy=$https_proxy \
--build-arg no_proxy=$no_proxy \
--tag=hpestorage/csp_3par_primera:v0.1
<file_sep>package models
type DataInJson str... | d98c2ad224fdf9960736739cd601f90c101d08bc | [
"Markdown",
"Go",
"Go Module",
"Dockerfile",
"Shell"
] | 11 | Shell | ansarars/csp_3par_primera | c6905705d9b5e4cecb4fe209767a25338b91bcb4 | a2082c90a6bd09a09b146ce194a3cf5938a75549 |
refs/heads/master | <repo_name>giulianogimenez/mazebank<file_sep>/README.md
# Maze Bank
Example using Cucumber (4.0.0) and BDD concepts with Java 8 and Gradle builder.
# Automatized tests with Gradle
Use de follow command if you are facing issues with Gradle tests:
$ gradle cleanTest build
<file_sep>/src/test/java/br/gov/sp/fatec/mazeb... | 905f3c4496f73dd726a76f8c0adc05674b12fcbb | [
"Markdown",
"Java",
"JavaScript",
"Gradle"
] | 7 | Markdown | giulianogimenez/mazebank | 973f2afc6eb365396f8d3614e021a994e0194da9 | 593af8bb74b58780d1dd061540eaf5128afdaf9d |
refs/heads/master | <repo_name>SecureCloud-biz/keygen<file_sep>/example/python2-flask/keygen.py
from __future__ import with_statement
from contextlib import closing
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
from pprint import pprint
import OpenSSL
impo... | 4db418189c469fc2f69046c6af4c5d5b07a3a09e | [
"SQL",
"Markdown",
"Makefile",
"Python",
"Shell"
] | 7 | Python | SecureCloud-biz/keygen | 47687cd040052fe53d2b5bbcfad12ac547f55b81 | e64dda5d13bc25ad66fd4b1dc1df6f862bfb5224 |
refs/heads/master | <file_sep># CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.16
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#==============... | b231779148bcb9e42c406d4f87e67d7c983b8b2f | [
"Markdown",
"Makefile",
"CMake",
"C++"
] | 23 | Makefile | ZhangJiaQiao/HOT_src | 027dae3846f0e8dc840297815a93123ee8a2c9c4 | ea2161ed4cab1ff69e2c9c76d0bdba3bb02d334e |
refs/heads/master | <file_sep>package Week10;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class FindingGCDTestTest {
@Test
public void testFindingGCD() {
//given
FindingGCDTest gcdTest = new FindingGCDTest();
int expectedResult = 5;
//when
int actualResult = gcdTes... | 43cceb13df39bc1b7a1374f9c0a6cbd24811d7d6 | [
"Java"
] | 3 | Java | Clogogo/Java-training-Testing | 621efb6542d90aacd5db18593f9bf4d49a33e291 | 060b5cc2b9596f8d6a85e39ffc9a1b26a4c1ee9c |
refs/heads/master | <file_sep>import React,{useState} from 'react'
function Contact(props){
// const [name,setName]=useState('abinash')
// const [age,setAge]=useState(27)
// useEffect(()=>{
// console.warn("hello from hook")
// },[age])
//for props explaintions
// useEffect(()=>{
// console.warn("C... | 34617a542bca12cfef906e63246c60ec2cc59ba7 | [
"JavaScript"
] | 1 | JavaScript | AbinashThakur/react-course | 03c1684818050d6f1a773371b36d8801266bb588 | fac0a2b3339e7bedbfe7f7e309c664ecc2e509c5 |
refs/heads/master | <repo_name>CSCI513-Spring20/Assignment1-team-atluri-mundru<file_sep>/Assignment1/src/SearchStrategy.java
public interface SearchStrategy {
public void search(int game[][]);
}
<file_sep>/Assignment1/src/BattleShip.java
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.*;
public clas... | e698006d1f521d4a08c4761afe05861bd513a2ff | [
"Java"
] | 2 | Java | CSCI513-Spring20/Assignment1-team-atluri-mundru | 0b9372b304d07f73079638c0e21ce40f60137bbe | 09ddf3dc0a26c6c0e709fd87f250409d2e83bf53 |
refs/heads/master | <repo_name>erisonliang/E-Mail-Web-Api-Windows-Service<file_sep>/EmailWindowsService/Model/EmailViewModel.cs
using System;
using System.Collections.Generic;
namespace EmailWindowsService.Model
{
public class EMailViewModel
{
public EMailViewModel()
{
EmailAttachments = new List<EMai... | 2621741514663c782d2cfac341d9db1eafe281b7 | [
"Markdown",
"C#"
] | 7 | C# | erisonliang/E-Mail-Web-Api-Windows-Service | ec8032e83e1db25dfb298d466acebd4c57262ee6 | f3bae4efc9f083049fe2a440f9dfe3b8ec568640 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.