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 |
|---|---|---|---|---|---|---|---|---|
c33c4455861057c090e89b0ee15376d1f23b9d083214c22086ee01507e9b3620 | #include "KMotionDef.h"
int DoPC(int cmd);
int DoPCFloat(int cmd, float f);
int DoPCInt(int cmd, int i);
int MsgBox(char *s, int Flags);
int SetVars(int poff, int varoff, int n);
int GetVars(int varoff, int n, int poff);
int GetToolLength(int index, int poff);
int SetToolLength(int index, int poff);
main... | C | C Programs/TestChangeToolOffset.c | meantaipan/KMotionX | bsd-3-clause | 4,547 | 167 | codeparrot/github-code |
3838700094112a9226ebeda73bcef5f0466510d35357c50246248d65bb790af3 | //
// Copyright (c) 2019 Vivaldi Technologies AS. All rights reserved.
//
#ifndef BROWSER_MENUS_CONTEXT_MENU_CONTROLLER_H_
#define BROWSER_MENUS_CONTEXT_MENU_CONTROLLER_H_
#include <map>
#include <vector>
#include "base/task/cancelable_task_tracker.h"
#include "base/timer/timer.h"
#include "browser/menus/vivaldi_deve... | C | browser/menus/vivaldi_context_menu_controller.h | ric2b/Vivaldi-browser | bsd-3-clause | 5,000 | 142 | codeparrot/github-code |
980936e60f2825cbc69b264df5bb9bad383b15ede00d38c47bfc43db77352ac7 |
#include "GraphLayoutViewItem.h"
#include "vtkGraphLayoutView.h"
#include "vtkGenericOpenGLRenderWindow.h"
#include "QVTKInteractor.h"
#include "vtkXMLTreeReader.h"
#include "vtkRenderedTreeAreaRepresentation.h"
#include "vtkStringArray.h"
#include "vtkIdTypeArray.h"
#include "vtkDataSetAttributes.h"
#includ... | C++ | graphics/VTK-7.0.0/Examples/GUI/Qt/GraphicsView/GraphLayoutViewItem.cpp | hlzz/dotfiles | bsd-3-clause | 2,814 | 84 | codeparrot/github-code |
1eabd38853cf2c2b2f778afb4ed58db860df55c67c80f7332f90acdac82a2f20 | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2010-2012 Alessandro Tasora
// 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 the distribution
// and at http://projectchrono.org/license-chrono.txt.
//... | C++ | src/chrono/collision/ChCModelBullet.cpp | Bryan-Peterson/chrono | bsd-3-clause | 41,359 | 981 | codeparrot/github-code |
199f97ffa8491bec9b3c777399194d5bc1bd808fb64363393ffe2ee067a45eee | // 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 "chrome/browser/extensions/api/webview/webview_api.h"
#include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
#include "c... | C++ | chrome/browser/extensions/api/webview/webview_api.cc | cvsuser-chromium/chromium | bsd-3-clause | 9,473 | 319 | codeparrot/github-code |
85c07fb0a9e9c55e430e3d58310428671ba9429d902beeaf40bb85d398f3e81a | // 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/viz/service/display_embedder/skia_output_device.h"
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#incl... | C++ | components/viz/service/display_embedder/skia_output_device.cc | endlessm/chromium-browser | bsd-3-clause | 4,339 | 146 | codeparrot/github-code |
b9058bcfdb271082f21f75674ae2de1c064c4e18a818d3ba91d6aab7a68743ef | /**
*============================================================================
* Copyright The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC, and
* Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved B... | Java | caGrid/projects/sdkQuery41/src/java/style/org/cagrid/data/sdkquery41/style/wizard/config/SharedConfiguration.java | NCIP/cagrid-core | bsd-3-clause | 2,235 | 90 | codeparrot/github-code |
e5527c927951e7d1236c1e214aa5447ccd7d1a7cb686cc47fa83c8aed08ab1b8 | <?php
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
class SaleItem extends ActiveRecord
{
public static function tableName()
{
return "SaleItems";
}
public function rules()
{
return [
[['itemID','saleID','total','discount','color','sizeID','quantity'],'required'],
];
}
public function get... | PHP | common/models/SaleItem.php | BrandoIsNotASword/ocean_glass | bsd-3-clause | 901 | 46 | codeparrot/github-code |
418b78ac87185b73bb3af833cbba1da6fb4257c2b5594674dec89e351a2e1712 | // 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.
#include "chrome/browser/chromeos/drive/drive_resource_metadata.h"
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#incl... | C++ | chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc | codenote/chromium-test | bsd-3-clause | 55,288 | 1,366 | codeparrot/github-code |
1ede7efd6a58e2513ac00db6dc9b4021d439d69442d17cba91e61dfd837b51e5 | <?php
/**
* Dynamic CSS
*/
include_once( get_template_directory() . '/css/dynamic-css.php' );
if ( ! function_exists( 'get_default_banner' ) ) {
/**
* Get Default Banner
*
* @return mixed|string|void
*/
function get_default_banner() {
$banner_image_path = get_option( 'theme_general_banner_image' );
re... | PHP | wp-content/themes/realhomes/framework/functions/header.php | fastesol/likemyhome | bsd-3-clause | 4,231 | 161 | codeparrot/github-code |
0a903df4b5d3df293da3f3a2f8d831fe5a06dc4c6ef2bfad6fd99733851e7196 | package com.google.code.beanmatchers;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.when;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.Random;
import org.mockito.Mock;
import org.testng.annotations.BeforeM... | Java | src/test/java/com/google/code/beanmatchers/FloatGeneratorTest.java | orien/bean-matchers | bsd-3-clause | 876 | 39 | codeparrot/github-code |
f53e3aec97304f905db4b17961c431fb73297a0de117a421126be428ac03ce37 | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "user_public".
*
* @property string $nik
* @property string $nama_aplikasi
* @property string $nama_instansi
* @property string $email_instansi
* @property string $no_telp_instansi
* @property string $alamat_instansi
*
* @prope... | PHP | common/models/UserPublic.php | Bladefidz/ocfa_yii | bsd-3-clause | 1,607 | 65 | codeparrot/github-code |
87994c7ce1a5590d1a070f87da3998df26407bdc05e9b8420379f34354d1624a | /*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* 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 ... | Java | projects/com.oracle.truffle.llvm.test/src/com/oracle/truffle/llvm/test/interop/LLVMTckTest.java | PrinzKatharina/sulong | bsd-3-clause | 11,247 | 414 | codeparrot/github-code |
6a0882c896d94a5c1de85149e627208b56e378202bd20d79418e986b0bbe436c | /*
-- clMAGMA (version 1.3.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@generated from zgebrd.cpp normal z -> d, Sat Nov 15 00:21:37 2014
*/
#include "common_magma.h"
// produces pointer and offset as two... | C++ | src/dgebrd.cpp | kjbartel/clmagma | bsd-3-clause | 10,371 | 285 | codeparrot/github-code |
7da94ea732307c51a75bd5a3e34ab2bf11b4bc50116a52f41a389e5280fc6da7 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/search/arc/arc_app_reinstall_app_result.h"
#include <utility>
#include "base/metrics/user_metrics.h"
#include "base... | C++ | chrome/browser/ui/app_list/search/arc/arc_app_reinstall_app_result.cc | endlessm/chromium-browser | bsd-3-clause | 2,220 | 67 | codeparrot/github-code |
2e85d27c0f6b8c08e6e6d886a449e0b3c5db9c6b6e68e6ac7f266f3f839ca6fa | // 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 "chrome/browser/chromeos/throttle_service.h"
#include <utility>
#include "base/bind.h"
namespace chromeos {
ThrottleService::ThrottleService(... | C++ | chrome/browser/chromeos/throttle_service.cc | endlessm/chromium-browser | bsd-3-clause | 2,510 | 88 | codeparrot/github-code |
00a38ef5198b8ff811daa2fb56b5bcaaf5debd671986cb0d1d9d80ffca4c135c | package mt;
/*
* Copyright © 2005-2007 Carlos Duarte do Nascimento (Chester)
* cd@pobox.com
*
* Copyright © 2007 Sandro Gasparotto (sandro.gasparoto@gmail.com)
* (modo confronto de estratégias)
*
* Este programa é um software livre; você pode redistribui-lo e/ou
* modifica-lo dentro dos termos da Licença Pú... | Java | miniTruco/src/mt/Mesa.java | chesterbr/minitruco-j2me | bsd-3-clause | 36,850 | 1,380 | codeparrot/github-code |
951fac80586cbbf54f81e61c910cdaa1aaccb7d7903f150b3e03cadf0cc7b1bc | # -*- coding: utf-8 -*-
"""Packaging tools to publish projects on PyPI and GitHub."""
import os
import sys
from pathlib import Path
from shutil import rmtree
from textwrap import dedent
from typing import List, Optional, Tuple
import click
from clit import DRY_RUN_OPTION
from clit.files import shell
from clit.ui impo... | Python | clit/dev/packaging.py | wagnerandreoli/clitoolkit | bsd-3-clause | 17,444 | 458 | codeparrot/github-code |
8e5d999d1ede6a336ae2c014a40c53e3e57c560585869e62527b5649ed2a4776 | {-
Gifcurry
(C) 2018 David Lettier
lettier.com
-}
{-# LANGUAGE
DuplicateRecordFields
#-}
module GuiRecords where
import Data.IORef
import Data.Int
import qualified GI.Gtk
import qualified Graphics.Rendering.Pango.Font as GRPF
import GI.Gst
data GuiComponents =
GuiComponents
{ window ... | Haskell | src/gui/GuiRecords.hs | lettier/gifcurry | bsd-3-clause | 9,187 | 225 | codeparrot/github-code |
fd719f63d59a09f6e1e79b5659a3893b67bd8f81e10de6400fee32b05f7ddf56 | {-# LANGUAGE OverloadedStrings #-}
module Sesyrel.FaultTree.Dynamic (
compileDynamicFaultTree
, logDynamicFactorInfo
, DynamicFactor(..)
, dynamicFactorExpr
) where
import Sesyrel.FaultTree.Base hiding (Variable)
import qualified Sesyrel.FaultTree.Base as F (Variable(..))
import Sesyrel.Expression
import S... | Haskell | src/Sesyrel/FaultTree/Dynamic.hs | balodja/sesyrel | bsd-3-clause | 6,383 | 142 | codeparrot/github-code |
fc0c6fb3c4b4a78885e243a9b623f60ea06f35cb5926b2980aaa3e137f871ae5 | /*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
var http = require('http'),
url = require('url'),
monitor = require('..');
/*
* This is the main application that will be monitored
* This is a sim... | JavaScript | examples/monitor_me.js | yahoo/monitr | bsd-3-clause | 1,669 | 68 | codeparrot/github-code |
448feea96e05ac63b60bdcec7a23dfa487e0faf2a88c9364df11cc559787445c | """
Example that sends a single message and exits using the simple interface.
You can use `simple_receive.py` (or `complete_receive.py`) to receive the
message sent.
"""
import eventlet
from kombu import Connection
eventlet.monkey_patch()
def wait_many(timeout=1):
#: Create connection
#: If hostname, u... | Python | examples/simple_eventlet_receive.py | ZoranPavlovic/kombu | bsd-3-clause | 1,188 | 41 | codeparrot/github-code |
efb1fab4d22346809959a19dbcaf107471be19f476b6c1799c5f5967b01283e3 | // 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 CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_
#define CHROMEOS_DBUS_IBUS_IBUS_CONSTANTS_H_
namespace chromeos {
namespace ibus {
const char kService... | C | chromeos/dbus/ibus/ibus_constants.h | keishi/chromium | bsd-3-clause | 1,768 | 50 | codeparrot/github-code |
371e4078259d794f224c66c7579752d74de6fb07605f613ea3a8a9b2704f1030 | /*
* Copyright (c) 2009-2010, Sergey Karakovskiy and Julian Togelius
* 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
... | Java | src/ch/idsia/benchmark/mario/engine/level/LevelGenerator.java | kavanj/marioai | bsd-3-clause | 56,895 | 1,628 | codeparrot/github-code |
4cf1286e2ac9aa151bdd1a72c23fcf647990f28ab2cd503ec7972de0234796b8 | const path = require('path');
const fs = require('fs');
const dpat = require('@deskproapps/dpat');
module.exports = function (env)
{
const PROJECT_ROOT_PATH = env && env.DP_PROJECT_ROOT ? env.DP_PROJECT_ROOT : path.resolve(__dirname, '../../');
const buildManifest = new dpat.BuildManifest(
PROJECT_ROOT_PATH,... | JavaScript | src/webpack/webpack.config-development.js | DeskproApps/app-boilerplate-react | bsd-3-clause | 4,587 | 135 | codeparrot/github-code |
59bc339baf2a9879350a320a2f70a9d122b58038649a6340d68925e3cc62c740 | <?php
namespace Album\Model;
use Zend\Db\TableGateway\TableGateway;
use Album\Model\StoreOrder;
class StoreOrderTable
{
protected $tableGateway;
protected $productTableGateway;
public function __construct(TableGateway $tableGateway, TableGateway $productTableGateway)
{
$this->tableGateway ... | PHP | module/Album/src/Album/Model/StoreOrderTable.php | asdf0577/wufan | bsd-3-clause | 2,772 | 97 | codeparrot/github-code |
14044c531a174b14ac0db21d866886f1deec1b9712cd5b35b338af77be61b2b9 | using System;
using System.Collections.Generic;
using System.Linq;
using Orchard.Data;
using Orchard.Localization;
using Orchard.Logging;
using Orchard.Recipes.Models;
using Orchard.Recipes.Services;
using Orchard.Roles.Models;
using Orchard.Roles.Services;
namespace Orchard.Roles.ImportExport {
publi... | C# | Modules/Orchard.Roles/ImportExport/RolesRecipeHandler.cs | andrewconnell/aci-orchardcms | bsd-3-clause | 2,842 | 64 | codeparrot/github-code |
368531037c22ac4fa504d8baef901fbfeb019884c9eaa2c49c6abf08913a5c62 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_execl_67a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-67a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data using... | C | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_listen_socket_execl_67a.c | JianpingZeng/xcc | bsd-3-clause | 6,411 | 214 | codeparrot/github-code |
6ab04237937b23bc91e5dc8889d8c00d16c5f274bdddc835ea8ef259de259a36 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GPU_IPC_CLIENT_SHARED_IMAGE_INTERFACE_PROXY_H_
#define GPU_IPC_CLIENT_SHARED_IMAGE_INTERFACE_PROXY_H_
#include "base/containers/flat_map.h"
#incl... | C | chromium/gpu/ipc/client/shared_image_interface_proxy.h | ric2b/Vivaldi-browser | bsd-3-clause | 4,943 | 120 | codeparrot/github-code |
6b07c6fbe7bcc22c108254f564fa9abe071de7764d7f981c5389fc42aa91e0e4 | /*
Detects SIFT features in two images and finds matches between them.
Copyright (C) 2006 Rob Hess <hess@eecs.oregonstate.edu>
@version 1.1.1-20070913
*/
#include "sift.h"
#include "imgfeatures.h"
#include "kdtree.h"
#include "utils.h"
#include "xform.h"
//#include "cxcore.h"
//#include <highgui.h>
// Universal in... | C | libs/vision/src/sift-hess/match.c | bigjun/mrpt | bsd-3-clause | 3,116 | 125 | codeparrot/github-code |
780450f139acac1193120b06f0df4a175910b7b4a615bb4d8ef22e75e1d8567f | import express from 'express';
import graphQLHTTP from 'express-graphql';
import path from 'path';
import webpack from 'webpack';
import WebpackDevServer from 'webpack-dev-server';
import { Schema } from './data/schema';
const APP_PORT = 3000;
const GRAPHQL_PORT = 8080;
// Expose a GraphQL endpoint
const graphQLServe... | JavaScript | server.js | panuru/relay-playground | bsd-3-clause | 1,563 | 62 | codeparrot/github-code |
1f787d7d210829db30fb5711061502e55f5a1b92fbb327080130e5bed2d0e30b | <?php
namespace app\controllers;
use Yii;
use app\models\form\Login;
use app\models\form\PasswordResetRequest;
use app\models\form\ResetPassword;
use app\models\form\Signup;
use app\models\form\ChangePassword;
use app\models\ar\UserProfile;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use ... | PHP | app/controllers/UserController.php | GAMITG/yii2-app-angular | bsd-3-clause | 4,658 | 168 | codeparrot/github-code |
079db15c3e58e0b235931ce8328decc2c49a383d8331442d5773ec44b83fcd69 | #!/usr/bin/env python
# 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.
import argparse
import contextlib
import cStringIO
import datetime
import gzip
import json
import logging
import multiprocessing
import... | Python | infra/services/builder_alerts/__main__.py | nicko96/Chrome-Infra | bsd-3-clause | 12,085 | 351 | codeparrot/github-code |
560380471b9e13b28120479cc8a93a4d300d7fb38b5b401602bdab4c7aad5c19 | /*L
* Copyright Duke Comprehensive Cancer Center
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catrip/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.domain.finding.clinical.bean;
import gov.nih.nci.caintegrator.domain.finding.clinical.bean.*;
import java.... | Java | codebase/projects/cgems-beans/src/gov/nih/nci/caintegrator/domain/finding/clinical/bean/ClinicalFinding.java | NCIP/catrip | bsd-3-clause | 2,856 | 147 | codeparrot/github-code |
5fd1b06844b2a2a01d8ebaeb492a13bc53f88ecee161fa3c0a1a31d31ec56819 | // 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_APP_LIST_PAGE_SWITCHER_H_
#define UI_APP_LIST_PAGE_SWITCHER_H_
#include "base/basictypes.h"
#include "ui/app_list/pagination_model_observe... | C | ui/app_list/page_switcher.h | keishi/chromium | bsd-3-clause | 1,681 | 52 | codeparrot/github-code |
479f977ed31dc995c306ec5f873f27b28ac0139135f00a7eee85b19520642473 | module Main where
import Client
import Server
import Player
import System.IO
import System.IO.Error hiding (catch)
import System.Environment (getArgs)
import Network
import Text.Printf
import Control.Concurrent.STM
import Control.Concurrent.Async
import Control.Exception hiding (handle)
import Control.Monad.Reader
im... | Haskell | src/Main.hs | thomasathorne/h-chu | bsd-3-clause | 3,638 | 103 | codeparrot/github-code |
67a0f4b9c7aa69ab9db3a1225fe600d9efb45f4ed928799ce83d1e59425698ad | <?php
/**
* Nerufio PHP Framework
* @link http://nerufa.ru/nerufio
* @copyright 2012-2015 Nerufa
* @license New BSD License
*/
namespace Nerufio\Core;
/**
* Class I18n
* @package Nerufio\Core
* @author Ilya Krasheninnikov
*/
final class I18n
{
/**
* Instance of i18n
* @var \Nerufio... | PHP | src/Nerufio/Core/I18n.php | Nerufa/Nerufio | bsd-3-clause | 3,857 | 136 | codeparrot/github-code |
fa8121c7b1925d96ac83ad0fc5e88178946623f9de9d521452da2327213b70b6 | // 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 SANDBOX_LINUX_SERVICES_PROC_UTIL_H_
#define SANDBOX_LINUX_SERVICES_PROC_UTIL_H_
#include "base/files/scoped_file.h"
#include "sandbox/sandbox_exp... | C | chromium/sandbox/linux/services/proc_util.h | ric2b/Vivaldi-browser | bsd-3-clause | 1,559 | 43 | codeparrot/github-code |
6c9c210c32f8e5f129fde55497c20f40ea9802d1223d833f5bf33baf2e31424d | // 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.
#include "ui/aura/display_change_observer_x11.h"
#include <algorithm>
#include <map>
#include <set>
#include <vector>
#include <X11/extensions/Xrand... | C++ | ui/aura/display_change_observer_x11.cc | junmin-zhu/chromium-rivertrail | bsd-3-clause | 6,351 | 194 | codeparrot/github-code |
73e8ef16aadd5a40d3f3ce65803afa2d5dc015a9ef959a2b17edda73c497fb59 | /*
* HelpPage
*/
import React from "react";
import { Pane, Text, Heading, Icon } from "evergreen-ui";
export default class Help extends React.Component {
// Since state and props are static,
// there's no need to re-render this component
shouldComponentUpdate() {
return false;
}
render() {
const e... | JavaScript | owtf/webapp/src/containers/HelpPage/index.js | owtf/owtf | bsd-3-clause | 8,170 | 296 | codeparrot/github-code |
2961e5485474cd09bc3a48cb14d038e44973a09e1fadbf78b28e47a8aa2ca324 | /*
* SEGS - Super Entity Game Server
* http://www.segs.dev/
* Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
* This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
*/
/*!
* @addtogroup MapServer Projects/CoX/Servers/MapServer
* @{
*/
#include "EntityUpdateCo... | C++ | Projects/CoX/Servers/MapServer/EntityUpdateCodec.cpp | broxen/Segs | bsd-3-clause | 16,192 | 475 | codeparrot/github-code |
728fbf0fcd8c86b24360f1428ba03f6980f80b670284dbd8ab9b3c50d216bca4 | // 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.
#include "gpu/command_buffer/service/texture_manager.h"
#include <algorithm>
#include <set>
#include <utility>
#include "base/bits.h"
#include "base... | C++ | gpu/command_buffer/service/texture_manager.cc | Just-D/chromium-1 | bsd-3-clause | 72,210 | 2,109 | codeparrot/github-code |
188378671e0cea6b6f3e7657233d53d0455a29bf3d052228cb08793430653179 | """Application management command utility functions"""
from collections import defaultdict
from django.core.exceptions import ValidationError
from django.db import transaction
from applications.api import derive_application_state
from applications.constants import APPROVED_APP_STATES
from applications.models import (... | Python | applications/management/utils.py | mitodl/bootcamp-ecommerce | bsd-3-clause | 6,610 | 154 | codeparrot/github-code |
501cd9d5efde01da719da4f56a8347c29bd8fef76ae8fbfe430d4d644e9c187c | """Contains miscellaneous utility functions and classes."""
__all__ = ['indent',
'doc', 'adjust', 'difference', 'intersection', 'union',
'sameElements', 'makeList', 'makeTuple', 'list2dict', 'invertDict',
'invertDictLossless', 'uniqueElements', 'disjoint', 'contains',
'replace', 'reduceAngle', 'fitSrcAngle2Dest', 'fit... | Python | direct/src/showbase/PythonUtil.py | brakhane/panda3d | bsd-3-clause | 86,071 | 2,711 | codeparrot/github-code |
a3a183948aecd8375f223d08765fcfb5deb959b702aa0c729af8efee0d6f21d4 | //===-- DWARFAbbreviationDeclaration.cpp ------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | FreeBSD/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.cpp | TigerBSD/TigerBSD | isc | 2,886 | 118 | codeparrot/github-code |
67606ae3dfd408de56d33e10283a345ae6732e03118489195efde29e10abe44a | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | PHP | application/config/routes.php | ravinathdo/sms | mit | 1,974 | 55 | codeparrot/github-code |
4d30c7c3aed4ac81fa88af9f8b894b43200afff3ea01f8f28cc768c1c0afa10d | /*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2016 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitatio... | Java | examples/java/BMG160_Example.java | whbruce/upm | mit | 2,362 | 65 | codeparrot/github-code |
cf95eed4b2c54792ae059745b46a599cea58ccad2a8cbd6d17e08fee92b5f48f | // Copyright (c) 2017-2019 nyorain
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
/// \file Defines the Callback template class.
#pragma once
#ifndef NYTL_INCLUDE_CALLBACK
#define NYTL_INCLUDE_CALLBACK
#include <nytl/con... | C++ | nytl/callback.hpp | nyorain/nyutil | mit | 7,390 | 224 | codeparrot/github-code |
f08eea66559339ca434ad0e9923e6fa768c602c824a2027e6122034e5885ce2e | -- Gemeinschaft 5 module: call router class
-- (c) AMOOMA GmbH 2013
--
module(...,package.seeall)
Router = {}
-- create route object
function Router.new(self, arg)
require 'common.str';
require 'common.array';
arg = arg or {}
object = arg.object or {}
setmetatable(object, self);
self.__index = self;
s... | Lua | misc/freeswitch/scripts/dialplan/router.lua | amooma/GS5 | mit | 11,297 | 317 | codeparrot/github-code |
8106677d2e1e1aca158f5856b61165ff1e2e05518bae67516662b1bed28aa34e | $A.bind(window, "load", function() {
// Syntax : setCalendar( ID , TriggeringElement , TargetEditField , EnableComments , clickHandler , config )
$A.setCalendar(
"UniqueCalendarId",
$A.getEl("dateIcon"),
$A.getEl("date"),
false,
undefined,
{
// Configure optional overrides
// C... | JavaScript | AccDC Technical Style Guide/Coding Arena/ARIA Date Pickers/ARIA Date Picker (with Complex Custom Disabled Date Ranges)/js/setup.js | accdc/tsg | mit | 6,603 | 232 | codeparrot/github-code |
42cf3c6ecc38eb04a9d04f067fa18f96315595a04ce2ff54d54538e20cf39c22 | iD.ui.SelectionList = function(context, selectedIDs) {
function selectionList(selection) {
selection.classed('selection-list-pane', true);
var header = selection.append('div')
.attr('class', 'header fillL cf');
header.append('h3')
.text(t('inspector.multiselect'));... | JavaScript | umap/static/js/id/ui/selection_list.js | daumann/chronas-application | mit | 2,086 | 70 | codeparrot/github-code |
04e1b53a45dc3affbb41ad7699966d37186fd25520ea51afd7bef08da84db84a | import express = require("express");
import {Location, LocationDocument} from "../models/location";
import {Request, Response, NextFunction} from "express";
let router = express.Router();
/** POST: Create location */
router.post("/", (req: Request, res: Response, next: NextFunction) => {
let location = new Location... | TypeScript | server/api/routes/location.ts | Angularne/EduQ | mit | 2,784 | 127 | codeparrot/github-code |
37a34f9a92b618ad9620ba4f5eb62a202271b04f44a7f71e07ae6c33f3ac8a18 | <!doctype html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>Cycle.js<%= title ? ' - ' + title : '' %></title>
<!-- Flatdoc -->
<script src='<%= pathToRoot %>support/vendor/jquery.js'></script>... | HTML | docs/.scripts/template.html | feliciousx-open-source/cyclejs | mit | 4,554 | 123 | codeparrot/github-code |
52e34147cceeec4c7fcc8f9e8dd2dc4ff2e494e4d8e3b397505ded54aa137e02 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>TextCap (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="t... | HTML | eclipse/poi-3.12/docs/apidocs/org/apache/poi/xssf/usermodel/TextCap.html | misuqian/ExcelTool | mit | 12,998 | 336 | codeparrot/github-code |
48f1fdf4b5ec6657237ef393f003d7420d8ad7c14f70e7f3bc1ca97af6a923cc | --[[iconpickerData = {
type = "iconpicker",
name = "My Icon Picker", -- or string id or function returning a string
choices = {"texture path 1", "texture path 2", "texture path 3"},
getFunc = function() return db.var end,
setFunc = function(var) db.var = var doStuff() end,
tooltip = "Color Picke... | Lua | lib/LAM/controls/iconpicker.lua | nilsbrummond/ESO-MailLooter | mit | 15,458 | 435 | codeparrot/github-code |
b5e0d2ac651eac66cd0202ada6e851ae5d8150469410140a9c2e456fde9a67d1 | #include "addressbookpage.h"
#include "ui_addressbookpage.h"
#include "addresstablemodel.h"
#include "optionsmodel.h"
#include "bitcoingui.h"
#include "editaddressdialog.h"
#include "csvmodelwriter.h"
#include "guiutil.h"
#ifdef USE_QRCODE
#include "qrcodedialog.h"
#endif
#include <QSortFilterProxyModel>
#include <Q... | C++ | src/qt/addressbookpage.cpp | cinnamoncoin/sifcoin | mit | 12,509 | 391 | codeparrot/github-code |
c859f901051b95739bc6759e640a8dd20d91e54404f1af398da077e80bc9eee1 | /********************************************************
* ADO.NET 2.0 Data Provider for SQLite Version 3.X
* Written by Robert Simpson (robert@blackcastlesoft.com)
*
* Released to the public domain, use at your own risk!
********************************************************/
namespace System.Data.SQLite
{
u... | C# | System.Data.SQLite/Client/SQLiteConvert.cs | Schumix/CsharpSQLite | mit | 40,140 | 1,156 | codeparrot/github-code |
29fc5d510d3752d6b3f59b1d5164887907652665cc387efb909a2e7606339d46 | package elasta.orm.event.builder.impl;
import elasta.core.promise.impl.Promises;
import elasta.core.promise.intfs.Promise;
import elasta.orm.event.EventHandler;
import io.vertx.core.json.JsonObject;
import java.util.List;
import java.util.Objects;
/**
* Created by sohan on 3/30/2017.
*/
final public class Delegati... | Java | elasta-orm/src/main/java/elasta/orm/event/builder/impl/DelegatingEventHandlerImpl.java | codefacts/Elastic-Components | mit | 1,384 | 48 | codeparrot/github-code |
2c2746b20954695a227069c785a33b864efd0c42d66d6223f8ad9c7baeb30abf | <?php
/* SensioDistributionBundle::Configurator/form.html.twig */
class __TwigTemplate_a76670a8dcd22dcd7326a6720688e4eb511f18ccdd59efc36c0f14ff60ff8727 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTempla... | PHP | app/cache/dev/twig/a7/66/70a8dcd22dcd7326a6720688e4eb511f18ccdd59efc36c0f14ff60ff8727.php | rxlisbest/second | mit | 5,111 | 127 | codeparrot/github-code |
64865d7da19b8565971758f299647dd778d1d672c7e1ecf43ea92070dd74bf53 | /**
* @file BlynkApiArduino.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Mar 2015
* @brief
*
*/
#ifndef BlynkApiArduino_h
#define BlynkApiArduino_h
#include <Blynk/BlynkApi.h>
#... | C | BlynkApiArduino.h | flashvnn/blynk-library | mit | 6,082 | 205 | codeparrot/github-code |
3e340294f292588e747a019989a0168bed726052934402f6cab9531f205b2947 | using System;
namespace GuruComponents.Netrix.WebEditing.Exceptions
{
/// <summary>
/// Exception thrown if a command was not successfull operate within the
/// control. If the reason was a wrong or missing argument or parameter
/// a <see cref="System.ArgumentException">ArgumentException</see> is thr... | C# | NetrixPackage/NetRixMain/NetRix/WebEditing/Exceptions/CommandUnavailableException.cs | joergkrause/netrix | mit | 1,111 | 40 | codeparrot/github-code |
8518db89c0ad5b7006e4fc193ab0f0e414142690195885b8dc2a079e46d1fc67 | var Buffer = require('buffer').Buffer;
var Crypto = require('crypto');
var Auth = exports;
function sha1(msg) {
var hash = Crypto.createHash('sha1');
hash.update(msg, 'binary');
return hash.digest('binary');
}
Auth.sha1 = sha1;
function xor(a, b) {
a = new Buffer(a, 'binary');
b = new Buffer(b, 'binary');... | JavaScript | lib/protocol/Auth.js | bbito/node-mysql | mit | 4,208 | 166 | codeparrot/github-code |
bc970d88e1eea5bffbd2e5fc1cb6d9f2e1133b733cdace5e85240ef5b1d78f6a | <?php
namespace Openl10n\Cli\File;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\Glob;
class Matcher
{
/**
* @var string
*/
protected $pattern;
/**
* @param string $pattern
*/
public function __construct($pattern)
{
$this->pattern = $pattern;
}... | PHP | src/Openl10n/Cli/File/Matcher.php | openl10n/openl10n-cli | mit | 3,140 | 114 | codeparrot/github-code |
d905d5923455f117fb85dcf7a1668101682f2e626564a05103a221b45c8903fd | /* Copyright (C) 2012 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. 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) any later version.
*... | C++ | fpsgame/PMDConvert.cpp | mrlitong/Game-Engine-Development-Usage | mit | 24,876 | 722 | codeparrot/github-code |
db01815703e49c72bd7fea1a1df2b6fed5be895cde41eb57b317d03f7a6d59bc | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: S... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/declarative-ui-components-searchbox-qml-searchbox-searchbox-qml.html | stephaneAG/PengPod700 | mit | 18,381 | 312 | codeparrot/github-code |
08fad9005dd608f289e717de539eb0a3305cd3a823e9ec408ef4e92873d304ac | function getScroll()
{
var t, l, w, h;
if (document.documentElement && document.documentElement.scrollTop) {
t = document.documentElement.scrollTop;
l = document.documentElement.scrollLeft;
w = document.documentElement.scrollWidth;
h = document.documentElement.scro... | JavaScript | themes/bqmart/template/js/com/com.js | guotao2000/ecmall | mit | 30,219 | 758 | codeparrot/github-code |
6781e1f499bf8eb33782d37fd9879b1d56e72c355ba381fd6f32b96bf4c75ba2 | module Doorkeeper
module OAuth
module Authorization
class Token
attr_accessor :pre_auth, :resource_owner, :token
def initialize(pre_auth, resource_owner)
@pre_auth = pre_auth
@resource_owner = resource_owner
end
def self.access_token_expires_in(ser... | Ruby | lib/doorkeeper/oauth/authorization/token.rb | ministryofjustice/doorkeeper | mit | 1,140 | 48 | codeparrot/github-code |
1994b1f53be57335598d352b406ab714043c3735118e51f9e8417d0453324eff | 'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
gulp.task('partials', ['markups'], function () {
return gulp.src([
path.join(conf.paths.src, '/a... | JavaScript | source/web/gulp/build.js | BJTUNourriture/NourriturePlus | mit | 3,202 | 100 | codeparrot/github-code |
8d907246863949ce02ca77dc0ae160e6e2dcd00cb2b4730796c695bbb0e3d17a | ///////////////////////////////////////////////////////////////////////////////
// Name: src/msw/listbox.cpp
// Purpose: wxListBox
// Author: Julian Smart
// Modified by: Vadim Zeitlin (owner drawn stuff)
// Created:
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows... | C++ | Gamekit/wxWidgets-2.9.1/src/msw/listbox.cpp | Josiastech/vuforia-gamekit-integration | mit | 24,804 | 850 | codeparrot/github-code |
bf2ac0c62b96c275de7f83977d5350063cb32fb1d398b04067ee5712fb937a4b | package main
import (
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"google.golang.org/grpc"
"go.pedge.io/lion/env"
"go.pedge.io/lion/proto"
"go.pedge.io/pkg/cobra"
"go.pedge.io/protoeasy"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
type appEnv struct {
Address string `env:"PROTOEASY_ADDRESS"`... | GO | cmd/protoeasy/main.go | peter-edge/protoeasy-go | mit | 10,689 | 406 | codeparrot/github-code |
a7b52996b05bffccaa5ff34b7712bf48c6d12aae6c7d909408fdc7b7fafe8f5e | /*
* Copyright 2001-2015 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Tasks. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package com.aspose.tasks.examples.T... | Java | Examples/src/main/java/com/aspose/tasks/examples/TaskBaselines/CreatingATaskBaseline.java | aspose-tasks/Aspose.Tasks-for-Java | mit | 1,128 | 41 | codeparrot/github-code |
b79392351dd9036b4e53108589698d13923be1a2bb28483c991db96ffda8de79 | package main
import (
"../nsq"
"../util"
"log"
"net"
)
type TcpProtocol struct {
util.TcpHandler
protocols map[int32]nsq.Protocol
}
func (p *TcpProtocol) Handle(clientConn net.Conn) {
log.Printf("TCP: new client(%s)", clientConn.RemoteAddr())
protocolMagic, err := nsq.ReadMagic(clientConn)
if err != nil {
... | GO | nsqd/tcp.go | chaosknight/nsq | mit | 877 | 39 | codeparrot/github-code |
e626da0bdc3234e4963066391ec46f28cce4e5ed3944bb3f50481b8df272efdd | <!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
<!-- hexo-inject:begin --><!-- hexo-inject:end --><meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Tag: logistic-regression | TechBridge 技術共筆部落格</tit... | HTML | tags/logistic-regression/index.html | TechBridgeWeekly/techbridgeweekly.github.io | mit | 7,198 | 201 | codeparrot/github-code |
78366ee6bdadc91af4b70bb207ef3692ddd7f0c9ca96f89464b65a4045875b6f | //
// Copyright (c) 2012 Krueger Systems, Inc.
// Copyright (c) 2013 Øystein Krog (oystein.krog@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, includi... | C# | src/SQLite.Net/SQLiteCommand.cs | fernandovm/SQLite.Net-PCL | mit | 24,069 | 599 | codeparrot/github-code |
112666476a0fb799f07e756317ce0ebc9d533a32c98894f903310bb48a48cea0 | package ru.spbau.mit.dbmsau.command.where;
import org.junit.Test;
import ru.spbau.mit.dbmsau.BaseTest;
import ru.spbau.mit.dbmsau.relation.ColumnAccessor;
import ru.spbau.mit.dbmsau.relation.MemoryRelationRecord;
import ru.spbau.mit.dbmsau.relation.Relation;
import java.util.Arrays;
public class WhereExpressionTest ... | Java | src/test/java/ru/spbau/mit/dbmsau/command/where/WhereExpressionTest.java | tsvtkv/dbmsau | mit | 1,794 | 51 | codeparrot/github-code |
5dae7daead0d0d4db6c9901167e5d5dd5c26052b535bbf388dc54656ad66c460 | namespace WiiWandz
{
partial class WiimoteInfo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should... | C# | HarryParty/WiimoteInfo.Designer.cs | bigokro/wiiwandz | mit | 40,869 | 913 | codeparrot/github-code |
4594f6a4e99a6f7aa3d6e68ed6f7a44a2003473b2244471b500fb1a52cd9127e | module DaemonObjects::Amqp::Runner
attr_accessor :endpoint, :queue, :prefetch, :worker_class,
:retry_wait_time
def arguments
@arguments ||= {}
end
def retry_wait_time
@retry_wait_time || 5
end
def run
logger.info "Preparing to start the AMQP watcher."
connection = Bunny.new(endpoint)... | Ruby | lib/daemon_objects/amqp/runner.rb | betterwithranch/daemon_objects | mit | 1,375 | 61 | codeparrot/github-code |
709e166be6fc3dec0a917c2363bc7544d65c255aea2a01e9f711ec2d257bd4d8 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>Med... | HTML | reference/android/media/MediaDrm.CryptoSession.html | terrytowne/android-developer-cn | mit | 72,776 | 1,756 | codeparrot/github-code |
e79156395a2094727ea82e829410c56458d3c3fc0aedb5b146546229edd656f4 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace JF\GeneratorBundle\Generator;
use Symfony\Component\Filesystem\Filesyst... | PHP | src/JF/GeneratorBundle/Generator/ControllerGenerator.php | ephp/JF | mit | 7,000 | 195 | codeparrot/github-code |
3146889899ba74fb3589cea6e94bf334959ebdc3a1385ebc680392fb2d05f870 | #!/usr/bin/python3
"""
Cleans-up Sphinx-only constructs (ie from README.rst),
so that *PyPi* can format it properly.
To check for remaining errors, install ``sphinx`` and run::
python setup.py --long-description | sed -file 'this_file.sed' | rst2html.py --halt=warning
"""
import re
import sys, io
def yie... | Python | rst_cleaner.py | iSTB/python-schemata | mit | 1,813 | 68 | codeparrot/github-code |
0be7c5aac8dcef740508739ae6a7d12dfb3f8e8c2e09359f2d62f1b8e49e1563 | using System;
using Newtonsoft.Json.Linq;
using System.Net.Http;
using ShopifySharp.Filters;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using ShopifySharp.Infrastructure;
using ShopifySharp.Lists;
namespace ShopifySharp
{
/// <summary>
/// A service for manipulatin... | C# | ShopifySharp/Services/Webhook/WebhookService.cs | clement911/ShopifySharp | mit | 4,820 | 102 | codeparrot/github-code |
720e619b1052403b7fdc0cc467794564f862ae936b0107034ab3ae5c91956efb | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {login} from '../../../modules/auth/actions/index'
export const Login = React.createClass({
do_login (event) {
event.preventDefault()
const {email, pass} = this.refs
const {dispatch, params} = this.props
let data = {... | JavaScript | public/client/routes/login/containers/login.js | nearform/concorda-dashboard | mit | 3,922 | 129 | codeparrot/github-code |
61a5790b70f0c8b8ff9936bbebfc86878c29508a31822284eff2107a08f013e4 | /**********************************************************//**
* @file bitset.c
* @brief Implementation of variable-sized bitsets.
* @version 1.0
* @author Rena Shinomiya
* @date March 2017
**************************************************************/
// Standard library
#include <stdbool.h> // bool
#inclu... | C | src/bitset.c | xyRena/libshared | mit | 2,924 | 90 | codeparrot/github-code |
5729789e88d08d40617a3735d02bc9c8643c871f0d315be5d0e049e88783cbc3 |
package com.sentenial.ws.client.ct;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for PaymentType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="PaymentType">
* ... | Java | src/main/java/com/sentenial/ws/client/ct/PaymentType.java | whelanp/sentenial-ws-client | mit | 840 | 39 | codeparrot/github-code |
2e760ba9eaf4f08f4dec98d36debbdfb420074b49fd83ff1c007dd32c736555b | import { Component, HostListener } from '@angular/core';
import { ITreeOptions, TREE_ACTIONS, TreeNode, TreeModel } from 'angular-tree-component';
@Component({
selector: 'app-contextmenu',
template: `
<tree-root [focused]="true" [options]="options" [nodes]="nodes">
<ng-template #treeNodeTemplate let-node... | TypeScript | example/cli/src/app/contextmenu/contextmenu.component.ts | 500tech/angular2-tree-component | mit | 3,841 | 153 | codeparrot/github-code |
4b68c7ee117e6cc36681b5c333b2d5e15810107197358b54b0620770cecc1e1f | # coding: utf-8
__author__ = 'Junki Ishida'
from ._compat import str_types, int_types, int_or_float_types, raise_with_inner, PY2
from .exceptions import FormatError
from decimal import Decimal
from datetime import datetime, date
try:
import dateutil.parser
except ImportError:
pass
def str_to_str(value):
... | Python | mbserializer/converters.py | gomafutofu/mbserializer | mit | 4,218 | 192 | codeparrot/github-code |
1b6289bf358ed91137225046b5c913200e629389d8bb472135d61cadbfe71f0e | # Clinic-related functionality.
class ClinicsController < ApplicationController
before_action :confirm_admin_user, except: [:index]
before_action :find_clinic, only: [:update, :edit]
rescue_from Mongoid::Errors::DocumentNotFound, with: -> { head :bad_request }
def index
@clinics = Clinic.all.sort_by { |c| ... | Ruby | app/controllers/clinics_controller.rb | lomky/dcaf_case_management | mit | 1,720 | 62 | codeparrot/github-code |
84c857274bcd4671c1a3ac92e66f3f07c410205a5e356f91267fd322080f2aa2 | /**
* The implementation of the omdsha512 mode
*/
#include "omdsha512.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
void
xor_block (hashblock res, const hashblock in1, const hashblock in2)
{
res[0] = in1[0] ^ in2[0];
res[1] = in1[1] ^ in2[1];
res[2] = in1[2] ^ in2[2];
res[3] = in1[3]... | C | crypto_aead_round1/omdsha512k128n128tau128v1/sse4/omdsha512.c | mjosaarinen/brutus | mit | 19,891 | 582 | codeparrot/github-code |
4bae839e840fdc01b37042a9991a3231bb1ff42f5ba200cd194643e593408b69 | var fs = require('fs')
var path = require('path')
function read(dir) {
var f = path.resolve(dir, '.node-dev.json')
return fs.existsSync(f) ? JSON.parse(fs.readFileSync(f)) : {}
}
function resolvePath(unresolvedPath) {
return path.resolve(process.cwd(), unresolvedPath)
}
module.exports = function(main, opts) {
... | JavaScript | lib/cfg.js | SwoopCMI/node-dev | mit | 1,174 | 46 | codeparrot/github-code |
5db31966f92263a9fbd8d5c72afff2d06bd1eb0b64648e28308b6ee7cd5f386c |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PhysicsUI — Leap Motion Java SDK v3.1 documentation</title>
<link rel="stylesheet" href="../../cpp/_static/bootstrap-3.0.0/... | HTML | plugins/track/hand/leapMotion/3rdParty/leapMotion/docs/java/unity/Unity.PhysicsUI.html | MTASZTAKI/ApertusVR | mit | 12,958 | 360 | codeparrot/github-code |
7467e1e18ca6c979d25d5c22c37173bfeddb01bd48d9c44b5422f3300daab083 | <?php
namespace UniMapper\Flexibee\Adapter;
use UniMapper\Association;
use UniMapper\Entity\Reflection;
class Mapping extends \UniMapper\Adapter\Mapping
{
/** @var array */
public static $format = [
Reflection\Property::TYPE_DATE => "Y-m-d",
Reflection\Property::TYPE_DATETIME => "Y-m-d\TH:i:... | PHP | src/Adapter/Mapping.php | vp/flexibee | mit | 1,185 | 46 | codeparrot/github-code |
0f93719c87d68d77ac9b4b01fa8937bc12a1adc7b5c06a15c94a388afff7a2ef | <?php
/**
* @package data-sources
*/
/**
* The `SectionDatasource` allows a user to retrieve entries from a given
* section on the Frontend. This datasource type exposes the filtering provided
* by the Fields in the given section to narrow the result set down. The resulting
* entries can be grouped, sort... | PHP | symphony/lib/toolkit/data-sources/class.datasource.section.php | churchdeploy/churchdeploy | mit | 19,555 | 555 | codeparrot/github-code |
cd05bd428cdf499bc3f4b83add6603dd2c6ac5bad0c684162969808e5657d15b | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2014 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to d... | C++ | fluorender/FluoRender/ConvertDlg.cpp | takashi310/fluorender | mit | 9,812 | 289 | codeparrot/github-code |
a4f462e9ffa354531d274bc55b75aaf8c1174e0350fc710dc5fb177fbb744948 | /**
* Copyright (c) 2010 arago AG, http://www.arago.de/
*
* 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, mo... | Java | arago-portlet-util/src/main/java/de/arago/portlet/MapOptionFilter.java | fxcebx/rike | mit | 2,280 | 72 | codeparrot/github-code |
92a3efbeb9afd739d58726858ed9aaabb50749ed1ba2a693a29647860e2f19f1 | try:
import json as _json
except ImportError:
import sys
sys.path.append("simplejson-2.3.3")
import simplejson as _json
import requests as _requests
import urllib.parse as _urlparse
import random as _random
import base64 as _base64
from configparser import ConfigParser as _ConfigParser
import os as _o... | Python | src/biokbase/service/Client.py | kbase/narrative | mit | 7,649 | 223 | codeparrot/github-code |
91e21098d987eb6a81415cf5236fccf7aeaf855ca40ae42e52db33f4215ea0f4 |
#include "dreme.h"
using namespace seqan;
int main(int argc, char const ** argv){
Seq sequences;
Seq background;
IupacMaps IMaps;
unsigned int kmer_len=4;
unsigned int kmer_len_end=6;
sequences.seed=65;
MapIupac(IMaps);//IupacMap for generalization
if(argc !=3){
std::cerr<<"ERROR: Invalid argument... | C++ | raw/pmbs12/pmsb13-data-20120615/sources/brbym28nz827lxic/445/sandbox/meyerclp/apps/dreme/dreme.cpp | bkahlert/seqan-research | mit | 6,104 | 198 | codeparrot/github-code |
724c6a1097e3923231494a6b5e191ddba7d14748f63e77f8e12023d88688d93b | //
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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, m... | C++ | Source/Urho3D/IK/IKConstraint.cpp | xiliu98/Urho3D | mit | 3,983 | 122 | codeparrot/github-code |
4e69729a08b51fc2800e809360dc54bacc29c8bf4c25be36241f44c31be0447b | package downgrade
import (
"context"
"fmt"
"os"
"path/filepath"
"strings"
"github.com/influxdata/influxdb/v2"
"github.com/influxdata/influxdb/v2/bolt"
"github.com/influxdata/influxdb/v2/internal/fs"
"github.com/influxdata/influxdb/v2/kit/cli"
"github.com/influxdata/influxdb/v2/kv/migration"
"github.com/inf... | GO | cmd/influxd/downgrade/downgrade.go | li-ang/influxdb | mit | 6,150 | 177 | codeparrot/github-code |
b02b72fa25e16d2c4415af294d961c0e3927f9940288fbaf312d7015eeca78ce | using UnityEngine;
using UnityEditor;
using System.Collections;
public static class UKEditorLayout {
public class Horizonal : System.IDisposable
{
private bool disposed = false;
public Horizonal()
{
EditorGUILayout.BeginHorizontal();
}
public void Dispose(... | C# | taktik/Assets/UnityKit/Editor/UKEditorLayout.cs | hagish/tektix | mit | 864 | 44 | codeparrot/github-code |
3c902d7c220ed99af5ffe9504a7803eae0730c79bb998638f3b04a3acfdb194a | BlazeComponent.extendComponent({
mixins() {
return [Mixins.PerfectScrollbar];
},
openForm(options) {
options = options || {};
options.position = options.position || 'top';
const forms = this.childComponents('inlinedForm');
let form = forms.find((component) => {
return component.data().... | JavaScript | client/components/lists/listBody.js | jtickle/wekan | mit | 7,392 | 249 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.