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
c3e77f61fdb0c0f769ce28fcd9ad47b4d13935207cba47e9981f315952829e12
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
C
engine/src/wolf.system/curl/src/multi.c
PooyaEimandar/WolfEngine
mit
99,453
3,213
codeparrot/github-code
e20db9245e12ac47d8f128e88c35b1c07dc4155a82b3c79905fb06798d3ce98e
///\file /****************************************************************************** The MIT License(MIT) Embedded Template Library. https://github.com/ETLCPP/etl Copyright(c) 2014 jwellbelove Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentat...
C
pool.h
GatorQue/etl
mit
2,844
87
codeparrot/github-code
d557ae556138cebe1eb5ddc19337e803e938a4522cd1e455e00699ce8b0a60fc
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com timehome@corp.globo.com from thumbor.loaders import http_loader from tornado.concurrent impor...
Python
thumbor/loaders/strict_https_loader.py
jdunaravich/thumbor
mit
1,086
42
codeparrot/github-code
61886d5f2fb62696eec6ca88b0b6f8ee2be5b81496739f2a8cdf955f17219dda
<?php class device extends CI_Controller{ public function add_device(){ $this->load->model('device_model'); $device_name = $this->input->post('device_name'); $device_id = $this->input->post('device_id'); $about_device = $this->input->post('about_device'); $key = $this->session->userdata('id'); //later stages wi...
PHP
application/controllers/device.php
Chaitya62/IOT-Bridge-Final-name-not-comfirmed
mit
2,164
79
codeparrot/github-code
905a29c148ec1db431585fcc99783b50798a0f7dce973cf817ded25e5bc898d1
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, ...
Python
test/Perforce/P4COMSTR.py
datalogics/scons
mit
4,112
123
codeparrot/github-code
7dc418a1a258a5d1ac939958f3883170c4baa35dd690fb876c390a1273e027db
using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.Serialization; using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; namespace Fungus { /** * Visual scripting controller for the Flowchart programming language. * Flow...
C#
Assets/Fungus/Flowchart/Scripts/Flowchart.cs
tapiralec/Fungus
mit
21,856
896
codeparrot/github-code
c70be0249968644631a55f58ca373730854e1a41d82c1b8d2b2fbe5105e98dc1
<div class="comment-view mb-6"> {% if not comment_list %} <div class="no-comment"> <p class="text-muted small">{{ _("No comments yet. ") }} <span class="hidden login-required"> <a href="/login?redirect-to={{ pathname }}">{{ _("Login to start a new discussion") }}</a> </span> <span class="hidden s...
HTML
frappe/templates/includes/comments/comments.html
frappe/frappe
mit
6,128
197
codeparrot/github-code
182102e0b8ab9a9f3c4f4f153bf8d0253cff03f7eb5382fb6041f9ad7849ff37
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
Shell
RAC_GatherClass/Pods/Target Support Files/Pods-RAC_GatherClass/Pods-RAC_GatherClass-frameworks.sh
lionsom/LXReactiveCocoa_Demo
mit
3,723
100
codeparrot/github-code
27d17f586d1edbafe22767ceab486a1d5557614ae6fbcfda648bc5380fdbddb0
<script type="text/javascript"> var _d = DialogManager.get('config_dialog'); _d.setWidth(350); _d.setPosition('center'); $("select[ectype='bgcolor_selector']").change(function(){ $("input[ectype='bgcolor']").val(this.value); }); $("select[name='img_recom_id']").change(function(){ switchRecommend(thi...
HTML
upload/external/widgets/goods_module_1/config.html
lotosbin/ecmall-docker-compose
mit
3,848
92
codeparrot/github-code
84ece9c0b09f6fb14b03814cf4e7b35c7aed2ec66d515566fff3ade064ddded8
package com.xeiam.xchange.anx.v2.account.polling; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import org.junit.Assert; import org.junit.Test; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.xeiam.xch...
Java
xchange-anx/src/test/java/com/xeiam/xchange/anx/v2/account/polling/WalletHistoryJSONTest.java
Achterhoeker/XChange
mit
3,272
65
codeparrot/github-code
763ab28766e40f00146d2594e8eea7edd97bee92090d1779812a45b808f536bb
// Copyright 2011, Google Inc. // 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 list of condition...
JavaScript
examples/audio/lib/wavetable.js
hems/-labs
mit
8,974
282
codeparrot/github-code
3292e0e95aca1462dd284c36ade67b5c9a5e2390d3c1f04063eedb4c745b43d1
/** * Created by maomao on 2020/4/20. */ Java.perform(function() { var cn = "android.telephony.SubscriptionManager"; var target = Java.use(cn); if (target) { target.addOnSubscriptionsChangedListener.overloads[0].implementation = function(dest) { var myArray=new Array() myAr...
JavaScript
droidbot/resources/scripts/telephony/SubscriptionManager.js
honeynet/droidbot
mit
3,831
69
codeparrot/github-code
725a06e543e41a3f886d311f887f30885ee22018e6b327111888b3089b6bc3e4
#!/bin/bash FN="HsAgilentDesign026652.db_3.2.3.tar.gz" URLS=( "https://bioconductor.org/packages/3.11/data/annotation/src/contrib/HsAgilentDesign026652.db_3.2.3.tar.gz" "https://bioarchive.galaxyproject.org/HsAgilentDesign026652.db_3.2.3.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-hsagilentdesi...
Shell
recipes/bioconductor-hsagilentdesign026652.db/post-link.sh
roryk/recipes
mit
1,510
48
codeparrot/github-code
9e065e1fbd8b33da9d5e80af5ed0440d75d71504338f698b221439fd0cbc88ce
"use strict"; const chalk = require("chalk"); const readline = require("readline"); /** * Fill screen with blank lines, move to "0" afterwards and clear screen afterwards. * Note that it is still possible to "scroll back" afterwards. * * Function performs nothing in case the stdout is NOT a TTY. */ exports.cls =...
JavaScript
scripts/util/formatUtil.js
DorianGrey/ng2-webpack-template
mit
1,001
38
codeparrot/github-code
775ada1084306d408dc1591919151da76365698673f0959c99128549a1c4e731
module Locomotive class SitePolicy < ApplicationPolicy class Scope < Scope def resolve if membership.account.super_admin? scope.all else membership.account.sites end end end def index? true end def show? true end def...
Ruby
app/policies/locomotive/site_policy.rb
slavajacobson/engine
mit
1,128
67
codeparrot/github-code
6d687ac5359030502bfdc4ff5e5c231093869b8c3f543f39e563b70d02b4db3b
# -*- coding: utf-8 -*- from __future__ import unicode_literals import time import string import json import config import helper import busses def log_message(msg): #log format: time type message time_str = str(time.time()) line = time_str[:time_str.find(".")] line = line.rjust(10, str(" ")) li...
Python
logger.py
Pixdigit/Saufbot
mit
1,902
58
codeparrot/github-code
102683dd885cb2d0fdbc04c34f6a5aa79105cd6323b11d85d3d70e8aa762cca4
public class LeetCode0363 { public int maxSumSubmatrix(int[][] matrix, int k) { int m = matrix.length, n = matrix[0].length, ans = Integer.MIN_VALUE; long[] sum = new long[m + 1]; for (int i = 0; i < n; ++i) { long[] sumInRow = new long[m]; for (int j = i; j < n; ++j) { for (int p = 0; p < m; ++p) { ...
Java
Java/Devide/LeetCode0363.java
dunso/algorithm
mit
1,278
53
codeparrot/github-code
abfd1ce6d733ad87c2e6b4e14da56e66e06322b0a9c8074f6aef6b73e6fedc35
<?php namespace Cascade\Mapper\Map; use Cascade\Mapper\Mapping\MappingInterface; class Map implements MapInterface { /** * @var MappingInterface[] */ private $mappings = []; /** * @param MappingInterface[] $mappings */ public function __construct($mappings) { foreach ...
PHP
src/Map/Map.php
cascademedia/php-object-mapper
mit
650
37
codeparrot/github-code
f0286fc76da11c63b1e77872bfdde665f87bfda051f53bdb18fc9186af658067
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import numpy as np import matplotlib matplotlib.use('GTKAgg') from matplotlib import pyplot as plt from koheron import connect from drivers import Spectrum from drivers import Laser host = os.getenv('HOST','192.168.1.100') client = connect(host, nam...
Python
examples/spectrum_analyzer.py
Koheron/lase
mit
1,482
73
codeparrot/github-code
7f2a95ba4ec1b4882b48b66d91eae3395061ca0b95a197379224940bb2f1798c
import * as debug from 'debug'; import Resolver from '../../resolver'; import { IRemoteUser } from '../../../../models/user'; import acceptFollow from './follow'; import { IAccept, IFollow } from '../../type'; const log = debug('misskey:activitypub'); export default async (actor: IRemoteUser, activity: IAccept): Pro...
TypeScript
src/remote/activitypub/kernel/accept/index.ts
ha-dai/Misskey
mit
744
36
codeparrot/github-code
aee82b5ce7d2b61a6f9fb7c54dd308cd158cefb3181ba850e4149806ec374dcc
/** \brief A timer module with only a single compare value. Can be used to replace the "bsp_timer" and "radiotimer" modules with the help of abstimer. \author Xavi Vilajosana <xvilajosana@eecs.berkeley.edu>, May 2012. \author Thomas Watteyne <watteyne@eecs.berkeley.edu>, May 2012. */ #include "sctimer.h" #incl...
C
openwsn-fw-work/firmware/openos/bsp/boards/gina/sctimer.c
barriquello/iotstack
mit
2,026
92
codeparrot/github-code
929dcff260b67013323a3b7e0c3d8b6dbd4daa6f5cbaf2adcc7008448161384f
#! /usr/bin/env python """Show file statistics by extension.""" import os import sys class Stats: def __init__(self): self.stats = {} def statargs(self, args): for arg in args: if os.path.isdir(arg): self.statdir(arg) elif os.path.isfile(arg): ...
Python
Tools/scripts/byext.py
OS2World/APP-INTERNET-torpak_2
mit
3,894
132
codeparrot/github-code
d9d981b7e651312f58a5f3f2bc41434e109029d40572a24be547bfd9d91b235d
// angular import { HttpClient } from '@angular/common/http'; import { Routes } from '@angular/router'; // libs import * as _ from 'lodash'; import { I18NRouterLoader, I18NRouterSettings } from '@ngx-i18n-router/core'; export class I18NRouterHttpLoader implements I18NRouterLoader { private _translations: any; ge...
TypeScript
packages/@ngx-i18n-router/http-loader/src/i18n-router.http-loader.ts
fulls1z3/ngx-i18n-router
mit
929
36
codeparrot/github-code
d64d4eb41bb453b0c8a1884f1c925112e75c7d3b425305d586e3f8f583966c93
'use strict'; var fs = require('fs'), util = require('util'), Duplexify = require('duplexify'), _ = require('lodash'), su = require('bindings')('serialutil.node'), fsu = require('./fsutil'), pins = require('./pins'), Dto = require('./dto'), dto = new Dto(__dirname + '/../templates/uart.dts'); var DEFA...
JavaScript
lib/uart.js
fivdi/brkontru
mit
6,528
263
codeparrot/github-code
0068e3a00e7a5685843ff82bc4c42e3cab84723b576cca693b5280e05b47aba7
package de.andreasgiemza.mangadownloader.gui.chapter; import de.andreasgiemza.mangadownloader.MangaDownloader; import de.andreasgiemza.mangadownloader.helpers.RegexHelper; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.RowFilter; import javax.swing.event.DocumentEvent; import java...
Java
src/main/java/de/andreasgiemza/mangadownloader/gui/chapter/ChapterListSearchDocumentListener.java
hurik/MangaDownloader
mit
1,897
60
codeparrot/github-code
d5e64fefb18968fd453966a5701353713eb4b200c1696b266eca075e7efba65a
package nxt.http; import nxt.Account; import nxt.Attachment; import nxt.Constants; import nxt.NxtException; import nxt.util.Convert; import org.json.simple.JSONStreamAware; import javax.servlet.http.HttpServletRequest; import static nxt.http.JSONResponses.INCORRECT_ASSET; import static nxt.http.JSONResponses.INCORRE...
Java
src/java/nxt/http/PlaceAskOrder.java
aspnmy/NasCoin
mit
2,662
87
codeparrot/github-code
edaf2d01f61a022b62894d0dcc482152b7de05b77a776cc4c98934632e50b5d7
//===--- JumpDiagnostics.cpp - Protected scope jump analysis ------*- C++ -*-=// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
include/llvm/tools/clang/lib/Sema/JumpDiagnostics.cpp
ensemblr/llvm-project-boilerplate
mit
35,368
905
codeparrot/github-code
e30a099a346942ae272a71756c3fa0c2fa00c93d24ef2429c171811408bb6390
// Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "trianglei.h" #include "triangle_intersector_moeller.h" #include "triangle_intersector_pluecker.h" namespace embree { namespace isa { /*! Intersects M triangles with 1 ray */ template<int M, int Mx, bool...
C
Source/ThirdParty/embree/kernels/geometry/trianglei_intersector.h
rokups/Urho3D
mit
15,922
337
codeparrot/github-code
31b5c01f442fe0a69bf377728063b7db6e0cc34c1ef6aa3db136b707a62d0b5c
import os import pygtk pygtk.require('2.0') import gtk from gtkcodebuffer import CodeBuffer, SyntaxLoader class Ui(object): """ The user interface. This dialog is the LaTeX input window and includes widgets to display compilation logs and a preview. It uses GTK2 which must be installed an importable...
Python
inktex/ui.py
hvwaldow/inktex
mit
8,707
228
codeparrot/github-code
19e5f2d980519babcc147fa0adb3f38b1f0ada65c0190a2111964700116f2d5b
<?php /** * Functions related to starring private messages. * * @package BuddyPress * @subpackage MessagesStar * @since 2.3.0 */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /** UTILITY **************************************************************/ /** * Return the starred messages slug. Defau...
PHP
wordpress/wp-content/plugins/buddypress/bp-messages/bp-messages-star.php
jmelgarejo/Clan
mit
15,966
529
codeparrot/github-code
ccbcab2f9197ef91732daa49d61d2bb039521789c1aae8035c403121d031ff03
<?php namespace Illuminate\Cache; use Closure; use Exception; use Carbon\Carbon; use Illuminate\Contracts\Cache\Store; use Illuminate\Database\ConnectionInterface; class DatabaseStore implements Store { use RetrievesMultipleKeys; /** * The database connection instance. * * @var \Illuminate\Da...
PHP
src/Illuminate/Cache/DatabaseStore.php
vetruvet/framework
mit
6,680
257
codeparrot/github-code
5a5aacb10f9de8281e91c24a6b485b237dded9b503a392268378f2f50b822ac2
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using Ical.Net.DataTypes; namespace Ical.Net.Serialization.DataTypes { public class RequestStatusSerializer : StringSerializer { public RequestStatusSerializer() { } public RequestStatusSerializer(Serializ...
C#
src/Ical.Net/Serialization/DataTypes/RequestStatusSerializer.cs
rianjs/ical.net
mit
3,936
121
codeparrot/github-code
e5855c1bcaeaf0e7c1e80491bc8f208bcd724310767fd270e380b0795b7b67c6
<?php return array( //Use the below link to get the parameters to be passed. //http://www.tig12.net/downloads/apidocs/wp/wp-includes/PHPMailer.class.html#det_fields_to "type"=>array( // Sets Mailer to send message using PHP mail() function. (true, false) "IsMail"=>false, // Sets Mailer to send message usi...
PHP
app/mail.php
alaksandarjesus/foreach2BiSmarty_master
mit
1,634
57
codeparrot/github-code
17f33b773aa4e3f2bc04d7320b0a91de8d2cac81a8aac1c236092afd226d6392
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2009-2010 Ricardo Quesada Copyright (c) 2011 Zynga Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and asso...
C
libs/cocos2dx/tilemap_parallax_nodes/CCTMXLayer.h
qq2588258/floweers
mit
10,152
248
codeparrot/github-code
62a992944e46c576f78504f6613d9333fa24e0fd505eb7ab182ee335d89b57bd
'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; var assert = require('yeoman-assert'); describe('test framework', function () { describe('mocha', function () { before(function (done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(__dirname, ...
JavaScript
test/test-framework.js
snatera15/generator-webapp-material
mit
1,532
57
codeparrot/github-code
11e8260273564f38c37c988b8fd3dbbb3cfe3afeb76180275f177890ccd3eabb
/*jshint maxstatements:false*/ define(function (require, exports) { "use strict"; var moment = require("moment"), Promise = require("bluebird"), _ = brackets.getModule("thirdparty/lodash"), CodeInspection = brackets.getModule("language/CodeIn...
JavaScript
src/Panel.js
seshurajup/brackets-svn
mit
41,379
1,016
codeparrot/github-code
30aa26a2652e823ee1a13564336ae654f90163a02cb5f0e86de941d97acd355f
#include "stdafx.h" #include "light.h" using namespace graphic; cLight::cLight() { } cLight::~cLight() { } void cLight::Init(TYPE type, const Vector4 &ambient, // Vector4(1, 1, 1, 1), const Vector4 &diffuse, // Vector4(0.2, 0.2, 0.2, 1) const Vector4 &specular, // Vector4(1,1,1,1) const Vector3 &direction...
C++
Src/Sample/Graphic/base/light.cpp
jjuiddong/Point-Cloud
mit
3,142
120
codeparrot/github-code
ace5ebd60f7463f04354f08033c8e286b93fb538dffea1dc136c1dfc6bfcf104
#region "Copyright" /* FOR FURTHER DETAILS ABOUT LICENSING, PLEASE VISIT "LICENSE.txt" INSIDE THE SAGEFRAME FOLDER */ #endregion #region "References" using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using SageFrame.Web.Utilities; #endregion names...
C#
SageFrame.Core/TemplateManagement/TemplateDataProvider.cs
AspxCommerce/AspxCommerce2.7
mit
3,797
109
codeparrot/github-code
106741a55b9149137d39b2d88fa205fb0ee43f2ab76255c8e92e2a9b09edfe36
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package cn.sharesdk.demo.utils; import android.annotation.TargetApi; import android.content.Context; import android.database.ContentObserver; import android.database.Cursor; import android.graphics.BitmapFactory; ...
Java
SampleFresh/app/src/main/java/cn/sharesdk/demo/utils/ScreenShotListenManager.java
ShareSDKPlatform/ShareSDK-for-Android
mit
8,651
278
codeparrot/github-code
ef4d66fee17e8866f4bcb71bd15955fb518dbabfe76932fe36418bb178300c2e
// // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // // 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 //...
C++
Source/AtomicJS/Javascript/JSAtomic3D.cpp
rsredsq/AtomicGameEngine
mit
3,193
102
codeparrot/github-code
9d64ce05b2e2409b3772d2413018041afe390e40d111376b59edf8e4de29fe72
//----------------------------------------------------------------------------- // Verve // Copyright (C) - Violent Tulip //----------------------------------------------------------------------------- function VControllerPropertyList::CreateInspectorGroup( %this, %targetStack ) { %baseGroup = Parent::CreateInspec...
C#
Templates/Verve/game/tools/VerveEditor/Scripts/Controller/VControllerProperties.cs
AnteSim/Verve
mit
6,641
214
codeparrot/github-code
5ee7baf0ea5907ea4a99dd8c881617b63db87a7db0adf44082e84b07330a554b
module Cms::PublicFilter extend ActiveSupport::Concern include Cms::PublicFilter::Node include Cms::PublicFilter::Page include Mobile::PublicFilter include Kana::PublicFilter included do rescue_from StandardError, with: :rescue_action before_action :set_site before_action :set_request_path ...
Ruby
app/controllers/concerns/cms/public_filter.rb
gouf/shirasagi
mit
4,976
160
codeparrot/github-code
0d7f99a8236ddd525adc7b8e695b234b20852b72c532857bd8dad97747e280e3
// Copyright 2019 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package queue import ( "errors" "strings" "code.gitea.io/gitea/modules/log" "github.com/go-redis/redis" ) // RedisQueueType is the type for redis que...
GO
modules/queue/queue_redis.go
lafriks/gitea
mit
3,795
148
codeparrot/github-code
f5ac13a56c3c490ec25223c33bba00c44dc9356fcc6fc9bf37b16efd7537a96b
package velir.intellij.cq5.util; import javax.jcr.Node; import javax.jcr.NodeIterator; import javax.jcr.RepositoryException; import javax.jcr.Session; import java.util.ArrayList; import java.util.List; /** * Utility class for helping work with Repository objects. */ public class RepositoryUtils { /** * Hide defa...
Java
source/src/velir/intellij/cq5/util/RepositoryUtils.java
tmowad/intellij-jcr-plugin
mit
1,342
51
codeparrot/github-code
01e1f7f8bb7aac3e932b86b12f181b4eaceabc9849c015f95329e3bbeccea6d7
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
C++
Engine/foundation/exception/exceptionbase.cc
EngineDreamer/DreamEngine
mit
3,623
137
codeparrot/github-code
d402e8600b4ce0f80497b754c77ff7079fa192a2ec29e654ba76f66b33c6c7ca
/** * Module dependencies. */ var api = require('lib/db-api'); var config = require('lib/config'); var express = require('express'); var jwt = require('lib/jwt'); var passport = require('passport'); var log = require('debug')('democracyos:auth:facebook:routes'); var User = require('lib/models').User; var fbSignedPar...
JavaScript
lib/auth-facebook/routes.js
fonorobert/evoks
mit
2,185
86
codeparrot/github-code
584c045f70c3b50b5ce188c279d6a995d099ac0fe6de1b223e99c228644bd452
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.Azure.WebJobs.Host; using Microsoft.ProjectOxford.Face; using Microsoft.ProjectOxford.Face.Contract; namespace Novanet { public static class FaceServiceClientExtensions { public static async Task CreatePersonGroupIfNotExisin...
C#
src/EmoApi/AzureFunctionsCCC/IdentificationTrainingFunction/FaceServiceClientExtensions.cs
novanet/ndc2017
mit
2,140
51
codeparrot/github-code
0d8b451db9f47150926a0f1edc3234b8d536566349de07c00b02ae673f0a3909
<?xml version="1.0" ?><!DOCTYPE TS><TS language="th_TH" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Linkcoin</source> <translation>เกี่ยวกับ บิตคอย์น</translation> ...
TypeScript
src/qt/locale/bitcoin_th_TH.ts
Linkproject/winpro
mit
96,674
2,917
codeparrot/github-code
0ce811a84a75f73180b3f31aab8760a02d52d275d4bd4765ba31ed8ed1810056
#ifndef ANONCOIN_MINER_H #define ANONCOIN_MINER_H #include <stdint.h> typedef long long int64; typedef unsigned long long uint64; class CBlock; class CBlockHeader; class CBlockIndex; struct CBlockTemplate; class CReserveKey; class CScript; #ifdef ENABLE_WALLET class CWallet; void AnoncoinMiner(CWallet *pwallet);...
C
src/miner.h
coinkeeper/2015-06-22_18-30_anoncoin
mit
1,063
38
codeparrot/github-code
00c9aad35645bdd979439206fa03c579fce581e9270c0e1d26bd8d3ff17df95e
<TS language="hi_IN" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>नया पता लिखिए !</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <transla...
TypeScript
src/qt/locale/bitcoin_hi_IN.ts
faircoin/faircoin2
mit
25,880
876
codeparrot/github-code
53b70505210c4b2e94e292e5667a370fead2dfe112cdb7ba757ca708fe347804
// © 2000 NEOSYS Software Ltd. All Rights Reserved.//**Start Encode** function form_postinit() { //enable/disable password changing button neosyssetexpression('button_password', 'disabled', '!gusers_authorisation_update&&gkey!=gusername') //force retrieval of own record if (gro.dictitem('USER...
JavaScript
www/neosys/scripts/users.js
tectronics/exodusdb
mit
4,156
119
codeparrot/github-code
0df2c963b77f8fedfae350e1ecaaee7c36ee9e505680c2015e0200cc64cd3987
// MIT License. Copyright (c) 2016 Maxim Kuzmin. Contacts: https://github.com/maxim-kuzmin // Author: Maxim Kuzmin using Autofac; using Autofac.Core; using Makc2017.Core.App; using System.Collections.Generic; using System.Linq; namespace Makc2017.Modules.Dummy.Caching { /// <summary> /// Модули. Модуль "Dum...
C#
src/Makc2017.Modules.Dummy.Caching/ModuleDummyCachingPlugin.cs
maxim-kuzmin/Makc2017
mit
2,187
75
codeparrot/github-code
1ba51434b6a4a3e674fe43f3efd1f24caafc1f088530bd5e150131b31f66729b
'use strict'; const path = require('path'), mongoose = require('mongoose'), Promise = require('bluebird'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); mongoose.Promise = Promise; const User = mongoose.model('User'); const ...
JavaScript
modules/users/server/controllers/admin.v2.server.controller.js
mapping-slc/mapping-slc
mit
1,576
64
codeparrot/github-code
23eedb5fea16422f3424b5754e4651723f0f6da77cdba4d77d254cefc57008f2
using System.Linq; using System.Threading.Tasks; using JSONAPI.Documents; using Newtonsoft.Json; namespace JSONAPI.Json { /// <summary> /// Default implementation of ISingleResourceDocumentFormatter /// </summary> public class SingleResourceDocumentFormatter : ISingleResourceDocumentFormatter { ...
C#
JSONAPI/Json/SingleResourceDocumentFormatter.cs
danshapir/JSONAPI.NET
mit
3,963
105
codeparrot/github-code
715e9cce5ef87fe2858ccc53d9e75db3d524b3c4bb5946c1471e6c56219f9006
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms; using System.Windows.Forms.D...
C#
Source/DotSpatial.Symbology.Forms/FontFamilyNameEditor.cs
DotSpatial/DotSpatial
mit
2,604
77
codeparrot/github-code
1acf272bc6fe49ee564a554caad76e4afbdcd70004a8ceacc40d8e85739cbe4e
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Frames &mdash; Leap Motion C++ SDK v3.1 documentation</title> <link rel="stylesheet" href="../../cpp/_static/bootstrap-3.0.0/css/...
HTML
plugins/track/hand/leapMotion/3rdParty/leapMotion/docs/cpp/devguide/Leap_Frames.html
MTASZTAKI/ApertusVR
mit
33,403
463
codeparrot/github-code
4769c979ca820bf6c2a2b4b86bd3ebad6a93e98a3bdb82b30db3e1263062a9bf
package arn // PersonName represents the name of a person. type PersonName struct { English Name `json:"english" editable:"true"` Japanese Name `json:"japanese" editable:"true"` } // String returns the default visualization of the name. func (name *PersonName) String() string { return name.ByUser(nil) } // ByUse...
GO
PersonName.go
animenotifier/arn
mit
684
32
codeparrot/github-code
4709039d47a00f152484a533cddd59a84f1ff5faeb225b90c1402e6ea1781e6e
/** * @license * Copyright Google Inc. 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 {async, fakeAsync, tick} from '@angular/core/testing'; import {AsyncTestCompleter, beforeEach, describe, inje...
TypeScript
modules/@angular/forms/test/form_group_spec.ts
tolemac/angular
mit
36,063
1,050
codeparrot/github-code
0a856ebde48cdd0ab6642d7f89893e9745ce32a47ad1897337bf65bec10db3ca
require 'rubygems' require 'active_support' require 'active_merchant' class GatewaySupport #:nodoc: ACTIONS = [:purchase, :authorize, :capture, :void, :credit, :recurring] include ActiveMerchant::Billing attr_reader :gateways def initialize Dir[File.expand_path(File.dirname(__FILE__) + '/../active_merc...
Ruby
lib/support/gateway_support.rb
reinteractive/active_merchant
mit
1,804
72
codeparrot/github-code
b41bb938e7f0089ea1710136d892b6ec87a31d6cd2b0831a0b7fe1de7963a069
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="GetNodeScriptsTest.cs" company="automotiveMastermind and contributors"> // © automotiveMastermind and contributors. Licensed under MIT. See LICENSE and CREDITS for details. // </...
C#
test/AM.Condo.Test/Tasks/GetNodeScriptsTest.cs
automotiveMastermind/condo
mit
2,250
73
codeparrot/github-code
0f7759bc5cebe9d6b004bbc1875592ac432ac68ff9775b6a572721fc65f01c97
<?php /* SonataAdminBundle:CRUD:base_list_flat_inner_row.html.twig */ class __TwigTemplate_16b98d4be50387198a258942bcac860cb5e7d142e913464f9538849439128cff extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $t...
PHP
app/cache/prod/twig/16/b9/8d4be50387198a258942bcac860cb5e7d142e913464f9538849439128cff.php
chicho2114/Proy_Frameworks
mit
3,962
83
codeparrot/github-code
6f8b78851ca5eada3b150aa2d856fc46b9a6e9caede5d830b018ab1d1e56e816
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Qt 4.8: t...
HTML
QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/designer-taskmenuextension-tictactoeplugin-h.html
stephaneAG/PengPod700
mit
13,994
276
codeparrot/github-code
56a3d9c20f56e3b5df31edcaf61712c33980fc84df40f9b3f41938af355ef959
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <base href="../../../" /> <script src="list.js"></script> <script src="page.js"></script> <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> <h1>[name]</h1> <p class="desc">Class representing a 3D [link:https://en.w...
HTML
docs/api/en/math/Vector3.html
cadenasgmbh/three.js
mit
16,772
447
codeparrot/github-code
635593e5f0578ccd1f288a9478499f9fd8ae7a244ca3cb2232e2fc65db26f54f
#include "UniformBuffer.hpp" #include <iostream> #include <cstring> UniformBuffer::UniformBuffer(const void* data, unsigned int size, VkDevice device, VkPhysicalDevice physicalDevice, VkDescriptorPool descriptorPool, VkShaderStageFlags flags) : Buffer(device, physicalDevice, descriptorPool) { this->device = devic...
C++
src/UniformBuffer.cpp
Chainsawkitten/AsyncCompute
mit
1,194
32
codeparrot/github-code
8a1371db1b438e604e6bcc6beb06f1c0d747f4b57534f23da441704f9c56dabd
using System; using System.Windows.Input; namespace CustomBA.Commands { /// <summary> /// Based on http://wpftutorial.net/DelegateCommand.html /// </summary> public class DelegateCommand : ICommand { private readonly Predicate<object> _canExecute; private readonly Ac...
C#
CustomBurnUiWithOptionsOnPureWpf/Source/CustomBA/Commands/DelegateCommand.cs
Sufflavus/WixExamples
mit
1,266
51
codeparrot/github-code
e4daf277a4942dcf10adf30357eed80d58189c45743666e6092b0990f3fb33cf
#ifndef _WLC_CONTEXT_H_ #define _WLC_CONTEXT_H_ #include <stdbool.h> #include <EGL/egl.h> #include <EGL/eglext.h> struct wl_display; struct wlc_backend_surface; struct ctx; struct wlc_context_api { void (*terminate)(struct ctx *context); bool (*bind)(struct ctx *context); bool (*bind_to_wl_display)(struct c...
C
src/platform/context/context.h
SirCmpwn/wlc
mit
1,784
41
codeparrot/github-code
54fb210cf1cdbe94fc90b37303dd3898fb1a3c9fd01b1fe3b465205637b5fdcd
#include "gamelib/components/editor/LineBrushComponent.hpp" #include "gamelib/components/geometry/Polygon.hpp" #include "gamelib/components/rendering/MeshRenderer.hpp" #include "gamelib/core/ecs/Entity.hpp" #include "gamelib/properties/PropComponent.hpp" namespace gamelib { LineBrushComponent::LineBrushComponent()...
C++
src/gamelib/components/editor/LineBrushComponent.cpp
mall0c/TileEngine
mit
3,353
112
codeparrot/github-code
a243669c213efd03ce8bc49bf974388404ee8fe61002e51f3a34852a7ed3196c
/////////////////////// /// UTILS /// /////////////////////// var u = {}; u.distance = function (p1, p2) { var dx = p2.x - p1.x; var dy = p2.y - p1.y; return Math.sqrt((dx * dx) + (dy * dy)); }; u.angle = function(p1, p2) { var dx = p2.x - p1.x; var dy = p2.y - p1.y; return u.degre...
JavaScript
src/utils.js
Antariano/nipplejs
mit
3,278
135
codeparrot/github-code
883e8c18b51d33d882034c0b1d084a5f40241646f1cf5517f1bbd5b64cfdb551
#include "multi_modelstruct.h" #include "multivar_support.h" #include <math.h> #include <assert.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_eigen.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_errno.h> /** * ccs, 05.06.2012 * \todo this all needs to be checked carefully against an example that works in R * \...
C
src/multi_modelstruct.c
MADAI/MADAIEmulator
mit
16,178
508
codeparrot/github-code
eba4fc0ad91ef4fc8b5682737ca1809c8304657211aebe15c84d078bb8faec97
#include <assert.h> #include <stdint.h> #include <OpenP2P/Buffer.hpp> #include <OpenP2P/Stream/BinaryStream.hpp> #include <OpenP2P/Event/Source.hpp> #include <OpenP2P/Event/Wait.hpp> #include <OpenP2P/RootNetwork/Endpoint.hpp> #include <OpenP2P/RootNetwork/Packet.hpp> #include <OpenP2P/RootNetwork/PacketSocket.hpp>...
C++
test/openp2p/src/OpenP2P/RootNetwork/PacketSocket.cpp
goodspeed24e/2014iOT
mit
1,642
64
codeparrot/github-code
9deb2d0ca95a5978032f24ccd31e5901b8d39263074e39316ca6f4fd01cd9924
/* -*- C++ -*- */ #include <QtGlobal> #include <QtAlgorithms> #include <QChar> #include <QDebug> #include <QList> #include <QMap> #include <QPointer> #include <QRegExp> #include <QSettings> #include <QSharedData> #include <QSharedDataPointer> #include "qluaapplication.h" #include "qtluaengine.h" #include "qluamainwi...
C++
torch1/exe/qtlua/packages/qtide/qluamode_lua.cpp
EliHar/Pattern_recognition
mit
22,831
885
codeparrot/github-code
75b2583286ed35b16939a095481ce72ed17fb2ec9ef399928695720322f8bde7
// Copyright (c) 2020 The Gulden developers // Authored by: Malcolm MacLeod (mmacleod@gmx.com) // Distributed under the GULDEN software license, see the accompanying // file COPYING //Workaround braindamaged 'hack' in libtool.m4 that defines DLL_EXPORT when building a dll via libtool (this in turn imports unwanted sym...
C++
src/unity/unity_impl.cpp
nlgcoin/guldencoin-official
mit
56,495
1,614
codeparrot/github-code
09c46564500925dbc42f34524d4e6d16a690f1ea9fdfaf6e3c754ba347315573
/* * DBAdapter.h * Main Class to manage DB operations * Created by: Ozgur Pekcagliyan - 2014-09-25 09:28:43 PM EEST * Last edited by: Ozgur Pekcagliyan - 2015-03-01 * Notes: * errorCode will be used to return specific error values back to user; * * Potential error codes are; * * * 0: success * * * 1: user name...
C
ServerApplication/include/Database Connections/DBAdapter.h
zgrw/PchoneRemote
mit
5,459
104
codeparrot/github-code
4da002dec9fea9e321711ca7b012bdac65cf2beba12ea1cbf6263e4360a77597
namespace _03BarracksFactory.Data { using System; using Contracts; using System.Collections.Generic; using System.Text; class UnitRepository : IRepository { private IDictionary<string, int> amountOfUnits; public UnitRepository() { this.amountOfUnits = new S...
C#
06-Csharp OOP Advanced/10-EXERCISE REFLECTION AND ATTRIBUTES/ReflectionExercises/05-BarracksWarsReturnOfTheDependencies/Data/UnitRepository.cs
MrPIvanov/SoftUni
mit
1,464
57
codeparrot/github-code
604ff42f5792fe0f8533dc3df8ab4305ae6b87bc9d3abd656e0ad69d9aba7cef
/** * The MIT License * * Copyright (c) 2019, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includi...
Java
easy-random-core/src/test/java/org/jeasy/random/FieldExclusionTest.java
benas/jPopulator
mit
16,362
436
codeparrot/github-code
83a080ac6037608618109d15a14efaa4d1f9227030269ad6dea19b94850ebcdd
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System; using System.Diagnostics.CodeAnalysis; using Sys...
C#
src/Hid/Hid.Helpers.cs
vbfox/pinvoke
mit
5,012
144
codeparrot/github-code
1d33e78c9e0cedcd5e98d1801666881095ca9ad14f72fc6ef9d3ba7a062b6851
// // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // using System; namespace nanoFramework.Tools.Debugger.Usb { // This class is kept here for reference only. // It was to provide backwards compatibility with NETMF WinUSB devices of v4....
C#
nanoFramework.Tools.DebugLibrary.Shared/SupportedUSBDevices/STM_Discovery4.cs
nanoframework/nf-debugger
mit
1,179
39
codeparrot/github-code
7e175ddd5a400aa2a93cae35bf4b69b6641db50250d401b53e1e8d5f7e7f4181
using RippleCommonUtilities; using RippleDictionary; using RippleScreenApp.Utilities; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.IO; using System.Linq; using System.Reflection; using System.Speech.Synthesis; using System.Text; using System.Threading.Tas...
C#
Ripple/RippleScreenApp/ScreenWindow.xaml.cs
Microsoft/kinect-ripple
mit
33,910
838
codeparrot/github-code
dac1ea0de71bc7b4744836d0e88a0cf68cdbc4bd5185e882f3bfaccbb9c7592f
// AForge Kinect Video Library // AForge.NET framework // http://www.aforgenet.com/framework/ // // Copyright © AForge.NET, 2005-2011 // contacts@aforgenet.com // namespace AForge.Video.Kinect { using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Ima...
C#
packages/AForge.NET Framework-2.2.5/Sources/Video.Kinect/KinectVideoCamera.cs
lyuboasenov/scheduler
mit
19,052
524
codeparrot/github-code
2a78f07e7f9cfe5cd07d123ae2f2d5d2cf973f5603e6f40e4815ce4027579b61
// // GPDownloader.h // test // // Created by mac on 15-2-3. // Copyright (c) 2015年 gpr. All rights reserved. // #import <Foundation/Foundation.h> @class GPDownloader; typedef NS_ENUM(NSUInteger, GPDownloaderStatus) { GPDownloaderStatusReady, GPDownloaderStatusDownLoading, GPDownloaderStatusPause, ...
C
category/category/GPDownloader1/GPDownloader.h
gpr321/amusement
mit
2,983
93
codeparrot/github-code
cc6d868551291f97eaeee7b126262d0c0790dd66cc3e826a5944c2acdffe4771
/* _______ ________ \ \ / _____/ ____ ___ / | \/ \ ____/ __ \ / \ / | \ \_\ \ ___/| | \ \____|__ /\______ /\___ >___| / \/ \/ \/ \/ The MIT License (MIT) COPYRIGHT (C) 2016 FIXCOM, LLC Permission is hereby granted, free of charge, to any pe...
C++
develop/v0.4/Ngen/include/Ngen.Callback.hpp
archendian/ngensdk
mit
3,144
111
codeparrot/github-code
83d70a1200706e7385681732521da76fa9de720a56cb705d9d79de80c3c22feb
package logbook.server.proxy; /** * 動作に必要なデータのみ取得するためのフィルターです。 * */ public class Filter { /** フィルターするContent-Type */ public static final String CONTENT_TYPE_FILTER = "text/plain"; /** キャプチャーするリクエストのバイトサイズ上限 */ public static final int MAX_POST_FIELD_SIZE = 1024 * 1024; /** setAttribute用のキー(Res...
Java
main/logbook/server/proxy/Filter.java
silfumus/logbook-EN
mit
1,915
82
codeparrot/github-code
01f98ca8861edfff73304ba97442c947deeea7bd4d9964655717956b667ada77
package saberapplications.pawpads.databinding; import android.databinding.BaseObservable; import android.databinding.BindingAdapter; import android.databinding.BindingConversion; import android.text.Editable; import android.text.TextWatcher; import android.widget.EditText; import saberapplications.pawpads.R; /** *...
Java
app/src/main/java/saberapplications/pawpads/databinding/BindableDouble.java
castaway2000/Pawpads
mit
2,887
114
codeparrot/github-code
dd8cce682b30e2175e51566977175cb1020f3b0bdca54b44b8804cb5b6198a52
<?php /** * Elgg cron library. * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ /** The cron exception. */ class CronException extends Exception {} /** * Initialisation * */ function cron_init() { // Register a pagehandler for cron register_page...
PHP
engine/lib/cron.php
namaggarwal/elgg
mit
1,140
61
codeparrot/github-code
69915b2e28bfe7b95ec0fa4fb58398e41ef582f2bc334a6fa26d75e95bc1a3ef
// This source code is dual-licensed under the Apache License, version // 2.0, and the Mozilla Public License, version 1.1. // // The APL v2.0: // //--------------------------------------------------------------------------- // Copyright (C) 2007-2014 GoPivotal, Inc. // // Licensed under the Apache License, Version...
C#
lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/projects/client/RabbitMQ.Client/src/client/impl/StreamProperties.cs
CymaticLabs/Unity3D.Amqp
mit
3,179
80
codeparrot/github-code
bd25eefa9705c6030eaf3f453e0f77de06449b02d20c085e10fae9f3ff7b692e
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ package im.actor.core.entity; import com.google.j2objc.annotations.Property; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; import java.util.ArrayList; import java.util.List; import im.actor...
Java
actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/entity/User.java
ljshj/actor-platform
mit
15,291
522
codeparrot/github-code
6ba60602a85e60895ecbfe9d47911026f12ee33e09079bc139bcf4363fa83445
package api import ( "errors" "io/ioutil" "log" "net/http" "github.com/bitly/go-simplejson" ) func Request(req *http.Request) (*simplejson.Json, error) { resp, err := http.DefaultClient.Do(req) if err != nil { return nil, err } body, err := ioutil.ReadAll(resp.Body) resp.Body.Close() if err != nil { r...
GO
api/api.go
t-yuki/oauth2_proxy
mit
1,053
49
codeparrot/github-code
57f2428f72036c32172afbb1b5ec39048bfb34f0ad1ca26999c86002b5fff682
{{diagnostic}} <div class="aw-ui-callout aw-ui-callout-info"> <span>Please see below all the price set for various Asha Payment Activities.</span> </div> <form class="form-horizontal" #rulesForm="ngForm" (ngSubmit)="onSubmit(ruleForm.value)" method="POST"> <div> <h2>Maternal Health</h2> ...
HTML
.history/src/app/admin-configuration/manage-activity-payment/manage-activity-payment.component_20170211121927.html
mnjkumar426/asha_front
mit
40,021
780
codeparrot/github-code
58f324551d6acbe776aa36ea2dcf66b5dee6754d33a2f642c088c366e40356aa
#include "overlapping.hpp" /* TODO: * grow seeds from edges, not nodes. * Why are the results changing? * Then, speed up delV * ZEntropy shouldn't consider the number of groups, that should be taken out to another function. * That factorial expression would be better * Write down some of the stats, a...
C++
execs/CM-Overlapping-MOSES-McDaid/moses-2011-01-26/overlapping.cpp
rabbanyk/CommunityEvaluation
mit
42,402
1,187
codeparrot/github-code
d445bf72c857c5903d9dab8d5dd2502a27aaf1ecf0dc5c8c180a6ae5cee971dc
# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command wa...
Makefile
doc/Makefile
PuercoPop/djula
mit
6,847
178
codeparrot/github-code
07d0c9ccaa7edfc15792f9123858b131aa6666b9d471b68491ccfae0b99ac696
window.hideAlert = function () { $('#alertMessage').addClass("hidden"); $('#alertMessage').text(""); }; window.showAlert = function (msg) { $('#alertMessage').text(msg); $('#alertMessage').addClass("alert-danger"); $('#alertMessage').removeClass("hidden"); $('#alertMessage').fadeOut(100).fadeI...
JavaScript
Demos/src/Aspose.BarCode.Live.Demos.UI/Scripts/Shared/Alert.js
asposebarcode/Aspose_BarCode_NET
mit
1,884
64
codeparrot/github-code
88ff1f1efa665c6c9b438e7936a90e5161f65152848d128afb12e5bd40e03f04
-- ####################################### -- ## Project: HUD iLife ## -- ## For MTA: San Andreas ## -- ## Name: HudComponent_Weapons.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ####################################### -- FUNCTIONS / METHODS -- local cFu...
Lua
client/Classes/Hud/cHudComponent_Weapons.lua
Pandafuchs/iLife
mit
8,618
269
codeparrot/github-code
b5937814a3332ac2d451859ce61fb2a09a7e10859272bb6f2a0c02538ce5c4e9
local pubsub = require "util.pubsub"; local st = require "util.stanza"; local jid_bare = require "util.jid".bare; local usermanager = require "core.usermanager"; local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event"; local xmlns_pubsub_owner = "h...
Lua
plugins/mod_pubsub/mod_pubsub.lua
sarumjanuch/prosody
mit
6,500
238
codeparrot/github-code
857becb4d95ab2ef61ae3b136747db6a70d3af22210453d37007f2486edf5c3f
// Design Basic Game Solo Challenge // This is a solo challenge // Your mission description:To complete a line of the same figure, horizontal, diagonal or vertical // Overall mission: To win all the time :) // Goals: make a line of the same kind before computer does // Characters:You and the computer // Objects:tic ...
JavaScript
week-7/tictactoe-game/game.js
cyberpolin/Phase-0
mit
2,829
99
codeparrot/github-code
54b2cb6af348589f73bb23b8a7d585b703ab28c3b404c27dbdbbb0da8d5edca1
from django.conf import settings from django.conf.urls.defaults import patterns, url from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned from django.core.urlresolvers import NoReverseMatch, reverse, resolve, Resolver404 from django.db.models.sql.constants import QUERY_TERMS, LOOKUP_SEP from d...
Python
bingo_board/tastypie/resources.py
colinsullivan/bingo-board
mit
58,556
1,553
codeparrot/github-code
261a04cc1af19bcc47ffd619ce8d6991e71320b06d3627b66722237c6580ca0b
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2018, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following condition...
C++
shared/assimp/code/Subdivision.cpp
MadManRises/Madgine
mit
23,758
589
codeparrot/github-code
1697673208733053bd89986d80ef1edd736a939b3aeb5c59aca817adc66b9107
--[[ Copyright (c) 2016 Calvin Rose 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, distribute, su...
Lua
heroku/share/lua/5.1/moonmint/fs.lua
bakpakin/heroku-buildpack-moonmint
mit
11,552
384
codeparrot/github-code
125222b921db7fa05a912760c4266f01155848cc7d90497c05a50f7788d1c8ce
namespace SIM.Tool.Windows.MainWindowComponents { using System.Windows; using SIM.Instances; using SIM.Tool.Base; using SIM.Tool.Base.Plugins; using SIM.Tool.Windows.Dialogs; using JetBrains.Annotations; [UsedImplicitly] public class DatabaseManagerButton : IMainWindowButton { #region Public met...
C#
src/SIM.Tool.Windows/MainWindowComponents/DatabaseManagerButton.cs
sergeyshushlyapin/Sitecore-Instance-Manager
mit
647
30
codeparrot/github-code
c8d38b529cfcb003401d846209ad68b1482ad40d99fbe639ea0a627d34e85778
package com.xeiam.xchange.lakebtc.marketdata; import static org.fest.assertions.api.Assertions.assertThat; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import org.junit.Test; import com.fasterxml.jackson.databind.ObjectMapper; import com.xeiam.xchange.lakebtc.dto.marketdata.L...
Java
xchange-lakebtc/src/test/java/com/xeiam/xchange/lakebtc/marketdata/LakeBTCMarketDataJsonTest.java
coingecko/XChange
mit
2,443
68
codeparrot/github-code
d0e04b933ad0d684d03239867c58a3ec7cc72bf902117d2f1cd072b11e2f2fb0
using System; using BEPUutilities.DataStructures; namespace BEPUutilities.ResourceManagement { /// <summary> /// Uses a spinlock to safely access resources. /// </summary> /// <typeparam name="T">Type of object to store in the pool.</typeparam> public class LockingResourcePool<T> : ResourcePool<T>...
C#
Trashdroids/BEPUutilities/ResourceManagement/LockingResourcePool.cs
mayermatt/coms-437-trashdroids
mit
3,715
115
codeparrot/github-code