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>
<?php
session_start();
if(!isset($_SESSION['admin_email']))
{
echo "<script>window.open('login/login.php,'_self')</script>";
}
else
{
?>
<?php
include ("includes/db.php");
?>
<html>
<head>
<title>kshop</title>
<link rel="stylesheet" type="text/css" href="styles/global.css" />
<meta name="v... | 5b959cdb00765f0c6e16dfd0095c065d7a598ae6 | [
"JavaScript",
"Markdown",
"PHP"
] | 32 | PHP | chunkingz/kshop | 5601854bb04fb9ee86fd9ff8bc39befb52e07c30 | 6521617c6e8d789d73989bd55a59a9b7821d8a06 |
refs/heads/master | <repo_name>MinKruger/AngularProject<file_sep>/README.md
Unfortunately the Project has not been completed, please do not use<file_sep>/routes/app.js
var express = require('express');
var router = express.Router();
var User = require('../Data/models/user');
router.get('/', function (req, res, next) {
res.render('ind... | d6feacf7dab406d696ae1c4a6763468fcf77b9e8 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | MinKruger/AngularProject | e80a96cb95db82b0a84a9205e9270600542f824a | e4a3146e39654950b833f4d8c9ef96e6cce6f337 |
refs/heads/master | <file_sep>import { ImageInfo } from "../IPictureWallStates";
export interface IMasonryLayoutProps {
images: ImageInfo[];
domElement: HTMLElement;
}
<file_sep>export interface ImageInfo {
url: string;
title: string;
description: string;
}
export interface IPictureWallStates {
images: ImageInf... | a5f60a879202492470a77e86527fc71aba706644 | [
"TypeScript"
] | 4 | TypeScript | shrenky/spfx-picturewall | 0091f904b76c6bdba27a69a7ca70e5b8f552f3fc | 465b5502e1c5ae29aee83b51817f7ebed4f5168a |
refs/heads/master | <repo_name>mickeymv/socialFootprint<file_sep>/source/root/appslogin.php
<?php
@ob_start();
session_start();
// Check, if username session is NOT set then this page will jump to login page
if (!isset($_SESSION['username'])) {
header('Location: index.php');
}
require_once __DIR__ . '/facebook-sdk-v5/autoload.php';
$fb = ... | d28ecb49d25b8d574c482bbec225c20c6d6715f4 | [
"Markdown",
"SQL",
"PHP"
] | 6 | PHP | mickeymv/socialFootprint | 1115b3b8f039077f5a5795bb468687d574fd177b | 76b91ad039d3cb9ceb9421fb224d1c48782eccb1 |
refs/heads/main | <file_sep>//Canvas container
var p5div = document
.querySelector('#p5sketch');
//Canvas size
var w, h;
//P5.js sketch
var p5sketch = ( p5 ) => {
p5.setup = () => {
w = p5div.clientWidth;
h = p5div.clientHeight;
p5.createCanvas(w,h);
};
p5.windowResized = () => {
w = p5div.clientWidth;
... | 3f11a50c83e5151026cd3ec340f574c4b95adfbb | [
"JavaScript",
"Text"
] | 2 | JavaScript | zgendao/neurogenesis_landing | 5b44615c842c5045681c7ee2b3dcf88550fb7449 | 82ce8c000e445d21c87e53d143d82d1d518d4549 |
refs/heads/master | <file_sep>package jp.ac.uryukyu.ie.e205742;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class BattleMasterTest {
@Test
public void attackTest(){
int defHp=50;
var master = new BattleMaster("悟空",100,20,70);
master.order.get(0).killerTechniq... | aac65d772e1dfef448c01214157dac4dc3d4c810 | [
"Java"
] | 5 | Java | e205742/Report6 | 422ec98767332826cbc8bf0f17f59e0bf406f947 | 1cfb944f4548b0f0b21b9af738ded87024e4a2b1 |
refs/heads/master | <file_sep>const ap = new APlayer({
container: document.getElementById('aplayer'),
fixed: true,
autoplay: true,
audio: [
{
name: "Summertime",
artist: 'K-391',
url: 'http://music.163.com/song/media/outer/url?id=32166628.mp3',
cover: 'https://cdn.jsdelivr.net/gh/lwsblog/images@master/img/20200512... | f5f6d45a07dd7f033597593fc8f0f7d657257a7a | [
"JavaScript"
] | 1 | JavaScript | lwsblog/lwsblog.github.io | 6c773fa1d944ecd2a534da13c8c834e0dc5947c9 | ce903327518c49fc8ddb301428782cd3fa66ee5b |
refs/heads/main | <repo_name>lightweightcoder/4.2.2-4.2.3-4.2.4-4.3<file_sep>/models/index.mjs
import { Sequelize } from 'sequelize';
import allConfig from '../config/config.js';
import itemModel from './item.mjs';
import categoryModel from './category.mjs';
import cartModel from './cart.mjs';
import cartsItemModel from './cartsItem.m... | e8f5444459197a67389800f2d1cd85f62b27b951 | [
"JavaScript"
] | 7 | JavaScript | lightweightcoder/4.2.2-4.2.3-4.2.4-4.3 | b8fb1707700ccb13e8fb208595e5deef5bb48219 | 190c8bf36cd1978d3e81b0d9cb7eede0279a19b7 |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using WebApplication.webServiceReference;
using System.Web.Security;
namespace WebApplication
{
... | 76754a227f88a4b853a4fe24d2c471d4d7b29a7a | [
"C#"
] | 12 | C# | dpoqramGTI/proyectoIngles | 6f697ac0c4d5e686591c47e5e691e3646cd59729 | edbefaf35c4cbadc9df0310d09c5515a89d7930b |
refs/heads/main | <file_sep>#やり方
(1)回路を組む
・使うもの
★Aruduino Uno
★LED
★ ブザー
★ 雨センサー
・配線
LED + =>DIGITAL11
LED- => POWER GND
雨センサー AO => ANALOG A0
雨センサー VCC => POWER 5V
雨センサー GND => POWER GND
ブザー+ => DIGITAL 10
ブザー- => DIGITAL GND
(2)コードをダウンロードする
(3)Aruduinno IDE でコードを開く
(4)ツール>シリアルモニタで数値を確認
(5)ツール>シリアルポートを自分のマイコンに設定
(6)書き込む
<file_sep>
// ... | 6084301df262d67fc3c1f521ed0b0aabb1847f57 | [
"Markdown",
"C++"
] | 2 | Markdown | i-am-ethan/aruduinoRain | 65e0ca40f9e00239ed21109e6ebef6aa66157e1d | fadfe642f1b07514ffdda2b59324f38b266de84c |
refs/heads/main | <repo_name>pandu-supriyono/opwegdenhaag.nl<file_sep>/content/pages/intervisie.md
---
title: Intervisie
date: 2021-03-12T00:00:00+01:00
---
##### Intervisie
Vrijwilligers doen nogal wat indrukken op tijdens hun vrijwilligerswerk. Soms zijn er vragen hoe met bepaalde situaties om te gaan. Tijdens terugkomavonden kunnen... | f57412bc405e4783734456b4548ea1e2ea81290b | [
"Markdown",
"JavaScript"
] | 11 | Markdown | pandu-supriyono/opwegdenhaag.nl | 8872048daa832402a87d2c4c8d7b2de8923408ea | 1fccd2ce316b049782fdb9c50d26cd1f1e82a320 |
refs/heads/master | <file_sep>
def correction(name):
print('***************do something')
print('correction : ' + name)
print('**************')<file_sep>from django import forms
class CorrectionForm(forms.Form):
something1 = forms.CharField(label='something_lable', max_length=100)
something2 = forms.ChoiceField(label... | 665581b93c18f745f472c99acd89cea547ad1f7f | [
"Markdown",
"Python",
"Shell"
] | 9 | Python | disappearwang/webTools | d49c634f0e83adcdc1a77d72f01f08e37fb02648 | 986b26763ddefac54f936d1afa2c33d6d45acfd4 |
refs/heads/master | <file_sep>/*jslint plusplus: false, bitwise: true, eqeq: true, unparam: true, white: false, browser: true, onevar: false */
/*global console: true, window: true, chrome: true, $: true, require: true, exports: true, process: true, module: true*/
(function(module){
function AssertionCheckerEngine(executionIndex) {
... | e666222e4d54e3aec99132e956cadbf9b0ea0a1d | [
"JavaScript",
"Python"
] | 4 | JavaScript | esbena/jalangi | 2b9a633ef8aab90d46058e9b1ac32909b2a6961a | 66a37d62b05a674845b32b0156f20284c9540ed1 |
refs/heads/master | <file_sep>#ifndef CLIENT_HPP
#define CLIENT_HPP
#include "everything.hpp"
using boost::asio::ip::tcp;
class client
{
public:
client(boost::asio::io_service& io_service);
void connect(const std::string &host, const std::string &address);
void write(const std::string& msg);
void close();
private:
virtual vo... | ef2fd5c89853060affefb03f727aa922175f5259 | [
"C++"
] | 10 | C++ | decltypo/irc_previsoes | 5fa7ccf9a65b9a3f5e846bc6ff57cb2895da9817 | 836e8db71a923ead530b367ff135d422c70cfcfc |
refs/heads/master | <repo_name>phystem/bdd-test-framework<file_sep>/src/test/java/com/test/madhan/stepdefs/AutomationPracticeSteps.java
package com.test.madhan.stepdefs;
import com.codeborne.selenide.Configuration;
import com.test.madhan.model.OrderData;
import com.test.madhan.pages.*;
import com.test.madhan.pages.shoppingcart.OrderConfi... | 35f7ba535264e9d5fd5e8db9f08130ab67242032 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 12 | Java | phystem/bdd-test-framework | f3768b0c60ccfd0dab595beff4fb4eb2a42f9654 | 33d19cad4fc30c079732c2be43966fbb6ed82915 |
refs/heads/master | <repo_name>dangquocdung/xprobus<file_sep>/public/doc/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>Xpro Bussiness - Corporate, Agency Business HTML5 Template</title>
<link href="favicon... | cb01cbf8797dd91dee0967eedecb64f102b9bbe3 | [
"JavaScript",
"HTML",
"PHP"
] | 13 | HTML | dangquocdung/xprobus | ea7cbc7e794ff75aa30d72888cfd8d0a0cd526cc | 2965c84c6893937ceba3913a2245f2e752ea273a |
refs/heads/master | <file_sep>
public class myVariables {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// String Variable;
String name = "<NAME>";
name = "My Favorite Singer: " + name;
System.out.println(name);
// Integers and its Math.
int price = 38;
int ... | 59f16a4919e4b19b355c273f459285180be5d880 | [
"Markdown",
"Java"
] | 2 | Java | Edxael/Java-Basics | d545c948874d08bfde4adc707f7471c7e41fe4c0 | 7643e304f7a7836ac04789f306c63b771a92adcb |
refs/heads/master | <repo_name>bondarukoleh/react_web_app<file_sep>/server/routes/routes.paths.js
module.exports = {
authGoogle: '/auth/google',
apiLogout: '/api/logout',
apiCurrentUser: '/api/current_user',
apiTestUser: '/api/test_user',
surveys: '/api/surveys',
apiPayment: '/api/payment',
};
<file_sep>/client/src/components/... | a4dc0998c2705215026d2ebf1401e9213fd130f4 | [
"JavaScript",
"Markdown",
"Shell"
] | 34 | JavaScript | bondarukoleh/react_web_app | 3ba8be76d25f41655d3d4fc5a93458804a3f880c | cc63d6d589352fd97df9cd286d482f2be4139b42 |
refs/heads/master | <file_sep>import com.github.pysrc.sheet.AbstractSheet;
import com.github.pysrc.sheet.IRead;
import com.github.pysrc.sheet.IWrite;
import com.github.pysrc.sheet.impl.SheetRead;
import com.github.pysrc.sheet.impl.SheetWrite;
import com.github.pysrc.sheet.report.Report2;
import bean.Item;
import org.apache.poi.ss.usermode... | 24702b940534bc8ec63bdf88b78c7243ed66a487 | [
"Markdown",
"Java"
] | 13 | Java | pysrc/sheet-io | d67be57aebf3153c1e0a0b9c8cf7e0490e1b179f | c30527fd4cc607f8d088d7b46e44c9130c68c74c |
refs/heads/master | <file_sep>package com.jasonllinux.app.se;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.d... | aa13708f2506ffccae7b708aa85991b2c80d66c5 | [
"Java"
] | 1 | Java | jpollo/search_engine | 55e309ffa499cf2c7a6f9a6e745d47f0b2369af8 | 5f8e426a1a837288ea322402e059dbb4fcc9db22 |
refs/heads/main | <repo_name>BUAA-zxb/Kaggle-learning<file_sep>/main.py
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from time import time
from sklearn.decomposition import PCA
from sklearn import metrics
from sklearn.model... | b27798b0400bae3b9b4c5caba02521acc029fc92 | [
"Markdown",
"Python"
] | 2 | Python | BUAA-zxb/Kaggle-learning | 6d12b540219616ae3d494d438913a42013f6f1f2 | 9aa48d316d866fd09dd0f68a967828d2f4de1328 |
refs/heads/master | <file_sep>/**
* ProtectedrouteController
*
* @description :: Server-side logic for managing protectedroutes
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
getRequestHandler: function getRequestHandler(req,res) {
console.log("entered");
res.ok("PROTECTED R... | 26b7635d5c8a1e60824077e4bb3819871e102bc0 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Neera-Dixit/sailsjs-jwt-authentication | 2e01e9fbc4a8d8b2549f7b7c464fcc2289c4cd71 | 72a0cd099ecd728ece4d172ca24f412cb4ce81cf |
refs/heads/main | <file_sep># neuroscience-project
Project for Introduction to Computational Neuroscience
<file_sep>import json
from io import StringIO
from html.parser import HTMLParser
from nltk.tokenize.treebank import TreebankWordDetokenizer
import nltk
from timeit import default_timer as timer
import random
class MLStripper(HTMLPa... | 0eb2ed946a23405cfb8016ceb21459625a3f8960 | [
"Markdown",
"Python",
"Text"
] | 6 | Markdown | hendriksuvalov/detecting-jokes | 00c92cfffe5e4f0ce6c693787ca646a67450fdab | c54ab917f76132a8f33ec8f0d2e82cb7a7604467 |
refs/heads/master | <file_sep>#! /usr/bin/env python
import os
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np
incdirs = [os.getcwd(), np.get_include()]
ext_modules = [
Extension("memleak.extra_types", ["memleak/extra_types.pyx"],
i... | 9da25d9b9eaf88ba53fb4eb02469c73fa1cc1d87 | [
"Python",
"C++",
"reStructuredText"
] | 8 | Python | gidden/memleak | 397460213f03ed3f0302722e92feb8c3e1f0a676 | 7ca7d2d0638b82d009e0f364f916f2d032cdd9d4 |
refs/heads/master | <repo_name>ddevault/srht-android<file_sep>/README.md
# sr.ht Android
### Android application for file sharing through [sr.ht](https://sr.ht)
Adds a share feature that uploads the file and shows the link to the uploaded file
## Requires
- Android > 4.0.3
(currently not working)
<file_sep>/app/src/main/java/io/gith... | d7a97d5823da2ef08be992629394bfefef35d903 | [
"Markdown",
"Java"
] | 2 | Markdown | ddevault/srht-android | ae3493d871f1510c6b0bcbb513bd6522b4e88cf7 | d194c42bd4604175d030eb48a38a176c8eea1e01 |
refs/heads/main | <repo_name>Michaelwong0820/reactRN<file_sep>/demo/navigation-param.js
import React from 'react';
import { StyleSheet, Text, View, Button } from 'react-native';
import { createAppContainer } from 'react-navigation'
import { createStackNavigator } from 'react-navigation-stack';
class HomeScreen extends React.Component {... | 2fb672df8666e936437641c88a65d72ff06a21e5 | [
"JavaScript",
"Markdown"
] | 31 | JavaScript | Michaelwong0820/reactRN | 6b3fedf13ce1594e7daefb82ddcc11ac94966384 | 9ac46a0e64c8f61be013318113c6d2b4130c0239 |
refs/heads/master | <file_sep># Zoo Application
Zoo application that model several types of animals and expose REST apis to query them.
You can refer to [class diagram](src/main/resources/docs/class_diagram.png) to visually see class modeling.
## Installation
Java Version - 15
```
java -jar target/zoo-1.0-SNAPSHOT.jar
```
Fetch All ... | 784104bc965c0585b7679a497c651e4ff910f4b3 | [
"Markdown",
"Java"
] | 17 | Markdown | udaraliyanage/zoo | 57f2db77a470717e699ac6123336eb355503345a | 00795ea54178af035bb81bb1b4f5d7ffc8202561 |
refs/heads/master | <file_sep>import React from 'react';
import axios from 'axios';
import Button from '../components/Button';
class Old extends React.Component {
constructor(props) {
super(props);
this.state = {
users: [],
firstname: ''
};
}
componentDidMount() {
axios.get('http://localhost:3001/api/us... | 38b84f7a906b4c90611a49fd9499686d50da3416 | [
"JavaScript"
] | 2 | JavaScript | DavoCg/laloco | a427333a5b4c6b087071fc673f82a76de60bc09a | 12d70237a47a3673a88e2bb963e035e7963031d2 |
refs/heads/master | <file_sep>[SuiteResult context=PrivacyTest][SuiteResult context=LoginTest]<file_sep>package Resources;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium... | 9824b5b637937bcf3ad3c25e85bd13bbbf0360e2 | [
"Java",
"INI"
] | 8 | INI | rohitkumarr995/SalesDemo | 330cbca7053f9b7e6813a9ecab99bf6a5fdbbcdf | 280fbcf94d234c39aa6fd77cdd4ded42a17ea82f |
refs/heads/master | <file_sep>Unleash the scripting power with HomeyScript. Automate everything you every dreamed of, even when Flows are not enough for you!
HomeyScript is a JavaScript-based scripting language that interacts with the Homey Web API and various Homey Apps SDK functions.
Among many things, you can:
— Control & Monitor yo... | 403e8e31db16c26ecd9e400a599975ca38789e16 | [
"JavaScript",
"Text",
"Markdown"
] | 5 | Text | maksim-sushkevich/com.athom.homeyscript | 5c99edd06bf5cd8303db02ab8e8f0ddefd311f13 | 5658858bbb2b6fdd5a8dbb2d2344f1d8d1901813 |
refs/heads/main | <repo_name>prraoo/particle-collision<file_sep>/src/particles/GLParticlePipeline.cpp
#include <GL/error.h>
#include "GLParticlePipeline.h"
extern const char particle_vs[];
extern const char particle_gs[];
extern const char particle_fs[];
GLParticlePipeline::GLParticlePipeline()
{
{
auto vs = GL::compi... | 4090cd933f20888b433b0493e5601aeee8c08832 | [
"Markdown",
"CMake",
"C++"
] | 45 | C++ | prraoo/particle-collision | 34c684cda50c497e90482b30adf12d361eae0960 | bbbbef118e35d77eff37c9c88d80cdf449d1df9c |
refs/heads/main | <file_sep># Import all necessary modules
import os
import cv2 # OpenCV
import pydicom # DICOM
import numpy as np
import shutil # File operations
import pathlib # File operations
import PIL # Images
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.models impo... | 9dc90ed973f4afaf82fd6ab0d7ea6e81cffae131 | [
"Markdown",
"Python"
] | 2 | Python | aidanelm/DeepCT | 71cb29836a63507d9a68e8e1727434d084254e0a | 7770d998a1c8666a8a6ad624faa51ab1642114c5 |
refs/heads/branch1 | <file_sep>class Portfolio < ApplicationRecord
has_many :technologies
accepts_nested_attributes_for :technologies,
reject_if: lambda {|attrs| attrs['name'].blank?}
validates_presence_of :title, :body, :main_image, :thumb_image
def self.ang # sql query first way
where(subtitle:"... | 919b3899c7cf0254a64cdb5fc4c7912c59d40796 | [
"Ruby"
] | 9 | Ruby | kabitabhandari/practiceRuby01 | 0c6ede929ab3e665c0d84dc4733f64e387c25ee5 | 60ad534eaa6cd7cb85c648753cc03f7ef4883fa0 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Linq;
using System.Reactive.Linq;
using RazorSpy.Contracts;
using RazorSpy.Contracts.SyntaxTree;
using ReactiveUI;
namespace RazorSpy.ViewModel
{
[Export]
public class MainViewModel... | 0877c1fe01d1d754bd00d1084f1c8f83c1a4bc3d | [
"C#"
] | 2 | C# | Kathy2013/RazorSpy | b270d8251df716c021c22357097309ca42b631c2 | 487d54d57b59d0cc34413cc303ed152f2d2c2f79 |
refs/heads/main | <file_sep>module konakuni {
}<file_sep>package konakuni;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class MainClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
//System.out.println("Hello World");
//Test Digital Book... | afc830a8d9432367ed0b40de6e15ac48e332c8c7 | [
"Java"
] | 3 | Java | jerza90/konakuni-bookstore | f01941a45f5f9e8b4f254460bfa39350c159e78f | 68f830fc5395a61a053bc2008a92b5be8de3e344 |
refs/heads/master | <repo_name>KacperWodiany/CesarCipher<file_sep>/src/test/java/DecoderTest.java
import org.junit.BeforeClass;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
public class DecoderTest {
private static final int SHIF... | 2cab341b590476bba1f5d27fe744dc882cc3da1f | [
"Java",
"Gradle"
] | 7 | Java | KacperWodiany/CesarCipher | cde43a1494e45cfe4e754a8be29ff5bf229bd0d4 | 6cb941ccc10ea1a50d199f0a6406cd97e049b981 |
refs/heads/main | <file_sep># Copyright 2020 Google LLC
#
# 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/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 115a24c9318e5c96f42786c6029e06c7520d5d9a | [
"Markdown",
"Python",
"Text",
"Shell"
] | 14 | Python | cloudymoma/kubeflow-automl-nlp-example | f14bbed1bbda341a685f6988d320cc5928340580 | 72a94f12e8d500530d2a065a0898d80230f7e253 |
refs/heads/master | <file_sep>from tkinter import * #tkinter is built-in package for GUI.
from tkinter import ttk #some tkinter object need to be imported explicitly. we will use it to create combobox.
from tkinter import messagebox #some tkinter object need to be imported explicitly.
from atomicMass import * #atomicMass is a library that... | 04ac1361be1409d8a644f93f91424db0c6d90385 | [
"Python"
] | 1 | Python | deemaalomair1/CAS741project | 74866a8c324943548d7d18439e6d72fcffff085e | c381f5e224b30618b39954dd0575cb0fdd989d02 |
refs/heads/master | <repo_name>aidar-zinnatullin/avito_hobby<file_sep>/Avito_Hobby.R
library(rvest)
library(XML)
library(stringr)
library(RCurl)
library(tidyverse)
library(lubridate)
library(purrr)
############ Working staff
scrape_avito_hobby <- function(html){
hobbies <- read_html(html)
# variables that we're interested in
tit... | 565eda79ce8cc5428b991de4d386ebc14c92345b | [
"R"
] | 1 | R | aidar-zinnatullin/avito_hobby | 8c49cf9f906d9585d113b6a04bc698228ce2434e | 10df3b219ddd6135c9c746656cf1a96ec37dd26f |
refs/heads/master | <file_sep>import React, {useEffect, useCallback} from 'react'
import {ScrollView, View, Text, StyleSheet, Image, Button, Alert} from 'react-native'
import {useDispatch, useSelector} from "react-redux";
import {THEME} from "../theme";
import {HeaderButtons, Item} from "react-navigation-header-buttons";
import {AppH... | b2132db160174f8df79a3139da881e30229f5305 | [
"JavaScript"
] | 1 | JavaScript | fokysland/react-native-blog | 88b1d0c0d76707c4212824d4b5d7707bf79c5e03 | 032dc50e1c672a5d6f0c87af29d5039c6adda890 |
refs/heads/master | <repo_name>abhishekd1977/datasciencecoursera<file_sep>/corr.R
###Week#2 Quiz- Part 3###########
corr <- function(directory, threshold = 0){
setwd(directory)
file_list <- list.files()
dataset <- head(read.csv(file_list[1], header = TRUE, sep = ","), n = 0)
for (x in file_list){
dataset <- rbind(d... | c3898d5ed158885d757d384d6ea0c3dfc4dc57d1 | [
"Markdown",
"R",
"RMarkdown"
] | 13 | R | abhishekd1977/datasciencecoursera | 1d77610acf8b010e63359b4348d0cbafc7d427a1 | ca8b9ea1e830a13034faf88e58477e776e1c8ad6 |
refs/heads/master | <repo_name>sothebys/awesome-phonenumber<file_sep>/benchmark/test.js
var libs = {
'awesome-phonenumber': function( ) {
var mem1 = process.memoryUsage( );
var time1 = Date.now( );
var PhoneNumber = require( 'awesome-phonenumber' );
var time2 = Date.now( );
PhoneNumber( '0707123456', 'SE' ).getNumber( );
... | b923044fd381666e40fa39b569696b18237d80da | [
"JavaScript",
"TypeScript"
] | 4 | JavaScript | sothebys/awesome-phonenumber | b95a9ef5f630c143d2cf62a789c376b8f38635b7 | fae8ab57bc9844774bead5511d54d5a0974d2bce |
refs/heads/main | <file_sep>#include <iostream>
#include <vector>
#include <stdlib.h>
#include "winCheck.h"
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using namespace std;
//void checkAnswer(bool result);
void winCheck:: wordFinder(... | 0128e628cce2b62c6d93d7dc495a9b490be68b2e | [
"Makefile",
"C++"
] | 7 | C++ | Muhsal-droid/Hangman-game-Code | a611b22e6c16cc36f1d96244cec28ffd2aaab9fb | 0e8ee449d66ca83e1c00629f2c1f78ba2e17d110 |
refs/heads/master | <repo_name>cristolintan/dbms1819-ecommerce-t18<file_sep>/app.js
var express = require('express');
var exphbs = require('express-handlebars'); // "express-handlebars"
var nodeMailer = require('nodemailer');
var bodyParser = require('body-parser');
var path = require('path');
var app = express();
// var id = null;
const... | a6bd37b5461794f97090d4829a7434a042196d3d | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | cristolintan/dbms1819-ecommerce-t18 | 4692517345ba940cf22ec1f7c5e5bff620ade055 | fd7bd34aa2e75ab7d9f22890b61a375b83cacaa4 |
refs/heads/master | <file_sep>package main
import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/sky-uk/gonsx"
"github.com/sky-uk/gonsx/api/service"
)
func dataSourceService() *schema.Resource {
return &schema.Resource{
Read: dataSourceServiceRead,
Schema: map[string]*schema.Schema{
"name": {... | 6d03420f2519d37fb24befae473408696e8f25b7 | [
"Go"
] | 1 | Go | anjilinux/terraform-provider-nsx | 53d166f78284afd18e952a58883dc666968b5773 | 0f61b14ba14445b74ac3b18174e8ab17c77b66ff |
refs/heads/master | <repo_name>f0unix/twitterMiner<file_sep>/twitterminer/bcolors/__init__.py
import os, sys
def check_os():
if os.name == "nt":
operating_system = "windows"
if os.name == "posix":
operating_system = "posix"
return operating_system
if check_os() == "posix":
class bcolors:
PURPLE... | 9a2cb34ab864e268962996832a308f8509742b6d | [
"Markdown",
"Python",
"Text",
"reStructuredText"
] | 6 | Python | f0unix/twitterMiner | fbf2a4dc24bed1dcfebe16f6874cf6c7673bd84f | 11a01f120e8f2200aea87fd98644eef5e848aa84 |
refs/heads/master | <repo_name>tomerabergel/Hangman-self.py<file_sep>/hangman.py
def print_welcome_screen(MAX_TRIES):
"""A function that print the Welcome Screen.
:param MAX_TRIES: MAX_TRIES value
:type MAX_TRIES: int
:return: print to screen the welcome screen and The number of guesses of the player
:rtype: None
... | 83e8fe277afcd3c0f7f849ea660f45ec73ec9474 | [
"Markdown",
"Python"
] | 2 | Python | tomerabergel/Hangman-self.py | 8db16b748589ce7d9f3eb2a4f897abaef866b2a8 | 29c1af9ad2091ee7f11005b90745ffcd04cce368 |
refs/heads/master | <file_sep>json.partial! "user_songs/song", user_song: @user_song<file_sep>class Song < ActiveRecord::Base
has_many :user_songs, dependent: :destroy
has_many :users, through: :user_songs
has_many :genres
end
<file_sep>class UserSongsController < ApplicationController
before_action :set_song, only: [:show, :edit, :upd... | 110f92f5019a8e11e6e1e3fc5cc2b1b404713d50 | [
"Ruby"
] | 3 | Ruby | sugusc21/prueba5 | 3082a7be91dd9e70d0907d30a3c81a82c6ed43d4 | a02c0bd71d02a48d533f6412951059d00fcc2e10 |
refs/heads/master | <file_sep>package com.mengyang.kohler.home.adapter;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.libr... | 0b3bb921764529c5598da1347ea40c698c7e0ada | [
"Java",
"INI",
"Gradle"
] | 53 | Java | RenVeCf/kohler | d27a1aa77f047357f8aef02c57b48f81600c9970 | 2611390fac512815a445fc556aaa3e7a7df4cf70 |
refs/heads/master | <file_sep>/*RISING BTL. Empresa dedicada a la toma de datos para realizar estadísticas y censos nos pide realizar una carga de datos validada e ingresada por ventanas emergentes solamente (para evitar hacking y cargas maliciosas) y luego asignarla a cuadros de textos.
12. Los datos requeridos son los siguientes:
A. ... | 810e4f6704b25b82c22a9b0fd9a0261bbc73a3b4 | [
"JavaScript"
] | 17 | JavaScript | Nico-0906/CursoIngresoJS | bbb515bd03702a0579687b7cb88e82d8d1957567 | 6ed30b084fa08918533e760d9eb8657b986f8389 |
refs/heads/master | <file_sep># !/usr/bin/env python
# _*_ coding:utf-8 _*_
'''
@author: yerik
@contact: <EMAIL>
@time: 2018/9/17 20:27
@desc: config
'''
# 数据库
DB_USER = 'root'
DB_PASSWORD = ''
DB_HOST = 'localhost'
DB_PORT = 3306
DB_NAME = ''
DATABASE_URI = 'mysql+pymysql://' + DB_USER + ':' + DB_PASSWORD + '@' + DB_HOST + ':' + s... | 32cb5caba2a82d41534e3dc746b5e5391e0f989e | [
"Markdown",
"Python"
] | 14 | Python | xiangzz159/realty-crawler | d52391f4fa7439dd385d1f621965a84fb99a1726 | ce6288d5f4a3609a73fc8e0d4b84838803275ba0 |
refs/heads/master | <repo_name>kajong0007/freecell<file_sep>/README.md
freecell
========
The card game FreeCell<file_sep>/Makefile
CC = clang
all:
$(CC) src/cards.c -o bin/cards
<file_sep>/src/cards.c
#include <stdio.h>
#include <string.h>
#define ACE 1
#define JACK 11
#define QUEEN 12
#define KING 13
/* This is the new deck order of... | 2915dbcaae01b5061635f3250547217c5ce912be | [
"Markdown",
"C",
"Makefile"
] | 3 | Markdown | kajong0007/freecell | 84b9987730611efb7da25373fffbdb1859f0a6e6 | df1430976b218d0f1ea9197f4e5ad1014d57cc70 |
refs/heads/master | <file_sep>package de.nunoit.networking.protocol.packets;
import io.netty.buffer.ByteBuf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import de.nunoit.networking.PacketHandler;
import de.nunoit.networking.protocol.Packet;
@Data
@NoArgsConstruc... | cc5ddee7db5dd5c8d377672e30dcc8a8cc71b77b | [
"Java"
] | 3 | Java | nunoit/nunoit-networking | b9110ea12863dcbed1bba78a7ef490245a4938dc | 954631debb9911bfbff1b46287a0eec04584e142 |
refs/heads/master | <file_sep>mean <- function(l) {
sum <- 0
for (i in l) {
sum <- sum + i
}
return(sum / length(l))
}
median <- function(l) {
#order the list accending
l[order(l)]
if (is.even(length(l))) {
#if even, return the average of (n/2) and (n/2 + 1)
average <- (l[ length(l)... | 2c26caec1814fbd64dfd7c56a70d655d92bfaf4b | [
"Markdown",
"R"
] | 11 | R | otternq/RLib | 4cc9be9711f72af9907fb6e5eed1faa676d95d38 | 562b7768d57e4566fb0f06f29761a45da1b96164 |
refs/heads/master | <repo_name>jessi1998/proyectotap<file_sep>/src/main/java/com/example/proyectoM5A/Servicio/AsignaturaService.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.examp... | c0c263f74417be329b95815875b60382ecae79c0 | [
"Java"
] | 2 | Java | jessi1998/proyectotap | 08a5150723d72056d3e1e5f19c25ec16fbdb954b | 230b8c72890a7314c27db78425b039d504104a13 |
refs/heads/master | <repo_name>lszwedxx/ReactVideos<file_sep>/src/context/ThemeProvider.js
import { React, useState } from 'react';
import ThemeContext from './ThemeContext';
const ThemeProvider = ({ children }) => {
const dark = {
name: 'dark',
primary: 'dark-primary',
secondary: 'dark-secondary',
background: 'dark-bg'... | d06bde7814268cc92384fa5ba5c4858ebf560c2d | [
"JavaScript"
] | 4 | JavaScript | lszwedxx/ReactVideos | 06acc1a166fafe959b973bd061285c82367eef89 | 18649e2dfb0ffeb84dbf12974cb642ab5ea761a4 |
refs/heads/main | <repo_name>Ferch42/PyDSRL<file_sep>/agents/SymbolicAgentv2.py
import random
from collections import namedtuple
from collections import deque
import pickle
import pygame
import numpy as np
# namedtuple definitions
EntityType = namedtuple('EntityType', ['activation_spectra', 'type_number'])
Entity = namedtupl... | d2e23269e81477e7ff3702321ff84c48eca770cd | [
"Markdown",
"Python",
"Text",
"Shell"
] | 15 | Python | Ferch42/PyDSRL | bd9ea3e739c837db0db5052f7db23476fa21c472 | 14cb5fafc6b0247da432120bcb477e1620838a12 |
refs/heads/master | <file_sep>def square(x):
# define the square function here
return x * x
# remember indentation here
<file_sep>def square(x):
# define the square function here
return x * x
# remember indentation here
for i in range(10):
print(f"The square of {i} is {square(i)}")
# run loop 10 times with a different sqaure ... | aad28826ebae79fad5e4237be0a7282397f648bb | [
"Python",
"HTML"
] | 23 | Python | cgayaan/gitlecture2b | d98730d300d0df9039551b5bfba06857eed2cfd7 | 8317eece5ef18100fbb2ac80e9cee6aca0e7773e |
refs/heads/master | <repo_name>SiriusRU/Unity-2D-Pathfinding-Grid-ECS-Job<file_sep>/README.md
# Pure ECS Burst Job 2D Grid A* Pathfinding

My goal was to create an easy to use high performant example for myself, as... | c65d4f4c6c53b709d32b1ba68aa6941cfc082b1f | [
"Markdown",
"C#"
] | 10 | Markdown | SiriusRU/Unity-2D-Pathfinding-Grid-ECS-Job | 80a328956851a4245c07e11103b40f70088f115c | 962ea14e6bdb570b4a43097e880171467f97c820 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import '../Gem.css';
//Not sure what to do here
class Gem extends Component {
render(){
return (
<div>
<br/>
<table className="Gem-table">
<tr>
<td className="Gem-td">10 GP Gem</... | 662a8e2e482d9d28ceed42dcd07567243f89bf2a | [
"JavaScript"
] | 2 | JavaScript | EmilyBrumfield/2e-treasure-roller | d56685f72eae1562ac004c3f5a3e44c6cff1483e | 6a363b86bcd775cc4a21a77d9e83f43a3dc5054c |
refs/heads/master | <file_sep>Vorgurakendused
i244
<NAME>
<file_sep>/*old method
window.onload = function reverseAll(){
var beads = document.getElementsByClassName("bead");
for (var i = 0; i < beads.length; i++) {
var s = getComputedStyle(beads[i], null);
if (s.cssFloat=="left"){
beads[i].style.css... | 88bec96cb5a3867b8b78e73b4b8febd3bd703609 | [
"Markdown",
"JavaScript",
"PHP"
] | 19 | Markdown | tyomhd/Vorgurakendused | 7a3bb24ab40ee74b0b1c9be0a7136559c4191d23 | c6c244f55f0776113e5a6ad0087075de01ea10a9 |
refs/heads/master | <repo_name>ketan-ryan/PopularMMOs-Mod-1.7.10<file_sep>/src/main/java/com/popularmmos/particles/EntityParticleFXPinkSparkle.java
package com.popularmmos.particles;
import net.minecraft.client.particle.EntitySmokeFX;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.ResourceLocation;
import net... | 20f922ac6ba7497b0076bbea3410f27c8ce3ee82 | [
"Java"
] | 19 | Java | ketan-ryan/PopularMMOs-Mod-1.7.10 | dc758e00af6a13dd308da85acde28dc12e7ccc86 | a9665fad61c289178295c7648b3bda9856186ffd |
refs/heads/master | <repo_name>HassanAhmed2020/urlshortner<file_sep>/config.js
var config = {};
config.db = {};
config.db.host = 'dbuser:<EMAIL>:41185';
config.db.name = 'hussurlshortner';
module.exports = config;
| a04a8729c43a38c2b72e17162b93a7e7bccf5f2d | [
"JavaScript"
] | 1 | JavaScript | HassanAhmed2020/urlshortner | 5ae6cd501ab656599e693fe43a65697b0711de86 | ce71f3a8fb0f29f9b0ec7216f94428354f3fbe56 |
refs/heads/master | <file_sep>import React from 'react';
import './App.scss';
const Product = props => {
const plus = () => {
// Call props.onVote to increase the vote count for this product
};
const minus = () => {
// Call props.onVote to decrease the vote count for this product
};
return (
<li>
<span>{/* Product name */}... | c24d499ab7aab359d6eb5aa6973b53c0a785fbef | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | aminakarl/grocery-app_blank | 71c57537dc7621dae344e7c6533072dca823bc72 | 9872f23a6e0d7345b4a86fc18c249aeb5074546e |
refs/heads/master | <repo_name>igorcferreira/ruby_page<file_sep>/app/controllers/sendgrid_controller.rb
require 'mail'
require 'pusher'
class SendgridController < ApplicationController
def index
msg = { :status => "ok", :message => "Success!", :parameters => params}
@from = params[:from];
... | d769738bbfe38d4d70ddab4eafeabf1f7e5b4ac5 | [
"Markdown",
"Ruby"
] | 4 | Ruby | igorcferreira/ruby_page | 404c8cb3c946098352f3327dc075d70dad6b123e | eaa105d1ea562c7e2a3cbddaca795d67f432ffda |
refs/heads/master | <repo_name>lskeilty/OneStopShop<file_sep>/front_end/app/components/BottomNav/styles.js
import { StyleSheet } from 'react-native';
import colors from '../../config/colors';
export default StyleSheet.create({
footerStyle: {
height: 60,
position: 'relative',
bottom: 0,
left: 0,
right: 0,
backgr... | ec57e61e152caa22529a923b912ab355b62a8727 | [
"JavaScript",
"Ruby",
"Markdown"
] | 47 | JavaScript | lskeilty/OneStopShop | dd4a3d573f658ded34548ea478c86c0a99f96b05 | 436d788e507069fbfcf7aa96493d77356471e2f8 |
refs/heads/master | <file_sep># define ESC 53
# define SPACE 49
# define PLUS 69
# define MINUS 78<file_sep>OS=$(exec uname)
NAME = fractol
CC = gcc
FLAGS = -Wall -Wextra -Werror -g
INCLUDES = -I./libft
LIBS = -lft -lm
LIB_DIR = -L./libft
SRCS = main.c sub.c control.c
#ifeq "$OS" "Linux"
MINILIBX = -L./minilibxX11/ -I./minilibxX... | 5b87d99f24cd844098581f308695f5fe65171868 | [
"C",
"Makefile"
] | 6 | C | MagistrDev/fractol | 99467f69b662ee80749e8232e3789fc860c87e7e | c8dca2ad91151b6ac6a9848a11360742c16873d7 |
refs/heads/master | <file_sep>/**
* Author: <NAME>
* Description: carousel function and route to quiz
*/
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { PresentationService } from './presentation.service';
import { Router ... | c892e9cc09179b6de91c60be07e619806f30dd3e | [
"JavaScript",
"TypeScript",
"Markdown"
] | 6 | TypeScript | trueworthy/web-450 | 35aa305b723acad600b82f8179eb1e7ca26e535a | 9fee5099ddbedb7073fd0ae57bcfd0ccacbc4756 |
refs/heads/main | <repo_name>matheusgda/frequency_domain_neural_nets<file_sep>/utils.py
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.autograd.profiler as profiler
import copy
import fdnn
def trainer(preprocess,
model, num_epochs, initial_loss, train_loader, val_loader, num_val,
criterion, optim... | 4db03d0c87c23c31d8eda7e9f47796e320d23a32 | [
"Markdown",
"Python"
] | 5 | Python | matheusgda/frequency_domain_neural_nets | 27f7319709338eccbd99aed4ae8307ba69e6c45b | 52b330961ec9443dd99bce4bb41bffbc8131cd25 |
refs/heads/master | <repo_name>slakh96/home_page_with_react_redux<file_sep>/src/App.js
import React, { Component } from 'react';
import wheel from './car_wheel.png';
import './App.css';
import Time from './time_files/time_component.js';
import Todo from './todo_files/todo_component.js';
import Weather from './weather_files/weather_compone... | 3ee3eeee9d33098312a2ec1ddfc45db53459dd11 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | slakh96/home_page_with_react_redux | 46377b91c6b676e77defb2b5209977316776b781 | cf81e6ca60ebe7bb2a162da41fd72a690c515869 |
refs/heads/master | <file_sep>use std::convert::AsRef;
use std::collections::HashMap;
use bytes::{Buf, ByteBuf, MutByteBuf};
use std::mem;
use std::error::Error;
use std::convert::From;
use std::string;
#[derive(Debug)]
struct HttpError {
message: String,
cause: Option<Box<Error>>
}
pub enum HttpResult {
Http1Incomplete {buf... | 2a328e1785ded391f8c619c0d90aa4c21f47f77b | [
"Markdown",
"Rust",
"TOML"
] | 7 | Rust | Myrannas/mio-http | e972e81bb1ba3feaeb007c9d81f05c99f96b56a4 | 752c24d39f5e35f15e5037a22154fe8ab3a5ce0d |
refs/heads/master | <file_sep>package pl.edu.uj.dusinski.dao;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
i... | 17bc36e1ff3f6511fb050aa61822c2579c9a4554 | [
"JavaScript",
"Java",
"Markdown",
"INI"
] | 25 | Java | dusiu/magisterka | eebda4844fb2695ef4ccb1e8f572d1552173031b | 6d46a276a6621c07ccaeb6a9f3cf83ee273d920b |
refs/heads/master | <repo_name>Leap-Of-Code/course-0-assignment-10-v1<file_sep>/fix-code-0/main.cpp
#include <iostream>
#include <string>
using namespace std;
struct Point {float x; float y; float z; float w;}
int main() {
Point position;
position.x = .3;
position.y = .6;
position.z = 1.6;
position.w = -.56;
const float manhattan_distanc... | c37244f36ae0c4b79ad0c473ec3306f6ee46b8f4 | [
"C++"
] | 5 | C++ | Leap-Of-Code/course-0-assignment-10-v1 | 2de7b06dcbc99bd23aa25ac2216b664e7adec72a | 277b692f2ea3cbdf661d8b2f6b630df821f56e28 |
refs/heads/master | <file_sep>//
// Category.swift
// Todoey
//
// Created by <NAME> on 04/10/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
import RealmSwift
class Category : Object {
@objc dynamic var name : String = ""
@objc dynamic var categoryColor : String = ""
let items = List<Item>... | ec608713fd3004a58341baaef48552fd15d56fcd | [
"Swift"
] | 1 | Swift | vishalvernekar/Todoey | 116e3858cd838c97f652a3c213c18d183dd7f2b7 | 19a62aa26f44217a99099ae158b4e164119197c2 |
refs/heads/master | <repo_name>finer04/wb-bk<file_sep>/app.py
import re,json
import config
import requests
from bs4 import BeautifulSoup
import threadpool
from collections import OrderedDict
allpiclen = 0
now_num = 0
def readhtml():
rawhtml = ''
with open(config.filename, 'rb') as f:
fraw = f.read()
f.close()
... | 2ead32dd229e5d4a75db79806f9f484ff393dcde | [
"Python"
] | 2 | Python | finer04/wb-bk | d753869b25dc2c608337569733f885d108e16887 | f68a13586c1adbb7972c13089b8f615457f360c0 |
refs/heads/master | <file_sep><?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Datastore extends Model
{
protected $fillable = [
'name',
'quantity',
'price_one',
'total',
'source',
'available',
'store_id'
];
public $timestamps = false;
public fun... | fbb40ea625634065d2b72c1b8812d68adc87dcc7 | [
"JavaScript",
"PHP"
] | 10 | PHP | AhmedAbuHussein/Store | 1eb3512f625abd3bb9326f01026ebbd8ff3e2352 | 4cf698f1efbd837b08dbd1f8be334e3021e7512a |
refs/heads/master | <file_sep># <NAME>
# HDip Data Analytics 2019 pands-project
#
# class-separation.py
# Script to read in and analyse the iris data set
# How well separated are the species?
# ###########################################################
# Import Pandas data analysis library.
import pandas as pd
# Import matplotlib for ... | d81c45f34afb19c16dee4a30c6b9bfce52ccbd42 | [
"Markdown",
"Python"
] | 7 | Python | elizabethdaly/pands-project | fe200fcee56a95524bc1ebf55ff5c42f13b62c30 | 258534007fd2484cacd62075e76ba1b06359b271 |
refs/heads/master | <file_sep>/* eslint-disable linebreak-style *//* eslint-disable no-param-reassign */
/* eslint-disable class-methods-use-this *//* eslint-disable no-use-before-define */
import ClickButton from '../ClickButton';
test('test adding tooltip', () => {
document.body.innerHTML = '<div class=\'container\'><button class=\'... | dc83abc29b71856d0cf36f43ca61ae6699ed1546 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | dadiakov/ahj-hw-5.1 | 732243a8b641c3c87244e5701bb3755ea67b8717 | fa4de3c7fb46ba1f5c681bd4821531847e6688c6 |
refs/heads/master | <file_sep>package com.example.pruebanico
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| fc18ce86e43e8a7009cfffdfb110a8eafe0e4274 | [
"Kotlin"
] | 1 | Kotlin | pabloschonwiesner/pruebanicolas | 8cd989247073b9977653e04ff4af03207c54d0e1 | c7cdde79dc3a7aa010b91cfdf5cc3f0a5ab55461 |
refs/heads/master | <file_sep>// JavaScript Document
// Grab all the outline section links
const $outlineSectionLinks = $('.outline-section-link');
// Grab all the outline sections
const $outlineSections = $('.outline-section');
$outlineSections.not(':first').hide();
$outlineSectionLinks.click(function(e){
e.preventDefault();
$outlin... | 496267a964e36a2961320e6bb446dfd4f34c3a28 | [
"JavaScript"
] | 1 | JavaScript | thaqueubc/final_project | 854c7efa1039aa637c0f0392ee72f08664019847 | 35ac2f3d3c517c328e4f1bd7b0842b0a3784c4e3 |
refs/heads/master | <file_sep>// Generated by CoffeeScript 1.4.0
(function() {
var _fixtureSrings;
_fixtureSrings = {
sortableList: "<section id=\"sortable-list\">\n <h2>Sortable List</h2>\n <ul class=\"sortable\">\n <li>Item 1</li>\n <li>Item 2</li>\n <li>Item 3</li>\n <li>Item 4</li>\n <li>Item 5</li>\n <li>... | f4ca74fa70e0b0a338357dec74a8c581baee5b6e | [
"JavaScript"
] | 1 | JavaScript | metaskills/html5_sortable | 15d6912701aba0fe38f9185b515b3018614f3619 | f4751b02f2e9dadaa2edf513f963d75db73e143d |
refs/heads/master | <repo_name>shanemcdo/RustChess<file_sep>/src/main.rs
// TODO: More Docs <20-12-20, <NAME>> //
//! This is a chess program.
//! it uses the ggez graphics and game library to.
//! create a graphics user interface and get mouse input.
//!
//! IMPORTANT: alsa-sys v0.1.2, a package used by ggez causes a panic in some linux ... | a7f4ccfe2b14aa2182b29fee0f2e6ab552a075cb | [
"Rust"
] | 1 | Rust | shanemcdo/RustChess | 13e040e57696ae828851e311560592d5be43309f | c7c2add58fadc28050685af084a58673c302d91f |
refs/heads/master | <repo_name>udia-software/14<file_sep>/src/app/utils/firebase.js
import firebase from 'firebase';
import {FIREBASE_CONFIG} from '../config';
export const firebaseApp = firebase.initializeApp(FIREBASE_CONFIG);
export const firebaseAuth = firebaseApp.auth();
export const firebaseDb = firebaseApp.database();
var FireBase... | 13c09c9e1512dee5984e4abf77932a9f8afd4237 | [
"JavaScript"
] | 6 | JavaScript | udia-software/14 | dcb6e586e1a9928e840cd4c56ee12a62d77fac05 | 9d185a135ab49ebd4da834e48e20a46e5b2e4670 |
refs/heads/master | <file_sep>[https://yuchiko.github.io/site-lviv](https://yuchiko.github.io/site-lviv)
<file_sep>(function ($, window, document) {
// The $ is now locally scoped
// Listen for the jQuery ready event on the document
$(function () {
// on ready
madValidation.init();
LvivTechnology.Init();
modalVideo.init();
$... | 05f2927c6f416e5f75edc1865e5ae75896138025 | [
"Markdown",
"JavaScript",
"HTML"
] | 4 | Markdown | mdvs-pro/site-lviv-tech | 246a7e337c66a55336bc283e47950cacdd5966e7 | 039ce25648f1cff57ff701606d7fab5699291366 |
refs/heads/master | <repo_name>haewoni/workspace-spring-tool-suite-4-4.8.0.RELEASE<file_sep>/JDBC[Java DataBase Connectivity]/src/com/itwill/account/ui/AccountPanel.java
package com.itwill.account.ui;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.GridLayout;
im... | d93c0cbef82586dc566705476a3179bade7f2202 | [
"Java",
"SQL"
] | 26 | Java | haewoni/workspace-spring-tool-suite-4-4.8.0.RELEASE | bd329a5c72b11557dbaa8a22c4725c1a42aebbe3 | 730b27adc42ffdc5114f94d804791800ba6f27b0 |
refs/heads/master | <file_sep>const AWS = require('aws-sdk');
AWS.config.update({
region: "us-east-2",
endpoint: "http://localhost:8000"
});
async function test2 (event, context) {
const DocumentClient = new AWS.DynamoDB.DocumentClient();
// Consigo el token
const tokenHeader = '<KEY>';
const tokenDecoded = tokenHeader.split(' '... | 937c9e5a00671c0d15e67e9c3118a188a66c00df | [
"JavaScript"
] | 1 | JavaScript | dkippes/testCodility-2 | 9382a23480ef675b36ba0804dacd13e5714b31af | 26901e17d79b33fb25d12243a22928ccd5d16393 |
refs/heads/master | <repo_name>hunterae/exercism-exercises<file_sep>/javascript/hamming/hamming.js
module.exports = function(firstStrand, secondStrand) {
var differences = 0;
if (!firstStrand || !secondStrand)
throw 'Both DNA strands must be passed in';
else if (firstStrand.length != secondStrand.length)
throw 'DNA strands... | 817a8fd80412c29980d9fae40de8e400a52a1866 | [
"JavaScript"
] | 1 | JavaScript | hunterae/exercism-exercises | ffc960ca0e2ad373f7c3c2e65e8c209d0b12a79a | 365eb7d22e2c0f5eae9ef47fc79a82238c92ce89 |
refs/heads/master | <file_sep>require 'rubygems'
require 'bundler'
Bundler.require
require 'sinatra'
require 'sinatra/base'
require 'sinatra/cometio'
require File.expand_path 'main', File.dirname(__FILE__)
EM.epoll
EM.set_descriptor_table_size 20000
run TestApp
<file_sep>source 'https://rubygems.org'
gem 'eventmachine'
gem 'thin'
gem 's... | d67cb63abc73abaa60e5efa27de0d3e93bba80d8 | [
"Ruby"
] | 4 | Ruby | shokai/sinatra-cometio-bench | 1d524540d82782b49e5d8b3c90695f83a1f9e3ca | c075580432be13f38378468d6d45516186107caa |
refs/heads/main | <repo_name>kraigspear/DataStructuresAndAlgorithms<file_sep>/Stack/Stack/Stack.swift
//
// Stack.swift
// Stack
//
// Created by <NAME> on 8/21/21.
//
import Foundation
struct Stack<Element: Equatable>: Equatable {
init() {}
init(_ elements: [Element]) {
self.array.append(contentsOf: elements)
... | 4a60867969b4d32d915dffdef12a3bad4c8eb9c7 | [
"Swift"
] | 9 | Swift | kraigspear/DataStructuresAndAlgorithms | 7f8b0734676f6d6780eee2f277f4e5a6818168d4 | 0b37d2edde4a6b78ea3763d6ecd5f9da93697042 |
refs/heads/master | <repo_name>marissaorea/woof-woof-js-practice-nyc-web-082718<file_sep>/src/puppy.js
allPups = [];
class Puppy {
constructor(puppyObj){
this.id = puppyObj.id,
this.name = puppyObj.name,
this.isGoodDog = puppyObj.isGoodDog,
this.image = puppyObj.image
allPups.push(this)
}
render() {
return ... | 30086b7dc3387ea70a97fb2ebb307468b2d39178 | [
"JavaScript"
] | 1 | JavaScript | marissaorea/woof-woof-js-practice-nyc-web-082718 | b4e1dfc48bb987c249277e5129c4826ff582ac59 | 671489c607b00d57a42f8bd9d695aa33d67d3362 |
refs/heads/master | <repo_name>munetoshi/suggest_reviewer<file_sep>/suggest_reviewer
#! /bin/sh
exec ruby -S -x $0 "$@"
#! ruby
require 'open3'
require 'optparse'
require 'set'
#
# Keeps a list of files to be reviewed and other options to suggest reviewers, which are obtained by
# parsing command line arguments and executing a git comman... | bbd6beee8da6f6962278eccdbe1eb9335a8ecb97 | [
"Markdown",
"Ruby"
] | 2 | Ruby | munetoshi/suggest_reviewer | f8609b1b115e9b5bc51632ac463e7142fe69b0e6 | 4394221a95472dc3e23f2576bfb4383471e89d42 |
refs/heads/master | <file_sep>import React from 'react';
import Main from './Main';
React.render(<Main />, document.getElementsByTagName('body')[0]);<file_sep># ES6 react starter kit
When starting a new project I found I use a lot of time setting up some sort of build system.
Even though I learn a lot, it left me working on these build... | c8cc28c304de83734b2b87682f17f8f599cbac05 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | deificx/react-hot-babel-webpack | 21d57e433e6efc5f39acb131578283d1dbad3057 | 99a53c34280506d761258141772898cdf0105e7d |
refs/heads/master | <file_sep>---
home: true
heroImage: /images/hero.jpeg
actionText: See Experience →
actionLink: /experience
features:
- title: Testing
details: Extensive testing and TDD knowledge covering a wide variety of frameworks including Jest, Chai, Mocha, Sinon, Supertest and Cypress for unit, integration, and end to end testi... | 119b551fb17e20013bf678207af26f479e5da8d1 | [
"Markdown",
"JavaScript",
"Shell"
] | 6 | Markdown | elliehamilton3/portfolio | 795eb069cee81845701e3d610e4c94bd1016061d | 8b523dbfbf3c12be4ab7957036bad20d9c5e054f |
refs/heads/master | <repo_name>work-ladder/single-entry-react-template<file_sep>/src/api/getList.jsx
import React, { Component } from 'react';
import axios from 'axios';
export default class GetList extends Component {
constructor() {
super();
this.state = {
student: [],
};
}
componentDidMount() {
axios.get('... | 575cfc7adcd1e82dd567b273c82f94ed4b170e35 | [
"JavaScript",
"JSON",
"Markdown"
] | 8 | JavaScript | work-ladder/single-entry-react-template | 9bb237a443236e38321cc2d9c2f203ac490d238e | ba6900d1651cfa695cee78dcefbf60a627eab41e |
refs/heads/master | <file_sep>$(function(){
function show(data){
for(var i=0;i<data.length;i++){
$(".list_ul").append(`
<li>
<img src="${data[i].coverImg}" />
<div class="list_txt">
<h5>${data[i].title}</h5>
<h6>${data[i].creatAt}</h6>
... | bc9d48f5aa0735ac90340833e12dac35a431073d | [
"JavaScript"
] | 3 | JavaScript | inyu1069/project1 | e45f96ec6b9d248d6f8cd61efe60d8a0bdf9f3b0 | d2f1367a2ccebca795209d9845178d40a5debc9a |
refs/heads/master | <repo_name>PauliSpin/Vectors<file_sep>/vectors rods.py
import vpython as vp
import math
# pip install Vpython
# https://www.glowscript.org/docs/VPythonDocs/index.html
class Arrow(object):
'''
Created an arrow using a cyclinder and a cone.
Requires the vector and its position as well as a label
and it... | ed2b01210ba95e65d07d60f8b584de1f9e011fd5 | [
"Python"
] | 7 | Python | PauliSpin/Vectors | c3d5301fd4180b7c4df56fb8d1626b5bcf722991 | 9d62dbdbfc4aa8d9c3e744625772d14083758fb1 |
refs/heads/master | <repo_name>geow812/towerdefense<file_sep>/myscene.h
#ifndef MYSCENE_H
#define MYSCENE_H
#include "ennemis.h"
#include "defenses.h"
#include "projectiles.h"
#include <QGraphicsScene>
#include <QApplication>
#include <QtGui/QWidget>
#include <QWidget>
#include <QGraphicsItem>
#include <QPixmap>
#include <QFile>
#include ... | b88e57733e497c4dc5aab5804cb6ab36e3d8ecb2 | [
"C++"
] | 10 | C++ | geow812/towerdefense | f9444aad51d9a05c99532d18df873491f27c2a8b | 953b7d1d3a52b55370aae675760b89aa7a83de71 |
refs/heads/master | <file_sep>#include <iostream>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <unistd.h>
using namespace std;
struct character
{
char name[21];
int hp;
int mp;
int attack;
int armor;
int critical;
int avoid;
void set_stat();
void set_monster_stat(const char* mon_name, int hp, int attack, in... | 016244bd5f2c4f03703fb79370c7bf50ed56e460 | [
"C++"
] | 1 | C++ | eomkyeongho/server | 4d120bff69a26d795b1c5712355cc6d5e8fee061 | e93d0def29063f437eb329ccfe35e8de38e3b9c6 |
refs/heads/master | <file_sep>import axios from "axios";
import config from "../config";
const { protocol, url, port } = config.server;
const getGroups = () => {
return axios.get(`${protocol}://${url}:${port}/api/groups`);
};
const getSchedule = (date, groupId) => {
return axios.get(`${protocol}://${url}:${port}/api/schedule`, {
... | 1cb1b1c8a9de80eeafe2ced89e0d853860e424c5 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | ArtReeX/schedule-client | e5fbb491af6bc64f91f76f43fbb4cc464572b870 | 2c8bc634658a8b8bed0184eaacca351265a9cb70 |
refs/heads/master | <repo_name>oggyman/plg.github.io<file_sep>/js/google-map.js
function initialize() {
var mapCanvas = document.getElementById('map');
//const markers = [{lat: 50.452530, lng: 30.508917}, {lat: 50.422796, lng: 30.476854}];
var markers = [{lat: 50.444627, lng: 30.519926}];
var bounds = new google.maps.LatLngBounds(... | 2edfb0a89d810666860272b27102b80d5703a499 | [
"JavaScript",
"HTML",
"PHP"
] | 4 | JavaScript | oggyman/plg.github.io | 2f9895f62a568d83a170bface08e10ea5a1f1103 | 864b03ec45e319d63f536d21b15e62a841388309 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.