id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
77365388d4240822e1262d54355254cef01a6388b71722f4ed4f21adeaeccc3c | using System;
using System.Collections.Generic;
using System.Deployment.Application;
using System.Globalization;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
namespace Para.ExpressApp.CommandLineLauncher.Win.Domain
{
/// <summary>
///... | C# | src/Para.ExpressApp.CommandLineLauncher/Domain/SingleInstance.cs | biohazard999/T360991 | mit | 8,094 | 258 | codeparrot/github-code |
a7f21b64ab86452915440976ee35d277815d50fcdd5028311f4e11506a323184 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IoTHs.Api.Shared;
using IoTHs.Devices.Interfaces;
namespace IoTHs.Core
{
public abstract class DeviceBase : IDevice
{
private string _name;
private string _type;
protected List<IDevic... | C# | src/IoTApp/IoTHs.Core/DeviceBase.cs | kreuzhofer/iot_homesecurity | mit | 1,495 | 64 | codeparrot/github-code |
16da89487966b2837cb6ccd8fe0f9c544dddd410e025f4d9ff84ca5073205711 | var Mousetrap = require('mousetrap');
var $ = require('jquery');
var dispatcher = {
// Event Pub/Sub System
//
// Topics used:
// [headCellClicked] - A head cell was clicked
// @return {array} [row, column]
// [cellSelected] - A cell was selected
// @return {array} [row, colu... | JavaScript | src/dispatcher.js | felixrieseberg/React-Spreadsheet-Component | mit | 4,282 | 110 | codeparrot/github-code |
123e8a9ae12a0941b8bd57fa22eaad006a3733a8448b203361802b3e683d2f3d | <?php
/*
* This file is part of the OrkestraPdfBundle package.
*
* Copyright (c) Orkestra Community
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
namespace Orkestra\Bundle\PdfBundle\Factory;
use Orkestra\Bundle\PdfBundle\Pdf\T... | PHP | Factory/TcPdfFactory.php | orkestra/OrkestraPdfBundle | mit | 3,785 | 126 | codeparrot/github-code |
0df1dc3388c15e3d343d8947935bdc61b67890caad95c6f2cae73f0f47903ad4 | // The MIT License (MIT)
// Copyright (c) 2014 Barthelemy Delemotte
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use... | C++ | src/lib/Regex.cpp | DBarthe/regex | mit | 2,249 | 74 | codeparrot/github-code |
aae2f124f3aec13f40ca3ce9b8115802df00cb85f5f293b736294ce4a26c1399 | 'use strict'
const tman = require('tman')
const should = require('should')
const thunk = require('thunks')()
const redis = require('../..')
tman.suite('commands:List', function () {
let client, client1
tman.before(function () {
client = redis.createClient({ database: 0 })
client.on('error', function (err... | JavaScript | test/commands/list.js | thunks/thunk-redis | mit | 7,827 | 197 | codeparrot/github-code |
77f4f69b602cb472a199b6b9a7d5aca814f61a1a95a1a3acb1efc176cdd9ebfa | import express = require("express");
import mongodb = require("mongodb");
import bodyParser = require("body-parser");
import jwt = require('jsonwebtoken');
import config = require('../config');
import { Persistance } from "../db/Persistance";
import { Vendeur } from "../_model/Vendeur";
import { Inscription } from "../... | TypeScript | server/controllers/UserController.ts | emallard/market-place | mit | 5,193 | 137 | codeparrot/github-code |
fa87f5973884b245b44695b277be3b99cdc12883ff1742ebf7c9fadb58b4f35f | #include <fudge.h>
#include <kernel.h>
#include <modules/base/driver.h>
#include <modules/system/system.h>
#include <modules/block/block.h>
#include <modules/arch/x86/ide/ide.h>
#include <modules/arch/x86/pic/pic.h>
static struct base_driver driver;
static struct block_interface blockinterface;
static void handleirq(... | C | src/modules/arch/x86/ata/main.c | jezze/fudge | mit | 1,756 | 95 | codeparrot/github-code |
3681ee4385138f727e38f0fa65a89df1dd544db1924ac52581e4d650e04aec24 | package com.github.dcapwell.java.methodtypes;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.CompilerControl;
import java.util.concurrent.ThreadLocalRandom;
/**
* Shows that final params have no effect on runtime performance
*/
public class FinalParams {
private static final i... | Java | src/jmh/java/com/github/dcapwell/java/methodtypes/FinalParams.java | dcapwell/jmh-tests | mit | 1,043 | 41 | codeparrot/github-code |
afb8520e49e23f1c63c60a3bb420c6f03c50c502c8e5ce8860727194b01f3ebd | import React from 'react';
import Store from './Store';
function buildList(array) {
return array.sort((a, b) => b.address - a.address)
.map((store) => {
return (
<Store key={store._id} {...store} />
);
});
}
const StoreMap = (props) => {
return (
<div className="map-container">
... | JavaScript | src/components/StoreMap.js | dogsGhost/storefronts | mit | 674 | 31 | codeparrot/github-code |
a8ecc45b56945f1b7cd79f7c3599e23854a3d8d2ec08fe97c4d8f7a33c135a8d | /*
jQuery deparam is an extraction of the deparam method from Ben Alman's jQuery BBQ
http://benalman.com/projects/jquery-bbq-plugin/
*/
(function ($) {
$.extend($, {
deparam: function (params, coerce) {
var obj = {},
coerce_types = { 'true': !0, 'false': !1, 'null': null };
// Iterate o... | JavaScript | javascript/deparam.js | andrewbredow/hollandloves | mit | 3,612 | 100 | codeparrot/github-code |
efd6f1ca1fc418b5e5ee0b26000897799a01bdf963d3d102bc9f64609b660167 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-TW">
<head>
<title>æè²é¨ãæèªå
¸ã</title>
<meta http-equiv="Pragma" content="no-cache">
<meta name="AUTHOR" content="FlySheet Information Services, Inc.">
<meta h... | HTML | cw-data/1000-1999/CW0000001327.html | BuzzAcademy/idioms-moe-unformatted-data | mit | 16,411 | 326 | codeparrot/github-code |
579868185979346a7a21ddb247b5638aad6aa775b266b0b4c10eda7608fe15a8 | module ActiveScaffold::Config
class Sortable < Base
def initialize(core_config)
super
@options = self.class.options.clone
self.column = core_config.model.new.position_column unless (@core.model.instance_methods & [:acts_as_list_class, 'acts_as_list_class']).empty?
self.column = core... | Ruby | lib/active_scaffold/config/sortable.rb | activescaffold/active_scaffold_sortable | mit | 2,968 | 81 | codeparrot/github-code |
c8cd52b4bbd6d9fce3dbf73ce39f19420582b404fb9477eba6a5e3f553755f8d | /* Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. */
#include "ddWinPipeMsgTransport.h"
#include "protocols/systemProtocols.h"
#include <win/ddWinPipeUtil.h>
using namespace DevDriver::ClientManagementProtocol;
namespace DevDriver
{
inline static Result GetLastConnectError()
{
R... | C++ | shared/gpuopen/src/win/ddWinPipeMsgTransport.cpp | googlestadia/pal | mit | 12,580 | 326 | codeparrot/github-code |
5b5adf752f256edc59abc999b47319fe03077a18c6d0a713773113b873c59077 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The state of government open data ... | HTML | place/guatemala/companies/index.html | okfn/opendataindex-2015 | mit | 21,750 | 391 | codeparrot/github-code |
bf6b91c0dc45b064c54ba6115184f0cc5e9e6980ea4788d1dc00b0cf0b687002 | import Link from 'next/link'
import ErrorMessages from '../ErrorMessages'
import Loader from '../Loader'
import Avatar from '../Avatar'
import { useApi, useUser } from '../../utils'
import PageHeader from '../PageHeader'
const PlayerAlts = ({ id, color }) => {
const { hasServerPermission } = useUser()
const { load... | JavaScript | components/player/PlayerAlts.js | BanManagement/BanManager-WebUI | mit | 1,560 | 53 | codeparrot/github-code |
2486a81d0e143f54a9d18da1a5d9bcb1db8b1d4e86ce3f96612103da25d130bb |
import React from 'react';
import moment from 'moment';
import {ComponentAsFactory, bind} from '../tools';
import EpisodeTrackingStore, {epStatus} from '../stores/EpisodeTrackingStore';
function pad(num) {
return num < 10 ? '0'+num : num;
}
export class EpisodeTracking extends React.Component {
constructor(pro... | JavaScript | helene/assets/js/components/EpisodeTracking.js | voidpp/Helene | mit | 2,297 | 63 | codeparrot/github-code |
85095225a0cf305d46d8fb1bc2d7243a955ebbc7e1b90c0e510e1c7ed0d1f564 | #ifndef APE_WAVINPUTSOURCE_H
#define APE_WAVINPUTSOURCE_H
#include "IO.h"
#define FULL_HEADER_SIZE 32768
/*************************************************************************************
CInputSource - base input format class (allows multiple format support)
*****************************************************... | C | libs/monkey-audio/WAVInputSource.h | corporateshark/PortAMP | mit | 2,661 | 68 | codeparrot/github-code |
a6fb6872309ec3eec946fb417ea9034d08c2e547af6e12e2569ed9a2cbc3e493 | using System.Web.Services;
using System.Configuration;
/// <summary>
/// You want to seperate resource url username and count
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NE... | C# | App_Code/TwitterService.cs | bmdeveloper/TweetService | mit | 1,519 | 47 | codeparrot/github-code |
60caf20f7add6a6fdf3f0492ed4a11aaf96fa409ac99b35f84c4403988d34afe | <!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>log in</title>
<link rel="stylesheet" href="/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="/assets/css/normalize.css">
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<div class="puppy-login"... | HTML | web/index.html | tipsqueal/PuPPyREST | mit | 3,081 | 96 | codeparrot/github-code |
886c2a5da054bcee1faaf2fb75d02f4c9f881d7d31f349547ece4253eca86d47 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using name... | C++ | src/rpcmining.cpp | bitcommoditiz/Wheatz-Wz | mit | 20,064 | 539 | codeparrot/github-code |
3fbe2a73411a0ffcd13bad7a98548463c74fc160a09fe31d17d20c4be20cf1ae | require 'netscaler/netscaler_service'
module Netscaler
class LoadBalancing < NetscalerService
def initialize(netscaler)
@netscaler=netscaler
end
def get_lbvserver(args={})
return @netscaler.adapter.get("config/lbvserver/#{args[:name]}", args)
end
def get_lbvservers()
return @n... | Ruby | lib/netscaler/load_balancing.rb | GravityLabs/netscaler | mit | 1,454 | 40 | codeparrot/github-code |
4973e9afbeeaa2c2597ccf719d5a71de11abcdadd3cce78b1911ea1123823169 | import React from "react";
import { bindActionCreators } from "redux";
import { connect } from "react-redux";
import { fetchUpcomingReleases } from "../actions/index.js";
import { Link } from "react-router-dom";
import Loader from "../components/Loader";
class UpcomingReleases extends React.Component {
componentDi... | JavaScript | src/containers/UpcomingReleases.js | SergeyPutyrskiy/react-redux-movies-app | mit | 2,956 | 79 | codeparrot/github-code |
788df193e91012b5fa265a6b1e4bc44121eace65ac63a466cf1bd3b2e18ddb73 | var _ = require('lodash');
var path = require('path');
var Config = (function() {
var self;
function BuildConfig(options) {
self = this;
var config = _.defaults(options || {}, BuildConfig.DEFAULTS);
// Make source directory relative to root
config.src.root = this._absolutify(config.root, config.s... | JavaScript | lib/config.js | nfantone/gulp-build | mit | 2,791 | 102 | codeparrot/github-code |
1ca81eb48c495c734cbe97ce6fa874c16b29013b73b4ef11c60d74aa4a0618c6 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Example extends CI_Controller {
public function __construct() {
parent::__construct();
// Load library and url helper
$this->load->library('facebook');
$this->load->helper('url');
}
// ----------... | PHP | application/controllers/old/Example.php | engrKUMA/sandbox.xyz | mit | 2,222 | 91 | codeparrot/github-code |
92377eeae48f2f3a0295723fedfadd85aa4b46f8c0ca28163d18e9a58c282f1e | package goexpression
import (
"fmt"
"github.com/zdebeer99/goexpression/scanner"
)
type stateFn func(*parser) stateFn
type parser struct {
scan *scanner.Scanner
root *TreeNode
curr *TreeNode
err error
state stateFn
}
func Parse(input string) (*TreeNode, error) {
root := NewTreeNode(New... | GO | parse.go | zdebeer99/goexpression | mit | 4,610 | 200 | codeparrot/github-code |
3cb0feda02f8a7edbc7b25516db5e4c039f19b199f34238a8ad1fa0216aa8e44 | export default function socketAuth(app) {
return (socket, next) => {
const { cookie } = socket.request.headers;
const cookies =
cookie &&
cookie.split('; ').reduce((prev, nextCookie) => {
const [name, value] = nextCookie.split('=');
return {
...prev,
[name]: val... | JavaScript | api/services/authentication/socketAuth.js | leopoldjoy/react-ethereum-dapp-example | mit | 846 | 34 | codeparrot/github-code |
6c895180864315f146d1b88614e1373d26ed2abf3e7400ab0da3c14b8ad6c13b | package org.gs.web;
import javax.inject.Inject;
import org.gs.web.auth.SigninResource;
import org.gs.web.auth.UserParamInjectionResolver.UserBinder;
import com.google.inject.Singleton;
import io.dropwizard.Application;
import io.dropwizard.assets.AssetsBundle;
import io.dropwizard.setup.Bootstrap;
import io.dropwiz... | Java | src/main/java/org/gs/web/WebApplication.java | vminkov/gamestreamer | mit | 1,239 | 48 | codeparrot/github-code |
2edbcda65e4652ebb06817f601c38d682c792326a5cbe336f737e8bdade6e780 | #-------------------------------------------------------------------------------
# FormAwareController
#
# Abstract controller that is used as the base class for any concrete controllers
# that are based on a form
#
#-------------------------------------------------------------------------------
class FormAwareControll... | Ruby | app/controllers/form_aware_controller.rb | camsys/transam_core | mit | 2,400 | 68 | codeparrot/github-code |
ababd1c8b416ddeb1d22315a23a005a70ddef59951c0680e0259107ac79ab6c9 | /*
Arduino Library for I2C display peripheral.
It is based on the 4D Systems uOLED-160-G2 Module and 5 push buttons
go to http://www.4dsystems.com.au/product/4D_Intelligent_Display_Modules/uOLED_160_G2/ for more information
License: CC BY-SA 3.0: Creative Commons Share-alike 3.0. Feel free
to use and abuse this... | C++ | Libraries/Arduino-GraphicDisplay/GraphicDisplay.cpp | joruiz/ap2-graphicdisplay | mit | 5,361 | 236 | codeparrot/github-code |
2f54b98b06465ebf372998a2f19dad65a2a194dd3c9a96e52082d3dd4e36bb2f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>automata: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.10.0-2.0.6/extra-dev/8.11.dev/automata/dev.html | coq-bench/coq-bench.github.io | mit | 6,860 | 166 | codeparrot/github-code |
47d670d8e2ed75ce2cb5ba1aeb56396c3579e6c1d05866c43f4276e889079887 | package com.toyshop.www.controllers.admin;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bi... | Java | toyshop/src/com/toyshop/www/controllers/admin/AdminFileManageController.java | icoolno1/toyshop | mit | 3,097 | 109 | codeparrot/github-code |
e2711c95d10d29c7b52fb071191c8477d3764b61327311452fb6316e9b2aec1c | #include "stdafx.h"
#include "gltypes.h"
#include <stdexcept>
namespace overdrive {
namespace render {
size_t getTypeSize(GLenum value) {
switch (value) {
case GL_BYTE: return sizeof(GLbyte);
case GL_UNSIGNED_BYTE: return sizeof(GLubyte);
case GL_SHORT: return sizeof(GLshort);
case GL_... | C++ | Overdrive/render/gltypes.cpp | grandmaster789/Overdrive | mit | 2,815 | 93 | codeparrot/github-code |
fa15ba094faede52ef5777b49e076cf5e2b51177b409caac68f067363e40c13d | using System;
using System.Reflection.Emit;
using Irony.Parsing;
#if DNXCORE50
using System.Reflection;
#endif
namespace Irony.Ast
{
public class AstBuilder
{
public AstContext Context;
public AstBuilder(AstContext context)
{
Context = context;
}
public vi... | C# | src/Irony/Ast/AstBuilder.cs | Hyperspaces/Hyperspace.DotLua | mit | 4,979 | 117 | codeparrot/github-code |
8303d5c8c2ea7b0cf184aa7f8f55b49b1a49123ab9ec2d81a48b96d95e66f1ed | //Image array
var imageNames = ["bag.jpg", "banana.jpg", "boots.jpg", "chair.jpg", "cthulhu.jpg", "dragon.jpg", "pen.jpg", "scissors.jpg", "shark.jpg", "sweep.jpg", "unicorn.jpg", "usb.jpg", "water_can.jpg", "wine_glass.jpg"];
//adds image
function addImage(imageFileName) {
var container = document.getElementById("i... | JavaScript | js/app.js | renegadepilgrim/vote-tracker | mit | 1,533 | 43 | codeparrot/github-code |
27f2aca19f05bdab662d3fe2957ea64b0bf3a70c53ecc942d9616df146f2daf1 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/ba/badsnowstorm.0.0.1/BadSnowstorm-net40.html | kuhlenh/port-to-core | mit | 37,029 | 847 | codeparrot/github-code |
6c986a8b4fa0358f38ec0b1bd806c7ebd5942d22d301bd5d7f73cd495708a5c0 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template basic_simple_event_log_backend</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href... | HTML | deps/boost_1_77_0/libs/log/doc/html/boost/log/sinks/basic_si_idm45961918951776.html | davehorton/drachtio-server | mit | 16,955 | 189 | codeparrot/github-code |
a0e418dac63fe8da78bec863534e8ddaa75a7c024fd40c6ad313da5c3e954dd1 | <?php
class Student_model extends MY_Model{
function login(){
$r = "";
$q = $this->db->get_where('students', array('email' => $this->input->post('Student[email]'), 'nic_no'=> $this->input->post('Student[password]'), 'status'=>1));
if($q->num_rows() > 0){
$r = $q->first_row();
$user = array(
... | PHP | application/models/student/Student_model.php | GowthamITMARTX/pBISsRjl | mit | 3,938 | 99 | codeparrot/github-code |
a980ac0cf904b75fa7f3edeef8cb293f4ab0d5bf5f526ca75fb45598fc616a09 | //
// Created by Mark van der Broek on 01/03/2017.
//
#ifndef ORACS_INIT_H
#define ORACS_INIT_H
#include <iostream>
#include <vector>
/**
* Init class reads the data from the input file, and puts it in the appropriate data members.
*/
class Init
{
int d_noOfDepots; /*!< Number o... | C | inc/init.h | markkvdb/ORACS | mit | 4,584 | 148 | codeparrot/github-code |
69ec88b136025f37111636c33d4a1ce0cd4cf36c1f9032f892e6329b3f2c5042 |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3e, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All Rights Reserved.
Redistribu... | C | i386c/ia32/instructions/fpu/softfloat/ui32_to_f128M.c | AZO234/NP2kai | mit | 2,610 | 77 | codeparrot/github-code |
24626c37d3dfbf26e49256ebef7b69f3ab631a20635fbcd443c1f4f01540110e | module Ravelry
# The information used to create `Ravelry::PatternNeedle` objects comes from {Ravelry::Pattern} objects.
#
# You should not need to create `PatternNeedle` objects manually; they are all created–and owned–by a {Ravelry::Pattern}.
#
# Note that there are other API endpoints for Needles; this mig... | Ruby | lib/ravelry/pattern_needle.rb | amar47shah/ravelry | mit | 1,405 | 54 | codeparrot/github-code |
7781afa9998f20fce504a6d3901942f2f3fbf5440b33c1cad0150e9578aac0b3 | package com.wavesplatform.history
import com.wavesplatform.common.utils.EitherExt2
import com.wavesplatform.features.BlockchainFeatures
import com.wavesplatform.history.Domain.BlockchainUpdaterExt
import com.wavesplatform.state.diffs._
import com.wavesplatform.test.PropSpec
import com.wavesplatform.transaction._
impor... | Scala | node/src/test/scala/com/wavesplatform/history/BlockchainUpdaterInMemoryDiffTest.scala | wavesplatform/Waves | mit | 4,007 | 73 | codeparrot/github-code |
1a65582a0f76cc3c5eebb76aba64fbe0f59490d7bf763c7755ec84dcb1385173 | <?php
/**
* Created by PhpStorm.
* User: budde
* Date: 11/25/14
* Time: 1:15 PM
*/
namespace ChristianBudde\Part\controller\function_string;
class LexerImpl implements Lexer
{
private static $patterns = [
self::T_NULL => "null",
self::T_BOOL => "true|false",
self::T_NAME_NOT_STARTIN... | PHP | lib/controller/function_string/LexerImpl.php | budde377/Part | mit | 2,208 | 79 | codeparrot/github-code |
d6703e46499adc0420c8fb0b8acacf4760fa13a8a91f1ade9aa308e12bae2874 | package gettingStarted
import scala.annotation.tailrec
object Array {
def findFirst[A](as: Array[A], p: A => Boolean): Int = {
@tailrec
def loop(n: Int): Int =
if (n >= as.length) -1 // didn't find
else if (p(as(n))) n // found
else loop(n + 1) // next
loop(0)
}
def isSorted[A](a... | Scala | src/gettingStarted/Array.scala | ashokgelal/FPScala | mit | 810 | 33 | codeparrot/github-code |
00f74188b8dabac7a05c38a8a704005a89d1c709e9adb26a4dbeae10f539e484 | namespace _08.Multiply_Big_Numbers
{
using System;
using System.Text;
public class MultiplyBigNums
{
public static void Main()
{
string firstNum = Console.ReadLine();
int multiplier = int.Parse(Console.ReadLine());
if (multiplier > 0)
{
... | C# | 02. Programming Fundamentals Course on C#/Strings and Text Processing Exercises/7. Multiply big number/MultiplyBigNumber.cs | flyelmos/Software-University | mit | 1,366 | 50 | codeparrot/github-code |
fb0cad177f155ac3f8760da5d0c6dc435ea2a2e2dba0935d1397c468106b5e69 | package com.github.patrickbcullen.profile;
import org.apache.kafka.streams.state.HostInfo;
import java.util.Set;
public class HostStoreInfo {
private String host;
private int port;
private Set<String> storeNames;
public HostStoreInfo(final String host, final int port, final Set<String> storeNames) ... | Java | src/main/java/com/github/patrickbcullen/profile/HostStoreInfo.java | patrickbcullen/kafka-event-sourcing | mit | 663 | 31 | codeparrot/github-code |
77a482f8563458ee8aa0bc6e2e9223a4d5f238965b43338d40016bd34b925f9a | require 'active_record'
require 'deep_clonable'
require 'ordered_set'
$:.unshift(File.dirname(__FILE__))
require 'multi_set'
require 'model_set/query'
require 'model_set/set_query'
require 'model_set/raw_query'
require 'model_set/conditions'
require 'model_set/conditioned'
require 'model_set/sql_base_query'
require 'm... | Ruby | lib/model_set.rb | ss/model_set | mit | 18,291 | 795 | codeparrot/github-code |
c5a960a8ae2265b8cef23a5fa2941347073d786f4114a0d7afb7e32af9eec5f6 | #pragma once
#include "UEPySCompoundWidget.h"
#include "UEPySTableViewBase.h"
#include "UnrealEnginePython.h"
#include "Runtime/Slate/Public/Widgets/Views/STableRow.h"
#include "Runtime/Slate/Public/Widgets/Views/STableViewBase.h"
#include "Runtime/Slate/Public/Widgets/Views/SListView.h"
extern PyTypeObject ue_PySCom... | C | Source/UnrealEnginePython/Private/Slate/UEPySPythonMultiColumnTableRow.h | kitelightning/UnrealEnginePython | mit | 4,279 | 141 | codeparrot/github-code |
dd3239ab5771e285ec1a5df91e3b92b0dbbedc7d4b3cac81af26c98db43078c5 | #include "BucketKDTree.h"
#include "Util.h"
#include <sstream>
#include <stack>
#include <map>
namespace mdsearch
{
struct DFSEntry
{
BucketKDNode* node;
unsigned int level; // level in tree the node is
DFSEntry(BucketKDNode* node, unsigned int level) : node(node), level(level)
{
}
};
typedef void (*S... | C++ | index_structures/src/BucketKDTree.cpp | DonaldWhyte/multidimensional-search-fyp | mit | 11,104 | 401 | codeparrot/github-code |
be86f1e42ca9a2c1f741bb9fd3c7d0465c5f45c7457523dffd33225fc67302f1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | HTML | mirror/prvCode_07/cityCode_000-areaCode_01-deptCode_007/voteCode_20120101T1A2-qryType_ctks-prvCode_04-cityCode_000-areaCode_01-deptCode_007-liCode_0136.html | g0v/projectV | mit | 6,101 | 203 | codeparrot/github-code |
5d5435c2149a96500cbdcd92d7db04c062271417c835ac5df96714814121f610 | <!DOCTYPE html>
<html lang="ja">
<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-2058815793005754",
enable_page_level_ads: true
});
</script>
<met... | HTML | post.html | ryamashita/MyBlog | mit | 9,893 | 191 | codeparrot/github-code |
ba9dba26ac60822d048e1f8f121e05b4b0a383c374bd09cb0bdd33197b1d25cf | <?php
/**
* MIT License. This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Propel\Generator\Model;
/**
* An abstract model class to represent objects that belongs to a schema like
* ... | PHP | src/Propel/Generator/Model/MappingModel.php | propelorm/Propel2 | mit | 4,933 | 211 | codeparrot/github-code |
57b71bac960a11242b1b84e64ac66b0c6b1b3976df940d617c4087cff8df1907 | <?php
/*
** https://github.com/eventviva/php-image-resize
*/
namespace Eventviva;
use \Exception;
/**
* PHP class to resize and scale images
*/
class ImageResize
{
const CROPTOP = 1;
const CROPCENTRE = 2;
const CROPCENTER = 2;
const CROPBOTTOM = 3;
const CROPLEFT = 4;
const CROPRIGHT = 5;
... | PHP | application/third_party/ImageResize.php | lucianoiw/imobler | mit | 14,369 | 528 | codeparrot/github-code |
1fd95d1a55dd4f737ce7d4f4557e398dbf6376cef63fdf3be6a587098c3e79d4 | import * as React from 'react';
import PropTypes from 'prop-types';
import RcSelect, { Option, OptGroup } from 'rc-select';
import classNames from 'classnames';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import defaultLocale from '../locale-provider/default';
import warning from 'warning';
export ... | TypeScript | components/select/index.tsx | havefive/ant-design | mit | 5,534 | 198 | codeparrot/github-code |
b36d516240bf8c20a001e3b36cbb908224ee54e6ddd84cad2ce4e4d93a9132f6 | class BooksController < ApplicationController
before_filter :authenticate_user!, only: [:new, :create]
before_filter :authorized_book!, only: [:edit, :update, :destroy]
def index
@books = Book.paginate(page: params[:page], per_page: 6)
end
def show
@book = Book.find(params[:id])
end
def new
... | Ruby | docs/stages/stage_2/app/controllers/books_controller.rb | SauloSilva/workshop-rails | mit | 1,157 | 60 | codeparrot/github-code |
e0088e03268decbfff7404748b6fe93068c6437e623709b084202133f847a0c9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.1/metacoq/1.0~alpha1+8.8.html | coq-bench/coq-bench.github.io | mit | 7,500 | 176 | codeparrot/github-code |
fb025290055ed543d56e905fa7d6ad49a1fa8551cb61c96325ea83a41beb9006 | #!/usr/bin/env python
# encoding: utf-8
"""
serializers.py
Created by Christophe VAN FRACKEM / Bastien ARNETTE on 2014/04/21/.
Copyright (c) 2014 Tiss'Page. MIT Licence.
UCAR serializers.
"""
__author__ = 'Christophe VAN FRACKEM <contact@tisspage.fr> / Bastien ARNETTE <bastien@rnette.fr>'
__version__= '0.0.1'
__cop... | Python | api-server/api_v0/serializers/file.py | tisspage/ucar | mit | 652 | 30 | codeparrot/github-code |
cbb4bc3361f10d46f25ea9a1a843483d089294ca5648cb8c66b419c8a72b1f14 | #ifndef __SERVER_H__
# define __SERVER_H__
#ifdef __WIN32__
#define _BSD_SOURCE
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <winsock2.h>
#include <winsock.h>
#include <windows.h>
#include <ws2tcpip.h>
#include <stdio.h>
#else
# incl... | C | src/server.h | beergame/BeerBomber | mit | 2,191 | 127 | codeparrot/github-code |
822a467a1aec32269867d1353065630cd70f91eca90d26f8a43b557879d757bd | $(document).ready(function() {
// This callback function is invoked when the page is done loading
// Features
navigationClick();
menuBarClick();
startClick();
})
function menuBarClick() {
$($("a").not("#startButton")).click(function() {
$("#practice, #global, #stats, #about").hide();
$($(this).attr("h... | JavaScript | src/js/app.js | codyseibert/clickr | mit | 4,369 | 229 | codeparrot/github-code |
694812fdfcaf3b7847cdd70f7bca3f2f5c602fa1459d6ff4c238996de5143aa1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck-tactic: 37 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.0/stalmarck-tactic/8.13.0.html | coq-bench/coq-bench.github.io | mit | 11,293 | 204 | codeparrot/github-code |
7ad1b27a453a311353cd791d34d6c0c906355ebca296de17f95c1b1c85a694ff | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-algebra: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.12.0-2.0.8/released/8.13.0/mathcomp-algebra/1.7.0.html | coq-bench/coq-bench.github.io | mit | 7,713 | 164 | codeparrot/github-code |
92bb9a3549587443b0bb2f628f9af549801c01bd849de9066a93dcb150bba987 | #region License
/*
* Copyright © 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | C# | src/Common.Logging.Unity3D/Logging/Configuration/ArgUtils.cs | SaladbowlCreative/Common.Logging.Unity3D | mit | 13,186 | 340 | codeparrot/github-code |
6736aea2b828df04fe09465199613d397eb38e6881e6db4ed365fd668fa18d50 | package mcjty.rftools.blocks.endergen;
import mcjty.lib.container.ContainerFactory;
import mcjty.lib.container.GenericContainer;
import mcjty.lib.container.SlotDefinition;
import mcjty.lib.container.SlotType;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.It... | Java | src/main/java/mcjty/rftools/blocks/endergen/PearlInjectorContainer.java | Elecs-Mods/RFTools | mit | 1,351 | 35 | codeparrot/github-code |
f8bcf15adb975daff10ce9a19d95f910d2d4cab1ce36fb73327ebb2a1744699b | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | C | 01_Develop/libXMCurl/Source/pipeline.c | mcodegeeks/OpenKODE-Framework | mit | 9,338 | 334 | codeparrot/github-code |
00b278570184fc9c7a6450a44d6fe77d04a301f5035719ea4bcbc7c858b687c3 | class Program
include Mongoid::Document
include Mongoid::Timestamps
belongs_to :file_system
field :message_ts, type: String
def to_s
id
end
# only one program per operating system
index({ file_system_id: 1 }, unique: true)
def message(_client, _data)
raise NotImplementedError
end
def ... | Ruby | lib/models/program.rb | dblock/slack-shellbot | mit | 880 | 43 | codeparrot/github-code |
4fb4fcfdf34dfc02aeb3c0902dd5c006067d559c35388ce3a9ace02d2dcd3680 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="NLogger.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// NLog logger.
// </summary>
// -----------... | C# | src/Kephas.Logging.NLog.NetStandard14/NLogger.cs | raimu/kephas | mit | 4,081 | 110 | codeparrot/github-code |
fe7f579b6ebcef25c3160efe7701aa902c4c4b73927d447b33e35279e66e6dcf | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends MY_Controller {
public function index()
{
return view('index');
}
public function login() {
if (isset($this->session->user)) {
smart_redirect('index');
}
$data['errormsg'] = $this->session->flashdata('errormsg'... | PHP | application/controllers/admin/Home.php | cjh829/CodeIgniterEnc | mit | 2,284 | 87 | codeparrot/github-code |
4797343131ec673edc705c5f4b7e1bd3a68318b770dbdd47a4c780e376403108 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 NBCO Yandex.Money LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | Java | src/main/java/com/yandex/money/api/methods/params/PhoneParams.java | raymank26/yandex-money-sdk-java | mit | 2,572 | 77 | codeparrot/github-code |
08655f8ee30f7ad8a66bbc4bbf87fc8e18028933f60d4dfd42ef047627529013 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mko.Algo.NumberTheory
{
public class Zahlensysteme
{
/// <summary>
/// Wandelt einen Integer oder Long in eine Romzal um
/// </summary>
/// <param name="Value"></param>
/// <... | C# | mko.Algo/NumberTheory/Zahlensysteme.cs | mk-prg-net/mk-prg-net.lib | mit | 2,230 | 75 | codeparrot/github-code |
3d1c7dda0465879ad00ed16b498fb82ad4455d2afa5db869e40c1aa630d3844d | import Phaser from 'phaser'
export default class extends Phaser.Sprite {
constructor ({ game, x, y, asset }) {
super(game, x, y, asset)
this.anchor.setTo(0.5)
this.scale.setTo(0.5)
game.physics.enable(this, Phaser.Physics.ARCADE)
this.gravity = 10
this.gravityRadius = 50000
this.eventHori... | JavaScript | src/sprites/BlackHole.js | killer-robots/killer-robots | mit | 1,208 | 40 | codeparrot/github-code |
282da96c9792c37073f986cb398b88d571dcc08334a282bb8b982e419e7c564c | """
WSGI config for arividam project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION``... | Python | config/wsgi.py | c4sc/arividam | mit | 1,445 | 35 | codeparrot/github-code |
5a3b2dfd17f6b245818f30c0d54debb4de958467e8a6b1c58651eb6f9a8d6586 | package mobile
import (
"errors"
"github.com/antizealot1337/openweathermap"
)
// Different temperature messurement scales.
const (
DegreesKelvin int32 = iota
DegreesCelcius int32 = iota
DegressFahrenheit int32 = iota
)
var errBadTempMessure = errors.New("Invalid temperature messurement type")
// TempIn... | GO | mobile/tempinfo.go | antizealot1337/openweathermap | mit | 2,299 | 101 | codeparrot/github-code |
68db38033d6df6d7334e82c480a7443b34e77443e1c0c3254906408f95f47c2b | # -*- coding:utf-8
'''
Created on 22/05/2015
@author: C&C - HardSoft
'''
import os
import sys
import traceback
from util.change import change
from util.homogenize import Homogenize
from columns import Columns
from calc_length import calc_length
class GerJobPdZds(object):
def __init__(self, jobname, path, di... | Python | GerJobPdZds.py | flavio-casacurta/File-FixedS | mit | 3,378 | 84 | codeparrot/github-code |
5dc0ba0ae8e9a00e8cc4a604598334e3d6ebf1e2a8976641793c27df26d7a58d | <head>
<title>CS109</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<link href="//web.stanford.edu/class/archive/cs/cs109/cs109.1182/plugins/bootstrap-custom/css/bootstrap.min.css" rel="stylesheet">
<link rel="styleshee... | HTML | courseReader.html | chrispiech/cs109-2017-fall | mit | 18,580 | 298 | codeparrot/github-code |
b21ebedce57e3d99798fbf4b42f3143d344a61e9e67608177b0a5f8f8be6c729 | package com.tomogle.iemclient;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import static org.junit.Assert.fail;
public class PropertyUtil {
public static Properties getTestProperties() {
Properties properties = new Properties();
InputStream is = null;
try {
... | Java | src/test/integration/com/tomogle/iemclient/PropertyUtil.java | tom-ogle/InterspireEmailMarketerClient | mit | 747 | 31 | codeparrot/github-code |
faf4981ed9354eb041dc84e1c72c3d10fe6ab86e1e77b4dbbd79471c73c56525 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... | JavaScript | src/routes.js | jherr/gauge-test | mit | 1,146 | 34 | codeparrot/github-code |
22a00dc67fbed0a3ce2ffe9974922b17d5132c4184e902d0d4927018b3a80808 | using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Magpie.Interfaces;
using Magpie.Models;
using Magpie.ViewModels;
using Magpie.Views;
namespace Magpie.Services
{
public class MagpieService... | C# | src/Magpie/Magpie/Services/MagpieService.cs | mariannabudnikova/Magpie | mit | 6,337 | 157 | codeparrot/github-code |
6b069e6d75d05072682ca14642a9c1c080aae28b020cfd55dc0df18bd0599755 | <?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class CmsStzefUsersType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $buil... | PHP | src/AppBundle/Form/CmsStzefUsersType.php | stzef/CMSstzef | mit | 1,366 | 60 | codeparrot/github-code |
849c79d00b48d5a984fcea9572849093664af60734938c166efafe2c4a3b8945 | <?php
/**
* Created by PhpStorm.
* User: luciano
* Date: 13/01/16
* Time: 23:28
*/
namespace ErpNET\App\Models\Doctrine\Repositories;
use Carbon\Carbon;
use Doctrine\Common\Annotations\AnnotationReader;
use ErpNET\App\Models\Doctrine\Entities\EntityBase;
use ErpNET\App\Models\RepositoryLayer\BaseRepositoryInterf... | PHP | src/Models/Doctrine/Repositories/BaseEntityRepository.php | lucianobapo/erpnet-core | mit | 10,255 | 339 | codeparrot/github-code |
b0b70171e8049d3d48a98176bb2d4727771da1a81407f486e70889e4cb800995 | import city.soi.platform.*;
import java.awt.BorderLayout;
import java.util.*;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JDialog;
import javax.swing.JTextField;
import java.io.*;
import org.jbox2d.common.Vec2;
/**
* A basic platform game. The user controlls Bender.
* The aim ... | Java | Game.java | AniaBadger/FuturamaGame | mit | 17,047 | 596 | codeparrot/github-code |
3018244f01663b160321b76ff39a7d135de1954e679a9156d960c679d8168f55 | <?php
namespace Caravane\Bundle\EstateBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Caravane\Bundle\EstateBundle\Entity\Slideshow;
use Caravane\Bundle\EstateBundle\Form\SlideshowType;
/**
* Slideshow controller.
*
*/
class Slideshow... | PHP | src/Caravane/Bundle/EstateBundle/Controller/SlideshowController.php | EricGrivilers/lion | mit | 6,721 | 234 | codeparrot/github-code |
d048995fe91148fabd1a64ac2173aaf6ff165b63cfa6960ccf70d3cfe5fa2a84 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.viewport;
import android.graphics.Matrix;
import android.graphics.Rect;
import com.facebook.infer.an... | Java | viewport/src/main/java/com/facebook/fresco/viewport/HasTransform.java | facebook/fresco | mit | 991 | 36 | codeparrot/github-code |
70d7da496fdfe03d744ec8e4ddc3bfb0c5cb8ac64362b9a3207a1f1eb84a3c37 | # vim: set fileencoding=utf-8 sw=4 ts=4 et :
"""Implements RFC 6266, the Content-Disposition HTTP header.
parse_headers handles the receiver side.
It has shortcuts for some http libraries:
parse_httplib2_response and parse_requests_response.
It returns a ContentDisposition object with attributes like is_inline,
f... | Python | teapot/extra/rfc6266.py | freelan-developers/teapot | mit | 15,052 | 445 | codeparrot/github-code |
9f8a2df46cac894fe452489c7865a752aa108608e2942ab665cc18bd904a5684 | @extends('home.layoutO')
@section('content')
<div class="right_col" role="main" style="margin:10px 20px;">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>申请入驻</h3>
</div>
@if(session('info'))
<div class="title_right alert alert-danger">
{{s... | PHP | resources/views/home/owner/settle.blade.php | SenjougaharaSama/project | mit | 39,781 | 1,294 | codeparrot/github-code |
64a67aa133e6cff6e1768f8a52444b981117552752465cffae3ea0abc205e7aa | require('dotenv').load();
var debug = require('debug')('Express4');
var express = require('express');
var app = express();
var http = require('http').createServer(app);
var io = require('socket.io')(http);
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser... | JavaScript | apila.js | ApilaCare/api | mit | 2,109 | 75 | codeparrot/github-code |
68eaeaac70c6ae664eb035190a7693586217c743781662b97db0f93597d9dbd2 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends Application
{
function __construct()
{
parent::__construct();
}
/**
* Homepage for our app
*/
public function index()
{
// this is the view we want shown
$this->data['pagebody'] = 'homepage';
// build the ... | PHP | application/controllers/Welcome.php | COMP4711Lab2Group12/starter-quotes | mit | 1,079 | 52 | codeparrot/github-code |
41007be12e67927e3eddbefb8345d1cedbbac45446edfb2e14c5610cff474fca | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>schroeder: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.7.1+1/schroeder/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,172 | 171 | codeparrot/github-code |
1793b7b0917b256c8123ce9c8cca9666cc54fbec602cac874875928fbb195b02 | angular.module('IntoSpectrum').service('$library', function($rootScope, $http, $q) {
var $library = { songs: [] };
var formatSong = function(song) {
song.id = song._id;
delete song._id;
delete song.__v;
return song;
};
$library.loadSongs = function() {
var deferred = $q.defer();
$http.... | JavaScript | modules/into_spectrum/app/client/js/services/library.js | k-team/KHome | mit | 1,627 | 58 | codeparrot/github-code |
c36b02e1c9aecc32639de2fda7ba409436450026ab95b84fdca2832944a5fcb1 |
/**
* Module dependencies.
*/
var express = require('express');
var routes = require('./routes');
var user = require('./routes/user');
var http = require('http');
var path = require('path');
var app = express();
// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirna... | JavaScript | app.js | ichylinux/mydoctors | mit | 1,055 | 40 | codeparrot/github-code |
55f5e81b497ad60d992e9163bef2a19ab66a15a89a02e02979e0009b615da380 | var actions = {},
Quickmarks = {},
isAction, callAction, request, sender, callback, url;
isAction = function(action) {
return actions.hasOwnProperty(action);
};
callAction = function(action, config) {
request = config.request;
sender = config.sender;
callback = config.callback;
if (!isRepeat(request... | JavaScript | background_scripts/actions.js | andreabadesso/chromium-vim | mit | 17,023 | 658 | codeparrot/github-code |
872e833b192a2805c934a62bc98870489cc8a74b3da343e50b65c111aa57d9f2 | /*
* Author: Minho Kim (ISKU)
* Date: June 1, 2019
* E-mail: minho.kim093@gmail.com
*
* https://github.com/ISKU/Algorithm
* https://www.acmicpc.net/problem/17252
*/
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedRe... | Java | BOJ/17252/Main.java | ISKU/Algorithm | mit | 621 | 32 | codeparrot/github-code |
4e48b38866125b7e1d9ce54fadac47cf34ba363a11c62e63a5f417d743b0148d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>poltac: 59 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesh... | HTML | clean/Linux-x86_64-4.11.1-2.0.7/released/8.11.2/poltac/0.8.11.html | coq-bench/coq-bench.github.io | mit | 19,181 | 278 | codeparrot/github-code |
a09478fcd86bb6c2e7e7efaf45c9cf08227778c5ed92becce5ea54df0d3babb0 |
$(window).on('load', function() {//main
const
dom = {//assigning switches and slider
sSwitch: $("#switch-s input"),
lSwitch: $("#switch-l input"),
mjSwitch: $("#switch-mj input"),
animationButton: $("#animationButton"),
coneButt... | JavaScript | visuals_atomic/Spin Coupling/scripts/SpinCoupling2.js | cydcowley/Imperial-Visualizations | mit | 10,817 | 310 | codeparrot/github-code |
87b618928947168848fbde09686515314e612cc27d1c223132854c79751a089c | package coding4fun;
import java.util.Arrays;
/**
* Count the number of triples that sum to 0.
* <p>
* Input: [2, 8, -25, -3, 10, 4, -7, -10]
* Output: [-10, 2, 8]
*/
public class Problem11 {
private static int[] threeSum(int[] array) {
int[] result = new int[3];
for (int i = 0; i < array.leng... | Java | src/main/java/coding4fun/Problem11.java | fredyw/coding4fun | mit | 967 | 35 | codeparrot/github-code |
075336967db181a583e6bcfc52ea69e94902c421d0f771a7c44d761667369f7e | import {namespace} from "./def"
import {doc, p} from "../build"
import {is, cmp, cmpStr, cmpNode, P} from "../cmp"
const test = namespace("history")
function type(pm, text) { pm.tr.insertText(pm.selection.head, text).apply() }
function cutHistory(pm) { pm.history.lastAddedAt = 0 }
test("undo", pm => {
type(pm, "a... | JavaScript | src/test/browser/test-history.js | jacwright/prosemirror | mit | 5,857 | 215 | codeparrot/github-code |
9ff6d894558aeabd3b785eb227a235ea39c2029c3ee02bb25a012ffd790cb559 | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "ModelRunTime.h"
#include "ModelImmutableData.h"
namespace RenderCore { namespace Assets
{
class EmbeddedSkeleton... | C | RenderCore/Assets/ModelUtils.h | xlgames-inc/XLE | mit | 977 | 36 | codeparrot/github-code |
babdc9de61117eec903f11c287bd3b9b5976425b21fe6dc8d92d494b645e40d6 | "use strict";
function UserMenu(adminUser) {
return {
restrict: 'A',
replace: true,
templateUrl: '../src/user/user.tpl.html',
scope: {},
bindToController: true,
controllerAs: 'ctrl',
controller: function () {
this.user = adminUser.getCurrentUser();
}
};
}
function AdminUser() {
var currentUser =... | JavaScript | src/user/user.js | awerlang/angular-admin-lite | mit | 525 | 31 | codeparrot/github-code |
46221c4d6335df077a9fe923903aa039696bc4af16ad861ebc52b0b152923c26 | # Copyright (c) 2010 matt
# Copyright (c) 2010-2011 Paul Colomiets
# Copyright (c) 2011 Mounier Florian
# Copyright (c) 2012 Craig Barnes
# Copyright (c) 2012, 2014-2015 Tycho Andersen
# Copyright (c) 2013 Tao Sauvage
# Copyright (c) 2013 Julien Iguchi-Cartigny
# Copyright (c) 2014 ramnes
# Copyright (c) 2014 Sean Vig
... | Python | libqtile/layout/floating.py | himaaaatti/qtile | mit | 6,615 | 204 | codeparrot/github-code |
6b98f047c3eff735ec85e7636c5cdead5678c43b176dbd7b73c7eae99ba0c166 | var gulp = require('gulp');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var gutil = require('gulp-util');
var coffee = require('gulp-coffee');
// browserify bundle for direct browser use.
gulp.task("bundle", function(){
bundler = browserify('./src/dot_... | JavaScript | gulpfile.js | Welfenlab/dot-processor | mit | 913 | 33 | codeparrot/github-code |
2915ade69f61574b15c6233668527ae786f6ce63f3acbf516663caa0ab640aa7 | <?php
/**
* User: Alex Gusev <alex@flancer64.com>
*/
namespace Praxigento\Pv\Model\Order\Invoice\Total;
use Praxigento\Pv\Config as Cfg;
/**
* TODO: MOBI-1069, use it or clean it
*/
class Subtotal
extends \Magento\Sales\Model\Order\Invoice\Total\AbstractTotal
{
/** Code for total itself */
const CODE... | PHP | Model/Order/Invoice/Total/Subtotal.php | praxigento/mobi_mod_mage2_pv | mit | 972 | 39 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.