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 |
|---|---|---|---|---|---|---|---|---|
799ac21f86a8eb5a10677fe440900968cfeb34a840bbc414da36ae44e6492abd |
function HtmlElementsPlugin(locations) {
this.locations = locations;
}
HtmlElementsPlugin.prototype.apply = function(compiler) {
var self = this;
compiler.plugin('compilation', function(compilation) {
compilation.options.htmlElements = compilation.options.htmlElements || {};
compilation.p... | JavaScript | modules/admin/config/html-elements-plugin/index.js | bulktrade/SMSC | apache-2.0 | 3,533 | 107 | codeparrot/github-code |
78d4c99ac6d91cc207a011322ceb1f4413df608524c0d0477527b274db4a5e44 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Docs for page MailTransport.php</title>
<link rel="stylesheet" href="../../med... | HTML | protected/extensions/yii-mail/doc/Swift/Transport/_vendors---swiftMailer---classes---Swift---MailTransport.php.html | m1k3777/autos-trebol-yii | apache-2.0 | 5,187 | 166 | codeparrot/github-code |
077d0fe5b702bd7d2b0d3531196a0cd64c1464d884017d05450765694af52014 | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | C++ | PI/src/pi_counter_imp.cpp | hanw/behavioral-model | apache-2.0 | 6,944 | 185 | codeparrot/github-code |
82c25815c05712ff58d9312a3681539a844b56d05704c6a8b532665f0b26d7ff | package com.totvslabs.mdm.restclient.command;
import java.util.HashMap;
import java.util.Map;
import com.totvslabs.mdm.restclient.vo.CommandTypeEnum;
import com.totvslabs.mdm.restclient.vo.EnvelopeVO;
public class CommandListDatasource implements ICommand, AuthenticationRequired {
private String tenantId;
public ... | Java | mdm-rest-client/src/main/java/com/totvslabs/mdm/restclient/command/CommandListDatasource.java | brunocvcunha/mdmconnectors | apache-2.0 | 1,178 | 60 | codeparrot/github-code |
d7d5315b953f37b5021822107764acbe5291308ce0921d3d402a8d4bad292b90 | /*
x * Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this f... | Java | core/src/test/java/org/elasticsearch/search/sort/FieldSortBuilderTests.java | mohit/elasticsearch | apache-2.0 | 19,454 | 390 | codeparrot/github-code |
3cd7a7c26a7cd76311b4b1c1cfdaddbdad7e143c0dd9bdaa249772dfe6573930 | package com.cruise.utils;
import java.util.*;
/**
* @author cruisechang
* @description
* Check utils.
*/
public class CheckUtil
{
public static final String DATA_TYPE_INT="int";
public static final String DATA_TYPE_STRING="string";
public static final String DATA_TYPE_BOOLEAN="bool";
public stat... | Java | com/cruise/utils/CheckUtil.java | cruisechang/javautils | apache-2.0 | 4,033 | 198 | codeparrot/github-code |
4609d176d71fe7a5e009655d2d244625e94a7566ab45034c26497514357e2ceb | /**
* Module dependencies
*/
var httpStatus = require('../helpers/http-status')
, User = require('mongoose').model('User')
, logger = require('../../logger');
exports.login = function (req, res) {
res.render('users/login', {title: 'login'});
};
exports.checkAuth = function (req, res, next) {
var errors = [... | JavaScript | app/controllers/users.js | orapouso/justbrew | apache-2.0 | 2,135 | 78 | codeparrot/github-code |
74190175d50a6705057b2b6915544bd3ab271f268a042cedb1f5eb3e35085104 | /*
* Copyright 2014 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | profiler/src/main/java/com/baidu/oped/apm/profiler/interceptor/registry/GlobalInterceptorRegistryBinder.java | masonmei/java-agent | apache-2.0 | 1,375 | 51 | codeparrot/github-code |
e89717e84b0e3f81769f72e385c44a2a580662e9e6de0bbfd0c7d867e0b6fc65 | # Copyright 2013 IBM Corporation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | Python | tempest/services/compute/xml/hypervisor_client.py | BeenzSyed/tempest | apache-2.0 | 3,235 | 78 | codeparrot/github-code |
5f087d619d737540b0c053e4534bf79cc956bf9e6e40c77d74c27ed87e38a106 | package com.google.ar.sceneform.rendering;
import android.support.annotation.Nullable;
import com.google.ar.sceneform.resources.ResourceHolder;
import com.google.ar.sceneform.resources.ResourceRegistry;
import java.util.ArrayList;
/**
* Minimal resource manager. Maintains mappings from ids to created resources and ... | Java | sceneformsrc/sceneform/src/main/java/com/google/ar/sceneform/rendering/ResourceManager.java | google-ar/sceneform-android-sdk | apache-2.0 | 3,736 | 117 | codeparrot/github-code |
c7da601cbce14a671c40771601c9f1ca41ee7c8cfc046fbbcee567af345f59ea | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | C | sling/frame/decoder.h | google/sling | apache-2.0 | 2,955 | 109 | codeparrot/github-code |
4680bc2be8875dfb0768321bb22308325acafcb0cf3fa657c1c75358842e5c4a | /*
* Copyright (C) 2015-2016 QuickAF
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | library/src/cn/ieclipse/af/adapter/delegate/AdapterDelegate.java | Jamling/AFDemo | apache-2.0 | 4,002 | 131 | codeparrot/github-code |
82e3b60cbd239e2e963b75c8cb50c55723f35439abda446716c9d8672d134d4b | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Authentication extends CI_Controller {
//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////... | PHP | CodeIgniter_2.2.0/application/controllers/authentication.php | ErfanThinker/EsmFamil | apache-2.0 | 11,448 | 282 | codeparrot/github-code |
d00f27b97a6332239d9f4880e284696f682fc5f93ce8b66c64a7890f464fb2f1 | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | xsollasdk/src/main/java/com/xsolla/android/sdk/util/cache/Util.java | xsolla/xsolla-sdk-android | apache-2.0 | 2,408 | 79 | codeparrot/github-code |
862dd7548e7f5387faa64ffd721bb2637ceaa898675863bee40dc5ad09a37944 | package com.fedevela.core.workflow.pojos;
/**
* Created by fvelazquez on 31/03/14.
*/
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@XmlRootElement
p... | Java | src/main/java/com/fedevela/core/workflow/pojos/AuthorityWorkflowSecurityEntity.java | fedevelatec/asic-core | apache-2.0 | 3,122 | 124 | codeparrot/github-code |
1f5cc4984a674d0b36f274a7d3f63176d33b8694fe32a26d33c14c002ba99963 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis;
namespace Roslyn.Diagnostics.Analyzers
{ ... | C# | src/Roslyn.Diagnostics.Analyzers/Core/AddPublicTypesAndMembersToTheDeclaredAPI.cs | mattwar/roslyn-analyzers | apache-2.0 | 2,682 | 38 | codeparrot/github-code |
d82c5450f27e4eb977e503bc90b99ecbfab92a9e156b68bf2b6b8743b622ea92 | package com.planet_ink.coffee_mud.Abilities.Prayers;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.... | Java | com/planet_ink/coffee_mud/Abilities/Prayers/Prayer_Paralyze.java | vjanmey/EpicMudfia | apache-2.0 | 4,716 | 131 | codeparrot/github-code |
ce4919744b5b3785ceab5608fd9e66ba7413c35812bd4dc0ed42e6e615b77a8a | package com.evolveum.midpoint.eclipse.ui.components.browser;
import java.util.List;
import javax.xml.namespace.QName;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import com.evolveum.midpoint.eclipse.runtime.api.Constants;
import com.evolveum.midpoint.eclipse.runtime.api.resp.ServerObject;
im... | Java | com.evolveum.midpoint.eclipse.parent/com.evolveum.midpoint.eclipse.ui/src/com/evolveum/midpoint/eclipse/ui/components/browser/ShowGenerator.java | Evolveum/midpoint-ide-plugins | apache-2.0 | 1,303 | 49 | codeparrot/github-code |
6aadd41a11613ca4378b314ab0130a5fef1d2d4e35b0486eb0e41573ee4a0df6 | import Koa from 'koa'
import body from 'koa-bodyparser'
import convert from 'koa-convert'
import cors from 'koa-cors'
import mongoose from 'mongoose'
import config from './config'
import mongooseConfig from './config/mongoose'
import routeRegistry from './routeRegistry'
const app = new Koa()
app.context.db = mongoose
... | JavaScript | src/server.js | grenti/pacci-api | apache-2.0 | 1,075 | 43 | codeparrot/github-code |
c86756f04d75550244ecfd355aa1701aa9866b8f1a05bc5dec350d0819c4205f | package com.github.mkopylec.errorest.handling.errordata.http;
import com.github.mkopylec.errorest.configuration.ErrorestProperties;
import com.github.mkopylec.errorest.handling.errordata.ErrorData;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.http.HttpStatus;
import org... | Java | src/main/java/com/github/mkopylec/errorest/handling/errordata/http/ServletRequestBindingErrorDataProvider.java | mkopylec/errorest-spring-boot-starter | apache-2.0 | 1,527 | 36 | codeparrot/github-code |
c784877462ed728657bb8802d8c3ef42118be73104bd9c0e820f7933bdfef552 | package pl.touk.nussknacker.ui.db.migration
import java.io.PrintWriter
import java.lang.reflect.{InvocationHandler, Method, Proxy}
import java.sql.Connection
import java.util.logging.Logger
import io.circe.Json
import javax.sql.DataSource
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}
import pl.t... | Scala | ui/server/src/main/scala/pl/touk/nussknacker/ui/db/migration/SlickMigration.scala | TouK/nussknacker | apache-2.0 | 3,077 | 86 | codeparrot/github-code |
b9adf88efdc9c1d0d3c029493e72de97d0cd85f3a783379b1c8fbb1eac55fbfd | <?php
/**
* User: shenzhe
* Date: 13-6-17
* config配置处理
*/
namespace ZPHP\Core;
use ZPHP\Common\Dir;
use ZPHP\Protocol\Request;
class Config
{
private static $config;
private static $nextCheckTime = 0;
private static $lastModifyTime = [];
private static $configPath;
private static $reloadPath... | PHP | ZPHP/Core/Config.php | shenzhe/zphp | apache-2.0 | 4,261 | 153 | codeparrot/github-code |
23b51a936eedbe94199667ff2157ce887725c92a07c63a7164ddc399be997967 | package chesterfield;
public class DatabaseTest extends ChesterfieldTestCase
{
public void testGetDocumentCount() throws Exception
{
assertEquals(0, getDatabase().getDocumentCount());
MyDocument document = new MyDocument();
document.setHelloWorld("Hello, world!");
document.setI... | Java | src/test/java/chesterfield/DatabaseTest.java | i386/chesterfield | apache-2.0 | 2,821 | 79 | codeparrot/github-code |
5bdd9cb5358441eaf9f6b864e2548e8dda333aff94dbf15866dc2d0e408ad3dd | //region Copyright
/*Copyright 2015-2016 尚尔路(sel8616@gmail.com/philshang@163.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... | Java | src/main/java/capframework/http/constant/ResponseType.java | cap-framework/cap-http | apache-2.0 | 1,287 | 31 | codeparrot/github-code |
213271f26f40ab28f4c7c2a0dae9ad772a507db4412c0c47ea0801d08c2eef81 | package com.otognan.driverpete.logic;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.List;
import org.hamcrest.collection.IsIterableContainingInOrder;
import org.junit.Assert;
... | Java | src/test/java/com/otognan/driverpete/logic/TrajectoryReaderTest.java | driver-pete/driver-pete-server | apache-2.0 | 2,221 | 66 | codeparrot/github-code |
2e13a41bd508914196e7758598c85af973831e43ad2fdecfc81ea55e99087389 | /**********************************************************************
* $Id: avc_bin.c,v 1.30 2008/07/23 20:51:38 dmorissette Exp $
*
* Name: avc_bin.c
* Project: Arc/Info vector coverage (AVC) BIN->E00 conversion library
* Language: ANSI C
* Purpose: Binary files access functions.
* Author: Daniel Mo... | C | deps/libgdal/gdal/ogr/ogrsf_frmts/avc/avc_bin.c | blairdgeo/node-gdal | apache-2.0 | 96,531 | 2,600 | codeparrot/github-code |
dce581cbe6af4a5b2b460ea698a0a017a97804f603fa8313f039f3b50cb4481a | #ifndef ReachMap_VISUAL_H
#define ReachMap_VISUAL_H
#include <map_creator/WorkSpace.h>
namespace Ogre
{
class Vector3;
class Quaternion;
}
namespace rviz
{
class Arrow;
class Shape;
}
namespace workspace_visualization
{
class ReachMapDisplay;
class ReachMapVisual
{
public:
ReachMapVisual(Ogre::SceneManager* scene... | C | workspace_visualization/src/reachability_map_visual.h | ros-industrial-consortium/reuleaux | apache-2.0 | 1,259 | 49 | codeparrot/github-code |
c8d1cc5ebfd41541ade754ccc39292dee50fdc35fd4557edcb75da777a12ba93 | /*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | sdk/src/main/java/com/google/cloud/dataflow/sdk/coders/ListCoder.java | sammcveety/DataflowJavaSDK | apache-2.0 | 2,395 | 78 | codeparrot/github-code |
2b38f53a46b7927eaa63a40aadf5081686ff0cab368a6be81cf2d424fbb6b160 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Xml.Serialization;
using NewLife.Log;
using NewLife.Web;
using NewLife.Data;
using XCode;
using XCode.Configuration;
using XCode.Membership;
namespace Cloud.Domain
{
/// <summary>数据权限</summary>
public ... | C# | Src/Cloud.Domain/Membership/DataPermission.Biz.cs | yunfeiyang1916/Cloud | apache-2.0 | 6,197 | 177 | codeparrot/github-code |
3ae2082088dc60e5f1120703f4d9266a513ff75450109ae0c1a221f1aa17e68e | /**
* @fileoverview Bans `new Set(<string>)` since it is a potential source of bugs
* due to strings also implementing `Iterable<string>`.
*/
import * as ts from 'typescript';
import {Checker} from '../checker';
import {ErrorCode} from '../error_code';
import {AbstractRule} from '../rule';
const errorMsg = 'Value... | TypeScript | internal/tsetse/rules/ban_string_initialized_sets_rule.ts | bazelbuild/rules_typescript | apache-2.0 | 2,357 | 65 | codeparrot/github-code |
d0197c122e2e45875f7f7b4a80114caa0ca9688ea3bc7fa9659c3a4a7ff531b3 | /*
* Tencent is pleased to support the open source community by making Tinker available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a ... | Java | app/src/main/java/com/star/tinker/reporter/SampleLoadReporter.java | xingstarx/TinkerDemo | apache-2.0 | 3,899 | 115 | codeparrot/github-code |
a29fdb027214c552f45f75224ddf101f239a1b615e8dfc7c83909c92a2550cf4 | package com.xiaomi.passport.api;
import com.xiaomi.passport.exception.OAuthSdkException;
import com.xiaomi.passport.pojo.AccessToken;
import com.xiaomi.passport.pojo.Client;
import com.xiaomi.passport.utils.OAuthTestUtils;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
i... | Java | src/test/java/com/xiaomi/passport/api/RefreshAccessTokenHelperTest.java | xiaomi-passport/oauth-java-sdk | apache-2.0 | 1,899 | 57 | codeparrot/github-code |
0d526d9ef66245b7b12c021e9617264a93f6951e6a6a4ea27de5f01f63e9e989 | package com.planet_ink.coffee_mud.Abilities.Diseases;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com... | Java | com/planet_ink/coffee_mud/Abilities/Diseases/Disease_HeatExhaustion.java | vjanmey/EpicMudfia | apache-2.0 | 4,533 | 140 | codeparrot/github-code |
8f0227fc9d3fc56f7e0507f7bad97f2a261cc1372344fae796a0ac655f35467e | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | tensorflow/core/common_runtime/eager/context.h | annarev/tensorflow | apache-2.0 | 30,995 | 753 | codeparrot/github-code |
2aa1a955e771de99dc0e38b7ce5ea96ddd68689da1c6475ba313daed635618cc | /*
* Copyright 2017 Young Digital Planet S.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Java | src/main/java/eu/ydp/empiria/player/client/components/event/InputEventRegistrar.java | YoungDigitalPlanet/empiria.player | apache-2.0 | 1,386 | 37 | codeparrot/github-code |
50d61ee2d4b8b357e146ab11e670a89c5e1fe2f2d54910a148b8910c0650c1e8 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | spark-core_2.10-1.0.0-cdh5.1.0/src/main/scala/org/apache/spark/Partitioner.scala | yelshater/hadoop-2.3.0 | apache-2.0 | 5,439 | 159 | codeparrot/github-code |
246a2d5991da4234aa2b0cb3d61b9295d6ac08929497914d3b9057cfd7f24c39 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>numpy.logaddexp — NumPy v1.8 Manual</title>
... | HTML | Documentation/numpy/reference/generated/numpy.logaddexp.html | leesavide/pythonista-docs | apache-2.0 | 9,166 | 191 | codeparrot/github-code |
75e8e875425bd9fbad2374598ddd0f45a3c5135d15eeadec17c344a20575ef92 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations
{
[Test.... | C# | src/EditorFeatures/CSharpTest2/Recommendations/ReplaceKeywordRecommenderTests.cs | ericfe-ms/roslyn | apache-2.0 | 3,383 | 133 | codeparrot/github-code |
bd4d0798a4bd73284056886fea51c903f7c161c29398b55c6b895b13dfbb69da | package net.hamnaberg.funclite;
import java.util.ArrayList;
import java.util.List;
public class Monoids {
public static <A> Monoid<List<A>> listMonoid() {
return new Monoid<List<A>>() {
@Override
public List<A> zero() {
return new ArrayList<>();
}
... | Java | src/main/java/net/hamnaberg/funclite/Monoids.java | hamnis/funclite | apache-2.0 | 1,851 | 81 | codeparrot/github-code |
10a053b50ac75cc572cbff4f03bc9e5d49bbbb059ef6846ab726d4ee104c65e9 | package com.example.countit;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class ImgGallery extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | Java | countIt/src/com/example/countit/ImgGallery.java | pklall/countit | apache-2.0 | 1,086 | 38 | codeparrot/github-code |
7b41c5020ee0c499b26fc9aac7f85d4c9ae9d0ed398de385781c635858aeb2b3 | # -*- coding: utf-8 -*-
'''
Use a git repository as a Pillar source
---------------------------------------
.. note::
This external pillar has been rewritten for the :doc:`2015.8.0
</topics/releases/2015.8.0>` release. The old method of configuring this
external pillar will be maintained for a couple relea... | Python | salt/salt/pillar/git_pillar.py | smallyear/linuxLearn | apache-2.0 | 16,836 | 495 | codeparrot/github-code |
81781893eb4a2eb025dc53b377d4ae92d7d777238bd68514e547c7c55f302a5c | import os
import re
import asyncio
import logging
from collections import OrderedDict
from pypeman.message import Message
from pypeman.errors import PypemanConfigError
logger = logging.getLogger("pypeman.store")
DATE_FORMAT = '%Y%m%d_%H%M'
class MessageStoreFactory():
""" Message store factory class can gener... | Python | pypeman/msgstore.py | jrmi/pypeman | apache-2.0 | 9,721 | 304 | codeparrot/github-code |
52331ddb089e5bd266a0b0f22a498f99625f315d2d5412b31256ac4e7a53830e | package com.nscg.app.model.domain;
import java.io.Serializable;
/**
* Created by liuyongfeng on 2018/3/16.
*/
public class ListReport implements Serializable {
private String 街道名称;//"大岗镇",
private String 任务数;//0,
private String 自发任务数;//0,
private String 紧急任务数;//0,
private String 已整改任务数;//0,
... | Java | app/src/main/java/com/nscg/app/model/domain/ListReport.java | liuyongfeng90/NSCGApp | apache-2.0 | 1,684 | 92 | codeparrot/github-code |
5ce5dd58f1ba68a2fe59ebc79c29924a9ec9353523e40ec848c32d915744bc55 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.service;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.externalSystem.ExternalSystemModulePropertyManage... | Java | plugins/gradle/src/org/jetbrains/plugins/gradle/service/GradleInstallationManager.java | leafclick/intellij-community | apache-2.0 | 24,326 | 687 | codeparrot/github-code |
847756e615ff5200b905dccb233e8c975d4691649516a8391fd4cd017a76e2d4 | /*
* Copyright 2015 Fabrício Godoy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... | GO | models/host.go | skarllot/flogviewer | apache-2.0 | 1,456 | 62 | codeparrot/github-code |
d4b9de14801ed968360ea49714b844906934597bcd8c6c20e967998b81f899a6 | package at.ac.tuwien.dsg.scaledom;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.HashMap;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.par... | Java | src/main/java/at/ac/tuwien/dsg/scaledom/ScaleDomDocumentBuilderFactory.java | whummer/scaleDOM | apache-2.0 | 4,673 | 118 | codeparrot/github-code |
6d900c0a02404ea6777ea9424e882c6bfbff4ca002598d37c92f5b44986f6706 | package org.project.openbaton.nubomedia.api.openshift.json;
import org.apache.commons.codec.binary.Base64;
/**
* Created by maa on 01.10.15.
*/
public class SshGitChallengeSecret implements SecretType{
private String username;
private String password;
public SshGitChallengeSecret(String username, Stri... | Java | src/main/java/org/project/openbaton/nubomedia/api/openshift/json/SshGitChallengeSecret.java | alincalinciuc/nubomedia-paas | apache-2.0 | 915 | 37 | codeparrot/github-code |
ecd02b71836f4811da9d349fd6d6accc00faf068d9bc91e10d8ae273519c79c7 | <html>
<head>
<title>About me: machine learning researcher</title>
<meta name="tags" content="personnal" />
<meta name="slug" content="about" />
<meta name="summary" content="About me" />
</head>
<body>
<style>
div.cover-img {
background-image: url('http://gael... | HTML | content/pages/about.html | GaelVaroquaux/website | artistic-2.0 | 16,318 | 475 | codeparrot/github-code |
38bd78a7f903ec2e6849f3d77d5d9e2851897c8545c4dfe22f76c22cdc175b9d | /*
* arraytokenizer.hpp
*
* Created on: Sep 28, 2015
* Author: zmij
*/
#ifndef LIB_PG_ASYNC_INCLUDE_TIP_DB_PG_DETAIL_ARRAY_TOKENIZER_HPP_
#define LIB_PG_ASYNC_INCLUDE_TIP_DB_PG_DETAIL_ARRAY_TOKENIZER_HPP_
#include <tip/db/pg/detail/tokenizer_base.hpp>
namespace tip {
namespace db {
namespace pg {
namespac... | C++ | include/tip/db/pg/detail/array_tokenizer.hpp | zmij/pg_async | artistic-2.0 | 876 | 39 | codeparrot/github-code |
64058108130c10c57fdc686b031a86b829753efb7cc7a9efbfc245c6af629d50 | <?php
/*
Template Name: Homepage
Template used for displaying the front page.
It loads homepage scrolling sections (max 20), which are custom post types named 'sections'.
*/
?>
<?php get_header(); ?>
<?php $home_query = new WP_Query( array( 'post_type' => 'sections', 'posts_per_page' => 20, 'order' => 'ASC' ) ); ... | PHP | wp-content/themes/penandpaper_WP_1.0.1/homepage.php | carlagiannina/cg | artistic-2.0 | 2,126 | 47 | codeparrot/github-code |
85c95afc7bd38ed97b80a559e28867ad264314772189d26168ad89c83afe6404 | #!/usr/bin/env python3.9
# -*- coding: utf-8 -*-
"""Eris Codebase Monitor
Eris maintains an up-to-date set of reports for every file in a codebase.
A status indicator summarises the state of each report, and a report is viewed
by selecting this status indicator with the cursor.
The reports are cached in the codeba... | Python | eris/__main__.py | ahamilton/vigil | artistic-2.0 | 48,551 | 1,272 | codeparrot/github-code |
68d26a5488c5cb8b501b030f2b8deed61585f54e3e9ef6ea380e52732403ffec | //Convenient comparisons
Compare = {
Equal: function(o){
return o == this;
},
StrictEqual: function(o){
return o === this;
},
NotEqual: function(o){
return o != this;
},
StrictNotEqual: function(o){
return o !== this;
},
GreaterThan: function(o){
... | JavaScript | lib/assets/javascripts/common.js | ScrimpyCat/SkateFinder | bsd-2-clause | 1,364 | 62 | codeparrot/github-code |
a172d2c1956400ee78ed0de039926c2517a42d19e80f197c8ea6fb49316591c7 | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# VORONOI.ACCRETION
# Laura L Watkins [lauralwatkins@gmail.com]
# - converted from IDL code by Michele Cappellari (bin2d_accretion)
# -----------------------------------------------------------------------------
from ... | Python | voronoi/accretion.py | lauralwatkins/voronoi | bsd-2-clause | 4,862 | 127 | codeparrot/github-code |
3f046b71e769edbcb66f6801cd866ee6486f78a6c20e0c72cb2c67e3c4e838e1 | // ---------------------------------------------------------
//
// dynamicsurface.cpp
// Tyson Brochu 2008
// Christopher Batty, Fang Da 2014
//
// A triangle mesh with associated vertex locations and masses. Query functions for getting geometry info.
//
// --------------------------------------------------------... | C++ | LosTopos/LosTopos3D/dynamicsurface.cpp | fangda-cu/MultiTracker | bsd-2-clause | 71,316 | 1,975 | codeparrot/github-code |
11d6fda061923647169be04ff3befc1c32e787300f7bff3134d1572089294703 | package nlp_serde
import org.junit.Test
import play.api.libs.json.Json
/**
* @author sameer
* @since 9/1/14.
*/
class JsonTest {
def sampleDoc = {
val d = new Document
d.id = "doc001"
d.text = "This is a document that contains 2 sentences. One is the previous one, and the other is this one."
d
... | Scala | src/test/scala/nlp_serde/JsonTest.scala | sameersingh/nlp_serde | bsd-2-clause | 835 | 42 | codeparrot/github-code |
edb33cbea777bb1c32594e86f8f215ecdcc24274f31c5f96884a396c9be5336b | package inverse_macros.forkwhile
import org.scalatest.FunSuite
import scala.concurrent.duration.Duration
import scala.concurrent.{Await, Future}
import scala.language.implicitConversions
class ForkJoinTest extends FunSuite {
val sb = new StringBuilder
implicit class Sync(f: Future[Unit]) {
def sync = {
... | Scala | inverse_macros_libraries/src/test/scala/inverse_macros/forkwhile/ForkJoinTest.scala | hiroshi-cl/InverseMacros | bsd-2-clause | 782 | 39 | codeparrot/github-code |
307c984dde122b6a88349cdccd5f9ed2a152e8e8cc95f056b6cfe5d2bb32f92d | /**
* Created by shuyi.wu on 2015/4/1.
*/
'use strict';
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
del = require('del'),
webpack = require('gulp-webpack');
gulp.task('compileES6', function () {
return gulp.src('./assets/js-es6/functions.js')
... | JavaScript | gulpfile.js | wushuyi/CSSFilters | bsd-2-clause | 1,314 | 50 | codeparrot/github-code |
de30f69a5ee084898c25e95ff8c72036ab2db90a296650911f857641d85b1b16 | /*
* Topaz - SWG Binary Syntax
*
* Implementation of the TCG Storage Working Group (SWG) binary syntax, as
* outlined in the SWG Core Specification, and as used within the TCG Opal,
* Enterprise, and other SED interface standards.
*
* Copyright (c) 2016, T Parys
* All rights reserved.
*
* Redistribution and ... | C | src/topaz/syntax.c | tparys/topaz | bsd-2-clause | 24,306 | 989 | codeparrot/github-code |
09940d36d595b14359eb94f067522e5e16a9184021c2354c41a76a8af5cef5fc | <?php
/**
* Log base model for table: log
*/
namespace Octo\System\Model\Base;
use DateTime;
use Block8\Database\Query;
use Octo\Model;
use Octo\Store;
use Octo\System\Store\LogStore;
use Octo\System\Model\Log;
use Octo\System\Model\User;
/**
* Log Base Model
*/
abstract class LogBase extends Model
{
prote... | PHP | Octo/System/Model/Base/LogBase.php | Block8/Octo | bsd-2-clause | 7,998 | 386 | codeparrot/github-code |
aba74d3578da5a2775df919ebf52be449b8c1305b692fcd0f20f1b4bc0693870 | package tinker.net.dongliu.apk.parser.struct.xml;
/**
* @author dongliu
*/
public class XmlNamespaceEndTag {
private String prefix;
private String uri;
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
public Str... | Java | apk-parser-lib/src/main/java/tinker/net/dongliu/apk/parser/struct/xml/XmlNamespaceEndTag.java | shwenzhang/apk-parser | bsd-2-clause | 518 | 31 | codeparrot/github-code |
947808efe77eeb828a980d70bc51c79e928292fb74e0c7f44a48c27410e93dcf | //
// Copyright (c) 2009, Markus Rickert
// 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 condit... | C | demos/rlCollisionDemo/BodyDelegate.h | roboticslibrary/rl | bsd-2-clause | 2,073 | 59 | codeparrot/github-code |
e2b30b4f7a57a58e868531a05b406f7c0d2fe91f377192dea137c376b81c6052 | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | C++ | modules/cimg/src/cimgvolumereader.cpp | inviwo/inviwo | bsd-2-clause | 4,836 | 118 | codeparrot/github-code |
734b455db9f522fef254f3837b900cf8c74f3a24bf77f34e1b54112dedb92ad6 | #!/usr/bin/python
"""nrvr.xml.etree - Utilities for xml.etree.ElementTree
The main class provided by this module is ElementTreeUtil.
To be expanded as needed.
Idea and first implementation - Leo Baschy <srguiwiz12 AT nrvr DOT com>
Public repository - https://github.com/srguiwiz/nrvr-commander
Copyright (c) Nirvan... | Python | src/nrvr/xml/etree.py | srguiwiz/nrvr-commander | bsd-2-clause | 4,914 | 137 | codeparrot/github-code |
d0409a6d919370aae20a125d280b3945cdf3fc212e28dac4be6dbfdee43aadff | // ===============================
// PC-BSD REST API Server
// Available under the 3-clause BSD License
// Written by: Ken Moore <ken@pcbsd.org> DEC 2015
// =================================
// Note: Don't forget to run "AUTHSYSTEM->hasFullAccess(SockAuthToken)"
// To restrict user access to some systems as neede... | C++ | src/server/WebBackend.cpp | c3d2/sysadm | bsd-2-clause | 46,017 | 1,206 | codeparrot/github-code |
f79950fb73cea171e52560f068af5d65e6e32e3db27f33e0b81bb56a789afa9d | class Vte3 < Formula
desc "Terminal emulator widget used by GNOME terminal"
homepage "https://developer.gnome.org/vte/"
url "https://download.gnome.org/sources/vte/0.58/vte-0.58.3.tar.xz"
sha256 "22dcb54ac2ad1a56ab0a745e16ccfeb383f0b5860b5bfa1784561216f98d4975"
bottle do
sha256 "aeeb66c9db3a2dba30cd5e3e9... | Ruby | Formula/vte3.rb | nbari/homebrew-core | bsd-2-clause | 4,878 | 166 | codeparrot/github-code |
108657a63da6a2852bd90642117e66e4c419351d80d68214194009c001631316 | // Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ORBIT_GL_TIME_GRAPH_LAYOUT_H_
#define ORBIT_GL_TIME_GRAPH_LAYOUT_H_
#include <math.h>
#include <stdint.h>
#include <algorithm>
#include "Orbit... | C | src/OrbitGl/TimeGraphLayout.h | google/orbit | bsd-2-clause | 4,389 | 108 | codeparrot/github-code |
d721d8e5800a85ac52b98a394c09290bbf17818aea3f02a9b34ae8971d146ea2 | #region Copyright (c) Roni Schuetz - All Rights Reserved
// * --------------------------------------------------------------------- *
// * Roni Schuetz *
// * Copyright (c) 2008 All Rights reserved *
// * ... | C# | SharedCache.WinService/ServiceLogic.cs | bbqchickenrobot/SharedCache | bsd-2-clause | 12,244 | 268 | codeparrot/github-code |
84d2802b59b8890c8d2abb3fd183df01ad929c5309e642a55a088c632ba492c2 | /*
resdef_parser_shader.cc -- Copyright (c) 2013 Noel Cower. All rights reserved.
See COPYING under the project root for the source code license. If this file
is not present, refer to <https://raw.github.com/nilium/snow/master/COPYING>.
*/
#include "resdef_parser.hh"
#include "../game/resources.hh"
#include "../r... | C++ | src/data/resdef_parser_shader.cc | nilium/snow | bsd-2-clause | 5,934 | 197 | codeparrot/github-code |
6aa69a50e056f5a24ba6f97e9f41fd1ebab9cc14a601f4cc32e63a72b1967c28 | from __future__ import unicode_literals
import os
import sys
import threading
from contextlib import contextmanager
from django.contrib.sites.models import Site
from mezzanine.conf import settings
from mezzanine.core.request import current_request
from mezzanine.utils.conf import middlewares_or_subclasses_installed
... | Python | mezzanine/utils/sites.py | wbtuomela/mezzanine | bsd-2-clause | 4,584 | 121 | codeparrot/github-code |
241276d09997f6c9a11e29df7ec19bf17a1bd0f6efeed46bf9f34b396a52374c | using System;
using System.Collections.Generic;
using EAAddinFramework.Databases.Strategy;
using DB=DatabaseFramework;
using TSF.UmlToolingFramework.Wrappers.EA;
using System.Linq;
using UML=TSF.UmlToolingFramework.UML;
namespace EAAddinFramework.Databases
{
/// <summary>
/// Description of DatabaseItem.
/// </sum... | C# | EAAddinFramework/Databases/DatabaseItem.cs | GeertBellekens/Enterprise-Architect-Add-in-Framework | bsd-2-clause | 10,246 | 378 | codeparrot/github-code |
610244100e6072d6d3d12255a05bbe1846e7f072a096e2dc93022eed772ec36a | import random
class Character:
def __init__(self):
self.name = ""
self.life = 20
self.health = random.choice(0, life)
self.zombie_life = 10
self.zombie_health = random.choice(0, zombie_life)
def attack(self, zombie):
self.hit = self.health - self.zombie_health
... | Python | zombieHS.py | bobbybabra/codeGuild | bsd-2-clause | 5,598 | 174 | codeparrot/github-code |
086aa67ef39e84350c8627ba495afb70b7cb89934eead205d8087e529637b0e9 | package org.joda.time
import java.io.Serializable
import org.joda.time.base.BaseInterval
import org.joda.time.field.FieldUtils
object MutableInterval {
def parse(str: String): MutableInterval = new MutableInterval(str)
}
@SerialVersionUID(-5982824024992428470L)
class MutableInterval
extends BaseInterval
w... | Scala | shared/src/main/scala/org/joda/time/MutableInterval.scala | mdedetrich/soda-time | bsd-2-clause | 4,178 | 150 | codeparrot/github-code |
c5ba12f9d37aae10f1f16b1b4486f23fff27464b3dd87174c2f897f112103760 | # flake8: noqa
from .elementwise import (
Unary,
Binary,
ColsBinary,
Reduce,
func2class_name,
unary_module,
make_unary,
binary_module,
make_binary,
reduce_module,
make_reduce,
binary_dict_int_tst,
unary_dict_gen_tst,
binary_dict_gen_tst,
)
from .linear_map import ... | Python | progressivis/linalg/__init__.py | jdfekete/progressivis | bsd-2-clause | 6,390 | 387 | codeparrot/github-code |
ae29810dc5189b49f77a63342d4def21ff33116495c8600e2bd4f21dc7458aac | /*
* Copyright (c) 2014 Ambroz Bizjak
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... | C | aprinter/meta/StaticArray.h | johnkingsley/aprinter | bsd-2-clause | 2,774 | 73 | codeparrot/github-code |
3aeb03ac9079de7f08a45a1702036cc1253d5757952bec1db3a42160120009ab | from indra.statements import *
from rdflib import URIRef, Namespace
from rdflib.namespace import RDF
import collections
import urllib
import re
import keyword
BEL = Namespace("http://www.openbel.org/")
prefixes = """
PREFIX belvoc: <http://www.openbel.org/vocabulary/>
PREFIX belsc: <http://www.openbel.org/be... | Python | indra/bel/processor.py | decarlin/indra | bsd-2-clause | 27,816 | 671 | codeparrot/github-code |
763de3d1c9d8621730642dd891c065d9a94cc1916506375d0958e98d0c61a7b0 | #!/usr/bin/python2.7 -tt
"""
Copyright (c) 2013, Adel Qodmani
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 con... | Python | zipper.py | adel-qod/zipper | bsd-2-clause | 6,014 | 151 | codeparrot/github-code |
39e1e455216ce0111a73c61b9de049deabd00265f6b0aba00994435496537964 | #include "Parser.h"
namespace hiapi {
namespace server {
Parser::Parser(hiaux::HttpRequestPtr _req):
state(READING_SIZE),
m_got_request(false) {
}
void Parser::parse() {
while (true) {
if (m_cur_token.size() == 0)
return;
if (state == READING_SIZE) {
if (m_cur_token[0] == 'k') {
if... | C++ | network/HttpApi/BinServer/Parser.cpp | highinit/hiaux | bsd-2-clause | 1,913 | 98 | codeparrot/github-code |
4437670e13010af2cfd451a6a19eb23f6336d9b2a001d4d2cea9ab78fab33ebb | class Fail2ban < Formula
desc "Scan log files and ban IPs showing malicious signs"
homepage "https://www.fail2ban.org/"
url "https://github.com/fail2ban/fail2ban/archive/0.10.0.tar.gz"
sha256 "3517b68bff71924f179609eb51dd2fe66d78653646528cdf8edf2370ff047c80"
bottle do
sha256 "126df67c8b1f6ed5ad4284fa375a... | Ruby | Formula/fail2ban.rb | bfontaine/homebrew-core | bsd-2-clause | 4,240 | 131 | codeparrot/github-code |
942f50f6ca4bc7c767270977b46ef92bf2b534661ad654e5ba8ccb07dfc615ac | // Boost string_algo library slist_traits.hpp header file ---------------------------//
// Copyright Pavol Droba 2002-2003.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.... | C++ | Sources/liblsl/lslboost/boost/algorithm/string/std/slist_traits.hpp | nihospr01/OpenSpeechPlatform-UCSD | bsd-2-clause | 2,242 | 70 | codeparrot/github-code |
97a050bdc0a7266a29a107bee8e6d47629cbb3f142131f4fbe7a9b83bef70a7f | package ru.nsc.interval.globalopt;
import java.io.IOException;
import java.nio.file.Paths;
import net.java.jinterval.expression.OptimizationProblem;
import net.java.jinterval.expression.example.FireRisk;
import net.java.jinterval.interval.set.*;
import net.java.jinterval.rational.ExtendedRational;
public class Main {... | Java | ru-nsc-globalopt/src/main/java/ru/nsc/interval/globalopt/Main.java | jinterval/jinterval | bsd-2-clause | 5,500 | 122 | codeparrot/github-code |
1bb7f6decf4ca749a63581a42a50e64138c9d7481f8246b7a5971a77644e1427 | #pragma once
#include <vector>
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#else
#include <GL/glew.h>
#endif
#include <FLIGHT/Core/BB.hpp>
#include "Shader.hpp"
#include "Vertex.hpp"
#include <array>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
namespace FLIGHT {
class Model {
public:
... | C++ | include/FLIGHT/Graphics/Model.hpp | evanbowman/FLIGHT | bsd-2-clause | 1,966 | 78 | codeparrot/github-code |
310a21714ce7319016e7023804f86373392c4a3c6fb7a93173e9d4b54924d72d | /**
* @module ol/control/Zoom
*/
import {inherits} from '../index.js';
import {listen} from '../events.js';
import EventType from '../events/EventType.js';
import Control from '../control/Control.js';
import {CLASS_CONTROL, CLASS_UNSELECTABLE} from '../css.js';
import {easeOut} from '../easing.js';
/**
* @typedef ... | JavaScript | src/ol/control/Zoom.js | gingerik/ol3 | bsd-2-clause | 4,367 | 140 | codeparrot/github-code |
39bd4af91640575d0637870050e3b1d40ed39eaff28d74c98404d6147d4be1be | from __future__ import absolute_import, division, print_function
from dynd._pydynd import w_type, \
make_var_dim, make_strided_dim, make_fixed_dim, make_cfixed_dim
__all__ = ['var', 'strided', 'fixed', 'cfixed']
class _Dim(object):
__slots__ = []
def __mul__(self, rhs):
if isinstance(rhs, w... | Python | dynd/ndt/dim_helpers.py | aterrel/dynd-python | bsd-2-clause | 4,145 | 173 | codeparrot/github-code |
73465445b1d93a659cff2889b01bdfb2ab2fcec202fe845c45dba4ed2999c1cc | #!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http:/... | Perl | nginx/objs/lib/openssl-1.0.1g/crypto/rc4/asm/rc4-x86_64.pl | caidongyun/nginx-openresty-windows | bsd-2-clause | 16,490 | 678 | codeparrot/github-code |
7f4bf6bbc0b42b18c0de57353b226c83234f29b5eb1d62388f1f7a607e29ee14 | #include "evas_common.h"
#include "evas_blend_private.h"
void scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
#ifndef BUIL... | C | src/lib/engines/common/evas_scale_sample.c | nashidau/Evas-Next | bsd-2-clause | 10,628 | 356 | codeparrot/github-code |
8a8ab4d8d34485fb5958a8ce4669bb634cc28e034f028dab9106742c96e139b5 | # --------------------------------------------------------
# Theano @ Dragon
# Copyright(c) 2017 SeetaTech
# Written by Ting Pan
# --------------------------------------------------------
import numpy as np
import dragon.core.workspace as ws
from dragon.core.tensor import Tensor, GetTensorName
def shared(value, name... | Python | Dragon/python/dragon/vm/theano/compile/sharedvalue.py | neopenx/Dragon | bsd-2-clause | 890 | 34 | codeparrot/github-code |
87c0689d3940b63651a8ec5c336cf12b0c6a0e6a864438f1cbf238853bf35203 | /*
* vr_packet.h -- packet handling functionality of vrouter
*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef __VR_PACKET_H__
#define __VR_PACKET_H__
#include "vr_defs.h"
#include "vrouter.h"
/* ethernet header */
#define VR_ETHER_DMAC_OFF 0
#define VR_ETHER_SMAC_OFF 6
#de... | C | include/vr_packet.h | sysbot/contrail-vrouter | bsd-2-clause | 14,095 | 527 | codeparrot/github-code |
b3273d72ca0848dfbe517a58934ced7805c19b2c5688ff3f05435fdf8604f8f5 | from ..tools import add_bias, confirm
from ..activation_functions import softmax_function
from ..cost_functions import softmax_neg_loss
import numpy as np
def resilient_backpropagation(network, trainingset, testset, cost_function, ERROR_LIMIT=1e-3, max_iterations = (), weight_step_max = 50., weight_step_min = 0., sta... | Python | nimblenet/learning_algorithms/resilient_backpropagation.py | jorgenkg/python-neural-network | bsd-2-clause | 6,265 | 122 | codeparrot/github-code |
1ed488c6ce77d01a76444b27e119cc228a53b2b19ef53b41500cad6d4ab6c365 | var assert = require("should");
var exec = require('child_process').exec;
var restify = require('restify');
var boplishHost = exec(__dirname + '/../run.js --bootstrap ws://chris.ac:5000 --port 10000',
function (error, stdout, stderr) {
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);
if (error !... | JavaScript | test/test.js | boplish/node-client | bsd-2-clause | 2,382 | 87 | codeparrot/github-code |
229aad57f54510cd09df34a33fdefd552fb81901e394f261fe178ad2a70b34aa | // Copyright (c) 2016, Matt Godbolt
// 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 con... | JavaScript | lib/compilers/rust.js | mattgodbolt/compiler-explorer | bsd-2-clause | 2,909 | 73 | codeparrot/github-code |
4917b3e47ee7bbe1238687844d0ac70e201e54c1654a91749998107a60a6bd47 | {% import "bootstrap/wtf.html" as wtf %}
{% extends 'base.html' %}
{% block body %}
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Search products</h3>
</div>
... | HTML | appname/templates/catalogs/index.html | ahmadpriatama/Flask-Simple-Ecommerce | bsd-2-clause | 2,544 | 72 | codeparrot/github-code |
5e5fcaeeeb5e56ad6cdd045972c7f1e03106064599753283822cf5c311c7709b | /*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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 conditions a... | C++ | applications/clawpack/burgers/2d/pwconst/pwconst_user.cpp | ForestClaw/forestclaw | bsd-2-clause | 3,425 | 105 | codeparrot/github-code |
c4908b7f28ec3e836864cbff59f007d221bb0307cc14fd6db97671ebbca2d136 | /*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Version 3.0.0
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
... | JavaScript | classes/artifacts/AppForLiteracy/exploded/AppForLiteracy-0.1.war/assets/jquery/jquery.bgiframe.unminified.js | yeatmanlab/OsREAD | bsd-2-clause | 2,388 | 66 | codeparrot/github-code |
78d148bfe741373b867180f01a1d860304975fb312e7028f71b92b9da827eda0 | Clazz.declarePackage ("J.shape");
Clazz.load (["J.shape.AtomShape"], "J.shape.Halos", ["JU.BSUtil", "$.C"], function () {
c$ = Clazz.decorateAsClass (function () {
this.colixSelection = 2;
this.bsHighlight = null;
this.colixHighlight = 10;
Clazz.instantialize (this, arguments);
}, J.shape, "Halos", J.shape.AtomShape);
... | JavaScript | j2s/J/shape/Halos.js | bas-rustenburg/jsmol-local | bsd-2-clause | 1,435 | 42 | codeparrot/github-code |
91f393d23816187f0cb4886305e6d0cc9755f67b8e7725adb15a61560b3f9a45 | SUBROUTINE getgrid(myid,Nx,Ny,Nz,Lx,Ly,Lz,pi,name_config,x,y,z,kx,ky,kz,decomp)
!--------------------------------------------------------------------
!
!
! PURPOSE
!
! This subroutine gets grid points and fourier frequencies for a
! pseudospectral simulation of the 2D nonlinear Klein-Gordon equation
!
! u_{tt... | FORTRAN | KleinGordon/Programs/KleinGordon3dMpiFFT/getgrid.f90 | openmichigan/PSNM | bsd-2-clause | 4,985 | 161 | codeparrot/github-code |
deb89a37b72abaa35ce0bb6d7bc2c9507cde30fd70a4a604447cd3db0a57123c | /*
==== Author:
Relja Arandjelovic (relja@robots.ox.ac.uk)
Visual Geometry Group,
Department of Engineering Science
University of Oxford
==== Copyright:
The library belongs to Relja Arandjelovic and the University of Oxford.
No usage or redistribution is allowed without explicit permission.
*/
#ifndef _MEDIAN_COMPU... | C | src/search_engine/relja_retrival/util/median_computer.h | ox-vgg/vise | bsd-2-clause | 808 | 46 | codeparrot/github-code |
f6aad3b11dd9c3d8bb29d06083961b75a254e99cceb1577fb7911b0eae99b91d | #!/usr/bin/env php
<?php
/* Shutdown Script
*
* If idle times exceed a defined value or if no users are logged in,
* shutdown the computer. If running from cron there should be no "dot"
* in the script file name. Make the script executable.
*
* Caveat: running the script as root in an interactive shell will cause... | PHP | GCP/autoshutdown.php | xylan2004/AciSnippets | bsd-2-clause | 1,541 | 47 | codeparrot/github-code |
9b09aeb9e3fb3d635bd0bd0e259a836187df4f95192b9fa00bfdf8ccb9e59fca | /*
Copyright (C) 1997 Martin Jones (mjones@kde.org)
(C) 1998 Waldo Bastian (bastian@kde.org)
(C) 1998, 1999 Torben Weis (weis@kde.org)
(C) 1999 Lars Knoll (knoll@kde.org)
(C) 1999 Antti Koivisto (koivisto@kde.org)
Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009... | C | page/FrameView.h | yoavweiss/RespImg-WebCore | bsd-2-clause | 23,152 | 601 | codeparrot/github-code |
09faf00b53fd2844137d89ad649e93569412757eede447a3c9c38c6c8b16f41d | /* Copyright (c) Citrix Systems 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 li... | C# | XenAdmin/Controls/CustomDataGraph/DataPlot.cs | aftabahmedsajid/XenCenter-Complete-dependencies- | bsd-2-clause | 22,092 | 555 | codeparrot/github-code |
4491a4839b7ab5824f756f3dc86752a0477076112ea375276a6dc0fb66b923ab | package org.commonmark.internal;
import org.commonmark.internal.inline.Scanner;
import org.commonmark.internal.inline.*;
import org.commonmark.internal.util.Escaping;
import org.commonmark.internal.util.LinkScanner;
import org.commonmark.internal.util.Parsing;
import org.commonmark.node.*;
import org.commonmark.parser... | Java | commonmark/src/main/java/org/commonmark/internal/InlineParserImpl.java | atlassian/commonmark-java | bsd-2-clause | 28,061 | 747 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.