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 |
|---|---|---|---|---|---|---|---|---|
a0d39eaa0110bb37757da26c6468b06d056e352e2a373b8c05930064b9b3c21f | /**
* @fileOverview
* @module weekTool
* @author hisland hisland@qq.com
* @description 周选择控件
* <pre><code>
* API:
* $.week(); //获得对象,默认使用当前时间
* $.week(2001);, $.week('2001'); //获得对象,使用2001年和第1周
* $.week(2001, 5);, $.week('2001', 5); //获得对象,使用2001年和第5周
* $.week('2011-5-6'); //获得对象,使用2011-5-6进行初始化
*
* v... | JavaScript | js/src/weekTool/weekTool.js | hisland/hdl-assets | mit | 11,059 | 475 | codeparrot/github-code |
4473e8264baccdb17d5a0c8e1fadbf95eafebe3167d307083d8ab9f6ea959ffc | ;( function ( root, factory ) {
"use strict";
// UMD for a Backbone plugin. Supports AMD, Node.js, CommonJS and globals.
//
// - Code lives in the Backbone namespace.
// - The module does not export a meaningful value.
// - The module does not create a global.
var supportsExports = typeof ... | JavaScript | src/backbone.inline.template.js | hashchange/backbone.inline.template | mit | 12,499 | 290 | codeparrot/github-code |
f2b279ae4f29e3800e0093f3843ed75fb1869286f0ade1e910de4913ed35ffdb | //
// olvaluebase.hpp
// ol-cpp
//
// Created by 伍 威 on 15/10/21.
// Copyright © 2015年 sleepsaint. All rights reserved.
//
#ifndef olvaluebase_hpp
#define olvaluebase_hpp
#include <vector>
#include <map>
#include <string>
#include "olvalue.h"
namespace OL {
class ValueBase {
public:
ValueBase() ... | C | ol-cpp/ol-cpp/olvaluebase.h | sleepsaint/OL-Language | mit | 6,950 | 167 | codeparrot/github-code |
fdeb8f8fc8ee4b3c95351c6b5b57ae261730bf0b191f828240f63e3eb99a4996 | using Rationals;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace Scheme.NET.Numbers
{
internal static class RationalExtensions
{
public static Rational Abs(this Rational p)
{
if (p.... | C# | src/Scheme.NET/Numbers/RationalExtensions.cs | rickbutton/Scheme.NET | mit | 4,830 | 151 | codeparrot/github-code |
1f513a8064a7e223d8e408035dce84a3e1d5a7759632736e0938793cfd1111c9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>finger-tree: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.13.0/finger-tree/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,074 | 174 | codeparrot/github-code |
b2adccaf086a8b1f6eaade19ad63965ab2df7685ef3cbd851cf1888ffe8d55af | #region File Description
//-----------------------------------------------------------------------------
// NetworkSessionComponent.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
... | C# | Samples/NGSMSample_4_0/NetworkStateManagement/Networking/NetworkSessionComponent.cs | DDReaper/XNAGameStudio | mit | 18,975 | 508 | codeparrot/github-code |
f7e745bf2265f4c8bf95f7badc8a10a9974dead7f3524c15acabe2a58559c18a | import Ember from 'ember';
export default Ember.Component.extend({
/**
The CSS properties for the 'spotlight' element over the current target element
@property spotlightCSS
@type String
*/
spotlightCSS: '',
/**
The point at which the tour will start
@property firstTourStep
@type Integer... | JavaScript | addon/components/ember-tour.js | Vestorly/ember-tour | mit | 9,166 | 418 | codeparrot/github-code |
2dd78fd3edf563ac4184993a0af93adba8f5a053710a684743894db7ae4b846e | using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;
// Taken from http://www.codeproject.com/Articles/15633/Manipulating-NTFS-Junction-Points-in-NET
// ReSharper disable InconsistentNaming
// ReSharper disable UnusedMember.Local
namespace Window... | C# | WindowsPathUnitTest/JunctionPoint.cs | nemec/pathlib | mit | 15,955 | 413 | codeparrot/github-code |
52d5cb9450b70a411309ee4844e04b952437b1b6756c89d43a98d8d87e0a6200 | package com.solderbyte.openfit;
import com.solderbyte.openfit.util.OpenFitIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.os.Build;
import android.util.Log;
import an... | Java | app/src/main/java/com/solderbyte/openfit/MediaController.java | jareddlc/OpenFit | mit | 11,120 | 310 | codeparrot/github-code |
08948ac4ea4a40277b9acc6d11d189d37062fd3d27f1472d6caf0dcce32a143f | package io.github.karuppiah7890.fileshare;
import android.content.Context;
import android.content.Intent;
import android.net.DhcpInfo;
import android.net.wifi.WifiManager;
import android.os.Handler;
import android.os.Messenger;
import android.text.format.Formatter;
import android.util.Log;
import java.io.File;
import... | Java | File Share/src/main/java/io/github/karuppiah7890/fileshare/FileSender.java | Android-File-Share/FileShare | mit | 3,192 | 116 | codeparrot/github-code |
f8a0e1181494f89bf438cddca6c5d4756a52bb43bdbb2c5e0affc6bbf8462f39 | /**
* Add delayed event of setting velocity for an object
* @param {Number} delay dekay
* @param {String} objectId object's id
* @param {Number} velX x velocity
* @param {Number} velY y velocity
*/
SituationStage.prototype.addEventVelocity = function (delay, objectId, velX, velY, accelX, accelY) {
... | JavaScript | src/situationsManager/SituationStageEvents.js | adamskopl/safeDrive | mit | 1,951 | 45 | codeparrot/github-code |
18929c152911e8fcd3e61627a2064441886e5197da94842d1f757d96da4aca6b | (function () {
'use strict';
var module = angular.module('sticky', []);
// Directive: sticky
//
module.directive('sticky', ['$window', function ($window) {
return {
restrict: 'A', // this directive can only be used as an attribute.
link: function linkFn($scope, $elem, $attrs) {
... | JavaScript | lib/sticky.js | alfirin/ngSticky | mit | 12,507 | 369 | codeparrot/github-code |
e7d4d952250d45cc6ad17ee18ce1b1cac00d140acfcd3db7c27425c993d85605 | /*
contains static functions to standardize between-threads messaging
*/
package com.allspeak.utility;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.PluginResult;
import org.json.JSONObject;
import org.json.JSONEx... | Java | src/android/com/allspeak/utility/Messaging.java | albaspazio/cordova-plugin-audioinput-mfcc | mit | 8,140 | 239 | codeparrot/github-code |
48911e311c9efa135e550c66102a1d86c29e15859a121892d75617bb78cd53eb | <?php
return array(
/*
|--------------------------------------------------------------------------
| Operations
|--------------------------------------------------------------------------
|
| This array of operations is translated into methods that complete these
| requests based on their ... | PHP | src/resources/country.php | cargix1/PHP-Shopify-API-Wrapper | mit | 7,136 | 197 | codeparrot/github-code |
70a0c0c439d93f11165687c69e73aca533262eee3c1a99161e5bb4cb7387c810 | /*******************************************************************************
* Copyright 2012 bmanuel
*
* 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/... | Java | src/com/bitfire/postprocessing/filters/RadialDistortion.java | matheus23/RuinsOfRevenge | mit | 2,177 | 90 | codeparrot/github-code |
f058a470bc4f7858da18ef4a55bc99ba5e308960fb1404737a76b0e23356ae58 | #include <zlib.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "bgzf.h"
#include "hts.h"
#include "kseq.h"
KSTREAM_INIT2(, gzFile, gzread, 16384)
#include "khash.h"
KHASH_INIT2(s2i,, kh_cstr_t, int64_t, 1, kh_str_hash_func, kh_str_hash_equal)
#if defined(_USE_KURL)
#include ... | C | hts.c | lh3/bgt | mit | 29,221 | 987 | codeparrot/github-code |
2fae076adcd4732d0ad43ded07d01a0f30c51bcc739c0916ed48493f983267bc | /**
* Copyright (c) 2017-present, Liu Jinyong
* All rights reserved.
*
* https://github.com/huanxsd/MeiTuan
* @flow
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, ListView, Image, InteractionManager } from 'react-native';
import { c... | JavaScript | src/scene/GroupPurchase/GroupPurchaseScene.js | Cowboy1995/JZWXZ | mit | 5,922 | 198 | codeparrot/github-code |
b88e7bf6e14eb32335413f7156e412a45fed3d7f5b01a8e0d63cfd2c0abd6a93 | from __future__ import print_function
import time
ct = time.time()
from lasagne.layers import get_output, InputLayer, DenseLayer, ReshapeLayer, NonlinearityLayer
from lasagne.nonlinearities import rectify, leaky_rectify
from lasagne.updates import nesterov_momentum, rmsprop, adamax
import sys, os, time
scriptpath = ... | Python | applyseg_unique.py | bthyreau/hippodeep | mit | 11,344 | 243 | codeparrot/github-code |
c5f034cde4120ae70c4018d335b8f005b01634d64ff49acc12031f858ae67089 | // ==UserScript==
// @name Slack Full Theme plugin
// @namespace http://mrkannah.com/
// @version 1.0.2
// @description Applies the side bar colors for slack to the entire application
// @author Fadee Kannah
// @match https://*.slack.com/*
// @grant GM_setValue
// @grant GM_g... | JavaScript | SlackThemer.user.js | fadeenk/SlackThemer | mit | 3,885 | 126 | codeparrot/github-code |
e41405664caff129aefc6ffd8ac8c8ee5cb5a943bbcda7f2ce4a2e698253a1d4 | package org.telegram.api.functions.channels;
import org.telegram.api.input.chat.TLAbsInputChannel;
import org.telegram.api.input.chat.photo.TLAbsInputChatPhoto;
import org.telegram.api.updates.TLAbsUpdates;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import org.telegram.tl.TLMethod;
import... | Java | src/main/java/org/telegram/api/functions/channels/TLRequestChannelsEditPhoto.java | rubenlagus/TelegramApi | mit | 2,404 | 80 | codeparrot/github-code |
9da926cc0f575d914b22e10009eb24b723dc38a8ef02c0170fde898610c84fb4 | #requires -Version 3
function Get-RubrikVM
{
<#
.SYNOPSIS
Retrieves details on one or more virtual machines known to a Rubrik cluster
.DESCRIPTION
The Get-RubrikVM cmdlet is used to pull a detailed data set from a Rubrik cluster on any number of virtual machines
.NOTES
Written by... | PowerShell | Rubrik/Public/Get-RubrikVM.ps1 | rubrikinc/PowerShell-Module | mit | 5,829 | 140 | codeparrot/github-code |
309f5ac68713fd7e7a1da3f8c8449861ab98ff7c7e01fed01f0ebe1a0b293234 | package alec_wam.CrystalMod.blocks.glass;
import javax.annotation.Nonnull;
import alec_wam.CrystalMod.CrystalMod;
import alec_wam.CrystalMod.blocks.ICustomModel;
import alec_wam.CrystalMod.blocks.glass.BlockCrystalGlass.GlassBlockStateMapper;
import alec_wam.CrystalMod.proxy.ClientProxy;
import alec_wam.Cryst... | Java | src/main/java/alec_wam/CrystalMod/blocks/glass/BlockCrystalGlassPane.java | Alec-WAM/CrystalMod | mit | 7,286 | 186 | codeparrot/github-code |
c933d48f8f95b14ce4d20d4ed6fad5213882ee20320fd5750e2df2202914e110 | 'use strict';
app.factory("DataFactory", ($http, $q) => {
const getAllPlayers = function () {
return $q((resolve,reject) => {
$http({
method: 'GET',
url: 'https://nss-pingpong-api20161212012918.azurewebsites.net/api/Players/'
}).then(function success... | JavaScript | app/factories/DataFactory.js | caseywreed/NSS-PingPong-Frontend | mit | 2,850 | 85 | codeparrot/github-code |
6e249e36d535de5d8b91c9c1f56620dc5ddc90de965a056542b4096fd3e0fd07 | #region Licence
/****************************************************************************
Copyright 1999-2017 Vincent J. Jacquet. All rights reserved.
Permission is granted to anyone to use this software for any purpose on
any computer system, and to alter it and redistribute it, subject
t... | C# | WmcSoft.Core/Collections/Generic/Accumulators/DoubleAdder.cs | vjacquet/WmcSoft | mit | 1,383 | 41 | codeparrot/github-code |
0e0b7300262aa05ce153a8649a1b58993e70a21403abe0bf08062c7485588910 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { StatsChunk, StatsCompilation } from 'webpack';
import { NormalizedEntryPoint } from './helpers';
/**
* Web... | TypeScript | packages/angular_devkit/build_angular/src/webpack/utils/async-chunks.ts | ocombe/angular-cli | mit | 1,973 | 55 | codeparrot/github-code |
91c5fa79aa2585b8e0c015f7947eaffd1b5dc7042bb74786cce0af01324759ce | 'use strict';
var constants = require('../lifx').constants;
var packets = require('./packets');
var utils = require('../lifx').utils;
var _ = require('lodash');
/*
Package headers 36 bit in total consisting of
size - 2 bit
frameDescription - 2 bit
source - 4 bit
target - 6 bit
00 00 -
site - 6 bit
f... | JavaScript | lib/lifx/packet.js | MariusRumpf/node-lifx | mit | 9,346 | 335 | codeparrot/github-code |
e7cda37e875b0e557b96bbf0eb809ba2a371876e43a283f2d2765c2471a125b7 | # -*- coding: utf-8 -*-
import logging
import smtplib
from email.mime.text import MIMEText
from datetime import datetime
last_hour = datetime.now().strftime('%H')
last_hour_send_count = 0
class Sender(object):
'Sender插件类,必须使用Sender作为类名'
def __init__(self, options):
'插件初始化方法,options是插件配置数据'
... | Python | src/senders/mail.py | onlytiancai/warning-agent | mit | 1,918 | 53 | codeparrot/github-code |
b0db1b8a852ce89a1f6b99f18afbb66dd2dbd525d801b4978ad6206e691df827 | using System;
using Int8 = System.SByte;
using UInt8 = System.Byte;
using ViArrayIdx = System.Int32;
public class ViIStream
{
public byte[] Buffer { get { return _buffer; } }
public int RemainLength { get { return _len - _offset; } }
public readonly static int ArraySizeSize = 4;
public void Init(byte[] buffer... | C# | Code/Eb/EbVib/System/ViIStream.cs | ShuaiPointChen/def | mit | 4,019 | 198 | codeparrot/github-code |
0494dee02bd0298d332d46498d00bdbdb3e62d865854d46e5d8e5674fc1dbcf3 | set -e
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
fi
if [ -d "$ZSH" ]; then
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove $ZSH if you want to install"
exit
fi
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/... | Shell | tools/install.sh | gullitmiranda/oh-my-zsh | mit | 2,034 | 53 | codeparrot/github-code |
84b9e788e05b31406b54c882e94659f4e9a1624f2f5e76febb54c38fca45141a | import subprocess
import json
import math
import re
import lizard
from jinja2 import Environment, FileSystemLoader
from xml.dom import minidom
from decimal import Decimal
from analyzr.settings import CONFIG_PATH, PROJECT_PATH, LAMBDA
XML_ILLEGAL = u'([\u0000-\u0008\u000b-\u000c\u000e-\u001f\ufffe-\uffff])|([%s-%s][... | Python | parsr/checkers.py | frontendphil/analyzr | mit | 15,240 | 536 | codeparrot/github-code |
69b62c19d7470e823945f705770e504af4e3fefa9aa9b39941bb9673d353a50f | package com.stien.festivaljakt.slottsfjell;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.Window;
public class BaseActivity extends Activity {
private ProgressDialog _progressDialog;
@Override
protected void onCreate(Bundle b) {
super.onCreate(b);... | Java | app/src/main/java/com/stien/festivaljakt/slottsfjell/BaseActivity.java | pimms/festivaljakt2014 | mit | 801 | 39 | codeparrot/github-code |
cc5853e5fe1bba23d2c7fe31ed522f2be49866a14055d7bdae27b18374840fee | //
// Revit IFC Import library: this library works with Autodesk(R) Revit(R) to import IFC files.
// Copyright (C) 2015 Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundat... | C# | trunk/2016/Source/Revit.IFC.Import/Data/IFCPropertySet.cs | ivanifan/RevitCustomIFCexporter | mit | 30,414 | 536 | codeparrot/github-code |
35e9654181387cf44b03583a18a9a926d72d4cfab840826106c9917220402903 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__twoIntsStruct_calloc_12.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-12.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: calloc Allocate data using calloc()
* GoodSource: Allocate data o... | C | samples/Juliet/testcases/CWE401_Memory_Leak/s03/CWE401_Memory_Leak__twoIntsStruct_calloc_12.c | maurer/tiamat | mit | 4,722 | 169 | codeparrot/github-code |
b3fa65356241b746c8d96dd0446eb1385b70196a69c749778f711ceb39793d1a | /*
* Copyright 2005-2018 Adrian Thurston <thurston@colm.net>
*
* 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, cop... | C++ | src/gendata.cc | timoc/ragel | mit | 50,752 | 1,734 | codeparrot/github-code |
f5a4a87473c19101fd0ec1711556a6fbd5cdecadf0484b2e61d88a5c30bcac58 | package gx.realtime.serialize;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jack... | Java | src/gx/realtime/serialize/ObjectChangedEventDeserializer.java | mkrause/gx | mit | 2,090 | 54 | codeparrot/github-code |
1b713ac367ad36b47c0aa11697642aa12e193cbc36a3f157d1319661a38a6a00 | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Worldbit Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactiondesc.h"
#include "bitcoinunits.h"
#include "gui... | C++ | src/qt/transactiondesc.cpp | worldbit/worldbit | mit | 13,672 | 343 | codeparrot/github-code |
46735a4d22b11b7a462aee8c40b741084ee76075f0a2b2bcc67a612f7eeb0cda | <noscript>
<div align="center"><a href="index.php">Go Back To Upload Form</a></div><!-- If javascript is disabled -->
</noscript>
<?php
//ini_set('display_errors', 1);
//error_reporting(E_ALL);
if(isset($_POST))
{
//Some Settings
$ThumbSquareSize = 200; //Thumbnail will be 200x200
$BigImageMaxSize = 5... | PHP | bilateral_filtering/processupload.php | abhinashkumarjha/DIPLOC | mit | 8,501 | 257 | codeparrot/github-code |
4cd2dcb7f4475981bca3216909de1845e18ca45bd5a417f33be19b821ace32ee | /*
Databinder
@version 0.7
@author Sylvain Pollet-Villard
@license MIT
@website http://syllab.fr/projets/web/databinder/
*/
;(function(global){
var BINDING_ATTRIBUTE = "data-bind";
var BINDING_GLOBAL = "databind";
var BINDINGS_REGEX = /(?:^|,)\s*(?:(\w+):)?\s*([\w\.\/\|\'\"\s-]+|{.+})+/g;
function getTypeO... | JavaScript | databinder.js | sylvainpolletvillard/Databinder | mit | 15,303 | 564 | codeparrot/github-code |
45970bb50ea8f2835e584853f6bfc64d4086ec6cc09fa6c6e1e9449bf425d417 | var isArray = require('lodash.isarray');
var levenshtein = require('levenshtein-dist');
/**
* Remove reference 'noise' from a string
* @param string a The string to remove the noise from
* @return string The input string with all noise removed
*/
function stripNoise(a) {
return a
.replace(/[^a-z0-9]+/i, ' ')
.rep... | JavaScript | index.js | hash-bang/compare-names | mit | 2,918 | 108 | codeparrot/github-code |
2fedc3b426b1941a65bfca9596eadb771101f8e27b3896e15fc7e27c8ce3bcb5 | <?php
namespace PEIP_Redis\Queue;
/*
* This file is part of the PEIP_Redis package.
* (c) 2009-2011 Timo Michna <timomichna/yahoo.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Queue
* Basic implementat... | PHP | src/Queue/Queue.php | tidal/PEIP_Redis | mit | 985 | 48 | codeparrot/github-code |
8fe5c544427410186ba64fb43514740c786c7b7dc28915b8ea75b898e45b5398 | require 'active_support/inflector'
require 'perdu/mapper'
module Perdu
class Repository
def self.mapper(klass)
@mapper_class = klass
end
def self.domain_model(klass)
mapper = (@mapper_class || Perdu::Mapper).new(klass)
define_method(:mapper) { mapper }
define_method(:domain_mod... | Ruby | lib/perdu/repository.rb | perdu-rb/perdu | mit | 812 | 41 | codeparrot/github-code |
ce8b4b2d24f62459573d79d206fe66d7b40e613588ab3e5490f821a33e3fd619 | using System;
using System.Collections.Generic;
using System.Text;
namespace Cofoundry.Web
{
/// <summary>
/// An exception to be thrown from the AutoUpdateMiddleware when an error
/// occurs in the auto update process. This wraps the real exception from
/// the hosted service so it can be reported in... | C# | src/Cofoundry.Web/App_Start/AutoUpdate/AutoUpdateFailedException.cs | cofoundry-cms/cofoundry | mit | 1,067 | 36 | codeparrot/github-code |
c3be18465d957c19e42f8e71c8794193f67909be297fc9a76a105a589c5da8c8 | /**
* Created with JetBrains WebStorm.
* User: a.demarchi
* Date: 17/04/13
* Time: 14.09
* To change this template use File | Settings | File Templates.
*/
app.routers.router = Backbone.Router.extend({
routes: {
'': 'index',
':lang': 'index',
... | JavaScript | source/js/routers/app.routers.router.js | etrusco74/darkroomlocator-webapp | mit | 18,486 | 464 | codeparrot/github-code |
b06545dccca86ce53ad0d13c7617f4cf79e00b72e8b6d706b83e0136cebdc25b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lib
{
public class Tag
{
public int id { get; private set; }
public string tag { get; private set; }
public int count { get; private set; }
public Tag(int id, st... | C# | Lib/Tag.cs | luisgandrade/TCCSharpRecSys | mit | 514 | 31 | codeparrot/github-code |
2aeeca0cf6c15a7e0da7d20a53176caa8630d5087c057e1d3d55e0ff6a910c28 | package net.shiroka.tools.ofx.conversions
import java.io._
import scala.io.Source
import org.joda.time._
import com.github.tototoshi.csv._
import com.typesafe.config.Config
import net.shiroka.tools.ofx._
import Transaction._
case class SmbcFixed(config: Config) extends Conversion {
import SmbcFixed._
lazy val acc... | Scala | src/main/scala/net/shiroka/tools/ofx/conversions/SmbcFixed.scala | ikuo/ofx-tools | mit | 2,694 | 81 | codeparrot/github-code |
0aea7479c3bdee324b10e732af5fcdf9e104acd54aa019c5e2a12fb9454753b9 | package ua.com.mcgray.domain;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* @author orezchykov
* @since 10.02.15
*/
public class ToDoShareAccountDto implements... | Java | user-service-common/src/main/java/ua/com/mcgray/domain/ToDoShareAccountDto.java | mcgray/Medium-test-poc | mit | 2,155 | 88 | codeparrot/github-code |
75f7a5bd34f3d50f9992f4b9375af385989187e874f36878b5c5399d202e499d | <?php
namespace App\Observers\Board;
use App\Board;
use App\Services\ImageUpload\AbstractFileUploadService;
class BoardImageObserver
{
/**
* @var AbstractFileUploadService
*/
private $uploadService;
function __construct(AbstractFileUploadService $uploadService)
{
$this->uploadServi... | PHP | app/Observers/Board/BoardImageObserver.php | Stasgar/BugWall_Visual_Bugtracker | mit | 874 | 44 | codeparrot/github-code |
c8a6b58ec2c32cf1ee2e294cb83fabe125c441cc311f454fbd2a27a879621c53 | import sublime, sublime_plugin
import difflib
import time
import datetime
import codecs
import os
def diff_changes(file_name, result):
try:
if "Body" in result:
server = result["Body"].splitlines()
elif "Markup" in result:
server = result["Markup"].splitlines()
loca... | Python | salesforce/lib/diff.py | xjsender/haoide | mit | 2,098 | 61 | codeparrot/github-code |
6d85227cf7fcd4548747f365ab799192a972e177e106978ddbf402a36ffbe6df | import sys
from Bio import SeqIO
SNPTOPEAKFILENAME = sys.argv[1]
GENOMEFILENAME = sys.argv[2]
DISTANCE = int(sys.argv[3])
BINDALLELESEQFILENAME = sys.argv[4]
NONBINDALLELEFILENAME = sys.argv[5]
FIRSTPEAKCOL = int(sys.argv[6]) # 0-INDEXED
def getSNPInfo(SNPToPeakLine):
# Get the SNP and peak location from ... | Python | getSequencesForSNPs.py | imk1/IMKTFBindingCode | mit | 2,698 | 58 | codeparrot/github-code |
a4de57aa5ac86ca362a69a9055a7c80bb0fb5dd07346b2166a4a43f41b9352ee | package bdi.glue.proc.common;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.StringTokenizer;
import java.util.concurrent.TimeUnit;
import java.util.concurrent... | Java | src/main/java/bdi/glue/proc/common/Proc.java | Arnauld/bidij | mit | 2,758 | 90 | codeparrot/github-code |
e43b56fc6ddcca085395fcf106cb69ce44e1dda15bbce85f8e2e4ddb78e29d9e | var matchbox = require("matchbox")
var Header = matchbox.region.extend({
name: "Header",
constructor: function (){
this.appBar = this.component("appBar")
this.appBar.hello()
this.deleage("event", "appBar", function( e, appBar ){
appBar.hello()
})
this.event("click", function(){})
t... | JavaScript | scratch/view.js | tunderdomb/matchbox | mit | 2,251 | 103 | codeparrot/github-code |
1aa561776725b93a2d1d4cba9ad998c377e71dce805ded090b356bf84d6a6c5f | <?php
/**
* Widget to create windows. In experimental state.
*
* @author Indra K Dutta <idutta2007@gmail.com>
* @version 1.0
* @package ext.yiigems.widgets.windows
* @link http://www.yiigems.com/
* @copyright Copyright © 2010-2013 Indra Dutta
* @license http://www.yiigems.com/license/
*/
Yii::import("ex... | PHP | widgets/windows/Window.php | idutta2007/yiigems | mit | 3,900 | 124 | codeparrot/github-code |
a542fbb34ff20d4d7c48bb951417050f285da1c21494bfe992b6906cbce7f93a | package jpasearch.repository.query.builder;
import javax.persistence.metamodel.PluralAttribute;
import javax.persistence.metamodel.SingularAttribute;
/**
* @author speralta
*/
public class FetchBuilder<F, FROM, TO> extends AbstractPathBuilder<FetchesBuilder<F>, F, FROM, TO> {
public FetchBuilder(FetchesBuilder... | Java | src/main/java/jpasearch/repository/query/builder/FetchBuilder.java | jpasearch/jpasearch | mit | 1,372 | 40 | codeparrot/github-code |
65abb12f6e302ac131151b8ab2424d3594e7e75f5c1148ea7355f34d87d88328 | /*
* Guerilla
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the MIT License.
*
* An abstraction of a task.
*/
var path = require('path');
var async = require('async');
var utilities = require('./utilities');
function Task (params) {
this.errors = [];
this.output = {};
this.params = params || {};
}... | JavaScript | lib/task.js | yahoo/guerilla | mit | 2,473 | 113 | codeparrot/github-code |
fdfbaaa354a14a451bf2e3dc373de32a88be4c5cedaa3d6cb1b0c625c7a6bd2e | RelationError = Error.progeny('RelationError', { init: function(m) { this.name = this.className; this.message = m; } });
var extend = require('extend'),
noop = function() {};
Relation = Object.progeny('Relation', {
init: function(modelClass, model) {
this.modelClass = modelClass;
model ? (this.model = mo... | JavaScript | lib/relation.js | bnorton/document.js | mit | 3,663 | 147 | codeparrot/github-code |
520be3b32b00c3ccd1065631adbd2a46e155b6552fa83e8bf79bd6b0c68aa896 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Annapolis.Entity;
using Annapolis.Abstract.Work;
using Annapolis.Shared.Model;
using Annapolis.Abstract.Repository;
using System.Data.Entity;
using Annapolis.Shared.Extension;
namespace Annapolis.Work
{
public class TopicW... | C# | Annapolis.Work/TopicWork.cs | benthcode/Annapolis.Net | mit | 6,751 | 181 | codeparrot/github-code |
0faf1607e441246bcdf2ca31e3826e974f552187034ead66afc9a1202f436aa8 | from defines import *
import numpy as np
import mobula
import mobula.layers as L
class LeNet5:
def __init__(self, X, labels):
data, label = L.Data([X, labels], "data", batch_size = 100)
conv1 = L.Conv(data, dim_out = 20, kernel = 5)
pool1 = L.Pool(conv1, pool = L.Pool.MAX, kernel = 2, stri... | Python | examples/LeNet5.py | wkcn/mobula | mit | 1,026 | 38 | codeparrot/github-code |
40f8644b662e91058e5ab2ec188de1d718e1f9760e7d35bf1e2a57d81628e38f | <?php
/**
* @copyright Copyright (C) 2015-2019 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
declare(strict_types=1);
namespace app\actions\entire;
use DateInterval;
use DateTime;
use DateTimeImmutable;
use DateTimeZone;
use Yii;
u... | PHP | actions/entire/Weapons2Action.php | fetus-hina/stat.ink | mit | 23,961 | 609 | codeparrot/github-code |
6744d8c92a5581fa7c9f459904f6248af378ce0bea30d83fc79410129f5f16a0 | <?php
namespace Chronos\ChronoAdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* @ORM\Entity(repositoryClass="Chronos\ChronoAdminBundle\Repository\CircuitRepository")
* @ORM\Table(name="circuit")
... | PHP | src/Chronos/ChronoAdminBundle/Entity/Circuit.php | Guimove/Chronos | mit | 5,478 | 283 | codeparrot/github-code |
35c843990eaffd53f44ca90cf83bb8e26e153d6031424357d37dc0fa22ce49bd | <?php
namespace Pingpp\Util;
use IteratorAggregate;
use ArrayIterator;
class Set implements IteratorAggregate
{
private $_elts;
public function __construct($members = [])
{
$this->_elts = [];
foreach ($members as $item) {
$this->_elts[$item] = true;
}
}
publi... | PHP | lib/Util/Set.php | PingPlusPlus/pingpp-php | mit | 745 | 45 | codeparrot/github-code |
1b2347f5bc91d6ce07ec44a6771a6a92695cf93992e25d15c9881adeae27f231 | {-
******************************************************************************
* JSHOP *
* *
* Module: TestSuite *
*... | Haskell | src/TestSuite.hs | nbrunt/JSHOP | mit | 7,600 | 232 | codeparrot/github-code |
1f8ee173fe30b7cbaf53a60680b078a3375ab3d0675a7a59dd72f7b826b38ce0 | #include "message.h"
#include <QJsonObject>
#include <QJsonDocument>
QVariant nullVariant;
Message::Message(const QString& rawMassage)
:m_valid(false)
{
m_valid = parse(rawMassage);
}
Message::Message(const QString& name, const QString& command)
:m_valid(true)
{
m_name = name;
m_command = command... | C++ | message.cpp | voidpp/absinthe-client | mit | 1,407 | 68 | codeparrot/github-code |
dedf47403308ae215483fcf05f767214d6c3fb142d08e675f1b01129c4bd0b32 | # -*- coding: utf-8 -*-
import os
import unittest
import tempfile
from datetime import datetime
from flask.ext.sqlalchemy import SQLAlchemy
from app import app, db, Pass, Registration
class PassbookTestCase(unittest.TestCase):
def setUp(self):
temp = tempfile.mkstemp()
self.temp = temp
... | Python | tests.py | renstrom/passbook_flask_example | mit | 1,287 | 50 | codeparrot/github-code |
2fb134f62c658f9dc6899eec0265acdc54da00fc1aee480e6c99cb805d420694 | /**
* @license
* PlayCanvas Engine v1.45.3 revision 895add4b6
* Copyright 2011-2021 PlayCanvas Ltd. All rights reserved.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(... | JavaScript | ajax/libs/playcanvas/1.45.3/playcanvas-extras.js | cdnjs/cdnjs | mit | 23,714 | 827 | codeparrot/github-code |
ba2987eaff6d39ebb2d045d5a1d88432dfecbb46b89eba42e4c691fa32a15cf4 | <?php
class Model_Login extends Model{
public static function user_regist($data){
try{
# 登録済みuserならuser_id返却で終了
$q = DB::query("SELECT * FROM `user` where `tw_id` = " . $data['tw_id']);
$user = $q->execute();
if($user[0]) return $user[0];
# transaction start
DB::start_transaction();
... | PHP | fuel/app/classes/model/login.php | miyataumi/bookintro | mit | 898 | 36 | codeparrot/github-code |
b8e1231de941df6e647ed7cd10734db2317a23bbeab133ef185b0d5676d30229 | <?php
class TranslationProxy_Translator {
/**
* Get information about translators from current project. Works only for ICL as a Translation Service
*
* @param bool $force
*
* @return array|bool
*/
public static function get_icl_translator_status( $force = false ) {
/** @var SitePress $sitepr... | PHP | vvv/www/root-tongue/content/plugins/wpml-translation-management/inc/translation-proxy/translationproxy-translator.class.php | root-tongue/root-tongue | mit | 11,516 | 347 | codeparrot/github-code |
0103a8337d0e5a2c430fd28675f44bc5ccc65bb5aac7e41ff47c10ef117af2bf | package com.fxexperience.javafx.animation;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.TimelineBuilder;
import javafx.scene.Node;
import javafx.util.Duration;
/**
* Animate a bounce in left big effect on a node
*
* Port of BounceInLeftBig from Animate.css http://dan... | Java | Botcoin-javafx/src/com/fxexperience/javafx/animation/BounceInLeftTransition.java | adv0r/botcoin | mit | 2,126 | 68 | codeparrot/github-code |
4f745eaa55a74460df56e64784ac81cafa47e01b29fbb9bf3ba368fa78f41789 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
Ext.define('sisprod.view.AnnullableWorkOrder.ListAnnullableWorkOrder', {
extend: 'sisprod.view.base.TabPanelGridItem',
require: [
'sisprod.view.base.TabPanelGridItem'
],
alias: 'w... | JavaScript | web/bundles/hrmpayroll/app/view/AnnullableWorkOrder/ListAnnullableWorkOrder.js | jgin/testphp | mit | 7,947 | 148 | codeparrot/github-code |
cc71a5deea29a689b63280c2d33199b4789239202771cabd88ea59fd3f33522e | from typing import TypeVar, Dict, Any
from django import template
from django.conf import settings
from util.getters import reverse_model_url
register = template.Library()
T = TypeVar('T')
@register.filter(name='get_from_dict')
def get_from_dict(dictionary: Dict[T, Any], key: T):
value = dictionary.get(key)
... | Python | TBAW/templatetags/getters.py | FRC-RS/FRS | mit | 750 | 39 | codeparrot/github-code |
0f8db160a9092a929bfb19f7afa874babe30aed66567a758fbb1be60bc51eecc | package org.leibnizcenter.rechtspraak;
import com.google.gson.GsonBuilder;
import okhttp3.HttpUrl;
import okhttp3.Response;
import javax.xml.bind.JAXBException;
import javax.xml.xpath.XPathExpressionException;
import java.io.IOException;
import java.net.URI;
/**
* Created by maarten on 28-9-15.
*/
public class Cou... | Java | src/main/java/org/leibnizcenter/rechtspraak/CouchInterface.java | digitalheir/java-rechtspraak-library | mit | 939 | 35 | codeparrot/github-code |
3d65f8ec38b335461530edcdbda00d26ec5f3602aa7d25c7d2cdbb4279ea67b5 | /**
* @license Highcharts JS v9.3.2 (2021-11-29)
*
* Old IE (v6, v7, v8) module for Highcharts v6+.
*
* (c) 2010-2021 Highsoft AS
* Author: Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['defa... | JavaScript | ajax/libs/highcharts/9.3.2/modules/oldie.src.js | cdnjs/cdnjs | mit | 65,827 | 1,443 | codeparrot/github-code |
361ec7cd7718fe7ccd11e68e61c5eb5ddc8333794d5475811f8877cd6e2ae5b2 | import { Injectable, Injector } from '@angular/core';
import { DomService } from '../shared/dom/dom.service';
import { PortalInjector } from '../shared/portal/portal-injector';
import { extendObject } from '../shared/util/object-extend';
import { NwbModalSearchComponent } from './modal-search.component';
import { Obser... | TypeScript | projects/ng-wizi-bulma/src/lib/modal-search/modal-search.service.ts | WiziShop/ng-wizi-bulma | mit | 1,933 | 71 | codeparrot/github-code |
9bdfbb6d84bdd5c2842be6b8080b7094264a1375af26d3f8f254ea1ec6edf0b0 | /* eslint-disable */
;(function(root, factory) {
if (typeof define === 'function' && define.amd) { // AMD
define(['../core'], factory);
} else if (typeof exports === 'object') { // Node.js
module.exports = factory(require('../core'));
} else { // Browser
root.Blockly.Msg = factory(root.Blockly);
}
}... | JavaScript | ajax/libs/blockly/2.20190722.1/msg/ug-arab.js | cdnjs/cdnjs | mit | 38,109 | 450 | codeparrot/github-code |
aa677a60e7dbd6f7a58d480e262566db3ae06cee4ea2fa05670e9ee76d246671 | /**
* Hardmode Interactive
*/
function GetPluginSettings()
{
return {
"name": "Dialog Box",
"id": "DialogBox",
"version": "1.0",
"description": "Cuponera para Construct 2",
"author": "HardMode",
"help url": "",
"category": "Form controls",
"type": "object", // not in layout
"rotatab... | JavaScript | Source/Cuponera/edittime.js | son1cman/Guanawin | cc0-1.0 | 4,470 | 125 | codeparrot/github-code |
098009a9b52f53de33d0364dcaa33e82becf7f94136546be698686912cfe2a83 | package model;
import java.util.Date;
public class Contato {
private String nome;
private String email;
private Character sexo;
private Date nascimento;
public Contato(String nome, String email, Character sexo, Date nascimento) {
this.nome = nome;
this.email = email;
this... | Java | AgendaEletroncia/src/model/Contato.java | MarceloTTorres/Introducao-a-Arquiterura-de-Software-2017 | cc0-1.0 | 945 | 52 | codeparrot/github-code |
ca799d589275b027d89ac64a9cb3aad4cabd25a8b73dd96a0011dda3e40aeadf | // Relative imports.
import {
FETCH_RESULTS,
FETCH_RESULTS_FAILURE,
FETCH_RESULTS_SUCCESS,
TOGGLE_SHOW_MOBILE_FORM,
TOGGLE_TOOL_TIP,
} from '../constants';
const initialState = {
error: '',
fetching: false,
hasFetchedOnce: false,
page: 1,
perPage: 10,
results: undefined,
showMobileForm: true,
... | JavaScript | src/applications/yellow-ribbon/reducers/index.js | department-of-veterans-affairs/vets-website | cc0-1.0 | 1,433 | 64 | codeparrot/github-code |
65cc6b6101ced6f421f361a8172a52a7079cfa28410121f8c304274124b7fed4 | %%
%% Automatically generated file from DocOnce source
%% (https://github.com/hplgit/doconce/)
%%
%%
%-------------------- begin preamble ----------------------
\documentclass[%
oneside, % oneside: electronic viewing, twoside: printing
final, % draft: marks overfull hboxes, figures ... | TeX | doc/Projects/2020/hw1/pdf/hw1.tex | CompPhysics/MachineLearning | cc0-1.0 | 20,208 | 562 | codeparrot/github-code |
12a5dc80a49b429b492151e68f5b84080dea9c508e10b0f3c34b9718d76fde02 | <!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="description" content="Non-relativistic and R... | HTML | doc/pub/scatteringtheory/html/._scatteringtheory-bs063.html | ManyBodyPhysics/NuclearForces | cc0-1.0 | 30,134 | 556 | codeparrot/github-code |
9a15bb433382d3fc35b1e81ddeb93b9a155f12b6ec642673543b825316080ca5 | {% extends "base.html" %}
{% block header %}
<h1>{{p['name']}}</h1>
{% endblock header %}
{% block content %}
<h1>{{p['position'].capitalize()}}</h1>
<img src="{{p.get('avatar')}}" style="width:200px;height:200px;"/>
<p>{{p.get('bio', '').replace('\n\n', '</p><p>')}}</p>
{%if 'honors' in p and len(p['honors']) > 0%}
... | HTML | regolith/templates/person.html | hodger/regolith | cc0-1.0 | 5,773 | 173 | codeparrot/github-code |
8bdaa4c43fd40542f1e6ea91bf4c4f93b6d7993b155a20fdd35be686b1a89df3 | /********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, ... | C++ | loaders__jpg__jmemmgr.cpp | pgrawehr/golgotha | cc0-1.0 | 42,128 | 1,246 | codeparrot/github-code |
7c2e26210913940347de50eef4317d6bd5fa25ffd8730afc791a19cd5df04fd8 | \documentclass[10pt,letterpaper,oneside]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{multicol}
\begin{document}
% Please add the following required packages to your document preamble:
% \usepackage{multiro... | TeX | Tables/PSQI-scale-features-description.tex | arturo-laflor/apuntes-articulo-feature-selection | cc0-1.0 | 2,852 | 30 | codeparrot/github-code |
6aed8d1621a23bdacefb589dcde5b0c69f8f9390cb6356274845bd241dba93ff | import _ from 'platform/utilities/data';
import {
transformForSubmit,
filterViewFields,
} from 'platform/forms-system/src/js/helpers';
import removeDeeplyEmptyObjects from 'platform/utilities/data/removeDeeplyEmptyObjects';
import {
causeTypes,
specialIssueTypes,
CHAR_LIMITS,
defaultDisabilityDescriptions... | JavaScript | src/applications/disability-benefits/all-claims/submit-transformer.js | department-of-veterans-affairs/vets-website | cc0-1.0 | 10,524 | 330 | codeparrot/github-code |
344e66bb747deba832a558359704de0bc10e95c973aa40d193879ff22b5290a0 | <!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="ko">
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head><meta http-eq... | HTML | egloos/calmglow.egloos.com/4527310.html | calmglow/calmglow.github.io | cc0-1.0 | 28,756 | 516 | codeparrot/github-code |
d31336ed9f1cf4a0c05cd0b628a58f9ede19be8262de50a1d981c7658e97a4da | <!doctype html>
<html class="theme-next muse use-motion">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Cache-Co... | HTML | tags/algorithms/page/22/index.html | knarfeh/knarfeh.github.io | cc0-1.0 | 17,345 | 712 | codeparrot/github-code |
3a4767ecc93f2dbf930f854866846ee729de6dc04b0b000c59fa001d0d6aa8c6 | package com.cs1635.classme;
import android.app.NotificationManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.ActionBar;
import android.support.v7.app.Action... | Java | ClassMe/src/com/cs1635/classme/ChatActivity.java | CS1635-ClassMe/Repo2 | cc0-1.0 | 6,271 | 213 | codeparrot/github-code |
2f2ec44137ba4af83328e4332d9e8013879065a4fb079d2c27f9230ec12c2f60 | var chai = require( 'chai' );
var expect = chai.expect;
var scorecardSearch = require( '../../src/disclosures/js/utils/construct-scorecard-search' );
describe( 'construct-scorecard-search', function() {
it( 'returns a program + location search', function() {
var pcip = '25',
zip = '20552',
radiu... | JavaScript | test/js-unit/construct-scorecard-search-spec.js | mistergone/college-costs | cc0-1.0 | 2,162 | 67 | codeparrot/github-code |
b1db3da83063664bcac14c1de7319a9c27d82abf80ba14ff2fbdf2cbb5317f66 | var config = require( "./config" );
var sortedcommands = [] // Array of all the commands sorted alphabetically
var randomIntSeed = 0;
function randomInt(min, max) {
max = max || 1;
min = min || 0;
randomIntSeed = (randomIntSeed * 9301 + 49297) % 233280;
var rnd = randomIntSeed / 233280;
r... | JavaScript | main.js | meepdarknessmeep/hash.js | cc0-1.0 | 4,048 | 179 | codeparrot/github-code |
add27b484ac50f5084a3fd0a8232361a95015cf300284dc45cc9b8089640d582 | % $Id: faq-projects.tex,v 1.29 2014/01/28 18:17:36 rf10 Exp rf10 $
\section{Current \TeX{}-related projects}
\Question[Q-LaTeX3]{The \LaTeX{} project}
The \LaTeX{} project team (see \URL{http://www.latex-project.org/latex3.html})
is a small group of volunteers whose aim is
to produce a major new document processing ... | TeX | faq-projects.tex | uktug/uk-tex-faq | cc0-1.0 | 32,252 | 645 | codeparrot/github-code |
c60f6d1f57317b225b67f9d708a96f297fea88eef9a32b8e76e4badddd8a497c | package tb.common.tile;
import java.util.ArrayList;
import java.util.List;
import tb.common.entity.EntityAIAvoidCampfire;
import thaumcraft.common.config.ConfigBlocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLog;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.ai.Enti... | Java | src/main/java/tb/common/tile/TileCampfire.java | KryptonCaptain/ThaumicBases | cc0-1.0 | 4,760 | 186 | codeparrot/github-code |
8ab33cfa18cc8725102d078e4652902176679056832ee5f826c3dfde62098811 | /*******************************************************************************
* Copyright (c) 2014
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www... | Java | UI/org.splevo.ui/src/org/splevo/ui/wizards/vpmanalysis/VPMAnalysisWizardPageChangeListener.java | kopl/SPLevo | epl-1.0 | 2,058 | 56 | codeparrot/github-code |
900972d88135d307115c2d17970e2d08cab584e621d5f5b6c90313e686a95e8d | var iotf = require("../");
var appClientConfig = {
org: 'xxxxxx',
id: 'myapp',
"domain": "internetofthings.ibmcloud.com",
"auth-key": 'a-xxxxxx-xxxxxx',
"auth-token": 'xxxxx',
"type" : "shared",
"instance-id" : "xxxxx",
"clean-session" : false
};
var appClient = new iotf.IotfApplication(appClientConfi... | JavaScript | samples/MixedDurableSubscription.js | ibm-messaging/iot-nodejs | epl-1.0 | 899 | 40 | codeparrot/github-code |
fdfa4eec0df6e38ff51efe9832c5090e386c690e58b7eb324e289e12f97fff07 | /*
* Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org... | Java | opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/base/messages/FollowerInitialSyncUpStatus.java | qqbbyq/controller | epl-1.0 | 1,296 | 38 | codeparrot/github-code |
9665d5674deee0d70fb0fd9268477eef3f1f070dea2cc70a2ac5c27680b9c27e | /**
* Copyright 2009-2016 Université Paris Ouest and Sorbonne Universités,
Univ. Paris 06 - CNRS UMR 7606 (LIP6)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is av... | Java | pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/multisets/impl/ContainsImpl.java | lhillah/pnmlframework | epl-1.0 | 18,400 | 726 | codeparrot/github-code |
2050b7bde4029a255c84ef1328d019f77a8dfd396100165050fadd3c42eb28d1 | <?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="(C) Co... | HTML | sdk/GUID-FD678B12-C878-3AE6-B5BE-557F0BEF20B3.html | warlordh/fork_Symbian | epl-1.0 | 20,247 | 756 | codeparrot/github-code |
72028ccf169a1e7627fb17fa86819fb7c8d67516cad0979931c9adc92ac46306 | /**
* Copyright (c) 2010-2021 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | Java | bundles/org.openhab.binding.openuv/src/main/java/org/openhab/binding/openuv/internal/handler/OpenUVReportHandler.java | MikeJMajor/openhab2-addons-dlinksmarthome | epl-1.0 | 10,485 | 257 | codeparrot/github-code |
f36430805896affa04fbbf59f9284fce7ef7afaae796bfb26980e58407a4fdfc | /*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | Java | opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/api/GroupingBuilder.java | lbchen/odl-mod | epl-1.0 | 1,120 | 40 | codeparrot/github-code |
140c78ba5b6d29fd754d642fb38a158bc1877acea6855bea246acb268a5536a8 | /*******************************************************************************
* Copyright (c) 2017-2019 DocDoku.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available a... | Java | eplmp-core/src/main/java/org/polarsys/eplmp/core/exceptions/UserGroupNotFoundException.java | polarsys/eplmp | epl-1.0 | 1,197 | 43 | codeparrot/github-code |
5bf6425bb6241a0103cd3bcae517e536c728af992c1c38cd987df390f05dd9ba | package states;
import java.awt.Color;
import java.awt.Graphics2D;
import runner.Game;
import sound.SoundBoard;
import utilities.Utilities;
public class MusicSelectionState extends State
{
private static int currentSong;
public MusicSelectionState(Game game)
{
super(game);
currentSong = 0;
... | Java | src/states/MusicSelectionState.java | DasAvh/APCS_3rd_Hour_2015 | epl-1.0 | 1,471 | 70 | codeparrot/github-code |
c8546450d32ca1210a3a06e8a23cee775c766006d8eb3edf85d791a9a3bc01b2 | /*
* Copyright (c) 2012-2017 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Red H... | Java | plugins/plugin-debugger/che-plugin-debugger-ide/src/test/java/org/eclipse/che/plugin/debugger/ide/debug/DebuggerPresenterTest.java | sudaraka94/che | epl-1.0 | 10,332 | 291 | codeparrot/github-code |
570b187cf728775c50ee3c5f262a5656315021de359891d3f360fd058e628cb9 | /**
* Copyright (c) 2016-2019 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
/*... | Java | com.zsmartsystems.zigbee.dongle.cc2531/src/main/java/com/zsmartsystems/zigbee/dongle/cc2531/network/ZigBeeNetworkManager.java | cschwer/com.zsmartsystems.zigbee | epl-1.0 | 50,952 | 1,327 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.