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>import heapq
import math
from helpers import Map, load_map, show_map
def shortest_path(Map,start,goal):
#The buffer that holds the priority Queue results.
buffer = [(0,start)]
# Dict holding the cumulative cost of various nodes.
node_costs = {}
node_costs[start] = 0
# Core route DS th... | 046f485ba2c4a7bafce6b3e79aad626abcffbafa | [
"Python"
] | 2 | Python | gearuprepo/astart | 96247fc8d43ed0ec412a0832208a30d9a19ecdcc | 6f0f3e5fbc608a02b9fc7f5937edb237cbc57210 |
refs/heads/master | <repo_name>InkApplications/android-layout-injector<file_sep>/src/main/kotlin/inkapplications/android/layoutinjector/LayoutNotSpecifiedException.kt
package inkapplications.android.layoutinjector
class LayoutNotSpecifiedException : Exception()
<file_sep>/src/test/kotlin/inkapplications/android/layoutinjector/LayoutInjec... | 69d7a6424977cef6cf7cb27425ef612ca736ef98 | [
"Kotlin",
"Gradle"
] | 7 | Kotlin | InkApplications/android-layout-injector | 64ce3848edaf257ddc38327c8777bf106175be33 | 37e2b5efe637074f9907c268e483928fd6567769 |
refs/heads/master | <repo_name>anfebuba/PROJECT_DELTA<file_sep>/funciones.py
def numerosentre(a,b):
for i in range(a+1,b,1):
print(i)
n1=int(input('escriba el primero de dos números para mostrar los numeros que hay entre uno y otro: '))
n2= int(input('escriba el segundo de dos números para mostrar los numeros que hay entre un... | 2d76885ccd59864d3c4adcbff16924629650d8b1 | [
"Python"
] | 2 | Python | anfebuba/PROJECT_DELTA | 94deeed7bad872004d0793db861762ed1682436f | bca491e813e83905a2f07f8bd9f08ebc6d980246 |
refs/heads/master | <repo_name>rupertwaldron/Sudoku<file_sep>/Sudoku/main.cpp
#include <iostream>
#include <vector>
#include <map>
#include "cell.hpp"
#include "nonet.hpp"
#include "sudoku.hpp"
int solveSudoku(Sudoku &s) {
/** Runs code to solve sudoku and returns the final count
of solved cells**/
s.sudokuReduction();
... | 8aa8f1b61c790a5d149141e49e76346e8bb12cc4 | [
"Markdown",
"C++"
] | 8 | C++ | rupertwaldron/Sudoku | 1bc161ae7a4ba8f7ca3c20230aba2297f5bf722d | 5ce1cc1478ce086be4c3a5485679a497ba584dd1 |
refs/heads/master | <repo_name>asundheim/oblateness<file_sep>/js/main.js
var renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
var camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 1, 500);
camera.position.set(0, 0,... | fb7b97ffc6b2c101031fb8db63b5307f238736a7 | [
"JavaScript"
] | 1 | JavaScript | asundheim/oblateness | aa7f7bd54cb55e2d6c2072a92c74172514bda53b | 1da6d1554238f7a77eb5d6fff86e77936e1290e7 |
refs/heads/master | <file_sep>SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`description` varchar(500) DEFAULT NULL,
`parent` enum('yes','no') NOT NULL DEFAULT 'no',
`placement` int(11) NOT NULL DEFAULT... | 7712045d685b6c7446830141c7189b58169bbd37 | [
"SQL",
"PHP"
] | 9 | SQL | temporizer/Forum | def9f5baf6258a3215eeb688b16a76b7a9509d3b | db9ecc70fd7fc66c7c840c7a449bf73961a56dbd |
refs/heads/master | <repo_name>liubryant/react-with-styles-interface-react-native<file_sep>/src/reactNativeInterface.js
import { StyleSheet } from 'react-native';
export default {
create(styleHash) {
return StyleSheet.create(styleHash);
},
// Styles is an array of properties returned by `create()`, a POJO, or an
// array the... | 9a2aa9ace901211b4ec4ca3dbd7e823d5d0820cd | [
"JavaScript"
] | 1 | JavaScript | liubryant/react-with-styles-interface-react-native | 77afcc7ca643697d17842d4a7d441382b8a9b6a1 | e9f6ced3ab1a28daa80283d4415eba2a28ab6340 |
refs/heads/main | <file_sep>/* eslint-disable no-undef */
/* eslint-disable no-use-before-define */
import thunk, { ThunkAction } from 'redux-thunk';
import {AsyncStorage} from "react-native";
import { configureStore, Action } from '@reduxjs/toolkit';
import { persistStore, persistReducer } from 'redux-persist';
import { useDispatch, us... | 7c3ccee02de9f3c4133863b8f62bc6d61598b2d1 | [
"Swift",
"TypeScript",
"Markdown"
] | 12 | TypeScript | 14bscsskazmi/HackerNews | 1b1d572bc326e1a939593b1f0c15a9fe47a9e25d | d90ee6b5d74c92ec8ea68b38a66f80f41d17f207 |
refs/heads/master | <file_sep># 04-conditionals-example-siyoung74
seq=input("input your seq ")
total=len(seq)
g=seq.count("g")
c=seq.count("c")
percent=(g+c)/total*100
if percent <50:
print ("GC content is less than 50%", "total GC is", percent, "%")
elif percent > 70:
print ("GC content is more than 70%", "total GC is", percent, ... | 007b34f1c2cc0cad020e9f837314c40865293157 | [
"Markdown",
"Python"
] | 2 | Python | biof309/04-conditionals-example-siyoung74 | aa6c274530fd8724b047f7276919e9dbd75a7a1c | 83a8440842154cd3b75e4d655e81df19014c080f |
refs/heads/master | <file_sep>#!/usr/bin/python
'''This module should contain all the functions needed
to plot charts.'''
import matplotlib.pyplot as mplot
import pylab
import sys
import os
def PlotBurnDownChart(bdfile):
'''This function will plot the burndown chart from the burndown file.'''
mplot.figure()
dates = []
remaining... | ac486ac9b77e093f02dbc07a800c2e68639a65cb | [
"Python"
] | 14 | Python | sumod/tarea | 4704313144fa38659cdbcc5ef96a1879901f9907 | 5dde521eadf6bcb4fc2cb1b7ba0c6afc92e41824 |
refs/heads/master | <repo_name>bobqiu/EasyCount<file_sep>/src/main/java/com/tencent/easycount/udfnew/GenericUDFINETATON.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright owner... | 6ac41caa50166da82e0174cee3e5c2b1c1a9c9c6 | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 99 | Java | bobqiu/EasyCount | 5327b4eb5175f1b9ea805dda6e8f981a6ad8b6aa | dcbbd7b7bb24ee8cc0ab29056f83d3aae6903eba |
refs/heads/master | <file_sep>-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
-------------------------------------------------------------------------------... | 762d61fcd7fbee7eaeaea62d15c2f4f52ec90355 | [
"Lua"
] | 12 | Lua | Hellburke/barebones | 0725533e9b68d5acf9709d613b0ff93f4c1db21c | c341276fb38a3480fe518f9036ef09af3455f8d0 |
refs/heads/master | <file_sep>// @flow
import { compareAsc, format, parse } from "date-fns";
import { dateFormat, dateTimeFormat, eventTime, headerDateFormat, naviDateFormat } from "./constants";
export function createDate(date: string, withTime: boolean = true) {
const format = withTime ? dateTimeFormat : dateFormat;
return p... | 7614382612b83aa9b1d388eacaa7813d680756c7 | [
"JavaScript",
"Markdown"
] | 18 | JavaScript | Jimmerz28/fantasy-schedule | afcfd0cae69de842dcf72acffefb1f3a2838bfc8 | 5eb6dd2823e0a86da718f60ac69b4a52ba392c0e |
refs/heads/master | <repo_name>IDS6145-18Spring/assignment-1-practice-designing-models-mrsterkel<file_sep>/code/smvegtable.py
class vegtable:
''' A general vegtable class '''
def __init__(self, n, q):
'''Intializes the vegtable'''
self.name = n
self.quantity = q
def Sell(self):
... | 8647334a8bd7e55ca17937ae2e886b103fb54566 | [
"Markdown",
"Python"
] | 11 | Python | IDS6145-18Spring/assignment-1-practice-designing-models-mrsterkel | ad520ca5fed7e9df7957e0ef019a7a2e8fc194c3 | d90c6d059de80edaea8198b848c3a134f4082c2e |
refs/heads/master | <repo_name>alaminyusuf/express-typescript<file_sep>/schema/schema.ts
const { buildSchema } = require('graphql')
export const schema = buildSchema(`
type Query {
hello: String
}
`)
<file_sep>/index.ts
import { schema } from './schema/schema'
const express = require('express')
const { graphqlHTTP } = require('e... | 895eb9ae8c6e8cf123151d989b55030db70d1039 | [
"TypeScript"
] | 2 | TypeScript | alaminyusuf/express-typescript | e3095fae43cc6fdd0e3d5bc9bd36f20fa05052cf | bff98cf7f2350d95597927e1f8cf9217d67f6374 |
refs/heads/master | <file_sep>const { GraphQLServer } = require('graphql-yoga')
const { Prisma } = require('prisma-binding')
const bcrypt = require('bcryptjs')
const jwt = require('jsonwebtoken')
function getUserId(ctx) {
const Authorization = ctx.request.get('Authorization')
if (Authorization) {
const token = Authorizati... | fe0f8cd6b59cdc24e3b5fc528e67035b2f340526 | [
"JavaScript"
] | 1 | JavaScript | MODX-Club/prismagraphql-demo | 25604510688f986f5d6d545eedcf1123e31f14c1 | 471ac53a60066fe03601515cb437703136510677 |
refs/heads/master | <repo_name>rissuuuu/RFID_Attendance_System<file_sep>/RFID_SMS.ino
#include <SPI.h>
#include <MFRC522.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>
LiquidCrystal_I2C lcd(0x3F,20,4);
#define SS_PIN 10
#define RST_PIN 9
SoftwareSerial mySerial(3, 2);
MFRC522 mfrc522(SS_PIN, RST_PIN); ... | 2b9207cd2e074a4fcb45bdaeda493eeeeca162b8 | [
"C++"
] | 1 | C++ | rissuuuu/RFID_Attendance_System | 0822b9e1947e30a20ae5326ffe81803e4e8bf78e | 7584e2776a28f29f58ac0dd4c61915bee81f8817 |
refs/heads/master | <file_sep># GeckoVC-Co-op
just a test.
<file_sep>#include <iostream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
void generate();
int leagth = 0;
string YesOrNo = "";
char charecters[];
void main()
{
cout << "How long should the password be?" << endl;
cin >> l... | cf05b4fe40d93730627b9b326636bf1d21e08d65 | [
"Markdown",
"C++"
] | 2 | Markdown | CHARMANDER2605/GeckoVC-Co-op | 28f27f6e0207f0da6ab124693f0b73cf82bbb913 | 648db97ac9f6117fe6dce63ebd70e6d57493c08d |
refs/heads/master | <file_sep>/**
* Broadcaster Module
*
* Manages connections and audio streams for the browser declaring itself
* the broadcaster on a given channel. It also manages incoming requests to
* connect as peer speakers and negotiates peer stream connections.
*/
define(
['webrtc/utils', 'webrtc/media', 'webrtc/audiovisualize... | ae03cd69a1c5fdfca3ac86a23e741579a0c1cf54 | [
"JavaScript"
] | 6 | JavaScript | TheDahv/eversound | 63598ef1b974d13cf3cfc31444e023ce197d2246 | 76adc9d03a0eec10f2344e79b0ae7c8d94697b97 |
refs/heads/master | <repo_name>imraghavagr/Gesture-Detection-and-Recognition-using-jJS-React-Tensorflow<file_sep>/src/App.js
//1. Install dependencies - tensorflow.js, handpose model, react-webcam DONE
//2. Import dependencies DONE
//3. Setup webcam and canvas - DONE
//4.Define references to those - DONE
//5.Load Handpose - DONE
//6.Detec... | c5603fc5c42026b500f9bbddfa5096227e37b855 | [
"JavaScript"
] | 1 | JavaScript | imraghavagr/Gesture-Detection-and-Recognition-using-jJS-React-Tensorflow | e181464c55e1f27c07da257776b0d0d35481e00e | f08bbfbfc006f2e93fadb1785e7c88a92f4f0b00 |
refs/heads/master | <repo_name>adrianoxav/sistemaDeInventarioCTI<file_sep>/app/pages/kit/kit.model.ts
import {ITEM} from '../item/item.model';
export class Kit {
id: number;
codigo: string;
nombre: string;
marca: string;
modelo: string;
descripcion: string;
cantidad: number;
items : ITEM[];
observaciones: string;
}
<fil... | 9a08d71ad4c3ba7e3b5e786bc7a14089ef475e17 | [
"Markdown",
"TypeScript"
] | 19 | TypeScript | adrianoxav/sistemaDeInventarioCTI | f24dba6d2b2f7d310817284a4695665eabbde74a | 7830c44fb8d77c59ff9063c8b58632c43636ad1c |
refs/heads/master | <repo_name>jbmunsell/axis<file_sep>/graphics/uikit/components/Screen.lua
--
-- <NAME>
-- 07/26/18
-- Screen.lua
--
-- Screen class module script
--
-- services
local Players = game:GetService('Players')
-- includes
local classutil = require(_G.axisroot.util.classutil)
-- Module
local Screen = classutil.newclass()
-... | e7758031ca34d8e138268aec741b8d52ffc0892d | [
"Markdown",
"Lua"
] | 20 | Lua | jbmunsell/axis | 979fe5fd6e6e181ea193e07c390b5a3e719c82bc | 01c6df9dd82aa2643ba8e9c2940bb98c39116d09 |
refs/heads/master | <repo_name>cca/koha_link_check<file_sep>/readme.md
# Check links in MARC records
Takes a public Koha report and checks each URL (`856$u`) to see if they resolve successfully.
## Setup & Usage
Uses poetry, Python 3, and [httpx](https://www.python-httpx.org/). To get start ensure you have [Homebrew](https://brew.sh), ... | 772dfbe9be526ce24c8b8c960ecc600c73e7c05c | [
"Markdown",
"TOML",
"Python",
"SQL"
] | 5 | Markdown | cca/koha_link_check | e9dafb764088eee3ecc29d64b2ea2806ca47e448 | 63f0e38b2c5ad5039f266a842b962e873986802f |
refs/heads/master | <repo_name>ahjdzx/mqtt-bench<file_sep>/Makefile
default: build
build:
go build -o mqtt-bench.darwin
GOOS=linux GOARCH=amd64 go build -o mqtt-bench.lnx
tar zcvf mqtt-bench.tar.gz mqtt-bench.lnx sub.sh
<file_sep>/sub.sh
#!/usr/bin/env bash
./mqtt-bench.lnx -action s -broker tcp://127.0.0.1:1883 -broker-username pro... | 9e410b8ef129dd88b9426a74f62abbf9713ebb0e | [
"Makefile",
"Shell"
] | 3 | Makefile | ahjdzx/mqtt-bench | d43030a2b4d0bee690db0ce65d5c3087f474c8ad | 36f588836b1068f7e812f89d6b052852248c8cce |
refs/heads/master | <repo_name>satyaroul/nativesales<file_sep>/src/main/java/com/salestracker/dao/DBTest.java
package com.salestracker.dao;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.salestracker.dto.Dealer... | d71db4b87ef95e213eb199093a5a3465e63f4344 | [
"Java"
] | 4 | Java | satyaroul/nativesales | 3899179da0662547fd359e56e291fc57e26af2a9 | 8ee776d7891ba82b868845bbed056bd86feb5c9c |
refs/heads/master | <file_sep>package model;
import general.Araclar;
public class YorumDetay extends Yorum {
private Girdi girdi;
private Kullanici kullanici;
public Girdi getGirdi() {
return girdi;
}
public void setGirdi(Girdi girdi) {
this.girdi = girdi;
}
public Kullanici getKullanici() {
return kullanici;
}
public... | 0f90ae3da939fe64c74e70a6834a3a2da4a5990b | [
"Java"
] | 5 | Java | toramanmurat/BlogSitesi | f9c54d7ca20e8b01aaa02f3df0a609b7d85a2615 | 6ee9b13eb58eee04bbd59bfe0e90d879271355e7 |
refs/heads/master | <file_sep>import React from 'react';
import styles from './Flights.module.css';
const flights = (props) => {
return (
<ul className={styles.list}>
<li className={styles.list_li1}>{props.airline}</li>
<li className={styles.list_li2}>${props.cost.toFixed(2)}</li>
<li cla... | e140b385ff9b4e50df1b7eb88a673a7339c40757 | [
"JavaScript"
] | 3 | JavaScript | NathanaelG1/example-react-work | 9e8eb4e2bafaffffb6854eb31377d2843136ce2e | fd76f2657796c256d37eadd9332f24230aa685eb |
refs/heads/master | <repo_name>aleksimyllyoja/sc<file_sep>/Makefile
.PHONY: clean all
LDFLAGS=
CFLAGS=-Wall -Wextra -Wshadow -Wformat=2 -ansi -O2 -g -Wno-unused-parameter -Wno-comment
all: main clean
main: main.o sculpt.o
sculpt.o: sculpt.c sculpt.h
main.o: main.c
clean:
@rm -rf main.o sculpt.o
<file_sep>/main.c
#include <stdio.h>
... | 0e460a82146803ec46459eb44601c66253e2127b | [
"Markdown",
"C",
"Makefile"
] | 5 | Makefile | aleksimyllyoja/sc | 87879ee2b7e450b1b78cb1ab6bacb6fa9b5e7c04 | 603b3ef05abee516c50dedf218d87d68e686260e |
refs/heads/master | <repo_name>aherrerav9/CypherQueries<file_sep>/DocDownloadQueries.cql
//EXAMPLE QUERY - Uploading Doc Download Audit Report to Neo4j
LOAD CSV WITH HEADERS FROM "file:///PRS_DocDownload_AuditReport.csv" AS row
CREATE (n:Product)
SET n = row,
n.unitPrice = toFloat(row.unitPrice),
n.unitsInStock = toInteger(row.unitsI... | dbf01e9ac145fd4319df35d5198deaf808876591 | [
"SQL"
] | 1 | SQL | aherrerav9/CypherQueries | 9df672863cea63574bcc679fde9196cec765f1a8 | c02262b3955759c6402d48aeeb2a6fd55e195a2f |
refs/heads/master | <repo_name>saisureshdeveloper/ReportApp<file_sep>/Adventui_src/src/app/modules/home/dashboard/charts/pie-chart/pie-chart.component.ts
import { Component, OnInit, ViewChild, ElementRef, Output, EventEmitter, AfterViewInit, OnDestroy } from '@angular/core';
import { Chart } from 'chart.js';
import { PieChart } from '../.... | c892f78770edc768478d876c10538cf33a80673a | [
"JavaScript",
"TypeScript"
] | 59 | TypeScript | saisureshdeveloper/ReportApp | 78ac33c5a2362d53af8c53067a064c4bfb7223b6 | 5b2258ec634c5889ed261926c44b1f294314667b |
refs/heads/master | <repo_name>BMumphrey/TSE<file_sep>/R/read_tse.R
##read first two lines of a formatted TSE file
##returns a data frame containing meta data
read_tse_meta <- function(filename) {
##Read first line into a data frame
col_names1 <- c("Run_Title", "Experiment_Number", "Note_1", "Note_2", "Note_3")
col_classes1 <- rep("... | e3dc56cd78af0e95e7530da169b3513d8efdedc6 | [
"R"
] | 4 | R | BMumphrey/TSE | a70871b9db997132214137529a5abffa3d921f7b | 3bebf032b332232199ce105b9e20a4fc84a99330 |
refs/heads/master | <file_sep>package com.qtone.gy.filter;
import com.alibaba.fastjson.JSON;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.io.*;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.List;
impor... | c1b300ccbce3a911791b7b0eb581ae2429944b5f | [
"Java",
"Maven POM"
] | 13 | Java | qichenghao/gw-analysis | 58312623b71c9f57b8e8db990bf36a1a02f44a5b | 468645911f9188ce83c58fd26c1857f3e9b645dd |
refs/heads/master | <repo_name>annabranco/node-basic<file_sep>/03-bases-node/new-app.js
// const multiplicar = require('./multiplicar/multiplicar')
//
// multiplicar.crearArchivo // usa el nombre del "paquete" (multiplicar)
const { crearArchivo } = require('./multiplicar/multiplicar');
let base = 'oi';
crearArchivo(base)
.then( ar... | 44bdabe7ab140e70fa92d0141ab22457e5ba0970 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | annabranco/node-basic | 65326bfbe24693dde167d51a39a8b2db3b7fde78 | 4ebf30cca3758d3e93dd20c0bad18bd57a7b1b94 |
refs/heads/master | <repo_name>fkandy/easyexcel<file_sep>/src/test/java/read/v07/Read2007Xlsx2.java
package read.v07;
import javamodel.ExcelRowJavaModel;
import org.junit.Test;
import vip.fkandy.excel.ExcelReader;
import vip.fkandy.excel.metadata.Sheet;
import vip.fkandy.excel.read.context.AnalysisContext;
import vip.fkandy.excel.read.ev... | 78d55161d80f88b54be06945b90581f0193637c8 | [
"Java"
] | 2 | Java | fkandy/easyexcel | 2f0faa8ed30bf510f0bf68acc40bd9d74a62ac79 | e2781c96caf47d51e101d0f95badc6cf7024ef5c |
refs/heads/master | <file_sep>
import xlrd
import random
# 读取文件
def readFile(filename):
workbook = xlrd.open_workbook(filename)
sheet_names = workbook.sheet_names()
sheet = workbook.sheet_by_name(sheet_names[0])
return sheet
# 数据格式化为二维数组,并分为训练集和测试集
def getMoiveInfo(sheet1,sheet2):
moive = [i for i in ran... | 024352cffaba389f8de0f21d0b540d7c37b430f3 | [
"Python"
] | 10 | Python | AIZero/2018Teddy_cup_B | ce163d59861024636a67bc5fd50b638757599b23 | e0e7edb884c5723a62a6330ad79a3a681e9ac547 |
refs/heads/master | <file_sep>from django import template
from newsdiary.models import Issue
from datetime import datetime
register = template.Library()
@register.filter
def index(List, i):
return List[int(i)]
@register.filter
def length(QuerySet):
return QuerySet.count()
@register.filter
def days_left(Event):
return (Event... | 9d28b8d5e2416f0f2037c7bc27266a017c201d8f | [
"Markdown",
"Python",
"HTML"
] | 9 | Python | njs03332/soup | aab45edeb99dd0ad3014018d834bf655b71e1b80 | ac39451c447ef3de178884eb3987cffc18e1a3af |
refs/heads/master | <file_sep>(function() {
'use strict';
angular
.module('concertService')
.directive('mapSettings', function() {
return{
restrict: 'AE',
replace: true,
scope: {
title: '@'
},
/* controll... | ff25fd73753f62183f1af0fb3f40662e8c4c2df3 | [
"JavaScript"
] | 2 | JavaScript | Suhovft49/Concert-Application | 1618074387db6cf5614bfcc42e297235724b75dc | 17d59d5e7f74c3e92ba6c342b24016362689a9d6 |
refs/heads/master | <repo_name>margon91/Practica2SRI<file_sep>/public/javascripts/cliente.js
$(document).ready(function(){
var socket=io.connect();
socket.on('connect', function() {
console.log("Cliente conectado con socket");
init();
});
var init = function() {
$("#pideNum").hide();
$("#login").show();
$... | 984250838de0a5e06404966f0c554deb25e85057 | [
"JavaScript"
] | 2 | JavaScript | margon91/Practica2SRI | 6792c8ada7e5aeeda2c5c59f9af91caee1a929af | 2280427c617c2aff9bf79f18cabef4ba1dd77ba1 |
refs/heads/master | <repo_name>alenstar/aeio<file_sep>/lfds/lfds_list_addonly_singlylinked_ordered_cleanup.c
/***** includes *****/
#include "lfds_list_addonly_singlylinked_ordered_internal.h"
/****************************************************************************/
void lfds_list_aso_cleanup( struct lfds_list_aso_state *lasos,
... | b33d4159e9797beb6e707aae4ede06afa4242580 | [
"Markdown",
"C",
"CMake"
] | 30 | C | alenstar/aeio | 2089877017aae3f3f2cad21a763766c44067d239 | d5e9743177e3328cb7df455d2ee5356061ed1c68 |
refs/heads/master | <file_sep>import numpy as np
from partial_independence import compute_logp_H
from partitioner import Partition
def compute_log_posteriors_multisubject(Xs, partitions=None, alpha=None, prior_H=None, verbose=False):
"""Compute log of p(H|Xs) for all the Hs, i.e. the partitions, of
the classes, given the list of ... | f3c3305cfeadc44d7fa36153deb7ec76f6e45c20 | [
"Markdown",
"Python"
] | 3 | Python | emanuele/inference_with_classifiers | 850f1ee7fc31ac095f044fcf668257ca54d0271e | 84c27a9209ca4ee01df38cfaa871cf7a6a95c29d |
refs/heads/master | <repo_name>EizoAssik/pyws<file_sep>/README.md
pyws
====
A WhiteSpace interpreter in Python
<file_sep>/wsbuiltin.py
# encoding=utf-8
"""
All builtin operations defined in WhiteSpace
"""
import operator
import sys
class WSOperation:
NAME = "WS"
SRC = ""
ARGS = 0
def __call__(self, stack, heap, labels,... | 04f422e69559d63fe3752422c601b1081e38c2a1 | [
"Markdown",
"Python",
"Shell"
] | 10 | Markdown | EizoAssik/pyws | 9bc7eaf8c7aa565f848cc4b357226f3a3a99c7b4 | 7559d194e3368fd781d6d015f4b4f7995cd982fb |
refs/heads/main | <file_sep>myList = [5, -7, 10, 4, -23, 45, -9, -2, 32]
newList = []
for numbers in myList:
if numbers > 0:
newList.append(numbers)
print(newList)
<file_sep># python-circlearea
This is python circle area code
<file_sep># -*- coding: utf-8 -*-
"""
Code for Circle Area
"""
cirRadius = f... | ba856bb2596716fecb46c759f337d2462bb1e27d | [
"Markdown",
"Python"
] | 5 | Python | gaurav14rana/python-circlearea | 772473c98481c7fdad15a4f012b16c45bfcffd23 | e636e43b81d1756e42e5b40f36b3f179ec8970fe |
refs/heads/master | <file_sep>__author__ = 'msorescu'
import bliss
from bliss.serializers import PictureSerializer
from rest_framework.views import APIView
from rest_framework import parsers
from rest_framework import renderers
from rest_framework.response import Response
from rest_framework import status
from decorators import error_ha... | db2d0032e8b6373e2871a17adbd584ea55f39e97 | [
"Markdown",
"Python"
] | 11 | Python | msorescu/BlissApi | fb95b2ee1ae4ec5e07abefe8bfeee3787c264a02 | 5f51ba61f21c0860be0fc52491a82a8606039c72 |
refs/heads/master | <file_sep># Buyer Beware
This is just a rough draft because I needed some stuff for my master's thesis. API is not stable!
<file_sep>#include <azhural_geometry_utils/utils.h>
namespace azgeo { namespace utils {
tf2::Vector3 rotateVector(const tf2::Quaternion& quat, const tf2::Vector3 vector){
return undoHomogenizeV... | c63ca880c2454db00d257e7d6aa6a4e0d3139e25 | [
"Markdown",
"CMake",
"C++"
] | 10 | Markdown | azhural/azhural_geometry_utils | b020cc55274de1c4bdef6e438937894fb0d2720c | 07f2ef227cfe9d3d00a6ce9809f3d2159e20bc00 |
refs/heads/master | <repo_name>zhouxinlin3482107/spring-cloud-docker-project<file_sep>/src/main/java/com/example/SpringCloudDockerProjectApplication.java
package com.example;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBo... | cb96700b3593e88bc1da2b8f819e8743bec71112 | [
"Markdown",
"Java",
"Maven POM",
"Dockerfile"
] | 17 | Java | zhouxinlin3482107/spring-cloud-docker-project | bf0818defbf1f1146b73a3582178ffe79ed0b603 | c1a77c2617f808820c073b24c8d00c8f4ffb92dd |
refs/heads/main | <repo_name>leejh3224/yalc-tab-indent<file_sep>/README.md
# Yalc tab indent
Related issue: https://github.com/whitecolor/yalc/pull/141
<file_sep>/src/index.js
const detectIndent = require('detect-indent')
const path = require('path')
const fs = require('fs')
const getJSONSpaces = (jsonStr) => {
let match = jsonStr.m... | 535884c808b41e0e8e94f9ffa255a78f97293a0c | [
"Markdown",
"JavaScript"
] | 3 | Markdown | leejh3224/yalc-tab-indent | 60a8ca764990a1f06f34b6ae18b932ca21a83020 | fd85ced25617c0b9a3a6fb6735dcde03f7f31783 |
refs/heads/master | <file_sep>package com.jdroid.java.http.urlconnection;
import com.jdroid.java.http.HttpResponseWrapper;
import com.jdroid.java.http.HttpService;
import com.jdroid.java.utils.FileUtils;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.util.zip.GZIPInputStream;
publ... | c3836dc92ba78bc04b7d95f81b0225a0af7b308b | [
"Markdown",
"Java"
] | 4 | Java | maxirosson/jdroid-java-http-urlconnection | dfd5a61ed83ef8463b06c7c0fe28ae37d4c451a6 | f36713211c59018d6ce46d63bc98a3a49fa11741 |
refs/heads/master | <repo_name>spirit0609/DBSCAN-2<file_sep>/README.md
# DBSCAN
1. exercise in using numpy, pandas, and recursive logic,
2. less about performance more about understanding the concept
2. handles arbitrarily shaped clusters well (concavity, links, voids, rings etc)
3. currently hyperparameters need to be manually adjust... | b99772c9193fcf1466e41f825d6204fd0f28c95c | [
"Markdown",
"Python"
] | 2 | Markdown | spirit0609/DBSCAN-2 | e0e2c76b872d7dc85d1fbcf6424aeaebedd3a8ae | 339827a3e63d06e79a14cd6829934b2d1e3423b8 |
refs/heads/master | <repo_name>ziek-za/penelope-motivation<file_sep>/constants.rb
SUBJECTS_NEW = %w(
Sizzler
)
SUBJECTS = %w(
Aveshan
Wing
Darryn\ Papathanasiou
Deanen\ Reddy
Denys\ Stroebel
Divashen
Emile\ Alberts
Eduard
Gerhard\ Engelbrecht
Erik\ Botes
Justipops
Kurt
Winglet
Marty
Samuel\ Alfred
).freeze... | 2ba3464c407b49aadb3f715f972c5d874f0ea93d | [
"Markdown",
"Ruby"
] | 3 | Ruby | ziek-za/penelope-motivation | e01100d723be20767a9b87d7ff706bb9cbc2db9a | 03a338851353aa5deb2a50b1154e2ccf2ae08158 |
refs/heads/main | <repo_name>EswarSomaraju/Telugu-Translation-chrome-extension<file_sep>/popup.js
let spinnerElement, meaningElement, descriptionElement, spinner, translate,
teluguWord, teluguSynonym, html, body, descriptionText, translationElement, synonymElement;
const controller = new AbortController();
window.onload = () => ... | 73bc01d87e412ab3958502100636707702ffaa45 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | EswarSomaraju/Telugu-Translation-chrome-extension | b70fbfbc18990f7a20be10c2554847a8c12d3938 | 0670d271e444472e0be6e978ecf2856eeaf079de |
refs/heads/master | <repo_name>robertjliguori/PalindroneFinder<file_sep>/src/main/java/com/gliesian/palindromeproject/NumberChecker.java
package com.gliesian.palindromeproject;
import java.math.BigInteger;
public class NumberChecker {
public static void main(String[] args) {
//
// 1. Basic tests
... | 5fdc39c4647c5ab09b088948cfe31fef1487d2a3 | [
"Markdown",
"Java"
] | 3 | Java | robertjliguori/PalindroneFinder | 796461ebfc49a03da6bd9446b6ccab98d2b15c3d | 9471b56e4e3db344b085c3805dbd4da1cc0a56f9 |
refs/heads/master | <file_sep>using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace Web.TagHelpers
{
[HtmlTargetElement("a", Attributes = "active-when")]
public class ActiveTagHelper : TagHelper
{
[ViewContext]
public Vie... | 6903d828bbadb250fcf07d800147df16e4399583 | [
"Markdown",
"C#"
] | 5 | C# | aramean/dotnetcore-razor-taghelpers | f2e5f49bc9e65113fa91b5ebbae7ea38c23af162 | 32dcab38a8c464621c5b64ed651b63cd602cf5fd |
refs/heads/master | <repo_name>patrick-xie/sticky-notes<file_sep>/README.md
# Sticky-Notes
A single page application that allows users to perform CRUD operations on written notes stored in a PostgreSQL database.
React + Bootstrap frontend and Django backend.
### Preview:

{
std::ios::sync_with_stdio(false);
CustomAllocator::Allocator alloc;
std::vector<std::pair<void*, size_t>> pointers;
for (int i = 0; i < 100000; ++i)
{
if (rand() % 2)
{
auto memory = (rand() % 200) + 1;
std::cout << "Al... | e90d45ec59763d79d9ff1c175bccc2c8d7eb010e | [
"C++"
] | 8 | C++ | mtrqq/allocators | 316048729d6cc74346bfc5bee1dbe7b865b63d9a | 6e09f90e70250b0b8b0a04885f7f08f90707c745 |
refs/heads/master | <repo_name>smile2002/java-demo<file_sep>/shiro/src/main/resources/shiro.ini
[users]
wang=123
zhang=456<file_sep>/jdk/src/main/java/cn/smile/j4/io/ConsoleObj.java
package cn.smile.j4.io;
import java.io.Console;
/**
* Created by Smile on 2018/10/25.
*/
public class ConsoleObj {
public static void main(String arg[... | b5e1769dbff20a7b93446d7c6f36d09ae1f6c894 | [
"Java",
"INI"
] | 35 | INI | smile2002/java-demo | 58bd85cb22722dca0cf254d84a26b734ace3758e | 469767143c8006e056fd5e9376becfb6684b7eb5 |
refs/heads/master | <repo_name>jcru/ci_scripts<file_sep>/jobs/README.md
# Jobs folder
Just a place to store jobs. Don't actually commit anything here. Just useful for debugging.
Run the 'store' command to get the existing jobs:
python jobs.py store
<file_sep>/fail.py
#!/usr/bin/env python
#
# URL=https://raw.githubusercontent.com/r... | 232f7818ddbd021f5829085f4f158f0bddeb42f5 | [
"Markdown",
"Python"
] | 3 | Markdown | jcru/ci_scripts | 6046a111f19666a1159c4761de81d3cffb4a39ea | c483c0b36ffec7dc702428937753a24002708827 |
refs/heads/main | <repo_name>ranafaraj/ReactComponents-GoMyCode<file_sep>/Desktop/React Components Checkpoint/reactcomponents/src/Component/Profile/ProfilePhoto.js
import React from "react";
import Photo from './Ranz.jpg'
const ProfilePicture = () =>
< img className='img' src={Photo} alt='ProfilePhoto' />
export default ProfilePictu... | 04b9a4b4e236fdd63d538035abdc2285438e281d | [
"JavaScript"
] | 3 | JavaScript | ranafaraj/ReactComponents-GoMyCode | eadaad7eb09e3014de7b7eef68a7397aeefd794e | d055baee3110712067f6f35a8e7d545ed35471bb |
refs/heads/master | <repo_name>nadiaAlfak/JalaseyeDavazdahom-searchAndSort<file_sep>/src/LinearSearch.java
import java.util.Random;
import java.util.Scanner;
public class LinearSearch {
private int[] array;
public LinearSearch(){
array=new int[100];
Random random=new Random();
for (int index=0; index<100;... | 77cc27bb56a86b8c9799308764ae2a409dac6f3f | [
"Java"
] | 1 | Java | nadiaAlfak/JalaseyeDavazdahom-searchAndSort | 99ac2b13dff3d2ed85b70a14622431e71bc7431f | 9e538617b1e1b2241b44075b91eff44b91b76be1 |
refs/heads/master | <file_sep>[HwSetting]
EDCComPort=8
Acceptor=8
BarcodeScannerComport=3
PrinterName=BK-T0802(U) 1<file_sep>// JScript File
function chkAllBox(cmb, name_f, name_b)
{
var i = 2;
var itxt = '00' + i;
//alert(name_f + twonum(i) + name_b);
while ( document.getElementById(name_f + (i < 100 ? itxt.substring(itxt... | ad90edeb03ae49f0f49d78ec2135f0029e0d8eb0 | [
"JavaScript",
"INI"
] | 2 | INI | ScoreSolutions/DTAC-SSK | aa50e8c9f1d9e383ff7791382eead7d033078e19 | f481587520b147a22301fc3e4e35b7ab2e908786 |
refs/heads/master | <file_sep>#include <iostream>
#include <string>
#include <fstream>
#include "gitHubUserq2.h"
using namespace std;
//reads all the folders of passed user from file
void ReadgitHubFoldersFromFile(gitHubUser * &Users, int UserCount, ifstream& File) {
//temp variable to read from file
string LOT;
Users[... | 9f82a4168ed99fa9a20ca82ffa93936bc25b5d9b | [
"C++"
] | 2 | C++ | OOP2019lab/lab2-180915hassanAli | e96b194c9dc2f71f85bf1972892f3505c7c14c84 | 7866bc96d74dde21416d200dfb0c3707922d110a |
refs/heads/master | <repo_name>basselsaleh1234/JavaAufgabe9.5<file_sep>/README.md
# JavaAufgabe9.5
Entwerfen Sie eine Klasse Vokabel in JAVA, die Vokabelpaare (Deutsch.Englisch und Deutsch.Spanisch) darstellen und abfragen soll, Die Klasse soll die Vokabeln in zwei Hashmaps speichern
Die Vokabeln sollen im konstruktor der Klasse auss de... | b6716750dd47ca5b13612a1b7caeb5c80a8be0f9 | [
"Markdown",
"Java"
] | 2 | Markdown | basselsaleh1234/JavaAufgabe9.5 | cbe7ddffa62001266de7c2b775d5f811beb55861 | b6cd71fa882eda138538e92a26a5dc8576ed5c16 |
refs/heads/master | <repo_name>AlexanderGridin/skillup--Mastering_NgRx_Effects<file_sep>/src/app/pages/front-page/front-page.component.ts
import { Component, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Post } from 'src/app/interfaces/post';
import { PostsActions } from 'src/app/store/posts/posts.actions';
... | 393f778f7c7447776a69c3f5d9bdc6c161a745c7 | [
"TypeScript"
] | 9 | TypeScript | AlexanderGridin/skillup--Mastering_NgRx_Effects | bd5d4a7bd45543c344800e3b92cabcd3d3cbf142 | d0dd94ced3575434573bc5241ca6913d7ca91474 |
refs/heads/master | <repo_name>anupdg/product-web-api<file_sep>/GalvProducts.Api.Business.Contracts/IProductsBA.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace GalvProducts.Api.Business.Contracts
{
public interface IProductsBA
{
/// <summary>
/// Creat... | 0c03ce7aa63ff2e5838a5ebdce888eb48b5ddc07 | [
"Markdown",
"C#"
] | 29 | C# | anupdg/product-web-api | fa9561e89554934e3e0c4fbf4e97344622db2f4a | 23d0ef2e178091dcd8a551ed5ec96097d14f48c1 |
refs/heads/main | <file_sep># EndlessRunner
My first game on style of Subway Surfers
<file_sep>using UnityEngine;
using UnityEngine.UI;
public class Score : MonoBehaviour{
public Transform player;
public Text score;
public Text highScore;
int number = 0;
public void Start()
{
highScore.text = PlayerPrefs... | 85ee86e756f384f340fda2b5afbdc4fceb91a712 | [
"Markdown",
"C#"
] | 6 | Markdown | Pospa24/EndlessRunner | 0ec8e38e1ea2dc12b6add2b62ae91fa49acc6917 | 6395366dd04a0ec33e02b19f80f6d93d8e4f2f7f |
refs/heads/master | <repo_name>HungryAnt/AntWpfDemos<file_sep>/AntWpfDemos/Demo04/Utils/FileDownloader/HttpDownloadUtility.cs
using System.IO;
using System.Net;
namespace Demo04.Utils
{
internal static class HttpDownloadUtility
{
internal static Stream GetWebFileStream(string fileUrl, long range, out long fileTota... | 2815ea145862a632ceee1ff2746d38c1ffbcb65b | [
"C#"
] | 21 | C# | HungryAnt/AntWpfDemos | 00daa9742754d7bb23c02b4c693ea38cec3a4bef | 3b41dd611ed4900ed23da810c2fe78ea075c6ee6 |
refs/heads/master | <repo_name>jungsoft/react-apple-login<file_sep>/src/typings.d.ts
/**
* Default CSS definition for typescript,
* will be overridden with file-specific definitions by rollup
*/
declare module '*.css' {
const content: { [className: string]: string };
export default content;
}
interface SvgrComponent extends React.... | 0a1d8aa4dd76c9aede592c3de4835c95cb29f59b | [
"TypeScript"
] | 1 | TypeScript | jungsoft/react-apple-login | 1d7936dcf58a9e915e41f2c15882b1a9bcb7dafa | 6772ac3e8f1f8438486ddc70f9b48fc79b71e38c |
refs/heads/master | <file_sep>Mitä olen tehnyt tällä viikolla?
Rakennellut timsorttia, mutta se on vielä aivan vaiheessa.
Miten ohjelma on edistynyt?
Introsortin bugi löytyy ja se toimii melko hyvin.
Mitä opin tällä viikolla / tänään?
Opin kuinka paljon aito timsort sisältääkään optimointia.
Mikä jäi epäselväksi tai tuottanut vai... | 2205e102ff9bd053b978975486373b3156515276 | [
"Markdown",
"Java"
] | 12 | Markdown | lporanta/tiralabra-lajittelualgoritmien_vertailu | 0e10080e8e4105f26617cbbf35a02462f108ccc9 | 99a9885e3cbdc4aa8c6d0949ee403f3050adc549 |
refs/heads/master | <file_sep>package day1;
public class Recursion {
public static void main(String[] args) {
//sayhi(5);
reduceByOne(10);
}
public static void sayhi(int n) {
if(n==0) {
System.out.println("done");
}else {
System.out.println("hi");
n--;
sayhi(n-1) ;
}
}
public static void reduc... | c94c112413eb479fe1cfee4136db0b38fd3b09e0 | [
"Java"
] | 15 | Java | alimuzzaman408/Javapractice | 12d11d6a7d0d147c7746a4ed5345765128263b80 | 20e0e9a79ca5a86ab423c99417fc93041261f54e |
refs/heads/master | <repo_name>jhirley/ng2fundimentals2019<file_sep>/src/app/user/login/login.component.ts
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl, Validators } from "@angular/forms";
import { Router } from "@angular/router";
import { AuthService } from "../auth.service";
@Component({
s... | 0848a77de5dd700cedc356764cb9b89de0893a05 | [
"TypeScript"
] | 11 | TypeScript | jhirley/ng2fundimentals2019 | 9de88e9f1535fa867150b288563cfdbfad26ba18 | 862ba2a780f5702541c1ceebadb320389bf2f6d8 |
refs/heads/master | <file_sep>---
title: "tabMurEDA -- EDA for Tabula Muris single cell expression data"
author: "<NAME>, stvjc at channing.harvard.edu"
date: "`r format(Sys.time(), '%B %d, %Y')`"
vignette: >
%\VignetteEngine{knitr::rmarkdown}
%\VignetteIndexEntry{tabMurEDA -- EDA for Tabula Muris single cell expression data}
%\Vign... | cd3cba51541f73f084d0b78df6f8d90f017f6828 | [
"Markdown",
"R",
"RMarkdown"
] | 3 | RMarkdown | vjcitn/tabMurEDA | 554d571b61f9338fbcd84edab733df5be3595d57 | 2950d8f645baab0993e34c7a0280a743d4061263 |
refs/heads/master | <repo_name>douglasvinter/simple-iot-framework<file_sep>/README.md
# Simple Network Framework
Open Source project for network discovery protocols.
- Why not twisted, Tornado and etc?
* This framework purpose is to be lightweight and use the minimum external dependencies as possible
- Protocols planned for impleme... | 789dbc2f32de9ddcdc2f2d8c952f9c477d091d9d | [
"Markdown",
"Python",
"Text"
] | 6 | Markdown | douglasvinter/simple-iot-framework | 27cb0e3508fc2c55149fcbb85c1280b794bca5e0 | 509f06c41d096de26cdf8228fade7b945c705d4f |
refs/heads/master | <repo_name>xanther-olog/LegalTextSummariser_flask_api<file_sep>/main.py
from flask import Flask, request
import json
app = Flask(__name__)
@app.route("/main/lts", methods=['POST'])
def legalTextSummariserMain():
print("yes!")
jsonResponse=request.data.decode(encoding="utf-8")
parser=json.loads(jsonRespons... | e79dcba6071caa014cb28fc7d6d4a1ef01a85058 | [
"Python"
] | 1 | Python | xanther-olog/LegalTextSummariser_flask_api | f7fca63845c5e8ff191040f987e26fe4099481c7 | 3b867a344106348d271458f20401caadb5a142e9 |
refs/heads/master | <file_sep>
/*---------------------------------pt_chmod.c---------------------------------*/
/*
Compile this only if your system uses the /dev/ptmx /dev/pts/* master,
slave model for ptys, but you don't have /usr/lib/pt_chmod
Compile with -DAIX if you have AIX and/or /dev/ptc.
*/
/*
It needs setuid permiss... | 22065349d20fa62aa4477c15a82720c654c4ceee | [
"C"
] | 2 | C | gitpan/Comm.pl | ce4086df51acdeb87005a3a3921b666bac935631 | a38cf31c466b0657f4f034398cd340ecff41803c |
refs/heads/master | <file_sep>
# Configure Philharmonic Conductor
##
* Clone example notebook configuration
** ```git clone https://github.com/flurdy/conductor-notebook```
* Change origin to your own git server (this will vary by server)
** ```git remote set-url origin git@gitserver/conductor/notebook```
** ```git push -u origin maste... | 28b684d7a000c238e1142a42e2fe54eb24682a0a | [
"Markdown",
"Dockerfile",
"Shell"
] | 8 | Markdown | flurdy/philharmonic | 1247f89816d8258b19358d98e8d6d4e66d0cc41f | ada046d70946f81a18c65a3cfbce839acfb708cf |
refs/heads/master | <repo_name>YShaidur/seleniumui<file_sep>/src/test/java/cryptoTest.java
import driver.Driver;
import org.openqa.selenium.By;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.... | bdfef8c1edc522d1939e93b143b4a40d5482f12e | [
"Java"
] | 1 | Java | YShaidur/seleniumui | 4681a28b1e950284867e43c2cb7c46d1d024598b | f61707627bf86d3567eaf79f34cf2ad8daa2673d |
refs/heads/master | <file_sep>// Add and Remove Function
/*
var product01 = document.getElementById('product_01').onclick = productClick;
var product02 = document.getElementById('product_02').onclick = productClick;
var product03 = document.getElementById('product_03').onclick = productClick;
*/
function productCl... | cbdd8910e3eb21084efb26bdeaf8890552e897b3 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ElecRei/AddToWishlist | 8a39ed57bd3e9d7358ca53fa4b8fc9dbf9897bd1 | 193fc2a71391423806997834b04f25c57bf8551f |
refs/heads/master | <repo_name>byunghun-jake/nomad-airbnb<file_sep>/conversations/models.py
from django.db import models
from django.contrib.auth import get_user_model
from core.models import TimeStampedModel
class Conversation(TimeStampedModel):
""" Conversation Model Definition """
# 대화에 참여하는 사람은 여러명(3명 이상)이 될 수 있다.
part... | 22062a0643565beeb97385b6946a1763904be533 | [
"Markdown",
"Python",
"Text"
] | 20 | Python | byunghun-jake/nomad-airbnb | 6cf1a2e34a7c645cb2f79d8027258d2c60a4892c | 8e4171c1cacb81a0703cc4284f5b2f37d90d1d63 |
refs/heads/master | <repo_name>AGCB/golang-sandbox<file_sep>/snippets/5_forLoops.go
package main
import "fmt"
// feels similar to js bit without paren-wrapping ifCond
func main() {
// classic
i:=1
for i <= 5 { // code in curlys.
fmt.Println("we can iterate through a for loop with i=", i)
i = i+1 // iterate in ... | c1222f3586cb20a9437f7da2b2781fe546415189 | [
"Go"
] | 7 | Go | AGCB/golang-sandbox | a66a0fa9ae9620acb70acbe118a9233706bb10b2 | 15571ed7f575f7e50e07bfc733c50806d088455c |
refs/heads/main | <file_sep>int minTaps(int n, vector<int>& ranges) {
vector<pair<int,int>> cnt;
for(int i=0;i<=n;i++){
cnt.push_back({i-ranges[i],i+ranges[i]});
}
sort(cnt.begin(),cnt.end());
int res=0;
int cur=0;
int l=0;
int index=0;
while(cur<n){
for(int j=index;j<ranges.size() && cnt[j].first<... | dd9b12f9c901fd457051f9bc1f4846f4ae3063b0 | [
"C++"
] | 1 | C++ | shivangisahay14/450Questions-Greedy | 73eff0b3b74d59737d259d6d25e5fb5e6287ab5c | b414b3d761b4489562ae6b3ee8e47db63d339d03 |
refs/heads/master | <repo_name>TheMasteredPanda/Extended-IndexedDB-Learning<file_sep>/src/scripts/handleFormSubmit.js
function onSubmit() {
let productName = document.getElementById()
}<file_sep>/README.md
# Standard Frontend Project Structure.
The standard frontend project structure I use in my projects.
The 'build' directory wh... | 41f0f57cebd5497ec0508e9ac3b304a1d39582a0 | [
"JavaScript",
"Text",
"Markdown"
] | 3 | JavaScript | TheMasteredPanda/Extended-IndexedDB-Learning | 46a698c498d98e7c96dbe3adaa1e2bbcc13f3529 | f9212a41d4c8bc7251be0211878cc4872a9f81c9 |
refs/heads/master | <repo_name>braekstuv/UWP-MVVM-Calculator<file_sep>/Realdolmen.Vdab.CalculatorApp.Domain/Calculator/Calculator.cs
using Realdolmen.Vdab.CalculatorApp.Domain.Calculator.Calculations;
using Realdolmen.Vdab.CalculatorApp.Domain.Calculator.Calculations.Operations;
using Realdolmen.Vdab.CalculatorApp.Domain.Contracts;
using... | 6553c976129a938f9e18bc7d2ec94ff0ea9d3bad | [
"C#"
] | 33 | C# | braekstuv/UWP-MVVM-Calculator | 98477b33e7e90e4c7e625bae6abec028cc3f556d | 385ddb83e58acd8106bf2502f2033f6f6dd084dd |
refs/heads/master | <repo_name>acarerk/Redwood-Dreams<file_sep>/BookBehaviour.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BookBehaviour : MonoBehaviour {
private float RotateSpeed = 1f;
private float Radius = 0.7f;
private Vector2 _centre;
private float _angle;
... | 7d16a4f02454d6e24e2d2aeb91e17a892c803d58 | [
"C#"
] | 8 | C# | acarerk/Redwood-Dreams | 3d2bb9023bb3db5821a30b1ddef9fbdf201de982 | 1dad09787d09c09e5d361e1e29d43c24cb80462f |
refs/heads/master | <repo_name>woyewangle/RefactorDemo-1<file_sep>/src/main/java/rentalstore/Receipt.java
package rentalstore;
import java.util.List;
public class Receipt {
private Customer customer;
private List<Rental> rentals;
public Receipt() { }
public Receipt(Customer customer, List<Rental> rentals) {
thi... | f401c3b928ecc61b68bfdcf2064182ea33ed5c95 | [
"Java"
] | 2 | Java | woyewangle/RefactorDemo-1 | 41ba8939e96dbe8f1aaf72b6687706a854ebdf81 | 09b6c10814738b47887dc939577249f6ecb43dfb |
refs/heads/master | <file_sep>Rails.application.routes.draw do
root to: 'visitors#index'
devise_for :users
resources :users
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
get 'discourse/sso' => 'discourse_sso#sso'
# redirect to root i... | df90685d1ca44ef38b9755ceeebbde215572abb3 | [
"Ruby"
] | 2 | Ruby | albertchan/rails-devise-pundit | afa25585b2b33821f6ebe52b1378569c8652df3c | ca03ba88637da1c04a6edb87bc128859f8f031c9 |
refs/heads/master | <file_sep>#include <iostream>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <locale.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
using namespace std;
void fillArr(int *mas, int length);
void printArr(int * arr, int countEl);
void Simple(int *y);
void LineSearch(int *mas, int *countE... | bf40e26c94631628483338edeb5249818fb209a5 | [
"C++"
] | 1 | C++ | Madico18/Ukazakteli | ef96151a3689089055085521a8971166d3f71e41 | 4d02802889cc8eb9495b7d104bbd7155948a8b75 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sandbox
{
public class InsertCodeHere
{
public void MyCode()
{
// The FIRST line of code should be BELOW this line
int[] intArray = n... | 9382bab562254933cbdffe2e97a73b1ac336f9ca | [
"C#"
] | 2 | C# | pohe/Array2Sandbox | f4f3cad49c6d0e7e67511da44c6e6015b9bdb955 | 5e0d8139ad195d39fa77830825f457cc0aa75e84 |
refs/heads/master | <file_sep>/***********************************************
* Lappiz runtime library
* Authors: Fintic & Lappiz
* License: EULA
* Compiled At: 06/24/2017
***********************************************/
'use strict';
angular.module('backAnd.directives', []);
angular.module('backAnd.filters', []);
angular.module('backA... | 8594833c9ea5e36ebe1bf498f2b9605d14b7afad | [
"JavaScript"
] | 1 | JavaScript | andresfguarinv/LappizRuntime | 75c2cfaaced75af72f51a11beb38fb1fd9b6eebd | 24ccfd91aaf097d83fa9231a65623231f9b82275 |
refs/heads/master | <repo_name>Ridwanna/prog-method-assignment-1<file_sep>/CheckerboardKarel.java
/*
* File: CheckerboardKarel.java
* ----------------------------
* When you finish writing it, the CheckerboardKarel class should draw
* a checkerboard using beepers, as described in Assignment 1. You
* should make sure that your p... | 2957f0b463db17dc3a00798d44c8e3170c32ab04 | [
"Markdown",
"Java"
] | 2 | Java | Ridwanna/prog-method-assignment-1 | 769994332a77d81af99d50e2a1d147e9d8407e12 | cc6918b9219444fbe4ae918331a7ddfd8f8c41d6 |
refs/heads/master | <file_sep>#!/bin/sh
# echo '$0='$0;
# echo '$@='"$@";
# echo '$#='$#;
if [ $# -lt 1 ]; then
echo '$#='$#;
echo '请传递markdown文件作为参数';
exit;
fi
# echo '$1='${1};
mdFile=`basename ${1}`;
# echo "mdFile=${mdFile}";
md2htmlDir='/tmp/md2html/';
if [ -d ${md2htmlDir} ]; then
md2htmlDirExist=1;
# echo "${m... | bdc6951ce360527ec0fd6c5f7ba20ef85624815f | [
"PHP",
"Shell"
] | 4 | Shell | wgx1116/iutil | cc6dba71972d6cb86ac33b265f30e37e616726a6 | 7aa73a344e117495dda275c9f52847ce22f1b95b |
refs/heads/master | <repo_name>chaicopadillag/crud-node-mongo<file_sep>/controllers/uploadsController.js
const path = require('path');
const fs = require('fs');
const cloudinary = require('cloudinary').v2
const uploadFile = require("../helpers/uploadFile");
const User = require("../models/user");
const Product = require("../models/produ... | 6599d8134a76de919dcd1a67907b3c830bc11fd1 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | chaicopadillag/crud-node-mongo | 1295678b3a98b56a54a59b7e9aed1e5ca09e1ddf | f19591d33c2f41987157c7c47afa8979a047bdc9 |
refs/heads/master | <file_sep># AmexCodeChallange
This project is made as part of ame project.
Challange Description:
Use the CVE api located on circl.lu to pull back information on the following CVEs:
CVE-2017-11305
CVE-2017-15103
CVE-2017-11913
CVE-2017-11826
Have the script format the output into a human-readable report. Also, searc... | 10933d63b62dda0cfcbd3ae3bced4694dffe30ff | [
"Markdown",
"Python"
] | 4 | Markdown | abhishek283/AmexCodeChallange | 8f308366e55d0c1c50d9f3a6a9a4c044ff7b822d | 3bddcea8bdc0f005bcbda0dfa49125636a5f54b5 |
refs/heads/master | <file_sep>const chalk = require('chalk');
var fs = require('fs');
const fileName = 'banner.txt';
const log = console.log;
fs.readFile(fileName, 'utf8', (err, data) => {
if (err) throw err;
// console.log(chalk.orange(data));
// log(chalk.blue('Hello') + ' World' + chalk.red('!'));
log(
chalk.b... | 89dbf029823a882496ade2ec280584dc18876ab4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | AngelCalle/banner-node-console | 45cf8faa36cf783dfcd2a992512bc7452d078975 | e6c9b72f0c4315b1f7d6460c57a1af7a6e009652 |
refs/heads/master | <file_sep>#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <conio.h>
#include <cmath>
#include <windows.h>
using namespace std;
//光标定位
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
COORD coord;
//定义地图的长宽,蛇的坐标,长度,方向,食物的位置
int m = 20, n = 25;
struct node
{
int x, y;
}snake[1000];
i... | dbea889828b348577598fc8685c1fb8343b538da | [
"Markdown",
"C++"
] | 2 | C++ | hermanli3001/cpp_projects | e6ea6dd990752b8b687223eaff0720e2af2c73cf | 2028f58a30e1ece58403f10bcbe8a9a6c4e2d80c |
refs/heads/main | <file_sep>var map;
var directionsService;
var markerArr = [];
var directions = [];
var jsonArray = [];
var json = [];
var res = [];
function initMap() {
directionsService = new google.maps.DirectionsService();
map = new google.maps.Map(document.getElementById("map"), {
center: {
lat: 55.78... | 27796360709e1af3d239b28efcf66984dfc75549 | [
"JavaScript",
"Python",
"Text"
] | 4 | JavaScript | DimDimi4-and-fixiki/robot_map | 3145061f1cc7b823f6a7bb51315b7826eec60ce8 | b3f7a54731e4323afcf3c8601427e0b3d584b90e |
refs/heads/master | <file_sep>const fetchTeams = async settings => {
console.log({ settings });
const { rating } = settings || {};
const response = await fetch("https://api.random.game/public/fifa/get-game", {
headers: {
"content-type": "application/json;charset=UTF-8"
},
body: JSON.stringify({
david_vs_golia... | 0bb2784a05004fbc9ab6df63cb855309af0c9388 | [
"JavaScript"
] | 1 | JavaScript | CalciumG/FIFA-Team-Randomer | 650e0505f89407da3552ca4d2b50809e44acea8e | 4e96fbe539f41285ce2c20ac9bc75f4d8686e73c |
refs/heads/master | <file_sep>#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H
#include <QWidget>
#include <QImage>
class ImageWidget : public QWidget {
Q_OBJECT
private:
QImage image_;
QList<QPoint> pts_;
protected:
void paintEvent(QPaintEvent *);
public:
explicit ImageWidget(QWidget *parent = 0);
void setImage(QImage const &image);
... | e7e100660af3504f114a5ae1afa3ae3ebad4b915 | [
"C",
"C++"
] | 6 | C++ | soramimi/QRCodeReader | 82723f5fadf800c072e67b172cc7fb8010e4979d | c75c77a10e4d6225a8e537b2ac123cddfe9a2354 |
refs/heads/master | <file_sep>(i) A 200-300 word explanation of the expected performance of the model in terms of mean
squared error and the key features driving the team’s modeling performance.
- While performing cross validation we found that we had a mean squared error of about 1.7 million and for random forest we had a similar mean s... | 0e99fa3648e1cf82f27272679a2740264308bcda | [
"Markdown",
"Python"
] | 4 | Markdown | oscarchong/itds_fall_2019 | ae990fdbffbd27533fa1ff30847bb07e3876bf78 | 862aaccf53ae914d1a89c0505b0dee2e3f0639e7 |
refs/heads/master | <file_sep>/* Couse: CS371p Objected Oriented Programming
* Lecturer: Prof. <NAME>
* Lecture: 12.01.2014
* Topic: The brittleness and limitations of inheritance in C++.
*/
#include <iostream>
using namespace std;
struct A {
virtual void a() final {
cout << "A::a()" << endl;
}
virtual vo... | 59efd429b1e0994cc836b57a591d535e4569fe47 | [
"C++"
] | 2 | C++ | mattschwartz/cs371p-lecture-examples | f66cb8a790615d33ee7cc3b8847da3f7d0511b0c | 5cb834c030e32ef99598fe8f404cbda0d7ab5201 |
refs/heads/master | <repo_name>kairon007/ShahinPortfolio<file_sep>/app/src/main/java/com/shahinjo/thingy/shahinportfolio/Entities/PortfolioGeneralClass.java
package com.shahinjo.thingy.shahinportfolio.Entities;
import java.io.Serializable;
/**
* Created by shahin on 1/14/17.
*/
public class PortfolioGeneralClass implements Serializab... | f94bfde8633bb099fc7145df4a14e0f68ecaa3aa | [
"Markdown",
"Java",
"Gradle"
] | 27 | Java | kairon007/ShahinPortfolio | db7e6c07776287acd8ccef2457d3e3c63959263d | 0c91f521945f3cf1016232a5003dbfdb521508fa |
refs/heads/master | <file_sep>'use strict';
var totalClicks = 0;
var allProducts = [];
var container = document.getElementById('image_container');
var left = document.getElementById('left');
var center = document.getElementById('center');
var right = document.getElementById('right');
console.log(allProducts);
function Images (filepath,na... | f2251c58ea1e490c9e7204e0a8371dcfa31c01fd | [
"JavaScript"
] | 1 | JavaScript | meklr/bus-mall-1 | 8c1ac285c7b2ebd69338487d619d3fb65e4d3fa6 | 0359b08a977dfe30e694501615f531327081cf6f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.