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 |
|---|---|---|---|---|---|---|---|---|
59bf1c45fc516cc633a90d3e0372c53606032816e546efeb554f017edd8d8956 | #!/usr/bin/env python
import sys
import subprocess
import os
from math import floor, ceil
import numpy
try:
from mpi4py import MPI
except:
pass
import h5py
import hifive
import heatmap
def write_heatmap_dict(datafname, modelprefix, outfname, binsize=1000000, includetrans=False, chroms=[]):
# check if M... | Python | Scripts/HiCPipe/create_hicpipe_heatmap_h5dict.py | bxlab/HiFive_Paper | bsd-3-clause | 8,904 | 211 | codeparrot/github-code |
1e6151be37b096d7c22a4bd7f53f6af2b7a16fb04fe14f408869bcd447ea7ffe | #!/usr/bin/env python
import pickle
from flexbe_core import EventState, Logger
from flexbe_msgs.msg import BehaviorInputAction, BehaviorInputGoal, BehaviorInputResult
from flexbe_core.proxy import ProxyActionClient
class InputState(EventState):
'''
Implements a state where the state machine needs an input fr... | Python | flexbe_states/src/flexbe_states/input_state.py | team-vigir/flexbe_behavior_engine | bsd-3-clause | 2,805 | 74 | codeparrot/github-code |
f190660df74fbce02d5d7211ee1284953d84bbba39d9ad50d8cec1e7e1d258f6 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/display/mac/display_link_mac.h"
#include <stdint.h>
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "b... | C++ | ui/display/mac/display_link_mac.cc | endlessm/chromium-browser | bsd-3-clause | 9,617 | 267 | codeparrot/github-code |
87815d61ea24b62011a4b097716956038983f8a770c53fd70e77ce737d5b6e26 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/bluetooth/floss/bluetooth_adapter_floss.h"
#include "base/callback_helpers.h"
#include "base/containers/contains.h"
#include "base/locat... | C++ | chromium/device/bluetooth/floss/bluetooth_adapter_floss.cc | ric2b/Vivaldi-browser | bsd-3-clause | 24,692 | 747 | codeparrot/github-code |
b203420719c5f0b3de2f689e4fb2f7f9d066b5cfdb1c3f84c9bde453ccf9903d | /*================================================================================
Copyright (c) 2012 Steve Jin. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must re... | Java | src/com/vmware/vim25/TaskInProgress.java | xebialabs/vijava | bsd-3-clause | 2,001 | 48 | codeparrot/github-code |
c6979bbcf5ad76b2addec705fcbb3243dd8862bf9d46862fc11021ef1e251d4a | /*************************************************************************************
* Gemini Statistic Utility *
*-----------------------------------------------------------------------------------*
* Copyright (c) 2016, Peter Baumann ... | C# | src/Common/Services/GeminiService.cs | krck/Gemini-Statistic-Utility | bsd-3-clause | 9,555 | 174 | codeparrot/github-code |
ec723d606ac60dd8566fd4f49625ca018e846a956d95e3a867a7d2be616bb205 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_ENCRYPTEDMEDIA_CONTENT_DECRYPTION_MODULE_RESULT_PROMISE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_ENCRYPTED... | C | third_party/blink/renderer/modules/encryptedmedia/content_decryption_module_result_promise.h | endlessm/chromium-browser | bsd-3-clause | 3,419 | 85 | codeparrot/github-code |
d1611b58a51e509e0b23bda7ecdf1ced8c96d3923a83b4d19f70779b84fd98fb | // Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved.
package jodd.madvoc;
import jodd.http.HttpBrowser;
import jodd.http.HttpRequest;
import jodd.http.HttpResponse;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
pub... | Java | jodd-madvoc/src/testInt/java/jodd/madvoc/ExcTest.java | wsldl123292/jodd | bsd-3-clause | 984 | 41 | codeparrot/github-code |
1f00da5d65b955e3c7f53aa723fc05549db5512e01e50d3c57e7e833d200b7e3 | #include "util.h"
#include "rbtree_augmented.h"
struct mytype {
struct rb_node node;
int key;
};
struct mytype *my_search(struct rb_root *root, int key)
{
struct rb_node *node = root->rb_node;
while (node) {
struct mytype *data = container_of(node, struct mytype, node);
int result;
result = key - data->ke... | C | c/sort/rbtree.c | yubo/program | bsd-3-clause | 1,658 | 90 | codeparrot/github-code |
8d20183cc6fb69e4961d5f99fe4902226fdac26241bf0809275b09ac771f7c8a | package limitnet
import (
"errors"
"math"
"net"
)
var (
// errClosing, following the convention at https://golang.org/src/pkg/net/net.go?h=OpError#L285
errClosing = errors.New("use of closed network connection")
// maxTokens is maximum for MaxConns and the capacity of the throttle channel.
maxTokens = math.Max... | GO | throttledListener.go | kornel661/limitnet | bsd-3-clause | 6,291 | 198 | codeparrot/github-code |
a5c94c3350036d3c631b9930132bb792e3e106b9993dcfc619e31b7fb89c2878 | /**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
import pa... | JavaScript | packages/jest-regex-util/src/index.js | skovhus/jest | bsd-3-clause | 977 | 37 | codeparrot/github-code |
70a67b0cdd06090e4d31c24caf0a91d56be16f0c4c91e6085469c820c7923c3a | <?php
/**
* VisualPHPUnit
*
* PHP Version 5.3<
*
* @author Nick Sinopoli <NSinopoli@gmail.com>
* @copyright 2011-2015 VisualPHPUnit
* @license http://opensource.org/licenses/BSD-3-Clause The BSD License
* @link https://github.com/VisualPHPUnit/VisualPHPUnit VisualPHPUnit
*/
namespace nx\core;
/**
*... | PHP | nx/core/Response.php | wil0/VisualPHPUnit | bsd-3-clause | 5,223 | 176 | codeparrot/github-code |
21862ed59403de4e191e63bfaa81a7e4fa56b2aecd97f5a9cd4d6ad5762ca19b | <?php
/**
* Image основная модель для работы с изображениями
*
* @author yupe team <team@yupe.ru>
* @link http://yupe.ru
* @copyright 2009-2013 amyLabs && Yupe! team
* @package yupe.modules.image.models
* @since 0.1
*
*/
/**
* This is the model class for table "Image".
*
* The followings are the available... | PHP | protected/modules/image/models/Image.php | a-vitalik/yupe | bsd-3-clause | 10,752 | 360 | codeparrot/github-code |
13369edf3170e4579b4dcc364eab6e99aa8fc835e7a9568e97adf5d67ad6cae4 | namespace LifeLogger.GDocs
{
using System;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
using Google.GData.Spreadsheets;
using System.Collections.Generic;
using Google.GData.Client;
public class Controller
{
private readonly SpreadsheetsService ... | C# | src/LifeLogger/LifeLogger.GDocs/Controller.cs | foliveira/life-logging | bsd-3-clause | 5,200 | 148 | codeparrot/github-code |
1f67f2bd6f8800490c22cb7928bdca441bf6c61e8e8cc6289256127c2ff2e74a | import * as Hammer from "hammerjs"
import {Input} from "hammerjs"
type HammerEvent = typeof Input
import {Signal} from "./signaling"
import {DOMView} from "./dom_view"
import {logger} from "./logging"
import {offset, Keys} from "./dom"
import {getDeltaY} from "./util/wheel"
import {reversed} from "./util/array"
impor... | TypeScript | bokehjs/src/lib/core/ui_events.ts | timsnyder/bokeh | bsd-3-clause | 17,932 | 527 | codeparrot/github-code |
275d8f423a8e1286228e81032593d4453d36d0ba27e3639e32d8d5b744294ea9 | /*******************************************************************************
Copyright (c) 2018, Jan Koester jan.koester@gmx.net
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions ... | C | src/os/windows/lock.h | Tuxist/libhttppp | bsd-3-clause | 2,010 | 50 | codeparrot/github-code |
6f17c4a28c105834773bebf0eba38e98d7da0a0302266ef1f85998e8a3ed58e3 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# ... | Python | src/secondaires/navigation/equipage/controle.py | vlegoff/tsunami | bsd-3-clause | 5,038 | 129 | codeparrot/github-code |
9d4ab9fa092b8f702250456aeec00f3355bfa176bf025a1a728469f8d825a3f0 | /*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
namespace stm32plus {
namespace net {
/**
* Class to represent the lifecycle of a TCP connection. This is a ba... | C | lib/include/net/transport/tcp/TcpConnection.h | 0x00f/stm32plus | bsd-3-clause | 11,902 | 370 | codeparrot/github-code |
9b4ddce464d507daa233fce3d0342ca5a626c24d98253c1ceac32c15f51f85d3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Owin.Security;
using AspnetIdentitySample.Models;
usin... | C# | AspnetIdentitySample-master/AspnetIdentitySample/Controllers/AccountController.cs | anhcop86/SN-Stock | bsd-3-clause | 14,594 | 421 | codeparrot/github-code |
b8c18d9598d4edfc4623cdc70dcb77d501ae88f9ff3ca77b66a5d2bd7318a8f4 | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package dashboard contains shared configuration and logic used by various
// pieces of the Go continuous build system.
package dashboard
import (
"strconv"... | GO | dashboard/builders.go | proppy/build | bsd-3-clause | 22,781 | 616 | codeparrot/github-code |
6fe2ef392bc4aabccdf5d24837f11662b8752b4eb9c7a590da6ef7f5242d9e67 | from django import forms
from django.conf import settings
from django.utils.translation import gettext_lazy as _
from django.contrib import admin
from django.contrib.auth.models import Group
from django_messages.utils import get_user_model
User = get_user_model()
if "notification" in settings.INSTALLED_APPS:
from... | Python | django_messages/admin.py | fpischedda/django-messages | bsd-3-clause | 4,053 | 116 | codeparrot/github-code |
aad7af8ace0cc0078b8189cc552b929d24bdf9b3daf48bb29f6aa8056cd8f0b2 | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/printing/print_job.h"
#include "base/message_loop.h"
#include "base/timer.h"
#include "chrome/browser/printing/print_jo... | C++ | chrome/browser/printing/print_job.cc | rwatson/chromium-capsicum | bsd-3-clause | 10,798 | 356 | codeparrot/github-code |
4cb8e7fa620282734b6c6923ae429d6cc9b3fbaa3c8ca796cf97572b2cdfd342 | # -*- coding: ISO-8859-1 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2014, HFTools Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#---------------------... | Python | hftools/file_formats/hdf5/v_01.py | hftools/hftools | bsd-3-clause | 4,699 | 128 | codeparrot/github-code |
b50c515a5dcb11168cf45ab795e2c2f73d81bad5a1c52224f19b63cfd8292e30 | /*
* Copyright (c) 2003-2013, KNOPFLERFISH project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this ... | Java | ant/src/org/knopflerfish/ant/taskdefs/bundle/FileUtil.java | knopflerfish/knopflerfish.org | bsd-3-clause | 5,403 | 157 | codeparrot/github-code |
d2428189dfc4da33603916343334f58a6c8a4323d7be652089508133b0d07d0e | <?php
namespace backend\modules\m1\models;
use Yii;
use common\components\IndoDateTimeBehavior;
use kartik\helpers\Html;
use yii\data\ActiveDataProvider;
use yii\behaviors\TimestampBehavior;
use yii\web\UploadedFile;
use backend\models\Parameter;
/**
* This is the model class for table "pastor".
*
* @property in... | PHP | backend/modules/m1/models/Pastor.php | peterjkambey/gpdi | bsd-3-clause | 7,267 | 231 | codeparrot/github-code |
0bd7570e051595f874e025901549feaa631c5c9e29f436485380ea7a59f41cad | using System;
using System.Reflection;
using System.Threading.Tasks;
using SST.Enums;
using SST.Interfaces;
using SST.Model;
using SST.Util;
namespace SST.Core.Commands.None
{
/// <summary>
/// Command: vote yes to a team balance suggestion.
/// </summary>
public class AcceptTeamSuggestCmd : IBotComma... | C# | SST/Core/Commands/None/AcceptTeamSuggestCmd.cs | syncore/SST | bsd-3-clause | 6,551 | 174 | codeparrot/github-code |
33f465fbc2e79022699e2c47fc99e4123b4ed7e90fb49e81c8a07b72d22bbead | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/ukm_internals_ui.h"
#include <stddef.h>
#include <memory>
#include <string>
#include <utility>
#include "base/bind.h"
#includ... | C++ | chromium/content/browser/ukm_internals_ui.cc | ric2b/Vivaldi-browser | bsd-3-clause | 3,632 | 107 | codeparrot/github-code |
a22b28ec5837eeac4c9300e81465339b03bc5b39d1f14b7f403981ec3dfa1f18 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/extensions/common/android/xwalk_extension_android.h"
#include "base/android/jni_android.h"
#include "base/bind.h"
#include "base/logging... | C++ | extensions/common/android/xwalk_extension_android.cc | seanlong/crosswalk | bsd-3-clause | 5,898 | 195 | codeparrot/github-code |
84ae49569e27c5a1f4e37c3a5bae4429a6b7402fbd69bda543e75b18848601d1 | /*
* Copyright (c) 2015, Juan Carlos Rueda (xjrueda@gmail.com) All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* no... | C++ | src/Acceptor.cpp | xjrueda/fixprime | bsd-3-clause | 2,219 | 59 | codeparrot/github-code |
0f6eb5a65604c8fd0009f324e3f38227f5712c62c1c0e0d7ddc9cae3340f70f0 | module Alchemy
module Admin
module PagesHelper
include Alchemy::BaseHelper
# Returns options tags for the screen sizes select in page edit view.
#
def preview_sizes_for_select
options_for_select([
'auto',
[Alchemy.t('240', scope: 'preview_sizes'), 240],
... | Ruby | app/helpers/alchemy/admin/pages_helper.rb | akra/alchemy_cms | bsd-3-clause | 1,636 | 51 | codeparrot/github-code |
ceef952d444c24f6731d3a34556fdca6697042e63a2f3ce92801ea5cd1dff379 | /*
* Copyright (c) 2008-2011 Zhang Ming (M. Zhang), zmjerry@163.com
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 2 or any later version.
*
* Redistribution and ... | C | include/statistics-impl.h | joshring/tdcwt | bsd-3-clause | 5,418 | 219 | codeparrot/github-code |
97e7e4c0c09dd0cf236f3f678940780dce4b58b26078e2ba9b4afc77a8b74afd | function facebookCall (callback) {
if (window.facebookIsLoaded) {
FB.getLoginStatus(function (response) {
if (response.status === 'connected') {
var signedRequest = response.authResponse.signedRequest;
callback(signedRequest);
}
});
} else ... | JavaScript | static/js/common.js | kmatzen/nyc3dcars-labeler | bsd-3-clause | 3,873 | 122 | codeparrot/github-code |
64fe7fb80cfdb941834c6c52e88a67f4f00f78238d2255757fb0c19d6cfd98c8 | <?php
use yii\helpers\Url;
use yii\web\View;
?>
<!-- jQuery 2.1.4 -->
<script src="<?= Yii::$app->params['backend_url'] ?>/admin-lte/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<!--<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>-->
<script src="<?= Yi... | PHP | backend/views/layouts/js.php | quyettvq/linhbui.vn | bsd-3-clause | 18,372 | 412 | codeparrot/github-code |
05c7a77324eb0c4a6b3bd4a69e067012c641fdef30a978233c9fefcfe0d9b797 | /*
* wm_adsp.h -- Wolfson ADSP support
*
* Copyright 2012 Wolfson Microelectronics plc
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the F... | C | unionfs-3.10.y/sound/soc/codecs/wm_adsp.h | prasidh09/cse506 | gpl-2.0 | 1,788 | 81 | codeparrot/github-code |
77a3a90549a91cf9cc52f79a8491af8c6ac61d84b94494d6a5973273b4233564 | #!/usr/bin/env node
"use strict";
/* jshint strict: true */
/* jshint node: true */
/* jshint unused: true */
var fs = require('fs');
var performQuery = function(pv, queryParams) {
console.log('Performing a simple query...');
return pv.sendRequest('Query', queryParams);
};
var printResult = function(json) ... | JavaScript | test/index.js | pVelocity/pvserver | isc | 3,922 | 119 | codeparrot/github-code |
a05548000c92d873fce11bf35ae11cfab7991dd8bfb7df1e2575524d1ae40ebc | #
# Albow - Controls
#
#-# Modified by D.C.-G. for translation purpose
from pygame import Rect, draw
from widget import Widget, overridable_property
from theme import ThemeProperty
import resource
from translate import _, getLang
class Control(object):
highlighted = overridable_property('highlighted')
enabl... | Python | albow/controls.py | OniOniOn-/MCEdit-Unified | isc | 9,986 | 377 | codeparrot/github-code |
94063188b9802c62e9c496fac146d16531f93b6e4825cc3b45f50129a4c76ba9 | /*-
* Copyright (c) 2003-2009 RMI Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | C | FreeBSD/sys/mips/rmi/dev/sec/rmisec.c | eriknstr/ThinkPad-FreeBSD-setup | isc | 15,690 | 572 | codeparrot/github-code |
b012327f15ae587c2a97c738719bd8500d2f21ceb904ca99588236e8261f61c5 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2003-2011 Edgewall Software
# Copyright (C) 2003-2004 Jonas Borgström <jonas@edgewall.com>
# Copyright (C) 2004-2005 Christopher Lenz <cmlenz@gmx.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part ... | Python | Lib/gds/burp/core.py | d453d2/burp-jython-console | isc | 7,126 | 203 | codeparrot/github-code |
f8c5c02518af0a6b8b293ed16afe573e84fd131f41d24e681adfebf2a5603ad3 | package main
import (
"fmt"
"github.com/gokyle/webshell"
"github.com/gokyle/webshell/auth"
"net/http"
)
var (
app *webshell.WebApp
store *auth.SessionStore
index = webshell.MustCompileTemplate("templates/index.html")
)
type Page struct {
Authenticated bool
Status int
... | GO | auth/examples/session/server.go | gokyle/webshell | isc | 2,669 | 103 | codeparrot/github-code |
252cc6795c902dd77463cb68ca5c060b6cf3f42fd7f2145dd79103271f447e72 | //===-- LLVMUserExpression.h ------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | FreeBSD/contrib/llvm/tools/lldb/include/lldb/Expression/LLVMUserExpression.h | eriknstr/ThinkPad-FreeBSD-setup | isc | 5,511 | 119 | codeparrot/github-code |
2a5d786e3ebfebb8e4dbb42467e828e2c2e8a8ccf32b3e161ea930364560d75b | """
Print events from a mysql binlog.
"""
import logging
import os.path
import sys
from ybinlogp import YBinlogP
def get_filename():
if len(sys.argv) != 2:
raise SystemExit("Usage: %s <filename>" % sys.argv[0])
return sys.argv[1]
def main(filename):
dirname = os.path.dirname(filename)
parse... | Python | testing/print_events.py | Yelp/ybinlogp | isc | 876 | 37 | codeparrot/github-code |
2661cd2c36f3535a6c91eeb49e018f6d8f06ea2cfe8f797995f555b7bd9e484b | #ifndef __OY_MISC_H__
#define __OY_MISC_H__
#include <yices.h>
#include <caml/mlvalues.h>
#include <caml/threads.h> // for caml_release/acquire_runtime_system
#include <caml/fail.h> // for failures
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#define NORETURN __attribute__((noreturn))
#else
#define UNUSED
#... | C | src/misc.h | maelvalais/ocamlyices2 | isc | 2,668 | 99 | codeparrot/github-code |
af317e4fa2184e276bceffbf26428ddea5e8d1d6f83bd11d4ccb3f5ac89470e9 | /*!
* Shifty Core
* By Jeremy Kahn - jeremyckahn@gmail.com
*/
var Tweenable = (function () {
'use strict';
// Aliases that get defined later in this function
var formula;
// CONSTANTS
var DEFAULT_SCHEDULE_FUNCTION;
var DEFAULT_EASING = 'linear';
var DEFAULT_DURATION = 500;
var UPDATE_TIME = 1000 ... | JavaScript | src/shifty.core.js | modulexcite/shifty | mit | 18,501 | 600 | codeparrot/github-code |
7a4745bfcdc196002d422df0656c1dbf1bac7562acfbf2f50db6b40cf59ed37b | /*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
;(... | JavaScript | Metro/jquery.autocomplete.js | smakkerz/la-derma | mit | 21,133 | 808 | codeparrot/github-code |
b491e750bd7c6c8ae930b768578f1c0e7ff45df05394c5513b12d0f78986232b | from direct.task.Task import Task
from pandac.PandaModules import VBase4, PandaNode
from toontown.margins.MarginVisible import MarginVisible
from toontown.nametag import NametagGlobals
from toontown.nametag.Nametag2d import Nametag2d
from toontown.nametag.Nametag3d import Nametag3d
class NametagGroup:
CHAT_TIMEO... | Python | toontown/nametag/NametagGroup.py | Spiderlover/Toontown | mit | 12,905 | 442 | codeparrot/github-code |
0c4f5294ea930999b61c1b7e1740b3a94518b53a407ff491046935ab3178331d | #include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_openfl__v2_events_Event
#include <openfl/_v2/events/Event.h>
#endif
#ifndef INCLUDED_openfl__v2_utils_ByteArray
#include <openfl/_v2/utils/ByteArray.h>
#endif
#ifndef INCLUD... | C++ | bin/mac64/cpp/obj/src/openfl/events/SampleDataEvent.cpp | Mattue/MathSpin | mit | 7,176 | 229 | codeparrot/github-code |
bae719f93f018433385feba295a88f36ea51c619868f439423a8edaada8bcdcb | module Gmail
module Base
module List
module ClassMethods
def all(filters={}, opts={})
max_results = filters[:maxResults] || 100
opts[:items] ||= []
if max_results == -1
filters.merge!({maxResults: 100})
end
response = Gmail.request(base_... | Ruby | lib/gmail/base/list.rb | NicolasMarlier/gmail-ruby-api | mit | 1,699 | 54 | codeparrot/github-code |
3fcfc82b55732f9cb3f1ad798a37dc62e2aefd7cefb968f025b77d5cfaca053b | import {RenameModal} from './rename-modal';
import {ContextMenu} from 'context-menu/context-menu';
import {withModal, ApplicationState, Project, Notification, SelectedProject,
ProjectManager, I18N, EventAggregator, Subscription, autoinject, bindable} from '../../shared/index';
/**
* The project list, shown at the l... | TypeScript | app/src/main/components/project-list.ts | Thanood/monterey | mit | 3,501 | 109 | codeparrot/github-code |
5e9b50efbbfcd99165883b239966a3d8888993eca0ec2f64a0205db85a606442 | <!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">
<head>
<meta charset="utf-8"/>
<meta name="keywords" content="百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"/>
<meta name="description" content="... | HTML | web/lib/ueditor/dialogs/map/show.html | huawenyao/mywebsite | mit | 4,325 | 115 | codeparrot/github-code |
1204d06ee438d7d3d5ae98bc0a9d3753bbdc519c8032f0f467aaf4e6b4abcac0 | include('shared.lua')
if true then return end
local X = -50
local Y = -100
local W = 100
local H = 200
local KeyPos = { {X+5, Y+100, 25, 25, -2.2, 3.45, 1.3, -0},
{X+37.5, Y+100, 25, 25, -0.6, 1.85, 1.3, -0},
{X+70, Y+100, 25, 25, 1.0, 0.25, 1.3, -0},
{X+5, Y+132.5, 25, 25, -2.2, 3.45, 2.9, -1.6},
... | Lua | lua/entities/sent_scoreboard/cl_init.lua | Lexicality/AncientGLuaCrap | mit | 4,142 | 136 | codeparrot/github-code |
398356a098fa2821fb3d7dac33246baca8e3e4046cac1e25e666e2520923948a | /**
* Copyright (C) 2013 by Johan von Forstner under the MIT license:
*
* 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... | Java | opacclient/libopac/src/main/java/de/geeksfactory/opacclient/apis/Pica.java | opacapp/opacclient | mit | 36,194 | 901 | codeparrot/github-code |
8148e7b941298f9377fd67ecf8cd48aae25dbf65dc26130dbd6a38170fbb25bd | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | test/smoke/src/areas/notebook/notebook.test.ts | microsoft/vscode | mit | 3,531 | 75 | codeparrot/github-code |
e7be30d0b8148780cd4676e8eb0ff9437c79c6d032b8430cb9f7d1b3487d9251 | // ```
// env.conf.js
// (c) 2016 David Newman
// blackshuriken@hotmail.com
// env.conf.js may be freely distributed under the MIT license
// ```
// *env.conf.js*
// This is the file where we will configure our Node environmental
// variables for production
// Reference : http://thewebivore.com/super-simple-environm... | JavaScript | config/env.conf.js | kubaszumiato/DotNetVideos | mit | 3,034 | 121 | codeparrot/github-code |
403f697cf7bd2a4f47824ea4fcf13001a2c9f0eb21942058f40889f71cbb2d7c | // Lzma2Decoder.cpp
#include "StdAfx.h"
// #include <stdio.h>
#include "../../../C/Alloc.h"
// #include "../../../C/CpuTicks.h"
#include "../Common/StreamUtils.h"
#include "Lzma2Decoder.h"
namespace NCompress {
namespace NLzma2 {
CDecoder::CDecoder():
_dec(NULL)
, _inProcessed(0)
... | C++ | lzma/CPP/7zip/Compress/Lzma2Decoder.cpp | OlehKulykov/LzmaSDK-ObjC | mit | 6,524 | 274 | codeparrot/github-code |
eb6b274ced9573b5cd49fae3b63da05e0a4b58e56992040cf1cb9259e8c3e1a2 | import React, { Component } from 'react'
import { Link as RouterLink } from 'react-router-dom'
import { connect } from 'react-redux'
import { changeTheme } from 'actions'
import { DARK_THEME } from 'constants'
import {
Header, Article, ArticleButton,
Svg, AboutContent, PageHead
} from 'components'
import { mousePar... | JavaScript | src/pages/AboutPage/AboutPage.js | expdevelop/ultrastore | mit | 1,913 | 73 | codeparrot/github-code |
05f52e6aaa0490dc3d5292762fc1546b3f363d454705ce088189e8527a21bf50 | package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path"
"regexp"
"github.com/ry/v8worker"
)
type module struct {
Err error `json:"err"`
Source string `json:"source"`
Id string `json:"id"`
Filename string `json:"filename"`
Dirname string `json:"dirname"`
... | GO | examples/commonjs/commonjs.go | ry/v8worker | mit | 3,340 | 163 | codeparrot/github-code |
78cf0708b1f768ecac261db8003aac13d1d048d24fcad02a5fd09ebc20bf0f17 | #ifndef CONFIG_H
#define CONFIG_H
#include <string>
#include <vector>
using namespace std;
class Config
{
public:
bool versionDifferent;
string version;
string appDataPath;
string userDocPath;
string userdataParentPath;
string userdataPath;
string currentDir;
string userdataPathOrigin;
string configFilePa... | C | include/BC/Config.h | hiromorozumi/bcplayer | mit | 1,029 | 51 | codeparrot/github-code |
12bad0fd2d260c76c00eb05f98a7b2c233462437dcffc6ca713cfa5261c7380d | package Jan2021Leetcode;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
public class _0301RemoveInvalidParentheses {
public static void main(String[] args) {
System.out.println(removeInvalidParentheses("()())()"));
System.out.println(removeInvalidParenthes... | Java | src/Jan2021Leetcode/_0301RemoveInvalidParentheses.java | darshanhs90/Java-Coding | mit | 1,796 | 59 | codeparrot/github-code |
fcfadc2bb04e7b75a0ca069745c62c960c1b4405572a98db242f0ac258473936 | var clz = require('nativeclasses');
exports.vec2i = clz.vec2i;
exports.vec3i = clz.vec3i;
exports.vec4i = clz.vec4i;
exports.vec2s = clz.vec2s;
exports.vec3s = clz.vec3s;
exports.vec4s = clz.vec4s;
exports.vec2us = clz.vec2us;
exports.vec3us = clz.vec3us;
exports.vec4us = clz.vec4us;
exports.vec2f = clz.vec2f;
expo... | JavaScript | v8/assets/core/glm.js | onepercent/op | mit | 6,204 | 231 | codeparrot/github-code |
9beaf7d155af2a33821d8fbed0863ec0b0234feb84b4138797e80f2ce8adc563 | /* */
(function(process) {
'use strict';
var EventConstants = require("./EventConstants");
var EventPluginHub = require("./EventPluginHub");
var EventPropagators = require("./EventPropagators");
var ExecutionEnvironment = require("./ExecutionEnvironment");
var ReactUpdates = require("./ReactUpdates");
va... | JavaScript | src/jspm_packages/npm/react@0.13.0/lib/ChangeEventPlugin.js | thomjoy/turftest | mit | 6,829 | 175 | codeparrot/github-code |
d36e30818bb90837036155992fe8a0674c7e100b3ed57fbd219f054e58a11ff9 | <!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<!-- Standard Head Part -->
<head>
<title>NUnit - SetupFixture</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-US">
<meta name="n... | HTML | lib/NUnit-2.6.3/doc/setupFixture.html | primeinc/superputty | mit | 7,536 | 236 | codeparrot/github-code |
85dd8304bd88b65c973f312e93c0091942c73ac95453081eec208cfaeef032d3 | package server
import (
"crypto/tls"
"fmt"
"io/ioutil"
"os"
"regexp"
"strings"
"time"
"github.com/containous/flaeg"
"github.com/containous/traefik/acme"
"github.com/containous/traefik/middlewares/accesslog"
"github.com/containous/traefik/provider/boltdb"
"github.com/containous/traefik/provider/consul"
"g... | GO | server/configuration.go | mildis/traefik | mit | 21,924 | 587 | codeparrot/github-code |
2817bd1fd2587d09377ad659dcbe8b0668d5b4874de4a2c1ffe8e6f4066e2ee8 | class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
belongs_to :organisation
belongs_to :country
has_... | Ruby | app/models/user.rb | theodi/pathway | mit | 1,391 | 52 | codeparrot/github-code |
cc4f31171f2d9dc2af4e10b9030ef4401236f722432c85caa1f49c798351d0e2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pyfoo</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial">&... | HTML | pyfoo.html | wufoo/pyfoo | mit | 18,823 | 384 | codeparrot/github-code |
8b44260a3abe37f0a371cd6c06869d0636e137a37f3178060f281b8a4e10fc8a | /*
* User: elijah
* Date: 10/24/2012
* Time: 2:02 PM
* Copyright 2012 LoDC
*/
using System;
using ICSharpCode.AvalonEdit.CodeCompletion;
using ICSharpCode.SharpDevelop.Editor.CodeCompletion;
namespace SharpLuaAddIn
{
public class LuaModuleCompletionData : ICompletionItem
{
public LuaModuleComplet... | C# | SharpLuaAddIn/Src/CompletionDatas.cs | Stevie-O/SharpLua | mit | 4,532 | 181 | codeparrot/github-code |
de05f9bcd132aad203ebda13eeaa9cb8525b5a1dbb6606989e18d70c462917dd | package bimoku.extract.parser;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Patternmatch_Amazon {
public static void main(String[] args) {
String content = "软实力:权力,从硬实力到软实力 [精装] ~ 约瑟夫•奈 (Joseph S. Nye Jr.) (作者),郑汶 (作者) 马娟娟 (译者)"
;
patternmatchAUT_TRANS(content);
}
public stati... | Java | extract/bimoku/extract/parser/Patternmatch_Amazon.java | sdgdsffdsfff/Crawer | mit | 3,567 | 104 | codeparrot/github-code |
3555600d478d17c0d625f2d5c556c3983b2a2e795a02348f2f37830cc483a852 | // ---------------------------------------------------------------------------------
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documenta... | JavaScript | Devices/DirectlyConnectedDevices/NodeJS/Tessel.io/connectthedotstessel.js | jessejjohnson/connectthedots | mit | 9,824 | 258 | codeparrot/github-code |
cd0f85413f8638202617348505db415a9b28123e1af92103515ec812b89d953d | /*
* xattr.h
*
* Platform-independent interface to extended attributes
*
* Copyright © 2015 Nikolaus Rath <Nikolaus.org>
*
* This file is part of Python-LLFUSE. This work may be distributed under the
* terms of the GNU LGPL.
*/
#ifndef UNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ >... | C | lib-dynload/_llfuse/src/xattr.h | sergey-dryabzhinsky/dedupsqlfs | mit | 3,499 | 142 | codeparrot/github-code |
35436305eae46de440ba54a13aafc4dc2ce80de4a5f5ae7954343f6db73f0ce7 | #include <Eigen/Sparse>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <mkl.h>
#include <mkl_solvers_ee.h>
#include <utility>
#define max(a, b) (a) < (b) ? (b) : (a)
struct ConvertToMklResult {
sparse_status_t status;
sparse_matrix_t matrix;
matrix_descr des... | C++ | precondition-add/generalized_condition_number.cpp | essex-edwards/algebraic-ddg | mit | 3,438 | 100 | codeparrot/github-code |
6e9451c658d31a85ff722dec756a0e1cd36d194693e3d1f6fe82cbbb90445a90 | <?php
namespace Oro\Bundle\FormBundle\Autocomplete;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\PropertyAccess\PropertyAccess;
use Symfony\Component\PropertyAccess\PropertyAcces... | PHP | src/Oro/Bundle/FormBundle/Autocomplete/SearchHandler.php | Djamy/platform | mit | 8,636 | 337 | codeparrot/github-code |
8e213587971f381a0591c7ed62ae31ec1e79dd6f6812d645a6c0c320205e1372 | # Copyright (c) 2019, CRS4
#
# 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, publish, distribu... | Python | promort/odin/views/reviewers_report.py | crs4/ProMort | mit | 9,771 | 229 | codeparrot/github-code |
218b14cc02d30f0c929670a7496b01b9e8a41f6d8d2cfba6bf95def0e3d9c8c9 | #ifndef GLHPP_PROGRAM_HPP
#define GLHPP_PROGRAM_HPP
#include "Object.hpp"
#include "Shader.hpp"
#include <vector>
#include <algorithm>
namespace gl
{
class Program: public impl::DefaultableObject<Program,GL_PROGRAM>
{
protected:
Program(impl::NullInitializerFlagType) {}
Program(GLuint initer)
{
id=initer;... | C++ | include/glhpp/Program.hpp | VirtuosoChris/glhpp | mit | 16,495 | 477 | codeparrot/github-code |
4efb1673725541fdad6d51137b5678540815c97ea84dc4be35aca4982475f4b8 | //
// MLPhotoPickerData.h
// MLPhotoLib
//
// Created by leisuro on 16/8/1.
// Copyright © 2016年 Free. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
///iOS8之前
// 选择相片完回调
typedef void(^MLPhotoPickerDataPhotoCallBack)(NSArray *array);
@class MLPhotoPickerGroup;
@interface MLPh... | C | NRShopSugerLib/MyObject/MLPhotoLib/Classes/MLPhotoPicker/Model/MLPhotoPickerData.h | sugerGDev/NRShopSugerLib | mit | 1,322 | 50 | codeparrot/github-code |
f2b68ef47a03dbf715da6c3116807f4c92ecc3e97597262f1887f02df223c1b1 | using MediaBrowser.Model.ApiClient;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
using MediaBrowser.Theater.Interfaces.Navigation;
using MediaBrowser.Theater.Interfaces.Playback;
using MediaBrowser.Theater.Interfaces.Presentation;
using MediaBrowser.Theater.Interfa... | C# | MediaBrowser.Theater.Presentation/ViewModels/TransportOsdViewModel.cs | TomGillen/MediaBrowser.Theater | mit | 17,825 | 616 | codeparrot/github-code |
fe7caabf547924d309a1a3c2ac1fd6c3bbd8450ebeae69cf9aaae2aad780c5e5 | #!/usr/bin/env python3
# Copyright (c) 2015-2021 The Dash Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import time
from decimal import Decimal
from test_framework.blocktools import get_masternode_payment, create... | Python | test/functional/feature_llmq_is_cl_conflicts.py | dashpay/dash | mit | 13,986 | 338 | codeparrot/github-code |
38e5a1175c68037bfae238d47403220dd404d223dc988ea1c0c9b1f787e15f5a | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for Fresco." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
co... | HTML | docs/javadoc/reference/com/facebook/animated/webpdrawable/package-descr.html | facebook/fresco | mit | 19,305 | 407 | codeparrot/github-code |
d34c9f7db0648d03bc7a685f6a5f15ac40115e18559aa3bdfb393314f7647a5c | // Plot widget
// (c) Koheron
class Plot {
public n_pts: number;
public plot: jquery.flot.plot;
public plot_data: Array<Array<number>>;
public yLabel: string = "Power Spectral Density";
private peakDatapoint: number[];
constructor(document: Document, private fft: FFT, private plotBasics: Plot... | TypeScript | examples/alpha250-4/fft/web/plot/plot.ts | Koheron/zynq-sdk | mit | 2,142 | 59 | codeparrot/github-code |
ddc22b3e4ccc67b46e9c119349a906fc35b75fbfd96e4809f88345a638f94891 | <?php
/**
* WordPress Coding Standard.
*
* @package WPCS\WordPressCodingStandards
* @link https://github.com/WordPress/WordPress-Coding-Standards
* @license https://opensource.org/licenses/MIT MIT
*/
namespace WordPressCS\WordPress\Sniffs\WP;
use WordPressCS\WordPress\AbstractFunctionRestrictionsSniff;
/**
... | PHP | WordPress/Sniffs/WP/DeprecatedFunctionsSniff.php | paulschreiber/WordPress-Coding-Standards | mit | 35,551 | 1,417 | codeparrot/github-code |
66b8cdc3fa790862447d37860a1605008048bc6b18d2503439b1806be13b1c13 | import { transactionApi } from '../transactions';
import { addIndex, CollectionTransaction, convertAndAquire, logAggregationError, sortElements, updateIndex } from './commons';
var begin = transactionApi.begin, commit = transactionApi.commit, markAsDirty = transactionApi.markAsDirty;
export function addTransaction(coll... | JavaScript | lib/collection/add.js | gaperton/TransactionalJS | mit | 2,728 | 65 | codeparrot/github-code |
ff7e75f37ce3fd75a08812d49a6a83a80210d64256daa31c0da712d91e6c90ea | package com.cloudbees.jenkins;
import hudson.Extension;
import hudson.Util;
import hudson.model.AbstractProject;
import hudson.triggers.Trigger;
import java.util.Collection;
import java.util.Set;
/**
* Optional interface that can be implemented by {@link Trigger} that watches out for a change in GitHub
* and trigg... | Java | src/main/java/com/cloudbees/jenkins/GitHubTrigger.java | mmitche/github-plugin | mit | 1,865 | 54 | codeparrot/github-code |
89cdbf95c9f50861ff146ea7c36c620b6501a8cd03f46d855ffaeb86bb25c6be | #!/usr/bin/python
# coding=utf-8
################################################################################
import os
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from test import run_only
from mock import Mock
from mock import patch
from mock import mock_open... | Python | src/collectors/docker_collector/test/testdocker_collector.py | TAKEALOT/Diamond | mit | 5,993 | 166 | codeparrot/github-code |
95d3c8b5350c43b3de21022088d1bdaf34a4bdd83f76e29da915537d892f349b | define([], function() {
/**
* NoteModel_MidiCSL represent a note that is ready to be readed by midi player
* @exports MidiCSL/NoteModel_MidiCSL
*/
function NoteModel_MidiCSL(option) {
this.currentTime = (typeof option !== "undefined" && typeof(option.currentTime) !== "undefined") ? option.currentTime : 0.0; /... | JavaScript | modules/MidiCSL/src/model/NoteModel_MidiCSL.js | dmmz/LeadsheetJS | mit | 3,201 | 91 | codeparrot/github-code |
40bd7da0fdcf7ee497d8a025d776d5a880149524e5ed305a577fcd2db81f0265 | #!/usr/bin/env python
# -*- coding: utf8 -*-
#
# A Jira shell (using the Jira XML-RPC API).
#
# <https://confluence.atlassian.com/display/JIRA042/Creating+a+XML-RPC+Client>
# <http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/com/atlassian/jira/rpc/xmlrpc/XmlRpcService.html>
#
__version__ = "1.6.... | Python | lib/jirashell.py | m42e/jirash | mit | 48,170 | 1,324 | codeparrot/github-code |
2a7b1833a1196be50c44bbaa549372268373927b283b74a16cd7e7c0befa58e6 | package io.theholygrail.jsbridge;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.support.v7.app.ActionBarActivity;
import android.webkit.JavascriptInterface;
import android.webkit.ValueCallback;
/**
* Created by brandon on 4/27/15.
*/
public class JSBridge {
final Action... | Java | JSBridge/jsbridge/src/main/java/io/theholygrail/jsbridge/JSBridge.java | Electrode-iOS/Minstrel | mit | 1,993 | 56 | codeparrot/github-code |
daa2e6214dbb3b5343b83edb093b3d0cb63b898cc3279886a6e351d9acf7365a | //===-- DWARFAbbreviationDeclaration.cpp ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | include/llvm/lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp | ensemblr/llvm-project-boilerplate | mit | 6,978 | 220 | codeparrot/github-code |
04af532e0cf035e756b57b61603c1cab799d606d11fc0ecb875c6cc7e87c9626 | <?php
/* SsSsBundle:Product:index.html.twig */
class __TwigTemplate_f3277bf21c6aeca58275d8ac4f3f91777717e54a9fcb2245f3eec73c7d878f37 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("SsSsBundle::lay... | PHP | app/cache/dev/twig/f3/27/7bf21c6aeca58275d8ac4f3f91777717e54a9fcb2245f3eec73c7d878f37.php | 1nv4d3r5/simpleshop | mit | 6,524 | 150 | codeparrot/github-code |
e8fcb0073e59b832ee0806ab704b23e2f3a6157bbaa575649431be81a015f23b | <!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="../logi/jQuery-all.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../logi/reset.css" />
<link rel="stylesheet" type="text/css" href="../index.css" />
<link rel="shortcu... | HTML | website/setup/android.html | Shedings/hrisey | mit | 7,282 | 132 | codeparrot/github-code |
a71f9543b3fe6887b5bf51fd3865b1e67e656567549b1599d91e72780fbcbf90 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Machinecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparamsbase.h>
#include <tinyformat.h>
#include <util.h>
#include <... | C++ | src/chainparamsbase.cpp | machinecoin-project/machinecoin | mit | 1,748 | 50 | codeparrot/github-code |
9cac3fe4e21fba0d6140c713b743b798d8e74e1d87f8ae9a66693d262868c152 | "use strict"
var serialize = require("../lib/serialize_utils.js")
serialize.populateShadowcatTerms(function(agentId){
//serialize.populateShadowcatAgentsNonViaf(agentId,function(){
//})
})
// var cluster = require('cluster');
// if (cluster.isMaster) {
// // cluster.fork()
// // cluster.fork()
// /... | JavaScript | jobs/serialize_mongo_terms_catalog_OLD.js | nypl-registry/registry-ingest | mit | 2,526 | 117 | codeparrot/github-code |
3793419addfe7d41c5e0fb4921c98971dc53b93b6447fd122946fd3ecaaf2cc6 | #!/bin/bash
FN="ASICSdata_1.8.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.11/data/experiment/src/contrib/ASICSdata_1.8.0.tar.gz"
"https://bioarchive.galaxyproject.org/ASICSdata_1.8.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-asicsdata/bioconductor-asicsdata_1.8.0_src_all.tar.gz"
)
M... | Shell | recipes/bioconductor-asicsdata/post-link.sh | roryk/recipes | mit | 1,293 | 47 | codeparrot/github-code |
39c18ae851e26e2fe3fd994a2fd53cc800782e287a9c3d0c51cff891955a02a5 | module Coinbase
module Exchange
# Websocket client for Coinbase Exchange
class Websocket
def initialize(options = {})
@ws_url = options[:ws_url] || "wss://ws-feed.gdax.com"
@product = options[:product_id] || 'BTC-USD'
@keepalive = options[:keepalive] || false
@message_cb... | Ruby | lib/coinbase/exchange/websocket.rb | mikerodrigues/coinbase-exchange-ruby | mit | 2,830 | 120 | codeparrot/github-code |
589ee109974a1c23b2282a0ac69aacf2e3c3419e7194bad5efee93cb393596a3 | #!/usr/bin/node
'use strict';
// Configure PM2 Keymetrics ( must come before requiring any http modules )
let pmx = require('pmx').init({ http : true });
let fs = require('fs');
let path = require('path');
let http = require('http');
let https = require('https');
let helmet = require('helmet');
let exp... | JavaScript | server/app.js | ZenBlank/platform-base | mit | 4,628 | 148 | codeparrot/github-code |
095fc6c6729bae2e068afba9f946028faa075fcdb9676658c4b6f8666d0fabf2 | "use strict";
exports.__esModule = true;
var util_1 = require("../util");
var items_1 = require("../items");
var result_1 = require("../result");
var util_2 = require("./util");
function calculateBWXY(gen, attacker, defender, move, field) {
var _a;
util_2.checkAirLock(attacker, field);
util_2.checkAirLock(... | JavaScript | honkin-8/calc/mechanics/gen56.js | sbthegreat/turskain.github.io | mit | 32,086 | 743 | codeparrot/github-code |
4fe749e273a99431ed84d4470f29e069e6943beb0ff59ed2f887c558c2692a4a | // Boost token_functions.hpp ------------------------------------------------//
// Copyright John R. Bandela 2001.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/tok... | C++ | metamorphosys/META/externals/desert/3rdParty/boost/boost_1_44/boost/token_functions.hpp | pombredanne/metamorphosys-desktop | mit | 19,782 | 642 | codeparrot/github-code |
111530eeee0f0a21d453d19b2e3b4c0ca5080175e10d5bfd5f85554a3f7dce64 | require 'thread'
require 'rack/builder'
require 'lotus/router'
module Lotus
class Container
class Router < ::Lotus::Router
def mount(app, options)
app = app.new(path_prefix: options.fetch(:at)) if lotus_app?(app)
super(app, options)
end
private
def lotus_app?(app)
... | Ruby | lib/lotus/container.rb | benlovell/lotus | mit | 1,272 | 60 | codeparrot/github-code |
f0d10f7dafc5a7b2ea56547b920db6cbae76acf6e23d8237076dbd48b079cc49 | <?php
namespace Chamilo\Core\Repository\ContentObject\Wiki\Display\Component;
use Chamilo\Core\Repository\ContentObject\Wiki\Display\Manager;
use Chamilo\Core\Repository\Storage\DataClass\ComplexContentObjectItem;
use Chamilo\Libraries\Architecture\Application\ApplicationConfiguration;
use Chamilo\Libraries\Architectu... | PHP | src/Chamilo/Core/Repository/ContentObject/Wiki/Display/Component/ReportingTemplateViewerComponent.php | forelo/cosnics | mit | 2,649 | 67 | codeparrot/github-code |
9c7b86adf30d7fdd6514f262a736d8a5359d262eb592f169c8e62a2e00a8b08c | #! /bin/bash
# Copyright (c) 1998 Martin Schulze <joey@debian.org>
# Slightly modified by:
# Luis Francisco Gonzalez <luisgh@debian.org>
# Emanuele Rocca <ema@debian.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... | Shell | urlview/url_handler.sh | KellerFuchs/shell-etc | mit | 3,744 | 142 | codeparrot/github-code |
28d219b0aeab013eb468971e05fd5aa7dc2b53935ad296079754a35871c964bf | import React, {PropTypes} from 'react';
var Utils = require('../../../utils');
var Field = React.createClass({
propTypes: {
name: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
isDirty: PropTypes.bool.isRequired,
validator: PropTypes.func,
validationMessage:... | JavaScript | assets/js/components/common/form/field.js | ShpuntiK/AnimeStorage | mit | 1,337 | 48 | codeparrot/github-code |
acd1fffa8002641d17c2696b24d49e50d272cd8383b0c39468fca78d71974424 |
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/** @author John Miller
* @version 1.3
* @date Mon Sep 21 15:05:06 EDT 2009
* @see LICENSE (MIT style license file).
*/
package scalation.scala2d
import scala.math.{abs, pow, sqrt}
import scalation.scala2d.Colors._
impor... | Scala | scalation_1.3/scalation_mathstat/src/main/scala/scalation/scala2d/QCurve.scala | NBKlepp/fda | mit | 16,255 | 438 | codeparrot/github-code |
0c9317be121261901f250cfc38168201735dcc7e2638759b81a97fe6dd089ee8 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OrbitCamera : MonoBehaviour {
[SerializeField] private Transform target;
public float rotSpeed = 1.5f;
private float rotY;
private Vector3 offset;
void Start () {
rotY = transform.eulerAngles.y;
... | C# | Ch08/Assets/Scripts/OrbitCamera.cs | ivanarellano/unity-in-action-book | mit | 792 | 32 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.