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 | <repo_name>gcoombe/ie9-selector-counter<file_sep>/test/counterTests.js
var assert = require('assert')
var counter = require('../lib/counter');
var path = require('path');
describe("counter", function () {
it("processes imports as expected", function () {
var count = counter.count(path.resolve(__dirname, "./testFile... | d59ad9c7f1147b0fcb77a578b8e8de6836646108 | [
"JavaScript"
] | 1 | JavaScript | gcoombe/ie9-selector-counter | 21290467d51d22ddee6f05ba221f9763c18fdef6 | 64cc1dc48732836fdd96347a456fe8d893f9bde4 |
refs/heads/main | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemies : MonoBehaviour
{
private GameObject playerRef;
public GameObject Damage;
public float speed = 3;
private bool detectPlayer = false;
private float detectionRange = 15;
// Start i... | 397280a68add7d5d701e3b9f327982050916f6b7 | [
"C#"
] | 5 | C# | ClockingOutTeam/ClockingOut | cb0d5c48a49c5a83187dbb3d6fa2a7f164dd687c | 77746dffc14a0180c56ef5a577a1db93d64822db |
refs/heads/master | <file_sep>import paddle.fluid as fluid
from pathlib import Path
import numpy as np
import os
import shutil
import pickle
from visualdl import LogWriter
from opts import parser
from model import ECOfull
from config import parse_config, print_configs
from reader import KineticsReader
best_acc = 0
def read_best_acc():... | cb56168c801485e55ef13027acdf6df8c509752c | [
"Python"
] | 4 | Python | agrichron/eco-paddle | cc0cdf3b6f6bed01c0d58dd5afa2f93e6b020d79 | 9658c25374b78724fe3a754dbac4816cf87f4a78 |
refs/heads/master | <repo_name>btnz-k/smtp_config<file_sep>/README.md
# SMTP CONF
Written by BTNZ 2020
```text
Usage:
-h, -? Display this help message
-D <domain.com> Sets the domain to be configured.
-e Modifies the postfix main.cf file to ENABLE D... | 9ca8743e5da0fc6e8d59c1e7c186b941fdde9d31 | [
"Markdown",
"Shell"
] | 2 | Markdown | btnz-k/smtp_config | 0ef8ae76b37f7bf8961e29c857c0a7f5c112b8b9 | eb831c54370f42ad05c018b1630527c41f2cb6bf |
refs/heads/master | <repo_name>HerlambangHaryo/ide_entry_test<file_sep>/pemahaman_orm_01.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class school extends Model
{
//
protected $table = 'school';
public static function filter()
{
// -----------------------------------------------------... | aaf70aa44d4815d0c62541a127eed2b916ba16f9 | [
"SQL",
"PHP"
] | 3 | PHP | HerlambangHaryo/ide_entry_test | 399078ef95c0e1120ded8f67d6a1c2093f4771a6 | 7447941740eff8df19be10cac9c0db9640d5d6dd |
refs/heads/master | <repo_name>Lelool/-Elevator-Simulation<file_sep>/elevator.h
#ifndef Elevator_H
#define Elevator_H
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/**
* @brief 一些BOOL值以及常量值
*/
/*******************************************************************************************/
#define t 1
#define True... | ea84d34188eac66cf0d1a1efa25fc85ca2c5eade | [
"Markdown",
"C"
] | 3 | C | Lelool/-Elevator-Simulation | f6a0bbea38904f91b2c56729304bd27f2de03d9d | ed08f510b4ff22a3779d7e77b782b940257b0c34 |
refs/heads/master | <file_sep># GenericaClase-Busqueda
<file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejemplosgenerica;
/**
*
* @author MoisesDario
*/
public class Principal {
... | 11b06da13dda558733871866d075fecd508578ca | [
"Markdown",
"Java"
] | 3 | Markdown | MoisesLopezVan/GenericaClase-Busqueda | 4554017f1d26a1ab36bd3ae3538c1bb8def1c542 | c1c6885bbe819086d7cbfcbab9a82fa53b85225a |
refs/heads/main | <repo_name>11yavuz11/stok-takip<file_sep>/ui.topy.py
from PyQt5 import uic
with open('pencere.py', 'w', encoding="utf-8") as fout:
uic.compileUi('pencere.ui', fout)<file_sep>/main.py
import sys
from PyQt5.QtWidgets import *
from pencere import *
import sqlite3
Uygulama=QApplication(sys.argv)
penAna=QM... | 1d55032ace59ce626ff9ef22be361d8a40c83af4 | [
"Python"
] | 3 | Python | 11yavuz11/stok-takip | 9fcb6554d4158b9f631a1e24024efed9023825dc | 5c57df9890b7e8b21e0fcec9f01f1aefbfe38ea7 |
refs/heads/master | <file_sep>package com.davita.hackathon2018.meaningfulalerts.controller;
import com.davita.hackathon2018.meaningfulalerts.mongo.entity.ClinicalAlert;
import com.davita.hackathon2018.meaningfulalerts.repository.ReactiveClinicalAlertRepository;
import org.springframework.beans.factory.InitializingBean;
import org.springf... | 7f79b981213c2af569d32f3abe970d8088409dd3 | [
"Java"
] | 3 | Java | tatharoy/meaningfulalerts | 9bd545d26b4bc35cfc3bcb1e4567b3d96a49ff95 | 186b17b273ef24e9e9527386d10bc73ffc983e93 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Library.API.Controllers
{
using Library.API.Services;
using Microsoft.AspNetCore.Mvc;
public class AuthorsController : Controller
{
private ILibraryRepository libraryReposito... | ff7fd377c9d1e8ce6f23317d6ecb3aeb7ee97c39 | [
"C#"
] | 1 | C# | capyash/RESTfulAPIAspNetCore_Course | a1005cc11ae53075f76cfb447128690940948b13 | b4e3a0f2c146f00e6b9806d25cc0b92579f24482 |
refs/heads/master | <repo_name>Sage-Bionetworks/mageck-configuration<file_sep>/get_synapse_data.R
# Get data from Synapse for the app
download_synapse_table <- function(table_id){
tbl <- synTableQuery(paste("SELECT * FROM",table_id),
includeRowIdAndRowVersion=FALSE)
return(as.data.frame(tbl))
}
# table for co... | 91b7b796c1d028486d579abb62755ef3dda4aaa7 | [
"R"
] | 2 | R | Sage-Bionetworks/mageck-configuration | 5400b2c6624511d3aed9c9eceb8bd39e1ff3a4ef | 934d3ffe46b5aac2ab4618a6e57f940f2ef607e8 |
refs/heads/master | <repo_name>jixiongxu/APTProject<file_sep>/settings.gradle
include ':app', ':big-container-annotation', ':big-container-process', ':big-container-lib'
<file_sep>/app/src/main/java/com/songwenju/aptproject/MyView.java
package com.songwenju.aptproject;
import android.content.Context;
import android.view.View;
import com... | 65f671cb5e3a959fa849d92416c02b25c454e98b | [
"Java",
"Gradle"
] | 3 | Gradle | jixiongxu/APTProject | d32afba81717ac669075f2b2788708d5d3c625a5 | 9020e2e682f66329047849a5c39f25eb316a9d67 |
refs/heads/main | <repo_name>amitchen93/AI-Project---Reinforcement-Learning-<file_sep>/AI_Final_project-master/rental.py
import constants
from algorithms.local_search import local_search
from algorithms.q_learner import get_vehicles
from environment.environment_factory import environment_factory
from helper_functions import *
import num... | e862d88a1616b436b7361b9adefaffcb772bb54b | [
"Python"
] | 9 | Python | amitchen93/AI-Project---Reinforcement-Learning- | ed27f2e3c7d6c86c07c8220a542b94de9928e67a | 71acf1adf65a21dbcdecb3a4b07eb91cfacaf2f0 |
refs/heads/master | <file_sep>from django.db import models
from django.contrib.auth.models import User
import uuid
class Book(models.Model):
user = models.ForeignKey(User)
author_details = models.CharField(max_length=200)
title = models.CharField(max_length=200)
isbn = models.CharField(max_length=13)
publisher = model... | 03700f8bda4cbb6dcfef93af11feee67633cd0e6 | [
"Markdown",
"Python"
] | 3 | Python | ahanse/dstrbooks | 797b759ed611efd47de58e2cdb83c0d7cb0e43db | 3a6769d9d5086a3a6042140c93bfc46b79f96648 |
refs/heads/master | <repo_name>nipeshshah/Tachukdi<file_sep>/Tachukdi/Framework/BlockHelper.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Tachukdi.Models;
namespace Tachukdi.Framework
{
public class BlockHelper: BaseHelper
{
internal List<BlockCityModal> GetBlockCityListWith... | 56dd86781c3304f9f6e743f512bef4cea3ffacec | [
"JavaScript",
"C#"
] | 16 | C# | nipeshshah/Tachukdi | 3398ea7358bb787dbd923181573ef9eb90fa2bb8 | 6d8b396e58a6958765bdf0ca048fda1939842de2 |
refs/heads/master | <repo_name>mgfcf/WorkManager<file_sep>/WorkManager/MessageBoxHandler.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace WorkManager {
static class MessageBoxHandler {
public static MessageBoxResult PromptWarning (st... | c3fff5594d4b36382d8478f7646c01124dea1384 | [
"C#"
] | 32 | C# | mgfcf/WorkManager | f4a6a6444ed64d16363ae2e6064ea88c2966b5e7 | bfe57117b4fc5a9169f2bdace9021f94a0a8ebf2 |
refs/heads/master | <file_sep>package org.seckill.service;
import org.seckill.dto.Exposer;
import org.seckill.dto.SeckillExecution;
import org.seckill.dto.SeckillInfo;
import org.seckill.entity.Seckill;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
/**
* Created by heng on 2016/7/16.
*/
public interface S... | 0be4a54864e291c2a70471ff01ca77f73c8d5a2d | [
"Markdown",
"Java"
] | 9 | Java | stateIs0/goodsKill | 68d17f8c879a9b35b8840ca20d93ddb3e7941156 | d92c746ba5a359a8adef8639b97a0ece4df7b6a8 |
refs/heads/master | <file_sep>from flask import Flask, render_template, url_for, flash, request, session, redirect, abort
from wtforms import Form, TextField, PasswordField, validators
from functools import wraps
from dbconnect import connection
from passlib.hash import sha256_crypt
from waitress import serve
import gc
import time
ap... | e726dfe17643fef12779f1a1edb61b2e5de9e7f7 | [
"Markdown",
"Python",
"HTML"
] | 5 | Python | py-radicz/score_madness | 505f404c900175c2f7107fc16eb54e810ffdb3f2 | d01d36ce28de5b902b3855e53bcfc2c08cf405df |
refs/heads/master | <repo_name>streltsova-yana/ARM-sample-detection<file_sep>/demo/src.cpp
#include <opencv2/opencv.hpp>
#include <inference_engine.hpp>
#include <string>
using namespace InferenceEngine;
static InferenceEngine::Blob::Ptr wrapMat2Blob( const cv::Mat &mat ) {
size_t channels = mat.channels();
size_t height = mat.size().... | 71fefc08907ae2b33d6755b999f037c408a377aa | [
"CMake",
"C++"
] | 2 | C++ | streltsova-yana/ARM-sample-detection | fef5d11eb1262a92742667c97564624c790a5f24 | b5452dd05d653c10cf64404a6eb143c67f6a9fec |
refs/heads/master | <file_sep>describe("NewsView", function (){
var view, news, storyList, dummyDiv;
beforeEach(function () {
view = new NewsView();
news = jasmine.createSpyObj("news", ["webTitle"]);
news.webTitle= "My headline.";
storyList = [];
storyList.push(news);
dummyDiv = document.createElement('div');
... | e757acea59eb4fd48d296d9b8a3457c2e164c244 | [
"JavaScript"
] | 4 | JavaScript | TudorTacal/news-summarizer | fc67b6a6bc6c3c12ee5038f317fbc872e8a482a7 | 571dbb38e56e7450ceff5cfcd802ca04a8fbee6e |
refs/heads/master | <repo_name>EvrenKayali/FlowFix<file_sep>/FlowFix/Program.cs
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace FlowFix
{
class Program
{
private static void StartListener(int listenPort)
{
UdpClient listener = new UdpClient(listenPort);
... | ff5ac45e3ef601d0734dac1275cee6b489c877af | [
"C#"
] | 1 | C# | EvrenKayali/FlowFix | 208ff4314555b24d0685b719e1d4babd0e7e4716 | c7233d986b6d5326671e072c3ecdfd45f13b56a8 |
refs/heads/master | <file_sep>"use strict";
var Client = require("../Src/Client");
var Instance = new Client('/tmp/pexchange.sock');
Instance.connect(function(){
Instance.Request("Ping").then(function(Response){
console.log(Response === 'Pong'); // true
});
});<file_sep>"use strict";
let Net = require('net');
let EventEmitter = r... | a6bbf72a3f0fc076c6877123c4c8e3eb880dc72f | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | steelbrain/pexchange | 26320d0aafb8932eaf98a6fafb4e22e97568080b | e89990b560dbf7188ad20a759e82950b2d777daf |
refs/heads/master | <file_sep>use std::collections::HashMap;
use std::iter::Enumerate;
use std::process;
fn lookup(token: &char) -> String{
//define the hash map according to the token table
let token_map: HashMap<char, &str> = [('=', "ASSIGN"), ('+', "ADD_OP"), ('-', "SUB_OP"), ('*', "MUL_OP"), ('/', "DIV_OP"), (';', "SEMI"), ... | dea26cf83c5836d7a51f6beed3b7314b0c04beec | [
"Markdown",
"Rust"
] | 2 | Rust | johnpanos/epic-syntax-analyzer | e56ca666008b20a1a4203fa30c6013816166ff72 | 2b4ea1ef71b43b93635eead33b2099b20cb0681c |
refs/heads/master | <file_sep>"use strict";
(function () {
function LibraryView(libraryController) {
this.libraryController = libraryController;
callApi("https://rsu-library-api.herokuapp.com/books", booksArray => {
this.libraryController.setBooksArray(booksArray);
this.showBooks(this.libraryController.getBooks())... | a0a12ac37225bea61888b0f5903932055db68911 | [
"JavaScript"
] | 8 | JavaScript | AlexShelest/external-courses | 217678db878dfd958ccb8542fc82e79371a1eac8 | eeeae148b8ae1500627c10c1e6a7fc3e9ef22191 |
refs/heads/master | <file_sep>[group-1]
option[g1] = default-env<file_sep><?php
/**
* Project: EnvironmentProvider
* User: MadFaill
* Date: 06.08.14
* Time: 21:33
* File: Environ.php
* Package: EnvironmentProvider
*
*/
namespace EnvironmentProvider\lib;
/**
* Class Environ
* @description None.
*
* @author MadFaill... | 717f39bfe263a4af8beb579077dd588b7bc21961 | [
"Markdown",
"PHP",
"INI"
] | 9 | INI | MadFaill/EnvironmentProvider | 666819e789eff815059e70ccb3af5c0ed69b9337 | d48918046132e06ea04e601301029ff8c52f1703 |
refs/heads/master | <file_sep>package controller;
public class OperacoesController {
public OperacoesController() {
// metodo construtor
super();
}
// Concatena 32768 caracteres, 1 a 1, em uma var String
public void concatenaString() {
String cadeia ="";
double tempoInicial = System.nanoTime();
for (int i=0 ; i<32768; i++) ... | 1311218f41c907d3d6477aa50cfb95c7280e8fe5 | [
"Java"
] | 1 | Java | SistemasOperacionaisAulas/Aula1TestePerfomance | 704f252707f9be7fb1785bd1d0e4eac59efcff92 | 738c67b87c19febe1cc038d5fe07f9fed956f362 |
refs/heads/master | <repo_name>AndyCuiYTT/AYProgressHUD<file_sep>/Sources/AYProgressHUD.swift
//
// AYProgressHUD.swift
// AYProgressHUD
//
// Created by Andy on 2017/6/14.
// Copyright © 2017年 Andy. All rights reserved.
//
import UIKit
var kScreenWidth: CGFloat = UIScreen.main.bounds.width
var kScreenHeight: CGFloat = UIScreen.main... | 20dbe887efc9569a9ae6586655c8571a851c06fe | [
"Swift",
"Markdown"
] | 3 | Swift | AndyCuiYTT/AYProgressHUD | cbebbf8a45f0991d8aec4dad1ad0d2220b5052f8 | 3846a0d0fd07be08244744117af17c3b6b4c5281 |
refs/heads/master | <repo_name>dlee90/Custom-Loot<file_sep>/getloot.py
import sys, getopt
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql.expression import func
from database_setup import Treasure, Base
engine = create_engine('sqlite:///treasurechest.db')
Base.metadata.bind = engine
DBSe... | a5e639c683d32dc9c2545a90ec07268d6a915815 | [
"Markdown",
"Python"
] | 4 | Python | dlee90/Custom-Loot | 11e100c0131e8124bf61de77793a97b7ab291a61 | 6c0a85ba83750aff012322721743b4424038ffd7 |
refs/heads/master | <file_sep><?php
namespace App\Model\User\Exception;
final class InvalidUserResetPasswordTokenException extends \Exception implements UserExceptionInterface
{
/**
* @return string
*/
public function getErrorMessage(): string
{
return 'The token is invalid.';
}
}
<file_sep>// Frequent ... | afb28b858801f3d1e9bd1ff642e8b228ba2631a6 | [
"YAML",
"JavaScript",
"Markdown",
"PHP",
"Dockerfile",
"Shell"
] | 107 | PHP | findingmarbles/Retromat | 78de4e692904846b97bfa4cde8b3b058c7b2982c | 8bd4660ea75a4cc683e76ce5c8461f9f3898d62b |
refs/heads/master | <repo_name>cmenedes/pods<file_sep>/src/js/App.js
/**
* @module pods/App
*/
import $ from 'jquery'
import pods from './pods'
import decorations from './decorations'
import FinderApp from 'nyc-lib/nyc/ol/FinderApp'
import GeoJson from 'ol/format/GeoJSON'
import facilityStyle from './facility-style'
import {extend as... | 962b1afade63abdf5f037998f842a245431dd844 | [
"JavaScript"
] | 4 | JavaScript | cmenedes/pods | b68c22ef922194fec840575b18bede81e30e278b | 4cf54ab0fb52742022edf3e964534657ca2fc550 |
refs/heads/main | <repo_name>DeepakdSingh/Daily_Journal<file_sep>/app.js
import express from "express";
import _ from "lodash";
import mongoose from "mongoose";
const homeStartingContent = "To start a journal, you just need to be willing to write. You don’t have to write well, you just need to want to do it. You don’t even need to dec... | af153a27e64e0a2e9d1ed18fcb03a7a6a1ac551f | [
"JavaScript"
] | 1 | JavaScript | DeepakdSingh/Daily_Journal | 443d184e6921642ae127e4d1abceb99692f1e081 | 8414911013390586adc66c823855dff02e4fed6e |
refs/heads/master | <file_sep>package com.cloud.mvc.example.common.service.system;
import com.cloud.mvc.example.business.domain.constants.UrlConstants;
import com.cloud.mvc.example.business.domain.dto.user.RoleDto;
import com.cloud.mvc.example.business.domain.resp.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.s... | 2ae72191ecefdd996bdd0d876d622d4fed6557a3 | [
"SQL",
"Markdown",
"Maven POM",
"INI",
"Java"
] | 59 | Java | JaMbarek/global | fb390f1ee73b30ad8faefb0c4149c402a404d92c | 3d5aea78bb8cae27476fb00e6f8e85bf4ba4fd74 |
refs/heads/master | <repo_name>marcosfede/url-shortener-microservice<file_sep>/project/routes.py
from apistar import Include, Route
from apistar.docs import docs_routes
from apistar.statics import static_routes
from project.views import new, redirect
routes = [
Route('/{short_url}/', 'GET', redirect),
Route('/new/http://www.{url}... | 0a20b446fcd90d57057336c9c4652c050b4a8b5a | [
"Python"
] | 4 | Python | marcosfede/url-shortener-microservice | 59ba2752ed1012187d0c84d6e6b9b834defd887b | 9d9c074ac0f1ef82b8b73429d3425d90af06c2fc |
refs/heads/master | <file_sep>//
// ViewController.swift
// UglyStuff
//
// Created by dev on 1/13/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@IBOutlet weak var tableView: UITableView!
var uglyStuff = ["ht... | f7ed32d82731cb6bdf734b58595048ed9a4ac8f8 | [
"Swift"
] | 1 | Swift | ciccioboles/UglyStuff | fe2c86f30dc27f859dd9327a8b9b4b880c435e3b | 5a82ae8552ca4e65c96cb81d97f3da80c593ac8e |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import csv
import pandas as pd
import datetime
import matplotlib.pyplot as plt
class DateParser(object):
def __init__(self, filename):
super(DateParser, self).__init__()
self.parseLog(filename)
self.print_stats()
def print_stats(self):
print s... | 420120fcec7e148b73630a7c182e066a8b08a6ef | [
"Python"
] | 1 | Python | msarahan/IvyData | 08d256a2f22dd7a05a5b2e8600ab1e1776fb1bae | 5d93efdabfecd5291130fc5fdb1dc9951798f4de |
refs/heads/master | <file_sep>using System.Globalization;
using System.Text.RegularExpressions;
namespace Facebook.Mobile.Test.Utility
{
public class Converter
{
public string FromDoubleToPrice(double text)
{
return string.Format("{0:C}", text);
}
public double FromPriceToDouble(strin... | 9b8479791a438e2bcf4d38afbdd425f3bd9587ea | [
"C#"
] | 19 | C# | arjunbharadwajOS/MobileUIAutomation | 5908c48ebf4058e2ce073c89ad75149d2af28d35 | de8fba6ac3445515529b87e373cc01ea6c15856c |
refs/heads/master | <file_sep>'''
This Python program takes an image and deletes unnecessary noise around a white DIN A4 page. It calculates the edges of the page and
cuts the noise out accordingly.
Required packages:
OpenCV: pip install opencv-python
Numpy: pip install numpy
*** By <NAME> ***
'''
import cv2
import numpy as ... | 29a1866c0442f52f5cac5db4e6121617d4efb331 | [
"Python"
] | 1 | Python | LucaLanzo/imageEdgeDetection | e913e32cad8a7f3d2ed2789d54973e771b3c6ad4 | cddbcb2b55ae1b68a0b68a33874743592ee34381 |
refs/heads/master | <repo_name>MRChaitanya/Python-DeepLearning<file_sep>/ICP_1/arithmetic.py
i1 = input("enter first number:")
j1 = input("enter another number:")
i = int(i1)
j = int(j1)
k = i+j
l = i-j
m = i*j
n = i/j
o = i%j
p = i//j
q = i**2
print("result of addition is ", k)
print("result of substraction is:", l)
print("result of mult... | 3cc768d7c303f60d426cf3ecca7e190a870f3361 | [
"Python"
] | 21 | Python | MRChaitanya/Python-DeepLearning | 8d139926a1f37bcbd19b08ecb1146a1a55a222b8 | 69ed2390a2fc304e93748eb8e7c5a220e124d61a |
refs/heads/master | <repo_name>Gomenyuk-Gleb/AbstrFabric<file_sep>/Developer/src/main/java/fabrica/bankicng/website/PhPDev.java
package fabrica.bankicng.website;
import fabrica.bankicng.Developer;
public class PhPDev implements Developer {
@Override
public void writeCode() {
System.out.println("write php code");
}
}
... | b9d29684d8610e4c735db75cd98c352459b18822 | [
"Java"
] | 9 | Java | Gomenyuk-Gleb/AbstrFabric | 99ff92ee57cd2ef025fa557d3326921b11a05fff | beff552f8d1143a3725d1105d1cef49a7bc1a3a2 |
refs/heads/main | <file_sep># (c) @AbirHasan2005
import os
class Config(object):
API_ID = int(os.environ.get("API_ID", 12345))
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
SESSION_NAME = os.environ.get("SESSION_NAME", "Rename-Bot-0")
SLEEP_TIME = int(os.environ.get("SLEEP_T... | dd6ac11b3ad466f17802c52615cb936791c59d34 | [
"Python"
] | 1 | Python | DragonPower84/Rename-Bot | 3d534758f33ddc7b4bb4a80a5b4edc07f9175cca | 1a61befea13c35321b96a62825cce87a387d5303 |
refs/heads/master | <repo_name>piekarr/PiekarApp<file_sep>/PiekarApp/PiekarApp/EntityFramework/PiekarAppContext.cs
using Microsoft.EntityFrameworkCore;
namespace PiekarApp.EntityFramework
{
public class PiekarAppContext : DbContext
{
public PiekarAppContext(DbContextOptions options) : base(options)
{
}
... | e6f979aa9f3525eb9c00978409daf0440827067d | [
"C#"
] | 1 | C# | piekarr/PiekarApp | 8d87a01e365c940255e7928ba43e8c3202e6232c | 8e5bf0aee12f01f3749ae25c417aef4c420323f7 |
refs/heads/master | <repo_name>libreyextremo/FriendGroupServer<file_sep>/README.md
# FriendGroupServer
This is the backend part of Friend Group application. It has been developed with NodeJS, MongoDB and Express.
<file_sep>/models/friend_model.js
const mongoose = require('mongoose');
require('mongoose-type-email');
const Schema = mongoose... | 1a5e8dd6d1fa64155d8eb0841d98c6d057d96b84 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | libreyextremo/FriendGroupServer | d8362ea92e3154a6a304b1789319eeb0f64ead57 | 962bdf11aac66c013993028c379332efa8b1ceee |
refs/heads/main | <repo_name>bE554357/expression<file_sep>/expression/binary_expression.h
namespace my::expression
{
template <typename L, typename R, typename OP>
struct binaryExpression
{
L lOp;
R rOp;
using result_t = typename OP::template result_t<L, R>;
template <typename ... vars_t>
auto setTo(const vars_t&... vars) const... | 0557e93f3fd17878244f669222408fcfd40ef9eb | [
"Markdown",
"C++"
] | 4 | C++ | bE554357/expression | 974e581502c79e271adf6c446f88df561033ca02 | cc6abe453cfa03e2a57b230ad351bfb814074f51 |
refs/heads/master | <file_sep>void setup() {
Time.zone(+10);
}
int analogValue;
int tValue;
int counter=0;
int totalSun=0;
bool on=false;
bool daily=false;//has todays finished?
void loop()
{
analogValue = analogRead(A0);
tValue = Time.minute();
if (analogValue>700 & tValue>480 & tValue<960)
{
... | 779292625401823e0fd09dcbf3d3db79455193da | [
"C++"
] | 1 | C++ | Hazzer11/PhotonIFTTT | 11948fd9f28726ef08a1a1d694c90e60ebdf60f9 | c6ec18d78c04284ce3e68e27eddd24c1f2cc7bf4 |
refs/heads/master | <repo_name>maked0n/MVC_example<file_sep>/cview.hpp
#ifndef CVIEW_HPP
#define CVIEW_HPP
#include <iostream>
class CView {
private:
static void _input_invitation() {
std::cout << "> ";
}
public:
static void show_greeting() {
std::cout << "Hello! Type help for instructions on how to use this utility."
... | e40b29fe76b922fca6d02042ec854e917636efdb | [
"Markdown",
"C++"
] | 8 | C++ | maked0n/MVC_example | 4940ce6183632d0046958478e251e70cb2a87f7d | e15b08cfc235ecd25c881bde44e96bbd3f6539fe |
refs/heads/main | <file_sep># FuturEdu
Website to teach people technology!
<file_sep>import React from "react";
const Card = props => {
return(
<div className="card text-center p-2" id="topicCard">
<img src={props.image} className="card-image" alt={"Image of "+props.topic} />
<div className="card-ima... | 51a67cb83d97167b96b4adbb289e6d47d719b920 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | NeerajChouhan7/FuturEdu | 54db7a1eb62038b20a750c7f012db948a6b32de8 | 05d5b9f627c6cf13ae2e94434e2924869ccbf478 |
refs/heads/master | <repo_name>phass/SomeJavaCode<file_sep>/test/pkg14/pkg11/pkg21/MainTest.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 pkg14.pkg11.pkg21;
import org.junit.After;
import... | ffc19507ab07e49b82fcd0da576dd63415a2da8a | [
"Java"
] | 2 | Java | phass/SomeJavaCode | 4facb2c26989c8a46f361b3782d56070f60f3b56 | 21d30329e7b15c726aa37cdfb7cffa099fa18a08 |
refs/heads/master | <repo_name>flysouls/http-trick<file_sep>/bin/createRootCA.js
const {createRootSecurityContext} = require('../src/service/certificationService');
const fileUtils = require("../src/utils/file");
let {keyPem, certPem} = createRootSecurityContext();
// 写文件
fileUtils.writeFile('root.key', keyPem)
fileUtils.writeFile('roo... | ebe12fd34a2a4e279832ca9caf3556ff56d3b454 | [
"JavaScript"
] | 1 | JavaScript | flysouls/http-trick | fbdec72a86e7b7377a130400012dc9e2bbec6c3b | ae294e1624543ae82406b797801c5787782913b5 |
refs/heads/master | <repo_name>burakaykan/SistemAnaliziOtomasyon<file_sep>/SistemAnaliziOtomasyon/Urunler.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Wi... | 4bb4ee43b70e7a4b0e99003a017b2a67fa719391 | [
"C#"
] | 2 | C# | burakaykan/SistemAnaliziOtomasyon | a6fb1dec18d90d59aac377c2344d981b7777bed4 | f4c53222a76fc27368ebd8343eeb83107d9750fe |
refs/heads/master | <file_sep>package utilities;
import java.util.List;
/**
*
* @author <NAME>
*A class containing functions for changing chars
*/
public class Cruncher {
private StringBuilder builder = new StringBuilder();
private char[] specialSigns = { '@', '%', '+', '/', '!', '#', '$', '?', '(', ')' };
private List<Characte... | 419a4b6b6151f76fd170bacc53d429784c3d2645 | [
"Markdown",
"Java"
] | 5 | Java | adrianbook/PSScrambler | 73ee9e20ee6895e4f810e9a11c12c81b45455315 | edac89ae2889ea5ae3a84579d9017c3a8ba0071b |
refs/heads/master | <repo_name>MiguelBel/FilmaffinityToTrello<file_sep>/lib/trello/movies.rb
require 'redis'
module Trello
class Movies
class << self
def movies_to_insert
movies_to_reject = movies_ids_already_in_database
list_movies.reject { |movie| movies_to_reject.include?(movie.id) }
end
privat... | eda7099d2f320aa427d67b55e966a3be581970de | [
"Markdown",
"Ruby"
] | 14 | Ruby | MiguelBel/FilmaffinityToTrello | a207ca6f6b8f885713af8a73a4c664e549cebe06 | 8dc84507c0ca77e2a6904fb00cdfa5a7da489057 |
refs/heads/master | <repo_name>besarthoxhaj/monrepo<file_sep>/start.sh
bool=true
if [ "$NODE_ENV" = 'one' ]; then
node one.js
elif [ "$NODE_ENV" = 'two' ]; then
cd dir/
pwd
npm install
node two.js
else
echo Error: No correct env variable provided. Try NODE_ENV=one or NODE_ENV=two
exit 1
fi
<file_sep>/README.md
# monrepo
Mo... | cfbbfa0b3705a54c96383e38f950683eee11dac4 | [
"Markdown",
"Shell"
] | 2 | Shell | besarthoxhaj/monrepo | 8471483a1675796d78f967cdc68b9e7e1cb66b37 | 2c86f795cb1582f22cb93c7a7acb868c1b3b3a5d |
refs/heads/master | <repo_name>csf1632/fun<file_sep>/lattice_paths.py
''' PE015 Lattice paths
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down,
there are exactly 6 routes to the bottom right corner. How many paths exists for 20x20 grid?
'''
grid = 20
route = []
for i in range(grid):
rout... | e032b5cb72383d8a27b472f7d06f6fb4b2752b04 | [
"Markdown",
"Python"
] | 2 | Python | csf1632/fun | 33684b7ad021ae2afa260ac334bd053811b43d8b | cb2449eda868e4028ec58194522ab027c128864d |
refs/heads/master | <file_sep><div class="wrap" id="legacy-posts-wrapper">
<h2><span class="icon"></span>Legacy Posts <a href="admin.php?page=legacy-post-new" class="add-new-h2">Add new</a></h2>
<div id="legacy-post-actions" class="tablenav top">
<p class="alignleft">View by category: </p>
<form id="legacy-post-show-category-form" action=... | c7087479f66e6482010056d544257507f7af4dc4 | [
"JavaScript",
"PHP"
] | 5 | PHP | egstudio/legacypost | d2bf9ceb0b56985078596b3545bef9ea9c87222c | 40d8ca9461a41d727d0576caa97dfdff43419a29 |
refs/heads/main | <repo_name>Destrokhen-main/Laberint<file_sep>/lab.js
function create_map(w,h){
let map = [];
for (let y = 0;y != h;y++){
let a = [];
for (let x = 0;x != w;x++){
a.push({
left : true,
bottom : true,
visited : false,
y... | b267cd146a24334e40000ce5818149d22d2728df | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Destrokhen-main/Laberint | 65c5e59bec462d012ba01c41c7b6c3813da4a3ff | 2ffb45a724d9376d28842c3d5357814418d9421f |
refs/heads/master | <repo_name>ManuAT/Location-and-Service-Provider-Finder<file_sep>/Location and Service Provider Finder/GUI version.py
# inserting header files
from Tkinter import*
import tkFont as tkfont
from PIL import ImageTk, Image
import sqlite3
root = Tk()
root.title("FIND SERVICE PROVIDER AND LOCATION AND LOCTION VIA STD & ISD")... | 5c4caf6613e920f7d384acc08f31807dff52e794 | [
"Markdown",
"Python"
] | 3 | Python | ManuAT/Location-and-Service-Provider-Finder | 30cbb50aed86403891584b21ed78a4dae27d70a2 | 10507842ef4595e71b6c9fbd93071338b034d3c7 |
refs/heads/master | <repo_name>FlugelTeam/storm-front<file_sep>/app/src/components/version/version.js
'use strict';
angular.module('flugel.version', [
'flugel.version.interpolate-filter',
'flugel.version.version-directive'
])
.value('version', '0.1');
<file_sep>/app/src/core/services/index.js
'use strict';
angular.module('flugel.ser... | 18014557de45ae5c98c7cd7a4238e7b777ed3725 | [
"JavaScript",
"HTML"
] | 8 | JavaScript | FlugelTeam/storm-front | 03ad2cac0c072f4d308806a5597aba275e0891e1 | fe8572f2a2c7152ef8d388ac0579d94b2c66a760 |
refs/heads/master | <file_sep>import os
file = 'unknownfiletype.065902'
# Rename a file extension
base = os.path.splitext(file)[0]
new_file = os.rename(file, base + '.txt')
| c85ee85979227b47fcc6232a71ac8c16828736c5 | [
"Python"
] | 1 | Python | xCodeRain/Python | 753ad5978359f76ee92809deab5aa8b17a6b7ad9 | 1a3df6cca4f7483f79d6f713d0546b27dcc764fd |
refs/heads/master | <repo_name>yoshi-naoyuki/squeryl-example<file_sep>/README.md
squeryl-example
===============
##プログラムの取得
`git clone git://github.com/yoshi-naoyuki/squeryl-example.git`
##データベース作成
`mysql -u root -p < ./db/1.sql`
##実行
`gradle run`
<file_sep>/db/1.sql
drop database if exists squeryl_example;
create database squeryl_exampl... | 7bf4079fd316141e2510859df3703f66b0a1aa68 | [
"Markdown",
"SQL"
] | 2 | Markdown | yoshi-naoyuki/squeryl-example | 78ce7b2817ce2771bc500aa06d96f2dfd3110eac | da385b55e3f4af977c4edd203c3c046162ddf9fa |
refs/heads/master | <file_sep>import pygame
import random
# color palette
black = (0, 0, 0)
yellow = (255, 255, 0)
blue = (100, 255, 255)
green = (0, 255, 0)
red = (255, 0, 0)
white = (255, 255, 255)
gray = (105, 105, 105)
navy = (0, 0, 128)
bluegray = (112, 138, 144)
# screen details
WIDTH = 700
HEIGHT = 550
FPS = 60
screensize = WIDT... | 09ad68f9cf04211304e6b2af0059a12951780334 | [
"Python"
] | 1 | Python | Yuunna/Lab-Activities | f2756e25e895556d6500d44ec2cc1e02c79024d2 | 710dd021e8b16e159ba849bec42c57908b31a0c9 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a grou... | 3dd856d95cf8be7283d4b57eeaff8bfc09cb4941 | [
"PHP"
] | 3 | PHP | blackjack-1337/crud-panel | df9dd0b25ef8618cd8a042ec6af1d9ee839c852c | 60a5c2acf1e179e79104fbb8156cc2ee2d8e3131 |
refs/heads/master | <repo_name>StanSluisveld/vue-demo<file_sep>/src/sample-fishes.js
// This is just some sample data so you don't have to think of your own!
module.exports = {
fish1: {
name: 'Pacific Halibut',
image: 'http://i.istockimg.com/file_thumbview_approve/36248396/5/stock-photo-36248396-blackened-cajun-sea-bass.jpg',
... | eea2061f2922535ecf47c944ee0130472b8a4d1b | [
"JavaScript"
] | 1 | JavaScript | StanSluisveld/vue-demo | 782dfc1536a0480baca086b3eb0512e573d5e01b | 9f91084454cd1de882e97db000e4db9472025b49 |
refs/heads/master | <file_sep>
function aa(a) {
var b = a[0]*a[1]
for (i=1; i<(a.length-1); i++ ){
if (a[i]*a[(i+1)]>b){
b=a[(i+1)]*a[i]
}
}
return b
}
document.write(aa([3,6,-2,-5,7,3]))
document.write("<br/>")
document.write(aa([-3,1,-2,6,-8]))
document.write("<br/>")
document.write(aa([-1,1,-2,6,-8])) | 94fb1e0edc3ba368a1f0e12aac7ed20488796ac3 | [
"JavaScript"
] | 1 | JavaScript | jiahao00/wod_day_2 | fd2cd1a0f0d487271d22a9856a89a4e645d14dc0 | 2cddc9d072a0d337691224c6a77b77eb700a08aa |
refs/heads/master | <repo_name>Prachiagarwal5678/game<file_sep>/game.js
//alert("hi");
var colours= ["red","blue","green","yellow"];
var pattern=[];
var userpattern=[];
var level=0;
function animate(randomchoose)
{
$("#"+randomchoose).fadeIn(100).fadeOut(100).fadeIn(100);
}
function play(randomchoose)
{
var audio=new Audi... | 0313a33118ea22bfc46dfdb2852057645a1404e7 | [
"JavaScript"
] | 1 | JavaScript | Prachiagarwal5678/game | 686d5f3becd5846fa697fa15d883b9f79fc0d3d0 | 6724069e65544f07d7143529fa968767d7024fa4 |
refs/heads/master | <file_sep>#include<iostream>
using namespace std;
void arrange(int arr[] , int size1){
int j=0;
for(int i=0;i<size1;i++){
if(arr[i]<0){
if(i != j){
// cout <<"value of i "<< i<<'\n';
// cout <<"value of j "<< j<<'\n';
swap(arr[i],arr[j]);
... | f5d3c735e252a5841b06e78bbc011318034ab7de | [
"C++"
] | 6 | C++ | Omkar-Najan/DSA_Questions | c229904f3f1e3b9b0eb30205315d495b5bf0b89f | 63f39cf4e2a5a55098536d71467a9fbfd1cf39ad |
refs/heads/master | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@1,800&display=swap"
rel="stylesheet">
<script src="https://kit.fontawesome.c... | 7d0b50e53d2d101920dd8ef89893337bebf3c531 | [
"Markdown",
"SQL",
"PHP"
] | 4 | PHP | Meghana1409/project | c21e3b76d3afed47cb2243837b50956fff0d0504 | 1a9adad92bbe68abbb730d57b0da83b13c14fd52 |
refs/heads/main | <repo_name>tatjama/ignite<file_sep>/src/components/Game.js
import React from 'react';
//Styled and Animation
import styled from 'styled-components';
import {motion} from 'framer-motion';
//Redux
import {useDispatch} from 'react-redux';
import {loadDetail} from '../actions/detailAction';
const Game = ({name, released, ... | 0bf22e76d2ee4d32e2041ff5e04413f1cb1a8d63 | [
"JavaScript"
] | 2 | JavaScript | tatjama/ignite | edfd4a01d98afe1fb670dbc64f6819a2616b9f03 | ff5f1585e4e286cf765b3d4e831a3a19533a17b9 |
refs/heads/master | <repo_name>Shahadeochavan/MYAPPLICATION<file_sep>/app/src/main/java/com/nextech/myschool/login/Login.java
package com.nextech.myschool.login;
import android.content.res.Configuration;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
impo... | fba084fd46fb1bc72b7ca7da8f928da45e5f919a | [
"Java"
] | 4 | Java | Shahadeochavan/MYAPPLICATION | 8b4c90e19327153e0ce206db9a0edda5ff7ea188 | 6192c5d42c7da2ed1389ab6a6172b9e53f606b22 |
refs/heads/master | <repo_name>Sameer-H-S/Projects<file_sep>/BrickHunt.c
#include<iostream>
#include<stdlib.h>
#include<time.h>
#include<string.h>
#include<GL/glut.h>
#include<windows.h>
using namespace std;
const int brickcount = 10;
float brickx[brickcount], bricky[brickcount], brickxdir[brickcount], brickydir[brickcount];
bool brick... | 7a0fd7378d6a1398ede0969254e69b9b3a83aebe | [
"C"
] | 1 | C | Sameer-H-S/Projects | b402b7b31726d4d00fedbb4061d784625d8d5707 | 7b1f60ba95a3304f92dc84e0ef795e0bfdfddc00 |
refs/heads/master | <repo_name>shunneng/tidb-ansible<file_sep>/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Ever... | 434371c98b066afde1adea5d7f1ee02725d254d1 | [
"Ruby"
] | 1 | Ruby | shunneng/tidb-ansible | d44cc8cd1662b54d379c0fb360378b3771df0494 | 7f9e8d72c8d938bc5f0d6c1a80571b677c4a46f0 |
refs/heads/master | <repo_name>Zeneo/nfq_grafiti<file_sep>/app/View/AdminCommon/admin_edit.ctp
<?php echo $this->element('admin/page_name'); ?>
<?php echo $this->element('admin/actions'); ?>
<div class='admin-form'>
<?php echo $this->Form->create(null, array('type' => 'file')); ?>
<?php echo $this->Form->inputs(array_merge($fields, a... | 1f7c269d1558ff9e1d8f331b356f6fe984d52846 | [
"SQL",
"PHP"
] | 25 | PHP | Zeneo/nfq_grafiti | a37b459bf67abfa08f4f850d036d0afddf364cab | 44097f4405ac0586dc49b8f7e5981a910650f943 |
refs/heads/master | <file_sep>package war;
public class WarCli {
protected String result = "";
WarCli(int[] soldierEnergy, int[] terroristStrength){
for(int soldier=1; soldier<soldierEnergy.length; soldier++){
for(int terrorist=1; terrorist<terroristStrength.length; terrorist++){
if(soldierEnergy[soldier] < terroristStrengt... | cfe8ae02a4b2da774b842e98c8aec855427b8e40 | [
"Java"
] | 1 | Java | prabhatghimire/war | a8cee317d707ee5d971b6d4510c8b323dd165d8b | fecf44230e6f1c069203dda66eb0841627b5cece |
refs/heads/master | <file_sep>package au.com.totp.example.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.a... | 75180ebb5946ebf57b670f0f5412f4f65bd12684 | [
"Markdown",
"Java"
] | 3 | Java | ecoeppasa/TOTP-spring-example | 52e87f6becfb7e3b633fdc504b5a91738c79c830 | a4a0e18f68e60d70d6f4b17d41903e6741cfcf28 |
refs/heads/master | <repo_name>Apoorva1217/Flip_Coin_Combination<file_sep>/README.md
# Flip_Coin_Combination
This problem displays Winning Percentage of Head or Tail Combination in a Singlet, Doublet and Triplet.
<file_sep>/Flip_Coin_Combination.sh
#!/bin/bash -x
r=$((RANDOM%2))
if [ $r -eq 1 ]
then
echo "Head"
else
echo ... | abcbcd30ceb932a0499b30fb9470dd524bc5a04c | [
"Markdown",
"Shell"
] | 2 | Markdown | Apoorva1217/Flip_Coin_Combination | 5090be5df533ba677147a1371320ae1682a37b21 | 3304935753aa3d57c38f88fff9515fc4478acf66 |
refs/heads/master | <file_sep># position.py
from datetime import datetime, time
import numpy as np
import pandas as pd
import Quandl
# import os
import matplotlib.pyplot as plt
import seaborn
QUANDL_AUTH = '<KEY>'
class Position():
def __init__(self, symbol, date, units, unit_price, fee=9.99, comp = 'SP500'):
self.__name__ = 'symb... | ec4b3b790e0418c1921fc4d59e6192f5df47d5bd | [
"Python"
] | 2 | Python | caldwellshane/portfolio | 80e59733c41291069fc1b6498df4d83cf8e25958 | 623f084c7152d569ceaeafb131309230b4b43740 |
refs/heads/master | <repo_name>mateuszrozalski/konplan<file_sep>/docs/js/main.js
var burger = document.querySelector('.burger');
var menu = document.querySelector('.navbar-menu')
burger.addEventListener('click', function() {
burger.classList.toggle('is-active')
menu.classList.toggle('is-active')
});
let content = document.queryS... | fa957d2346868d0d1997998425be9a97ea0f07c0 | [
"JavaScript"
] | 2 | JavaScript | mateuszrozalski/konplan | 7d9e5756e0058f4ef9e538682f5154629c218581 | f7c9805613f7a8e7f44667791693f4cb1b85d44e |
refs/heads/master | <file_sep>def reverse_each_word(string)
string.reverse!
array = [string.split(" ")]
reversed_array =[]
array.each do |n|
reversed_array.push(n.reverse)
end
return reversed_array.join(" ")
end
def reverse_each_word(string)
string.reverse!
array = [string.split(" ")]
reversed_array =[]
array... | 97cfaf2a719b31c7f2f3a2e2a3a06f053fdbe1ce | [
"Ruby"
] | 1 | Ruby | kmarks2013/ruby-enumerables-reverse-each-word-lab-dumbo-web-080519 | 183e94847e8e32090c379f71bcf8f13d539ecdff | 18a9368ae45a2aaaaa552853c2be925dfafb0f19 |
refs/heads/master | <file_sep>// pages/bind_tel/bind_tel.js
import {
extendObj, is_empty, is_number, doPost, showToast
} from "../../utils/util.js"
const config = require("../../config.js")
const app = getApp()
var commonMixin = require('../../utils/commonMixin.js')
Page({
/**
* 页面的初始数据
*/
data: {
is_ok:true,
code:'',... | c2efcb3195db1804fd3159dc94c8c8b7ee8d71f9 | [
"JavaScript"
] | 23 | JavaScript | zly1988203/family-tree | e6870fdce7935296f701b1499e6ff885421e6108 | c82f8c61fb0db84b8709814beebbfe24464bb438 |
refs/heads/master | <repo_name>jeremielodi/python_mysql<file_sep>/db/database.py
import os
import uuid
from db.query_result import QueryResult
db_type = os.getenv('DB_TYPE')
if db_type == 'postgres':
from db.pg import Database as DB
elif db_type == 'mysql':
from db.mysql import Database as DB
else :
raise ValueError('Invalid... | 833b4f82d253c6d42019eaa9a23ba10f81c4074d | [
"SQL",
"Python"
] | 15 | Python | jeremielodi/python_mysql | 161774e26c29f7475508cbc3ddd0e69460340788 | ba5b57a54b32eb4314d486d4c16ec5a882a52217 |
refs/heads/master | <file_sep>#ifndef USERPASSWORD_H
#define USERPASSWORD_H
#include <QWidget>
#include <QDebug>
#include <QtSql/QSqlTableModel>
#include <QtSql/QSqlRecord>
#include <QTime>
#include <QMessageBox>
namespace Ui {
class UserPassWord;
}
class UserPassWord : public QWidget
{
Q_OBJECT
public:
explicit UserPassWord(QW... | aaeb00e17fcf6c90381cb5969fd60050e734c162 | [
"C",
"C++"
] | 32 | C++ | fycookie/PD | d11276ec6ac5f26e9bb4deb4a5befe618f9c68e4 | 79cca3f50bdbeb062fdf4051c2aa398040feacfc |
refs/heads/master | <repo_name>monostere0/Ti.MVC.NET<file_sep>/MVC/Views/iOS/Home/Index.js
function Index() {
var txtName = UI.Element('textField')
.attr({ borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
color: '#336699',
top: 60,
left: 10,
width: 300,
... | 5fa21a96b1a216654eecce5e3733875f36ee38b7 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | monostere0/Ti.MVC.NET | 71d28d060017ee0256b31c0cb519152d57d0a6ae | 5cfe48506473a2d85c3845e5df18044556bd0184 |
refs/heads/master | <repo_name>kraumar/bookex1<file_sep>/app/src/main/java/com/kraumar/bookex1/EmailLoginActivity.java
package com.kraumar.bookex1;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Vie... | 9e64cf9026d8eb7ed47d337347ef0776887e8a06 | [
"Java"
] | 2 | Java | kraumar/bookex1 | c6926d68dc6aa4d21ba7797159bc95d893b9d7e8 | e2441df99d6a9e1c5050822be3f56ac344607737 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Tue Jan 28 13:37:10 2020
@author: <NAME>
""
# -*- coding: utf-8 -*-
"""
import pandas as pd
import csv
tokenized_word=[]
raw_data = pd.read_csv('dataset_labelled.csv')
#print(raw_data)
clas = raw_data["class"]
tweet = raw_data["tweet"]
hat... | cb8867808a7ca3abc6ce42739ffbb2e9518110c6 | [
"Python"
] | 4 | Python | isham-mohamed/sidhu | 8f3084ce3eadb76debab5b6d669c67f292bacb45 | 9696e6a48c24649cf70179bded25b3f6e721bb23 |
refs/heads/master | <repo_name>PyroTechniac/Evlyn<file_sep>/src/ipcMonitors/statistics.ts
import { ClientStatistics } from '../lib/EvlynClient';
import { IPCMonitor } from '../lib/structures/IPCMonitor';
export default class extends IPCMonitor {
public run(): Record<string, ClientStatistics[][]> {
return this.client.statistics;
}
}... | 6884bdc4d80ccf42781280faaf75a9fd24d35dc8 | [
"TypeScript"
] | 9 | TypeScript | PyroTechniac/Evlyn | 2d6d7c8a0d46fbbadb901c3dded66b92f54e9d27 | 24011063ba54f653ebd13745a320fafd4eb9b05c |
refs/heads/master | <file_sep>import { Comment } from '@/comment/domain/Comment';
import { CommentId } from '@/comment/domain/CommentId';
import { CommentRepository } from '@/comment/domain/CommentRepository';
import { CommentCollection } from '@/comment/infrastructure/CommentCollection';
import { CommentIdProvider } from '@/comment/infra... | 98b19a745cdedaecfa3fd6a7ac0f82e14d8a19c7 | [
"Markdown",
"TypeScript",
"YAML",
"Shell"
] | 95 | TypeScript | Ankrat/node-api-boilerplate | 7e6ae0e968e032b92baf262622d6075260332b28 | cf01726b9645010a695ee1cf533fa9dfc2b2798a |
refs/heads/master | <repo_name>J-Aguirre/CCR_ProtocolGraph<file_sep>/server.h
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <iostream>
#include <algorithm>
#include <sstream>
#include <thread>
#include <m... | 199674ee4546297e8eea5fc2cb862565ceca8a8d | [
"SQL",
"Python",
"C++"
] | 8 | C++ | J-Aguirre/CCR_ProtocolGraph | 9cef3e3ceac2fa91325d54bc6234cbcb5b91f58d | d53c0a58bd6cea59cf64861a86b17e3c947f8c35 |
refs/heads/master | <file_sep>package com.company;
import java.util.Collection;
public class Array_SwapElements {
public static void main(String[] args) {
// - Create an array variable named `orders`
// with the following content: `["first", "second", "third"]`
// - Swap the first and the third element of `orders`
String... | c945a6dd5adcb6f6b3528ce243d770af66136888 | [
"Markdown",
"Java"
] | 14 | Java | Bero-nick/bero-nick | 6a27cc2e9d32c59ea7434401c4e5ca4592ee8f7d | 02174360e330940a4789fa50662b4c58a67a047a |
refs/heads/master | <file_sep>version: "2.3"
networks:
default:
external:
name: ros-network
volumes:
workspace:
services:
deepstack:
image: deepquestai/deepstack${TAG}
container_name: deepstack
init: true
restart: unless-stopped
privileged: true
devices:
- "/dev:/dev"
v... | 9a33f843a2d5c5a1d0470dcf6629c176146f0a52 | [
"Markdown",
"Python",
"YAML"
] | 3 | YAML | wn1980/docker-deepstack | 6501390ad205d4f209c91aa32a006763205728cc | ad3807e09fe701b0c4eeae32d9962f701f31b454 |
refs/heads/master | <file_sep>//
// Team.swift
import Foundation
class Team: NSObject, NSCoding {
let id: String
let name: String
static let teamIdKey = "TeamIdentifierString"
static let teamNameKey = "TeamNameString"
init (id: String, name: String){
self.id = id
self.name = name
}
... | 42927d5761973331a03fb118e4ceb8f9ed25d8cd | [
"Swift"
] | 14 | Swift | JohannMG/SlackStatusApp | 9e221b9b236b48b62af34811b48f45e3e3abc1b5 | 1bfa3e647d6edb2e9c6c84be8110d18ab9d15ec4 |
refs/heads/master | <file_sep>#define motionSensor 2//Use pin 2 to receive the signal from the motion
#define lightSensor A0// Use analog pin 0 to recive signal from light sensor
#define LED 13// LED light output
void setup()
{
pinsInit();
}
void loop()
{
if(isMotionDetected() && !isLightDetected())//if the sensor detects movement a... | 9585c7575e75044adfe9cc51d44d35aa3a68e270 | [
"C++"
] | 1 | C++ | pisu86/Arduino-motion-and-light-sensitive-LED | 6dd1dc836e6dd0e81695152ded55f029309adfbf | f510b7fb5c29becbfb7a75c0546821554a2d8dd6 |
refs/heads/master | <file_sep>package com.externalwebapi.jonsmiley.controller.Authentication;
import org.jose4j.jwa.AlgorithmConstraints;
import org.jose4j.jws.AlgorithmIdentifiers;
import org.jose4j.jws.JsonWebSignature;
import org.jose4j.keys.HmacKey;
import org.json.JSONObject;
import java.text.SimpleDateFormat;
import java.util.Date;... | 32b209ec99f64d2c8ba885499a2645560e317997 | [
"Markdown",
"Java"
] | 2 | Java | jon-smiley/externalWebApi | 0d511c4c4052395dd554aab29e038cf6946f2635 | a09662915407566bb89e7ef2450926fd7300d997 |
refs/heads/master | <repo_name>ken2190/CryptoArbitrage<file_sep>/src/test/java/BenTrapani/CryptoArbitrage/OrderBookAnalyzerTest.java
package BenTrapani.CryptoArbitrage;
import static org.junit.Assert.*;
import java.util.Arrays;
import java.util.HashSet;
import BenTrapani.CryptoArbitrage.OrderBookAnalyzer;
import BenTrapani.CryptoArbitra... | 702e0bf2f5e3519875ca9f8df4d867fe18502508 | [
"Markdown",
"Java",
"Maven POM"
] | 10 | Java | ken2190/CryptoArbitrage | 91b16342b444b5f210d2da3b39d8529367c1694e | 50b9c583c0ccf7c05730f3c2fb8d49d9cc03ce6b |
refs/heads/master | <repo_name>nearih/expense-bot<file_sep>/go.mod
module expense-bot
go 1.12
require (
github.com/line/line-bot-sdk-go v6.3.0+incompatible
github.com/spf13/viper v1.4.0
github.com/stretchr/testify v1.4.0 // indirect
golang.org/x/net v0.0.0-20191011234655-491137f69257
golang.org/x/sys v0.0.0-20190813064441-fde4db37a... | b6befb7b1c55079c605f1097e6d054857b5c24db | [
"Go",
"Go Module",
"Dockerfile"
] | 4 | Go Module | nearih/expense-bot | 6ddf30b8964b33ba03672f4ee9f8194f24222004 | 3fe217a7e0ec181ecf69a592e8fa68f4ddaa59fc |
refs/heads/main | <file_sep><?php
session_start();
require_once 'model/functions.php';
if (isset($_POST['new_field'])) { // if field 1 is created
add_field_1(); // add field 1
$ships = check_ships(); // check ships and get them
}
echo "<pre>";
var_dump($ships);
echo "</pre>";
require_once 'view/header.php';
/* add new field 1 */... | 3f82679453fdcb4c8a274aed9ff611a1990d5691 | [
"PHP"
] | 2 | PHP | Exisart/sea | 53dbbaade17bb93389d63ceb82c198997f47cd1d | fda1f7e1b9b9a6a907e5cd7b4205a6e228bddfa7 |
refs/heads/master | <repo_name>papswell/ObservableLists<file_sep>/app/src/main/java/pierre/guillaume/me/observablelists/UserList/UserListAdapter.java
package pierre.guillaume.me.observablelists.UserList;
import android.support.v7.widget.RecyclerView;
import java.util.List;
import pierre.guillaume.me.observablelists.Model.User;
/**
* ... | 56abc469e10ad56518c3d2030e1f25e880e20140 | [
"Java"
] | 9 | Java | papswell/ObservableLists | 4f67a6d9d43bd0ff6e2ed1245d6fb3a6d778c38a | 70b01d5653e059e1ef0cec52e450deb85a625a6c |
refs/heads/master | <file_sep><?php
$dir = "./videos/"; // diretório para o arquivo
$dirFinal = "./videos/convert/"; // diretório para arquivos convertidos
$file = "arquivo.rmvb" // nome do arquivo
$fileName = explode(".", $file); // fileName[0] recebe nome do arquivo e fileName[1] recebe a extensão
if(! is_dir($dirFinal)){ // se... | d90b77fcc9441f326c4b1e0b0600ce3449a8d741 | [
"Markdown",
"PHP"
] | 2 | PHP | pristavu/php-converter-ffmpeg | 89a71e6adaaf5ebda6a5e689e7cacfe0648f21ca | 91e43334a93f1bda8c5b91f3f6a8a9a5f979f0af |
refs/heads/master | <repo_name>KamalMajaiti/WebRCE<file_sep>/WebRCE.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Libs
import pycurl
from io import BytesIO
print ('################################################################')
print ('# Welcome to WebRCE Alpha release.')
print ('# Utility to get remote shell from PHP Command Ex... | 53903fbc9f520efdbe19bed417058e2e63b1b86e | [
"Python"
] | 1 | Python | KamalMajaiti/WebRCE | 1af6a12cd1548167904bb8878d72f289e1854c13 | b0c8b1a64286ed91f585e532ddde6cafa5a5381c |
refs/heads/master | <repo_name>sergiosegovia/posts-api<file_sep>/controllers/posts.controller.js
'use strict'
var Post = require('../models/post');
function getPost (req, res) {
var postId = req.params.id;
Post.findById(postId, (err, post) => {
if(err) {
if(!post) {
res.status(404).send({message: "Post " + postId ... | 5b378bf0888b23d7b62d3a3d07de923cecadc0d8 | [
"JavaScript"
] | 3 | JavaScript | sergiosegovia/posts-api | a3f3903bd5c87971b47d1effb73ee4530a8f3211 | 7b8a6e965837ee1ae1efb73041b93160ab82385c |
refs/heads/master | <file_sep>from dc.utils import get_pubmed_ids_from_phenotypes, get_pubmed_ids_from_rsids, get_rsids_from_pubmed_id
import xml.etree.ElementTree as ET
import argparse
from glob import glob
from os.path import dirname, abspath, join
PROJECT_ROOT = dirname(abspath(__file__))
# parser for handling command line arguments
... | 57d6c3035260685e9222c464bc3d58ae875924ed | [
"Markdown",
"Python",
"Text"
] | 12 | Python | NCBI-Hackathons/DiseaseClusters | 1d5478500dffea973f96affd969783278193aa8a | 7e3b891f3790b5bcfaed0e35534299b5d039fede |
refs/heads/master | <repo_name>leima965/myawsbot<file_sep>/README.md
# hubot-mybot
A hubot script that does the things
See [`src/mybot.coffee`](src/mybot.coffee) for full documentation.
## Installation
In hubot project repo, run:
`npm install hubot-mybot --save`
Then add **hubot-mybot** to your `external-scripts.json`:
```json
[
... | 1f0c27cf9d53f79fd42d684771a85b2dab53036e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | leima965/myawsbot | 48e6745a3bcd7c153805b1cfd5e30b33695b7094 | 49624027da3ff73a9edd0bee32dbff45ebb1f543 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.