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 |
|---|---|---|---|---|---|---|---|---|
7dbc27d6c93ee59b6ec19cf16975f42cf9569ef3a154b691e0c329259ac23348 | //
// Copyright (c) 2017-2020 the rbfx 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, mer... | C | Source/Urho3D/Container/MultiVector.h | rokups/Urho3D | mit | 7,625 | 240 | codeparrot/github-code |
03ad14cd956e4808f4c85307906a34d7902d5623e9c77e847d95f518d9a9c476 | /***************************************
* Responsive Menu - v.1.0
*
* Tested on:
* Firefox
* Chrome
* Safari
* IE9+ (because of its responsive nature is useless to optimize it for previeous IEs)
* Safari iOS
* ...It should work on Android too, but I've not tested on it yet ;)
*
* Overview:
*
* Two states responsive m... | CSS | css-responsive-menu/assets/css/responsive-menu.css | Orlmente/css-only-responsive-menu | mit | 3,812 | 130 | codeparrot/github-code |
aacecc099a129f9b44dc9d9f9ffa3e3edf712f57db095321eaee5bf1aae83b66 | import java.util.Scanner;
/**
* Created by mvieck on 12/21/16.
*/
public class CarProject {
Car[] cars = new Car[3];
public CarProject() {
cars[0] = new Car("Ford",80, 7);
cars[1] = new Car("Kia", 70, 6);
cars[2] = new Car("Lexus", 60, 8);
}
public static void main(String[]... | Java | Car/src/CarProject.java | vieck/Udemy-Java-Square-One | mit | 1,133 | 38 | codeparrot/github-code |
663073d66171cab079b43012d4f867d6d17223eb42bab7b05d9885a8eca7bf2e | using System;
using System.Collections;
namespace hub
{
public class logicproxy
{
public logicproxy(juggle.Ichannel ch)
{
_hub_call_logic = new caller.hub_call_logic(ch);
}
public void reg_logic_sucess_and_notify_hub_nominate()
{
_hub_call_logic.reg_logic_sucess_and_notify_hub_nominate(hub.name);
... | C# | servers/hub/hub/logicproxy.cs | yinchunlong/abelkhan-1 | mit | 645 | 33 | codeparrot/github-code |
ee5683e36c39e807602b5467180c0949ac1bda5a141c6326b13e2502578408d5 | #include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
ull arr[int(1e5)+5];
int n, q, x;
int bs(int key) {
int l = 0, r = n-1, mid, ans=-1;
while (l <= r) {
mid = l + (r - l + 1)/2;
if (arr[mid] == key) {
r = mid - 1;
ans = mid;
}
else if (arr[mid] < key) l = mid + 1;
else ... | C++ | problem_solving/vjudge/277066/a.cpp | sazid/codes | mit | 581 | 42 | codeparrot/github-code |
6f8c2d16eeb646082629b6c80063000fb1c58a1a3a284cd67d12a413bbce4e67 | var plain = require('./workers/plain.js');
var NodeMover = require('./modules/NodeMover').NodeMover;
var PixiGraphics = require('./modules/PixiGraphics').PixiGraphics;
module.exports.main = function () {
var _layoutIterations = 1000;
var _layoutStepsPerMessage = 25;
//--simple frame-rate display for rende... | JavaScript | index-plain.js | anvaka/pixi-ngraph | mit | 2,108 | 63 | codeparrot/github-code |
84455a841924512ae64a2dce47348a15ff3c99925aaae56ea25e5577f1799ea1 | /*
* cocos2d-x http://www.cocos2d-x.org
*
* Copyright (c) 2010-2014 - cocos2d-x community
* Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
*
* Portions Copyright (c) Microsoft Open Technologies, Inc.
* All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use thi... | C++ | cocos/platform/win8.1-universal/OpenGLESPage.xaml.cpp | ecmas/cocos2d | mit | 16,991 | 469 | codeparrot/github-code |
fecb37530db68557966a163dd3037b31d405dec9e3d321e47395deba13fcf177 | import {Component, ViewEncapsulation, ViewChild, ElementRef} from '@angular/core';
import {InteractivityChecker} from './interactivity-checker';
/**
* Directive for trapping focus within a region.
*
* NOTE: This directive currently uses a very simple (naive) approach to focus trapping.
* It assumes that the tab o... | TypeScript | src/lib/core/a11y/focus-trap.ts | metaory/md2 | mit | 2,877 | 87 | codeparrot/github-code |
e77b0bae5f2dbcfc0a17b4e4896f81ef03fbecaa40d5571f86b64c56bad83ece | #!/usr/bin/env sh
set -e
silent=true
run() {
if [[ $silent == false ]] ; then
eval "$1 "
else
eval "$1 &> /dev/null"
fi
}
bold=$(tput bold)
reset=$(tput sgr0)
function print_important_message {
if [[ $silent == false ]]; then
echo ""
printf "${bold}$1${reset}. "
echo ""
fi
}
srcdir=`dirname $0... | Shell | test/test2.sh | vzaccaria/newmake | mit | 1,031 | 58 | codeparrot/github-code |
0d4e9cf712c2ca50d7958bea35542f65718a9d9f0d6f4a2ed08fb0df9e1c77c5 | #include <algorithm>
#include <utility>
#include "ini_doc.hpp"
namespace Utility {
namespace {
std::string& trim(std::string& str) {
auto pos = str.find_first_not_of(" \t");
str.erase(0, pos);
pos = str.find_last_not_of(" \t");
if (pos != str.npos) {
str.erase(pos + 1);
}
... | C++ | utility/ini_doc.cpp | gonmator/busplan | mit | 4,058 | 148 | codeparrot/github-code |
e181dda65a45d3d6362b5c6974a5336adf35be1f85f99523f0aa838e3938da8f | package cn.newcapec.jwxt.jcxxgl.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* JwxtPkxtBjkb entity. @author MyEclipse Persiste... | Java | nsp/digitalcampus/JWXT/Develop/trunk/project/cn.newcapec.function.digitalcampus.jwxt.jcxxgl/src/main/java/cn/newcapec/jwxt/jcxxgl/model/JwxtPkxtBjkb.java | 3203317/2013 | mit | 3,186 | 155 | codeparrot/github-code |
155b37297dc6b34ed0d48c53c41acaae71f22ce61be63692685340605f9140bd | #!/usr/bin/env python3
import sys
import os
import urllib.request
import path_utils
# credit: https://stackoverflow.com/questions/22676/how-to-download-a-file-over-http
def download_url(source_url, target_path):
if os.path.exists(target_path):
return False, "Target path [%s] already exists" % target_pa... | Python | download_url.py | mvendra/mvtools | mit | 992 | 44 | codeparrot/github-code |
14f271456d6093f279afc84675f705b08b45f8e0eb49a900dbb90ba5275a2abb | # Plot histogram
import os
import numpy as np
from plantcv.plantcv.threshold import binary as binary_threshold
from plantcv.plantcv import params
from plantcv.plantcv import fatal_error
from plantcv.plantcv._debug import _debug
import pandas as pd
from plotnine import ggplot, aes, geom_line, labels, scale_color_manual... | Python | plantcv/plantcv/visualize/histogram.py | stiphyMT/plantcv | mit | 6,304 | 158 | codeparrot/github-code |
9734adde541f2cbd10f8b511202737509fbef4a8102c65ae9dd744e0de92c7b3 | //
// SPTestRailReporter.h
// DocsAtWork
//
// Created by Siddartha Polisetty on 3/22/16.
// Copyright (c) 2016 Siddartha Polisetty
//
// 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 Softwar... | C | SPTestRailReporter/SPTestRailReporter.h | SiddarthaPolisetty/SPTestRailReporter | mit | 8,457 | 132 | codeparrot/github-code |
6ceb8dea57d0a4baf5ed9dceb07822ab0c6f3e2acb30d0f6d07640325fd65d86 | require 'fathom_authorization_system'
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
include FathomAuthorizationSystem
def stylesheet_files
if APPLICATION_DOMAIN == 'shanti.virginia.edu'
#['fathom', 'jquery-ui','jquery.autocomplete', '... | Ruby | app/helpers/application_helper.rb | shanti-uva/fathom_engine | mit | 29,993 | 772 | codeparrot/github-code |
c57f333d456026b4faf21b37a3ba8668e1e01437524e0292aeb15bc5c6a4c2c3 | import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, RouterStateSnapshot, Router, Route,
CanActivate, CanActivateChild, CanLoad } from '@angular/router';
import { AuthService } from './auth.service';
@Injectable()
export class AuthGuard implements CanActivate, CanActivateChild, CanLo... | TypeScript | APM-Final/src/app/user/auth-guard.service.ts | jock-dalby/tabletalkr-2 | mit | 1,247 | 39 | codeparrot/github-code |
da9f1c9c850004a730e8e53be6cd67f2f372a95faf5d3c2598e99dc21debb920 | import assert from 'assert'
import { planetposition, julian, sexagesimal as sexa } from '../src/index.js'
import data from '../data/index.js'
describe('#planetposition', function () {
describe('position2000', function () {
it('Mars at 2415020.0', function () {
// Mars 1899 spherical data from vsop87.chk.
... | JavaScript | test/planetposition.test.js | commenthol/astronomia | mit | 3,092 | 77 | codeparrot/github-code |
7711ad541e0424ef66a02ece2cac66913adf8589ffd0c597c85292a9757706cd | // Demonstrate using qpilotsync for carrier recovery.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <getopt.h>
#include <assert.h>
#include "liquid.h"
void usage()
{
printf("%s [options]\n", __FILE__);
printf(" h : print usage\n");
printf(" n... | C | examples/qpilotsync_example.c | jgaeddert/liquid-dsp | mit | 5,865 | 158 | codeparrot/github-code |
5389781bc7e06e1dce8433f2dbef8f6911ba90cdae7c82d5885ef40fa1f38546 | /*!
\file update.h
\brief Update definition
\author Ivan Shynkarenka
\date 09.08.2017
\copyright MIT License
*/
#ifndef CPPTRADER_MATCHING_UPDATE_H
#define CPPTRADER_MATCHING_UPDATE_H
#include "utility/iostream.h"
#include <cstdint>
namespace CppTrader {
namespace Matching {
//! Update type
enu... | C | include/trader/matching/update.h | chronoxor/CppTrader | mit | 607 | 37 | codeparrot/github-code |
111a8c207a88affa21d03c700d34d847fe49f4b841812b3614e2eb340c262a4f | import { Recipe, RecipeContainer } from '../class/recipe';
import { Items as i } from '../constants/items';
import { Equipment as e } from '../class/equipment';
import { Categories as c } from '../constants/categories';
import { Units as u } from '../constants/units';
import { Text as text } from '../class/text';
impor... | TypeScript | src/recipeDebug/pasta.ts | clickthisnick/recipes | mit | 3,529 | 113 | codeparrot/github-code |
8cf54f7a8e3608b4bf19b559d6f5b39903cd2421c2b07ebbb6aec2c390b44c0c | using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using Foundation;
using UIKit;
using Alliance.Carousel;
namespace Sample
{
public class ZeroItemLinearViewController : UIViewController
{
public List<nint> items;
CarouselView carousel;
public Zero... | C# | Components/Alliance.Carousel-3.0/samples/Sample/Sample/ZeroItemLinearViewController.cs | chuonglqspkt/App | mit | 4,517 | 134 | codeparrot/github-code |
1056f1ef34ff528abf797f564e9d802ce9592f76d2709aa25d863eb70a6b3d66 | declare namespace Xrm {
interface EntityDefinition {
EntitySetName: string;
}
namespace Attributes {
interface LookupAttribute {
getLookupTypes(): LookupValue[];
}
}
namespace Controls {
interface Control {
getAttribute(): Xrm.Attributes.Attribute;
}
}
namespace Page {
... | TypeScript | app/tsd/xrm.d.ts | rajyraman/Levelup-for-Dynamics-CRM | mit | 713 | 37 | codeparrot/github-code |
244713f5655bbccda7b3dcfb4feb995a22e3f7d5930a0177697190541c9ec372 | export interface DetectedFeatures {
draggable:boolean;
dragEvents:boolean;
userAgentSupportingNativeDnD:boolean;
}
export function detectFeatures():DetectedFeatures {
let features:DetectedFeatures = {
dragEvents: ("ondragstart" in document.documentElement),
draggable: ("draggable" in d... | TypeScript | src/internal/feature-detection.ts | timruffles/ios-html5-drag-drop-shim | mit | 1,424 | 47 | codeparrot/github-code |
1441a3cec6092c861d6f2a93fdf689f831d18b21aab719e3c3375874ac50e3f2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quickchick: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.2/quickchick/1.4.0.html | coq-bench/coq-bench.github.io | mit | 7,040 | 182 | codeparrot/github-code |
70f0f0118ba22bf0a2c9640450a58abf2a0c8ccafe66d97d35c5a4b1e271fa13 | (function () {
window.onload = function () {
var stage,
layer,
layerBG,
ball,
constants,
onJump,
isOver;
stage = new Kinetic.Stage({
container: 'kinetic-container',
width: document.body.clientWidth,
... | JavaScript | Demos/Demos-JS-UI-DOM/WebStorm/KineticJS/script-jumping.js | iKostov86/JavaScriptUI-DOM | mit | 9,883 | 312 | codeparrot/github-code |
a2dbe162debd2ad6d6959198eb9d9e178d93bcd2fa8471ea3c6f5396e9a952fb | package com.github.twitch4j.helix.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AccessLevel;
import lomb... | Java | rest-helix/src/main/java/com/github/twitch4j/helix/domain/ExtensionTransaction.java | PhilippHeuer/twitch4j | mit | 2,880 | 126 | codeparrot/github-code |
a1f3457d2e0d9569e1e7065b919f791fdd8437cd65e41df2b418d0fb0a24edd1 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | JavaScript | Web.Portal/Scripts/shared/home/app.module.js | Infindant/Master-Template-MVC-Angular2-Gulp | mit | 2,225 | 50 | codeparrot/github-code |
bb004f3b0e638c0acc7d8d9efbec569c549f57c6b520c639fdcf27afa081a02f | package com.wavesplatform.state.diffs
import cats.instances.map._
import cats.syntax.semigroup._
import com.wavesplatform.account.Address
import com.wavesplatform.features.BlockchainFeatures
import com.wavesplatform.lang.ValidationError
import com.wavesplatform.state._
import com.wavesplatform.transaction.Asset.{Issue... | Scala | node/src/main/scala/com/wavesplatform/state/diffs/TransferTransactionDiff.scala | wavesplatform/Waves | mit | 3,635 | 88 | codeparrot/github-code |
5cd4a53cd0ae531ff10410146d193b41653b05a1c9b3ddfc8374e55302c73062 | (function($){
DashboardModel = Backbone.Model.extend({
url: "/sync"
});
SyncStatusModel = Backbone.Model.extend({
url: "/sync/status"
});
DeleteModel = Backbone.Model.extend();
DashboardView = Backbone.View.extend({
el: $("#form_block"),
events: {
"click .sync-now": "syncNow",... | JavaScript | mailsync/media/js/dashboard.js | rebelact/mailsync-app | mit | 3,260 | 116 | codeparrot/github-code |
89a791e3cd435d23c906dd33f09ddf94d4ef520ca1774f855c135bfd37e6f63a | from logika import IGRALEC_R, IGRALEC_Y, PRAZNO, NEODLOCENO, NI_KONEC, MAKSIMALNO_STEVILO_POTEZ, nasprotnik
from five_logika import Five_logika
from powerup_logika import Powerup_logika, POWER_STOLPEC, POWER_ZETON, POWER_2X_NW, POWER_2X_W
from pop10_logika import Pop10_logika
from pop_logika import Pop_logika
import ra... | Python | alphabeta.py | SamoFMF/stiri_v_vrsto | mit | 17,822 | 347 | codeparrot/github-code |
1208925f6b0ad92caa4c93d84186d282cdfb6e89140294a97ba87fb34486c0d6 | "use strict";
var Q = require("q");
var winston = require("winston");
var check = require('validator').check;
var Rule = function() {};
Rule.prototype.initializeFromJson = function(json) {
var self = this;
return Q.fcall(function() {
if(!json) throw new Error("JSON was not provided.");
if(!j... | JavaScript | lib/Rules/Rule.js | reverse-entropy/frontline | mit | 1,028 | 46 | codeparrot/github-code |
81b1a10d6ea0d75eab0a22bc4c6d53edde11713955260f879f621d09652fdc83 | using System.Collections.Generic;
using System.Linq;
using System.Web.Hosting;
using RestSharp;
using Swagolicious.Models;
namespace Swagolicious.Service
{
public class Meetup
{
public List<Result> LoadFromMeetup()
{
return new InMemoryCache().Get("Meetup.Attendees", () =>
... | C# | Swagolicious/Service/Meetup.cs | rippo/swagolicious | mit | 3,790 | 112 | codeparrot/github-code |
0447255ea1d70ab1716c9884a712c753da42b41f2bb8bfe5b9465876b699cb97 | <?php
namespace Hvanoch\Component\DateIntervalParser;
class DateIntervalParser
{
/** @var array */
protected $aliases = array(
'y' => 'y,yr,yrs,year,years',
'm' => 'm,mo,mon,mos,mons,month,months',
'w' => 'w,we,wk,week,weeks',
'd' => 'd,dy,dys,day,days',
'h' => 'h,hr,hr... | PHP | DateIntervalParser.php | hvanoch/daterangeparser | mit | 3,293 | 130 | codeparrot/github-code |
4b5db5996227352333ca8d3e9e5941bbf675ae43a04ae0f558aa4ddcb1fa925d | <?php
/**
* This file is part of the GraphAware Neo4j Client package.
*
* (c) GraphAware Limited <http://graphaware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace GraphAware\Neo4j\Client\HttpDriver;
use GraphAwar... | PHP | src/HttpDriver/Transaction.php | aequasi/neo4j-php-client | mit | 3,993 | 165 | codeparrot/github-code |
192638f200dd1cd75080ecebd66511e7bf98542ed388a4c650ff8d8c7f3ba630 | using CoffeeRoaster.Enums;
using Raspberry.IO;
using Raspberry.IO.SerialPeripheralInterface;
using System;
using System.Threading;
/**********************************************************************************************
* Connections:
* TI board RPI B+
* ------------ ------------------
* P1_1 VCC ... | C# | src/coffee-roaster/Ti430BoostAds1118Connection.cs | cdemaskey/coffee-roaster | mit | 17,325 | 473 | codeparrot/github-code |
d1ddab8f7cdaf7ee06e36a8efbe4bf7ea329ac33c290f85e4f3cc7a6befd2fc7 | #include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... | C++ | src/qt/qrcodedialog.cpp | altcommunitycoin/altcommunitycoin-skunk | mit | 4,319 | 172 | codeparrot/github-code |
9d51d653cf651e3f5bbe975347ed8cd136833c2bca2452c5fdde8f7d3bbc396d | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "c_AI_BaseNPC.h"
#include "engine/IVDebugOverlay.h"
#ifdef HL2_DLL
#include "c_bas... | C++ | cl_dll/c_ai_basenpc.cpp | sswires/ham-and-jam | mit | 3,052 | 117 | codeparrot/github-code |
fd637d6c76478b80fd49979307385fafc7ee7a8a8a7c5cd2c537734660e929b8 |
import { lstatSync } from 'fs';
import { sep } from 'path';
const reNormalize = sep !== '/' ? new RegExp(sep.replace(/\\/g, '\\\\'), 'g') : null;
import logUtils from '../utils/log-utils';
const log = logUtils.log;
const normalizePath = function(path: string): string {
if (reNormalize) {
path... | TypeScript | src/utils/filepath-utils.ts | mmig/mmir-tooling | mit | 1,278 | 47 | codeparrot/github-code |
0a314199cd8bf85ebda21a42ae055578385b883ff1f2fc94830e316112682365 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import os.path as osp
import numpy as np
# `pip install easydict` if you don't have it
from easydict import EasyDict as edict
__C = edict()
# Consumers can get config by:
# from fast_rcnn_config im... | Python | lib/model/config.py | junranhe/tf-faster-rcnn | mit | 11,161 | 370 | codeparrot/github-code |
3ff5de9a348eaea169b39db84e18ef46796647162e52046d675baddb7ff0836e | <head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme_settings.title }}</title>
<meta name="description"
content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme_settings.description }}{% endif %}">
<meta na... | HTML | _includes/head.html | fabiomirandaa/fabiomirandaa.github.io | mit | 2,731 | 50 | codeparrot/github-code |
917aaee6b9354fb623ac70d758f6ce3a50567333838af7d44a148667a6a283e8 | 'use strict';
const fs = require('fs');
const path = require('path');
const test = require('ava');
const mockFs = require('mock-fs');
// const writeArtifacts = require('../../../lib/artifacts').writeArtifact;
const writeArtifacts = require('../../../lib');
test.afterEach(() => mockFs.restore());
test('should inclu... | JavaScript | test/artifacts/write-artifact/symlink.test.js | blond/tartifacts | mit | 2,260 | 85 | codeparrot/github-code |
e9db99814145a836376ab91b01cf6cfc4af05343e0162bdd4cf49763d14eea85 | struct Point<T> {
x: T,
y: T,
}
/* Declare `impl<T>` to specify we are implementing
* methods on type `Point<T>`
*/
impl<T> Point<T> {
/* Getter method `x` returns "reference" to the
* data in field type `T`
*/
fn x(&self) -> &T {
&self.x
}
// fn distance_from_origin<f32>(&... | Rust | projects/generics/src/examples/method_definitions.rs | ltfschoen/RustTest | mit | 1,079 | 49 | codeparrot/github-code |
c8e2b5906b1de29a209d9a53c307121276595980bde7e3a5ff6f973bc9eee5b5 | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaCorePreCompiled.h"
#include "SirenFieldAttribute.h"
#include "Core/IO/Stream/IStream.h"
#include "Core/Log/Log.h"
MEDUSA_BEGIN;
SirenFieldAttribute... | C++ | Medusa/MedusaCore/Core/Siren/Schema/Attribute/SirenFieldAttribute.cpp | fjz13/Medusa | mit | 1,822 | 89 | codeparrot/github-code |
52f843bf17074576c0fdbec65f449954396785f2a08f42ef9e1748696c1dbf7e | package lms
object LMSCSVStringLitParseGen extends CSVStringLitParseGen()
/*****************************************
Emitting Generated Code
*******************************************/
case class CSVStringLitParseGen() extends ((Array[Char])=>ParseResultListAnon1680061013) {
def apply(x0:Array[Char]): ParseResultL... | Scala | FastParsers/src/test/scala/lms/CSVStringLitParseGen.scala | begeric/FastParsers | mit | 11,331 | 728 | codeparrot/github-code |
db25b8b0935436454fbc3416ff440f48d27abd1bcc947dd1db0374afb4f5fd38 | package sword.langbook3.android;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import android... | Java | app/src/main/java/sword/langbook3/android/DefinitionEditorActivity.java | carlos-sancho-ramirez/android-java-langbook | mit | 6,567 | 177 | codeparrot/github-code |
8136c9101622dba1d4dddd1fc5957adbbe7a3facc4af8f3d3bfbdc9b70e7168d | import React from 'react'
import { CLOSE_CHARACTER } from '../model/constants'
import styles from './MessagesComp.module.css'
export interface MessagesCompProps {
_messages: readonly string[]
_removeMessageByIndex: (index: number) => void
}
export function MessagesComp({
_messages,
_removeMessageByIndex,
}: Messa... | TypeScript | src/comp/MessagesComp.tsx | andraaspar/mag | mit | 701 | 33 | codeparrot/github-code |
d75537008d2f399c3b4cbb37ec2e69b60de94c67bd0084c1bfe2e9bb6e7a78c1 |
function SeamCarver(ctx) {
var w = ctx.canvas.width;
var h = ctx.canvas.height;
var imgd = ctx.getImageData(0, 0, w, h);
var pix = imgd.data;
var img = [];
for (var i = 0; i < h; i++) {
img.push(new Uint32Array(w));
for (var j = 0; j < w; j++) {
img[i][j] = (pi... | JavaScript | js/seamcarver.js | znzbr/SeamCarver | mit | 4,730 | 212 | codeparrot/github-code |
18018ab3fbfe0e1d599ced33c800460c4359935c39f4eb2b9945c84e2eed5188 | <?php
namespace Zazzam\Sapa\Domain\Model;
/* *
* This script belongs to the TYPO3 Flow package "Zazzam.Sapa". *
* *
* ... | PHP | Classes/Zazzam/Sapa/Domain/Model/Queue.php | Radda/sapa | mit | 4,924 | 201 | codeparrot/github-code |
dc57ada89c253059dfcc295b532ba4139619e9a361d307beec26477cb5c816b2 | var express = require('express'),
logger = require('morgan'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
session = require('express-session'),
passport = require('passport');
module.exports = function (app, config) {
app.set('views', config.rootPath, '/server/views');
a... | JavaScript | server/config/express.js | jeffboulay/interval-trainer | mit | 1,331 | 41 | codeparrot/github-code |
9ad08e65ba0c7b9174cc0d7eedcf18b50c68465e641fb879ffe01279dde5bcc5 | var assert = require('assert'),
cascade = require('../index');
var TestComplete = function(){}
TestComplete.prototype = new Error();
TestComplete.prototype.constructor = TestComplete;
var test = module.exports = {
// generates a macro context
"context" : function( initialVal, result ){
var funcs =... | JavaScript | test/test.js | scottrabin/cascade | mit | 4,330 | 160 | codeparrot/github-code |
209673c33733e94724a6476beae6c77db74f9a3e067c6ec853b153d8fd903843 | <!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<style href="style/global.css" rel="stylesheet">
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, ... | HTML | evaluation/fullPages/02-salleedesign/index-sliced1.html | jomaras/Firecrow | mit | 59,929 | 1,709 | codeparrot/github-code |
4ccae7b2d8b033a42d11a1b0c07b0e1200d392c9e0113120b861c4b972590287 | package net.dirtyfilthy.bouncycastle.crypto.agreement;
import java.math.BigInteger;
import java.security.SecureRandom;
import net.dirtyfilthy.bouncycastle.crypto.AsymmetricCipherKeyPair;
import net.dirtyfilthy.bouncycastle.crypto.CipherParameters;
import net.dirtyfilthy.bouncycastle.crypto.generators.DHKeyPairGenerat... | Java | net/dirtyfilthy/bouncycastle/crypto/agreement/DHAgreement.java | dirtyfilthy/dirtyfilthy-bouncycastle | mit | 3,319 | 95 | codeparrot/github-code |
4346a8309f8048b528040e113a39b55132c4ae16d64d71fdfb50eeeaa0a7806a | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 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 <galaxycash.h>
#include <chainparams.h>
#include <hash.h>
#include <memo... | C++ | src/galaxycash.cpp | galaxycash/galaxycash | mit | 1,037 | 51 | codeparrot/github-code |
e42784fa38b9fcef32260453904e351c09394155b71fb62a348e54555a540cfd |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | HTML | mirror/prvCode_07/cityCode_005-areaCode_02-deptCode_007/voteCode_20120101T1A2-qryType_ctks-prvCode_06-cityCode_005-areaCode_02-deptCode_007-liCode_0152.html | g0v/projectV | mit | 5,704 | 185 | codeparrot/github-code |
3e49046d15b2b83228c818953fc53254aed57e810ca09f951719f6adf2e2b692 | /* Copyright (c) Ludo Visser
*
* This file is part of the mbed-lib project, and is distributed under the
* terms of the MIT License. The full license agreement text can be found
* in the LICENSE file.
*/
#include "mbed.h"
/* LED initialization function */
void initLED(void) {
PINSEL_CFG_Type pinConfig;
/* Che... | C | src/mbed/led.c | lcvisser/mbed-lib | mit | 1,469 | 65 | codeparrot/github-code |
7793278f99230ea936f28284b1141f92bf8830ff2217b2ede45385ee49ebcc10 | /**
* Super-Cache for Browser
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
var CacheManager = require('./lib/manager');
var MemoryStore = require('./lib/store/memory');
var LocalStore = require('./lib/store/local');
module.exports = exports = CacheManager;
exports.MemoryStore = MemoryStore;
exports.LocalSto... | JavaScript | browser.js | SuperID/super-cache | mit | 629 | 33 | codeparrot/github-code |
29901eba9a156edeb91c8bc567c5b43d1ba9fc81836264cc1d033bf824ba3617 | <!DOCTYPE html>
<!--GuiGhost Games - GuiStack- Tower of Balance-->
<!--GuiGhost Games - GuiStack v1.2 March 2018-->
<html>
<head>
<script src="https://integration.gamepix.com/sdk/v3/gamepix.sdk.js"></script>
<title>Stacker - Boxes of Balance</title>
<meta name="viewport" content="width = device-width, in... | HTML | Partners/GamePix/Stacker_GamePix2/index.html | Guighost/Guighost.github.io | mit | 17,180 | 555 | codeparrot/github-code |
5895df3d5f1edf8989b08fd62580f71dd6a92e1e9314e9c01a40f068a5a257f1 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Xsl;
using J... | C# | JsonXslt/JsonXslt.HtmlExample/HtmlExample.cs | kuhnboy/JsonXslt | mit | 1,941 | 71 | codeparrot/github-code |
db056ff88b8a85bb6e442288c75fca9fdac06b58c7695f96b6d715d56c252bcb | <?php
if (!defined('BASEPATH'))
exit('No ingrese directamente es este script');
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of login
*
* ... | PHP | application/models/login/login_model.php | YaraWebDeveloper/umradio | mit | 2,217 | 67 | codeparrot/github-code |
6835fa866ef0db627bcd5cf58ae63592df7ce03423a0729ddc7c6c6395b7e95d | "use strict";
var _getSert = require("../getsert");
var generateCode = require("../../../src/utils/code-generator");
class StorageDataUtil {
getSert(input) {
var ManagerType = require("../../../src/managers/master/storage-manager");
return _getSert(input, ManagerType, (data) => {
return... | JavaScript | test/data-util/master/storage-data-util.js | danliris/bateeq-module | mit | 1,291 | 54 | codeparrot/github-code |
a248e645628baf2feb25d44e819f9ed3e8350fefd115d8dfed4981c02041496b | package com.sap.data.app.entity.system;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations... | Java | data-app/src/main/java/com/sap/data/app/entity/system/Event.java | shangyantao/dmapp | mit | 1,544 | 69 | codeparrot/github-code |
19f4ec8732d3cdb4f7324daed662a939ee9822f196d51c0452b180deaca22117 | /*
Copyright 2008-2009 University of Cambridge
Copyright 2008-2009 University of Toronto
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may obtain a copy of the ECL 2.0 License and BSD License at
h... | JavaScript | assets/infusion/standalone-demos/keyboard-a11y/js/jquery-ui-accessible-tabs.js | mediashelf/fluid-infusion | mit | 3,738 | 113 | codeparrot/github-code |
524e3fb11f64cf5ee94373ad2380c7cf9e927611ef241786f182c36147908c57 | {%extends 'wiki/_base.html' %}
{% load staticfiles %}
{% block content %}
{{ block.super }}
{# ## Insert HTML Fragment Starting Here###}
<div class="span2 well">
<h1>Admin Panel</h1>
<p> </p>
<p>Admin panel provides additional functionalities and advanced features that are not avai... | HTML | templates/wiki/admin.html | TylerRudie/Onsen | mit | 4,506 | 95 | codeparrot/github-code |
d4bc3aabde19414a585a5b93eda73101d907fc1b9d2072a1cecddfbdf0f841af | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AdminLTE 2 | Fixed Layout</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">... | HTML | pages/layout/fixed.html | weikangchia/jaga-me-coding-test | mit | 26,277 | 661 | codeparrot/github-code |
ffe7479fbcb196b16a7f03a6387120e5b099fa5d43c65c39e2703e88df07d66c | module API
module APIHelpers
PRIVATE_TOKEN_HEADER = "HTTP_PRIVATE_TOKEN"
PRIVATE_TOKEN_PARAM = :private_token
SUDO_HEADER ="HTTP_SUDO"
SUDO_PARAM = :sudo
def current_user
private_token = (params[PRIVATE_TOKEN_PARAM] || env[PRIVATE_TOKEN_HEADER]).to_s
@current_user ||= User.find_by(aut... | Ruby | lib/api/helpers.rb | pkallberg/tjenare | mit | 3,680 | 146 | codeparrot/github-code |
b93ae70dca19c1b29f2a9b8090e1d6bec9a09761a88fab303834ff3db849dca4 | // Copyright 2012-2015 Oliver Eilhard. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
import (
"encoding/json"
"fmt"
"net/url"
"github.com/devacto/grobot/Godeps/_workspace/src/gopkg.in/olivere/elastic.v2... | GO | Godeps/_workspace/src/gopkg.in/olivere/elastic.v2/get_template.go | devacto/grobot | mit | 2,714 | 114 | codeparrot/github-code |
140b8fe90d80ce2f7348e4a31cfb696d28c224ff4a2197f3859896e17cee9d05 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv='content-type' value='text/html;charset=utf8'>
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
<title>git-magic(1) - Automate add/commit/push routines</title>
<style type='text/css' media='all'>
/* style: man */
body#man... | HTML | man/git-magic.html | tj/git-extras | mit | 5,810 | 168 | codeparrot/github-code |
c8f3805c9a93e0c3650e286bbda457d6b7597ee24d450d252cc0e6e89711e0be | module Mousetrap
class Customer < Resource
attr_accessor \
:id,
:code,
:email,
:first_name,
:last_name,
:company,
:notes,
:subscription,
:charges,
:items
def update_tracked_item_quantity(item_code, quantity = 1)
tracked_item_resource = if quan... | Ruby | lib/mousetrap/customer.rb | sproutbox/mousetrap | mit | 5,717 | 215 | codeparrot/github-code |
95cd1fa1310a308a5810149a473371035563e42e7acbc7715544a800122103a9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="admin-themes-lab">
<meta name="author" content="themes-lab">
<link rel="shortcut icon" href="../assets/global/i... | HTML | FILE/layout1/ui-nestable-list.html | MUK81/cms | mit | 65,684 | 1,302 | codeparrot/github-code |
96f73315479d2ccb24a80fea98bee7027cbefa44b4e9c88c4cb25bbbcf55a833 | $t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);'
add-type -name win -member $t -namespace native
[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0)
$Serverip="192.168.1.130"
$filename = "C:\count.... | PowerShell | update.ps1 | wkleinhenz/PowerShell-Botnet | mit | 9,649 | 168 | codeparrot/github-code |
5526687468a78d1cdd748244b40b2cb121f30f397b080bbe0ef15eec2c5284df | # _*_ encoding: utf-8 _*_
import timeit
def insertion_sort(nums):
"""Insertion Sort."""
for index in range(1, len(nums)):
val = nums[index]
left_index = index - 1
while left_index >= 0 and nums[left_index] > val:
nums[left_index + 1] = nums[left_index]
left_inde... | Python | src/insertion_sort.py | palindromed/data-structures2 | mit | 1,651 | 59 | codeparrot/github-code |
231911ec42cd24677c8dadfabc2340643da5f29e6bbfe91f6049b3877ad00cca | import * as pako from "pako"
import {Point} from "./Utils"
import {DrawHelper} from "./DrawHelper"
import {InputManager} from "./InputManager"
import {KeyBindings} from "./InputManager"
import {Data, Entity} from "./Entity"
import {Grid} from "./Grid"
export const COLOR_SCHEME = {
background: "#282c34",
border... | TypeScript | js/index.ts | zachwood0s/Factoprint | mit | 17,492 | 542 | codeparrot/github-code |
839604748610466e6d0e0037d9e94346a0a0363f7488d714446e4f011b1c882d | /*
* Glue - Robust Go and Javascript Socket Library
* Copyright (C) 2015 Roland Singer <roland.singer[at]desertbit.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 versi... | JavaScript | client/src/glue.js | desertbit/glue | mit | 23,197 | 753 | codeparrot/github-code |
eeb4f2ac0ad5c15f160bed531d5e3996e419a085d21a936612fc11eef644526c | import { navigator, window } from 'global';
import addons, { DecorateStoryFunction, Channel } from '@storybook/addons';
import createChannel from '@storybook/channel-postmessage';
import { ClientApi, ConfigApi, StoryStore } from '@storybook/client-api';
import Events from '@storybook/core-events';
import { getSelecti... | TypeScript | lib/core-client/src/preview/start.ts | kadirahq/react-storybook | mit | 3,247 | 102 | codeparrot/github-code |
09c2e1e1f129186b03b8521244ae39124288fd90f7c7d9c686f427d8d6ccaf64 | local field2D = require "field2D"
local draw2D = require "draw2D"
local vec2 = require "vec2"
math.randomseed(os.time())
win:setdim(512, 512)
local dim = 256
local f1 = field2D(dim, dim)
local f1_prev = field2D(dim, dim)
local genome_size = 20
local population_size = 200
local mutation_rate = 0.2
local agelimit = ... | Lua | AV/140610.lua | elihugarret/Curso-AI | mit | 6,982 | 348 | codeparrot/github-code |
2460c792dbf1405754049f17ad78a5ffc167cd553cd64f42c6e6983b80fc8681 | var _ = require('underscore')
, path = require('path')
, passport = require('passport')
, AuthCtrl = require('./controllers/auth')
, UserCtrl = require('./controllers/user')
, User = require('./models/User.js')
, userRoles = require('../client/scripts/routingConfig').userR... | JavaScript | server/routes.js | mori-dev/angular-client-side-auth | mit | 2,962 | 108 | codeparrot/github-code |
920dffbbc762c0c8e15a526e240d6c408a0a07dfef33a14051afc0997bda509d | package gui.main;
/*
// Author: Benjamin Wilcox
// Project GNGH
*/
import java.awt.Dimension;
import javax.swing.JTabbedPane;
public class TabHolder extends JTabbedPane
{
private WorldTab world = new WorldTab();
private JobTab jobs = new JobTab();
private ResourcesTab resources = new Res... | Java | src/gui/main/TabHolder.java | Ben880/GNGH-2 | mit | 842 | 38 | codeparrot/github-code |
d3b6cc9fe73c8586fc589530515cdfe71b808b71bc8447467697eec3f7c120e4 | package example.spring.oktabs.restful;
import example.Conversation;
import example.ConversationRepository;
import example.DomainObject;
import example.DomainObjectRepository;
import example.spring.PathBuilder;
import example.spring.success.SuccessController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
imp... | Java | src/main/java/example/spring/oktabs/restful/RestfulFormController.java | tomcz/spring-conversations | mit | 3,744 | 104 | codeparrot/github-code |
a7d2946e19afb3ea8c2442646c49460d9738535b5445103b189b38fee68eb218 | // Copyright 2015 Zhu.Jin Liang
#ifndef CAFFE_UTIL_COORDS_H_
#define CAFFE_UTIL_COORDS_H_
#include <algorithm>
#include <utility>
#include <vector>
#include "caffe/util/util_pre_define.hpp"
namespace caffe {
template <typename Dtype> class Net;
template <typename Dtype>
class DiagonalAffineMap {
public:
expli... | C++ | caffe/include/caffe/util/coords.hpp | zimenglan-sysu-512/pose_action_caffe | mit | 3,440 | 102 | codeparrot/github-code |
b1b207293a0834ac634669c0921d8a8fa9d6ffc74bc78cde922de8473b5eb055 | package com.github.okapies.rx.process;
import java.net.URI;
import java.nio.ByteBuffer;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import com.zaxxer.nuprocess.NuProcess;
import com.zaxxer.nuprocess.NuProcessBui... | Java | src/main/java/com/github/okapies/rx/process/ReactiveCommand.java | okapies/rx-process | mit | 3,480 | 121 | codeparrot/github-code |
8fff7bc14eee97398046527c890985e70025ec3782ddaa26d00f7c67b5ef5b97 | #ifndef SKP_BOUNDING_BOX_HPP
#define SKP_BOUNDING_BOX_HPP
#include "common.hpp"
#include <SketchUpAPI/geometry.h>
#include "point3d.hpp"
typedef struct {
PyObject_HEAD
SUBoundingBox3D bbox;
} SkpBoundingBox;
static void SkpBoundingBox_dealloc(SkpBoundingBox* self) {
Py_TYPE(self)->tp_free((PyObject*)self);
}... | C++ | src/klass/bounding_box.hpp | ryanzyy/py-skp | mit | 4,444 | 112 | codeparrot/github-code |
5b3f9003f48b4da82e9966dea29b3a3a83026b6aac94b511a358dcec972a31e6 | <?php
return array(
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every ... | PHP | app/config/app.php | BookShuffle/bookshuffle.cloud.net | mit | 8,270 | 202 | codeparrot/github-code |
4d7ec4e99d90aae4f528e1d156cf3e196160dbce16d47686052f5d32d393de2d | /*
* This file is part of the xPack distribution
* (http://xpack.github.io).
* Copyright (c) 2017 Liviu Ionescu.
*
* 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
* restrict... | JavaScript | lib/cli-help.js | xpack/cli-start-options-js | mit | 11,141 | 390 | codeparrot/github-code |
0ecd61d9027235c3e6f1ad6e3663710f0de36c4c99a10e209ea72c8a5201c71a | module Bringit
class Tree
include Bringit::EncodingHelper
attr_accessor :id, :root_id, :name, :path, :type,
:mode, :commit_id, :submodule_url
class << self
# Get list of tree objects
# for repository based on commit sha and path
# Uses rugged for raw objects
def where(repos... | Ruby | lib/bringit/tree.rb | ontohub/gitlab_git | mit | 2,424 | 105 | codeparrot/github-code |
34787ff9b7eb945184b5fc5e163df622e4dd025460cdc75ec50c302c70efd6d4 |
import { expect } from 'chai';
import { ModelApiManager } from '../../api/manager';
import * as models from '../__fixtures__/models';
import { graphql, GraphQLSchema } from 'graphql';
import { ModelManager, fields } from 'rev-models';
import { createData, IModelTestData } from '../__fixtures__/modeldata';
import { Gra... | TypeScript | packages/rev-api/src/graphql/__tests__/reading_scalar_data.tests.ts | RevFramework/rev-framework | mit | 9,086 | 245 | codeparrot/github-code |
8449668215f022888c183474c4c68d676b45361b0f395898f729bdfe03f5d29e | <?php
use yii\helpers\Html;
//use yii\grid\GridView;
use kartik\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel chd7well\sales\models\ProductpurchasepriceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<div class="productpurchaseprice-details">
<?= GridView::widget([
... | PHP | views/productsupplier/expand_details.php | chd7well/sales | mit | 1,976 | 58 | codeparrot/github-code |
0b8979ab469c9e60474f35f494f1d1fa28a6085e5016c44da10066fee98ef329 | package com.advancedaddons.events;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.SoundEvents;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraft.... | Java | src/main/java/com/advancedaddons/events/CustomShieldHandler.java | sblectric/AdvancedAddons | mit | 2,763 | 74 | codeparrot/github-code |
65704a134294e001dbc9ac89095110a29425ac2550eabff32347e0061a9ab4ac | package com.tpwang.security.signature.ecdsa;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.Signature;
import java.security.spec.X509EncodedKeySpec;
import org.apache.commons.codec.binary.Base64;
public class ECReader {
private byte[] publicKeyEncoded;
/***
* Constructo... | Java | security/signature/ecdsa/ECReader.java | TPeterW/Java-Library | mit | 1,100 | 47 | codeparrot/github-code |
fef4e5c6241a8702ec8443b7c1e4b2fa66a28eed6573c1aa9e33f3b29f361a58 | import { Options as RequestOptions } from "request";
import * as _ from "lodash";
import { Headers, Header, Form, FormData, Params,Param, RequestMethod, HeaderValueType } from "../index";
type dataValue = any | any[] | null;
export class Request {
private method: RequestMethod;
private url: string;
priva... | TypeScript | src/shared/networking/models/request.ts | kashyaprahul94/pizza_delivery | mit | 3,541 | 141 | codeparrot/github-code |
2bb9642fe3ea5032e1f0b454ed5c0dc7abf9d8db0b70b5a53cf803820bf7535c | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "alert.h"
#include "base58.h"
#include "chainparams.h"
#include "clientversion.h"... | C++ | src/alert.cpp | Crowndev/crowncoin | mit | 8,021 | 290 | codeparrot/github-code |
a4e574c81823242223da5f48667c36557a64dc1ef6fee7c8a3e555d0ccd03562 | using System.Collections.Generic;
using System.Linq;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
using Abp.Authorization;
namespace Volo.PostgreSqlDemo.Web.Host.Startup
{
public class SecurityRequirementsOperationFilter : IOperationFilter
{
public void Apply(Operatio... | C# | PostgreSqlDemo/aspnet-core/src/Volo.PostgreSqlDemo.Web.Host/Startup/SecurityRequirementsOperationFilter.cs | aspnetboilerplate/aspnetboilerplate-samples | mit | 1,423 | 40 | codeparrot/github-code |
2357c0fc73808d3af7d470b8f7dac92ed12de93e3627a57e598767899922d8bd | <?php
/* AcmeStoreBundle:Product:edit.html.twig */
class __TwigTemplate_eef8bdf9cdc3001416c3324c23541043 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protecte... | PHP | app/cache/dev/twig/ee/f8/bdf9cdc3001416c3324c23541043.php | pushparajcomo/Symfony2 | mit | 2,185 | 76 | codeparrot/github-code |
bbe97eabe70476d5f301f6feaecbf9bb981c7a64928bbc4130f20632f22ca8e8 | import numpy as np
import jarvis.helpers.helpers as helpers
from data_cleaner import DataCleaner
def get_data(csv=None, sep='|'):
dataset = create_dataset(csv, sep)
inputs = DataCleaner().clean(dataset[:, 0:1])
outputs = format_targets(dataset[:, 1])
train_data, test_data = inputs[::2], inputs[1::2]
train_ta... | Python | jarvis/learn/classify/data_prepper.py | whittlbc/jarvis | mit | 960 | 42 | codeparrot/github-code |
064537cd2a280c0a2b4221f682b2ed330d27ce3836936b038448e17dd016f6a0 | import { script } from 'dynamic-import';
export interface InitOptions {
version?: string;
apiKey?: string;
apiSecret?: string;
apiVersion?: string | number; // TODO: Deprecated, remove in next major version
}
export interface LoginOptions {
permissions?: Permission[];
}
export type Permission =
... | TypeScript | src/base-api.ts | mkay581/social-api | mit | 2,100 | 76 | codeparrot/github-code |
05e3c1f986b33192e2d20ff9cfe8a8e3cdbbef3ac11398de9740e1817b9328b8 | <?php
/**
* Smarty Internal TestInstall
* Test Smarty installation
*
* @package Smarty
* @subpackage Utilities
* @author Uwe Tews
*/
/**
* TestInstall class
*
* @package Smarty
* @subpackage Utilities
*/
class Smarty_Internal_TestInstall
{
/**
* diagnose Smarty setup
* If $errors is... | PHP | application/third_party/smarty/libs/sysplugins/smarty_internal_testinstall.php | csetrian/escuk | mit | 23,808 | 573 | codeparrot/github-code |
8bc7bfb0adc6774d11a9106f6687d83eedf85e8bb49102907beba3a9d15aee9c | var gulp = require('gulp');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
var eslint = require('gulp-eslint');
var coveralls = require('gulp-coveralls');
gulp.task('pre-test', function () {
return gulp.src(['lib/**/*.js', '!lib/micro-whalla.js', '!lib/helpers.js'])
.pipe(istanbul({ ... | JavaScript | gulpfile.js | czerwonkabartosz/Micro-Whalla | mit | 882 | 34 | codeparrot/github-code |
f67f06dd375d2f5fb52b98be656f9961c812ae5168604263fe788ed1c44bfaa4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-character: 8 m 4 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.0/mathcomp-character/1.13.0.html | coq-bench/coq-bench.github.io | mit | 10,358 | 178 | codeparrot/github-code |
f761fd681f9ee36931b9cece5f498d35532e8ab21f8f3526caf562f1befbdb88 | class TeaKnowledgeController {
constructor ($scope, $state, $compile, DTOptionsBuilder, DTColumnBuilder, API) {
'ngInject'
this.API = API
this.$state = $state
// let TeaKnowledges = this.API.service('teakns', this.API.all('users'))
let TeaKnowledges = this.API.service('teaknowledges', this.API.al... | JavaScript | angular/app/components/tea-knowledge/tea-knowledge.component.js | qijingyu2013/AdminCMS | mit | 2,446 | 86 | codeparrot/github-code |
925629a968e10eeb131ac816b4b059eb2c80fdcc9a1d6dda70cea1746b6a50ad | package com.freshsoft.matterbridge.routing
import akka.http.scaladsl.model.FormData
import akka.http.scaladsl.server.Directives._
import akka.http.scaladsl.server.Route
import model.MatterBridgeEntities.JsonSupport
import com.freshsoft.matterbridge.server.{MatterBridgeService, MatterBridgeServiceIntegration}
/**
* ... | Scala | src/main/scala/com/freshsoft/matterbridge/routing/MatterBridgeRoute.scala | Freshwood/matterbridge | mit | 1,073 | 39 | codeparrot/github-code |
09dbc00281bc41c2cefe8cb4a5154e66579863b0c08893832d7baf974bdeb273 | package pl.lome.socialsym;
import java.util.ArrayList;
import java.util.HashMap;
import com.tinkerpop.blueprints.pgm.Edge;
import com.tinkerpop.blueprints.pgm.Graph;
import com.tinkerpop.blueprints.pgm.Vertex;
import com.tinkerpop.gremlin.GremlinScriptEngine;
public class CalculateFOAF3Correlation extends CalculateF... | Java | src/pl/lome/socialsym/CalculateFOAF3Correlation.java | bzak/simple-network-simulator | mit | 5,657 | 139 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.