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
37afa0631461642d8a0489fe58d6f76ab82bcf3e23b5fd6eb5620581cbf2b113
// Conversor 5V é composto de uma parte principal, uma saída para cabos e uma saída para usb conversor_5v = (function() { var dim = { principal: { x: 51.5, y: 34, z: 25 }, folga: .2, parede: 1, altura_saidas: 19, cabos: { x0: 30, x1: 10, y: 15 }, tam...
JavaScript
slartibartfasteletronics/conversor_5v/conversor_5v.js
diesphink/openscad
mit
4,919
165
codeparrot/github-code
40ba47c909914ba11fb34e9064c77ea0a6361c950a143ef61f2af98b686ec650
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio module for common role based access control.""" from __future__ import ab...
Python
invenio_access/ext.py
tiborsimko/invenio-access
mit
6,195
183
codeparrot/github-code
75820bf3a3e5c5fbf45d1c7995cdf48b632c33ed1aacdb191e3986f97a09b738
namespace javax.security.auth.x500 { [global::MonoJavaBridge.JavaClass()] public sealed partial class X500Principal : java.lang.Object, java.security.Principal, java.io.Serializable { internal new static global::MonoJavaBridge.JniGlobalHandle staticClass; internal X500Principal(global::MonoJavaBridge.JNIEnv @__e...
C#
MonoJavaBridge/android/generated/javax/security/auth/x500/X500Principal.cs
JeroMiya/androidmono
mit
7,029
123
codeparrot/github-code
963c548c3fa5b84f4696235668f694cc1bb1c74385e98c555c1bfa56c75356a0
// A - Diversity: http://codeforces.com/contest/844/problem/A // 実装するだけだが、初期状態において条件を過剰に満たしている場合に注意する。 #include <map> #include <set> #include <list> #include <cmath> #include <queue> #include <stack> #include <cstdio> #include <string> #include <vector> #include <complex> #include <cstdlib> #include <cstring> #include...
C++
Codeforces/AIM_4_Div2/A.cpp
kakira9618/competitive_programming_sources
mit
1,892
73
codeparrot/github-code
e6d2ffc26626b799957f0cfc1cac29efeae12de99a0aee7f85046ec7b0ec2a81
package org.openkoala.security.shiro.extend; import java.util.Collection; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import javax.inject.Inject; import javax.inject.Named; import org.apache.shiro.web.filter.mgt.DefaultFilterChainManager; import org.apache.shiro.web.filter...
Java
ygcms-web/src/main/java/org/openkoala/security/shiro/extend/ShiroFilterChainManager.java
guokaijava/YGCMS
mit
2,808
83
codeparrot/github-code
c8fcb6b24b448beb43f2276ceab9b685c227f4ee5a2caa23d1360e2c9f98ac06
<?php /** * Product request model * * @author Horatiu Cristea-Lubinschi <horatiu.cristea@gmail.com> * @copyright (c) * @date 14.02.2014 * @encoding UTF-8 */ namespace Tictail\Models\Request; class Product extends Base { /** * Create an instance of Product request model */ public function __constru...
PHP
Tictail/Models/Request/Product.php
codeworks-ro/tictail-php
mit
793
45
codeparrot/github-code
462f4bf01ff0c025e2352e6401774632b9edfb6b3dfd5a36a91d4710c334dd2a
'use strict' const EventEmitter = require('events') const Big = require('bignumber.js') const MovingAverage = require('moving-average') class Stats extends EventEmitter { constructor (initialCounters, options) { super() this._options = options this._queue = [] this._stats = {} this._frequencyL...
JavaScript
src/stats/stat.js
diasdavid/js-bitswap
mit
3,445
143
codeparrot/github-code
bb2b9682d650c62f11445c6434128f83ac29cccbd3e59789e8a7c02794f7cc01
from audio_pipeline.util import Tag import re from audio_pipeline.util import Exceptions class BaseTag(Tag.Tag): def extract(self): super().extract() if self._value is not None: self._value = self._value[0] def set(self, value=Tag.CurrentTag): if value is not Tag.CurrentT...
Python
audio_pipeline/util/format/Vorbis.py
hidat/audio_pipeline
mit
6,254
219
codeparrot/github-code
a6edee13681d9fb6a498bce4dfea7a97ffd3cc6ad1964b1d7f38269d1be2d17f
""" Alternative convolution implementations for Theano """ import numpy as np import theano import theano.tensor as T ## 1D convolutions def conv1d_sc(input, filters, image_shape=None, filter_shape=None, border_mode='valid', subsample=(1,)): """ using conv2d with a single input channel """ if borde...
Python
lasagne/theano_extensions/conv.py
diogo149/Lasagne
mit
8,695
224
codeparrot/github-code
a7a10e54c5eb5babfb395a662f810e4e00ea52865c1109475db8557abbe63f3e
import {sleepUntilReactAvailable} from "test/e2e/utils/index.js"; const {maxTimeout, originUrl} = browser.params; // Private variables const dom = Symbol("dom"); class FlexboxPageObject { static location = `${originUrl}/flexbox-example`; _dom = { container: $("#flexbox"), link: $("#flexbox-l...
JavaScript
example/src/test/e2e/objects/FlexboxPageObject.js
nfl/react-wildcat
mit
836
40
codeparrot/github-code
3a70990dfac226f5aef6fda8bdb3a25aabd7d874891c114530686663ce2731ce
require "yaml" class YamlRefResolver::Yaml attr_reader :content def self.load!(path:, key: '$ref') if File.exist?(path) begin self.new(path, YAML.load_file(path), key) rescue Psych::SyntaxError => e raise YamlRefResolver::YamlSyntaxErrorException.new(exception: e) end els...
Ruby
lib/yaml_ref_resolver/yaml.rb
Joe-noh/yaml_ref_resolver
mit
998
48
codeparrot/github-code
c95c73f8a9b8ab4d9d33d8f5942e8782a4716570f031aaa320e52a52ed2e9611
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <link href=...
HTML
templates/project.html
marcoskoros/teixido
mit
4,411
127
codeparrot/github-code
95d8ba9124d2becd4752bc8d370032fd1a02b39a020ae12160b6d7bbf54d6e28
#!/usr/bin/python2.7 from PySide.QtCore import * from PySide.QtGui import * from PySide import * import sys import monitor from monitorthread import MonitorThread from monitordata import MonitorData class HMStandardItemModel( QStandardItemModel ): monitor_data = None values = None previous_values = None ...
Python
housemonitor/qt/hm.py
gary-pickens/HouseMonitor
mit
5,321
132
codeparrot/github-code
88e94fc791e0f3b5873fd0fc0bf0ab2d15165e8114e7df8099eb41b052fad70c
/* In App.xaml: <Application.Resources> <vm:ViewModelLocatorTemplate xmlns:vm="clr-namespace:AlgoSharp.CollinearVisualizer.ViewModel" x:Key="Locator" /> </Application.Resources> In the View: DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}...
C#
Assignment3/AlgoSharp.CollinearVisualizer/ViewModel/ViewModelLocator.cs
jcbacle/AlgoSharp
mit
1,849
63
codeparrot/github-code
20cf4e76fc9b2ca345a1a3844d255b8ff532c188528b5861ce54b5161c6c3226
#!/usr/bin/env python def add(a, b): print("ADDING %d + %d" %(a, b)) return a + b def subtract(a, b): print("SUBTRACTING %d - %d" %(a, b)) return a - b def multiply(a, b): print("MULTIPLYING %d * %d" %(a, b)) return a * b def devide(a, b): print("DEVIDING %d / %d" %(a, b)) return a /...
Python
ex21.py
davvi/Hardway3
mit
741
34
codeparrot/github-code
116cdc06baa47e8e66c7d115366991f89f95567d18eb0c1697de35aa8d593d17
var es = require('event-stream'), Lintspaces = require('lintspaces'), PluginError = require('plugin-error'), path = require('path'), appRoot = require('app-root-path'), colors = require('colors/safe'), logSymbols = require('log-symbols') ; module.exports = function(options) { var lintspaces = new Lints...
JavaScript
index.js
AlbertoElias/gulp-lintspaces
mit
2,504
83
codeparrot/github-code
67f4cb770a7386f055ad3b9fc542b018d635790aed7d86be4be3efe440170f98
require 'hashie/mash' module Hashie class Mash::Rash < Mash protected def convert_key(key) #:nodoc: underscore_string(key.to_s) end # Unlike its parent Mash, a Rash will convert other Hashie::Hash values to a Rash when assigning # instead of respecting the existing subclass def conver...
Ruby
lib/hashie/mash/rash.rb
dotpromo/nexmos
mit
1,029
42
codeparrot/github-code
a31a05c95cb9c996c4de78fae97215e7d09879d2027ea3a78d62fc0edd0811bb
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); var handleArrayContainerDefaults = require('../../plots/array_container_defaults...
JavaScript
src/components/sliders/defaults.js
iongroup/plotly.js
mit
2,675
114
codeparrot/github-code
3af94129c93b99d44e0be5100dcb47899ec299017f2b79b503e417f475173ab2
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place ...
PHP
school_of_net/autenticacao_com_angular_2/config/app.php
denners777/cursos
mit
9,288
202
codeparrot/github-code
035c5154826f1bd32c30857f441cb0a7872cc089cea2603f60a9b9063ef3ddee
<?php return [ /* |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This m...
PHP
config/app.php
IgorBabko/multiversum
mit
8,282
208
codeparrot/github-code
0323ac5060dd9db7e68cb8db986678f59f81e4b3cd20b6fe9e26877eb9042427
using System; using Autofac; using Autofac.Extensions.DependencyInjection; using injectarray.Controllers; using injectarray.Filters; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extension...
C#
injectarray.Autofac/Startup.cs
klmcwhirter/injectarray
mit
3,482
88
codeparrot/github-code
d427045ff4d831fee0ffde55e0defc8e5a4a4ded61029e2902c73a456980e23a
/** * @function findContours_Demo.cpp * @brief Demo code to find contours in an image * @author OpenCV team */ #include BOSS_OPENCV_U_opencv2__imgcodecs_hpp //original-code:"opencv2/imgcodecs.hpp" #include BOSS_OPENCV_U_opencv2__highgui__highgui_hpp //original-code:"opencv2/highgui/highgui.hpp" #include BOSS_OPENC...
C++
Boss2D/addon/opencv-3.1.0_for_boss/samples/cpp/tutorial_code/ShapeDescriptors/findContours_demo.cpp
koobonil/Boss2D
mit
2,032
80
codeparrot/github-code
362b23f5929a113d1fffe376ca34179a81858d04e23128e8cece11b8cbfcd554
/** * * Header * */ import React from 'react'; import { Link, browserHistory } from 'react-router'; import localforage from 'localforage'; import styles from './styles.css'; import logo from './img/logo@2x.png'; import goBack from './img/goback.png'; class Header extends React.Component { static propTypes = { ...
JavaScript
app/containers/Header/index.js
MathieuDebit/rise2016-app
mit
1,926
88
codeparrot/github-code
0a2983fe845301caaacbbd481475a05e32b610ea172ade13d0f993121ccbbada
#include "dungeon_effect.h" #include "dungeon_trigger.h" #include "dungeon_room.h" #include "dungeon_creature.h" #include "dungeon_exit.h" #include "dungeon_object.h" #include "dungeon_action.h" #include "dungeon_player.h" #include "main_menu.h" #include <sstream> #include <fstream> #include "printutils.h" #include "co...
C++
DungeonBuilder/main_menu.cpp
jackmott/dungeonbuilder
mit
4,651
214
codeparrot/github-code
f40fdcde94e836d2c1c88f0079920b7d1f4bfbc03f815d79e62c86d332964906
/// <reference path="../app-reff.d.ts" /> module angularApp { declare let window: AppWindow; export interface IBookmarkSrvc { getBookmarks(): Array<String> getBookmarkMovies(): ng.IPromise<Movie[]> getWatched(): Array<String> getWatchedMovies(): ng.IPromise<Movie[]> addToBookmark(imdbId: string): ng.IP...
TypeScript
expressapp/public/angular-app-ts/service/bookmark.service.ts
tekdungtralala/watchitlater
mit
2,752
107
codeparrot/github-code
b4c22a35a4399dbe945a8d345a7d5f33f42c7af904e1a9980605cc3a7ea2e799
package example.cases; import com.google.inject.Injector; import org.junit.Test; import org.slieb.soy.Loader; import org.slieb.soy.annotations.CustomConverter; import org.slieb.soy.annotations.Soy; import org.slieb.soy.context.SoyValueFactoryContext; import org.slieb.soy.meta.MetaConverter; import java.util.HashMap;...
Java
src/test/java/example/cases/CustomConverterTestCase.java
StefanLiebenberg/SoyAnnotations
mit
1,624
59
codeparrot/github-code
7fbe08a69c98b8008f8ddcd5106b1714717f29f18c965f8c95ffc7de926cc562
var voices = new Array(); var audioContext = null; var isMobile = false; // we have to disable the convolver on mobile for performance reasons. // This is the "initial patch" var currentModWaveform = 0; // SINE var currentModFrequency = 2.1; // Hz * 10 = 2.1 var currentModOsc1 = 15; var currentModOsc2 = 17; var curre...
JavaScript
js/synth.js
cwilso/midi-synth
mit
23,193
847
codeparrot/github-code
1c4c814277331eb6bd1c6b2cfd6e18e9efd64afe73727476b6de89a4d9aa4f56
package com.example.plugintest.manymethods.h.d; public class A9 { public static void a0(String msg) { System.out.println("msg=" + msg + 0); } public static void a1(String msg) { System.out.println("msg=" + msg + 1); } public static void a2(String msg) { System.out.println("msg=" + msg + 2); } public st...
Java
Samples/PluginTest/src/main/java/com/example/plugintest/manymethods/h/d/A9.java
limpoxe/Android-Plugin-Framework
mit
8,249
105
codeparrot/github-code
de989fa86e354efd37cf44f2714ae63163aaba2a3e851dfaacfd9db141aeee98
package org.littlewings.hazelcast.spring; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; import com.hazelcast.core.Hazelcast; import com.hazelcast.core.HazelcastInstance; import org.junit.Test; import org.junit.runner.RunWith; import org.littlewi...
Java
hazelcast-spring-data-query/src/test/java/org/littlewings/hazelcast/spring/SpringDataHazelcastTest.java
kazuhira-r/hazelcast-examples
mit
3,743
97
codeparrot/github-code
ec7883b7ed6e1e8bb44387fdbaab07d5a738f6e3a393ed95bbf8865910e2859e
from sqlalchemy import create_engine, distinct, func, desc from sqlalchemy.orm import sessionmaker from geoalchemy2 import functions as geo_func from datetime import datetime, timedelta import config from base import Base from schema import Tweet, Hashtag, Picture, Division import codecs, json class Database: def ...
Python
app/database.py
alexurquhart/webgis
mit
7,684
195
codeparrot/github-code
0de1e08c149b915521862eee2dbf5d6260fa5e2b98dacc3fee0f7eb9dee3c9e4
package com.aggrepoint.winlet.spring; import java.io.IOException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.HashSet; import java.util.Locale; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpSer...
Java
winlet/src/main/java/com/aggrepoint/winlet/spring/WinletDispatcherServlet.java
yangjm/winlet
mit
8,273
239
codeparrot/github-code
d69e4d61c9819a3b4cfd0aef9000350c41f869c58ef3d15c36e5a85ef809b24a
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>UI | Dashboard Extensions</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets...
HTML
docs/interfaces/ui.html
tableau/extensions-api
mit
19,323
326
codeparrot/github-code
692e09cd7c760eff1c52e8569195462b13e274a97cccc637efe1e62515dc7b19
<!DOCTYPE html> <html lang="en"> <head> <link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,700,700italic|Ubuntu+Mono' rel='stylesheet' type='text/css' /> <title> Generated Documentation (cbdebugger v1.5.0) </title> <script type="text/javascript"> targetPage = "" + window.loc...
HTML
MVCAppColdBox/modules/cbdebugger/apidocs/1.5.0/index.html
cfvonner/Intro-to-MVC-ColdFusion
mit
1,235
33
codeparrot/github-code
1464f637bbab9a43706a1ddbaf026b6cb89e9431a8c6f04e946ae32fb43fd675
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TriplesElements { class TripleElements { static void Main(string[] args) { string values = Console.ReadLine(); string[] items = values.Split(' ...
C#
Programming Fundamentals/04.Arrays/04.TripleSum/04.TripleSum.cs
Plotso/SoftUni
mit
1,247
50
codeparrot/github-code
f007a21036cc545ca3fa078f7350c8517782f5179570f02440f3c719e71277dd
//----------------------------------------------------------------------------- // VST Plug-Ins SDK // VSTGUI: Graphical User Interface Framework for VST plugins // // Version 4.2 // // CDataBrowser written 2006 by Arne Scheffler // //----------------------------------------------------------------------------- // VSTG...
C++
SDKs/VST3 SDK/vstgui4/vstgui/lib/cdatabrowser.cpp
rcgilbert/csc344-wi14
mit
44,695
1,360
codeparrot/github-code
0aa0475880ff9ec10b54f16d64ea542c575f33cebc64d07baccbfec225332961
using System.Collections.Generic; using System.Collections.ObjectModel; using Krypton.LibProtocol.Member.Common; using Krypton.LibProtocol.Member.Expression; using Krypton.LibProtocol.Target; namespace Krypton.LibProtocol.Member.Statement { public class IfStatement : IExpressiveStatementContainer, IStatement, IDo...
C#
Krypton.LibProtocol/Src/Member/Statement/IfStatement.cs
toontown-archive/Krypton.LibProtocol
mit
1,481
50
codeparrot/github-code
c3a0412461ec5ca1bef6dc7d16969bbf8f16d41592904c661485dc94c192dcb8
export const ADD_HUNDRED_TODOS = 'ADD_HUNDRED_TODOS'; export const ADD_TODO = 'ADD_TODO'; export const CLEAR_ALL = 'CLEAR_ALL'; export const DELETE_TODO = 'DELETE_TODO'; export const SET_NEW_TODO_FIELD = 'SET_NEW_TODO_FIELD'; const MAX_TODO_TITLE_LENGTH = 42; export function setNewTodoField({target: {name, value}}) {...
JavaScript
common/src/todos/actions.js
neozhangthe1/framedrop-web
mit
827
45
codeparrot/github-code
5dbe749945e1cfa4c9d2702fa560f154b0bf0bdf8a65f9e34781638c09fe4728
using UnityEngine; using System.Collections; using UnityEngine.Networking; public class NetworkedSpectator : NetworkBehaviour { public GameObject playerPrefab; // // // UnityEngine magic methods // Use this for initialization when object is allocated in memory public void Awake() { Debug.Log(gameObje...
C#
UNETMovement/Assets/Scripts/NetworkedSpectator.cs
kamilion/UNETMovement
mit
3,505
57
codeparrot/github-code
ef08fcab6bd59fcd421b7c260900f4958a67a4efb335b34955ecd6efb073b691
/* global require, describe, it */ 'use strict'; // MODULES // var chai = require( 'chai' ), Stream = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'flow-join', function tests() { it( 'should export a function', function test() { expect( Strea...
JavaScript
test/test.js
flow-io/join
mit
614
33
codeparrot/github-code
30dc9d4fad5b5104107741eeca79cca5957a5a26029951d0bacff2737314719a
from threading import local from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import RegexURLResolver, RegexURLPattern, ResolverMatch from django.utils.encoding import smart_str from django.utils import lru_cache from urlmiddleware.base import MiddlewareResolver404 from urlmiddlewa...
Python
urlmiddleware/urlresolvers.py
leTel/django-urlmiddleware
mit
3,234
89
codeparrot/github-code
1305b82afc191810c256e1b31e31a83bfa14e340cfbcc922f8ed4de3dcf0cd74
require "csv_country_selector_en/version" require "csv" module CsvCountrySelectorEn class Country attr_reader :codes attr_reader :eu_codes def self.codes read_csv(countries_file_path).inject({}) do |a, b| a.merge!(b[0].force_encoding("UTF-8") => b[5].force_encoding("UTF-8")) end ...
Ruby
lib/csv_country_selector_en.rb
ikuseiGmbH/csv_country_selector_en
mit
1,576
63
codeparrot/github-code
cb05abe21ca19793fbb534f29e87469ad3105656945e24dc80856f2af7185382
package com.ebonheart.EbonArtsMod.common.blocks.basic.dyeables; import java.util.List; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecra...
Java
Viesis' Gemstones/1.10.2 - 2185/src/main/java/com/ebonheart/EbonArtsMod/common/blocks/basic/dyeables/EABlockMeta.java
Weisses/Ebonheart-Mods
mit
7,298
278
codeparrot/github-code
d705f1fc11a28d875b017249e7cae3b36cf2d156511aa198d3a99b4b1e375055
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using App.Models; using App.Infraestructure; namespace App.Controllers { /// <summary> /// This is the main application controller for authenticated users /// </summary> [Authorize] publ...
C#
src/App/Controllers/AppController.cs
hugozap/mvc-concept-bootstrap
mit
1,201
50
codeparrot/github-code
d711d995c0c1ef03a499b627c6f7e9a0ac702bfd91f463f3df48079d14cf0bd9
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Baseline; using BaselineTypeDiscovery; using Jasper.Configuration; using Jasper.Runtime.Handlers; using Jasper.Runtime.Scheduled; using Jasper.Serialization; using Lamar; using LamarCodeGeneration; using LamarCodeGenerati...
C#
src/Jasper/JasperOptions.cs
JasperFx/jasper
mit
7,280
223
codeparrot/github-code
c3918049f156093cea8a781a664b221ed177c4b4d013a5b200ec4c752df50479
using System.ComponentModel; using System.Windows; using SharpDox.Build; using SharpDox.GUI.Command; using SharpDox.GUI.Windows; using SharpDox.Sdk.Config; namespace SharpDox.GUI.Controls.ConfigGrid.Elements { public partial class ConfigVisibilityControl { public static readonly DependencyProperty Con...
C#
src/Shells/SharpDox.GUI/Controls/ConfigGrid/Elements/ConfigVisibilityControl.xaml.cs
Geaz/sharpDox
mit
2,847
78
codeparrot/github-code
5f6b587b05a55d525ca325e882d29404b620be3e8bfe7a24755f20f5e8cc8e6f
/** * holiday-watchdog-api * * This file was automatically generated for Holiday Watchdog by APIMATIC v2.0 ( https://apimatic.io ) on 01/16/2017 */ var BaseModel = require("./BaseModel"); /** * Creates an instance of UserHwd * * @constructor */ UserHwd = function (obj) { if(!obj) { th...
JavaScript
lib/Models/UserHwd.js
holidaywatchdog/api-client-node
mit
12,098
492
codeparrot/github-code
cdb1e18e4105b7da92be46e45b37a53ae5bd8cf96fdc89c3214de133f5b0ff7c
// Updater.cs // // Copyright (c) 2008 Ethan Osten // // 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, modif...
C#
src/Summa.Core.Updater.cs
wfarr/newskit
mit
7,091
188
codeparrot/github-code
131f0723c1b486ca9c8b41645d5173732e22445bfb642ae66e4b93390d919947
/* * Copyright 2016 Grzegorz Sebastian Korkosz. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
JavaScript
admin/js/logicMain.js
grseko/LogicGate_Client
mit
55,584
1,279
codeparrot/github-code
25dc269b14128d4fd011c7d888ad4de2142b446f41e354d4c2c59a2e6e8601fb
<?php /** * Entity for tracking location of Asset assets in shared storage * * @package Core * @subpackage Entity * @author lhe<helin16@gmail.com> */ class Asset extends BaseEntityAbstract { const TYPE_TMP = 'TEMP'; /** * the type of the asset * * @var string */ private $type = s...
PHP
core/main/entity/asset/Asset.php
tlan16/sushi-co
mit
7,184
331
codeparrot/github-code
d1bb5e1278bbd5a914f32885bbba7b3ac0c6ebe6c02029b126c6db21c1b0ed6c
using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Spike.AkkaJournaler { public class CustomSerializationBinder : DefaultSerializationBinder { private readonly IDictionary<string, Type> _nameToType = new Di...
C#
Spike.AkkaJournaler/CustomSerializationBinder.cs
8snit/AkkaNetKafka-Spike
mit
2,365
68
codeparrot/github-code
b73da8b7bbbed702fe3036a47c75082d4a507fb0c3929a7b7439e3bdfa7482b0
/** * Gives an object containing the appropriate find * and options arguments for the subscriptions's Posts.find() * @param {Object} terms */ Posts.getSubParams = function (terms) { var maxLimit = 200; // console.log(terms) // note: using jquery's extend() with "deep" parameter set to true instead of shall...
JavaScript
packages/telescope-posts/lib/parameters.js
princeofdales/tsd
mit
1,860
49
codeparrot/github-code
77987889b39b5b572f567a10f0dbe46c8edd4df9cd9c03a2ad28228969b7c17e
import time import numpy as np from keras import backend as K from music_tagger_cnn import MusicTaggerCNN from music_tagger_crnn import MusicTaggerCRNN import audio_processor as ap import pdb def librosa_exists(): try: __import__('librosa') except ImportError: return False else: re...
Python
example_feat_extract.py
keunwoochoi/music-auto_tagging-keras
mit
1,936
65
codeparrot/github-code
341b6aaf69021886f3becc50e008f62c1f655e6cc52f72da4c170df416e7cb11
(function() { 'use strict'; angular .module('permitmeApp') .controller('SessionsController', SessionsController); SessionsController.$inject = ['Sessions', 'Principal']; function SessionsController (Sessions, Principal) { var vm = this; vm.account = null; vm.e...
JavaScript
src/main/webapp/app/account/sessions/sessions.controller.js
UMKC-Law/permit-matrix
mit
974
38
codeparrot/github-code
55ba07ff22adbb14a19194e7c657908765edbdefd1915894a417019fb94d0544
const { Command } = require('discord-akairo') const Embed = require('../../structures/HakuEmbed') const { Guild } = require('../../db') class GuildInfoCommand extends Command { constructor () { super('guild', { aliases: ['guild', 'guild-info', 'server', 'server-info'], description: 'Get information a...
JavaScript
src/commands/info/guild.js
TeeSeal/Haku
mit
1,244
40
codeparrot/github-code
68a87e7c89a42b14b4af00b02f87c4fe1c1faf98ac0b9290f6045213266590fb
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; use Illuminate\View\View; abstract class AbstractController extend...
PHP
app/Http/Controllers/AbstractController.php
kevindierkx/muse
mit
2,132
92
codeparrot/github-code
10f673e79a2911b5409d110a3833ccaf82f44a61940e66183d207a9ad479ff4c
namespace CustomControls { partial class SimpleDataGrid { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summ...
C#
SmartPropertyGridTester/MySqlTest/CustomControls/SimpleDataGrid.Designer.cs
AuditoryBiophysicsLab/EarLab
mit
1,069
37
codeparrot/github-code
c594e89b72920c6cf8a8bec5ee1a13c7f5490bacce3c053f1e203750d6144fe4
package org.blackchip.scorebored.swing; import java.awt.Font; import java.awt.FontFormatException; import java.awt.GraphicsEnvironment; import java.io.IOException; import java.io.InputStream; import org.blackchip.scorebored.Main; import org.blackchip.scorebored.util.IO; import org.blackchip.scorebored.util.ResourceExc...
Java
src/main/java/org/blackchip/scorebored/swing/FontLoader.java
scorebored/scorebored
mit
1,236
37
codeparrot/github-code
ec62038cfbba3e23dd4143aff2a9851248f8189665b95c271522724c7daf247b
#include "editor_icon.h" #include "editor/world_editor.h" #include "engine/crt.h" #include "engine/engine.h" #include "engine/geometry.h" #include "engine/math.h" #include "engine/os.h" #include "engine/resource_manager.h" #include "engine/universe.h" #include "renderer/model.h" #include "renderer/render_scene.h" nam...
C++
src/renderer/editor/editor_icon.cpp
nem0/LumixEngine
mit
6,600
247
codeparrot/github-code
dacd7d38fabf20aa78f0196a9f4655b319489929265a6cc34ffeb96d6eae89fc
# frozen_string_literal: true require 'zh/version' require 'open-uri' require 'yajl/json_gem' class Zh class Error < StandardError; end class << self RB_LT_25 = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5.0') TRADITIONAL_LOCALE = %i[tw hk].freeze SIMPLIFIED_LOCALE = %i[cn sg].freeze LO...
Ruby
lib/zh.rb
imgarylai/zh
mit
1,873
63
codeparrot/github-code
1dde56b5d0638bd689d7008bb4e0de58a468f7392949a0f99f133d23271aeac5
using System; using System.Configuration; using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; using Microsoft.Practices.Unity; namespace Cedar.AuditTrail.Interception.Configuration { /// <summary> /// AuditTrail CallhandlerData containing the configuration definition for CallHandler. ///...
C#
Source/Framework/AuditTrail/AuditTrail.Interception/Configuration/AuditTrailCallHandlerData.cs
timxing1987/git-tutorial
mit
2,778
74
codeparrot/github-code
8effe9288f6fa150bb54365cd37b045087c7850229eb904709c6e02ddd4b5966
<?php // src/My/RecipesBundle/Form/Type/AuthorType.php namespace My\RecipesBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class AuthorType extends AbstractType { public function buildForm...
PHP
src/My/RecipesBundle/Form/Type/AuthorType.php
carlescliment/mis-recetas
mit
957
35
codeparrot/github-code
3533ea0970884967d9f16d2319e5e76eca4ed3fd292f45e779ec344576c57e5b
//****************************************************************************************************** // ServiceProcess.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // t...
C#
Source/Libraries/GSF.ServiceProcess/ServiceProcess.cs
rmc00/gsf
mit
12,808
381
codeparrot/github-code
2c002efcc9f750f4efb74edd45149297c3b8102b2c3182ccf189b15df6a9300c
#include <iostream> #include <string> #include <stdlib.h> inline void halteFensterAuf() { std::cin.clear(); std::cout << "\n\tweiter mit beliebiger Taste...."; std::string tmp; std::getline(std::cin, tmp); } inline void loescheFenster() { #if defined(_WIN32) system("cls"); #endif #if defined(__linux__) || defin...
C++
fenster_aufhalten_und_loeschen.cpp
BKO-Informatik/CPP-Kurs
mit
563
33
codeparrot/github-code
2faef8b2cb2524d6bee3961c1502a3fa6ae88ce20e4416f13d29787b1d2103e6
{-# LANGUAGE ScopedTypeVariables, ViewPatterns #-} {-| Module : Labyrinth.AStar Description : pathfinding Copyright : (c) deweyvm 2014 License : MIT Maintainer : deweyvm Stability : experimental Portability : unknown Implementation of the A* (A star) pathfinding algorithm. -} module Labyrinth.Pathing.ASt...
Haskell
src/Labyrinth/Pathing/AStar.hs
deweyvm/labyrinth
mit
3,410
89
codeparrot/github-code
78bf2ae311ce8c6c670f74b32f3bd69c2b0bcfa8dd0ef79d49a1a76901cab888
<!DOCTYPE html> <html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml"> <head> <title>The next big LHC upgrade? Software. - DIANA HEP</title> <!-- Using the latest rendering mode for IE --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta charset="utf-8"> <m...
HTML
Symmetry.html
diana-hep/diana-hep.github.io
mit
12,116
293
codeparrot/github-code
a72c4afbfbfe7ce6560b7eb6c55a54e83b33860e4dd2bcc51953bb71202b8011
#gets COUNT tweets from user's timeline import os import tweepy import cPickle as pickle from config import Config #constants COUNT = 200 #tweepy configuration keys = file('config.cfg') cfg = Config(keys) consumer_key= cfg.consumer_key consumer_secret= cfg.consumer_secret access_token= cfg.access_token access_toke...
Python
tweets.py
dnr2/fml-twitter
mit
1,301
50
codeparrot/github-code
bd2169ccd98aba8fb534f5767d350f5f9a4b2e45bd3df697143e8b33c2ca585f
package com.lothrazar.cyclic.block.soundmuff.ghost; import com.lothrazar.cyclic.block.soundmuff.SoundmufflerBlock; import net.minecraft.core.BlockPos; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.entity.player.Player; import net.minecraft.world.it...
Java
src/main/java/com/lothrazar/cyclic/block/soundmuff/ghost/SoundmufflerBlockGhost.java
PrinceOfAmber/CyclicMagic
mit
2,538
67
codeparrot/github-code
848ed915feeee1c2e93996bebaa97f5e4cf4438415c9c433489f0b965822c7fe
<?php namespace Glit\ProjectsBundle\Controller; abstract class BaseController extends \Glit\CoreBundle\GlitBaseController { /** * Validate project data * @param $accountName * @param $projectPath * @return array * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException ...
PHP
src/Glit/ProjectsBundle/Controller/BaseController.php
ternel/Glit
mit
2,634
72
codeparrot/github-code
452a0ca02d269e346bb72890323402d1c4d457ca414b371b64423b6a52f96765
// ua $(document).ready(function() { // ua detection if ($.browser.mozilla) { $('body').addClass('ff'); } else if ($.browser.webkit) { $('body').addClass('webkit'); } else if ($.browser.msie) { $('body').addClass('ie'); if ($.browser.version == "7.0") { $('body').addClass('ie7'); } ...
JavaScript
lib/gollum/frontend/public/javascript/gollum.js
MakerPress/gollum_old
mit
6,722
220
codeparrot/github-code
5f83563cc05fc6cf71b32e80f57d269ea4bd229d3815a1a4e118f2b367ce328a
using CharacterGen.Alignments; using CharacterGen.CharacterClasses; using CharacterGen.Domain.Generators.Classes; using CharacterGen.Domain.Selectors.Collections; using CharacterGen.Domain.Tables; using CharacterGen.Races; using CharacterGen.Randomizers.CharacterClasses; using DnDGen.Core.Selectors.Collections; using ...
C#
CharacterGen.Tests.Unit/Generators/Classes/CharacterClassGeneratorTests.cs
DnDGen/CharacterGen
mit
23,437
448
codeparrot/github-code
421e64596a647f71a9af0dcff8e8d90415b7977e4ae6860bf199077ea8fb2790
using System; #pragma warning disable 1591 // ReSharper disable UnusedMember.Global // ReSharper disable UnusedParameter.Local // ReSharper disable MemberCanBePrivate.Global // ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable IntroduceOptionalParameters.Global // ReSharper disable MemberCanBeP...
C#
OpenLogger.Sample.MVVM/Properties/Annotations.cs
mtnman1010/OpenLogger
mit
23,779
614
codeparrot/github-code
c490e7b708cfc3fe7f7a68c4f7afc2a206fbc7062e3f4eba7818587e11aab7df
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Documentation tutorialgitdata.getCommit</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type="te...
HTML
doc/tutorial-gitdata.getCommit.html
Dica-Developer/github-js
mit
24,253
979
codeparrot/github-code
2597318c5b9f35be075827f0450b45317b48eb17c2cd7ed0417e47099b5fde8b
# Query Github public timeline using Bigquery and display top new repositories # Modified from sources ## https://developers.google.com/bigquery/bigquery-api-quickstart#completecode ## https://gist.github.com/igrigorik/f8742314320e0a4b1a89 import httplib2 import pprint import sys import time import json import logging...
Python
bigquery-github/TopGithubRepos.py
harishvc/tools
mit
4,367
101
codeparrot/github-code
db9be3feb349bb5e08f9ec7f86da1b6b4564302aeb91d029fa909990aebcdfd9
package com.five.vo; /** * ͨJSON 结果格式 * * @author K.y */ public final class JsonResult { private static final long serialVersionUID = 1L; /* 以下为使用的默认值 */ public static final Integer XRET_SUCCESS = 1; public static final String SUCCESS = "success"; public static final Integer XRET_FAIL = 0; ...
Java
test/src/main/java/com/five/vo/JsonResult.java
arvinzhao/col
mit
2,864
159
codeparrot/github-code
2def72af8bc2584448d3b04d9afd86e6a303b6da54bd1548aca8607412d52d41
using UnityEngine; using System.Collections; public class CoinManager : MonoBehaviour { private int coins; void Start() { if (Application.platform == RuntimePlatform.WindowsEditor) coins = 10000; else coins = 0; } //Coin methods public void addCoins(i...
C#
Assets/Scripts/Mechanics/CoinManager.cs
DevelopersGuild/Castle-Bashers
mit
644
43
codeparrot/github-code
dd71b0909747fc6c8a3f70c61a8872a737e10483e7d415d94adce05d63dfde2a
/** * Larapush JavaScript Library v0.1.1 * * A client-side js library for Larapush * WebSocket Push Server for Laravel 4 * * Copyright 2014, Fabio Fumis - f.fumis@gmail.com * Released under the MIT licence. */ ;(function() { function Larapush(ConnectionUri) { var self = this; self.connection = new Lara...
JavaScript
scripts/larapush.js
redbaron76/Larapush.js
mit
2,494
133
codeparrot/github-code
c31f4b0e40191b35a9a251966e5d181560303659ed64c8a00fce59491f0a6c1a
package uploader import ( "fmt" "time" "github.com/lomik/carbon-clickhouse/helper/config" ) type Config struct { Type string `toml:"type"` // points, series, points-reverse, series-reverse TableName string `toml:"table"` // keep empty for same as key Timeou...
GO
uploader/config.go
lomik/carbon-clickhouse
mit
1,839
46
codeparrot/github-code
6d28eda098975aa47c91b67aadf78bc9427086aa9856e5a09a1bbed7863048e6
'use strict'; /*! * Collection * https://github.com/kobezzza/Collection * * Released under the MIT license * https://github.com/kobezzza/Collection/blob/master/LICENSE */ import { Collection } from '../core'; import { isArray, isFunction, isPromise, isPositive } from '../helpers/types'; import { any } from '.....
JavaScript
src/iterators/map.js
kobezzza/Collection
mit
5,583
315
codeparrot/github-code
7f90776e1701af585ffed66e9f0849e38497b2acaf17f0083b1185a3c2cdce17
import React, { Component, PropTypes } from 'react'; import { Dialog, FlatButton, FontIcon, Tab, Tabs, TextField } from 'material-ui'; import ActionAssignment from 'material-ui/svg-icons/action/assignment'; import ActionBook from 'material-ui/svg-icons/action/book'; import ActionDashboard from 'material-ui/svg-icons/ac...
JavaScript
components/EditModule.js
NUS-Workload-Predictor/front-end
mit
3,122
89
codeparrot/github-code
41107ba6bcd8afdbaa843ff74d112dacbebe6927220f3147249a4cb371a53125
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <title>Uses of Class org.eclipse.emf.cdo.common.id.CDOIDReference (CDO Model Repository Documentation)</title> <meta name="date" content=""> <link rel="stylesheet" type="text/...
HTML
WASP-turtlebot-DSL/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/org.eclipse.osgi/142/0/.cp/javadoc/org/eclipse/emf/cdo/common/id/class-use/CDOIDReference.html
kribe48/wasp-mbse
mit
12,961
240
codeparrot/github-code
cad0ee93ef43012d43158a4e9ad735baa15a004fdc6df0dba51bbdab3b99538e
class Pry::Command::ListInspectors < Pry::ClassCommand match 'list-inspectors' group 'Inspectors' description 'List the inspector that are available to use.' banner <<-BANNER Usage: list-inspectors List the inspectors available for displaying an object that's returned by Kernel.eval(). BANNER ...
Ruby
lib/pry/commands/list_inspectors.rb
gfvcastro/pry
mit
854
36
codeparrot/github-code
50517aea90ffc103bd9a0dc80e66e97a3f85c52609f544384af0a151c9c9c156
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-checker: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.1/metacoq-checker/1.0~alpha2+8.11.html
coq-bench/coq-bench.github.io
mit
7,650
180
codeparrot/github-code
f2d54bcc2c3f09f3ea5a1a218b5fd49a86a1a4e0186412677e3017c78cedbeb5
module Cases.Prelude ( module Exports, (?:), (|>), (<|), (|$>), ) where -- base ------------------------- import Control.Applicative as Exports hiding (WrappedArrow(..)) import Control.Arrow as Exports hiding (first, second) import Control.Category as Exports import Control.Concurrent as Exports import Con...
Haskell
library/Cases/Prelude.hs
nikita-volkov/cases
mit
3,608
102
codeparrot/github-code
c787e9c4da433a8cbb0cdd483d92805dae9abab944bf532505cf13ac035b1a5b
#!/bin/bash set -e set -x mkdir -p sdks mkdir -p $HOME/src if [ ! -e $HOME/MacOSX10.6.sdk ]; then pushd $HOME wget https://github.com/kyleconroy/cccgo/releases/download/vSDK10.6/MacOSX10.6.sdk.zip unzip -q MacOSX10.6.sdk.zip rm -f MacOSX10.6.sdk.zip popd fi if [ ! -e /mnt/xto...
Shell
linux/crosstool.sh
kyleconroy/xtool
mit
1,500
65
codeparrot/github-code
5e211bfc81623ecbdcbe3252344a0f660d60ec530eab89599763dd8f035c8728
angular.module('leukemiapp').config(config); function config($translateProvider) { $translateProvider.translations('en', { JANUARY: 'January', FEBRUARY: 'February', MARCH: 'March', APRIL: 'April', MAI: 'May', JUNE: 'June', JULY: 'July', AUGUST: 'Augu...
JavaScript
client/translations/translations.js
eaaajkb/teambuilding-app
mit
5,812
172
codeparrot/github-code
c77b113ca72814d38f43b80c12f699561cbfce761101bc4fe5adf81d2195abb9
using GuiComponentInterfaces; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Docu...
C#
Components/RichConsole/RichConsole.xaml.cs
PrzemekBurczyk/MonitoringSystem
mit
3,480
128
codeparrot/github-code
ddecec79c7eba4a9513589ad452b250ed12f92ef86727e2b5c2a73cc7dea839b
// // Copyright (c) 2009-2013 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
C
include/common/nanovg/fontstash.h
tangrams/bgfxVectorTile
mit
46,470
1,671
codeparrot/github-code
2fb2041eee54b25465cd12217632417fc5de60c343ccf28294ae2de76829d410
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/m/semantic/ShareMenuPage", "sap/m/semantic/SemanticConfiguration", "sap/m/semantic/SemanticPageRenderer", "sap/m/...
JavaScript
webapp/resources/sap/m/semantic/DetailPage-dbg.js
marinho/german-articles
mit
6,971
262
codeparrot/github-code
ddb2225cd35ed28c1cea1c2026f17116c5192464c2855bc41c1aa2f8e0a717e0
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Button from './../Button'; import './MessageBox.scss'; const propTypes = { title: PropTypes.string.isRequired, type: PropTypes.oneOf(['error', 'success']), showMessageBox: PropTypes.bool, autoClosingTimeInterval: P...
JavaScript
src/Components/MessageBox/index.js
pankajladhar/github-markdown-generator
mit
1,587
56
codeparrot/github-code
39f99241cbb19a7548ba88ac766575739ca59106af449d8e6be2d3eecb19894f
// @(#)$Id: intAbstractFilteringIteratorDecorator.java-generic,v 1.11 2005/12/24 21:20:31 chalin Exp $ // Copyright (C) 2005 Iowa State University // // This file is part of the runtime library of the Java Modeling Language. // // This library is free software; you can redistribute it and/or // modify it under the ter...
Java
external_tools/JML/org/jmlspecs/jmlunit/strategies/IntAbstractFilteringIteratorDecorator.java
GaloisInc/Votail
mit
4,818
142
codeparrot/github-code
51c27386d4ec640bd91a85ecfb4c05a89e80dca4bc03f1abf025532622ad708a
import React, { Component } from 'react' import PropTypes from 'prop-types' import styles from './styles.module.scss' const TIMEOUT = 0.25 export default class Loader extends Component { static propTypes = { children: PropTypes.any, } state = { loaded: false, } componentDidMount() { TweenMax.t...
JavaScript
src/components/Loader/Loader.js
Kalcode/Gatsby-Boilerplate
mit
1,078
43
codeparrot/github-code
2bb0d1a226b7a6c8cb8b995938053a1a9d5a46b8bbd185f5255bf2b4b4d0acf3
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>C++ in Lua &#8212; Sol 2.18.1 documentation</title> <link rel="stylesheet" href="../_static/sol2.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <sc...
HTML
thirdparty/All/include/Sol2 2.18.1 docs/html/tutorial/cxx-in-lua.html
mortennobel/SimpleRenderEngineProject
mit
16,674
202
codeparrot/github-code
5098a9ff178c2bca4c98437ab14ac61a1ab6c71f0a7c2dd6a9715af1cc067257
#include "net_service.h" #include "tcp_listener.h" #include "udp_listener.h" #include "tcp_connector.h" #include "tcp_session.h" #include "udp_session.h" NetService::NetService() { m_bRunning = false; m_pNetEventCallBack = NULL; } NetService::~NetService() { } int NetService::NewSessionID() { if (!m_queSessionI...
C++
engine/net/net_service.cpp
kkbjbj/LiteServer
mit
2,791
142
codeparrot/github-code
eab66a56cae124484a3a702567363c8bbdf0d2336d621fe126aa2a061f58f0fb
import * as React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Col } from '../grid'; import { ListGridType, ColumnType } from './index'; export interface ListItemProps { className?: string; children?: React.ReactNode; prefixCls?: string; style?: React.CSSPrope...
TypeScript
components/list/Item.tsx
RaoHai/ant-design
mit
4,313
154
codeparrot/github-code
f313155107ce9b655416640463dbaa50906c845676a0fc44f4d641c17ec6e64c
const Palette = require('./Palette') class Vehicle { constructor (scene, position, maxspeed, maxforce, boxSize) { this.scene = scene this.position = new THREE.Vector3(position.x, position.y, 0) this.maxspeed = maxspeed this.maxforce = maxforce this.velocity = new THREE.Vector3() const vx = 0...
JavaScript
NOC_6_03_StayWithinWalls/src/Vehicle.js
taseenb/NOC3D-chapter6
mit
4,671
173
codeparrot/github-code
f24a710e4a0b4b5ab539fec6917df26ff5c414bd74f368497951d78ac7c90b7b
package stonehorse.grit.map; import java.util.Map; public class APMapEntry<K, V> implements Map.Entry<K, V> { private final V v; private final K k; @Override public String toString() { StringBuilder sb = new StringBuilder(); if (k == null) sb.append("null"); else ...
Java
src/main/java/stonehorse/grit/map/APMapEntry.java
stefanvstein/stonehorse.grit
mit
1,433
63
codeparrot/github-code
2e724f650eeb52367e85a10260e7d1fafa0fcaef3e8f3dafd7ae18d729943e49
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files m...
PHP
src/View/Form/ArrayContext.php
ADmad/cakephp
mit
10,860
368
codeparrot/github-code
f19ed83f6cd928c4104babd218ed2b54b21db117fbbaea91cf375f24fb9bf640
/* * Copyright 2016-2017 Flatiron Institute, Simons Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
C++
packages/ms3/p_confusion_matrix.cpp
magland/mountainsort
mit
19,978
514
codeparrot/github-code
dcc665a2d41350d2c6980b48398d29ef6ed2673533a8d40a317d2455e3ff89ea
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #...
C++
src/qt/bitcoin.cpp
jk14/mobilecash
mit
10,794
311
codeparrot/github-code
048ba40330e867d5cbdc1a5caa01b59a45d6d41396c5ced99d8212d6bdaad9c9
<scri <!DOCTYPE html> <html lang="fr" itemscope="" itemtype="http://schema.org/Blog"> <head> <script> if (window.parent !== window) { if (typeof btoa !== "function") { window.btoa = function (input) { var str = String(input); for (var block, charCode, idx = 0, map = chars, o...
HTML
work/raw_data/pretre_jean_mysteres_bablylone/589b4cc365b12adfff7bb40971eea32a63e29cd6b5afcba25d04b31f50547012.html
czuger/haute_tension
mit
66,429
1,373
codeparrot/github-code