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 enum
class PlayerRelative(enum.IntEnum):
"""The values for the `player_relative` feature layers."""
NONE = 0
SELF = 1
ALLY = 2
NEUTRAL = 3
ENEMY = 4
class FeatureUnit(enum.IntEnum):
"""Indices for the `feature_unit` observations."""
unit_type = 0
alliance = 1
health = 2
shield ... | 0c83b5e912e094d1b6d0bd06f4903a06b6411b43 | [
"Python"
] | 1 | Python | junkilee/pysc2 | 3a4a095f262826c10ffeea6123fc9b4a145b7563 | 6987c442be20dab92249fd2cbab2a81a12e8588c |
refs/heads/master | <repo_name>tjacobs/cycloid<file_sep>/design/ekf/model.py
import numpy as np
import sympy as sp
import codegen
import os
sp.init_printing()
# Define our model's state variables:
(v, # velocity (m/s)
delta, # steering curvature (1/m) - inverse turning radius
y_error, # lateral distance from centerlin... | 7d65226e109fddf9bddd70bffba7060cb7097b8c | [
"Python",
"CMake"
] | 3 | Python | tjacobs/cycloid | 39be2f2e2f45e2bd25b353ce273df0088b96807e | 3e8b3d4a4cf8450a92df90088406752a3bc9e18e |
refs/heads/main | <repo_name>putriisnaaaa/projectpengcit<file_sep>/filter.py
import cv2
face = cv2.CascadeClassifier('face_detector.xml')
filename='efekisna.jpeg'
img=cv2.imread(filename)
gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
fl=face.detectMultiScale(gray,1.09,7)
ey=face.detectMultiScale(gray,1.09,7)
hat=cv2.imread('crownis... | 8968a2c243cf6646e7882479bdc61694d8f0a98e | [
"Python"
] | 2 | Python | putriisnaaaa/projectpengcit | 31f5ae023a374a4ad28dd1b088cc532f4b4c549c | 897d7b31c2ee574b26937982c292f9f15d779e3c |
refs/heads/main | <file_sep>var algo = document.querySelector(".algo");
var gameBox = document.querySelector(".game");
var gameBoxRect = gameBox.getBoundingClientRect();
var width = gameBoxRect.width;
var height = gameBoxRect.height;
var algoRect = algo.getBoundingClientRect();
var algoWidth = algo.width;
var algoHeight = algo.height;
... | f5f15f4e2b173d3063da62f077bfb9ddb72abed1 | [
"JavaScript"
] | 1 | JavaScript | razdvapoka/Catch-The-Algorithm | bf73c92e964a8d6a21afdc66c37be97716c26847 | a4d84d43550a77b201f83741843bad2ed02a257e |
refs/heads/master | <repo_name>SapirWeissbuch/chatproject<file_sep>/client.py
#============================================================================================== #
# @file : client.py
# @purpose: client class for internet messaging interface.
# @author : <NAME>
# @date : 27/11/2018
# ===================... | 3466710756fe67afc3c3d5d4fa199be80f8a2023 | [
"Markdown",
"Python"
] | 5 | Python | SapirWeissbuch/chatproject | 1701a6b34283698f19afd5c4b33aa6fdd06e298a | 78686edc7254fb26c558249a13873a0b009a9132 |
refs/heads/main | <repo_name>chattyy/PreHandleTweet<file_sep>/PreHandleTweet/__init__.py
from PreHandleTweet.ProcessTweet import process_tweet,build_freqs
| f9748e2bf27fe7854aa8d7e7146dd36815936e74 | [
"Python"
] | 1 | Python | chattyy/PreHandleTweet | 9ba773a5b2c6925df9ee1475e23c9327ef1daf58 | 88ba9717789238f2d3c0b442a876a729633a4a4e |
refs/heads/master | <file_sep>
<?php
// database connection
// localhost user name and password and last parameter is for database name.
$db = mysqli_connect("htl-server.com","martinadodsql1","Marti@133","martinadodsql1");
// data von database bekommen
$q = mysqli_query($db, "SELECT name, value FROM pie_chart");
if($q){
... | 180525a37de866b0a493c4e6b818c875c79cab7f | [
"Markdown",
"PHP"
] | 3 | PHP | martinadodmasej/4ay_test | 8676985a833cb56ba673078009fac52e65c4012c | 59dee4bb702de8614d874405e2a62436546c5dac |
refs/heads/master | <repo_name>ghigbie/DeveloperHealthPlusVersion2<file_sep>/app/src/main/java/com/geogehigbie/developerhealthplusversion2/fragments/pre_exercsie_fragments/DayChooserFragment.java
package com.geogehigbie.developerhealthplusversion2.fragments.pre_exercsie_fragments;
import android.os.Bundle;
import android.support.v4.app.F... | 6e024306091419f758988ec00825cf22ee5108b6 | [
"Java"
] | 4 | Java | ghigbie/DeveloperHealthPlusVersion2 | b559cf69e175f221335f9c8ba74bd4b12ff80e5a | 073dafa2819227b4630fbd2e3d4a9532d14d7c26 |
refs/heads/master | <repo_name>sdavi38/pontoloc-api<file_sep>/__tests__/integration/Contract.spec.ts
import request from 'supertest';
import { Connection, getRepository, getConnection } from 'typeorm';
import { runSeeder } from 'typeorm-seeding';
import Material from '../../src/models/Material';
import ContractItem from '../../src/models... | a3b4d26d3831f93fae9ae706d258e73716913a83 | [
"Markdown",
"TypeScript",
"YAML",
"Shell"
] | 57 | TypeScript | sdavi38/pontoloc-api | 619ab88c1ec901ab48dca447463364946538ee27 | 5fc24e81978160f8e5389d3926dcf1434522caa7 |
refs/heads/main | <repo_name>shailen4020/Test2P<file_sep>/src/main/java/com/company/AddController.java
package com.company;
//import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.a... | 277b64785fdf1719279bee5fd94af1803905e184 | [
"Java"
] | 1 | Java | shailen4020/Test2P | 8fc16068ba808ae64219d07b7c13648fe5f58e1f | dc41b9b3852c03e3b7bd8f95860b2608d4a0972f |
refs/heads/main | <repo_name>african-marketplace-tt7/frontend<file_sep>/african-marketplace/src/components/Dashboard.js
import "../assets/css/main.css";
import React, { useEffect } from "react";
import { connect } from "react-redux";
import { NavLink } from "react-router-dom";
//Actions
import { fetchCurrentUser } from "../store/action... | a7453ca03deb2049d44d741dfe31db90b07e32cc | [
"JavaScript",
"Markdown"
] | 21 | JavaScript | african-marketplace-tt7/frontend | 85c5f68c7c5c5284675ece7de99856ca10f034f0 | 942538f88e9060d8c232b212829a7f07fd345200 |
refs/heads/master | <repo_name>AaguoTeam/aaguo<file_sep>/core/modules/party/install/install.php
<?php
$CFG =& $_G['loader']->model('config');
@$CFG->write_js();
unset($CFG);
?><file_sep>/core/modules/tuan/model/cjdata_class.php
<?php
/**
* @author moufer<<EMAIL>>
* @copyright (c)2001-2009 Moufersoft
* @website www.modoer.com
*/
... | dae8138833c003b2d7dacbbb670f5a7da15435f1 | [
"JavaScript",
"SQL",
"HTML",
"PHP"
] | 278 | PHP | AaguoTeam/aaguo | 2efae9e601fdca0e9772816580f3f95dbbd91e54 | 76ccecea75b66c909f6a916c7835e9badfdc479f |
refs/heads/master | <file_sep>from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
import logging
logger = logging.getLogger()
logger.setLevel(logging.CRITICAL)
# create a chatbot
chatbot = ChatBot('N4ruto')
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train("chatterbot.corpus.english")
while Tru... | f2d4912f97e9fe45fa7bc709ce71e60c66f5f41a | [
"Python"
] | 1 | Python | JeevanNaikOP/simple_Chatbot | 1d7a8ea3a5aeb14f325d4a88654a2f807bdfc556 | a4cf022b456a9c80606b1d25c5859bbe6fa09821 |
refs/heads/main | <repo_name>SaulFernand0/GenerarReporteXML<file_sep>/index.php
<?php
function call($f_i, $f_f, $cliente){
require "conexion.php";
$resp = mysqli_query($conex, "select * from cliente c join venta v on (c.idcliente = v.idcliente) join detalle d on (d.idventa = v.idventa) join producto p on (p.idproduct... | 8f0e9e0383b56b41b202f7c34f807eb929ac400d | [
"PHP"
] | 2 | PHP | SaulFernand0/GenerarReporteXML | c9b6d2ccb93d8ef26a391c175f45d237660e9949 | dc53f3e6bfd7af13f59c8677d5319ac0e87e9d71 |
refs/heads/master | <file_sep><?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class LearningController extends AbstractController
{
private $name;
/**
* @Route("/", name="learning")
*/
public function aboutMe()
{
... | aa1a98e2b1f6d447505af8b997d07abf1c49db6b | [
"PHP"
] | 1 | PHP | grgdhiraj/symfony-mvc-routing | 412a3beec8b0a0a37e85ce63a6e30f09f806323d | 43f508f8ef5b6a2722b2e2b51ae4a7228b1f64db |
refs/heads/master | <repo_name>etsangsplk/drone-gc<file_sep>/gc/cache/listener_test.go
// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
package cache
| d2080745563dfeb1018c0e015375ac0e8d7e12cd | [
"Go"
] | 1 | Go | etsangsplk/drone-gc | 93752ce7050469a0d0334c06382b7dbbfb8c198c | fed20359d4968ed357e8fc74dcff2a9a1785ac00 |
refs/heads/master | <file_sep>import React from 'react';
import truncate from '../util/truncate';
/* Props:
* @albumInfo: object
*/
export default (props) => {
// get AlbumOverlay data
const itunesUrl = 'https://www.apple.com/itunes/download/';
const {
artistName,
collectionName,
collectionPrice,
artistViewUrl,
... | e85655d44db5d212287fa3947ec895ce69fd9fd1 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | m-hatch/ArtistSearch | 6f6b2942ba2de086124a7d93484aaa0ef67f4492 | 3c14f8ac6adc5ae552a0b7eb0e03781632ee4c88 |
refs/heads/master | <repo_name>IanMoonee/JavaDesignPatterns<file_sep>/src/patterns/Adapter/CelsiusTemperature.java
package patterns.Adapter;
public class CelsiusTemperature implements Temperature
{
@Override
public void printTemperatureMessage()
{
System.out.println("Temperature in Celsius");
}
}
<file_sep>/src/pa... | 2e14cf377dac4444fc975c5d95d504b66c69d446 | [
"Java"
] | 5 | Java | IanMoonee/JavaDesignPatterns | 1b765538af280c6f932a0da018111ceb8e2d2c9a | 0f0417b4b51550b9420075ea33fd55fcfdfeccf3 |
refs/heads/master | <repo_name>KMenz/Mars-Web-Scraping<file_sep>/README.md
# Mars-Web-Scraping<file_sep>/scrape_mars.py
#import dependencies
from bs4 import BeautifulSoup as bs
from splinter import Browser
import os
import pandas as pd
import time
from selenium import webdriver
def scrape():
executable_path = {"executable_path":"chr... | b348e0c27eb326f27552da1f35084c4f4b5ad030 | [
"Markdown",
"Python"
] | 2 | Markdown | KMenz/Mars-Web-Scraping | 6df33da0509bd4c1ff8bbe55e7df8a8859c40ff2 | 98eb572418d8dd07a89b0bb94f9d4a5ba18a76dd |
refs/heads/master | <repo_name>chaiyuan04/Get-Clean-Data-Project<file_sep>/run_analysis.R
#Course Project
setwd("C:/Users/chaix026/Dropbox/R/Getting Data and Data Clearning/quiz/Get-Clean-Data-Project")
ProjectUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(ProjectUrl, destfil... | d9f33eff673b3cbe7f39991deadb317273b4e0aa | [
"R"
] | 1 | R | chaiyuan04/Get-Clean-Data-Project | 7a0dcbf90b02405534f2a340cdd3c6adf4237202 | f84f7048a0bb5f18c39da4dffc3e8e453e42b3e1 |
refs/heads/main | <file_sep>def square_footage(length,width):
print(f"length: {length}, width: {width}")
length = int(length)
width = int(width)
area = length * width
print(f"Your square footage of your house is: ", area)
def circumference(diameter):
print(f"diameter: {diameter}")
diameter = int(diameter... | c9a718d04f660608313eafdc64a1270e5fd56c60 | [
"Python"
] | 1 | Python | nbnulton/Week2Day3Homework | 61e39d25b58a0826c25e446e0f3136010d719599 | 8fa24d54322b03b808f3df831c6c71908e5d36a1 |
refs/heads/master | <repo_name>alparf/ITAcademyJEE<file_sep>/app/src/main/java/by/academy/service/impl/SalaryService.java
package by.academy.service.impl;
import by.academy.model.bean.Salary;
import by.academy.repository.IRepository;
import by.academy.repository.impl.SalaryRepositoryDB;
import by.academy.service.ISalaryService;
import by... | a9eaa157b40d3b34c65d6a930cab63f30d10d5e5 | [
"JavaScript",
"Java"
] | 16 | Java | alparf/ITAcademyJEE | e5ffe37d08e7812ab69292ba6fbb6a3d32c7dfdf | df1a1c62cbe2c54b51acbe5fa2f8d47514ee66f3 |
refs/heads/main | <repo_name>Perry5216/Ticketing-System<file_sep>/user.h
#ifndef UNTITLED_USER_H
#define UNTITLED_USER_H
#endif //UNTITLED_USER_H
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
class user
{
public:
user();
~user();
void getLogin();
void getProfileInfo(string &fName, string &sNam... | 3100d7c07cb91d0cf29eda179bc3b7af8b943bd6 | [
"Markdown",
"C++"
] | 7 | C++ | Perry5216/Ticketing-System | 9bbf35e5f3ac9ee84baaf196a03764b02aa2910b | 0e0a3f2cca92e4901d0f61cdcae78fe8fb48f75d |
refs/heads/master | <file_sep>class PhpBuild < Formula
desc "Builds PHP so that multiple versions can be used side by side"
homepage "https://github.com/php-build/php-build"
# url "https://github.com/madumlao/php-build/archive/osx-zlib.zip"
# sha256 "2a903f4e066299334abbf8e4dad6e50bcd0ce9dc557d4097fd5b651d5b2813d9"
head "https:/... | c5986a9cc60ef3e4150b4c654d3e10d5d0358981 | [
"Markdown",
"Ruby"
] | 3 | Ruby | madumlao/phpenv-tap | 260d6c1713634ecaf56a107b1c411094b5e99010 | cfebf7ba9b6fbd12fe5bbbfb31f4d58575e58df9 |
refs/heads/master | <repo_name>FRC-6420/Fire-Island-PowerUp<file_sep>/powerupcode/src/org/usfirst/frc6420/powerupcode/src/org/usfirst/frc6420/powerupcode/Constants.java
package org.usfirst.frc6420.powerupcode;
public class Constants {
/*************************************************
* constants for Autonomous
*****************... | fa3fd074e6e03922018bf9775e4ec43b45b42653 | [
"Markdown",
"Java"
] | 2 | Java | FRC-6420/Fire-Island-PowerUp | 215b319cd1ba073ec5a9bd4a9e2cc2c7b8ada6c8 | 4cc93a3f914a7a880beef55dd3bd9173446facb9 |
refs/heads/master | <repo_name>testwangchao/learn-java<file_sep>/src/com/example/annotations/example/TableCreator.java
package com.example.annotations.example;
import com.example.annotations.example.anns.Constraints;
import com.example.annotations.example.anns.DBTable;
import com.example.annotations.example.anns.SQLInteger;
import com.ex... | 3aebcc6f67e2a864ec2ceb4d93ba48b10a49fbbc | [
"Java"
] | 2 | Java | testwangchao/learn-java | f9235bfa618ecc9ce7fabb944ac28a559df73892 | 088373cf01d414f224b8979fca9ad7e86898c34d |
refs/heads/master | <repo_name>humanytek-team/contact_delivery_days<file_sep>/res_partner.py
# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
from openerp import api
class res_partner(models.Model):
_inherit = 'res.partner'
custom_delivery_days = fields.Integer('Dias de trayecto') | 8abb3b94e165509824e24ea940b955ebd4d64db9 | [
"Python"
] | 1 | Python | humanytek-team/contact_delivery_days | e1d673e3130bd09201d0b584eb3021ce696b71ea | cc401ca55fd5492a26d0768dbaf7fae15a728e27 |
refs/heads/master | <repo_name>Qcloud1223/exe-loading<file_sep>/src/build-generic.sh
#!/usr/bin/env bash
set -eux
gcc \
-L/home/hypermoon/Qcloud/glibc/build/install/lib \
-I/home/hypermoon/Qcloud/glibc/build/install/include \
-o "$1.exe" \
-g \
-rdynamic \
"$1.c" \
-Wl,-rpath=/home/hypermoon/Qcloud/glibc/build/install/lib \
... | 33d6673dad1fdedea72fd62d0defa12dedc40268 | [
"Markdown",
"C",
"Shell"
] | 7 | Shell | Qcloud1223/exe-loading | 8e3fde298b95e435da0661e7695006b8a39ec0fe | 584662595fc2f8de150549c186d26f35d3945556 |
refs/heads/main | <repo_name>maryletteroa/gcp-cloud-resources-mgt<file_sep>/gcp_commands.sh
# set zone / region, project
gclud auth list
gcloud projects list
gcloud config set compute/zone us-east1-b
gcloud config set compute/region us-east1
gcloud config set project my-project
#### Virtual machine instance
# create vm instance
gcloud... | e0979d989f02659e04f706357c8dc1e3e74f951a | [
"Markdown",
"Shell"
] | 2 | Shell | maryletteroa/gcp-cloud-resources-mgt | 47e8616478c625c982f45f0e80e4b4c75dda99ae | bde744e22ba0a799d4a04827c109b3059aa486e0 |
refs/heads/master | <file_sep>from flask import Flask
app = Flask(__name__)
from sys import platform as _platform
if _platform == "linux" or _platform == "linux2":
# linux
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql+psycopg2://postgres:postgres@localhost/icarus'
pass
elif _platform == "darwin":
# OS X
pass
el... | 11d04840f77770c46b231ee0ec96f6d6f28b2ec6 | [
"Markdown",
"Python"
] | 4 | Python | sirwoetang/icarus_server | 95325ffcc9674414a371f400d3e2e44b94ca3c33 | b701a303a008807f8d4aaf306ac714b9505fd168 |
refs/heads/master | <repo_name>msnyder909/golang-cli-playbook<file_sep>/module6/module6.go
package module6
// FunctionForModule6GoDoc This is the function for module6
func FunctionForModule6GoDoc() {
}
| f8b9463eddb3383fe82584964ce5873acefcbf8d | [
"Go"
] | 1 | Go | msnyder909/golang-cli-playbook | 8d39b3c9594d7207e3ecf45fc5f6612d9d5c0113 | 1f9c839c845e283cb81f50d1e6091a47c032b406 |
refs/heads/master | <repo_name>kanntaim/selenium_task<file_sep>/src/main/java/framework/drivers/WebDriver.java
package framework.drivers;
import framework.utils.Properties;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver... | 3e7b624579e2cad2bf7581db9c6d8bde3bdac015 | [
"Java",
"INI"
] | 6 | Java | kanntaim/selenium_task | 3b497aa2d80d7026f073517bfc3ff831be58e4a9 | ef3f7113f6f3c4280a27a141e4ea0c960922096f |
refs/heads/master | <file_sep># About the project
this is a simple quiz app created with Javascript.<file_sep>// variables that control the quiz
let rightQuestions = 0;
let wrongQuestions = 0;
let questionIndex = 0;
let currentQuestion = null;
let isAnswered = false;
let timerID = null;
// Get all necessary elements
const startScene = do... | aa8490e468aeb68afaf4747c3674403a616fd290 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jose-uilton-ferreira/quiz-app | 2a4d7dd772d5ddac499f422c3512e454ea30984b | a25d97a099c5eece8b5eea03a825d4fefdaec891 |
refs/heads/master | <repo_name>yellowsimulator/INF5620-solutions<file_sep>/decay_plot_error.py
from numpy import *
from matplotlib.pyplot import *
def solver(I, a, T, dt, theta):
"""Solve u'=-a*u, u(0)=I, for t in (0,T] with steps of dt."""
dt = float(dt) # avoid integer division
Nt = int(round(T/dt)) # no of t... | c449646bb56a05b2597188b06a37152e42fe088d | [
"Markdown",
"Python"
] | 6 | Python | yellowsimulator/INF5620-solutions | acb94171922a38d97ba3d433dc8e1142a03e7194 | 46a888eee3069d706f5c37ce23807ccf1e9d9467 |
refs/heads/master | <file_sep>def on_button_pressed_a():
OLED.clear()
OLED.write_string_new_line("ahoj MATO")
input.on_button_pressed(Button.A, on_button_pressed_a)
def on_button_pressed_b():
OLED.new_line()
OLED.write_string("Teplota: ")
OLED.write_num(input.temperature())
OLED.new_line()
OLED.write_string("O... | f059cdeab6c945ed55fa24ed8c3bbdcc91a36886 | [
"Python",
"TypeScript"
] | 2 | Python | motyliak/display | 3f80e4c6c49d98b67503280a4c443e7aeb335a6d | 3f9011f93b7c7c2bce83107b16526b9fd33029b6 |
refs/heads/master | <file_sep># Song-Genre-Classifier
A classifier for song genre detection using CNNs.
The GTZAN dataset was used for training the model.
Download from: http://opihi.cs.uvic.ca/sound/genres.tar.gz
The dataset consists of 30 second snippets of 1000 songs evenly spread across 10 genres.
The spectrogram_converter.py has th... | 5ffcd571ce4a897dea9f71a918439ae2c43c24ba | [
"Markdown",
"Python"
] | 2 | Markdown | sangramch/Song-Genre-Classifier | e9e3852bb2c2edd292315af6741763b5e402f139 | d73a5ae6d6237f4cd349466bab4fe0f60b94cac9 |
refs/heads/master | <repo_name>ViktoriiaDavydova/Car-Rental<file_sep>/script/RentalClients.js
const CUSTOMERS = [{
"last_name": "Morecomb",
"first_name": "Gabriel",
"address": "73 Springs Street",
"state_prov": "West Virginia",
"email": "<EMAIL>",
"phone": "304-117-8595"
},
{
... | 9b9e5dd211d72342764e9bb9a8f15d9e70ce47c0 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ViktoriiaDavydova/Car-Rental | fa1bda54f38f40943aa3bc17c4355643131413e1 | 86a2b78f135f5d91180c394ab0f2b86df23ec0ea |
refs/heads/master | <repo_name>Bracketeers/web-collective<file_sep>/react-redux-scss/src/redux/actions/TestAction.ts
export function TestAction(name : string) {
return {
type: "TEST_ACTION",
name: name
};
}<file_sep>/README.md
# web-collective
A collection of boilerplate web projects
<file_sep>/react-redux-scss/src/r... | 16af76649feb2926212812d3ec4770e66982b625 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | Bracketeers/web-collective | 0966089327b656bc183e7edf93010531a7a1cf3e | 8c282ec17a46501c9ba875e39163a1f51330a7b5 |
refs/heads/master | <repo_name>zipkinlab/Rossman_etal_2016_EcolAndEvol<file_sep>/dolphin_example_wrapper.R
############################################################
# Dolphin Case Study Wrapper
############################################################
# 1.) Section 1: Libraries and functions
# 2.) Section 2: JAGS Model
# 3.) Se... | 1efa0fa49694c950c38b2e2b32931a13af07fbef | [
"Markdown",
"R"
] | 3 | R | zipkinlab/Rossman_etal_2016_EcolAndEvol | 496714085ff751385c4de57dca5e9f12a97a5922 | bdc52dc5c8ef55d3dc36b73a363de26b5e11faa8 |
refs/heads/master | <repo_name>liuyunhe/zheye-app<file_sep>/src/helper.ts
import { ColumnProps } from './store'
export function generateFitUrl(
column: ColumnProps,
width: number,
height: number
): void {
if (column.avatar) {
column.avatar.fitUrl =
column.avatar.url +
`?x-oss-process=image/resize,m_pad,h_${height}... | 253f6f7f133b5a8caa06d020cce6424fcc92f58d | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | liuyunhe/zheye-app | 343b6b44a8a732734c892bc34b5cc5d2d114b855 | 7dd56d0e0edaff808b4bc4b7b2dd7cd73fdead1d |
refs/heads/master | <repo_name>rolandschulz/mpp<file_sep>/test/simple_sendrecv.cc
#include <gtest/gtest.h>
#include <mpp.h>
#include <iostream>
#include <cmath>
using namespace mpi;
TEST(SendRecv, Scalar) {
if(comm::world.rank() == 0) {
comm::world(1) << 4.2;
int val;
auto s = comm::world(1) >> val;
EXPECT_EQ(4, val);
EXPECT... | c948298eecda3995bc9a3264fa32a24b2d7ac27f | [
"CMake",
"C++"
] | 3 | C++ | rolandschulz/mpp | 2a45581a28f5119c2277000e144bdfd71496bdde | 9d2038fab290c2590a015b32d8f07b2f5b9c6400 |
refs/heads/master | <file_sep><script>
function changeImage()
{
element=document.getElementById('myimage')
if (element.src.match("star-bath"))
{
element.src="images/star-first.png";
}
else
{
element.src="images/star-bath.png";
}
}
</script>
<p>Нажмите на звезду, чтобы изменить цвет!</p>
<img id="myimage" onclick="changeImage... | aa7dfba4c526d6cb912414da146f905974c8c49d | [
"JavaScript"
] | 1 | JavaScript | PlatonAlexandra/Repository1 | cbd341d6ea7f4e339e3d101d3344fe365d9db635 | 78a44391fe2d3ded7078a2bd1c82011387fb283f |
refs/heads/master | <file_sep>module["exports"] = [
"Xiaomi",
"Oppo",
"Apple",
"One Plus"
];<file_sep>var mobiles = {};
module["exports"] = mobiles;
mobiles.name = require("./name");
mobiles.price = require("./price");
mobiles.color = require("./color"); | 5799fdbd734f74760e04e92a08f4c407d98091bc | [
"JavaScript"
] | 2 | JavaScript | Prashanth14/faker.js | ca432edbcb338dfe45530d4c126d01b22055ce03 | 96483e2a6999a6b8e9ff20e4092abc1153cb3e5f |
refs/heads/master | <file_sep># CEXBlocks
[](https://travis-ci.org/Advanced-Jewish-Technologies/CEXBlocks)
[](https://cocoapods.org/pods/CEXBlocks)
[;
// Array
var elemento_juego = ["Piedra", "Papel", "Tijera"];
function game(jugador1, jugador2){
switch(elemento_juego) {
case jugador1 == jugador2 :
console.log('Empate');
break... | 1398f80eaf1a7259dca7ba91ff62c745db50c101 | [
"JavaScript"
] | 1 | JavaScript | Ljotamr91/PiedraPapelTijera | eb61227920f2af0cbdb84a47e32b6bf262723952 | 53d16893220a58bbbb61004e0e9f55456a6ec315 |
refs/heads/master | <file_sep>package mvc.controller;
import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import test.bean.BoardDao;
public class deleteActAction implements superAction{
public String executeAct... | 944865cd4f5cf5987c2e246709c7d1533fd12902 | [
"Java",
"INI"
] | 11 | Java | krack1/Mypage | a2ca121a95faf2ec2065b1fbba3a3cbc04aaae50 | 757925fed11c96cbe9de23c508f3f2c967c94dd4 |
refs/heads/master | <repo_name>arek-jozwiak-coderslab/katjees04m4<file_sep>/a_Zadania/a_Dzien_1/c_Wzorce_projektowe/SubscriberObserver.java
package a_Zadania.a_Dzien_1.c_Wzorce_projektowe;
public class SubscriberObserver implements Observer {
@Override
public void update(String title) {
}
}
<file_sep>/a_Zadania/b_Dzien_2/c_S... | 6a90a77db0b87a6418e12d434b3afe403bbc9250 | [
"Markdown",
"Java",
"SQL"
] | 30 | Java | arek-jozwiak-coderslab/katjees04m4 | 09aad5b200fdb66406dbda01e0bcd73ff8f5a2d4 | 7a2937fc095a695b55a4d45b2fac42ad1c1da9f0 |
refs/heads/master | <file_sep>#pragma strict
function Start () {
}
function OnGUI()
{
GUI.Label(Rect(0,0,100,50),"X: "+Input.mousePosition.x + " " + Input.mousePosition.y);
}
function Update () {
var leftmostonscreen:float;
var rightmostonscreen:float;
//get the x value of the leftmost on the screen
leftmostonscreen = Came... | 408cd445864d4d3f21f5d904d562455e41cefe56 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | TheGer/KingPong2HND2 | 0ddaeb6f7b5661c080db7f3211c7b6e66f143fec | 38eae29bd8626eda5170d1b70eeb792a9b7311be |
refs/heads/main | <repo_name>dsperax/PhishingGame-Fullstack<file_sep>/README.md
# Projeto Fullstack (MVP)
### Tecnologias utilizadas:
- HTML/CSS;
- JavaScript;
- C#;
- Ajax;
- MySQL (v2.0);
### Temática: CyberSegurança
### How to use:
- Crie as tabelas do banco (pasta DB-MySQL);
- Na pasta DATA, arquivo Bd_Conexao.cs, insira os dad... | 9ae77035b43a45fe0622a16ec15e7066f3ea479a | [
"Markdown",
"C#",
"SQL"
] | 10 | Markdown | dsperax/PhishingGame-Fullstack | a10934831a68fa23850539078d2a9988b21b8b4b | 82028ac9dd23b1bdf5d19bdc722e88e344da1221 |
refs/heads/main | <repo_name>liam-fletcher1/ICS3U-Unit3-04-CPP-Integer_Game<file_sep>/README.md
# ICS3U-Unit3-04-CPP-Integer_Game
[](https://github.com/liam-fletcher1/ICS3U-Unit3-04-CPP-Integer_Game/a... | 72c449a418cc688e297fb859ce856a1640d47405 | [
"Markdown",
"C++"
] | 2 | Markdown | liam-fletcher1/ICS3U-Unit3-04-CPP-Integer_Game | 46a692bb7301aaa6682239aa73f91405185f944b | a443ee75faa15c1bef495e38f0244562b85f2c00 |
refs/heads/master | <file_sep>#include "Collision.h"
#include <sstream>
/* AABB Collision */
Vector3 Collision::startingPos;
Vector3 Collision::currentStart; //current collide bound
Vector3 Collision::currentEnd;
Vector3 Collision::previousStart; //current collide bound @ previous frame
Vector3 Collision::previousEnd;
Vector3 Collision... | 24e81c6c9c047dc646859092abca0b8e297838a9 | [
"C",
"C++"
] | 75 | C++ | FieryGazette/2D-Game | fee2978b380e47338c0400b047bff22b0fe3dd37 | ff94f920b07439d60a818bf4ee8a648f1fe2db22 |
refs/heads/master | <file_sep>"use strict";
exports.__esModule = true;
var through2 = require("through2");
var split = require("split2");
var XLSX = require("xlsx");
var replaceExt = require("replace-ext");
var PluginError = require("plugin-error");
var pkginfo = require("pkginfo")(module); // project package.json info into module.exports... | 0a7ab1d1ac7e7f240b8d39b44066044792a30e02 | [
"JavaScript"
] | 1 | JavaScript | chloeosgood/gulp-etl-target-spreadsheet | 1587a05d17e3a17caaee7e9d382640bd31e60d4e | 2b77e199e99931091836469bc1d3a1f837c3d2c3 |
refs/heads/master | <file_sep><?php
class Student {
public $name ;
public $index;
public $rating;
public $city;
function __construct($name, $index, $rating, $city){
$this->name = $name;
$this->index = $index;
$this->rating = $rating;
$this->city = $city;
}
}
?>
<file_sep>{
"require" : {
"ext-zip": "*"... | a01f41fc68b137b412b657c1c6735ab50905dff0 | [
"Markdown",
"JSON",
"PHP"
] | 4 | PHP | MilosKarakas/PHPsite | 80b031f5d3714a5f16b7124490f86fa0f78f5dfc | 71c56a9eafea1af20e22458c9ecf11a21bd88bed |
refs/heads/master | <repo_name>VishavKirat/React_forms<file_sep>/src/App.js
import React from 'react';
import Form from './Forms';
import {connect} from 'react-redux'
class App extends React.Component {
state = {}
handleSubmitButon = (e)=>{
e.preventDefault();
this.props.addingDetails(this.state);
}
handleInput = (e)=>{
... | 6bd94a22da48a8c42dc962630d9d43db26806d84 | [
"JavaScript"
] | 3 | JavaScript | VishavKirat/React_forms | a1c756a27366582e545a3240f5e035af23f5a731 | c8e5484969647e31986f0a1f84440412d967d04f |
refs/heads/master | <file_sep>from __future__ import print_function
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
# create a new... | ef1ce8714287fbd26e9ec5a2d5a4c3dd6eff65dd | [
"Python"
] | 3 | Python | jaimini76/sel-rest | d9182f4ab5af0cb2adada5b3e495c48e2bf1737d | 82e7e5bfea2dadfcad2ea012c0af855e957b8883 |
refs/heads/master | <repo_name>manojsilwal/Lab4<file_sep>/src/main/webapp/WEB-INF/messages_np.properties
addProduct.form.productId.label = Product ID in Nepal
addCustomer.form.birthdate.label = <NAME>
addCustomer.form.sex.label = linga
addCustomer.form.password.label = <PASSWORD>
addCustomer.form.male.label = Purush
addCustomer.form... | e03d415c986dd262fea0575609e1af9bc0e64fd2 | [
"Markdown",
"Java",
"INI"
] | 8 | INI | manojsilwal/Lab4 | f2a5efd15e28c8238b3c7911a9264dd5c3b3ddca | 2cc5faed056e7e48bc9ac12dd3cdd30dc8936cff |
refs/heads/master | <repo_name>maktouch/csv-cleaner<file_sep>/pages/index.js
import { useState } from "react";
import Head from "next/head";
import styles from "../styles/Home.module.css";
import Papa from "papaparse";
import { useFormState } from "../components/hooks/useFormState";
import { DateTime } from "luxon";
import fixUtf8 from "f... | dca3319ade9a948b08720b89718bdc7a3cebe2d1 | [
"JavaScript"
] | 3 | JavaScript | maktouch/csv-cleaner | b6822409bd6dee39002b5a6fdd6079c6f9e6757e | 32261932fad08e324149afc4c5d54b9d740b11ae |
refs/heads/master | <file_sep>import numpy as np
import pygame
from pygame.locals import *
width = 640
height = 640
class sumo_robot:
def __init__(self, enemy):
self.speed = (0,0)
self.mass = 5
self.size = 80
self.rad = self.size * np.sqrt(2)
self.motor_speed = 0.1
if enemy:
... | 942999ab45bdc6b30389ba230b957a7b916a238b | [
"Python"
] | 1 | Python | dankaki/Sumo-pygame | 17a87c609b543528ff1f07e3bd07ad4843226634 | 89debf32dd125d710724e253a44798a919bb20c5 |
refs/heads/master | <repo_name>AndyClayDavidSteph/Project1<file_sep>/Master.js
$(document).ready(function () {
var articleCount = 3;
// NEW YORK TIMES ===========================================================================================
// New York Times Authorization Key
var authKeyNYT = "<KEY>";
... | a52c8db1e1653037e834f7022fc8462d9786dc2e | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | AndyClayDavidSteph/Project1 | 34a4db88e6fddbe2998ea7e9e3a1204d63c479fc | b957c95c0c89a2c43a8501e8bee9f5de1a14a2e1 |
refs/heads/main | <repo_name>STEMlib/geogeometry<file_sep>/README.md
# Geogeometry

Answering: average number of sides for closed polygons made from 10 randomly drawn lines on a sheet of paper?
The answer to this question suggests fundamental laws about the geometry of geology. For exampl... | 7cbb1b2324b10450dddcfb28036e63fcc3b55f95 | [
"Markdown",
"Python"
] | 3 | Markdown | STEMlib/geogeometry | 9a1e5f25a6ea3c83335917b0bdbab4c46f02a677 | f23b613fe742439006ce6f95e9e12cceacbee908 |
refs/heads/master | <file_sep>'''
Created on Mar 22, 2016
@author: eduardo
'''
class Template():
chars = []
def __init__(self, folder, name):
import os
with open(os.path.dirname(os.getcwd()) + '/res/' + folder + '/' + str(name), 'r') as f:
self.chars = [[char for char in line.decode('utf-8')] for line in f]
#------------... | 764761c92c7f05e4a2fe4381fd922f48f7cd5aba | [
"Python"
] | 6 | Python | eduardoHoefel/MovementGamePython | 5022df125d6e997bba509dc5e0a7e96a8a75c44c | 6993b392a04de4a6388ddabe5d5d0a407845885b |
refs/heads/master | <file_sep>module.exports = function(sequelize, DataTypes){
var bpcia_applications = sequelize.define("bpcia_applications",{
organization_legal_name:{
type: DataTypes.STRING,
allowNull: true
},
organization_doing_business_as:{
type: DataTypes.STRING,
allowNull: true
},
date_established: {
t... | 2785e5b21973e3cebe5c32d1eda485a2a7fa5ac2 | [
"JavaScript"
] | 4 | JavaScript | pd164594/bpcia-signup | 7c863c6d703d5cf3797841cfe2b7d220adc2385b | 42a9bfb24663563a8ebb2210156677e3aa967806 |
refs/heads/master | <file_sep>--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EX... | c4d66c8e152d71cb6869749e5b13cc222e5aa15a | [
"SQL",
"Python",
"HTML"
] | 12 | SQL | ayanin/Shop | 09824826a4b16d8ecf67042d52fac2344552ef38 | 4b87ad2dacfe30a0854774fc888d32cf5a6031d5 |
refs/heads/master | <repo_name>imclab/visdat<file_sep>/R/vis_compare.R
#' compare two dataframes and see where they are different.
#'
#' \code{vis_compare}, like the other vis_* families, gives an at-a-glance ggplot of a particular feature. In this case, it is the difference between two dataframes. This function has not been implemented y... | 356dfc9cc26a553cc9d6d0f2f08f01961a503b59 | [
"R"
] | 1 | R | imclab/visdat | b24cecc2865038686e058c15c3785415d92b2e55 | 7516974d6a6e0b1d8fd8f7a284845f443c110778 |
refs/heads/master | <file_sep>import React, {useState} from 'react'
import { View, Text, Image, StyleSheet, FlatList, ScrollView, SafeAreaView } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import Icon1 from 'react-native-vector-icons/EvilIcons'
import Swiper from 'react-native-swiper'
import HeaderTop from... | 6d59408765212524627f497c39f9e71b24d03f02 | [
"JavaScript"
] | 6 | JavaScript | NgocVinh31/finalProject | 10883221d1e01d9b3b9f648352508da8e165c525 | 067ed833bf5085752b0b2c980792e6226e6f8153 |
refs/heads/master | <file_sep>#正規表現を受け取って、その文字に合致する
#文字の位置を返却する関数
getIndex <- function(string,reg){
index <- c(unlist(regexpr(reg,string)))
}
#正規表現に合致する文字の個数をカウントして
#その個数を返却する関数
countRemoval <- function(string,character){
count <- 0
while((index <- getIndex(string,character))!=-1){
count <- count + 1
x <- substring(... | 9329a753d0196777500aecab35098ed9a62b3323 | [
"Markdown",
"Java",
"R"
] | 13 | R | yuurishibata/teamCaterpie | 2a4844e12d195b3982e96e2db2fe9193a44571ba | 943b9e9ab0cab8ae9264b00927c29029363a972a |
refs/heads/master | <repo_name>banshengliuli/springmvcclassdemo<file_sep>/src/cn/smbms/dao/SmbmsAddressMapper.java
package cn.smbms.dao;
import cn.smbms.pojo.SmbmsAddress;
public interface SmbmsAddressMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table smbms_addres... | 4b4deec95263e35e0fa2cb7f098ac0af41270e15 | [
"Java"
] | 1 | Java | banshengliuli/springmvcclassdemo | c7cfb577d9901a4ee17ecd813efa8fa2b1e03c8b | 5694b1e4168797aaec11a771142f3f6e45928971 |
refs/heads/main | <file_sep>// buat 3 variabel
// variabel express untuk memanggil library express
const express = require('express');
//variabel bodyParser untuk memanggil library body-parser
const bodyParser = require('body-parser');
//menambahkan morgan
var morgan = require('morgan');
// fungsi untuk memanggil expressjs
const app = e... | 836f80643f08720f87fdecb361b3b75c1f6388c5 | [
"JavaScript",
"SQL"
] | 2 | JavaScript | asiyahhanifah/barangku | dadb377beb6ca17db4d9560e458505000643f5b0 | 61411ef0bd6a14b2af1c2bf4b636085f5016d8ae |
refs/heads/master | <repo_name>MoraBoop/form-email-validate-js<file_sep>/js/app.js
const email = document.getElementById('email');
const asunto = document.getElementById('asunto');
const mensaje = document.getElementById('mensaje');
const btnEnviar = document.getElementById('enviar');
const formularioEnviar = document.getElementById('envi... | 6f35170c9853767615c7311c6a0e9f6819deea28 | [
"JavaScript"
] | 1 | JavaScript | MoraBoop/form-email-validate-js | f390c1a888a59c75268aeeb6e3170ed75ffb4eaa | c8385e326727d6ab04e160db55e87ee1f1387311 |
refs/heads/master | <repo_name>nathakits/spottie-figma-plugin<file_sep>/code.ts
// This plugin enables users to search for artists and tracks
// and insert images for design using the Spotify API.
// Credit to Spotify for the API.
// This file holds the main code for the plugins. It has access to the *document*.
// You can access browse... | 6879503f136a893b763be2fce24007a6829779f3 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 7 | TypeScript | nathakits/spottie-figma-plugin | 879f8041a4fd69605a5ec31f430fc9f02c452e94 | 6cd5879547c0da59d29d9626f7511e392eb08283 |
refs/heads/master | <file_sep>from django.contrib import admin
from goodsapp import models
class TypeInfoAdmin(admin.ModelAdmin):
list_display = ['id', 'ttitle']
class GoodsInfoAdmin(admin.ModelAdmin):
list_per_page = 15
list_display = ['id', 'gtitle', 'gprice', 'gunit', 'gclick', 'gstock', 'gcontent', 'gtype']
ad... | 861e83a14198f8d1452857902a3d2382f2bb79da | [
"JavaScript",
"Python",
"HTML"
] | 27 | Python | UsonHo/ttsx | 3db2ff5524f9b994f8627c88e19b2fecd31d0da4 | 03a0a96d091a2fa86a17e96554d7a31df68b8fe0 |
refs/heads/master | <file_sep>package dev.elvir.morecommunication.ui.splas_screen
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import dev.elvir.morecommunication.R
import ua.naiksoftware.stomp.Stomp
import ua.naiksoftware.stomp.StompClient
import ua.naiksoftware.stomp.dto.LifecycleEvent... | b8f7862daee032a810d3612594408fd04aeebbd5 | [
"Kotlin",
"Gradle"
] | 17 | Kotlin | raullek/android-more | b39fd10b31512bf7762324a588a3eefbd0cd54d8 | cc23c6b47b65ff69eeec0cf7146c753ce1b0ad3a |
refs/heads/master | <repo_name>Upjaka/quaternion<file_sep>/src/test/java/QuaternionTest.java
import org.junit.jupiter.api.Test;
import Work1.Quaternion;
import Work1.Vector;
import static java.lang.Math.*;
import static org.junit.jupiter.api.Assertions.*;
import static junit.framework.TestCase.fail;
class QuaternionTest {
private Q... | f23c174317c8f1d5aa0a799c4284416870f389ea | [
"Java"
] | 3 | Java | Upjaka/quaternion | bd24441b042e856d82634c6fed9ac303f49db1e9 | d4ddbde219c968be5ad329c9a4b623b3b335df56 |
refs/heads/main | <repo_name>Fil/d3-geo-voronoi<file_sep>/src/cartesian.js
import { asin, atan2, cos, sin, sqrt } from "./math.js";
export function spherical(cartesian) {
return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];
}
export function cartesian(spherical) {
const lambda = spherical[0],
phi = spherical[1],
... | ffc1f0fa78afe4e6e6cf0f90e90b271169c6501c | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | Fil/d3-geo-voronoi | ab135d798ebd1aff693d4790839e9482aec9d2d7 | 599b03dcb282f72143b740df74cfda5d62e73aca |
refs/heads/master | <repo_name>MichaelPanW/Dcard_php_reptile<file_sep>/Dcard/Trade/Controller/IndexController.class.php
<?php
namespace Trade\Controller;
use Think\Controller;
class IndexController extends GlobalController {
function _initialize()
{
parent::_initialize();
}
public function index()
{
if($_GET['title']!=""){
$... | 240946bcd9b75e74391b647b20a596447ed03740 | [
"PHP"
] | 2 | PHP | MichaelPanW/Dcard_php_reptile | adc18ea90fa5ea0301ec1bafb1684693323a6990 | d2d988c9eb540dad184a5fd005927a3769864498 |
refs/heads/master | <file_sep>const express = require("express");
var app = express();
app.get("/", (req, res) => {
res.send("Welcome to Djay Node Server");
});
app.get("/hc", (req, res) => {
res.send("Health");
});
module.exports = app;
<file_sep>const request = require("supertest");
describe("Sample Test", () => {
it("sho... | 8ce95ef0ffc984bffc6944f0b76bd6ab0a70ce9a | [
"JavaScript"
] | 2 | JavaScript | digvijaypanwar/node-web-server | 2cc5d3f7fd1e19dcf943c9651e62ca180696f0b8 | 3ac90d92894e7311ec0f4649095a21ddf89da2a3 |
refs/heads/master | <repo_name>anhuiwj/ChineseChess<file_sep>/src/com/wyf/cgq/ServerAgentThread.java
package com.wyf.cgq;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.Vector;
import com.dao.QzDao;
public class ServerAgentThread extends Th... | 2d12e37b1bc6cf884b123bea9a0c51eabc3dfc43 | [
"Java",
"SQL"
] | 2 | Java | anhuiwj/ChineseChess | 376d2e5cfad88c73845de52e7e09a4b345e9d7ff | 3b057ee46c287adb3638cd6740c34807a811dda8 |
refs/heads/master | <file_sep>package com.example.krzysiekbielicki.mylapplication.kuba.recyclerview;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
... | ebc568a46d4b5cda2d8851f07f7e3155e825f963 | [
"Java"
] | 5 | Java | krzysiekbielicki/MaterialDesign-demo | 062a09af79a15a89337a20dfc52c1fdececf9198 | b70f31d7a538a9c242c626b552787fa4833eb926 |
refs/heads/master | <file_sep># Array-dan-Sting
Array dan String C++
<file_sep>#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char input[100], kopi[100], kopi2[100];
int kounter; int vokal=0; int konsonan=0;int besar=0;int kecil=0;int gang=0, offset, gantine;
cout<<"Input User = ";
... | e084849b901c4c4baad76b29ac61f891b5c16b0d | [
"Markdown",
"C++"
] | 2 | Markdown | ok-google/Array-dan-Sting | d23d0a5ec01e299f26d5557c9eb2b38470e9dc73 | e81cafe4a7cb5726a28f9410ce687d877c8fbd72 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-20 23:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('votacao', '0006_votar_branco'),
]
operat... | f19753ea3019caab931eb693515b82b874f86c4e | [
"Python"
] | 10 | Python | 1marcushenrique/G2LPC1 | f3b6fffe7aec04e973efaeffaa0fc97a58092325 | 0c6d96d8fc5c4cc6d6b7aa93d74b9e993dc9f99c |
refs/heads/master | <file_sep>const ContactsModel = require('./model');
const getAllContacts = async (owner, query) => {
const {limit = 5, offset = 0} = query;
const contacts = await ContactsModel.find({owner})
.populate({
path: 'owner',
select: ['_id', 'email'],
})
.skip(Number(offset))
.limit(Number(limit))
;
const to... | 00a8b104e3b8c1cf7ea4a34fc880651018fa0f87 | [
"JavaScript",
"Shell"
] | 18 | JavaScript | AlexLeonNovak/nodejs-homework-template | d8f3e4d3fe3b0884771168d589d7eccff5b28acb | 1df2632bdad9049f11be94347bfc93caf7bc2127 |
refs/heads/main | <file_sep>#################################################
# LOAD REQUIRED PACKAGES
library("DESeq2")
library("ggplot2")
library("ggrepel")
#################################################
# PREP INPUT TABLE
# set your working dir
setwd("/Shares/CL_Shared/data/atma/1_QUARANTINE/9_NOV2020/testing_wiki_scripts/deseq... | 4ac17fbdf2cd4c226cedee3ecfd84a9f8ec87291 | [
"R",
"Shell"
] | 3 | R | atmaivancevic/chipseq-analysis | 6a4c3e19c2ff495409e23cc1cfa1a2ff73c93e3d | b69e8f71af0feaf9f9625e809a0c43c5ad74cadc |
refs/heads/master | <file_sep>import reveal from "reveal.js/dist/reveal.js";
import revealPluginNotes from "reveal.js/plugin/notes/notes.js";
import revealPluginZoom from "reveal.js/plugin/zoom/zoom.js";
import revealPluginMathJax from "reveal.js/plugin/math/math.js";
import "reveal.js/dist/reveal.css";
import "prismjs/themes/prism.css";
... | 18545553d59115b760c34432ac6196cb54cdb685 | [
"JavaScript",
"Dockerfile",
"Markdown",
"Shell"
] | 10 | JavaScript | david-dasilva/sensei | 5ee5723de8f17f526728728359241b39f60dcc52 | 3ae79c9dbf755c690272be347b7daa535ca3ea2d |
refs/heads/master | <file_sep>/****************************************************************************
Copyright (c) 2015 feihan inspiration.
http://www.flewawayblog.sinnapp.com
*descriptions:
this files contains functions that will be used in game,in other words,this is
a lib of functions
*****************************************... | e72d1cf94605208bd0b31a55960980f7d87f9ccd | [
"Markdown",
"C",
"C++"
] | 18 | C++ | xiaofeige/battle-world | 8db76e6182ab9639b118bb01361e3ed89111668c | 5aa00467152231a8349e322e8a837ea14f8e0aa0 |
refs/heads/master | <file_sep>var FromSymbol = Symbol("from");
var ArgumentsSymbol = Symbol("arguments");
var UnmappedArgumentsSymbol = Symbol("unmappedArguments");
var BaseSymbol = Symbol("base");
var Apply = (Function.prototype.call).bind(Function.prototype.apply);
var Call = Function.prototype.call.bind(Function.prototype.call);
var ... | 52deff2a302a19fe9fd10d353eeaa3a61b420099 | [
"JavaScript"
] | 3 | JavaScript | Me1000/generic-jsx | de7b59b7fcc9acb4211862618e392fba25867778 | f544ac9c115fc9931161529bec7ee344fbab2e2e |
refs/heads/master | <file_sep>#!/usr/bin/env python
import unittest
from reverse_int import reverse_int
class UnitTests(unittest.TestCase):
def test_bad_data(self):
result = reverse_int("a")
self.assertEqual(result, '0')
def test_negative(self):
result = reverse_int(-123)
self.assertEqual(result, '-321')
... | 88a39136c1e43bda036ccb70904e661a976c9754 | [
"Markdown",
"Python"
] | 3 | Python | Matty9191/python_reverse_int | 2ec19a6d8b0c74b8d3f4ced05b37bfdd138e70fe | d757f6b6371b40a81c27f08c1d5bc9d46872fb31 |
refs/heads/main | <repo_name>cristisava/playerGame<file_sep>/same but with classes/player.js
class Player {
constructor(box) {
this.box = box;
this.posY = 4;
this.posX = 4;
this.speed = 3;
this.inputX = 0;
this.inputY = 0;
}
getInputFromUser() {
document.onkeydown = detectKey;
const player = this;... | e6eca703aaf4f6b6ac8a10bf9a63b09cb4f2bb19 | [
"JavaScript"
] | 1 | JavaScript | cristisava/playerGame | ac28689357aadd6ca10fccf6b6daae5a6df9bcb1 | abaeb69b984e3b537df88dda63127531417b3fc2 |
refs/heads/master | <repo_name>natzelo/Weatherize<file_sep>/index.js
const iconUrl =
"https://gist.githubusercontent.com/tbranyen/62d974681dea8ee0caa1/raw/3405bfb2a76b7cbd90fde33d8536f0cd13706955/icons.json";
$.getJSON(iconUrl, (weatherIcons) => {
//Geolocation
navigator.geolocation.getCurrentPosition((pos) => {
cons... | 701a82971e97c8c6efb11d6ffdca5b451495c5e2 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | natzelo/Weatherize | 631d362140fd7c0dbbc1c34ca870c492f062bc04 | cf30c51aa8d67280e2ff831f3e324b33ec9885c6 |
refs/heads/master | <repo_name>Lux652/EJ-web_2.0<file_sep>/dist/js/script.js
AOS.init({});
const navSlide = () =>{
const burger = document.querySelector('.burger');
const nav = document.querySelector('.mobile-menu');
burger.addEventListener('click',()=>{
nav.classList.toggle('active');
burger.classList.toggle('... | a9ee04ec40a7e990d185a90f9984ec4bccd748b9 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Lux652/EJ-web_2.0 | fb8326d0c07def06f1276f4c2be41b78692ae147 | 2e60a63ef49093701fd405bddf8ecb5e03ccc92e |
refs/heads/master | <repo_name>romaricp/bs<file_sep>/src/scripts/menu.js
$('.burger').click(function() {
$(this).toggleClass('open');
$('.mobmenu').toggleClass('open');
$('body').toggleClass('stop-scrolling');
/*
if ($('body').hasClass()) {}
function hasClass(element, cls) {
return (' ' + element.className + ' ').ind... | e4433ff1dac2a0354b014852904b6266e1027495 | [
"JavaScript",
"PHP"
] | 6 | JavaScript | romaricp/bs | c9bd8cbcab0ebfb8260db39bb4f8d0c7b7b19d71 | 0fc0f4f473854ce14a7e698182dbab2da0098cc2 |
refs/heads/master | <repo_name>carloalberty/form<file_sep>/registro-usuario.php
<?php
error_reporting( ~E_NOTICE );
require_once 'config.php';
if(isset($_POST['btnsave']))
{
$username = $_POST['user_name'];
$userjob = $_POST['user_job'];
$userciudad = $_POST['user_ciudad'];
$userphone = $_POST['user_phone'];... | f1fd1eca94979511a73a10df0c1edf0bf1356e46 | [
"PHP"
] | 9 | PHP | carloalberty/form | 535e632678b673ec08541f5071e30f7b65c42478 | 718f8cd5e91a0bd3d4f3d46e9298ba052e1e65ac |
refs/heads/master | <repo_name>the-former-faith/ff-backend<file_sep>/schemas/mapDocument.js
import { FaMapMarkedAlt } from 'react-icons/fa'
import docMetadata from './docMetadata'
export default {
name: 'mapDocument',
title: 'Map',
type: 'document',
icon: FaMapMarkedAlt,
fields: [
...docMetadata,
{
name: 'center',... | 629d3a21ec430f20377c1f4b12c29f4fcfe08101 | [
"JavaScript"
] | 38 | JavaScript | the-former-faith/ff-backend | 476278be9334a887ed3bb04d46bd11c9c1f283ba | 2a904c44d363e1d21c1cef5873379357e2339dcf |
refs/heads/master | <file_sep><?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>最新</title>
<meta name="renderer" content="webkit">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="wid... | b8a69e77a2369f234473f2a87f8d0fa91b1f7849 | [
"JavaScript",
"PHP"
] | 50 | PHP | diguikeji/oulanzhi | 29cc60490b5552c13659695d27103bb33364b55e | 40694f228ce3395267cb652c6b950474d298e273 |
refs/heads/master | <repo_name>tiagaoprates/bcy<file_sep>/README.md
# bcy
Módulo para uso da API testnet BlockCypher
<file_sep>/control/bcy_testnet_to_receive.py
# -*- coding: utf-8 -*-
from odoo import models, api
from odoo.exceptions import ValidationError
from blockcypher import get_transaction_details
class BCYTestnetToReceiveContr... | 1aa967ac8ad295a3e9e773f5ede261b279de54a2 | [
"Markdown",
"Python"
] | 8 | Markdown | tiagaoprates/bcy | 1029abe3950576bc002b89d6b255fd463508fdb0 | 58f53f2033d32290ee93c95a5046df848226e7d0 |
refs/heads/master | <file_sep>/**
* Copyright (c) 2014 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | d53466722823776b70bb0ed3fb81b097904a6e35 | [
"Markdown",
"Java",
"Maven POM"
] | 4 | Java | firzhan/APIDownloader | b126894c1438fb05dad0607db10e0ba69f5e1ab1 | 16ffa44bbdb92ecd8f3e86b3d439ef6415bf8c00 |
refs/heads/master | <file_sep>package com.mapper;
import com.model.MessageWithBLOBs;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.... | bc4396388d24b0b1d218225e2a28a48196d77238 | [
"Markdown",
"Java"
] | 3 | Java | snjl/springboot.happyNewYear | 8065d4eaf6637497f510e21d4c90bbb284787313 | 6f1b362b69214624b9ca54feaf6f72183071aa82 |
refs/heads/master | <repo_name>theTechie/face-recognition<file_sep>/README.md
# face-recognition
face identification and recognition
<file_sep>/predict_using_model.py
"""
predict the labels using pre-trained model
NOTE: This example requires scikit-learn to be installed! You can install it with pip:
$ pip3 install scikit-learn
"""
imp... | 66de9cefbaa67f2e383bff37fe25a6fa2a779fb1 | [
"Markdown",
"Python"
] | 8 | Markdown | theTechie/face-recognition | 4236405914971fa971eb8dab7f31022f154ac10b | 81ad8650eda3c03c73c4729307a2f3d85c0a7ec2 |
refs/heads/master | <file_sep># templates
nlp Coursework
<file_sep># File: statements.py
# Template file for Informatics 2A Assignment 2:
# 'A Natural Language Query System in Python/NLTK'
# <NAME>, November 2012
# Revised November 2013 and November 2014 with help from <NAME>
# Revised November 2015 by <NAME>
# Revised October 2017 by <... | 4290b89c5536b4ac2b557b7a154c1996d16b95aa | [
"Markdown",
"Python"
] | 3 | Markdown | wxb9585/templates | 7115ac9f92845c0cef7b9690846e2e81c8b11e04 | e878dcdcf8f18076091e0e17d03ea14cf3efaf30 |
refs/heads/master | <file_sep> #coding=utf-8
from numpy import *
#你好
def loadDataSet():
return [[1,3,4],
[2,3,5],
[1,2,3,5],
[2,5]]
#遍历数据集每项物品,建立1-项集
def createC1(dataSet):
#记录每项物品的列表
C1 = []
#遍历每条记录
for transaction in dataSet:
#遍历每条记录中的物品
for ite... | 884b6f463879e5011f8e9dc2abdc90d9e44c06ed | [
"Python"
] | 1 | Python | bbaiggey/PythonAlgorithm | 88ef0f7b4237393069236605135f3f37c6de35c9 | 24ba33c29f91fb0e781f6c3c23a8f4282246e8bc |
refs/heads/master | <file_sep>import copy
from collections import deque
import sys
import re
keywords = ["room", "booths","dimension","target","position",
"horizon"]
#size
maxMoves = 0
numberOfBooths = 0
positions = {}
target = {}
dimensions = {}
roomSize = []
def nonblank_lines(f):
for l in f:
line = l.rstrip()
line... | 6ebb67dfe8de546c48e20bc8602aad9c9e8e3096 | [
"Python"
] | 6 | Python | p0dxD/Programming-language | 1ab5f57d423507dd0966928331b92540eb87399e | 3351e8311bebb517e2c0cd360be1c413cc7d83ee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.