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
d4abed26965ce820be4448a470a57c09d3ce1dc19e9a0b19bc7d78c63b7eba52
function collectWithWildcard(test) { test.expect(4); var api_server = new Test_ApiServer(function handler(request, callback) { var url = request.url; switch (url) { case '/accounts?username=chariz*': let account = new Model_Account({ username: 'charizard' }); return void callback(null, [ ...
JavaScript
test/unit/resource/accounts.js
burninggarden/burninggarden
isc
886
49
codeparrot/github-code
cead04aa72b48af97ada2eb5478e768253d307949b8d0740d36fcd1987eb6284
/* * Read and write JSON. * * Copyright (c) 2014 Marko Kreen * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "A...
C
usual/json.c
markokr/libusual
isc
38,477
1,786
codeparrot/github-code
91e092c0afa7eb5db2557ceb2dab027810c684ddfd9a1918fe03c7b18bbdfb14
/* Copyright information is at end of file */ #include "xmlrpc_config.h" #include <stddef.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include "stdargx.h" #include "xmlrpc-c/base.h" #include "xmlrpc-c/base_int.h" #include "xmlrpc-c/string_int.h" static void getString(xmlrpc_env *const envP, ...
C
xmlrpc-c/src/xmlrpc_build.c
arssivka/naomech
isc
12,744
421
codeparrot/github-code
723192278bdb31856bf418716c16771b0e4325271231f1b274acfdb076f8bdc2
System.register(["angular2/test_lib", "angular2/src/test_lib/test_bed", "angular2/src/core/annotations_impl/annotations", "angular2/src/core/annotations_impl/view", "angular2/src/core/compiler/dynamic_component_loader", "angular2/src/core/compiler/element_ref", "angular2/src/directives/if", "angular2/src/render/dom/dir...
JavaScript
application/lib/angular2/test/core/compiler/dynamic_component_loader_spec.js
denzp/pacman
isc
13,760
311
codeparrot/github-code
c64b9c0c1187b898d8ed839b73d4f62e326de56fb5f8bc1f8d946c2da3da79b3
/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in all copies. ...
C++
distrho/src/DistrhoPluginLV2export.cpp
DanielAeolusLaude/DPF-NTK
isc
16,790
406
codeparrot/github-code
3c7bdec3d173663e4c6bb5acc29fa44ffd2878804ea24a3edec53e998b243f27
// The following are instance methods and variables var Note = Class.create({ initialize: function(id, is_new, raw_body) { if (Note.debug) { console.debug("Note#initialize (id=%d)", id) } this.id = id this.is_new = is_new this.document_observers = []; // Cache the elements this.ele...
JavaScript
lib/assets/javascripts/moe-legacy/notes.js
rhaphazard/moebooru
isc
21,067
737
codeparrot/github-code
c0474fa8cb7053c9de4d0c9d05642e1fc7013bf7081cd448784876abb653ae3d
// Copyright (c) 2021 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package indexers import ( "context" "fmt" "sync" "sync/atomic" "github.com/decred/dcrd/blockchain/v4/internal/progresslog" "github.com/decred/dcrd/database/v3" "github...
GO
blockchain/indexers/indexsubscriber.go
decred/dcrd
isc
10,267
391
codeparrot/github-code
3e151da99f529e1a74e20ce488c2defa0d8e604fe5e8f9de2f7b56c79b3eb096
describe('dJSON', function () { 'use strict'; var chai = require('chai'); var expect = chai.expect; var dJSON = require('../lib/dJSON'); var path = 'x.y["q.{r}"].z'; var obj; beforeEach(function () { obj = { x: { y: { 'q.{r}': { z: 635 }, q: {...
JavaScript
test/dJSON.spec.js
bsander/dJSON
isc
3,391
148
codeparrot/github-code
840f56b0068f79c949231ae621616bab909706941666643242cbaefd0b73875b
#include <stdarg.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/endian.h> #include <sysexits.h> #include <mpg123.h> #include "audio.h" #include "mp3.h" struct mp3 { mpg123_handle *h; int fd; int first; int rate; int chann...
C
mp3.c
kdhp/play
isc
2,590
131
codeparrot/github-code
a3b7607333b8456c0691a1b56c3659fa5b47ff0efbf9e5aabdcd8fa75b8396ff
/* * Copyright 2005-2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
C
worker/deps/openssl/openssl/crypto/whrlpool/wp_block.c
ibc/MediaSoup
isc
34,797
786
codeparrot/github-code
d9537f45c40ed11184d76dc40120fe72967adc22b28bd58493dda8f453d065f7
/** * The MIT License Copyright (c) 2015 Teal Cube Games * * 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, copy, modi...
Java
src/main/java/land/face/strife/managers/CombatStatusManager.java
TealCube/strife
isc
2,828
78
codeparrot/github-code
26227153a1d50fccc1d2ee7ba2650a9a88d5631a752d9cbc3acd04cac0b4fcbd
from django import forms from django.core.exceptions import ValidationError from django.core.validators import validate_slug from django.db import models from django.utils import simplejson as json from django.utils.text import capfirst from django.utils.translation import ugettext_lazy as _ from philo.forms.fields im...
Python
philo/models/fields/__init__.py
ithinksw/philo
isc
4,971
150
codeparrot/github-code
7864086ea08ea0c24c0a25b7ab18264da695856e2a212364f7921953d3a7f325
/*- * builtin.c * This file is part of libmetha * * Copyright (c) 2008, Emil Romanus <emil.romanus@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear...
C
src/libmetha/builtin.c
nicholaides/Methanol-Web-Crawler
isc
6,361
246
codeparrot/github-code
b72e5d51f610aa81ee3fdb6421c17a7cfb914d8667a8d5570a038c72364b387b
<?php /** * Time Controller * * @package Argentum * @author Argentum Team * @copyright (c) 2008 Argentum Team * @license http://www.argentuminvoice.com/license.txt */ class Time_Controller extends Website_Controller { /** * Creates a new time block on a ticket */ public function add($ticket_id) { ...
PHP
application/controllers/admin/time.php
la5942/argentum-invoice
isc
1,554
67
codeparrot/github-code
9faf1b6396c256079bd6ad000c4e38bb5f2c387fd982e8065b863ed1ea0a8a3e
var fusepm = require('./fusepm'); module.exports = fixunoproj; function fixunoproj () { var fn = fusepm.local_unoproj("."); fusepm.read_unoproj(fn).then(function (obj) { var inc = []; if (obj.Includes) { var re = /\//; for (var i=0; i<obj.Includes.length;i++) { if (obj.Includes[i] === '*') { inc....
JavaScript
lib/fixunoproj.js
bolav/fusepm
isc
752
37
codeparrot/github-code
7a1c468395eb44022135217711a3905f6fef39089d8195bfb2dded7610d30d33
const defaults = { base_css: true, // the base dark theme css inline_youtube: true, // makes youtube videos play inline the chat collapse_onebox: true, // can collapse collapse_onebox_default: false, // default option for collapse pause_youtube_on_collapse: true, // default option for pausing yo...
JavaScript
script.js
rlemon/se-chat-dark-theme-plus
isc
4,901
145
codeparrot/github-code
b0b2ad171947e541c1cadcf0146c119988f5e1a0f1c69221b511dbd13d2aea33
'use strict'; const expect = require('expect.js'); const http = require('http'); const express = require('express'); const linkCheck = require('../'); describe('link-check', function () { this.timeout(2500);//increase timeout to enable 429 retry tests let baseUrl; let laterCustomRetryCounter; befor...
JavaScript
test/link-check.test.js
tcort/link-check
isc
18,010
492
codeparrot/github-code
bb7ad91d6adf552b33acd2889efe1a6c6525952564d91b37714b84efc737f559
import hashlib import json import logging import os import subprocess import sys import time from collections import defaultdict from shutil import copy from shutil import copyfile from shutil import copystat from shutil import copytree from tempfile import mkdtemp import boto3 import botocore import yaml import sys ...
Python
aws_lambda/aws_lambda.py
nficano/python-lambda
isc
26,779
844
codeparrot/github-code
b3384c341f17c0cbcb2ea04ddff2ec8f13829ff15fe318f86e087e49c396c982
# Copyright (c) 2015, Max Fillinger <max@max-fillinger.net> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND...
Python
getebook/epub.py
mfil/getebook
isc
25,314
704
codeparrot/github-code
3fde759a53ed2326d863bdb16796c0c1c0ea73f23987cc8aea873e2c25928985
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
C
zfs-fuse/src/lib/libzfs/libzfs_pool.c
pscedu/slash2-stable
isc
94,615
3,723
codeparrot/github-code
70e26d111db0a3a23b933f2e3d76ab272d142337427763076d7857e965b75a5e
var contenedor = {}; var json = []; var json_active = []; var timeout; var result = {}; $(document).ready(function() { $('#buscador').keyup(function() {   if (timeout) {     clearTimeout(timeout);     timeout = null;   }    timeout = setTimeout(function() {...
JavaScript
js/function.js
mpandolfelli/papelera
mit
5,506
210
codeparrot/github-code
1fa2a7efc0e5ab487d0b416a5d56afb717e63a0fabc4ebd3cfec6346212325c0
module V1 class EventUserSchedulesController < ApplicationController before_action :set_event_session, only: [:create] # POST /event_user_schedules def create @event_user_schedule = current_user.add_session_to_my_schedule(@event_session) if @event_user_schedule.save render json: @e...
Ruby
app/controllers/v1/event_user_schedules_controller.rb
danjohnson3141/rest_api
mit
1,200
39
codeparrot/github-code
75df9539340796d32eefb78ff2fbca1ff130754794c8bc7752d6989bf45488c6
import React from 'react'; import ons from 'onsenui'; import { Page, Toolbar, BackButton, LazyList, ListItem } from 'react-onsenui'; class InfiniteScroll extends React.Component { renderRow(index) { return ( <ListItem key={index}> {'Item ' + (index + 1)} </ListItem> ); } r...
JavaScript
www/components/InfiniteScroll.js
gnetsys/OnsenUIv2-React-PhoneGap-Starter-Kit
mit
854
48
codeparrot/github-code
9597fd443b7c94b9e3c90d68331121260f1c06a5bbbc1b98c4f3eee8ac9d05ee
namespace MyColors { partial class SimpleToolTip { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
C#
SimpleToolTip.Designer.cs
cborrow/MyColors
mit
2,495
68
codeparrot/github-code
7d3b89b068446f7ee48517a43a9ca1dfbe289052d563fbdcbdea97c21b6696d4
package se.dsv.waora.deviceinternetinformation; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.widget.TextView; /** * <code>ConnectionActivity</code> presents...
Java
7.3.1/DeviceInternetInformation/app/src/main/java/se/dsv/waora/deviceinternetinformation/ConnectionActivity.java
dushantSW/ip-mobile
mit
2,212
57
codeparrot/github-code
fdf6b9e9ba8b4a3df5e566928f8e735cbb230a4ed094796e6edeca50c1a05f6d
/* MIT License (From https://choosealicense.com/ ) Copyright (c) 2017 Jonathan Burget support@solarfusionsoftware.com 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, includin...
C
TIGString.c
TigerFusion/TigerEngine
mit
36,020
1,598
codeparrot/github-code
1e4766cf9cd247f511a0df0091154c194d52d2106385c3dd34ac927647be8f5d
package com.github.kwoin.kgate.core.sequencer; import com.github.kwoin.kgate.core.message.Message; import com.github.kwoin.kgate.core.session.Session; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nullable; import java.io.ByteArrayOutputStream; import java.io.IOException; import jav...
Java
kgate-core/src/main/java/com/github/kwoin/kgate/core/sequencer/AbstractSequencer.java
Kwoin/KGate
mit
3,496
149
codeparrot/github-code
a74bfc9cbb2d7755e46d54a31fa3e48f2cf0bb0ac09ff8f10dd3992512dd46ff
module Discordrb::Webhooks # An embed is a multipart-style attachment to a webhook message that can have a variety of different purposes and # appearances. class Embed def initialize(title: nil, description: nil, url: nil, timestamp: nil, colour: nil, color: nil, footer: nil, image: nil, th...
Ruby
lib/discordrb/webhooks/embeds.rb
Roughsketch/discordrb
mit
7,499
221
codeparrot/github-code
6ccd1690fef14ebabb75265c88a1e3e0cfc0e08dece3031993b06857f1d369d2
var config = require('./config'); var express = require('express'); var superagent = require('superagent'); /** * Auth Token */ var authToken = null; var expires = 0; var expires_in = 20160; // 14 days in minutes /** * Urls */ var OAUTH = 'https://www.arcgis.com/sharing/oauth2/token'; var GEOCODE = 'http://ge...
JavaScript
lib/geocode.js
Code4Maine/modeify
mit
5,275
261
codeparrot/github-code
baf59465dcb14c373759344db1c1d903e1449f4c0929ff7d419e6e6098aebdb5
package fr.pizzeria.admin.web; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impo...
Java
pizzeria-admin-app/src/main/java/fr/pizzeria/admin/web/LoginController.java
kmokili/formation-dta
mit
1,588
58
codeparrot/github-code
039363506a519e8f950a614174fc242401b8de4aaced862ee6e0c2e81c200af9
var PassThrough = require('stream').PassThrough describe('Object Streams', function () { it('should be supported', function (done) { var app = koala() app.use(function* (next) { var body = this.body = new PassThrough({ objectMode: true }) body.write({ message: 'a' })...
JavaScript
test/app/object-streams.js
francisbrito/koala
mit
538
33
codeparrot/github-code
4416dabf6e1a2cac81f75fbc78fe2d6fe24c904dd8931e70c3fe2c9515911eaa
YUI.add("inputex-inplaceedit", function(Y){ var lang = Y.Lang;//, Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, CSS_PREFIX = 'inputEx-InPlaceEdit-'; /** * Meta field providing in place editing (the editor appears when you click on the formatted value). * @class inputEx.InPlaceEdit * @extends inputEx.Field *...
JavaScript
js/fields/InPlaceEdit.js
piercus/inputex
mit
10,155
326
codeparrot/github-code
129a3fc4673212d071e16cc259538496be28bd06b6de5c84d792bdc49d52ad38
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //////////////////////////////////////////////////////////////////////////// // // // Purpose: This class defines ...
C#
src/mscorlib/src/System/Globalization/StringInfo.cs
Dmitry-Me/coreclr
mit
14,973
362
codeparrot/github-code
d9fd06bc6029c174efb81b65b1b3cb225564e5fd89c6390af8d4870ead52f0aa
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>File: calculations.rb</title> <meta http-equiv="Content-...
HTML
doc/api/files/usr/lib/ruby/gems/1_8/gems/activesupport-3_0_0_beta4/lib/active_support/core_ext/time/calculations_rb.html
ecoulthard/summitsearch
mit
2,478
111
codeparrot/github-code
2d0057717c612e6f5ab1201df21d85832e6d6589ae0ec6f0d8b754c332040e26
class SessionsController < ApplicationController before_filter :authenticate_user, :only => [:home, :profile, :setting] before_filter :save_login_state, :only => [:login, :login_attempt] def login end def login_attempt authorized_user = User.authenticate(params[:username_or_email],params[:login_password]) if au...
Ruby
app/controllers/sessions_controller.rb
app-man/LoginEasy
mit
1,156
47
codeparrot/github-code
c3854f793af5b0dd796f3f52b066d870aa969479b171c9ab98763d2d7ef95fde
import numpy as np import pandas as pd from pandas import Series, DataFrame from scipy.spatial import distance import matplotlib.pyplot as plt from sklearn.cluster import DBSCAN from sklearn import metrics from sklearn.datasets.samples_generator import make_blobs from sklearn.preprocessing import StandardScaler from s...
Python
src/identification/Identifier.py
banacer/door-wiz
mit
1,449
51
codeparrot/github-code
1e29b929aa9c4b0670e40b6aee883058f8bac4be1842d0404874fa83c62c5dca
<?php /* TwigBundle:Exception:traces.html.twig */ class __TwigTemplate_034400bfb816a72b7b3da36dd2d8e07ee89621bac614688be25a4e8ff872b3ad extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array(...
PHP
app/cache/dev/twig/9e/9e7ec4c116a05cf87d6dedc6906bdf1b530cafcee29ed870fee22e6360fa5e44.php
JoseGMaestre/Cupon_check
mit
8,589
147
codeparrot/github-code
3bc245a9516f3e80a842636369fbe9a4cd9d1d500b7fb9882465711c44f41d4e
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
JavaScript
public/app/pipes/remainingTimePipe.js
ng2-slavs/Sportsemblr
mit
4,775
123
codeparrot/github-code
8134634a6446c2775fdd86be3a46a92d1da7bcc684e28f9122da564cbf7a0949
/* eslint-disable import/no-extraneous-dependencies,import/no-unresolved */ import React, { useState } from 'react'; import { Form } from 'react-bootstrap'; import { Typeahead } from 'react-bootstrap-typeahead'; /* example-start */ const options = [ 'Warsaw', 'Kraków', 'Łódź', 'Wrocław', 'Poznań', 'Gdańsk...
JavaScript
example/src/examples/FilteringExample.js
ericgio/react-bootstrap-typeahead
mit
1,558
71
codeparrot/github-code
c1b5faba71229fdd4d5669d3ad1284dd90339a5376103a3a2012c2f7820bd156
using System.Collections.Generic; using UnityEngine; using System; namespace AI { public class GreedyAIController : PlayerController { enum NextState { Wait, Draw, Play } private NextState nextState; Dictionary<DominoController, List<DominoController>> place...
C#
Game/Assets/Scripts/AI/GreedyAIController.cs
hahamty/Dominoes
mit
14,283
282
codeparrot/github-code
fed86ec8f41c5fee1f0e7afdd672584b586af6c853d04c1985262d1d06613dea
/* The MIT License (MIT) Copyright (c) 2014 Mehmetali Shaqiri (mehmetalishaqiri@gmail.com) 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 with...
C#
openvpn.api/openvpn.api/Controllers/UsersController.cs
spartanbeg/OpenVPN-Event-Viewer
mit
3,666
115
codeparrot/github-code
931ed795119491701b7769491885fa11131615d968eb0a8c3880421fba097caf
#[derive(Debug)] pub struct Rectangle { length: u32, width: u32, } impl Rectangle { pub fn can_hold(&self, other: &Rectangle) -> bool { self.length > other.length && self.width > other.width } } #[cfg(test)] mod tests { use super::*; #[test] fn larger_can_hold_smaller() { ...
Rust
adder/src/lib.rs
hiseni/trpl
mit
823
45
codeparrot/github-code
604f7de59c313b0627892a71b0d503d7e744b6f788b737340e3dc2032abc4d90
'use strict'; function NavalMap(canvasId, imageMapUrl, imageCompassUrl, config) { this.canvas = document.getElementById(canvasId); this.imageMap = new Image(); this.imageCompass = new Image(); this.config = config; this.itemsLoaded = false; this.nationsLoaded = false; this.shopsLoaded = fal...
JavaScript
js/map.js
Rodrive/na-map
mit
15,072
434
codeparrot/github-code
37a6b8da1a1411a9c9eea0ae9e4cecda6beb639b791e43f9834dea149c63358c
#!-*- coding:utf-8 -*- import time def retries(times=3, timeout=1): """对未捕获异常进行重试""" def decorator(func): def _wrapper(*args, **kw): att, retry = 0, 0 while retry < times: retry += 1 try: return func(*args, **kw) ...
Python
decorator.py
wanghuafeng/spider_tools
mit
1,472
55
codeparrot/github-code
92637fdac7a1760e5837d46319ab3e57d76e3df48e7a4e1f7e0268f18a82ddb4
// rd_route.c // Copyright (c) 2014-2015 Dmitry Rodionov // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include <stdlib.h> // realloc() #include <libgen.h> // basename() #include <assert.h> // assert() #include <std...
C
XVim2/Helper/rd_route.c
XVimProject/XVim2
mit
3,016
95
codeparrot/github-code
cd1bfa6937a2fb3bfb9a2eef118d2950542baea45f82be7e904db9a8e8640b32
#region License // Distributed under the MIT License // ============================================================ // Copyright (c) 2019 Hotcakes Commerce, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software")...
C#
Libraries/Hotcakes.Commerce.Dnn/DnnConfigurationManager.cs
HotcakesCommerce/core
mit
2,603
70
codeparrot/github-code
010768400bfb274a45115bdfaf95a2f548a888dc921db939da21ab3eb12415f1
var crypto = require('crypto'); var lob = require('lob-enc') var hashname = require('hashname'); var log = require("./log")("Handshake") module.exports = { bootstrap : handshake_bootstrap, validate : handshake_validate, from : handshake_from, types : handshake_types, collect : handshake_collect }...
JavaScript
lib/util/handshake.js
telehash/telehash-js
mit
4,311
169
codeparrot/github-code
1b67b0b77bce8b6371a7a96811177081e402c030c72bccb2aa3d57426ade105e
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutIteration(Koan): def test_iterators_are_a_type(self): it = iter(range(1,6)) total = 0 for num in it: total += num self.assertEqual(15 , total) def test_iterating_with_next(self):...
Python
python3/koans/about_iteration.py
bohdan7/python_koans
mit
3,923
138
codeparrot/github-code
62ada1fcdc8815b6d899d37bfe758951e5ed7117aa278288909d1b47634c107e
package com.malalaoshi.android.ui.dialogs; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.LayoutInflater; import android.view.View; import android.widg...
Java
app/src/main/java/com/malalaoshi/android/ui/dialogs/CommentDialog.java
malaonline/Android
mit
10,897
298
codeparrot/github-code
f1e097c805499a66c804e9e539a009d945adf32ad0c752136f21b4bf6b631c08
#!/usr/bin/env node var path = require('path'); var fs = require('fs'); var optimist = require('optimist'); var prompt = require('prompt'); var efs = require('efs'); var encext = require('./index'); var defaultAlgorithm = 'aes-128-cbc'; var argv = optimist .usage('usage: encext [-r] [-a algorithm] [file ...]') .d...
JavaScript
cli.js
kunklejr/node-encext
mit
1,910
84
codeparrot/github-code
e5be0588bfaa57b700610599ec6b16bf88c260365e67b90c730f01d5d8b8f54f
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> Sebastian Daza | R package to compute statistics from the American Community Survey (ACS) and Decennia...
HTML
blog/2016/acsr/index.html
sdaza/sdaza.github.com
mit
45,356
750
codeparrot/github-code
88fe4796ec6896a11d357d65bafa402da6f3b0101a7959d08e166ded36cbbbcd
package sysadmin import org.scalatest._ import scalikejdbc._ import scalikejdbc.scalatest.AutoRollback import skinny.logging.Logging import skinny.test.FactoryGirl class userAdminSpec extends fixture.FunSpec with Matchers with Connection with CreateTables with AutoRollback with Logging { ov...
Scala
factory-girl/src/test/scala/sysadmin/SystemAdminSpec.scala
seratch/skinny-framework
mit
942
37
codeparrot/github-code
c53abdde1119f282bbc58a483092f641d1dd52d70d3ce805ce0dde6c8958b81b
var Struct = ( function() { return function ( members ) { var mode = "default"; var ctor = function( values ) { if ( mode === "new" ) { mode = "void"; return new Struct(); } if ( mode === "void" ) ...
JavaScript
src/Struct.js
stephenbunch/type
mit
3,084
97
codeparrot/github-code
afa5acb5d09666f3942181d3cf2d312719180205dec7ff9efcb9a8a4e0336ec8
var utils = require('./utils') , request = require('request') ; module.exports = { fetchGithubInfo: function(email, cb) { var githubProfile = {}; var api_call = "https://api.github.com/search/users?q="+email+"%20in:email"; var options = { url: api_call, headers: { 'User-Agent': 'Blogdown' } }; ...
JavaScript
core/server/lib/contributors.js
xdamman/blogdown
mit
1,262
44
codeparrot/github-code
3305718f19f255dbf3125b680e3e0cba87ec92ff90e15aadd71f0cc37a15f6bc
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleCiphers.Models { public static class ArrayOperations { // Содержится ли text в encAbc. Если да, то возвращаются индексы в encAbc // a b text = 1 // ...
C#
SimpleCiphers/Models/ArrayOperations.cs
slavitnas/SimpleCiphers
mit
1,248
43
codeparrot/github-code
7ea5f6fe013476166fe8c49385785c6a8e7685751e7bf0e37bbbc8912fb1ead9
import java.text.NumberFormat; // **************************************************************** // ManageAccounts.java // Use Account class to create and manage Sally and Joe's bank accounts public class ManageAccounts { public static void main(String[] args) { Account acct1, acct2; NumberFormat us...
Java
workspace/Lecture 09_18_13/src/ManageAccounts.java
pegurnee/2013-03-211
mit
1,595
54
codeparrot/github-code
fc5f29b7278cd68344637d8a0a6ece80950a2b3987bde96c2976b225b8fae0e9
from api_request import Api from util import Util from twocheckout import Twocheckout class Sale(Twocheckout): def __init__(self, dict_): super(self.__class__, self).__init__(dict_) @classmethod def find(cls, params=None): if params is None: params = dict() response = ...
Python
twocheckout/sale.py
2Checkout/2checkout-python
mit
3,388
98
codeparrot/github-code
1638f342cf45d4dfac6a3a22dc0e0a3e7fb3cfa4befaf2923c55306734c9ca1c
<?php /** * wm.class.php - window manager * * handles window groups and multiple gtkwindow object easily * * This is released under the GPL, see docs/gpl.txt for details * * @author Leon Pegg <leon.pegg@gmail.com> * @author Elizabeth M Smith <emsmith@callicore.net> * @copyright Leon Pe...
PHP
lib/lib/wm.class.php
callicore/library
mit
4,546
212
codeparrot/github-code
6caefb8677aa4f694a8131ea67a3801e731caa1bead5b8e40c77e1fa400cccca
<?php namespace Master\AdvertBundle\Controller; use Elastica\Filter\GeoDistance; use Elastica\Query\Filtered; use Elastica\Query\MatchAll; use Master\AdvertBundle\Document\Advert; use Master\AdvertBundle\Document\Localization; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundat...
PHP
src/Master/AdvertBundle/Controller/DefaultController.php
friendsofdigital/structure-symfony
mit
2,725
73
codeparrot/github-code
75b97e695c99b7345c44b6baa6943e081d1d8c0eaef6f0019205e538b2715bc0
/*The MIT License (MIT) Copyright (c) 2016 Muhammad Hammad 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, copy, modify, merge...
Java
src/main/java/org/dvare/annotations/Type.java
hammadirshad/dvare
mit
1,450
40
codeparrot/github-code
cbdf186485c02560828b78c2d6b268ed739e8a2dd6ae2065bb915ab6df4905dd
import json import os from flask import request, g, render_template, make_response, jsonify, Response from helpers.raw_endpoint import get_id, store_json_to_file from helpers.groups import get_groups from json_controller import JSONController from main import app from pymongo import MongoClient, errors HERE = os.pat...
Python
scinet/views.py
CenterForOpenScience/scinet
mit
4,696
142
codeparrot/github-code
2f2511594e7f4f6d5a649a2175e38a77cb41fb95840599ce3831eaa203e2300c
#include <stdio.h> #include "cgm_play.h" #include "cgm_list.h" #ifndef _CGM_TYPES_H_ #define _CGM_TYPES_H_ #ifdef __cplusplus extern "C" { #endif typedef int(*CGM_FUNC)(tCGM* cgm); typedef struct { double xmin; double xmax; double ymin; double ymax; } tLimit; typedef struct { unsigned long red; u...
C
src/intcgm/cgm_types.h
kmx/mirror-cd
mit
6,161
264
codeparrot/github-code
a544e7380f11f875e5711700c2664b08dc233905ad2ba03ffbb852d9a615419e
package org.liquidizer.snippet import scala.xml._ import scala.xml.parsing._ import net.liftweb.util._ import net.liftweb.http._ import net.liftweb.http.js._ import net.liftweb.http.js.JsCmds._ import net.liftweb.common._ import org.liquidizer.model._ object Markup { val URL1= "(https?:/[^\\s\"]*[^\\s!?&.<>])" ...
Scala
src/main/scala/org/liquidizer/snippet/Markup.scala
liquidizer/liquidizer
mit
7,634
238
codeparrot/github-code
e4fd58ec40ef06d6691723bf3236fa668424c68534f9623e697919aa98d45f6c
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Deep close to: deepCloseTo = require( './utils/deepcloseto.js' ), // Module to be tested: log10 = require( './../lib/array.js' ); // VARIABLES // var expect = chai.expect, assert = chai.a...
JavaScript
test/test.array.js
compute-io/log10
mit
1,348
66
codeparrot/github-code
499d93c2dc8a4cb42aa8737a8e569199e88010e7a20b432b95bc13ecc2992348
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>circuits: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.03.0-2.0.5/released/8.5.0~camlp4/circuits/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,013
171
codeparrot/github-code
7bede7c27a3b31a1d7e66465f82d47fa289e943e8e654898e26860aa325d2460
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>zchinese: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+1/zchinese/8.9.0.html
coq-bench/coq-bench.github.io
mit
6,961
174
codeparrot/github-code
6f17bb36ea1a70c6624e3755942722107735e3aae34321b619f6a4705de92af3
import {Component} from 'react' export class Greeter { constructor (message) { this.greeting = message; } greetFrom (...names) { let suffix = names.reduce((s, n) => s + ", " + n.toUpperCase()); return "Hello, " + this.greeting + " from " + suffix; } greetNTimes ({name, times}) { let greetin...
JavaScript
example.js
doasync/eslint-config-airbnb-standard
mit
1,250
65
codeparrot/github-code
01db20a40af942776f660635d5cfe14d3d94bab23d45d978dd05ec4f639422a9
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>jsGrid - Data Manipulation</title> <link rel="stylesheet" type="text/css" href="demos.css" /> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600,400' rel='stylesheet' type='text/css'> <link...
HTML
demos/data-manipulation.html
afzalbk/Dynamic_Table
mit
5,915
157
codeparrot/github-code
af2e350f6c05000c61875a37e000f7c14f5ebff07d673fb0d559542359bbeab8
/* * COPYRIGHT: Stealthy Labs LLC * DATE: 29th May 2015 * AUTHOR: Stealthy Labs * SOFTWARE: Tea Time */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <math.h> #include <teatime.h> static int teatime_check_gl_version(uint32_t *major, uint32_t *minor); s...
C
teatime.c
stealthylabs/teatime
mit
19,398
518
codeparrot/github-code
3c5ef28fdfb7fefd4c1e81e5199d5abe0b4224b538ff50dced789f41e6bc1d96
import { stringify } from 'qs' import _request from '@/utils/request' import mini from '@/utils/mini' import env from '@/config/env' // import { modelApis, commonParams } from './model' // import { version } from '../package.json' let apiBaseUrl apiBaseUrl = `${env.apiBaseUrl}` const regHttp = /^https?/i const isMoc...
JavaScript
src/config/api.js
jskit/kit-start
mit
5,904
213
codeparrot/github-code
2bc5568cb4fdf7562ccccbc0dd8ff09d0cd13b0c84fd5bbb9b6c965ad7f69945
import m from 'mithril'; import _ from 'underscore'; import postgrest from 'mithril-postgrest'; import models from '../models'; import h from '../h'; import projectDashboardMenu from '../c/project-dashboard-menu'; import projectContributionReportHeader from '../c/project-contribution-report-header'; import projectContr...
JavaScript
src/root/projects-contribution-report.js
thiagocatarse/catarse.js
mit
8,805
252
codeparrot/github-code
61a9b830fe3e96ebf7fd9fc2e0f18f9372a4fa672a755f327b08addbdf0554ec
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/workbench/services/request/node/requestService.ts
bsmr-x-script/vscode
mit
5,649
163
codeparrot/github-code
08dd3250a47d3ae1bc032c66a5ea3f3769a43557c6f1667df864539c00bf6149
package nl.ulso.sprox.json.spotify; import nl.ulso.sprox.Node; import java.time.LocalDate; import java.util.List; /** * Sprox processor for Spotify API album data. This is a very simple processor that ignores most data. * <p> * This implementation creates an Artist object for each and every artist in the response...
Java
src/test/java/nl/ulso/sprox/json/spotify/AlbumFactory.java
voostindie/sprox-json
mit
972
33
codeparrot/github-code
c6ce1032252b4239564dee0b9077e8c9f1960fb1fdb37a9e5878b75ad2e48d19
from corecat.constants import OBJECT_CODES, MODEL_VERSION from ._sqlalchemy import Base, CoreCatBaseMixin from ._sqlalchemy import Column, \ Integer, \ String, Text class Project(CoreCatBaseMixin, Base): """Project Model class represent for the 'projects' table which is used to store project's basic i...
Python
corecat/models/project.py
DanceCats/CoreCat
mit
1,533
48
codeparrot/github-code
7b8ec1f43915aef36c36d560c21612d14b48eaa8004e3b92a030ce6e32db7d75
/** * Angular 2 decorators and services */ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { environment } from 'environments/environment'; import { AppState } from './app.service'; /** * App Component * Top Level Component */ @Component({ selector: 'my-app', encapsulation: ViewEn...
TypeScript
src/app/app.component.ts
hankaibo/myangular
mit
1,649
63
codeparrot/github-code
51f9ecd3bac0af852e560e3126bf241054c9e9302a135324948bb3d46ebf41da
// Copyright (c) 2016-2020 The ZCash developers // Copyright (c) 2020 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. /* See the Zcash protocol specification for more information. https://github.com/zcash/zip...
C
src/sapling/noteencryption.h
Darknet-Crypto/Darknet
mit
2,843
102
codeparrot/github-code
6ecc25ee7c6ea079c2999f63e05b188f7f5d70dfb0f49af5e94745677186b7dc
/* * database.hpp * * Created on: Sep 22, 2016 * Author: dan */ #ifndef SRC_TURBO_BROCCOLI_DATABASE_HPP_ #define SRC_TURBO_BROCCOLI_DATABASE_HPP_ #include <boost/filesystem.hpp> #include <turbo_broccoli/type/key.hpp> #include <turbo_broccoli/type/value.hpp> #include <turbo_broccoli/type/blob.hpp> #include...
C++
src/turbo_broccoli/database.hpp
dan-42/turbo-broccoli
mit
6,563
249
codeparrot/github-code
a0e9729e2c0c522c08ad9bbb0675686f62c4c54042284552560d733a8e82c311
#!/usr/bin/env python from ansible.module_utils.hashivault import hashivault_argspec from ansible.module_utils.hashivault import hashivault_auth_client from ansible.module_utils.hashivault import hashivault_init from ansible.module_utils.hashivault import hashiwrapper ANSIBLE_METADATA = {'status': ['stableinterface'],...
Python
ansible/modules/hashivault/hashivault_approle_role_get.py
TerryHowe/ansible-modules-hashivault
mit
1,659
58
codeparrot/github-code
8e9a0ddd6338309260f293a1671466b14c0ba7e7c6b49a91378f3537a9668dc3
package com.gmail.hexragon.gn4rBot.command.ai; import com.gmail.hexragon.gn4rBot.managers.commands.CommandExecutor; import com.gmail.hexragon.gn4rBot.managers.commands.annotations.Command; import com.gmail.hexragon.gn4rBot.util.GnarMessage; import com.google.code.chatterbotapi.ChatterBot; import com.google.code.chatte...
Java
src/main/java/com/gmail/hexragon/gn4rBot/command/ai/PrivateCleverbotCommand.java
DankBots/GN4R
mit
1,619
47
codeparrot/github-code
f8388e09b9070f710846a70ffcf14c90fb1353815a71ed942242203ca8888d25
package logbook.data; import java.io.BufferedReader; import java.io.Closeable; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java....
Java
main/logbook/data/ScriptLoader.java
sanaehirotaka/logbook
mit
2,994
101
codeparrot/github-code
02bdb3472b739e47ee96c29fe9faf1ffca16c7674d1262612be6a5d7070ca8e7
<?php /************************************************************************************* * pascal.php * ---------- * Author: Tux (tux@inamil.cz) * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) * Release Version: 1.0.6 * CVS Revision Version: $Revision: 1.1 $ * Date St...
PHP
knowledgebase/lib/geshi/filter/geshi/geshi/pascal.php
Quantisan/WholeCell
mit
4,352
146
codeparrot/github-code
809adae05c1b147c27f19e6a66b6a3d55a230b972fdf7fe1aac349861413250d
<?php namespace infinitydevphp\gii\migration; use infinitydevphp\MultipleModelValidator\MultipleModelValidator; use infinitydevphp\tableBuilder\TableBuilder; use infinitydevphp\tableBuilder\TableBuilderTemplateMigration; use infinitydevphp\gii\models\Field; use yii\db\ColumnSchema; use yii\db\Schema; use yii\db\TableS...
PHP
src/migration/Generator.php
infinitydevphp/infinity-gii
mit
4,539
143
codeparrot/github-code
9676c740c1067efcf1955082af8041afa8542ab8edb5654898c659a29fb838f6
#include "HotNeedleLightControl.h" HotNeedleLightControlClass::HotNeedleLightControlClass(uint8_t background[NEOPIXEL_COUNT][COLOR_BYTES], uint8_t hotNeedleColor[COLOR_BYTES], float highlightMultiplier, bool useHighlight, uint16_t fadeTime, uint8_t framePeriod, Adafruit_NeoPixel *strip) : LightControlClass(framePeriod...
C++
FizVizSketch/HotNeedleLightControl.cpp
iotdesignshop/FizViz-Arduino
mit
2,285
75
codeparrot/github-code
a60b73c1edfaa94acb75175247f279487db28662dab779112fda754005c39fc4
import { createSelector } from 'reselect'; import * as movie from './../actions/movie'; import { Movie } from './../models'; import * as _ from 'lodash'; import { AsyncOperation, AsyncStatus, makeAsyncOp } from "./../utils"; export interface State { entities: { [movieId: string]: Movie }; mapMovieToCinema:...
TypeScript
src/store/reducers/movie.ts
bkorobeinikov/movieapp-ionic
mit
3,346
111
codeparrot/github-code
1cdb749b92eb17b8b0450d3af7e13328a8627ea52942c980de93bf193dfd264c
from scrapy.spiders import Spider from scrapy.selector import Selector from scrapy.http import HtmlResponse from FIFAscrape.items import PlayerItem from urlparse import urlparse, urljoin from scrapy.http.request import Request from scrapy.conf import settings import random import time class fifaSpider(Spider...
Python
FIFAscrape/spiders/fifa_spider.py
HashirZahir/FIFA-Player-Ratings
mit
3,458
65
codeparrot/github-code
30d54bdd2f72b4de86386cdaf7c25ac54903ce134145406ad2de3beb2805c7dc
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ var div = document.getElementById('content'); var div1 = document.getElementById('leftbox'); div.style.height = document.body.clientHeight + 'px'; div1.style.height = div.st...
JavaScript
web/js/base.js
JulesMarcil/colocall
mit
1,815
58
codeparrot/github-code
9d12420ffdfda220145c65ec7a8fa9fca2c08370363d7f84e1d245db602a4fcf
require 'optparse' require 'pathname' module EdifactConverter class CommandLineParser class << self attr_writer :options def options @options ||= {} end def parser @parser ||= begin OptionParser.new do|opts| opts.banner = "Usage: #{$COMMAND_NAME} [...
Ruby
lib/edifact_converter/command_line_parser.rb
glasdam/edifact_converter
mit
2,042
73
codeparrot/github-code
c2e393934e55581e7919374d1e9a3a326cf8dee349f2778391770b6f85e60941
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the project root. /* * Copyright 2000-2010 JetBrains s.r.o. * * 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...
Java
plugin/src/com/microsoft/alm/plugin/idea/tfvc/ui/ServerPathCellEditor.java
Microsoft/vso-intellij
mit
4,047
100
codeparrot/github-code
0693422b28654b86f8ef73d39472bc7dcbe24e366ebcab06f3de4b12b4f545ca
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Gang } from '../models/gang'; import { Session } from '../models/session'; import { CREW_2_ROUTE } from '../../app/app.routes.model'; import { HttpClient } from '@angular/common/http'; @Injectable() export class CrewServ...
TypeScript
src/data/services/crew.service.ts
manuelhuber/LostColonies
mit
1,407
54
codeparrot/github-code
51cd0af9f3e476cdf4142b4b0d00bb3a06e09033fe2ca4354bf061fab6fb3f37
// // kmeans.h // VoterMLA // // Created by MD Shihabul Kabir on 12/5/16. // Copyright © 2016 MD Shihabul Kabir. All rights reserved. // #ifndef kmeans_h #define kmeans_h #include "county.h" #include <vector> //K-Means Clustering Namespace namespace KmeansCluster { //Data Structure to help K-Means Clustering...
C
kmeans.h
msk610/VoterMLA
mit
1,891
64
codeparrot/github-code
af9ddd116fd149d25b01c52b9b803dee6d7500b66d242efa42e0ad5f6e76a0c8
#include "NL_ImguiD3D11Renderer.h" #include <d3d11.h> #include <d3dcompiler.h> #include <imgui.h> namespace NLE { namespace GRAPHICS { struct VERTEX_CONSTANT_BUFFER { float mvp[4][4]; }; ImguiD3D11Renderer::ImguiD3D11Renderer() : _vertexBuffer(nullptr), _indexBuffer(nullptr), _vertexShad...
C++
NLE/NL_ImguiD3D11Renderer.cpp
AlexandrSachkov/NonLinearEngine
mit
17,834
437
codeparrot/github-code
e5f44fddb251f9976719fdfeeacfb3958ec62c285448089e0b56f6cabda583f7
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. #pragma warning disable CA1801 // Remove unused parameter #pragma warning disable IDE0060 // Remove unused parameter using System; using System.Linq; using System.Text; na...
C#
src/TestReferenceAssembly/OtherDllClass.cs
dotnet/roslyn-analyzers
mit
3,859
139
codeparrot/github-code
1ba52a23eafffa879142edafb042f0a626b5d42c00f97544dc43548fd14a0e05
#!/bin/bash # Set up your StartSSL certificates/keys for nginx-proxy # This script expects your certificate and key files in this folder following # the nginx-proxy naming convention. # For example: foo.example.com.crt foo.example.com.key # are the .crt and .key file for the domain foo.example.com # Make sure script ...
Shell
certs/script.sh
daveenguyen/propitious-melting-pot
mit
1,712
59
codeparrot/github-code
89c3a43332bf2ef83e670cdfc414aef36a0d4ac8fee8457a551bd92acadc4648
'use strict'; // This is the webpack config used for JS unit tests const Encore = require('@symfony/webpack-encore'); const encoreConfigure = require('./webpack.base.config'); const webpackCustomize = require('./webpack.customize'); // Initialize Encore before requiring the .config file Encore.configureRuntimeEnviron...
JavaScript
webpack.test.config.js
xmmedia/starter_perch
mit
1,518
49
codeparrot/github-code
87f1c88860ee69e9eb6e6f453270d60d0a57a025d41c9f29b225c000b074fe8d
/*********************** * fallback mode panel * ***********************/ PanelWidget, PanelApplet, PanelToplevel { padding: 0; background-color: @osd_bg; background-image: none; color: #222222; } PanelApplet { border-width: 0; } PanelSeparator { border-width: 0; background-color: @osd_b...
CSS
.themes/Libra-Dark/gtk-3.0/gnome-applications.css
pharpend/dotfiles
mit
13,545
602
codeparrot/github-code
a54b1658f5feeccfb735851958e4e28cc77c6e0afaf5e1cef150baccc4cf8eff
// Release 1: User Stories // As a user, I want to be able to create a new grocery list. After that, I need to be able to add an item with a quantity to the list, remove an item, and update the quantities if they change. I need a way to print out the list in a format that is very readable. // Release 2: Pseudocode // ...
JavaScript
week-9/review.js
taylordaug/phase-0
mit
3,848
112
codeparrot/github-code
fd67b68dae01422a029359f586feb075e79be993f508643593bb6eb87b2a94aa
<!DOCTYPE html> <html> <head> <meta charset='UTF-8'> <script src='matrices.js'></script> <style> .indent { padding-left: 2em; } </style> </head> <body> <h3>Color space:</h3> Spec: <select id='e_color_space'> <option value='rec601' selected>Rec601</option> <option value='rec709'>Rec709<...
HTML
colors/from-coeffs.html
jdashg/misc
mit
8,409
309
codeparrot/github-code
52945bd583f60c193b3d38c16c96187e44067aa8e360184ac928c6253c46b375
#ifndef __GTHREE_VECTOR_KEYFRAME_TRACK_H__ #define __GTHREE_VECTOR_KEYFRAME_TRACK_H__ #if !defined (__GTHREE_H_INSIDE__) && !defined (GTHREE_COMPILATION) #error "Only <gthree/gthree.h> can be included directly." #endif #include <gthree/gthreekeyframetrack.h> G_BEGIN_DECLS #define GTHREE_TYPE_VECTOR_KEYFRAME_TRACK ...
C
gthree/gthreevectorkeyframetrack.h
alexlarsson/gthree
mit
1,588
42
codeparrot/github-code
bec6d8d2750a5d2c931f5dfbf925c33da8289167ddec8306e2da5f139a5c97a5
<?php namespace PHPAuth; class Auth { protected $dbh; public $config; public $lang; public function __construct(\PDO $dbh, $config, $language = "en_GB") { $this->dbh = $dbh; $this->config = $config; if (version_compare(phpversion(), '5.5.0', '<')) { ...
PHP
scripts/PHPAuth/Auth.php
owlhouseconsultingllc/viz
mit
15,122
509
codeparrot/github-code
d8cdc66908c5f1d24dd6bb4561b696a26c2b0f380bdf74a76a8357301ec2dd5d
package id3 import ( "bytes" "errors" "io" "time" ) var timestampFormats = []string{ "2006-01-02T15:04:05", "2006-01-02T15:04", "2006-01-02T15", "2006-01-02", "2006-01", "2006", } func parseTime(timeStr string) (time.Time, error) { for i := range timestampFormats { t, err := time.Parse(timestampFormats[...
GO
src/github.com/cjlucas/audiotag/id3/util.go
cjlucas/go-audiotag
mit
649
39
codeparrot/github-code