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>
/**
* @file Controller.h
*/
/**********************************************************************
Created: 11 Nov 2005
Copyright (C) 2005 <NAME>, <NAME>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:... | 7fbdae313fb598ec27c5516d959dcec6a7e387cb | [
"C",
"Python",
"Makefile",
"C++"
] | 70 | C++ | Leviatus21/pspstacklesspython | f046e537401abbc3545fd71ff83c6ddad8ec41fa | 2f5b9a1425ff8b9c4419d427bd9de028bf4d3e8c |
refs/heads/master | <repo_name>mariakryvokin/java_ee<file_sep>/src/truelecter/practice3/TextEditor.java
package truelecter.practice3;
import javax.xml.soap.Text;
import java.util.List;
/**
* Created by TrueLecter on 01.02.2017.
*/
public class TextEditor {
private SpellChecker spellChecker;
private List<SpellChecker> availabl... | 1a5a9f71266a5d73f567fc824303e17533d38f77 | [
"Java"
] | 1 | Java | mariakryvokin/java_ee | fc9a2b5b9e64d6fbea18d3544a1e3aa7e8343810 | 7614e7df8281c141184ab9da3f0ad209a523ff18 |
refs/heads/master | <repo_name>xucoud/Myblog<file_sep>/src/main/java/com/xwj/blog/service/impl/UserServiceImpl.java
package com.xwj.blog.service.impl;
import com.xwj.blog.dao.UserDao;
import com.xwj.blog.entity.User;
import com.xwj.blog.service.UserService;
import com.xwj.blog.util.MD5Util;
import org.springframework.beans.factory.annota... | 9bc011f8ea27a607e1602d8e84586323c09423ff | [
"Java"
] | 4 | Java | xucoud/Myblog | ccbe07f9eb5007c2eef12e6f1daa205c16287f65 | 3347a189e71aa84a14694dd682c9bcc06d09e0d6 |
refs/heads/main | <repo_name>snehlvarma/Facebook-clone-using-firebase<file_sep>/Story.js
import { Avatar } from '@material-ui/core';
import React from 'react';
import "./Story.css";
import harsh from "./harsh.JPG";
import anshul from "./anshul.JPG";
import raj from "./raj.JPG";
import gogo from "./gogo.JPG";
import snehil from ".... | 25a227b6a01e1145cc6032975d8a9617eceb4e83 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | snehlvarma/Facebook-clone-using-firebase | 1f2cd1cd8e6f08d3f00da6787a88153bbbe55d4f | 56df2886f8ecbc0292a46670fb9300447f2601a5 |
refs/heads/master | <file_sep>//
// main.c
// Week_6
//
// Created by 陈源珊 on 2020/3/22.
// Copyright © 2020 陈源珊. All rights reserved.
//
#include<stdio.h>
#include<math.h>
#include<time.h>
void Fun6_1(void);
void Fun6_2(void);
void Fun6_3(void);
void Fun6_4(void);
int dayThisYear(int year, int month);
int main() {
int c;
whil... | f99f9193a6aa8f9ac12e4586a484729662312b16 | [
"C"
] | 8 | C | L-cys/C-for-programming | 92abfa6bb55f5450c0f1826860709f4a6e1a4d85 | 95d40997a710ff1f8c3b70466585764c548a37fb |
refs/heads/master | <file_sep>import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def compare_plot(df, df_train, df_test, pred_train=None, pred_test=None):
fig, ax = plt.subplots(nrows=1, ncols=3, figsize=(9,4))
ax[0].plot(df_train['Hbf.m'], pred_train[:,1], 'o', alpha=0.2)
ax[0].plot(df_test['Hbf.m'], pred... | 8f3f45cc239279cb6397aba696c1e06fdcb9a32a | [
"Python"
] | 2 | Python | whigg/channel_geom_nn | a871c9ca09c6181748a12e7aea7bbff8037e495e | d1da45c66cfd701a355d7c9b7f6808fce2b38a9a |
refs/heads/master | <file_sep>'use strict';
/**
* @ngdoc overview
* @name angularappApp
* @description
* # angularappApp
*
* Main module of the application.
*/
angular
.module('angularappApp', [
'ngAnimate',
'ngAria',
'ngCookies',
'ngMessages',
'ngResource',
'ngRoute',
'n... | 42be306040ea74276176c2f905ca7823efb8c65b | [
"JavaScript"
] | 3 | JavaScript | shilpa11/shilpa11.github.io | 40ff869682d8495ec348d6fb8a9585062a8384d6 | 48b91693ec08470e683cde1b9b2774c46ef7efcf |
refs/heads/master | <repo_name>Jimmy-INL/jp_doodle<file_sep>/jp_doodle/nd_frame.py
"""
Python wrapper and related helpers for nd_frame functionality using proxy widgets.
"""
from jp_doodle import doodle_files, dual_canvas
import jp_proxy_widget
import csv
from IPython.display import display, HTML
from jp_doodle.dual_canvas import clean_d... | 1cb69133af477724d4331ad6ebda120bd5715946 | [
"Python"
] | 1 | Python | Jimmy-INL/jp_doodle | ae58e3f27c550850001ee7931e42ed95712041b8 | 16007a35e463bce06ec315e487893ae51e4fe99d |
refs/heads/master | <repo_name>codio-content/Javascript_Maze-Logical_thinking_decompositions_and_algorithms_-functions<file_sep>/.guides/content/Creating-a-function-68f5.md
## Defining our function
To define a function called `initialise()`, we simply create the following
```javascript
function initialise() {
instructions
within
t... | 455368e0039f177c4331a7c9a57af747b4cdf5b0 | [
"Markdown",
"JavaScript"
] | 9 | Markdown | codio-content/Javascript_Maze-Logical_thinking_decompositions_and_algorithms_-functions | 95725d34b1e0340b10a2dd97678614653baf7a2f | b59c0b070cdc941c545c681841ff31f81bdb3654 |
refs/heads/master | <file_sep>//
// ASTNode.swift
// mtlswift
//
// Created by <NAME> on 08/01/2019.
//
import Foundation
public class ASTNode {
public enum Errors: Error {
case parsingError
}
public weak var parent: ASTNode?
public var children: [ASTNode] = []
public var contentType: Conten... | 80ca525080ad7f1a16c2c32d0e3c81280f7b1e02 | [
"Swift",
"Markdown"
] | 5 | Swift | ctreffs/mtlswift | 091e4fb8f70ec533a2b29395754d10778527bbab | 5ec1e480215d343a1610ee1123ceacd98349a483 |
refs/heads/master | <repo_name>mattflo/data-engineering<file_sep>/salesdata/app/controllers/imports_controller.rb
class ImportsController < ApplicationController
before_action :set_import, only: [:show, :edit, :update, :destroy]
# GET /imports
# GET /imports.json
def index
@imports = Import.all
end
# GET /imports/1
# G... | 829044b2e6ef043236d0be6e118f282e6b102ea4 | [
"Markdown",
"Ruby"
] | 5 | Ruby | mattflo/data-engineering | 75010bd20f3ad48a354094826cce60f6ddbe5e1d | dbaa12ca6153c921a93c3c2f52bb82caecb10be7 |
refs/heads/master | <file_sep>import Vue from 'vue'
import Vuex from "vuex"
import App from './App'
Vue.use(Vuex)
import store from "./store"
Vue.prototype.$store = store;
import api from "static/data/api.js"
Vue.prototype.get = (url,params)=> api.reqest("GET",url,params);
Vue.prototype.post = (url,params)=> api.request("POST",url,param... | 1e39dd07965879febfaf1d76439bd954ac7c4156 | [
"JavaScript"
] | 2 | JavaScript | yeyuluoxi/music | eb8c111cebde50269c2293cbc2bb3154f4101a54 | 71107462ede7fa6c3d43794e5bb37a4964cf0088 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
namespace My_Contact_Book.Converters
{
///*** ALL CONVERTERS IN ONE FILE ***///
... | cf191ff2fa3e47ac534d938ea4370b36f5eb0a69 | [
"C#"
] | 8 | C# | Asisvenia/C-Sharp-WPF-Contact-Book-Desktop-App | 21477a01d0a6b287f78865bed69023c26f0a839c | fcc742e047af770e74985a38645a04befd8c3cd8 |
refs/heads/master | <file_sep>package com.untapt.nasa;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author timonsafaie
*
*/
public class RoversControllerTest {
private RoversController rc;
@Befo... | 46f404535782b9d8a96c384134c81d35eb6cb9d9 | [
"Markdown",
"Java"
] | 3 | Java | timonsafaie/Rovers | 44db0118a1cc3600f0fd1e98b4a798fe56eb504f | 2cca445abffd05ccc29eb9cdc4f5d71ca8c5bd71 |
refs/heads/master | <file_sep>#!/bin/bash
# create multiresolution windows icon
ICON_DST=../../src/qt/res/icons/BitCoin.ico
convert ../../src/qt/res/icons/BitCoin-16.png ../../src/qt/res/icons/a3coin-32.png ../../src/qt/res/icons/a3coin-48.png ${ICON_DST}
<file_sep>About the A3coin:
This is a real value crypto currency, and it is for ev... | 00ff869f89c85db75b09f4e386f1b0faa47fcd3d | [
"Markdown",
"Shell"
] | 2 | Shell | aspnmy/A3Coin | 683043053d15c73eac4546ecc68af4b9f5dd3ef7 | cdacaf85154110cce8567e255cd33fba560f0763 |
refs/heads/master | <repo_name>o0nix/LionHead<file_sep>/LionHead.WebAPI/Controllers/ChestController.cs
using LionHead.Core.Entities;
using LionHead.Core.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
namespace LionHead.WebAP... | c05c68f9ce5cb92b11379d463eefd953e8440bd2 | [
"C#",
"Text"
] | 12 | C# | o0nix/LionHead | d5d12c05886f3049603a3db7868854c8dcdeb570 | c27718e34ac0fbb91f4c1be70f37edc526861074 |
refs/heads/master | <file_sep>const requestsURL = require("./requestsURL.js");
const services = require("../config/services.json");
const Jsonix = require("jsonix").Jsonix;
const errorhandling = require("../general/errorhandling.js");
// let and not const so it can be cleared by cache = []
let cache = [];
let requestURLs = [];
// Statu... | dca779dba3392f42dfa67fbb6627c9ae0a7211e1 | [
"JavaScript",
"Text",
"Markdown"
] | 15 | JavaScript | 52North/geocure | b2361de0722a32b16064e3524c59a87b366c41c1 | fb4e9df1fc29492607837a8403a505e77a8176bd |
refs/heads/master | <file_sep>package dao;
import java.sql.*;
import javax.security.auth.login.CredentialExpiredException;
import bean.ConnectionProvider;
import bean.UserBean;
/**
* @author Sachin
*
*/
public class PrivilegedUser {
ConnectionProvider provider = new ConnectionProvider();
Connection con=provider.getCon();
ResultSet... | 01177bd22bb9115bcf2a90a019d5161531e54fea | [
"Markdown",
"Java"
] | 6 | Java | interactSachin/damnVulnerableApp | f477254d639772355a95bec0333d2e403da36eb8 | 04c66977faec82cfed1f41aa5e4d4dbd12215da2 |
refs/heads/master | <file_sep>import { ADDCOUNT, ADDTOCART} from './mutations-type'
export default {
[ADDCOUNT](state, payload) {
payload.count += 1
},
[ADDTOCART](state, payload) {
payload.checked = true
state.cartList.push(payload)
}
}<file_sep>export const ADDCOUNT = 'addCount'
export const ADDTOCART = '... | fb63aa047e0ff0da34b8a8f98829f0fb8bc9e9bc | [
"JavaScript"
] | 3 | JavaScript | LANTYF/pro1 | c7cbb8a46bc47ef6068f0b3ee5642c1e761bdebd | 44b694ca1c0965d8e5ebd31ad173197d864ea741 |
refs/heads/main | <repo_name>pntn-junior/jornada-vida-abundante-2021<file_sep>/README.md
# jornada-vida-abundante-2021
<file_sep>/js/parmstoform.js
interval = null;
function findGetParameter(parameterName) {
var result = "",tmp = [];
var items = location.search.substr(1).split("&");
for (var index = 0; index < items.length; ... | 9915ca79ce5ad2884ca9257dccb7d68df8c080aa | [
"Markdown",
"JavaScript"
] | 2 | Markdown | pntn-junior/jornada-vida-abundante-2021 | 15927eaf722c86e76ef76dd0732f147a78feabe4 | 4eb3af5ad3d5206574985aa0e3413e360ab72917 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import Connection.DatabaseConnection;
import Decorator.CikolataSos;
import Decorator.Cikolatali;
import Decorator.Cilekli;
im... | ba2d3856d8c8d894bf879cfe9180b9962b56de1f | [
"Java"
] | 11 | Java | haticekaracay/FastRest | 7304ae5da950a4fe80ef4efe049bdff6113d34ad | 1d6f5aec8443c532432c10c1228877e7b04cbf2f |
refs/heads/master | <repo_name>upekshapriya/WordPress-Skeleton<file_sep>/wp-config.php
<?php
// ===================================================
// Load database info and local development parameters
// ===================================================
if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) {
define( 'WP_LOC... | 078c5990352aba45aeecef4490ffc8a5f6e5c708 | [
"PHP"
] | 1 | PHP | upekshapriya/WordPress-Skeleton | ea2dcf6740022bdbcab13aadefd14a2a59fa0dd6 | 0438f6c1b90c41132e1d63f348837a70b499ccee |
refs/heads/master | <file_sep>const mapStateToProps = (state) => {
return {
title: state.reducerBlogPost.title,
body: state.reducerBlogPost.body,
author: state.reducerBlogPost.author,
posts: state.reducerBlog.posts
}
}
export default mapStateToProps;<file_sep>import {createStore, combineReducers} from 'redux';
const ... | dcbe6cf46434929b3cd39c05c45a313a689fc320 | [
"JavaScript"
] | 2 | JavaScript | Mark-Cooper-Janssen-Vooles/blog-app | bfe11207802bad1c2ef9f753df1b4c80f88f2743 | a38c2b0084df5abc1b64e9de956850bec94c72f4 |
refs/heads/main | <repo_name>JosephFrancisDS/Final-Project-Group-3<file_sep>/Code/gan_augmentation/code/gan.py
import os
import matplotlib.pyplot as plt
import numpy as np
import cv2
from keras.layers import (BatchNormalization, Conv2D, Conv2DTranspose, Dense,
Dropout, Flatten, Input, Reshape, UpSampling2D,
... | 33cdc89d1c6277e24f6405612b6d757bdc78ac73 | [
"Markdown",
"Python"
] | 9 | Python | JosephFrancisDS/Final-Project-Group-3 | bc1f73ed0727b99a439594bde8b4bd7e1a1d9ccc | 815326aba87ed995af68501edcf82cfe6a88cd6a |
refs/heads/master | <repo_name>nickbailey/ThomasArne<file_sep>/spoff.py
#!/usr/bin/python
"""A Module to Represent Musical Information based on the Spiral of Fifths
http://theses.gla.ac.uk/2133/
This module supplies the primitive functions operating on
time and pitch in Spoff format. For a full discussion of the
method chose for the re... | 424ea98ba666b3e6ece40c1d4a007b632b7c7e0f | [
"Python"
] | 2 | Python | nickbailey/ThomasArne | b77d6ce152a50c48c2a9034e0f5b99d1ee082bd5 | 5087b9d4e72b2543a836b732e0627356e09dee70 |
refs/heads/master | <repo_name>devjob2012/Java8<file_sep>/Java8DateTime/src/main/java/co/uk/deven/java8/example/DateTimeExample.java
package co.uk.deven.java8.example;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
/**
* Local Date
*
*/
public class DateTimeExample {
public static ... | 6333a23047bf83445add262339c0395285fb5145 | [
"Java"
] | 4 | Java | devjob2012/Java8 | 73d71a0c052417011c23802356f3d656d185e375 | 2b0c8958d11dae9046c0f8b70d8dc3ac681561ca |
refs/heads/master | <file_sep>
package modelo;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.GenerationType;
import javax.persistence.ManyToOne;
import javax.persis... | 42a9ded5c51594c5cdcc4e8e53c6414ef135604f | [
"Java",
"INI"
] | 7 | Java | Ismael-Jonatas/Projeto-4talk-JPA | 5c50c161c40525dccf09a2a20ec5ef8a0a56fde9 | 6ce4dc11667faf6afc6a148826975e97eb92f7de |
refs/heads/master | <file_sep>class HomeController < AuthenticatedController
def index
@pufipad = ShopifyAPI::Shop.current
end
def settings
end
def pending
@orders = ShopifyAPI::Order.find(:all, :params => {:fields => "id,name,created_at,email,financial_status,total_price", :financial_status => "pending", :limit... | bef2b8715b14fec11880026ab653b8a8d7e9f079 | [
"Ruby"
] | 3 | Ruby | luisvillasenor/ice9app02 | 424befc5fa2a4c1966fcbf0d28e271602f37334e | 4635c4f278456b652cb38772c80a0b1a80c015a4 |
refs/heads/main | <file_sep>// let a = +prompt('ВВедите число')
// switch (a){
// case 0:
// alert('Верно')
// case 1:
// alert('Верно')
// case -3:
// alert('Верно')
// default:
// alert('Неверно')
// }
//
// let a = +prompt('ВВедите число')
// switch(a > 0){
// case true:
//... | e0183dfe76bd9f5b45deaffbf95060730bd9eb5e | [
"JavaScript"
] | 1 | JavaScript | alexredk/less41 | d6faaa1de659df3e1c66fc0f0d7dd20d6ded1fa5 | c04086b040f1eaabe65157d62bb350a274ed9cea |
refs/heads/master | <repo_name>mm48910584/front-nav-web<file_sep>/README.md
# front-nav-web<file_sep>/store/index.js
// import s_user from '@/api/server_account'
export const state = () => ({
userInfo: null,
isLogin: false
})
export const getters = {
user: state => state.user
}
export const actions = {
setUserInfo({ commit }, da... | ea450c3cf505c14eed4e56aa6daf3fbec8eb9eb0 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | mm48910584/front-nav-web | fbb65e058c934c0d1c1e17ea8b108a29faa42261 | 166c44f5f1c695dcdb3164a9a31b7c013a8a3473 |
refs/heads/master | <repo_name>AnyPresence/web_service_extension<file_sep>/test/dummy/app/models/outage.rb
class Outage
include Mongoid::Document
include Mongoid::Timestamps
include AP::WebServiceExtension::WebService
field :"title", type: String
def save
super
Rails.logger.info "Sending WS request: #{self.id}"
web... | c4b8c71903025397117d9038b700202a013ebf40 | [
"RDoc",
"Ruby"
] | 22 | Ruby | AnyPresence/web_service_extension | 070cfad4ab42171e6ab2d90931533521c8fd89c1 | e495acd87ac0de74e63f06582ff69ef00213db25 |
refs/heads/master | <file_sep>import flask
import json
import subprocess
import os
import time
import threading
import signal
cdir = os.path.dirname(__file__)
try:
os.mkdir(os.path.join(cdir,"log/"))
except FileExistsError:
pass
logdir = os.path.join(cdir,"log/")
sessions = {}
def load():
f = open("data.json")
data = jso... | 09ce999ab8f0374c8303074c500644d7dbb2a2b4 | [
"Markdown",
"Python",
"Shell"
] | 9 | Python | SamHDev/blumerun | 807d712b53ef25808f68f8ef1bbdcbd71cd9ea3f | 0d1d1c2b383dcc07e2d6b8ef3d4a58262327d1e2 |
refs/heads/master | <repo_name>x0rzkov/go-index<file_sep>/searcher.go
package index
import (
"encoding/gob"
"errors"
"io"
"github.com/golangplus/strings"
)
var (
// error of invalid doc-id (out of range)
ErrInvalidDocID = errors.New("Invalid doc-ID")
)
// TokenSetSearcher can index documents, with which represented as a set of
/... | 0cc5ddb7f3ed6dc4bccb946b6997a1b22acdb670 | [
"Markdown",
"Go Module",
"Go"
] | 15 | Go | x0rzkov/go-index | 15937ed72aeba1ab01cd3069ce8e313d721706c2 | 648097676cd1d6ae73927785315ebc3a4a982da1 |
refs/heads/master | <file_sep># tiger-compiler-llvm-ocaml
A compiler for the Tiger programming language targetting LLVM and implemented in OCaml.
## How to compile (tentative)
```
$ ocamlbuild driver.byte -use-ocamlfind -package camomile -package llvm
```
<file_sep>#! /bin/sh -x
F=__stdin__
IMGVIEWER=xdg-open
if command -v which >/de... | 4f0f8f73bd879099fe7c1d5275f8aca113f97989 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 7 | Markdown | romildo/tiger-compiler-llvm-ocaml | ad6517ca5877a0efeb8f6004d13d1e8c783b6b93 | 2aa38b03d8bc45e75721c1a72ca736b03887a460 |
refs/heads/master | <repo_name>boredo-redo/reactfolio<file_sep>/src/SchoolForm.jsx
import React, { Component } from 'react';
import './project.sass';
import { Form, FormControl, Button, Checkbox} from 'react-bootstrap';
class SchooolForm extends Component{
constructor(props){
super(props);
this.state = {
n... | 7b70ebe990b3e27e63b73b3d8ca64b8baab7c660 | [
"JavaScript"
] | 6 | JavaScript | boredo-redo/reactfolio | 187954fcd158b4868079a20087deded4dc104716 | df9d53ec5f05ad425f0c18c3105b1ed0160c1f64 |
refs/heads/master | <file_sep>module.exports = function sum(...args) {
if (!args.length) {
return 0;
}
let tmp = args.reduce((sum, cur) => sum + cur, 0);
return function(...args2) {
if (!args2.length) {
return tmp;
}
let tmp2 = args2.reduce((sum, cur) => sum + cur, 0);
return sum(tmp + tmp2);
}
}
| 73c9e7ea6d2f3671db2f8753eef24b0194591daa | [
"JavaScript"
] | 1 | JavaScript | Shutya/additional_1 | bf67fb1bfaae39dd6b3604c9163894a53c9f69e1 | 6757bc9168a32d88ec3f36e9bcb8ded11bc6691b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using WarpDevelopmentTest.Models;
namespace WarpDevelopmentTest.Controllers
{
publi... | 2613275547196af2b248d016d3f98272b990c3e3 | [
"Markdown",
"C#"
] | 2 | C# | NikeshSaroop/C-MVC-SendEmail-Application | 6df797f25c492ce916a70016e1d070e7511d4e3d | 10e371bc35e0478b1d35b1e78a0146ce50bb2d6f |
refs/heads/master | <repo_name>gabemasiulis/magetozd<file_sep>/magetozd.py
# Python 2.7
import csv # we're taking a CSV input
import json # we're outputting JSON...
import requests # ... to an API endpoint
import re # we'll format phone numbers with some regex
session = requests.Session()
session.headers = {'Content-Type': 'application/j... | 3d500342b07b8cd9931987b68a93990e08094a7e | [
"Markdown",
"Python"
] | 2 | Python | gabemasiulis/magetozd | e1f03396dffc970fd34ce7e92840049fcff3e161 | 002423d98fdd423635ffbeff947b3c2c59f64a50 |
refs/heads/adb-plugin | <file_sep>---
id: arch
title: Architecture
---
import useBaseUrl from '@docusaurus/useBaseUrl';
Flipper is built to be a universal pluggable platform for development tools. Currently, Flipper focuses on Android and iOS development, but its design does not limit it to these platforms. Another way to think of Flipper i... | 774ff36fd756bc1cd62a008e2f9d883c8aad13fd | [
"Ruby",
"CMake",
"Markdown",
"JavaScript",
"TOML",
"Java",
"Rust",
"Kotlin",
"TypeScript",
"C++",
"Shell"
] | 144 | Markdown | maxim-pandra/adb-flipper-plugin | c6876de9d4de3792af716867d80e5f05dd53bad7 | e78d222cb13f5cac8578a6f34f0a2f34ddd1208c |
refs/heads/master | <file_sep><link rel="stylesheet" href="style/js.css">
<?php
if(isset($_GET[page])){
require_once'menu.php';
switch($_GET[page]){
case 'add':
require_once'model/DB.php';
require_once'model/EmployeDB.php';
$query =("SELECT COUNT(*) FROM employe");
$res=executeSQL($query);... | 4103d5459d71bdb7051ead7d525a78ae77e0ab1d | [
"PHP"
] | 7 | PHP | syakasamate/EmployeDB | 6c3069d4c4f86010e4fc642a67169aabca9f9217 | 5e9259938b6f9aba89fe46febd90ab17279f55d4 |
refs/heads/master | <file_sep>**Samples**
Run sample application on port 8081 with next endpoints:
`/commit` - returns result of `SELECT * FROM INFORMATION_SCHEMA.COLUMNS` in json, commits connection at the end.
`/rollback` - returns result of `SELECT * FROM INFORMATION_SCHEMA.COLUMNS` in json, rollbacks connection at the end.
`/query... | 5d5d1a5c2c1113db8679bdd4f5066fb53f96f3ac | [
"Markdown",
"Java",
"Kotlin"
] | 4 | Markdown | miaoyinjun/spring-boot-data-source-decorator | f5c79e4cedea6cc6c8b4f522b03f0599e8112009 | 76adb55922d490e2bb6e39233525d8fc57a2ef69 |
refs/heads/master | <repo_name>bryanrady/KtPlayAndroid<file_sep>/app/src/main/java/com/example/playandroid/MainActivity.kt
package com.example.playandroid
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
/**
* https://www.wanandroid.com/index
*/
class MainActivity : AppCompatActivity() {
override fun onCre... | 96b9b6b7555f9733b0d836290969ea6312ef4f67 | [
"Kotlin",
"Gradle"
] | 2 | Kotlin | bryanrady/KtPlayAndroid | 5682fbf5437cd02f76bd11bb6b6495c66c3cade2 | 720a9387caef84b344195531a3903920e82151fa |
refs/heads/master | <repo_name>wilkpiotr/react-local-apps<file_sep>/src/components/FilterGallery/Gallery.jsx
import React from 'react';
const Gallery = (props) => {
if (props.images.length < 1) {
return <div>
<p>No Pictures</p>
</div>
}
return <div className="container">
{props.images.map((... | 15ec3df5682fa52061dbbbfce8bd931488a32639 | [
"JavaScript"
] | 18 | JavaScript | wilkpiotr/react-local-apps | 07ae74e8d797a96a0c2b16fe0045f56cd7b843fc | 6917572eb863dd2db03b1607bb580ec74ccfba4a |
refs/heads/master | <file_sep><center><h1>A-star Search</h1></center>
CS 165A – Artificial Intelligence, Winter 2014
Machine Problem 1
by
<NAME> / <EMAIL>
(February 04, 2014)
<center><h2>General</h2></center>
### Programming Language
The application is based on Java.
### Program Execution
Within the `src` folder:
make
java... | c229b45f1cb329a2f74383e288ef7efd25ed4385 | [
"Markdown",
"Java",
"Makefile"
] | 4 | Markdown | meteabogdan/CS165A-MP1 | 5adcc04e9c20876f939ecd4d920879642db98956 | 70037080a1b9186c2b94665ff363c27572d6486b |
refs/heads/master | <file_sep>let auth0 = null;
const fetchAuthConfig = () => fetch("/auth_config.json");
const configureClient = async () => {
const response = await fetchAuthConfig();
const config = await response.json();
auth0 = await createAuth0Client({
domain: config.domain,
client_id: config.clientId
... | c1e08aa58a552f6f46d33b6c33457f7637e451c3 | [
"JavaScript"
] | 1 | JavaScript | Sleepsounder/flutterauth0demo | 18147436a2ce156b375b31efb30a7db7ff862572 | e7d8dba55f7535bedc8caaf8b3314c1a5b16af59 |
refs/heads/master | <repo_name>nour-ux/ipv4-calculator<file_sep>/IPv4-Calculator.cpp
#include <iostream>
#include <string>
#include <cmath>
#include <bits/stdc++.h>
using namespace std;
string decimalToBinary(int);
string CIDR(int);
int binaryToDecimal(string, int);
int *ip_mask_integers(string);
int *brodcastGenerater(int *, int *);
int... | 00a1cdd3cb3fa8a23a388639ef8387ce44834187 | [
"Markdown",
"C++"
] | 2 | C++ | nour-ux/ipv4-calculator | 0e7c92e7e8567fb0b06f06390bb1c6bf1df5ae5d | 87b7ac795a6d3885237471bc7971bfa4dde3d8a8 |
refs/heads/master | <file_sep>from django.shortcuts import render, redirect, get_object_or_404
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import Http404
from .forms import ProjectForm
from .models import Project
# Create your views here.
@login_required
def add_project... | 6b5cf7696e1220e53dd2e0b5fe9e6e016e6980f8 | [
"Python"
] | 2 | Python | evaldo14/bugflow-projeto | 1a63b4ec10865d19df638c72794c307a60f125ed | 7e989f4686f814d5835888d3566b71e0bd7a1a5d |
refs/heads/master | <repo_name>Tschrock/ShinoBooper<file_sep>/js/highscores.js
'use strict';
var hsHighlightId = -1;
function getHighscores() {
$.get("getHighscores.php", function (data) {
if (data.length > 0) {
// $('#HighscoresContainer td').parent().remove();
$('#HighscoresContainer').html("");
... | 78ed61da2da295e3f5c24492a34ee134784c7be1 | [
"JavaScript",
"PHP"
] | 10 | JavaScript | Tschrock/ShinoBooper | 80dd996392055acd7650936f7f8546d94012c145 | ae36d1d0c56763e62b374b57b8b704b1a336a811 |
refs/heads/master | <file_sep>from gmailsendemail import SendEmailUtility
__version__ = '1.0'
class GmailEmailLibrary(SendEmailUtility):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'<file_sep>#!/usr/bin/python
import json
import os
import argparse
msg = "This code is used to create platform regression wrapper file in robote... | 57f1618b2f79f971efcd0209f29ed3e6bb01a0d2 | [
"Python"
] | 3 | Python | Kruthika216/RF_Project | 84315e1de42a4e8874a56536f322980d1a193172 | 9aae0982ec5f0437718b7cce381d9863e45c0b9b |
refs/heads/main | <repo_name>Juhnke057/OpticalFlow-SpeedCamera<file_sep>/OpFlowApp.py
#Imort
import cv2
import numpy as np
#parametrar
feature_params = {
'maxCorners': 100,
'qualityLevel': 0.5,
'minDistance': 7
}
#Kamera/Video specs.
FPS = 30
PX_PER_CM = 370
#Applikations parametrar
REFRESH_RATE = 20
DISTANCE_... | 65652ebb2e5fa9ad1d27df6afa9e08c0e0f16114 | [
"Markdown",
"Python"
] | 2 | Python | Juhnke057/OpticalFlow-SpeedCamera | be9b99eb763a949bae0eb8ea84139c0104023f15 | 331f58003ba7af425587deb09f4d6c4e9ea7e996 |
refs/heads/master | <repo_name>tangtony6688/ShareEC<file_sep>/brown-ec/src/main/java/com/tony/brown/ec/main/personal/publishgood/PublishListClickListener.java
package com.tony.brown.ec.main.personal.publishgood;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.view.View;
import com.chad.l... | 390ebe7ab5eee76fcf43b71b83dcf1df5fd83455 | [
"Java",
"Gradle"
] | 26 | Java | tangtony6688/ShareEC | d841c561c9950427f4f2baecec0ffdcfebf042c8 | c53ac572256b40bc58568448d52eaf94cb8d7310 |
refs/heads/master | <repo_name>AhmedNadar/hashtag<file_sep>/spec/integration/view_homepage_spec.rb
require 'spec_helper'
feature "View the home page" do
scenario "learning about the app" do
visit root_path
expect(page).to have_css 'title', text: "Hashtag", visible: false
expect(page).to have_css '[data-role="description"]',... | 2031455e536149a935d63786a3f856c3defadc2a | [
"Ruby"
] | 3 | Ruby | AhmedNadar/hashtag | 762e32883725606bb8555eab7d178b9f80886d64 | ecd58f35f3c7a0bc069f82486114504387308cc9 |
HEAD | <file_sep>package cn.jimmiez.pcu.common.graphics;
import cn.jimmiez.pcu.alg.normal.HoppeEstimator;
import org.junit.Test;
import static org.junit.Assert.*;
import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;
import java.util.List;
import java.util.Random;
import java.util.Vector;
public class HoppeEstimator... | 49665e7a46b765b5003cfc71e17a1aae34966c59 | [
"Java"
] | 21 | Java | Jimmie00x0000/PointCloudUtil | f1a529714d48fb824e158df996b673646b2f8d0a | 987b1f9061e43edb2dbdcb0b4fb5f86c8106e7b0 |
refs/heads/master | <file_sep><?php
namespace madurmanov\TwitterApiDriver;
use yii\base\Module as BaseModule;
class Module extends BaseModule
{
public $consumerKey = '';
public $consumerSecret = '';
public $accessToken = '';
public $accessTokenSecret = '';
protected $api = null;
public function init()
{
$this->api =... | 0d7e96ec69b94d747fa2319c4a99dc11960be568 | [
"Markdown",
"PHP"
] | 2 | PHP | madurmanov/yii2-twitter-api-driver | f6e16674f6c8ef8eba0fbdeb0215e9c5a87ccaf7 | 4e786529cec822dc53594892b122a03a51bbd053 |
refs/heads/master | <file_sep>import React from "react";
import {StyleSheet, Text} from "react-native";
class TitlePage extends React.Component {
render(){
return(
<Text style={styles.titlePage}>{this.props.text}</Text>
);
};
}
export default TitlePage;
const styles = StyleSheet.create({
titlePa... | e4b70f0da9b67e4b3b0cddc8cf86c012c8ac5d0c | [
"JavaScript"
] | 16 | JavaScript | Ephalys/recipe-app | ee8134081c1554b85305271fdfafc8c7dd542381 | dcbcd197a5dda074ac66931d0add034b448cbe56 |
refs/heads/main | <file_sep>
# import lib
from evaluation import *
import time
import torch
import numpy as np
import os
from dataset import *
import datetime
import sys
sys.path.insert(0, '../PyTorch_GBW_LM')
sys.path.insert(0, '../PyTorch_GBW_LM/log_uniform')
from log_uniform import LogUniformSampler
class Trainer(object):
def ... | db3b95376d15c38e074f42ba8b76fdfb241fc997 | [
"Python"
] | 3 | Python | SophiaCheung1211/Session_Recommendation_Testing | c410d6424a386093cbd7b1d41a3c764059330a42 | 0858ea2f2306fc8dd21cb1e12733ef43f48419c4 |
refs/heads/master | <file_sep>package com.tienda.backend.domain;
import java.math.BigDecimal;
public class Producto {
private int productoId;
private String imagen;
private String titulo;
private BigDecimal precio;
private String descripcion;
public int getProductoId() {
return productoId;
}
pu... | 9e2ec13d7c85d60e8d530bbac18bcc767eeec7fe | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 8 | Java | Alex-Oq21/API-para-Tienda-con-Angular | 64038388061b878f29602aed4efd3018d1d0af63 | 82c7b47ce3c6a01e83b59a3c5c7631a74ad5f6fb |
refs/heads/master | <repo_name>aki4722/medaka_02<file_sep>/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are load... | 48be1c3b6131233ca86fe99e39c747ed34ed3f86 | [
"PHP"
] | 3 | PHP | aki4722/medaka_02 | 505f2a1106e8b2b96bb00a130daafed7f85d13ef | 7b08992e88ae7ea453efbb02d828c7c7963afd9f |
refs/heads/master | <repo_name>direded/direded.github.io<file_sep>/projects/invaders/background.js
let Background = function(img, obj) {
this.speed = 500;
this.offset = 0;
this.object = obj;
this.src = img.src;
this.set(img);
}
Background.prototype.set = function(img) {
this.object.style.backgroundImage = "url('" + img.src + "')";
... | 4e958345b96a82a32d73eb4728a9722d369490f2 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | direded/direded.github.io | 0604eadfd20265092e98da6bebde69cea655b003 | 12ff18d07d3a61b7f7dd866f0be625807f34e018 |
refs/heads/master | <repo_name>Santiago323/Proyecto-PHP<file_sep>/control/ControlUsuario.php
<?php
class ControlUsuario{
var $objUsuario;
//Constructor
function __construct($objUsuario){
$this->objUsuario = $objUsuario;
}
function validarIngreso(){
$esValido=false;
$objUsuario1 = new Usu... | c2523d6dd6e0b8dd2d0fcf23c1133d26cae4a58f | [
"PHP"
] | 3 | PHP | Santiago323/Proyecto-PHP | e8d2e5827e883ea109f13736ba81443245e52746 | 34d795228a7edd6e8704c4cb9afd9e507f10b95e |
refs/heads/master | <file_sep># supplementary-event-calendars
Generate a report from a list of Google calendars.
<file_sep>function openDialog() {
var html = HtmlService.createHtmlOutputFromFile('Dialog')
.setWidth(800)
.setHeight(600);
SpreadsheetApp.getUi() // Or DocumentApp or SlidesApp or FormApp.
.showModalDialo... | 347fef1be9d94a9e4981ccbdd281a580526145c8 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kssjmpv1/supplementary-event-calendars | beed8a6d98a90c6e601284ce28d7c31d5ec537d4 | 285ab97a04960e550430854567af1f461d7dcb18 |
refs/heads/master | <repo_name>santhan-k/testappbuilder<file_sep>/sample-kendoui-core-widgets/scripts/weather.js
(function (global) {
var WeatherViewModel,
app = global.app = global.app || {};
WeatherViewModel = kendo.data.ObservableObject.extend({
weatherDataSource: null,
init: function () {
... | d66d20bb6f86a989048ec11db67b3f8a8a4da5f5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | santhan-k/testappbuilder | 6bcb3825876922553b381cecd0d8b60b6408f7a5 | a9c4448df89301b53e01643e9ff287fe4b6ffee7 |
refs/heads/main | <repo_name>DeltaAirlines70/PythonforCybersecurity-1<file_sep>/start/CH03/pinger1.py
#!/usr/bin/env python3
# First example of pinging from Python
# By
for octet in range(254):
ip = "127.0.0.1".format(octet + 1)
current_os = platform.system().lower()
<file_sep>/start/CH05/ReadFile.py
import os
script_path = os.pa... | 3cc2e8520552013f83cd81f3475d3b8bef28e2cf | [
"Python"
] | 24 | Python | DeltaAirlines70/PythonforCybersecurity-1 | 0a555258d86222b1c8736d060bc4594b0fa9a384 | 914936cff3ebaf6a741c1fe620447cb445bf888d |
refs/heads/master | <repo_name>scottrobel/webman<file_sep>/public/script.js
let inputNodes = document.querySelectorAll('input');
let firstInput = inputNodes[0]
if(firstInput != undefined){
firstInput.focus();
firstInput.select();
}<file_sep>/lib/hangman/lib/game.rb
# frozen_string_literal: true
class Game
attr_reader :player_name, ... | 8db9a36a88bf0e74b4e031808c44d63835df3000 | [
"JavaScript",
"Ruby"
] | 6 | JavaScript | scottrobel/webman | 31da538803c8ce227134a411849d7d954dc1eff6 | d25d0ce1568eb28a939c3fc2adb77279186f0ae3 |
refs/heads/master | <repo_name>BGlirui/WebCrawler<file_sep>/src/main/java/com/wcrawler/dao/ExcelFilePipeline.java
package com.wcrawler.dao;
import com.alibaba.fastjson.JSON;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.poi.openxml4j.util.ZipSecureFile;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.ap... | d5db562c24d6b124a60b0572219cfd6a90a6167b | [
"Java",
"Maven POM"
] | 10 | Java | BGlirui/WebCrawler | 4b01ebb4f63ce746e51ebb38e27be4ccc6006817 | d8736787f253f8ace4b5de1f68d0c2b603d94adc |
refs/heads/master | <file_sep>iex --name bot_lavalink@127.0.0.1 -S mix<file_sep>iex --name bot_rest@127.0.0.1 -S mix<file_sep>iex --name bot_handler@127.0.0.1 -S mix<file_sep>iex --name bot_gateway@127.0.0.1 -S mix<file_sep>#!/usr/bin/env bash
set -e
if [[ -z "${APP_NAME}" ]]; then
echo "APP_NAME is not set, aborting..."
exit 1... | e78ad3239d9cadcfb340e8f8599af9fbbfc83da5 | [
"Shell"
] | 6 | Shell | SpaceEEC/crispy-system | da92fadd795a170623ef4081504fc6d6db7904b9 | 761fd17da577af7f454e09e10986e0f210aaa089 |
refs/heads/master | <repo_name>ox/doctor<file_sep>/app/controllers/routines_controller.rb
class RoutinesController < ApplicationController
def show
@routine = Routine.find(params[:id])
@events = @routine.events
end
def destroy
@routine = Routine.find(params[:id])
stethoscope = @routine.stethoscope
@routine.des... | fcbf65893810602c280f3f58a81259cee646206c | [
"Ruby"
] | 8 | Ruby | ox/doctor | b90beebad65725c62388b2924adef161b5eccc40 | 3dcfad80b6de889f7e12d23b503e3f4973dba040 |
refs/heads/master | <file_sep>Squarespace base template with all the fixins<file_sep>
$( document ).ready(function() {
/*Removes Onling Banking Login from search page*/
var windowLoc = window.location.href;
console.log(windowLoc);
firstCut = windowLoc.lastIndexOf('/') +1;
var currentPage = windowLoc.substring(firstCut, windowLoc.le... | 9eb07f05d1f3f4e3af7d5ff21159c571cafe14a5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | omnicommander/baseTemplate-sp | f664ba79dbde94e7abe124f6cb714f7ce0632809 | 76d5deeb46b6d450ed4b372bc1c84d22d649d3c9 |
refs/heads/main | <file_sep>#include "mbed.h"
Serial pc(USBTX, USBRX);
InterruptIn lectura(PTA1);
InterruptIn convierte(PTD5);
AnalogIn temperatura(PTB0);
//inicializa variables
bool escala = true;//true: C, false: F.
float almacenado = -1;
//almacena un dato nuevo y lo imprime en la escala guardada
void imprimeTemp(){
... | 3897344e26c921e0e99a2c1a5a5dc12e774dd7d4 | [
"C"
] | 2 | C | rodrigo9210/MBED | 01265f00d1e45f50bc82aff614a2b73cd094e52e | 5ca9262ceb90a41c8af79e0a646728f27677b18b |
refs/heads/master | <repo_name>taras-s/dz_JS_11-12<file_sep>/js/script.js
$(document).ready(function() {
$('#carousel1').carousel();
$('#carousel2').carousel();
// console.log('.1');
});
| e69f05a7434290abc9e352f56ec6c05b62f5609f | [
"JavaScript"
] | 1 | JavaScript | taras-s/dz_JS_11-12 | 0a6d3f3e3cd75140fd378722c50b273cdcd5db1f | 80828bc214b10dec486edfaf45fc8bbfe50c7b0b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
// Eccoci qua.
namespace Benzinaio
{
public class Cliente
{
// Attributi e Properties
private static int _gen_id = 0; // Attributo... | 45fbbaa9e462ef46b5a0c1a3d058b8868d342600 | [
"C#"
] | 2 | C# | Disperati/Benzinaio | b5ed0405329f9de2027a83624d87b46573f3846b | 20bd065ff88b0d0c8d1c361df2240b2d54203562 |
refs/heads/master | <repo_name>alakahakai/segtree<file_sep>/segtree.go
// A segment tree implementation in Go
// Supports different types by using generic interface{} for combine function and emptyValue
package segtree
import (
"errors"
"math"
)
// SegmentTree struct
// Arr: Array to store Segment Tree nodes
// Fn: Combine function ... | 1364ce4d0a8b11a09a66f923f9d875bdc6eff4bd | [
"Markdown",
"Go"
] | 3 | Go | alakahakai/segtree | 9f540eb7772eadb805ef57d03288af9a63bc3f71 | 6a8a6172b21504639acc57fc8a82fb6134739377 |
refs/heads/master | <repo_name>akerukesha/weather<file_sep>/weather/weather/FormState.cs
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace weather
{
class FormState
{
private PictureBox pictureBox... | 873fee969edd12c887a98074dcdda509ea891dbf | [
"C#"
] | 2 | C# | akerukesha/weather | 5a7e69ecb1ee90b1ffd8b3a47a7cfb86abd351bf | 571f9265c4b6a7c0dbc47af56776bc05a3af0f67 |
refs/heads/main | <repo_name>hak-fe/OneDay_OneCommit<file_sep>/C++/Baekjoon problems/17298 오큰수.cpp
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <utility>
#include <stack>
#include <queue>
#include <deque>
using namespace std;
int main()
{
stack<int>st;
int n, nu... | 990cc663db6649339bab0663299af084df91b76a | [
"Markdown",
"C",
"Java",
"C++"
] | 149 | C++ | hak-fe/OneDay_OneCommit | 8b5a37620a7197ef53c7791504cbf3b0af36756b | 2e6cbd7cc3813e43bd7118afd2a80155d8f8e222 |
refs/heads/master | <repo_name>je7sen/SVG_Convertor<file_sep>/SvgConvertor/Window1.xaml.cs
/*
* Created by Visual Studio 2010
* User: je7sen Then
* Date: 05/06/2013
* Time: 16:24
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Configuration;
using System.Collections.... | cc726bd5bb8dac9ace9a1807dc33ff96f4409fa1 | [
"Markdown",
"C#"
] | 2 | C# | je7sen/SVG_Convertor | 17981581c874f6e1c2b2aaa56af0b5b503b5facb | 02448cd4f11605f20ee6e07191da9e9c8ffcd31d |
refs/heads/master | <file_sep>package com.bookstall.dao;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.bookstoredb.entity2.Book;
import com.bookstoredb.entity2.Customer;
import com.bo... | 477e6b31529fe0e15e4beb2732c60ac2430991d0 | [
"Java"
] | 8 | Java | rahul810iop/eCommerce | 01b59319c1063dad1ce6b52d10e0bb724bf53e4a | 799d055006494c2da4328649aa8e7626d4123217 |
refs/heads/master | <repo_name>snegovick/django-cms-articles<file_sep>/cms_articles/models/__init__.py
from .category import Category
from .article import Article
from .title import Title
from .attribute import Attribute
from .plugins import ArticlePlugin, ArticlesPlugin, ArticlesCategoryPlugin
(Category, Article, Title, Attribute, Artic... | 95ef6bb4076fde8af5843acb2709d258ccf17f17 | [
"Python"
] | 1 | Python | snegovick/django-cms-articles | f7397bd5e303be6ed50bc53b71e27e40f4087f94 | 5b84de40122bd9ef4768496ce6cfc1a23aa3b56a |
refs/heads/master | <repo_name>letsgitthis/homework-week-3<file_sep>/README.md
# homework-week-3
password generator
In this assignment I wanted to create a responsive webpage that generates a password on screen.
I introduced checkboxes that gives you options on which characters you would like to include or not include in the result.
When... | 24b6639e557a5f01ffb683aeff86a8fbb8c48816 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | letsgitthis/homework-week-3 | d05de5bfe46209e650a30a910da9bfe526ea9def | 655b8a4d56ce5ca6d7eb7745d2727181122c8c28 |
refs/heads/master | <repo_name>igrande0/dota2-hero-rec<file_sep>/assets/playerComparison.py
#!/usr/bin/python
from __future__ import division
import json #or cjson
import re
import time
from math import sqrt
class PlayerComparison():
def cosine(self, user_profile, player_profiles):
# returns {"user_id:", similarity score}
... | c88fa3668eed9a3c6c779b210a65138a4a323af2 | [
"Markdown",
"Python",
"PHP"
] | 6 | Python | igrande0/dota2-hero-rec | f0ff338b5736045bf4bd43753a366231c56c0e6c | abc8a235af80856d25c199df41d3bc6c6a5fe00a |
refs/heads/master | <file_sep>var typed = new Typed('#typed', {
stringsElement: '#typed-strings',
typeSpeed: 40,
backSpeed: 40,
});
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.bgimg');
var instances = M.Parallax.init(elems, options);
});
// Or with jQuery
... | 395c9e0b0b641fe075151c467c49aec818b0062f | [
"JavaScript"
] | 1 | JavaScript | swapnadeepmohapatra/SwapnadeepPortfolio | 7cdb7d85acb4ad56c6fe291550077ad016615327 | 25ff3482acf5c8075923fcdea03eb6d099f78607 |
refs/heads/master | <repo_name>tmhsplb/AppHarbor.NET<file_sep>/AppHarbor.Test/Util.cs
using System;
using System.IO;
namespace AppHarbor.Test
{
public static class Util
{
public static string GetCurrentBasePath()
{
return AppDomain.CurrentDomain.BaseDirectory;
}
public static string GetDataPath()
{
var currentBasePath... | 349223a90242be87b92437f17891968de32b03a7 | [
"Markdown",
"C#"
] | 21 | C# | tmhsplb/AppHarbor.NET | 97b417a5587f62d5547a530561b8eb9d1849669a | c321cd13f38de96a92b5cb1969cebb73ae8ad2b2 |
refs/heads/master | <file_sep># units.ninja
Live at [https://units.ninja](https://units.ninja)

GNU Units in the browser, for all those poor people who don't have it installed
locally. Implementation (WASI + WASM) was sufficiently painful that
I'm not going to brag about it or recommend similar projects. But hey... | e751e1e042e0329b75d3d4a468c0b7722e6308b0 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 4 | Markdown | dakaufma/units.ninja | 458aa6c30b6482a06c213de02ec98d0d21b7a9ee | 754115754841eda31ee2599555f4d93f09874dea |
refs/heads/master | <repo_name>Minetrix/Meta_CustomDrops<file_sep>/src/de/xantharia/meta/customdrops/Main.java
package de.xantharia.meta.customdrops;
import java.io.IOException;
import java.util.ArrayList;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfigur... | a20315a71e35dfecf4ea18a85c95f9cdb70c42d2 | [
"Java"
] | 1 | Java | Minetrix/Meta_CustomDrops | 4425b0500edc2bb4ed3d1ccb0fb6d84192bfed1c | 341f5912d646340fbcf35471061cc1072700f866 |
refs/heads/master | <repo_name>christivin/MyBrowerAndMyTomcat<file_sep>/src/MyBrowser2.java
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.*;
/**
* Created by zoujing on 2017/5/10.
*/
public class MyBrowser2 {
public static void main(String[] args) {
try {
... | e817cb4770d07ac366b8a58fa9fb8256d00f9956 | [
"Java"
] | 2 | Java | christivin/MyBrowerAndMyTomcat | 7a439489c83c14beb45893768993d3c5bce507cd | 8812b18d0838f99337aa6bcd9ea4baab1f87bc86 |
refs/heads/master | <repo_name>fengjixuchui/wafw00f<file_sep>/Dockerfile
FROM python:3
WORKDIR /usr/src/app
COPY . .
RUN python setup.py install
ENTRYPOINT [ "wafw00f" ]
<file_sep>/wafw00f/plugins/f5bigipasm.py
#!/usr/bin/env python
'''
Copyright (C) 2022, WAFW00F Developers.
See the LICENSE file for copying permission.
'''
NAME = 'BIG-I... | 68abdd6f9db6cc62698715d93aecb823433967d4 | [
"Python",
"Dockerfile"
] | 2 | Dockerfile | fengjixuchui/wafw00f | efe0a4309dddd778010c5995ab5538d26bf41aa5 | fcdfea412124186e9784c1fc1a6a43ceba452a85 |
refs/heads/master | <file_sep>require "roda/plugins/version"
class Roda
module Plugins
# Your code goes here...
end
end
<file_sep>class Roda
module RodaPlugins
module Root
module RequestMethods
def root(*args, &block)
args << ["", true]
is(*args, &block)
end
end
end
r... | 355c61e5ebfd725fc71c80759eb3e5f800f981c2 | [
"Makefile",
"Ruby"
] | 8 | Ruby | acdcorp/roda-plugins | 821981e926a765e8dd7cf4c206debbc5ebb131d0 | 03cde1bc2c625dcc72d8b97641b82abd8c151b78 |
refs/heads/master | <repo_name>geeofree/twitter-analyzer<file_sep>/src/app.state.js
import { createStore, applyMiddleware, combineReducers } from 'redux'
import searchReducer from './reducers/search.reducer'
const logger = state => next => action => {
console.log('dispatching action:', action)
console.log('next state:', state.getSta... | 81db2bed8fc62df358a13c489f474898d499f49e | [
"JavaScript"
] | 13 | JavaScript | geeofree/twitter-analyzer | 68993959d4c4f5c8733764999136a46f3d011479 | 5bbdb0c71036bfb858c22be7255402e90ff86318 |
refs/heads/master | <repo_name>EddyChavez/PAAEBACK<file_sep>/app/Http/Controllers/AlumnoCreditoController.php
<?php
namespace App\Http\Controllers;
use App\alumnoCredito;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Response;
class AlumnoCreditoController extends Controller
{
/**
* Display a listing of the resou... | 9567932e28d77f6c3651e5b4c872324e6ec4b8eb | [
"SQL",
"PHP",
"Shell"
] | 143 | PHP | EddyChavez/PAAEBACK | 7fd0b71878d710b2b5487a774e923e890b70a13a | e46aa6419ff289ac90e75cb5d17b0f4fe5ac922d |
refs/heads/master | <file_sep>import time, socket, random, string, sys, socks
from threading import Thread
f = open('proxys.txt', 'r').readlines()
how = 0
def new_bot():
global how
time.sleep( 2 )
while 1:
try:
usr = random.choice(string.ascii_uppercase) + str(random.randint(00000000, 99999999)) + ... | e4e2063f4a4e297d101d7b80a5d0f587b70a62be | [
"Markdown",
"Python"
] | 3 | Python | Foplenes/ddos | d0bc01752002ca6172594852ef6835bbe16c1387 | 43c760fdb499a74ee37fe4c371d83ed982d529c8 |
refs/heads/master | <file_sep>$(function() {
var $mainSlider = $('.main__right-part .slider'),
$rangeSlider = $('.main__right-part .slider__calculator .calc.range .range-slider'),
$selectCountry = $('.main__right-part .slider__calculator .calc.multiselects .select-country .icons'),
$selectInterests = $('.main__right-part .slider__c... | 562f47c696788440fbdcb2c9560a1d50a3aae04e | [
"JavaScript"
] | 1 | JavaScript | Dionisio1414/Visitys | 31bbd61a7e5e60adb63c670259270d00dbed1926 | 6c9452e7ec5fe36930746e92e0e46cb5164ff111 |
refs/heads/master | <repo_name>zfx2017/BLueTest<file_sep>/app/src/main/java/com/clj/blesample/operation/CreateUserDialog.java
package com.clj.blesample.operation;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.Display;
import android.view.View;
import android.view.Window;
import andr... | 8f25dafb4b1456bc6ab1181929b984cc1558f0e6 | [
"Java"
] | 4 | Java | zfx2017/BLueTest | 2f95c2f29794637cd5015505a894aefeedee66c1 | 0617209d645a49ce65239921da306d3057527217 |
refs/heads/master | <file_sep>
let x = ["Ada", "Brendan", "Ali"];
let y = "birthday";
let z = [];
function writeCards(x,y) {
for(let i = 0; i < x.length; i++ ) {
z[i] =`Thank you, ${x[i]}, for the wonderful ${y} gift!`;
}
return z;
}
console.log(writeCards(x,y));
// let countup = 10;
function countDo... | 24004a7ea873a0be5f93a7e3d18f6856ee2986c2 | [
"JavaScript"
] | 1 | JavaScript | basil-kawak/js-looping-and-iteration-looping-code-along-recoded-istanbul-2019 | 6eae7fbbd708fe1e18bf0cf4830561247b70bd2f | 5a3c286a121084bb359d1242942e3272d0a76d2a |
refs/heads/master | <repo_name>fundaluk/Codewars_cpp<file_sep>/makeNegative.cpp
//Return Negative
int makeNegative(int num)
{
int a=0;
if (num>0)
a = num*(-1);
else
a=num;
return a;
}<file_sep>/sum.cpp
//Sum without highest and lowest number
int sum(vector<int> numbers)
{
sort(numbers.begin(), numbers.end());
int numbers_siz... | 14a3d2cd4d19568708c37974b71004dda23a4d0b | [
"C++"
] | 3 | C++ | fundaluk/Codewars_cpp | fddb03b0a5a0846577707a8df2e521729951ec78 | b74e534254891b6021c50feadc0eb6e5ca126d73 |
refs/heads/master | <repo_name>abdallah7432/InstagramLogin<file_sep>/InsSimLoad.py
# coding:utf-8
# If the following error occurs during running:
# requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL
# please set-up requests like this:response = requests.get(url_login,allow_redirects=False,verify=False)
import requests
... | 2f533fc954165a3c6ace4543478394f225ad87c6 | [
"Markdown",
"Python"
] | 2 | Python | abdallah7432/InstagramLogin | 47ca05a68089c5f563ecf6f750e3c89f2132ca67 | 9b2aa8d630a369bf5fd3bc755cafe0873aef5fe7 |
refs/heads/master | <repo_name>oriveltons-lab/react-scalable-app<file_sep>/src/actions/SearchActions.js
import { SEARCH_MOVIE } from './types';
export const SearchMovie = text => {
}<file_sep>/src/APIKey.js
module.exports = {
APIKey: '683042a2'
};
| f5af74f801d5ee3aa70f98b5ac5c25af1c677780 | [
"JavaScript"
] | 2 | JavaScript | oriveltons-lab/react-scalable-app | f966292b5078b9619b2efd41d17266f18291ef70 | e0046589fe60442fc49244589fde91e3225bb858 |
refs/heads/main | <repo_name>wikititor/toDoList<file_sep>/code.js
const form = document.querySelector('form');
const numberOfTasks = document.querySelector('h1 span');
const ul = document.querySelector('ul');
const listElements = document.getElementsByClassName('task');
const input = document.querySelector('input');
const searchInput = ... | ecad4b5a0e1ef1813bdfddb79246b90f43e2ee94 | [
"JavaScript"
] | 1 | JavaScript | wikititor/toDoList | 0278897a03a369c525395a13ebda97d5ae5664d2 | 0239be13dcb7e413850de27e10ff611759d4322e |
refs/heads/master | <repo_name>mayank1513/mayank1513.github.io<file_sep>/hooks/useTransitionConstant.ts
import { useEffect, useState } from "react";
export const transitionWidth = 600;
export default function useTransitionConstant() {
const [c, setC] = useState(1);
useEffect(() => {
const onResize = () => {
// console.log(... | b07bb484bdeca74ff71914c213e39c20d145876c | [
"Markdown",
"TypeScript",
"JavaScript",
"Shell"
] | 5 | TypeScript | mayank1513/mayank1513.github.io | 2a505044d03e455e6e5cc533344ebdeef8bb08bb | 067a6e5e1aa5ed776edfd19ad8b231433fc3fbac |
refs/heads/master | <file_sep>import Backbone from 'backbone';
import Marionette from 'backbone.marionette';
import ProductView from './item-view';
import Storage from '../../../utils/storage';
import { filterByFields, filterBySearch } from '../../../utils/service';
export default Marionette.CollectionView.extend({
childView: ProductVi... | b0fe27312daca030427515158b5d0dd5dd53a55d | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | iburskiy/product-catalog | 86d388bf6277d84a70382f1105eb6220f4826c70 | f1a3caff4c915d27e1598e1b1d368f12607157cb |
refs/heads/main | <repo_name>broomhandleus/wad-up<file_sep>/src/types.ts
export interface user {
_id: string;
username: string;
password: string; // Don't know how to encryption yet, but gotta learn!
email: string;
}
// Could possible have the host be an extension of user with more properties...
export interface host {
... | 31c78b0a25442f726c463b3eeae982acdd78c137 | [
"TypeScript"
] | 4 | TypeScript | broomhandleus/wad-up | 8bef02812b70c6439e422c3555f1247baed18424 | ebc7101a7c23e3446434fd6f2f633edd38485390 |
refs/heads/main | <file_sep>const tl = gsap.timeline({defaults:{ease:'power1.out'}});
tl.to('.text',{y:'0%', duration: 1});
tl.to('.slider',{y:'-100%',duration:1.5});
tl.to('.intro',{y:'-100%',duration: 1}, '-=1')
tl.fromTo('header',{opacity: 0},{opacity: 1,duration: 0.3});
... | 9425a184e310eee9f270efa08446f328684320a8 | [
"JavaScript"
] | 1 | JavaScript | DastaanDZ/Pre-Tathva-21_About | b164ae309cdbcd8d4832032340e5dc0e3291fd2a | cc409dde4232e354b4a4f8b872e3be6872c53e69 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.