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 {LitElement, html} from 'lit-element';
import {css, injectGlobal} from 'emotion';
const styles = css`
color: red;
background-color: purple;
border: solid orange 10px;
`
injectGlobal`
lrs-button {
display: block;
}
`
class Button extends LitElement {
render() {
return htm... | ce5b904e01a683fa10df56c2e78eb6ce9e4004d1 | [
"JavaScript"
] | 1 | JavaScript | o-t-w/litmotion | 89d9e17491b436f94de52974f3c4c6a8d3ed2a64 | dc10303d18ce399af726ff04bc2997eb139a92b4 |
refs/heads/master | <repo_name>mmm141023/shopapp<file_sep>/src/main/resources/db.properties
jdbc.username=root
jdbc.password=<PASSWORD>
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/shop?characterEncoding=utf-8
imageHost=http://localhost:8080/<file_sep>/src/main/java/com/fendou/controller/UserController.java
pa... | 8c26ac8e671335c96b3ea0f43983067e6dd2112d | [
"Java",
"INI"
] | 4 | INI | mmm141023/shopapp | bba522c305dbff4d1c5ae59d03fab16443f82139 | c95bbf89aa54d9ecddc617bbf8175a2f762ca7f1 |
refs/heads/master | <file_sep>import paho.mqtt.client as mqtt
import random
import time
#습도를 30~95까지 받아들이는 함수
def getMsg():
msg = str(random.randrange(30, 95))
return msg
mqttc = mqtt.Client()
# YOU NEED TO CHANGE THE IP ADDRESS OR HOST NAME
mqttc.connect("192.168.43.125")
#mqttc.connect("localho... | 2b55b4f094f7132d0c00b28803959f0bd255981e | [
"Python"
] | 4 | Python | appleeji/IoT | 9cc64fae93a050d782adceaee41b810f2c609126 | fa32a282c3ce955c7b9e06db6754f6e8f16dedeb |
refs/heads/master | <file_sep>using System.Collections.Generic;
namespace DanishNews.Models
{
public class Feed
{
public string Name { get; set; }
public IEnumerable<Post> Posts { get; set; }
}
}
<file_sep>using System;
namespace DanishNews.Models
{
public class Post
{
public int Id { get; s... | 9c9ff7d04a9b85bab0a8f66a5f98889c435f6c09 | [
"C#"
] | 5 | C# | Eonix/DanishNews | 3899771233aa33bbf57e85988cd650c2b752a52e | 1332dad4948d556961fdc384bbb01b1618a6aab0 |
refs/heads/master | <repo_name>eidmannt/spotifydiscovery<file_sep>/login.py
# import spotipy
# from spotipy.oauth2 import SpotifyClientCredentials
# import spotipy.util as util
#
#
# cid ="576665c63aa04da1a8f2a359ef5c43d3"
# secret = "ae671197233541b693ca6c9e776e201f"
# username = ""
# client_credentials_manager = SpotifyClientCredentials... | 24d574472844184468434ce30fd69de9576c7328 | [
"Python"
] | 1 | Python | eidmannt/spotifydiscovery | 9f2378c75e7ed243376046d2c7303c2d516b389a | fe2e85928aee20cd185a75a81ff6efa8aa76ea7d |
refs/heads/master | <file_sep>from setuptools import find_packages, setup
from pip.req import parse_requirements
def get_requirements(filename):
try:
from pip.download import PipSession
session = PipSession()
except ImportError:
session = None
reqs = parse_requirements(filename, session=session)
... | fe5c11d52c11fdca21786138cadbedbeeb028985 | [
"Python",
"Text",
"Dockerfile"
] | 3 | Python | dustinlacewell/namespaces | 2e61abfa45fa14dca5091c2f55dfbc730190bb1f | 713323e74038c262189b55b6fb07ea639f7f250d |
refs/heads/master | <file_sep>"""Google organizational unit management."""
from psugle import creds
import gdata.apps.organization.service
class OrgUnit:
"""Google organizational unit management."""
def __init__(self, domain=None, adminuser=None, password=None, g_client=None):
"""New OrgUnit object. Google <domain> re... | 43c3e2125286bb6085b446ce9965e62f39d95e10 | [
"Python",
"Text"
] | 18 | Python | maxgarvey/psu_gcal | a82b88a4be6c17fe298549d0e753f14555ee60a3 | d9a9deac7603f6568dac5798d59091dac47d5896 |
refs/heads/main | <repo_name>dpaopao9913/EncryptedWordExtractionFromGitHubRepos<file_sep>/README.md
# EncryptedWordExtractionFromGitHubRepos
GitHub 上にあるファイルから、暗号化文字列(例:APIキーなど)を自動抽出する<br>
Auto extraction program of encrypted strings (i.e. API key) from any files on GitHub.
<br>
以下の暗号化文字列の抽出アルゴリズムは一旦それっぽい文字列を抽出できるように書いていますが、適宜お好みで変更して... | b472168990e11998b4f6934671bffd83b75ea8a0 | [
"Markdown",
"Python"
] | 2 | Markdown | dpaopao9913/EncryptedWordExtractionFromGitHubRepos | dfff7e4e547a6a700db9162371c3ad8e28c134ef | d206bf35cbfa6bd66137763e26e93aeba2ae6da1 |
refs/heads/master | <repo_name>HaoXin0206/HaoXinLearFlink<file_sep>/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
... | 343d8ca87411254e5639fe89513ea12b9b5941a7 | [
"Java",
"Maven POM"
] | 2 | Maven POM | HaoXin0206/HaoXinLearFlink | 6183b6b875bda38c6740a885c4396185816f0dbf | 6d42a9c733cb9dff9ffdca38c3310180118c134d |
refs/heads/master | <file_sep>#ifndef __NoOneDies_Base_H__
#define __NoOneDies_Base_H__
#include<iostream>
#include<cocos2d.h>
USING_NS_CC;
class Base
{
public:
};
#endif // __NoOneDies_Base_H__<file_sep>#ifndef __NoOneDies_GameOverScene_H__
#define __NoOneDies_GameOverScene_H__
#include<iostream>
#include<cocos2d.h>
#include"ui\Cocos... | e121e35904a22e1427884bdfbe0e98a56a8a4254 | [
"Markdown",
"C++"
] | 14 | C++ | linchangjian/LCJNoOneDie | 9aab3d24b188302178c0a6df0dcd3520cd6ebd06 | face7e6b56103b12a85093812a01ad215898f1de |
refs/heads/master | <repo_name>DziLean/savva3<file_sep>/requirements.txt
beautifulsoup4==4.6.3
Django==2.1.2
django-bootstrap-form==3.4
django-crispy-forms==1.7.2
django-embed-video
django-extensions==2.1.3
django-filter==2.0.0
django-markdown-filter==0.0.1
django-menu
graphene
graphene_django
django-meta
django-sitetree
Markdown
mdx_link... | 6a57a41eab172b0f322bfbf9c6edb56ba7ef355d | [
"Python",
"Text"
] | 3 | Text | DziLean/savva3 | abd2fc99e083487c7bca6d78aba368b26491e37c | 8b98ed13db7c853e6feae4a235df465b862ddff2 |
refs/heads/master | <repo_name>asaklex/TodoListing<file_sep>/TodoListing.Auth/TokenAuth/TokenAuthOptions.cs
using Microsoft.AspNetCore.Authentication;
using System;
using System.Collections.Generic;
using System.Text;
namespace TodoListing.Auth.TokenAuth
{
public class TokenAuthOptions : AuthenticationSchemeOptions
{
pu... | 933679eda5ac89b769b9813ed0d6f872b2e91f3e | [
"Markdown",
"C#"
] | 9 | C# | asaklex/TodoListing | 1596ee9e447f70976ce15543f40fc8665e57bf52 | e3b0113d86ffc75a35157ca4a9726172313863be |
refs/heads/master | <file_sep>package com.google.buzz.parser;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import com.google.buzz.exception.BuzzIOException;
import co... | 20a60d9a7ae0e41f51fb4b6bff6f381e9a63b3e2 | [
"Java"
] | 4 | Java | toby941/btt | 90b9e1e3c20762c45dcf98ce0b4e0aeb6e01a57b | 343f69aa9b2250314fd25fc557387dc7205b81bf |
refs/heads/master | <file_sep>// Begin Library
function box(el) {
return el.getBoundingClientRect();
}
function x(el) {
return box(el).left;
}
function y(el) {
return box(el).top;
}
function width(el) {
return box(el).width;
}
function height(el) {
return box(el).height;
}
function t(el) {
return box(el).top;
}
function b(el) ... | 63b3c47249d673af19c7d2b679a4c71ebeb10aa5 | [
"JavaScript"
] | 1 | JavaScript | dqsully/bb | d534459f68a1bdb5a37fa8fa024202be56dc7381 | 33aa3c0e27b8611f15016e01d226cb8c6858c4bc |
refs/heads/main | <repo_name>DryDragon10/PyChatbot<file_sep>/main.py
import discord
from discord.ext import commands
from prsaw import RandomStuff
api_key = str(input("Api key: "))
channel_id = int(input("Channel id: "))
bot_token = str(input("BOT token: "))
bot = commands.Bot(command_prefix="C")
rs = RandomStuff(async_mode=True, api... | 9f28378be7b52c9f6d8f1549fef53f0520c521b9 | [
"Markdown",
"Python"
] | 2 | Python | DryDragon10/PyChatbot | f5f54cd5293f035ce72f83e27248a1fbb0a3b7f2 | 26e802c79e3deeab8dcb1d30b91a8c8d04918af1 |
refs/heads/master | <repo_name>kharindev/wdd<file_sep>/functions.php
<?php
function memegen_build_image( $args = array() ) {
list( $width, $height ) = getimagesize( $args['memebase'] );
$args['textsize'] = empty( $args['textsize'] ) ? round( $height/10 ) : $args['textsize'];
extract( $args );
$im = imagecreatefromjpeg( $args['mem... | 3c3a09b3f464bf780802db7db397e7fa9186b85e | [
"PHP"
] | 2 | PHP | kharindev/wdd | 10e44da1635c8e77fc33b528fe5b555141c5cd69 | 56e17e19ea361942aabada6dcdd08a3741bf9ca1 |
refs/heads/master | <repo_name>woutdp/stream-viewer<file_sep>/requirements.txt
alembic==1.0.0
certifi==2018.8.24
chardet==3.0.4
click==6.7
Flask==1.0.2
Flask-Migrate==2.2.1
git+https://github.com/mitsuhiko/flask-oauth
Flask-Script==2.0.6
Flask-SQLAlchemy==2.3.2
gunicorn==19.9.0
httplib2==0.11.3
idna==2.7
itsdangerous==0.24
Jinja2==2.10
Ma... | 5aa6ff221e586da9e2536a63519586537887f28f | [
"Markdown",
"Python",
"Text"
] | 6 | Text | woutdp/stream-viewer | 558db168b84b6ab687e1337781245bfa5c0b15b7 | d0dbf460f60ec012d5698f3b24aea8b4dfb0a7cf |
refs/heads/master | <repo_name>rahul151993/servlet_jsp_practice<file_sep>/first/src/com/servlet/practice/MyServlet2.java
package com.servlet.practice;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import jav... | 55c406b6cc57a5e0533a1ec246c70b78f87f7d2c | [
"Java"
] | 6 | Java | rahul151993/servlet_jsp_practice | 6159002eed68bc74f5429b3f421a4815f13184e9 | 85794271e00f6ed6abec5085fdb03b5c3ab33323 |
refs/heads/main | <file_sep>var mongoose = require('mongoose');
var express = require('express');
var router = express.Router();
var ParkModel = require('./parkSchema');
const db = 'mongodb+srv://READER:<EMAIL>/national-parks?retryWrites=true&w=majority';
mongoose.Promise = global.Promise;
mongoose.connect(db, {useNewUrlParser: true,... | bb7667e4fb940428dfdefb810ea126724791d6ca | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | LOglieve/national_parks_api | 13d0537bf5c2549a96a6b18349e09aad7f292ffd | 27bdbd75ce56fc33e39e9918d852aa57d6b4b6a5 |
refs/heads/master | <file_sep>package id.untad.projectdeteksidiniresikokehamilan;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayout... | 8d555ee86d4e046abb4d91c70444f923a8709b75 | [
"Java"
] | 7 | Java | adyatma-project/EDPROffline | 87efca6d2b6fd9586a4daffc4ef7b0d2ee22686c | 14c3f59323c4013fd71052a93a5dff780cc5d9cc |
refs/heads/master | <file_sep>import { getModelForClass, prop } from '@typegoose/typegoose';
export class User {
@prop({ required: 'Name is required!' })
name: string;
@prop({ required: 'Email is required!' })
email: string;
@prop({ required: 'Password is required!' })
password: string;
}
export const UserModel = getModelF... | 6515e223e41e5a8b322ace4c48f81cfd908a6b9c | [
"TypeScript"
] | 4 | TypeScript | Knat-Dev/mern-socketio-chat | 98be57cf272c4b6f92644535b3218702da454fd3 | 2d476331d992256d61c27cb9804c8c212e053823 |
refs/heads/master | <file_sep>import React from 'react';
import PropTypes from 'prop-types';
export const QuizScoreView = ({score, totalQuestions}) =>
<div className="quiz-score-view">
<h3>Congratulations!</h3>
<p>You got {score} correct out of {totalQuestions}</p>
</div>
;
QuizScoreView.propTypes = {
score: PropTypes.n... | 06ab003b4393f19c81189c526c72588517be459b | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | vipranarayan14/vquiz-react | 6760881679361b98b37088f4b281d47973ff04fa | c803fb1f47565a245eb84857d30261972512d8e1 |
refs/heads/main | <repo_name>SamChinellato/k8s-sync<file_sep>/cmd/cleanup.go
/*
Copyright © 2020 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation th... | a48964420f2dd9b5265a2e18b61737aa44b370f6 | [
"Markdown",
"Go Module",
"Go"
] | 6 | Go | SamChinellato/k8s-sync | cec69233676f4c5a1396d10af827fb6dd6ef2d8f | 87d60a0c074bb3b8b1497b8f9ef8b97ea5ba8cd0 |
refs/heads/master | <file_sep>//
// ConversionViewController.swift
// WorldTrotter
//
// Created by <NAME> on 04.03.20.
// Copyright © 2020 <NAME>. All rights reserved.
//
//import Foundation
import UIKit
extension CGFloat {
static func random() -> CGFloat {
return CGFloat(arc4random()) / CGFloat(UInt32.max)
}
}
e... | 64ae7f61c7f09e4437a9244fc5c472c50610199e | [
"Swift"
] | 3 | Swift | Joachim-Goennheimer/SwiftCourseWorldtrotter | b2fca8a7f5494760099f78bf7d4e8d943678a90a | 9b2be16c4ccf95fbd7094575c221a074ff6b796d |
refs/heads/master | <file_sep>#! /bin/sh
youtube-dl -ci -o "%(title)s-%(id)s.%(ext)s" --write-info-json "https://www.youtube.com/watch?v=uwmeH6Rnj2E"
zenc
<file_sep># Daemon
this depends on
- https://github.com/tahoe-lafs/zfec
- youtube-dl
| f482aacab8d2fd433aa2daf36669e44e0105176e | [
"Markdown",
"Shell"
] | 2 | Shell | laserbot/daemon | f85f76696d76f647bf7e125e56a9c5a778bec561 | 0eebed660c7b5911ccda65c468d8b1223c1d9705 |
refs/heads/master | <file_sep>//
// ViewController.swift
// About Me
//
// Created by <NAME> on 6/18/19.
// Copyright © 2019 <EMAIL>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var IntroduceButton: UIButton!
@IBOutlet weak var textView : UITextView!
override func vi... | 9bfccfabd9572ed0ae3fd3bf010d6eb3d8e4d272 | [
"Swift"
] | 1 | Swift | Blackcloud12/AboutMe | 0c5cdd80ee3c0368a4d4c9379090ab94bd072ac3 | 2b0efef7f4a0535ffb6887ca07a206d187ff78c0 |
refs/heads/master | <repo_name>Arvin723/cpp-exercise<file_sep>/sort/insert_sort.cpp
#include<iostream>
using namespace std;
void insert_sort(int ar[], int n);
int main()
{
int a[10] = {3, 1, 8, 2, 4, 9, 0, 5, 7, 6};
insert_sort(a,10);
for (int i = 0; i < 10; i++)
{
cout<<a[i];
cout<<" ";
}
cout<<endl;
}
voi... | 883d4bb1163249c5528d98b30a92d9b8377448a2 | [
"Markdown",
"C",
"C++"
] | 21 | C++ | Arvin723/cpp-exercise | ec512e9c5ad8d86fac5a8a424d50acd875282d03 | 8438c631a9fa5be8cc3085e5d1874f8d207a404a |
refs/heads/master | <repo_name>yeison94/crozono-free<file_sep>/src/attacks/wps_attack.py
import os
import pexpect
from poormanslogging import info, warn, error
import src.settings as settings
def check():
cmd_wps = pexpect.spawn('wash -i {0}'.format(settings.INTERFACE_MON))
cmd_wps.logfile = open(settings.LOG_FILE, 'wb')
cmd_wps.expe... | 05f80e254404da2965fb330fbff715d2061e4244 | [
"Python"
] | 7 | Python | yeison94/crozono-free | 6a51669fae0a6775ebec6604a19b639bde542a9e | a26624b918059ddbf1b1c9a20eb5d2383d61788f |
refs/heads/master | <repo_name>aagamjain50000/calculator<file_sep>/main.js
const txt = document.getElementById("txt")
const dark = document.getElementById('dark')
const calc = document.getElementById("calc")
function dis(val) {
txt.value += val
}
function clr() {
txt.value = ''
}
function solve() {
a = txt.value;
b = ev... | 6784aab0092dd50320aed50c720f46c83b0bd0ea | [
"JavaScript"
] | 1 | JavaScript | aagamjain50000/calculator | fec7e76416af9c70a454f2609257c86fb0b23061 | 39f483046506ed523c3532d983ab1f59f7a1af74 |
refs/heads/master | <file_sep>#ifndef LISTA_H
#define LISTA_H
#include <stdbool.h>
#include <stddef.h>
/* ******************************************************************
* DEFINICION DE LOS TIPOS DE DATOS
* *****************************************************************/
/* La lista está planteada como una lista ... | 511b1ab7a794250a0217496d4cca79d3115821e6 | [
"Markdown",
"C"
] | 4 | C | kevinspasiuk/lista | da3448c4d8efaa2ffbaaed60cab495e9509a5594 | 91732e39baa86531283f42b2430b08551a7c8806 |
refs/heads/master | <repo_name>somebin/gopher-lua<file_sep>/gas.go
package lua
const (
OP_MOVE_GAS int = 1
OP_MOVEN_GAS int = 1
OP_LOADK_GAS int = 1
OP_LOADBOOL_GAS int = 1
OP_LOADNIL_GAS int = 1
OP_GETUPVAL_GAS int = 1
OP_GETGLOBAL_GAS int = 1
OP_GETTABLE_GAS int = 1
OP_GETTABLEKS_GAS... | 775707ae1f41f43deb9aa36e49d81944cb06fcd9 | [
"Go"
] | 1 | Go | somebin/gopher-lua | 0691d2bac59bb0abebd1738c9c1083d91b6bba58 | 3270195b0d9505aea2d9c90bdfe96acb56c700eb |
refs/heads/master | <repo_name>Joshrlear/NPS-API<file_sep>/script.js
'use strict'
const apiKey = '<KEY>';
const baseUrl = 'https://developer.nps.gov/api/v1/parks';
function formatQueryParams(params) {
const queryItems = Object.keys(params).map(key =>
`${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
r... | 9443a2cd1aa117cc58717e5c1b057fd58ca7ce13 | [
"JavaScript"
] | 1 | JavaScript | Joshrlear/NPS-API | f5f2febe70b7143faa3fa9b643fbb1d8ab1e9357 | 0d1a334f4256eb89989adbde95aa94d13db24b19 |
refs/heads/master | <file_sep># gmall
gmall-user用户服务为8080<file_sep>package com.itnan.gmall.user.controller;
import com.itnan.gmall.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping... | 3639c5faa4e96bebaad5638d92f5a4aa817aecb9 | [
"Markdown",
"Java"
] | 4 | Markdown | nanjieying/gmall | eb8673c776dad7b0333176e697c95f4e1f17f93a | 70624f7f39f57e92a1238dc0d91acd1d52e897cc |
refs/heads/main | <file_sep>const schedule = require('node-schedule');
console.log('l')
let someDate = new Date('2021-08-06 20:31:30');
schedule.scheduleJob(someDate, () => {
console.log('Job ran @', new Date().toString())
});<file_sep>/* const express = require('express');
const app = expres... | e419ff1e0b510ba181ce4e12424ed829c5cef3aa | [
"JavaScript"
] | 2 | JavaScript | CheesyPizzaBoi/2021-app-node-server | 7cd8cb1f943ea2e97ea6619c7391ec809652dd51 | ff105e62c95609891b4bd304c99f2a95972d7b1f |
refs/heads/master | <file_sep>import abc
from lafontaine.helpers.feature_types import FeatureType
class BaseFeatureResult(abc.ABC):
def __init__(self, result: bool, frames: int, feature: str, feature_type: FeatureType):
self.result = result
self.frames = frames
self.feature = feature
self.feature_typ... | f7488ac65333d6c485aff67b66aede1e45eccd84 | [
"Markdown",
"Python",
"Text"
] | 26 | Python | havingfun/LaFontaine | b554df9bcec1bc23ff2fcb6c315351d0fa9c23a1 | 60fc35693a7095d7da51ccdbbc11ab3c9e636467 |
refs/heads/master | <repo_name>cloudfelipe/ExampleCI<file_sep>/example/simple.js
/*
* AppempresarialesExampleCI
* https://github.com/cloudfelipe/appempresarialesexampleci
*
* Copyright (c) 2015 Felipeco & <NAME>
* Licensed under the MIT license.
*/
'use strict';
var appempresarialesexampleci = require('../');
console.log(appempre... | 81aeb9d9e4aec52f5d4d0aba67ebb5d51893295f | [
"JavaScript"
] | 3 | JavaScript | cloudfelipe/ExampleCI | 561f6fe9e3ba75c476878e06fc865c7a92cca136 | 126bb6aec997155e8df0c82663d308af4264127b |
refs/heads/master | <repo_name>jonasrains/SMOB3_Python<file_sep>/cappy.py
import pygame
import collision
import json
json_data = open('hitboxes.json').read()
hitboxes = json.loads(json_data)
print(hitboxes)
image = pygame.image.load(r'./images/game elements/cappy/1.png')
images = {'mario':[], 'luigi':[]}
thrown = False
def load_images... | 7882b5c4dd5aed70e64156d4e6a6037e87b6044a | [
"Markdown",
"Python"
] | 6 | Python | jonasrains/SMOB3_Python | 280f9d8857c4fe551646a1c2de7b5c2f6eee67ce | 8bca5d5b0cab8c672d300a5f5854abd4f17db9c0 |
refs/heads/master | <repo_name>dp88/go-sdl2<file_sep>/sdl/error.go
package sdl
// #include "sdl_wrapper.h"
import "C"
import "errors"
const (
ENOMEM = C.SDL_ENOMEM
EFREAD = C.SDL_EFREAD
EFWRITE = C.SDL_EFWRITE
EFSEEK = C.SDL_EFSEEK
UNSUPPORTED = C.SDL_UNSUPPORTED
LASTERROR = C.SDL_LASTERROR
)
type ErrorCode u... | 773d122650d1d332c5c82e0382c297c56eca2c54 | [
"Go"
] | 3 | Go | dp88/go-sdl2 | ba04864cac0b3a3a4931fd9af4da17ead82ec56a | 81fb21caf90ae91954f378a44209ba809df01a4e |
refs/heads/master | <repo_name>Jarrott/Jian<file_sep>/jian/redprint.py
# -*- encoding:utf-8 -*-
"""
@ Created by Seven on 2019/01/19 <https://7yue.in>
"""
class Redprint:
def __init__(self, name, with_prefix=True):
self.name = name
self.with_prefix = with_prefix
self.mound = []
def route(self, rule, **o... | ebfd5daf472451f4d82d400f72334d027af5bd57 | [
"Markdown",
"Python"
] | 17 | Python | Jarrott/Jian | bf4330589a23280e6bb7674c54086288a72ed048 | 2c278f80970514822ef3465561fd863c241d7ab0 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GraphVisualisationTool
{
interface FileHandlerInterface
{
List<List<T>> ParseFile<T>(string filename);
}
}
| 32bfe063a17a8700021abcac8e126ac582f6196e | [
"C#"
] | 1 | C# | galbenyosef/GraphVisualisationTool | 86f3dddfc27ec5674a96934eac9d4b8cc61344fc | de2f9034fb6f75d80ad004e804aeaa0748874895 |
refs/heads/master | <repo_name>ecrmnn/spaceholder-go<file_sep>/providers/providers.go
package providers
import (
"strings"
)
var (
m = map[string]func(string) string{
"loremPixel": loremPixel,
"unsplash": unsplash,
"dummyImage": dummyImage,
"fakeImg": fakeImg,
"placeImg": placeImg,
"placeholdIt": placeholdIt,
}
)
func Ge... | 9527b785d4570cd900c53f98213c7697a1e39821 | [
"Markdown",
"Go"
] | 3 | Go | ecrmnn/spaceholder-go | 50bd135fbd780a112b6706dc91c00f16687da4b4 | f8593fe6705f2d8cf60861bd53e46ad264bf3b45 |
refs/heads/main | <file_sep># store1
items sale store
| 934729e0683691ecc71691987c86b5e60c421ab2 | [
"Markdown"
] | 1 | Markdown | hovo99/store | 75af03b9b5245adf994104bfccbc903dc7453968 | edc1ad3cee1f38827545305977ad40219e883f1b |
refs/heads/master | <file_sep>import save_performance_to_database
import json
import requests
#Method to get data from url link with hackerrank_id and return a json string
def get_hackerrank_data(hackerrank_id):
#getting data from hackerrank url which returns a byte type data
try:
hackerrank_response_type_byte = requests.... | 761cb983698ea292366b01434fc9ba211ed3e51c | [
"Python",
"PHP"
] | 4 | Python | sivagembali/user_registration | 3e507efd0e5aac9fef846b4377e584238e67f4ac | 8f9d0a7d1b6b3fc4c026b6ab2c38233dc64d52eb |
refs/heads/master | <file_sep>apply plugin: 'java'
apply plugin: 'application'
//apply plugin: 'distribution'
repositories {
mavenCentral()
}
compileJava.sourceCompatibility = 1.5
compileJava.targetCompatibility = 1.5
// println "${System.properties['java.home']}/../lib/tools.jar"
mainClassName = "org.github.sprofile.ui.Main"
depende... | 607f6ad5358ec8533c96d6f7484880efba32121c | [
"Markdown",
"Java",
"Gradle"
] | 21 | Gradle | pgm/sprofile | c03a27a9d95cc32593fabb14b62083ced6632b86 | 39cfd4d5c1abbf377eab22928f90dbfbc8b6ff11 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eoba.Shipyard.ArrangementSimulator.DataTransferObject
{
public class PlateConfigDTO
{
private double[,] mPlateConfig = null;
private List<int> mPreferAddressIndexList = new List<int>();
... | 6a91dcda0e829634db4235865d8b9b7757d5cae4 | [
"Markdown",
"C#"
] | 19 | C# | jonathan-ship/SpatialArrangement | a725caceded548faac59eeacc40f351ddb58316c | af8684a59676f78de76c5a8e01e25e2a7571fe81 |
refs/heads/master | <repo_name>RogerChern/mxnext<file_sep>/mxnext/tvm/fpn_roi_assign.py
import numpy as np
import mxnet as mx
def fpn_roi_assign(F=mx.ndarray, rois=None, rcnn_stride=None,
roi_canonical_scale=None, roi_canonical_level=None):
############ constant #############
scale0 = roi_canonical_scale
lvl0 = roi_canoni... | ffe9f9d4f2cc35fdacc187de1b7fa759d4bcb376 | [
"Markdown",
"Python"
] | 13 | Python | RogerChern/mxnext | 14be3a5f7bd3054f3c9e4b712465e03ad248c3fc | 16aa3570fa6a4be1d20269a96b6df39cafd7e1fd |
refs/heads/master | <file_sep>package com.zll.androiddebug.adapters;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextVie... | 3f36e70255bd7b9f4d483f303efcb39f5f567954 | [
"Markdown",
"Java"
] | 6 | Java | zhangliuliu/AndroidDebug | 5a4835e83cba99efc3b2862485c96554f1d384d6 | efd49de144472f689b63c385cb8f0e4bf66b7f29 |
refs/heads/main | <repo_name>peporerto/loggin<file_sep>/src/App.js
import React, {useState} from 'react';
import logo from './logo.svg';
import './App.css';
import Navegate from './componets/navegate';
import Tdoform from './componets/Tdoform';
import {todos} from './todos.json'
function App() {
const [ users,setdatos] = useState... | b989491e56a6a385e0fff57172e5a299af5873a6 | [
"JavaScript"
] | 1 | JavaScript | peporerto/loggin | b0a6c70695c377e0dab2d34aa19d07d448a2b10f | 7b2b0736ce41735c2655c43f23a286830dd90c0c |
refs/heads/main | <repo_name>emannygarhi/Kintown<file_sep>/plus.php
<?php require_once 'functions.php';?>
<?php if(session_status() == PHP_SESSION_NONE ){
session_start();
}
?>
<?php
if(!isset($_SESSION['auth'])){
$_SESSION['flash']['error'] = "vous n'avez pas le droit d'acceder a cette page";
header('location: i... | 3709e7ed8b54507b28abe6f27015b9a57e34ee7e | [
"Markdown",
"PHP"
] | 8 | PHP | emannygarhi/Kintown | 32ecc144fc7bc6428c2e3d21dc613567c3830c22 | 8d81a4717922ab5464993136aca4776fe3d3a31a |
refs/heads/master | <file_sep>using UnityEngine;
using WindowsInput.Native;
using WindowsInput;
//Used to simulate a button on the keyboard via the InputSimulator
public class VirtualKeyboardButton : MonoBehaviour
{
private IKeyboardSimulator keyboardSim;
private Rigidbody rb;
private Vector3 unpressedPos, pressedPos;
... | 4a2ffa56e354cb7e63d1fa95ab2115ef2756f1ac | [
"C#"
] | 5 | C# | Chapmania/VR-UI_UnityPlugin | 6fdbf1a9a3f4df862e2ba3057f104f88e8ad818e | d57a16ed66d7a8906e0c76cd1a75a81c508d1379 |
refs/heads/master | <file_sep>import csv
import sklearn.linear_model as sk
import numpy as np
import matplotlib.pyplot as pp
def readData(data):
a = [[],[]]
with open(data, 'rb') as file:
reader = csv.reader(file)
for row in reader:
a[0].append(int(row[0].split(' ')[0]))
a[1].append(float(row[0].split(' ')[1]))
return a
def... | 0e8f13554ef641dfc8d27fa9e68ec7fec6867672 | [
"Python",
"reStructuredText"
] | 5 | Python | mshans66/Machine_Learning_Primer | 08eab19b5568174b9670db3c04e2d16874984725 | 8697f578e696a3d13cf1e0f970ab4aca3a834804 |
refs/heads/master | <repo_name>cryptochain/monero-full-node<file_sep>/docker-build.sh
#!/bin/bash
docker build -t monerod-docker .
<file_sep>/Dockerfile
# Usage: docker run --restart=always -v /var/data/blockchain-xmr:/root/.bitmonero -p 18080:18080 -p 18081:18081 --name=monerod -td kannix/monero-full-node
FROM ubuntu:16.04
ENV MONERO_V... | 264c52d27047b5143eecc30128627b88e8f764eb | [
"Markdown",
"Dockerfile",
"Shell"
] | 5 | Shell | cryptochain/monero-full-node | 1b2312df8e25e5dc7d78bf85526d126d47618454 | cc68c669f9d835fc6874b2d86a0a748d0581022d |
refs/heads/master | <repo_name>Xutop/DeepLearning<file_sep>/Caffe/MobileNet/getList.py
import os
data = '101_ObjectCategories'
path = os.listdir(data)
path.sort()
vp = 0.105
file = open('train.txt','w')
fv = open('val.txt','w')
i = 0
for line in path:
subdir = data +'/'+line
childpath = os.listdir(subdir)
mid = int(vp*le... | c10244a48d5b4a2ef88dc125941f7e9f641f983b | [
"Python",
"Shell"
] | 8 | Python | Xutop/DeepLearning | 6a7c9002b2fcc2e487f9eac9ba8cbc6c0aaff9d2 | 4411998fccda695e04706536af2f4861f9b74bed |
refs/heads/master | <repo_name>camigthompson/cursello<file_sep>/README.md
# cursello
Task tracking curses client. Meant to be similar to [trello](https://trello.com).
## Contributing
I would some love pull requests. I've tried to make issues that point to pretty self contained changes. Check those out, then make a pull request.
<file_... | e57f83e1dbab3e31f3450115f072c4a229a0b53d | [
"Markdown",
"Python"
] | 2 | Markdown | camigthompson/cursello | 5250e315112265f1545be59363870168ee16a155 | ce25de797209d8430c7dda630a0864864d883fa8 |
refs/heads/master | <repo_name>lizhming/paper.io<file_sep>/docs/se/liu/ida/paperio/Player.html
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (10.0.2) on Thu Jan 10 08:40:27 CET 2019 -->
<title>Player</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" con... | 930de78e5365fa89e845a74a9b569a869219e5da | [
"Markdown",
"Java",
"HTML"
] | 4 | HTML | lizhming/paper.io | da3502f911391c494c49afe0060015545d851411 | 8759e7d1ba5e742fdcac98992413e337208c2ed2 |
refs/heads/main | <repo_name>yR-DEV/jump-jet-auto-frontend<file_sep>/src/components/vehicle/Vehicle.jsx
import React from 'react';
import './Vehicle.css';
const Vehicle = () => {
return (
<div>
Vehicle hooked up
</div>
)
}
export default Vehicle;<file_sep>/src/services/AppointmentService.js
impor... | f0efc4d20ef2557af1b83dc6e18cf113beab732d | [
"JavaScript"
] | 10 | JavaScript | yR-DEV/jump-jet-auto-frontend | 60fe99292aa780fe3e1eb625f840b3881f93e6b0 | 85a5188fec6aee8e02b09319f92db659334e40ca |
refs/heads/master | <repo_name>klapmo/RaceStandings<file_sep>/src/app/services/data.service.ts
import { Injectable } from '@angular/core';
//Importing Angular HTTP module
import { HttpHeaders, HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class DataService {
constructor(private http: HttpClien... | 3089f3090314f6db30a2e3fd7159c34e47e430ae | [
"TypeScript"
] | 2 | TypeScript | klapmo/RaceStandings | a5618afee13283aac25e55c3fb73190a09c132b0 | 37a0d888503867d81bd7c5e11a495db7a5eceabd |
refs/heads/master | <file_sep>package com.kenova.mpesa.mpesa.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Aaron at 6/27/2020
**/
public class AccessToken {
@SerializedName("access_token")
@Expose
public String accessToken;
@SerializedName("expires_in")
@Exp... | 0ea5cff9036ea1dd179dc592d87d99759b55c0fe | [
"Markdown",
"Java",
"Gradle"
] | 3 | Java | Kenovators/LNM-Tutorial | 3cdddb839ee71f7b2a60ed641646746efbe8db84 | b3234c672bfc00c8d1ed900b949ef1394b5cfcbb |
refs/heads/main | <file_sep># MaximumScoreWord
1. A list of words, a list of alphabets(might be repeating) and score of every alphabet from a to z.
2. You have to find the maximum score of any valid set of words formed by using the given alphabets.
3. A word can not be used more than one time.
4. Each alphabet can be used only once.
... | 1b163d85d4ca1bb37367076663f75156450ff43b | [
"Markdown",
"Java"
] | 2 | Markdown | PratyushPriyam14/MaximumScoreWord | e6acca73d8f1963c41d21c573c8fe161dcf9d25f | be064b8dec87d4b72a80f6a6df80de188c4892be |
refs/heads/master | <file_sep>sudo docker ps -a -q | sudo xargs docker rm
<file_sep>kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
<file_sep>sudo docker images | grep none | awk '{print $3}' | xa... | 73430238c92ac3097ac9906af612519abddb6260 | [
"Shell"
] | 3 | Shell | lawrencecrane/scripts | aa33c4e2766585969837860cf0d7782b043e404e | 33d110b7810b8a40bb41b3ac8263ebee01346e65 |
refs/heads/main | <repo_name>gotopie/obs-scripts<file_sep>/Auto Record.lua
local obs = obslua;
local var = {}
--
-- Helpers
--
local info = function(msg)
obs.script_log(obs.LOG_INFO, "INFO: "..msg)
end
local warn = function(msg)
obs.script_log(obs.LOG_WARNING, "WARNING: "..msg)
end
local split = function(s, sep)
local... | 74b227230f051e36728c87cff549246c2afec63c | [
"Lua"
] | 1 | Lua | gotopie/obs-scripts | 179db887020a3dfedd70a87b4a19494b246aa591 | 49071102af6bab71ea03af40079f19a0624620e2 |
refs/heads/master | <repo_name>pedrocarrico/gfaa<file_sep>/README.md
== README
Good Fucking Austerity Advice repo.
An experimental project inspired by [Good Fucking Design Advice](http://www.goodfuckingdesignadvice.com).
<file_sep>/app/controllers/public_controller.rb
class PublicController < ApplicationController
helper_method :advic... | 39ab56c0884077859a3553d5106a91630c1eed8f | [
"Markdown",
"Ruby"
] | 2 | Markdown | pedrocarrico/gfaa | 7439075a1ac255d48bdecb7f4a36f6d6ebe5606e | a578a63345d7fd5224d68c21c60e550551191105 |
refs/heads/master | <file_sep>import discord,os
import asyncio
from discord.ext import commands
bot = commands.Bot(command_prefix='ay ')
@bot.event
async def on_ready():
game = discord.Activity(name="Under Development", type=discord.ActivityType.playing)
await bot.change_presence(status=discord.Status.dnd, activity=game)
@... | 8ce07ecd119ededf84c30df29c2fd5e515e5686a | [
"Python"
] | 1 | Python | axel565/panbox | da5b56818d416734ee4c97ff402e817e9245cc87 | b9cc5cb3455bf56b80fe21618d499a67caa167d2 |
refs/heads/master | <file_sep>webjobsvs
=========
<file_sep>using System.IO;
using EnvDTE;
using System.Xml;
using System.Xml.Linq;
namespace LigerShark.WebJobsVs
{
class WebJobCreator
{
public void AddReference(Project currentProject, Project selectedProject)
{
if (currentProject.Object is VSLangProj... | 0b32b921fda573ae26b93ce10f9eba00dd85106c | [
"Markdown",
"C#"
] | 5 | Markdown | n3rd/webjobsvs | 7b2d6d6b30c682556ea1cabda534f13b94ea6bed | 4c929d88e92f161ae519e257d630251ed299fb9b |
refs/heads/master | <file_sep>opencv-python
matplotlib
numpy
pillow
pytest
sklearn
opencv-contrib-python
<file_sep>import os
from libraries import frame_splitter
FRAMES_DIR = './example_frames'
SPLIT_FRAMES_DIR = './splitted'
frames = os.listdir(FRAMES_DIR)
for frame in frames:
path = os.path.join(FRAMES_DIR, frame)
print(path)... | 259860ea694b1c2d233617f2bd38796cc2f2a087 | [
"Markdown",
"Python",
"Text"
] | 6 | Text | riklaunim/stereo-webcam-python | f0dd0ac48e02d3300bb4e1015a8793e2bd9cb479 | 563bc7b224043e4baa061b1420ca5626b25cc69c |
refs/heads/main | <repo_name>SkullCutter02/snake-pro<file_sep>/src/test/java/SnakeProBrainTest_Reverse.java
import static org.junit.Assert.*;
import Controller.SnakeProBrain;
import Controller.TestGame;
import Model.BoardCell;
import org.junit.Test;
public class SnakeProBrainTest_Reverse {
// Want pictures of the test boards?
// ht... | 909865b421d7b0cd508daf9ea605f38b88c27aba | [
"Java",
"Gradle"
] | 6 | Java | SkullCutter02/snake-pro | 14e91ff236829e6f212437e8133ee0f29e45dc0a | 19e0e0d499f812c6af31493ea2a1889bfd21f03d |
refs/heads/master | <file_sep>package com.migo.migoapp.model.repository
import com.migo.migoapp.model.db.AppDb
import com.migo.migoapp.model.db.PassDao
import com.migo.migoapp.model.db.vo.Pass
import com.migo.migoapp.model.emuns.PassStatus
import com.migo.migoapp.model.emuns.PassTitleType
import com.migo.migoapp.model.emuns.PassType
impo... | 626de2744a33cb45d6a6767182c7fb4795f6e8fe | [
"Markdown",
"Kotlin",
"Gradle"
] | 42 | Kotlin | davechao/PassApp | e91bd4d6d87cfcae2d9510dee14cc58ccdffbc87 | a8cd70613850a6abb5e1f00d89943d8cab6fa655 |
refs/heads/master | <repo_name>amfgkzz/my-solo-project<file_sep>/README.md
Koua's Fantasy Football App
<file_sep>/src/redux/sagas/delete-user-data.js
import { takeEvery, put as dispatch } from 'redux-saga/effects';
import axios from 'axios';
function* deleteUserTeam(action) {
try {
yield axios.delete(`/delete/team?team_id=${a... | 760d3695ccf9648ee77d25ac5935424f17496107 | [
"Markdown",
"JavaScript"
] | 21 | Markdown | amfgkzz/my-solo-project | 59fd44cb6379ee6cdf3fa2105265c4d2e3d1df75 | 670389702c7d6aa8c7b5b877a7b170b7becbe315 |
refs/heads/master | <file_sep><?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Video extends Model
{
protected $fillable = [
'category_id','course_id','section_id','video_link','video_length','video_title','thambnail'
];
public function course(){
return $this->belongsTo('App\Models\... | 1ceb70faaca5d5657da2766c03cd4555c7e7df69 | [
"JavaScript",
"PHP"
] | 34 | PHP | sarjid/coders | 4926ad5bc28ed5219813252be0ed569fb96b871a | 96eef50fcd66001baff0cef5907673e8fe25ed26 |
refs/heads/master | <file_sep>#include "cMessenger.h"
#include <stdio.h> /* for printf() */
#include <stdlib.h> /* for malloc(), exit() */
#include <unistd.h> /* for close() */
#include <string.h> /* for strcopy(), strlen(), memset() */
#include <arpa/inet.h> /* for struct sockaddr_in, SOCK_STREAM */
#define PORT 8080
#define MAXSIZE 10... | 176ff177faa8f4e5aac50db0119a8e67e0c61402 | [
"C"
] | 3 | C | Ilyumzhinov/cMessenger | 9a54c75ede29e9a7a9fb0b3fd23df07d50060d12 | 665a3ed7cb465e287b07c4d06e83ce1b632acf7b |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2016 <NAME> (<http://www.marlonfalcon.cl>).
# contact: <EMAIL>
######################################################################
from openerp.osv import fields, osv , orm
from datetime im... | 99ed0b789b13884d6c15891d553e793ebdc4a0e9 | [
"Markdown",
"Python"
] | 4 | Python | aaronSid1/ihceRep1 | 1530ed1ea441c63f2764f4e371ce7ec688ab990b | c801d0c7bb7ad15f71e6844e85ad788d7e2c121e |
refs/heads/master | <repo_name>dor29494/Snooker-Table<file_sep>/src/Home/PopUpMenu/PopUpMenu.js
import React,{useEffect,useState} from "react";
import PopupState, { bindTrigger, bindMenu } from "material-ui-popup-state";
import { Avatar, Box, Button, Container, Fab ,IconButton} from "@material-ui/core";
import { ballColors, ballAddObj, fo... | 0800bea4ce7e60e86f7776486269ca285cb19d3a | [
"JavaScript"
] | 8 | JavaScript | dor29494/Snooker-Table | 2d381156d13ed6838b7c45405f5aabaeb6fbdc4d | 08c540bd66e003f67c526c0a1a8def79d87adf5c |
refs/heads/master | <repo_name>heyqule/slackhive<file_sep>/README.md
Slack Hive
------------------
Export Slack Pins and view them in a **nice** format.
Dependency
------------------
Saywut <https://github.com/heyqule/saywut>
<file_sep>/index.php
<?php
/**
* Created by PhpStorm.
* User: heyqule
* Date: 09/01/16
* Time: 10:32 PM
*... | 92a080799864d73e9b379da5338aa88be3822239 | [
"Markdown",
"PHP"
] | 3 | Markdown | heyqule/slackhive | 1a8cfc40a58d46cff45d382d3bfe149a411ffa87 | aaacefed4d0e63fe36fa36735e929308f72f6477 |
refs/heads/main | <file_sep># calculator-with-JS
the good calc
<file_sep>const number = document.querySelectorAll(".btn");
const screen = document.getElementById("screen");
const sign = document.querySelectorAll(".sign");
let number1 = 0;
let operation = "";
let number2 = 0;
let content = '';
// start new fun
number.forEach(... | bb6239dbf707f29f9200ae972d35c04ae4a93036 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | AhmadMKIlani/calculator-with-JS | 72a7d904b1d1d1d26861731c4d21647e4b6cc368 | be51a5c3f24fe3bd2fc8eb0bc95eaa8b9bab8bf5 |
refs/heads/main | <file_sep>from transformers import BertJapaneseTokenizer, BertForMaskedLM, BertModel
import numpy as np
import torch
import argparse
from typing import List, Optional
def_n_generate = 10
def_n_max_try = 100
def_mask_frac = 0.15
def_cos_thre = 0.9
def_n_cand = 10
def_seed = 0
def_batch_size = 8
class SentenceBertJapa... | 192cefc4cc83df6ddf06e3955445585c9f077a9b | [
"Markdown",
"Python"
] | 2 | Python | maedamaeday/text_aug | 5ec4e43d0076e1a01b38087c696762b41c62ec06 | 720bab935087c25abb914fef6475f408abc2bf23 |
refs/heads/master | <repo_name>paulacandido/ExerciciosPOO-Semana2<file_sep>/CalculadoraCientifica/CalculadoraCientifica.java
import java.lang.Math;
public class CalculadoraCientifica{
public double raiz(int numero) {
return Math.sqrt(numero);
}
public double raiz(double numero) {
return... | 598d26ed7dc3dd87c870e507f5a527044b569c3d | [
"Java"
] | 1 | Java | paulacandido/ExerciciosPOO-Semana2 | 36e442384c9c5c23035f99846f34074ef82f7221 | 5cd21ee7df387cda56ee9e4afd9867f5e4299813 |
refs/heads/master | <repo_name>parry2403/R2N2<file_sep>/RSTParser/adds.py
import os
# Read in the file
from nltk.tokenize import word_tokenize, sent_tokenize
import nltk
for fname in os.listdir('../aclImdb/test/pos'):
fullp=os.path.join('../aclImdb/test/pos/', fname)
fullo=os.path.join('../aclImdbo/test/pos/', fname)
inf = ope... | dd09af2d476ad23880f0354dff822f869eb5ff34 | [
"Markdown",
"Python"
] | 8 | Python | parry2403/R2N2 | c01253cf9bde553ed54ceca08be1dfe6db3a9578 | 1ea8c839ee4daa68f6ccd038ba0687a4cc010d69 |
refs/heads/master | <file_sep>require('rspec')
require('parcels') #requires lib file that is .rb
describe() do
it("calculates shipping cost for a simple percel") do #doesnt matter english explination
parcel = Parcel.new(1,2,3,4)
expect(parcel.ship()).to(eq(16))
end
end
<file_sep># this is where you put the code
class Parcel
... | fd4456cbc8ea6fd04f17d3fad4a2a8b914a13b50 | [
"Ruby"
] | 3 | Ruby | n-powell/shippingRuby | 9744abf20ebc3204b77848eccd021c49b7be6aa2 | 2b912a5b5c1933cd2acc83659dbede5e45211ac9 |
refs/heads/master | <repo_name>prasad-joshi/data-verification<file_sep>/main.cc
#include <iostream>
#include <cassert>
#include <gflags/gflags.h>
#include "io_generator.h"
#include "disk_io.h"
using std::vector;
using std::pair;
using std::string;
using std::cout;
using std::endl;
DEFINE_string(disk, "/dev/null", "Comma seperated list... | 793a491de5bc53a4befe421f7a3d279bf5a337bb | [
"Makefile",
"C++"
] | 10 | C++ | prasad-joshi/data-verification | 51a318cca26d8e1a91b99a0896206627c94bed87 | fd65eaec121e16cdc98d2f1f96620716232a64e3 |
refs/heads/master | <repo_name>Build-Week-DevDesk-Queue2/frontend<file_sep>/front-end/src/components/index.js
// pages
import Dashboard from "./pages/Dashboard";
// que
import Card from "./que/Card";
import ClosedCard from "./que/ClosedCard";
import ClosedTickets from "./que/ClosedTickets";
import TicketList from "./que/TicketList";
impor... | 76bcbea26a008a53975cf1e2a005814fa6aa3479 | [
"JavaScript",
"Markdown"
] | 19 | JavaScript | Build-Week-DevDesk-Queue2/frontend | 7560073101c47ad2a953a739910b9dfaae91d3a3 | 28036561f76b95b06da9ee8c801477dba5ab2399 |
refs/heads/master | <repo_name>dev4jam/deputy-shifts<file_sep>/Shifts/Shifts/App/AppComponent.swift
//
// AppComponent.swift
// Shifts
//
// Created by <NAME> on 24/11/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import Foundation
import RIBs
import UIKit
import RxSwift
final class AppComponent: Component<EmptyDependency>... | 6224de1847ba1c588fa5c6049c39873e986f31e4 | [
"Swift"
] | 40 | Swift | dev4jam/deputy-shifts | fecc0b029c1831ebdbdb49eebc89fca9ac0b5ff6 | 7a49620949f59043d5049340b5933ee8510e2776 |
refs/heads/master | <file_sep>#ifndef HELPER_H
#define HELPER_H
#include "speed.h"
#include <vector>
#include <chrono>
#include <math.h>
#include <numeric>
#include <unistd.h>
#include <stdlib.h>
#include "ros/ros.h"
#include "tf/transform_datatypes.h"
#include "geometry_msgs/Quaternion.h"
using namespace std;
using namespace std::chro... | 48f79120eba963928e56b7334b2353df8fe6386e | [
"Markdown",
"C++"
] | 11 | C++ | akaimody123/Crowdbot_sharedControl | f76cf9baf58eaeb607d286d00c2ad38628578ad0 | 7304d00138b3ab795254eef8393d9de3b4816397 |
refs/heads/master | <file_sep>package com.example.dxs.navigation;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.w... | 86b90bb25bc6bb388ffd91c318171080eabd5b18 | [
"Java"
] | 1 | Java | ncadsxh/chatAndroid | b10d9cb28700021b08578e0b9dd5373602c30399 | 0927d3579e729b8ca40a17396f6b994739c47ce9 |
refs/heads/master | <file_sep>import { isValidTime, decomposeTime } from '@/components/UtTimePicker/utils';
describe('isValidTime', () => {
it('validates against time regex', () => {
expect(isValidTime('19:54:20')).toBe(true);
expect(isValidTime('109:54:20')).toBe(false);
expect(isValidTime('-1:54:20')).toBe(false);
ex... | 0f10ae7c9f28ebd0310ddb4c5809bebf1af3fcfe | [
"Markdown",
"TypeScript",
"JavaScript",
"Dockerfile"
] | 91 | TypeScript | HeleneDalBoSerial/ut-web-template | 023ac27ebce03be9f7a347ed08fa0bfb6fd95e6f | 410d646a18cf38974c231f2dc024117f66c92821 |
refs/heads/main | <file_sep>import React from 'react';
import Checkbox from 'rc-checkbox';
import './index.less';
const DexDesktopCheckbox = ({ label, checked, onChange }) => {
return (
<div className="dex-desktop-checkbox-container">
<label className="desktop-checkbox-label" htmlFor="">{label}</label>
<Checkbox check... | 83e0a6a0bfb895ac49930eadeb1b056f8097233e | [
"JavaScript",
"Markdown"
] | 157 | JavaScript | omexapp/omexdex-ui | dd05dbd3d9948325f5542ec8311607c62f8b7fd3 | 56da54a9a069e0c34cb74a81d9337b39c2ef247c |
refs/heads/master | <repo_name>gabrielgpa/import-data-express-sequelize<file_sep>/src/controllers/Customer.js
import CustomerService from '../service/CustomerService';
const Customer = {
/**
* @param {object} req
* @param {object} res
* @returns {void} return statuc code 204
*/
import(req, res) {
const Customer =... | 556a4855bf896a3c4c835d1df5d83e8ae6185f19 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | gabrielgpa/import-data-express-sequelize | 9e16c4b0417580c4e25a3ead9a433626b42cd740 | d305cf04c1994601c600b7e766cdd9d64ffec689 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: thesk
* Date: 30.03.2019
* Time: 11:39
*/ | c18be4f3eea7d9fe5ba3f0fec2906401de334cb7 | [
"PHP"
] | 1 | PHP | onyxiris/film-site-hevs | 2ecf4d22d946cba2b396add7820ff7698f5a6b83 | a122d7ddbf40763ece1b32b59b2b3298f23d786b |
refs/heads/master | <repo_name>ballen101/dlhr-09-22<file_sep>/src/com/corsair/server/util/DownloadsFilesInfo.java
package com.corsair.server.util;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;... | 9993689d096b60da6ba5255829c8c0e9c20139b6 | [
"JavaScript",
"Java"
] | 223 | Java | ballen101/dlhr-09-22 | 3e650ac4fd231e55c7cb26870c8c9411540ef749 | a744e6535ecafcc8c6abcb473fc8b763034c63b7 |
refs/heads/master | <repo_name>jvtm/journalpump<file_sep>/test/test_journalpump.py
from journalpump.journalpump import JournalPump, ElasticsearchSender, KafkaSender, LogplexSender
import json
def test_journalpump_init(tmpdir):
# Logplex sender
journalpump_path = str(tmpdir.join("journalpump.json"))
config = {
"reader... | ea364b700daf3200e823acf0f83ac348ec3dc115 | [
"Python"
] | 1 | Python | jvtm/journalpump | d9857db9abaf45c834d814750cc723bde6269765 | 8e69899f3c5c728d6e4adff9c487e3c323aae16e |
refs/heads/master | <repo_name>franleplant/ser-example-ml<file_sep>/src/augment_data.py
import numpy as np
import librosa
def noise(data):
"""Add white noice to the librosa sound """
noise_amp = 0.035 * np.random.uniform() * np.amax(data)
data = data + noise_amp * np.random.normal(size=data.shape[0])
return data
def st... | 41b63e7c13065681b5384d92b1640cf82fb68de3 | [
"Markdown",
"Python",
"Text"
] | 8 | Python | franleplant/ser-example-ml | 6720bb1755cec2f4c58131b10974ab7ebcdeb27f | ad4ae4b1d090d283fabb1a979a30510f94271231 |
refs/heads/master | <file_sep>const express = require('express');
const app = express();
const passport = require('passport')
const cookiePaser = require('cookie-parser')
const session = require('express-session')
const PassportLocal = require('passport-local').Strategy
const port = 8081
app.use(express.urlencoded({extended: true}))
app... | 1bac93ca294c8edd9e78e070e626f644dd46f773 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | JonnHenry/LoginPassportjs | 77bcf1b4d3690445e372ec3afee1e6818d6040d1 | a7a2a3362792b037cb07f4614cfd1c28f6e04f48 |
refs/heads/master | <file_sep>
<!DOCTYPE HTML>
<?php session_start(); ?>
<html>
<head>
<style type="text/css">
div{
-moz-user-select: none;
-khtml-user-select: none;
user-select: none;
font-family: 黑体, serif;
}
#title
{
font-family: 黑体, serif;
font-size : 100px;
height: 300px;
margin-left: auto;
margin-right: auto;
p... | a98992638ccdf1187646a1f3be4f3da5b6680c4b | [
"JavaScript",
"PHP"
] | 27 | PHP | polarskie/www | 0753b266f443428003383d22aede67989a806a1c | 01adcb59f18a874ab19134e7dcd3cb17172efcec |
refs/heads/master | <file_sep><?php
namespace in2Cms\Controllers;
use Illuminate\Http\Request;
class ModuleController extends BaseController
{
/**
* @param $name
* @param Request $req
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function getIndex($name, Request $req)
{
... | ce35a663fdfb34ac6ee3a131ec50150a4f9d33b2 | [
"Markdown",
"PHP"
] | 24 | PHP | in2dream/in2cms | 05999c9469481b3e8f48e0f137a4389335ef399c | d9b5dc1c0efc990f0fef64dbd614f27045451a25 |
refs/heads/master | <repo_name>Allen-Bayern/waka-animation<file_sep>/README.md
# 动画效果
使用anime.js来做。
## 展示方法:
若您使用`visual studio code`,则可以安装插件Live Server以展示。
图示:

安装完成后,在右下角会出现一个`Go Live`图标。
图示:

点击即可展示。显示效果如下图:

## 参考:
1. http... | 9b0ccefd3dca579a88b1aeeb73aff9490738eedb | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Allen-Bayern/waka-animation | 4367768451602a94a49d3a277a4ffdc7f920778e | 83ae252d1e22555825d9b0b9f2a9592075669599 |
refs/heads/master | <file_sep>function getNoLines(element) {
var hardlines = element.value.split('\n');
var total = hardlines.length;
for (var i = 0, len = hardlines.length; i < len; i++) {
total += Math.max(Math.round(hardlines[i].length / element.cols), 1) - 1;
}
return total;
}
function expandoCheck(element) {
var line... | a5cd46b7389da9c051c30b7ad91e00c78042d692 | [
"JavaScript"
] | 1 | JavaScript | cementhorses/textile_buttons | 326327d462bf2ed099434be438cebb6c4804d833 | dd90c3fc8e38f1d5a84d2ccf19f473df05ed5a88 |
refs/heads/master | <repo_name>casualsubversive/activerecord_marathon<file_sep>/db/migrate/20150910160812_add_first_last_to_reader.rb
class AddFirstLastToReader < ActiveRecord::Migration
def change
add_column :readers, :last_name, :string, null: false, default: "Smith"
rename_column :readers, :name, :first_name
end
end
<file_s... | c4563f53d7c2f6c5e72b0943b661331b838997ea | [
"Ruby"
] | 4 | Ruby | casualsubversive/activerecord_marathon | 8c178eae5d6ca6d25314d3036c48fa1052693a3f | 0ea2d41d49f1fd716f19bc68f9864054e272c068 |
refs/heads/master | <file_sep>import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
public class KKServer {
public static void main(String[] args) {
System.setProperty("java.security.policy", "security.policy");
if (System.getSecurityMa... | d3fc1ca6d03f821fcd8b409cdcc3452652afc5f8 | [
"Java"
] | 2 | Java | Vaviorky/RMITicTacToeServer | 37bb010756fe0d272239c859ddcd66899e87a1a5 | d0f29a080e240ca4caf9c9765fe26abe7496c50d |
refs/heads/main | <file_sep>package com.fermedu.poster.form;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
/**
* @Program: poster-generator
* @Create: 2021-02-16 21:20
* @Author: JustThink
* @Description:
* @Include:
**/
@Data
public class CompanyInfoForm {
@NotEmpty(message="It should n... | 36719250a021997431d0985cf7e450c1d1c7ffdc | [
"Markdown",
"Java"
] | 2 | Java | thebirdandfish/poster-generator | 42b00d063ef8df88ed1811c4115401ff1a3ba0ff | 4f02ac5dee5e623fe6e5a3790a46b31a97dc7543 |
refs/heads/master | <repo_name>daniela-becheanu/POO--tema1<file_sep>/src/fileio/ActorInputData.java
package fileio;
import actor.ActorsAwards;
import java.util.ArrayList;
import java.util.Map;
/**
* Information about an actor, retrieved from parsing the input test files
* <p>
* DO NOT MODIFY
*/
public final class ActorInputData {
... | 6870fe43561ff367d6cc5fa2f47af3db9238952f | [
"Java"
] | 8 | Java | daniela-becheanu/POO--tema1 | 34e0c8c5b5654c98d42c68b9113bc56b579aedc6 | f4464beeb42702104e024488410eef10db3ede9f |
refs/heads/master | <file_sep># KZNPopViewController
===============

Category of UIViewController to make popup UI.
KZNPopViewController is tested on iOS 5.0+ and requires ARC.
## Features
* Simple AP... | 337936ad5d6af795ee6667e1f42840414e6b1394 | [
"Markdown",
"Ruby"
] | 2 | Markdown | kenzan8000/KZNPopViewController | 52ed35cbab3fefc76390bd9214eca32396b6d29f | 0ef941e0aa14682531fd4c457a81deefe00883fc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.