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
ce5493443a139071005c66acadd32f403f942db4fa5e063a433ff9d3dc8e96de
package Metier; /** * Created by msia on 26/04/2016. */ public class ArticlePannier { private Product product; public Product getProduct() { return product; } public void setProduct(Product product) { this.product = product; } private String nom ; priva...
Java
miniprojetpart1/src/main/java/Metier/ArticlePannier.java
SarahLina/AndroidImageSlider-master
mit
1,541
81
codeparrot/github-code
6c182631bad2a34f69df82f6d306c004759edcaf56a01215a4cf645f1423a34b
using System; using System.Configuration; namespace Echo.Client { using System.Net; public static class EchoClientSettings { public static bool IsSsl { get { string ssl = ConfigurationManager.AppSettings["ssl"]; return !string.IsNull...
C#
examples/Echo.Client/ClientSettings.cs
seedyoon/DotNetty
mit
793
35
codeparrot/github-code
252893dd18d7818c0b4344eeb5410a9aa762304cb390d3346930ad64b5d873fa
<?php namespace TenUp\Exodus; use TenUp\Exodus\Database\Validator; use TenUp\Exodus\Migrator\Parsers\JSON; use TenUp\Exodus\Migrator\Migrator; use TenUp\Exodus\Report\Report; use TenUp\Exodus\Schema\Console\Schema_Command; if ( defined( 'WP_CLI' ) && WP_CLI ) { require_once 'vendor/autoload.php'; define( 'EXODUS...
PHP
Exodus.php
ivanlopez/Exodus
mit
6,045
199
codeparrot/github-code
b775f2ee764139244984200c593c6b8d0a0190ee8d7346eea1f6282b50432c8d
#ifndef Sha1_h #define Sha1_h #include <inttypes.h> #include "Print.h" #define HASH_LENGTH 20 #define BLOCK_LENGTH 64 union _buffer { uint8_t b[BLOCK_LENGTH]; uint32_t w[BLOCK_LENGTH/4]; }; union _state { uint8_t b[HASH_LENGTH]; uint32_t w[HASH_LENGTH/4]; }; class Sha1Class { public: void reset(void)...
C
AdditionalApps/mTesla/sha1.h
crocs-muni/Edu-hoc
mit
862
44
codeparrot/github-code
a75bf874a4228a0988b5dcea19bcd5448cc3ae54bcef74f27ac3430915b2aa80
//! This module defines the trait necessary for a session storage struct. use self::session::Session; pub mod session; /// A default implementation of `SessionStore`: `Session`. pub mod hashsession; /// This `Trait` defines a session storage struct. It must be implemented on any store passed to `Sessions`. pub trai...
Rust
src/sessionstore/mod.rs
PudgePacket/session
mit
1,433
35
codeparrot/github-code
04ba8ce413320895536895ac98c7df800882b52f40ff8ffc9d49d3f3ba95e180
package com.digero.common.midi; import java.util.Arrays; import javax.sound.midi.InvalidMidiDataException; import javax.sound.midi.MidiEvent; import javax.sound.midi.MidiMessage; import javax.sound.midi.Receiver; import javax.sound.midi.ShortMessage; public class VolumeTransceiver implements Transceiver, M...
Java
src/com/digero/common/midi/VolumeTransceiver.java
digero/maestro
mit
2,713
118
codeparrot/github-code
000e1a69988556e6922f561803a20250529d882e41b9e01d11e6535074bf4284
import React from 'react' import { connect } from 'react-redux' import initializeObjectShape from './initializeObjectShape' import addInitialExpectedBreakTeams from './addInitialExpectedBreakTeams' import addSucceedingExpectedBreakTeams from './addSucceedingExpectedBreakTeams' import addBreakRooms from './addBreakRoom...
JavaScript
src/containers/Asians/_components/BreakCategoryMatrix/MatchUpsDisplay/index.js
westoncolemanl/tabbr-web
mit
3,007
97
codeparrot/github-code
048f85c91d7916d075b9fa35225642f3d9b2cb358346edd34c7a79da83513cb8
#!/usr/bin/env python # import csv # import titlecase from elasticsearch import Elasticsearch from app import app # PATH_FILE = 'data/dict_financial_accounting.csv' # PATH_FILE = 'data/dict_economics.csv' # PATH_FILE = 'data/dict_accounting.csv' # PATH_FILE = 'data/dict_digital-marketing-terms.csv' # PATH_FILE = 'da...
Python
app/routes/load_data.py
tranhuucuong91/simple-notebooks
mit
4,200
142
codeparrot/github-code
257a8917d2fc7ca4c39a048f17ccec8733b1eae92c0a3f65f4f7cfe1037f8dbb
package bot import ( "bufio" "fmt" "os" "sync" ) type WhiteList struct { path string names map[string]struct{} lock sync.Mutex } func LoadWhiteList(path string) (*WhiteList, error) { file, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0666) if err != nil { return nil, fmt.Errorf("unable to open file %...
GO
pkg/bot/whitelist.go
SvenWiltink/go-MusicBot
mit
1,599
96
codeparrot/github-code
67578098c084f4376761c047bc1fc6beaa889c2b28711f5729b1a7f487a0774a
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "GrayChanCountDownPrivatePCH.h" #include "GrayChanCountDownStyle.h" #include "SlateGameResources.h" #include "IPluginManager.h" TSharedPtr< FSlateStyleSet > FGrayChanCountDownStyle::StyleInstance = NULL; void FGrayChanCountDownStyle::Initialize() ...
C++
Plugins/GrayChanCountDown/Source/GrayChanCountDown/Private/GrayChanCountDownStyle.cpp
bm9/GrayChanCountDown
mit
2,237
70
codeparrot/github-code
73d3399e39e561bc481d07796a2ef40e3f1ef565c57108c6b79e0a0031f81efb
% -*- coding: utf-8 -*- %! \file ~/nfss/text.tex %! \author Jiří Kučera, <sanczes@gmail.com> %! \stamp 2014-08-11 12:31:16 +0200 %! \project JK-TeX: Document typesetting macros for TeX. %! \license MIT %! \version See \JKTeXVersion. %! \fdesc Macros for ty...
TeX
nfss/text.tex
i386x/jktex
mit
29,773
1,001
codeparrot/github-code
fb07c7aceb7d795f2446817819d992b00e4a8d1e4fd1afa2f27b37edb0905b8a
<div class="pageFormListing"> <h2 class="sub-header"><?php echo $page_title; ?> <?php if ($permission['import']){ ?> <button type="button" class="btn btn-primary navbar-right" onclick="window.open('<?php echo site_url('module/gallery/import/') ?>','_self');"><?=lang("button_import")?></button> <?php } ?> <?php if ($p...
PHP
dev/cms/application/views/gallery/listing.php
superkon/web_template
mit
3,685
123
codeparrot/github-code
dcfa8c748e7e442f76d6466bd9ed912f068d79f61ecca3cd640ef1f30373d8c1
# tpye hints from typing import Dict,Any # libs import numpy as np # type: ignore import matplotlib.pyplot as plt # type: ignore import argparse import json """ returns (arithmetic, geometric) combinations of input distribution list """ def combine_dists(dist_list, entropy_bias): dists = np.array(dist_list) sums ...
Python
src/script/dist_comb.py
alexcoplan/p2proj
mit
4,526
138
codeparrot/github-code
09b5a33b5694b00f24edeeb15cf5329dd081d4ca2e1ee04e0f6a80904fd094b0
#!/usr/bin/env bash fast_align=/home/lvapeab/smt/software/fast_align/build/fast_align utilsdir="./" usage(){ echo "Aligns a parallel corpus and creates a mapping (stochastic dictionary) of words." echo "Usage: $0 --source <string> --target <string> [--dest <string>] [--aligner <string>] [--source_lan <string>...
Shell
utils/build_mapping_file.sh
Sasanita/nmt-keras
mit
5,500
182
codeparrot/github-code
ce2bc3ef8410cfec9789a52a39a6b4dc06fa41aab757f50523533e86ce164746
/* * Copyright (c) 2016 Boucher, Antoni <bouanto@zoho.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,...
Rust
mg-settings-macros/src/string.rs
antoyo/mg-settings
mit
2,342
62
codeparrot/github-code
a332fc5effa3d91bf55f62623f4497264b21d985e05cec329da96d1e07c86784
/** * The MIT License (MIT) * * Copyright (c) 2015 Vincent Vergnolle * * 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 * t...
Java
vas-opendata-paris-proxy/src/main/java/org/vas/opendata/paris/proxy/ProxyCacheHttpHandler.java
vincent7894/vas
mit
3,345
101
codeparrot/github-code
9b7134d0891e4e6b486b2fcf50b48703b1fd32bd4cc2d6952c32e296d3dc4854
{% extends "base.html" %} {% block title %}Forgot Password{% endblock %} {% block content %} <section id="services" class="services-section"> <div class="container"> <div class="row"> <div class="col-md-6"> <h1>&nbsp;Forgot Password</h1> {% if donotexist %} ...
HTML
templates/forgotpassword.html
rachitnaruzu/codearena
mit
1,890
50
codeparrot/github-code
a39b9ca8001722d9d43fcf9c3a97113c1f50e23ed8f0fa208188a56997975423
// // The MIT License(MIT) // // Copyright(c) 2014 Demonsaw LLC // // 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, c...
C++
ds2/qt_demonsaw/application.cpp
demonsaw/Code
mit
10,701
404
codeparrot/github-code
017649ab889e3cb94c2ae08423523f823f7b2d239b532696016b66a3e08646de
// Dependencies --------------------------------------------------------------- // ---------------------------------------------------------------------------- const Errors = require('../Errors'); // Token streaming interface for the Parser ----------------------------------- // --------------------------------------...
JavaScript
lib/parser/TokenStream.js
BonsaiDen/gbasm
mit
5,619
217
codeparrot/github-code
d9249e67b32a3b0fbe0e42639566aaf2d5735c19983024acffea1a597bcbd92e
using Avalonia; using Avalonia.Controls; using Avalonia.LogicalTree; using ReactiveUI; using System; using System.Reactive.Disposables; using System.Reactive.Linq; namespace WalletWasabi.Fluent.Behaviors { internal class FocusNextItemBehavior : DisposingBehavior<Control> { public static readonly StyledProperty<boo...
C#
WalletWasabi.Fluent/Behaviors/FocusNextItemBehavior.cs
nopara73/HiddenWallet
mit
1,189
50
codeparrot/github-code
160d51b6d9d9706526b0128f4ea8ae26babfa28d0dd5f1239472268651ae9f6e
/* * The MIT License * * Copyright 2020 Intuit Inc. * * 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, modi...
Java
karate-robot/src/main/java/com/intuit/karate/robot/win/IUIAutomationWindowPattern.java
intuit/karate
mit
2,514
85
codeparrot/github-code
5b637873dff1e12af082a3e468699b2413efecdc83448a65aee64ec50136ee20
package org.nusco.narjillos.persistence.serialization; import java.lang.reflect.Type; import org.nusco.narjillos.creature.body.Fiber; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.g...
Java
src/main/java/org/nusco/narjillos/persistence/serialization/FiberAdapter.java
nusco/narjillos
mit
1,130
31
codeparrot/github-code
184bc41e84aa4d3886a56b8a4f8b9b9a2e2cba4961529b8d5098a4c5ed3eb506
=head1 NAME PPIx::Regexp::Token::Backreference - Represent a back reference =head1 SYNOPSIS use PPIx::Regexp::Dumper; PPIx::Regexp::Dumper->new( 'qr{(foo|bar)baz\1}smx' ) ->print(); =head1 INHERITANCE C<PPIx::Regexp::Token::Backreference> is a L<PPIx::Regexp::Token::Reference|PPIx::Regexp::Token::Reference>...
Perl
Beginning Perl for Bioinformatics/lib/PPIx/Regexp/Token/Backreference.pm
amidoimidazol/bio_info
mit
3,652
150
codeparrot/github-code
d24f272dcf144e15a02afd31b160edf34011a30d50440f8de72327857c0310bc
''' # Gabe Gaster, 2013 # # about every minute, eta will report how many iterations # have been performed and the Expected Time to Completion (the E.T.C.) # ##################################################################### # # Examples: # import timer for stuff in timer.show_progress(range(100)): # .... a...
Python
timer/timer.py
gabegaster/python-timer
mit
3,254
110
codeparrot/github-code
64af77c12ccfc26f955aa52c2f8532bb195f1429a9b7bee878e66a85612a41b2
package blogr.vpm.fr.blogr.picture; import android.net.Uri; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import java.lang.reflect.Type; import blogr.vpm.fr.blogr.apis.flickr.ParcelableFlickr...
Java
app/src/main/java/blogr/vpm/fr/blogr/picture/PictureDeserializer.java
vpmalley/tpblogr
mit
1,225
36
codeparrot/github-code
467172062a0875067f796935fe006de8863ca9d40ca926054929addeded82a5f
/* ahmskin.c, skin detection algorithm copyright (c) 2017 by Aramis Hornung Moraes This file is part of the ahmBitmap project read ahmbmp.h for copying conditions. */ #ifdef __cplusplus extern "C" { #endif #include "ahmbmp.h" //#include <math.h> /* extractes skin map region given RGB image */ void create_skin_m...
C++
source/ahmskin.cpp
AramisHM/Morfameba
mit
1,960
74
codeparrot/github-code
61279d977b29e55248115ad46b8f9b03394323159eb91a2a856bcaf313882255
#ifndef N_C_BYTE_WRITERS_H #define N_C_BYTE_WRITERS_H #include <stdlib.h> #include "errors.h" #include "compatibility/stdint.h" typedef struct NByteWriter NByteWriter; void ni_init_byte_writers(NError* error); NByteWriter* n_create_memory_byte_writer(void* dest, size_t size, NError* error); NByteWriter* n_create...
C
src/common/byte-writers.h
alexandream/nuvm
mit
891
44
codeparrot/github-code
e73500afd6e19fddf890ff44e779f25f68c21884e6e9a5c577616c81e71fabb6
# combine_all_summaries # this fuses the summary files from pre23_hathi, # post22_hathi, and chicago, to create a file # where there is only one entry for each # char, auth, date tuple import csv from collections import Counter counts = dict() columns = ['characters', 'speaking', 'agent', 'mod', 'patient', 'poss', ...
Python
oldcode/combine_hathi_summaries.py
tedunderwood/character
mit
1,368
39
codeparrot/github-code
91279d4b2973bf3d3d6ed8927ccb7e2dd352249b4a988d62a35a192a251fad52
namespace UglyToad.DataTable.Net35.Tests.Unit.POCOs { using System; using Types; internal class SimpleClassWithAttributes { [ColumnMapping(Name = "Prop1")] public int PropertyOne { get; set; } [ColumnMapping(Name = "Prop2")] public string PropertyTwo { get; set; } ...
C#
UglyToad.DataTable.Net35.Tests.Unit/POCOs/AttributePocos.cs
UglyToad/DataTable
mit
1,300
54
codeparrot/github-code
12d2d02d41273931f33c2430cbdf71590a0d7564ce5cfdcf696eee6ad9ed18b2
/* Simple JavaScript Inheritance with NFE's * MIT Licensed. */ // Inspired by base2 and Prototype and John Resig's class system (function() { var initializing = false; // The base Class implementation (does nothing) this.Class = function(){}; // Create a new Class that inherits from this class C...
JavaScript
scripts/lib/class.js
dvdbrink/madcase
mit
1,583
51
codeparrot/github-code
dd4db808ae11b1e99ce2fc7fa29971f610f53e5e07c4b522fd5d4a25fad581aa
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const path = require('path'); const assert = require('assert'); const utils = require('../utils.js'); assert(!module.parent); assert(__dirname === process.cwd()); const host = 'node' + process.version.match(/^v(\d+)/)[1]; const target = process.argv[2] || ...
JavaScript
test/test-50-ast-parsing/main.js
zeit/pkg
mit
953
44
codeparrot/github-code
0ae2144c4171f439658f639e546b8ffce98f758b749c1a526512ac7003d63863
# -*- coding:utf-8 -*- import unittest from datetime import datetime from datetime import timedelta from SQLRelay import PySQLRClient SQLRELAY_HOST = 'localhost' SQLRELAY_PORT = 9002 SQLRELAY_USER = 'sqlruser' SQLRELAY_PASS = 'sqlrpass' SQLRELAY_DEBUG = False class SQLRelayTestCase(unittest.TestCase): """Base ...
Python
MemberShip/db/base.py
zzragida/PythonExamples
mit
2,027
64
codeparrot/github-code
df0d50bb3a03d4a02f10ad9996147a8f8aec2e498145291b838bfcdd67772715
--- layout: post title: "Day 14 - Farewell" date: 2016-07-25 --- Today was my last day in this paradise island! I was reflecting on what an amazing trip this has been and I am already thinking about the next time I can come back here, maybe for a kite surfing trip! Before I leave this place, I wanted to get one mor...
Markdown
_posts/2016-07-26-day-14-farewell.markdown
stevenocchipinti/2016-CookIslands-Rarotonga-Blog
mit
4,153
74
codeparrot/github-code
06f320eb09cb1a6df85e80e5e917e829aa6a28c1cdc99c4cba5147494f6ec462
package module5; import de.fhpotsdam.unfolding.geo.Location; import de.fhpotsdam.unfolding.marker.SimplePointMarker; import processing.core.PGraphics; /** Implements a common marker for cities and earthquakes on an earthquake map * * @author UC San Diego Intermediate Software Development MOOC team * @author Jingj...
Java
src/module5/CommonMarker.java
jjiang2cal/UCSDUnfoldingMaps
mit
1,462
51
codeparrot/github-code
83b3d5a0de3be0f5688e237a58d8cb07196d66fef56e03dea37e4af7dbac263b
{% extends "layout.html" %} {% block page_title %} Customer details {% endblock %} {% block head %} {% include "includes/head.html" %} {% include "includes/scripts.html" %} {% endblock %} {% import "templates/button.html" as button %} {% block content %} <main id="content" role="main"> {% include "includes/phas...
HTML
app/views/olev/keeper-names.html
dudelmeister/olev
mit
11,105
248
codeparrot/github-code
f53f9ef8953a00cb85781e58073391f5ab618e33b550e5a0fd6b53800bec296d
<?php namespace Avovello\Xphp\Facades; use Avovello\Xphp\Exceptions\ReceiverNotFoundException; use Avovello\Xphp\Factories\MessengerFactory; class Pusher { public $storage; public function __construct($dbConfig) { $this->storage = Storage::getInstance($dbConfig); // $this->storage->dropTa...
PHP
src/Facades/Pusher.php
avovello/xphp
mit
2,656
81
codeparrot/github-code
ae451ef81cb3dcf9f19d88a79c2675b03fae85b612557c0b7317ce8ff80450d6
<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>PIXI DEMO</title> <style> body{ margin:0; padding:0; } #canvas-holder{ width:1024px; height:768px; background-color:#000000; margin:auto; } ...
HTML
original/htdocs/pixi/demo_touch.html
rusaitis/ippex
mit
3,159
111
codeparrot/github-code
478f7fabea08c14d0d421fcf2b79186cdfd1a0af3c48f24c3dc8d519de9319e8
# Copyright (c) 2021, Manfred Moitzi # License: MIT License import sys from typing import Iterable import pathlib import random import ezdxf from ezdxf import zoom, print_config from ezdxf.math import Matrix44 from ezdxf.tools import fonts from ezdxf.tools import text_layout as tl """ This example shows the usage o...
Python
examples/text_layout_engine_usage.py
mozman/ezdxf
mit
12,087
370
codeparrot/github-code
a7961255d8672d45c1e0d212d1729fb97ccdcd22471490b331d7b1c11f7769ab
require 'ranger/interval' puts "WARNING: `Ranger::Plotter` IS NOT INTENDED FOR PUBLIC CONSUMPTION" puts "PROCEED AT YOUR OWN RISK. Specifically..." puts " - The API is atrocious" puts " - It's buggy as hell" puts " - Semantic versioning does not apply" # :nocov: module Ranger # @private # Used to generate the map...
Ruby
lib/ranger/plotting.rb
fny/ranger
mit
4,226
162
codeparrot/github-code
699a5a6899b13cee725963082b32655be2d97e5afed82832b425b916693883df
package edu.upc.eetac.dsa.rate.auth; import com.fasterxml.jackson.annotation.JsonInclude; import edu.upc.eetac.dsa.rate.entity.Role; import java.security.Principal; import java.util.ArrayList; import java.util.List; /** * Created by tono on 07/10/2015. */ @JsonInclude(JsonInclude.Include.NON_NULL) public class U...
Java
service/src/main/java/edu/upc/eetac/dsa/rate/auth/UserInfo.java
TonoHub/rate-project
mit
815
44
codeparrot/github-code
f399a0c516cbefeeba90f68816f17955875c1f03f87d924bf0f16ca65f559b4a
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <title>S...
HTML
net/data/sql/upsert.html
martinjw/martinjw.github.io
mit
3,764
123
codeparrot/github-code
3d43f4a239becb5a57fa3411af1667cbcde26f920763262816d543da9d821152
/*------------------------------------------------------------------------ * Copyright 2008-2009 (c) Jeff Brown <spadix@users.sourceforge.net> * * This file is part of the ZBar Bar Code Reader. * * The ZBar Bar Code Reader is free software; you can redistribute it * and/or modify it under the terms of the GNU...
C
zbar-0.8/gtk/zbargtk.c
krunalsoni01/yocto-zbar
mit
24,275
768
codeparrot/github-code
48c933669034d0c8b6fe0ca02a5c0eba2b2ee6b9789d385afd3870423a89bef0
namespace Sriracha.Deploy.Offline { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </su...
C#
Sriracha.Deploy.Offline/MainForm.Designer.cs
mmooney/Sriracha.Deploy
mit
12,469
227
codeparrot/github-code
458710e5cd50cba19e003fe7c5ff79513eb6f158ccab7948d3682c05fbe9c951
package cd4017be.kineng.block; import cd4017be.api.recipes.RecipeScriptContext.ConfigConstants; import cd4017be.lib.block.AdvancedBlock; import cd4017be.lib.util.TooltipUtil; import static cd4017be.kineng.physics.Formula.J_cylinder; import static cd4017be.kineng.physics.Formula.torsionStrength_circle; import st...
Java
src/java/cd4017be/kineng/block/BlockShaft.java
CD4017BE/ThermokineticEngineering
mit
6,081
187
codeparrot/github-code
b7467d831bf2f17f98c26c08e6d2756973a8e8ddeecffa3b5227146a0a5aa129
/**************************************************************************** Copyright (c) 2013 Zynga Inc. Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
C++
cocos/2d/CCFontFNT.cpp
tangyiyang/v3quick-classic
mit
26,701
822
codeparrot/github-code
82ce4635e918a193eea407e8991b15fc64d8f22d65c233f64e2f9b9202bd15ef
/* This library will provide common mathematical and string functions in SQL queries using the operating system libraries or provided definitions. It includes the following functions: Math: acos, asin, atan, atn2, atan2, acosh, asinh, atanh, difference, degrees, radians, cos, sin, tan, cot, cosh, sinh, tanh, coth, ex...
C
sql.js/c/extension-functions.c
tristansokol/iphone-message-csv-export
mit
52,188
1,948
codeparrot/github-code
9154226e6f9b7073356ae1e45b2a0c3eedf98b6fc9d45615ceb72b2796cff948
import * as React from 'react'; import { ControlMode } from '../../../../common/datatypes/ControlMode'; import { IFieldSchema } from '../../../../common/services/datatypes/RenderListData'; import FormField from './FormField'; import { IFormFieldProps } from './FormField'; import { IDatePickerStrings } from 'offi...
TypeScript
samples/react-list-form/src/webparts/listForm/components/formFields/SPFormField.tsx
rgarita/sp-dev-fx-webparts
mit
5,488
130
codeparrot/github-code
cd86fd8b9627e55f8c32c17aca61ef3a3c54386ee1cc4c0bad934f96197196b3
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import buttonHeaderDriverFactory from './ButtonHeader.driver'; import {createDriverFactory} from '../../test-common'; import ButtonHeader from './ButtonHeader'; import {buttonTestkitFactory, buttonHeaderTestkitFactory} from '../../../testkit'...
JavaScript
src/Card/ButtonHeader/ButtonHeader.spec.js
skyiea/wix-style-react
mit
2,306
48
codeparrot/github-code
a68339e1b681be8e9f07fe1cddd7ed8382e0879e604092fa9a04ec07b8ac741c
// http://travismaynard.com/writing/getting-started-with-gulp // Include gulp var gulp = require('gulp'); // Include Our Plugins var concat = require('gulp-concat'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), path = require('path') // combine array of names with their sources var c...
JavaScript
gulpfile.js
jon49/Tiem
mit
1,946
71
codeparrot/github-code
bb337e92c17719a7e83f7f0dc502571721345348b29d0359dccd54acc48da37a
#import <UIKit/UIKit.h> #import "WMFAnalyticsLogging.h" @class MWKArticle; @class MWKLanguageLink; @class LanguagesViewController; /* * Protocol for notifying languageSelectionDelegate that selection was made. * It is the receiver's responsibility to perform the appropriate action and dismiss the sender. */ @prot...
C
Wikipedia/Code/LanguagesViewController.h
bgerstle/wikipedia-ios
mit
1,145
36
codeparrot/github-code
168aaf135d824fcd88b6222bf42d6e1d7e64fd8344d98933013cab48a430b1b4
package uk.gov.dvla.vehicles.presentation.common.views.constraints import org.joda.time.DateTime import play.api.data.validation.{Constraint, Invalid, Valid, ValidationError} import uk.gov.dvla.vehicles.presentation.common.services.DateService import uk.gov.dvla.vehicles.presentation.common.views.constraints.Required....
Scala
app/uk/gov/dvla/vehicles/presentation/common/views/constraints/DayMonthYear.scala
dvla/vehicles-presentation-common
mit
1,779
45
codeparrot/github-code
64ff0e4dda37bb8498f24a55204d194c63d91284bc7a7a69b8f81a8230b36a66
require 'timeout' require 'active_support/core_ext/numeric/time' require 'active_support/core_ext/class/attribute_accessors' require 'active_support/core_ext/kernel' module Delayed class Worker cattr_accessor :min_priority, :max_priority, :max_attempts, :max_run_time, :default_priority, :sleep_delay, :logger ...
Ruby
lib/delayed/worker.rb
phaza/delayed_job
mit
6,018
194
codeparrot/github-code
502bd3875f03161e9ba19d28d843849435ad55150b33e43f941ebcc57d818bdc
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>icharate: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.09.0-2.0.5/released/8.7.2/icharate/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,515
182
codeparrot/github-code
c07440115dd40fbfe324e5837938c0afd3dfb99d63ed93a582d5c72a4b6476e6
<?php /* * This file is part of the broadway/broadway package. * * (c) Qandidate.com <opensource@qandidate.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Broadway\EventDispatcher; class TraceableEventDispatcher e...
PHP
test/Broadway/EventDispatcher/TraceableEventDispatcher.php
simensen/broadway
mit
755
33
codeparrot/github-code
0a16945ccd448f1d7f0e60b377d46e9e3ed15fd87b30c95e75f4a4a694758b15
#include <string> #include <vector> #include <exception> using namespace std; #ifndef __WINHAC_h__ #define __WINHAC_h__ #include "Manager.h" namespace VINHAC { class Manager; class WINHAC; } namespace VINHAC { /** * \brief Class of WINHAC Monte Carlo generator. It is used to model charged Drell-Yan process type. ...
C
src/vinhac/WINHAC.h
lukaszgaza/winhacplusplus
mit
525
36
codeparrot/github-code
780739220a2d11e2f1f0ea3301650d670bf7e564a115dad371a320f2c32e8bb4
import sys from math import sqrt from mpl_toolkits.mplot3d import Axes3D import numpy as np #from numpy.random import random import matplotlib.pyplot as plt from folders import fields import nanopores.geometries.pughpore as pughpore import nanopores from sobol.sobol_seq import i4_sobol_generate as sobol up = nanopores...
Python
scripts/pughpore/new_sobol_points.py
mitschabaude/nanopores
mit
6,272
212
codeparrot/github-code
9a0c18962a351ebd8df8d1c92bc8cce91c0f0d6d8a937ffce1b6ee8e9da307cb
from __future__ import print_function from django.test import TestCase from django.contrib.auth.models import User from imager_images.models import Photo, Album from django.test import Client import factory class UserFactory(factory.django.DjangoModelFactory): class Meta: model = User django_get_...
Python
imager/imager/tests.py
joelstanner/django-imager
mit
2,457
84
codeparrot/github-code
e7d68c82f1e725c74a53ea6f0f9238f8710a6d4ec4ff9e14c8e30c8b24217fb4
/* httpMonParse.exe INPUT-DIR OUTPUT-DIR INPUT-DIR ... “ü—̓fƒBƒŒƒNƒgƒŠ OUTPUT-DIR ... o—̓fƒBƒŒƒNƒgƒŠ “ü—́Eo—̓fƒBƒŒƒNƒgƒŠ‚́A‘¶Ý‚·‚éƒfƒBƒŒƒNƒgƒŠ‚Å‚ ‚邱‚ƁB */ #include "C:\Factory\Common\all.h" #include "C:\Factory\Labo\Socket\libs\http\ExtToContentType.h" #include "libs\HTTPParse.h" static char *GetC...
C
Labo/Socket/tunnel/httpMonParse.c
stackprobe/Factory
mit
1,836
101
codeparrot/github-code
79d84a5f7cdb81c7c557a11509c12c59d294998313614e5f9f660722a6264cfc
var React = require('react'); var ReactDOM = require('react-dom'); function topPosition(domElt) { if (!domElt) { return 0; } return domElt.offsetTop + topPosition(domElt.offsetParent); } var InfiniteScroll = React.createClass({ componentDidMount: function () { this.offsetLoaded = this...
JavaScript
static/components/InfiniteScroll.js
2gis/vmmaster-frontend
mit
2,570
99
codeparrot/github-code
3437448156c30780ff8d47f4c016b7368cb84c4b3ac0ea1f4c2e11f056d33041
use std::collections::HashMap; use std::io::{self, BufRead}; use lazy_regex::regex; use regex::Regex; use structopt::StructOpt; type H = HashMap<Header, Vec<(String, String, String)>>; #[derive(Debug, Clone, PartialEq, Eq, Hash)] enum Header { Versioned { package: String, version: String }, Missing { package...
Rust
etc/commenter/src/main.rs
simonmichael/stackage
mit
5,646
181
codeparrot/github-code
ef102a8b1d84a328965102b1f781a864f387b95b9961f629218196088071aa82
#include <iostream> #include <cstdlib> #include <fstream> #include <GL/glut.h> #include "misc.h" using namespace std; #define NAME "ComputerGraphic Hw3_Ex2" #define X_AXIS 0 #define Y_AXIS 1 #define Z_AXIS 2 #define MAP_WIDTH 48 #define MAP_HEIGHT 26 #define GRID_SIZE 20 #define MARGIN_BOTTOM 2...
C++
Source Code/main.cpp
Ev3rlasting/snake
mit
5,359
240
codeparrot/github-code
baf60f705cb1b49b0d206f4c739ed00fdc64a08887f4056b830a337797cb9570
/** * Created by InSuJeong on 2016-09-13. */ import { Component, AfterViewInit } from '@angular/core'; import { Router, ROUTER_DIRECTIVES, ActivatedRoute, Params } from '@angular/router'; import { CORE_DIRECTIVES, FORM_DIRECTIVES } from '@angular/common'; import { Http } from '@angular/http'; import { contentHeaders ...
TypeScript
src/consulting/consultingchange/consultingchange.ts
kincjf/ankroom
mit
4,373
126
codeparrot/github-code
69ee605d9755bb339b764213a5ce435627380170607f9a413f8159d5e4a1e0ff
package com.gamecraft.service.dto; import java.io.Serializable; import io.github.jhipster.service.filter.BooleanFilter; import io.github.jhipster.service.filter.DoubleFilter; import io.github.jhipster.service.filter.Filter; import io.github.jhipster.service.filter.FloatFilter; import io.github.jhipster.service.filter....
Java
gamecraft-project/src/main/java/com/gamecraft/service/dto/ProjectCriteria.java
iMartinezMateu/gamecraft
mit
3,063
105
codeparrot/github-code
451325b60abca37c38fa6a22166fc2cb96513a2101449bfc743208f4a11f7cda
from buildercore.bvars import encode_bvars, read_from_current_host from buildercore.command import remote_sudo, upload from io import StringIO from decorators import requires_aws_stack from buildercore.config import BOOTSTRAP_USER from buildercore.core import stack_all_ec2_nodes, current_node_id from buildercore.contex...
Python
src/buildvars.py
elifesciences/builder
mit
6,259
154
codeparrot/github-code
c84e8d73d22f703e5a0a847e1202d89827ec01a499c2f790bd1b4139c1d2fde7
package com.ev34j.mindstorms.sensor; import com.ev34j.core.sensor.GenericSensor; import com.ev34j.core.sensor.SensorMode; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; public abstract class AbstractSensor<T extends GenericSensor> { private static final Atomi...
Java
ev34j-mindstorms/src/main/java/com/ev34j/mindstorms/sensor/AbstractSensor.java
ev34j/ev34j
mit
1,593
51
codeparrot/github-code
3619125fc9b63130a0296f7db21a0445d9927ca2b7ab20bfa0ec8127cbd7e798
#!/usr/bin/env node // @flow import { download } from "./download/download"; import { insert } from "./elasticsearch/insert"; import fileExists from "file-exists"; import * as path from "path"; import {expand} from 'pattern-expander'; import { getSettings } from './settings/settings'; import type { DownloadSettings } f...
JavaScript
src/import.js
Wikiviews/wikiviews-importer
mit
1,483
40
codeparrot/github-code
df2c72cf3597ffcd139b898dea3ef97a91a365ec36084ad6bd1ca3cfef5ebdc8
<?php namespace Carbon\Configuration; use \Carbon\Util\StringUtil; class CLON { const PATTERN = "/([\\{\\}\\[\\]]|\"(?:~.|[^\"])*\"|'(?:~.|[^'])*'|\\/[^\\/\\n\\*](?:\\\\.|[^\\/\\n])*\\/\\w*|\\/\\/.*|\\/\\*(?:.|\\n)*?\\*\\/|[0-9]*?\\.[0-9]+|<CDATA>(?:.|\\n)*?<\\/CDATA>|[\\w\\.]+)/"; const PATTERN_QUOTE = "/(~(?:x[0-9A...
PHP
clamp/classes/Carbon/Configuration/CLON.php
AkariAkaori/CarbonLAMP
mit
5,218
206
codeparrot/github-code
6817946c87be52c5eb23a9e3addac78df20b19d6daac3b50dc1b2ab1717ec3be
#!/usr/bin/env node /** * Module dependencies. */ require('dotenv').config(); let db = require('./connection'); let app = require('./app'); let http = require('http'); /** * Get port from environment and store in Express. */ let port = normalizePort(process.env.PORT || '3010'); app.set('port', po...
JavaScript
app/server.js
mahdanahmad/coalesce-api
mit
2,079
89
codeparrot/github-code
67009785b45b3a1b6e053e0b4d56c2c391af156fa70bd210d15284a29cae9ea4
# Auxiliary actions. opm.list() { echo echo Installed Packages: echo for installed in $(find ${METADIR} -type f -printf '%P\n' | sort) ; do echo ${installed%*.installed} ; done echo } opm.info() { echo "Package: $CATEGORY/$PACKAGE" if [ -n "$description" ] ; then local...
Shell
usr/lib/opm/lib.sh
trq/opm
mit
5,680
228
codeparrot/github-code
45a84ed4a18875a314373a00f56330bd194984f0c92ca2fc58b2fa808ecd17a6
var g = require("../../include"); function Server() { var self = this; self.server = null; self.defaults = new(require("../defaults"))(); function Response(request, response){ var self = this; self.request = request; self.response = response; self.question = request.question[0]; self.reply = func...
JavaScript
lib/dns/server.js
fir3pho3nixx/daisy
mit
900
45
codeparrot/github-code
be001993495d87f1e723b34fa25aed68a20b517d56f6a7c459d9d6961b5603c3
//****************************************************************************************************** // GlobalSettings.cs - Gbtc // // Copyright © 2016, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // ...
C#
Source/Applications/openMIC/openMIC/GlobalSettings.cs
GridProtectionAlliance/MIDAS
mit
4,545
235
codeparrot/github-code
510fbfac0aa89840fc703aa2c63e3be945533045f79e9fb32e58c06cc6479abc
// // // #include "ShiftEasier.h" ShiftEasier::ShiftEasier(int latch, int clock, int data, int registers /* = ONE_REGISTER */) { _latchPin = latch; _clockPin = clock; _dataPin = data; _registers = registers; _currentBits = new byte[registers](); init(); } ShiftEasier::~ShiftEasier() { ...
C++
ShiftEasier/ShiftEasier.cpp
blackhack/ArduLibraries
mit
2,235
115
codeparrot/github-code
6d346e85dced662518f552ef7931c8ce8f59020baaaa2767ae0c33b5bff1a485
/** File : diff.spec.js Date : 2016年01月03日 星期日 08时32分09秒 */ import Element from '../../src/lib/Element' import diff from '../../src/lib/diff' import patch from '../../src/lib/patch' function el(...args) { return new Element(...args) } describe('Test diff algorithm', () => { it('Node replacing', () => { ...
JavaScript
test/unit/diff.spec.js
IndexXuan/simple-virtual-dom-es6
mit
3,906
135
codeparrot/github-code
a05ea562f99b28771e230c61cfd1cc20280ab84ed1f5989412ee372ea766b17c
import * as _ from "lodash"; import {EntityManager} from "./EntityManager"; import {EM, EntityManagerOptions, Entity, Repository} from "./common"; import {Injectable, Injector, Optional} from "@angular/core"; import {async, inject, TestBed} from '@angular/core/testing'; import {HttpModule, Http, BaseRequestOptions, Res...
TypeScript
src/coreBundle/entityManager/EntityManager.spec.ts
nikita-yaroshevich/avalon-core
mit
4,942
148
codeparrot/github-code
9994f7a58c6a96c97449b5640f36b6760e9e47cfd42ff905a229744a7c040e6d
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>IntersectionObserverEntryInit | picturepark-sdk-v1-widgets API</title> <meta name="description" content="Documentation for picturepark-sdk-v1-widgets API"> <meta name="viewport" c...
HTML
docs/picturepark-sdk-v1-widgets/api/interfaces/intersectionobserverentryinit.html
Picturepark/Picturepark.SDK.TypeScript
mit
10,835
231
codeparrot/github-code
5937b363bf1676713a36fcb6088345f713ce37256266fc3885c8e16d8a3132bf
package de.brembs.kickplanner.controller; import de.brembs.kickplanner.controller.websocket.GamesWebSocketHandler; import de.brembs.kickplanner.domain.Team; import de.brembs.kickplanner.repository.KickRepository; import static de.brembs.kickplanner.transform.JsonUtil.json; import java.util.UUID; import org.ecli...
Java
src/main/java/de/brembs/kickplanner/controller/TeamController.java
ralfmetzger/kickplanner
mit
2,306
61
codeparrot/github-code
2b95f53f7d366ab2a03088e3259d737926e8c23ca9a5ff31b3ce66832b4d0bcf
'use strict'; const assert = require('power-assert'); const Assembler = require('../../../lib/deco/assembler'); const Context = require('../../../lib/context'); describe('deco/assembler', () => { let context = new Context(); describe('constructor()', () => { it('should create assembler', () => { ...
JavaScript
test/unit/deco/assembler.js
sakusimu/mh-skillsimu
mit
964
33
codeparrot/github-code
3a4b09379390d08e3e7ee14707826a833b756bd153a3e484cf1e40e97e27260d
import React, { useRef } from "react"; import { useAppReducer } from "../AppContext"; import styles from "./AddItemForm.module.scss"; // Form to populate todo items function AddItemForm() { const dispatch = useAppReducer(); let inputRef = useRef(); function addItem(e) { const newItem = { text: inputR...
JavaScript
src/components/AddItemForm.js
cassidoo/todometer
mit
788
34
codeparrot/github-code
bd27a8686710758fc8b14982061e9e44ab4a41463f03c622f2e2681024cece6b
<?php /* Safe sample input : get the field userData from the variable $_GET via an object, which store it in a array sanitize : cast in float construction : interpretation */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distr...
PHP
Injection/CWE_89/safe/CWE_89__object-Array__CAST-cast_float__multiple_select-interpretation.php
stivalet/PHP-Vulnerability-test-suite
mit
1,882
78
codeparrot/github-code
9731ac38e6ba51e183c5b168a86c9f9d2178192246e8ad8afe365a3e768ce65d
using System; using System.Data; using System.Configuration; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; namespace SageFrame.Upgrade { public class MySection : Configu...
C#
SageFrame.Upgrade/MySection.cs
AspxCommerce/AspxCommerce2.7
mit
815
34
codeparrot/github-code
4ccae90a0ad53b4d8737f797d0ccc9007f0adeb1f40fa2ae2d2bdf02f6f7bdd8
/** * Copyright (c) 2014 TechShroom * * 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, publish...
Java
Log/src/main/java/com/techshroom/tscore/log/LGFilter.java
TechShroom/TSCore
mit
3,943
131
codeparrot/github-code
6a4c3694378cde99476033d01416c6de839e357a55d8852e9cf0afe5a3192eb9
#include <algorithm> #include <iostream> #include <limits> #include "heuristics/qubo/hasan2000.h" #include "util/random.h" Hasan2000Solution::Hasan2000Solution(const Hasan2000Solution& x1, const Hasan2000Solution& x2) : QUBOSolution(x1) { // For a randomly selected crossover point k, we will take position...
C++
src/heuristics/qubo/hasan2000.cpp
MQLib/MQLib
mit
7,196
215
codeparrot/github-code
a118ac0ed4677cc829006acd42a90d56fbcdd1f722586661be22fc113380dcf0
import * as ReactNative from "react-native"; var bounce = ReactNative.Easing.bounce; var circle = ReactNative.Easing.circle; var cubic = ReactNative.Easing.cubic; var ease = ReactNative.Easing.ease; var exp = ReactNative.Easing.exp; var linear = ReactNative.Easing.linear; function poly(prim) { return ReactNa...
JavaScript
bs-react-native/src/easing.bs.js
reasonml-community/bs-react-native
mit
1,207
78
codeparrot/github-code
a5c5fd43a02997ac28976319830827754abb6ff6dc69b40548332cd575f82650
import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { environment } from '../../environments/environment'; import 'rxjs/add/operator/toPromise'; import { CookieService } from 'angular2-cookie/services/cookies.service'; @Injectable() export class ApiService { constructor(...
TypeScript
front/src/app/services/api.service.ts
Ikuo89/4s
mit
1,223
39
codeparrot/github-code
8d4b638f2e5e30c9f7dba22048ac16ee6843dd61e1cba33182e9a2f44d1c6cbc
<?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>db_pr...
HTML
db-5.3.28.NC/docs/api_reference/C/db_printlog.html
iadix/iadixcoin
mit
9,142
213
codeparrot/github-code
42ae9d3afc2381c96336a410b5bbadae0d1f6d36644f238ac46051e07a172e71
var door_open = function(){ $.ajax( { url : linda_url+"/"+space+".write", type : 'POST', data : {tuple: JSON.stringify(tuple)}, success : function(data,type){ alert('door open!!') }, error : function(xhr, stat, err){ alert('door error..'); }, complet...
JavaScript
js/goldfish-door.js
shokai/linda-door-open-goldfish
mit
765
38
codeparrot/github-code
6f365a0474e9e4698004836e0de14c88f58f65301470974317073c3fdfaf22f4
import * as React from 'react' import { Redirect } from 'react-router' import { Form, TextField, Header, Checkboxes, CheckboxOption, Submit } from '../forms' import { ErrorDialog } from '../components/error' interface ConnectState { submitted: boolean failed: boolean } export default class Connect extends React.P...
TypeScript
src/pages/connect.tsx
clarkmalmgren/bolingbrook-church
mit
2,352
64
codeparrot/github-code
71753cdb52c59abfdfe1416b597415e3e3a04d41468f19e39b0a4e6e526f1990
using System.Collections.Generic; using NUnit.Framework; using Sonneville.Investing.Trading; namespace Sonneville.Investing.Test.Trading { [TestFixture] public class AccountAllocationTests { [Test] public void ShouldReturnCorrectAmount() { var accountDictionary = new Di...
C#
Sonneville.Investing.Test/Trading/AccountAllocationTests.cs
SonnevilleJ/Investing
mit
4,027
122
codeparrot/github-code
37ba4dfef8022ca17496bf8554b7956ab80e3199b30a4c3c77f1f73c7c612b30
#include <math.h> #include <stdlib.h> #include "blueprint.h" #include "error.h" #include "core/object.h" #include "core/time.h" #include "core/native/general.h" #include "core/gc/collect.h" #define INK_M_PI 3.14159265358979323846 #define INK_M_E 2.71828182845904523536 using namespace ink; Ink_Object *InkMod_Blueprin...
C++
modules/Blueprint/math.cpp
Rod-Lin/Ink
mit
12,045
335
codeparrot/github-code
a8206a515ce61e6e490474eaa1f6535e7e96178179e6a3b6fe46f68731b364a9
""" RenderPipeline Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.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...
Python
rpplugins/pssm/pssm_scene_shadow_stage.py
eswartz/RenderPipeline
mit
4,436
119
codeparrot/github-code
2f4df625bb552bcb1870c2edf6d607ed689e80ad38b0e926217774f08fff9534
<?php /** * Backq: Background tasks with workers & publishers via queues * * Copyright (c) 2013-2019 Sergei Shilko * * Distributed under the terms of the MIT License. * Redistributions of files must retain the above copyright notice. */ /** * Example subscriber using * Adapter for NSQ * @see http://nsq.io *...
PHP
example/adapter/nsq/pop.php
sshilko/backq
mit
1,809
56
codeparrot/github-code
ced014d717b8b61f44aad2250f893741f502af3458a586fdef13ba537e50abc8
#include <cstdio> #include <vector> #include <algorithm> using namespace std; int sqr(int x) { return x*x; } int main() { int N, M; while (scanf("%d %d", &N, &M) != EOF && N != 0) { vector<int> cs(M); for (int i = 0; i < M; i++) { scanf("%d", &cs[i]); } static long long dp[20000+1][256]; ...
C++
aoj/2/2199.cc
eagletmt/procon
mit
880
41
codeparrot/github-code
94742813a53e9b438ef636e3b728cb469f9e337e6888af34de82a31250a8f5c6
class V1::ScheduleLayersController < V1::ApplicationController respond_to :json # doorkeeper_for :all, scopes: [ :read, :write ] before_action :authenticate_user! before_action :schedule before_action :schedule_layers after_action only: [ :index ] { paginate(:schedule_layers) } def index @schedule_...
Ruby
app/controllers/v1/schedule_layers_controller.rb
revily/revily
mit
1,658
65
codeparrot/github-code
985e70478e534e31edca7836757c7d798b0321422da1c2810e020a6e76a4b9b3
/* * This file is a part of yipt * Copyright (C) 2017 Webnium (https://webnium.co.jp/) * License under MIT license https://opensource.org/licenses/MIT */ "use strict"; import {Offset, PDFDocument, TemplateElement} from "../index"; import {Evaluators as Types} from "../evaluators"; interface ForeachElement extend...
TypeScript
lib/elements/foreach.ts
webnium/yipt
mit
1,194
45
codeparrot/github-code
2e9de351900fc15b3af7b84e46b8930e78d48f682818fcc6c558ddc09a2da8d2
/** * */ package methods.evolution.mutation; import java.util.Iterator; import java.util.Random; import libs.Point; import libs.Range; import methods.evolution.Citizen; import methods.evolution.Population; /** * @author giskou ekontogi * */ public abstract class Mutation { protected float pr; protected Ran...
Java
src/methods/evolution/mutation/Mutation.java
giskou/Optimization
mit
1,018
53
codeparrot/github-code
0b03aed46984bdb75ee8156167ce831d8077f3b44737833d4a148751f7a600e6
'use strict' var Q = require('q') var electron = require('electron-prebuilt') var pathUtil = require('path') var childProcess = require('child_process') var kill = require('tree-kill') var utils = require('./utils') var watch var gulpPath = pathUtil.resolve('./node_modules/.bin/gulp') if (process.platform === 'win32'...
JavaScript
tasks/start.js
devfake/cloudradioo-app
mit
1,427
68
codeparrot/github-code
248805361b136d98a3978274a179b89103d773e985c3a12ba59a27a2025815e0
<?php namespace TeamTeaTime\Filer; use Illuminate\Database\Eloquent\ModelNotFoundException; use Symfony\Component\HttpFoundation\File\File; class LocalFile extends BaseItem { /** * The table associated with the model. * * @var string */ protected $table = 'filer_local_files'; /** ...
PHP
src/LocalFile.php
Team-Tea-Time/laravel-filer
mit
3,795
172
codeparrot/github-code
48a58b2df3df82cb4af7e1806e7bd0786fff12a8185a9208a1330b637b935dcc
;**************************************** ;* ClearIt v.61 beta * ;* Keith Batten * ;**************************************** ;* -What it Does- * ;* Installs and returns a 1 in ans * ;* Uninstalls and returns a 0 in ans * ;* Fakes Reset All ...
Assembly
ClearIt.asm
kbatten/ClearIt
mit
5,487
195
codeparrot/github-code
8f5d4c2f24ef3b7be42b2a6b451141da54eaa4c644345c9fb291d61707b156c6
// Backbone.js 1.1.2 // (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(root, factory) { // Set up Backbone appropriately for ...
JavaScript
backbone.js
tgriesser/backbone
mit
62,836
1,660
codeparrot/github-code
4252e4e77f8e4a8955b6ff38ec52ea332d591c7ad5583e09e77e6173f77d5cf9
var gulp = require('gulp'); var debug = require('gulp-debug'); var fileSystem = require('fs'); var readLine = require('readline'); // var path = require('path'); var EOL = require('os').EOL; // file paths var CODEPOINTS = __dirname + '/fonts/codepoints'; var MAP_FILE_NAME = __dirname + '/scss/_icons.scss'; gulp.task(...
JavaScript
gulpfile.js
joelstransky/material-design-icons-scss
mit
1,238
43
codeparrot/github-code