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
cbc5e4352725c30080cf911dc832708c0cf2ae3c1454885370db9af1391851a6
#include "MusicHandler.hpp" #include <SDL_image.h> #include <iostream> MusicHandler::MusicHandler() : GExL::TAssetHandler<Music>() { } MusicHandler::~MusicHandler() { } bool MusicHandler::LoadFromFile(const GExL::typeAssetID theAssetID, Music& theAsset) { bool anResult = false; std::string anFilname = GetFilename...
C++
examples/SDLAssets/MusicHandler.cpp
cloudncali/GExL
mit
983
44
codeparrot/github-code
d482db77093a3d520fb228b95836ddd13f437977734ed1099c8d0c27e4bd5808
""" FREQUENCY FILE -> Contains function pertaining to analyze a file based on frequency of characters or words. """ def call(Arguments): """ Entry point for all calls pertaining to frequency analysis """ # Storing arguments in a dictionary for easier reference ArgumentsDictionary = { "NAME" : Arguments[0...
Python
Analysis/Frequency.py
Yash3667/CipherAnalysis
mit
3,272
127
codeparrot/github-code
3cebdb0e74c03775314fc2ac01a7b33b4c738c17ed4e30070a6173e5aaf395b9
# frozen_string_literal: true # == Schema Information # # Table name: transaction_logs # # id :bigint(8) not null, primary key # from_id :integer # from_type :string(255) # recipient_id :integer # recipient_type :string(255) # transaction_type :string(255) # user_id ...
Ruby
app/models/transaction_log.rb
BlueRidgeLabs/kimball
mit
3,075
122
codeparrot/github-code
b49ea4f202617f55e58cf21d33cd6297b7c4da3a0dd86b5b93d4a1b6044fd7f8
<?php start_system(); function start_system() { if(file_exists(dirname(__FILE__) . '/config.php')){ require_once(dirname(__FILE__) . '/config.php'); } else { die('O arquivo de configuração não foi localizado!'); } $const = array ('BASE_URL', 'ADM_URL', 'BASE_PATH', 'CONTROL_PATH', 'MODEL_PATH', 'VIEW_PATH', ...
PHP
_apoio/functions.php
Guilhermelvs/livraria.local
mit
2,477
114
codeparrot/github-code
4a1c62d6388c5f0e893610bdf51c5b1cf3ef890b3c1525fb963d8b0f9f7af9fe
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>idxassoc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.13.0/idxassoc/8.6.0.html
coq-bench/coq-bench.github.io
mit
7,721
177
codeparrot/github-code
c19a909597dc4e54284085ea8a43b9914bd03bf956c2ecd231f6048cefafa50b
package weather.manish.com.weatherforecast; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.google.android.gms.maps.model.LatLng; import com.hamweather.aeris.maps.AerisMapView; import com.hamweather.aeris.maps.MapViewFragment; import co...
Java
app/src/main/java/weather/manish/com/weatherforecast/MapFragment.java
manishdwibedy/WeatherForecast
mit
1,413
44
codeparrot/github-code
661c01817bedf2f6225cf92525d9ebf90c17f62b31af968eb58813bd24b8a713
package org.eck.json.validators; import org.eck.json.JsonValidationResult; import org.eck.json.JsonValidator; import org.eck.json.validators.StringLengthValidator; import org.junit.Assert; import org.junit.Test; import com.google.gson.JsonObject; public class StringLengthValidatorTest { @Test public void te...
Java
jjv/src/test/java/org/eck/json/validators/StringLengthValidatorTest.java
erickzanardo/JJV
mit
1,094
34
codeparrot/github-code
987ec2d0ed35fd9c4e30b3379b09a5b73ab9ebe1bfd2d1e65b3fe1c680442371
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db; use Yii; use yii\base\Object; use yii\base\NotSupportedException; use yii\base\InvalidCallException; use yii\caching\Cache; use yii\caching\TagDepend...
PHP
framework/db/Schema.php
ReadCode/yii2-2.0.3-annotated
mit
19,478
552
codeparrot/github-code
70f1e7052d860d43d67f64564a2726882b3eec1e152e64f9f014797796801033
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Re: [問卦] 為什麼流氓幹架沒有人排陣型分兵種? - 看板 Gossiping - 批踢踢實業坊</title> <meta name="robots" content="all"> <meta name="keywords" content="Ptt BBS 批踢踢"> <meta name="description" content=" 因為流氓幹架都是臨時烙人的居多 大宗拉小宗 小宗再去隨便...
HTML
result/M.1419065796.A.158.html
iultimatez/PTTScraper
mit
7,016
151
codeparrot/github-code
29112da9d0ecb7eab9e817f1b388f6e70646a1183b471c89a2fb0d54be9908df
package com.github.sbouclier.samples.medialibrary.web.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.h...
Java
src/main/java/com/github/sbouclier/samples/medialibrary/web/interceptor/TimeProcessingInterceptor.java
sbouclier/spring-medialibrary
mit
2,203
64
codeparrot/github-code
6a9b3fd3af5908cf3bf20512f153de8b19574d597989c88ddab173318898d3ba
<?php /** * @author Rikard Karlsson * @version 2014-04-17 */ class CGetNavigationMenu extends CNavigationMenu { /** * used to create a submenu using GET['p'] or url: ?p=all */ //public function addGetItem($linkText, $urlStart, $urlGetPart){ public function addItem($array){ $link...
PHP
app/src/Calendar/CGetNavigationMenu/CGetNavigationMenu.php
RikardKarlsson/Anax-MVC
mit
1,703
56
codeparrot/github-code
58012287e6aff5853525158e33450a27f8a6610004fc1df7cc514d851e4c670e
/* * Copyright (C) 2015 midnightBITS * * 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++
libs/libgui/src/nodes/row_node.cpp
mbits-os/JiraDesktop
mit
2,228
85
codeparrot/github-code
8b5273470f242b33a19bb1ee3bf49234c2b7febe61a89d2054a2c84d811b1881
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Persimmon.Runner { public class PersimmonDriver { private readonly Assembly library; private readonly Assembly target; public PersimmonDriver(Assembly library, Assembly ta...
C#
src/dotnet-test-persimmon/PersimmonDriver.cs
persimmon-projects/dotnet-test-persimmon
mit
2,430
64
codeparrot/github-code
b9fc9f8108991d16631ff71f07e06dfc4e02924e9ccf0df3001aae477a3f2879
module EpicGeo module Clustering #K-Means Clustering # #Allows Tweets to be used as points for x-iterations of k clusters. # #Adapted from: https://gist.github.com/cfdrake/995804 #Deprecated as clustering method for Tweets module KMeans INFINITY = 1.0/0 # # Cluste...
Ruby
lib/epic_geo/geoprocessing/k-means.rb
jenningsanderson/epic-geo
mit
2,398
98
codeparrot/github-code
3a402ee5ee7ec673e4f1ce4f84184690d6f5192ba1fd44469a4f0cfefc69cdc4
/* * Copyright (c) 2008-2015 Travis Geiselbrecht * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <lk/debug.h> #include <lk/trace.h> #include <stdlib.h> #include <lk/err.h> #include <lk/trace.h> #include ...
C
arch/arm/arm/arch.c
travisg/lk
mit
11,971
424
codeparrot/github-code
26170066ac1b35773f9a5564112a98719c51e8de893abeeb928723d530024cae
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- Mirrored from eakroko.de/flat/emails/email-newsletter.html by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 23 Feb 2014 18:13:12 GMT --> <head> <meta http-equ...
HTML
assets/emails/email-newsletter.html
vaibhavparmar/pd
mit
10,599
250
codeparrot/github-code
fed9bd92f769a60e6dbe145dbfc649a3e4c27c3578eef503699e97573f2a849f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mutual-exclusion: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstra...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.1/mutual-exclusion/8.8.0.html
coq-bench/coq-bench.github.io
mit
7,344
169
codeparrot/github-code
5662517a21d4874233fbbe69b20c256ebe7fec0e8bc1e5a3f7308aaa6a3540fe
<!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d...
HTML
portfolio/copylee/emancipate_intro_3D.html
matikbird/matikbird.github.io
mit
9,403
314
codeparrot/github-code
5e8573420d586d46a6b2c8775f5900e5ef3ac65c045b98ffb5ed147a901c6b1c
module RailsParam module Param DEFAULT_PRECISION = 14 class InvalidParameterError < StandardError attr_accessor :param, :options end class MockController include RailsParam::Param attr_accessor :params end def param!(name, type, options = {}, &block) name = name.to_...
Ruby
lib/rails_param/param.rb
Flutterbee/rails_param
mit
6,161
138
codeparrot/github-code
bd2a82ee19cfffd5dc882d026a596bfd37f95d334b7d9ff951669fe9b3f6a068
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using HOLMS.Types.IAM; using HOLMS.Types.Primitive; using Microsoft.IdentityModel.Tokens; using Newtonsoft.Json; namespace HOLMS.Platform.Support.Security { public class ValidatedJWToken { public stri...
C#
csharp/HOLMS.Platform/HOLMS.Platform/Support/Security/ValidatedJWToken.cs
PietroProperties/holms.platformclient.net
mit
2,838
67
codeparrot/github-code
72b13bd9b0753e80e5e45449d659408bf2acb20865f724ae988d6d470529091b
/* ! * elasticlunr.stemmer * Copyright (C) @YEAR Oliver Nightingale * Copyright (C) @YEAR Wei Song * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt */ /** * elasticlunr.stemmer is an english language stemmer, this is a JavaScript * implementation of the PorterStemmer taken from http://tar...
JavaScript
lib/stemmer.js
weixsong/elasticlunr.js
mit
5,638
241
codeparrot/github-code
a62978f39d02589ca7395c5d5f52ebe18dca83fe3f00e22b18b29dee351516d9
/* * hub * https://github.com/JamesMGreene/jquery.hub * * Copyright (c) 2013 James M. Greene * Licensed under the MIT license. */ /*global OpenAjax*/ // questionable if should be plugin https://github.com/cowboy/talks/blob/master/jquery-plugin-authoring.js (function($) { "use strict"; var hubOptions = {}...
JavaScript
src/jquery.hub.js
JamesMGreene/jquery.hub
mit
4,572
173
codeparrot/github-code
d8ec48348ab31510982b5061c21731349f35605dcde9d37073063ba110334645
package com.asciipic.commands; import com.asciipic.commands.basic.CommandError; import com.asciipic.commands.basic.InOutCommand; import com.asciipic.dtos.ResponseDTO; import java.util.List; public class CatCommand implements InOutCommand { private String args; public CatCommand() { args = null; ...
Java
asciipic/src/main/java/com/asciipic/commands/CatCommand.java
AlexandruTudose/asciipic
mit
858
34
codeparrot/github-code
2f0d99ef9a69e370fc2721ed58ee993aa8e522cf97335c956b59cb5775aa8004
// // HKAdsController.h // HKAdsController // // Created by Harley.xk on 15/10/26. // Copyright © 2015年 Harley.xk. All rights reserved. // #import <Foundation/Foundation.h> #import <GoogleMobileAds/GoogleMobileAds.h> #import <CoreLocation/CoreLocation.h> #import "HKAdsInterstitialController.h" #import "HKAdsBanne...
C
Pod/Classes/HKAdsController.h
Harley-xk/HKAdsController
mit
1,514
61
codeparrot/github-code
fe542e06d4cea6e63b799efaaf19af03a82d53b2c3ef3c41dafa1c7e9f051907
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Holdi...
HTML
db-5.3.28.NC/docs/gsg_db_rep/JAVA/elections.html
iadix/iadixcoin
mit
11,979
268
codeparrot/github-code
14d3c2acf244d523c51e842330da98315cda990a14cbbac94f62cb9b6ceaaa51
/** * The MIT License * Copyright (c) 2022, Population Register Centre (VRK) * * 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 righ...
Java
xroad-catalog-persistence/src/main/java/fi/vrk/xroad/catalog/persistence/entity/OrganizationDescription.java
vrk-kpa/xroad-catalog
mit
2,158
57
codeparrot/github-code
3b9fdf46413452220c446be3acf93ee5e75fe5c602d0263463d66e211b3b8b05
<?php namespace Sesshin; use Sesshin\Id; use League\Event\EmitterAwareTrait; use Sesshin\FingerprintGenerator\FingerprintGeneratorInterface; use Sesshin\Store\StoreInterface; class Session implements \ArrayAccess { use EmitterAwareTrait; const DEFAULT_NAMESPACE = 'default'; const METADATA_NAMESPACE = '__...
PHP
src/Session.php
gabbyndu/sesshin
mit
13,011
554
codeparrot/github-code
9631886d7c5b544a24713fe76db98ed0344c67f7213ec72a8e6548ca07836e6d
package com.tenable.io.api.scans.models; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** * Copyright (c) 2017 Tenable Network Security, Inc. */ public class RemediationsResult { private List<Remediation> remediations; private int numHosts; private int numCves; pri...
Java
src/main/java/com/tenable/io/api/scans/models/RemediationsResult.java
tenable/Tenable.io-SDK-for-Java
mit
2,913
127
codeparrot/github-code
c56fd413d52f71a401b4858c7d3d579e457a5e4dbcc1a289099624d3731d132a
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Data; namespace beRemote.GUI.StatusBar.ConnectTime { [ValueConversion(typeof(bool), typeof(Visibility))] public class BoolToVisibilityConverter : IValu...
C#
GUI/v2/beRemote.GUI/StatusBar/ConnectTime/BoolToVisibilityConverter.cs
Hunv/beRemote
mit
1,034
34
codeparrot/github-code
492073a6ae12d7828a81c83c9fc21abc596f30cf75856f641bbded32cd71d34c
package convenientadditions.api.entity.specialitem; import convenientadditions.api.CCDataSerializers; import net.minecraft.entity.item.EntityItem; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.datasync.DataParameter; import net.minecraft.network.datasync.Ent...
Java
src/main/java/convenientadditions/api/entity/specialitem/EntitySpecialItem.java
Necr0/ConvenientAdditions
mit
4,889
140
codeparrot/github-code
2abb3165a8701571ed7581c906210f3c497203d16a1d954a74121f989b2fea2e
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 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 BITCOIN_MINER_H #define BITCOIN_MINER_H #include "primitives/block.h" #...
C
src/miner.h
nginnever/zogminer
mit
1,245
39
codeparrot/github-code
cfebaa9a2f27db4658d33bd0d163cd017bee435539e759607602edf9d4e5ac52
<?php /** * Created by PhpStorm. * User: AdeFulki * Date: 7/8/2017 * Time: 1:04 AM */ class Autentikasi_controller extends CI_Controller { private $pedagangModel; private $pembeliModel; function __construct() { parent::__construct(); $this->load->model('Pedagang_model','',True); ...
PHP
application/controllers/Autentikasi_controller.php
adefulki/201-Server
mit
1,204
46
codeparrot/github-code
5fa26aecbf19bd1559da7c99832f3c48c448ca8f492b4548dcbd4baa0311342a
package com.seregil13.smartcraft.util; import com.seregil13.smartcraft.ref.Reference; import cpw.mods.fml.common.FMLLog; import org.apache.logging.log4j.Level; /** * A helper class to interface with the FML logging systems */ public class Log { public static void log(Level logLevel, Object object) ...
Java
src/main/java/com/seregil13/smartcraft/util/Log.java
Seregil13/SmartCraft
mit
1,169
58
codeparrot/github-code
5dd8a82c2ae9e1753d27f57372d344aaab5c081f7981837eb301f40c6a55b7d9
package com.mirhoseini.diabetes.reminder.util; import android.annotation.TargetApi; import android.app.Activity; import android.os.Build; import android.view.View; import android.view.WindowManager; /** * An API 11+ implementation of {@link SystemUiHider}. Uses APIs available in * Honeycomb and later (specifically ...
Java
app/src/main/java/com/mirhoseini/diabetes/reminder/util/SystemUiHiderHoneycomb.java
mmirhoseini/insulin_reminder
mit
5,008
141
codeparrot/github-code
3f64c205cd4e817da3b62f0f242ad350ae459b67874f18ccf346c6ff06662b9f
--- layout: default title: Home --- <div id="posts"> <h2>McKenna Lectures</h2> <ul> {% for post in site.posts %} {% if post.tags contains 'mckenna' %} <li><span><a href="{{ post.url }}">{{ post.title }}</a></li> {% endif %} {% endfor %} </ul> </div> <div id="posts"> <h2>Stories</h2> <u...
HTML
index.html
erdence/erdence.github.io
mit
754
39
codeparrot/github-code
482dc432a0abb4f60afed8715809705293896378ddeec4f9479f3bbb194534bb
/* * grunt-shim-modules * * * Copyright (c) 2014 Alexandr Zaytcev * Licensed under the MIT license. */ 'use strict'; module.exports = function ( grunt ) { grunt.registerMultiTask('shim_modules', 'Shim files as modules by template', function () { // Merge task-specific and/or target-specific option...
JavaScript
tasks/shim_modules.js
13rentgen/grunt-shim-modules
mit
3,834
126
codeparrot/github-code
6aeab3f90f1bd02261267f3bf2efb5a4c0a27d8088b7081fa88d99ad25287a56
import { ParsedMatchSchema } from 'serina.schema'; import { DateTime } from 'luxon'; import { DATES } from './dates.constants'; import parseMatches from 'utils/parseMatches'; import convertDateStringToObj from 'utils/convertDateStringToObj'; import remove from 'utils/remove'; import matchPattern from 'utils/matchPatter...
TypeScript
src/filters/dates/dates.ts
hdong92/Serina
mit
1,228
36
codeparrot/github-code
892b4f30a4f2a934dbf8e50d9dbb3e9e4a666a5c9621c0f40911bcaf4486ed2b
using UnityEngine; using UnityEditor; using System.Collections.Generic; namespace tk2dEditor.SpriteAnimationEditor { public class TimelineEditor { // State public class State { int _selectedFrame = -1, _selectedTrigger = -1; public enum Type { None, // All pending actions MoveHandle, ...
C#
UnsocialMan/Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteAnimationEditor/tk2dSpriteAnimationClipTimelineEditor.cs
fancyblock/ShanghaiGameJam-2013-UnsocialMan
mit
19,540
539
codeparrot/github-code
472f46256a680074d6c2e86a96a5322efac758e4bbecd175861f38ace248155e
using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Linq; using Orleans; using Orleans.Runtime; using System.Threading; using OrleansInterfaces; namespace ReachingTypeAnalysis.Analysis { internal class SolutionGrainCallerWrapper : ISolutionGrain { private ISolutionGrain solu...
C#
OrleansGrains/Solution/SolutionGrainCallerWrapper.cs
too4words/Call-Graph-Builder-DotNet
mit
4,293
158
codeparrot/github-code
d6dce1bc6ce2e789f7dd7151677576b6a1192bc4234b99aa4939e0b3ae6bfa26
package com.github.scr.j8iterables; import com.github.scr.j8iterables.core.ConsumingIdentity; import com.github.scr.j8iterables.core.Ends; import com.github.scr.j8iterables.core.J8PrimitiveIterable; import com.github.scr.j8iterables.core.PeekIterator; import com.github.scr.j8iterables.core.StreamIterable; import com.g...
Java
src/main/java/com/github/scr/j8iterables/J8Iterables.java
scr/j8iterables
mit
14,410
391
codeparrot/github-code
59385725c0f6611a6615daa7de46f6443d06b224e892fac68f033b0e7f41fc30
//------------------------------------------------------------------------------ // <copyright file="WinFormsComponentEditor.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //----------------------...
C#
Cache/Libs/net46/ndp/fx/src/winforms/Managed/System/WinForms/Design/WinFormsComponentEditor.cs
mind0n/hive
mit
3,822
83
codeparrot/github-code
870167d149329340101e0ea134c7ca435634c929d0074d813f9518fd867ee2e0
package edu.asu.qstore4s.domain.events.impl; import java.util.HashSet; import java.util.Set; import javax.xml.bind.annotation.XmlAnyElement; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import org.springframework.data.annotation.TypeAlias; import org.springframework.d...
Java
QStore4S/src/main/java/edu/asu/qstore4s/domain/events/impl/CreationEvent.java
AourpallyNikhil/qstore
mit
1,686
71
codeparrot/github-code
149cf76429d3c50240d5e7cea632b33e6d2648ec0ca7215ccf340ee06c3bccd6
float2 clrand2(uint id, __global uint4* clrng) { uint s1 = clrng[id].x; uint s2 = clrng[id].y; uint s3 = clrng[id].z; uint b; b = (((s1 << 13) ^ s1) >> 19); s1 = (((s1 & 4294967294) << 12) ^ b); b = (((s2 << 2) ^ s2) >> 25); s2 = (((s2 & 4294967288) << 4) ^ b); b = (((s3 << 3) ^ s3) >> 11); s3 = (((s3 & 429...
C
src/ClooToOpenGL/kernels/Mandelbrot.c
nikvoronin/ClooToOpenGL
mit
3,118
112
codeparrot/github-code
8c3ce0d0e49aded452db3ba0e129545e5dbb65285b91d8d02b623db73159317f
#pragma once #include <Data/RefCounted.h> #include <Data/Regions.h> #include <Game/ECS/Entity.h> #include <Scene/SPS.h> #include <Math/AABB.h> // Represents one game location. Consists of subsystem worlds (scene, graphics, physics, AI). // In MVC pattern it is a model. namespace Scene { typedef Ptr<class CSceneNode>...
C
DEM/Game/src/Game/GameLevel.h
niello/deusexmachina
mit
4,694
162
codeparrot/github-code
dd0774ea1a2374402d5fb37a92289885cbcb6b11a4c471b3b7122cb1e1042979
<?php /* * This file is part of the Exposure package. * * Copyright 2013 by Sébastien Pujadas * * For the full copyright and licence information, please view the LICENCE * file that was distributed with this source code. */ namespace Exposure\View; use Exposure\Model\SponsorOrganisation, Exposure\Model\Us...
PHP
lib/Exposure/View/OrganisationViews.php
spujadas/exposure
mit
4,816
189
codeparrot/github-code
3ccfec0ffdc0ae1d5d5f9d954d5af83b3d733829757e5ae3d7e8609a2b7601fc
<?php namespace App\DataLayer; use App\ServiceContainer; use App\Interfaces\CacheInterface; use App\Containers\CacheDataContainer; /** * Class BaseModel * @package App\DataLayer */ abstract class BaseModel { /** * @var CacheInterface */ protected $cache; public function __construct() { ...
PHP
App/DataLayer/BaseModel.php
pvoznenko/front-controller-php-example
mit
2,040
84
codeparrot/github-code
4a11439e8a4538c4e569841594eec2d43e64e189c7722c4cabc9577cae3ba527
from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 # Create a new instance of the IE driver driver = webdri...
Python
samples/misc/sel_google_search_phantomjs.py
ktan2020/legacy-automation
mit
1,101
34
codeparrot/github-code
ae02b9b1311defc021469e9b9a54e31bafd5fd35e5d65cb7e7aeb566bbf3bdf5
#pragma once #include <string> #ifndef FRAME_LOG #define FRAME_LOG true #endif #ifndef FRAME_ASSERTS #define FRAME_ASSERTS true #endif #ifndef FRAME_MAX_COMPONENTS #define FRAME_MAX_COMPONENTS 128 #endif #ifndef FRAME_MAX_TASKS #define FRAME_MAX_TASKS 128 #endif #ifndef FRAME_DEFAULT_REGISTRY_SIZE #define FRAME_D...
C
include/frame/config.h
stett/frame
mit
1,782
71
codeparrot/github-code
1ce0b97786b49a51fcb7c94288a06c11a86742f9e2012e6908e05f125577a8a0
# -*- coding: utf-8 -*- from django.http import HttpResponse from django.http import HttpRequest #from django.core.context_processors import csrf from django.views.decorators.csrf import csrf_protect from django.shortcuts import render_to_response,get_object_or_404,get_list_or_404,RequestContext from django.contrib.sit...
Python
ems/views.py
cbingos/hongmafund
mit
10,442
313
codeparrot/github-code
b9e9549ccf47c79e56db4da1210adaf9915972e5435cac951e1cc25fffa8ea08
import { nanoid } from 'nanoid'; import { D as Debug } from './Debug-cf878fdc.js'; import { applyMiddleware, compose, createStore } from 'redux'; import { A as ActionCreators, r as reset, u as undo, p as redo, q as PlayerView, M as MAKE_MOVE, G as GAME_EVENT, l as UNDO, m as REDO, R as RESET, j as UPDATE, k as SYNC } f...
JavaScript
ajax/libs/boardgame-io/0.43.3/esm/client-deed9200.js
cdnjs/cdnjs
mit
17,051
468
codeparrot/github-code
c266d96d76ba3e34f957e7a6a0d62c800059343b6319c4b2271f1a41c414d53e
#include "vpr_stdafx.h" #include "ShaderModule.hpp" #include "vkAssert.hpp" #include "CreateInfoBase.hpp" #include "easylogging++.h" namespace vpr { struct ShaderCodeFileLoader { void LoadCodeFromFile(const char* filename, std::vector<uint32_t>& dest, VkShaderModuleCreateInfo& create_info) { ...
C++
resource/src/ShaderModule.cpp
fuchstraumer/VulpesRender
mit
5,078
143
codeparrot/github-code
7e9b8e0bcf0fb6415ce528cecf90602d0e835bfbc56c87f1c0f6c5c3cf4a18da
# frozen_string_literal: true module Gitlab module Diff class PositionTracer class LineStrategy < BaseStrategy def trace(position) # Suppose we have an MR with source branch `feature` and target branch `master`. # When the MR was created, the head of `master` was commit A, and t...
Ruby
lib/gitlab/diff/position_tracer/line_strategy.rb
stoplightio/gitlabhq
mit
9,042
202
codeparrot/github-code
0edef7626f3429efa8663c822303313ca35743c55acee267da799985f32ea390
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var nodemailer = require('nodemailer'); var routes = require('./routes/index'); var about = require...
JavaScript
project8002/app.js
lecaoquochung/nodejs
mit
1,632
66
codeparrot/github-code
bfe8ab555353eb3429c2086bba012900774a8fec84a5aefef1ac10870fd106a8
package io.freefair.gradle.plugins.sass; import de.larsgrefer.sass.embedded.SassCompilationFailedException; import de.larsgrefer.sass.embedded.SassCompiler; import de.larsgrefer.sass.embedded.SassCompilerFactory; import de.larsgrefer.sass.embedded.functions.HostFunction; import de.larsgrefer.sass.embedded.importer.Cus...
Java
embedded-sass-plugin/src/main/java/io/freefair/gradle/plugins/sass/SassCompile.java
freefair/gradle-plugins
mit
9,044
232
codeparrot/github-code
6a5bb011a2d66246e452fdec7fd00594d9fac971912dce09fed6190711ea404f
# Check dependencies import PIL, PIL.Image, PIL.ImageTk import aggdraw import affine import itertools def grouper(iterable, n): args = [iter(iterable)] * n return itertools.izip_longest(fillvalue=None, *args) # Main class class AggRenderer: """ This class is used to draw each feature with aggdra...
Python
__private__/temp_dev/rendererclass2.py
karimbahgat/PyAgg
mit
12,324
366
codeparrot/github-code
8801a52122e0383bb72be6888ff3b5e5f8ad76fd27c9a968d6b677f180be200e
<?php namespace Eris\Generator; use Eris\Random\RandomRange; use Eris\Random\RandSource; class StringGeneratorTest extends \PHPUnit\Framework\TestCase { /** * @var RandomRange */ private $rand; public function setUp(): void { $this->rand = new RandomRange(new RandSource()); } ...
PHP
test/Generator/StringGeneratorTest.php
giorgiosironi/eris
mit
2,356
81
codeparrot/github-code
e1196cf41e5b90dda0eb45dc48abebaaec81af8f1451fac8bc4de232e74d2f23
using System; namespace JimBobBennett.JimLib.Xamarin.Views { public class ViewFactoryException : Exception { public Type ViewType { get; private set; } public Type ViewModelType { get; private set; } public ViewFactoryException(string message, Type viewType, Type viewModelType) ...
C#
JimLib.Xamarin/Views/ViewFactoryException.cs
jimbobbennett/JimLib.Xamarin
mit
862
30
codeparrot/github-code
c3dc9177076354bc1be1fa6d862c624504879daeed6bd53aee2e2370579d263e
local draw2D = require "draw2D" local field2D = require "field2D" local gl = require "gl" local vec2 = require "vec2" math.randomseed(os.time()) local dimx = 38 local dimy = dimx local field = field2D(dimx, dimy) local field_old = field2D(dimx, dimy) local diffuse_rate = 0.1 local decay_rate = 0.99 function decay...
Lua
AV/agent_fieldtrails.lua
elihugarret/Curso-AI
mit
1,467
84
codeparrot/github-code
355ab78cf5e5a63c4dcb86ef97297c4019f5d15b0722846637435415e806d7ab
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Name: Ion Auth Model * * Version: 2.5.2 * * Author: Ben Edmunds * ben.edmunds@gmail.com * @benedmunds * * Added Awesomeness: Phil Sturgeon * * Location: http://github.com/benedmunds/CodeIgniter-Ion-Aut...
PHP
application/models/ion_auth_model.php
ci2backend/ci2backend
mit
68,838
2,282
codeparrot/github-code
2a3a1e1e661f7a85fb43dafc76bde3b50ca85c7db8f31e57da25d8242eff060e
/*******************************************************************/ // Phil Graham Z1690752 // Assignment 3 // Due: 10/16/14 // File: DictEdit.cs // Description: Contains the code for the Dictionary Editor Form /*******************************************************************/ using System; using System.Drawing...
C#
DictEdit.cs
p-graham/Dictionary-Editor
mit
25,020
577
codeparrot/github-code
4dbe5ce28d202044fa7dd98ad60c9e3f185904b3c5bf105eb315e97903ce1ca2
<?php /** * MIT License. This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Propel\Generator\Command; use Propel\Generator\Manager\MigrationManager; use Symfony\Component\Console\Input\...
PHP
src/Propel/Generator/Command/MigrationCreateCommand.php
peter17/Propel2
mit
4,129
97
codeparrot/github-code
10f6d019628ba85c6fb9899f24c9f4ed98f183d4edd424362f805b62dec201fa
<!DOCTYPE html> <html lang="se"> <head> <meta charset="utf-8"> <meta name="robots" content="all,follow"> <meta name="googlebot" content="index,follow,snippet,archive"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Projektstart</title> <meta name="author" content="" /> <met...
HTML
blog/kickoff/index.html
minclusion/minclusion.github.io
mit
14,528
427
codeparrot/github-code
462ebf5ff7ae6a8f5559cdeab2ca79e12b87b06b6b2ce3737295610715bc2e37
/* * The MIT License * * Copyright 2014 exsio. * * 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, ...
Java
src/test/java/pl/exsio/jin/translationcontext/TranslationContextTest.java
eXsio/jin
mit
2,531
74
codeparrot/github-code
c99562c1a522c79e5146a020be5ad8b835880b60cc91d1480fbd82d9cb852ed2
require 'brakeman/processors/base_processor' #Processes models. Puts results in tracker.models class Brakeman::ModelProcessor < Brakeman::BaseProcessor ASSOCIATIONS = Set[:belongs_to, :has_one, :has_many, :has_and_belongs_to_many] def initialize tracker super @model = nil @current_method = nil @...
Ruby
lib/brakeman/processors/model_processor.rb
oreoshake/brakeman
mit
3,558
150
codeparrot/github-code
709e85183e4b30fcbd25a8d7b7c53476960f4983d1932bb7f456325c67da1483
#!/usr/bin/env python import sys import numpy as np import matplotlib.pyplot as plt from scipy.special import gammaincinv import pint.models, pint.toa import astropy.units as u from pint.residuals import Residuals import traceback #np.seterr(all='raise') def sigmaz(t,y,err,nseg,diagplot=False): """Compute sigma_z...
Python
nicer/sigmaz.py
paulray/NICERsoft
mit
10,393
229
codeparrot/github-code
fb1bfd13418e00e932a0dd92ad3baaab4434a1026a4b2032c5e8c5b227640734
import { exec } from 'child_process'; import * as fs from 'fs-extra'; import * as path from 'path'; import { ROOT } from '../build/helpers'; import { Logger } from '../logger'; // tslint:disable-next-line:no-var-requires const MAIN_PACKAGE_JSON = require('../../package.json'); const DIST = path.resolve(ROOT, 'dist')...
TypeScript
@ionic-native/scripts/tasks/publish.ts
Notificare/notificare-push-lib-cordova
mit
2,315
89
codeparrot/github-code
f406c508d6f1640c077e2b837c2559027a9555c91c118f6de5557a1017e45885
#ifndef IOD_SYMBOL_HH_ # define IOD_SYMBOL_HH_ #include <iod/tags.hh> #include <iod/grammar.hh> #include <iod/sio.hh> namespace iod { template <typename E> struct symbol : public array_subscriptable<E>, public callable<E>, public assignable<E>, public Exp<E> { typedef E...
C++
iod/symbol.hh
matt-42/iod
mit
5,332
126
codeparrot/github-code
9db9a23fc767423f61d0d5590b93f351733f450f8a21f052b05fa84c4c2ae231
package controllers; import java.util.List; import models.Address; import play.data.Form; import play.mvc.Controller; import play.mvc.Result; import static play.data.Form.form; public class Warehouse extends Controller{ public static Result index() { List<models.Warehouse> warehouses = models.Warehouse.fin...
Java
app/controllers/Warehouse.java
khiraide/Warehouse-1
mit
1,520
48
codeparrot/github-code
540e0875b2e99a46916f2eba2eee574c876945371d45f207d6048f64ad4bfedc
<?php declare(strict_types=1); namespace Oro\ORM\Query\AST; use Doctrine\ORM\Query\QueryException; use Oro\ORM\Query\AST\Platform\Functions\PlatformFunctionNode; class FunctionFactory { /** * Create platform function node. * * @throws QueryException */ public static function create(string...
PHP
src/Oro/ORM/Query/AST/FunctionFactory.php
orocrm/doctrine-extensions
mit
1,104
42
codeparrot/github-code
ee12a44aedc96a4e30e65d241e8a1f0c7078b3fd3a6826df8e9b2518e94108e0
/* * Copyright (C) 2006 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
C++
WebLayoutCore/Source/WebCore/platform/graphics/win/IntRectWin.cpp
gubaojian/trylearn
mit
2,238
71
codeparrot/github-code
2294b1e883f120cc2cd9f27a0206a928c599c0f2f51b85eee61ac4a1995447a9
namespace AspComet.Eventing { /// <summary> /// Raised when a client is subscribing to a channel /// </summary> public class SubscribingEvent : CancellableEvent, IChannelEvent { private readonly IClient client; private readonly string channel; /// <summary> ...
C#
src/AspComet/Eventing/SubscribingEvent.cs
nmosafi/aspComet
mit
1,158
39
codeparrot/github-code
4a638cc062f80728236c76474c6012e41b534e8e76a5cd229acd77d85cae13e9
# PDUs are the protcol base units in SMPP module Smpp::Pdu class Base # Error constants ESME_ROK = 0x00000000 # OK! ESME_RINVMSGLEN = 0x00000001 # Message Length is invalid ESME_RINVCMDLEN = 0x00000002 # Command Length is invalid ESME_RINVCMDID = 0x00000003 # Inva...
Ruby
lib/ruby-smpp/smpp/pdu/base.rb
parolkar/smstrolley
mit
5,763
144
codeparrot/github-code
e3244f6b88703c395959f0e8e0e6bb1480d99a4709fd9a5e0cd4f74bf7efd735
#pragma once #include <assert.h> #include <cuda.h> #include <cuda_runtime.h> #if 0 # include <cutil.h> #else # include <helper_cuda.h> # define CUDA_SAFE_CALL checkCudaErrors #endif template <typename T> struct cudaPointer{ T *dev_pointer; T *host_pointer; size_t size; cudaPointer(){ dev_pointer = NULL; hos...
C
sample/c++/nbody/cuda_pointer.h
FDPS/FDPS
mit
1,231
61
codeparrot/github-code
03289fee2c2b08ad3f9add189b8c14984f1668b491955f8b85e558334b324d3a
/** * Copyright (c) 2013 Egor Pushkin. All rights reserved. * * 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, cop...
C
dev/iRemote.Cpp/Messages/DataMessage.h
egorpushkin/iremote
mit
2,220
74
codeparrot/github-code
148f8d9ad4f90a7a0b0e2ff5830cf11522fb7c977615e135a7033a038d91c2d3
'use strict' require('elastic-apm-node').start({ servieName: process.env.WORKLOAD_ELASTIC_APM_SERVICE_NAME, serverUrl: process.env.WORKLOAD_ELASTIC_APM_SERVER_URL, active: process.env.NODE_ENV === 'production' }) var Workload = require('workload') var conf = require('./server/config') var url = conf.server.url ...
JavaScript
.workload.js
opbeat/opbeans
mit
1,913
71
codeparrot/github-code
14d3976e9a7061faf53a2b4010621500986d51c60845e90a5c228d4ff3fc82b3
# -*- coding: utf-8 -*- """ Created on Wed Jan 25 13:50:30 2017 @author: Owner """ from __future__ import print_function import os import numpy as np np.random.seed(1337) import matplotlib.pyplot as plt import pandas as pd from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence ...
Python
scripts/tagclassifer_keras.py
chngchinboon/intercomstats
mit
9,514
273
codeparrot/github-code
7ddf14f708eac49586a6f37897a5d2af24e02725d4eb59ccd6f054e3bbfd72db
import pandas as pd import numpy as np import matplotlib.pyplot as plt import pickle import seaborn as sns import warnings import re from datetime import datetime warnings.filterwarnings("ignore") def difference_in_days(date1, date2): """ The assumption here is that Date 2 > Date 1. can always use abs(d2-...
Python
03-Project-McNulty/helper_functions.py
igabr/Metis_Projects_Chicago_2017
mit
3,521
157
codeparrot/github-code
cfc588308ec2ad364fa0688e086517d2e1fc4e93bf5220a5b6a7b5811b06d76c
/* MIT License Copyright (c) 2016-2018 Pierre-Yves Lapersonne (Mail: dev@pylapersonne.info) 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 limita...
JavaScript
utils/web/webapp/logic/adapter.js
pylapp/Tips-n-tools
mit
15,267
457
codeparrot/github-code
6096d90297806a1b4546269f3272c0c81a6f62095036fa98f083387eb093c811
#include <net-snmp/net-snmp-config.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <dirent.h> #include <fcntl.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> #include <net-snmp/library/container.h> #include <net-snmp/library...
C
cpqHost/data_access/swrun_linux.c
marker55/hp-ams
mit
3,340
118
codeparrot/github-code
bc1104ab8baf0a4fe7f6a5b412493dad1ccde835f91b9a05991ebfff1d5e3ad5
package com.hb.hkm.hypebeaststore.fragments.storefrontpage.filter; import android.content.Context; import android.content.res.Resources; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import com.hb.hkm.hypebeaststore.R; import com.hb.hk...
Java
shoebox/app/src/main/java/com/hb/hkm/hypebeaststore/fragments/storefrontpage/filter/filterAdapter.java
HKMOpen/SogoShoesBoxes
mit
2,730
84
codeparrot/github-code
91bb50c854c88f8fff57be35032cb08de933473f1b69e5ab79a85a474940991e
package com.fourdeez.aptracker.aptracker; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import android.os.Bundle; import android.preference.ListPreference; import android.preference.Preferenc...
Java
aptracker/src/main/java/com/fourdeez/aptracker/aptracker/MainActivity.java
sdmadsen/RafiBot-Android-AP-Tracker
mit
8,216
236
codeparrot/github-code
41ac6e4cca41acaa3c34b6bbfe41ae9e82125bde0c27120afacfa70a190ab9ef
<?php namespace WSW\LojaIntegrada\Client; use GuzzleHttp\Client as HttpClient; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\ServerException; /** * Class Client * @package WSW\LojaIntegrada\Client * @author Ronaldo Matos Rodrigues <ronaldo@whera.com.br> */ class Client { /** * @var ...
PHP
src/Client/Client.php
whera/LojaIntegrada
mit
2,665
124
codeparrot/github-code
4675a44512f53138c4f50c6504bfb2260067b81ba2c9ea3dc572a43a24f21c8f
<?php namespace Wheregroup\WFS\Entity; use Wheregroup\XML\Entity\BaseEntity; /** * Class Capabilities * * @package Wheregroup\WFS\Entity * @author Andriy Oblivantsev <eslider@gmail.com> */ class Capabilities extends BaseEntity { /** @var string */ protected $version; /** @var string */ protecte...
PHP
Entity/Capabilities.php
WhereGroup/wfs-driver
mit
2,007
104
codeparrot/github-code
823290ffecfb06a040663d86a52e62f1b70c16ee059ab853bb0dd8253e32af42
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
C
ThirdParty/Havok/include/Physics2012/Utilities/Dynamics/RigidBodyReset/hkpRigidBodyResetUtil.h
wobbier/source3-engine
mit
3,165
89
codeparrot/github-code
9c33bcce62daf336b61580f1543bc893585bb453bdf28b0e3fa6a52ca6048028
package br.com.ricardonm.feverestival2015.task; import android.os.AsyncTask; import java.util.ArrayList; import java.util.List; import br.com.ricardonm.feverestival2015.FoodPlaceListFragment; import br.com.ricardonm.feverestival2015.MainActivity; import br.com.ricardonm.feverestival2015.manager.FoodPlaceManager; imp...
Java
Feverestival2015/app/src/main/java/br/com/ricardonm/feverestival2015/task/LoadFoodPlaceDataTask.java
spitfire2903/feverestival2015-android
mit
1,303
50
codeparrot/github-code
319db162580c2a490b9fadd39b510239c2d79af900ee394464ebc0495f31f8bf
/* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. */ #include "LivenessAnalysis.h" #include "../Profiler.h" #include "ControlFlowGraph.h" #include "ControlFlowLoop.h" #include <sstream> using namespace vc4c; using namespace vc4c::analysis; static auto replicateRegisterLoc...
C++
src/analysis/LivenessAnalysis.cpp
doe300/VC4C
mit
29,810
703
codeparrot/github-code
c2f80484c57c68b4a146f5d07d34442cbbc3b3a03ce7dc101203c0390a8e9617
<html> <head> <title> The real U.S. objective in Lebanon </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <tab...
PHP
web/2005-1/533/533_03_Lebanon.php
ISO-tech/sw-d8
mit
4,332
55
codeparrot/github-code
8227bcd66517055f383a94922fa5605a4685e9bfe1fb19f26056f6927257ac9c
####################################################################### # # Copyright (C) 2001-2014, Michele Cappellari # E-mail: cappellari_at_astro.ox.ac.uk # # This software is provided as is without any warranty whatsoever. # Permission to use, for non-commercial purposes is granted. # Permission to modify for pers...
Python
ppxf_util.py
zpace/SparsePak-SFH
mit
12,608
272
codeparrot/github-code
c63ed329978a64feafa19a3c984cda2a4821df90bde8b1a1b767238327329bfb
class ZabbixApi class Templates < Basic # The method name used for interacting with Templates via Zabbix API # # @return [String] def method_name 'template' end # The id field name used for identifying specific Template objects via Zabbix API # # @return [String] def identif...
Ruby
lib/zabbixapi/classes/templates.rb
express42/zabbixapi
mit
3,939
107
codeparrot/github-code
d5bbaa5cf4b3d5db24735b08f96ed80e47f4bd497590b27ec3b03571716c6d71
local self = {} CAC.IReadOnlyBanSystem = CAC.MakeConstructor (self) function self:ctor () end function self:GetId () CAC.Error ("IReadOnlyBanSystem:GetId : Not implemented.") end function self:GetName () CAC.Error ("IReadOnlyBanSystem:GetName : Not implemented.") end function self:IsAvailable () CAC.Error ("IRea...
Lua
ireadonlybansystem.lua
notcake/cac-administration
mit
1,020
42
codeparrot/github-code
cf97c308f0771b59d4dfc21f42b12abf3824fa7ec700609c8669b58bcd972a8e
package com.jcwhatever.remoteconsole.bukkit.connect; import com.jcwhatever.nucleus.mixins.IDisposable; import com.jcwhatever.nucleus.storage.IDataNode; import com.jcwhatever.nucleus.utils.PreCon; import com.jcwhatever.nucleus.utils.managers.NamedInsensitiveDataManager; import com.jcwhatever.nucleus.utils.observer.futu...
Java
src/com/jcwhatever/remoteconsole/bukkit/connect/ConnectionManager.java
JCThePants/RemoteConsole
mit
5,847
223
codeparrot/github-code
c55bf3b927674cb74408a346702d99ccad125b11dddae08724e515d6c3ba531f
/** * http://www.geeksforgeeks.org/deepest-left-leaf-node-in-a-binary-tree/Fss */ package com.g4g.dataStructures.trees.binarytrees; /** * @author Kushal * */ public class DeepestLeftLeaf { private static int max = 0; private static TreeNode<Integer> temp = null; /** * @param args */ public static v...
Java
DS&Algorithms/src/com/g4g/dataStructures/trees/binarytrees/DeepestLeftLeaf.java
kushal-r/MyWorkspace
mit
1,325
48
codeparrot/github-code
25439a538ffe75fd85dd91b80aef729f4defae30ad696c1eb53a4b7164d5cf6a
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class EditMemberProfile : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //check if user is logged in if (Sess...
C#
EditMemberProfile.aspx.cs
davidkoo7/RentHerePublic
mit
2,589
86
codeparrot/github-code
00c1a3093104882f1d9209011c7cd228539daeb75917a0023c28ca89fce314fa
import { observable, extendObservable, action, computed, autorun, reaction, map } from 'mobx'; import debounce from 'lodash/debounce'; export default class UiStore { @observable windowWidth; @observable leftPanel = false; @observable rightPanel = false; constructor(navStore) { this.navStore = ...
JavaScript
src/client/stores/ui/index.js
kettui/webcord-web-app
mit
1,401
40
codeparrot/github-code
36a905f5e6a92b51a900ef291c34e81a74f55457264e4299e34b09310008f77b
#!/usr/bin/python3 """ This script manages my Google calendars so that Google Home works better. It copies a version of my work calendar events into my personal calendar. It then copies my personal calendar's events into two secondary calendars in the same personal Google account: one secondary calendar for just the ...
Python
src/App.py
kevinjoyner/google_home_calendars
mit
4,185
104
codeparrot/github-code
d3da67e55ff26ae17facb6f2a920594018fba4df2d1139ed60b2d7e393eee771
'use strict'; const eventBus = require('./event-bus'); const PARTICLE_SIZE = 3, MIN_ENERGY = 1.5, MAX_ENERGY = 12.5, ENTROPY = 0.0, MIN_TTL = 300, MAX_TTL = 600; class CharacterParticle { constructor(parentGfx, texture, x, y, ttl, xenergy, yenergy) { this._parentGfx = parentG...
JavaScript
src/js/character-particle-emitter.js
hiddenwaffle/mazing
mit
6,516
253
codeparrot/github-code
a3eaecc0807c821220516c13a510fcd6c808edbc68b050e4d0c0a1ce2196637f
<?php namespace Sga\BackendBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sga\TablaBundle\Entity\Tip...
PHP
doc/borradores/BackendBundle/Controller/TipoDocumentoController.php
mprizmic/sga
mit
5,610
203
codeparrot/github-code
a3b2c2bdcaeda802c85949c42b7fd0f18bee7240a9caed3fa79e21ea46968186
namespace DataStructuresHomework { using System; using System.Collections.Generic; /// <summary> /// Write a program that counts in a given array of double values the number of occurrences of each value. Use Dictionary<TKey,TValue>. /// Example: array = {3, 4, 4, -2.5, 3, 3, 4, 3, -2.5} /// -2...
C#
Data Structures and Algorithms/04.DictionariesHash-TablesAndSets/01.CountNumberOfOccurrences/OccurrenceCounter.cs
emilti/Telerik-Academy-My-Courses
mit
1,172
39
codeparrot/github-code
2a8c57d600174847e6a72f650a9073a5087cdb6dd3a0178daf323586dc92d89a
/* * Copyright (C) 2007 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions ...
C++
Source/core/frame/History.cpp
lordmos/blink
mit
4,571
141
codeparrot/github-code
a7b106baa12badab2ecd4e6393a1964832e935f981120ce6ab951444616f4813
package org.squiddev.plethora.gameplay.modules.glasses.objects; import io.netty.buffer.ByteBuf; import org.squiddev.plethora.gameplay.modules.glasses.BaseObject; public abstract class ColourableObject extends BaseObject implements Colourable { private int colour = DEFAULT_COLOUR; public ColourableObject(int id, in...
Java
src/main/java/org/squiddev/plethora/gameplay/modules/glasses/objects/ColourableObject.java
SquidDev-CC/plethora
mit
977
52
codeparrot/github-code