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 |
|---|---|---|---|---|---|---|---|---|
d2d4c3e32873f272fcb0644914b842906676ce9f8b7f0e5bc3da1c9f2ce6eb72 | package com.xthena.auth.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import com.xthena.api.scope.ScopeHolder;
import com.xthena.auth.domain.Access;
import com.xthena.auth.domain.Perm;
import com.xthena.auth.manager.AccessManager;... | Java | src/main/java/com/xthena/auth/web/AccessController.java | jianbingfang/xhf | apache-2.0 | 5,128 | 164 | codeparrot/github-code |
ccaccf753917f096e97542d9658bd01ba977c6dd4a41386f080e057f2dbaf0da | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | Java | src/main/gov/nasa/jpf/jvm/bytecode/FLOAD.java | grzesuav/jpf-core | apache-2.0 | 1,822 | 75 | codeparrot/github-code |
18f50a463bb61f58375ffb71c785c0e9a647d545342abce462fd304aab3dd826 | /*
* ====================================================================
* 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
... | Java | src/main/java/org/apache/http/impl/nio/SessionHttpContext.java | viapp/httpasyncclient-android | apache-2.0 | 1,859 | 55 | codeparrot/github-code |
e7ca9aeef7d72378bdb5033eff49e24ebda6f3bacb6a99710c56ff1429cb3cb1 | /*
* Copyright (C) 2012 Clearspring Technologies, 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 applicabl... | Java | gemfire-core/src/main/java/com/gemstone/gemfire/cache/hdfs/internal/cardinality/HyperLogLog.java | papicella/snappy-store | apache-2.0 | 9,373 | 298 | codeparrot/github-code |
a3f482ff073d63f12efa1012b30d8a23b181d07f5e48937ba9667db0d491805c | # -*- coding: utf-8 -*-
'''
Manage Grafana Dashboards
This module uses ``elasticsearch``, which can be installed via package, or pip.
You can specify elasticsearch hosts directly to the module, or you can use an
elasticsearch profile via pillars:
.. code-block:: yaml
mygrafanaprofile:
hosts:
- es1... | Python | salt/salt/states/grafana.py | smallyear/linuxLearn | apache-2.0 | 12,608 | 412 | codeparrot/github-code |
7a0297257996fe7e3dbf370db916c74cfdfc23af201e4725fe4c6b9667c4225a | /**
* Copyright (c) 2009 - 2010 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org>
*
* This file is part of org.appwork.utils.zip
*
* This software is licensed under the Artistic License 2.0,
* see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php
* for details
*/
package org.ap... | Java | src/org/appwork/utils/zip/ZipIOFile.java | friedlwo/AppWoksUtils | artistic-2.0 | 4,172 | 174 | codeparrot/github-code |
5fc6627338144d350220523d0efb4ee74582824c621cc377de863229d503df58 | #!/bin/sh
if [ $# -ne 1 ]
then
echo "Usage example:"
echo "$ ./update_version.sh 1.2"
echo ""
echo "Updates the primesieve version to 1.2 in all files"
exit 1
fi
# Run from primesieve root directory
test -e ../src && cd ..
new_version=$1
old_version=$(grep "PRIMESIEVE_VERSION " include/primesiev... | Shell | scripts/update_version.sh | kimwalisch/primesieve | bsd-2-clause | 2,013 | 83 | codeparrot/github-code |
d7197810e340279f64ff156efe1883d67635f119d158973dcfe99f1d87de678e | #pragma once
#include <nnpack/fft-constants.h>
#include <psimd.h>
#include <psimd/butterfly.h>
#include <psimd/fft/aos.h>
static inline void psimd_fft8_real_f32(
const float t0[restrict static 16],
const float t4[restrict static 16],
size_t stride_t,
uint32_t row_offset, uint32_t row_count,
float f[restrict sta... | C | src/psimd/fft/real.h | microblink/NNPACK | bsd-2-clause | 8,173 | 231 | codeparrot/github-code |
2d9b693f4ca8b16037fd0ecfd51450096076f0da1ebae025fcbdd99ed1dca6e9 | #include "test/jemalloc_test.h"
#ifdef JEMALLOC_PROF
const char *malloc_conf =
"prof:true,prof_active:false,lg_prof_sample:0";
#endif
static int
prof_dump_open_intercept(bool propagate_err, const char *filename)
{
int fd;
fd = open("/dev/null", O_WRONLY);
assert_d_ne(fd, -1, "Unexpected open() failure");
re... | C | test/unit/prof_reset.c | yy-nm/jemalloc | bsd-2-clause | 6,839 | 252 | codeparrot/github-code |
044c92e904f6e24cd9940c989007f6234d6b1f58ff98e7da14b7006d4c7c2c79 | """
Traits constituting sets of types.
"""
from itertools import chain
from .coretypes import (Unit, int8, int16, int32, int64, uint8, uint16, uint32,
uint64, float16, float32, float64, complex64,
complex128, bool_, Decimal, TimeDelta, Option)
__all__ = ['TypeSet', 'm... | Python | datashape/typesets.py | ContinuumIO/datashape | bsd-2-clause | 5,475 | 210 | codeparrot/github-code |
e66c033f37cd05cfe6e0289351819d9939d846cddbbf9481ed8f1a671e35ceee | // Petter Strandmark 2012.
#ifndef SPII_CHANGE_OF_VARIABLES_H
#define SPII_CHANGE_OF_VARIABLES_H
#include <cstring>
using std::size_t;
namespace spii {
// This class allows for a change of variables to be added.
// For example,
//
// minimize f(x1, x2)
// subject to x1 >= 0
//
// can be formulated as
//
// ... | C | include/spii/change_of_variables.h | PetterS/spii | bsd-2-clause | 844 | 37 | codeparrot/github-code |
469e1f6ad405489b41f2d77e7760f4c7dc34bdb368127c7a30e03f1d62b4e23a | class Mpfr < Formula
desc "C library for multiple-precision floating-point computations"
homepage "https://www.mpfr.org/"
url "https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz"
mirror "https://ftpmirror.gnu.org/mpfr/mpfr-4.1.0.tar.xz"
sha256 "0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f"
l... | Ruby | Formula/mpfr.rb | jabenninghoff/homebrew-core | bsd-2-clause | 1,761 | 57 | codeparrot/github-code |
3ecb8009635308cacbc80bf3685603bb8e1d6c18c557ff43823730a7bbe7a034 | /* ----------------------------------------------------
LISTS.H
----------------------------------------------------
Written by Kevin Ray (c) 1994 Spectrum Holobyte.
---------------------------------------------------- */
#if not defined(__LISTS_H_INCLUDED)
# define __LISTS_H_INCLUDED 1
#include "omni.h... | C | src/codelib/tools/lists/lists.h | FreeFalcon/freefalcon-central | bsd-2-clause | 3,259 | 126 | codeparrot/github-code |
9dfa52c9a73a707f5abf0a460762c5b229c99c514a8ab431df3c53922eb644a4 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_
#define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_
#include <vector>
#include "base/files/scoped_file.h"
#i... | C | third_party/webrtc/include/chromium/src/ui/ozone/platform/drm/gpu/gbm_buffer.h | ssaroha/node-webrtc | bsd-2-clause | 3,702 | 114 | codeparrot/github-code |
d906bd4741249e40122ba095615220c8f232989383ee1791f3d59b2723509104 | /* ocsp_prn.c */
/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
* project. */
/* History:
This file was originally part of ocsp.c and was transfered to Richard
Levitte from CertCo by Kathy Weinhold in mid-spring 2000 to be included
in OpenSSL or released as a patch kit. */
/... | C | nginx/objs/lib/openssl-1.0.1g/crypto/ocsp/ocsp_prn.c | caidongyun/nginx-openresty-windows | bsd-2-clause | 10,492 | 291 | codeparrot/github-code |
d8abd0d61db5981fd2ce20481fa168275264531cbfb3ceb5494c064639c3b982 | // Deal with SASL authentication.
package xmpp
import (
"crypto/md5"
"crypto/rand"
"encoding/base64"
"encoding/xml"
"fmt"
"math/big"
"regexp"
"strings"
)
// Server is advertising auth mechanisms it supports. Choose one and
// respond.
// BUG(cjyar): Doesn't implement TLS/SASL EXTERNAL.
func (cl *Client) choo... | GO | xmpp/sasl.go | tsuibin/goxmpp2 | bsd-2-clause | 5,444 | 209 | codeparrot/github-code |
c28562ec4107e26580e64fa0dd05f9b2eef8fa80eeb1a2c790303617ac18f932 | ///////////////////////////////////////////////////////////////
// © ООО «Праймтолк», 2011-2013 //
// Все права принадлежат компании ООО «Праймтолк». //
///////////////////////////////////////////////////////////////
/**
* SynapseGrid
* © Primetalk Ltd., 2013.
* All rights rese... | Scala | synapse-grid-slf4j/src/main/scala/ru/primetalk/synapse/slf4j/LoggingContact.scala | ppopoff/SynapseGrid | bsd-2-clause | 1,515 | 47 | codeparrot/github-code |
0301853056b2ce80f889bdb30b8c9542bca9253bad2d3507835dd8ea79e8cff6 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/qt/tooltip.h
// Author: Peter Most, Mariano Reingart
// Copyright: (c) 2010 wxWidgets dev team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef ... | C | wxWidgets-3.1.0/include/wx/qt/tooltip.h | adouble42/nemesis-current | bsd-2-clause | 1,355 | 42 | codeparrot/github-code |
1168bcabb31b44587ee748e1fe7e718225ec280080643fec9f5efb50dcc0d061 | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost Softw... | C++ | third_party/boost/simd/arithmetic/functions/simd/common/iround2even.hpp | hainm/pythran | bsd-3-clause | 2,665 | 63 | codeparrot/github-code |
d72fb1265a8e239c287539cd7255bf3d0a03b63b0e1778685a36ac15628a22b1 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/cast_certificate/cast_cert_validator.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <ut... | C++ | components/cast_certificate/cast_cert_validator.cc | axinging/chromium-crosswalk | bsd-3-clause | 11,539 | 318 | codeparrot/github-code |
6ee356191024ed5f3d032fff6a600b30c3d9d6f98704e460f7ae24575df8419e | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_
#define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_TAB_LAYER_H_
#include "base/basictypes.h"
#i... | C | chrome/browser/android/compositor/layer/tab_layer.h | Chilledheart/chromium | bsd-3-clause | 4,524 | 143 | codeparrot/github-code |
a52f878a6a18135928b0f20d850a6d405e3ddf675348f39428865aa3a58afa7c | package jme3test.model.anim;
import com.jme3.animation.AnimControl;
import com.jme3.animation.AnimationFactory;
import com.jme3.app.SimpleApplication;
import com.jme3.light.AmbientLight;
import com.jme3.light.DirectionalLight;
import com.jme3.math.FastMath;
import com.jme3.math.Quaternion;
import com.jme3.mat... | Java | jme3-examples/src/main/java/jme3test/model/anim/TestAnimationFactory.java | zzuegg/jmonkeyengine | bsd-3-clause | 3,592 | 86 | codeparrot/github-code |
8352ef06122c4540aa651919cbc7da6600bc448a782ac457d742ba4268cfb2c9 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/common/dock/docked_window_layout_manager.h"
#include "ash/wm/common/shelf/wm_shelf.h"
#include "ash/wm/common/shelf/wm_shelf_constan... | C++ | ash/wm/common/dock/docked_window_layout_manager.cc | axinging/chromium-crosswalk | bsd-3-clause | 53,533 | 1,330 | codeparrot/github-code |
e415b1374e70d037f3cc708e6e1f246b60e78315f6c0dd0d3833cca4eb8af30a | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/desktop_capture/desktop_capture_base.h"
#include <tuple>
#include <utility>
#include "base/command_line.h"
#incl... | C++ | chrome/browser/extensions/api/desktop_capture/desktop_capture_base.cc | ds-hwang/chromium-crosswalk | bsd-3-clause | 9,506 | 269 | codeparrot/github-code |
b0a2bfd264d0cf04ae0c734335ecfedd4b7f6301a9ed02fa976bebe4ac1ab464 | <?php
namespace common\models;
use common\behaviors\CacheInvalidateBehavior;
use Yii;
/**
* This is the model class for table "widget_carousel".
*
* @property integer $id
* @property string $key
* @property integer $status
*
* @property WidgetCarouselItem[] $items
*/
class WidgetCarousel extends \yii\db\Acti... | PHP | common/models/WidgetCarousel.php | akhatnya/testing | bsd-3-clause | 1,739 | 84 | codeparrot/github-code |
c7c4512005769e7969a1c9e2e6bd66284502a51a89b460c2be9cee04a486270f | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C | src/chrono/collision/ChCCollisionUtils.h | StefanoZaghi1987/ChronoWheelDesigner | bsd-3-clause | 2,664 | 72 | codeparrot/github-code |
8b215b2a1b3600ad57b082527f43e66e1792d835c1526727dcdef4c2d3c22ea4 | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... | JavaScript | src/renderers/shared/stack/reconciler/__tests__/ReactComponentLifeCycle-test.js | nathanmarks/react | bsd-3-clause | 17,837 | 583 | codeparrot/github-code |
d09a11e6687b15adcbf40ced19d0576c0056e785dd8aa127438fc167ea402dea | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | Java | ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java | jeffchienzabinet/react-native | bsd-3-clause | 10,625 | 269 | codeparrot/github-code |
d11acf48a4ef970bf937969462cc246a89ff55dc86eaf45cf3e58e450f472977 | /* gc.c -- simple mark&sweep garbage collector */
/* Copyright (c) 2009-2012 Alex Shinn. All rights reserved. */
/* BSD-style license: http://synthcode.com/license.txt */
#if ! SEXP_USE_BOEHM && ! SEXP_USE_MALLOC
#include "chibi/sexp.h"
#if SEXP_USE_MMAP_GC
#include <sys/mman.h>
#endif
#ifde... | C | gc.c | sergv/chibi-scheme-android | bsd-3-clause | 23,213 | 729 | codeparrot/github-code |
494daea8a0540d3f08193c7a08ee1e2590acdfad486be244a7a22c7902473268 | /*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | C | src/core/lib/channel/channel_stack.c | grani/grpc | bsd-3-clause | 11,162 | 299 | codeparrot/github-code |
d1575b927a215a2a538046a4146ce612f679f5383b66ef8006558e48b54a05ce | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
#define CONTENT_BROWSER_DEVTOOLS_IPC_DEVTOOLS_AGENT_HOST_H_
#include "content/browser/dev... | C | content/browser/devtools/ipc_devtools_agent_host.h | mou4e/zirconium | bsd-3-clause | 1,250 | 45 | codeparrot/github-code |
e10ce28ac7bf21f8ed869e3ac87ba5fb561755735bf34980dc4ef151c8a842b6 | // Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file contains the test for canonical struct tags.
package main
import (
"go/ast"
"reflect"
"strconv"
)
// checkField checks a struct field tag.
fu... | GO | src/cmd/vet/structtag.go | rflanagan/reginaldflanagan-project1 | bsd-3-clause | 999 | 42 | codeparrot/github-code |
e5d4618f03b30afae0ed31b240fe67c5aafacb30af195e82cbd63b856d5cfc20 | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "sk_tool_utils.h"
#include "Resources.h"
#include "SkCommonFlags.h"
#include "SkFontMgr.h"
#include "SkFontStyle.h"
#include "SkMutex.h"
#include "SkOSFile.h"
#inclu... | C++ | tools/fonts/sk_tool_utils_font.cpp | Hikari-no-Tenshi/android_external_skia | bsd-3-clause | 1,285 | 50 | codeparrot/github-code |
17ea68eebc287dc8624d4b8c040e7461a81401ed0a3d30b649b08774253705f5 | package org.hisp.dhis.user;
/*
* Copyright (c) 2004-2015, University of Oslo
* 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 c... | Java | dhis-api/src/main/java/org/hisp/dhis/user/User.java | steffeli/inf5750-tracker-capture | bsd-3-clause | 23,300 | 729 | codeparrot/github-code |
5264086f59a1ca6b110fefa914cf6a05f31559e4056d844bb34ec3de34922b48 | {-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
#ifndef MIN_VERSION_base
#define MIN_VERSION_base(x,y,z) 1
#endif
module Test.System.GPIO.TypesSpec (spec) where
import Protolude
import System.GPIO.Types
import Data.Bits (unsafeShiftL, unsafeShiftR)
import ... | Haskell | test/Test/System/GPIO/TypesSpec.hs | dhess/gpio | bsd-3-clause | 4,438 | 145 | codeparrot/github-code |
c8d4a3569230d7bb12d6c0071d92eaed73fe0ff690bd0616eeb3a48e9aea2099 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | C | src/ompl/geometric/SimpleSetup.h | davetcoleman/ompl | bsd-3-clause | 12,382 | 307 | codeparrot/github-code |
8715cba0b74212a54178356233c928739563959a36b8966442e297cbc6432482 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_SHELL_FETCHER_H_
#define MOJO_SHELL_FETCHER_H_
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/services/netwo... | C | mojo/shell/fetcher.h | guorendong/iridium-browser-ubuntu | bsd-3-clause | 2,219 | 77 | codeparrot/github-code |
dc1c8cc96dbf110045e93ff21e468f30d9103f42a32c57e5ba30d2dbaac174d4 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/runtime/browser/ui/splash_screen_tizen.h"
#include "base/location.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/scoped_lay... | C++ | runtime/browser/ui/splash_screen_tizen.cc | TheDirtyCalvinist/spacewalk | bsd-3-clause | 3,623 | 122 | codeparrot/github-code |
bdd2a4b8550bd13722f75918ed64e61662be6704822432e4a454d198eba94caa | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
#define CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
#include <memory>
#include ... | C | content/browser/wake_lock/wake_lock_service_context.h | axinging/chromium-crosswalk | bsd-3-clause | 2,199 | 70 | codeparrot/github-code |
6a0d0ede4d13e96e99e6bf359dbd55a81ca2238ceebe567e2b4fd3c87aaf064f | /*
* File: DefaultTextual.java
* Authors: Justin Basilico
* Company: Sandia National Laboratories
* Project: Cognitive Foundry Text Core
*
* Copyright February 01, 2011, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusi... | Java | Components/TextCore/Source/gov/sandia/cognition/text/DefaultTextual.java | codeaudit/Foundry | bsd-3-clause | 2,483 | 114 | codeparrot/github-code |
659a09249afd4fb4440104e39b12a2ee0e126ba9dcefcb49ceb1947a232e83b3 | /*
* File: ParallelUtil.java
* Authors: Kevin R. Dixon
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright Oct 10, 2008, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for ... | Java | Components/CommonCore/Source/gov/sandia/cognition/algorithm/ParallelUtil.java | codeaudit/Foundry | bsd-3-clause | 13,794 | 406 | codeparrot/github-code |
bf88f0a95dd83614ae0228941c5029e5b81b12db12b9d2d285d4b10e51d0c805 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/engine/bookmark_update_preprocessing.h"
#include <stdint.h>
#include "base/guid.h"
#include "base/test/metrics/histogram_teste... | C++ | components/sync/engine/bookmark_update_preprocessing_unittest.cc | nwjs/chromium.src | bsd-3-clause | 11,035 | 293 | codeparrot/github-code |
fee0f680e2e72e0372f8500aa29b3086e9835e7113696a350d1364c934b820c0 | /*
* LoggerBuffer.java
*
* Created on Tue Sep 14 12:58:35 EDT 2004
*
* Copyright (c) 2004 Spallation Neutron Source
* Oak Ridge National Laboratory
* Oak Ridge, TN 37830
*/
package xal.extension.application;
import java.util.logging.*;
import java.util.*;
import xal.tools.messaging.MessageCenter;
/**
*... | Java | extensions/application/src/xal/extension/application/LoggerBuffer.java | openxal/openxal | bsd-3-clause | 3,080 | 133 | codeparrot/github-code |
d3c47cedbcdb65082dad24688020d53f01e0fca41e00c0885d88cc431788a976 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "blimp/engine/app/blimp_content_main_delegate.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#inclu... | C++ | blimp/engine/app/blimp_content_main_delegate.cc | ds-hwang/chromium-crosswalk | bsd-3-clause | 2,615 | 77 | codeparrot/github-code |
9ba5d2480cf4056677bba42e47c217e0ba5e4a3f3f25bcf8c29214f3f86bc472 | #!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create a ccache binary for mac hosts."""
import argparse
import os
import subprocess
import sys
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
INFRA... | Python | third_party/skia_next/third_party/skia/infra/bots/assets/ccache_mac/create.py | youtube/cobalt | bsd-3-clause | 1,385 | 52 | codeparrot/github-code |
0a8d200fba6b797cf6cce292cb5a65232bf2c45bdd2b24cebb45a480457dc87d | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.search_engines;
import androidx.annotation.VisibleForTesting;
import org.chromium.base.ThreadUtils;
import org.chrom... | Java | chrome/browser/search_engines/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlServiceFactory.java | nwjs/chromium.src | bsd-3-clause | 1,771 | 53 | codeparrot/github-code |
10919680b83c14d73acbe2362dd37f510f13760b371ce7dec30d63c05fd7a569 | {-|
Module : System.GPIO.Linux.Sysfs.IO
Description : Linux @sysfs@ GPIO operations in IO
Copyright : (c) 2019, Drew Hess
License : BSD3
Maintainer : Drew Hess <src@drewhess.com>
Stability : experimental
Portability : non-portable
The actual Linux @sysfs@ implementation. This implementation will only
fun... | Haskell | src/System/GPIO/Linux/Sysfs/IO.hs | dhess/gpio | bsd-3-clause | 4,945 | 138 | codeparrot/github-code |
65090f29c2add0b21e13e305221b9d02f61f3f5795b7c689b5758a3da54872ed | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | C | vp10/common/loopfilter.c | jmvalin/aom | bsd-3-clause | 60,853 | 1,603 | codeparrot/github-code |
c8910c168cf2243177e12faaf23d316f60578badc2fe6bae18d7e3410fe46786 | /*
* Copyright (c) 2004-2022, University of Oslo
* 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 cond... | Java | dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/mvc/messageconverter/AbstractRootNodeMessageConverter.java | dhis2/dhis2-core | bsd-3-clause | 7,200 | 176 | codeparrot/github-code |
46d3d6b189d20e84b5c24fe9e25975685d0a31d8bd83220b03cc20a99d0f794a | package de.unifreiburg.cs.proglang.jgs.typing
import de.unifreiburg.cs.proglang.jgs.constraints.Constraint
import de.unifreiburg.cs.proglang.jgs.constraints.TypeVarTags.TypeVarTag
import scala.collection.JavaConverters._
/**
* Created by fennell on 2/29/16.
*/
case class TagMap[Level](tags : Map[Constraint[Level... | Scala | GradualConstraints/src/main/java/de/unifreiburg/cs/proglang/jgs/typing/TagMap.scala | luminousfennell/gradual-java | bsd-3-clause | 1,201 | 41 | codeparrot/github-code |
0ad6d858d87e4ffe062626d6365041f6a49f2a58284ef4b90ff6fda203c7ce6e | /*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | video/video_receive_stream.cc | PersonifyInc/chromium_webrtc | bsd-3-clause | 10,727 | 313 | codeparrot/github-code |
7c073b0fe7a4330fe6b8c850c6b740503d72ab8143dc238b38faf29fad94b74d | package scala.scalajs
import scala.annotation.tailrec
import scala.collection.GenTraversableOnce
package object runtime {
/** Returns true if we are assuming that the target platform supports
* ECMAScript 6, false otherwise.
*
* This ends up being constant-folded to a constant at link-time. So
* co... | Scala | library/src/main/scala/scala/scalajs/runtime/package.scala | jasonchaffee/scala-js | bsd-3-clause | 7,730 | 242 | codeparrot/github-code |
ab373f20c3003fa384cbfe053ba45361f5b0e8eec33d3a305e7b7df7e60bd1d9 | #include "apilib.h"
struct DLL_STRPICENV { /* 64KB */
int work[64 * 1024 / 4];
};
struct RGB {
unsigned char b, g, r, t;
};
/* bmp.nasm */
int info_BMP(struct DLL_STRPICENV *env, int *info, int size, char *fp);
int decode0_BMP(struct DLL_STRPICENV *env, int size, char *fp, int b_type, char *buf, int skip);
/* jpe... | C | osproj/projects/30_day/harib27f/gview/gview.c | Oss9935/MakitOS | bsd-3-clause | 3,014 | 122 | codeparrot/github-code |
f402bcae13d93f85ffe7ccd4754634a89b184605d8f819b0c33e16a0cc7d9417 | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Collection of functions and classes to fix various encoding problems on
multiple platforms with python.
"""
from __future__ import print_function
im... | Python | third_party/depot_tools/fix_encoding.py | endlessm/chromium-browser | bsd-3-clause | 12,462 | 386 | codeparrot/github-code |
a38c11917be5f61a026bb03a99647f8c1e0bc7b76c008764fa1738add2fc662a | // MissionControl.cs
//
// Copyright 2012 The Minions Project (http:/github.com/Minions).
// All rights reserved. Usage as permitted by the LICENSE.txt file for this project.
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Fools.cs.Utilities;
namespace Fools.cs.Api
{
pu... | C# | src/Fools.cs/Api/MissionControl.cs | Minions/Minions | bsd-3-clause | 4,150 | 116 | codeparrot/github-code |
e4ba3bee3fe780209d3ec5087dc1bf9a08a509cb08a528a6390dfde488f93af5 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_AURA_H_
#define UI_BASE_NATIVE_THEME_NATIVE_THEME_AURA_H_
#include "base/basictypes.h"
#include "base/compi... | C | ui/base/native_theme/native_theme_aura.h | junmin-zhu/chromium-rivertrail | bsd-3-clause | 1,398 | 44 | codeparrot/github-code |
ceb149ad2a40a61f3b720df45241cdcebeb439f2ef10a6b75394aae90aa6db0d | 'use strict';
const rewire = require('rewire');
const memory = require('./memory');
const projectDb = rewire('./authorities-db');
const C = require('../../chai');
/*global describe, it, expect, beforeEach, afterEach */
describe('Authorities DB', () => {
let db;
let hashTable;
beforeEach(() => {
db = {};
... | JavaScript | src/server/db/authorities-db.spec.js | rangle/the-clusternator | mit | 1,179 | 44 | codeparrot/github-code |
70d8de3fc4d51079f9cf127c435704d8284c589f752e5aa0582105ea0b1c47a7 | using System;
using System.Collections.Generic;
using System.Linq;
namespace LiteDB
{
public partial class LiteCollection<T>
{
/// <summary>
/// Update a document in this collection. Returns false if not found document in collection
/// </summary>
public bool Update(T document)... | C# | LiteDB/Core/Collections/Update.cs | Skysper/LiteDB | mit | 1,550 | 49 | codeparrot/github-code |
4b73d959dbd993848e613486b4b0aa7866f6cb8a0f186a0bc85eadef09d92151 | <?php
/**
* Created by PhpStorm.
* User: gseidel
* Date: 12.08.18
* Time: 19:50
*/
namespace Enhavo\Bundle\RoutingBundle\AutoGenerator\Generator;
use Doctrine\ORM\EntityManagerInterface;
use Enhavo\Bundle\RoutingBundle\AutoGenerator\AbstractGenerator;
use Enhavo\Bundle\RoutingBundle\Slugifier\Slugifier;
use Symf... | PHP | src/Enhavo/Bundle/RoutingBundle/AutoGenerator/Generator/SlugGenerator.php | gseidel/enhavo | mit | 2,907 | 97 | codeparrot/github-code |
dcaad1b9c94a56afdb7aaeb66b362a24a91bf9d5170849d2988ef0f24dc529f0 | /* Copyright (C) 2005-2020 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 Software Foundation; either
version 2.1 of the ... | C | lib/libc/include/armeb-linux-gnueabihf/bits/link.h | raulgrell/zig | mit | 2,207 | 65 | codeparrot/github-code |
0cec114825976136dd4442598e6d9e49f1a094dfefe20756e5e6498ea0663a5c | require 'contact_csv/version'
AUTHOR = 'Marshall Huss' # can also be an array of Authors
EMAIL = "mwhuss@gmail.com"
DESCRIPTION = "Simple gem for reading in contact csv files that you can export from email clients like Outlook or GMail"
GEM_NAME = 'contact_csv' # what ppl will type to install your gem
RUBYFORGE_PROJE... | Ruby | config/hoe.rb | mwhuss/contact_csv | mit | 2,593 | 71 | codeparrot/github-code |
7aeeee554457c77f291e89d6652b60eccf86b7834c9c41e7c81f544c80a1711c | /*global define*/
define([
'../Core/AssociativeArray',
'../Core/Cartesian3',
'../Core/defined',
'../Core/destroyObject',
'../Core/DeveloperError',
'../Core/JulianDate',
'../Core/Matrix3',
'../Core/Matrix4',
'../Core/ReferenceFrame',
'../Cor... | JavaScript | app/Cesium/Source/DataSources/PathVisualizer.js | linkitapps/linkit-cesium-app | mit | 21,526 | 548 | codeparrot/github-code |
8ab616f74b7d082e04ad28aec879ed8ef336bc3d06a7b5b9d4015083c55afea9 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<title>Uses of Class org.apache.commons.net.ftp.FTPClientConfig (Commons Net 3.3 API)</title>
<l... | HTML | lib/commons-net-3.3/apidocs/org/apache/commons/net/ftp/class-use/FTPClientConfig.html | asad/MCEDS | mit | 25,791 | 370 | codeparrot/github-code |
ef1248037e9f5b0aea4f44ac70ed36c8b72b5d9b11a728ab428a5dab570468f5 | require 'puppet/provider/package/windows/package'
class Puppet::Provider::Package::Windows
class ExePackage < Puppet::Provider::Package::Windows::Package
attr_reader :uninstall_string
# Return an instance of the package from the registry, or nil
def self.from_registry(name, values)
if valid?(name,... | Ruby | .bundle/ruby/1.9.1/gems/puppet-3.1.0/lib/puppet/provider/package/windows/exe_package.rb | phatpenguin/boxen-belgarion | mit | 2,434 | 71 | codeparrot/github-code |
8453c27420d1080133d579ca1cbea7870ef60a6d7867ff29d637e80262332322 | 'use strict';
const common = require('../common');
if (!common.hasIntl) {
// A handful of the tests fail when ICU is not included.
common.skip('missing Intl');
}
const fixtures = require('../common/fixtures');
const URL = require('url').URL;
const { test, assert_equals } = require('../common/wpt').harness;
const ... | JavaScript | lts/test/parallel/test-whatwg-url-origin.js | enclose-io/compiler | mit | 1,627 | 55 | codeparrot/github-code |
0fc6e2abe4f0c21a0024f85ca35ddda4e569ec8b90754a6abbbdd5993283c109 | //https://www.hackerrank.com/challenges/icecream-parlor
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws IOException {
StringBuffer sb = new StringBuffer();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | Java | algorithms/search/icecream-parlor.java | havelessbemore/hackerrank | mit | 1,553 | 42 | codeparrot/github-code |
b75b225310ab36aa6bd4792044a3deea843ad49a5b6ec3e2efa6393d2c0e8ee5 | /* Copyright (c) 2002-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "utc-offset.h"
#include <sys/time.h>
int utc_offset(struct tm *tm, time_t t ATTR_UNUSED)
{
#ifdef HAVE_TM_GMTOFF
return (int) (tm->tm_gmtoff/60);
#else
struct tm ltm, gtm;
int offset;
/* gmtime() overwrites tm... | C | src/lib/utc-offset.c | jwm/dovecot-notmuch | mit | 842 | 39 | codeparrot/github-code |
bf3426d518262392e7bd0e0c18b27da8a842138c41bf50e0750624444e6f9a9a | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections.ObjectModel;
using Dbg = System.Management.Automation.Diagnostics;
//using System.Runtime.Serialization;
//using System.ComponentModel;
//using System.Runtime.InteropServices;
//using System.Globalization;
//using Sys... | C# | src/System.Management.Automation/engine/hostifaces/FieldDescription.cs | JamesWTruher/PowerShell-1 | mit | 14,172 | 417 | codeparrot/github-code |
58406a24aee898769a923fa8be6f61e438d7efff1974918c9e26411ac7ec433c | // GSSAsyncSocksifiedSocket.h: interface for the CAsyncGssSocketLayer CAsyncSocketEx.
//
//////////////////////////////////////////////////////////////////////
// Part of this code is copyright 2001 Massachusetts Institute of Technology
#if !defined(ASYNCGSSSOCKETLAYER_H__84779FB7_FC01_4743_996B_383E4D7045B7__INCLUDED... | C | xampp/FileZillaFTP/source/AsyncGssSocketLayer.h | liuyangning/WX_web | mit | 4,738 | 137 | codeparrot/github-code |
5965c06ea3eb7b4aac53cb6cee2a6a01d3152bf787946c04952472dab8dc29a7 | var template = require('../');
var fs = require('fs');
var test = require('tape');
var concat = require('concat-stream');
var expected = fs.readFileSync(__dirname + '/skills/expected.html', 'utf8');
test('skills', function (t) {
t.plan(1);
var html = template();
var skills = html.template('skill');
... | JavaScript | test/skills.js | therebelbeta/html-template | mit | 815 | 32 | codeparrot/github-code |
caca438e7f2b8cb0d63411f0698a929c27b5fab67e69325a0e82ebd2b22bb27a | using System;
using System.Runtime.Serialization;
using System.Threading.Tasks;
using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Install.Models
{
/// <summary>
/// Model to give to the front-end to collect the information for each step
/// </summary>
[DataContract(Name = "step", Namespace = "")]
... | C# | src/Umbraco.Core/Install/Models/InstallSetupStep.cs | umbraco/Umbraco-CMS | mit | 2,928 | 88 | codeparrot/github-code |
a2a786b0ff9569f92a22091190729283ab7544c46fa7a05f3aa0f68d84afa3c0 | # frozen_string_literal: false
#
# tkextlib/iwidgets/hyperhelp.rb
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#
require 'tk'
require 'tkextlib/iwidgets.rb'
module Tk
module Iwidgets
class Hyperhelp < Tk::Iwidgets::Shell
end
end
end
class Tk::Iwidgets::Hyperhelp
TkComman... | Ruby | ruby-2.3.3-x64-mingw32/lib/ruby/2.3.0/tkextlib/iwidgets/hyperhelp.rb | sho-h/ruby_env | mit | 896 | 52 | codeparrot/github-code |
b7c20b6029c79c3716abee457d6b32370905d5251c21aec4b9c7de42ef2a11fa | <?php
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
/**
* Frontend Ical class.
*
* @author Tijs Verkoyen <tijs@sumocoders.be>
*/
class FrontendIcal extends SpoonIcal
{
/**
* The title
... | PHP | frontend/core/engine/ical.php | gertjanmeire/davy_portfolio | mit | 4,724 | 208 | codeparrot/github-code |
0d8e2c92b8dbfa3ebb9260e95b0998160ef687b2bf1c19e15dffd022b0675ec9 | <!DOCTYPE html>
<!--
Copyright Daniel Trebbien 2010.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or the copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<html>
<head>
<title>UpdatableQueue</title>
</head>
<body>
<img src="../../../boost.png... | HTML | deps/boost_1_77_0/libs/graph/doc/UpdatableQueue.html | davehorton/drachtio-server | mit | 3,798 | 100 | codeparrot/github-code |
7c375447d3ed6232d3abaf9440c62113dec62c1c73ab8c88786c4edb5f519058 | #!/usr/bin/perl
#
# Copyright (C) 1998, 1999 Ethan Fischer <allanon@crystaltokyo.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) an... | Perl | tools/ascommand.pl | born2late/afterstep-devel | mit | 7,357 | 265 | codeparrot/github-code |
df48cf86e1c58808b58d085d3b5f4b8c5b5bd172a9ef312c93a51d5d3f445779 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... | TypeScript | packages/common/locales/en-VU.ts | Toxicable/angular | mit | 1,592 | 54 | codeparrot/github-code |
56863573a988c7e9553680a62515510ed24eec4af31c65283cf7012cb1e7c4f8 | /**
* Copyright 2011 multibit.org
*
* Licensed under the MIT license (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.php
*
* Unless required by applicable law or agreed to in writing,... | Java | src/main/java/org/multibit/viewsystem/swing/action/CopySendAddressAction.java | Ergzay/multibit | mit | 2,067 | 57 | codeparrot/github-code |
0b5c56667b697fe0e3ab4e5f93a7068a60f24b18822f46d64face3c1fe304e65 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="LineGeometryBuilder.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// <summary>
// Builds a mesh geometry for a collection of li... | C# | Source/HelixToolkit.Wpf.Shared/Helpers/ScreenSpace/LineGeometryBuilder.cs | JeremyAnsel/helix-toolkit | mit | 7,245 | 207 | codeparrot/github-code |
51544a2ea572ca2d784f206d40e1850bae6324623208a357ba8132764c20d0cf | /*
* Copyright 2007-2008, Plutext Pty Ltd.
*
* This file is part of docx4j.
docx4j is 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/... | Java | Plugins/Aspose_Words_Java_for_Docx4j/src/main/java/com/aspose/words/examples/featurescomparison/documents/accessdocproperties/Docx4jWorkingWithDocProps.java | aspose-words/Aspose.Words-for-Java | mit | 3,652 | 91 | codeparrot/github-code |
ecd7ceb5bea6c9508992fc85c8af64f4495d40faf4622aeaa6f4aa042fb4a808 | // Copyright (c) 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 <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#inclu... | C++ | src/rpcrawtransaction.cpp | MystiCoin/MystiCoin | mit | 20,288 | 565 | codeparrot/github-code |
294f59e96030a6c97b486b1f7b61276f09416a707273e32770100e1403cd5cd3 | // Copyright (c) 2011-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <chainparams.h>
#include <coins.h>
#include <consensus/merkle.h>
#include <consensus/valida... | C++ | src/bench/duplicate_inputs.cpp | nikkitan/bitcoin | mit | 2,200 | 67 | codeparrot/github-code |
07e8f121b5690ce25941719ee19b653af18552994e596d3de8e9815e8bfd8318 | <!DOCTYPE html>
<html lang="en">
<head>
<title>Planet Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
<script... | HTML | docs/docsets/SwiftAA.docset/Contents/Resources/Documents/Classes/Planet.html | onekiloparsec/SwiftAA | mit | 34,788 | 661 | codeparrot/github-code |
e81259d9a24a46e7e70e4524205bb6ca13866bc4ae0ec897410f8d6ff1a63eff | import {
AsyncTestCompleter,
TestComponentBuilder,
beforeEach,
beforeEachProviders,
ddescribe,
describe,
el,
expect,
iit,
inject,
it,
xit,
} from 'angular2/testing_internal';
import {ListWrapper} from 'angular2/src/facade/collection';
import {Component, View, TemplateRef, ContentChild} from 'an... | TypeScript | modules/angular2/test/common/directives/ng_for_spec.ts | hdeshev/angular | mit | 16,102 | 384 | codeparrot/github-code |
994bdc1ff09a9215935e551b4e162bc3fd2b2a8d13bf000a54d981901a90a83c | <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>List with Paging Numbers</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:MasterPageDescription msdt:dt="strin... | HTML | Search Display Templates/Paging control template with page numbers (CSWP)/Control_ListWithPagingNumbers.html | blackdiamond561/DisplayTemplates | mit | 6,082 | 131 | codeparrot/github-code |
71aa421bbdfe55896c843bed551b45838c3f20bf0ae2c3492954729ba5933377 | // Note: This is the list of formats
// The rules that formats use are stored in data/rulesets.js
exports.Formats = [
// XY Singles
///////////////////////////////////////////////////////////////////
{
name: "Random Battle",
section: "ORAS Singles",
team: 'random',
ruleset: ['PotD', 'Pokemon', 'Sleep Cla... | JavaScript | config/formats.js | superman8900/Pokemon-Showdown | mit | 46,515 | 1,304 | codeparrot/github-code |
975fceb6c91eeac8b61887c1c3ad62b7e52343d37bb698edffd8f5889fdea8a1 | $(document).ready(function () {
'use strict';
/* ========================================================================
Fullscreen burger menu
========================================================================== */
$(".menu-trigger, .mobilenav").click(function () {
$(".mobilenav").fadeToggle(5... | JavaScript | landing_page/js/main.js | VikashLoomba/GreenSpace | mit | 8,018 | 228 | codeparrot/github-code |
3de664f803f6db74069909560f5ecdafab1c31c110d27df971245fadd98a8dfd |
#include "PrivateKeyGenerator.hpp"
#include <cstring>
namespace Ethereum{
PrivateKeyGenerator::PrivateKeyGenerator()
{}
PrivateKeyGenerator::PrivateKeyGenerator(const Secp256k1ContextPtr &context) :
_context(context)
{}
PrivateKey PrivateKeyGenerator::generate() const
{
boost::random_device engine;
... | C++ | src/key/PrivateKeyGenerator.cpp | BitProfile/libethkey | mit | 1,043 | 54 | codeparrot/github-code |
a9d57b4e1ea8bfdefb67dad71549481c75d837b46e1b8299fd6dda30d2b5830a | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>History</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="Chapter 1. Boost.Bimap">
<link rel="up" ... | HTML | deps/boost_1_77_0/libs/bimap/doc/html/boost_bimap/history.html | davehorton/drachtio-server | mit | 6,928 | 112 | codeparrot/github-code |
7e04b4ac4887ba6fcaf2ea0aeb6a49f0e9465945c97ca741f2ad7a66d808777c | // Copyright (c) 2012 DotNetAnywhere
//
// 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... | C# | corlib/System/Double.cs | bradparks/DotNetAnywhere | mit | 3,578 | 129 | codeparrot/github-code |
5aeb76f5e7983c3528f557876b8ba5e4ff9bc863a30f4477e13611c6de773352 | package org.knowm.xchange.examples.bittrex.account;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bittrex.dto.account.BittrexAddress;
import org.knowm.xchange.bittrex.dto.account.BittrexBalance;
import o... | Java | xchange-examples/src/main/java/org/knowm/xchange/examples/bittrex/account/BittrexAccountDemo.java | timmolter/XChange | mit | 1,776 | 52 | codeparrot/github-code |
9a5d4efa2f1664d0df664cb08ac168b6115b27759996e4a408f2384a338ca77c | import { Box, Flex, Separator, color } from "@artsy/palette"
import React from "react"
const FilterSidebarSection: React.SFC<any> = props => {
return (
<>
<Box
width={80}
height={14}
style={{ marginBottom: "15px", backgroundColor: color("black10") }}
/>
<Flex alignItems=... | TypeScript | src/v2/Apps/Search/Components/SearchResultsSkeleton/FilterSidebar.tsx | eessex/force | mit | 1,376 | 43 | codeparrot/github-code |
18686e90837ae0576ddb2ec766cdbd26f3dc41bbd16c667c636c0e42453dbb88 | import time
import os.path
import shutil
import tempfile
import cPickle
try:
import xg
except:
xg = False
from pebl import config, result
from pebl.taskcontroller.base import _BaseSubmittingController, DeferredResult
class XgridDeferredResult(DeferredResult):
def __init__(self, grid, task):
... | Python | src/pebl/taskcontroller/xgrid.py | Alwnikrotikz/pebl-project | mit | 3,271 | 122 | codeparrot/github-code |
284714653245cb9a23469726b78ede0a339fd4fdc2d66f0e8c70ba4eef67c231 | #include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <QClipboard>
#include <string>
#include <vector>
Sign... | C++ | src/qt/signverifymessagedialog.cpp | donSchoe/angelshares | mit | 8,805 | 275 | codeparrot/github-code |
67f9083c892794d62c623230c0330c175707ba38ac0335fb2fe2d5ecf177f472 | // 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.
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
namespace System.ServiceMod... | C# | src/System.Private.ServiceModel/src/System/ServiceModel/Security/X509CertificateRecipientClientCredential.cs | mconnew/wcf | mit | 5,202 | 137 | codeparrot/github-code |
f3405cc3d6c40ac9a47b536e6813009465e044a68063269bb7bab925206a11ca | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (C) 2010-2012 Ken Tossell
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | C | libuvccamera/src/main/jni/libuvc/src/stream_original.c | quanhua92/AudioVideoRecorder | mit | 32,582 | 1,116 | codeparrot/github-code |
0bc312c25d04dab526bacd76fc722f2b0200445d532857df2742a923c8220643 | #include "ai.h"
using namespace llk;
AI::AI() : enable(false)
{
}
AI::~AI()
{
}
void AI::set_map(Int2Array &_map)
{
map = _map;
max_row = map.size() - 1;
if (max_row < 0)
throw "empty map";
max_column = map[0].size() - 1;
last_success_postion.row = max_row / 2;
last_success_postion.co... | C++ | src/llk_core/src/ai.cpp | pengfeicui/llk_ai_qqgame | mit | 6,350 | 238 | codeparrot/github-code |
cdaf53d8b5a298d837ede0734287822de91cc783a0a5963a12e2653614ea2db9 | package com.jvm_bloggers.frontend.admin_area.moderation;
import com.jvm_bloggers.core.data_fetching.blog_posts.BlogPostsFetcher;
import com.jvm_bloggers.core.data_fetching.blogs.BloggersDataFetcher;
import com.jvm_bloggers.entities.metadata.MetadataKeys;
import com.jvm_bloggers.frontend.admin_area.panels.CustomFeedbac... | Java | src/main/java/com/jvm_bloggers/frontend/admin_area/moderation/FetchingDataPanel.java | jvm-bloggers/jvm-bloggers | mit | 2,847 | 76 | codeparrot/github-code |
6691f688d99a4e1dca323da8ecc2bf0fef3c0782efb02307e13a2c7706608475 | /* Copyright (C) 1989, 1990, 1991 Aladdin Enterprises. All rights reserved.
Distributed by Free Software Foundation, Inc.
This file is part of Ghostscript.
Ghostscript is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
to anyone for the co... | C | include/llvm/projects/test-suite/MultiSource/Benchmarks/MallocBench/gs/gdevx.c | ensemblr/llvm-project-boilerplate | mit | 30,392 | 998 | codeparrot/github-code |
cf556d01936a2a51da91604e7c7c1fcdb3de2c14913b80e8874947c3be559482 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... | C++ | deps/boost_1_77_0/libs/beast/test/beast/http/message.cpp | davehorton/drachtio-server | mit | 15,724 | 522 | codeparrot/github-code |
d607ae7b93189f8a7819d58863a66dad51cfa400fc7307bb6320d552b40787a6 | //
// Community.CsharpSqlite.SQLiteClient.SqliteCommandBuilder.cs
//
// Author(s): Tim Coleman (tim@timcoleman.com)
// Marek Habersack (grendello@gmail.com)
//
// Copyright (C) Tim Coleman, 2002
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
// Copyright (C) 2007 Marek Habersack
//
// Permission i... | C# | GAPPSF/Community.CsharpSqlite/SQLiteClient/SqliteCommandBuilder.cs | RH-Code/GAPP | mit | 16,973 | 523 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.