branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>package danielrajic.objects;
public class Dackel extends Hund {
}
<file_sep>package danielrajic.laufverhalten;
public class KannNichtLaufen implements ILaufVerhalten{
public void laufen() {
System.out.println("Kann doch gar nicht laufen.");
}
}
<file_sep>package danielrajic.object... | 3b3b0f8f8a60012d5ac80511f5cb455f41b36f4d | [
"Java"
] | 6 | Java | n00bst3r/DesignPatterns | bb7810d41ff2989b41778370229c5cc0614ba2d8 | 27ac75ec5623d5f5a111c84ba250779cef6307ce |
refs/heads/master | <file_sep>package com.phong.test4.service;
import com.phong.test4.model.City;
public interface ICityService extends IGeneralService<City>{
}
<file_sep>package com.phong.test4.service;
import com.phong.test4.model.Country;
public interface ICountryService extends IGeneralService<Country> {
}
| 9cad8072b83154df343df175115f06d70adf6dbe | [
"Java"
] | 2 | Java | dangphong91/moduleexam4 | 2084832913dd1d558b2625528a8c2d0cfc18a605 | 1c905043313d1b10d8238f3bd0a86e23ed08e49d |
refs/heads/master | <repo_name>ninjasphere/sphere-cloud-modelstore-service<file_sep>/README.md
# sphere-cloud-modelstore-service
Syncing:
* ```modelstore.calculateSyncItems(user, modelName, nodeManifest)```
* ```modelstore.doSyncItems(user, modelName, pushedItems, requestedObjectIds)```
* ```modelstore.pushItemChange(user, modelName, ... | 027db8b07ceb12bcc2c130502c6d1aae2366f6e5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ninjasphere/sphere-cloud-modelstore-service | 907892944ee24bd5aaef653fa1f430008f91a92b | 760a5a68a487c6c34c6ca93603211800eeb1c74a |
refs/heads/master | <repo_name>haru4shi/game_<file_sep>/Stage1ura.cpp
#include "Stage1ura.h"
#include <cassert>
#include"SphereCollider.h"
using namespace DirectX;
Stage1ura::Stage1ura(ISceneChanger* changer)
:BaseScene(changer)
{
}
Stage1ura::~Stage1ura()
{
//スプライト
safe_delete(leftMesssage);
safe_delete(rigthMessage);
safe_delete... | f3a5713bb6f1d45ccf81e3cb1d2213f0938bdecd | [
"C++"
] | 48 | C++ | haru4shi/game_ | 2104cb7718a09942680a19b06fcead388cf28f85 | 1e3834eb0c30a0647137eeee95f24e6820a9be58 |
refs/heads/master | <file_sep>
class Cell():
def __init__(self, x, y):
self.x = x
self.y = y
def __str__(self):
return "Cell(%i,%i)" % (self.x, self.y)
def set_neighbors(self, neighbors):
self.neighbors = neighbors
<file_sep>from cell import Cell
class Grid:
def __init_... | 6f0c9ff0ca02b44ce6d10500f1786000be1154a7 | [
"Python"
] | 2 | Python | ecahanin/riddler-solutions | fa70e5a8f695faf14622c87b78a6c27a3cdfcdad | c3f2b8209217372b51a98281e3a6c3b4fe3ef6c1 |
refs/heads/master | <file_sep>require 'test_helper'
class MailboxHelperTest < ActionView::TestCase
end
<file_sep>source 'https://rubygems.org'
gem 'rails', '4.1.6'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', gr... | 885b6cdb3e33432e1ae47d19ce6041158109d592 | [
"RDoc",
"Ruby"
] | 3 | Ruby | subhashsaran/rails-gmail-like-messaging-app | 471ba0398daeccf197ba9164b5d05722dd0925c3 | a8c70839e04a54a0f08da45b66ac56b6ae5c085e |
refs/heads/master | <file_sep>using System;
using TestingRandom;
using Xunit;
namespace TestingRandomTests
{
public class DiceRollerTests
{
private DiceRoller _sut;
public DiceRollerTests()
{
_sut = new DiceRoller(new Randomizer());
}
[Theory]
[InlineData("fd6"... | d8c68433369bb6635c44930e3c6c98f809d32e10 | [
"Markdown",
"C#"
] | 5 | C# | jdphenix/testpractice-1 | c941d31a9b2048ab3a76a4e78274fd8aa96f8085 | db8f3071563d75a295ff2b93201f119b0fa3475c |
refs/heads/master | <file_sep>package com.example.rpereira.recyclerview.utils;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.example.rpereira.recyclerview.R;
public class CustomViewHolder extends RecyclerView.ViewHolder {
... | bd0c5aada5e613ecc5a3e006a9ee222f494b0038 | [
"Java"
] | 1 | Java | RogerPhilippe/RecyclerView | e043d6f6f66f37c2da3d8769fcec2c9b57bebd8e | a5ccb74f30fadba31c65050752a6516097ba69a8 |
refs/heads/master | <repo_name>dmb-220/Projektas_X<file_sep>/storage/framework/views/c5955c00d2e9fe00e549215288efe96bbbc2fb85.php
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
<div class="content ">
<div class="content">
<div class="row">
<div class="col-md-12">
<div class="inp... | 79a149e0c1dffad05ea6de5b8317618faf4c041a | [
"JavaScript",
"PHP"
] | 3 | PHP | dmb-220/Projektas_X | 18867912a9501331306463946940e9d595721882 | e9e92b32197c3c07059df53916db9c4d63eb0c6e |
refs/heads/master | <file_sep>'use strict';
/**
* @param {Egg.Application} app - egg application
*/
module.exports = app => {
const { router, controller } = app;
router.get('/', controller.home.index);
router.get('/user/login', 'home.login');
router.get('/getUrl', 'home.getUrl');
router.get('/dianping/getAlbum', controller.di... | 1d6b7c24966fd687abc1ebf4c9eead499e68b3f9 | [
"JavaScript"
] | 2 | JavaScript | lson-lee/node-server | 62e6f7a5e5428302a40eb33ccca222d944c35c4a | bc1509883a7f48a46e3baa18bc62459fb299d055 |
refs/heads/master | <repo_name>cstamper6/cToolbox<file_sep>/src/ordNumLister.c
/* C program to list ordinal numbers of given prompt */
#include <stdio.h>
void main() {
int x;
char * ord[20] = {"1st", "2nd", "3rd", "4th", "5th", "6th",
"7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th",
"15th", "16th", "17th", "18th", "19th... | 02b4cc5a4f8c263ea9a5734e17b1f96ed5505bcb | [
"Markdown",
"C"
] | 14 | C | cstamper6/cToolbox | 700b7f8850df52431ba2bcefa5d8d959d5fba112 | 41c85a8a11143bbf17e835ec5419f5f3580c0be2 |
refs/heads/master | <file_sep># BuildManagement
A simple module to help auto increment build number in webpack projects.
<file_sep>const fs = require('fs-extra');
const _ = require("lodash");
const moment = require('moment');
function incrementVersion(packageFileName, writeVersionToFile = true) {
let packageFile = fs.readFileS... | 7774b09bc7470b073450d2efa23520d846f46a3b | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Mystify76/BuildManagement | 21392aa52ba61a77c453f1353c450d387af059b6 | 3034997338e5ec821e6509537ade98d95a85da48 |
refs/heads/master | <file_sep>platform :ios, '8.0'
target 'QingYue'do
pod 'AFNetworking','~> 3.0.0’
pod 'SDWebImage’, ‘~> 3.7.3’
pod 'MJRefresh', '~> 2.4.12'
pod 'Masonry', '~> 0.6.3'
pod 'FMDB', '~> 2.5'
pod 'JSONKit', '~> 1.5pre'
pod 'MBProgressHUD', '~> 0.9.2'
pod 'IQKeyboardManager', '~> 4.0.9'
pod ‘SVProgressHUD’, ‘~> 2.1.2’
end
<fi... | 1e625c660d79ca698c45383a8d791cc980166a4c | [
"C",
"Ruby"
] | 3 | Ruby | chengxuzheng/QingYue | a62b770a7c2358d6f0e65b036621cba6e8f4cb7b | e7303f4fbe860066b503a51fb04dd1d7c043b0af |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import { Platform, LoadingController } from 'ionic-angular';
import { HomePage } from '../pages/home/home';
import { IntroPage } from '../pages/intro/intro';
import { Storage } from '@ionic/storage';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
... | d2ecce3a33f0142e542b19cf8362253bd45851b7 | [
"TypeScript"
] | 2 | TypeScript | somi92/pig | 7dbd1fb807f8725a0b2284bcced26462f4a2a1fc | b4031459a815d5ba1dbc73cb14e31a5177c27f66 |
refs/heads/master | <repo_name>SteBurz/python-selenium-web-scraper<file_sep>/README.md
# python-selenium-web-scraper
This repo is an example how a web scraper with python an selenium could look like.
The program is:
- get a title of a website
- get a text of a HTML Element
- perform a click event
- input text into a field and
- how to i... | fcb6ffa81ac1e6c21c30fcb2130378a3b7acfa14 | [
"Markdown",
"Python"
] | 2 | Markdown | SteBurz/python-selenium-web-scraper | c994b36ad9099568a8eee872122049fcd4b888aa | 8262eeef52dcb72d5a7074d7167eb262f74197c6 |
refs/heads/main | <file_sep># KotlinCalculator
Familiarizing myself with the basics of Kotlin by implementing a calculator
<file_sep>package academy.learnprogramming.calculator
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.EditText
im... | 1b26250b7c6557407005b682be485ff177bb272d | [
"Markdown",
"Kotlin"
] | 2 | Markdown | casychow/KotlinCalculator | 3ae588fc9effbea8a6a8bab995bbddebc785a384 | b3b13920ac5dd8bc9521e12db629ddc396c1c45d |
refs/heads/master | <repo_name>sushantsenger7351/spychat<file_sep>/spy_details.py
spy_name='Mr.Sushant'
spy_age=21
spy_rating=5.7<file_sep>/main.py
from spy_details import spy #importing spy dictionary from spy_details file
from steganography.steganography import Steganography#importing Steganography module from steganography class of ste... | 0d0eeb449b997b4edc084e2ebbdba039f7f8e06b | [
"Python"
] | 2 | Python | sushantsenger7351/spychat | b50276a59ed469360d14db7d59c3e037418754f5 | 8c8faf939e2004b89b1eda66d2e663ac93a29bed |
refs/heads/master | <repo_name>vincezipparro/GoalPostApp-<file_sep>/GoalPostApp/GoalPostApp/Controller/GoalsVC.swift
//
// GoalsVC.swift
// GoalPostApp
//
// Created by <NAME> on 12/21/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class GoalsVC: UIViewController {
@IBOutlet weak var tableView: UITableView... | b51e807e26facc3cbea17a10bfb017476cef0078 | [
"Swift"
] | 1 | Swift | vincezipparro/GoalPostApp- | c599c0010c7de24366f9dcf09dbe4629fd1397a9 | 96156c63989427bcd015d78389078183afa4d0bd |
refs/heads/master | <repo_name>purocean/php-api-service<file_sep>/captcha/index.php
<?php
/**
* 若快验证码人工打码接口
* post data=bas64.
*/
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.ruokuai.com/create.json');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIM... | 9abd8df2c09b058e195dbddf13315553f5b32e95 | [
"PHP"
] | 2 | PHP | purocean/php-api-service | 16c1a4f26e3dd241ce1aece18d89b6607a7ea5eb | d8a6f848146c17a603ac81007e3b4b7bd3bee4b4 |
refs/heads/master | <file_sep>/**
*
*/
/**
* @author mitul
*
*/
package com.techartworks.userfederation;<file_sep>package com.techartworks.userfederation.storage;
import org.jboss.logging.Logger;
import org.keycloak.component.ComponentModel;
import org.keycloak.models.*;
import org.keycloak.storage.StorageId;
import javax.ejb.*;
i... | 639123a7b8e41a473d92556bfdb1a40c9cb70f03 | [
"Java"
] | 6 | Java | bhatnagarm/keycloak-custom-user-federation | 075ceeb81859e6e704435fd211d15697dc7b13de | 57fe5dd461dcfe80a31980eb218a60a57b806c6d |
refs/heads/master | <repo_name>amp5/Hackbright_Day_6_Project_2<file_sep>/wordcount.py
# put your code here.
open_text = open('test.txt')
def word_count():
unique_count = {} # initializing empty dictionary to keep track of each unique occurence of a word
all_words = [] # initializing empty list of all of the words
# unwanted_... | fa68d5616a3fa639be0c8a4ea4e3c15ee1b48456 | [
"Python"
] | 1 | Python | amp5/Hackbright_Day_6_Project_2 | eaac7a52255fac0938b691adcdc18d87a6a587ac | 10e10b0fdf4a7dc1eed0a8ebb2a5b294a86f438b |
refs/heads/master | <repo_name>chensiyou123/security<file_sep>/README.md
# security
权限认证学习
<file_sep>/spring-security-oauth2/spring-security-oauth2-server/src/main/java/com/csy/oauth2/service/TbUserService.java
package com.csy.oauth2.service;
import com.csy.oauth2.domain.TbUser;
public interface TbUserService {
default TbUser getByU... | 24aca3a960b2be1da7a7d4c16ff8e9ee8cbfaeef | [
"Markdown",
"Java"
] | 4 | Markdown | chensiyou123/security | 75f0c1cdc34c05157b49b70a5255ee7be2de4d58 | 618df61591878a227540098c8c0ae80de7f2e5ce |
refs/heads/main | <file_sep>let days = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
];
let celTemp = null;
let city = "Los Angeles";
let apiKey = "50ea266795ff34ae2a3920026adbb08c";
let apiUrl = `https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}&units=metric`;
axio... | 41932c96d5fc978250edde7b4f43c0111cfe8226 | [
"JavaScript"
] | 1 | JavaScript | laurenybarra/weatherApp | d14f04ffc3b5245f13582ef71baa93651b4bea54 | 6374c014b17bf33a2208b66285c596324a9a7a13 |
refs/heads/master | <file_sep>import asyncio
import discord
import random
TOKEN = '<KEY>'
client = discord.Client()
insults = ["you stupid cunt", "fucking faggot", "dumb fucking retard", "neck yourself cunt", "grow a brain shithead", "jump off a cliff nibba"]
@client.event
async def on_message(message):
if message.author == client.... | 2cd422bc00f75c499a4f0a8a6681681c1b1add04 | [
"Python"
] | 1 | Python | theinventor13/ethylbot | 913b598585dacb5846962f68ef3b398411c7a6de | 609d2737a2d9da6613acc4b12b48eb53bd345164 |
refs/heads/master | <file_sep>---
layout: case
caseId: 3e29cd10-3c3f-468e-98a0-0e2359aced9c
title: How to approach the 'unremarkable' CXR in the FRCR 2B Viva
speciality: [Chest]
difficulty: Medium
videoId: 327454857
videoUrl: https://vimeo.com/327454857
videoThumbnailLarge: https://i.vimeocdn.com/video/771727358_640.jpg
videoThum... | 618e98e5b8bffb35952de7011cd3c38f69e21e40 | [
"Markdown",
"JavaScript"
] | 68 | Markdown | radiologymasters/radiology-masters | a73c5461d6e00fa124125963a2e928af0eb3bdc5 | 1feba1aa02d536e21132437cd83e65bf1f6dae96 |
refs/heads/master | <file_sep>include ':app', ':flexyStepIndicator'
<file_sep>package com.akexorcist.library.flexystepindicator;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import ... | 1c508f80537aa80372351dc363807e4ce7876eb6 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Gradle | akexorcist/FlexyStepIndicator | ca6fb137228b97f880b8627b321a14a02a844bd0 | 7098d4566e8d423d1ee16cb0cd3aa5fcd1e38aae |
refs/heads/master | <file_sep>package routers
import (
"github.com/gin-gonic/gin"
v1 "yhdm/api/v1"
)
func Routers() *gin.Engine{
r :=gin.Default()
// 添加路由
r.GET("/home",v1.Testget)
return r
}
<file_sep>package global
import "github.com/sirupsen/logrus"
var (
LOG *logrus.Logger
)
<file_sep>package log
import (
"fmt"
"git... | aa28b96caafc7c3c7e856d9eb78e6228953be0e1 | [
"Go"
] | 5 | Go | kasoushu/yhdm | 6f2b3a12107631cd5f7f5dd276c3ee069b168dfe | 5f4dcce737f21ff16cb561b028f931108e768d00 |
refs/heads/master | <repo_name>Eforen/HTML5-Sudoku<file_sep>/Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
browserify: {
all: {
files: {'public/javascripts/bundle.js': ['src/js/app.js']}
}
},
watch: {
main: {
options: {
... | bded27bbd54f950929376a10265e40fe530792c0 | [
"JavaScript",
"HTML",
"Markdown"
] | 18 | JavaScript | Eforen/HTML5-Sudoku | 859396445fe0ede197cb1d309480e61978f366fb | 457f8bac45ce2d9aaf5518a82fedb25e4c62b004 |
refs/heads/master | <repo_name>nathan25maloney/FriendFinder<file_sep>/server.js
var express = require("express");
var bodyParser = require("body-parser");
var path = require("path");
var fs = require("fs");
var app = express();
var PORT = process.env.PORT || 3000;
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended:... | 3026cf9156497648e3fa6278c573347a58148afb | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | nathan25maloney/FriendFinder | 4925b8378ee70ea2f36a2839c136f211d152d5f6 | da139a735eabe258075a34a378ee4244c180fb14 |
refs/heads/master | <repo_name>jxncyym/SARPN<file_sep>/options/testopt.py
import argparse
def _get_test_opt():
parser = argparse.ArgumentParser(description = 'Evaluate performance of SARPN on NYU-D v2 test set')
parser.add_argument('--backbone', default='SENet154', help='select a network as backbone')
parser.add_argument('--t... | 0773e65d461e5cfae5a20800f3e69a712f41574e | [
"Markdown",
"Python"
] | 7 | Python | jxncyym/SARPN | 95c40892d2ffec6ac12c87de044aabfc0b155a79 | 2934694b9aec67fd3e45079d950c0d0023ebfa08 |
refs/heads/master | <repo_name>arayoshipta/TwoDGaussainProblemExample<file_sep>/README.md
# TwoDGaussainProblemExample
2 dimensional Gaussian Fitting Example by Apache Commons Math3 (API 3.4)
These are the example codes for 2 dimensional Gaussian fitting Problem optimization by Levenberg-Marquardt method by Apache Commons Math (API 3.4).... | 6059509a67c5d23fb77a75ae50c7fc02587db1c8 | [
"Markdown",
"Java"
] | 2 | Markdown | arayoshipta/TwoDGaussainProblemExample | 4de0949648b90ec234d66d55973b228ce2689bdb | d0816494154cc0c8923c31c9eb49db4b5f5ae4dc |
refs/heads/main | <file_sep>const commonjs = require('rollup-plugin-commonjs');
module.exports = {
// Input is created by webpack in previous build step, in CommonJS format.
input: 'dist/context.js',
output: {
file: 'dist/context.esm.js',
format: 'esm'
},
plugins: [
commonjs({
// explicitly list exports othe... | 61ed04274cfe4035d7217f80c9ce43d3b99052ac | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | digitalbazaar/did-context | a79b64acdbf81fb4f8545e3627576b94e5b8a27e | 97e8b78bff2928699d39a2801a5bd333ae1a8412 |
refs/heads/master | <file_sep>speakers_array = ["Edsger","Ada","Charles","Alan","Grace","Linus","Matz"]
rooms_array = ["1", "2", "3", "4", "5", "6", "7"]
def HelloMyNameIs (speakers_array)
counter = 0
speakers_array.length.times do
puts "Hello, My name is #{speakers_array[counter]}"
end
HelloMyNameIs(speakers_array)
#def badge_m... | 06258d3959186d002bdd2c11b2602734d04ad614 | [
"Ruby"
] | 1 | Ruby | Hokeepokie/badges-and-schedules-manhattan-fasttrack-111018 | 817b20daff14ad72173602d97a59d297cd33833a | bb726ec57c7dac58195768fa711f82642b37c22a |
refs/heads/master | <file_sep>package com.atguigu.git.test;
public class Client
{
public static void main(String[] args)
{
System.out.println("hello 0407");
System.out.println("hello 0407 2");
System.out.println("hello 0407 3");
System.out.println("hello p2");
System.out.println("回复 Github服务器");
System.out.printl... | a664ff10cc29a744ff66ea2cd1c50d0bf0a18ee9 | [
"Java"
] | 1 | Java | lufeilong/crm0407 | 0d13e86a76f2c3ce4d93512dbc2a20d5b316224e | 2d23242ea2ea54f71890010d6fa3b23aa1baf45d |
refs/heads/master | <repo_name>shunf4/Shadowray<file_sep>/shadowray/subscribe/parser.py
import requests
import json
from shadowray.common.B64 import decode
from shadowray.config.v2ray import SUBSCRIBE_FILE
from shadowray.core.configuration import Configuration
import urllib.parse
import itertools
import base64
def base64_decode(x):
#... | 74230d3b419fd9cc81f4a3d92991fcab8387dd9e | [
"Python"
] | 1 | Python | shunf4/Shadowray | 3ec2e69a9b079e051983f7d84252ba787ce933a2 | e6045c9515ecb0deb86b49a14acda12c8d4d3c7d |
refs/heads/master | <repo_name>secondLieutenantCoder/DouDouChong<file_sep>/Podfile
platform:ios,'8.0'
target 'DouDouChong' do
pod 'AMap3DMap'
pod 'AMapSearch'
pod 'AMapLocation'
pod 'mob_smssdk'
pod 'WechatOpenSDK'
end
| 795c7d44527a2465ada6ac851e68e73038f43062 | [
"Ruby"
] | 1 | Ruby | secondLieutenantCoder/DouDouChong | 6da9e02dd4538a44722e2eda87208e545529b934 | f2c9915a246ad51c710e68684474d025161c98a0 |
refs/heads/master | <repo_name>jsuarezm94/PG4<file_sep>/client/client.c
// Computer Networks - CSE 30264
// Programming Assignment 4
// October 31, 2016
// Authors: <NAME> & <NAME>
// NETIDs: jdiazort & jsuarezm
// Client
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <math.h>
#i... | 884933925859edbd16a2c5810d6f8b8789d85fff | [
"Markdown",
"C",
"Makefile"
] | 4 | C | jsuarezm94/PG4 | 3681a18c12b3fe3be1e086e2460773274081d955 | daf5c491efc1eb6dabdb54604109f251d84f5dff |
refs/heads/master | <repo_name>hktwarzone/LintCode<file_sep>/399.cpp
/*
Nuts & Bolts Problem
Given a set of n nuts of different sizes and n bolts of different sizes.
There is a one-one mapping between nuts and bolts. Comparison of a nut to another nut or a bolt to another bolt is not allowed.
It means nut can only be compared with bolt... | 927bf92fcec1221f79017e212209b813ed241501 | [
"C++"
] | 13 | C++ | hktwarzone/LintCode | 7c2bab9706e693a14bf520a465b8b1c42f0c4127 | 3418eff54eb0ec1fb8456ba027d38df11e3c07e2 |
refs/heads/master | <repo_name>rjw57/ground-plane-estimate<file_sep>/app/app.js
(function() {
// Entry point to application. Called after all functions and variables below
// have been initialised.
function main() {
//var imgUrl = 'lensfield.png';
var imgUrl = 'trumpington.png';
Split(['#floor-pane', '#image-pane'], {
... | 9aea15d52db0da06c276f7e0d69f07771f5174c3 | [
"JavaScript"
] | 1 | JavaScript | rjw57/ground-plane-estimate | 25d97f36ecbc240b31cc1ded76e0953ac874f77a | 7bd0ac647cb28f71aba249a77511c513f8f6f1ab |
refs/heads/master | <file_sep>using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
using CMSSolutions.Data;
using CMSSolutions.Data.Entity;
namespace CMSSolutions.Websites.Entities
{
public enum SearchField
{
Id, SiteId, CategoryIds, CategoryNam... | d7fb2afb2bc16ffbad6f1b2f102b1bc709eb48d3 | [
"Markdown",
"C#",
"JavaScript"
] | 171 | C# | hungvv6574/CMS_WatchMovieSite | ea0a632ec13041555d732150a0a0372793328bbe | 5b99375b1c27d7466d1d69f08203b7ba670e49ad |
refs/heads/master | <file_sep>#include "Shape.h"
class Circle : public Shape
{
public:
Circle(const double & = 1);
void setRadius(const double &);
double getRadius()const;
virtual double Area()const override;
private:
double mRadius;
};
<file_sep>#include <iostream>
#include <iomanip>
#include "Complex.h"
using namespace std... | 2dc35e76c78bf51901f91006ec6235e0d27f6038 | [
"C++"
] | 22 | C++ | davidenglishmusic/comp2618_labs | 46ee1500affa0352549a9dc3d31c76b7432a10af | f32b45bd9af5ecc03ac9b43622a6fd75604db30f |
refs/heads/master | <repo_name>466262360/MyKotlin<file_sep>/lib/framework/src/main/java/com/test/framework/ui/base/BaseApplication.kt
package com.test.framework.ui.base
import android.app.Application
/**
* Created by Administrator on 2021/5/27.
* Des:
*/
open class BaseApplication :Application(){
}<file_sep>/lib/framework/src/main/j... | c5a84ca0dc39b3591b359d58bfa6d93954516795 | [
"Kotlin",
"Gradle"
] | 12 | Kotlin | 466262360/MyKotlin | 860a81e534933232ac229ba1f5191b8de112cf34 | bc4841897d0cc4d247dec750284870300df1a41a |
refs/heads/master | <repo_name>processosunicredscpr/integrascpr<file_sep>/integravalidation.js
$(document).ready(function() {
verificarCamposDoTipoFile();
});
function verificarCamposDoTipoFile() {
for (let index = 0; index < $('#form-integra').find('div[xtype="FILE"]').length; index++) {
$($($('#form-integra').find('div[... | ff4224fe3c751b24f4d940f48786af94c22998f7 | [
"JavaScript"
] | 2 | JavaScript | processosunicredscpr/integrascpr | f1a0a7bda7566a272a0079450e1b74a18601d65a | d96a0012ef9a6b7bccdc189bf8e96e9d80fef5f6 |
refs/heads/master | <file_sep>import bpy
import bmesh
import copy
import mathutils
import random
import time
from datetime import datetime
from mathutils import Euler
from math import sqrt
### 3D Context creation. ###
def view3d_find( return_area = False ):
# returns first 3d view, normally we get from context
for area in bp... | 9b3ddc1128b1ceec71d7e6289b099f46af637136 | [
"Markdown",
"Python"
] | 8 | Python | JacquesDiringer/Procedural_hardsurface | d7899a46fda92d592c70d25fcbeefd252a92a7cd | 01acc4f4c9c1e4c970b3a51e840edd12c5c823bb |
refs/heads/master | <repo_name>stephenjust/arduino-gps-glasses<file_sep>/server/readgraph.py
"""
python3 readgraph.py [ digraph-file ]
Takes a csv (comma separated values) text file containing the vertices
and edges of a street digraph and converts it into a digraph instance.
If the optional argument digraph-file is supplied, reads ... | 2db5795445ea5973474f615a03b7fb82ddc19744 | [
"Markdown",
"Python",
"Text",
"C",
"C++"
] | 29 | Python | stephenjust/arduino-gps-glasses | 1b60f4fcb687f8b054bf398e7e47a921c01de90c | 49b507bfb16c8f06846f02a52f9e5bec79d4b9b0 |
refs/heads/master | <file_sep><?php
declare(strict_types=1);
namespace HappyInc\Worker;
interface ContextData
{
public function __construct();
}
<file_sep><?php
declare(strict_types=1);
namespace HappyInc\Worker\Signaller;
use PHPUnit\Framework\TestCase;
/**
* @internal
* @covers \HappyInc\Worker\Signaller\FileSignaller
*
*... | 029965ca1e617aaa2918498f02e2533576ad7c26 | [
"Markdown",
"Makefile",
"PHP"
] | 29 | PHP | happy-inc-tech/worker | f1fc7161551ec4b7d8763f7634ce317f3e2ba144 | b3ec305223a7e809f9e41337306497d97d459e0a |
refs/heads/master | <repo_name>silaslowe/PACER<file_sep>/README.md
# PACER
Pace calculator with AJAX
<file_sep>/vjs.js
const submit = document.getElementById('submit');
const output = document.getElementById('output');
submit.addEventListener('click', function (e) {
let minuteTime = document.getElementById('minutes').value;
// consol... | 61306f8e3249538fabcad82880203b55db57e42c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | silaslowe/PACER | faab78d57f135c49757ac9f209eeb87c259b47ff | f23d52b07041b950bca193a12e523bf50024e87d |
refs/heads/master | <repo_name>dualword/strobe-api<file_sep>/strobe/strobe-core_cpp_.h
/*
MIT License
Copyright (c) 2018 fuzun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without l... | 547d45d9ed308ac964ba8dc43776b8d4fc63cc34 | [
"Markdown",
"C",
"C++"
] | 6 | C | dualword/strobe-api | 5d690e71adbb60fcd8e233f642e7383cf64a540b | b12edf498b2923f27fe229732445d02d4d406c7f |
refs/heads/main | <file_sep>
#include <stdio.h>
#include <stdlib.h>
#include <string.h> //strlen
#include <sys/socket.h>
#include <arpa/inet.h> //inet_addr
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <ctype.h>
// ..... #include <sys/wait.h>
#define MAXPENDING 5
#define MAX_BUFF_LEN 255
int servSock;
int clnt... | e4faad3b58a1e0337d2f803c902fa2fbcb09adeb | [
"Markdown",
"C"
] | 3 | C | GeorgeStyl/Message_Client-Server | 34273f1706b6ee65f507558a967c0b414c42e31d | f0532e2906a8d0afdb83523f966e81cedcb74f22 |
refs/heads/main | <repo_name>MaruanBO/angularjs-laravel<file_sep>/README.md
## Environment:
- Ubuntu 20.04
- Docker and docker-composer
- Firefox.
- Sublime text.
## Technologies:
- Relational Database (MySQL): Stores the data the application needs to work.
- Backend (Laravel 5): API to interact with the database.
- Frontend (AngularJS... | 968bc51f92f4cc957ce02c586d07388435e4da83 | [
"Markdown",
"PHP"
] | 3 | Markdown | MaruanBO/angularjs-laravel | cff87cac6d6b3168644b62afc4ccb17acb53a5c3 | 2477c63ee3ce2976d25e82791cb8f71860aae39f |
refs/heads/master | <repo_name>motowelove/motowelove.github.io<file_sep>/js/main.js
/*preloader*/
$('body').append('<div id="page-preloader"></div>');
$('#page-preloader').append('<span class="spinner"><i class="fa fa-spinner fa-spin" aria-hidden="true"></i></span>');
$(window).on('load', function(){
preloaderEvent()
});
/*slider*... | ece578abf565ea66be7b3e79614d8c3265f87031 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | motowelove/motowelove.github.io | 4318177f6a5cf4be68b5ada3db87a02b363720d8 | dae0f592e5386e10138049b5403371350c71b769 |
refs/heads/main | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
class ControllerState
{
public enum PxtKeyCode
{
KEY_LEFT = 1,
KEY_UP,
KEY_RIGHT,
KEY_DOWN,
KEY_A,
KEY_B,
... | 5aa78c0a3ed0a91efd3537bf9bfc09ab23f17b44 | [
"C#"
] | 1 | C# | eanders-ms/arcade-unity-demo | cad98adf7e316a8618eeb1d528f8a553fb5fcf14 | 467846a72aa31a1c0c3b6ba9c9703f96bae004d2 |
refs/heads/main | <file_sep># ChunkProcessingContinuation - Easily continue the processing on large files in pandas without starting all over when processing stops halfway!
#
#
#
With ChunkProcessingContinuation, you can easily continue the processing of large files or dataframes in pandas without having to start the process all over... | 8fae55bcf8cb86b3752361042815adaadc3b09d6 | [
"Markdown",
"Python"
] | 3 | Markdown | ABIMATHS78/ChunkProcessingContinuation | 9c25c0200e74bab320d17b7fe75df5b67a7e2893 | 8850f946df2013733b52ef90c6dac484001f837d |
refs/heads/master | <file_sep>import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments)
this.set('hasChecked', true)
this.set('isCheckAll', false)
},
click(e) {
// click checkbox
let _this = this;
if(Ember.$('input.checkbox').index(Ember.$(e.target)) > -1){
Ember.$('input.chec... | 213a58e7dd1a94a2ad7d090bfdc5d2d3a51bd1f6 | [
"JavaScript"
] | 2 | JavaScript | chewtoys/ultron-ember | 94b43d4364be85c7856a74f6f1e137301839c2f3 | be2888e91caa1a961e54acfb38929611e3ab2a19 |
refs/heads/master | <repo_name>yopla/quickMesh<file_sep>/src/quickMeshp15/libraries/QckMobjexport/src/ludo/objexport/objExporter.java
/**
* * OBJExport - Exports obj files from processing with beginRaw and endRaw
*
* modified and extended by <NAME> - www.muehlseife.de
* added: groups, materials, uv-support
*
* original code by Loui... | 45311410b1c01d9cf6475beb08dc549cd4be312c | [
"Java"
] | 1 | Java | yopla/quickMesh | 8324b6266a9d7fe7f5f2f126ffef7c042f1c76ff | e11a87d7341b4b1d8f6b1f52e759a41498acd43d |
refs/heads/master | <repo_name>thayanenns/projeto-logica-finalizado<file_sep>/BinaryRelation.py
#coding: utf-8
class BinaryRelation(object):
"""Template class for classes representing a Binary Relation."""
def contains_ordered_pair(self, x, y):
"""
This method returns a boolean value indicating if a given ordere... | 0712c3fb27ad32022e07b84ed3b2b466ea5fd181 | [
"Markdown",
"Python"
] | 3 | Python | thayanenns/projeto-logica-finalizado | 0a291fa8bbce020f8b6838e7088e16747de79eb5 | 5cda1220ef656db9a9ecaaf6a4829b0d17c9d644 |
refs/heads/master | <repo_name>kleberformiga/contabilidados<file_sep>/R/BaixaDados.R
#' Transforma dados de matrix do economatica em painel
#'
#' Em pesquisas na area de financas com dados em painel o pesquisador, por vezes,
#' faz estimacoes com dados dispostos em painel. Contudo, as fontes de coleta nem
#' sempre disponibiliza dados no ... | 2e8ded05f5353d38f2c97a32106c6279d548a99c | [
"Markdown",
"R"
] | 8 | R | kleberformiga/contabilidados | 5999d5b9bcd1cd68bda5657c82027dceb55b2d2f | 171ad08029a0cf7304597eee5d930b44e15e43d6 |
refs/heads/master | <repo_name>MathijsElbo/APDProeftoets1<file_sep>/ts/app.ts
function show_choice(): void {
let p_tag1: HTMLParagraphElement;
let p_tag2: HTMLParagraphElement;
let img_tag: HTMLPictureElement;
p_tag1 = document.querySelector("#p_01");
p_tag2 = document.querySelector("#p_02");
img_tag = document.qu... | 52ba5ea07d1c738a229bf785a691843802a773a7 | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | MathijsElbo/APDProeftoets1 | 1d6d0152dfafc2a8e363830c115fb4d003494f4c | bf1f5aa9bee6c4fa038aa8af5578bbe1ce76b3c4 |
refs/heads/master | <file_sep>'use strict';
const gulp = require('gulp');
const imagemin = require('gulp-imagemin');
const pngquant = require('imagemin-pngquant');
const jpegtran = require('imagemin-jpegtran');
const notify = require('gulp-notify');
const plumber = require('gulp-plumber');
gulp.task('imagemin', function(){
// pngファイル
... | 53cdc743b4bc74af69c20a8c167ab76d428aa80c | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | diwao/frontools | 1e4746793f7dae60a16b1d6a4de0763a96c5f6f4 | 9024a7701214085ffec65e19bed7831d4a3ebc20 |
refs/heads/master | <repo_name>porsamini/Survey<file_sep>/app/helpers/questions_helper.rb
module QuestionsHelper
def link_to_add_field(name, f, association)
new_object = f.object.class.reflect_on_association(association).klass.new
fields = f.fields_for(association, new_object, :child_index => "new_#{association}") do |builder|
... | 23f4197f2051d0e8afccd622b7a201d932295f7a | [
"Ruby"
] | 2 | Ruby | porsamini/Survey | 8d01cb4bc5ef68826427961f15ddf0615740faba | 6995870f0c3c0431f03711d2e9d17142a535795f |
refs/heads/master | <file_sep>//素数を求める
//0811 11:52-12:00
//0812 10:00-12:00
//0812 14:00-15:15
//目標 120分
//仕様変更追加
package java_practice;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Practice48_primeNumber {
public stati... | 1f4669fc4b07e3715fb9b8f49b5237581e529833 | [
"Java"
] | 1 | Java | a-nakatsuka/primeNumber | 7089cc9a170f870123d6649230a6ffb8f71ab1e4 | cbcc5da1e7c0dc71c8d724335528aaeb950fedb7 |
refs/heads/master | <repo_name>Mattiamato/Array-based-stack<file_sep>/main.cpp
//
// main.cpp
// stack_arraybased
//
// Created by <NAME> on 08.02.12.
// Copyright (c) 2012 Universität Zürich. All rights reserved.
//
#include <iostream>
#include "stack_ab.h"
int main (int argc, const char * argv[])
{
Stack_ab mystack;
std::... | e848d3ee9d82d285f3e3e23f5685183236b1a550 | [
"C++"
] | 2 | C++ | Mattiamato/Array-based-stack | 88d7207cfcb565fcc5d6167f556e5828dbe5ed05 | 2010383bb338ff7685ed7f8008c38c36fb3cfc50 |
refs/heads/master | <file_sep>def partition(nums, k):
"""
Given an integer array nums and an integer k, return true if it is possible
to divide this array into k non-empty subsets whose sums are all equal.
>>> partition([4,3,2,3,5,2,1], 4)
True
>>> partition([1,2,3,4], 3)
False
"""
pass
<file_sep>def cr... | 706957d018f4bec7687c0d03b1bd2f1e97c85734 | [
"Markdown",
"Python"
] | 9 | Python | PacificG/leetcode | 52d2ba3329551a92547ab288a366ec5d7ad7d407 | aaa292defc506919284872a66d6f525f0fb4346e |
refs/heads/master | <repo_name>jeremt/gitbutler<file_sep>/setup.sh
#!/bin/sh
sudo npm install -g gulp &&
npm install &&
bower install &&
cd app && npm install<file_sep>/README.md
Gitbutler
=========
Minimalistic but powerful UI for GIT. The idea was to provide a UI that doesnt have to be in fullscreen, and allows to easily and fastly ru... | 9f825c376feb0fde0090db2ccde3db720d9ea735 | [
"Markdown",
"Shell"
] | 2 | Shell | jeremt/gitbutler | 5fa47362a77ebf8b0f65884b32113c465c8acd4c | 47d1d3dac97f602b4c5a791c6b119b992b72c2b0 |
refs/heads/master | <repo_name>GranaraMariaSilvia/backendCafeteria<file_sep>/src/routes/producto.routes.js
import { Router } from "express";
import productoControllers from "../controllers/producto.controllers";
const {
getProductos,
crearProducto,
getUnProducto,
deleteProducto,
editarProducto,
} = productoControllers;
const r... | 2178fffe1c3c10aae2007c816bc6924e93996310 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | GranaraMariaSilvia/backendCafeteria | 793ab8b4f292eae4f5ec2ee7291d8568b63ba88b | 2ca4186d2f3095eac6396434996ebbb66ecfd220 |
refs/heads/master | <file_sep># SDT-example-ble-ibeacon<file_sep>/* SDT-example-ble-ibeacon
*
* Copyright (c) 2018 Sigma Delta Technologies Inc.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in th... | 0f4ca8e16d75a7dc43014a8f1f0493f7cd4422e0 | [
"Markdown",
"C++"
] | 2 | Markdown | SigmaDeltaTechnologiesInc/SDT-example-ble-ibeacon | 00de1b87ddb2cd47f01e8013519be1cd872d3e9b | 4926030fdf3dcd55ee4d6277e8db6956828ab35a |
refs/heads/master | <file_sep>/*
Filename: ow10000-tetris.cpp
Purpose: Tetris Game
Created: June 29, 2016
*/
#include "Arduino.h"
#include "ow10000-tetris.h"
#include "ow10000-hardware.h"
#include "ow10000-text.h"
// Default Constructor
OW10000_tetris::OW10000_tetris(OW10000HAL* badgeToLinkTo) {
badge = badgeToLinkTo;
rand... | 532d7319dbb6de644f2ed6a5fb9432b075b5ea19 | [
"C++"
] | 1 | C++ | systronix/OpenWest2016 | b43db0a108bf53c2f275beea4f39318ce72be30d | 1c369e2e7fde2eb6f96a2d4b8945bdb4efbf9d4f |
refs/heads/master | <file_sep>#define RATIOREMOVECLAUSES 2
#define NBCLAUSESBEFOREREDUCE 20000
#define DYNAMICNBLEVEL
#define CONSTANTREMOVECLAUSE
#define UPDATEVARACTIVITY
#define BLOCK
<file_sep>#!/bin/bash
export FM=$PWD/sources/SatElite/ForMani
rm -rf ebglucose_static
rm -rf SatELite_release
cd sources/SatElite/SatELite
make clean
cd... | f0f2f58fa61e7ca7547c66d3491ba5385064cc98 | [
"C",
"Makefile",
"Shell"
] | 3 | C | bmatsuo/EBGlucose | 69b6aa30297002cf8eaec5bb2349f22fbe1addb4 | 7fe09e31d6587d2c5d75b84965b936755b59cc1d |
refs/heads/master | <file_sep>/*
* View model for OctoPrint-Locbit
*
* Author: <NAME>
* License: AGPLv3
*/
$(function() {
function LocbitViewModel(parameters) {
var printerState = parameters[0];
var settingsState = parameters[1];
var filesState = parameters[2];
var self = this;
function ap... | 4af7f53ad8097b07c3c646b950300ae81abf6c5d | [
"JavaScript",
"Python",
"Markdown"
] | 5 | JavaScript | anthonyattard/OctoPrint-Locbit | 257eb8536430caf80468cb0333751a66ec181d0a | 015296a34ee3f57623035bcb4befd83bf6654d0a |
refs/heads/master | <file_sep># Opgave 8
avit <- read.table("avit.txt", header=TRUE) # Indlæs datasættet
# Opgave 9
avitM <- subset(avit, sex==1)$avit # Udtag mændenes avit-indtag
length(avitM) # Tæl mændene
logavitM <- log(avitM)
# Opgave 10
pdf("graphs/analyse_1.pdf")
hist(avitM) # Histogram for avitM
dev.off()
pdf("graphs/analyse_2.... | 77fdde8f3f2ca6ec1be6e1dd8a502df9253e5056 | [
"Makefile",
"R",
"Shell"
] | 4 | R | Freaken/SS | d77cdedd6ee360400f6f6eaef41eb4f8a957dc3b | 40f8e6d0feca976accccb5c5f1110c4428325b7f |
refs/heads/master | <file_sep>## Tidy Part 1
# Get feature names and subset to only those features of mean or std measures
features<-read.table("features.txt")
features1<- grep("std|mean", features$V2)
## Tidy Part 2
# Get the train and test feature sets and subset only the desired features
testX<- read.table("C:/Users/Transorg/De... | e9c79b80a730a7413db118eb746f6dcadad30982 | [
"R"
] | 1 | R | anuchaudharyiitd/run_analysis | b23edfe38b09dfe98802ae4ab46d33cf6ce9b487 | c9863971bfc54b2b5ed604bcac5ca6463f830e64 |
refs/heads/main | <repo_name>scottmsilver/protobufjs-for-appscript<file_sep>/index.js
// When you build this the transitive closure of export is included.
import protobuf from 'protobufjs';
import FlightDesignator from 'flight-designator'
export {protobuf, FlightDesignator};
<file_sep>/README.md
# protobufjs-for-appscript
This is a smal... | 61f4d1c916eb907e373e05a6560a61ecc8571202 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | scottmsilver/protobufjs-for-appscript | 5407d49c9d7fcd22a97542daf21a7d6401d11158 | 4aafca0d668062afaeda19f6f94a5615efc78ee7 |
refs/heads/master | <repo_name>deon-Mass/VST<file_sep>/app/src/main/java/cd/digitalEdge/vst/Views/Lists/Commandes.java
package cd.digitalEdge.vst.Views.Lists;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import and... | fc3dbfde5419b0e6a8df3178d13b3eee9cbc1fb0 | [
"Java",
"Gradle"
] | 29 | Java | deon-Mass/VST | b5ce2c4e374e4bb5642294423e16a951789abfdc | 52e44cab6a45b8b444eff62f4116a8104bfc337d |
refs/heads/master | <file_sep>// to compile
// g++ test_CQCGL1dRpo_arpack.cc -std=c++11 -O3 -march=corei7 -msse4 -msse2 -I$EIGEN -I$RESH/include -I$XDAPPS/arpackpp/include -L$RESH/lib -lCQCGL1dRpo_arpack -lCQCGL1dRpo -lCQCGL1d -lmyfft -lfftw3 -lm -lsparseRoutines -ldenseRoutines -literMethod -lmyH5 -llapack -larpack -lsuperlu -lopenblas ... | 15fca27f60ab7fd42fe21511da4f18f2dae51bc7 | [
"Markdown",
"Makefile",
"Python",
"C++",
"Shell"
] | 189 | C++ | dingxiong/research | b7e82bec1cf7b23cfa840f3cb305a2682164d2f3 | 1bae45c54a0804c0a3fd4daccd4e8865b9ebebec |
refs/heads/master | <file_sep>package com.rimac;
import java.util.List;
public interface FizzBuzz {
List<String> doMagic(int from, int until);
}
<file_sep>package com.rimac;
import java.util.List;
public class MyFirstFizzBuzz implements FizzBuzz {
/*
// This method receives:
// Lower bound of closed interval, "from"
... | 23d0129dfa60e5d7b9f7e0899be5d56b0d6c007c | [
"Java"
] | 2 | Java | ioreskovic/fizz-buzz | 041bc697e2e1d7211b104ebbd9fc4a77700a45a4 | 0622a3b752099e2208ea9c63e9aea3b08227b400 |
refs/heads/master | <file_sep>//
// RequestGeneric.swift
// TheMovieApp
//
// Created by <NAME> on 17/04/19.
// Copyright © 2019 Rafael. All rights reserved.
//
import Foundation
enum Language: String, Codable {
case US = "en-US"
}
class GenericRequest : Codable {
var page: Int?
var language: Language?
}
<file_sep>//
// ... | b24e051be073295a8b18a6c35ce62aab30b31579 | [
"Swift"
] | 10 | Swift | rafaelcrz/ios-movie-app | ba8ea98c232e7536c08506d06c2ff9057d21afbc | 95f48c8b452f5bd3d9779585a5e57c9646788489 |
refs/heads/master | <file_sep>
//
// AddViewController.swift
// BrawlDatabase
//
// Created by <NAME> on 19/12/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
protocol AddViewControllerDelegate: class {
func addViewController(_ vc: AddViewController, didEditTask task: Task)
}
class AddViewController: UIView... | b1f3e23cd23218b5218909bf65a3a517258a568a | [
"Swift"
] | 3 | Swift | nacholagorta/SwiftBrawl | fbc99da25979b5a3647a881179a15da5dd4eb98a | 2fe03ea3461c78ecdbe58f20be5e32f9dd282201 |
refs/heads/master | <file_sep>package edu.jsu.mcis.cs310.tas_sp21;
public class Shift {
//There should also be " getShift() " methods
//UNIX_TIMESTAMP()
//To retrieve the hours and minutes from the TIME fields of the
//Shift table as separate values, use the HOUR() and MINUTE() functions of MySQL.
//"Shift Start” an... | 8c6844a86b6e62e2a3122aad522d2b611f867a53 | [
"Java"
] | 1 | Java | Jay-Batiste/ProjectTeamE | e81571f10e994ffe68f52bac9aaa3ee533702c62 | 145440446e8c7e09e4fe9138bd493a8b9be27e04 |
refs/heads/master | <repo_name>Knalpot45/Movie-ti-PPB<file_sep>/movie/app/src/main/java/com/example/d2a/movie/Model.java
package com.example.d2a.movie;
public class Model {
private String title;
private String rating;
private String status;
public Model(String title, String rating, String status) {... | 88cf74cf15ec14e4f9255adcddf3a82aa46c7a4a | [
"Java"
] | 2 | Java | Knalpot45/Movie-ti-PPB | 34182c7a9850c4ef73eacef0e2495d54d90a0c01 | 2e3e843bcee38e8daf4033ca76589027b7caf02a |
refs/heads/master | <repo_name>hyoungjong1856/algorithmForOperation<file_sep>/integration/integration/integrationDlg.cpp
// integrationDlg.cpp: 구현 파일
//
#include "stdafx.h"
#include "integration.h"
#include "integrationDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// 응용 프로그램 정보에 사용되는 CAboutDlg 대화 상자입니다.
... | c62a5f1de12d6c877178a4306d59c313993f8207 | [
"C++"
] | 2 | C++ | hyoungjong1856/algorithmForOperation | 7b9da95e47a1d83673c2ecd6894dc1d57d78a125 | cd2cbbea4e4f008a4152ce13967e94e6577f3abb |
refs/heads/master | <file_sep>package com.boulder.mchistory.basic;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServlet... | 7f905d7b3c06527717894093ac8dd96a2b2473bf | [
"Markdown",
"Java",
"Maven POM"
] | 20 | Java | turret24/mchistory | 63f9438138766bd4c6df6625065b30d4de403369 | 75389ee5f5ae4e5442ddf14f2cc43dfe22532028 |
refs/heads/master | <repo_name>dillon2013/realtime-polls<file_sep>/app/main.py
import tornado.ioloop
import tornado.web
import os
import routes
import tornado.log
import sockjs.tornado
import pprint
tornado.log.enable_pretty_logging()
port = 8888
settings = {
"autoreload" : True,
"static_path": os.path.join(os.path.dirname(__fil... | 5700e44d23e79b87f5cca469d0fdc40d8860bf9d | [
"JavaScript",
"Python",
"Text"
] | 8 | Python | dillon2013/realtime-polls | 7d1f6bd9714efb405110561914a222972cf14e7e | cf9d64f7fb4be3d4c57fe08136f995aa59eb947d |
refs/heads/master | <file_sep>
package com.example.pratik.jpa2;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.pratik.jpa2.Model.Address;
import com.example.pratik.j... | d72a58e2d1fda2218f086c896b8d8ab27471de80 | [
"Java"
] | 3 | Java | dadhaniyapratik/JsonParsing_withoutRetrofit_withdatabse | 209013e2c0897f1011a92723ef81146e071b5475 | 4fb89f4eee5c5e26fdf2a676969408bb0d360b37 |
refs/heads/master | <repo_name>agilebluefox/chatroom<file_sep>/public/main.js
'use strict';
'use strict()';
$(document).ready(function () {
// Initialize variables
var $window = $(window);
var $usernameInput = $('.usernameInput'); // Input for username
var $usernames = $('.usernames'); //List of active users
var $erro... | 07e1a75bcacb2eb51ded4e332e278101c9e21f25 | [
"JavaScript"
] | 2 | JavaScript | agilebluefox/chatroom | 73ad82c61c896d33f6aa15c5f6f2917c3a15738c | 116cef0b7714d48e6da1ccc26db5efe1ef6226bd |
refs/heads/main | <repo_name>JOSEPHUS2021/Module4-Solution<file_sep>/script.js
var jname = new Array();
jname[0] = "Yaakov";
jname[1] = "John";
jname[2] = "Jen";
jname[3] = "Jason";
jname[4] = "Paul";
jname[5] = "Frank";
jname[6] = "Larry";
jname[7] = "Paula";
jname[8] = "Laura";
jname[9] = "Jim";
for (var i = 0; i < jnam... | 34dc343f44ac575fa7a419b87fc655ef9953acad | [
"JavaScript"
] | 1 | JavaScript | JOSEPHUS2021/Module4-Solution | 18037c8155a7f0f7b79acd4e4bb6d2ce088f337d | 51691620e690013c37b8db97bfd540e96347c0a1 |
refs/heads/main | <repo_name>VTristan/SpringBoot-Angular<file_sep>/Berlioz/src/app/services/developer.service.ts
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Observable, throwError } from 'rxjs';
import { Developer } from "src/app/models/developer";
@Injectable({
... | a8a3e2ecd41bba80be4b53d197f6b9ba5baaabc9 | [
"Markdown",
"Java",
"TypeScript"
] | 11 | TypeScript | VTristan/SpringBoot-Angular | 2a646aece9be9e37030335d4e13225f1bcb94683 | c4af03a7db39427b6f4af4616191c6bd3a70b1b0 |
refs/heads/master | <file_sep>class CLI
def start
puts "welcome to the Billboard top 10 app."
end
##
#
end<file_sep>require "nokogiri"
require "pry"
require "open-uri"
require_relative "../lib/scraper"
require_relative "../lib/artist"
require_relative "../lib/cli"<file_sep>class Artist
@@all = []
attr_acce... | 54ebee00229db1fe5d71977111b4ee6cf975266f | [
"Ruby"
] | 7 | Ruby | andrecunningham/billboardtop10cli | b6f8d2e708263a00f419683896fedf27554c8cae | a8af0a3238a012522143645d217b8ad255f88a09 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.DualScreen;
namespace Nevarro
{
//Learn more about making custom code visible in the Xamarin.Forms previewer
// by... | 5b136e23baf23ac824cd8edb50390f99aebc0365 | [
"Markdown",
"C#"
] | 6 | C# | owlstack/Nevarro | 113e5363a32c081233076a16ecf3cefd7d917749 | 93af69ce0b117a9abf17bec6673aca7729574cc0 |
refs/heads/main | <file_sep>#!/usr/bin/env python
import argparse
import os
import jsonlines
import tqdm
import numpy as np
import torch
import pickle
from stanza import Pipeline
from torch.utils.data import TensorDataset
from attack_utils import (load_serialized_dataset, load_dataset, create_attention_masks,
token... | 62fac006d271d3f033d1bf311b3167cd7904cb38 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 54 | Python | WhyTheMoon/trojan-lm | cde0ced5e5fb77bf728d12cc058fb7a690be5c08 | aac24e192011157abb6836403ac18da3552540ae |
refs/heads/main | <file_sep># adventofcode
Why not?
<file_sep>import csv
data = []
with open('input.csv') as fp:
reader = csv.reader(fp)
for x in reader:
data.append(int(x[0]))
answer = []
for x in range(len(data)):
for y in range(len(data)):
if data[x] == data[y]:
break
if data[x] + d... | 5ce76e60e74249db03e96e10390dde531e9ea2c0 | [
"Markdown",
"Python"
] | 2 | Markdown | mjangle/adventofcode | a980d52ef23cb184a674c0d05ec7960c8728d0c9 | 3cc3ee2bd5e4b56e4cdb558cbc81221dc2bf6139 |
refs/heads/master | <file_sep>## Proxy-auto-discovery for command line applications (pac4cli)

### Introduction
On many corporate networks, applications need
[proxy-auto-discovery](https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol)
to know wheth... | 344a1d8bdd6ad8d91b67a0af8f312cb772cd7cac | [
"Markdown",
"Text",
"Shell"
] | 4 | Markdown | gil/pac4cli | 3b7f5583a7f3ed409cc2b3011456bdb67b1bf710 | 72e1b8fabb45f54340831214637cbdbd7a5c10d1 |
refs/heads/master | <repo_name>Kforkristof/api-wars-assignment<file_sep>/static/js/ajax.js
function ajax(targetLink){
let request = XMLHttpRequest();
request.addEventListener('load', function () { // add an event listener to the load event of the request
let responseData = JSON.parse(this.response); // parse JSON format into JS obj... | 6369ecd1de55796539551e65a21b2654de08cdec | [
"JavaScript"
] | 1 | JavaScript | Kforkristof/api-wars-assignment | e29c781862e4c157836bdc4d3748779dc0ba71ff | 6c72b404797f4b6216332913ac4a851e35f2a321 |
refs/heads/master | <repo_name>Lopesgit/homestead<file_sep>/scripts/install-pma.sh
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
PMA_VERSION=$1;
PMA_PHP_VERSION=$2
echo 'Downloading phpMyAdmin'
curl -#L https://files.phpmyadmin.net/phpMyAdmin/$PMA_VERSION/phpMyAdmin-$PMA_VERSION-all-languages.tar.gz -o phpmyadmin.tar.gz
mkdir phpm... | e74b6d8f6205a60cd644f78408fb3e47488697f4 | [
"Shell"
] | 8 | Shell | Lopesgit/homestead | b397e234b93f4895c033f96aaf42d835d9584ce4 | 79ba655d4430c629b4d87557588433deb8a16355 |
refs/heads/master | <file_sep>import { createRequire } from 'module';
import { ApolloServer, gql, makeExecutableSchema, addSchemaLevelResolveFunction, makeRemoteExecutableSchema, introspectSchema } from "apollo-server"
import { HttpLink } from "apollo-link-http"
import fetch from "node-fetch"
import { v1, v2 } from '@aave/protocol-js';
... | 1c5761fa2579f5a16b352187f40659596a53c6d9 | [
"JavaScript"
] | 2 | JavaScript | EugeneTeu/aave-alert | 9c1cc3170b429e67d7183593a717c38c95996768 | 154b4e097739cdfa1c735872d8cea58b77230967 |
refs/heads/master | <repo_name>StanislavAshykhmin/parser<file_sep>/public/js/select.js
document.addEventListener("DOMContentLoaded", function(event) {
$('select[name="system_id[]"]').select2({
placeholder: 'Systems',
}).change(function () {
$(this).valid();
});
});
<file_sep>/tests/Browser/tag/CreateTagTest.php... | adeb78526f61cc6d8b7935c68d668e74690e0107 | [
"JavaScript",
"Markdown",
"PHP",
"Dockerfile",
"Shell"
] | 37 | JavaScript | StanislavAshykhmin/parser | 38c5c8e92f443f646ec3bfb54c875c11ec859076 | 73dad292c4cb50302943d3548366c65e634b00ba |
refs/heads/master | <file_sep>class Movie < ActiveRecord::Base
# the constant that holds the start and end times of the movie ranges
DURATION_RANGES = {
"blank" => [0, 8 * 60],
"short" => [0, 90],
"medium" => [90, 120],
"long" => [120, 8 * 60]
}.freeze
mount_uploader :poster_image, PosterImageUploader
has_many... | 02dde2d2d596c0285f262313f7cba125ead849d4 | [
"Ruby"
] | 2 | Ruby | jenreiher/rotten-mangoes | b07420c63c594a55ffc196984b7c52980ba001e9 | fdd2119012ee0e7465a9474bed6edd59a3ffd0bf |
refs/heads/master | <file_sep>import Ship from './Ship';
export default class MainScene extends Phaser.Scene {
private phaserSprite: Phaser.GameObjects.Sprite;
private ship: Ship;
private cursors: CursorKeys;
constructor() {
super({
key: "MainScene"
});
}
preload(): void {
this.load.image("ship", "../asset... | f7628e4013a2bc4619634bdcc311e21b9866d64f | [
"TypeScript"
] | 5 | TypeScript | graftss/ship-game | 5820e723e5be6042f938d1cdbf77025bf8521454 | c636849fc8ab91c5b6a0c3949737aff85f36c584 |
refs/heads/master | <file_sep>#include "../include/amjMemory.h"
char msg[1000];
/****************************************************************************
* *
* In this section are general memory allocation routines *
* ... | 74b0e9510ce58b7969ec2a8c55b16a05cc9dcdc0 | [
"C",
"Makefile"
] | 5 | C | amjjam/amjMemory | 81a9ca7747474df3995f9862fd6e06b168837fd3 | 7ac8f4f29d4cc3ebd798b39bfd5c2b6f645440d5 |
refs/heads/main | <repo_name>Dayong99/webgd-cloud<file_sep>/src/icons.js
// src/icons.js
// export what you need
export {
default as SmileOutline
} from '@ant-design/icons/lib/outline/SmileOutline';
export {
default as MehOutline
} from '@ant-design/icons/lib/outline/MehOutline';
// export what antd other components need
export {
... | c3d0730a2d9dd27e212c1a462322d1dec92d8340 | [
"JavaScript"
] | 7 | JavaScript | Dayong99/webgd-cloud | 3e28d60bebfe59b3fd921c07526cc8c5f72a6f28 | 89dec560ee121d904a850df676b66fc530bba983 |
refs/heads/master | <repo_name>lukaszkania/Simple-blog.<file_sep>/frontend/gui/src/components/content/Content.js
import React from 'react';
import { Link } from 'react-router-dom';
import { API_ARTICLE_DETAIL_URL } from '../../constants/ApiUrls';
import axios from 'axios';
const Content = ({ articles }) => {
const articlesList = art... | a06d6bfd0af921a2bbc58b40b2671c576a00206c | [
"JavaScript",
"Python"
] | 10 | JavaScript | lukaszkania/Simple-blog. | d19b20668ec60688b460889ad0d11b7e498d747e | 22435b217b4febebddf0155a5fef3c4760fa4e1b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.