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
33e535f1f00c405c58c207f9a15cc76b4ef7a487d983e15187236022873ed9da
use nom::branch::alt; use nom::bytes::complete::{is_a, is_not, tag, take}; use nom::character::complete::{anychar, digit1, one_of}; use nom::combinator::{map, map_res, opt, value}; use nom::multi::{count, many0, separated_list0}; use nom::sequence::{delimited, preceded, separated_pair, terminated, tuple}; use nom::*; u...
Rust
src/parser/game.rs
nozaq/csa-rs
mit
28,423
856
codeparrot/github-code
7710ed2f3c24b673d68daef299ff69b57070dfbb2529ccaa288f25304812240e
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Using IPython for interactive work &mdash; IPython...
HTML
eggs/ipython-0.10.1-py2.6.egg/share/doc/ipython/manual/html/interactive/index.html
toomoresuch/pysonengine
mit
9,334
164
codeparrot/github-code
c0ab0a44c72068060fdbb4991297edbb519b931253d8a83c65b427b532a97ccb
package main import ( "flag" "fmt" "net/http" . "gopkg.in/go-on/lib.v2/types" . "gopkg.in/go-on/lib.v2/html" "gopkg.in/go-on/lib.v2/internal/bootstrap/bs3" "gopkg.in/go-on/cdncache.v1" ) var ( port = flag.Int("port", 8083, "port of the http server") mountPoint = flag.String("mountpoint", "", "mount p...
GO
example/main.go
go-on/cdncache
mit
2,369
89
codeparrot/github-code
c4fa1f99db4704d06395024bfd09f221be21282475ee4778a5c3894fbf351305
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'><head><title>/Library/Ruby/Gems/1.8/gems/ruby-openid-2.0.2/lib/openid/dh.rb - C0 code coverage information</title> <style type=...
HTML
coverage/-Library-Ruby-Gems-1_8-gems-ruby-openid-2_0_2-lib-openid-dh_rb.html
jared/ygo_classic
mit
20,506
696
codeparrot/github-code
bcbb66eded6f1d12889ba47ba42a1251afbd4f10a84e682579a687946344800f
package apns import ( "errors" "github.com/cosminrentea/gobbler/server/connector" "github.com/jpillora/backoff" "github.com/sideshow/apns2" "net" "time" ) const ( // deviceIDKey is the key name set on the route params to identify the application deviceIDKey = "device_token" userIDKey = "user_id" ) var ( ...
GO
server/apns/apns_sender.go
cosminrentea/gobbler
mit
2,689
111
codeparrot/github-code
c811c2efc4429c4644226b114ca7436ab73fff0aa4ad6239568fd6f849a666c1
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
C++
lib/Common/DataStructures/BigInt.cpp
mrkmarron/ChakraCore
mit
15,350
597
codeparrot/github-code
e2ca3327f51a9d13900c5a8623debd18c681dde6f0758d022b82de4108f7ae62
package com.raoulvdberge.refinedstorage.block.enums; import net.minecraft.util.IStringSerializable; public enum ControllerType implements IStringSerializable { NORMAL(0, "normal"), CREATIVE(1, "creative"); private int id; private String name; ControllerType(int id, String name) { this.id...
Java
src/main/java/com/raoulvdberge/refinedstorage/block/enums/ControllerType.java
way2muchnoise/refinedstorage
mit
557
31
codeparrot/github-code
ffec19c2de1ff1dd4c6269a892eee33a06099af552ea51b2d706652284a92f33
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `vec` mod in crate `std`."> <meta name="keywords" content="...
HTML
Rust/share/doc/rust/html/std/vec/index.html
ArcherSys/ArcherSys
mit
8,868
184
codeparrot/github-code
8d10e23d07d02e39ee84ef9009171ac474b961133410d5b4b018425135f2ce3e
--[[ hybrid_scene.lua A combination of two scenes with two different rendering techniques and a font renderer to label each type of object. All rendering code is owned by the respective scene types and is simply invoked from this module. ]] hybrid_scene = {} local sts = require("scene.shadertoy_scene...
Lua
deploy/lua/scene_old/hybrid_scene.lua
jimbo00000/Flickercladding
mit
1,655
67
codeparrot/github-code
832fa7e95935f418c72fb4b36c7f93ae885dddfcd217d00cd55cea7691caac23
/*************************************************************************** * Copyright (C) 2006 by Arnaud Desaedeleer * * arnaud@desaedeleer.com * * * * Thi...
Java
OpenOMR/openomr/omr_engine/XProjection.java
nayan92/ic-hack
mit
4,106
121
codeparrot/github-code
691f75dccd5302a9b9f4e07b326e12ff3961b33420aeba7b4fc2fb8023642c99
package derpstream; import java.io.FileOutputStream; import java.io.IOException; import java.util.PriorityQueue; import java.util.TimerTask; import java.util.concurrent.LinkedBlockingDeque; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Mads */ public final class ChunkInfo extends...
Java
src/derpstream/ChunkInfo.java
maesse/DerpStream
mit
5,842
179
codeparrot/github-code
cec3f13d540c8f235548c69d1f5980c0a498672aad3cd9778acc954d761352a3
var path = require('path'), HtmlReporter = require('protractor-html-screenshot-reporter'); exports.config = { chromeDriver: 'node_modules/chromedriver/bin/chromedriver', // seleniumAddress: 'http://localhost:4444/wd/hub', // Boolean. If true, Protractor will connect directly to the browser Drivers ...
JavaScript
protractor.conf.js
rajanmayekar/e2e-protractor-setup
mit
1,883
50
codeparrot/github-code
f24e6660f1f96e6044044df4bcfa908935bb40aecb9e0704077c803bfc055290
#!/bin/bash # # Copyright (c) 2015 Ikey Doherty # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
Shell
master.sh
solus-project/toolchain-cruft
mit
2,924
89
codeparrot/github-code
74d3a13e33c482ff50088bc6014677165d85e250d28e179f9e08a236cf578888
import express = require("express"); import passport = require('passport'); import jwt = require('express-jwt'); import AuthController = require("../../controllers/AuthController"); import IUser = require('../../app/model/interfaces/IUser'); import User = require('../../app/model/User'); var router = express.Router()...
TypeScript
server/src/config/routes/AuthRoutes.ts
teengoz/inventory-management
mit
850
32
codeparrot/github-code
d2d2db4f6815936eed934a8a467a56c89bd84ca77ff3fb3a5cdc092076b9b6fb
from bioscrape.inference import DeterministicLikelihood as DLL from bioscrape.inference import StochasticTrajectoriesLikelihood as STLL from bioscrape.inference import StochasticTrajectories from bioscrape.inference import BulkData import warnings import numpy as np class PIDInterface(): ''' PID Interface : Pa...
Python
bioscrape/pid_interfaces.py
ananswam/bioscrape
mit
13,998
306
codeparrot/github-code
619a7b24c753d5c00d7cf6b3b076d10d628c33ff84424286833663c4ca816b11
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using FilesToDatabaseImporter.Annotations; using FilesToDatabaseImporter.Helpers; using FilesToDatabaseImporter.Interfaces; namespace FilesToDatabaseImporter.ViewModels { public c...
C#
FilesToDatabaseImporter/ViewModels/SqlServerViewModel.cs
JeroenVinke/FilesToDatabaseImporter
mit
6,771
251
codeparrot/github-code
ee412e1bfe612b4f6eae3ba15d1e8fb85c8a8ef97bcc1b79ff2b839356eebd6e
import React from 'react' import PropTypes from 'prop-types' import FormGroup from '../forms/FormGroup' import InputColor from '../forms/InputColor' const ColorStackOption = ({ label, name, value, definitions, required, onChange, error }) => { // default value may be null if (value === null) { value = '' } ...
JavaScript
src/components/options/ColorStackOption.js
rokka-io/rokka-dashboard
mit
884
34
codeparrot/github-code
3e0c6a226fab3160825ce51651efa0a0f9bf3bab8eda8e7f1bc09dfe83ccb8b7
import * as React from 'react'; import './TextBox.css'; interface Props { className: string; onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void; placeholder: string; } class TextBox extends React.Component<Props, {}> { public constructor(props: Props) { super(props); this.handleChange = this...
TypeScript
client/src/components/TextBox/TextBox.tsx
Chingu-Dolphins-3/9ball-scoring-app
mit
723
37
codeparrot/github-code
7618b6156f20231dd3630374778c6bd3466084632cb3fce80769060798adeb52
// Copyright 2017 jem@seethis.link // Licensed under the MIT license (http://opensource.org/licenses/MIT) #include "key_handlers/key_normal.h" #include "core/matrix_interpret.h" #include "hid_reports/keyboard_report.h" /* TODO: fn keycode */ bit_t is_layer_keycode(keycode_t keycode) { return ( keycode >= KC_L0 ...
C
src/key_handlers/key_normal.c
ahtn/keyplus
mit
4,365
128
codeparrot/github-code
e60edca197b5ed9d3ae58e4e6b1ae097b629e98f529e095b60f7d318b4c3c491
<!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...
HTML
docs/com/google/android/gms/drive/ExecutionOptions.html
anas-ambri/androidcompat
mit
40,706
1,590
codeparrot/github-code
b4322d81dce3b2982d693d5c3ed7d940f34e0949ade18f274508be7d629a465a
<?php defined('SYSPATH') OR die('No direct script access.'); /** * Grid modeling library for creating data tables * * @package Grid * @author Kyle Treubig * @copyright (C) 2010 Kyle Treubig * @license MIT */ class Grid_Core { /** Array of table columns */ private $columns = array(); /** Array...
PHP
classes/grid/core.php
vimofthevine/grid
mit
2,048
90
codeparrot/github-code
5682ee7fff529f14c34f6dd4e98f8d0068c9303ad21e791d2a665aab87442973
package cn.honjow.leanc.ui.Fragment; import cn.honjow.leanc.adapter.QuestionListAdapter; import cn.honjow.leanc.ui.Activice.ChoQueActivity; import cn.droidlover.xdroidmvp.base.SimpleRecAdapter; import cn.honjow.leanc.model.QuestionItem; import cn.honjow.leanc.ui.BaseLeancFragment; import cn.droidlover.xrecyclerview.Re...
Java
app/src/main/java/cn/honjow/leanc/ui/Fragment/ChoQueListFragment.java
honjow/XDroidMvp_hzw
mit
1,611
53
codeparrot/github-code
1f8cbd2a3a382852499937735883fc3321bf870744e5214ecf56d5fc6019630f
<!DOCTYPE html> <html lang="en-us"> <head> <title>Start TicTrainer Session</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="/stylesheets/bgStyle.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/normalize.css"> </head> <bo...
HTML
src/webroot/session/index.html
jonkb/TicTrainer-node
mit
1,489
47
codeparrot/github-code
0bfe0f86ffb3ea091f9fc68492ca7994088aaa66ee544f51eef5412fd14577b9
#include <Python.h> #include <stdio.h> #include <complex.h> #include "julia.c" static PyObject *_julia_Julia(PyObject *self, PyObject *args){ double min_r, max_r, min_i, max_i, resolution; Py_complex z; double complex Z; if(!PyArg_ParseTuple(args, "ddddDd", &min_r, &max_r, &min_i, &max_i, &z, &resolu...
C
pyjulia.c
jfamestad/julia
mit
1,532
52
codeparrot/github-code
32409b497b7ee9fc6ce50dc9d607b6da08c0b898e9dcfc19d75b50016d970e4b
// (C) 2004 by Khaled Daham, <khaled@w-arts.com> // // Singleton // #include <iterator> #include "Log.h" #include <stdio.h> #include <stdarg.h> #include <windows.h> namespace ps2emu { typedef std::map<int32, std::string>::iterator m_mapIterator; /////////////////////////////// PUBLIC /////////////////////////////...
C++
Shared/External/ps2emu/Log.cpp
jsvennevid/tbl-4edges
mit
2,995
149
codeparrot/github-code
00ce4bc6058163c48e9e0ba3a695db59243610b4accad6b99e148c855d5dc919
class Post < ActiveRecord::Base belongs_to :forum, :counter_cache => true belongs_to :user, :counter_cache => true belongs_to :topic, :counter_cache => true has_one :event_log, :as => :target, :dependent => :destroy acts_as_ferret :fields => ['company_id', 'project_id', 'body', 'forum_id'] format_attr...
Ruby
app/models/post.rb
SpiderJack/cit
mit
1,537
55
codeparrot/github-code
242336bbd0658a3e069d77d04174d81ef1f00a728d509cfbb0ea0ce2ffd124cb
<?php namespace UserBundle\Security; use Symfony\Component\DependencyInjection\ContainerInterface as Container; use Symfony\Component\Routing\Router; class GoogleService { protected $container; protected $router; protected $redirectRouteName = 'google_check'; protected $scopes = ['email', 'profile'];...
PHP
src/UserBundle/Security/GoogleService.php
KriBetko/rating.npu
mit
1,146
43
codeparrot/github-code
f241abdb35d13fe7cc6697b61bc7a810190c773a26d50bd191a99defa6de21ee
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace Querify.Advanced { public static class AdvancedQueryableExtensions { public interface IAdvancedQueryable<out T> { IQueryable<T> Query { get; } } private cla...
C#
src/Querify/Advanced/AdvancedQueryableExtensions.cs
Lotpath/Querify
mit
3,808
112
codeparrot/github-code
2066a29a719a61c2642207fba47ecbf1202f7c5f36bfd1900ae9316762a2b458
<?php $gameinfos = array( // Game designer (or game designers, separated by commas) 'designer' => 'Bruno Faidutti, Alan R. Moon', // Game artist (or game artists, separated by commas) 'artist' => 'Matthias Catrein, Paul Mafayon', // Year of FIRST publication of this game. Can be negative. 'year' =>...
PHP
gameinfos.inc.php
AntonioSoler/bga-incangold
mit
3,249
82
codeparrot/github-code
a8937f044a78add7868cee4d5b00625c20e1fc9ef6ea4994dc9f9d3d15d74b6a
<!DOCTYPE html> <html ng-app="comparcelTester" ng-controller="AppCtrl"> <head> <title>Comparcel Regression Tester</title> <!-- social media tags --> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@comparcel"> <meta name="twitter:title" content="comparcelTester"> ...
HTML
src/index.html
olliemaitland/comparcel-regression
mit
3,975
91
codeparrot/github-code
0878e668e3111acebcae1aaa20ffdcd1494298ca02422bcded06d25c1a94d08a
# -*- coding: utf-8 -*- # Copyright (c) 2010-2017 Tuukka Turto # # 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,...
Python
src/herculeum/ui/gui/mainwindow.py
tuturto/pyherc
mit
8,099
222
codeparrot/github-code
e25103a42960edd16c33f3036425383b0eb47e2e57e684d5b22ea75934461473
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ptsf: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.12.1/ptsf/8.8.0.html
coq-bench/coq-bench.github.io
mit
7,067
164
codeparrot/github-code
4aaf6c0a4e62b96b6bbf3bb53c955f64cac63787fb16e6d71dd1332e2763072f
<?php namespace Anax\Comments; /** * A controller for comments and such events. */ class CommentsController implements \Anax\DI\IInjectionAware { use \Anax\DI\TInjectable; /** * Initialize the controller. * * @return void */ public function initialize() { $this->comments = new \Anax\Comments\Comment(...
PHP
src/Comments/CommentsController.php
KarlGW/fo
mit
3,990
178
codeparrot/github-code
7ecd857da7c3b71863571d572ebd2783fdd72ee34fe57bcf5ad939b28a39ecc5
from utils.face import Face import pygame from utils.message import Message from utils.alarm import Alarm class Button(pygame.sprite.Sprite): def __init__(self, rect, color=(0,0,255), action=None): pygame.sprite.Sprite.__init__(self) self.color = color self.action = action self...
Python
faces/alarmsetting.py
khan-git/pialarmclock
mit
3,537
93
codeparrot/github-code
1b352857c4ada4841fe8ffb4c5dc250863153d5e259a5a7ec3fae552443c03a8
package edu.gatech.nutrack; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.support.v4.app.NavUtils; import android.view.Menu; import android.view.MenuItem; import android.view.View; public class Home extends Activity { @Override protected void onCreate(Bundle ...
Java
src/edu/gatech/nutrack/Home.java
i3l/NuTrack
mit
2,842
98
codeparrot/github-code
464048a8432ed9bbd4c645042abc83c8632a89d29489e5001da4f12f74819c39
<?php /** * Smarty Internal Plugin Template * This file contains the Smarty template engine * * @package Smarty * @subpackage Template * @author Uwe Tews */ /** * Main class with template data structures and methods * * @package Smarty * @subpackage Template * * @property Smarty_Template_Source|...
PHP
system/plugins/smarty/libs/sysplugins/smarty_internal_template.php
yanlyan/si_ibuhamil
mit
23,765
631
codeparrot/github-code
370aaaea2a2a638e9e2bf175c3a76b18e409ceababb5e5bcacfdf0e36f7e9394
/**************************************************************************** Copyright (c) 2013-2015 scutgame.com http://www.scutgame.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 ...
C#
Sample/Koudai/Server/src/ZyGames.Tianjiexing.BLL/Action/Action6103.cs
wenhulove333/ScutServer
mit
6,212
149
codeparrot/github-code
04fa95f12f2207b217887492c5a11d55e9ba0280addec3577444b620aaf70d78
app.config(function ($routeProvider, $locationProvider) { "use strict"; $routeProvider.when('/', { controller: 'HomeController', templateUrl: '/static/apps/main/views/home.html', resolve: { tasks: function (TaskService) { return Tas...
JavaScript
assets/apps/main/config/routes.js
mc706/task-burndown
mit
4,692
124
codeparrot/github-code
1175e58515dbbfcb3dd4d0bd97c72b78f6108d4ae6605aa1682e1a700e3fb509
import React from 'react'; import { getCategoryGroups } from '../selectors/categoryGroups'; import { getCategoriesByGroupId } from '../selectors/categories'; import { getSelectedMonthBudgetItemsByCategoryId, getBudgetItemsSumUpToSelectedMonthByCategoryId } from '../selectors/budgetItems'; import { getTransactionsSumUpT...
JavaScript
client/src/components/BudgetTable.js
Nauktis/inab
mit
2,735
70
codeparrot/github-code
026103c988cb2f1a60a1fed0afe3517b864e0e93f2b8ea2224de84f941b49d37
# -*- coding: utf-8 -*- from django import forms from django.utils.translation import ugettext_lazy as _ from django.forms import inlineformset_factory from djangosige.apps.financeiro.models import PlanoContasGrupo, PlanoContasSubgrupo class PlanoContasGrupoForm(forms.ModelForm): class Meta: model = Pl...
Python
djangosige/apps/financeiro/forms/plano.py
thiagopena/djangoSIGE
mit
1,160
40
codeparrot/github-code
5666848b8766a3c54bb597ca004d618db3ef7710148545bc680d52d6e3b61646
from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.admin import UserAdmin from django.contrib import admin from django import forms class VoterCreationForm(UserCreationForm): section = forms.CharField() def save(self, com...
Python
SAElections/voting/admin.py
seanballais/SAElections
mit
1,715
54
codeparrot/github-code
a71dbc0600f6d985e50067823fd24668123e48ce4b6f2911727049ce3cad178f
package com.dgex.offspring.nxtCore.service; import java.util.List; import nxt.Account; import nxt.Alias; import nxt.Block; import nxt.Transaction; import com.dgex.offspring.nxtCore.core.TransactionHelper.IteratorAsList; public interface IAccount { public Account getNative(); public Long getId(); public Str...
Java
com.dgex.offspring.nxtCore/src/com/dgex/offspring/nxtCore/service/IAccount.java
incentivetoken/offspring
mit
1,085
59
codeparrot/github-code
aca5a0e6db7963fae3eb1f99e9012e3bc8ae5cd3c7aa8b3d77b670d4f3136f6d
'use strict'; var fetchUrl = require('fetch').fetchUrl; var packageInfo = require('../package.json'); var httpStatusCodes = require('./http.json'); var urllib = require('url'); var mime = require('mime'); // Expose to the world module.exports.resolve = resolve; module.exports.removeParams = removeParams; /** * Reso...
JavaScript
lib/resolver.js
andris9/resolver
mit
4,511
137
codeparrot/github-code
1cd59129852c7cffa529a80410e312a9c0c15f2da12bdee74b5093608bc6de0d
require 'tempfile' require 'fileutils' require 'config' require 'open-uri' require 'data_repository' class CI def initialize(opts=Conf.config) @url = opts.fetch(:url, "http://ci/api/json?tree=jobs[name,builds[timestamp,result,building]]") @ignored_projects = opts[:ignored_projects] || [] end def broken_...
Ruby
lib/ci.rb
reevoo/build-monitor
mit
1,153
52
codeparrot/github-code
025d845922b58cbdf98c83acba3a24f69f8bac8868c2de4ff12b9b281af4cd82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>TestTopicMerge</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script t...
HTML
test/unit/TestTopicMerge.html
jansc/tmjs
mit
20,928
497
codeparrot/github-code
a490f4ccf2755db06971ddfff0decbf2b0e39fa75e13ca2c14aa64f5a4309b29
function move(Restangular, $uibModal, $q, notification, $state,$http) { 'use strict'; return { restrict: 'E', scope: { selection: '=', type: '@', ngConfirmMessage: '@', ngConfirm: '&' }, link: function(scope, element, attrs) { ...
JavaScript
public/admin/js/smsbatch/move.js
MAGOWARE/backoffice-administration
mit
3,393
80
codeparrot/github-code
116a941722e9a119fd5e1b5609c5df6f29a918b30e86112ba6ea5e3caebd8e70
<?php namespace TagProNews\Exceptions; use Exception; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; class Handler extends ExceptionHandler { /** * A list of the exception types that should not be reported. * * @var array */ protected $dontReport = [ 'Symfony\Component\HttpKernel\Excep...
PHP
app/Exceptions/Handler.php
tagpronews/api
mit
951
50
codeparrot/github-code
f46451911c75a901616ecb25410129de757432923b668926a00b5b7a22a9610e
/** @file This file contains the functions to adjust an existing polygon. */ /** * Creates the adjusting event * @constructor * @param {string} dom_attach - The html element where the polygon lives * @param {array} x - The x coordinates for the polygon points * @param {array} y - The y coordinates for t...
JavaScript
annotationTools/js/adjust_event.js
joelimlimit/LabelMeAnnotationTool
mit
17,777
495
codeparrot/github-code
094bd7b34f0f977af235670f94f81c298ee9957742392040550cf240940da2ed
#include <algorithm> #include <map> #include <math.h> #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #ifndef HUGE_JOB_MODE #include <fj_tool/fapp.h> #include <fjcoll.h> #endif using namespace std; #include "pearson-3d.h" bool EXTEND_MISSION=false; int T_MAX; int T_MO...
C++
examples/pearson-3d-main.cpp
nushio3/formura
mit
6,294
246
codeparrot/github-code
4e2a8a8484a948a517c5b0996c27bab8a7c078ef37644f356716fb6fc7616682
package dis func Rearrange(s string, k int) string { hm := make([]int, 26) valid := make([]int, 26) var id, maxF, numOfMaxF int for _, c := range s { id = int(c - 'a') hm[id]++ if hm[id] > maxF { maxF, numOfMaxF = hm[id], 1 } else if hm[id] == maxF { numOfMaxF++ } } if (maxF-1)*k+numOfMaxF > len(...
GO
358_rearrange_string_k_distance_apart/dis.go
Catorpilor/LeetCode
mit
768
43
codeparrot/github-code
0c8fc4bccd8f7c3146d525962e382ee1d321ebcc5a7e5d620c200be6f71d8f48
// Write a program that extracts from a given text all palindromes, e.g. "ABBA", "lamal", "exe". function findPalindromes(input) { var words = input.replace(/\W+/g, ' ').replace(/\s+/, ' ').trim().split(' '), palindromes = [], length = words.length, currentWord, i; for (i = 0;...
JavaScript
08.Strings/Problem10-FindPalindromes.js
danisio/JavaScript-Homeworks
mit
958
37
codeparrot/github-code
f2a6620f50f9b021b7a60a47ea550ba223a473aa723c6a773a0cd9579ed580c6
package com.sinovoice.pathfinder.hcicloud.hwr; import android.content.Context; import android.util.Log; import com.sinovoice.hcicloudsdk.api.hwr.HciCloudHwr; import com.sinovoice.hcicloudsdk.common.hwr.HwrInitParam; import com.sinovoice.pathfinder.hcicloud.sys.SysConfig; public class HciCloudHwrHelper { private ...
Java
Pathfinder/src/com/sinovoice/pathfinder/hcicloud/hwr/HciCloudHwrHelper.java
open-sinovoice/sinovoice-pathfinder
mit
1,907
62
codeparrot/github-code
e22cfb09ba9f74d278c98b67dc4e3264fb26dc705cc056decf89e02308cb84da
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>105 brendan oconnor ai-2008-06-05-Clinton-Obama support visualization</title> </head> <body> <p><a title="brendan_oconnor_ai" href="../brendan_oconnor_ai_home.html">brendan_oconnor_ai</a> <a title="brendan_oconnor_ai-2008" href="../home/brendan_oconnor_ai-2008_...
HTML
blog-mining/brendan_oconnor_ai/brendan_oconnor_ai-2008/brendan_oconnor_ai-2008-06-05-Clinton-Obama_support_visualization.html
makerhacker/makerhacker.github.io
mit
27,758
166
codeparrot/github-code
656bca70661e5b8e4acc5816e1d3ccd512349a590676059129dc6aebc0347c4c
/* * www.javagl.de - Flow * * Copyright (c) 2012-2017 Marco Hutter - http://www.javagl.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 w...
Java
flow-gui/src/main/java/de/javagl/flow/gui/Shapes.java
javagl/Flow
mit
4,028
115
codeparrot/github-code
c55604040a47dd1fd6e85f7db50eed706e327cb7ae95f2357cf11e4f9c6faf99
module.exports = { 'resulting promise should be immediately rejected' : function(test) { var promise = promiseModule.reject('error'); test.ok(promise._status === -1); test.done(); }, 'resulting promise should be rejected with argument if argument is not a promise' : function(test) {...
JavaScript
test/static.reject.js
stenin-nikita/module-promise
mit
1,112
37
codeparrot/github-code
c827411c9120ad7cc031e4fac2fd8c34fe1447f4944db7beeb49ad35f698a157
#include "NumberParser.hpp" #include <algorithm> /** * Operator array * Used to confirm that a token is an operator */ QChar NumberParser::m_operators[] = { '(', ')', '*', '+', '-', '/', '^', '_' }; /** * Shunting-yard algorithm * Info: http://en.wikipedia.org/wiki/Shunting-yard_algorithm * @param const QSt...
C++
LineCalculator/LineCalculator/NumberParser.cpp
Futsy/LineCalculator
mit
5,665
214
codeparrot/github-code
67151f7ce412294702368d1fb9c3ca7d177d603b2785ec5b5149568449c5ed54
package net.ausiasmarch.fartman.util; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.audio.Sound; /** * AudioManager.java * Gestiona la musica y sonidos * @author Luis * */ public class AudioManager { /** Administrador de audio */ public static final AudioManager instance = new AudioManager(); ...
Java
core/src/net/ausiasmarch/fartman/util/AudioManager.java
fluted0g/Mr.Fartman
mit
1,784
81
codeparrot/github-code
21072cdbef359dde92edc72abb96358c9e0d6721918609e04b0149ee7c65ff1e
from typing import Union, Iterator from ...symbols import NOUN, PROPN, PRON from ...errors import Errors from ...tokens import Doc, Span def noun_chunks(doclike: Union[Doc, Span]) -> Iterator[Span]: """ Detect base noun phrases from a dependency parse. Works on both Doc and Span. """ # fmt: off l...
Python
spacy/lang/id/syntax_iterators.py
spacy-io/spaCy
mit
1,515
42
codeparrot/github-code
2b71529aa515f4156cc480c6f8b48f4d3e5ec06cbca34aa54a6c8f0eaa0bb22d
class Commit < ApplicationRecord has_many :contributions, dependent: :destroy has_many :contributors, through: :contributions belongs_to :release, optional: true scope :with_no_contributors, -> { select('commits.*'). # otherwise we get read-only records left_joins(:contributions). where(contributio...
Ruby
app/models/commit.rb
fxn/rails-contributors
mit
7,250
226
codeparrot/github-code
9b186c5d5e805bc2c76d47aa5a183cb6500407b17f4204af359bc809e895418d
class A def test puts 'test' 1 end def test2 puts 'test2' 2 end end ############################## class SimpleCache @data = {} def self.cache key, ttl found = @data[key] # found is like [time, value] if found puts "Found in cache: #{key}" insertion_time, value =...
Ruby
examples/cache_aspect.rb
tmster/aspector
mit
1,186
80
codeparrot/github-code
f3b1bee6ae8855367a6e0b3249ccd5e7995e2a57d235289d4074a4313a71af9d
'use strict'; require('mocha'); const assert = require('assert'); const Generator = require('..'); let base; describe('.task', () => { beforeEach(() => { base = new Generator(); }); it('should register a task', () => { const fn = cb => cb(); base.task('default', fn); assert.equal(typeof base.ta...
JavaScript
test/app.task.js
doowb/composer
mit
4,755
199
codeparrot/github-code
977134fe615b60ad2e7c315185753c57b4c8d293580aad27287ff227a626cd11
using System; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL4; namespace SMH { public sealed class VAO : IDisposable { private const int InvalidHandle = -1; public int Handle { get; private set; } public int VertexCount { get; private set; } // Число вершин для отрисовки ...
C#
SMH/GL/VAO.cs
Yeyti/Stellaris-Moding-Helper
mit
1,602
67
codeparrot/github-code
c9eb8d86bc68b64de33fba00dc77b7a6250e48cf3a51e19e8ad4ee9251354e19
require 'unicode_japanese' class Text class TextDecodeError < StandardError ; end class TextEncodeError < StandardError ; end NDS_SPECIAL_CHARACTERS = "・¡¢£¨©®°±´¸¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýŒœˆ˜‐‗‘’‚“”„•…′″›※€™«»⁰" AOS_SPECIAL_CHARACTERS = { 0x90 => "Œ", 0x91 =...
Ruby
dsvlib/text.rb
LagoLunatic/DSVEdit
mit
22,338
831
codeparrot/github-code
b0200441bd991b6725af307b464c31bf6a79eaa7dcf81dc7fec4ce831b2d3f7c
<?php namespace Concrete\Package\AttributePlainText; use Concrete\Core\Backup\ContentImporter; use Package; class Controller extends Package { protected $pkgHandle = 'attribute_plain_text'; protected $appVersionRequired = '5.7.4'; protected $pkgVersion = '1.0.1'; public function getPackageName() ...
PHP
controller.php
Remo/concrete5-attribute-plain-text
mit
964
48
codeparrot/github-code
cc9ce8f480061655749051187ee28ede703d7d5d28664217ffe413bfde35e631
/* CDVAdMobAdsAdListener.h Copyright 2015 AppFeel. All rights reserved. http://www.appfeel.com AdMobAds Cordova Plugin (cordova-admob) 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 wit...
C
src/ios/CDVAdMobAdsAdListener.h
kkleokrish/admob-google-cordova-clean
mit
1,762
46
codeparrot/github-code
fa9b5204ccd96f7fb54d88902e9253e64990237ec511ffc70be782df83eb8378
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Superprogram: Plik ...
HTML
AIR-ARR/Programowanie Obiektowe/12/dox/html/_lista_blokow_8hh_source.html
superdyzio/PWR-Stuff
mit
5,545
98
codeparrot/github-code
9c968ce254d9b68b06cb4e59e6c487caab344d73db89b670299d64a7b0bf506f
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const repl = require('repl'); const program = require('commander'); const esper = require('..'); const Engine = esper.Engine; function enterRepl() { function replEval(cmd, context, fn, cb) { engine.evalDetatched(cmd).then(function(result) { cb(null, r...
JavaScript
contrib/cli.js
codecombat/esper.js
mit
3,797
131
codeparrot/github-code
bf2b93176d8ee8a1d918392788672bae02141b7232a7a72eda1b930bb84b0c21
using System.IO; using System.Linq; namespace Moonfish.Guerilla.Tags { partial class StructureBspClusterBlock : IResourceBlock { public ResourcePointer GetResourcePointer(int index = 0) { return GeometryBlockInfo.BlockOffset; } public int GetResourceLength(int inde...
C#
Moonfish/Guerilla/Tags/StructureBspClusterBlock.cs
jacksoncougar/Moonfxsh
mit
2,075
62
codeparrot/github-code
ddb194aea42c906fa7382e0925f7bc998a330ca86c6e7315b036967c8ef76e05
const express = require('express'); const router = express.Router(); const queries = require('../db/queries'); const knex = require('../db/knex.js'); const request = require('request'); router.get('/clear', (req, res, next) => { queries.clearStationsTable((results) => { console.log(results); }); res.redirect...
JavaScript
src/server/routes/sites.js
gvickstrom/Fishing_App
mit
6,277
162
codeparrot/github-code
79f26b5919366b1831bae54aa137706ddcd3fa809a7ccc57bf6eb5dd8feebb53
<?php namespace N98\Magento\Command\LocalConfig; use N98\Magento\Command\AbstractMagentoCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class GenerateCommand extends AbstractMagentoCommand { protec...
PHP
src/N98/Magento/Command/LocalConfig/GenerateCommand.php
magicaner/n98-magerun
mit
6,920
167
codeparrot/github-code
fa73345896bf06c7a12f196835f14701c952cca92531f44a73e0cdbb160edd11
package org.luaj.vm2; import java.io.ByteArrayOutputStream; import java.io.PrintStream; /** * Debug helper class to pretty-print lua bytecodes. * @see Prototype * @see LuaClosure */ public class Print extends Lua { /** opcode names */ private static final String STRING_FOR_NULL = "null"; private static fina...
Java
src/org/luaj/vm2/Print.java
dwing4g/luaj
mit
10,612
417
codeparrot/github-code
fa6485205ceca053517233497d1a52ea611313285d582487867691f524588678
/* * Copyright (c) 2009 WiQuery team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
Java
wiquery-jquery-ui/src/test/java/org/odlabs/wiquery/ui/resizable/ResizableBehaviorTestCase.java
WiQuery/wiquery
mit
10,375
363
codeparrot/github-code
56ba5d62e51edd07bc4e75198218a4aa83bc858c7a964e8c5e99b30430a3be6d
<?php namespace Origami\Entity\Manager; defined('BASEPATH') OR exit('No direct script access allowed'); /** * Origami ORM (objet relationnel mapping) * @author Yoann VANITOU * @license http://www.apache.org/licenses/LICENSE-2.0 * @link https://github.com/maltyxx/origami */ class Query { /** * Gestionna...
PHP
application/third_party/origami/libraries/Origami/Entity/Manager/Query.php
bellalau/LAMPgroup
mit
12,441
466
codeparrot/github-code
fbc950542156803db757c4a61902c22cacc1bf18cc428425cff611064042a541
<?php namespace Meling\Cart; /** * Class Totals * @package Meling\Cart */ class Totals { /** * @var Products */ protected $products; /** * @var Actions */ protected $actionsAfter; /** * @var Cards\Card */ protected $card; /** * @var \PHPixie\ORM\Wrap...
PHP
src/Meling/Cart/Totals.php
Linfuby/Cart
mit
2,866
145
codeparrot/github-code
6af898bfd7b78d4cc7fbb6f38ac5c44c4625cc4c3a4e5e08f6a605d9d8396564
<html> <body> <style> table { border-collapse: collapse; width: 100%; } td { vertical-align: top; border-collapse: collapse; border: solid 1px #888; width: 50%; padding: 2mm; } code { background-color: #eee; color: #357; white-space: pre; } figure { border: solid 1px #ccc...
HTML
index.html
sleeplessinc/markup
mit
2,933
171
codeparrot/github-code
f97f9c8b9814fa04a25bc45509fc7dc991b4958e5ac875a3c5b9daa9f4cab231
import DOMUtils from 'tinymce/core/api/dom/DOMUtils'; interface Bookmark { startContainer: Node; startOffset: number; endContainer?: Node; endOffset?: number; } /** * Returns a range bookmark. This will convert indexed bookmarks into temporary span elements with * index 0 so that they can be restored proper...
TypeScript
modules/tinymce/src/plugins/quickbars/main/ts/selection/Bookmark.ts
tinymce/tinymce
mit
3,254
123
codeparrot/github-code
5111e06ea3671e93cde9d2abcb994869b8b8ffa034cbbd37f21d6e4b15c12a3b
from random import randint, seed, choice, random from numpy import zeros, uint8, cumsum, floor, ceil from math import sqrt, log from collections import namedtuple from PIL import Image from logging import info, getLogger class Tree: def __init__(self, leaf): self.leaf = leaf self.lchild = None self.rchild = Non...
Python
generation/BSPTree.py
juancroldan/derinkuyu
mit
6,186
202
codeparrot/github-code
e04f1c2de2e92d0c4c5cb7acbe57e1f4551bb6f720b7fb38d9c9bd572d0d98d7
var chai = require('chai'); var should = chai.should(); var pictogramResponse = require('../../../lib/model/response/pictogramResponse'); describe('pictogramResponse model test', function () { var id = 'id'; var category = 'category'; var url = 'url'; it('should create model', function (done) { var pict...
JavaScript
test/model/response/pictogramResponseTest.js
xclipboard/npm-xclipboard-model
mit
1,113
42
codeparrot/github-code
c58e934341aea430b8db279f5b82b8b5074814f017beb1670ab7bd10acfde94e
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class template explicit_error_stepper_base</title> <link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" h...
HTML
deps/boost/libs/numeric/odeint/doc/html/boost/numeric/odeint/explicit_error_idp26364872.html
laborautonomo/poedit
mit
75,492
797
codeparrot/github-code
62d2f62d73d7faaa623d398e977d81f05c0245224dcafed963fb2d27171def03
#include "stdafx.h" #include "model.h" #include "node.h" #include "../manager/resourcemanager.h" #include "mesh.h" #include "bonemgr.h" using namespace graphic; // Bone¸¶´Ù °æ°è¹Ú½º¸¦ »ý¼ºÇÑ´Ù. struct sMinMax { Vector3 Min; Vector3 Max; sMinMax() : Min(Vector3(0,0,0)), Max(Vector3(0,0,0)) {} }; cModel::cMode...
C++
Graphic/model/model.cpp
kami36/3Dproject
mit
4,095
209
codeparrot/github-code
cb9a7cd0124ff1e07ab5f34c448b7e42c64aec09b6a6cfab37efa1b0e475e401
import React from 'react'; import MobileTearSheet from './MobileTearSheet'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import ActionInfo from 'material-ui/lib/svg-icons/action/info'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-u...
JavaScript
src/pages/home/ListExampleFolder.js
PranavRam/pfrally
mit
1,876
53
codeparrot/github-code
f58215bbb292a3d71160259cd1089ed440dc75b9a48fcca17955eece03394b74
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
C
ports/stm32/pyb_i2c.c
pfalcon/micropython
mit
37,207
1,071
codeparrot/github-code
e8d300b3022123d78f4f21881efd26fd5c70a48b01ee82853149ac89ade3aa94
var topics = require('../data').topics; console.log(topics); var result = topics.filter(function (topic) { //filter renvoie les 'true' return topic.user.name === 'Leonard'; //? true : false; }); var result2 = topics.filter(topic=>topic.user.name === 'Leonard'); var titles = topics.map(function (topic) { retu...
JavaScript
src/function/ES5.js
florianfouchard/javascript-training
mit
3,573
99
codeparrot/github-code
1b9ab32a814cf19cb8172d94f3180a93277ed4274794fe331646c71f0700419d
File.dirname(__FILE__).tap do |supermarket| Dir[File.join(supermarket, 'import', '*.rb')].map do |file| file.split(File::SEPARATOR).last.split('.').first end.each do |name| require "supermarket/import/#{name}" end end require 'supermarket/community_site' module Supermarket module Import def self.d...
Ruby
lib/supermarket/import.rb
gofullstack/chef-legacy
mit
1,365
52
codeparrot/github-code
1fe909476830403180acabbc1334d88794fdbc1077453d1475383c5d5baca304
StatsGopher.PresenceMonitor = function PresenceMonitor (opts) { opts = opts || {}; this.statsGopher = opts.statsGopher; this.key = opts.key; this.send = this.executeNextSend; this.paused = false; } StatsGopher.PresenceMonitor.prototype = { ignoreNextSend: function () { }, queueNextSend: function () { ...
JavaScript
src/stats_gopher.presence_monitor.js
sjltaylor/stats-gopher-js
mit
1,828
72
codeparrot/github-code
c2db33c98a6659b69626a7eaa3e1ec5bb6080500dcbc6bdfda5a09218ee0f139
function paddAppendClear() { jQuery('.append-clear').append('<div class="clear"></div>'); } function paddWrapInner1() { jQuery('.wrap-inner-1').wrapInner('<div class="inner"></div>'); } function paddWrapInner3() { jQuery('.wrap-inner-3').wrapInner('<div class="m"></div>'); jQuery('.wrap-inner-3').prepend('<div c...
JavaScript
wp-content/themes/germaniumify/js/main.loading.js
chin8628/SIC
mit
1,282
53
codeparrot/github-code
fe1459910d5b346474e5d218396783aae6c1a372fe51bd4e1206fe5b6fea6f5f
/* globals $ */ const modals = window.modals; const footer = window.footer; const notifier = window.notifier; const admin = window.admin; ((scope) => { const modalLogin = modals.get("login"); const modalRegister = modals.get("register"); const helperFuncs = { loginUser(userToLogin) { co...
JavaScript
src/public/pages/nav/nav.js
VenelinGP/Gemstones
mit
6,675
199
codeparrot/github-code
e7ecc47ed720d24590615160f6b76b59c82b192394277fe23bb6046af57ff56a
__author__ = 'bptripp' import numpy as np from scipy.optimize import curve_fit import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from keras.models import Sequential from keras.layers.core import Dense, Activation, Flatten from keras....
Python
py/cninit.py
bptripp/grasp-convnet
mit
7,083
223
codeparrot/github-code
ab23b69737cc939208285f42736180bb782e287150392baa2cdfe7c72fb1894e
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> ii; typedef vector<int> vi; typedef vector<ii> vii; int pd[110][110] = {}; int choose(int a, int b) { if(pd[a][b]) return pd[a][b]; if(a==b) return 1; if(a<b) return 0; if(b==0) return 1; return pd[a][b] = choose(a-1...
C++
maratonando/Seletiva UFPE 2016/e.cpp
matheuscarius/competitive-programming
mit
839
41
codeparrot/github-code
71c6269c6c10c622072b7b0a642e1c3f0b2dfe837792932e39ea1ccf47aba0a9
//============================================================================ // Name : Code.cpp // Author : Yahya Milani // Version : // Copyright : Use as much as you like with author's name for noncommercial cases ONLY // Description : C++, Ansi-style //============================================...
C++
src/Static.cpp
yahya-milani/Parallel-FEM
mit
17,272
567
codeparrot/github-code
2b1bd339c9f7736e8ca76605f67ca7511f73d2c499fe730ba378a19e33b609b5
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dpdgraph: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.10.2/dpdgraph/0.6.1.html
coq-bench/coq-bench.github.io
mit
6,680
170
codeparrot/github-code
c9beae02b9efc6d011c92c5ac0718a229cbdf93a728e0077d040f9ac250a49da
/* * Nana GUI Programming Interface Implementation * Nana C++ Library(http://www.nanapro.org) * Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * @fil...
C++
3rdparty/nana/include/nana/gui/programming_interface.hpp
Greentwip/Windy
mit
12,662
306
codeparrot/github-code
62713fe773887f769b07a6d7c87859bc62cc108cf3be0593bea19286ddfa5e11
<TS language="vi_VN" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation> </message> <message> <source>Create a new address</source> <trans...
TypeScript
src/qt/locale/bitcoin_vi_VN.ts
ppcoin/ppcoin
mit
40,279
1,278
codeparrot/github-code
8a291877211452af7b8bf5aa346a954b0296078cd4d25fe18759eec1ce72e658
<?php namespace Dazzle\Redis\Command\Compose; use Dazzle\Redis\Command\Builder; use Dazzle\Redis\Command\Enum; use Dazzle\Redis\Driver\Request; trait ApiSetTrait { /** * @param Request $request * @return mixed */ abstract function dispatch(Request $request); /** * @override * @i...
PHP
src/Redis/Command/Compose/ApiSetTrait.php
dazzle-php/redis
mit
4,082
204
codeparrot/github-code
91a8af105175a65448c37a00255b8d11993f40ad93eb129fbebd1299210830dc
// Copyright (c) 2009-2012 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
C++
src/rpcdump.cpp
volumecoin/volume
mit
2,846
97
codeparrot/github-code
b5e4a6160a1e5d36c4d120e3a24d2dc8bf4059e764ede85851f4dbe86240df64
module ValidatorIE class StateAP include ActiveModel::Validations attr_accessor :number validates :number, length: { minimum: 9, maximum: 9 }, numericality: true, presence: true validate :number_should_code_state validate :number_should_range_code validate :number_should_mod11 ...
Ruby
lib/validator_ie/core/state_ap.rb
rmomogi/validator_ie
mit
1,323
51
codeparrot/github-code
b1af2bfe1c532fa6c3d8edbf01d317932907f7df60d431f0d27b05114f63cbc7
# -*- coding: utf-8 -*- tokens = [ 'LPAREN', 'RPAREN', 'LBRACE', 'RBRACE', 'EQUAL', 'DOUBLE_EQUAL', 'NUMBER', 'COMMA', 'VAR_DEFINITION', 'IF', 'ELSE', 'END', 'ID', 'PRINT' ] t_LPAREN = r"\(" t_RPAREN = r"\)" t_LBRACE = r"\{" t_RBRACE = r"\}" t_EQUAL = r"\=" t_DOU...
Python
lexer_rules.py
pablogonzalezalba/a-language-of-ice-and-fire
mit
1,138
68
codeparrot/github-code
be3a33654eac69f0761a08effeebb0785b042ace93ff5850f2ead29583621c32
using IoTHelpers.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Windows.Devices.I2c; namespace IoTHelpers.I2c.Devices { public struct Acceleration { public double X { get; internal set; } ...
C#
Src/IoTHelpers/I2c/Devices/Adxl345Accelerometer.cs
Dot-and-Net/IoTHelpers
mit
5,519
127
codeparrot/github-code
33111a6369aea4e6b622940694089b1eaf53ed9c0a919451e0332e79744f1602
<!DOCTYPE html> <html> <head> <base href="../../" /> <meta charset="utf-8" /> <script src="_ext/d3.v3.min.js"></script> <script src="_ext/jquery-1.10.2.min.js"></script> <script src="_ext/sha1.js"></script> <script src="_ext/seedrandom-min.js"></script> <script src="js/jlg_commons.js"></script> <scrip...
HTML
test/animation/place_on_ring.html
jlguenego/ocpforum
mit
3,971
218
codeparrot/github-code
fa3c81aba4fc7abb8f2a777f4486ef86056b64985bdebd942ebfb9cd21682ae9
#include <algorithm> #include "GI/uvmapper.h" UVMapper::UVMapper( glm::ivec2 size) : m_size(size), m_scale(0.f), m_border(glm::vec2(1.)/glm::vec2(size)) {} UVMapper::~UVMapper() {} void UVMapper::computeLightmapPack(std::vector<Object*> &obj) { m_obj = obj; std::vector<Quadrilateral> m_quad; ...
C++
src/GI/uvmapper.cpp
XT95/PBGI
mit
4,909
169
codeparrot/github-code