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>////////////////////////////////////////////////////////////////////////////////
//
// *** Helper code to convert from UTF-8 to UTF-16 ***
//
// by <NAME>
//
//
// This code is based on my MSDN Magazine article published
// on the 2016 September issue:
/... | 6e43477b5fc2d61a2bcc2d1ebc7366617fce13a4 | [
"Markdown",
"C++"
] | 3 | C++ | GiovanniDicanio/PrintUtf8ToWindowsConsole | 134bcef548cf0a55d155e56ced52863540f48f06 | aacf7b6c56573472d0db4de98df2b1913ae3b84c |
refs/heads/main | <file_sep># An array in programming is an indexed collection of related items
# Lets put some capitals of countries in an array
capitals = ["London", "Paris", "Berlin"]
# You can access any element in an array by specifying its index.
capitals[2]
# Will give you "Berlin"
capitals[0]
# Will give you "London"
capitals[... | 59552d7215c839a7e5c0fb8fddd20200dc5317e4 | [
"Ruby"
] | 2 | Ruby | LCzoboriek/Makers-Pills | 583758ac87aba4e64a09e6c5d2884642d679c6aa | 3d7dea765e4065db9070b566cca24cca7c1866f4 |
refs/heads/master | <file_sep>/*
Find Max Subarray by Enumeration
Loop over each pair of indices
i, j and compute the sum,
Sigma(f)(k=i) a[k]
Keep the best sum you have found so far
*/
#include <stdio.h>
/*
Pre: a[] is an array of integers of length n
Post: a[] is now the max subarray
Returns: int which represents greatest... | da6daa93e6a4273b72c6d120ea2095e2a1ab4104 | [
"Markdown",
"C"
] | 5 | C | samuelsnyder/max-sum-sub-array | e39cd3fdb7eafd0d1b90b69926387c568cf7a888 | 25296a2f8f48d3ce8c8f51ee24d512ec6d845ca5 |
refs/heads/master | <file_sep>
/*
RC Base
3/12/17 by <NAME> and <NAME>
(Based on Code by <NAME>)
Allows for driving the test robot using an RC controller
*/
#include <Servo.h>
// Create Variables to hold the Receiver signals
int Ch1, Ch2, Ch3, Ch4, Ch5, Ch6;
int CalcHold; //Variable to temp hold calculations for steering ... | 15bcddcd09d26fdf453d0998df65eb01beea879c | [
"Markdown",
"C++"
] | 2 | C++ | TeamWoahBot/Autonomous_Light_Tracking | bf4d51cad8163f69c102267c7986d97f05c44ab3 | 7ba03a94cd36da3a7f0e51bf2b94bc677a314fce |
refs/heads/master | <repo_name>XenoEmblems/lynda<file_sep>/Ex_Files_FoP_Fun/Exercise Files/ch04/Complex Conditions/script.js
var balance = 5000;
if ( balance > 0 ) {
alert("The balance is positive");
if ( balance > 10000 ) {
alert("The balance is large!");
}
} else if (balance == 0) {
alert("There is no balance");
} else {
... | a9dd4a174710796af1049f97695533d77b9e5716 | [
"JavaScript"
] | 1 | JavaScript | XenoEmblems/lynda | 44b3fc8b2b810fbc2af6fed690443060d9ed0064 | dcf32ea965c9f109fb07f889d041086c0f0a0e98 |
refs/heads/main | <repo_name>ccccc-ccccc/test<file_sep>/lm_bbdinf.cpp
#include "lm_bbdinf.hpp"
/*
function: crc checking and deconverging without 8to32
idata[i]
finf[o]
odata[o]
*/
void lm_bbdchk(stream<U8> &idata, stream<lm_frm_info> &finf, stream<U8> &odata)
{
#pragma HLS pipeline II=1 enable_flush
static enum enState {RS_N... | 6b1f395c0e5b41635a8d493e2cba09d5a228ff82 | [
"C++"
] | 1 | C++ | ccccc-ccccc/test | 816ffa5b38a0bfc22b8a6877a21bfe739ba3a363 | 92f93f6c479a68a34bbbc1191c1e02d13a0e89e9 |
refs/heads/master | <file_sep>package sybrix.easygsp2.exceptions;
/**
* Created by dsmith on 8/16/15.
*/
public class InvokeControllerActionException extends HttpException {
public InvokeControllerActionException() {
super(500);
}
public InvokeControllerActionException(String message) {
... | a39596fd3caf5573622f75c413d7613ca116f16e | [
"Markdown",
"Java",
"Gradle"
] | 14 | Java | sybrix/easygsp2-framework | 717939f2987e8e6bb6fec6cf46b57732eb47f37a | 7d8e6f8d914e770b0377253082f437fb79453d54 |
refs/heads/master | <repo_name>davidyi0529/Speedquiz_D<file_sep>/script.js
function initQuiz() {
let timeRemaining=0;
let questions = [
{
title: "Question 1: What tag is used to specify a section of text that provides an example of computer code?",
choices: ["caption", "code", "!DOCTYP... | 2142661762b2f2596501ee574b3f7dc6be11f673 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | davidyi0529/Speedquiz_D | 0d357131fbf17537d5f1f83fd3039afe5c8867d7 | d7fbb477e3d014ab18621883a29fd323baabee8d |
refs/heads/master | <repo_name>thatlisajones/Survey_Example<file_sep>/app/models/feelings.js
var feelings = [
{
"feeling_id": 1,
"feeling_group": "Joy",
"feeling_name":"Excited",
"feeling_emoji":"😁",
"feeling_color":"#ADFF2F",
"feeling_def": "Enthusiastic and eager",
"feeling_value":101
},
{
"f... | 64f31794139e747a6a6014f3a0cab53a1ebfc32d | [
"JavaScript"
] | 2 | JavaScript | thatlisajones/Survey_Example | cf6bb9228badf0418483c48ef8f10745e7cc911b | d956d29e9dac8af700c1211fb3220770a9bb7f93 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import { Link } from "react-router-dom";
// let url = window.location.href.split('/');
// let path = window.location.pathname;
class Navbar extends Component {
constructor() {
super();
this.state = {};
}
render() {
let { pathname } = this.props.lo... | 1c44d8700a634c5cf2b9c90b5f8757cab38f5a4d | [
"JavaScript"
] | 5 | JavaScript | Jarriola989/jarriola989.github.io | 63eff5092286398e941bc21f079c7603c27d8b09 | b87afb14444f06efdd33507312f12915897c8a8d |
refs/heads/master | <repo_name>milo-trujillo/CriticalityTest<file_sep>/README.md
# Criticality Test
*<NAME>*
The Internet is a hybrid system - at a high level it is widely decentralized and redundant, but at local levels the network topology is often very rigidly structured. But how centralized *is* our network connection? How many ‘hop... | e4e2999df6c02a5ff48d954bff97fb7f0054dc6e | [
"Markdown",
"Python"
] | 3 | Markdown | milo-trujillo/CriticalityTest | 8e8aeb4dd25b155363042dd2b63b8a57b58f86e5 | edda9c2f53ffb0f2d27d3853c536faf557dab2d7 |
refs/heads/master | <file_sep># Runway-React
The `runway-react` package defines a `Gallery` component, which renders a thumbnail gallery and [Lightbox](https://github.com/rcwbr/react-images) viewer to display images processed by the `runway-gallery` tool.
## Usage
Example usage of the `runway-react Gallery` component can be found in the ... | eb79f67ca99ad3fc0ad19580df66f279f4ab4e22 | [
"Markdown",
"JavaScript"
] | 7 | Markdown | rcwbr/runway | 45fccdd38c389186c85f3d892aef6197e2adb7a5 | e74722b8e16d8469742034209cacc8449f807d96 |
refs/heads/master | <file_sep>Je suis <NAME>. Je suis très contente de faire ce bootcamp!
<file_sep>SET SQL_SAFE_UPDATES = 0;
UPDATE salesperson
SET store = 'MIAMI'
WHERE name = "MARTIN";
UPDATE customers
SET email = "<EMAIL>"
WHERE name = "<NAME>";
UPDATE customers
SET email = "<EMAIL>"
WHERE name = "<NAME>";
UPDATE customers
SET ... | 12b93e8af12a58f71d04eb6c9e35ec94cb25cbb6 | [
"Markdown",
"SQL",
"Text",
"INI"
] | 9 | Markdown | jina2020/dataV2-labs | 8153d5a3d947318be492eb474e9d2150b2031f41 | d3620fae412acb95f702da1b1d27a0762b92d1df |
refs/heads/master | <repo_name>wnsgur0504/Node.js_workspace<file_sep>/project1014/server.js
/*웹서버 구축하기*/
// 모듈이란? 기능을 모아놓은 자바스크립트 파일
var http = require("http"); // http 내부 모듈
var url = require("url"); //url 분석모듈
var fs = require("fs"); //file system
var mysql = require("mysql");
var ejs = require("ejs"); //node 서버에서만 실행가능한 문서
... | e0f05cac7b158edbab3d4f78b6bd9d44911ccc35 | [
"JavaScript"
] | 12 | JavaScript | wnsgur0504/Node.js_workspace | 902686e1da31affc30e1f8b469a80d1d5e66a969 | c1de3f99ac607214f7cbc1605eb9f0c25fb89afa |
refs/heads/master | <repo_name>william-marquetti/Exercicios_Java_Orientacao_Objeto3<file_sep>/Exercicios_Java_Orientacao_Objeto3/src/exercicios2/ComparacaoImpl.java
package exercicios2;
import java.util.List;
public class ComparacaoImpl implements IComparacao{
@Override
public void buscaProdutoNomeCodBarras(List<Produto> vetor... | 52a17da51f92931be9fe5e4bbf5cb06b16f25250 | [
"Java"
] | 6 | Java | william-marquetti/Exercicios_Java_Orientacao_Objeto3 | 5e05d02085a296a60e801dc32e2bebc73672425c | a3abec594b6f8518fe26314b8df7dde8ab75fed8 |
refs/heads/master | <file_sep># TOPcalculator
The Odin Project Web Dev Calculator
<file_sep>$(document).ready(function(){
var subtotal = 0; // tracks the calculations on the background
var currOperator = "add"; // tracks the operations
var thread = [0]; // Displays on the main screen
var currThread = []; //Displays on the top screen
var ... | c74265184677c1d4f5e57bb0ea5f10dd15c1f5f4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | EdMagal/TOPcalculator | 6d5b799cb94dc47513cdfd2271f697c6b1541b90 | 587332127bd73843f75e6d44202e560a8a6fbb6c |
refs/heads/master | <file_sep>from unittest import TestCase
import io
import json
from contextlib import redirect_stdout
import requests
import requests_mock
from ..fetch_facebook_posts_data import (fetch_node_feed, fetch_posts,
format_datetime_string,
cle... | 25cb84e123336e092dbc373a8c71d3f77a27ce5a | [
"Markdown",
"Python",
"Text",
"Shell"
] | 10 | Python | rowanv/tap-facebook-posts | fa521e6f81be95e7a99feedef8d0fad94c52e71f | 726c1d2962101cb869badfe23f1e547b23b7c0bd |
refs/heads/master | <file_sep># python sync tool
import os as os
import datetime
import time
import shutil
import pdb
class sync:
def __init__(self, source, destination ):
self.src = source
self.dest = destination
def checkRoot(self, src , dest):
if not os.path.exists(dest):
os.mkdir(dest)
def syncDir(se... | cc2ce1227abb0abed5eba7072318735e13f84bcb | [
"Python"
] | 2 | Python | 1IfByLAN2IfByC/DirectorySync | 47c10bc03337c183b107dcab60945b664d8e342f | cd57c7b6241157a4d95a6b82d49ebbe899d5c74e |
refs/heads/master | <repo_name>Techso/Tinder-Clone-App<file_sep>/src/App.js
import './App.css';
import Card from './components/Card';
import SwipeIcons from './components/SwipeIcons';
import Header from './components/Header';
function App() {
return (
<div className="app">
<Header/>
<Card/>
<SwipeIcons/>
</di... | 2ac0efdc44e5efb1f7af98718079cdce3a3bbb4b | [
"JavaScript"
] | 2 | JavaScript | Techso/Tinder-Clone-App | 5bfd406eee287f812cf918270a0c7a59399c9f85 | 1d8799c074fb5ad9c0b7670d58357637fc6b5a56 |
refs/heads/master | <repo_name>jbonigomes/popquiz<file_sep>/app/js/main.js
$('document').ready(function() {
// Let's make the page refreshes re-usable
function pickRandomQuestion() {
var data = questions[Math.floor(Math.random() * (questions.length))];
$('body').removeClass().addClass(data.color);
$('#question').removeCl... | bf08a2737c8fcb9c79b0e32e8bcc0e549e0ea28e | [
"JavaScript"
] | 1 | JavaScript | jbonigomes/popquiz | f01a21eb800f7dda986ab49e0c5e38ccca7f67b5 | b69103d3fdb3da7acf461169fa2cffe2327ce61f |
refs/heads/master | <repo_name>fcamposgonzlez/UnderMusic<file_sep>/okio-1.15.0/build.gradle
configurations.maybeCreate("default")
artifacts.add("default", file('okio-1.15.0.jar'))<file_sep>/app/src/main/java/com/example/undermusic/MainActivity.java
package com.example.undermusic;
import android.content.Intent;
import android.net.Uri;
imp... | 0fa4bd949744fc840f1692f25761c169cfde7a88 | [
"Java",
"Gradle"
] | 2 | Gradle | fcamposgonzlez/UnderMusic | d35107179cf0ce2ac5bc5f5efc0d340d7df469e9 | 359201a34778dc3ee77c6214c0da48672dfdaa48 |
refs/heads/main | <repo_name>arif-hstu/ema-john-server<file_sep>/app.js
/*process .env variables*/
require('dotenv').config();
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const app = express();
app.use(cors());
// parse application/x-www-form-urlencoded
app.use(bodyPar... | 7f5713b4b538184519a92c5e33b97ddc9a0c8f25 | [
"JavaScript"
] | 1 | JavaScript | arif-hstu/ema-john-server | b4022c0adcacc5fed93976d338e93a4d3ac53f77 | 1aa264a62e30b51a52a4301be76fff97614c6fc4 |
refs/heads/master | <file_sep>name = 'Notify'
icon = 'notification-new-symbolic'
def main(query):
if query.startswith('notify=') or query.startswith('n='):
infos = query[2:].split(':')
if len(infos) == 2:
cmd = "sleep " + infos[1] + '&& notify-send -i preferences-desktop-notification-bell "Custom Alert" "'... | 5727a2106ad15d1164c2a0cef1dbddd30b3692f4 | [
"Markdown",
"Python"
] | 6 | Python | Unam-OS/unam-launcher | 21dc43d2ce18daeed3192ded2253de8e5a2d301e | 56404663ed0f0f5d3126e338f85eebe818e46222 |
refs/heads/master | <file_sep>using Business.Abstract;
using Business.Concrete;
using Business.DependencyResolvers.Ninject;
using DataAccess.Concrete.EntityFramework;
using Entities.Concrete;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using Syst... | 0db2b3ee97115190ca1b9850886b6a9bf25b0775 | [
"C#"
] | 2 | C# | aliclk/NLayeredApp | 3d5a5667d3f8577772ec06cae9c86aa5d4124079 | b037fbcd6e98e8eaa0076378e2fea83ee6fc9a35 |
refs/heads/master | <file_sep>const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = dirName => ({
entry: {
app: ['./src/app.tsx'],
vendor: Object.keys(require(`${dirName}/package`).dependencies),
},
output: {
filename: 'app.[hash].js',
publicPath: '/',
},
devServer:... | 3ad9459020bbe8d1fc70012199e0ef967eacba14 | [
"JavaScript"
] | 1 | JavaScript | YegorLuz/ReactShop | 4133c33d39b989883ea4e2e8f9aa72d520835ffd | 6da8d8bb9d5c769621da36df66275094e97e81b7 |
refs/heads/main | <repo_name>Remkudusov/django-contract-search-website<file_sep>/README.md
# django-contract-search-website
This is my website for searching data about contracts in test workflow. Here is work with Django framework, REST API and more.
| 8137ab63b4d1d6919e8fe0416a3332761d6cf9c5 | [
"Markdown"
] | 1 | Markdown | Remkudusov/django-contract-search-website | 1c22b728c7306c1a07bcfd0ed3cf1474c5111887 | de8eb4553164681492dd14f7a0482f6609a6b1ea |
refs/heads/master | <file_sep># Color's Editor :art:
Aplicação desenvolvida para o trabalho prático do Módulo 01 do Bootcamp Desenvolvimento Fullstack disponibilizado pelo Instituto de Gestão e Tecnologia da Informação - IGTI. Visando desenvolver as habilidades em JavaScript, HTML e CSS e manipulação do DOM, desenvolveu-se uma aplicação ... | 4bc806547908d7deb5ec6687fb28d4b8cf2a2f4d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ChristopherHauschild/colors-editor-bootcamp-fullstack | 1bf9df71972dcf68237ce4b8944d8d04e574f54f | 230e52a35931eee11af445f881718b57ca750c60 |
refs/heads/master | <repo_name>PrasadSalimath/Angular-AlbumStoreProductPage<file_sep>/src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { RouterModule, Routes } from '@an... | 61933538e08fd83a0b8505027b6ca62140f43588 | [
"TypeScript"
] | 2 | TypeScript | PrasadSalimath/Angular-AlbumStoreProductPage | d028ac5c140f14c24cda5ecf462f4e051f847ee6 | 9fb0cc826abf79e8939ca1f5fae495fc8c2fc8ee |
refs/heads/master | <repo_name>dragosboca/dotmanager<file_sep>/lib/dotmanager/repo.rb
require 'dotmanager/config'
require 'dotmanager/util'
require 'git'
module Dotmanager
class Repo
extend self
def add_file(filename)
config = Config.instance
repobase = config[:base_repo]
g = Git.open repobase, ... | 3aad00284370b9b117425ba2b4f846f413dbc0d4 | [
"Ruby"
] | 6 | Ruby | dragosboca/dotmanager | bf38dc5b57169dcbb755e058d1ff19644d0b157a | e0131366954b137c5091781308ead1a66051e195 |
refs/heads/master | <file_sep>import app from './app';
/**
* List available serial ports
*/
app
.command('ports')
.description('list available serial ports')
.action(() => {
app.listSerialPorts();
});
/**
* Get chip id
*/
app
.command('cid')
.description('get device chip id')
.option('-p, --port <port>', 'device po... | d9027e8adc771ee33fce7393df1cc658a231bb7b | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | iotbits-us/mbox-builder-cli | 4204ea17e3790fc7229f8b53898b0f4920692611 | 7a169c6ae15ee849017f910ed20f8fec3486fe97 |
refs/heads/master | <repo_name>bubbabjh/cp1<file_sep>/mjs.js
var x = 0;
var fans = 0;
var cpc = 1;
var footballs = 0;
var missionaries = 0;
var cpcCost = 25;
var fBCost = 50;
var mishCost = 300;
function test(event)
{
x += cpc;
document.getElementById("numclicks").innerHTML = x + (x ==1 ? " Provo point" : " Provo points");
ev... | fcf6afa5fcca3b161384fbd009454fb9b88452fa | [
"JavaScript"
] | 1 | JavaScript | bubbabjh/cp1 | ce99880bdc252f06aff5347cc52fffbdae0ad471 | 0a6aef9b0549fca1cb1a42e86bc851fb98dcf734 |
refs/heads/main | <repo_name>lihongtang95/streamlit_wsb_app<file_sep>/README.md
# streamlit_wsb_app
A Streamlit/Heroku web application that pulls comments from the most recent Daily Discussion forums of the WallStreetBets subreddit and provides a visual summary of the most-mentioned stock tickers. The link is below.
NOTE: The heroku a... | 34e73f06daee68985851a6a6b5c37eec64d24f96 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | lihongtang95/streamlit_wsb_app | 4e74bc1d458d9dd028942532078310cebef9417b | 35140e5701bd8f0722c3095d66735417ee51f60b |
refs/heads/main | <repo_name>kartikbariya11/textutils<file_sep>/src/components/TextForm.js
import React, { useState } from "react";
export default function TextForm(props) {
const handleUpClick = ()=>{
// console.log("clicked");
let newText = text.toUpperCase();
setText(newText);
props.showAlert("converted to upperCa... | 16807a534103f5e03307956b80fb97229af4ae59 | [
"JavaScript"
] | 1 | JavaScript | kartikbariya11/textutils | eb2d9a1f8214b109f795a36c7aebe4f266f2e4d0 | f1f7f0c09f8646c363cd61643b8f870349aa1341 |
refs/heads/master | <file_sep># MediaDb
MediaDb — theme for UiB's MediaDb.
## About
Based on the [blank](http://themes.gohugo.io/theme/blank/) theme.
## License
This theme is released under the [MIT license](//github.com/Vimux/blank/blob/master/LICENSE.md).
<file_sep>name = "MediaDb"
license = "MIT"
licenselink = "https://github.com/... | c0416f5b2aba1a4de5ab98492706a85e40c354d1 | [
"Markdown",
"TOML",
"JavaScript",
"HTML"
] | 11 | Markdown | semafor/blank | 5aac3ad30b75dc3303c514adeebe2cbb4addcbb2 | a7d4faf5f731264e95cd207056a6876096a2f546 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import 'rxjs/add/operator/map';
import * as faker from 'faker';
/*
Generated class for the Agenda provider.
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular 2 DI.
*/
@Injectable()
export class Agend... | a004005b873497aed6a8a8de6dc1a0111d600f7c | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | kaikcreator/ionicVirtualScroll | e87afde4d3c07eb78a6b411044e899f43dd496c6 | 0feb26c8c0115d63e1e314890f0a122283322da5 |
refs/heads/master | <repo_name>rhiannanberry/Seven-Dancing-Ghost-Simulators<file_sep>/Assets/Scripts/PlayerRaycast.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerRaycast : MonoBehaviour {
[SerializeField]
private Camera cam;
[SerializeField]
private float scale = 2f;
... | a3604cd39bb7eea81103b568a66c075160943a14 | [
"C#"
] | 9 | C# | rhiannanberry/Seven-Dancing-Ghost-Simulators | 3298f481852ed7bd97324f66574f67ddc9ffe13e | 5240078c7c80ed4dd212116bf2827dd3829e0a2f |
refs/heads/master | <file_sep>'use strict';
//2
let money = window.prompt("Ваш бюджет на месяц?");
let time = prompt("Введите дату в формате YYYY-MM-DD");
//4
let firstExpenses = prompt('Введите обязательную статью расходов в этом месяце');
let firstExpMoney = prompt('Во сколько обойдется?');
let secondExpenses = prompt('Введите обязате... | e6664866fbaed646be2b2a5be0a25e44f0e464f8 | [
"JavaScript"
] | 1 | JavaScript | albuzi/udemy_react_js_1 | d6430c7ede0abe80bdb88f60d64ee4cb4b2b693d | e6c10a84dc1e56d1dfc79277cd359d613f9a2933 |
refs/heads/master | <repo_name>ArnalShoorukov/movies2<file_sep>/app/src/main/java/com/example/arnal/movies/AdapterFragment.java
package com.example.arnal.movies;
import android.support.v4.app.Fragment;
import android.content.Context;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
... | b66b467496d97a5df111a5b386e7f7a1614bc668 | [
"Java"
] | 5 | Java | ArnalShoorukov/movies2 | 8229d576b02e619980530d9e622103ce661a8c4c | 54cedad0efb8bdda471b94e307805d8788e4344b |
refs/heads/master | <repo_name>boorac/machine-learning<file_sep>/l4/mymlutils.py
from sklearn.metrics import zero_one_loss
import matplotlib.pyplot as plt
def calculate_losses(clf, X_train, X_test, y_train, y_test):
clf.fit(X_train, y_train)
predicted_train = clf.predict(X_train)
predicted_test = clf.predict(X_test)
los... | cbb2fdc72fd5a43475a71d165e9fec002a731765 | [
"Python"
] | 1 | Python | boorac/machine-learning | cee1810f07fb5aa9ddce36fedc26acd9a2ce82a8 | 6039e4de31760967328aef73b05d9b792ad3537d |
refs/heads/master | <repo_name>gustaandrade/MaoNaMassa<file_sep>/Assets/Scripts/GameConstants.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameConstants : MonoBehaviour
{
// Tags gerais
public const string PLAYER_TAG = "Player";
public const string LEVEL_TAG = "Level";
public const s... | 4aceb31df9e5dc999bad9db6fcb02783a3d70c71 | [
"Markdown",
"C#"
] | 14 | C# | gustaandrade/MaoNaMassa | 90c39f576708300f2e91b53484fc8ae204b09695 | c9ccb634f3e01b81f1e269db69ef698caa5278d9 |
refs/heads/master | <file_sep>'''
Created on 2019年10月17日
@author: yxr
'''
import requests
from orca.debug import println
"""
requests库的7个主要方法
request() 构造一个请求,支撑一下各方法的基础方法
get() 获取HTML网页的主要方法,对应于HTTP的get方法
head()获取HTML网页头信息,对应于HTTP的HEAD
post() post请求
put() put请求
patch() 向HTML网页提交局部修改请求,对应于HTTP的patch请求
delete() delete请求... | e29b495f6e7700922d2494067c63a3fc7988eea1 | [
"Python"
] | 2 | Python | yinxianren/python_study | 149608f6c73ba043bc0bcd940e8a9dddac283e3a | 6851bdd189099489cb36d010e1b174a67dcf0993 |
refs/heads/master | <repo_name>sargentogato/SQL-Queries<file_sep>/README.md
# SQL Queries
### Nivel I
### Nivel II
### Nivel III
<file_sep>/BBDDmysql.sql
/* Ejercicio 1 */
SELECT COUNT(`FlightNum`) AS Total FROM `flights`
/* 2 ejercicio */
SELECT `Origin`, AVG(`ArrDelay`), AVG(`DepDelay`)
FROM `flights`
GROUP BY `Origin`
/* 3 ejerc... | 1f084c559d7fc73f2da20cb4983edd8d922b4973 | [
"Markdown",
"SQL"
] | 2 | Markdown | sargentogato/SQL-Queries | 8c81a787c748f9931d87a83628d1a8bbd3002204 | e4d732fac570ef738990faf60cdf3b95be965edd |
refs/heads/master | <repo_name>andmmtel/telegram_bot<file_sep>/tgram.py
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from apikey import API_KEY
qa={"привет": "И тебе привет!",
"как дела": "Лучше всех",
"пока": "Увидимся"}
def get_answer(question):
return qa.get(str(question).lower().strip(' ?!,... | a41aee5f40a140ba6d033432bf97968e3c27a405 | [
"Python"
] | 1 | Python | andmmtel/telegram_bot | 8b358a8af0e1a5308d3cf88240c24f39dbb59374 | 9c1d714a25ddb461bf1ed04cdd35ccbfa5b82e0c |
refs/heads/master | <file_sep><?php
echo 'Ohoho PHP! *kotz*';
?><file_sep>GIT WDD 414
===========
Testrepository für GIT Demonstration im SAE Kurs WDD414.
Beispiel Überschrift 2
----------------------
Auch ein bisschen *Markdown* im Unterricht. Hat noch **niemandem** geschadet.
```php
<?php
echo 'Ja, genau! haha. not.';
?>
```
Weite... | f80513a8e3691121b9eb86ab65bf412433b71e39 | [
"Markdown",
"JavaScript",
"PHP"
] | 3 | PHP | originell/git-wdd414 | 62a5f7a57274ffbf6f33acb63ec056cd70f5ba7a | 02c9a7c92c03be09f5fad308389559a1c417374d |
refs/heads/main | <repo_name>kavithaponugupati05/conditional<file_sep>/app/views.py
from django.shortcuts import render
# Create your views here.
def hai(request):
d={'a':220,'b':530,'c':100}
return render(request,'hai.html',d)
| bab55716ec668962f159e403ed7bca91a035e21f | [
"Python"
] | 1 | Python | kavithaponugupati05/conditional | 2e45dbbed6d96ba4ed1b0d53c1daa50e7a8ae164 | 3c8326b725310c5ccca1039e84d4a08ff50d4117 |
refs/heads/master | <repo_name>cran/FinAna<file_sep>/man/plotsm.Rd
\name{plotsm}
\alias{plotsm}
\title{Plot scatter smooth plots for a data.frame}
\usage{
plotsm(x,dependent,c,l)
}
\arguments{
\item{x}{:a dataframe}
\item{dependent}{:the dependent variable}
\item{c}{:is there dummy variable in the data.frame; c = 0 when there i... | 29b89b3b8aa7ce730c37e086242cf7bcfd26e4f1 | [
"R"
] | 17 | R | cran/FinAna | 599fc65d1a398c91c6e6ca68555e522c299a3524 | 54a9fa34f48c0e00637d296f4d2423d300482864 |
refs/heads/master | <repo_name>iamleohanstudy/han<file_sep>/src/test/java/han/handatatest.java
package han;
import han.repository.JdbcRepository;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.an... | ab7813fcd426e5d9c9faf8cbb25f72602f371f86 | [
"Java",
"Maven POM"
] | 4 | Java | iamleohanstudy/han | 3db74df63e4446acfca9084ae34a40233610ce99 | 01237a79e3d63e80c1cc95223fef6ab8424c5013 |
refs/heads/master | <file_sep>version: '3.3'
services:
redis:
image: redis
ports:
- '6379:6379'
db:
restart: always
image: postgres:latest
container_name: mlflow_db
expose:
- ${DB_PORT}
environment:
- POSTGRES_DB=${DB_NAME}
- P... | e033c142e9b694a3ad78b576565b55b28c903bc7 | [
"YAML",
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 8 | YAML | damu4/lsml | 761db560802e05a80a8e6b1b0219df0b9440a447 | cc81652d9e0b456e520dfbf9f5bc4b390d5c6685 |
refs/heads/main | <file_sep>/*
프로그램 설명 : 메일 슬롯 Sender
*/
#include <stdio.h>
#include <tchar.h>
#include <Windows.h>
#define SLOT_NAME _T("\\\\.\\mailslot\\mailbox")
int _tmain(int argc, TCHAR* argv[])
{
HANDLE hMailSlot;
TCHAR message[50];
DWORD bytesWritten;
hMailSlot = CreateFile(
SLOT_NAME,
GENERIC_WRITE,
FILE_SHARE_RE... | 48adbf4fe90275db17fca65ac194204c3a8b783b | [
"C++"
] | 9 | C++ | MOMO320/WindowsSystemProgram | fe9f33b5eae4d506785e10a555a305998d015b82 | 28f62ad44b4f32342af83f592deab85363706c65 |
refs/heads/master | <repo_name>KAllan357/telephone<file_sep>/README.md
# Telephone
A simple REST client application that is intentionally missing features. This application is meant to be
worked on in conjunction with an [Answering Machine](https://github.com/KAllan357/answering-machine)
# Instructions
1. Fill in the Dockerfile
2. Fix ... | cabde88b103b4381dc3387778d04f1dbaba76396 | [
"Markdown",
"Ruby",
"Dockerfile"
] | 3 | Markdown | KAllan357/telephone | d6f8183eb27e5b9addd618d0335da3059e162f77 | ffeb4cb3e759d5209d0c7821aa005a5e13e160f7 |
refs/heads/master | <file_sep>use glium::texture::{DepthFormat, DepthTexture2d, MipmapsOption};
use openxr as xr;
use std::ffi::{c_void, CString};
use std::mem;
use std::os::raw::c_int;
use std::ptr;
use std::ptr::null_mut;
use x11::{glx, glx::arb, xlib};
const GL_SRGB8_ALPHA8: u32 = 0x8C43;
type GlXcreateContextAttribsArb = unsafe exter... | 8d176e03c8cc1871444b62ba1d8655976b2451ca | [
"Rust"
] | 2 | Rust | TheHellBox/openxrs | 600843d97b8e8601713c97ca3cd5b24839277fc5 | 9e328ccf0d04815a261ba244a6cfbf816fba6363 |
refs/heads/master | <repo_name>B3noit/RENDU_DEFI_F2-M1<file_sep>/proto/niveau2.c
#include "niveau2.h"
<file_sep>/proto/niveau2.h
#ifndef NIVEAU2_H_INCLUDED
#define NIVEAU2_H_INCLUDED
#define WINDOW_WIDTH 1440
#define WINDOW_LENGTH 810
#include "transition1.h"
#endif // NIVEAU2_H_INCLUDED
<file_sep>/proto/introduction.c
#include "int... | ec23afb0ec9e82c79c2236e40e63aa5b5fb709fb | [
"C"
] | 3 | C | B3noit/RENDU_DEFI_F2-M1 | a7a74bb035ba9337f41730e8b1fddbaaab887bfd | 8be6adb747aab5c45b9ab55a62a59359b880896e |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers\Gestionnaire;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\User;
use App\Models\Alert;
use App\Models\Produit;
use App\Models\Statistique;
use App\Charts\TestChart;
use App\Helpers\Helper;
use App\Models\Client;
use App\Models\Fournisseur;
us... | 9273813abc8646a7b0754c4869af3309b554ec4a | [
"JavaScript",
"PHP"
] | 68 | PHP | LamissAmrouch/ProQuality | bcc3c045f89fc5fe34d895b8ab2365fccd2e78b3 | 398e2cf1dfb87e022a8ec5e430b47a0f6cd09253 |
refs/heads/master | <file_sep>require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
describe "Lexing expressions" do
it "should have the correct tokens for simple addition" do
subject = MathEngine::Lexer.new("1 + 1")
expect(subject.next).to eq(Lexr::Token.number(1))
expect(subject.next).to eq(Lexr... | 59ec12943499dddb94d4c81cda7a8da8e9c76537 | [
"Markdown",
"Ruby"
] | 18 | Ruby | mikebaldry/math_engine | b2f0be3f37beda16ad4c8216f652da49daf812c5 | 704a9de85236dc8d5416bbccb862121aa9e07e67 |
refs/heads/master | <repo_name>NikemoXss/AsScg<file_sep>/app/build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.ys.www.asscg"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.... | 8b57fef91e547e64e0dae0935b94e6b352ed09d5 | [
"Java",
"Gradle"
] | 10 | Gradle | NikemoXss/AsScg | cee33bbafd84a9fffc83d30cbb7f2839d2717358 | bdc80d19d6529d5df555304e21d6152f79242b78 |
refs/heads/master | <file_sep># 更新日志
## 卡寄售 v1.0.3 - Updated on 2016.5.24
* 调整页面架构
* fulu.js页面性能优化。
## 卡寄售 v1.0.2 - Updated on 2016.5.24
* 新增添加订单动画效果(改成葫芦娃)
* 修复部分手机上,打开服务条款时,js报错。关闭debug模式
* 修复部分手机上售卡成功页面只有frame的显示情况。修复主页面先show出来,然后$nextTick openframe页面。
## 卡寄售 v1.0.1 - Updated on 2016.5.23
* 初始版本
* 修复N多提示信息
* ... | 4c4aeb670e2671f4b5e8ac6f6cbc10114accad27 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | AnyGong/FuelCard | 7e8e8bdecbf2dfdb579530f1ebbabd6a53c0aae3 | 41be42d116f159767cad6260d4b5a21353b605ee |
refs/heads/master | <repo_name>kasper084/discriminant-tests<file_sep>/src/main/java/some/discriminant/util/Discriminant.java
package some.discriminant.util;
public class Discriminant {
public static double calculate(double a, double b, double c) {
double dis = Math.pow(b, 2) - (4 * a * c);
return dis;
}
}<file_se... | ffc46526500bf837e7c0e41bd430f2e968dde028 | [
"Java"
] | 2 | Java | kasper084/discriminant-tests | a1829146a1980de248fc07b9af2dc874e296e62e | 7047642a50e451bd6c877043f1cefbf6142b0b68 |
refs/heads/master | <repo_name>manu-msr/java-noob<file_sep>/Tienda/Aplicacion.java
package Proyecto; //Paquete del archivo
import java.util.Scanner;
/**
* PROYECTO FINAL - ICC
* Programa para que maneja una tienda
* @author <NAME> Ciencias UNAM
* @version 1.01 Diciembre 2012
*/
public class Aplicacion{
public static void main... | 0404048e6e73875bebc21a95d9924f94b7824b7b | [
"Java"
] | 24 | Java | manu-msr/java-noob | 9a0ced90796ff72f042e4ce0e069610318c1203d | 7b8dc7c576f6881053f05afb5879e7c168d1d91e |
refs/heads/master | <file_sep>[](http://ci.testling.com/jameskyburz/testling-test)
[](https://api.travis-ci.org/JamesKyburz/testling-test.png)
<file_sep>var test = require('tape');
test('defaul... | e259ef58de523d9c707770bf7811ffe819ed27ac | [
"Markdown",
"JavaScript"
] | 2 | Markdown | JamesKyburz/testling-test | c9dd35e3cfae6319a49935855bb553f6f192ccbc | 717106fc78162f4cd03ad5f33af16c2446c4480f |
refs/heads/master | <repo_name>mjadiaz/BL-SSM<file_sep>/HepAid/submit
#!/bin/bash
#SBATCH --job-name=Scan
#SBATCH --ntasks-per-node=16
#SBATCH --time=4:00:00
source /home/mjad1g20/.bashrc
#module load conda/py3-latest
source activate HepAid
#conda env list
python --version
which python
#python BLSSM.py
#python BLSSM_HEscan_DoublePeak.p... | a3d38fb418350e9d20a775fe85089b16fcd52aa5 | [
"Markdown",
"Python",
"Shell"
] | 15 | Shell | mjadiaz/BL-SSM | 09cd0168dfe26da443525b0a4f6aa84e0491db37 | 1d45295bf3bde1e6896c9aafcfa33bdbc73f99b0 |
refs/heads/master | <file_sep>import React from 'react'
import { withTracker } from 'meteor/react-meteor-data'
import { Store } from '/ui/Store.js'
const Msg = (props) => {
const { msg, type } = props.notification
return <div className={type}>{msg}</div>
}
export const Notification =
withTracker(() => {
return { not... | bae37d8c30e569706405bd5507ca9d7217af5924 | [
"JavaScript"
] | 6 | JavaScript | softwarerero/webblind-exam | 586f0c2613f01fff3e210df0222e0e8272717f25 | 25443318409120510721293a3ba845feff9bc7fa |
refs/heads/master | <file_sep>#!/usr/bin/python
import re, os, sys, glob, fnmatch
#doubleHome = os.path.dirname(os.path.dirname(os.path.dirname(os.environ["ROOTFS"])))
matches = []
for root, dirnames, filenames in os.walk('.'):
for filename in fnmatch.filter(filenames, '*.pri'):
fullName = os.path.join(root, filename)
... | e4d02e117c5021a4848e6fe2f89a7caf3cea80a4 | [
"Python",
"Ruby",
"Dockerfile",
"Shell"
] | 51 | Python | twManu/shell | 1e591a178f1f5cb54c23e9b25de45af68ba2cf56 | 6d8019f5ca0432aec3c116f177434a4edbe69587 |
refs/heads/main | <repo_name>EbarriosCode/BackendDotnet_CleanArchitecture<file_sep>/Countries.Infra.Data/Data/DbInitializer.cs
using Countries.Infra.Data.DataContext;
using Countries.Models.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using ... | 82bc6899f68816e749a2106f368e0e25ca2360a6 | [
"C#"
] | 29 | C# | EbarriosCode/BackendDotnet_CleanArchitecture | 6be021d568c5b147487a8fe377055e319da3585d | 8859414d78387884ff74f2c5c54cea5840fa550e |
refs/heads/master | <repo_name>airdispatch/dispatch-blogs<file_sep>/README.md
# Dispatch Blogs
This repository hosts the site of [blogs.airdispat.ch](blogs.airdispat.ch).
<file_sep>/server.go
package main
import (
"airdispat.ch/errors"
"airdispat.ch/identity"
"airdispat.ch/message"
"airdispat.ch/routing"
"airdispat.ch/server"
"air... | f806d42fa27acd528c1c0c528a8346c69d1f2053 | [
"Markdown",
"Go"
] | 2 | Markdown | airdispatch/dispatch-blogs | aeba1e3db9ccead96b3a10fcc0e778ea8e78b4f2 | b49b80cbef1e7ded1cb87e8a15530bbec0364839 |
refs/heads/master | <file_sep>================================================================================
MICROSOFT 基础类库: V9_BATCH_UP 项目概述
===============================================================================
应用程序向导已为您创建了这个 V9_BATCH_UP 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写应用程序的起点。
本文件概要介绍组成 V9_BATCH_UP 应用程序的每个文件的内容。... | d61b8de580e6b7c9bfb626d1d66a1b6c8291d2fc | [
"Makefile",
"C",
"Text",
"C++"
] | 7 | Text | flyhzgq/V9_BATCH_UP | a8aaf80ef54e227dd039ddc320416fac0c2fc2d1 | 1b1620872e4b432a13fb8349e18857b6c586a87b |
refs/heads/master | <file_sep>__author__ = '<NAME>, <NAME>'
__copyright__ = 'Approved for public release: AFRL DSRC Case Number 88ABW-2016-0260'
__version__ = '0.5'
__maintainer__ = '<NAME>'
__email__ = '<EMAIL>; <EMAIL>'
__date__ = '9/14/15'
import os
import sys
import six
import glob
import shutil
import string
import logging
import da... | 8e1012375203b3107175418661873595f2fd26f6 | [
"Python",
"reStructuredText"
] | 5 | Python | dcossey014/pymatgen | bed24cf3c36e5a7639cad4f6edd435adf72c78ca | 696c250b60ddb3b46e6b2263f38cde805ea3731c |
refs/heads/master | <file_sep># seq2seq-haruka-amami-01
転移学習を用いた天海春香AI
## About
詳しくは[天海春香会話bot開発チャレンジ3 - かわみのメモ帳](http://kawami.hatenablog.jp/entry/2018/06/17/192429)を参照。
[赤間 怜奈, 稲田 和明, 小林 颯介, 佐藤 祥多, 乾 健太郎: 転移学習を用いた対話応答のスタイル制御, 言語処理学会第23回年次大会 発表論文集, pp.338-341, 2017](http://www.anlp.jp/proceedings/annual_meeting/2017/pdf_dir/B3-3.pdf)
... | f57f086b76b1430bf4c938680523933cc10d62d7 | [
"Markdown",
"Python"
] | 4 | Markdown | kawamix/seq2seq-haruka-amami-01 | 32aebf40fcbc641d370dc1370eb1effd7f3846b8 | 956c0727acf2329d6f0367dcdb4652866b057da4 |
refs/heads/master | <repo_name>shiv7477/social<file_sep>/README.md
# social
social training repository
<file_sep>/shiv.java
class One
{
public static void main(string [] args)
{
System.out.println("My name is: Shivanand");
System.out.println("My roll no is: A31");
}
}
<file_sep>/k.java
class Simple{
public static void main(String ... | 89795e1e734d1beb60bc0e1c12bd84a727bab3b7 | [
"Markdown",
"Java"
] | 3 | Markdown | shiv7477/social | 0ffd6a0a1c294a6e5caa57d867b19b210f1faa91 | 5247f8fc05e6e0a50d5fd4150364463c5d02728e |
refs/heads/master | <file_sep>---
id: classic-ha-queues
title: Classic Ha Queues (aka Mirrored Queues)
sidebar_label: Classic Ha Queues
---
TODO<file_sep>---
id: queue-host
title: Queue Host Awareness
---
TODO<file_sep>---
id: classic-vs-replicated
title: Classic vs Replicated Queues
---
TODO<file_sep>---
id: metrics
title: Metrics
--... | 483b9931c55461b0860fa81b0d9b0ee964cd7d39 | [
"Markdown",
"JavaScript",
"Shell"
] | 107 | Markdown | isabella232/testing-docusaurus | 9acf9f26a5b1421552aac55cff4977fc03f9002f | 8fdee37ab6f35f58b2b58bf65ad852a9ac66ab10 |
refs/heads/master | <file_sep>
const task = {
title: 'Buy Milk',
description: 'go to shop and buy a milk'
};
Object.defineProperty(task, 'toString', {
value: function() {
return this.title + ' ' + this.description;
},
writable: false,
configurable: false,
enumerable: false // if omitted or set to false won't be displaye... | 397f9056468468aec3c4794a3c2f71f83fcb1123 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | stepanenko/john-mills-design-patterns | 61131aa4e465f6800b29df4c3f767ef7c0f59635 | e6998281704cd458446c70b7f2bb9e85ab6930f1 |
refs/heads/master | <repo_name>L2-Zhang/Bayesian-Optimization<file_sep>/bo.py
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 18 18:41:19 2020
@author: zhangliangliang
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.special import gamma, kv
from scipy.spatial.distance import cdist
from collections import Orde... | 24a197806e37b7e52efefedd502035fc194a95bc | [
"Markdown",
"Python"
] | 2 | Python | L2-Zhang/Bayesian-Optimization | 7659fcf99c5c34f2c958322a0a8b9c7082959e93 | 07e5b7b10a635c88202f7f0c6bf42676764d5d93 |
refs/heads/development | <file_sep>import Link from "next/link";
import { allArticles } from ".contentlayer/generated";
import { pick } from "@contentlayer/client";
import Article from "components/article";
export default function Home({ articles }) {
return (
<div>
<main className="font-mono max-w-3xl mx-auto pt-10 pb-40">
... | 8fd82db0d77917861e7919efcacb12258ff009d6 | [
"JavaScript"
] | 1 | JavaScript | erikfloresq/erikfloresq.github.io | 8fa0ed5d6343ff36da89fddbb867a46924689bc4 | a84543cfe4bb7f5b52e2fdf34f7a2c80d171763a |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CalcualtorApp.Models;
using Microsoft.AspNetCore.Mvc;
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace CalcualtorApp.Controllers
{... | b3a1893ab0ac3ba12a35b150ef173a6420384f8a | [
"C#"
] | 1 | C# | LucasCarver/CalculatorWebApp | 12ad09b191e80542b95b7f6eb28486411cda0bca | 806bc545ec97648baf4daabae7dda4061195644c |
refs/heads/master | <repo_name>HugoJF/minecraft-autoreplanter<file_sep>/src/main/java/com/denerdtv/AutoReplanterCommand.java
package com.denerdtv;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
... | 1c349b27fba71e40fb591bf93875bb366588b99c | [
"Java"
] | 1 | Java | HugoJF/minecraft-autoreplanter | a9225dd2f9d3d7b17a0630f70cbefdec9f9b9a79 | bdf02bec4f6cd908190aa2d89c724ad18069d1cc |
refs/heads/master | <file_sep>// tslint:disable-next-line:no-var-requires
const path = require('path')
process.env.TS_NODE_PROJECT = path.resolve('test/tsconfig.json')
<file_sep>import {expect, test} from '@oclif/test'
import * as chai from 'chai'
import {describe} from 'mocha'
import * as sinon from 'sinon'
import Snapshot from '../../sr... | 41c94a6fd8a1dfa8b3c28a11ede1d84d452da9b2 | [
"TypeScript"
] | 4 | TypeScript | staffe/percy-agent | 79c38f0a5bac42074cf9a99b9a9eda6055e547e1 | ba1eaa76812d3119105f7e67a36988bf43808923 |
refs/heads/master | <repo_name>ya5e2n/PythonListOverlap<file_sep>/ListOverlap.py
import random
a = []
for x in range(1, random.randint(1, 100)):
a.append(random.randint(1, 100))
b = []
for x in range(1, random.randint(1, 100)):
b.append(random.randint(1, 100))
overlap = []
for x in a:
if x in b:
if x in overlap:
... | f146d9f9032b8ddfcb5677b9083dd504d7868ff9 | [
"Python"
] | 1 | Python | ya5e2n/PythonListOverlap | cfbbb131a0a0bad8f9f2b27275a2a3c13bdb19ff | dd876c9fcda255b87d3a856d61f56668347e9320 |
refs/heads/master | <repo_name>nathanmousa/ruby-enumerables-introduction-to-map-and-reduce-lab-uci-online-web9-pt-093019<file_sep>/lib/my_code.rb
def map_to_negativize(source_array)
source_array.map { |x| x * -1 }
end
def map_to_no_change(source_array)
source_array.map { |x| x * 1 }
end
def map_to_double(source_array)
source_array... | 08d9ad25eab6a728eef4a8399d2977aa13f74a85 | [
"Ruby"
] | 1 | Ruby | nathanmousa/ruby-enumerables-introduction-to-map-and-reduce-lab-uci-online-web9-pt-093019 | f8d93e58dc86eaf42847c9942cec403a9a25698a | 80ee1ac063ab4d5f62c1c1b61723b74f02d1fb54 |
refs/heads/master | <file_sep># For loops
# z = range(1, 5)
# for x in z:
# print(x)
# While Loop
# x = 0
# while x < 5:
# print(x)
# x += 1
x = 0
while True: # Infinite Loop
if x > 4:
break
print(x)
x += 1
<file_sep>name = 'Abid'
age = 25
salary = 15.5 # Earning in Ks
print(name, age, salary)
print(' M... | 60427fce08a3ec2f93739a3c805b2ee16a0c8695 | [
"Python"
] | 10 | Python | kadnan/python-fundamentals | 154dad34328b6e9333096159c4041eabf454ca11 | a70041e31c690e96a613c688be709a0c384783da |
refs/heads/main | <repo_name>tato-gh/phoenix-blue-green<file_sep>/deploy.sh
#!/bin/bash
# e.g.
# deploy.sh service/service-0.1.0+d853862.tar.gz alpha
# - 引数1のファイル(tarボール)をalpha/betaのいずれかにデプロイする
RELEASEFILE=$1
RELEASETARGET=$2
rm -rf ${RELEASETARGET}/*
tar zxf ${RELEASEFILE} -C ${RELEASETARGET}/
docker-compose restart $RELEASETARGET
<f... | e78e8a7bdc0cdbe511c5ade5c2030f3fc15046bd | [
"Markdown",
"Shell"
] | 3 | Shell | tato-gh/phoenix-blue-green | 8f44f43050895c6749b9b252f1009646e74692d6 | cc0e06fa84bed905fbf42438caebf0c94228b63e |
refs/heads/master | <repo_name>gurka/TibiaTools<file_sep>/tibiatools/dat.py
"""Functions to read and parse the Tibia data (Tibia.dat) file.
At the moment only the Tibia 7.1 data file is supported.
"""
from ._utils import readU8, readU16, readU32
def parseDatFile(filename):
"""Opens and parses the given Tibia data file.
Curren... | 8daa967508d69c635c42d72d640b0f10d644b929 | [
"Python"
] | 3 | Python | gurka/TibiaTools | 16677c962a4199ebf8e695214d7a6fea56c91ceb | c894ea25c36beb68c834efdcb55f153f0ce616a6 |
refs/heads/master | <file_sep>from flask import Flask
import subprocess
from flask import jsonify
#from squid_py.ddo.metadata import Metadata
#from squid_py.ocean import Ocean
#from squid_py.config import Config
from smbus import SMBus
# Import basic packages
import io
import logging
import os
import glob
import warnings
warnings.filterw... | 2aeb6687a38735e8bce24767e47eebf30908261c | [
"Markdown",
"Python",
"Shell"
] | 11 | Python | odysseyhack/pines-and-electronics | 82465582fd24bbb249215bdea23ff853fab0b1b4 | bd545bb025b3033523b39c616a6d74b8c96bb3c0 |
refs/heads/master | <repo_name>Qix-/starfuse<file_sep>/starfuse/pak/sbbf03.py
"""Implementation of the StarBound block file v2/3 storage"""
import logging
import struct
from starfuse.fs.mapped_file import MappedFile
log = logging.getLogger(__name__)
class InvalidMagic(Exception):
"""A block file has an invalid magic string"""
... | a685326d70983a6d4e89137fc94f7238cf925ccc | [
"Markdown",
"Python"
] | 11 | Python | Qix-/starfuse | 91602ae6b6553a113a26418bf628f29be867ee78 | 79dfdc7b7b8f12fb7eedb39fe223283b5f3bede0 |
refs/heads/master | <repo_name>CHaram0913/twitch-project-react<file_sep>/models/LogSchema.js
let mongoose = require('mongoose');
let LogSchema = mongoose.Schema({
log_time: {
type: Number,
required: true
},
user_id: {
type: String,
required: true
},
user_name: {
type: String,
... | 14ce7452591a873b2dcba9711580e2ed4f9cf5f7 | [
"JavaScript"
] | 20 | JavaScript | CHaram0913/twitch-project-react | 748f84f61c39cf5bac3ea7cb868cae8ab26ad510 | 3cd74966ca35e927246a12b63d8130535343c286 |
refs/heads/master | <repo_name>Clemsx/Csharp<file_sep>/DOT_cardGames_2017/cardGame/cardGame/Hand.cs
using System.Collections.Generic;
namespace cardGame
{
public class Hand
{
private List<List<Card>> _hands;
private List<bool> _hasPlay;
public Hand()
{
_hands = new List<List<Card>>();
... | be20523e3a8b134db57e105e20f591c5b0f2e580 | [
"C#"
] | 26 | C# | Clemsx/Csharp | 4fd6b69a8fe1c7edfb322698ba9fd2081901f257 | 203279a7e92f4eb6ef20dd44845b6019cf72e757 |
refs/heads/master | <repo_name>revcozmo/racer<file_sep>/js/car.js
var Car = function(game) {
this.game = game;
this.offsetX = 0;
this.offsetY = 0;
this.mileage = 0;
this.z = this.game.cameraDepth * this.game.pseudo3DCamera.y / (this.game.resolution.y / 2);
this.speed = 0;
this.maxSpeed = this.game.road.segmentG... | 33bdb5801654b3aaff8a07238eb55478fdc4e080 | [
"JavaScript"
] | 3 | JavaScript | revcozmo/racer | 0007f49eedc3768d0f92b1057c0d83c7efc7257c | cc673b793a84bf60fddbb433b535ed013227418b |
refs/heads/main | <file_sep>import React from 'react';
import { connect } from 'react-redux';
import publicacionesReducer from '../../reducers/publicacionesReducer';
import publicacionesAction from '../Publicaciones';
const Tabla = (props) => {
const ponerFilas = () => props.publicaciones.map((publicacion) => (
<tr key={publicaci... | cdd158286a4c293f8b14f208416dcddace8e09d5 | [
"JavaScript"
] | 6 | JavaScript | AlbertoZavala/platzi-blog | 033920859931a6e30ffc2bf52cc82b2c43c7d43b | 1ba8d42569e104ef78dfcab40a433e976454fa0e |
refs/heads/master | <repo_name>cdpowell/test-project<file_sep>/mwFileStatusWebsite/__init__.py
from . import validator, constructor, compare
__version__ = '1.0.0'
<file_sep>/setup.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import re
from setuptools import setup, find_packages
if sys.argv[-1] == 'publish':
... | cff808de3bd27bb7ca5c70a826aee6a966e525ce | [
"Markdown",
"Python",
"Shell"
] | 11 | Python | cdpowell/test-project | c32de366dce7144ee0940f0fffb922e5875c6c1e | 5080f5f2e57554cc0d0f40544a6b949b75ac5937 |
refs/heads/master | <file_sep>#-*-coding:utf-8-*-
# Author:<NAME>
class Foo(object):
def __init__(self,name):
self.name=name
obj=Foo('luwei')
v1=getattr(obj,'name')#==obj.name
print(v1)
print(obj.name)
setattr(obj,'name','llll')
if hasattr(obj,'name'):
print('123')
print(getattr(obj,'name'))
# delattr(obj,'name')
# print(... | a2c942a94f70837c034006013e26fd424a4bf5d3 | [
"Markdown",
"Python"
] | 11 | Python | luwei19941010/python_22 | be281b71ff257788bb010df279a93f0083f1e56f | 044a5c2cf49bf78e47b8021def812e701edaf2a1 |
refs/heads/master | <file_sep>var score = 0;
var quiz = {
questions : [
{
questionNumber : "Question 1",
questionText: "Which of the following sorts is stable and inplace?",
choice : [
{
text : "Merge Sort",
isCorrect : false,
... | ee8d9ab922c5796483ea9df1d718b958ac74f8d9 | [
"JavaScript",
"TypeScript"
] | 6 | JavaScript | TulasiJagan49/WP | 8a76de263776e99e9a0bfbb842f81f3cd865c8f6 | eb5cb8a57ea4af46a28fd0798341260cdbd43055 |
refs/heads/master | <file_sep>$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("src/test/java/features/hsbc_01.feature");
formatter.feature({
"line": 2,
"name": "HSBC products and options",
"description": "",
"id": "hsbc-products-and-options",
"keyword": "Feature",
... | 9612933de27e7ca8746f8114e0e9ebf1214b0c00 | [
"JavaScript"
] | 1 | JavaScript | Paco1984/HSBC | 5dede47d0518ea0d1a6053e21a142c44bb0f8ccd | e35f84e35f97bcde08a0d74d6ef1f6e562b70ff3 |
refs/heads/master | <file_sep>#coding: utf-8
from django.db import models
class projeto(models.Model):
projeto = models.CharField(max_length=50, default="Nome do Projeto")
nome = models.CharField(max_length=50, verbose_name='Nome')
data = models.CharField(max_length=255, default='09 de setembro de 2017')
linguagem = models.CharField... | 499719e4c8c6a9b30b1fe02be7c8ff3adc236cfa | [
"Markdown",
"Python"
] | 8 | Python | KelvinyHenrique/communitycode | d048a655937429f947ba1f5e1352f2cea3363dd1 | 86f2e755312fbc2deb121d211e8bedd7c4b3f110 |
refs/heads/master | <file_sep>import requests
import bs4
import re
import openpyxl
def open_url(url):
headers = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"}
res = requests.get(url, headers=headers)
return res
def find_data(res):
data = []... | 7e84fe43a0728e2e10b4ce4e50ad93b0c8a8ac9e | [
"Python"
] | 33 | Python | heartangle/python | 712f9a946797de6e6e712f5bc4ba872fe0e6d572 | 418c203a7384de53ff4bd95e85fc7286937df953 |
refs/heads/master | <repo_name>Varunastra/SpringTest<file_sep>/js/main.js
const projectsData = [
{
title: "Spring boot",
description: `Takes an opinionated view of building Spring applications and gets
you up and running as quickly as possible.`,
imageClass: "boot-logo"
},
{
title: "Spring framework",
descrip... | 52d8b4daf4663bb37a9a51bd617405dea6063041 | [
"JavaScript"
] | 1 | JavaScript | Varunastra/SpringTest | e5332070bbfa2c52605f8e1ba72d213903536d95 | 061f51fe0cb695ead167c47e113ff524ae9a4a50 |
refs/heads/master | <repo_name>Nalox1/iotsystem<file_sep>/webservice/src/main/webapp/dashboardWebsocket.js
var wsRealtime;
var wsHistory;
var pathRealtime = "ws://" + location.hostname + (location.port ? ":" + location.port: "") + "/webservice/websocket/realtime/dashboard";
var pathHistory = "ws://" + location.hostname + (location.port ? ... | 4c8aaf89a0d990e3f8a28bcaeb217888543b4964 | [
"JavaScript",
"C"
] | 2 | JavaScript | Nalox1/iotsystem | b169a7f73b47678a377e6d3b06f586c0acaba5c9 | aabd8ef6215a1651012b973f56a6d3fafe18bdd0 |
refs/heads/master | <file_sep>package com.travelmanagement.repositories;
import org.springframework.data.repository.CrudRepository;
import com.travelmanagement.models.UserLogin;
public interface UserRepository extends CrudRepository<UserLogin,String>{
public UserLogin findByName(String name);
}
<file_sep># travel-history-management... | cf501a43603fda0b0a0f6e404b1a5729bbe27d9d | [
"Markdown",
"Java"
] | 4 | Java | kunalmet16/travel-history-management-system-springboot | 0d5e41459113d54368f0af0faa25c405f81f602a | e76a14d8ad4d611ada58c47749680e5029c1e61a |
refs/heads/master | <file_sep>{
#include <cstdlib>
// #include <iostream>
#include <fstream>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <TH1F.h>
using namespace std;
gROOT->Reset();
gROOT->SetStyle("Plain");
// DEFINING FILE AND TREE VARIABLES
const int NENERGIES= 1;... | 259ef536f373ed71757c3abe77f87b685dffff5d | [
"Markdown",
"C",
"C++"
] | 3 | C | marco-toli/ECAL_Endcap_tapered | 62879ee2c9705d48389d787983cb82c7012d2543 | 0d406fd3bd335c710b4a690ba9660f14c72ca6b2 |
refs/heads/master | <repo_name>EpitechAntoineMasson/Global-game-Jam<file_sep>/GGJ/Assets/Script/GameController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameController : MonoBehaviour
{
public TextMesh restartText;
public Tex... | 9a7a087c06b66a491c569f8dbbd6b473ab0097f5 | [
"C#"
] | 4 | C# | EpitechAntoineMasson/Global-game-Jam | 0011b1f0f88009e603baeb042993e5881f4290f9 | 1b96ab1be49b7a777a93396ded019b27aaf877cc |
refs/heads/main | <repo_name>ako2cjairo1/expense-tracker<file_sep>/src/components/Main/List/List.jsx
import React, { useContext } from 'react'
import { List as MUIList, ListItem, ListItemAvatar, ListItemText, Avatar, ListItemSecondaryAction, IconButton, Slide, Typography } from "@material-ui/core"
import { Delete, MoneyOff } from "@mate... | 43c546f0646bbce1a505a8d2a936ec8e10c8f7c0 | [
"JavaScript"
] | 2 | JavaScript | ako2cjairo1/expense-tracker | 0e947570ec6dc5d727371993f3117e023e255029 | e23cdecd7cc106fdc0816c7f6c2afdb259bb7c31 |
refs/heads/master | <file_sep>#include "Date.h"
#include<iostream>
using namespace std;
void Date::set_day(int day) {
if (day < 1 || day>31)
day = 1;
this->day = day;
}
void Date::set_month(int month) {
if (month < 1 || month>12)
month = 1;
this->month = month;
}
void Date::set_year(int year) {
if (year < 2020|... | d439c1139bf70bc672b069adc33691b4def8aca4 | [
"Markdown",
"C++"
] | 12 | C++ | joannatufkova/Hotel | ae123df0be900053d66a8bcf705a34f573b80395 | 439ddcc4336b1230300f4eaf1e212beb4387a53b |
refs/heads/master | <repo_name>kayacanv/twitter-auto-rt-bot<file_sep>/app.js
const express = require('express');
const app = express();
app.get("/", (req,res)=>{
var Twit = require('twit');
var key = require('./key.json');
let T = new Twit(key)
let our_id=""
let our_username="nocontextnocon2"
function request(url){
return ... | e61fd145918eae9a03dc1d0fbb3f8edfb14771db | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | kayacanv/twitter-auto-rt-bot | f970f97b7dba9d3efa37c0c97e6436d7e07a4213 | 2802d07624c1e1785c60b68ac86fa0430f7e64bc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.