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/main | <repo_name>Deepesh368/TODO_web_app<file_sep>/app.js
const path = require('path');
const express = require('express');
const app = express();
const port = 5000;
app.use(express.static('public'));
app.set('views', './views');
app.set('view engine', 'ejs');
app.get('/', (req, res) => {
res.sendFile(__dirname + '/views... | b63bbfddbb3f95e9cc84a350029ba70afc146909 | [
"JavaScript"
] | 1 | JavaScript | Deepesh368/TODO_web_app | 6cbaaf37fab68410a8616fe20d3a36e49403445b | 6ca66d060bbfdbf4f3344e4ee5180bb13fd25889 |
refs/heads/master | <file_sep>from sqlalchemy import create_engine # начните работу с этой библиотеки
from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey
from sqlalchemy.orm import mapper, sessionmaker
from User import User
db_conn_string = 'postgresql://postgres:123456@localhost/postgres'
engine = create_engi... | a9c45237caceaec5b5c355d3931e976b0348844e | [
"Python"
] | 2 | Python | konstantinov90/postgre_python_test | 506356b4084bad05fdcb33e620f557a92bee2949 | 8d756631ea001ed5dc5c7fb8e3317364b59257e1 |
refs/heads/master | <repo_name>tjstankus/proper<file_sep>/lib/proper.rb
require "proper/version"
module Proper
# Your code goes here...
end
| e1b38bf45c1f97f6da4ca5f1c0a33ead19ebabb2 | [
"Ruby"
] | 1 | Ruby | tjstankus/proper | 666082a061b0daef85ade6251a034ad64088ba20 | 25d81917b026955892c1bac6dea4e64fc4008543 |
refs/heads/main | <file_sep>import friends from '../data/friends.json';
import statisticalData from '../data/statistical-data.json';
import user from '../data/user.json';
import transaction from '../data/transactions.json';
const data = { friends, statisticalData, user, transaction };
export default data;
| eb393d549a6d12daa7866687382d9e2b49cec046 | [
"JavaScript"
] | 1 | JavaScript | OleksandrPenskyi/goit-react-hw-01-components | 8e190a5519e0881fd7548e4f1efa6c4cfa9a1439 | a21b41003e87ce0094593c2012415f8cc1d57357 |
refs/heads/master | <file_sep>import numpy as np
import matplotlib.pyplot as plt
mymatrix = np.loadtxt('f237',delimiter=',',skiprows=2)
# mymatrix[:,0] = (mymatrix[:,0] - 5361.)
mymatrix[:,0] = (mymatrix[:,0])
s = mymatrix[:,0]
print(s)
t = np.linspace(0,.005,np.shape(s)[0])
# plt.ylabel("Amplitude")
# plt.xlabel("Time [s]")
# plt.plo... | c64597722919e3929f883218a13b57171fba3978 | [
"Markdown",
"Python"
] | 6 | Python | tangmack/furuta-pendulum | 4cee88e92270acfcdf33c41710392ff5a7372d2c | eb1fdba725cdf9a04a7e14a0dc1f917ea6ae83b7 |
refs/heads/master | <file_sep>from django.shortcuts import render, redirect
from . forms import movieForm
from . models import movies
from django.contrib.auth.decorators import login_required, permission_required
# Create your views here.
@login_required
def index(request):
movie = movies.objects.all()
return render(request, "in... | 400ccb184222222e8e4553be08887557f44eecf7 | [
"Markdown",
"Python"
] | 5 | Python | ayahmed2050/lab-django | 375e000a8b0ea315b9f3abc82b490dbe3248c8d0 | 4f8e10b4cd458d15ae5d6e2f564775e8449ea236 |
refs/heads/master | <file_sep>(function(){
'use strict';
angular.module('angularSandboxApp')
.controller('projectEditorController', ['projectsService', '$stateParams', '$state', projectEditorController]);
function projectEditorController(projectsService, $stateParams, $state) {
var vm = this;
var id = $stateParams.id;
if (id === '... | 1f7155d1a2071043f0fa16b91e2fd67889c79321 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | pwaivers/AngularSandbox | a5ceec2d57bc4d94fb8e7c86e134762b3651db81 | bf20c6c340aae516de4151d3e2d99f532a2838a4 |
refs/heads/master | <file_sep>#FROM node:6
# Create code directory
#RUN mkdir -p /code
# Bundle app source
#WORKDIR /code/
# Set permissions for node and set timezone
#RUN chown -h $USER /code
# Set code as workdir
#WORKDIR /code
# Set user to node
#USER node
#CMD [ "npm", "start" ]
FROM node:6
#RUN git clone https://github.com/... | 82886e6f57da0256fbaa38a00e90c08ae1dd33d3 | [
"Markdown",
"TypeScript",
"Dockerfile"
] | 7 | Dockerfile | seanrkerr/troonhouse | df48b0b80a2089ad900fbd53359ae62614af9c0b | 36827ebe278e23ad255a8d8ab738b1f6629d31b5 |
refs/heads/master | <file_sep>
// ImageProcToolView.h : CImageProcToolView 类的接口
//
#pragma once
#include "resource.h"
class CImageProcToolView : public CFormView
{
protected: // 仅从序列化创建
CImageProcToolView();
DECLARE_DYNCREATE(CImageProcToolView)
public:
enum{ IDD = IDD_VISIONPLATFORM_FORM };
// 特性
public:
CImageProcToolDoc* GetD... | fe07b05aef4e29f2bfc1c0e372037bad6cf3212e | [
"Text",
"C++"
] | 19 | C++ | leoking01/ImageProcTool | 2c8c092c1d8aa38a9b275a895f3eec6bb688b248 | 923a6f9e3710ca70860a621e5e1c8073d5737fcf |
refs/heads/master | <file_sep>require 'erb'
class Navbar
attr_accessor :parent
attr_writer :html_template_path
def initialize( name = nil, path = nil )
@name, @path = name, path
@children = []
end
def html_template_path
@html_template_path || parent.html_template_path
end
def add_child(child)
@children << child... | bb70faf62830fc04f3818196c567cafbc1104d6e | [
"Ruby"
] | 2 | Ruby | autumncollection/MyMenu | 43e9c7ef4cd00f79c9be2cc7f6ef400db4f39194 | d1b8431cc0d2ce8048c37e30769660976068b64e |
refs/heads/master | <repo_name>HoanNguyen18795/AT_Mobile<file_sep>/app/src/main/java/com/testing/hoan/at_mobile/SessionManager.java
package com.testing.hoan.at_mobile;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
/**
* Created by Hoan on 9/11/2016.
*/
public class SessionManager {
... | 3e5d351197e4eb7264900e883832b7f1fd21dc46 | [
"Java"
] | 3 | Java | HoanNguyen18795/AT_Mobile | a4c2e60122bb138b8d2d532de02cf42d9188b6bc | 689065d343ee42069cbc0edbeeb36c04edef89df |
refs/heads/master | <repo_name>AndreasHorwath/http-api-demo-clients<file_sep>/Nevaris.Build.ClientApi/Models.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Nevaris.Bui... | b19a723e97789bd6cdee7b3c458b1ec8a6d4df84 | [
"Markdown",
"C#"
] | 5 | C# | AndreasHorwath/http-api-demo-clients | 853ac48c8470b29c9bc24a6c77d2d21aec1c7926 | cf061c2cb951d5dd778f531b4197db0579fd1b16 |
refs/heads/master | <repo_name>santanarscs/fenrir<file_sep>/resources/assets/spa/js/mixins/class_information.mixin.js
import store from '../store/store';
export default {
computed: {
classTeaching() {
return store.state.teacher.classTeaching.classTeaching;
},
classInformation() {
return ... | e19bad09a997d8d64d13003af26693fc47eef597 | [
"JavaScript"
] | 1 | JavaScript | santanarscs/fenrir | b23fad9edbfe0f3ef18e79a369867f60c2c0684b | 8f459b67c8f8eccaddfc61510e60f40011d528c9 |
refs/heads/master | <repo_name>asifrc/rnr2<file_sep>/src/main/java/com/thoughtworks/rnr/factory/JSONObjectFactory.java
package com.thoughtworks.rnr.factory;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
import java.io.IOExc... | 4d98d7c72ebb436512ab76a43eb9162923da9019 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 19 | Java | asifrc/rnr2 | 5387225020e66fcb52bf69fec6c0111635ce4b0b | f52c509872efaba450b135f3076b6d799a5813dd |
refs/heads/master | <repo_name>LuisaFerCo/TestingBDD<file_sep>/WebScreenplay/src/main/java/co/com/webapps/screenplay/questions/Prices.java
package co.com.webapps.screenplay.questions;
import co.com.webapps.screenplay.userinterfaces.ShoppingCartPage;
import co.com.webapps.screenplay.utils.StringManager;
import net.serenitybdd.screenplay.A... | 4dc7a0140dba080e10b0edced1b41afb847fb93c | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 38 | Java | LuisaFerCo/TestingBDD | eb3be98c3c33f9fac2ddee723f4bfe789d34328f | 502c9477f1d9f3653e22fb578f4cd99b19fc5f0f |
refs/heads/master | <file_sep>var WS_Manager =
function() {
this.input =
{
address: "",
onopen : function() {},
onmessage : function(msg) {},
onclosed : function() {}
}
this.id = "ws_manager"
this.wsSocket = null
this.hangOutCheck = null
this.pong = JSON.stringify({
"pong" : tr... | 60838ee554b1b949b4bb31a20cca0504e25cda34 | [
"JavaScript"
] | 1 | JavaScript | Acciaio/play_web_socket_example | 00689e56f29f12612e1a27af96081254908a8c5b | b8f3923c23f710af5abfdbc039017e4e233ec68f |
refs/heads/master | <file_sep>source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem 'activerecord-sqlserver-adapter', '3.0.10'
gem 'tiny_tds', '0.3.2'
gem 'jquery-rails', '0.2.7'
gem 'compass', '0.10.6'
| b013f57c681afeb425dab734df11e720d4846260 | [
"Ruby"
] | 1 | Ruby | rezlam/clogs | 35684b13f70147a5efe5b553c5d43e138a54b205 | 407159b00e6f5e6c67438931be0e36b2ea52cc85 |
refs/heads/master | <repo_name>lntusl/ua-parser2<file_sep>/js/test/load/load.mocha.js
"use strict";
/* global describe, it */
// Note: These tests here cannot be executed together with the other tests as mocha does not have a defined execution order
var
assert = require('assert'),
path = require('path'),
fs = require('fs'),
ua... | 18c0b96cb530358d0433de4b0e9b3ae3fa16caec | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | lntusl/ua-parser2 | 11cb4a947b7e239092ed4b1cd3504d32438684cd | 8e3bc42289b02cfb0e6c8dd3875285794b0027e9 |
refs/heads/master | <file_sep>require 'spec_helper'
describe UserSessoinsController do
end
<file_sep># This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'spec_helper'
Di... | 610f77a7daa25d73cba5ad60cb717338b8df4945 | [
"Ruby"
] | 2 | Ruby | softcomet/restauranteur | 567f1945d5099fa3c8e242fe643885cd379406af | 95bd1aa4364939d43bb5683b6d04d87ed7b53f91 |
refs/heads/master | <repo_name>qwtfps/haha<file_sep>/myoohoohoo2.go
// Copyright 2011 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package myoohoohoo2
import (
"appengine"
//"appengine/blobstore"
"appengine/datastore"
"encoding/json"
"f... | 1da432af18552eae5f0e85a25cc1f1ea6e771fb8 | [
"Go"
] | 1 | Go | qwtfps/haha | eb5173633b4673252c21bc6fa4224fec65c4990f | f49f32556108f42fba5f48545517e0efc687a908 |
refs/heads/master | <file_sep>from django.db import models
class Order(models.Model):
order_id = models.CharField(max_length=20)
customer = models.CharField(max_length=20)
item = models.CharField(max_length=20)
def __str__(self):
return self.order_id
<file_sep>from django.conf.urls import patterns, url
from dja... | 42318b5f694d63b90e72955276c730ec0acbcb37 | [
"Python"
] | 4 | Python | yaohappy/hw4_sso | f4dea9e3735b8cd3960d10908d21b8c9f6fd85c5 | 9e61ac92deb12a988b8154fd39b12be4f26ba4b9 |
refs/heads/master | <repo_name>MAhsanmirza/kc_house_price-prediction<file_sep>/project = MOD-02-FIS.py
#!/usr/bin/env python
# coding: utf-8
# # Introduction: Pricing of Homes in King County, WA
# 
#
# Welcome to my kernel
#
# In this dataset we have to predict the sales price of houses in King County, Seattle. It inclu... | 6da666308d2d70b45a7c01cc93e44d2a574bdf33 | [
"Markdown",
"Python"
] | 2 | Python | MAhsanmirza/kc_house_price-prediction | 0a0abaca0aceeaf54afc9ad61add18ef818af46d | 5c036b91586ed7d4d696ef9c58094aacb74be29b |
refs/heads/master | <file_sep># Financy
a dashboard which shows stockprices, commodities, cryptocurrencies and exchangerates
currently frankensteinlike app from a js newbie going the TDD route
# Uses
CasperJS
Jasmine<file_sep>describe("Finance", function() {
var finance;
beforeEach(function() {
finance = new Finance();
... | 6a4b12a065849e89f34f17b2fe255da72ef4352f | [
"Markdown",
"JavaScript"
] | 4 | Markdown | xorrr/financy | 01488d7803f14f1e65495d8443dc577c2ad9dea9 | 2ff6b2e498cf594d40ba6e1ac956e03dce730c9a |
refs/heads/master | <repo_name>nadeemshahzad/python-port-scanner<file_sep>/README.md
Python Port Scanner
Usage:
python network_scan.py
Script will ask for input of target machine to scan for exposed ports
Enter hostname: xyz.com
Enter initial port value: 80
Enter final port range: 896
<file_sep>/port_scanner.py
import socket
import th... | 849d74d1830878793b4a64540d665776328aaf5b | [
"Markdown",
"Python"
] | 2 | Markdown | nadeemshahzad/python-port-scanner | 53570e3ff8922a73115cbfc27f036bf9dbfbc26a | adce9791d699803e8a0d3ce693724cdd04a6eb36 |
refs/heads/main | <repo_name>MaxSomewhere/LKtests<file_sep>/cypress/pageobject/loginForm.js
let inputSelectAuth = '.select-styled';
let inputContractLogin = 'input[id="userid"]';
let inputContractPassword = 'input[name="userpassword"]';
let buttonSubmit = 'button[class="btn shadow login-btn"]';
let inputEmailLogin = 'input[name="userem... | eaa370052f44e27e0936603d24bc7e47ec2d74bc | [
"JavaScript"
] | 2 | JavaScript | MaxSomewhere/LKtests | e75aad97bce18bb07b70b1c8e8684573acd1a673 | a03e614f707ff13b17d7049fc0cf97d16b7db4af |
refs/heads/master | <file_sep>package com.umeng.soexample;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
import android.widget.TextView;
/**
* Created by W on 2019/1/17 9:06.
*/
public class DdCountView extends RelativeLayout {
private i... | 67d7b5c47f55a43f9ee9e9440a9f40b9e04eedbd | [
"Java"
] | 12 | Java | WeiShuaiG/xiangmu | 1afb99d439daf4954f8b14a1fd30b08358dd4e75 | b61cb3c3becbbd83ca0f81da1e1d3224cd7d950e |
refs/heads/main | <file_sep>//
// AqiCN.swift
// Air Quality Monitor
//
// Created by <NAME> on 9/18/21.
//
import Foundation
struct AqiCNMeasurements: Codable {
let status: String?
let data: AqiData?
var tomorrowForecast: Int {
data?.forecast?.daily?.tomorrowForecast ?? -1
}
}
struct AqiData: Codable... | 2521c662b86e3d22f8cadc562a7b73aacdde25ac | [
"Swift",
"Markdown"
] | 12 | Swift | jeffreydthompson/Air-Quality-Monitor | d9c81da03a8d8f3e982479d6a30dc026822df3a0 | 15f605b94456002524fb1a37a2b30e352474bf6a |
refs/heads/main | <file_sep>import speech_recognition as sr #To convert speech into text
import pyttsx3 #To convert text into speech
import datetime #To get the date and time
import wikipedia #To get information from wikipedia
import webbrowser #To open web... | eb0e872d946008a00754a99505028916ff0333d7 | [
"Markdown",
"Python"
] | 2 | Python | Ascool7776/A-GUI-Virtual-Assistant-with-python | bf6195c4d5112f095bc161b810469c1815b9bc37 | 012595c4518c3ed3d1fa2c67fc2fc81ad04d6ecc |
refs/heads/master | <repo_name>Capeo/WebInt-Project<file_sep>/result.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Result</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body onresize="resize_canvas... | 1887a5dca7f0c3f4332d826d9706c605c31e8071 | [
"Markdown",
"PHP"
] | 3 | PHP | Capeo/WebInt-Project | e61ec6e21117b4e54c9f91255c9c384f5790fb87 | 323362e04d4c463a001dd790cc1ee73b4082c7f1 |
refs/heads/master | <file_sep>
## This function creates a matrix object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
save <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
savecache <- function(matrix) m <<- matrix
... | 822e42240debe95312bb8fe573d3526220b30308 | [
"R"
] | 1 | R | JaHaRa/ProgrammingAssignment2 | f39e698d66f35489e227178e3fda08ddd5cdfacd | 34315e5729f4d210cb7795cb4979e36b60b4cdc8 |
refs/heads/master | <file_sep>import React from 'react';
import { Mutation } from 'react-apollo';
import { authToken, VOTE_MUTATION } from '../constants';
import { timeDifferenceForDate } from '../utils';
const Link = ({
link: {
description,
url,
votes,
postedBy,
createdAt,
id
},
index,
updateStoreAfterVot... | 10a4a5b7c794ccbc4f6aadfb02d4a740b7332e4b | [
"JavaScript"
] | 4 | JavaScript | aloeugene/hacker-news-clone | 0f4c7278c0550175a3beb81e24864fd29aee3ac9 | e0e6f45e5bb99623c191d814fbcf404aa890435a |
refs/heads/master | <repo_name>ThomasSquall/PHPMagicAnnotations<file_sep>/tests/MyTestClass.php
<?php
/**
* @MyTest(name = "Thomas", surname = "{$surname}")
*/
class MyTestClass
{
const TEST_CONSTANT = "TEST";
/**
* @var int $age
*/
var $age = 27;
var $surname = "Cocchiara";
public function callTest() {}... | 5cf40b781ffafc350f5d41c15a928b522789e13b | [
"Markdown",
"PHP"
] | 14 | PHP | ThomasSquall/PHPMagicAnnotations | d07b1318486c3f942cfc0163f995f2dd6c916378 | e3446f76857ae0608754eb88756a57d1cca65c87 |
refs/heads/master | <file_sep># Hazelcast Open Binary Client Protocol
**Hazelcast Open Binary Client Protocol** definitions and code generator for multiple programming languages.
## Hazelcast Open Binary Client Protocol Definitions
The protocol is defined in `protocol-definitions/*.yaml` yaml files where each yaml file represents a ser... | 72004de88df43356b1c711d42d1ccfbe5f6b1666 | [
"Markdown",
"Python"
] | 3 | Markdown | petrpleshachkov/hazelcast-client-protocol | c0096cdea701442d2c9caddc0076c674adef4ff8 | 84fb05e63febc8bf92c2444692bbf688a01655b8 |
refs/heads/main | <repo_name>alemprogramer/react-filtering<file_sep>/src/pages/homePage/desclaimer/Desclaim.jsx
import React from 'react';
import "./desclaim.css";
const Desclaim=()=> {
return (
<div className='position-fixed containerPart' >
<div className="contentArea">
</div>
... | 0a1c039eabf68dd49cf1f0f9e0f13165fdc5074e | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | alemprogramer/react-filtering | 7bf13e9f9e6c80cb5d0eeca7bab6651fbe664174 | 2bebde16d472481651ea74cc068214920a28b806 |
refs/heads/master | <repo_name>bhurlow/textual<file_sep>/server.js
var ecstatic = require('ecstatic')
var http = require('http')
var fs = require('fs')
http.createServer(ecstatic({ root: __dirname + '/public' })).listen(3000)
<file_sep>/make.sh
browserify main.js > public/bundle.js
<file_sep>/main.js
/*
* <NAME> 2014
*/
var through ... | 5a0d31f4b0d297b532d0f5ef2efdd04a6b604348 | [
"JavaScript",
"Shell"
] | 5 | JavaScript | bhurlow/textual | e5301e96009cc37c716d5e2abedd8677837f3ccf | 836f1f2fee82d69e8247b840e3f337c04a78f369 |
refs/heads/master | <file_sep>using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using Tasklist.Domain.Contracts.Repositories;
using Tasklist.Domain.Entities;
namespace Tasklist.DAL.SQL.Repositories
{
public class ProjectRepository : BaseRepository<DataContext, Project>, IPro... | 79de3552a11aa0fea67b8fcb2c5222a9088a1c15 | [
"JavaScript",
"C#",
"Markdown"
] | 32 | C# | andreydil/sample-tasklist | 3867bf8baa3447c81e234751e21cfc39b30c2b5c | fb1ec85d2e60bb6da1e4f35a98cd58e99534eafe |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace Test
{
public partial class Form1 : Form
{
DAG DP =... | 69f30bb8fd412f9d3bdf64b78b0a3ce6963d14dd | [
"C#"
] | 1 | C# | NiraRamadhani/BFS_DFS-AlgorithmStrategy | 3979f95630e01753b16a45e0ccf856d08c1d87d9 | 4d449ab76db5a2ce0f5d3fe97e12ae5d38afa095 |
refs/heads/main | <repo_name>davidkern/batmonbrd<file_sep>/main.py
# import board
# import busio
# import digitalio
# import time
# import struct
# i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
# i2c.try_lock()
# def reg_read_int16(dev_addr, reg_addr):
# """Reads register `reg_addr` on device `dev_addr`"""
# result =... | 64ad79c19cb7e5cf1b17dbfc792479d295a95fe7 | [
"Markdown",
"Python"
] | 5 | Python | davidkern/batmonbrd | bf775e0a807f4fc176d5f8c6f9e26047d01393fd | 6a4d0b4a09ccd3ccfc4bb62a0747b015273f58a6 |
refs/heads/master | <file_sep>require_relative 'node'
class PSD::Node
# Represents the root node of a Photoshop document
class Root < PSD::Node
include PSD::HasChildren
include PSD::Node::ParseLayers
attr_accessor :children
# Stores a reference to the parsed PSD and builds the
# tree hierarchy.
def initializ... | 877862cc44c9def70202bee2b9606ff95171bf08 | [
"Ruby"
] | 6 | Ruby | pinnamur/psd.rb | 3a95f2a6de1e5e396f6cd678eb2d4d7929797fea | edcc7c8d2fe9963cb3fec0a6be96c0436d8ba777 |
refs/heads/master | <repo_name>farrelreginaldo/captcha<file_sep>/README.md
# captcha
Anggota :
1. <NAME>. (13)
2. <NAME>. (23)
3. <NAME> (33)
<file_sep>/captcha/gambarcaptcha.php
<?php
//ini kode untuk membaut gambar
session_start();
//ini untuk membuat session dulu di PHP, harus diletakkan diatas.
header("content-type: image/png"... | 64cfcb999a64e236e9dad4119dd41a77128da75e | [
"Markdown",
"PHP"
] | 3 | Markdown | farrelreginaldo/captcha | f9afa96cd538128affff0306a98b0b8128610e3a | ab4e5443f4fc3d79ef18f494ad1d70c895c1ef0e |
refs/heads/master | <file_sep>from keras.datasets import mnist, cifar10
from collections import Counter, defaultdict
import math
def sorted_batches(X_train, y_train, batch_size=64):
indexDict = defaultdict(list)
for i, y in enumerate(y_train):
indexDict[y].append(i)
N = y_train.shape[0]
n_batches = int(math.floor... | 81a114756a980e39b6f209144362ae2ed85a9dc1 | [
"Python"
] | 1 | Python | fredericgo/mlds2017final | 8bbf4bde54ab18df1467a313c43343df3df24bff | 653a6124591e2259efee712e8874bcfd7f79e0bf |
refs/heads/master | <file_sep># PianKe
片刻
<file_sep>//
// PKURL.h
// iOSPianKe
//
// Created by ma c on 16/1/17.
// Copyright © 2016年 赵金鹏. All rights reserved.
//
#ifndef PKURL_h
#define PKURL_h
#define LOGIN_URL @"http://api2.pianke.me/user/login"
#endif /* PKURL_h */
<file_sep>//
// Header.h
// iOSPianKe
//
// Created by ma c... | e7d06c8c1fee0c4e8c03164375c22c2d55732be3 | [
"Markdown",
"C"
] | 3 | Markdown | q1662737134/PianKe | cad0db4f838fd4eae40cde5dc64ce4228beae5a7 | 0995e60b8ecf7cf93c5de32739e2f2a883e750e7 |
refs/heads/master | <repo_name>GianMoran/Rails-Practice-Code-Challenge-Travelatr-houston-web-012720<file_sep>/app/models/blogger.rb
class Blogger < ApplicationRecord
has_many :posts
has_many :destinations, through: :posts
validates :name , uniqueness: true, on: :create
validates :age, numericality: { greater_than: 0 }
def likes
... | 69487fe631ce049fb6c005215b993dda8236a357 | [
"Ruby"
] | 5 | Ruby | GianMoran/Rails-Practice-Code-Challenge-Travelatr-houston-web-012720 | 7bb2ed278828fe53dfaab15c18364767f4bf85f1 | e459229555562db6e836b968c1a05a4b50a264c2 |
refs/heads/master | <repo_name>xiaonanln/PyHAAS<file_sep>/index.py
import haas
import struct
print('int size', struct.calcsize('I'))
haas.hello()
<file_sep>/haas/Service.py
# -*- coding: utf8 -*-
import abc
import asyncio
from .errors import ServiceError
class Service(abc.ABC):
"""Base class for services"""
def __init__(self):
sel... | 20a0415d3ebd9b4cc0c4e9bae594f0a5e347b47e | [
"Markdown",
"Python",
"Text"
] | 15 | Python | xiaonanln/PyHAAS | d549418c579aedf2450fdd8bb38c323bc9342457 | 0da62fcb4021cca0d54182f5efdda718f3b68be4 |
refs/heads/main | <repo_name>lamnguyenthanh2510/ASM_EAD<file_sep>/hello-lam/src/main/java/com/example/hello/service/UserService.java
package com.example.hello.service;
import com.example.hello.entity.UserEntity;
import java.util.List;
public interface UserService {
UserEntity createUser(UserEntity userEntity);
List<UserEntity... | 81c416dfcd64899b25cc9fda8780cb3c0eb4e5d3 | [
"Java"
] | 2 | Java | lamnguyenthanh2510/ASM_EAD | 58424a1fccdb6dc997b7ffa1ef3c407de6f33829 | ffe7a31b7bf132f9d186cbfd159776fa1ba6ee29 |
refs/heads/master | <file_sep>#!/bin/bash
set -euo pipefail
# This script is run every time an instance of our app - aka grain - starts up.
# This is the entry point for your application both when a grain is first launched
# and when a grain resumes after being previously shut down.
cd /opt/app
./sandpass \
-db=/var/keepass.kdb \
-li... | e283c93f601a891878e762b9201ab71656a06f65 | [
"Markdown",
"Go",
"Shell"
] | 6 | Shell | haiderny/sandpass | fac8ba01e3bc4288e6b9a6712ea635970dea4882 | 28f1fc8026719f5a846f70b55fcf69fb50884a01 |
refs/heads/main | <repo_name>hasnatosman/bmi_calculation<file_sep>/README.md
calculate your BMI.
<file_sep>/bmi_calculator.py
print('BMI calculator to check Body Mass Index.!')
# how to find bmi......................
def BMI(weight, height):
bmi = weight / (height ** 2)
return bmi
# driver code......................... | e7e64fad2a61cca2d310ea3c3d9a495f5e6809b4 | [
"Markdown",
"Python"
] | 2 | Markdown | hasnatosman/bmi_calculation | 2362c33f8f99c2bfe04b776b84ebabefd138966b | f3cc6263abf91f401d03bdb6df3c84ec2d383177 |
refs/heads/master | <repo_name>censore/EX-2<file_sep>/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by... | 96c38b8820848e54ef462a01a509a3a399ccea52 | [
"Markdown",
"PHP"
] | 39 | PHP | censore/EX-2 | f3c4cba3e8f41f1ee393c25dc0cec407350bce71 | 6bab8f0d560f9b9fb09e97b250da18bb82e075ec |
refs/heads/master | <repo_name>kazuhirosaji/nlp100<file_sep>/04/31_verb.py
# 31. 動詞
# 動詞の表層形をすべて抽出せよ.
import analyze as gal
list = gal.get_analyzed_list()
verbs = []
for res in list:
if (res['pos'] == '動詞'):
verbs.append(res['surface'])
print(verbs)<file_sep>/02/11_tab.py
# 11. タブをスペースに置換
# タブ1文字につきスペース1文字に置換せよ.確認にはsedコマンド,t... | 76f7f5e28a31e8b43f432b91aa0498cc0ba7b671 | [
"Python"
] | 29 | Python | kazuhirosaji/nlp100 | b0990a73af246196e04b5a61ed2ec1a975b8871b | 73a65961c07132b6e08bcfa0fe18c912d3d1ced4 |
refs/heads/master | <file_sep>import Vue from 'vue'
import Router from 'vue-router'
const Home = () => import ("../views/home/index")
const Login = () => import ("../views/login/index")
const Search = () => import ("../views/search/index")
const Detail = () => import ("../views/detail/index")
const Edit = () => import ("../views/edit/ind... | cac04319f7e556522b6e956a33dca02389ba8062 | [
"JavaScript"
] | 4 | JavaScript | zhf0314/Starbucks | 0a34a6c5dd027a7cd1ba73880eb33fc9db76cfd5 | 5234d2cc52cf2641e13f561b94a0d4814055e6b1 |
refs/heads/main | <file_sep>import React from 'react';
import PropTypes from 'prop-types';
function Toolbar(props) {
const { filters, selected } = props;
const onClick = (filter) => props.onSelectFilter(filter);
return (
<div className='toolbar'>
{
filters.map((o) =>
<div className={'filter' + ((o ==... | 800d97e60e53adf6635feb0055696d44fad4adfc | [
"JavaScript"
] | 3 | JavaScript | DravenRedgrave/Filter | ab71e3c7d7a0e073536a210b99db7beb1ae1a033 | 966b8d53e7a579a0150e91b2ae917148502090d4 |
refs/heads/master | <file_sep>var menuState = {
preload: function() {
this.numberOfBlocks = 0;
this.maxBlocks = 0;
this.blockSource = [];
this.blockDest = [];
this.currentBlock = null;
for (i = 0; i < game.height / 32; i++) {
this.blockSource.push({
x: 0,
y: 0 - 32
});
this.b... | 7e6de4e8d9d18f74815bcb886db9f7c48d540649 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | billkratzer/colors-game | 44c2ac58872cf5a056d762099bf23ba7683d622c | 0ee861aa481d5631f37c9927384bd8e4cc5f369f |
refs/heads/master | <repo_name>MackenzieBerliner-Glasser/tcp-chat-server<file_sep>/lib/chat-room.js
module.exports = class Clients {
constructor() {
this.map = new Map;
this.userNumber = 1;
}
add(client) {
const username = client.username = `user${this.userNumber++}`;
this.map.set(username, cli... | 55bc188a18b1257b86c6ad7b1edccd26ae1e9892 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | MackenzieBerliner-Glasser/tcp-chat-server | 8c7d2e2636b38e2e3f50bf1e00f4b524373c0a2e | 2807b78535adb63362a681ecf2d401600745b94e |
refs/heads/master | <file_sep>package filters
import (
"image"
"image/color"
"github.com/Aspirin4k/cv_school_test/project/imaginer"
)
type Flip struct {
imaginer.Filter
}
func (f *Flip) ApplyFilter(src image.Image) (image.Image, error) {
dstBounds := src.Bounds()
dstImage := image.NewRGBA(dstBounds)
// По сетке пикселей
// .... | 63e991a2c0dfe45348e28c85dd9f22e9e5b27c2e | [
"Text",
"Go",
"Markdown"
] | 10 | Go | Aspirin4k/cv-school-test | 9269abd08f0188768b94e1378ea6049895d7d111 | 1142f3f1ae33b22195b2b56f59f66ba0402beb7a |
refs/heads/master | <repo_name>JainRachit123/Games<file_sep>/README.md
# Games
This repository contains different games using python and its modules.
Tic Tac Toe is made using basic python.
Snake game is made using turtle module in python.
Car Dodge game is made using pygame module of python
<file_sep>/Snake Game.py
from turtle import... | 115dfe863102ea21c831ede25a0c67f1610c015d | [
"Markdown",
"Python"
] | 4 | Markdown | JainRachit123/Games | e12d5f7cdf0fe9d2a1b77795b296ec7ca0776cf7 | 825a7c36940c14ad66673e3a541679493fce1416 |
refs/heads/master | <repo_name>zachmartin9/hot-restaurant<file_sep>/routes/api-routes.js
const restaurant = require("../models/restaurant.js");
module.exports = (app) => {
app.get("/api/restaurant", (req, res) => {
restaurant.all((data) => {
let object = {
reservations: data
};
... | a687e646493c0b63d31ac1488a5d97ae535efd3f | [
"JavaScript",
"SQL",
"Markdown"
] | 5 | JavaScript | zachmartin9/hot-restaurant | c9764a25b414792c8302ebda89af82bdbcdeb6a6 | 473df85bddbeb2d79e02563d8824781133cd1a92 |
refs/heads/master | <repo_name>erdalceylan/InstagramPhotoPicker-Android<file_sep>/app/src/main/java/ly/kite/sample/MainActivity.java
package ly.kite.sample;
import android.app.Activity;
import android.content.Intent;
import android.os.Parcelable;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.ut... | 1f8cdc9086d2137dcd39fd6ae1786d7e7cb9fdd5 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Java | erdalceylan/InstagramPhotoPicker-Android | d6a94c1df99aff2439a16844012f79408dbecb5e | 5265daa6c34dd4aa03110225df67c8ab2bdd44a9 |
refs/heads/master | <repo_name>Kazimbalti/AUTONOMOUS-MULTI-UAS-LAB-SETUP<file_sep>/Autonomous Multi-UAS/Base Computer/ros_ws/src/msral/scripts/ibc_image_receiver.py
#! /usr/bin/env python
'''
ibc_image_receiver.py
Written by <NAME>
Date: May 1, 2019
Subscribes to the 'ibc_cam_img' CompressedImage topic and dis... | 2087f77dc1e731703f0b2f72129230ff5cfca94b | [
"Markdown",
"Python"
] | 22 | Python | Kazimbalti/AUTONOMOUS-MULTI-UAS-LAB-SETUP | e65cb097bc1449065a0a3531028f85ebe00f8701 | 9161ebf6505e86b3312f3a3484efc93c849ca822 |
refs/heads/master | <repo_name>MugLeo/sgfs<file_sep>/registrar_torneo/views.py
from django.shortcuts import render
from django.views.generic import View
from forms import FormTorneo
class RegistrarTorneoView(View):
def get(self, request, *args, **kwargs):
form = FormTorneo()
return render(request, 'registrar_torneo/registrar_torneo.... | e8ece9144d4125799d534abc87f2f1ed87b83a14 | [
"JavaScript",
"Python"
] | 8 | Python | MugLeo/sgfs | 19e1b02738a414a37a772b287de6c408aa3112e2 | 67fa2c81af37e0cda926c40083d5254aeac76d07 |
refs/heads/master | <repo_name>SampathSandaru/e-commerse-lab-practicele<file_sep>/index.php
<!DOCTYPE html>
<?php
include ('page/conn.php');
session_start();
$name="";
if(isset($_SESSION['id'])){
$name="WELCOME ".$_SESSION['fname'];
$val= "<a href=\"page/logout.php\"> Log out</a>";
}else{
... | 26fa263fb5c32867a2175ae6ca3ace41cc535baf | [
"SQL",
"PHP"
] | 10 | PHP | SampathSandaru/e-commerse-lab-practicele | cd78374560c91b24a7f5304fba7eb0eaf09f43a7 | 0d564279c2cf855a94771e690fc7f0adc4127adc |
refs/heads/master | <repo_name>jordanmarques/issou-checker<file_sep>/src/main/java/task/CheckTask.java
package task;
import check.RestChecker;
import java.text.DateFormat;
import java.util.Date;
import java.util.TimerTask;
public class CheckTask extends TimerTask {
public void run() {
System.out.println("Start check " + ge... | fce93c6635b3efa758a861984e496f14fdfc6ce4 | [
"Java"
] | 2 | Java | jordanmarques/issou-checker | fc3d7815007905ec2a14afeff2a008a19da73e41 | f0ce501c5380810d637d82a307b8932fcf1130ea |
refs/heads/master | <repo_name>ih-lab/CNN_Smoothie<file_sep>/CNN_basic/acc.py
import numpy as np
from collections import defaultdict
['adeno', 'squam']
def read_prediction(file_name, lables):
lable_dict = dict()
for i in range(len(lables)):
lable_dict[i] = lables[i]
evaluation = defaultdict(list)
f = open(file_name, 'r')
for line... | bad3364d8bb89dd09f520add95767c1d1f082571 | [
"Python",
"Text"
] | 7 | Python | ih-lab/CNN_Smoothie | 6527337cc40311af78a416f5b3ebf607a7b04788 | 30d36e5c2dbc2dbe3dfb1f12f2734a46dc78dff5 |
refs/heads/master | <repo_name>GarridoSantiago/LUAMACROS<file_sep>/README.md
# LuaMacros
## English
This repo contains some code for programing a Numpad for personal use I upload a modified program written by a 3rd (keyID)
You will find the next codes in the repo:
- cambas3: a code for using in photoshop for digital painting
- ... | a42ec7be5b9289f9c09f5ca3f0a117097d5d6ea6 | [
"Markdown",
"Lua"
] | 2 | Markdown | GarridoSantiago/LUAMACROS | 91bf04df117f0b5cbe865c0e1ef50af092725824 | 1d1f5f521ee12606c0ffa208aef077f72aec666c |
refs/heads/master | <file_sep># THIS MODULE CONTAINS ALL FUNCTIONS RESPONSIBLE FOR PROCESSING
# PARAMETERS AND FLAGS PASSED TO JETFREQ ON THE COMMAND LINE
import re
import json
import jfutil
import jfexceptions
# THIS FUNCTION CONDUCTS A 'RUN-THE-GAUNTLET' STYLE INTEGRITY CHECK
# OF THE PARAMETERS AND ABORTS JETFREQ IF ANY CONDITIONS F... | 0f9beb3c2d682bf57eb327fe0917bfae37f8e13c | [
"Python",
"Text"
] | 7 | Python | sjb-ch1mp/jetfreq | 681d0b7abca95716a30b11c88a7eb897021b863a | f37e1040d21d7b1c4795f836c545e69194d06124 |
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 lab3;
/**
*
* @author Benjamin
*/
public class ReportService {
private String report = "";
... | cadebc6a3ba606a3d03e8ae07352286ed2f74699 | [
"Java"
] | 2 | Java | bdavis32/Encapsulation | f502caeb9ed2d6da3a01f197e8c1ab42d47e08d8 | c6daea064097942dfb695c7a4705dfb77abdada7 |
refs/heads/master | <repo_name>kalinon/mtgscan<file_sep>/README.md
### How to use
Update the cache of card images:
```bash
$ python3 -m mtgscan --update-cache
```
Then start the scanner:
```bash
$ python3 -m mtgscan --set=ust --cam=0 --threshold=4
```
<file_sep>/mtgscan/mtgscan.py
import cv2
import numpy as np
import json
from PIL imp... | f289457032d4d57e54271c729ed3e2bca0447fe5 | [
"Markdown",
"Python"
] | 5 | Markdown | kalinon/mtgscan | d64cd6308637e23f84fca30544bd9bf1f957d54c | 3cae9eb3e7a657c20681652fbe2571e6c7c422a1 |
refs/heads/master | <repo_name>ravindracs0071/fullstackdotnet<file_sep>/HCL.UBP/HCL.UBP.WebUI/App_Start/UnityConfig.cs
using HCL.UBP.DataAccess.Interface;
using HCL.UBP.DataAccess.Repositories;
using System.Web.Mvc;
using log4net;
using Unity;
using Unity.Mvc5;
using UnityLog4NetExtension.Log4Net;
using Unity.Injection;
namespace HCL.UBP... | 989e58425f6682087d5c833feea3573c547fb1b7 | [
"Markdown",
"C#"
] | 9 | C# | ravindracs0071/fullstackdotnet | d7ecdf7609c9e257187e78f75e029394ced709ec | 88947c3c6dbe5db351b742482e027103be6c9a38 |
refs/heads/master | <repo_name>vi255/WikiTutorial<file_sep>/src/WikiTutorial.Web/App/Main/views/cliente/cliente_create_or_edit.js
(function () {
'use strict';
angular
.module('app')
.controller('app.views.cliente.cliente_create_or_edit', ClienteModalController)
ClienteModalController.$inject =
[
... | 4d016dc6f2cbe6126ea0d2ba4af380156c44d4c9 | [
"JavaScript",
"C#"
] | 9 | JavaScript | vi255/WikiTutorial | 7c1b78ac82ebaf3c60d038c4248ad6a01fe5ee09 | 10128bdfb89a6b12fdcc8764e4c8dfea665d8a16 |
refs/heads/main | <file_sep>namespace PrejittedLambda.Features.HealthCheck
{
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
[Route("api/[controller]")]
[ApiController]
public class HealthCheckController : ControllerBase
{
//... | 714a3fb1e591dc972e1a98212cd921d0f613c44f | [
"Markdown",
"C#"
] | 12 | C# | colinmxs/prejit-lambda | e29a150d04700bc509598d2ed2e6b0cdec33b584 | 6f32d58e7048dec7529e2b18c9370ccee69e70f2 |
refs/heads/master | <file_sep># PhoneBookApp
Codul pentru activare este "test123"!
<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 AgendaTelefon;
/**
*
* @author Razvan
*/... | 2f96a33ce25b506ee06adb5dd6cb3060423baa5d | [
"Markdown",
"Java"
] | 2 | Markdown | zaniev/PhoneBookApp | de25dd78d9cf39f7fa9e4e3be967d9db48cdc504 | dbd73fd51627407697598aba0f44a977920695b7 |
refs/heads/master | <repo_name>MarshallPreuss/TheTalksMockup<file_sep>/src/components/Page.js
import React from 'react'
import Nav from './Nav'
const Dashboard = () => {
return(
<div className="Parent">
<Nav />
<div className="Content">
<div className="Section">
<h2 className="InterTit... | 0848526d9b54049e9d44a03d55a037c9f6c9587a | [
"JavaScript"
] | 1 | JavaScript | MarshallPreuss/TheTalksMockup | a34c4e61848a5dc1f0b4d41c6c951a19946b9fc7 | 14724044a225c468e9a7236d3d20663550bbf3c9 |
refs/heads/master | <file_sep>package com.demo.ProyectoDemo.restController;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import javax.validation.constraints.Min;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.util.Strin... | 8bdad89c6431530ae927ccaa39678a982d256aea | [
"Java"
] | 3 | Java | MiguelEspinozaMedina/java-spring-boot-201910 | b64c671d10e1ba17f5b83dfc9be3ec6db8cb82f9 | f2cf53618be50cb3bd4c79e34f60b0464287fc9f |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="viewproductStyle.css">
</head>
<body>
<div class="header">
<h1>xCompany</h1>
<div class="topnav">
<a href="registration.php">Registration</a>
<a href="login.php">Log In</a>
<a href="home_.php... | 1c45e4a7b57deefa02bc5c2dece153e5df87b2f7 | [
"PHP"
] | 2 | PHP | theZeuses/WebTech-Lab9-xCompany-Products | 53afe3e98cf1a042505966aa571ac36d37bb57df | e26002ac669df03841b2c01ccbd06a7debb52420 |
refs/heads/master | <file_sep>###########################
# 6.00.2x Problem Set 1: Space Cows
from ps1_partition import get_partitions
import time
#================================
# Part A: Transporting Space Cows
#================================
def load_cows(filename):
"""
Read the contents of the given file. ... | 66dffc71d35f16b15618be27fde50213dfc3ae7e | [
"Markdown",
"Python"
] | 2 | Python | kfleming123/edx_intro_to_computational_thinking_and_data_science_mit | fdd83c5540b5ef8a5f5d124e629f7235d562b1df | af4e8ead5a32c6b1c254724a071a73157dfee5a1 |
refs/heads/master | <file_sep>#include "dialogset.h"
#include "ui_dialogset.h"
#include "setting.h"
DialogSet::DialogSet(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogSet)
{
ui->setupUi(this);
//加载qss
QFile file(":/qss/JobInfo.qss");
if (!file.open(QIODevice::ReadOnly)) {
qDebug() << file.erro... | aa2bc077ec19cb896f04fb533f15dd601187785e | [
"C",
"C++"
] | 14 | C++ | llong283/JobInfo | 2a1084b67559e9316feaafeefe6f3fc296088d4d | dc1e7bd1aa19f277479bf4a78d6906e6b0d2beeb |
refs/heads/master | <repo_name>LordOfTheBees/MicrophoneListener<file_sep>/App.js
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, Button, NativeModules } from 'react-native';
import { DeviceEventEmitter } from 'react-native';
const MicrophoneListener = NativeModules.IOMicrophoneListener;
const MicrophoneC... | bd3cb695652bc966c28befa52b3d72ccbd4c00ca | [
"JavaScript",
"Gradle"
] | 2 | JavaScript | LordOfTheBees/MicrophoneListener | 9362809f552eeb9d19cbbe5771b76ba97d27d7c2 | f93c770fa901c244d51e95d44e602e9063554b8b |
refs/heads/master | <repo_name>reason18/ToDoList<file_sep>/src/store/actions/index.js
export * from "./CommentList";
export * from "./TaskList";
<file_sep>/src/app/App.jsx
import * as React from "react";
import { Col, Row } from "reactstrap";
import { Sidebar } from "./controls/Sidebar";
import { CommentsList } from "./controls/CommentsLi... | 84e14bb80f1d829cbe3b79b8db6acac1381ec6a5 | [
"JavaScript"
] | 9 | JavaScript | reason18/ToDoList | 095beb5208f13601db5a80c35936622132b95bc0 | aceec7387dc6a53baf144d592fca48a454e004bc |
refs/heads/main | <file_sep>#include <iostream>
using namespace std;
int task1()
{
cout << "Task 1 " << endl;
int a, b;
cout << "enter first number - " << endl;
cin >> a;
cout << "enter second number - " << endl;
cin >> b;
if (10 < a + b < 20)
{
cout << "true" << endl;
}
e... | 36f6f4a43b940b02c10783a31a593f10b90e540d | [
"C++"
] | 1 | C++ | amkstkn/Homework4 | 529fa67130a551f4bf6f769c4353c750e314615e | f377e7211a58063c56a2692c7f87c77621d22751 |
refs/heads/master | <repo_name>illi-507/ComputerGraphics-Amuse-Textured<file_sep>/GraphicsTown JS 2015!_files/TurboDrop.js
var grobjects = grobjects || [];
// allow the constructor to be "leaked" out
var Drop = undefined;
var carCount = 0;
var step = 0.2;
// this is a function that runs at loading time (note the parenthesis at the end)... | 81aafa83ffa81c770caaaad633aefb037c339cc8 | [
"JavaScript"
] | 3 | JavaScript | illi-507/ComputerGraphics-Amuse-Textured | 2deb702e29c1b614c598746586bd45bceb98f8ef | 7c21fb9c124de63044b3296918a854132b74f237 |
refs/heads/master | <file_sep>package br.edu.ifpr.poo.campominado;
import java.util.Scanner;
import br.edu.ifpr.poo.campominado.mapa.Mapa;
public class CampoMinado {
private Mapa mapa;
private Jogada jogada;
private EstadoJogo situacao;
public CampoMinado(){
this(10);
}
public CampoMinado(int tamanho){
mapa = new Mapa(ta... | ea9cb8ca63834951327a6e89e7d07bb1764cf66b | [
"Java"
] | 7 | Java | poo-ifpr/campo_minado | 43280efa6e3174659168514645cea8811250cc23 | 8607e1241b211a2ebe93d4ea2f35347af4bda2ee |
refs/heads/master | <repo_name>chenqi123/bk_dcmdb<file_sep>/src/github.com/shwinpiocess/cc/controllers/mail.go
package controllers
import (
//"net/url"
//"strconv"
"strings"
//"time"
"fmt"
"github.com/astaxie/beego"
//"github.com/shwinpiocess/cc/models"
//"github.com/shwinpiocess/cc/utils"
"net/smtp"
)
type MailController st... | d0e1081a6f7aead193c56b94a2a001468b2cdfc4 | [
"JavaScript",
"Go",
"Markdown"
] | 33 | Go | chenqi123/bk_dcmdb | 3a13e8e0ca09afbe28f0d1a8411c8e542d950a1f | ccac61262e8cf1a4158de5a910c3a54efbf5790d |
refs/heads/main | <repo_name>MayankRanjan10/Car-Game<file_sep>/carcontrol.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class carcontrol : MonoBehaviour
{
private Vector3 startPosition, startRotation;
[Range(-1f, 1f)]
public float a, t;
public float timeSinceStart... | f853eb18c142aacf1333a102c4cba51f62bbb660 | [
"C#"
] | 1 | C# | MayankRanjan10/Car-Game | de5a9f3cf9c350a4124b68ce18468e2100529c8b | b7a493e34a81629dbf654c7d0b9332fefea5d24a |
refs/heads/master | <file_sep>var image;
var link;
//main function runs on page load
function main() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
var t = setTimeout(main, 500);
document.getElement... | fc15e728bed6dacf8903256cd45c1bf4a35e1979 | [
"JavaScript"
] | 2 | JavaScript | theodoros003/Final-Assesment | 34d1f4d2f3900356c5401ae201daeda4665598c2 | 4990bf353b3d26944457483545c0aae3e65199d4 |
refs/heads/main | <repo_name>PopaBobaFeta/ToDoList<file_sep>/Back/src/main/java/com/csse/restapi/restapireact/repositories/CardsRepository.java
package com.csse.restapi.restapireact.repositories;
import com.csse.restapi.restapireact.entities.Cards;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
p... | c4973a6e8e02e5e4fe8da21f7d3dfebcff4a5385 | [
"JavaScript",
"Java",
"INI"
] | 4 | Java | PopaBobaFeta/ToDoList | 021cea04ec9f6cd348aa6ebd7bae905785620156 | c11e4d0c2ffb6983c1967ed39b404e5810148d2f |
refs/heads/master | <file_sep>import React from "react";
import { NavLink } from "react-router-dom";
import { TopBarLinkTypes } from "../../constants";
class TopBarLinks extends React.Component {
componentDidMount() {
this.setState({
active: window.location.href
});
}
state = {
active: ""
};
render() {
re... | 5d2e872bffc42ed2862d94ad9cf26dd0875ac949 | [
"JavaScript"
] | 7 | JavaScript | gaurav145145/0to1SolutionsTask | a2e04f23055dac59be670d681994d2de6c53bc26 | 8982617edd1a5bf1b19f86ebde274a9ae9928de2 |
refs/heads/master | <repo_name>WebDevMichael/express-api-starter<file_sep>/config/localdev.js
module.exports = {
server: {
host: 'http://localhost',
port: 7878,
},
mysql: {
database: 'proveit',
user: 'gnomeknife',
password: '<PASSWORD>',
host: 'localhost',
port: 32773,
}
};<file_sep>/src/server.js
const... | 6567b031a5ef04e79f790d99348e85f2b5fbc4ea | [
"JavaScript"
] | 5 | JavaScript | WebDevMichael/express-api-starter | afd8e09204f8e4b02d1a40f4ee035c5d53338140 | e30e1137677e4f87f818b20dc65df14035150d7f |
refs/heads/master | <file_sep>
/**
* Write a description of DistanceFilter here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class DistanceFilter implements Filter{
private double maxdis;
private Location currentloc;
public DistanceFilter(double max, Location current) {
... | a0768e49788aa5ed5b0356dbf69a7096ef5b623f | [
"Java"
] | 8 | Java | junhkang/coursera-java | 54f3ab035f0b9a2246480bbcb3e2f46e486d6e0a | 3025965257c2e9cceb6ce51b86430d98db5c49c5 |
refs/heads/master | <repo_name>SongYHs/End2End-Multiple-Tagging-Model-for-Knowledge-Extraction<file_sep>/Evaluate.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 14 09:59:23 2019
@author: <NAME>
"""
import json
def evaluavtion_triple_new(testresult,senttext,savetagfile,kk=1,max_s=50):
total_predict_right=0.... | 1e79599deff4f1c528339e932a9078d24d77ff2b | [
"Markdown",
"Python"
] | 7 | Python | SongYHs/End2End-Multiple-Tagging-Model-for-Knowledge-Extraction | 73feafd38c8ace8acf782caba76caa211f57eaed | e6c329a64ff3391c8c3b4db4b56e92ee3ca26a94 |
refs/heads/master | <repo_name>jamesbieber/React-Insta-Clone<file_sep>/instagram/src/components/CommentSection/CommentSection.js
import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import Comment from "../Comment/Comment";
import "./commentsection.css";
import { MessageCircle, Heart } fr... | b123171fef14dfce33ee302bb2055560fb377fa5 | [
"JavaScript"
] | 4 | JavaScript | jamesbieber/React-Insta-Clone | 1591d70e558dc383482ead632e69da6fde2262ad | a026d033cb96d6d4a4d6aafa04aa161a63b243a0 |
refs/heads/main | <repo_name>ZZANZZAN/SNN<file_sep>/SNN(LIFmodel)/utils/image_utils.py
import random
import numpy as np
import matplotlib.pyplot as plt
from mnist import MNIST
mndata = MNIST('.\dirMNIST') #Put your directory where you downloaded the files
images, labels = mndata.load_training()
def get_next_image(index=0, pick_rand... | 4431a476af8a6f3397afad290f386501cfe1d8bc | [
"Python"
] | 4 | Python | ZZANZZAN/SNN | 594bfa4474097647e30e1542fc16bd46b37ae37d | 28792d67ac82d787d3c746baf6a4094dde0f7405 |
refs/heads/master | <repo_name>Rin94/R-ML<file_sep>/CodigoR/SupportVectorMachines/support_ocr.R
letters<-read.csv(file.choose())
str(letters)
letters_train<-letters[1:16000,]
letters_test<-letters[16001:20000,]
library(e1071)
library(kernlab)
## suport vector m<-ksvm(target~predictors,data=mydata,kernel="rbfdot",c=1)
letter_model<-ksvm(... | b23bcee8a3adc3b67b55d24dc5ddb321868c4338 | [
"R",
"RMarkdown"
] | 14 | R | Rin94/R-ML | 1b07b5e8ebab27efd883f6f5685d6d5979334774 | 50d603fa4992fba73225e4d36cb4bcb2872dd3af |
refs/heads/master | <repo_name>yribeiro/computer_vision<file_sep>/utils.py
import cv2
import numpy as np
def find_cb_points(img, cb_size):
"""
Function returns the corners for an image with a chessboard.
:param img: Image with chessboard in it.
:param cb_size: Size of the inner chessboard - tuple
:return:
(re... | 24fa1232c069c075ce1b8ac98fb73054999f4041 | [
"Python"
] | 3 | Python | yribeiro/computer_vision | 9caaacc7cc1d0d87aa88be5d959f0b286e9806ca | a7323ef4afdfb056b3cfee91e05a7097603ef811 |
refs/heads/master | <repo_name>techleft/SwiftParsec<file_sep>/Tests/LinuxMain.swift
import XCTest
@testable import SwiftParsecTests
XCTMain([
testCase([
("testOneOf", CharacterTests.testOneOf),
("testOneOfInterval", CharacterTests.testOneOfInterval),
("testNoneOf", CharacterTests.testNoneOf),
("testSpa... | 6f0260988740bff2c0bdebe6d7736404e51ad864 | [
"Swift"
] | 1 | Swift | techleft/SwiftParsec | d78eb673422890d4ed7462bd1cc9374e1abfbef7 | 2097619abb2b25d1f79cd2c13261a7db69a4f11a |
refs/heads/master | <file_sep>package com.makovetskiy.jdbc_template_dao;
import com.makovetskiy.jdbc_template_dao.template.CategoryJdbcTemplate;
import com.makovetskiy.model.Category;
import java.util.List;
import java.util.Optional;
//@Repository
public class CategoryDaoImpl implements CategoryDao {
//@Autowired
private Categ... | 8a1481d496bf8eb57d763551739b1995c5b754d9 | [
"Java"
] | 3 | Java | stanmak1991/SpringDemo | 3d272e2e6ec94cae9d79960ee0c8a2883736d990 | f0a83db8155736eb73414c4f3025a4de4cc14d14 |
refs/heads/master | <repo_name>greenleafservices/jms_app<file_sep>/routes/cards.js
const express = require('express');
const router = express.Router();
const { data } = require('../data/flashcardData.json');
const { cards } = data;
router.get( '/', ( req, res ) => {
const numberOfCards = cards.length;
const flashcardId = Math.floor( ... | 23f388637a1f3425743260dd3ce85095e1136768 | [
"JavaScript"
] | 1 | JavaScript | greenleafservices/jms_app | 893d498116f81a7be70bec5a86ae7493db435ff6 | 80a437fb14efa54f1976b7a2a289ce40b89c3148 |
refs/heads/main | <file_sep>/**
*
*/
package BasicWeb;
import org.openqa.selenium.Alert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
/**
* @author umutx
*
*/
public class AutoChrome {
/**
* @param args
*/
public static void main(String[] args) {
//System.setProperty("webdr... | 06178437e4780b2c7113ae044913d609deb3db55 | [
"Java"
] | 6 | Java | UmutsDemo/Selenium-functional-regression | 22b5bd8c98928ba44a29d5dbdbabda656aba37af | ddd0507768d336918b374e8836a99a4820ff3173 |
refs/heads/master | <file_sep>import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
declare var window: any;
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements... | b747178a81cef4e276eb483ab82a569656af1d5d | [
"TypeScript"
] | 1 | TypeScript | souravknath/Authorize.Net-Hosted-Form-in-angular | d858f15a994220369e8bdfb025ad44279ddc156b | 9a1de3731fbb4512e2e7c0580593154dff110ecb |
refs/heads/master | <repo_name>Esleiter/cutUrls<file_sep>/README.md
# CutURLs
***
The project consists of shortened URLs, it is a functional practice carried out with the MERN stack.
## Table of Contents
1. [General Info](#general-info)
2. [Technologies](#technologies)
3. [Installation](#installation)
## General Info
***
This is a first... | fefb2fee5c2d86c193dd11fd4db15baf41c78b0d | [
"Markdown",
"JavaScript"
] | 6 | Markdown | Esleiter/cutUrls | cb23f1e08760eee1cb9a13af029789f1cb107418 | d589bcaf424f331aad2aadad91fb0c91130d8884 |
refs/heads/master | <file_sep>import numpy as np
import pandas as pd
from tqdm import tqdm_notebook
import sklearn
from sklearn.metrics import f1_score
from sklearn.model_selection import train_test_split
from sklearn.base import BaseEstimator, ClassifierMixin
def batch_generator(X, y, shuffle=True, batch_size=1):
"""
Гератор но... | 436ced02c56823f247c944dc525fcdd47320c904 | [
"Markdown",
"Python"
] | 3 | Python | AlexanderYakovenko1/ml1_sphere_project | 44e38761d26916e172dd21f6989555fbb64a0348 | 2d790d1e5a3ce59f7288c9add82e6e8c3303b759 |
refs/heads/main | <repo_name>DOGANAY06/SwitchCaseEgzersizi<file_sep>/README.md
# SwitchCaseEgzersizi
Switch Case Örneği Form Uygulaması İle
<file_sep>/SwitchCase/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
usi... | f302dc3df04d63ac6fecf59b4e815fb17aa4ff39 | [
"Markdown",
"C#"
] | 2 | Markdown | DOGANAY06/SwitchCaseEgzersizi | 9b5fe867e922cd721789eb26e4ca4f15806e4431 | 1c46cb66b077bcdda29fda90c8b7f74caa54390c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.