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># Project: Bike Share Rental
# Author : <NAME>
# Date : 11-11-2015
# Bike rentals feature selection
# loading files CHANGE AS PER REQUIREMENT
train <- read.csv("~/Desktop/train.csv")
test <- read.csv("~/Desktop/test.csv")
#libraries required
library(ggplot2)
library(lubridate)
library(randomForest)
# pr... | f33716c3b10dd372ee68e13956c04b0a8b84e0d2 | [
"R"
] | 6 | R | shrirang91/BikeShareDemand | 7865143bca578b41c86a66aa89aa87f52658b8d0 | 1b5bc11a5c16904da377f4e7dd67a7a6743a33e7 |
refs/heads/master | <file_sep>
// This child of Straight is specific for a large straight
public class LargeStraight
extends Straight
{
public LargeStraight()
{
straight = 5;
upperOrLower = lower;
}
@Override
public void setScore(Die[] dice, boolean wildCard)
{
if(isScorable(dice, wildCard))
... | 5637560d03030f7951e5cc26dd7f473ebbaa94ef | [
"Java"
] | 7 | Java | Mayme123/Yahtzee | 6648c2376435df7508a95fba0f63b8bb4afbf059 | 5c537f19275ce7eb6ba9783559cb393ee19eefb1 |
refs/heads/master | <file_sep>(function (app) {
app.controller('roomEditController', roomEditController);
roomEditController.$inject = ['apiService', '$scope', '$state', '$stateParams'];
function roomEditController(apiService, $scope, $state, $stateParams) {
$scope.room = {
CreatedDate: new Date(),
... | a3b7e6170f4f9065b8dd3cecd21db22463ba24d2 | [
"JavaScript",
"C#"
] | 29 | JavaScript | thanhffan/xephangproject | 98e546e68a813b812280b3c95eaaca5ac3fb0633 | 0a555f5a4d2a66c028a2af6f2e6010aac340fbe3 |
refs/heads/master | <file_sep>
# Add code here!
def prime?(num)
new_array = (2..num - 1).to_a
if num <= 1
return false
end
new_array.each do |n|
if num % n == 0
return false
end
end
true
end | 48efadf41a7550244af029d4b0738d6d7de73caa | [
"Ruby"
] | 1 | Ruby | Jmiller1294/prime-ruby-online-web-pt-100719 | 65885b50ee0996585a016d91656a714a20d3de33 | 94537a227e8b7e91a2977821512ba1fe4216e462 |
refs/heads/master | <repo_name>caseril/src_varius<file_sep>/GretaAnalogWriter/library/base_drago.py
import logging
import os
import time
import sys
import traceback
import asyncio
import library.utils as utils
from abc import ABC, abstractmethod
import aenum
from library.base_modbus import BaseModbus, ModbusTypes, ModbusAccess
from enum i... | d384c1c3cac48db5fca6786c7a58547555bc1770 | [
"YAML",
"Markdown",
"Python",
"Text",
"Shell"
] | 78 | Python | caseril/src_varius | 6bbd6013f0f1b776371d73ddb779fb1c89ce4368 | a47e297fe7a0c9e2fe49f2631c98caaa7ea3aee3 |
refs/heads/master | <repo_name>akash-plackal/coming-soon-page-react<file_sep>/src/Texts.js
import React from "react";
import logo from "./logo.svg";
import Email from "./Email";
import "./texts.css";
export default function Texts() {
return (
<div className="container">
<div className="content">
<img src={logo} alt="l... | 553852e51eb28efac10a05dfeabe1d89402e0e26 | [
"JavaScript"
] | 2 | JavaScript | akash-plackal/coming-soon-page-react | 2802c1b5135d459826f7436bd1bb55d14df521ff | 8ed76cc070ac2890968a7c6b7885fc93795b351d |
refs/heads/master | <file_sep>import cv2
import Image
import ImageDraw
def detectFaces(image_name):
img = cv2.imread(image_name)
#face_cascade = cv2.CascadeClassifier("/usr/share/opencv/haarcascades/haarcascade_frontalface_default.xml")
face_cascade = cv2.CascadeClassifier("C:/opencv/sources/data/haarcascades/haarcascade_fron... | 1eb9b5d885bc89c5cb226616e262065b055e6de8 | [
"Python"
] | 1 | Python | aaron0922/python_facedetect | 1857b17dc6282480dc0797bf1149740de21d0c53 | 24fd3eeb5f800380fded15c56f4a6396aa85cbae |
refs/heads/master | <file_sep># Process/thread synchronization
FIFO buffer with n elements (n>3). There is one producer and three consumers (A, B, C).
Producer produces one element if there is a free space in the buffer.
Element can be removed from the buffer when it is read by either consumer A and B or B and C.
None of the consumers... | 5fe536cc54aba33555b921a1666e696066f960c3 | [
"Markdown",
"C",
"C++"
] | 3 | Markdown | KarolloS/Process-thread-synchronization | 93cd679ba71c1c13adffa507f990114a2ded9599 | 859926173d6c966e88c7ef6b12d97588f4a0ad2d |
refs/heads/main | <file_sep>
## 1. About
Already happened to you that you needed [Kodi](https://kodi.tv/) or [VLC](https://www.videolan.org/) in a small snapped window always on top while you are working or doing other stuff, well then you don't... | 138146767c0f38913f83798aab530db27fb91a4e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Th3On3/SnapWindow | 58e2c6c5a947619ab2d6f42fb765739f5faf72d1 | 066548fa8e966e31ba82795c5a95693b2e06abff |
refs/heads/master | <file_sep>#!/bin/bash
SITENAME=askubuntu_unix_superuser
CQ_DATA_DIR=clarification_question_generation_pytorch/$SITENAME
SCRIPT_DIR=clarification_question_generation_pytorch/src
EMB_DIR=clarification_question_generation_pytorch/embeddings/$SITENAME
python $SCRIPT_DIR/decode.py --test_context $CQ_DATA_DIR/test_contex... | f28ca4517145646cc175b51195a82950488dd8ac | [
"Markdown",
"Python",
"Shell"
] | 92 | Shell | raosudha89/clarification_question_generation_pytorch | 23ae8aa0160eee70565751f4b6de13563a19d6ed | 7234637feb22da6980604f2e64886e44a5e59e8c |
refs/heads/master | <file_sep>/*
Debounces each key for user configurable press/release.
Per key debouncing rather than whole-matrix debouncing.
*/
#include "matrix.h"
#include "debounce_matrix.h"
#include "timer.h"
//How many checks to do.
//The first check is instant, the 2nd check may be less than 1ms apart
//All further checks are at... | 8fcdf1ac7708adc41e42061aae08d55d7fed5fa0 | [
"C",
"Makefile"
] | 10 | C | alex-ong/HandWired60 | df6d01ec303f3aba31270ef17d947cb2a48c3bc6 | 236f38673f4441891a5cef0ed910d056854a9aa0 |
refs/heads/master | <file_sep>//
// ViewController.swift
// ChuckNorris
//
// Created by <NAME> on 04/05/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
class MainViewController: UIViewController {
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var firstNameTextfield: UITextField!
@IBOut... | f14939a3450599551ff3d9398246bf34f9f87449 | [
"Swift"
] | 5 | Swift | MagdaSzlagor/ChuckNorrisJokes | e1fea2a8e1d284409080d579127659abcc912ed1 | d90260921399824320d9b1a4a45f26fb20687722 |
refs/heads/master | <file_sep># Color-Quantizer
Original

MyKMeans

<file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import scipy.ndimage as im
import scipy.misc as sm
import numpy as np
import PIL
from MyKMeans import MyKMeans
class ColorQuantizer:
"""Quantizer for color red... | 4b22447f10579b3f81534d9645d6df1ea1fbd2eb | [
"Markdown",
"Python"
] | 5 | Markdown | ozhans/Color-Quantizer | d89af5796afb19c064c65e1ad845fba8a0580519 | 461a187965d5dee1ad1c8e8cb66a2f98fca09db8 |
refs/heads/master | <file_sep># Filter data by id
A command line tool to filter data from data file using id's from index file.
## Usage
The tool reads two text files:
- id file: id strings, one in each line -- the id (one word) must be the first word in the line;
- data file: one record per line, perhaps *including* an id and whatev... | 538ac720bf96348f857dd1a0288899f978c9e469 | [
"Markdown",
"CMake",
"C++"
] | 3 | Markdown | anttijuu/filter-by-id | dfb671e68cda590217b59a0d457931a446e0b34e | 48c1bc67f120050f33a46ca2ab3986297508b376 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { NotificationService } from '../../../shared/notification/notification.service';
@Component({
selector: 'app-playlist',
templateUrl: './playlist.component.html',
styleUrls: ['./playlist.component.scss']
})
export class PlaylistComponent impleme... | 03611a7c59aac8efbf2d9c5b58723114ecc90af1 | [
"Markdown",
"TypeScript"
] | 23 | TypeScript | hatemhosny/papers-ionic | ce0bdbe59925adf6b221520d8af4bbfcc2ce54d5 | 3b391a2249cddf30915aca3af32496106f49d198 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace safewalk
{
public interface ISafewalkAdminClient
{
CreateUserResponse CreateUser(String accessToken, String username, String password, String firstName, String lastName, Stri... | f61f857d0d307e8bb27a3e26147ad65561b0fca2 | [
"Markdown",
"C#"
] | 24 | C# | altipeak/safewalk-net-sdk | 4133e4e16aa1437e8c34c72ca8f617657b3a9045 | 911dd2f307a1535c01672f8e99156ffe547a8abc |
refs/heads/master | <repo_name>chitcode/CompDataAnalysisR<file_sep>/page_255.R
# Computational Methods of data analysis
# Source : page 255
############################ SOURCE ####################
# clear all; close all; % clear all variables and figures
# L=20; % define the computational domain [-L/2,L/2]
# n=128; % define the number... | b0b7b423b220883d2a65464a1d3c36d9cc1edd32 | [
"Markdown",
"R"
] | 4 | R | chitcode/CompDataAnalysisR | af288d6c9ed74091dbbcdfb6d1f75f9655857392 | 560b1c03ad5b1d62a97d4db43a35b7fa1b064859 |
refs/heads/master | <file_sep>__author__ = 'sanny'
COLLECTION = 'users'
<file_sep>__author__ = 'sanny'
COLLECTION = "items"
<file_sep>__author__ = 'sanny'
<file_sep>
DEBUG = True
ADMINS = frozenset(['<EMAIL>'])
<file_sep>__author__ = 'sanny'
COLLECTION = "stores"
| 82939ed5c9dec76537538d4d0f634900082c9c7d | [
"Python"
] | 5 | Python | sannykr/Price-Alert | dc4cd7678f5245f798ab653dc3123a1a71b7b609 | e155abdcaac85dee6777f5c73f1d19a93bc41ab1 |
refs/heads/master | <repo_name>xormsharp/xorm<file_sep>/tags/parser_test.go
// Copyright 2020 The Xorm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package tags
import (
"reflect"
"testing"
"github.com/stretchr/testify/assert"
"github.com/xorms... | 8b7242428516a4c80ebb5df1627a82cc9b715850 | [
"Go Module",
"Go"
] | 23 | Go | xormsharp/xorm | 9b60c04546654b75a1a3069c18c82040155f0522 | cfcb5b838e4e051a32c24efbb3c2aaa54d29c26d |
refs/heads/master | <repo_name>mviniciusfs/Projeto1_AED1<file_sep>/Imposto.cs
using System;
using System.Globalization;
/*
PRODUTOS COD IPI TOTAL
Videogames = 1 30% 72,18%
Relógios = 2 25% 56,14%
Geladeiras = 3 15% 46,21%
Televisores = 4 ... | 93de3b6a20f6c67bd8ae5d645761bdc12a008559 | [
"C#"
] | 4 | C# | mviniciusfs/Projeto1_AED1 | abcb88bbb8eecc8c84a0333a56ea5f7f91726255 | f192254705272e8a849d6b5faa24e9d0efa4942a |
refs/heads/main | <repo_name>QuesadaJon/lab-01-chocolate-pizza<file_sep>/src/App.js
import './App.css';
import React, { Component } from 'react'
import Header from './chocolate-pizza-js/Header'
import ImgSection from './chocolate-pizza-js/ImgSection';
import RecipeInstructions from './chocolate-pizza-js/RecipeInstructions';
import Ingre... | 58de02908d7713db98c80df114b1bd3b01fa7a36 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | QuesadaJon/lab-01-chocolate-pizza | c71c9dbe137f802543b112bc2805bc5b6242c9b3 | d05f762816a51e291c09df19369298cf0268da96 |
refs/heads/master | <file_sep># JS-Examples
Article - [Remove duplicate in JS array](http://mightytechno.com/)<file_sep>const animals = ['🐞','🐌','🐳','🐏','🐙','🐙','🐌'];
var removeDuplicateUsingTwoArrays = function(){
let uniqueAnimals = [];
for(var i = 0 ; i < animals.length ; i++){
if(!uniqueAnimals.includes(anima... | 9e84d33df32203f453d5727e1775f9ab5a720bdb | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mightytechno/JS-Examples | 3ed64d4f53a14705e3265c126af6cc894f594fc3 | 72906c9a20eca0688fd8fcefc372d606cf493217 |
refs/heads/master | <repo_name>eugeneliu-dev/AyiHockWebAPI<file_sep>/AyiHockWebAPI/Dtos/OrderDto.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AyiHockWebAPI.Dtos
{
public class OrderGetDto
{
public string OrderId { get; set; }
public int Status { get... | 242556a202e55f1d1f8facbdbf5093d37fa07989 | [
"C#"
] | 39 | C# | eugeneliu-dev/AyiHockWebAPI | efcdd1127271d036cd262a1e9c415965333f4efb | e5d730a7aff1793e87f09dcffccebb596e872d7f |
refs/heads/master | <file_sep>import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by boris on 05.05.16.
*/
public class DataReader {
private static final Pattern PERFECTIVEGROUND = Pattern.compile("((ив|ивши|ившись|ыв|ывши|ывши... | 2c0468e7d96313d48cba834ce0e13c21940eec07 | [
"Java"
] | 3 | Java | borispinus/lang-task2 | d73863ac701c7541ef781e7d19862320383aac40 | ce914502e7dfa4112b13c6de8dfa8a48ac3e149d |
refs/heads/master | <repo_name>OrhanKupusoglu/cell-distance<file_sep>/distance.py
import os
import csv
import math
class Distance(object):
def __init__(self, file_name):
self.debug = False
self.file_name = file_name
self.header = ['SC', 'NETWORK_ID', 'LAT', 'LON']
self.neigh_prefix = 'NEIGH'
se... | e2ee5b0f7c662f145b1bdccd1d8e6279ae3620ba | [
"Python"
] | 1 | Python | OrhanKupusoglu/cell-distance | 9a4fbb7e248a9d04b7961b1c3364fd3c7ff6bf32 | 31113d754b641330b2df6497316cd08212e81d4f |
refs/heads/master | <file_sep>exports.helloWorld = function helloworld(req, res) {
datastore = require('@google-cloud/datastore')({
projectId: 'southern-lane-170005'
});
var q = datastore.createQuery('Todo');
q.run(function(err, entities, info){
res.send(entities);
})
}
<file_sep>exports.readCloudStorage = function hell... | 58103bfbe5458e0167d4a82f6000dfd9ef6aae95 | [
"JavaScript"
] | 3 | JavaScript | coyote1782/cloud-functions | ddc1bc1d5ce3365d3fd3ef56f4df0a402e961a73 | 2ca2c3369324fe246bf220e2805d5346b86d30da |
refs/heads/master | <file_sep>
import numpy as np
import pandas as pd
from keras import backend as K
K.set_image_dim_ordering('th')
from keras.optimizers import SGD
import os.path
from keras.models import Model
from keras.layers import Dense, GlobalAveragePooling2D
from keras.applications.inception_v3 import InceptionV3
from keras.prepr... | fd55195344774128fcde82b395027cc2767d97a1 | [
"Markdown",
"Python"
] | 4 | Python | kalgishah02/SnapLoc | 668238d0713d62441f7fe7df201437d95c8b746c | 6473e8536647147e895ed6ffc2f7f8ceb8bfa397 |
refs/heads/master | <file_sep>const config = {
secret: 'SECRET_CODE',
host: 'localhost',
port: 8080,
public: '../public/',
paginate: {
default: 10,
max: 50
},
googleAPI: {
developerToken: "GOOGLE_API_DEVELOPER_TOKEN",
client_id: "GOOGLE_API_CLIENT_ID",
client_secret: "GOOGLE_API_CLIENT_SECRET",
redire... | 877da5c50e4fb4047205996eb357a6503df864ad | [
"TypeScript"
] | 2 | TypeScript | RomanMykytyn/Waste | 9b3373b4ea1ee3df73d2b6232914a3aaa3bf7ca6 | 96b38fe079d89571e7993324937005dfde00f887 |
refs/heads/main | <repo_name>Khaled-elias/testNode<file_sep>/main.js
// const khaled = require('./arry')
const dima = require('./data')
const singup = require('./singup')
// console.log(khaled)
// console.log("hallo khaled")
// console.log(__dirname)
// console.log(__filename)
// // console.log(module)
// const hello = () => consol... | fb621051bfd8997a5a9d0a1727d2bc7b96bf356c | [
"JavaScript"
] | 2 | JavaScript | Khaled-elias/testNode | 8a44badfb10f1b906aa5d3bf294bc432d9e51bf2 | 1dc1a40d9787aac46ea39c8269b5cc2fc6c3c718 |
refs/heads/master | <repo_name>rikoroku/never_look<file_sep>/nl.sh
#!/bin/sh
set -e
readonly FILE="targets.txt"
readonly HOSTS="/etc/hosts"
readonly PW="${NL_SUDO_PW}"
function usage {
cat <<EOF
$(basename ${0}) is a tool for ...
Usage:
$(basename ${0}) [command] [<options>]
Options:
--version, -v print $(basename ${0}) versio... | b110e93e6a288c1889fc9dc050835e16d5031ec1 | [
"Markdown",
"Shell"
] | 2 | Shell | rikoroku/never_look | 667aac8da1f03ec8d4df9cbe2d14b5ee4898d064 | 728220f5511e744794bd4a7531d1b74b75a7e3ad |
refs/heads/master | <file_sep>from typing import Protocol
import numpy as np
import pandas as pd
from cjwmodule.util.colnames import gen_unique_clean_colnames
from pandas.api.types import is_datetime64_dtype
SupportedNumberDtypes = frozenset(
{
np.dtype("float16"),
np.dtype("float32"),
np.dtype("float64"),
... | 744a62dae47c1c3c9edca0a7e904398165d6cfd0 | [
"TOML",
"Python",
"Markdown"
] | 7 | Python | CJWorkbench/cjwpandasmodule | 8571a7d09ad08a78ddf42dec12a91ebc7f11cc58 | dfac9700ea20d7c7e6413129794cdff2d48cc26f |
refs/heads/master | <file_sep>import { createStore } from 'redux';
import boardReducer from './reducers/boardReducer';
export default createStore(boardReducer);
<file_sep>import React from 'react';
const Row = ({ row, rowIndex, onClickCell }) => (
<tr key={rowIndex}>
{
row.map((cell, cellIndex) => (
<td
key... | 068e0fb424bca358543153100c06f614d330ed64 | [
"JavaScript"
] | 8 | JavaScript | FooVio/game-of-life | 646845352049e91cd504989e6b4527a4c44d1b71 | 141400d62f145aac1bcc3d27aa1339eca7ca0fd5 |
refs/heads/master | <repo_name>furkankyildirim/sucheduleApp<file_sep>/utils/LocalizedStrings.js
// ES6 module syntax
import LocalizedStrings from 'react-native-localization';
// CommonJS syntax
// let LocalizedStrings = require ('react-native-localization');
export default Strings = new LocalizedStrings({
"en-US":{
how:"How do you ... | 09f69586c99470506147cd491587d2675810a3fc | [
"JavaScript",
"Markdown",
"Shell"
] | 9 | JavaScript | furkankyildirim/sucheduleApp | 476803c8032a0f81d5d0bbeff9c851f4b88f5973 | 05c2a917d4bb09b315ccab24a3319ef95fd2da87 |
refs/heads/master | <repo_name>willhains/patternotations<file_sep>/samples/com/willhains/patterns/samples/gof/decorator/Milk.java
package com.willhains.patterns.samples.gof.decorator;
import com.willhains.patterns.gof.*;
/**
* Decorator Milk that mixes milk with coffee
* note it extends CoffeeDecorator
*/
@DecoratorPattern.ConcreteDe... | d9f5df5a84a94cd785279e9c42dfa193264273c8 | [
"Markdown",
"Java"
] | 6 | Java | willhains/patternotations | 065a2661ba8428aaeb89ad23a379735473a0b84b | 083c02df3beb13ee13d2f67de398d4431d3d408f |
refs/heads/master | <repo_name>XeonHis/ADA_ass1<file_sep>/client/src/client/UI/Controller.java
package client.UI;
import client.Communication.Comm;
import client.messages.Message;
import client.messages.User;
import javafx.application.Platform;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import ja... | 72db7723641caf31ee6855a651753f3dfa938aad | [
"Markdown",
"Java"
] | 4 | Java | XeonHis/ADA_ass1 | 1f0529d5ad6cebc3bc1f391f632bbd784433f4d1 | c40a6c43e3036c4c119f25dd9b4e8ca2b2ec908c |
refs/heads/master | <file_sep>module.exports = function(grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: { // Task
dist: { // Target
options: { // Target options
sassDir:... | e6f7604970a22f454e6299b89c9faa83382a28d3 | [
"JavaScript",
"Markdown",
"Shell"
] | 3 | JavaScript | MrSleeth/vagrant-sassbox | 1cb39d6a9d2cd80c09c58db3b4af33daaea91cd7 | 929534a7faa6d5aea41634b2f8114815f5e38c18 |
refs/heads/master | <file_sep><?php
namespace DateTimeTest\Scheduler\Meetings;
class MidMonthMeeting extends MeetingAbstract
{
public function getMeetingDate()
{
// Set the 14th
$this->meetingDate->setDate(
$this->meetingDate->format('Y'),
$this->meetingDate->format('m'),
14
... | 4ef877122cd7d2d7a1ee9fb93a14c3d116660016 | [
"Markdown",
"PHP"
] | 12 | PHP | devboxr/datetime-test | 4e73cb15d890cbb57961ab4cada37f0890c5b7d8 | f574387ffc70ba69bd2eb8b9042996e32cf17cc2 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import './covidTracker.styles.css';
class CovidTracker extends Component {
constructor(){
super();
this.state = {
users: [],
search: ""
}
}
componentDidMount() {
fetch('https://corona.lmao.ninja/v2/... | 07699fff4800e56f5e5052bf58a7f1cecf084941 | [
"JavaScript"
] | 1 | JavaScript | bhumikasha/CovidTracker | b57d70d21ab43507ec03c3fe06ce9e34a682c8cd | 94cc4cb669122d3be22eafc83e044fa9aec05e3f |
refs/heads/master | <repo_name>ViniciusDeep/desafio-mobile-platform<file_sep>/desafio/Scenes/Advertisements/Domain/Interactor/ListAdsInteractor.swift
//
// AdsListInteractor.swift
// desafio
//
// Created by <NAME> on 27/06/21.
//
import ONetwork
protocol AdsListBussinessLogic {
func fetch()
}
final class AdsListInteractor {
... | 754c56c655cf0a4b38f662cd4c8c4f8ea64134e9 | [
"Swift",
"Ruby",
"Markdown"
] | 21 | Swift | ViniciusDeep/desafio-mobile-platform | 0fde443eb15a9df5b82ce57109106c372f582a4f | 93c6d188a5a2554d5d30591d7561a006fbd72561 |
refs/heads/master | <repo_name>magrossi/news_n_stocks<file_sep>/code/stock_downloader.py
import logging, datetime, time
import pandas_datareader.data as web
def download_stock_history(start_date, end_date, stocks, source='yahoo'):
start_total_time = time.time()
logging.info('downloading historical data from %s to %s for stocks %s... | a4bd67048a821548d9b73d9064d7518589f81a81 | [
"JavaScript",
"Python",
"R",
"Markdown"
] | 18 | Python | magrossi/news_n_stocks | 9eceff6d89b909f3240c02a52ac675d0b6fafc58 | db62ff1f38db9f0e797b7641f30e986d1ae9cbc4 |
refs/heads/master | <file_sep>package org.techtown.webbrowser;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.webkit.WebChromeClient;
import a... | f5f8637ea7f551dfc2b0f77897ccfa4312c6637f | [
"Java"
] | 1 | Java | ksy1231/WebBrowser | 5960969a779b27dcb7fca99bc25504ca54ea8095 | c55f29e4a69442b63027065bf630ff6c65ed4396 |
refs/heads/master | <repo_name>vanessasickles/urpg-theme-2020<file_sep>/README.md
# URPG WordPress Theme - 2020
This is the repository for the building of the new pokemonurpg.com WordPress theme.
## Setup (WIP)
1. Clone this repository to your desired folder using [Git](https://git-scm.com/), or a GUI for Git such as the [GitHub Desktop]... | 9ed77b08364e4855f87069fc96c21ffe9e5f27f3 | [
"Markdown",
"JavaScript",
"PHP"
] | 8 | Markdown | vanessasickles/urpg-theme-2020 | 42131f3e587bef8c11ace2e51dba16bd23f3b2df | 938fe48f5e5a23c52d1caa89417249112de4fd49 |
refs/heads/main | <repo_name>brunohlabres/ping-pong-os<file_sep>/pingpong-prodcons.c
#include <stdio.h>
#include <stdlib.h>
#include "ppos_data.h"
#include "ppos.h"
void consumidorBody{
while (1){
down (s_item)
down (s_buffer)
retira item do buffer
up (s_buffer)
up (s_vaga)
print item
t... | 31a98584fecea9ecbbb0834559a2e97bbf323dec | [
"Markdown",
"C",
"Makefile"
] | 13 | C | brunohlabres/ping-pong-os | a32892db86d47cdfedb88f009a4cb580aa0dbccc | a19c5fe09d7ddf06aface3e18230b92898b4fef1 |
refs/heads/master | <file_sep>package com.atmecs.readerlocation;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
public class ReaderLocation {
static Properties property;
public static Properties readLocation(String path) throws IOException {
property = new Properties();
FileInp... | 724b53127ce48118b6a62f66f00de68c1a344063 | [
"Java"
] | 2 | Java | Maheshprabha/automation | 9010091b0e7fead57622b4059b5a9ac6736d8fc5 | 64edb24e1de43cb0d277e60797b88984a66bc843 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package in.swapnilbhoite.projects.subtitlestudio.vlc;
/**
*
* @author <NAME>
*/
public interface VlcSdk {
VlcPlayer ... | 107722f72bc7793df2f4330938294a2d59e776ff | [
"Markdown",
"Java"
] | 9 | Java | MarkXLII/subtitle-studio | b9021b874a477256c16dbe20cf4c6d024733e731 | 3b61c79e69eb82fa0126f9d879730697d1e0654b |
refs/heads/master | <file_sep>#include <iostream>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <limits.h>
#include <set>
#include <stack>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#define mod 1000000007
#define INF 200... | 06778d9ffdc6bf4a0dc75073c62fc814704ffe32 | [
"C++"
] | 69 | C++ | AFGhazy/Library | 9ffe8a2b57eb6d6ca5b2822a66ddaecdc571ddd9 | 43b61322ed6e60e0351ea8a965c185d41df75ad6 |
refs/heads/master | <repo_name>OreyM/zsh-config<file_sep>/instr/Цветовое оформление консольного вывода.md
# Цветовое оформление консольного вывода
[https://habr.com/ru/post/319670/]
Кратко о том, как сделать для своей консольной программы или скрипта цветной вывод текста, а также дополнить его другими элементами оформления. Собственно, ... | 409ae8e8bb4ad2075d70a5a9a8be9343c997877a | [
"Markdown",
"Shell"
] | 3 | Markdown | OreyM/zsh-config | e519ab1dc2743dd12f6b8edbb8258bc25f26f280 | 5a2eec37090724e132071c7331d22bc15aa37032 |
refs/heads/master | <file_sep>const {
biggerIsGreater,
getSequenceStartIndex,
swapPivot,
reverseSequence,
} = require('./bigger_is_greater')
describe('bigger is greater tests', () => {
describe('permutation tests', () => {
test('string permutation 0', () => {
const str = 'dhck'
const expected = 'dhkc'
con... | 4bb9442664cf21719eb2491df51914de7165c271 | [
"JavaScript",
"Markdown"
] | 41 | JavaScript | mmaksymovych/training | 0fc0283dd6435173e9f491c8aaa4514c0f040100 | 7d8ac4b68f66c054db5d7f3cd6c551a38f63d453 |
refs/heads/master | <file_sep>import { Component, OnInit, OnDestroy } from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
@Component({
selector: 'app-caps',
templateUrl: './caps.component.html',
styleUrls: ['./caps.component.css']
})
export class CapsComponent implements OnInit, OnDestroy {
public id: numbe... | 3b138b9a29ce4a7802acb3d61b5646eb4219c658 | [
"TypeScript"
] | 1 | TypeScript | coolJenny/front | c3cf759ccf33f763b236390c89d45605b7e6cfb4 | 56bd835303028ba3a7759e9cae646f6b511a6f6c |
refs/heads/master | <repo_name>aliceas2/Tidy-Data<file_sep>/run_analysis.R
## Fetch
# Read in test data
x_test <- read.table("./data/UCI HAR Dataset/test/x_test.txt")
y_test <- read.table("./data/UCI HAR Dataset/test/y_test.txt")
subject_test <- read.table("./data/UCI HAR Dataset/test/subject_test.txt")
# Read in train data
x_train <- ... | 25742e2c0f66deb112cc3839c88e39a26eea53c7 | [
"Markdown",
"R"
] | 3 | R | aliceas2/Tidy-Data | acc077b9e2294971dd571847f6426838c9127930 | cba3d1214843108c9a724afa5f7ac8f008a0e96e |
refs/heads/master | <file_sep>#' robustODE function
#'
#' @export
robustODE <- function(LS, init = initPars, crit.Tukey = 0.01, crit.huber = 0.05, optim.ctrl, resODE, maxit = 10) {
environment(LS) <- environment()
if (missing(resODE)) stop("Provide function to calculate residual")
## ====================================================... | 6f5ab83b53b585087cb5c238e5f57be919c29168 | [
"Markdown",
"R"
] | 7 | R | rdditdo/CleanTheWeb | 55890306f350585e1974d539f5dfd5425824fe66 | 1ffa1be4dc2ca85c73053f6e4fdf9f3cc86c2604 |
refs/heads/master | <repo_name>jjohnstz/BeerFacts<file_sep>/BeerFactsTests/TestHelper/Beer+TestHelper.swift
@testable import BeerFacts
extension Beer {
static func testMake(name: String = "", tagline: String = "", description: String = "", image_url: String = "", target_fg: Double = 0.0, target_og: Double = 0.0, ebc: Double? = nil, s... | aeab964ebf19b2fa60baa72defb756ca0713ed6d | [
"Swift",
"Ruby"
] | 38 | Swift | jjohnstz/BeerFacts | b861eb26162c8123118ce72aeeacb0d69a59d9a1 | 2d556f8b101ec1bf479972b31a8ede000a81685a |
refs/heads/master | <file_sep># Maintainer: <NAME> (<EMAIL>)
pkgname=ttf-inconsolata-g
pkgver=20090213
pkgrel=3
conflicts=('ttf-inconsolata-g')
provides=('ttf-inconsolata-g')
pkgdesc="Monospace font for pretty code listings and for the terminal modified by Le<NAME> (http://www.fantascienza.net/leonardo/)"
url='https://github.com/justinwa... | 507ea269eddf6553722feb2eba8ead527cbdddc4 | [
"Shell"
] | 1 | Shell | justinwwalker/ttf-inconsolata-g | 4c4342612a750a3da241469b836b71c3b381a785 | cac9618acde888664ffd46623dbc0a8fa7698361 |
refs/heads/master | <repo_name>KevinAS28/Python-Training<file_sep>/helloworld.py
#!/usr/bin/python3
import random
print(random.randint(5, 10))<file_sep>/test_mod0.py
import test_mod1
print("Test mod 0")
<file_sep>/tes_zip.py
import zipfile
with zipfile.ZipFile("oke", mode="w") as oke:
oke.write("solo1.py")<file_sep>/latihan_matplo... | 062478b4ae30d2b3f1b65f340953bd919be68fed | [
"Python"
] | 84 | Python | KevinAS28/Python-Training | 2da3c18842071789a6e7e116b58d1ef407b35a5b | af7c162ee86ffd5d89cce60e9b2db98b4d65a21d |
refs/heads/master | <file_sep># AutoUpgrade.Net
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AutoUpgrade.Net.Release
{
internal class ConfigTextProperty : TextBox
{
#region 变量
... | 3500e248e8f5b39ae28fbf010994da6dcca4d2a1 | [
"Markdown",
"C#"
] | 41 | Markdown | ft9788501/AutoUpgrade.Net | bab4d3c3b0aa16177b783ff45f00f8f68268edd0 | 47122626b6197954061a664aaea1a22aabd8fd15 |
refs/heads/main | <file_sep><?php
include("../includes/db_con.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="apple-touch-icon" sizes="57x57" href="../favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="../favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="..... | 24ad580a04cd4f3eb6b7d289a8774767e09e4024 | [
"Markdown",
"SQL",
"PHP"
] | 27 | PHP | dev-ted/employee-management-system | 214f2f13ff23fc2341e0213dce26d533d320438d | 46ea8545ded6807b71d987e86ed6b80717872345 |
refs/heads/master | <file_sep>package com.bdpatron;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class FamiliarDAO implements DAO<Familiar> {
stati... | 74b1ca49123224d91b6216f0b6872ec5fff9f893 | [
"Java"
] | 7 | Java | Samuel-SnD/Acceso_a_Datos | 76bed54af6bb0f337d1e2d7157e5595afb161154 | 250f985ecc28ccbc9c6a04aa60a287baec840ef9 |
refs/heads/master | <file_sep>import cv2
from torchvision import transforms, utils
import pickle
import os
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader
import pandas as pd
import scipy.misc
from random import random
def center_crop(img, target_size=224):
shape = img.shape
min_l = np.min(shape... | 6ecbdcc74088d296387bb9ad1e48b7b7a1bba53e | [
"Python"
] | 4 | Python | WongChen/kaggle-dogbreed | e413cf7465d649563bff98ac51256b3b1b983028 | 8159556201e9b51d17700ce4bc44d543ae8d8276 |
refs/heads/master | <repo_name>takumab/f_m_s<file_sep>/spec/controllers/static_pages_controller_spec.rb
require 'rails_helper'
RSpec.describe StaticPagesController, :type => :controller do
describe '#POST' do
it "routes to /static_pages/thank_you" do
expect(:post => '/static_pages/thank_you').to be_routable
end
end
end<file_s... | e69bbbe902170ae8ee0d92777bc8a753b5a74369 | [
"Ruby"
] | 13 | Ruby | takumab/f_m_s | 122c409e9133c8857b6e178bb1f4b157a8755dad | cf7bc0dc9847177fff9d3d58fb109fe2fc647bda |
refs/heads/main | <repo_name>Jaumz/Checagem_senha<file_sep>/js/jquery.js
/*window.onload = function() {
if (window.jQuery) {
// jQuery is loaded
alert("Yeah!");
} else {
// jQuery is not loaded
alert("Doesn't Work");
}
}
*/
$(document).ready(function () {
$('#txtPassword'... | 857b2c9206fcd9480eb25e6dba887642c71600fb | [
"JavaScript"
] | 1 | JavaScript | Jaumz/Checagem_senha | 32283650ead42e00a9bf7ac66daa672fa01d6d2a | 129d627c073a23c037c19692899a82201ca0e5e3 |
refs/heads/master | <file_sep># sensor-dashboard
<file_sep>import time, requests
from random import randint
# http://localhost:5000/update
def run():
r = requests.post("http://smartmetropolis-dashboard.herokuapp.com/update",
data={'sensor1': randint(1, 100), 'sensor2': randint(1, 100), 'sensor3': randint(1, 100... | 7d45093ce544e2cbc2fd5e7632b16ceb029f6df8 | [
"Markdown",
"Python"
] | 3 | Markdown | gabicavalcante/sensor-dashboard | 23cf0990d737258b1599f65d881d2fab9d303060 | 849503a00057657a7120dcc7626f8b8792e79225 |
refs/heads/master | <file_sep>import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
class PythonOrgSearch(unittest.TestCase):
def setUp(self):
chrome_options = Options()
chrome_options.add_argument("--no-sandbox")
c... | 1bbeb8677e25960ab827ad30c446d81192f75ed9 | [
"Markdown",
"Python"
] | 2 | Python | Krishnamurtyp/selenium-webdriver-example | aca6df4f4607e77870f28675e97f0e43e6208b71 | 764d156b5663066f4db1463cb415eeff6b6e5c9f |
refs/heads/master | <file_sep>from django.http import HttpResponse
def index(request):
return HttpResponse("hello world your at poll index")
| 094692d7097d1a450debc10e04fd6bf170d49c50 | [
"Python"
] | 1 | Python | shivapyin/polls | 874ae7df97d0978a56ba3749bf7ebe0224b3eba9 | f748705e5a21658098f2b56662988e619c7a1968 |
refs/heads/master | <file_sep>Vue.config.devtools = true;
const vueApp = new Vue({
el: "#app",
data: {
inputSearchText : "",
inputTextMess : "",
activeOpacity : null,
activeChat: {
name: "",
timesent : "",
avatar : "",
messages_list : []
},
users_list: [
{
name: "Michel... | d65d954c390c5035cd322259c9db569eeb6d5687 | [
"JavaScript"
] | 2 | JavaScript | tastytim/vue-boolzapp | 95258da0d706f6e437949e9fb2a9eb429eb95da7 | 435333599e0e8e7f719eabcae4c423444f8eec2c |
refs/heads/master | <repo_name>vishakha111/movie_rental<file_sep>/src/component/movieform.jsx
import React, { Component } from "react";
class MoviesDetails extends Component {
handleSave = () => {
//Navigate to /moviess
// this.props.history.push('/movies');
this.props.history.replace('/movies');
};
render() {... | 810666e9da27415b3aad6d105a65341284a8b2d2 | [
"JavaScript"
] | 2 | JavaScript | vishakha111/movie_rental | b44894065df9d6f817e50295b59d913927a2cb4b | a4eedafc6d2bd198cd93b11b9b29cab1e7aa694f |
refs/heads/master | <repo_name>magidmroueh/scout-apm-laravel<file_sep>/src/Listeners/QueryExecutedListener.php
<?php
declare(strict_types=1);
namespace Scoutapm\Laravel\Listeners;
use Illuminate\Database\Events\QueryExecuted;
use Scoutapm\Laravel\Database\QueryListener;
use Scoutapm\ScoutApmAgent;
use function microtime;
class QueryEx... | bf13dfd23c9f82dce6d4415d7bcf1de216088372 | [
"PHP"
] | 2 | PHP | magidmroueh/scout-apm-laravel | 31b22e9be90fedfea867ffc0d01b21ee479827e1 | 8e0d03eea822ee62f73caa87dc84fa43bb7675a7 |
refs/heads/master | <repo_name>fikisyihab72/WebFilm-Codeigniter<file_sep>/application/controllers/Mahasiswa.php
<?php
/**
*
*/
class Mahasiswa extends CI_Controller // Mahasiswa = harus sama dengan nama file // enxtend tergantung kegunaan class CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model(... | 69304ba43b177485c04974bd3bcde8f8c6eb5518 | [
"PHP"
] | 9 | PHP | fikisyihab72/WebFilm-Codeigniter | b5fdfec6d7a97e866bd3a8a530aac43afd18e1af | c2b6df1b8c67c15e21b2a928b635a44f35a59e6b |
refs/heads/master | <repo_name>yzxdmb01/Weather<file_sep>/app/src/main/java/com/jr/weather/bean/RequestParams.java
package com.jr.weather.bean;
import android.net.Uri;
import android.util.SparseArray;
import java.io.File;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* //请... | 64810dc29ec9ab98899855bcdbf49b7c84d3bf60 | [
"Markdown",
"Java"
] | 3 | Java | yzxdmb01/Weather | afae049f15950885a9215b310b72b993e23e58c1 | 422ceddd1202ea6f253ac36897eb22730b73fd86 |
refs/heads/main | <file_sep>library("optimbase")
mytranspose <- function(x) {
if (is.vector(x)== T ){
y <- transpose(x)
}
else if (is.matrix(x)==T){
y <- matrix(1, nrow=ncol(x), ncol = nrow(x))
if( ncol(x) == 0 || nrow(x)==0){
return(x)
break
}
... | 3bdfe4684cebbc7604e512474f2a38f512b2feef | [
"Markdown",
"R"
] | 3 | R | Vic-eun/CRP_hw_skylee | c34d31e3c3ae9617ffd86162eeaa79d9c170dc94 | fd86513ff33c40cf6a55f0bbcde1672178414ad5 |
refs/heads/main | <file_sep>var a = 0;
var q2 = () => {
a = 5;
console.log("ini child scope: " + a);
}
q2();
console.log("ini root scope: " + a);
(a==5) ? console.log("true") : console.log("false");
var angka = [1,2,3];
var dobel = angka.map(function(num){
return num;
})<file_sep># Praktikum_RPLBK
| 9757923e40fdf94471daa9ce63ca97a6038e02cd | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ahmadhufron/Praktikum_RPLBK | ce92b2200fcef890fb7c0805a025603f3cf0d4cf | 0a9a46e57511f827160dbde5d1ccc476290a2b32 |
refs/heads/master | <repo_name>leviharbin2/Java<file_sep>/Link lists and queues/MyQueueTester.java
package assignment3;
public class MyQueueTester {
public static void main(String[] args) {
MyQueue<Integer> myQueue = new MyQueue<>();
myQueue.insert(5);
myQueue.insert(7);
myQueue.insert(9);
myQueue.insert(12);
my... | 6894fca74969c0d8154c0d42471f54cfea219b7e | [
"Java"
] | 18 | Java | leviharbin2/Java | d3ab45045189f419f2a1daf00c84a5d69a426032 | 4daffd3a5d9779675567f1b9c9ad83a213f2fe4c |
refs/heads/master | <file_sep>const url= 'https://app.fillgoods.co/login'
describe('login to fillgoods',() =>{
it('visit fillgood.co', function(){
cy.visit(url)
})
it('Input username', function(){
cy.get('input[data-testid="emailInput"]').type('<EMAIL>')
})
it('Input password', function(){
cy.get('inpu... | e4703d69b212007baec2a68d22a3cde8eff86fce | [
"JavaScript"
] | 2 | JavaScript | Nattawat-Sirirat/test-cypress-fillgoods | 2b2164ae5c742f782526859e15afa63221bb44f8 | 2253da8713b425b7255d5d18bbbab40f7c75e826 |
refs/heads/master | <repo_name>AlfiyaU/vge<file_sep>/vge/window.h
#ifndef WINDOW_H
#define WINDOW_H
#include <QMainWindow>
#include <QWidget>
namespace Ui {
class Window;
}
class Window : public QMainWindow
{
Q_OBJECT
public:
explicit Window(QWidget *parent = 0);
~Window();
public slots:
void openFile(const QStrin... | 93caa2e63e2b479731f7e7343e72c47717447afa | [
"C++"
] | 5 | C++ | AlfiyaU/vge | f3a093183a917a4109e2188cfa96cf0d71ef25de | eb2a29f9cf0c76ce5df1e93ce66db3ed86ee7b47 |
refs/heads/master | <file_sep>package com.itshareplus.googlemapdemo;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
... | 39bcca603b142e13a4b4497458d1287e9d6dd673 | [
"Java"
] | 1 | Java | nowaynoway402/noWay | 5f00ed27034b74a77ca9c12b8e71a48aae75c0bf | 70ed67a580b128ef2d70012308a235f300375353 |
refs/heads/master | <repo_name>WilliamMoller/Webbserverprogrammering<file_sep>/Uppgifter/login/submit.php
<?php
$dbc = mysqli_connect("localhost","root","","users");
$FirstName = $_POST['Fname'];
$Password = $_POST['psw'];
$query = "SELECT * FROM form WHERE First_Name='$FirstName' AND Password='$Password';";
mysqli_query($dbc,$... | d5cf68fbef9fceb59d01ae119644a341c6959273 | [
"PHP"
] | 2 | PHP | WilliamMoller/Webbserverprogrammering | 1da4d72689ceda0d3ad015c651227960a347d40e | 3890b07785663157438384a89ededaf1eef3b134 |
refs/heads/master | <file_sep>main: main.go
go build main.go
clean:
rm main
<file_sep>package main
import (
"fmt"
"html/template"
"net/http"
)
/* Server will be available on localhost:port */
var port = 4321
/*
* Initialize request handlers and begin listening for requests.
*/
func main() {
http.HandleFunc("/", index)
http.Ha... | 4bccce42c0bad1ed83de7f7f8d52414382dc7f9d | [
"Go",
"Makefile"
] | 2 | Makefile | thomed/go-web-template | cff4f45d92d26025718315697f8ecb7738f01535 | 3f52a14ea0dd0545e43baa1ecc1ac573a69f08c0 |
refs/heads/master | <repo_name>AdnanLapendic/workspace<file_sep>/ba.bitcamp.week11/src/ba/bitcamp/week11/day5/vjezbe/Server.java
package ba.bitcamp.week11.day5.vjezbe;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.eve... | b8fc17846a0dad87ad9ee85ad8396e483ada074c | [
"Java",
"INI"
] | 103 | Java | AdnanLapendic/workspace | c1b15b6e94cb86dec431105939934c2554cd32c4 | 4a86920209f6227ca0f409ef4fd06afddb11e581 |
refs/heads/master | <file_sep>using System;
namespace myProjectApp.Core.Model
{
public class Account
{
public int AccountId { get; set; }
public string AccountDescription { get; set; }
public int AccountStatus { get; set; }
}
}
<file_sep>using System;
namespace myProjectApp.Core
{
class Program
... | 5539eb9e8779ca9b0e97108dcf789ba7bb917583 | [
"C#",
"Dockerfile"
] | 15 | C# | SophiaPogka/myProjectApp2 | 83d7fd7da8219d9bac275b96822e258f330890ba | 676415d61b7583fcc58454af88822cbe031b0fba |
refs/heads/master | <file_sep>#__________________________Jogo__da__Velha__________________________________
#A variável "jogar" permite ao usuário escolher
#continuar jogando indefinidamente ou sair do programa
#__________________________________________________________
jogar = str(input('Digite J para jogar ou S para sair: '))
while jogar... | 023262be151ee2d0cfdb34ecc8ebc4cdff0b4241 | [
"Python"
] | 1 | Python | stefanie-bevilaqua/jogo-da-velha | 7fcd763bb3a03f1a2614b96db3b03bd12e1cb4bd | 350a2ca18654363d38758032232cffb6ed6791fb |
refs/heads/master | <file_sep># rookalkar.github.io
<file_sep> L.mapbox.accessToken = '<KEY>';
var new_map = L.mapbox.map('map2', 'initdot.ljplbdcp').setView([21, 80], 4.5)
var map = L.mapbox.map('map1', 'initdot.ljplbdcp').setView([21,80], 4.5),
// color reference from color brewer
mapBrew = ["#edd997",'#E... | 1c1cadc2ffc25234f5a09aa82b9722e65ef600b4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | rookalkar/old-rookalkar.github.io | 98f22df3ea192a2a95b765784b668e2c6a6a5a43 | 00892ff3435164bd15c9c00dc9b8a8878e5dff84 |
refs/heads/main | <file_sep>const useOverlay = () => {
const animation = {
exit: {
opacity: 1,
pointerEvents: "unset",
visibility: "visible",
overFlow: "hidden",
transition: { duration: 1, ease: "easeOut" },
},
exitImg: {
opacity: 1,
pointerEvents: "unset",
transition: { dura... | cd41ea162684fde4b98ded2d6fb4e9505194681c | [
"JavaScript"
] | 11 | JavaScript | LordTricto/TestSite | 070f0450f050c02c064f534e27d60152003594dd | 80ff0d393785b6681f895d75254161ff46e22c49 |
refs/heads/master | <file_sep>from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Location(models.Model):
user = models.OneToOneField(User, primary_key=True)
latitude = models.DecimalField(max_digits=13, decimal_places=10)
longitude = models.DecimalField(max_digits=13, decimal_plac... | 65a46b7102cc878688d6f69fc47dbe835c6ccb7c | [
"Python"
] | 3 | Python | Yasserius/firstdjangoproject | 856db0bb7b3d9a6788a88d5cfe294305f9a52aa4 | 9fadacf9e023b080a38d730c856488219b7c02d9 |
refs/heads/master | <file_sep><?php
$portrait1 = array('name'=>'Victor', 'firstname'=>'Hugo', 'portrait'=>'http://upload.wikimedia.org/wikipedia/commons/5/5a/Bonnat_Hugo001z.jpg');
$portrait2 = array('name'=>'Jean', 'firstname'=>'de La Fontaine', 'portrait'=>'http://upload.wikimedia.org/wikipedia/commons/e/e1/La_Fontaine_par_Rigaud.jpg');... | 0b94dbd9f8df28f95300f190f490e464899a26a9 | [
"PHP"
] | 1 | PHP | RyanElr/Php-Part10 | 1f9f3b39c3e2ea50d3e69df555281f47daf4a4f1 | c721b8119ccb7e8284fb3323ce69a7760a0a9913 |
refs/heads/master | <file_sep>import java.util.Random;
import java.util.ArrayList;
import java.util.List;
import java.lang.StringBuilder;
import java.io.*;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
public class Stock {
public static void main(String[] args) {
int count = 10;
int maxCycles = 50... | 291fa20b227352883d9f639e005065bf243bc4af | [
"Markdown",
"Java",
"Gradle"
] | 8 | Java | rolledback/StockTrader | 4c45b0aeeafe5bc7b182b3f6e77d9f4a825d0240 | c3f21c7f61a37518ce06ef55e90b02779845ff0d |
refs/heads/master | <repo_name>yansanz/project-maven-eclipse<file_sep>/src/main/java/fr/afpa/jeelibrary/model/Person.java
package fr.afpa.jeelibrary.model;
public class Person {
private String lastName;
private String fisrtName;
private int id;
public Person() {}
public Person(int id, String lastName, String firstName) {
thi... | 92a7adf7a7b31525c7d9ed0d2a3865ab7d87dcd3 | [
"JavaScript",
"Java"
] | 6 | Java | yansanz/project-maven-eclipse | e883e5aca0d03d15742df7f91fdcf9133b848744 | fd5bb690ccdc8d8703e6d36c48e50c63a7c4cbb5 |
refs/heads/master | <repo_name>pasadinhas/so-project<file_sep>/tests/test_kos_single_threaded_put_get_remove_put_dump.c
#include <kos_client.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NUM_EL 100
#define NUM_SHARDS 10
#define KEY_SIZE 20
// #define DEBUG_PRINT_ENABLED 1 // uncomment to enable DEBUG statement... | 46adcafe4fc81e593a4164a9449ddc332996876c | [
"C",
"Makefile",
"Shell"
] | 21 | C | pasadinhas/so-project | adffad39394182b4fc21b3fb5f52f0626b7e1f7f | 483c75fd50147737ce66cfb93eb2e7d4c708b837 |
refs/heads/master | <repo_name>supriyd/Scraping-Lion-Air-Reviews-on-TripAdvisor-with-R<file_sep>/README.md
# Scraping-Lion-Air-Reviews-on-TripAdvisor-with-R
ulasan pelanggan merupakan hal penting bagi perusahaan terutama dalam bidang jasa, hal ini menjadi tolak ukur seberapa maksimal usaha yang telah dilakukan untuk memberikan pelayanan t... | 99e9855e8d64c55880a42f0b7d901e40c9b475f9 | [
"Markdown",
"R"
] | 2 | Markdown | supriyd/Scraping-Lion-Air-Reviews-on-TripAdvisor-with-R | 020821f2156c5329be74dba45b2769fe34653a10 | a11af29f2210950e61b4970679e5ad25a24f74ff |
refs/heads/master | <file_sep>infix fun Array<Int>.dot(another: Array<Int>): Int {
if (this.size != another.size) throw IllegalAccessError("It isn't same shape")
return this.foldIndexed(0, { i, sum, v -> sum + v * another[i] })
// reduceIndexed start at 1 not 0 @A@#
}
fun main(args: Array<String>) {
val a: Array<Int> = a... | 517cc6e05f422a265fee96aeb61ea674b5a69f7d | [
"Kotlin"
] | 7 | Kotlin | zhufuge/kotlin-demo | bbb3251c18cf400f1da3166a9d1049c6e074598f | 0131ecf699fe6c5a82468bb27f3e935ba18773ea |
refs/heads/master | <file_sep># i2psnark-desktop
Desktop files for i2psnark
<file_sep>#!/bin/bash
# Add url to i2psnark
# by <NAME> <<EMAIL>>
# Define i2psnark URL
i2psnark="http://localhost:7657/i2psnark/"
# Get the secret nonce from i2psnark
# curl -s = silent
# use tail to skip nonce from messages
nonce=$(curl -s $i2psnark | grep "... | 5fb5ad6131ee430f1b81d7b249411de1c5189aa7 | [
"Markdown",
"Shell"
] | 2 | Markdown | mattias-ohlsson/i2psnark-desktop | a552f879b1a25ff45511155f2800e1f0e1f87e61 | 0fd0cccf919e315ee4ac8760761fd8dd51ed0207 |
refs/heads/master | <repo_name>QGfcc/Calculator<file_sep>/js/main.js
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function state() {
var lastVal = undefined;
var curVal = undefined;
var input =... | 4d7b6773a5228951b4fe6ce50f844412cd271983 | [
"JavaScript"
] | 1 | JavaScript | QGfcc/Calculator | 32ced7c804b3ae5963e72b8708aabcc32f9a9961 | 3cc82167ea9bff97c72feea889521361d9df232f |
refs/heads/master | <repo_name>inteGerVariable/land.github.io<file_sep>/script.js
var color1 = "#2c2b3e"
var color2 = '#21212f' | 9019530cef62478a49d75a54c595af1978c67c4d | [
"JavaScript"
] | 1 | JavaScript | inteGerVariable/land.github.io | 96017ef16f4675134a93f3e765e77a9955ad0c17 | ef79739aa1baaf0c4c68d5b43cb7b19439b4c527 |
refs/heads/master | <file_sep>var counter = 0;
$(function() {
console.log("I am here!");
$("#btnSubmit").click(function() {
var guessMe = $("#guessMe").val();
var btnValue = $("#btnSubmit").val();
if(btnValue.match(/^([\d])((?!\1)[\d])(?!\2)((?!\1)[\d])(?!\3)(?!\2)((?!\1)[\d])$/)){
$.ajax({
url : "Solver",
data : {
... | 5700332fdbbc0e8b0328d95b4bfacd65b8c70db9 | [
"JavaScript"
] | 1 | JavaScript | romiezaw/Guess_Me | 033dadbe03108fa7f210da19e797a50051074b3b | 02a842799bcd7ee90c7d0cb1181f317243c75e99 |
refs/heads/master | <repo_name>PedroGusso/simple-assembler<file_sep>/src/assemble.py
import sys
import re
opcodes = {}
regcodes = {}
def loadOpCode(filename):
opCodeDict = {}
with open(filename, "r") as opCodeFile:
for line in opCodeFile:
splitted = line.split("|")
opCodeDict[splitted[0]] = spli... | 772c67203d28095b9c6ebe0dd1fb442410ffec66 | [
"Python"
] | 1 | Python | PedroGusso/simple-assembler | 83cbb6a1a52d143c8f6d88ec7387349491ea7e75 | bb95a5a1edc6dbff357c7060b317bbaff388e9d0 |
refs/heads/master | <repo_name>JAlbizures/runnable<file_sep>/app.js
//declaración de variables
var express = require('express'),
app = require('express')(),
http = require('http').Server(app),
port = process.env.PORT || 3000,
io = require('socket.io')(http),
mongoose = require('mongoose'),
bodyParser = require('body-parser'),
cooki... | 6c629081d43e7591c5b5511baa389a6f408f5ec0 | [
"JavaScript"
] | 8 | JavaScript | JAlbizures/runnable | 543ee3ac4fcf86c1711804a29b5ea9f14bc4616f | 171d27afbbfe04952d95b0c05dd455842f9661df |
refs/heads/master | <repo_name>M-Onitsuka/robot-programming<file_sep>/dxl_armed_turtlebot/scripts/test.py
#!/usr/bin/env python
import rospy
#import Python client API for ROS
from opencv_apps.msg import RotatedRectStamped
#import RotatedRectStamped which is subscribed by ?
#Motion Analysis Nodes of opencv_apps.msg ?
#using camshift algor... | 7c8b2a0d285ee01b4955dad046682298bb3b0e76 | [
"Python"
] | 1 | Python | M-Onitsuka/robot-programming | da0afde0d09af62902e340ff384dafc0209ce5ff | 0f21e6957a7b9ce0d254c1292912b61e6ad3b029 |
refs/heads/master | <repo_name>vlasy/jest-test<file_sep>/dummy.test.js
test('server run', () => {
console.log(require.resolve('passport'));
});
| dbfe45835a6c69db8d23c0e4994cc7097f1cd0df | [
"JavaScript"
] | 1 | JavaScript | vlasy/jest-test | 130073d52e603ed5eaa8aa1ac140a15a4ad9a871 | 271bbaf61650547ebbe3abaa82807e6b5b0e538e |
refs/heads/master | <repo_name>bmoers/playground<file_sep>/springsecurity/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ch.ras... | 2ec92a3352884a428f400e34a4b75d4195521a6c | [
"Java",
"Maven POM"
] | 10 | Maven POM | bmoers/playground | ad25ff49f0dc56969588b5a59169952271a6381d | d7d2f5af27123f18575999e133d96dbf11b71146 |
refs/heads/master | <repo_name>BlakeShortland/GAM111.2<file_sep>/Assets/Scripts/GameController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameController : MonoBehaviour
{
[System.Serializable] struct Player
{
public int health;
public int damage... | b4ac0a8fd6f9a55a66e2f5e69945eae7bc9256bc | [
"Markdown",
"C#"
] | 10 | C# | BlakeShortland/GAM111.2 | 2eb8ffe674b42bafc4be4b9f7b418438ce9f9f96 | ab866aa2529355b7588e14049c2ab7f3612b5d8d |
refs/heads/dev | <repo_name>EFF/webargs<file_sep>/dev-requirements-py3.txt
-r dev-requirements.txt
aiohttp>=0.21.0
webtest-aiohttp==1.1.0
<file_sep>/tests/test_aiohttpparser.py
# -*- coding: utf-8 -*-
import webtest_aiohttp
import pytest
from tests.common import CommonTestCase
from tests.apps.aiohttp_app import create_app
class Tes... | 6dd138d041dab1cdefb96a45f9d4387a8003bc42 | [
"Python",
"Text"
] | 3 | Text | EFF/webargs | 599b7abebd9b2abb7e91db516537fe2f278e00fa | 70f9d5ee1f33d0b63c7a63f2cc2331f20c499f6a |
refs/heads/master | <file_sep>log("--> Running ajax.ts")
match($path) {
# Match the Ajax path
with(/CrossSellAjax/i) {
$(".//dl") {
name("dll")
}
}
}
# needed for product images
# replace("%24", "$")
# replace("&", "&")<file_sep>$('./body') {
insert_top("header", class: "mw-header") {
insert("a"... | 75679637613108449ab1beb2bf0ca959e6debcd8 | [
"TypeScript"
] | 3 | TypeScript | moovweb-projects/lifetech-training | c5c7b56bf7b60deffe602e84ebb53436605e2495 | 894261555ce5dc57c7dc37e04ebaea36bda3793b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.