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
d1d6ccaa3d088b7d9e7ac1341f5117efdea3e3200c745287fa1c61b13b988594
import moment from 'moment'; const initialState = { isFetching: true, list: [], page: { page: 0, size: 10, totalElements: 0, totalPages: 0 } }; const auctionReducer = (state = {}, action) => { switch (action.type) { case 'GET_AUCTIONS_FINISHED': case 'GET_AUCTION_BY_ID_FINISHED': ...
JavaScript
src/reducers/auctions.js
GreaterMKEMeetup/snap-bid-site
mit
1,117
47
codeparrot/github-code
871143d1fae505a5ebefa598edbb0aa6121cb29da237f9531ed1dc48daf35e38
#include <iostream> #include <fstream> #include <sstream> #include <time.h> #include "ottdate.hpp" #include "fossa.h" #include "log.h" OttDate* OttDate::s_instance = 0; int OttDate::s_exit_flag = 0; OttDate::EState OttDate::s_cur_state = OttDate::EState_Idle; OttDate::EState Ott...
C++
library/ottdate.cpp
NextThingCo/OttDate
mit
15,760
645
codeparrot/github-code
02b003b37bfb9ae97f8cc628c2f2e5d2d72b8815238dea1beeb243fa76f7dde3
package main import ( "bufio" "encoding/json" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/http/fcgi" "net/url" "os" "os/signal" "runtime" "strconv" "strings" "sync" "syscall" "github.com/PuerkitoBio/goquery" "github.com/antonholmquist/jason" "gopkg.in/gographics/imagick.v1/imagick" ) const...
GO
fcgi-blog/fcgi-blog.go
nasust/hatena-blog-tool
mit
11,818
491
codeparrot/github-code
e5a7b026a94dfdf07279b76a536358f955af6a36c9a59622ef156e94c2dafc62
using System; using System.Collections.Generic; using System.ComponentModel; using System.Net; using System.Web.Http; using AutoMapper; using Umbraco.Core; using Umbraco.Core.Models.Membership; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Mvc; using System.Linq; using System.Net.Http; using System.Net.Ht...
C#
src/Umbraco.Web/Editors/EntityController.cs
lars-erik/Umbraco-CMS
mit
39,150
940
codeparrot/github-code
4a70eb03924e8cd5efa811678b8f96ca1b7bf875cb894b3cc273b59a66931307
from flask import request, render_template import lib.es as es import web.util.tools as tools def get(p): host = p['c']['host']; index = p['c']['index']; # load workflow workflow_id = p['nav'][-1] p['workflow'] = es.get(host, index, 'workflow', workflow_id) if not p['workflow']: return too...
Python
src/web/modules/post/controllers/workflow/edit.py
unkyulee/elastic-cms
mit
1,230
40
codeparrot/github-code
acf15ff6896a78c0c42e24daa769e0d157c9f6db6f9f3f9a04c0af8589757ca4
#include <iostream> #include <cstdio> #include <vector> #include <queue> using namespace std; #define icin(x) scanf("%d", &x) #define lcin(x) scanf("%lld", &x) typedef long long ll; class Compare{ public: bool operator()(pair<int,int> n1,pair<int,int> n2) { return n1.second>n2.second; } }; int main()...
C++
codechef/JULY17/fourth.cpp
dhwanisanmukhani/competitive-coding
mit
1,129
54
codeparrot/github-code
280d24f258f1ed69dd4a8d140d70465016268f596c4fa49210f679a9fc98eaf8
/** * Windows: Please do not use trailing comma as windows will fail with token error */ const { series, rimraf, } = require('nps-utils'); module.exports = { scripts: { default: 'nps start', /** * Starts the builded app from the dist directory. */ start: { s...
JavaScript
package-scripts.js
w3tecch/express-typescript-boilerplate
mit
9,442
300
codeparrot/github-code
7009ba6c53a853e941f899598aca3e98aba85a6854fe691d472396f27b9cf327
package xdr import ( "errors" "io" ) var ErrElementSizeExceeded = errors.New("element size exceeded") type Reader struct { r io.Reader tot int err error b [8]byte } func NewReader(r io.Reader) *Reader { return &Reader{ r: r, } } func (r *Reader) ReadString() string { return string(r.ReadBytes()) } ...
GO
xdr/reader.go
1nv4d3r5/syncthing
mit
1,826
100
codeparrot/github-code
b4a55b17f1d71caef62687007a914666f0d24849d1a53652feb73f998b8bd1bd
/* * SequentialFactory.java * * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa * Clara, California 95054, U.S.A. All rights reserved. * * Sun Microsystems, Inc. has intellectual property rights relating to * technology embodied in the product that is described in this * document. In part...
Java
examples/dstm2fromClass/SequentialFactory.java
plast-lab/DelphJ
mit
5,182
141
codeparrot/github-code
023afa56cae496aff6503ef67c24d0273130a48c2e1aced3fed8b4ae5c0f971f
<?xml version="1.0" encoding="UTF-8" ?> <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- ...
HTML
docs/assignments.html
ucsd-cse130/web
mit
18,098
332
codeparrot/github-code
5fef4d9e29d8ab1ae0aaf0be6d118730b731b4de73e1bd8ac6299c9a4599a735
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package android.support.v4.net; import android.net.ConnectivityManager; import android.net.NetworkInfo; class ConnectivityManagerCompatHoneycom...
Java
src/android/support/v4/net/ConnectivityManagerCompatHoneycombMR2.java
Half-Shot/FarnApp
mit
1,104
47
codeparrot/github-code
7a8de06983cc4b4c9c227d720b95b8f03e891d4ad773847bbb8b58bac617cc99
use std::{collections::VecDeque, rc::Rc}; use crate::{ api::prelude::*, proc_macros::*, shell::prelude::WindowRequest, themes::theme_orbtk::*, }; // --- KEYS -- pub static STYLE_WINDOW: &str = "window"; // --- KEYS -- // internal type to handle dirty widgets. type DirtyWidgets = Vec<Entity>; #[derive(Clone)] en...
Rust
orbtk_widgets/src/window.rs
redox-os/orbtk
mit
7,803
238
codeparrot/github-code
f10d2ab12e11066d30192ec1a98dda4edff04f0ed6b469d53690326f47753f5b
<?php namespace App\Containers\Authentication\Actions; use Apiato\Core\Foundation\Facades\Apiato; use App\Containers\Authorization\Exceptions\UserNotAdminException; use App\Ship\Parents\Actions\Action; use App\Ship\Transporters\DataTransporter; use Illuminate\Contracts\Auth\Authenticatable; /** * Class WebAdminLogi...
PHP
app/Containers/Authentication/Actions/WebAdminLoginAction.php
Mohammad-Alavi/Samandoon
mit
994
38
codeparrot/github-code
006da27b97aa2984d5ae6135e57b969ba31a967914d17634589aaccdbb649a30
package com.github.aksakalli.example; import com.github.aksakalli.handler.MinHasher; import com.github.aksakalli.handler.MoleculeLoader; import com.github.aksakalli.model.Molecule; import com.github.aksakalli.util.Jaccard; import com.github.aksakalli.util.Tanimoto; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
Java
src/main/java/com/github/aksakalli/example/JaccardVsMinhash.java
aksakalli/graph-min-hash
mit
1,961
48
codeparrot/github-code
39375d0c14cfa0c70a121d7073ce69252bf7b6040364d18f3002f5b00a2452a2
from __future__ import print_function import os import subprocess class PyRDF2Ntriples(object): def __init__(self): pass def convertTTL2NT(self, filepath): #Save to the same folder with .nt extension (outputDir, outputFile) = os.path.split(os.path.abspath(filepath)) outputFil...
Python
pyrdf2nt/converter.py
earthquakesan/pyrdf2nt
mit
1,329
47
codeparrot/github-code
8499771a23d8f5a26fde9102bc878bd3824eb80b99a0cd0bece2eb14e348dc89
/** * edatagrid - jQuery EasyUI * * Licensed under the GPL: * http://www.gnu.org/licenses/gpl.txt * * Copyright 2011 stworthy [ stworthy@gmail.com ] * * Dependencies: * datagrid * messager * */ (function($){ function buildGrid(target){ var opts = $.data(target, 'edatagrid').options; $(target)...
JavaScript
config/jquery.edatagrid.js
erikhard/egratifikasi
mit
9,222
345
codeparrot/github-code
2314876cef3732578355c8d17eb256c2ed247ce7b524731a965696b66388b04b
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
JavaScript
angular-quickstart/assets/js/components/doctors/doctor-list.component.js
namnt3108/angular2-mvc
mit
2,443
43
codeparrot/github-code
a4c7440b5458c5b8e36dd28995601067d5da01e89045b93cc131eb1721ca0af5
<?php namespace User\TweetsBundle\Menu; use Knp\Menu\FactoryInterface; use Symfony\Component\DependencyInjection\ContainerAware; class Builder extends ContainerAware { public function mainNLMenu(FactoryInterface $factory, array $options) { $menu = $factory->createItem('root'); $menu->addChil...
PHP
src/User/TweetsBundle/Menu/Builder.php
ilijamt/symfony2-tryout
mit
868
31
codeparrot/github-code
58eaa67c5c75803f45ad7ae915ef1cb21dc06c901d55c38429e71d9cf0e6c375
<?php namespace Concrete\Block\Form; use Concrete\Core\Support\Facade\Application; use Core; use Loader; class Statistics { public static $sortChoices = ['newest' => 'created DESC', 'chrono' => 'created']; /** * Gets the total number of submissions. * * @param string $date set to a specific d...
PHP
concrete/blocks/form/statistics.php
rikzuiderlicht/concrete5
mit
4,734
125
codeparrot/github-code
7c485878d0a17b08de4b341e5270002034da5b699e740eee6c6e856de5d0e828
/* * Copyright (c) 2017 Håkan Edling * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * http://github.com/piranhacms/piranha * */ using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using ...
C#
core/Piranha.AspNetCore.SimpleSecurity/SimpleSecurity.cs
GyreTechnologies/piranha.core
mit
3,482
97
codeparrot/github-code
09a33255917585fa764a51afd3ea673d9b7868234a3a4de6c9e3a8248a3155c6
/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
C++
Boss2D/addon/webrtc-jumpingyang001_for_boss/rtc_base/asyncudpsocket.cc
koobonil/Boss2D
mit
4,621
136
codeparrot/github-code
59c631ccf87fbfe8d916e873d14ee89e385ab1c856608c6f57e2c7af21a2afe1
<?php /** * Start cleanup functions * ---------------------------------------------------------------------------- */ add_action('after_setup_theme','start_cleanup'); function start_cleanup() { // launching operation cleanup add_action('init', 'cleanup_head'); // remove WP version from RSS add_...
PHP
library/cleanup.php
okfn/wordpress-theme-services
mit
5,244
182
codeparrot/github-code
4b4cff64165149e719d474f6cc848bc568a1a92b906c170f9a9543a8468cfc1f
'use strict'; // MODULES // var Stream = require( './stream.js' ); // OBJECT MODE // /** * FUNCTION: objectMode( [options] ) * Returns a stream with `objectMode` set to `true`. * * @param {Object} [options] - stream options * @param {String|RegExp} [options.sep=/\r?\n/] - separator used to split streamed data * @p...
JavaScript
lib/objectMode.js
flow-io/split
mit
1,169
38
codeparrot/github-code
5c97c0de96b203809f834e9ca30b9719c0b1b566edff7597fba36c1b05fd0dde
namespace PoisonousPlants { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class PoisonousPlants { public static void Main() { var n = int.Parse(Console.ReadLine()); var plan...
C#
StacksAndQueues/PoisonousPlants/PoisonousPlants.cs
KristiyanVasilev/CSharp-Advanced
mit
1,140
45
codeparrot/github-code
01d184180e0ddbfdb235f58958fccf3ef122336b3dba68c3c6e750e332700cfd
'use strict'; angular.module('mean.articles').controller('ArticlesController', ['$scope', '$stateParams', 'Global', 'Articles', '$state', function ($scope, $stateParams, Global, Articles, $state) { $scope.global = Global; $scope.create = function() { var article = new Articles({ title: thi...
JavaScript
public/js/controllers/articles.js
certong0507/shoppingu
mit
1,595
62
codeparrot/github-code
a90d2f673790d54e4564d4aa7b3701d0b4437f96e7f1b8e63be18ec412428177
class Zipcode < ActiveRecord::Base belongs_to :county belongs_to :state validates :code, uniqueness: true, presence: true validates :state_id, :county_id, :city, presence: true scope :without_county, -> { where("county_id IS NULL") } scope :without_state, -> { where("state_id IS NULL") } scope :u...
Ruby
lib/generators/us_zipcode/templates/zipcode_model.rb
ChakreshwarSharma/us_zipcode
mit
638
31
codeparrot/github-code
10c8de2bdf5e615e75c9401ba2daf8fceb33fca5897aee3267e02443ec2b3aca
using System; using System.Collections.Generic; using FlatRedBall.IO; using Microsoft.Build.Evaluation; namespace FlatRedBall.Glue.VSHelpers.Projects { public class Xna4Project : VisualStudioProject { public Xna4Project(Project project) : base(project) { } public override stri...
C#
FRBDK/Glue/Glue/VSHelpers/Projects/Xna4Project.cs
GorillaOne/FlatRedBall
mit
1,715
67
codeparrot/github-code
ee6f6109d411344ca1b54a346c5aea6a5a7f311abe8da350ed2da78f596d0cb3
#include <lua.h> #include <lauxlib.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include "3rd/libjpeg/jpeglib.h" #include "ljpeg.h" #include "texture.h" #include "array.h" struct jpeg { int width; int height; uint8_t *buffer; }; static int _loadjpeg(const char *filename, stru...
C
quick/ljpeg.c
GraphicGame/quick-ejoy2d
mit
2,485
118
codeparrot/github-code
cf1b8845c5f3a69da77b9bd4ad5817982c84c6916c73249be20a5b32fa74a1a9
<?php /** * Twig renderer for Behat report */ namespace elkan\BehatFormatter\Renderer; use Twig_Environment; use Twig_Loader_Filesystem; use Twig_Filter_Function; class TwigRenderer implements RendererInterface { /** * Renders before an exercice. * @param object : BehatFormatter object * @retur...
PHP
src/Renderer/TwigRenderer.php
ElkanRoelen/behatformatter
mit
4,450
179
codeparrot/github-code
44189833cfccc52109a689c4948df499db156594ff473f699218777d520901cc
package com.avast.metrics.scalaapi import com.avast.metrics.api.{Naming, Monitor => JMonitor} import com.avast.metrics.test.NoOpMonitor trait Monitor extends AutoCloseable { def named(name: String): Monitor def named(name: String, name2: String, names: String*): Monitor def getName: String def meter(name: Str...
Scala
scala-api/src/main/scala/com/avast/metrics/scalaapi/Monitor.scala
avast/metrics
mit
908
31
codeparrot/github-code
fe31144ff23899c92d21611bb1ab82f75c49301c56e71df428a0ad34234e1175
/* * Copyright (C) 2012-2014 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
C
src/nessie_plugins/src/gz_ros.h
sonia-auv/gui_nessie
mit
13,568
394
codeparrot/github-code
bdcce175cd073b833d4c6182cfece3eaadcafa9061ab71b976ca2a4a7113e124
using System; using MiniCraft.Entities; using MiniCraft.Levels; using MiniCraft.Levels.Tiles; namespace MiniCraft.Items.Resources { public class FoodResource : Resource { private int heal; private int staminaCost; public FoodResource(string name, int sprite, int color, int heal, int s...
C#
MiniCraft/Items/Resources/FoodResource.cs
xposure/MiniCraft.NET
mit
807
31
codeparrot/github-code
6450ac53c3c287ae63a5597ce32faf492bc9c63fe3f2a5842b0413d076c785c0
'use strict'; module.exports = function (options) { var path = require('canonical-path'); var _ = require('lodash'); var mainBowerFiles = require('main-bower-files'); var main = mainBowerFiles(options); var scripts = [], stylesheets = []; var bowerDir = path.normalize(process.cwd() + '/bower_components');...
JavaScript
app/templates/docs/application/lib/bowerCommonFiles.js
groupe-sii/generator-gulp-angular
mit
945
41
codeparrot/github-code
2091cb3c88f29ee22ae8c75ffcd32212345c52b5a7a1bb964b0a44b78f9fcdb0
# Migration courtesy of Thoughtbot Migration Guide # https://github.com/thoughtbot/paperclip/blob/master/MIGRATING.md class ConvertToActiveStorage < ActiveRecord::Migration[5.2] require 'open-uri' def up # mariadb get_blob_id = 'LAST_INSERT_ID()' active_storage_blob_statement = ActiveRecord::Base.con...
Ruby
db/migrate/20191112210445_convert_to_active_storage.rb
YaleSTC/reservations
mit
2,459
86
codeparrot/github-code
49d8dd2a529e3cc6850f78ac59ccd74a10cde0b919a45030f8964eff48411948
/* ** xpm-read.c for MinilibX in ** ** Made by Charlie Root ** Login <ol@epitech.net> ** ** Started on Tue Dec 11 15:25:27 2001 olivier crouzet ** Last update Sun Mar 18 01:00:36 2012 mathias lang */ #include <string.h> #include <stdio.h> #include "mlx_int.h" extern struct s_col_name mlx_col_name[]; #define RET...
C
libs/mlx_lib/minilibx/src/mlx_xpm.c
Geod24/Nibbler
mit
6,643
315
codeparrot/github-code
e50b104827465c2d3d27244e61823496b2c9539e9b5c022f979b3f2738da10a6
#pragma once #include <string> #include "util/sfs.hpp" extern "C" { typedef struct hmac_ctx_st HMAC_CTX; } using uchar = unsigned char; namespace to { class master_key final { // HMAC context (SHA-512) HMAC_CTX* m_hmac; // Path to the key file std::string m_key_path; // Key file kept opened #ifdef _W...
C++
src/to_key.hpp
Nekotekina/TODOKANAI
mit
1,562
90
codeparrot/github-code
97785c25ec3a12e6b344ea5c314cea1a0659decbedf86f6146f3e7ddc507a495
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
Java
tomcat_files/6.0.43/InternalAprInputBuffer.java
plumer/codana
mit
21,560
852
codeparrot/github-code
75514ac9cbb6a93475f2724f51c3a926d338bec9dca28dadef50feb86d22c39a
/* SageFrame® - http://www.sageframe.com Copyright (c) 2009-2010 by SageFrame 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#
SageFrame/Modules/FeedBack/ContactUs.ascx.cs
SageFrame/SageFrame
mit
52,967
1,109
codeparrot/github-code
2dc41da873bfb2a94cd65ab0be09ed5cf1c02cc8a078a84f5891b2f69ca17747
package xyz.vanduuren.jgobs.types.composite; import xyz.vanduuren.jgobs.lib.ByteArrayUtilities; import xyz.vanduuren.jgobs.lib.Encoder; import xyz.vanduuren.jgobs.types.primitive.GobSignedInteger; import xyz.vanduuren.jgobs.types.primitive.GobUnsignedInteger; import static xyz.vanduuren.jgobs.lib.ByteArrayUtilities.n...
Java
src/main/java/xyz/vanduuren/jgobs/types/composite/WireType.java
boyvanduuren/jgobs
mit
1,874
60
codeparrot/github-code
e2b6e3d0377456f74a76081e7f6b5e57cc48cb4526565f87042dca89b361a1a6
import { Country } from '../jsvat'; export const poland: Country = { name: 'Poland', codes: ['PL', 'POL', '616'], calcFn: (vat: string): boolean => { let total = 0; // Extract the next digit and multiply by the counter. for (let i = 0; i < 9; i++) { total += Number(vat.charAt(i)) * poland.rule...
TypeScript
src/lib/countries/poland.ts
se-panfilov/jsvat
mit
774
31
codeparrot/github-code
1ab9c64b921272440b352934e258d56fdc7e50881adaaa97577cb73d2c15ccdd
import Configurator from '../configurator'; import Data from './data'; export default class State extends Configurator { constructor(config, data) { super(config); if (data) { this.configure(data); } } configure(data) { this.data = new Data(this.config).configure(this, data); } merge(...
JavaScript
src/app/state/index.js
kristianmandrup/markoa-app
mit
706
34
codeparrot/github-code
af37adebf9ebe1b10c3228543d1fd75905fd32b2edba8186eb44afd9fc0f930e
function createICS(classes) { var events = ''; // Events will be created repeating until this date var repeatUntil = '20150417T230000Z'; $.each(classes, function(index, val) { events += eventICS(val,repeatUntil); }); var str = 'BEGIN:VCALENDAR\n' + 'PRO...
JavaScript
calGen.1.1.jquery.js
DWMiller/Mohawk-CalGen
mit
6,469
208
codeparrot/github-code
fca5c6748e209398792394f4e2fd7f6602eebf89ea6fb879a94e65cb88665289
<?php namespace Canvas\Console\Commands; use Exception; use Canvas\Models\User; use Canvas\Meta\Constants; use Canvas\Helpers\SetupHelper; use Canvas\Helpers\ConfigHelper; use Canvas\Extensions\ThemeManager; use Illuminate\Support\Facades\Artisan; class Install extends CanvasCommand { /** * The name and sig...
PHP
src/Console/Commands/Install.php
cnvs/easel
mit
8,819
214
codeparrot/github-code
3f23c90549889da031a0440d5747fe142e4e98cb46de619fc7fac31c93f4d151
from lbrynet.core.Strategy import get_default_strategy, OnlyFreeStrategy from lbrynet import conf from decimal import Decimal class BasePaymentRateManager(object): def __init__(self, rate=None, info_rate=None): self.min_blob_data_payment_rate = rate if rate is not None else conf.settings['data_rate'] ...
Python
lbrynet/core/PaymentRateManager.py
zestyr/lbry
mit
4,661
128
codeparrot/github-code
92adbd4b98348bfaf688ff5077dd0973bd1ae345c63d2a2ef5118fd0ae2408ae
// Generated on 2014-09-24 using generator-chrome-extension 0.2.9 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load gru...
JavaScript
Gruntfile.js
captDaylight/distract
mit
12,420
409
codeparrot/github-code
5093486961dacc31784acb672260c7af74addc146391e3e541c468c667df2b6c
## # Utility methods ######################################################### ## save an object to a file with the given path function as_serialized(obj, path::String) iob = IOBuffer() serialize(iob, obj) open(path, "w") do io write(io, takebuf_array(iob)) end path end ## load an object b...
Julia
common_crawl_indexer/ccutils.jl
JeffBezanson/julia_examples
mit
1,059
37
codeparrot/github-code
906cbc87b6134a91a3bdfe9aab0da780652845827eb5e116ae0c62e7ba9570f7
using System; using System.Collections.Generic; using System.Text; namespace Messaging.Base.Routing { public abstract class Aggregate<TKey, TValue, TAggregatedValue> : IAggregate<TKey, TValue, TAggregatedValue> { private TKey _Key; public TKey Key { get { return _Key; } ...
C#
Messaging.Base/Routing/Aggregator.cs
evelasco85/Messaging-System-Components
mit
3,274
111
codeparrot/github-code
dfdb9ee6bed18bad7eb22704591ad27c2e9a35d12634fc3852fedba5b88dc4bf
$(window).load(function() { getCountCart(); getListaCarrinho(); if (frmLog === 'FALSE') ativaLoginho(); else ativaRegistrar(); }); $( "form#formRetiraCidade" ).on('submit',function( event ) { var form = this; var dados = $( this ).serialize(); var myUrl = $(form).attr('action'); v...
JavaScript
assets/templateV2/js/principal.js
MMello88/MisterSalgadinho
mit
10,867
341
codeparrot/github-code
cad2c17d22ae2a0392d3089f9ed48c56fc2298dad51516757b5c01077a68a61f
#include <sstream> #include <iomanip> #include <QOpenGLContext> #include <QShortcut> #include <QSettings> #include <QLabel> #include <QVector3D> #include "Application.h" #include "Viewer.h" #include "ui_Viewer.h" namespace { const QString SETTINGS_GEOMETRY ("Geometry"); const QString...
C++
source/Viewer.cpp
lanice/cg2sandbox
mit
3,356
122
codeparrot/github-code
f8156c126c1d6ab978825679f23a64933c4cf76fbf5f7e115c6bbd677de9dc9f
<?php namespace ebarbeito\JobeetBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use ebarbeito\JobeetBundle\Entity\Job; class JobType extends AbstractType { public function buildForm(FormBuilderIn...
PHP
src/ebarbeito/JobeetBundle/Form/JobType.php
ebarbeito/jobeet2
mit
1,070
38
codeparrot/github-code
bd2acd4037c8b9b026684224611a75aae8c62b61b34041a75f069b5d0995b42b
#!/usr/bin/env lua --[[ Dependencies ------------ - Lua - http://www.lua.org - lpeg - http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html - cosmo - http://cosmo.luaforge.net --]] -- usage: lua skilldoc-ng.lua skillppfile.ils -- output: skillppfile.html -- Work arround for a bug in the Lua package of Scientific Lin...
Lua
skilldoc-ng.lua
IFTE-EDA/SKILLdoc-ng
mit
19,657
706
codeparrot/github-code
8e0f11509499f57823d055e60741d662cd518170ff8b93bad894a2aa24bdd289
using CodeHub.Helpers; using CodeHub.Models; using CodeHub.Services; using CodeHub.Views; using GalaSoft.MvvmLight.Command; using GalaSoft.MvvmLight.Ioc; using GalaSoft.MvvmLight.Messaging; using Octokit; using System; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using Windows...
C#
CodeHub/ViewModels/SourceCodeViewmodel.cs
aalok05/CodeHub
mit
3,376
124
codeparrot/github-code
ded7e453215a6561b8a2ea917544bdbbeff1077227ad8bb418852475524cc701
<?php /* * This file is part of the Magallanes package. * * (c) Andrés Montañez <andres@andresmontanez.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Mage\Command\BuiltIn\Releases; use Mage\Task\TaskFactory; use M...
PHP
src/Command/BuiltIn/Releases/RollbackCommand.php
jmfarina/Magallanes
mit
4,679
141
codeparrot/github-code
6178de4a90ca2a3db14701a6b6d7a4a77cd29af400694bdc5faf5cf905dbd4e0
//---------------------------------------------------------------------------- // Anti-Grain Geometry (AGG) - Version 2.5 // A high quality rendering engine for C++ // Copyright (C) 2002-2006 Maxim Shemanarev // Contact: mcseem@antigrain.com // mcseemagg@yahoo.com // http://antigrain.com // // AGG is...
C
agg-2.5/include/agg_trans_viewport.h
jangko/nimAGG
mit
10,404
320
codeparrot/github-code
4c36d01fd7526c967736b080c7f2d8a5cc4a9c8fa51d488d289eb15492fab6f2
<?php /** * @package Grav\Common\User * * @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Common\User\Traits; use Grav\Common\Filesystem\Folder; use Grav\Common\Grav; use Grav\Common\Page\Medium\ImageMedi...
PHP
system/src/Grav/Common/User/Traits/UserTrait.php
getgrav/grav
mit
6,907
234
codeparrot/github-code
1fb2cbbb6f5ce87f4447210c4e4888d06de68fc0454006a1dc5e7b4920a8e9f2
/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ #include "Stroika/Foundation/StroikaPreComp.h" #if defined(WIN32) #include <afxadv.h> #endif #include "Stroika/Foundation/DataExchange/OptionsFile.h" #include "Stroika/Foundation/Debug/Trace.h" #include "Stroika/Foundation/Execution/Modul...
C++
Samples/LedIt/Sources/Options.cpp
SophistSolutions/Stroika
mit
9,155
262
codeparrot/github-code
a113247ad23be48cf1f1167af12a578d65a941fe573642b4ff5995736eae9069
using System; using NUnit.Framework; using Underscore.Action; namespace Underscore.Test.Action.Split { [TestFixture] public class SplitTest { private SplitComponent component; private string[] output; [SetUp] public void Initialize() { component = new SplitComponent(); output = new string[1]; } ...
C#
Underscore.Test/Action/Split/SplitTest.cs
konkked/Underscore.cs
mit
3,459
109
codeparrot/github-code
e23a543f36b9dafbe0e2a0c8138ee0e11ce97ee79afb050d7f7ccf100635d70d
<?php /** * Lite PDO adpater for Sqlite * * For more specification on methods of this class check the PDO class * can be find on the same directory at PDO.php * * @author Philippe Archambault <philippe.archambault@gmail.com> */ class DoSqlite { public $errorCode = ''; public $errorInfo = array(); ...
PHP
frog/libraries/do_lite_drivers/DoSqlite.php
albertobraschi/toad
mit
11,611
386
codeparrot/github-code
df41e0cba31df4eb7bd34f04dcd1e9197c5d084e172b520deeb06e07f89c116a
using UnityEngine; using System.Collections; using System.Collections.Generic; [AddComponentMenu("2D Toolkit/Camera/tk2dCamera")] [ExecuteInEditMode] /// <summary> /// Maintains a screen resolution camera. /// Whole number increments seen through this camera represent one pixel. /// For example, setting an object to ...
C#
Assets/TK2DROOT/tk2d/Code/Camera/tk2dCamera.cs
justdude/SpinTheBall
mit
28,141
766
codeparrot/github-code
84df06950fcd9f2e31de27bc054a4daa26c0d3d71ce23bb7251c80f31432f354
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using OSSC; namespace OSSC.Editor { /// <summary> /// Draw the custom editor inspector for SoundObject /// </summary> [CustomEditor(typeof(SoundObject))] public class SoundObjectEditor : UnityEditor.E...
C#
AudioController/Assets/OSSC/Source/Editor/SoundObjectEditor.cs
dimixar/audio-controller-unity
mit
2,099
67
codeparrot/github-code
cbe5fc0ae8ccc845c0ff318a905cf6181f6a9f24f2e67827764d65911bec648c
require_relative './stages' require_relative './errors' require_relative './provisioner' require 'jenkins_api_client' require 'nokogiri' require 'securerandom' class OperationCenterProvisioner < Provisioner::ProvisionerType class ForkingProvisioner < OperationCenterProvisioner def initialize(delta, configurati...
Ruby
lib/operationcenter.rb
palantir/nebulous
mit
5,886
194
codeparrot/github-code
d5ac72eda47d7dff738c990594a0bb38a3e75ef1037961eec5003fbd14504ff0
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\Bridge\Loco\Provider; use Psr\Log\LoggerI...
PHP
src/Symfony/Component/Translation/Bridge/Loco/Provider/LocoProviderFactory.php
Nyholm/symfony
mit
2,157
70
codeparrot/github-code
3c0ac49fce96893af8de26d73c52d538b9b26f2b27a8c372f6f8231d95bd9c72
package crypto import ( "errors" "crypto/rsa" "crypto/x509" "encoding/pem" ) func LoadRSAPrivateKey(key []byte) (*rsa.PrivateKey, error) { parsed_key, err := LoadPrivateKey(key) if err != nil { return nil, err } var rsa_private_key *rsa.PrivateKey var ok bool = false rsa_private_key, ok = parsed_key.(*rs...
GO
src/cyh/crypto/rsa.go
closeyourhead/learn-golang
mit
1,271
68
codeparrot/github-code
33d8ab9dddc1484cf19dcb6b39859484ff865b569741242df311dbc4b4883d74
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/corelib/io/qtextstream.cpp --> <head> <tit...
HTML
webserver/html/qtextstream.html
misizeji/StudyNote_201308
mit
80,101
629
codeparrot/github-code
830ea454ea10d22e37e22f9dea416755b4f1eb1f9749a00bc83cfde02ccffcc6
# This is from https://github.com/nhoizey/jekyll-postfiles/pull/9/commits/ce0532f9c8938fba197c075863ccf54475000ff2 require "jekyll" require "pathname" module Jekyll class PostFile < StaticFile # Initialize a new PostFile. # # site - The Site. # base - The String path to the <source>. # dir - T...
Ruby
_plugins/jekyll-postfiles.rb
AustenLamacraft/austenlamacraft.github.io
mit
2,805
95
codeparrot/github-code
b4751e873269c8d50d821b0d2e9f41deed7f4ffed488782794418deba8c83acb
<?php /** @api-call getAccident */ namespace methods; use core\MethodInterface; use db\ApkDb; use errors\Codes; class GetAccident extends GetList implements MethodInterface { private $id; private $result = ['l' => [], 'u' => []]; private static $listQuery = 'SELECT t1.id , UNI...
PHP
class/methods/GetAccident.php
rjhdby/motodtp.info_api
mit
2,882
95
codeparrot/github-code
0c2c9a5fc76537e5a4dd2536609fa31b2fa62022bb25d05af709cbb55dbe2815
/* this is Eveline - she now replaces cq.framework property */ (function(window, undefined) { var MOBILE = /FFOS|Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent); window.requestAnimationFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || wi...
JavaScript
js/lib/canvasquery.framework.js
dvcolgan/ludumdare28
mit
14,323
541
codeparrot/github-code
1e76331358edc28685d8b448c76bdffd8e8a5a82d283cffff33ef5482c2ab70f
/*numPass=7, numTotal=7 Verdict:ACCEPTED, Visibility:1, Input:"4 1 2 3 4 5 2 3 4 5 6", ExpOutput:"2 3 4 ", Output:"2 3 4 " Verdict:ACCEPTED, Visibility:1, Input:"3 2 6 9 3 4 6 8", ExpOutput:"6 ", Output:"6 " Verdict:ACCEPTED, Visibility:1, Input:"5 1 4 5 6 9 3 3 6 7", ExpOutput:"6 ", Output:"6 " Verdict:ACCEPTED, V...
C
dataset/Lab-12/3358/307785_correct.c
jyi/ITSP
mit
1,474
72
codeparrot/github-code
22a54c1a265d409e6e6330edb3b5362f88beece70f9a2e82042045a406da76d0
package com.github.stuartervine.awssugar.sqs; import com.amazonaws.services.sqs.AmazonSQS; import com.amazonaws.services.sqs.model.CreateQueueRequest; import com.amazonaws.services.sqs.model.Message; import com.amazonaws.services.sqs.model.ReceiveMessageRequest; import com.amazonaws.services.sqs.model.ReceiveMessageRe...
Java
src/com/github/stuartervine/awssugar/sqs/SqsQueue.java
stuartervine/aws-sugar
mit
1,792
48
codeparrot/github-code
110076816f8e3d29483cf8854eff6410ebc47a7b54a31ccad2a9c15c236762bf
var assert = require('assert'); var nodeql = require('..'); describe('squel integration tests', function(){ var actual, expected; var error = function(){ return "Expected: '"+expected+"' but was '"+actual+"'"; }; describe('select', function(){ it('select should be available', function(){ assert...
JavaScript
test/squel-integration-tests.js
e-r-w/nodeql
mit
2,326
82
codeparrot/github-code
506590a7c04708065d0f3058b05e82bf4174eb91eba6e22145544f72c8eae64f
var make = require('../src/ample').make; var play = require('../src/play'); var utils = require('../src/utils'); var loop = utils.loop; var barRest = utils.barRest; var melody = ['', `24,1: 'C/'b'-b'g/-'B'B ` ]; var harmony = ['', `24,1: 'E/'-e'd'b/'D-'E `, `12,1: E//-e//d//b//D/-E/ `, ]; var octaves = ['',...
JavaScript
songs/old/techno.js
jhwoodward/nompl
mit
697
39
codeparrot/github-code
23f666931d2dcbcae6d6d2dadd9d503544e44dfe686039d5dbcacae3a211f00f
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2013-2014 The Dollarcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "bitcoin-config.h" #endif #include "...
C++
src/qt/addressbookpage.cpp
markf78/dollarcoin
mit
9,751
310
codeparrot/github-code
762f9bdb6938a871d1628f86a83f897c3f5ce616fcbd68c3a2dab024e9b99f4e
import { deepMix, get, isFunction } from '@antv/util'; import { FIELD_ORIGIN } from '../constant'; import { Coordinate, IGroup, IShape } from '../dependents'; import { AnimateCfg, Data, Datum, GAnimateCfg, Point } from '../interface'; import { AnimateExtraCfg } from './interface'; import { getAnimation } from './anima...
TypeScript
src/animate/index.ts
antvis/g2
mit
5,853
269
codeparrot/github-code
3d56a5fa5cce88f3d5156335fc92e2fa09f053bc461088fc6a2c4d069221a25d
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>King of the Docs</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> ...
HTML
kingofthedocs/components/FooterComponent.html
TheThreateningHippopotamuss/KingOfTheSports
mit
40,201
840
codeparrot/github-code
d957f011b27fcf12468f8cfcd2b6de70419647c668f646956fc5168ded605a52
function Redirect(){ window.location="game.html"; } var robot = { //MY ROBOT PROPERTIES - WHAT YOUR ROBOT HAS colour: 'blue', name: 'Robo', type: '', vocabulary: [ "Hello, how are you?", "You look lovely today", "Have a good day", "Ever need a friend, I'll always be here buddy", "Nice c...
JavaScript
portfolios/american-corner/jade/robot.js
JamesBarnesBCX/Portfolios2016-Code4CT
mit
6,690
222
codeparrot/github-code
ee5dc6981c8c9e8f5b9df97f92f8d7e5006ebd27cbaeef943b56d0b20d9f0497
// @flow import url from "url"; import retryRequest from "retry-request"; import getLink from "get-link"; import wildcard from "wildcard-named"; import setPrototypeOf from "setprototypeof"; const defaultOptions = { noResponseRetries: 0, retries: 1 }; export default { /** * Registered callbacks. * * @t...
JavaScript
src/routing/router.js
Bartozzz/crawlerr
mit
3,466
138
codeparrot/github-code
33ff243c3a1ebb157bf9c9a9deef39f3e65a9a5288e57870c1d49bb5705fa073
module Morpher class Evaluator # Mixin for unary evaluators module Unary CONCORD = Concord::Public.new(:operand) PRINTER = lambda do |_| name indent do visit(:operand) end end # Return node # # @return [AST::Node] # # @api pr...
Ruby
lib/morpher/evaluator/unary.rb
nepalez/morpher
mit
1,599
80
codeparrot/github-code
061dbe48c7d4e431075b0fa0d3a8e0f4bcb067d9ee8d96b8f02eab900643f914
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
HTML
docs/api/PommaLabs.KVLite.Resources/CachePartitions/index.html
pomma89/KVLite
mit
12,012
327
codeparrot/github-code
68a76d1d43f4ebb41e85423bceac07ad7b72847492f9a62f9e4909bfc68c73f7
/* Copyright (C) 2019, 2020 Monomax Software Pty Ltd * * This file is part of Dnote. * * Dnote is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any ...
GO
pkg/clock/clock.go
dnote-io/cli
mit
1,646
66
codeparrot/github-code
c6cd7cf0ef7519419ac566a128943a4c1607cd0a5adda962eeee7fb6d4343788
<?php /** * Tine 2.0 * @package Tinebase * @subpackage Frontend * @license http://www.gnu.org/licenses/agpl.html AGPL Version 3 * @author Philipp Schüle <p.schuele@metaways.de> * @copyright Copyright (c) 2009-2011 Metaways Infosystems GmbH (http://www.metaways.de) * */ /** * abstract cli serv...
PHP
web/private/tine20/Tinebase/Frontend/Cli/Abstract.php
jodier/tmpdddf
mit
13,164
360
codeparrot/github-code
f441236e79fafb5a527f61dc32264d3cee1059445d57da1bb30d109341d6c217
package com.sksamuel.avro4s.github import com.sksamuel.avro4s.AvroSchema import org.scalatest.{FunSuite, Matchers} import scala.language.higherKinds sealed trait InnerTrait case class InnerTraitConcrete(v: Int) extends InnerTrait case class InnerTraitConcrete2(v: Int) extends InnerTrait case class Inner(t: InnerTra...
Scala
avro4s-core/src/test/scala/com/sksamuel/avro4s/github/GithubIssue281.scala
51zero/avro4s
mit
2,839
53
codeparrot/github-code
c68cb282a722f454ca8854164e7bd1fa556f3e5d35a6b6a62a8fe092a370c4ec
#define SERVER_PORT 7005 #define BACKLOG 5 #define BUFSIZE 1024 #define FILEBUFSIZE 8000 #define EXIT "exit" #define LIST "list" #define SEND "send" #define GET "get" #define CMD_GET 0 #define CMD_SEND 1 #define CMD_LIST "ls files_srv/share" char srvShareDir[BUFSIZE] = "./files_srv/share/"; char srvDownloadsDir[BUF...
C
server.h
Alex-Zielinski/COMP7005_A1
mit
1,451
63
codeparrot/github-code
0e4202815376b42be88cacf2793d2c2e302cbe7b29bf3bbf35d6a1fa431812aa
#include "gamestate.h" #include "gamemap.h" #include "json/json_spirit_reader_template.h" #include "json/json_spirit_writer_template.h" #include "json/json_spirit_utils.h" #include <boost/xpressive/xpressive_dynamic.hpp> #include <boost/assign/list_of.hpp> #include <boost/foreach.hpp> #include "headers.h" #include "h...
C++
src/gamestate.cpp
fsb4000/huntercoin
mit
45,362
1,536
codeparrot/github-code
b1ea1379bb15f57fd05c5c711d182a00ff91cb90b8100a461af557049323a246
/* * queue.h * * Created: 27/02/2015 11.51.03 * Author: xmas79 */ #ifndef QUEUE_H_ #define QUEUE_H_ template <typename T, uint8_t MAXLENGTH> class Queue { protected: uint8_t Count; uint8_t FirstItemIndex; public: T items[MAXLENGTH]; Queue<T, MAXLENGTH>() { Count = 0; FirstIte...
C
common/queue.h
xmas79/AVR
mit
1,499
88
codeparrot/github-code
4ce55781d42bf57752a67e10cb04bba3620849a0cdbbbffb8a3700fa0390714e
<?php namespace Valentin\firstPageBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Test * * @ORM\Table() * @ORM\Entity */ class Article { /** * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\Column(name="date", type=...
PHP
src/Valentin/firstPageBundle/Entity/Article.php
vproust/FilmsManager
mit
1,877
117
codeparrot/github-code
25b967761c445c1bb187ced2780959ff84996a51aee15c0c3756ccb14dcbe986
package com.microsoft.bingads.v12.reporting; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CampaignPerformanceReportColumn. * * <p>The following schema fragment specifies the expected content contained w...
Java
proxies/com/microsoft/bingads/v12/reporting/CampaignPerformanceReportColumn.java
bing-ads-sdk/BingAds-Java-SDK
mit
10,555
262
codeparrot/github-code
61b77abdfdc2c8ab96391acda84f4bb5c7beb0e54837c9f70e920af2a2d1fe73
package de.geeksfactory.opacclient.apis; import org.json.JSONException; import org.json.JSONObject; import org.jsoup.Jsoup; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.M...
Java
opacclient/libopac/src/test/java/de/geeksfactory/opacclient/apis/BiBer1992AccountTest.java
simon04/opacclient
mit
2,443
69
codeparrot/github-code
c362d52d7d34564d8f2e951dd38103414cde587178cb3bbe75283de1db419d5e
using System.ComponentModel; using System.Diagnostics; using System.Runtime.Serialization; namespace ArchsimLib { [DataContract(IsReference = true)] public class ZoneConstruction : LibraryComponent { public ZoneConstruction() { } public override string ToString() { return Serialization.S...
C#
ArchsimLibData/ZoneMaterials.cs
SolemmaLLC/ArchsimLibraryData
mit
2,796
79
codeparrot/github-code
703c5cce137ae23fdfdb0d33aa54912353881e78bcd808a37f40c792971b6b8f
/* Info: JavaScript for JavaScript Basics Lesson 3, JavaScript Loops, Arrays, Strings, Task 1, Number Checker Author: Removed for reasons of anonymity Successfully checked as valid in JSLint Validator at: http://www.jslint.com/ and JSHint Validator at: http://www.jshint.com/ */ 'use strict'; function printNumbers(input...
JavaScript
JavaScript Basics Course/3. JavaScript-Loops-Arrays-Strings/3. JavaScript-Loops-Arrays-Strings/scripts/numberChecker.js
Antoveravip/Software-University
mit
1,178
43
codeparrot/github-code
12fe36e9060c8fa2521a5c67c4768043211e9b0f7d433b8c164135d607fcb224
require 'libis-ingester' require 'set' require_relative 'labeler' require_relative 'base/mapping' module Libis module Ingester class LabelMapper < Libis::Ingester::Labeler include Libis::Ingester::Base::Mapping parameter label_field: 'Label', description: 'The name of the label fiel...
Ruby
lib/libis/ingester/tasks/label_mapper.rb
Kris-LIBIS/LIBIS_Ingester
mit
1,449
53
codeparrot/github-code
5d1e95feca65e58a90f4f13172eb100c9fa750e67370b78d44a689a05566ffd5
module Network.Skype.Protocol.ChatMessage where import Data.Typeable (Typeable) import Network.Skype.Protocol.Chat import Network.Skype.Protocol.Types data ChatMessageProperty -- | Time when the message was sent (UNIX timestamp). = ChatMessageTimestamp Timestamp -- | Skypename of the originator of the chatmess...
Haskell
src/Network/Skype/Protocol/ChatMessage.hs
emonkak/skype4hs
mit
4,864
155
codeparrot/github-code
ae8371328b23cdd06725acea31f0ac55eb3510016fbaed3f7c1cfbbdc244ae88
// ********************************************************************************** // The MIT License(MIT) // // Copyright(c) 2015 Konstantin Sokolov <konstantin.sokolov.mail@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentatio...
C++
hook/TelegramTranslitTranslator.cpp
k-sok/telegramtranslit
mit
3,906
143
codeparrot/github-code
9040f13261ebf24dedacb9c40031ac4f63c71388307cf7469bd05354320d304a
// server/app.js const express = require('express'); const path = require('path'); const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; const app = express(); var bodyParser = require('body-parser'); // Serve static assets app.use(express.static(path.resolve(__dirname, '..', 'build'))); app.use(bodyParser...
JavaScript
server/app.js
anthonydelgado/codehero
mit
1,271
34
codeparrot/github-code
140ca4a482958a743c6c7334bfb0628fd469999c1d60dbd494e5644ead0dd177
package logica; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; import java.net.UnknownHostException; import java.util.logging.Level; import java.util.logging.Logger; public class ServidorThread extends Thread { private Socket cliente; ...
Java
Proyecto-1-Corte/SocketsFinal/Servidor/src/logica/ServidorThread.java
AmauryOrtega/Sem-Update
mit
4,455
101
codeparrot/github-code
0db4477c873a8c69853e59043020eea9dacfa8d2ed89fb1979397558cd886fe1
BASE.require([ "app.Entity", "app.properties.Position", "app.properties.Size", "app.properties.Collidable" ], function () { BASE.namespace("app.systems"); var Entity = app.Entity; var Position = app.properties.Position; var Size = app.properties.Size; var Collision = app.propertie...
JavaScript
app/systems/BroadphaseCollisionDrawerSystem.js
jaredjbarnes/WoodlandCreatures
mit
3,806
118
codeparrot/github-code
6b19e20bb77fbb89e583350536123cafe5187af123b7978a6159e8357866fc9f
var uid = require('uid-safe').sync; var logger = require('./logger')('[Interface][session]'); var cookie = require('./cookie'); //cookie的name var KEY = 'IF_SID'; //cookie签名信息 var DEFAULT_SECRET = 'DEF_INTERFACE_SECRET'; //默认session的存活时间,单位分钟 var DEFAULT_MAX_AGE = 20; //保存session的容器 var sessions = Object.create(null...
JavaScript
builder/v8/lib/session.js
wanglei8381/interface
mit
1,653
86
codeparrot/github-code
61d1279f2875c4977c411c89510a55a3383a02cf4ef5ce1e1c93817060487aed
// @flow import cx from 'classnames'; import * as React from 'react'; type Props = { className: ?string, close: number, date: Date, high: number, low: number, open: number, width: number, x: Function, y: Function, }; const OHLC = (props: Props) => { const {className, width, x, y} = props; const...
JavaScript
src/OHLC.react.js
ericgio/r-d3
mit
1,071
60
codeparrot/github-code
be2f4a477df6384346fca4dea5b216d404037e50af7a0105abed49ed9c25d06c
#pragma warning disable S1210 // "Equals" and the comparison operators should be overridden when implementing "IComparable" // See README.md => Sortable namespace Qowaiv.Financial; public partial struct Currency { /// <summary>Describes the currency United Arab Emirates dirham (AED).</summary> public static r...
C#
src/Qowaiv/Financial/CurrencyConstants.cs
Qowaiv/Qowaiv
mit
30,828
711
codeparrot/github-code
f4fe07e0a44115228d06d032836cefc26095e3a932a87ac29415ea4efc609422
package edu.psu.compbio.seqcode.gse.tools.seqdata; import java.io.*; import java.sql.*; import edu.psu.compbio.seqcode.gse.datasets.general.*; import edu.psu.compbio.seqcode.gse.datasets.seqdata.*; import edu.psu.compbio.seqcode.gse.datasets.species.*; import edu.psu.compbio.seqcode.gse.tools.utils.Args; import edu.p...
Java
src/edu/psu/compbio/seqcode/gse/tools/seqdata/CreateAlignment.java
shaunmahony/seqcode
mit
9,043
192
codeparrot/github-code
11aa72db1ada497ffa736387cdeed4ed9c74b159f256bfc04fc6a195f450d989
package testutil import ( "reflect" "runtime" "testing" "time" "google.golang.org/appengine/aetest" ) // TestContainer is test container. type TestContainer struct { t *testing.T inst aetest.Instance tests []testing.InternalTest } // NewTestContiner return test container. func NewTestContiner(t *testin...
GO
testutil/container.go
koichirokamoto/gko
mit
1,564
76
codeparrot/github-code