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 |
|---|---|---|---|---|---|---|---|---|
7bf0d0b84201b80a0a15cedd1dda4c83311194482c812a717a0125c3d6c65284 | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restricti... | C# | DNN Platform/Library/UI/WebControls/PropertyEditor/PropertyAttributes/MaxLengthAttribute.cs | svdv71/Dnn.Platform | mit | 1,834 | 53 | codeparrot/github-code |
988c9b05988492c16b578e25e610c02754ad46e9f4ce8b0ab83bd847b568ed1b | <?php
/**
* GitFloat is an easy reporter for Git projects that can be extended to handle other applications as well.
*
* @package GitFloat WebDriver
* @version 0.2
* @author Kevin Baugh
*/
namespace GitFloat;
/**
* Runs some curl functions,
*/
class Curl {
/**
* Run the actual curl command
* @pa... | PHP | lib/GitFloat/Curl.php | loraxx753/GitFloat | mit | 5,253 | 196 | codeparrot/github-code |
f95571b9ba18c9216ebfa6fedd188aed911aa06822b99ff710747cc0938c2b4d | <?php
class CM_FormField_File extends CM_FormField_Abstract {
protected function _initialize() {
$this->_options['cardinality'] = $this->_params->getInt('cardinality', 1);
$this->_options['allowedExtensions'] = $this->_getAllowedExtensions();
parent::_initialize();
}
/**
* @p... | PHP | library/CM/FormField/File.php | alexispeter/CM | mit | 1,625 | 54 | codeparrot/github-code |
3d2916f3f384cbd75cb89f23b33ebb012cf982d567456c49cf981fc9fb72aa65 | /* macro command definition:
*
* buttons:
* S: start
* 1: button1
* 2: button2
* 3: button3
* 4: button4
* 5: button5
* 6: button6
*
* button layout:
* button1(K) button2(S) button3(HS)
* button4(P) button5(-) button6(D)
*
* only press/release
* _n: hold n button
* ^n: release n b... | C | test/command.h | uobikiemukot/tcc | mit | 7,743 | 415 | codeparrot/github-code |
886f5df914172e610bfb0bbdfbd05d60d424c264051c11f0121fd6f1b6eb6626 | <!DOCTYPE html>
<html>
<head>
<style>
*{padding:0 ; margin:0;}
canvas {background:black; display:block; margin:0 auto;}
</style>
<title>Page Title</title>
<link rel="canonical" href="http://frogs.oort/"/>
</head>
<body>
<canvas id="myCanvas" width="1366" height="625"> </canvas>
<body style="background-co... | HTML | ballBounce_V2.html | FrogFlint/HTML-stuff-projects | mit | 1,447 | 77 | codeparrot/github-code |
4fcaccb781b09c3d8381b8ce918ef81611bbf2f14a4a94b2a15156fdfed188e6 | use core::ops::{Add, AddAssign, Mul, MulAssign};
use num_traits::{One, Zero};
/// `ChainData` derives several traits and attempts to allow chaining the IntoIterator
/// implementation over `&` and `&mut` to allow access to the data within.
/// This is critical to allow optimizers to perform per-weight gradient update ... | Rust | mli/src/chain_data.rs | vadixidav/mli | mit | 2,884 | 147 | codeparrot/github-code |
8c102541fe9fc17ba522863c13c7e2a30ca307ef6d45e0be1535a1bce6f2e54c | ; // Defensive semicolon
"use strict";
function MVC () {
var Photo = {
defaults: {
src: "./images/pdxcg_01.jpg" // Why does a ; break here?
},
setPhotos () {
var num;
var x;
var photos = [];
for (x = 1; x < 61; x++) { // 60 image avail... | JavaScript | wk7/examples/javapic/js/mvc.js | ThunderShiviah/code_guild | mit | 2,062 | 82 | codeparrot/github-code |
8852ee51be493d342f1b48808608c98001490499fcc4a793bad4625b56d43a89 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class environment</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../index.html" title="The Boo... | HTML | third-party/src/boost_1_56_0/doc/html/boost/mpi/environment.html | rkq/cxxexp | mit | 29,856 | 399 | codeparrot/github-code |
e1d085c172c88b024c8265e99d75e3b38884d9946fb15083c4d88c36d0dac881 |
-- Serverside only.
if ( CLIENT ) then return end
local setmetatable = setmetatable
local tostring = tostring
local table = table
local Msg = Msg
local Error = Error
local ai = ai
module( "ai_task" )
--[[---------------------------------------------------------
ENUMs for which kind of task it is.
------... | Lua | lua/includes/modules/ai_task.lua | OctoEnigma/shiny-octo-system | mit | 3,868 | 150 | codeparrot/github-code |
98908cfc8b2eefe0ddc6c27c4f3cb617687c696a9d5c2c331ac1d223c39afd15 | /**
* author: Di (微信小程序开发工程师)
* organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com)
* 垂直微信小程序开发交流社区
*
* github地址: https://github.com/icindy/wxParse
*
* for: 微信小程序富文本解析
* detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
*/
// Regular Expressions for parsing tags an... | JavaScript | utils/wxParse/htmlparser.js | vace/wechatapp-news-reader | mit | 8,839 | 316 | codeparrot/github-code |
0cdbe4d1b38d6ef14a267db7da36715f0b0e97b0c8776e0e6cf940e24fef75f9 | using System;
using Android.Runtime;
using Android.Support.V7.App;
using Android.Views;
using Android.Widget;
namespace InteractiveAlert.Droid
{
public class BaseInteractiveDialogFragment<TConfig> : AppCompatDialogFragment where TConfig : InteractiveAlertConfig
{
protected TConfig Config { get; set; }
private... | C# | InteractiveAlert/InteractiveAlert.Droid/Alerts/BaseInteractiveDialogFragment.cs | kvandake/SCLAlertView-Xamarin | mit | 3,465 | 131 | codeparrot/github-code |
af8bb9ef0f08edb65e01ab63a8b9a72a82c40b73eab6fcd458598f1758dd83e1 | using System;
using System.Collections;
using System.Collections.Generic;
namespace FogCreek.Wasabi.AST
{
public class CParameters : INodeParent
{
public class ParameterList : IEnumerable<CNode>
{
private readonly INodeParent parent;
private List<CNode> items = new List<... | C# | AST/CParameters.cs | FogCreek/RoslynGenerator | mit | 7,662 | 281 | codeparrot/github-code |
dafaeacab2805424cd1350aa21fc8aaa003884e4ca4402bc55380e3a896255b0 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../../">
<title data-ice="title">PostModel | backbone-parse-es6 issues demos API Document</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettify-... | HTML | repos/backbone-parse-es6/docs/class/backbone-parse-es6/src/issue5/model/PostModel.js~PostModel.html | typhonjs-demos-test/typhonjs-issues-demos | mit | 57,754 | 1,502 | codeparrot/github-code |
dc8f1b64a151eadf5ad770acd5dea1b940e949fee5c1d42f91c373e81ccda902 | package edu.uta.se.profilebuddy.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import edu.uta.se.profilebuddy.object.Notification;
/**
* Database object for the ass... | Java | ProfileBuddy/src/edu/uta/se/profilebuddy/database/ManageNotificationDB.java | sandeep-tr/android | mit | 2,446 | 85 | codeparrot/github-code |
9ea8e14e3e7155fbffbf2301f85ea39441f293a4bde72b1280d999c4705f93e5 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Media;
namespace MediaBrowser.Theater.Presentation.Controls
{
/// <summary>
/// Helper methods for UI-related tasks.
/// </summary>
public static class TreeHelper
{
/// <summary>
... | C# | MediaBrowser.Theater.Presentation/Controls/TreeHelper.cs | TomGillen/MediaBrowser.Theater | mit | 12,175 | 322 | codeparrot/github-code |
b2bd4f45ac77ed26040788201f742d8f1137c7be314d2037141e4bd1c0b9ee1b | #region Licence
/* The MIT License (MIT)
Copyright © 2015 Ian Cooper <ian_hammond_cooper@yahoo.co.uk>
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 limitat... | C# | src/Paramore.Brighter.MessagingGateway.RMQ/HeaderNames.cs | BrighterCommand/Brighter | mit | 2,829 | 66 | codeparrot/github-code |
8ec535e6dd34916130e2a15a725e2393f73bdbd4305743a1c1322e573ec722ed | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2020, 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++ | Engine/lib/assimp/code/X3D/X3DImporter_Shape.cpp | Bloodknight/Torque3D | mit | 10,865 | 251 | codeparrot/github-code |
cbba7b0c0296bda35d79c81415fa0dde31fc73680b146ad8903ae8e400edfeb2 | #!/bin/bash
#This script is used to finished a android automated compiler in Mac OS.
#You'd better add "export PATH=$PATH:$ANDROID_HOME/platform-tools" and "export
#PATH=$PATH:$ANDROID_HOME/tools" to you bash_profile,it will be very convenient.
#Copy monkeyrunner python script to tools directory.
cd ../..
CUR=$(pwd)
c... | Shell | cocos2d-2.1beta3-x-2.1.0/tools/jenkins_scripts/mac/android/test-android-2.2-3.2-release.sh | zhwsh00/DirectFire-android | mit | 2,288 | 86 | codeparrot/github-code |
993057ebff59daedee8b71b07d1435f134cad9703c5274e410e020b8d7463bb8 | <html lang="en">
<head>
<title>Type - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Pseudo-Ops.html#Pseudo-Ops" title="Pseudo Ops... | HTML | gcc-arm-none-eabi/share/doc/gcc-arm-none-eabi/html/as.html/Type.html | trfiladelfo/tdk | mit | 5,274 | 117 | codeparrot/github-code |
69ef4807d13f83aac3c66cb302459069f8ded2e970115c5d4e3fcf260b7ebede | package com.faforever.api.data.domain;
import com.faforever.api.data.checks.IsEntityOwner;
import com.faforever.api.data.checks.Prefab;
import com.yahoo.elide.annotation.CreatePermission;
import com.yahoo.elide.annotation.DeletePermission;
import com.yahoo.elide.annotation.Include;
import com.yahoo.elide.annotation.Up... | Java | src/main/java/com/faforever/api/data/domain/MapVersionReview.java | FAForever/faf-java-api | mit | 992 | 34 | codeparrot/github-code |
aef0329f5747516a960f4de40a6fa69a6f4ca9d51812a407aa40716cd4ed2388 | var FieldType = require('../Type');
var TextType = require('../text/TextType');
var util = require('util');
var utils = require('keystone-utils');
/**
* Key FieldType Constructor
* @extends Field
* @api public
*/
function key(list, path, options) {
this._nativeType = String;
this._defaultSize = 'medium';
this.s... | JavaScript | fields/types/key/KeyType.js | kumo/keystone | mit | 1,396 | 57 | codeparrot/github-code |
7c1d8618276a9e8bd47fd1f1c47d701164d6d3bdbe50e0aee283411dccffb605 | #pragma once
#include "types.h"
#include "hashmap.h"
struct interpreter;
struct funcunion;
class buildinfuncos
{
public:
force_inline buildinfuncos(fake * fk) : m_fk(fk)
{
}
force_inline ~buildinfuncos()
{
clear();
}
force_inline fake * getfake()
{
return m_fk;
}
force_inline void clear()
{
}
voi... | C | src/buildinfuncos.h | swizl/fakescript | mit | 509 | 41 | codeparrot/github-code |
f415d841bdd8355f357aa168cc017b8fe1290617e0c870d8fcd3bb7ac5141982 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ISuspensionController — Leap Motion C# SDK v3.1 documentation</title>
<link rel="stylesheet" href="../../cpp/_static/bootst... | HTML | plugins/track/hand/leapMotion/3rdParty/leapMotion/docs/csharp/unity/Unity.IE.ISuspensionController.html | MTASZTAKI/ApertusVR | mit | 14,045 | 390 | codeparrot/github-code |
24e323f28151b3a13085035d110394f75cf0f49057b412f70ef7cef9f9fab719 | {
matrix_id: '622',
name: 'lp_fffff800',
group: 'LPnetlib',
description: 'Netlib LP problem fffff800: minimize c\'*x, where Ax=b, lo<=x<=hi',
author: 'J. Reid',
editor: 'D. Gay',
date: '',
kind: 'linear programming problem',
problem_2D_or_3D: '0',
num_rows: '524',
num_cols: '... | Ruby | db/collection_data/matrices/LPnetlib/lp_fffff800.rb | ScottKolo/UFSMC-Web | mit | 4,217 | 82 | codeparrot/github-code |
7ed5087c8105ec9b6b52e2887c84ee2b2922c307793b5db455c279a5e555b2c2 | // Copyright (c) 2009-2017 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Developers
// Copyright (c) 2013-2017 Emercoin Developers
// Copyright (c) 2016-2017 Duality Blockchain Solutions Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org... | C | src/dns/seqdns.h | SilkNetwork/Silk-Core | mit | 4,420 | 140 | codeparrot/github-code |
d59b770600207bbd3f75f06e338a314c464da695f33e87b3e1d4cd3840448ca4 | #
# Copyright (c) 2014 Constant Contact
#
# 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, ... | Ruby | lib/jenkins_pipeline_builder/extensions.rb | constantcontact/jenkins_pipeline_builder | mit | 3,494 | 115 | codeparrot/github-code |
a4b910d64b242c8d603ef72ace257573c67b1fa6e794c764b2a64e73ece2deb3 | import parmed.unit as units
from intermol.decorators import accepts_compatible_units
from intermol.forces.abstract_dihedral_type import AbstractDihedralType
class ProperPeriodicDihedralType(AbstractDihedralType):
__slots__ = ['phi', 'k', 'multiplicity', 'weight', 'improper']
@accepts_compatible_units(None, ... | Python | intermol/forces/proper_periodic_dihedral_type.py | shirtsgroup/InterMol | mit | 1,984 | 48 | codeparrot/github-code |
363510d5df9754bc78fc89dd37c7f56209252efb990ab211385e772cb98e76f1 | var main = require('./main.js');
var _ = require('underscore');
var files = require('./files.js');
var deploy = require('./deploy.js');
var buildmessage = require('./buildmessage.js');
var warehouse = require('./warehouse.js');
var auth = require('./auth.js');
var config = require('./config.js');
var release = require(... | JavaScript | tools/commands-packages.js | benjamn/meteor | mit | 93,675 | 2,493 | codeparrot/github-code |
757cc10a9189e5900c778347d45c96f994bf3cfe25ab06e506301acf632af870 | using System.Collections.Generic;
using System.Reflection.Emit;
namespace Harmony.ILCopying
{
public class ILInstruction
{
public int offset;
public OpCode opcode;
public object operand;
public object argument;
public List<Label> labels = new List<Label>();
public ILInstruction(OpCode opcode, object o... | C# | PropUnlimiter/Harmony/ILCopying/ILInstruction.cs | tony56a/prop-unlimiter | mit | 2,605 | 123 | codeparrot/github-code |
8cd3753e2a0a82cc83dfa1cdd6a55d3879c836084893c2e93dfa3db109c91c89 | require 'active_support/core_ext/object/blank'
module ActionDispatch
module Http
module UploadedFile
def self.extended(object)
object.class_eval do
attr_accessor :original_path, :content_type
alias_method :local_path, :path if method_defined?(:path)
end
end
... | Ruby | rmagick/ruby/1.8/gems/actionpack-3.0.1/lib/action_dispatch/http/upload.rb | Vizzuality/ushelf | mit | 1,515 | 50 | codeparrot/github-code |
2a888d71f0da08e27f7844b8b1da3c4959ce39ffbe9549dd200af01251a45f86 | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | C++ | src/Providers/UNIXProviders/PackageCooling/UNIX_PackageCoolingProvider.cpp | brunolauze/openpegasus-providers-old | mit | 3,158 | 101 | codeparrot/github-code |
5bc8015a61556424ec771e9570fb3d3c2b5a4b4d81f21e729ac922dd501bba5b | /*
The MIT License (MIT)
Copyright (c) 2018 Helix Toolkit contributors
Reference: https://graphicsrunner.blogspot.com/search/label/Volume%20Rendering
*/
using SharpDX;
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
#if !NETFX_CORE
namespace HelixToolkit.Wpf.SharpDX
#else
#if CORE
n... | C# | Source/HelixToolkit.SharpDX.Shared/Utilities/VolumeDataHelper.cs | JeremyAnsel/helix-toolkit | mit | 7,484 | 181 | codeparrot/github-code |
94f986baeedb3a3573e27db48301feb603c8126e89ef0fa6943f24252a9454f0 | # ===================================================================
#
# Copyright (c) 2016, Legrandin <helderijs@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:
#
# 1. Redistributio... | Python | app/pylibs/osx64/Cryptodome/PublicKey/RSA.py | mchristopher/PokemonGo-DesktopMap | mit | 28,324 | 768 | codeparrot/github-code |
7e38dd912695fe40525b4583ff50af081c8a28e64a5bc9863b2add94aa1741ae | 'use strict';
/**
* make-dir module
* @module make-dir
* @see module:index
*/
const shelljs = require('shelljs');
const Handler = require('./base');
const wrapPathInfo = require('../common/wrap-path-info');
const name = 'make-dir';
module.exports = new Handler({
method: 'post',
name,
url: '*',
toRoute(op... | JavaScript | lib/handler/make-dir.js | leungwensen/zfinder | mit | 679 | 35 | codeparrot/github-code |
a7808f6dff410777366728554847ca33e45f7bff15958ebc06f4be9227f7468a | using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using StopGuessing.AccountStorage.Memory;
namespace StopGuessing.Interfaces
{
//public interface IUserAccountContextFactory : IStableStoreFactory<string, UserAccount>
//{ }
public class MemoryOnlyUserAccountRepos... | C# | StopGuessingOld/Interfaces/IStableStore.cs | Microsoft/StopGuessing | mit | 2,262 | 77 | codeparrot/github-code |
9edbb19a956572bedfecf130515a24ec1ddb18736c78c9520ce65ec177faad04 | // Shared.cs
// ------------------------------------------------------------------
//
// Copyright (c) 2006-2011 Dino Chiesa.
// All rights reserved.
//
// This code module is part of DotNetZip, a zipfile class library.
//
// ------------------------------------------------------------------
//
// This code is licensed... | C# | PoehoeZipWinPhone/ZipCode/Shared.cs | puckipedia/MagisterAPI | mit | 33,394 | 902 | codeparrot/github-code |
cff9f5978df864503cba6491cbec55eb97c951b962697c18b902213bcfe75459 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.... | C# | src/EditorFeatures/TestUtilities/EditAndContinue/ActiveStatementsDescription.cs | diryboy/roslyn | mit | 8,690 | 212 | codeparrot/github-code |
9943988ed7b1fd2a672b37e1488792570a6d1ddd84e43e4966f5d4f46e7e4c93 | #coding:utf8
'''
Created on 2013-5-8
@author: lan (www.9miao.com)
'''
from dbpool import dbpool
from MySQLdb.cursors import DictCursor
from numbers import Number
from gtwisted.utils import log
import traceback
from gfirefly.utils.singleton import Singleton
M2DB_PORT = 5000
M2DB_HOST = "127.0.0.1"
SYNC_TYPE = 1
clas... | Python | src/annotation/gfirefly/gfirefly/gfirefly/dbentrust/util.py | yangdw/PyRepo | mit | 8,318 | 316 | codeparrot/github-code |
dc65aa0807b1b3148518a8a27ae0addfa473812365eb4e74ac400d5ff87ce0ac | package net.anotheria.moskito.web.filters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import... | Java | moskito-web/src/main/java/net/anotheria/moskito/web/filters/DebugRequestFilter.java | esmakula/moskito | mit | 4,355 | 122 | codeparrot/github-code |
982fdd89e76338d4d13dd59b6571bf8c210d64b770521fa46225fec1559ccf97 | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restricti... | C# | DNN Platform/Library/Entities/Urls/Config/RewriterRule.cs | svdv71/Dnn.Platform | mit | 2,606 | 77 | codeparrot/github-code |
de06f3e09828bce00146ecd6b7e49d48047eea9670db86ac3715a8504a98f931 | <div class="am-input-group am-input-group-warning">
<span class="am-input-group-label"><i class="am-icon-search"></i></span>
<input type="text" id="filter" placeholder="查找" class="am-form-field">
</div>
<table class="footable table" data-page-size="15" data-filter="#filter" data-filter-minimum="1" data-filter-... | HTML | public/web/ac_uss_page.html | Miantang/IoT-Cloud | mit | 3,756 | 100 | codeparrot/github-code |
04e2c2a1287c0d16d661ed566f2bb9630c818d41cf84fd7a984cafc70fa9ead1 | import "sort"
type Schedule struct {
intervals []Interval
}
func (s *Schedule) Len() int {
return len(s.intervals)
}
func (s *Schedule) Less(i, j int) bool {
if s.intervals[i].Start < s.intervals[j].Start {
return true
}
return false
}
func (s *Schedule) Swap(i, j int) {
s.intervals[... | GO | leetcode/252-MeetingRooms/MeetingRooms.go | everyevery/programming_study | mit | 745 | 39 | codeparrot/github-code |
937990ca36176b30541dcd8616d214323a731f5cd314b215e3310bd7b1cfb445 | document.onkeydown=keyListener; // 用 keyListener 方法注册按键事件
function keyListener(e) { // 当按下回车键,执行我们的代码
if(e.keyCode == 13) triangle();
}
function print(n) {
var str = '<pre>';
document.getElementById("output").innerHTML = "";
for (var i=1; i<=n; i++) {
for(var j=1; j<=(n-i); j++) str += '... | JavaScript | node/www/triangle.js | wangding/demo-code | mit | 975 | 45 | codeparrot/github-code |
db812f1d295b71f2303238e169821ab659c258731a971d6cb765c0439a62b839 | require 'codeqa/utils/erb_sanitizer'
require 'open3'
module Codeqa
module Checkers
class CheckErbHtml < Checker
def self.check?(sourcefile)
sourcefile.html?
end
def name
'erb html'
end
def hint
'The html I see after removing the erb stuff is not valid (find ... | Ruby | lib/codeqa/checkers/check_erb_html.rb | preisanalytics/codeqa | mit | 1,256 | 43 | codeparrot/github-code |
1897b926e880055632a20da03d1cdd453b17d603901c8da7acf386946474cc23 | /****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
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 res... | C | AnalyticX/libs/cocos2dx/cocoa/CCNS.h | diwu/AnalyticX | mit | 3,443 | 72 | codeparrot/github-code |
c1a5a24e50df755e91c1ab549ed57934148fb14d124bc9ba7f18ccef24c8db82 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#i... | C++ | src/init.cpp | rawcoincomm/rawcoin | mit | 35,602 | 919 | codeparrot/github-code |
978f184696e8bfeb45bc4fe12c5c7fca31496150a3361bf6d2096c654de8e9e4 | /// <binding BeforeBuild='sass-compile, min' Clean='clean' ProjectOpened='watch-sass' />
'use strict';
var gulp = require('gulp'),
rimraf = require('rimraf'),
concat = require('gulp-concat'),
cssmin = require('gulp-cssmin'),
uglify = require('gulp-uglify'),
sassCompile = require('gulp-sass');
var... | JavaScript | WebInterface/src/WebInterface/gulpfile.js | fgallardo/neo-challege-2016 | mit | 2,147 | 75 | codeparrot/github-code |
f72a54ce5e6adca5fd7fa7ab119abf0df6e589870656818e6d8bffd3a0fad007 | """
Visualization of ARGs (Ancestral Recombination Graphs)
"""
# python imports
from itertools import chain, izip
import random
from math import *
# rasmus imports
from rasmus import util, treelib, stats, sets
# compbio imports
from compbio import arglib
# summon imports
import summon
from summon import sumtr... | Python | compbio/vis/argvis.py | wutron/compbio | mit | 29,618 | 1,032 | codeparrot/github-code |
4a12918b3b633720650750228ce75279ae44ecc9b5dec243691098f0cd8903fa | #include <algorithm>
#include <numeric>
#include "PartitionLoops.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Simplify.h"
#include "Solve.h"
#include "IREquality.h"
#include "ExprUsesVar.h"
#include "Substitute.h"
#include "CodeGen_GPU_Dev.h"
#include "Var.h"
#include "CSE.h"
namespace Halide {
namespa... | C++ | src/PartitionLoops.cpp | psuriana/Halide | mit | 36,699 | 998 | codeparrot/github-code |
6986ee2b42bd40fa2f3893fb6368ef1d762e5ae4f355844f0d5b23fb21bfeb1f | // PLL.c
// Runs on LM4F120/TM4C123
// A software function to change the bus frequency using the PLL.
// Daniel Valvano
// Last Modified: 3/6/2015
/* This example accompanies the book
"Embedded Systems: Real Time Interfacing to Arm Cortex M Microcontrollers",
ISBN: 978-1463590154, Jonathan Valvano, copyright (c... | C | Tetris Game Lab/PLL.c | AriaPahlavan/Spring-2015-EE-319K-Labs-C-and-Assembly | mit | 6,535 | 205 | codeparrot/github-code |
be08a09e6b6953d08f046a9fa71142b379896433b803811e64d6c49d555c7978 | import logging
import os
import sys
from nltk.corpus import stopwords as nltk_stopwords
from hunmisc.utils.huntool_wrapper import Hundisambig, Ocamorph, OcamorphAnalyzer, MorphAnalyzer # nopep8
from stemming.porter2 import stem as porter_stem
from utils import get_cfg
class Lemmatizer():
def __init__(self, cfg... | Python | src/fourlang/lemmatizer.py | kornai/4lang | mit | 5,587 | 154 | codeparrot/github-code |
0b20978313a6c27c3a7ef9f9fe06681d0a8b56769b01ea731ba619082c68a7f0 | <?php
/**
*
* 页面性能检测: 部署在取样机上的脚本,用于想主机传送监控信息
* you should deploy this scipt(with ../../automation folder) to a sub monitor machine,
* then it can get the performace data and transfer it to the server, cron it like below:
* /20 * * * * root /usr/bin/php /data1/pageMonitor/php/cron/monitor.php 1 >> /dev/null
*
**/... | PHP | php/cron/monitor.php | supersky07/Katpard | mit | 6,509 | 183 | codeparrot/github-code |
648ea6b438e89d021dd39331f38aa439829fd8a7ecf27e3b0eb9837120626970 | package Nov2020Leetcode;
public class _0415AddStrings {
public static void main(String[] args) {
System.out.println(addStrings("100", "999"));
System.out.println(addStrings("100", "1"));
System.out.println(addStrings("9", "9"));
System.out.println(addStrings("408", "5"));
}
public static String addStrings... | Java | src/Nov2020Leetcode/_0415AddStrings.java | darshanhs90/Java-Coding | mit | 937 | 41 | codeparrot/github-code |
7216e82698af265f010845756b3caed9a3492f240438154bfe9bee9ecc1045d5 | using System;
using System.Collections.Generic;
using MBCorpHealth.Dominio;
using MBCorpHealth.Dominio.Contratos.Repositorio;
namespace MBCorpHealthUnitTest
{
public class PacientesSQL:IRepositorio<Paciente>
{
public bool Gravar(Paciente entidade)
{
return true;
}
p... | C# | Curso Fundamentos/src/Aula 7/ExercicioRepositoryPattern/Infraestrutura/Repositorio/RepositorioPaciente.cs | fabiomargarito/ExemplosCursoFundamentosEmArquiteturaDeSoftware | mit | 3,595 | 112 | codeparrot/github-code |
fcf004dabc90ba738360b32b8d9cb74035021251dcb10787ed55be41e2dc786c | <?php
declare(strict_types=1);
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files m... | PHP | src/Command/PluginAssetsCopyCommand.php | ADmad/cakephp | mit | 2,497 | 84 | codeparrot/github-code |
372627b4f220644f3ba01fc2b20f2a7ff00de9ca64a6b470589cbd8bd2017905 | /* S390 internal mutex struct definitions.
Copyright (C) 2019-2021 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softwar... | C | lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h | zig-lang/zig | mit | 1,783 | 63 | codeparrot/github-code |
656352feda604872ce371a9b17580fb156b1389c3b04800c230b06c531480d3e | #ifndef COINRECYCLEPAGE_H
#define COINRECYCLEPAGE_H
#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QByteArray>
namespace Ui {
class CoinRecyclePage;
}
class ClientModel;
class WalletModel;
QT_BEGIN_NAMESPACE
class QModelIndex;
QT_END_NAMESPACE
/** CoinRecycle page widget... | C | src/qt/coinrecyclepage.h | saffroncoin/Wallet20 | mit | 741 | 46 | codeparrot/github-code |
4e587611c7186fbb4dacbc311abd75a1f96474e9616dd5e3918d1babc5153228 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { GovInfoComponent } from '../features/gov-info/gov-info.component';
import { BillsComponent } from '../features/bills/bills.component';
import { MeetingsComponent } from '../features/meetings/meetings.component';
import { ... | TypeScript | src/WebUI/WebApp/clientapp/src/app/features/features.module.ts | govmeeting/govmeeting | mit | 2,218 | 66 | codeparrot/github-code |
fa4b43157a781e4e0836dc5b9874c014fae8a2f3410207b010265033006d5129 |
// Generated on 12/11/2014 19:01:44
using System;
using System.Collections.Generic;
using System.Linq;
using BlueSheep.Common.Protocol.Types;
using BlueSheep.Common.IO;
using BlueSheep.Engine.Types;
namespace BlueSheep.Common.Protocol.Messages
{
public class GuildHouseRemoveMessage : Message
{
... | C# | BlueSheep/Common/Protocol/messages/game/guild/GuildHouseRemoveMessage.cs | AnonymousSheep/BlueSheep | mit | 1,132 | 54 | codeparrot/github-code |
436b67e730433551394a79e2b17696e6bae24338d925c8b77d0689176a7dee3e | t = input()
mem = {}
for _ in range(0, t):
n = input()
c = n / 2
le = s = n % 2
e = n % 2
nearest_n = n - min([n - i for i in mem.keys() if i <= n and i % 2 == e] + [n])
if nearest_n == n:
s = m[nearest_n][0]
else:
if nearest_n > 0:
m = mem[nearest_n]
s = m[0]
le = m[1]
c -= nearest_n / ... | Python | hackerearth/events/june_circuits/set-1/leaf_and_limelight_attack/solution.py | amol9/hackerearth | mit | 506 | 37 | codeparrot/github-code |
a6f2ab044715265649a971aed32eb41853ec5d7e3182727916a3c915fa7261c3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Material] →
<h1>[name]</h1>
<p class="desc">
[name] is internally used for implementing sha... | HTML | docs/api/en/materials/MeshDistanceMaterial.html | 06wj/three.js | mit | 4,015 | 125 | codeparrot/github-code |
0ab0ff0f233ce838a989bef8f3b90544d3b1ff55b3eb522de3447d387ebc67b6 | # -*- coding: utf-8 -*-
import os
import sys
from formalchemy.i18n import get_translator
from formalchemy import helpers
from formalchemy.helpers import literal
from tempita import Template as _TempitaTemplate
class TempitaTemplate(_TempitaTemplate):
default_encoding = None
try:
from mako.lookup import TemplateL... | Python | formalchemy/templates.py | FormAlchemy/formalchemy | mit | 4,638 | 127 | codeparrot/github-code |
918861d7b0c16a91e07502058cc46280ff339e0aabe024fb370dbadf531707e4 | using System;
using System.Globalization;
namespace Cake.Diagnostics.Formatting
{
internal sealed class PropertyToken : FormatToken
{
private readonly int _position;
private readonly string _format;
public string Format
{
get { return _format; }
}
... | C# | src/Cake/Diagnostics/Formatting/PropertyToken.cs | RichiCoder1/cake | mit | 1,030 | 41 | codeparrot/github-code |
fea21ad229a83c7ea7a9ee5d534044e0fc4c950fd7e9b386cb205adbfc9cde21 | // Writing files in Go follows similar patterns to the
// ones we saw earlier for reading.
package main
import (
"bufio"
"fmt"
"io/ioutil"
"os"
)
func check(e error) {
if e != nil {
panic(e)
}
}
func main() {
// To start, here's how to dump a string (or just
// bytes) into a... | GO | templates/writing-files/writing-files.go | b0o/playground | mit | 1,341 | 59 | codeparrot/github-code |
38ef96c216c48b8c7061e20f0af1421575bd6a93783c68700f490e930d0db698 | //==============================================================================
// Registers a node on the local network using mDNS
//==============================================================================
var mdns = require('./mdns/lib/mdns'),
constants = require('../jamserver/constants'),
logger = re... | JavaScript | lib/jdiscovery/mdnsregistry.js | anrl/JAM | mit | 11,601 | 367 | codeparrot/github-code |
bcccf6cda0a02060a3784d5fde64a0a3e67037e542d4e030b9a3778c76d56c9a | /*
Part of the GUI for Processing library
http://www.lagers.org.uk/g4p/index.html
http://gui4processing.googlecode.com/svn/trunk/
Copyright (c) 2013 Peter Lager
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as p... | Java | libraries/G4P/src/g4p_controls/GValueControl2D.java | manorius/Processing | mit | 2,838 | 88 | codeparrot/github-code |
985c72157e3b784120cc8440206bad9e67b6c892368672217780689c59ac045f | /*********************************************
* Local styles specific to my presentations
*********************************************/
/* Darken background images */
.reveal .slide-background-content {
opacity: 60%;
}
/* Shade text if background image */
section[data-background-image],
.reveal section[data-bac... | CSS | static/css/slides.css | prapanchnair/prapanchnair.github.io | mit | 2,736 | 126 | codeparrot/github-code |
2e98e65af0174bc3365b8dca20e328080d821b115562600e8388d17919386ffa | import BaseModel from '../BaseModel';
import is from 'is_js';
import { getCurrencyByCode } from '../../data/currencies';
export default class extends BaseModel {
defaults() {
return {
contractType: 'PHYSICAL_GOOD',
format: 'FIXED_PRICE', // this is not in the design at this time
// by default, ... | JavaScript | js/models/listing/Metadata.js | srhoulam/openbazaar-desktop | mit | 1,643 | 53 | codeparrot/github-code |
c6ce7b7413ed2a51d79906fe8fd114dfd33989a9074f8e8ad7012b50a88165a4 | package org.ccci.gto.android.common.util;
import android.net.Uri;
import android.net.Uri.Builder;
import androidx.annotation.NonNull;
import java.util.regex.Pattern;
public final class UriUtils {
@NonNull
public static Builder removeQueryParams(@NonNull final Builder uri, final String... keys) {
if (... | Java | gto-support-core/src/main/java/org/ccci/gto/android/common/util/UriUtils.java | CruGlobal/android-gto-support | mit | 1,712 | 54 | codeparrot/github-code |
cf51d0e768702aa810bd778267feddf4896976c067f8174baa89a73daea88d80 | // import elrUtlities from 'elr-utility-lib';
import elrTimeUtlities from 'elr-time-utilities';
import elrCalendarCreate from './elr-calendar-create';
const $ = require('jquery');
// let elr = elrUtlities();
let elrTime = elrTimeUtlities();
let elrCreate = elrCalendarCreate();
const elrCalendarActions = function({
... | JavaScript | js/assets/elr-calendar-actions.js | elr-utilities/elr-utilities | mit | 5,862 | 150 | codeparrot/github-code |
9434ce56a4a6025eba5a18e372da25cc5e36d8e91e8fa9cc88d4470c670788a5 | <?php
namespace HXPHP\System;
class Tools
{
/**
* Exibe os dados
* @param mist $data Variável que será "debugada"
*/
public static function dd($data, bool $dump = true)
{
echo '<pre>';
($dump) ? var_dump($data) : print_r($data);
echo '</pre>';
}
public sta... | PHP | src/HXPHP/System/Tools.php | marcus2355/serie-criando-sistema-de-cadastro-e-login | mit | 4,159 | 195 | codeparrot/github-code |
966be25fad26b39a92b70ec334e6b95beb6c3d4ecb6825dcdf07ca0e89ecbc12 | @extends('connexion::worship.page')
@section('content')
<h3 class="box-title">Guitar chords
<a href="chords/create" class="btn btn-default">Add a new chord</a>
</h3>
<div class="row">
<div class="col-sm-9">
<div class="nav-tabs-custom">
<ul id="myTab" class="nav nav-tabs">
<... | PHP | src/Resources/views/chords/index.blade.php | bishopm/connexion | mit | 10,003 | 194 | codeparrot/github-code |
62e9a32d5fb74084d706e96ba1d2d2f234ef653f6a9407acfaea89ebcb6ef0cc | #define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <wlr/util/log.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include "backend/backend.h"
#include "render/allocator/allocator.h"
#include "render/allocator/drm_dumb.h"
#include "render/allocator/gb... | C | render/allocator/allocator.c | swaywm/wlroots | mit | 5,116 | 171 | codeparrot/github-code |
fd1ec8f59cc81f51fe51cfa2e2a33a86f24d5a132141b8d83638ec1122bddcd6 | using System;
namespace iQQ.Net.WebQQCore.Im.Core
{
public enum QQSessionState
{
Offline,
Online,
Kicked,
Logining,
Error
}
/// <summary>
/// QQSession保存了每次登陆时候的状态信息
/// </summary>
public class QQSession
{
private volatile QQSessionStat... | C# | src/WebQQCore/Im/Core/QQSession.cs | huoshan12345/WebQQWeChat | mit | 1,417 | 57 | codeparrot/github-code |
626ac785618c10b8d59a5c2905a9d112e5b4e4bb162d3fdb8af515e581075bcc | class ItemsController < ApplicationController
before_action :set_item, only: [:show, :edit, :update, :destroy]
# GET /items
# GET /items.json
def index
@items = Item.all
end
# GET /items/1
# GET /items/1.json
def show
end
# GET /items/new
def new
@item = Item.new
end
# GET /items/1... | Ruby | enterpriseape/app/controllers/items_controller.rb | jeyavel-velankani/Jel_Apps | mit | 1,764 | 75 | codeparrot/github-code |
1bdb8c75c2d8a2cd304c5a99ea001554cc7ce3bc7b78709257aa55c89fec40d3 | // Modified by Bo Zhao, zhao2@oregonstate.edu
// Originally obtained from http://atlefren.github.io/storymap/
// Updated on 5/14/2017 | version 2.22 | MIT License
(function ($) {
$.fn.storymap = function(options) {
var defaults = {
selector: '[data-scene]',
breakpointPos: '33.333%... | JavaScript | js/storymap.js | winkyt/standwithstandingrock | mit | 11,381 | 323 | codeparrot/github-code |
0566336d73166ccb3d4c806a3b13de8dbbfba0a987b9ed36ff0fab975a776bc6 | #!/bin/bash -e
OPAM_DEPENDS="ocamlfind ocp-build js_of_ocaml.3.0 sedlex.1.99.4 lwt.3.1.0"
TMP=${TMPDIR:-/tmp}
dlerror () {
echo "Couldn't download $url"
exit 1
}
getopam() {
opamfile=$2
url=$1/$opamfile
if which wget >/dev/null; then
wget -q -O "$TMP/$opamfile" "$url" || dlerror
els... | Shell | resources/travis/install_deps.sh | ylu1317/flow | mit | 2,360 | 95 | codeparrot/github-code |
376109d15ed9bde6eac17260957e4328c4034717eb82a3fce67dd79f7a4bb31d | /* ************************************ */
/* Define helper functions */
/* ************************************ */
var getInstructFeedback = function() {
return '<div class = centerbox><p class = center-block-text>' + feedback_instruct_text +
'</p></div>'
}
function assessPerformance() {
var experiment_data = jsP... | JavaScript | columbia_card_task_cold/experiment.js | expfactory/expfactory-experiments | mit | 26,150 | 583 | codeparrot/github-code |
e43ac359de431442fa48b0d9325db93fbbaf774c4337dcdcc602a2cdb8e727f8 | # Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""Encodings and related functions."""
__all__ = [
'encode_7or8bit',
'encode_base64',
'encode_noop',
'encode_quopri',
]
from base64 import encodebytes as _bencode
from quopri import encode... | Python | pypy3-v5.5.0-linux64/lib-python/3/email/encoders.py | timm/timmnix | mit | 2,185 | 79 | codeparrot/github-code |
883b19e1d386c58925d26db68d9a4a3c8b59a8dd2dcec37ed33ff72249b61cc7 | <?php
/**
* @autor Ewerton Cardoso
*/
namespace Ewerton\Cnab\Cnab240\Generico;
use Ewerton\Cnab\Cnab240\Generico\CnabInterface;
use Ewerton\Cnab\Utils\FormataString;
use Zend\I18n\Validator\DateTime;
abstract class HeaderArquivo implements CnabInterface
{
use Arquivo;
/**
* @var integer
*/
... | PHP | src/Ewerton/Cnab/Cnab240/Generico/HeaderArquivo.php | murilosandiego/cnab | mit | 2,638 | 141 | codeparrot/github-code |
a32b2dc38720aacf387f577a2a93ba94e6756122081df4279b1626a5bf36b59b | #
# Secret Labs' Regular Expression Engine
#
# various symbols used by the regular expression engine.
# run this script to update the _sre include files!
#
# Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved.
#
# See the sre.py file for information on usage and redistribution.
#
"""Internal support modul... | Python | tools/constants.py | SumiTomohiko/corgi | mit | 7,464 | 263 | codeparrot/github-code |
399e6e2f908f174da5bb2af5059d9fe2cd81d722ba5e98d0b4f0388cc9905d5b | class ProjectDecorator < Draper::Decorator
decorates :project
include Draper::LazyHelpers
def show_city
if source.city.present?
source.city.show_name
elsif source.account && source.account.address_city.present? && source.account.address_state.present?
"#{source.account.address_city.capitalize... | Ruby | app/decorators/project_decorator.rb | BijayaDas/catarse | mit | 3,752 | 135 | codeparrot/github-code |
1ab2b84a3e3d30b5aab4f89a5ebd098bff4a0d7bf78d06644395b249528dd8d9 | import { RouterModule } from "@angular/router";
import { NgModule } from "@angular/core";
import {HeaderComponent} from "./header.component"
import {NotFoundComponent} from "./not-found.component"
import {ContentComponent} from "./content/content.component";
import {ViewportModule} from "./viewport/viewport.module";
//... | TypeScript | transclude/src/app-routing.module.ts | jrgleason/routes | mit | 2,070 | 75 | codeparrot/github-code |
98862995662d0998e74fbebded04ae6efe47c35f043f7226c0afda77f928efd5 | /* ========================================================================
* Bootstrap (plugin): validator.js v0.4.0
* ========================================================================
* The MIT License (MIT)
*
* Copyright (c) 2013 Spiceworks, Inc.
* Made by Cina Saffary (@1000hz) in the style of Bootstra... | JavaScript | js/validator.js | domlatham/bootstrap-validator | mit | 7,204 | 230 | codeparrot/github-code |
2ccbdf282ef89440f76e385dbe1118514d6140aa9408a475e1591b970c684faa | import os
import tempfile
import re
from pip.util import call_subprocess
from pip.util import display_path, rmtree
from pip.log import logger
from pip.vcs import vcs, VersionControl
from pip.download import path_to_url
from pip._vendor.six.moves import configparser
class Mercurial(VersionControl):
name = 'hg'
... | Python | pip/vcs/mercurial.py | laborautonomo/pip | mit | 5,087 | 136 | codeparrot/github-code |
a5a75a58923028c4692a14a179019e47ff9281c73270e6814a126763d4679411 | (function($){
$(document).ready(function() {
/* ---------------------------------------------- /*
* Contact form ajax
/* ---------------------------------------------- */
$('#contact-form').find('input,textarea').jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors)... | JavaScript | assets/js/contact.js | DarrenRM/bcoin-io | mit | 1,418 | 54 | codeparrot/github-code |
386b1bc70b432eedf5a6d742e09f0415f391ee7186416929bb78f7dfc91ef5c9 | //
// SCMath.h
// SCFramework
//
// Created by Angzn on 5/4/14.
// Copyright (c) 2014 Richer VC. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* 是否等于零
*/
static inline BOOL SCMathEqualZero(double number) {
const double EPSINON = 1.00e-07;//此处根据精度定
return (number >= -EPSINON) && (number ... | C | SCFramework/SCFramework/SCFramework/Common/Math/SCMath.h | yimouleng/SCFramework | mit | 1,692 | 106 | codeparrot/github-code |
00f99391bb1b1281794fc4693d1a284cccc095f8c8a361b7d6a80f9144c77706 | using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace OmniSharp.Http.Middleware
{
class StatusMiddleware
{
private readonly RequestDelegate _next;
private readonly OmniSharpWorkspace _workspace;
public StatusMiddleware(RequestDelegate next, OmniSharpWorkspace workspa... | C# | src/OmniSharp.Http/Middleware/StatusMiddleware.cs | OmniSharp/omnisharp-roslyn | mit | 1,075 | 39 | codeparrot/github-code |
fd4cd314a8a186d63f69293422b2d9c338e863076ab8d003edceffa3bbd0c42b | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>vec_apply_function</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="LIBIT Documentation"
HREF="index.html"><LINK
REL="UP"
HREF="refmanu... | HTML | libit-0.2.2/doc/html/man.vec-apply-function.html | xiao00li/Undergraduate_Dissertation | mit | 3,265 | 211 | codeparrot/github-code |
97fd90367abc87318a0cc39a483902d0c6abce2c8106239fb33e28f04a39d2ed | package org.spongycastle.pqc.crypto.mceliece;
import org.spongycastle.pqc.math.linearalgebra.GF2Matrix;
public class McEliecePublicKeyParameters
extends McElieceKeyParameters
{
// the OID of the algorithm
private String oid;
// the length of the code
private int n;
// the error correction ... | Java | core/src/main/java/org/spongycastle/pqc/crypto/mceliece/McEliecePublicKeyParameters.java | Skywalker-11/spongycastle | mit | 2,014 | 97 | codeparrot/github-code |
d1dd719cdf46fc35a2b37bc45f000102ae3330ebf4d3bbc67094e05fba0d2748 | using Serenity.Abstractions;
using System.Text.RegularExpressions;
namespace Serenity.Localization
{
/// <summary>
/// Adds key fallback to any ILocalTextRegistry implementation
/// </summary>
public class FallbackLocalTextRegistry : ILocalTextRegistry
{
private ILocalTextRegistry localTex... | C# | Serenity.Core/Localization/FallbackLocalTextRegistry.cs | rolembergfilho/Serenity | mit | 4,174 | 116 | codeparrot/github-code |
1704502bb6224f2d6d86e65f23df9230d1f529e529238914b76506b1ae52a68e | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.9.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>blcksock: Class TUDPBlockSocket</title>
<link rel="Style... | HTML | tools/logicEditor/src/synapse/docs/help/blcksock.TUDPBlockSocket.html | laggyluk/brick_engine | mit | 9,841 | 163 | codeparrot/github-code |
f2b185558afb1b78dc053df40aa16c9153e73d140eb537ffe2ff8dc5221d5fb2 | /*
* ActionSequence.hpp
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Aug 30, 2014
*/
#pragma once
#include <vector>
#include "fakeit/DomainObjects.hpp"
#include "fakeit/ActualInvocation.hpp"
#include "fakeit/Action.hpp"
#include "fakeit... | C++ | include/fakeit/ActionSequence.hpp | jvff/FakeIt | mit | 2,382 | 81 | codeparrot/github-code |
47bc0606a722aedcccace40da46aea89d98a156511037dc2b01dae9ab5c44503 | 'use strict'
const {ipcRenderer, webFrame} = require('electron')
let requestId = 0
const WEB_VIEW_EVENTS = {
'load-commit': ['url', 'isMainFrame'],
'did-attach': [],
'did-finish-load': [],
'did-fail-load': ['errorCode', 'errorDescription', 'validatedURL', 'isMainFrame'],
'did-frame-finish-load':... | JavaScript | electron/renderer/web-view/guest-view-internal.js | JOT85/JOTPOT-OS | mit | 4,413 | 114 | codeparrot/github-code |
c3eda5a92fbec42dd7bec7ebc616a8c6cc656f74f169b088c469531d48a6f4fc | <?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class SendLockerClearCommand extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'locker:send_clear';
/**
... | PHP | app/commands/SendLockerClearCommand.php | EESoc/eesoc-website | mit | 1,656 | 82 | codeparrot/github-code |
ecad553bdd8fb1630968108e7b4cf8c4063dc8afe14987c39da9cf33aaa0ee28 | const fs = require('fs')
const path = require('path')
const JSON5 = require('json5')
import { Obj, merge } from 'grind-support'
export class Config {
_repository = null
constructor(app = null) {
this._repository = {}
if (!app.isNil) {
this.populate(app)
}
}
get(keyPath, fallback = null) {
return Obj... | JavaScript | packages/framework/src/Config.js | shnhrrsn/grind-framework | mit | 3,318 | 154 | codeparrot/github-code |
e4cd9a80ebb95e5340c53e92b2e4ee36d74867349a5640a30602772f48f30a49 | // The MIT License (MIT)
//
// Copyright (c) 2015 Sergey Makeev, Vadim Slyusarev
//
// 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 limitat... | C | samples/Common/TaskScheduler/Scheduler/Include/MTScheduler.h | bombomby/brofiler | mit | 11,237 | 392 | codeparrot/github-code |
6db146d12e865e46495590d18b8199b1b00943590d0c9b18089555b5b930ac29 | #pragma once
#include <glbinding/gl/nogl.h>
#include <glbinding/gl/types.h>
#include <glbinding/gl/enum.h>
namespace gl15
{
// import enums to namespace
// AccumOp
static const gl::GLenum GL_ACCUM = gl::GLenum::GL_ACCUM;
static const gl::GLenum GL_LOAD = gl::GLenum::GL_LOAD;
static const gl::GLenum GL_RETURN = ... | C | libraries/windows/include/glbinding/gl/enum15.h | Alec-Sobeck/3D-Game | mit | 81,818 | 1,259 | codeparrot/github-code |
eeb0a35164616efca1e8c5d09fc8bc01b889b3fabea20447be97848503b598e0 | #ifdef __cplusplus
extern "C" {
#endif
#ifdef _WIN32
#define Ne_EXPORT __declspec(dllexport)
#else
#define Ne_EXPORT
#endif
#define Ne_SUCCESS 0
#define Ne_EXCEPTION 1
struct Ne_ParameterList;
struct Ne_Cell;
struct Ne_Boolean;
struct Ne_Number;
struct Ne_String;
struct Ne_Bytes;
struct Ne_ArrayNumber;
struct Ne_Arr... | C | lib/extsample/neonext.h | ghewgill/neon-lang | mit | 5,408 | 122 | codeparrot/github-code |
100933dd4d5e0a45912291f4f8b5ce4d6317d068d0f0dda964ef0f7f79697611 | package org.robolectric.shadows;
import static com.google.common.truth.Truth.assertThat;
import static org.robolectric.res.android.ResourceTypes.ANDROID_NS;
import static org.robolectric.res.android.ResourceTypes.AUTO_NS;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import andro... | Java | robolectric/src/test/java/org/robolectric/shadows/XmlPullParserTest.java | jongerrish/robolectric | mit | 7,538 | 182 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.