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 |
|---|---|---|---|---|---|---|---|---|
b11a26fd98108ee588923d9e0eae14a0a8d1b268e4226670ea5e2a37347ed1f8 | /*
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C | Boss2D/addon/webrtc-jumpingyang001_for_boss/logging/rtc_event_log/rtc_event_log_parser_new.h | koobonil/Boss2D | mit | 35,578 | 983 | codeparrot/github-code |
5dda6726e9052373f5331ae2e209c5efea064cb16fa48828103ba2b6d82c520c | #include "RouteVisual.h"
#include "Logger.h"
RouteVisual::RouteVisual()
{
nextRouteId = 0;
}
// Initializes the route visualization shader.
bool RouteVisual::Initialize(ShaderManager& shaderManager)
{
// Route program.
if (!shaderManager.CreateShaderProgram("routeRender", &routeVisualProgram))... | C++ | src/RouteVisual.cpp | GuMiner/TemperFine | mit | 3,111 | 95 | codeparrot/github-code |
471e5784700192f18ffec4bfb40870e29675c94441cb0178c57b2306ff14606d | import Reducify from 'Helpers/State/Reducify';
import ActionConstants from 'Constants/Actions/Index';
import * as objectAssign from 'object-assign';
const initialState: IStateApp = {
currentAccountId : null,
isPolling : false,
lastPoll : null
};
let reducingMethods = {
[ActionConstants.app.SET... | TypeScript | src/js/Reducers/App.ts | harksys/HawkEye | mit | 859 | 33 | codeparrot/github-code |
0ed2f0701c5f7b0907411c44684fc3fce4f0c0dd84f063e0163dd1eccb01e51a | <?php
openSql();
// api/server
switch ($q[1]) {
case NULL:
$result = $sql->query('Select ipaddress, games.name from servers, games where tourneyid = 0 and games.gameid = servers.gameid', MYSQLI_USE_RESULT);
while ($row = $result->fetch_assoc()) {
echo ($row['ipaddress'] . ' ');
echo ($... | PHP | _include/modules/server.php | Line-Lan/LineAPI | mit | 1,247 | 36 | codeparrot/github-code |
b2ca0097953e9f034d928bf9d353be6b5fbe926fcd4084874d3d30bd6fb58841 | (function () {
'use strict';
//Adding translation config
angular.module('app').config(englishTranslations).config(spanishTranslations);
//Injecting locale messages
englishTranslations.$inject = ['$translateProvider', 'EN_MESSAGES', 'EN_ERROR_MESSAGES'];
spanishTranslations.$inject = ['$translateProvider'... | JavaScript | app/i18n.js | HighDeveloper/angularjs-skeleton | mit | 1,150 | 38 | codeparrot/github-code |
7b026ddffa3dff3c57ad3b36418c31397c1d91fae8790c8560c91a8106bd0e90 | // @flow
import React from 'react'
import useStyles from 'substyle'
type ApiPropsT = {|
size: 'small' | 'medium' | 'large',
color: 'black' | 'red',
className?: string,
|}
function ExampleComponent({ size, color, className }: ApiPropsT) {
const styles = useStyles(
defaultStyles,
{ className },
{
... | JavaScript | packages/example-page/src/ExampleComponent.js | jfschwarz/substyle | mit | 892 | 63 | codeparrot/github-code |
32e39f67d968b1d2e92b6a7f399fd7141d422872c9ddd1e8aa7b8e1c7b02ffbf | #if __UNIFIED__
using UIKit;
#else
using MonoTouch.UIKit;
#endif
namespace Xamarin.Forms.Platform.iOS
{
internal class ResourcesProvider : ISystemResourcesProvider
{
ResourceDictionary _dictionary;
public ResourcesProvider()
{
if (Forms.IsiOS7OrNewer)
UIApplication.Notifications.ObserveContentSizeCate... | C# | Xamarin.Forms.Platform.iOS/ResourcesProvider.cs | xjpeter/Xamarin.Forms | mit | 2,163 | 72 | codeparrot/github-code |
b1653e9f04267c21ede3677fea07665f82ba30eada79e3120f5aeb2efe6029b7 | --[[
Behaviour Driven Development for Lua 5.1, 5.2 & 5.3.
Copyright (C) 2013-2018 Gary V. Vaughan
]]
local gsub = string.gsub
local color = require 'specl.color'
local std = require 'specl.std'
local util = require 'specl.util'
local empty = std.table.empty
local examplename, nop, timesince =
util.examplename,... | Lua | lib/specl/formatter/progress.lua | gvvaughan/specl | mit | 4,950 | 171 | codeparrot/github-code |
70862652d6ba37f762cb39de3dd961dee2eca28dda944d14f99e7b520e4c2de4 | # encoding: utf-8
module ShellCast
class Recorder
HEADER = <<-EOH
█ █
█████ █
█ ▓█ █
... | Ruby | lib/shellcast/recorder.rb | shemerey/shellcast | mit | 3,499 | 101 | codeparrot/github-code |
0f9a0e37b59354f0d43512e6e8183affa2ebd91c284e2a0c8f1deec25d1b5286 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml;
// This class is the workhorse of the Soduku solving engine and is the only interface to the various techniques
// that are used to solved a puzzle. Think of it as pure Sudoku solving and nothing to do... | C# | App_Code/clsSK.cs | TatoSoftware/SudokuAnalyzer | mit | 20,158 | 602 | codeparrot/github-code |
b912e57eb86a6fbbc1970150add4b7db1cb9acd382b4bae86ca0be2717e8d366 | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#ifndef EASTL_FIXED_SUBSTRING_H
#define EASTL_FIXED_SUBSTRING_H
#include <EASTL/string.h>
#if de... | C | code/src/system/eastl/include/EASTL/fixed_substring.h | vnavbha/game | mit | 10,034 | 278 | codeparrot/github-code |
7d25ea02fe20f1509ecfc7bcdc7489294cd1d9af537e9618f1fb9b19b7ad47f5 | #ifndef CERIUM_RIGIDBODY_HPP
#define CERIUM_RIGIDBODY_HPP
#include "Prop.hpp"
#include "vec4.hpp"
#include "vec2.hpp"
namespace cerium
{
class RigidBody : public Prop
{
public:
RigidBody(Person * basePerson, Prop * parent, const std::string & name,
const float & gravityStrength);
~RigidBody();
bool is... | C++ | core/include/Cerium/RigidBody.hpp | bjornus/Cerium | mit | 755 | 41 | codeparrot/github-code |
5d89dc3a23af2f8a1247e5b39643cd63f6c05c1b7f65064578dd4e811de94462 | //appData should be set from clj (before mainstate is added to game)
var appData;
var game = new Phaser.Game('100%', '100%', Phaser.CANVAS, "wayfinder");
//Should only be called by clojurescript (once appData is not undefined)
function createWayfinder() {
game.state.add("main", mainState);
game.state.start("ma... | JavaScript | wayfinder/resources/public/js/wayfinder.js | UHN-Systems-Engineering/wayfinding | mit | 26,994 | 755 | codeparrot/github-code |
590969a4f0e079bd609371b49cc42b99abeb041cd497f11301ff06a51368e482 | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace TempleExtender
{
internal class Win32Api
{
[DllImport("kernel32", SetLastError = true)]
public static extern IntPtr LoadLibrary(string dllName);
[DllImport("kernel32", Ch... | C# | TempleExtender/Win32Api.cs | GrognardsFromHell/TempleLauncherDotNet | mit | 6,450 | 171 | codeparrot/github-code |
6fda85b194057ebc1c29e3c6b4e459fe28d347544712d9f378b170fca506e34a | /*
MIT License
Copyright (c) 2017 Tim Slator
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, pub... | C | source/calang.c | tslator/arlobot_freesoc | mit | 12,383 | 343 | codeparrot/github-code |
32cc037c45ff6f7720f8d8231029bf1b7bda273d8f650613d6fe5afd5b32ee46 | import { createStore, applyMiddleware, compose } from 'redux';
import rootReducer from '../reducers';
import { persistState } from 'redux-devtools';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
export default function configureStore(initialState) {
let enhancer;
const logger = createL... | JavaScript | src/js/store/configureStore.js | gollodev/twitchApp | mit | 1,412 | 47 | codeparrot/github-code |
a965edbd3bb9e40164bc84ea560e3c5fe0ae0869b280a3653dd6d9e3ff8c16e7 | 'use strict';
angular.module('grecaptcha', [])
.provider('grecaptcha', function() {
var _p = {},
_l,
self = this,
onloadMethod = 'onRecaptchaScriptLoaded';
this.setParameters = function(parameters) {
_p = parameters;
};
this.setLangu... | JavaScript | grecaptcha.js | KhodeN/angular-grecaptcha | mit | 3,533 | 99 | codeparrot/github-code |
9db038fa2b4cc5114f76d30410d63e0bb95906be4ee6ebaef6182b610b03ecf7 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.dao.hibernate;
import app.dao.BaseHibernateDAO;
import app.dao.PersonaDAO;
import app.model.Persona;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org... | Java | src/main/java/app/dao/hibernate/PersonaDAOH.java | jcondor/SpringORM | mit | 1,519 | 54 | codeparrot/github-code |
45749bbbe663d970b31705d87d0fed61ebd7bbf0eceb63725c33a2a0b1c2ef7b | package tamaized.voidcraft.common.gui.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IContainerListener;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
im... | Java | src/main/java/tamaized/voidcraft/common/gui/container/VoidicCrystallizerContainer.java | Tamaized/VoidCraft | mit | 2,987 | 105 | codeparrot/github-code |
9da98364aef3af2e55e3785834457936a5ec46ac5e720662d16f97df4a8cb534 | require 'cryptobox/config'
require 'cryptobox/db'
require 'cryptobox/editor'
require 'cryptobox/util'
require 'cryptobox/lang'
require 'cryptobox/template'
require 'cryptobox/output/output'
require 'cryptobox/output/json'
require 'cryptobox/output/html'
require 'cryptobox/output/bookmarklet'
require 'cryptobox/output/c... | Ruby | lib/cryptobox.rb | fomichev/cryptobox | mit | 1,800 | 51 | codeparrot/github-code |
fa384af558ddd1da8ba4fd1023d43f488971b1d20c941c71c17cb710709f3500 | #include "EflCpp/events/base_events.h"
#include "EflCpp/assert.h"
#include "EflCpp/elm_obj.h"
#include "EflCpp/events/evas_events.h"
#include "EflCpp/events/gesture_events.h"
#include <boost/signals2.hpp>
#include <map>
#include "EflCpp/elementary_inc.h"
namespace EflCpp
{
template <typename Source, typename Even... | C++ | src/events/base_events.cpp | voivoid/EflCpp | mit | 2,426 | 83 | codeparrot/github-code |
c6575a369da9534f06559ca1e3683fd42811c3a6cf0b94ffdb0ca284c731d033 | namespace Figlut.Server.Toolkit.Utilities.SettingsFile.Default
{
#region Using Directives
using Figlut.Server.Toolkit.Utilities.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#endregion //Using Directi... | C# | source/trunk/Windows/Figlut.Server.Toolkit.45/Utilities/SettingsFile/Default/WebServiceClientAppSettings.cs | PaulKolozsvari/Figlut-Suite | mit | 4,302 | 85 | codeparrot/github-code |
d2be9aa0b9c4e00785cee5b3712a4948fef1ffa511bda18a67b6288c87c8ce65 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using System.Drawing;
using System.IO;
namespace OpenTKTutorial3
{
class Game : GameWindow
{
public Game() : base(512,512, new GraphicsMode(32,24,0,4... | C# | OpenTKTutorial3/OpenTKTutorial3/Game.cs | neokabuto/OpenTKTutorialContent | mit | 9,100 | 259 | codeparrot/github-code |
7e26c41923ebf6cd5d7a25f0aa056aca795ae86a91516a51f8670a781069309f | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Autofac;
using Autofac.Builder;
using Autofac.Core;
using Autofac.Features.Indexed;
using NSubstitute;
namespace AutofacContrib.NSubstitute
{
/// <summary> Resolves unknown interfaces and Mocks using the... | C# | AutofacContrib.NSubstitute/NSubstituteRegistrationHandler.cs | BrainCrumbz/AutofacContrib.NSubstitute | mit | 1,999 | 51 | codeparrot/github-code |
909c81873445d7ff0c11d8a3935c677c05ada592cdc29e0855520727dd27f949 |
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseForbidden
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.core.urlresolvers import reverse_lazy
from django.utils.decorators import m... | Python | problem/views.py | io07/BOJ-V4 | mit | 15,626 | 446 | codeparrot/github-code |
be226e6761628100a32383cffb5c904e56898d99a4e7024318a918a5c5357cbd | # frozen_string_literal: true
require_relative 'restricted_value'
module Opushon
# The content of headers, query string and body params MUST be described with
# the keys below. When a key is missing, its default value is assigned.
class Parameter
def self.load(hash)
raise ArgumentError, "hash #{hash... | Ruby | lib/opushon/parameter.rb | cyril/opushon.rb | mit | 4,321 | 127 | codeparrot/github-code |
3d9ec219cf060742ec703e99a2a680080cae3d506fd40b7b2d1272ccafd8278d | import * as React from 'react';
import { expect } from 'chai';
import { createClientRender } from 'test/utils';
import Input from '@material-ui/core/Input';
import { isMuiElement } from '@material-ui/core/utils';
import PropTypes from 'prop-types';
import withTheme from './withTheme';
import ThemeProvider from '../Them... | JavaScript | packages/material-ui-styles/src/withTheme/withTheme.test.js | callemall/material-ui | mit | 2,808 | 101 | codeparrot/github-code |
f0fa1c3a2d3fb5fdebb897b86390a3f5496748efdb62dcaeda4f61f077af206c | class SiteController < ApplicationController
PAGES = ['help']
skip_before_filter :login_required
before_filter :ensure_valid_page, :except => :index
def index
render
end
def show
@support_request = SupportRequest.new
render :template => "site/#{current_page}"
end
... | Ruby | app/controllers/site_controller.rb | nick-b/homemarks | mit | 544 | 33 | codeparrot/github-code |
87ca442d327057cbe14941152549f8b3f104e485964d42892923209b2040fabe | <?php
namespace A1comms\GaeSupportLaravel\Auth\Guard;
use Illuminate\Http\Request;
use Illuminate\Contracts\Auth\UserProvider;
use A1comms\GaeSupportLaravel\Auth\Model\IAPUser;
use A1comms\GaeSupportLaravel\Auth\Contracts\Guard\StatelessValidator;
class BaseGuard implements StatelessValidator
{
/**
* Authen... | PHP | src/A1comms/GaeSupportLaravel/Auth/Guard/BaseGuard.php | a1comms/GaeSupportLaravel | mit | 1,044 | 39 | codeparrot/github-code |
9acc513716213a4603c175df076b7cc135aa530ea8760c6ed6f66c487c2820d6 | package ilangplugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleCo... | Java | src/ilangplugin/Activator.java | 0211hk/ilangplugin | mit | 2,166 | 89 | codeparrot/github-code |
5de29d0f936104ea5521c8800e796164d873521d76aee438a71a3607f6ce9d9e | import RN, {
StyleSheet,
Text,
View,
Platform,
Navigator,
Image,
BackAndroid,
TouchableNativeFeedback,
TouchableOpacity,
ListView,
} from 'react-native';
import React, {PropTypes,Component} from 'react'
import CommonModules,{
RefreshLoadMoreList,
LoadingWidget,
fetchMovieComment,
ThemeStyle... | JavaScript | Yingping/app/components/detail/MovieComment.js | ganguo/yingping_rn | mit | 3,340 | 145 | codeparrot/github-code |
95f80f0a96049613ec0a48c2e9290ef38589c05610d473b9e8b26a7b253375bc | <?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license... | PHP | tienda/system/libraries/Profiler.php | SaraAlamillo/hermano2 | mit | 22,105 | 494 | codeparrot/github-code |
cc91bc9291cb542ff07fb58372bc12b9271e4e0175c810d8c7e3c89b3b581f51 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>Material Apps</title>
<!-- CSS -->
<link href="bower_components/materialize/dist/css/... | HTML | materialmarkdown.html | MaterialLabs/MaterialLabs.github.io | mit | 6,076 | 150 | codeparrot/github-code |
c48e4058a13f39451d6bf2bba76c67d3e0e9cce6d3aa31055f68bb7132cd83dc | require 'socket'
module JtestR
class JUnitResultSender
class << self
attr_accessor :port
attr_accessor :socket
def create_with_port(port)
c = Class.new(JUnitResultSender)
c.port = port
c
end
def before
self.socket = TCPSocket.open("127.0.0.1",... | Ruby | src/ruby/jtestr/junit_result_sender.rb | olabini/jtestr | mit | 2,918 | 122 | codeparrot/github-code |
40c8e95df9139d0f54abc97335fe1841befeb42cbab2bbc0cb660c7ecf33d2c6 | <?php
namespace Code16\Sharp\Form\Eloquent\Relationships;
use Code16\Sharp\Form\Eloquent\EloquentModelUpdater;
class HasManyRelationUpdater
{
protected array $handledIds = [];
public function update(object $instance, string $attribute, array $value, ?array $sortConfiguration = null)
{
$relatedMo... | PHP | src/Form/Eloquent/Relationships/HasManyRelationUpdater.php | code16/sharp | mit | 2,048 | 65 | codeparrot/github-code |
aedd91ea89d63099b640c9f9c6180666ef5192040b4967981bb5c13280a8527d | <?php
namespace ZEDx\Console\Commands\Module;
use Illuminate\Console\Command;
use Module;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class ModuleMigrateCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
pro... | PHP | src/Console/Commands/Module/ModuleMigrateCommand.php | zorx/core | mit | 2,685 | 110 | codeparrot/github-code |
1912fbfd084fb2162d76869d9443ca5a34bb0353921a9d17820f18a91d83760c | //
// ActivityEditViewController.h
//
#import "BaseLogEditViewController.h"
@class Activity;
@class Exercise;
enum {
kActivityTableViewSectionExercise = 0,
kActivityTableViewSectionDate,
kActivityTableViewSectionTime,
kActivityTableViewSectionDuration,
kActivityTableViewSectionAudio,
kActivityTableViewS... | C | code/MindfulnessCoach/ActivityEditViewController.h | jeowen/mindfulnessExplorer | mit | 709 | 32 | codeparrot/github-code |
fe4f6afeb6e19a7fba22fd384f00b693d6491dde0238feb74cc64682ae94fc37 | // ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cassert>
#include <string>
using namespace std;
enum StateName{
STATE_INP, STATE_OUT, STATE_EVEN, STATE_ODD
};
enum Signature {
SIG_INP, SIG_ODD, SIG_EVEN, SIG_OUT
};
struct sta... | C++ | research/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp | nikhilrj/CARDS | mit | 1,843 | 101 | codeparrot/github-code |
2af97a0278329c15c0b080d5945980e6bdf2334fcf8d5ae80645ff2781ccec95 | {% extends "../jobprofile-htb.html" %}
{% block page_title %}
Find a career
{% endblock %}
{% set profileName = "Beauty consultant" %}
{% set profileSecondaryName = "Beautician" %}
{% set profileDescription = "Beauty consultants sell beauty products and help customers choose the right products to buy." %}
{% set sal... | HTML | app/views/_sprint23/e2e/job-profiles-cad/beauty_consultant/beauty-consultant.html | citizendigitalalpha/careers_beta | mit | 20,742 | 409 | codeparrot/github-code |
a620c02ffedd1131fb4ca3ede2a8c11e5d35c447c1101b25393104ecac1e5cba | 'use strict';
angular.module('civisanalysisApp')
.factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) {
var currentUser = {};
if($cookieStore.get('token')) {
currentUser = User.get();
}
return {
/**
* Authenticate user and save token
*
... | JavaScript | client/components/auth/auth.service.js | fgborja/civisanalysis.app | mit | 3,578 | 147 | codeparrot/github-code |
b4b08e5c18003459c3822977d5aa5e8280d00e68ee58a097254ff0fbbdac8097 | /**
* Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy,... | Java | xchange-examples/src/main/java/com/xeiam/xchange/examples/bitcurex/TickerDemo.java | habibmasuro/XChange | mit | 3,339 | 77 | codeparrot/github-code |
1f2a4c035b3f78713137ca5f257efd3c76b9bb8745f80702dd0d9707f21f882a | using PlaceSystem.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
namespace PlaceSystem.Models
{
public class PictureModel
{
public int Id { get; set; }
public string Url { get; set; }
public string PlaceNam... | C# | PlaceSystem/TeamGriffin/PlaceSystem/Models/PictureModel.cs | krasimirkrustev/ta-place-system-teamproject | mit | 719 | 31 | codeparrot/github-code |
9b3461e07b68880cf77944e1e5ea3c33025607ec4d4cc54ab5de1b49b6e7d074 | package main
import (
"math/rand"
)
type Game struct {
gridSize int
score int
highScore int
over bool
won bool
grid *Grid
drawer *Drawer
}
type Vector struct {
x int
y int
}
type PositionTraversal struct {
x []int
y []int
}
func (g *Game) setup(gameInfo GameInfo) {
g.grid = &Gr... | GO | game.go | 1984weed/2048-go | mit | 4,495 | 222 | codeparrot/github-code |
3eac58099f7bcde94ffd91911adf55d78e388022622c5fcc39f48bcf48c686f6 | #include "platform/i_platform.h"
#include "particle_system.h"
#include "core/i_emitter_component.h"
#include "core/i_position_component.h"
#include "engine/system_factory.h"
#include "particle_engine.h"
#include "core/i_move_component.h"
namespace render {
ParticleSystem::ParticleSystem()
: mScene( Scene::Get() )... | C++ | src/render/particle_system.cpp | ishtoo/Reaping2 | mit | 1,804 | 60 | codeparrot/github-code |
657b4df4ce9a5cceac58d811d65ab479f10aacaa3f5db83663f2d69fc0b13990 | import { DocumentNode, CHILDREN } from 'substance'
import MetadataField from './MetadataField'
export default class Figure extends DocumentNode {
_initialize (...args) {
super._initialize(...args)
this.state = {
currentPanelIndex: 0
}
}
getCurrentPanelIndex () {
let currentPanelIndex = 0
... | JavaScript | src/article/nodes/Figure.js | substance/texture | mit | 1,076 | 45 | codeparrot/github-code |
9279702378f767d9a147722bb0f1817cb444cd359df6e0ffdb6437274635bdc3 | /*
* Matthew Huizar
* ITSE 1430
* 12/8/2017
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MovieLib.Data.Memory
{
/// <summary>Provides an implementation of <see cref="IMovieDatabase"/> using a memory collection.</summary>
p... | C# | Labs/Lab5/MovieLib.Data.Memory/MemoryMovieDatabase.cs | matthewhuizar/itse1430 | mit | 2,981 | 101 | codeparrot/github-code |
7f07e932628ea01103de9060445a4f1b251525997ace03a7f7d1176851c9ab31 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "histogram.legendgrouptitle"
_path_str = "histogram.legendgrouptitle.font"
_valid_props = {"col... | Python | packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/_font.py | plotly/plotly.py | mit | 8,487 | 228 | codeparrot/github-code |
155ca2c7cac1f83720d85ebe689cf178b88b0f0e7bc006c7a984d9a61b0853da | #include <boss.hpp>
#include "boss_context.hpp"
namespace BOSS
{
Context& Context::At(chars key, sint32 length)
{
return m_namableChild(key, length);
}
Context& Context::At(sint32 index)
{
while(m_indexableChild.Count() < index)
m_indexableChild.AtAdding();
ret... | C++ | Boss2D/core/boss_context.cpp | koobonil/Boss2D | mit | 34,888 | 1,073 | codeparrot/github-code |
8eecdff6e5275b9a9788c0ba5313200fa4fa669578a02dcf890fd301a5b98b35 | #ifndef __UILayer__
#define __UILayer__
#include <cstdlib>
#include <vector>
#include <map>
#include "../scene//VBOLayer.h"
#include "../../ui//UI.h"
#include "../../event//Event.h"
using namespace std;
class UILayer : public VBOLayer<unsigned int>
{
protected:
public:
UI* const uI;
// c... | C | src/nu/engine/scene/UILayer.h | jcaillabet/nu-framework | mit | 561 | 40 | codeparrot/github-code |
3998f9d75c0fd2cab26cbb3860a224d65e4443f1312590cd416a25a474b5c08f | <?php
namespace Servicios;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\User;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\Exception\Userna... | PHP | src/Servicios/UserProvider.php | cristianangulo/secs | mit | 1,363 | 49 | codeparrot/github-code |
ab40a7d6cabdad1b03bccc249f234a6b28bbf504c9b2e63a4cff8c29b12119df | #include <vector>
#include <functional>
#include <iostream>
template<class T>
class segment_tree {
private:
int n;
std::vector<T> t;
std::function<T(T, T)> effect_func;
T neutral_value;
void build(std::vector<T>& vec, int v, int l, int r) {
if (l == r) {
t[v] = vec[l];
} else {
build(vec, v * 2, l, ... | C++ | Algorithms/segment_tree.cpp | Izaron/Competitive | mit | 1,921 | 93 | codeparrot/github-code |
47460bb4e16858f6e7797d67b57ed54363c634cc1b73dbccca66ea9478418b9a | package com.ase_server.server;
import org.json.JSONException;
import org.json.JSONObject;
import org.restlet.data.Status;
import org.restlet.ext.json.JsonRepresentation;
import org.restlet.representation.Representation;
import org.restlet.resource.Put;
import org.restlet.resource.ServerResource;
import com.ase_server... | Java | src/main/java/com/ase_server/server/GroupServerResource.java | devjos/ase_server | mit | 1,685 | 55 | codeparrot/github-code |
b2e33e7be8804480e9ed26d8ef5811a1c13393403de233a2a281900d57378caf | class Domain < ActiveRecord::Base
PATTERN = /\A(?:\*|\*\.[a-z]{2,}|(?:\*\.)*(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.)+[a-z]{2,})\z/
with_options class_name: "::Domain" do
belongs_to :canonical_domain, required: false
has_many :aliases, foreign_key: "canonical_domain_id", dependent: :destroy
end
validates ... | Ruby | app/models/domain.rb | joelanman/e-petitions | mit | 3,278 | 154 | codeparrot/github-code |
7850cd76abf0bc3a35b45ab90a79edaafc0f332a2777551d285798cfc31dc546 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MileageTracker.Types
{
public class TripInfo : BaseInfo
{
#region Destination
/// <summary>
/// Store for the Destinat... | C# | Mileage Tracker/Types/TripInfo.cs | StillLearnin/mileage-tracker | mit | 3,389 | 119 | codeparrot/github-code |
f16ddf48f1dac26eb7d6a01a0daab2a5edc1381e60a5bc064bc375996291311f | <?php
/**
* Created by PhpStorm.
* User: pbborel
* Date: 10/11/2015
* Time: 13:58
*/
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class UserRestController extends Controller
{
public function getUserAction($username){
// call repo
$em = $this-... | PHP | src/AppBundle/Controller/UserRestController.php | cityzenlab/synfonyAPI | mit | 809 | 46 | codeparrot/github-code |
70dd1a89fe182ee1e8277ff9d0bb5d8e2778bc6389695177b67219060eafa27f | package me.sharpjaws.sharpSK.hooks.Kingdoms;
import javax.annotation.Nullable;
import org.bukkit.event.Event;
import org.kingdoms.constants.kingdom.Kingdom;
import org.kingdoms.manager.game.GameManagement;
import ch.njol.skript.classes.Changer;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.Skript... | Java | src/main/java/me/sharpjaws/sharpSK/hooks/Kingdoms/ExprKingdomsRPOfKingdom.java | Sharpjaws/SharpSK | mit | 2,707 | 99 | codeparrot/github-code |
ddb25eb2b0f655d7c56a58fb29806bc9785a9142312890aae670a48245ffca86 | var monorouter = require('monorouter');
var reactRouting = require('monorouter-react');
var pets = [
{name: 'Winston'},
{name: 'Chaplin'},
{name: 'Bennie'}
];
function findPetName (petName, data) {
for (var i = 0; i < pets.length; i++) {
var pet = data[i];
if (pet.name.toLowerCase() === petName) retur... | JavaScript | examples/lazyloadviews/router.js | matthewwithanm/monorouter | mit | 831 | 32 | codeparrot/github-code |
dbd79927d8fa0faf9e40a9839d9b9ba7b31c6681c351f4f09ca488baa7deff9e | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using TypeScriptDefinitionsGenerator.Common.Extensions;
namespace TypeScriptDefinitionsGenerator.Common.UrlGenerators
{
internal class ServiceStackHelper
{
public bool Retur... | C# | src/TypeScriptDefinitionsGenerator.Common/UrlGenerators/ServiceStackHelper.cs | slovely/TypeScriptDefinitionsGenerator | mit | 4,541 | 98 | codeparrot/github-code |
237bccc8428beb9663724cddbfc3d9e37608ceaf3d7d825d0bca8f6bd705093d | /*! \file kfbxpatch.h
*/
#ifndef FBXFILESDK_KFBXPLUGINS_KFBXPATCH_H
#define FBXFILESDK_KFBXPLUGINS_KFBXPATCH_H
/**************************************************************************************
Copyright © 2001 - 2008 Autodesk, Inc. and/or its licensors.
All Rights Reserved.
The coded instructions, statem... | C | ThirdParty/fbxsdk/2009.3/include/fbxfilesdk/kfbxplugins/kfbxpatch.h | palestar/medusa | mit | 8,726 | 253 | codeparrot/github-code |
b0843e54abfb9863d3940f014b3c9bfaa370e707556b89a505f30c13ab5fe3e4 | // std
import { execSync, spawn, SpawnOptions } from 'child_process';
// 3p
import { Spinner } from 'cli-spinner';
import { cyan, red } from 'colors/safe';
// FoalTS
import { FileSystem } from '../../file-system';
import {
getNames,
initGitRepo,
} from '../../utils';
function isYarnInstalled() {
try {
exec... | TypeScript | packages/cli/src/generate/generators/app/create-app.ts | FoalTS/foal | mit | 7,219 | 218 | codeparrot/github-code |
4dea98c92cafa72bb7a294d02226a56230c2b6d3c1fc06d68cff254dad103580 | using System;
using System.Collections;
using System.IO;
using System.Net;
using RemoteZip;
using ICSharpCode.SharpZipLib.Zip;
namespace iKGD
{
public static class Remote
{
public static void CopyStream(Stream input, Stream output)
{
int num = 0;
byte[] buffer = new byte[0x2000];
while (InlineAssignHel... | C# | Remote.cs | Neal/iKGD | mit | 5,013 | 163 | codeparrot/github-code |
25a944d7cf94d840ca47a7dd913c985b87b1e15d825d6fd13b97c06f289fcee6 | #include <QuadruloopEEPROM.h>
#include <EEPROM.h>
namespace QuadruloopEEPROM
{
void loadConfig(uint8_t n, uint8_t centers[])
{
#if defined(ESP8266_PERI_H_INCLUDED)
EEPROM.begin(1024);
#endif
// read first byte, see if it equals our "magic" value
// if not, then we've never saved values to EEPROM, so just use de... | C++ | software/firmware/libraries/QuadruloopEEPROM/QuadruloopEEPROM.cpp | snhack/Quadruloop | mit | 1,257 | 52 | codeparrot/github-code |
535bd75b0007887e75d8f8573c4b64e74c6b90df33d0c7d0f4e42cd79c77076f | var path = require('path');
function init() {
return {
"task": "grunt-injector",
"name": "injector",
"config": {
"options": {
starttag: "// injector:{{ext}}",
endtag: "// endinjector",
ignorePath: 'public',
transfor... | JavaScript | grunt/injector.js | VanDalkvist/korann.admin | mit | 1,454 | 43 | codeparrot/github-code |
f19c781e2f0a129106c7a57a77181351007ba5abbbfab7520220cf9b37451804 | /****************************************************************************
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.Model/Config/UserItemInfo.cs | wenhulove333/ScutServer | mit | 5,889 | 217 | codeparrot/github-code |
9e9c91c1d88e157e0fe80bc05e265697ff828581eca6b36531613e6e92b7293b | #include <cstring>
#include <limits>
#include <iostream>
#include "number.h"
template<>
int number(const char *str, bool *ok)
{
errno = 0;
if ( ok ) *ok = true;
char *ptr;
auto ret = std::strtol(str, &ptr, 10);
if (ptr == str || ptr != str + std::strlen(str) || errno == ERANGE ||
ret ... | C++ | cpp/number.cpp | hjbreg/snippets | mit | 2,285 | 103 | codeparrot/github-code |
16e1e8d13d10b559d1bdd714c8ca5d35c5a2f154da8caeb5aa784629a73e64f7 | var gulp = require('gulp'),
connect = require('gulp-connect'),
stylus = require('gulp-stylus'),
nib = require('nib'),
inject = require('gulp-inject'),
wiredep = require('wiredep').stream,
hApiFallBack = require('connect-history-api-fallback');
//SERVIDOR WEB DE DESARROLLO
gulp.task('server', function(){... | JavaScript | Gulpfile.js | Betobit/Infocomp | mit | 1,718 | 59 | codeparrot/github-code |
a66a5420b501af625ad5f6cb3aa98060128b8042d8adf3db114cdc63c2ecad6a | #! /usr/bin/python3
def main():
try:
while True:
line1 = input().strip().split(' ')
n = int(line1[0])
name_list = []
num_list = [0]
for i in range(1, len(line1)):
if i % 2 == 1:
name_list.append(line1[i... | Python | code_repository/tencent_ad_contest/tencent_contest/model/main.py | zyoohv/zyoohv.github.io | mit | 1,329 | 48 | codeparrot/github-code |
fa8c0a409212a10e2a8facc0a48a9f6da3699101e5067dfe311327c363029c82 | /* ssl/tls_srp.c */
/*
* Written by Christophe Renou (christophe.renou@edelweb.fr) with the
* precious help of Peter Sylvester (peter.sylvester@edelweb.fr) for the
* EdelKey project and contributed to the OpenSSL project 2004.
*/
/* ====================================================================
* Copyright (... | C | extern/openssl.orig/ssl/tls_srp.c | vbloodv/blood | mit | 16,015 | 522 | codeparrot/github-code |
b4e3dd002213bfe18932274e2e1772f16c28907b088243971cc80dfd4e9092ce | import shutil
import logging
from followthemoney import model
from ingestors.support.temp import TempFileSupport
from ingestors.support.encoding import EncodingSupport
from ingestors.directory import DirectoryIngestor
log = logging.getLogger(__name__)
class PackageSupport(TempFileSupport, EncodingSupport):
def ... | Python | ingestors/support/package.py | alephdata/ingestors | mit | 1,257 | 38 | codeparrot/github-code |
f61edfa98e4d3b5f7e9cd3556ecd6fdafceef21bd6c45251603dc1fe79dee0fa | <?php
/**
* RegistrationForm class.
* RegistrationForm is the data structure for keeping
* user registration form data. It is used by the 'registration' action of 'UserController'.
*/
class RegistrationForm extends User {
public $verifyPassword;
public $verifyCode;
public function rules() {
$rules = array(
... | PHP | protected/modules/user/models/RegistrationForm.php | faneaatiku/appconsro | mit | 1,666 | 34 | codeparrot/github-code |
92561f373474e246965482df84ed297485ea96c2c5b0684760bc386e4af74692 | #ifndef KRDALIGN_H__
#define KRDALIGN_H__
#include <blitz/array.h>
#include <blitz/tinyvec.h>
#include <btl/logspace.h>
#include "nw_model_parameters.h"
#include "dna_sequence_region.h"
#include "similarity_region.h"
#include "ereal.h"
class krdalign {
protected:
typedef unsigned int uint;
// maximum length of... | C | src/rda/krdalign.h | akhudek/feast | mit | 3,882 | 144 | codeparrot/github-code |
2ba2c118e83798ac61d3d7d8921435606a2613ff1d5c855dcea399508a637519 | <?php
namespace Yajra\Acl\Middleware;
use Closure;
class CheckPermissionsMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string $permission
* @return mixed
*/
public function handle($request, Cl... | PHP | src/Middleware/CheckPermissionsMiddleware.php | Passionatedreamer/laravel-acl | mit | 4,439 | 126 | codeparrot/github-code |
7b589a487e5bb793d1f3876d7d70de565210a40755eb9c0d8ab33d29094e809a | /*global define*/
define(function(require, exports, module) {
'use strict';
var Backbone = require("backbone");
var Common = require("modules/Common");
var TodoView = Backbone.Layout.extend({
tagName: 'li',
template: require("ldsh!/app/templates/todos"),
// The DOM events spe... | JavaScript | app/modules/view/TodoView.js | si-ro/todo-app2 | mit | 3,739 | 110 | codeparrot/github-code |
27972e0b71992a4e5ec4756144cd69bac04198c5e4627ad65910ce8d8d9a68b7 | // MIT License
// Copyright (c) Tyler Graff 2017
// tyler@graff.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to us... | C | framecap.h | giganib/framecap | mit | 1,762 | 58 | codeparrot/github-code |
9f28115bacc76a0e939a1bcc1b91433899ec1a19aafa4f3730c32dd9cb922ce2 | package web
import (
"encoding/json"
"fmt"
"net/http"
"github.com/siggy/bbox/beatboxer/render"
log "github.com/sirupsen/logrus"
)
type Web struct {
hub *Hub
}
func InitWeb() *Web {
log.Debugf("InitWeb")
hub := newHub()
go hub.run()
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
ht... | GO | beatboxer/render/web/web.go | siggy/bbox | mit | 1,698 | 91 | codeparrot/github-code |
53cd88f191fbe2ecaa5e9f26c5c3b117383128a3fa70785575f78f41455bdd1c | <?php
/* @WebProfiler/Icon/config.svg */
class __TwigTemplate_ed80e3382b5ccceaf582c60639e6ed17fb6d9592a24e961c10edc17cba8067c2 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | var/cache/dev/twig/35/35c90176747aa9b80826432a223b78f430ab34c87adfff5707d6f24ba6837d80.php | aonufrienko/simplepraice | mit | 3,644 | 63 | codeparrot/github-code |
0686900b4b382c61f7aad721433e84bf2d77e3abf5cb68fae39a7a9149a0f9a5 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... | TypeScript | packages/common/locales/sw-CD.ts | vikerman/angular | mit | 1,569 | 60 | codeparrot/github-code |
93648afa57ec48fe5dff2a6e8f753336b2b52bde44127d8444d64d35d64ea593 | declare module 'enzyme' {
declare type PredicateFunction = (wrapper: Wrapper) => boolean;
declare type NodeOrNodes = React$Element | Array<React$Element>;
declare class Wrapper<ReturnClass: Wrapper> {
find(selector: string): ReturnClass;
findWhere(predicate: PredicateFunction): ReturnClass;
filter(sel... | JavaScript | definitions/npm/enzyme_v2.3.x/flow_>=v0.23.x/enzyme_v2.3.x.js | LegNeato/flow-typed | mit | 1,478 | 34 | codeparrot/github-code |
54fcf661a618e282fd7171dfd0540d6d2ea8999b52710dfbfc84f03b133cc788 | using System.Text;
using System.Text.RegularExpressions;
namespace DotCommon.Utility
{
/// <summary>
/// 拼音工具类
/// </summary>
public static class PinYinUtil
{
#region 拼音相关数组
//定义拼音区编码数组
private static readonly int[] GetValue =
{
-20319, -20317, -20304, -... | C# | src/DotCommon/Utility/PinYinUtil.cs | cocosip/DotCommon | mit | 15,971 | 317 | codeparrot/github-code |
4b6f60af2653f9bbed49fcdc6f58516f29b8800240aea200f224fa8bb428c892 | # frozen_string_literal: true
require 'render_anywhere'
class LastWeekInPendantsImage
include HashAttributeAssignment
include RenderAnywhere
delegate :to_png, :to_jpeg, to: :image_kit
def html
@html ||= render(
partial: 'last_week_in_pendants/last_week_in_pendants',
locals: { pendant_records... | Ruby | app/models/last_week_in_pendants_image.rb | coreyja/glassy-collections | mit | 865 | 47 | codeparrot/github-code |
892f5e507985e4c7a8c0c37f21113962165a9c4110da927e7269386b469e75a8 | import React from "react"
import timeago from 'timeago.js';
import utility from '../../../utility/utility';
import libs from '../../../utility/libs';
import playControllerEvents from "../../../events/playControllerEvents"
class SearchListItem extends React.Component{
constructor(props){
super(props);
this.s... | JavaScript | mainApp/src/components/mainListComponent/searchListComponent/SearchListItem.js | DongHyunKims/jinniecast | mit | 3,426 | 108 | codeparrot/github-code |
e6c713069f5d59f336c1c5f450400d464aaf22c3b3025aad752ff357a2eb82ce | <?php
/**
* Variable Product Type
*
* Functions specific to variable products (for the write panels).
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.6.4
*/
/**
* Display the variation tab in product data.
*
* @access public
* @return... | PHP | woocommerce/woocommerce/admin/post-types/writepanels/writepanel-product-type-variable.php | vjdesign/fontaine | mit | 44,444 | 924 | codeparrot/github-code |
d04326d4c5f4414095356e235a5b1aa7bfa8fa45db756004cafa2485107f8081 | /**
* @file lv_tab.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_tabview.h"
#if LV_USE_TABVIEW != 0
#include "lv_btnmatrix.h"
#include "../lv_misc/lv_debug.h"
#include "../lv_themes/lv_theme.h"
#include "../lv_misc/lv_anim.h"
#include "../lv_core/lv_disp.h"
/*****************... | C | src/lv_widgets/lv_tabview.c | littlevgl/lvgl | mit | 37,300 | 1,032 | codeparrot/github-code |
840b431d81e1bedc436a10f9c33e01d1902fad583a6556f858c66a93c38df20c | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef KCOIN_CHAINPARAMS_H
#define KCOIN_CHAINPARAMS_H
#include "chainparamsbas... | C | src/chainparams.h | Kcoin-project/kcoin | mit | 4,222 | 112 | codeparrot/github-code |
3a3fe51a7f4fe1bab15e508390d69b7da0bd9022481fbd0e4fc78b481e70ce5f | package tamaized.voidcraft.common.starforge.effects.tool.tier3;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLiquid;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import... | Java | src/main/java/tamaized/voidcraft/common/starforge/effects/tool/tier3/StarForgeEffectThreeByThree.java | Tamaized/VoidCraft | mit | 4,121 | 143 | codeparrot/github-code |
fe0847138ae15929b6aa2d21dff9087a0ffa7093cbd08e2ab1546d771cee5a19 | import { db } from '../db/prepare_data.js';
const _ = require('lodash');
const Excel = require('exceljs');
const fs = require('fs');
const logoPath = './app/vendor/logo.png';
export const generateReport = (batch, source, outputDirectory) => {
return new Promise((resolve, reject) => {
generateReportTemplate(bat... | JavaScript | src/main/generate_report_v2.js | viphat/call-center-data-cleaning | mit | 36,073 | 1,112 | codeparrot/github-code |
2786ff4fa09a5cd610217eb4a311ad63f45c76a3bfe83fc15cbb4cbf27a6ba54 | (function () {
'use strict';
angular
.module('app')
.controller('LoggerController', LoggerController);
LoggerController.$inject = ['$location', 'LogSelectionOptionsService'];
function LoggerController($location, logSelectionOptionsService) {
/* jshint validthis:true */
... | JavaScript | src/Rinsen.Logging/ng-app/Controllers/LoggerController.js | Rinsen/Logging | mit | 1,854 | 64 | codeparrot/github-code |
2a25ab9cca1b61d458e4f44495cc3b9aa8a6f8ace2f6eefecb35fca0bada87d3 | <?php
/**
*
* @author Louis A. DaPrato <l.daprato@gmail.com>
*
*/
class MissingMessage extends CModel
{
public $category;
public $message;
public $sourceLanguage;
public $targetLanguage;
public $translation;
public function __construct($scenario = '')
{
$this->setScenario($sc... | PHP | models/MissingMessage.php | louis89/Yii-TranslateModule | mit | 1,878 | 81 | codeparrot/github-code |
59635044fea3be1fd18dcf9e7df09eec3de215f15cb7bdc5461b0a5116e7beed | #-*- coding: utf-8 -*-
class Schema(object):
def get_word_present(self,conj_type, forma, liczba, osoba, base_word):
new_end = self.conjugation[conj_type]['forma'][forma][liczba][osoba]
return base_word.replace(str(self.conjugation[conj_type]['koncowka']), str(new_end))
def get_wor... | Python | src/andip/wiki/schema.py | perfidia/andip | mit | 67,439 | 1,121 | codeparrot/github-code |
8c7c004c3e907d4810cc538be8f05b2955c5818dc89c1a9ada5431feba3c068c | /*
* https://github.com/yuanqing/yq-js/tree/master/src/modal
*/
;(function( $ ) {
// Name
var pluginName = 'modal';
// Defaults
var defaults = {
onInit: function(){},
onDestroy: function(){},
onShow: function(){},
onHide: function(){}
};
// Classes
var activeClass = pluginName + '-ac... | JavaScript | src/modal/jquery.modal.js | yuanqing/jquery-plugins | mit | 4,245 | 148 | codeparrot/github-code |
541d47a7ad912a23cc5901b537597094ceabf84fd9d1b8136935fe3423d96c28 | package com.episode6.hackit.pausable;
import com.episode6.hackit.disposable.*;
import javax.annotation.Nullable;
import java.lang.ref.WeakReference;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Executor;
/**
* Utility class con... | Java | pausables-core/src/main/java/com/episode6/hackit/pausable/Pausables.java | episode6/disposables | mit | 6,357 | 238 | codeparrot/github-code |
2c98f6c0baf13f0d6330a167afe3577d835928f087d01343309ecb5faec74a39 | package com.utils.misc;
import java.util.TimerTask;
import android.content.Context;
import android.os.Handler;
import android.os.SystemClock;
import android.view.animation.BounceInterpolator;
import android.view.animation.Interpolator;
import com.google.android.gms.maps.model.Marker;
public class CustomTimerTaskMap... | Java | src/com/utils/misc/CustomTimerTaskMapMarker.java | himanshuagarwal77225/BookMySkills | mit | 1,447 | 61 | codeparrot/github-code |
4797d7c06ef56ceb34232626a43c49e37e425fcd9785ba14f28db16b282ed3d7 | #region License
// Pomona is open source software released under the terms of the LICENSE specified in the
// project's repository, or alternatively at http://pomona.io/
#endregion
using System;
using System.Linq;
using Pomona.Common.TypeSystem;
namespace Pomona.RequestProcessing
{
internal class HandlerMetho... | C# | app/Pomona/RequestProcessing/HandlerMethodTakingExistingResource.cs | Pomona/Pomona | mit | 1,391 | 41 | codeparrot/github-code |
197c45e73f45f6f052ed15d9d98bba075dd82e58ba544626cda0ea947af6200c | import sys
import importlib
import inspect
class Process(object):
def __init__(self):
pass
def process(self, _in):
pass
def get_id(self):
return self._id
class Simulator(object):
def __init__(self, processes, links, commands):
self._cur_time = 0
self... | Python | simulator.py | airekans/paxosim | mit | 10,270 | 309 | codeparrot/github-code |
f130fcd2f136ccbee2e00444e841bf7eb6ac045a252af82a1a8d59036377cba1 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CheckerParams | Wasabi-Common</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../as... | HTML | docs/interfaces/_validate_checker_.checkerparams.html | wasabi-io/wasabi-common | mit | 10,818 | 226 | codeparrot/github-code |
6450d6de283a73c74b129f03c9bd115289f561e92a09f37483f2415c6a034286 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.1/paramcoq/1.1.0.html | coq-bench/coq-bench.github.io | mit | 6,666 | 166 | codeparrot/github-code |
a45c55b813c7abacc46898b08f26c365f77976055d74248771285dc4235f54ea |
<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_oeil_sphinx/adbfed18c0fb7761286f16fafc47b09c82a96edef5ff9ec62907a39e5d903bee.html | czuger/haute_tension | mit | 65,926 | 1,370 | codeparrot/github-code |
648ad2a503aa6a9921ff9a479de4a35675ea92c312d3344b347018c80be01210 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
typedef pair<ll, ll> Pll;
typedef vector<int> Vi;
typedef tuple<int, int, int> T;
#define FOR(i,s,x) for(int i=s;i<(int)(x);i++)
#define REP(i,x) FOR(i,0,x)
#define ALL(c) c.begin(), c.end()
#define DUMP( x ) cerr << #x <... | C++ | atcoder/other/tricky_1_b.cpp | knuu/competitive-programming | mit | 1,025 | 44 | codeparrot/github-code |
866c8b64a93c70570f9f7221af21547c87ea260b9da1c60d93498197ab1f7216 | /* eslint-disable no-console */
'use strict'
const Libp2p = require('../..')
const TCP = require('libp2p-tcp')
const { NOISE } = require('libp2p-noise')
const SECIO = require('libp2p-secio')
const MPLEX = require('libp2p-mplex')
const pipe = require('it-pipe')
const concat = require('it-concat')
const createNode = a... | JavaScript | examples/transports/2.js | diasdavid/node-libp2p | mit | 1,424 | 61 | codeparrot/github-code |
7857301824da4f189f10b6a12dfe07dfc184419539c2507fc5f6661e22c78f79 | <!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Scrup release notes</title>
<meta name="robots" content="anchors">
<style type="text/css" media="screen">
body { margin: 2px 12px 12px 12px; font-size:13px; background:white; color:#222; }
p,... | HTML | admin/release-notes.html | rsms/scrup | mit | 5,464 | 121 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.