branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import React from 'react';
const MovieListEntry = (props) => (
<div>{props.movie.title}</div>
);
export {MovieListEntry};<file_sep>import _ from 'lodash';
import ReactDOM from 'react-dom';
import React from 'react';
import App from './components/App.js';
import {movieList} from '../data/exampleData';
... | c7e9fc45c73dea7994e4a31510e483cd2d87c782 | [
"JavaScript"
] | 3 | JavaScript | Pfdiamond13/movies_list | 5551e32edd9c99cf084412b5001f3fc2d8b974d8 | 40f24700da590f58ad62ed5c8370034f5dd00603 |
refs/heads/master | <repo_name>murlinochka/ICT<file_sep>/15.py
foot = int(input("Input distance in feet: "))
inc = foot * 12
y = foot / 3.0
m = foot / 5280.0
print("The distance in inches is %i inches." % inc)
print("The distance in yards is %.2f yards." % y)
print("The distance in miles is %.2f miles." % m)<file_sep>/task 4/7.py
... | bfe8197448629be2654705a916743c5a4b9ff533 | [
"Python"
] | 67 | Python | murlinochka/ICT | 87cbeb82a70b3a5267f7d302fcf1a3fc9ed4dbcf | 6264aacdf7f1cfbc84ed95d5756fceb420a00134 |
refs/heads/main | <file_sep>package com.seecen.day01;
/**
* @program: javaOOP_Re
* @Author: <NAME>
* @Description:
* @create: 2020-11-23 16:01
*/
public class Cat {
//1.将属性私有化
//2.留出属性对外的访问接口
//3.在对应的方法里添加控制语句
private String name;
private String color;
private String species;
private int ... | 6fa2aac7ec8f0ca16fe0b0024f5981a0eaecf285 | [
"Java"
] | 3 | Java | LoveITTECHNOLOGY/javaweb-third | 87bf9918d5accc5d9351e2fbcf092494c5349061 | f30b4c15fe4118f8aa82c23df7f091f39be14b7a |
refs/heads/master | <repo_name>SoftmedTanzania/rucodia_backend<file_sep>/database/seeds/DatabaseSeeder.php
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call([
Levels... | 302b7571ca4d932a4beff11f25ecfa117dacc2d5 | [
"Markdown",
"SQL",
"PHP"
] | 51 | PHP | SoftmedTanzania/rucodia_backend | 011e9bb03e4f5cf5e091a240845d669c6ac5919d | 239bd2adc5ad949f252c920eee809aa785ee9c5c |
refs/heads/master | <repo_name>Milliss/algorithms<file_sep>/GAMEobject/starcount.cs
using UnityEngine;
using System.Collections;
public class RangeCount : MonoBehaviour {
private int startValue = 0;
private int endValue = 0;
private int nowValue = 0;
public RangeCount(){
}
public RangeCount(int startValue, int endValue){
Se... | 8bfca68bb448315cb8540640371a63a92a71b6e6 | [
"C#",
"C",
"C++"
] | 7 | C# | Milliss/algorithms | 597f578f1178d44ed48ae6ea3e434dd58ce006b3 | c3fab57c572881cfef7b7299e9c7fe586f47fa7e |
refs/heads/main | <repo_name>Tlacaelel97/Diabetes_prediction<file_sep>/utils.py
import pandas as pd
import joblib
from sklearn.model_selection import train_test_split
class Utils:
def load_from_csv(self,path):
return pd.read_csv(path)
def load_from_mysql(self):
pass
def show_info(self,data):
prin... | 266e3eaffe44a5722fe0f85c6e28a15f707627f2 | [
"Markdown",
"Python"
] | 4 | Python | Tlacaelel97/Diabetes_prediction | 7034b0e84264ee0a07ff66a1d45d74e1f21d5811 | 571d120b4ba1575689897617fe63f2b91cd5fadc |
refs/heads/master | <file_sep>(function(){
var app = angular.module('bookApp', ['firebase'])
}())<file_sep>(function(){
angular.module('bookApp')
.component('booksComponent', {
templateUrl: 'app/components/books.html',
controller: BooksController
})
function BooksController($firebaseArray) {
... | 42f4d9038f003cd3410fb7a39484bad1b951a55b | [
"JavaScript"
] | 2 | JavaScript | JECII/book-app | 4770143d4b8ba2a39c4e396588a1129fc360260d | 0d453d9a2e0c99f2aba6f462dfdf1b1fdbd4f8da |
refs/heads/master | <repo_name>k-chen8888/AstralProjector<file_sep>/Assets/Scripts/DeathPause.cs
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class DeathPause : MonoBehaviour
{
public static DeathPause S;
/* A GUI Death Message */
private Canvas self;
p... | 739a108e91af63275c350f7ea639b513edc58177 | [
"Markdown",
"C#"
] | 6 | C# | k-chen8888/AstralProjector | 40f2209b203c320dd3738cf4a6b628cc9b8f4b2c | 0e04510f0940b97e7042ac8435b0294126ed57a7 |
refs/heads/master | <file_sep>/**
* Creates the gcloud SDK release URL for the specified arguments, verifying
* its existence.
*
* @param os The OS of the requested release.
* @param arch The system architecture of the requested release.
* @param version The version of the requested release.
* @returns The verified gcloud SDK relea... | 5bd2ed70011d66d893cd97b1470911e8cd2d3e95 | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | hasimyerlikaya/setup-gcloud | e647fdc963db695d93c2ec13e65fd4acc2471ec3 | 547f3376609bb9b3cd0a8783f49783c4fcd8c157 |
refs/heads/master | <repo_name>azat385/rClock<file_sep>/getMC.py
# -*- coding: utf-8 -*-
import memcache
mc = memcache.Client(['127.0.0.1:11211'], debug=0)
data = ["CO2", "T", "ts"]
value = mc.get_multi(data)
for k,v in value.iteritems():
print "{} = {}".format(k,v)<file_sep>/mbClient.py
# -*- coding: utf-8 -*-
"""The most basic ... | 23c5e1406fa234cd0e83db57389da8626c5d3283 | [
"Python",
"Shell"
] | 9 | Python | azat385/rClock | d0cdb3fe9054b3272dbdeebd1b42f7b7cfb9e840 | 3311517ceb6e8c46a6561b61bf240d17d119dabf |
refs/heads/master | <repo_name>MarkRobles/M0502<file_sep>/M0502/Controllers/ProductController.cs
using M0502.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace M0502.Controllers
{
public class ProductController : Controller
{
// GET: Product
... | d8689f066daf4c435d8af3983e5a528ad33b0fc3 | [
"C#"
] | 3 | C# | MarkRobles/M0502 | 178b71cb593abbfc950306c47f5061e87ccacdb1 | ec52e04aa99364f04c412071b4bfee7dc0d698ee |
refs/heads/master | <file_sep>
#include <iostream>
int main()
{
int N;
std::cin >> N;
for (int i = 0; i < N; ++i)
{
if (i % 2 == 0) //Проверка на четность
{
std::cout << i << " ";
}
else
std::cout << i << " ";
}
}
| 782f4cea21c48aa13054153893a01cf7a1e720e1 | [
"C++"
] | 1 | C++ | stupidmotherfuckingfucker/Lesson-15 | 74e7354e549e9ed2c43d875a9294207cdcd1dae7 | 09c97aa950e42660ecb7e089021325caa54345cc |
refs/heads/master | <file_sep>
// AnniversaryDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "Anniversary.h"
#include "AnniversaryDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CAnniversaryDlg 对话框
CAnniversaryDlg::CAnniversaryDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CAnniversaryDlg:... | baa04d19c3309006bb5882298a7809aaaf9ddf39 | [
"C++"
] | 1 | C++ | zdwzkl/Anniversary | 74a8d99d66027c114ba4e0176d3f1c52b8dfd61f | 8c8067ea5e02bb4b3df797b6da4a4988071d8832 |
refs/heads/master | <file_sep>fetch("//api.github.com/users/VictorWinberg").then(async (res) => {
if (!res.ok) return;
const json = await res.json();
const head = document.head || document.getElementsByTagName("head")[0];
const div = document.getElementById("github");
const wrapper = document.createElement("div");
const style ... | 1ed0408359632c4ed71b796ca425fa8cf474098a | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | VictorWinberg/VictorWinberg.github.io | 7b3228a77f5702673e14c716f5bb7cbea9f9012f | 02bb07c30c0f6360a165557e43927bfd3420a1df |
refs/heads/master | <file_sep># pdftoimageusingpython
Simple pdf to image coverter tool created by <a href="https://www.facebook.com/vijaysahuofficialpage"><NAME></a>
Required Package:
pdf2image
Installation
sudo pip3 install pdf2image
<file_sep>#created by <NAME>
#facebook.com/vijaysahuofficialpage
import os
from pdf2image import c... | 5b866bde4fcbdf0c127e4cb156aa68aa604800a3 | [
"Markdown",
"Python"
] | 2 | Markdown | vijaysahuofficial/pdftoimageusingpython | 37a2f6feeb2516912df382a725d0cdb56b64fc88 | 6aca326374d52febbe8a7afea1fdd9544c6cfe78 |
refs/heads/master | <file_sep>
package net.exiva.fido;
import danger.app.*;
import java.util.Random;
import danger.ui.*;
import danger.util.DEBUG;
import java.io.File;
import danger.storage.*;
import danger.util.*;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import danger.net.*;
import java.net.URLEncode... | 62219b3acae84c23a9dc1f272b3c72f4b2fe18f7 | [
"Markdown",
"Java",
"Ant Build System"
] | 4 | Java | exiva/Fido | 9dbd9b8e4d642547fa758e9b84e617c9d3bf6776 | 5bfbd468d043e460b3cb3506954d88e3d4c29e4f |
refs/heads/master | <file_sep>$(function(){
$('.video__blok-video img.play').hover(function(){
$(this).attr('src','img/playHover.png');
}, function(){
$(this).attr('src','img/play.png');
}
);
$('.video__blok-video img.play').click(function(){
$('.video-popup').fadeIn(800).css('disp... | 5d3a8114ba2be28adeaf5f9d4dc726ae7f4f4be9 | [
"JavaScript"
] | 1 | JavaScript | valekutce/yogalandingPage | 50d46018a360318fdef5832936d9a1fa0392b07d | f5a7c4aa58a6743de02eef6d4175a14f40e65144 |
refs/heads/master | <repo_name>NailKhalimov/book-engine-canvas-animation<file_sep>/trash/testingOldCode.js
function getLeftTopCornerPoints(startPoint_x, startPoint_y, endPoint_x, endPoint_y, pageWidth, pageHeight) {
var offsetPagingVector_x = endPoint_x
var offsetPagingVector_y = endPoint_y
var offsetPagingVector_length = Math... | c4989ec7f424034afa21ecbefbd0ec4b6b0c90e3 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | NailKhalimov/book-engine-canvas-animation | 43de7a5d590e5208a1c879dabd7c0bd31cfc465c | 351802b169691bfa68d1bbee7189f92cbfcb298e |
refs/heads/master | <file_sep>## Author: <NAME>
## Contributor: <NAME>
## Date Created: 11 April 2019
## Objective: Download most recent AACT database snapshot,
## Create visuals for SCT 2019 conference talk
## Output:
## Modification Log:
## 04/16/19 MF First pass comments
##
install.packages(c("RPostgreSQL",... | ccfa8d3e2ec4bed10d1c2960120e85be60ff1af9 | [
"Markdown",
"R"
] | 2 | R | how-many/clinical-trials-reporting | fa1a6036d3a4506a7e8350ef4dbd8b6f51f78b2d | 20343eba2ead01c8add422968e01bd25aaec912c |
refs/heads/master | <file_sep>"""
File containing samples of code philosophy
author: <NAME>
file: sample.py
date: 24 Mar 2015
"""
#Import our libraries
import sample_library
def ask_for_string():
"""
Function that obtains string from user.
"""
#Get a string from the user
user_string = raw_input('Please enter a single word contain... | f0ea6eabdf4ed462630d6ec176c431c294b64622 | [
"Markdown",
"Python"
] | 3 | Python | gryffon/code-sample | 353f7e1ec0331190c04f31203c578aa4ece1a970 | e5dcce753aa89a5d9b93a02f1bc6a12c496c285a |
refs/heads/master | <file_sep>using AutoMapper;
using MBookLibrary.Data.Entities;
using MBookLibrary.Models;
using MBookLibrary.Models.Externals;
using System;
using System.Collections.Generic;
using System.Text;
namespace MBookLibrary.Business
{
public class BookProfile : Profile
{
public BookProfile()
... | c020ec3110b83ce9301062bf93bdd5c7d3d8855e | [
"C#",
"TypeScript"
] | 21 | C# | ibrahimuylas/MBookLibrary | 880335af1ba0dd263bf09c41201641554436e6ed | 6452f4327b322f824ca40a588f3adfc2c9bbf478 |
refs/heads/master | <file_sep>
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
public class ProxyServer implements Runnable{
public sta... | 7b2e31ced667017e4cf1f759a861734a46704c7e | [
"Markdown",
"Java"
] | 2 | Java | kacrat99/ProxyServerJava | e77f2db920d63f354fa41b4c21be1f2bd70f01b7 | 46741dd1d8e05fe51e464c71ffeef0d65c018b45 |
refs/heads/master | <file_sep>platform :ios, '12.4'
target 'route-checker' do
use_frameworks!
pod 'TinyConstraints'
pod 'IBAnimatable'
pod 'Alertift'
pod 'Toast-Swift'
pod 'FontAwesome.swift'
pod 'Alamofire'
end
<file_sep>//
// ViewController.swift
// route-checker
//
// Created by <NAME> on 2020/09/17.
// Copyright © ... | 5d823bf1c33287302e47fb4657bfe1f024828913 | [
"Swift",
"Ruby"
] | 2 | Ruby | atrasc-uchida/route-checker | 8d869de4b40217f4b75370ae6f4e8cfdfba7d713 | f47cf427a4590e744cab59769da9be0993f8746f |
refs/heads/main | <repo_name>AntoineBarnoin/CSF-Projet-objet-perdu<file_sep>/Arduino Code/CSF.ino
#include <Wire.h>
#include <SPI.h>
#include "i2c.h"
#include "i2c_BMP280.h"
#include "i2c_MMA8451.h"
#include <LoRa.h>
BMP280 bmp280;
MMA8451 mma8451;
int txPower = 14; // from 0 to 20, default is 14
int spreadingFactor = 9; // from 7 to 1... | 2abe39b33a7e7f6a3f4e047d9e97a095376bf38e | [
"Markdown",
"C++"
] | 2 | C++ | AntoineBarnoin/CSF-Projet-objet-perdu | 629900c2e9a3cb161b3db8d8883480fe74538e78 | 0e9e19ea3bb0842f69ced7a050b17e871f8d592f |
refs/heads/master | <file_sep># Discord UI Clone | Rocketseat
Discord layout created using ReactJS.
## Libraries
- Styled components
- Styled Icons
## CSS
- Flexbox
- Gridlayout
## Challenges
- [x] Hide icons and just show when the mouse is hovering.
## Improves
- Only the channel title can be selected (or have a white text) when... | 9ee0a9d71bf2cc3a7e8a27d3c3e71fb26e7baaf8 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | willz3/discord-front-clone | ff44766fa0a0956217eb58d8fc3172aec109ed81 | e63295c092b0b624290152b74ec7fb107f19b837 |
refs/heads/master | <repo_name>SnowpitData/AvscienceServer-2.0<file_sep>/README.md
# AvscienceServer-2.0
New version of snow pilot data services, JSON and XML.
This is the newest version of the snow pilot data services.
These data services will run on a J2EE server such as Tomcat and access the snow pilot MySQL DB.
The data services abs... | d35d4016109da19a7fd5a137717d418cd16d809b | [
"Markdown",
"Java"
] | 3 | Markdown | SnowpitData/AvscienceServer-2.0 | eacc0aa6f540cdeed773c95b01a18b4999c9d8ea | 252ff367ef872d8f009ff91153789abdd1b34838 |
refs/heads/master | <repo_name>Feemic/Color_trace<file_sep>/README.md
# Color_trace
the file named ColorBlobDetectionView.java is the opencv original source file.
the other files is changed to rejust the "Portrait Full Screen".
<file_sep>/ColorTrace.java
package com.example.healthdemo.activity;
import android.Manifest;
import and... | 22a695d6f917662d998681a017039f0cd1adf1df | [
"Markdown",
"Java"
] | 2 | Markdown | Feemic/Color_trace | 1387dfcf1513d9298e0ac92b1ed878a4c15416f9 | 4ecbd1e3ef2de4ac138b9bb3e02219b4cd339166 |
refs/heads/master | <file_sep>package projet_java;
public class GestionProtoAnnuaire {
private Utilisateur user = new Utilisateur();
public String analyserTraiter(String req) {
String[] requete = req.split("#");
if(requete[0].equalsIgnoreCase("CREATE"))
{
if (requete.length==8 )
{
return ("CREAT... | c7bb94cd815510e86667dbb3a7e9107b442ca8c4 | [
"Java"
] | 1 | Java | loicprojetjava/Projet_JAVA | b05b75d37a463168bbfdf3e66213ea22a8e4c213 | 0a0551d88bd780352216c92743438bedd0f1e83d |
refs/heads/master | <file_sep>export interface Destination {
PointX : number,
PointY : number,
Id : number
}
<file_sep>import { SettingsService } from './settings.service';
import { Destination } from './destination';
import * as _ from 'underscore';
export class Path {
path: Destination[] = <Destination[]>[];
constr... | 50ae295fdabffa0d2ae329edcfcc1e1cd882d8a0 | [
"TypeScript",
"HTML",
"Shell"
] | 8 | TypeScript | waiholiu/travelsalesmen | 4a34aed05fd1e787d23bbdb86cc341243c565ed2 | 3e4828cb53bd3b85579b06f2652eb0c7791055df |
refs/heads/master | <file_sep>package com.example.pesc.hello;
import android.content.SharedPreferences;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
public class ResultActivity extends ActionBarActivity {
@Override... | 255894ce391d25d2e07f40baae299a171a3e1072 | [
"Java"
] | 2 | Java | capgovWorkshop/antonio_constantino | 5257f485ceed3282316e7fd8cbfc1241806074b2 | 912700477bf973f13c54ee232ab0ca2a3048ea4a |
refs/heads/master | <file_sep>"""
Monte Carlo timestep calculator for PoMs-MC
"""
# Import generic packages, and then append the specific directory path - needs to be edited by user
import sys
import numpy as np
sys.path.append("/Users/u5707688/Documents/ISM_positron_prop/Adiabatic_ISM")
# Import the PoMs_MC user packages:
# ... | 41d002c7ea432e3528ce1a8ec546856c13fdfc7c | [
"Markdown",
"Python"
] | 10 | Python | fipanther/PoMS_MC | 326da10baa85d0388a4762a549f33bc3c8155ced | 4ccb223f5d5af066a088fbdc0e12d84e6c522e9c |
refs/heads/master | <repo_name>DenizDalkilic10/MyLinuxShell<file_sep>/README.md
# MyLinuxShell
A personalized linux shell for single and compound commands
Bilshell has only one builtin function, "exit".
When it is entered as a single command, exit(1) is called.
If it is used in a compound command like "exit | sort" the shell will ask for... | 4d11915263050789d8b6d4ddd260ae5f920cb9e6 | [
"Markdown",
"C",
"Makefile"
] | 3 | Markdown | DenizDalkilic10/MyLinuxShell | 1d7b4c49e9bc12bcb40f6f683a76122b9043b8ec | ad1cff72e603860afe3994f2664b77b533b787c0 |
refs/heads/master | <file_sep>import os
import random
from threading import Lock
from flask import Flask, jsonify, render_template, request, session, redirect, url_for, flash
from werkzeug.utils import secure_filename
app = Flask(__name__)
app.secret_key = "my secret key"
app.config["SESSION_TYPE"] = "filesystem"
mutex = Lock()
DEFAU... | bf75968cf18196bb71e70982cae12cc2707f0610 | [
"Python"
] | 1 | Python | lorep86/aphasiaWebapp | e4ad83a5542472caef33915699a965e98edd040b | 3b708c4013c2495e6b06db4804ce04427986bf4c |
refs/heads/master | <file_sep>from PySide2 import QtWidgets, QtCore, QtGui
### char formats
__varTypeFormat = QtGui.QTextCharFormat()
#__varTypeFormat.setFontWeight(QtGui.QFont.Bold)
__varTypeFormat.setForeground(QtCore.Qt.magenta)
__varCommentFormat = QtGui.QTextCharFormat()
__varCommentFormat.setForeground(QtCore.Qt.yellow)
### p... | 809ab5e7379248a9c6d62ba4363794b98367e8a4 | [
"Markdown",
"Python"
] | 10 | Python | genchansansan/kaToolsExpressionPicker | b279c373a8178ea5732693b7d356c8cc625b5f8f | 558d5f75285eff99dfe08e48394f3f10c1feaeb0 |
refs/heads/main | <repo_name>lbideau/the-domain-name-generator<file_sep>/src/app.js
/* eslint-disable */
import "bootstrap";
import "./style.css";
import "./assets/img/rigo-baby.jpg";
import "./assets/img/4geeks.ico";
window.onload = function() {
//write your code here
var pronoun = ["the", "our"];
var adj = ["great", "big"];
... | a15b6a49826763cafbb436052ddf7182bd10d368 | [
"JavaScript"
] | 1 | JavaScript | lbideau/the-domain-name-generator | 9fa8856ccae34001cb1ac30e338f74f8b7e3618a | 3ec0231bdf7488090cb7235144591445a407a622 |
refs/heads/master | <repo_name>HeriklesVinicyus/SysZonaAzul<file_sep>/src/java/br/edu/ifpe/infraestrutura/fachada/Fachada.java
/*
* 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 br.edu.ifpe.inf... | 4ebc9909d739944124733bc75986d59b7d0eb69b | [
"Java"
] | 4 | Java | HeriklesVinicyus/SysZonaAzul | d80df6bfe637892e0611424baffd6f5435f69321 | 5dac1e6a89705b24c287d41d08c0eafd5e80def5 |
refs/heads/main | <file_sep>import React, {useEffect, useState} from 'react';
import {
SafeAreaView,
ScrollView,
Text,
TextInput,
TouchableHighlight,
TouchableOpacity,
View,
Button,
} from 'react-native';
import ToDoListItem from './ToDoListItem';
const ToDo = () => {
const [idCounter, setIdCounter] = useState(0);
c... | 4f6a2b8bdc8a110ef6c2b688fc0654cb0410051e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ssozuer/todo-app-mobile | f37d51c73645842f956e65adfe3f19b435e220b7 | 06361db40b0cb224ae4f114ee0fec7ddee0ec21d |
refs/heads/master | <file_sep>package arrayelementneighbours;
import java.util.ArrayList;
import java.util.List;
/**
* Created by bathoryalex on 16/10/17.
*/
public class Neighbours
{
static final int[][] D = new int[][]{
{-1,-1}, {-1, 0}, {-1,1}, {0,-1},
{ 0, 1}, { 1,-1}, { 1,0}, {1, 1}
};
static ... | 3ded8c1455cb060392f71632f43626b23a7c6381 | [
"Markdown",
"Java"
] | 5 | Java | bathoryalex/PracticeRoom | 43dc35a580b5c6c670a0fd51da65b9ccbc8e50cc | 16d25d1cc401a85d49bd3db46c61adc952b6abd9 |
refs/heads/master | <repo_name>jmpereztorres/spotifire-back<file_sep>/src/main/java/com/spotifire/core/utils/SpotifireUtils.java
package com.spotifire.core.utils;
import java.lang.reflect.InvocationTargetException;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import org.ap... | 0c98e5b0e6940a53863da19fc0b2528b17f8c4fa | [
"Markdown",
"Java",
"INI"
] | 21 | Java | jmpereztorres/spotifire-back | 7fd2c9b86fd0141d59026005325add91bce7d5a1 | de6a4753924377d9845bed445d049717e90ae33d |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should re... | 32f80bbebb31477995616d13784ec24568816f18 | [
"PHP"
] | 3 | PHP | widihastomo/datatables-demo | 2b257570de8fed34eecb18ea92a44ad0fdc79819 | af81eaa2687c2afc16066d85bfdec599bc1de227 |
refs/heads/master | <repo_name>EXALLENGE/Muradkhanova_task2<file_sep>/viselica.py
import random
f = ['h', 'e', 'l', 'l']
c = ['h', 'o', 'p', 'e', 'l', 'e', 's', 's']
e = ['a', 'n', 'x', 'i', 'e', 't', 'y']
d = ['s', 'a', 'd', 'n', 'e', 's', 's']
s = ['a', 'n', 'g', 'e', 'l']
v = ['s', 'o', 'o', 'n']
g = [f, c, e, d, s, v]
a = random.choi... | 83c6d05c6f3110f5c248fc298b789a2259e44ffb | [
"Python"
] | 1 | Python | EXALLENGE/Muradkhanova_task2 | fdeaf2aef06b31efdb4204c3dd4a334db9d25e1e | 337733306577fa704fc61ad11587efcf28dd578e |
refs/heads/master | <repo_name>qbit-/tcc-scratch<file_sep>/report_for_gus/plot_t_norms_vs_u_cpd.py
import numpy as np
import time
import pickle
from pyscf.lib import logger
from pyscf import scf
from tcc.hubbard import hubbard_from_scf
from tcc.cc_solvers import (classic_solver, gradient_solver,
root_solver, re... | ddf27d08728239fcb39e188e5b05a23b7a6324c1 | [
"Python"
] | 11 | Python | qbit-/tcc-scratch | 909d3df320fc89a426496a612aab395296d1f62a | 81bdf00de97dcdb937b11de2bc33a72f69c75769 |
refs/heads/master | <file_sep>require 'net/http'
@cameraDelay = 1 # Needed for image sync.
@fetchNewImageEvery = '5s'
@camera1Host = "camera1host" ## CHANGE
@camera2Host = "camera2host" ## CHANGE
@camera3Host = "camera3host" ## CHANGE
@camera4Host = "camera4host" ## CHANGE
@camera5Host = "camera5host" ## CHANGE
@cameraPort = "came... | afdee8a5272a84a6f2d3f4ef5eccbae20d0153c4 | [
"Ruby"
] | 1 | Ruby | Beeposent5416/camera-widget | 529e95c590c0a2cd916b171203292e96a706d641 | c0792f47f6541c9fb669c160bb66db772041d7bd |
refs/heads/master | <repo_name>ParisXiao/MoreTextView<file_sep>/README.md
# MoreTextView
### 一个可以展开收起的textview 灵活容易扩展

### 欢迎感兴趣的猿下载使用,对使用疑惑的地方欢迎提出疑问
### android深度技术探讨与论证 420221427
<file_sep>/library/src/main/java/com/sunny/view/MoreTextView.java
... | 434b7a37a6e2ffa9dcbbeb3d830e728974d186da | [
"Markdown",
"Java",
"Kotlin"
] | 3 | Markdown | ParisXiao/MoreTextView | 69899cfabda2e7dd58b0a9f99fa16a84bc50a703 | c854438a396edaa2fb59a5d5f1787960e7c47dce |
refs/heads/master | <repo_name>suki570/fastconsensus<file_sep>/community_ext/community_ext.py
# -*- coding: utf-8 -*-
"""
This package implements several community detection.
Originally based on community aka python-louvain library from <NAME>
(https://github.com/taynaud/python-louvain)
"""
from __future__ import print_function
import a... | 7030009fbbd340b3e568ecb756bc61ab8db9b011 | [
"Python"
] | 3 | Python | suki570/fastconsensus | 1236248d8e552c0b0dd3d10f60f1e70583af44a5 | 7f9ae2f70999e182ed4f72346f5df430437033ff |
refs/heads/master | <file_sep># for-iStarDesign
markup
<file_sep>$(document).ready(function() {
// sliders
$('.slider_right').slick({
infinite: true,
dots: false,
autoplay: false,
speed: 500,
arrows: true,
vertical: true,
slidesToShow: 7,
slidesToScroll: 1,
nextArrow: '<i class="fa fa-angle-up" aria-hidden="true"></... | 185f61230f746d4bd484417d9cf377124d3b2b37 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Jazzyst/for-iStarDesign | ddc966b2fa6e6769e7f11c4fdba66314ca6466f3 | 419d6aa5796d3ebc3ce05a70e0ead2fc71668c78 |
refs/heads/master | <repo_name>Peetrs07/hello-world<file_sep>/README.md
# hello-world
Hi all!
I am new to programming and I have just started to play with Python.
<file_sep>/oko.py
from random import randrange
x = randrange(2,11)
while x <=21:
print("mas",x,)
odp = input("chces dalsi kartu?(y/n)")
if odp == "y":
k =... | 8cd99507503301759d5528b3ac5eaca3fef9db98 | [
"Markdown",
"Python"
] | 2 | Markdown | Peetrs07/hello-world | 5d300f10d07d227205246bb2bf3eecc088ce76d3 | 8a06968d1fbb5c11fa13667eb64180852ff56570 |
refs/heads/master | <repo_name>LinuxBozo/cf-dockerized-buildpack<file_sep>/sub-launcher.sh
#! /bin/bash
set -e
# For details on what these environment variables contain, see
# meta-launcher.sh.
cd $ORIGINAL_CWD
exec $ORIGINAL_ARGS
<file_sep>/README.md
This is an experiment to create a Docker container that approximates
the runtime env... | b15c4d94cefd6585861c4ba370a3b4cb40f949a4 | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Shell | LinuxBozo/cf-dockerized-buildpack | e68f7113738c69c17cea49ab5d3d79cfafb7e411 | e9b68f52a098ca0f31db85cbd3b5d7979cec623e |
refs/heads/master | <repo_name>KaoutharAsma/Prayer-app<file_sep>/app/src/main/java/com/example/prayerapp/IApi.kt
package com.example.prayerapp
import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
import kotlinx.coroutines.Deferred
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.con... | c4d2fc909d703fa4231e8b9f24247d75cd1ba937 | [
"Markdown",
"Kotlin"
] | 5 | Kotlin | KaoutharAsma/Prayer-app | 9475ce33bd44a917ad4b2ffeeeb4ecfe0d10e542 | 3e508eadbf968b271a67a3a85fd5bc8aca93eec8 |
refs/heads/master | <file_sep>
# Author: <NAME>
# Company: Softtek
# Date: Jan 30 2017
# Version 1.0
import xml.etree.ElementTree as ET
tree = ET.parse('LincesReportFindBugs.xml')
root = tree.getroot()
lines_seen = set()
filename = ('categories.txt')
variable = 1
for headTag in root.getchildren():
if headTag.tag == 'Bu... | d1201d2a3c11e79250a11392662a0c53404a3fbf | [
"Markdown",
"Python"
] | 3 | Python | Luisit0/findbugs-security-parser | afbbb0782eb1c3372885f58855b847f72e2375a7 | 3b143262cb6f4d77187fc21fabdd1632fad6bef5 |
refs/heads/master | <repo_name>dmytrohridin/Blog<file_sep>/Blog.DAL/Interfaces/IRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Blog.DAL.Common;
namespace Blog.DAL.Interfaces
{
public interface IRepository<TType, in TKey> : IQueryable<TType>, ILi... | 744711c181d2a86811aa48a3e36a9a17808d4c85 | [
"C#"
] | 4 | C# | dmytrohridin/Blog | 3941559d2869ccd787f1610fda359dafe590d104 | a9e0d4a47692b1eec5eaa69d86c67c5e2220a200 |
refs/heads/develop | <repo_name>AmbientLighter/nodeconductor-openstack<file_sep>/src/nodeconductor_openstack/openstack_tenant/models.py
from __future__ import unicode_literals
from urlparse import urlparse
from django.core.validators import RegexValidator
from django.db import models
from django.utils.encoding import python_2_unicode_com... | c0fb580b32f31512ad721d220857ea694bcc26d3 | [
"Python",
"reStructuredText"
] | 37 | Python | AmbientLighter/nodeconductor-openstack | bb9ecaed61a74448f05d137ea6bbb32c218f56ac | ec13eeabfdaaaa625d5cb8799b58185055064146 |
refs/heads/master | <file_sep>artifactId=core
groupId=com.aimbra.finance
version=1.0-SNAPSHOT
<file_sep>CREATE DATABASE ABRFIN;
insert into abrfin.abrprod.products
<file_sep>package com.aimbra.finance.product.endpoints.controllers;
import com.aimbra.finance.core.entities.Product;
import com.aimbra.finance.product.endpoints.services.Prod... | e5ac87109ff0d0fc56c8715e86ce6a6352220bfa | [
"Java",
"SQL",
"INI"
] | 4 | INI | thiagosantoscunha/aimbra-finance | 7960f4de5048ddc054a32be4ba36f8cf2b2039fd | 1b6f1f3a9b2b1c21fefb652b5ee25d6d9d18a714 |
refs/heads/master | <repo_name>nelglez/MonthCal<file_sep>/Sources/MonthCal/ViewModel/DayCellView.swift
//
// CellView.swift
// CalSwiftUI
//
// Created by <NAME> on 11/13/19.
// Copyright © 2019 KesDev. All rights reserved.
//
import SwiftUI
@available(OSX 10.15, *)
@available(iOS 13.0, *)
struct DayCellView: View {
@ObservedOb... | 4818c33d7504d84a9c556ef2ddbc4026ae872879 | [
"Swift",
"Markdown"
] | 4 | Swift | nelglez/MonthCal | f93ad08d62f4333ee6894a52218b98269bc2070c | d5202c67ef16ab6f6ecd08967bc36e136574fbd7 |
refs/heads/master | <repo_name>rhaag71/bathclock<file_sep>/lib/BH1750FVI/examples/BH1750FVI_Simple/BH1750FVI_Simple.ino
/*
This is a simple example to test the BH1750 Light sensor
Connect the sensor to a NodeMCU ESP8266:
VCC <-> 3V3 [grey]
GND <-> Gnd [purple]
SDA <-> D2 [green]
SCL <-> D1 [blue]
ADDR <-> RX [yello... | a15953ba3c2436869855c65be0fa9c563062e703 | [
"Text",
"C++"
] | 3 | C++ | rhaag71/bathclock | 08cfb6d8511db196bf3dbc3561dd99cca7190c2d | 50308c49fc8740cf8ded647d638b6434b5fe25a6 |
refs/heads/master | <repo_name>consolacion/Greenhouse<file_sep>/greenhouse26.ino
/****************************************************************
03-04-2016 added lcd.clear on pushbutton change
03-04-2016 added mintemp store slaat dagelijks laagst gemeten temp op
27-03-2016 correctie Winter_zomer routine
27-03-2016 waarde 255 van wa... | 981effd992d44e9f5efea312b804e2e218047eb4 | [
"Markdown",
"C++"
] | 3 | C++ | consolacion/Greenhouse | 84b412d402d1b05b6b825d5c7aa2bbf8ba59899d | 9e507fb36d74b960cc218ca177232f560eb7291c |
refs/heads/master | <repo_name>Natalia21/wp_test_plugin<file_sep>/natasha_test_plugin.php
<?php
/*
Plugin Name: Natasha test plugin
Plugin URI: http://www.yourpluginurlhere.com/
Description: testing how to create wp plugins
Version: 0.1
Author: Natasha
*/
define('MSP_HELLOWORLD_DIR', plugin_dir_path(__FILE__));
define('MSP_HELLOWORLD_URL'... | 540e0898953d6a3735dc1bcd301d8fdba1c8615a | [
"PHP"
] | 2 | PHP | Natalia21/wp_test_plugin | 309f2b46b5c15489f8cb64653e62c97d482c9528 | 63cfd3184135295d6e47300f4355ba7a9830a31e |
refs/heads/master | <repo_name>donaldb/twitterfeed<file_sep>/app.rb
require 'sinatra'
require 'twitter'
helpers do
def twitter
@twitter ||= Twitter::REST::Client.new do |config|
config.consumer_key = ENV.fetch("TWITTER_CONSUMER_KEY")
config.consumer_secret = ENV.fetch("TWITTER_CONSUMER_SECRET")
end
end
end
g... | f8e2333ee1cf9fa509c88de233ed6f0045f792af | [
"Ruby"
] | 1 | Ruby | donaldb/twitterfeed | 3f47a128265f5411501f5c30debbc56c2f4ae3ad | 610fec579ffadf8f4f9707f929885aef853308fb |
refs/heads/master | <repo_name>qibinjin/Django_blog_0.1<file_sep>/article/migrations/0003_comment_article_id.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0002_comment'),
]
operations ... | 9bf9fb454f0d8622b073010f1db82b995ed0c83d | [
"Markdown",
"Python"
] | 4 | Python | qibinjin/Django_blog_0.1 | 7a213d9726489897098f880ed3fb21a7db479420 | b56cfde92b145f4441c45a220714d86f52e210a7 |
refs/heads/master | <repo_name>LinziYuann/CV-loss-functions-and-designs<file_sep>/dynamic_filter_pytorch.py
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from torch.autograd import Variable
## refer: Dynamic filter networks - theano implementation
class DynamicFilter(nn.Module):
def __init__(s... | 681d0df3fc0fbb037d88f81df7236c049066c0f1 | [
"Markdown",
"Python"
] | 2 | Python | LinziYuann/CV-loss-functions-and-designs | 7a6674d61aa3c30095b2aa18ac03dcd9240b6695 | ac497735350fe86c4f187e8d5254c2d23f14676a |
refs/heads/master | <file_sep>#region license
// Copyright (c) 2016, Wm. <NAME>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVID... | 92918d574d3d7c28e9531ea3b1ed3a04943eef79 | [
"Markdown",
"C#"
] | 4 | C# | wbsimms/ProjectRoller | 79d5fb6ca201784ec288634f98fefb5cd40b66ae | 95e0670c39d37dc1c89bd4eb038ab7c90fb5585d |
refs/heads/main | <repo_name>parth-shettiwar/CS347-Operating-Systems<file_sep>/170070021-lab1/170070021-lab1/p_3.c
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<stdio.h>
#include <sys/wait.h>
int main()
{
int r1;
r1 = fork();
if(r1!=0)
{
wait(NULL);
}
... | 354b41c3efe12fd3e62586706299192c3c4444eb | [
"C"
] | 15 | C | parth-shettiwar/CS347-Operating-Systems | b66ace6dbce01feba4d8460d0d294785488bdd48 | 4895031e4adde3073d143daef3cad8e91ead1a77 |
refs/heads/master | <repo_name>miracozal/FutbolMaciSimulasyonu<file_sep>/README.md
# FutbolMaciSimulasyonu
Belirli sayı aralığında random atanan oyuncu özellikleri ve hesaplama formülleri üzerine kurulmuş metotlar ile C# konsol üzerinden tasarlanmış 30 saniyelik futbol maçı simülasyonu
<file_sep>/FutbolMaciSimulasyonu/Program.cs
using Sys... | cb1adc0c2b7de2a1706e08fde777b0e661cad65a | [
"Markdown",
"C#"
] | 2 | Markdown | miracozal/FutbolMaciSimulasyonu | fba7512b349907aa5c858a54c1d96ea44b900a86 | 2825050bb945103326fbe6fd49e64f5e1b908aa6 |
refs/heads/master | <repo_name>AmolPardeshi99/RxJavaOperators<file_sep>/app/src/main/java/com/example/rxjavaproject/MainActivity3.java
package com.example.rxjavaproject;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
import io.react... | 929ff60f79f2bfed6492aec4c30ebc09078055cc | [
"Java",
"Kotlin"
] | 4 | Java | AmolPardeshi99/RxJavaOperators | 44432c17c91edcd019b56f725265bed23948d943 | b30446c02eed57a84408c0bad6e55397b64ce6c9 |
refs/heads/master | <file_sep>import React from 'react';
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
const Clubs = (props) => {
return (
<TouchableOpacity onPress={()=>console.log(props.clubname.name)}>
<Text style={styles.row} >{props.clubname.name}</Text>
</TouchableOpacity>
... | fa98fd3eec1721c3f74829d4eb519ff449d3fa85 | [
"JavaScript"
] | 2 | JavaScript | Precho/club | f846a9f8fc3e230edb1ebed35f3041529acc513e | 46016e263c85722662ac95b1fa358b51e0b0237a |
refs/heads/master | <repo_name>JohnDeVone/CTI110<file_sep>/P2HW1_MealTipTax_JohnDevone.py
# This is an assignment calculating the tip of a meal including tax as well
# Sept 3, 2019
# CTI-110 P2HW1 - Meal Tip Tax Calculator
# <NAME>
#
# Ask for the charge of food
subtotal = float(input('Enter the total cost of the food: '))
# As... | d0f2e3b4525a5a2fa4c798841ad0491272ca6b7d | [
"Markdown",
"Python"
] | 3 | Python | JohnDeVone/CTI110 | 9ba15b643c44d245e68da8cdd9fab09356016425 | 0ace27ec5f0a268b7b4962465f4bd11f57abf6df |
refs/heads/master | <repo_name>pedroverceze/MinhaAppAngular<file_sep>/src/app/produtos/detalhes-produto/detalhes-produto.component.ts
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Produto } from '../produto';
import { ProdutoService } from '../produtos.service';
@Component({... | 67e720dc1ba22b72d0400994bcbe7e6beee03ab0 | [
"TypeScript"
] | 1 | TypeScript | pedroverceze/MinhaAppAngular | 65dede91f70b62da5ff65c465e2e1bcc111f97af | 6ed2c7f0810b3f26a8089303d871f1c959b2d0e6 |
refs/heads/master | <repo_name>PressmanMatthew/Natural-Selection-Simulation-in-Dont-Starve<file_sep>/Natural Selection/scripts/prefabs/pig.lua
--Prefab Assets--
local assets=
{
Asset("ANIM", "anim/pig.zip"), -- Spriter file name
}
--Misc. Variables--
local PIG_HEALTH = 250;
local PIG_RUN_SPEED = 3;
--Create a New Prefab Enti... | 7db041f7eeae9040fd34824b3dc92aee4e3d7dfd | [
"Markdown",
"Lua"
] | 13 | Lua | PressmanMatthew/Natural-Selection-Simulation-in-Dont-Starve | 5874db12965f51a3fdbfe04174e865b8a53c38a5 | d606c1e26bfa366f0db5b5c7dc1bca4fe29c5240 |
refs/heads/master | <repo_name>Goff-Davis/Watchr_Bot<file_sep>/watcher.py
import datetime
import json
import praw
with open("config.json") as json_data_file:
data = json.load(json_data_file)
SEARCH_STRINGS = data["search_strings"]
CATEGORY = data["search_category"]
USER = data["user"]
SUBREDDIT = data["subreddit"]
TIME_FILTER = data["t... | 89649e80868b489e779dd530902447321b68340b | [
"Markdown",
"Python"
] | 2 | Python | Goff-Davis/Watchr_Bot | ef51fee01ed133619ab6f7b5aa40556ffc9fe63b | 7ff54b86a9051527906933dac6abfa227ec66d1a |
refs/heads/master | <repo_name>nishimaru40/ProjectCS251<file_sep>/mysql/mydb.sql
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 11, 2018 at 11:37 PM
-- Server version: 10.1.32-MariaDB
-- PHP Version: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
S... | 8ac9e5654ebbd326a27f54edcda5fd6fdfcf8d0e | [
"SQL",
"PHP"
] | 5 | SQL | nishimaru40/ProjectCS251 | 6f9b5c1bbdda8053f77cabca4c38547d295f47c2 | ac53626c626b46ac8624e098b34994d7e12437ef |
refs/heads/master | <repo_name>LunaChevalier/vs-zenn<file_sep>/src/type.ts
interface Header {
emoji: string;
title: string;
chapters: string[];
}<file_sep>/src/util.ts
import * as yaml from "js-yaml";
import * as fs from 'fs';
import * as path from 'path';
export function getHeader(text: string): Header {
const newLineHex = /... | 345028cdff54c839289e2e3d725a43dcdbd3cd25 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | LunaChevalier/vs-zenn | 89b76587fa4074a6b4598731ee38dae62f9d0b52 | 43f933adfd87934d19db3393a2c99c63b692be0c |
refs/heads/master | <file_sep>MyApp
.service('itemService', function ($timeout, $interval, groundsService) {
var bombExploding = false;
var potionUsed = false;
var Item = function(){
this.speedModifier = (s)=>s;
this.setRemove = () =>{};
this.update = () => {};
};
... | 832f0ed01ed1effbf38f2e6e8c73ccb134fdb8c7 | [
"JavaScript"
] | 7 | JavaScript | Chupsy/Escape-it | f32ef015be2b117fad9abd157c293c9b96db5d78 | 04b504703506c38e68783831871906d059557e2f |
refs/heads/master | <file_sep>import _ from 'underscore'
import formatDate from './format-date'
import trashBucketSvg from './trash-icon.js'
import { submitAuthForm, signOut, initFirebase, synchronization } from './synchronization'
function getTime (note) {
return formatDate(note.creationTime)
}
class Note {
constructor (text, i... | 8e90a65c255a9fbdf1fc45bdd9623337fc4b50ca | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | janglz/notes_app | d3b6914f933c0de9a49dc376f1ea9fd55c55efb7 | 14c836a42ba6705dfa180c21c03f7cbee185fc09 |
refs/heads/main | <file_sep>from django.http import HttpResponse
from django.shortcuts import render
from .models import Fcuser
# Create your views here.
def register(request):
if request.method == 'GET':
return render (request,'register.html')
elif request.method == 'POST':
username = request.POST['username']
... | 35809f49c599c6ffe14472a27955a356237cf22e | [
"Markdown",
"Python"
] | 3 | Python | skbae5553/fc_community | 9d8e217c97d188c7c3f21a90fa9d20e1afc175e8 | 0761d14abe2af3c03f88db8d5d582d2baf3d9b37 |
refs/heads/main | <file_sep># def productOfAllDoubleLoop(arr):
# lista = []
# for i in range(len(arr)):
# total = 1
# for j in range(len(arr)):
# if (i != j):
# total *= arr[j]
#
# lista.append(total)
#
# return lista
# def getProduct(arr):
# result = 1
# for i in ... | 6bd4149504d4ee0fea66a4b8dbc9e4b807fe235b | [
"Markdown",
"Python"
] | 7 | Python | X00122527/Daily-Coding-Problem | fd1aed4ee3da033f15f325d579076cdfb8f8fdff | 811f8858ada4c527d1acb7e4ac8aadcdc74a63e0 |
refs/heads/master | <repo_name>cckmit/coins-2-validator<file_sep>/doc/config-yml.md
# Config.yml
The validation process is configured by the config.yml. This is a yml file. The most basic structure is:
```yaml
version: '2.0.8'
environment:
store:
type: virtuoso
config:
...
cleanUp: false
...
run:
c... | d30bc0ad2ce5af786be4b0f293142f9b96c770dd | [
"Markdown",
"Maven POM",
"Java",
"Dockerfile",
"Shell"
] | 47 | Markdown | cckmit/coins-2-validator | 0ca4d944198ab82332658770563b54230907592c | 12b4e83a2a3f0ad62de82e2e00b3712ca222a01c |
refs/heads/master | <repo_name>BaltimoreBirds/art_gallery<file_sep>/spec/factories/artworks.rb
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :artwork do
artist_id 1
creation_date "2013-09-15"
sale_date "2013-09-15"
price 1
art_genre "MyString"
availability fal... | 0e6293c72ce205b8ee174a534e40b48fee28607b | [
"Ruby"
] | 18 | Ruby | BaltimoreBirds/art_gallery | 828613f673482b6dac31bfc79d0f696402331f19 | 9615778eb0a883809da8e8ddd893da9aba5b64f4 |
refs/heads/master | <file_sep>/*
Connectors enable external applications and scripts to provide information
for GoHome. Based on the backend used they may also register services and/or
call them. For detailed information about the different connector types please
refer to the respective documentation.
*/
package connector
<file_sep>// go-... | 8a7b96f842a0cd439857291368286bda9512b300 | [
"JavaScript",
"Go",
"Markdown"
] | 61 | Go | nethack42/go-home | d7b6c3fe3a2bd23964b85c7fb1fa40b89266206d | 2cdb813e37bbd4a989654f8c720292c4a7cc6703 |
refs/heads/master | <file_sep>class Student
# Remember, you can access your database connection anywhere in this class
# with DB[:conn]
include Helper
def initialize(*args, **hash)
vars = %w(name grade id)
super(vars, args, hash)
end
def self.create_table
sql_input = <<-SQL
CREATE TABLE IF NOT EXISTS studen... | fcaa8b2683af1f253a99dcc4a6e8e611cda4027e | [
"Ruby"
] | 1 | Ruby | AlisherZakir/orm-mapping-to-table-lab-london-web-051319 | 082c911ec964d638184223f8e787dbaa7542094b | af751eee03b404efbcb38091cb9589b9b1d430dc |
refs/heads/master | <file_sep>require('./styles/usage/app.scss');
// var common = require('./scripts/utils/util.common.js');
//
// var html = require('./scripts/tpls/index.html')
//
// common.render(html);
//
// require('./scripts/views/index.js');
var layout = require('./scripts/tpls/layout.html');
var common = require('./scripts/utils/u... | 495216c8446f8ccda86352a55331687a5fb900e0 | [
"JavaScript"
] | 2 | JavaScript | lijiawang66/vuejs | a93c905b56fd78caef1f2bfa41604365f1a3d79b | 8d2a017a5e81e07759a38c607c73d3b96fbe6fcf |
refs/heads/master | <file_sep>from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('DOC', views.docSearch, name='docSearch'),
path('SLOT', views.slot_search, name='slotSearch'),
path('fill_slot/id<int:slot_id>/', views.fill_slot, name='fill_slot'),
]
<file_sep>from d... | a75d19a0a45d4efdfc0f6aaf2260a2ed0060dc3d | [
"Python"
] | 2 | Python | mwhavens/docapt | 8525aca5830d6b9d6aa615cbb866e9811b6e9611 | 398fc1711cabb26b3ceb3bbe07188c0d285f099a |
refs/heads/master | <repo_name>obviousrebel/pybreak<file_sep>/pybreak_turtle.py
import turtle
wn = turtle.Screen()
wn.title('PyBreak')
wn.bgcolor('black')
wn.setup(width=800, height=600)
wn.tracer(0)
paddle = turtle.Turtle()
paddle.speed(0)
paddle.shape('square')
paddle.shapesize(1, 5, 1)
paddle.color('blue')
paddle.penup()
paddle.got... | 3f3aa2389185da721e411936524cda453edd1c92 | [
"Python"
] | 1 | Python | obviousrebel/pybreak | 14808bf5ed0f867a0f9a4ee03489a4f383e4f227 | 6f8e3d38b78ba6273a9c3c3cae187a5ffd175f53 |
refs/heads/master | <repo_name>danjokeny/FinalExam810<file_sep>/README.md
FinalExam810
final exam for class 810
<NAME>
<file_sep>/client/src/model.js
var ValidTodo = ['High', 'Meium', 'Low'];
var ToDoSchema = new ToDoSchema({
todo: {type: String},
priotity: { type: String, enum: ValidTodo },
done: {type: Boolean, default: false}
}... | 0e662e4bf3745d5b4d800163600a2fd6cc883b39 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | danjokeny/FinalExam810 | 229c4ee25f6c77d2b0049ec70615590bcb85b607 | 4bcba3db29adb09e27b0302166a92ec3cc920334 |
refs/heads/master | <file_sep>#!/bin/bash --
#
# MAC adress changer
# http://lihars.tk
#author:<NAME>
#grep yahan HWaddr ko search karta hai aur address deta hai
#change interface and new mac accordingly
echo "enter interface";
read inter;
echo "Old mac adress: ";
ifconfig -a | grep HWaddr | grep $inter;
echo "\nenter new mac id"... | 583cf005a51560491af6de3d707f94ed695cb6cf | [
"Shell"
] | 1 | Shell | rs91092/simple-bash-macchanger-for-linux | 141f36d635f0c707e8821bceeef2d475f5cf5a90 | 8c978c22bdf8b235cabe39f1f59c6a08ee4e83fb |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace ShowLog
{
class StaticTarget
{
public static ObservableCollection<string> StaticLogMessages { get; set; } = new ObservableCollection<string>();
}
}
<file_sep>using System;
... | 8ef966e68262799c77e051540f238d2812affe5a | [
"C#"
] | 3 | C# | kdziewit/ShowLog | 1d1a40af6d04df2df71b67e5ff64c297d9167142 | acc8a3b55b5131afc608023e193a80157a0876b5 |
refs/heads/master | <file_sep>package com.itea.java.basic.l10.enums.game;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
public class MyLogFormatter extends SimpleFormatter {
@Override
public synchronized String format(LogRecord record) {
return record.getMessage() + "\n";
}
}
<file_se... | 5caba1205d2c4cc33eafd8f4131dbd0399cef27e | [
"Java"
] | 10 | Java | anton1113/l10-practice | 6c062fe60de450e098d66d2647faf59347c6e6bd | deff48b89b547d6cd54c48fbb5861a694c25d7dd |
refs/heads/master | <repo_name>optimusprime94/algoritmer-laboration-1<file_sep>/C-algoritmer1/twothreeTree.c
#include "genlib.h"
#include "twothreeTree.h"
typedef struct nodeT {
int element1;
int element2;
struct nodeT *previous;
struct nodeT *nextL;
struct nodeT *nextM;
struct nodeT *nextR;
} nodeT;
struct two... | f135c65fd0ce9a204688e67341f65129be7bb4ea | [
"Markdown",
"C"
] | 4 | C | optimusprime94/algoritmer-laboration-1 | 45329ecb20416ab5e38bf89808ab3e2a41a68039 | 84791e0d7f0f4be25f234b5b63cf83bf421b7a45 |
refs/heads/main | <repo_name>neerajbardia/dh-key-exchange<file_sep>/README.md
# dh-key-exchange
Diffie Helann Key Exchange algorithm, used for secure transfer of the key over the communication lines
This technique is mostly used for key exchange and not actual data trasmission, coupled with RSA algorithm it can form a very secure commun... | 2920457be9c9131267729fa9824e5db72966e091 | [
"Markdown",
"Python"
] | 2 | Markdown | neerajbardia/dh-key-exchange | e58f471fb2020c2f99aefcfcc80ccd8135779dfb | 355f3299cb8de47f70a95fe6f373bdea331de094 |
refs/heads/master | <file_sep>require 'rails_helper'
feature 'commenting' do
before do
user = User.create email: '<EMAIL>', password: '<PASSWORD>', password_confirmation: '<PASSWORD>'
login_as user
visit '/photos'
click_link 'Add a photo'
expect(current_path).to eq '/photos/new'
attach_file 'Image', 'spec/testim... | 4856fb5c49ff36718eafb31a9cf9f3748fe1d5e2 | [
"Ruby"
] | 2 | Ruby | duskyshelf/instagram-challenge | 11ecc2a7066744f372e63b5e5062383f3f56b455 | f3f4e07c2d0a96f3c9f8ede952a6b4f53baecd3d |
refs/heads/master | <repo_name>AlistairBall/3DUnity<file_sep>/GameDev1-FinalProject-AlistairBall/Assets/Scripts/WeaponShoot.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WeaponShoot : MonoBehaviour {
public Rigidbody projectilePrefab;
public Transform projectileSpawnPoint;
p... | 14f86609b5151bc5ebf83ff836facc199a164c85 | [
"C#"
] | 23 | C# | AlistairBall/3DUnity | 49c7eec97d4be0f0030dc7306926ba24b2bb99ca | 368c982835bb094b53ce052e2f8f928c0b89292e |
refs/heads/master | <repo_name>zbb1211/myvuedemo<file_sep>/src/main.js
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
/* eslint-disable */
// eslint-disable-next-line
import Vue from 'vue';
import App from './App';
import VueRouter from 'vue-route... | 91839e8e8f2e5a8deb69b2e74dcad3d363c74f62 | [
"JavaScript"
] | 1 | JavaScript | zbb1211/myvuedemo | a4d25f6b02be4de6803a63a91735d48e708b4b4c | d60dcd8fee61703132016035feba0fad5aa8e5a6 |
refs/heads/master | <repo_name>Tipster74743/QCard<file_sep>/src/pages/signup/signup.component.ts
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { OAuthService } from 'angular-oauth2-oidc';
import { UserService } from "../../services/userService";
import { LoginPage } from "../login/login.c... | c90bb14ca4a37943d294e00200d23c2a345af383 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | Tipster74743/QCard | 68a774ee3bf0049a2525bd7ab23ae0f19adac075 | fc6d65c081615aa709300b7383666d4f23124f0b |
refs/heads/master | <file_sep>"use strict";
//----- Класс сохранения и открытия файлов
class AJAXStorage {
constructor(varName, updList, disBtns, enBtns) {
let self = this;
self.varName = varName;
self.storage = {};
self.updList = updList;
self.disBtns = disBtns;
self.enBt... | 20154e904cbc6b45016d8b1732f1e360384b9816 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | SergeiDragun/Simple-SVG-editor | 732c5c53716c30aa1c27987438087f02b2dd677e | 2a71b06acc2bf5f6ee60e699c0c3c2220cb02276 |
refs/heads/master | <repo_name>gjmolter/ivetravelled-world<file_sep>/components/Combobox.js
import { useState, useEffect } from "react";
import {
Combobox,
ComboboxInput,
ComboboxPopover,
ComboboxList,
ComboboxOption,
} from "@reach/combobox";
import "@reach/combobox/styles.css";
import { worldJSON } from "../utils/mapData";
c... | a743d2260306be6fc3d5b6e3f8ed8661dc6b6baa | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | gjmolter/ivetravelled-world | e5c637784d9f90950bf16f5199953661d082a128 | a850135eff841323c1906f36dea0dc50f0d0f2c9 |
refs/heads/master | <file_sep>asgiref==3.2.3
beautifulsoup4==4.8.2
certifi==2019.11.28
chardet==3.0.4
dj-database-url==0.5.0
Django==3.0.3
django-heroku==0.3.1
django-webpack-loader==0.6.0
gunicorn==20.0.4
idna==2.8
numpy==1.18.1
pandas==0.25.3
psycopg2==2.7.5
psycopg2-binary==2.8.4
python-dateutil==2.8.1
pytz==2019.3
requests==2.22.0
six... | 2557c615434d65a62148cb06e2eebd2fc923786c | [
"Markdown",
"Python",
"Text"
] | 5 | Text | chungkang/mukgo | 6d351f2b25ea1f4c3b61d70f304121923d39f426 | f8684494e63820fff9dd55562a539435b1d39629 |
refs/heads/master | <file_sep>//Main redux action file that imports all other action files and exports them for use with reducers
import * as matchActions from './match';
export {
matchActions
};
<file_sep>import React from 'react';
import Avatar from 'material-ui/Avatar';
import person1 from '../../../content/ma-long.jpg';
import p... | 4e0626dd1f90c210edbe02b37a943fac956f5416 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | tttimmusgrove/ttworld | 1da4b846023c97469ab480717e21332441d12e09 | 79d58acd55b914a03ee2f711437bce8fdcaffcd3 |
refs/heads/master | <file_sep>declare module 'mui-icons'
declare module 'mui-icons/cmdi/*'
<file_sep>FROM node:latest
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
ADD src /usr/src/app/src
RUN yarn
RUN yarn build
CMD ["yarn", "start"]
<file_sep>import { connect, createStore } from 'babydux'
type Store = {
dis... | ebdb1899496bf440efff9e57012e8ec590cf9fc7 | [
"Markdown",
"TypeScript",
"Dockerfile"
] | 4 | TypeScript | bcherny/tds-frontend | 3c2fa215b86fb999db340541d1955348eea37053 | 6f161a79f616272eddef4be5079c8c29801158c6 |
refs/heads/master | <repo_name>MarckRDA/primeira-aula<file_sep>/README.md
# Projeto Entra21
### Escrevendo e lendo do console:
//Escrevendo:
Console.WriteLine(texto);
//Lendo:
Console.ReadLine();
### Declarando variáveis e constantes
var text = "meu texto";
string text = "meu texto";
const string text =... | 0a496e4107b1a63873cfc12c077de5dd813f8d76 | [
"Markdown",
"C#"
] | 2 | Markdown | MarckRDA/primeira-aula | bbba1bcd6a5b39efcb42508c2f9268900ca44261 | fb03e39894cd6aac70916b98c09b7a26a8720388 |
refs/heads/master | <repo_name>makungaj1/e-commerce<file_sep>/middleware/isAdmin.js
module.exports = function(req, res, next) {
// 401 Unauthorized
// 403 Forbidden
const { isAdmin } = req.employee;
if (!isAdmin) return res.status(403).json('Access denied');
next();
};
<file_sep>/models/customer.js
const config = require('config');... | 7606fef35a30acdbfdb3b989410bd7787145309a | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | makungaj1/e-commerce | 1d87f060597caae96313d18dcfadc18aea08a2a7 | 14a717be9ff07fed813738bc34bf8b21a8cfb005 |
refs/heads/main | <repo_name>WatchDog773/webSite-YourCourses<file_sep>/backend-webSite-YourCourses/routes/api.js
const express = require("express");
const router = express.Router();
const securityConfig = require("../config/security");
const apiAuth = require("./api/api_auth");
const apiCourses = require("./api/api_courses");
router.... | 67bb35203e4fe441840d6d8b622cba8e40066039 | [
"JavaScript"
] | 35 | JavaScript | WatchDog773/webSite-YourCourses | c806137c2dfacf93ab71c82a28aa8c6557adfd32 | 1182c8f2db25cdbba28102acbb4b61e2d95add34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.