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
fef67d25f28562936161252621393189cac40a226e57c21d2cc8c159729a2922
package uk.gov.dvla.vehicles.presentation.common.pages import org.openqa.selenium.WebDriver import org.scalatest.selenium.WebBrowser.click import org.scalatest.selenium.WebBrowser.Element import org.scalatest.selenium.WebBrowser.find import org.scalatest.selenium.WebBrowser.go import org.scalatest.selenium.WebBrowser....
Scala
common-test/test/uk/gov/dvla/vehicles/presentation/common/pages/FeedbackFormPage.scala
dvla/vehicles-presentation-common
mit
1,646
40
codeparrot/github-code
24d4fdb23a73f9af8d2af25945bcec78623c1fad8fb9de9e6dbe45ba4791dc4e
package Models.Structure; import Model.Structure.BoardGame; import org.junit.Test; import static org.junit.Assert.*; /** * Created by Peter on 13-Nov-16. */ public class TestBoardGame { @Test public void testEqualsWithTwoObjectExactlyTheSame() { BoardGame game1 = new BoardGame("Agricola",31260,1,5,30,150,...
Java
Test/Models/Structure/TestBoardGame.java
PeterThorsen/bggUtilities
mit
2,280
62
codeparrot/github-code
3033e2210d2a20c89555529591b98da88eb020dfd541d3793fe610783de8138b
<?php class GPSession extends GPObject { const UID = 'uid'; private static $config; private static $session; public static function init() { self::$config = GPConfig::get(); $json_with_hash = idx($_COOKIE, self::$config->cookie_name, ''); $json = '[]'; if ($json_with_hash) { if (!GPSec...
PHP
graphp/core/GPSession.php
meirmsn/graphp
mit
2,038
87
codeparrot/github-code
706b8e0331a8ae37bb541d03d4ff2cae710b58349823530b40244ab4fbd02e11
using System; using System.Collections.Generic; using Grpc.Core; #if USE_GRPC_NET_CLIENT using Grpc.Net.Client; #endif namespace MagicOnion.Unity { /// <summary> /// Provide and manage gRPC channels for MagicOnion. /// </summary> public interface IGrpcChannelProvider { /// <summary> ...
C#
src/MagicOnion.Client.Unity/Assets/Scripts/MagicOnion/MagicOnion.Unity/IGrpcChannelProvider.cs
neuecc/MagicOnion
mit
3,714
101
codeparrot/github-code
efcbe5d8c3f5691dd0c505f948e467677b85616fb5577d7637b1bfa7a328245f
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The BitCoin developers // Copyright (c) 2011-2014 The RonPaulCoin developers // Copyright (c) 2013-2014 The RonPaulCoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensourc...
C++
src/walletdb.cpp
corefork/ronpaulcoincore
mit
30,802
968
codeparrot/github-code
0b6bcb242709bfb736b5dcb864d520ffc8fc0b0b688ac16812ffdfc2a901c58b
#include "common.h" #include "constants.h" #include "primitives.h" #include "primitives-objects.h" #include "primitives-arithmetics.h" #include "primitives-fileStreams.h" #include "objectMemory.h" #include "objectMemory-objects.h" #include "objectMemory-smallIntegers.h" #include "objectMemory-characters.h" #include "co...
C
src/primitives.c
mib/smalltalk-vm
mit
7,410
256
codeparrot/github-code
0c204a50b57be8f270963ff6cc87e923777f44442ff1a46e130fde5910334bd1
/** * @memberof GL * @class A WebGL sphere. * @name Sphere * @param {number} x X coordinate. * @param {number} y Y coordinate. * @param {number} z Z coordinate. * @param {number} latitudeBands Latitude bands. * @param {number} longitudeBands Longitude bands. * @param {number} radius The sphere radius. * @prop...
JavaScript
src/gl/sphere.js
emnh/mdx-m3-viewer
mit
3,897
123
codeparrot/github-code
d3aa2a4d0c6660d103a37b9ab023d4d74ef6fff31393409aaac261249e02c621
<html lang="en"> <head> <title>Named Address Spaces - GNU Compiler Collection (GCC) Internals</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Compiler Collection (GCC) Internals"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index....
HTML
toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/gccint/Named-Address-Spaces.html
ChangsoonKim/STM32F7DiscTutor
mit
9,269
167
codeparrot/github-code
c354a08e8a4cef356daf941eef4307018a950baecfafcd891fa409b1439c8b49
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include "log.h" #include "conf.h" #include "ext-fwd.h" #include "upnp.h" /* * MINIUPNPC_API_VERSION is not defined for * miniupnp version 1.5 and older. Let's fix that. */ #ifndef UPNPDISCOVER_SUCCESS #define MINIUPNPC_API_VERSION 5 #end...
C
src/upnp.c
mwarning/KadNode
mit
6,040
206
codeparrot/github-code
3dae2e52e574e87bb30c749a36d69473c6fe2a9b89341cef372b1b8458744828
import React, { ChangeEvent } from 'react' import styled from 'styled-components' import { X as XIcon } from '@styled-icons/feather' interface Props { dataAttributeName: string entriesSelected: string[] ActiveEntry: typeof React.Component onPress: (entry: string) => void } export class EntrySelectedLi...
TypeScript
src/common-ui/GenericPicker/components/EntrySelectedList.tsx
WorldBrain/WebMemex
mit
1,912
70
codeparrot/github-code
94978e4eb53fbfaed0c11d3e1d0ab150100668ec2691f3617ca053bd2af22276
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos2d-x.org Permission is hereby granted, f...
C
cocos/platform/apple/CCFileUtils-apple.h
ecmas/cocos2d
mit
2,993
81
codeparrot/github-code
3a63d9da0ed3cf79fa82d85113c170d8b2c00b31a5f03ec4c506da6b6f6787b1
package com.idunnolol.sotm.data; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.preference.PreferenceManager; import android.util.JsonReader; import android.util.Pair; import android.util.SparseIntArray; import com.danlew.utils....
Java
project/src/main/java/com/idunnolol/sotm/data/Db.java
dlew/android-sotm
mit
22,095
693
codeparrot/github-code
b4c80839db5561dd77c8d7cf385b7e86f3f4d3fc0dd90ebbb2b49def0ed5e3c4
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AcademyPopcorn { public class IndestructibleBlock : Block { public new const string CollisionGroupString = "indestructible block"; public const char Symbol = '|'; public IndestructibleBloc...
C#
Programming/CSharp/OOP/AcademyPopcorn/AcademyPopcorn/IndestructibleBlock.cs
d-georgiev-91/TelerikAcademy
mit
753
31
codeparrot/github-code
b7271203d20ef43783c0f12bbf3c9d92635521ea6a36e356b9f2e337b91078e3
C_BOLD, C_REVERSE, C_RED, C_RESET = "\e[1m", "\e[7m", "\e[91m", "\e[0m" module GitPair CLARA_PEOPLE_SYNC_URL = "https://claralabs.com/people.json" VERSION = File.read(File.join(File.dirname(__FILE__), "git-pair", "VERSION")).strip C_BOLD, C_REVERSE, C_RED, C_RESET = "\e[1m", "\e[7m", "\e[91m", "\e[0m" cla...
Ruby
lib/git-pair.rb
clara-labs/git-pair
mit
5,418
198
codeparrot/github-code
d005b0c1346f9e4684090eb1112640097ebf0c6d54bccdd878c8788d041626d1
# demonstration of fitting a function to data from math import sqrt, pi import numpy from scipy.optimize import leastsq from numpy.polynomial import Polynomial from numpy.polynomial.chebyshev import Chebyshev from numpy.random import normal, uniform from matplotlib import pyplot colors='bgrcmy'*100 def fit_example(...
Python
osiris_leastsq_demo.py
bamford/astrobamf
mit
4,729
134
codeparrot/github-code
a654d4aa71c9db4f58986e0e9c6ba095b9a7d78a61279ea640cdbf15fe3aa2cf
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hardware: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.0/hardware/8.6.0.html
coq-bench/coq-bench.github.io
mit
7,082
168
codeparrot/github-code
0e5e08076b6785dbf9869a1c6417df6d9af1c89a9e47cea9f66c330f3aade5cf
import { Client, Server, IGBClientMessage, IGBServerMessage, IServiceHandle, IGRPCTree, } from './index'; import { buildTree, MockServer } from './mock'; let grpc = require('grpc'); let mockProtoDefs = buildTree(); let mockProto = grpc.loadObject(mockProtoDefs.lookup('')); describe('e2e', () => { let gr...
TypeScript
src/index.spec.ts
paralin/grpc-bus
mit
3,100
114
codeparrot/github-code
1ee758b95638bc22150c8c88f775786c8eccfb7e56152779ef9cd68d1df472f3
package org.cru.godtools.translate.client.onesky; import com.google.common.base.Throwables; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import org.cru.godtools.translate.client.TranslationStatus; import javax.ws.rs.core.Response; import java.math.BigDecimal; /*...
Java
src/main/java/org/cru/godtools/translate/client/onesky/OneSkyTranslationStatus.java
CruGlobal/godtools-api
mit
2,079
65
codeparrot/github-code
774bb879cc12830b2da07a75e6e576df13b8facd31b86861e88b2bda2450f39e
/** * @author jahting / http://www.ameco.tv/ */ function test_Triangulator() { var testData = new PolygonTestdata(); function test_triangulate_polygon_details( inDataName, inExpectedMonoChains, inDebug ) { var example_data = testData.get_polygon_with_holes( inDataName ); var expectedTriangList = testData.get...
JavaScript
test/TriangulatorTest.js
jahting/pnltri.js
mit
8,199
130
codeparrot/github-code
bc4b893537f220ea304919d0ca153579d496f00a7175be2cc090c325006c9bf6
{-# OPTIONS -Wall -Werror #-} import Control.Applicative import Control.Exception import Control.Monad import Data.List import System.Directory import System.Environment import System.IO -- dist .lib include main :: IO () main = getArgs >>= write where write (dist : lib : inc : _) = readFile dist >>= writeIncludes ...
Haskell
pragma-maker-old.hs
MichaeGon/pragma-maker-for-LLVM
mit
1,604
50
codeparrot/github-code
984fa5518b57c0ffa3c6ee2ca589562803f4a800bbc26862f4925e553aca704f
import string import random import time from collections import namedtuple import redis # Python 3 compatibility string_type = getattr(__builtins__, 'basestring', str) try: basestring except NameError: basestring = str Lock = namedtuple("Lock", ("validity", "resource", "key")) class CannotObtainLock(Exce...
Python
redlock/__init__.py
idjaw/redlock-py
mit
3,073
100
codeparrot/github-code
9f81fd09ce56f1f29dea6d2643d7758332dbc18d1b83bdd8f85a14cfa61c131a
/*----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the public // domain. The author hereby disclaims copyright to this source code. */ #include "MurmurHash3.h" /* Note - The x86 and x64 versions do _not_ produce the same...
C
ext/libmurmur3/MurmurHash3.c
abrandoned/rumbles
mit
7,720
269
codeparrot/github-code
38199f0df8983ea56057fb9d665651f5565e3f6750c0e72e8e917277b13726e1
{% macro link(view, label) -%} {% if not view is string %} {% set url = url_for(view.pop("view"), **view) %} {% else %} {% set url = url_for(view) %} {% endif %} {{ html_tag("a", href=url, **kwargs) }} {% if caller %}{{ caller() }}{% else %}{{ label }}{% endif %} </a> {%- en...
HTML
frasco/templating/macros.html
frascoweb/frasco
mit
1,843
62
codeparrot/github-code
2040057c044ea49b23666f74e73c8af03b52f833712c0d148720622e5d95d7b0
package com.lastsunday.bouns; import java.util.Vector; import com.hitdetection.RectDetection; import com.lastsunday.domain.Entity; import com.lastsunday.domain.GameData; import com.lastsunday.domain.MoveStatus; import com.lastsunday.domain.plane.Plane; public abstract class Bonus extends Entity { public ...
Java
src/com/lastsunday/bouns/Bonus.java
lastsunday/Plane
mit
1,749
83
codeparrot/github-code
747c7310dd96c3df91313f3ee08fc1aa8c8b6e4309eff27ff46240805f6cee60
import http from 'http'; import {promisify} from 'util'; import {ExecutionContext, Macro} from 'ava'; // eslint-disable-line ava/use-test import is from '@sindresorhus/is'; import tempy from 'tempy'; import FakeTimers from '@sinonjs/fake-timers'; import got, {Got, ExtendOptions} from '../../source/index.js'; import cre...
TypeScript
test/helpers/with-server.ts
sindresorhus/got
mit
4,007
128
codeparrot/github-code
37c929c75a46b74bbf7bbafc5be35a045694988b19729f38932193f7b99bf593
using System.Collections.Generic; using System.Linq; namespace MudDesigner.MudEngine.Commanding { public class CommandingConfiguration : ICommandingConfiguration { private List<IAdapter> adapter; private IEnumerable<IActorCommand> actorCommands; public CommandingConfiguration(IComman...
C#
Source.old/MudEngine.Adapter.Commanding/CommandingConfiguration.cs
MudDesigner/MudDesigner
mit
1,143
44
codeparrot/github-code
fa920c09abc6bdba94be77c5900b4f80f20fe93b3896d5addfc3a31d51c98efd
/** * The MIT License (MIT) * * Copyright (c) 2015 Mickael Jeanroy * * 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 ...
JavaScript
src/angular-sync-interceptor.js
mjeanroy/angular-sync
mit
3,622
112
codeparrot/github-code
b9bd937c75f0ec8a6b0b012f62d7b7f9699b77b6fcaec43165680b81bdceb90a
using System; using hw.DebugFormatter; namespace Reni.FeatureTest.Helper { sealed class TargetSetData : DumpableObject { internal readonly string Target; internal readonly string Output; internal TargetSetData(string target, string output) { Target = target; ...
C#
src/Reni/FeatureTest/Helper/TargetSetData.cs
hahoyer/reni.cs
mit
1,442
53
codeparrot/github-code
84d35ac94800ad0f24ac6cd2eb7d5acf85da32d58dd742366818473aad5b2e3b
#!/bin/bash set -e # Retrieve the openss configuration directory OPENSSL_DIR=$(openssl version -d | sed "s/OPENSSLDIR: //" | sed "s/\"//g") #PARAMETER parsing if [ "$1" = "config" ]; then CHANGE_CNF="true" else CHANGE_CNF="false" fi if [ "$1" = "customconfig" ]; then CUSTOM_CNF="true" else CUSTOM_CNF="fals...
Shell
bin/newca.sh
ddt-tdd/openssl-pki
mit
1,255
53
codeparrot/github-code
ae75b2a1102a2991d595856ff4318ee2a3694baac57398ff311a85d4f7aef70f
/* backgrid http://github.com/wyuenho/backgrid Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors Licensed under the MIT license. */ /** HeaderCell is a special cell class that renders a column header cell. If the column is sortable, a sorter is also rendered and will trigger a table refresh afte...
JavaScript
src/header.js
kirill-zhirnov/backgrid
mit
10,355
371
codeparrot/github-code
a56a6ada2fb47e0acba8fe9230ccf28171ac8cc76ba57addbcc304727c40bff4
namespace Octopost.Model.Validation { using System; public class PropertyName : IEquatable<PropertyName> { public static readonly PropertyName Empty = new PropertyName("NONE"); internal PropertyName(string propertyName) => this.Name = propertyName; public string Name ...
C#
Octopost.Model/Validation/PropertyName.cs
ThomasGassmann/Octopost
mit
3,880
114
codeparrot/github-code
e2a51468fa06681a101b1235b51a16616bdcc7f8ef51b4175c688293dd2a09a9
import lib.jadsl.collections.list.*; import lib.jadsl.collections.data.vector.*; import java.util.ArrayList; import java.util.Random; /** * Created by Pascal Jarod Kuthe on 28/04/2016. * Copyright (c) <2016> <Pascal Jarod Kuthe> * Permission is hereby granted, free of charge, to any person obtaining a copy of this...
Java
K_Means/K_Means.java
JarodCoding/MachineLearningTechniques
mit
6,413
145
codeparrot/github-code
f61b1ab68312c1909b2de217e5821b597fb6b9ded1afa5cd5ed1bf63163ca0ec
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import, unicode_literals __all__ = ['_ladder', 'get_acf', 'get_integrated_act', 'thermodynamic_integration_log_evidence'] import numpy as np def _ladder(betas): """ Convert an arbitrary iterable of float...
Python
ptemcee/util.py
willvousden/ptemcee
mit
4,906
167
codeparrot/github-code
c17b50a644aee6c572eb6ccbbef3cae49c31530ff0599cb3a15357df47191616
/** * Copyright (C) 2010 Johannes Weißl <jargon@molb.org> * License: your favourite BSD-style license * * git clone http://github.com/weisslj/cpp-optparse.git * * This is yet another option parser for C++. It is modelled after the * excellent Python optparse API. Although incomplete, anyone familiar to * optpar...
C
OptionParser.h
quantum5/cowsay
mit
11,454
308
codeparrot/github-code
2e2ab44ccdfd469af291a2c49d86f428d6508f55d6e62923c7fe292965010e26
#include "addressbookpage.h" #include "ui_addressbookpage.h" #include "addresstablemodel.h" #include "optionsmodel.h" #include "bitcoingui.h" #include "editaddressdialog.h" #include "csvmodelwriter.h" #include "guiutil.h" #include <QSortFilterProxyModel> #include <QClipboard> #include <QMessageBox> #include <QMenu> ...
C++
src/qt/addressbookpage.cpp
goldrushcoin/GoldRushCoin
mit
11,923
391
codeparrot/github-code
3e11707fc1386d25627c9ff85b6f762db0b61adeb92d11f9628a19231952fd96
<?php namespace SysadminBundle\Entity; use SysadminBundle\Enum\TypeYesNo; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Fresh\DoctrineEnumBundle\Validator\Constraints as DoctrineAssert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; //use Symfony\Componen...
PHP
src/SysadminBundle/Entity/User.php
karenyov/baseSymfony
mit
4,302
196
codeparrot/github-code
6fd51aaff1c3d323b89b2eb2c0b7480488393c951c30000232d7612b36c62ad9
/* * The MIT License (MIT) * * Copyright (c) 2017 socraticphoenix@gmail.com * Copyright (c) 2017 contributors * * 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, * in...
Java
src/main/java/com/gmail/socraticphoenix/randores/network/server/packet/RandoresBeginDataTransferRequest.java
Randores/Randores2
mit
2,097
57
codeparrot/github-code
c4bb01630734c9fc08903065b52172e272355383d05e35ff730f4cf28d611573
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2019 The Syndicate Ltd developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit...
C++
src/wallet/rpcdump.cpp
SyndicateLtd/SyndicateQT
mit
20,390
547
codeparrot/github-code
d8395c24a4189839f0c71b4abb7817f202c0a19559eb7faf1c0359b41b76b4e6
import { ChangeEvent } from 'react'; import { c } from 'ttag'; import isTruthy from '@proton/shared/lib/helpers/isTruthy'; import { Address } from '@proton/shared/lib/interfaces'; import { DropdownActions, Select } from '../../components'; interface Props { addresses: Address[]; addressIndex: number; onAd...
TypeScript
packages/components/containers/keys/AddressKeysHeaderActions.tsx
ProtonMail/WebClient
mit
1,625
53
codeparrot/github-code
89e2c850bf4973fa6d5decf2bf437824298c0b30a0630c079a159b772f216c5f
import AppDispatcher from '../../dispatcher/AppDispatcher'; import { EventEmitter } from 'events'; import SampleConstants from '../../constants/core/constant'; import assign from 'object-assign'; const CHANGE_EVENT = 'change'; let counter = 0; const SampleStore = assign({}, EventEmitter.prototype, { saveCount: fun...
JavaScript
templates/stores/store.js
rajikaimal/flux-cli
mit
837
37
codeparrot/github-code
440d19775fac05745e944e6bca72741b98c08b8c32701e0c816ca2d4cddbe99f
package de.SweetCode.SteamAPI.method.methods; import de.SweetCode.SteamAPI.SteamHTTPMethod; import de.SweetCode.SteamAPI.SteamHost; import de.SweetCode.SteamAPI.SteamVersion; import de.SweetCode.SteamAPI.SteamVisibility; import de.SweetCode.SteamAPI.interfaces.ISteamWebAPIUtil; import de.SweetCode.SteamAPI.method.Stea...
Java
src/main/java/de/SweetCode/SteamAPI/method/methods/GetSupportedAPIList.java
sweetcode/SteamAPI
mit
1,080
33
codeparrot/github-code
2d38e303b19c4abe04b8727ac0552f9daee7c6767f2b06a027b3b1f1b94f0225
<?php namespace Modules\Necrolab\Models\Users\Beampro\Database; use \Modules\Necrolab\Models\Users\Beampro\UserTokens as BaseUserTokens; use \Modules\Necrolab\Models\Users\Beampro\Database\RecordModels\BeamproUserToken as DatabaseBeamproUserToken; class UserTokens extends BaseUserTokens { protected static...
PHP
models/users/beampro/database/usertokens.class.php
tommy-bolger/necrolab
mit
3,661
102
codeparrot/github-code
45cbf5ce60b5d1e4617c76e3c5aac6181e4a5873b053500d9f117cd429faabd5
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { /** * {@inheritdoc} */ public function init() { // Please read http://symfony.com/doc/2.0/book/installation.html#configuration-and-setup bcscale(3)...
PHP
app/AppKernel.php
figaromedias/cestquoilidee
mit
7,051
165
codeparrot/github-code
6fd4d8935af99605eb7ea1bdb5565e66a1fab742261c5ac54ef2f80630e43426
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using ...
C#
ASP.NET-Web-Forms/01. Introduction-to-ASP.NET/SumNumbersASPMVC/App_Start/IdentityConfig.cs
primas23/Homeworks
mit
4,338
110
codeparrot/github-code
2086be4ef30ba8e9e95ce4e818089c179cdfcbf42895a223ae13475a63043463
// // PTSettingsViewController.h // PhotoTimeline // // Created by Karijuku Keisuke on 2013/05/16. // Copyright (c) 2013年 Keisuke Karijuku. All rights reserved. // #import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> #import "PTAppDelegate.h" @class PTViewController; @interface PTSettingsViewController : U...
C
PhotoTimeline/PTSettingsViewController.h
ifapmzadu6/Photti-oldversion
mit
820
32
codeparrot/github-code
b52c73494569e2f9a394d7e2389ab0e6db51d85c79f29885f2b495b6960a396d
const window = require('global/window') const css = require('sheetify') const html = require('bel') const framework = require('./framework') const { getToken, saveToken, subscribeToken, unsubscribeToken } = require('./api') const { urlBase64ToUint8Array } = require('./util') const serviceWorkerSupported = 'serviceWork...
JavaScript
client/app.js
rahatarmanahmed/nanopush
mit
6,457
214
codeparrot/github-code
7842d13c5b7bec7231501eac1363127068afff20125e620419444caafea3e5f8
/** * Creates an instance of a PusherChatWidget, binds to a chat channel on the pusher instance and * and creates the UI for the chat widget. * * @param {Pusher} pusher The Pusher object used for the chat widget. * @param {Map} options A hash of key value options for the widget. */ function PusherChatWidget(pushe...
JavaScript
web/pusher/js/PusherChatWidget.js
dysan1376/hospi
mit
9,284
276
codeparrot/github-code
cffe56a06cc2d7b021b6b7811aa5b0792e26f4b0f3ca39e23ac85105b1611564
using Aurora.Controls; using Aurora.Settings; using System; using System.IO; using System.Windows; using System.Windows.Controls; namespace Aurora.Profiles.QuantumConumdrum { /// <summary> /// Interaction logic for Control_QuantumConumdrum.xaml /// </summary> public partial class Control_QuantumConumd...
C#
Project-Aurora/Project-Aurora/Profiles/QuantumConumdrum/Control_QuantumConumdrum.xaml.cs
antonpup/Aurora
mit
3,822
123
codeparrot/github-code
6050881f896eb4c9793656acad68e4c1df2c467035165595b0d2518ccc332a94
import { assert } from 'chai'; import { AbstractRule } from '../../src/rules/abstract-rule'; import { StringInstance } from '../../src/rules/string-instance'; describe('StringInstance', () => { let stringInstance: StringInstance; beforeEach(() => { stringInstance = new StringInstance(); }); ...
TypeScript
test/rules/string-instance.ts
cknow/awesome-validator
mit
2,230
57
codeparrot/github-code
6650dc5e014f9cccf3fe947aae7b789860f5795a199d3e660caa49682ea95f0c
require 'matrix' class Team < ActiveRecord::Base has_many :users has_many :requests, foreign_key: "source_id" has_one :submission #validates_inclusion_of :waitlisted, :in => [true, false] #validates :waitlisted, inclusion: { in: [ true, false ] } attr_accessor :num_pending_requests, :declared, ...
Ruby
app/models/team.rb
DerekHs/enrollme
mit
5,645
211
codeparrot/github-code
88308da0e2489d5b6f85716a917cd390216af5de9f0ff7e99ea6aa037dbc3e4a
const path = require('path'); const webpack = require('webpack'); const merge = require('webpack-merge'); const pkg = require("./package.json"); const CleanWebpackPlugin = require('clean-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-p...
JavaScript
client/webpack.config.js
mszalbach/IssuerSelfService
mit
3,009
107
codeparrot/github-code
4c117ff43dfabea425d017e50f42623e3a2145bb911ae55a667aa2b6c7e546a2
var logger = require('pomelo-logger').getLogger(__filename); var pomelo = require('pomelo'); //var dataApi = require('../util/dataApi'); //var Player = require('../domain/entity/player'); //var User = require('../domain/user'); //var consts = require('../consts/consts'); //var equipmentsDao = require('./equipmentsDao')...
JavaScript
game-server/app/dao/chatDao.js
iamcactus/rpg
mit
1,376
45
codeparrot/github-code
3bea1f3799dc426ab12b190d0aea29fe6bbc30da2d4261cc5acda49394ced680
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Xml; using System.Text; using System.Diagnostics; //using Newtonsoft.Json; using Textfyre.VM; namespace Zifmia.FyreVM.Service { public class EngineWrapper { private Engine vm; ...
C#
Textfyre.Zifmia.Service/Textfyre.Zifmia.Service/Textfyre.Zifmia.Service/EngineWrapper.cs
logicmoo/Zifmia
mit
10,059
329
codeparrot/github-code
a6017e7d1153b9b7cdbd99d4e48b244ac3c73e4a7538ac420f825ed55bf06de4
var _ = require('lodash'); var moment = require('moment'); var MongoClient = require('mongodb').MongoClient; var CONNECT_STRING = 'mongodb://localhost:27017/travel'; /** * @param {Number} hotelId * @param {Function} */ exports.findOne = function (hotelId, callback) { if(!hotelId) return null; MongoClient.con...
JavaScript
services/hotel.js
Deathsteps/FTravel
mit
1,778
88
codeparrot/github-code
a95907bb2ed942f203afd0c437a5d78ac3ff3f85a0e7f79cb9ebdf7dc4b2e36a
import path from "path"; import fs from "fs"; import {execSync} from "child_process"; import _ from "lodash"; import yaml from "js-yaml"; import dust from "../lib"; import chalk from "chalk"; const fixtures = yaml.safeLoad(fs.readFileSync(path.join(__dirname, "./fixtures.yml"), "utf8")); process.stdout.write("removin...
JavaScript
scripts/fixtures.js
coryroloff/dustjs-ast
mit
1,553
51
codeparrot/github-code
49e11955b0df780dd4c840ae31dc95828047012dc08780e0c6fc8116aec63a13
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>rsa: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.9.1/rsa/8.7.0.html
coq-bench/coq-bench.github.io
mit
6,999
167
codeparrot/github-code
1d42616a39db661727dccb292f8125004334ae1af39c31789cc187a5a0fd58f5
import fetch = require('node-fetch'); import ProcessOutAuthenticationError = require('../errors/processoutauthenticationerror'); import ProcessOutNotFoundError = require('../errors/processoutnotfounderror'); import ProcessOutValidationError = require('../errors/processoutvalidationerror'); import ProcessOutIn...
TypeScript
src/networking/response.ts
ProcessOut/processout-node
mit
2,837
101
codeparrot/github-code
f881926d9e59ccab5a0dc6468d69d9429ae2b044988b2f416bdd925150a660b3
/* * Additional function for wysiwyg.html * Written by ThemePixels * http://themepixels.com/ * * Built for Katniss Premium Responsive Admin Template * http://themeforest.net/category/site-templates/admin-templates */ jQuery().ready(function() { jQuery('textarea.tinymce').tinymce({ // Location of TinyMCE...
JavaScript
assets/admin/js/wysiwyg.js
wikitis/babesdirect
mit
2,293
59
codeparrot/github-code
bf5eea5c03170a7cb509a16a6ffc4387c3479e105bbda42c71c12f64c441c15f
package block; import java.awt.Color; public class Block { private int x; private int y; private Color color; public Block(int x, int y, Color color) { this.x = x; this.y = y; this.color = color; } public Block(int x, int y) { this(x, y, Color.RED); } public Block(Color color) { this(0, 0); }...
Java
Jetris/src/block/Block.java
Christian1984/Jetris
mit
1,152
77
codeparrot/github-code
a379b38f9520ed182397aafdd5c8ca6cc43c562647884fc79a1ed03a8be6bfdc
package br.uff.ic.oceano.core.tools.metrics.util; import br.uff.ic.oceano.util.file.PathUtil; import java.io.File; import java.io.FileWriter; import java.io.IOException; import org.jdom2.Document; import org.jdom2.JDOMException; import org.jdom2.input.SAXBuilder; import org.jdom2.output.Format; import org.jdom2.output...
Java
core/src/main/java/br/uff/ic/oceano/core/tools/metrics/util/XMLUtil.java
gems-uff/oceano
mit
1,291
49
codeparrot/github-code
7ad8d4e07e50428d021495f431f6187b2791cc775bd70091b5f6145fc16fbe82
// +build !noprom package prometheus import ( "fmt" "sort" "github.com/lomik/graphite-clickhouse/finder" "github.com/prometheus/prometheus/pkg/labels" "github.com/prometheus/prometheus/prompb" ) var prompbMatchMap = map[prompb.LabelMatcher_Type]finder.TaggedTermOp{ prompb.LabelMatcher_EQ: finder.TaggedTermEq...
GO
prometheus/matcher.go
lomik/graphite-clickhouse
mit
3,408
136
codeparrot/github-code
c9a5acab7cdb02fd0b06c8662d0d686820ea4dac66dc4905f9e00ee37d06c570
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Database Caching Cla...
HTML
tienda/user_guide/database/caching.html
SaraAlamillo/hermano2
mit
11,743
220
codeparrot/github-code
ecc252d2b205358df69435782a0d360ed6555fdd3f3e765039491f2ffdfff8d7
/** * Pauses test execution until the document's `readyState` property === 'complete'. */ module.exports = { 'name': 'waitForDoc', 'fn': function(options) { var _ = require('underscore'); options = options || {}; _.defaults(options, { 'timeout': 60000 }); ...
JavaScript
plugins/wait_for_document.js
tkambler/selenium-runner
mit
724
33
codeparrot/github-code
39b73231a91c918036be448458c5290a065cc5058bb90df0224c7bab4278fed8
/* * Open Surge Engine * image.c - image implementation * Copyright (C) 2008-2010, 2012 Alexandre Martins <alemartf(at)gmail(dot)com> * http://opensnc.sourceforge.net * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
C
src/core/image.c
asirnayeef23/opensurge
mit
17,132
641
codeparrot/github-code
3222df15ab297663916d15d0f89f5314984dc5eaf10d4d4d384b2118fb36eddc
# validation: docker, functional tests for docker post installation function status_tests() { print_with_big_head "status_tests" print_command \ "docker info" \ "$( docker info )" print_command \ "docker ps" \ "$( docker ps )" } function verify_docker_image_pulls() { print_with_big_head "verif...
Shell
csap-core-service/src/main/resources/csap-templates/shell-scripts/a-test-docker.sh
csap-platform/csap-core
mit
2,142
98
codeparrot/github-code
2b2849b1168dcb3c11c7813446b97fe88423dea1c5b56b875fd890ea66b0b023
<?php /* * The file is part of the payment lib. * * (c) Leo <dayugog@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Payment; /** * @package Payment * @author : Leo * @email : dayugog@gmail.com * @date : 2019/3/3...
PHP
src/Payment.php
helei112g/payment
mit
794
41
codeparrot/github-code
d8ec00f6a54674273e4a9268887bc9baa1114d780dc737376f81c686b0f972f4
"""An example server using the CherryPy web framework. To run the example execute the command: python cp_server.py """ import os import optparse import logging import sys import cherrypy import amfast from amfast.remoting.cherrypy_channel import CherryPyChannelSet, StreamingCherryPyChannel class App(CherryPyCha...
Python
examples/streaming/python/cp_server.py
limscoder/amfast
mit
1,741
62
codeparrot/github-code
0ace9ac199e65b2e6d0664a1ea1070de605f920db5809cf7bfdfd4ae465e3885
/* Qdiffle MIT License Copyright (c) 2016 Barry DeZonia 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,...
C++
src/function/reciprocal_function.hpp
bdezonia/qdiffle
mit
1,667
57
codeparrot/github-code
8a09978f8c9c083ea8d98cff3b6632d78a5e8839ab46b84acac7609a3ace0877
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2019, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
PHP
system/libraries/Form_validation.php
nhatlang19/elearningONL
mit
37,926
1,593
codeparrot/github-code
774eea08c4a9dbea2b4690407a9428a6dcb40314c92397ea98040743307a2afc
import { GameMap } from './map'; import { clone } from './utils'; import { expect } from 'chai'; import { describe, it, beforeEach } from 'mocha'; import combatTestMapData from './test/combatTestMap'; let map: GameMap; describe('Combat Model', () => { beforeEach(() => { map = new GameMap(clone(combatTestMapDat...
TypeScript
packages/models/src/combat.test.ts
tomwwright/graph-battles
mit
2,546
61
codeparrot/github-code
ba2bd5a3b0d9a4067a452b8916d0abf7cd26b51443d7c3963a9fbcb0c335bc25
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace SmartFormat.Utilities { public static class TimeSpanUtility { #region: ToTimeString : /// <summary> /// <para>Turns a TimeSpan into a human-readable te...
C#
src/SmartFormat/Utilities/TimeSpanUtility.cs
scottrippey/SmartFormat.NET
mit
24,786
609
codeparrot/github-code
0f403554e924f8b87879db3adeb635c58d1af4947b01ebdc80da7cc7c648043e
<!doctype html> <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> <!-- Co...
HTML
talent/collectandarchive.html
gastongouron/gastongouron.github.io
mit
3,890
118
codeparrot/github-code
d6e3bb962b6eccc499ea7a16a2d0c9cf9d4da9447b9139e418505b371bc099c2
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Class template circular_list_algorithms</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../....
HTML
BOOST/boost_1_61_0/libs/intrusive/doc/html/boost/intrusive/circular_list_algorithms.html
calvinfarias/IC2015-2
mit
34,492
232
codeparrot/github-code
890936a93cc298286dd7843e681f6957044f61f1b006360f27300917d65ff73b
""" VerseBot for Reddit By Matthieu Grieger Continued By Team VerseBot regex.py Copyright (c) 2015 Matthieu Grieger (MIT License) """ import re def find_verses(message_body): """ Uses regex to search comment body for verse quotations. Returns a list of matches if found, None otherwise. :param message_bo...
Python
versebot/regex.py
Matthew-Arnold/slack-versebot
mit
2,107
75
codeparrot/github-code
9606dbafc581755afb83560eb868598f209a1f396076a0d02574f987ede04aa1
module Json2Qti # Example QTI # <presentation> # <material> # <mattext texttype="text/html">&lt;iframe id=&quot;mom987&quot; src=&quot;https://ohm.lumenlearning.com/OEAembedq.php?id=987&amp;jssubmit=1&amp;showscoredonsubmit=0&quot; style=&quot;width:100%;height:150px&quot;&gt;&lt;/iframe&gt;</mattext> ...
Ruby
lib/json2qti/ohm_embed.rb
lumenlearning/OpenAssessments
mit
2,639
79
codeparrot/github-code
079921720432ca939920ef14e4ede29d84256fb82ecce865341fced157e88df9
using System; using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; using System.Linq.Expressions; using System.Text; namespace DalSoft.Dynamic.DynamicExpressions { //Thanks and credit to http://www.codeproject.com/Articles/74018/How-to-Parse-and-Convert-a-Delegate-into-an-Expres ...
C#
DuckObject/DynamicExpressions/DelegateParser.cs
DalSoft/DuckObject
mit
21,766
520
codeparrot/github-code
f8240be314cfe49f734c709d43798933907cf74877ea93c636dbd340e4ff41b0
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdialog.h" #include "about...
C++
src/qt/bitcoingui.cpp
NodesForAll/live
mit
44,209
1,184
codeparrot/github-code
fefd56cc26ed8cf947e7ebe544e4fbc591420f3346d98ada036b81c5d8bf5d70
package org.ry8.CeaFrame.theme; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.BitmapShader; import android.graphics.Can...
Java
src/org/ry8/CeaFrame/theme/BeeBitmapDrawable.java
TodaShi/esy
mit
14,322
446
codeparrot/github-code
c1287b4c461c2491a450f1af163a67d5822da833c0f930279e5b738be632e1ce
@extends(config('laravel-media-module.views.media_category.layout')) @section('title') @if(isset($parent_media_category)) {!! lmcTrans("laravel-media-module/admin.media_category.media_category.{$operation}", [ 'parent_media_category' => $parent_media_category->name ]) !!} @el...
PHP
resources/views/media_category/operation.blade.php
erenmustafaozdal/laravel-modules-core
mit
8,841
201
codeparrot/github-code
5382a5ed7b7de62de883feaf3323debed5b48cae2ec9363679fc559f67653af7
'''Rest4 response helpers Response helper functions for Rest4 ''' import functools import json from flask import current_app, make_response, request from . import settings def output_json(func): @functools.wraps(func) def decorate(*args, **kwargs): result = func(*args, **kwargs) data, sta...
Python
flask_rest4/response.py
SquirrelMajik/flask_rest4
mit
2,232
79
codeparrot/github-code
33931dcd6d32a0c9e158faad8a7b3619ba64298cccbc38ddb4082f543c7e0c25
import os from typing import List, Tuple import psycopg2 from psycopg2.extensions import AsIs from slackclient import SlackClient api_token = os.environ.get('POINTY_APP_TOKEN') def check_all_scores(conn, team_id: str, retry: bool = True) -> List[Tuple[str, int]]: with conn.cursor() as cur: try: ...
Python
pointy/database/team.py
AlexLloyd1/pointy-mcpointface
mit
3,151
109
codeparrot/github-code
ef11561959185a1460f730ce19fb330d9967ad6d7c01577d9b940dfdaff5b654
// Tainting works by providing a function `taint` // that adds a dynamic taint to a value. Any operations // on that tainted value propagate the taint. /** begin tainting extension code **/ // standard unary and binary operations var unaryOps = { "-": function(x) { return -x; }, "+": function(x) { ...
JavaScript
examples/taint.js
disnet/sweet-virtual-values
mit
4,013
128
codeparrot/github-code
b1912444f59c4b3450bded0933b1d6879d13336991ce77319f567f266682d989
--- id: 28 title: Server-generated Javascript Responses date: 2013-12-21 layout: post --- DHH wrote an [article](https://37signals.com/svn/posts/3697-server-generated-javascript-responses) on Signal vs Noice on Server-generated Javascript Responses, which reminded of how to write good and _unobstructive_ javascrip...
Markdown
_posts/2013-12-21-Server-generated-Javascript-Responses.markdown
Jauny/jauny.github.io
mit
5,032
110
codeparrot/github-code
4107c957b8cd0129d716d9cb629dd7e27d7c6f79718918e3eda6dfac172dc78a
import { COUNTER_INCREMENT, increment, doubleAsync, default as counterReducer } from './counter' describe('(Redux Module) Counter', () => { it('Should export a constant COUNTER_INCREMENT.', () => { expect(COUNTER_INCREMENT).to.equal('COUNTER_INCREMENT') }) describe('(Reducer)', () => { it('Shoul...
JavaScript
src/routes/Counter/modules/counter.spec.js
arcsin037/RGPP-React
mit
3,989
126
codeparrot/github-code
c0a784fb627a93bf5db36af6587ea72b75cb83d3ff776141b219b1825e7373f9
\hypertarget{classAstar}{}\section{Astar Class Reference} \label{classAstar}\index{Astar@{Astar}} Class \hyperlink{classAstar}{Astar} The following class \hyperlink{classAstar}{Astar} aids in calculation of the the shortest path between the user input start and end point using \hyperlink{classAstar}{Astar} path plann...
TeX
docs/latex/d0/dfb/classAstar.tex
senthilarul/Midterm-APathPlanning
mit
28,160
585
codeparrot/github-code
f4bfc21359621225f6993df350c225bd3b29b120690e05874ad5639696963f76
'use strict' const _ = require('lodash') const Promise = require('bluebird') const SubstanceController = require('../controllers/SubstanceController') const ActionType = require('../enums/ActionType') const commands = [ { actionType: ActionType.Krappe, allowedInterfaces: ['irc'], textCommands: ['krappe...
JavaScript
services/modules/CommandParser.js
tty-krappe/krappelaarnio
mit
1,661
65
codeparrot/github-code
d6c16d19c7bfb0e40a123d482eac49820e46bfc951f32cce359f968f9b7be04f
<!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/OpenTl.Schema/TUpdates/84E98674.html
OpenTl/OpenTl.Schema
mit
11,045
281
codeparrot/github-code
ed60f57a4ee62c2e2117ec93f566fffbdccdcd0d036bbceaf4120cd3a4085862
<?php /* SensioDistributionBundle:Configurator/Step:secret.html.twig */ class __TwigTemplate_370a1b807c29ef3f7e8058f33a5e73f7915ee55ec89f467e23f32b029c308e80 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->load...
PHP
app/cache/dev/twig/37/0a/1b807c29ef3f7e8058f33a5e73f7915ee55ec89f467e23f32b029c308e80.php
pieplu/symfony2
mit
5,449
136
codeparrot/github-code
940b8b2721a996039151e9ba64b05ac7d961a2aca208cc07b5288803d8da3649
// UVa512 Spreadsheet Tracking (算法2) // Rujia Liu #include<stdio.h> #include<string.h> #define maxd 10000 struct Command { char c[5]; int r1, c1, r2, c2; int a, x[20]; } cmd[maxd]; int r, c, n; int simulate(int* r0, int* c0) { for(int i = 0; i < n; i++) { if(cmd[i].c[0] == 'E') { i...
C++
CodeBook/资料/紫书代码/ch4/UVa512b.cpp
Luoyayu/ACM
mit
1,791
65
codeparrot/github-code
496a24026661adf59d34a2fe90cf2b9f1bfc245c497e613422e2e644312f543e
#include "htime.h" #include "HHostAddress.h" #include "HLog.h" CHE_NAMESPACE_BEGIN vector<string> HTime::server_name{ "203.117.180.36", "131.107.1.10", "202.120.2.101" }; #ifdef WIN32 #include <windows.h> HTime::HTime(OutputPrecision precision /*= NormalSecond*/) :tStart(new _LARGE_INTEGER), tEnd(new _LA...
C++
CHE/kernel/htime.cpp
CUITCHE/CHE.Network.cpp
mit
4,414
204
codeparrot/github-code
00fbbf853131b8b4768135a8781da8211598de78bd657ccc93795fc160de1cc4
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Globalization; using System.Linq; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Repository { public Repository() { } public Repository(l...
C#
Octokit/Models/Response/Repository.cs
octokit/octokit.net
mit
5,696
167
codeparrot/github-code
c87a22b81dbd806c2153a96d05ae5325dee5dae41f12bcc1b36d668c707b6786
// Saves options to chrome.storage function save_options() { var enable = document.getElementById('enable').checked; var block_60fps = document.getElementById('block_60fps').checked; var battery_only = document.getElementById('battery_only').checked; chrome.storage.local.set({ enable: enable, block_60fp...
JavaScript
options.js
erkserkserks/h264ify
mit
1,357
40
codeparrot/github-code
cf087daeee9ea773a0c045e4f528d2342fff7c271eb924314da5fc044263706d
package io.wearturilo.dependencyinjection; import com.google.gson.Gson; import com.octo.android.robospice.SpiceManager; import dagger.Module; import dagger.Provides; import io.wearturilo.BuildConfig; import io.wearturilo.network.WearturiloRetrofitSpiceService; import javax.inject.Named; import javax.inject.Singleton; ...
Java
Application/src/main/java/io/wearturilo/dependencyinjection/NetworkModule.java
piotrdubiel/wearturilo
mit
1,966
72
codeparrot/github-code
53ea3f4c297972529f2155639f614c2db10cec72eb944d8947713c457920c1bb
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>Hackathon - Random turku tour</title> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" /> <script src="ht...
HTML
index_2.html
koopee/randomTour
mit
7,853
187
codeparrot/github-code
c58d324606e793b801025f25e5d5cc9a8ceb62e44a4dc9933a52a9c2fa615598
package main import ( "fmt" "io/ioutil" "log" "os" "os/signal" "github.com/99designs/aws-vault/keyring" "github.com/99designs/aws-vault/prompt" "gopkg.in/alecthomas/kingpin.v2" ) var ( Version string ) type Ui struct { *log.Logger Error, Debug *log.Logger Exit func(code int) } type logWriter st...
GO
main.go
dgoodlad/aws-vault
mit
4,754
145
codeparrot/github-code
497760dec293f7a4e6a8ea4135a4b1833b2c74958b56b60cd67e2922a44ed7dc
using BizHawk.Common; namespace BizHawk.Emulation.Cores.Nintendo.NES { public sealed class CPROM : NES.NESBoardBase { //generally mapper 13 //state int chr; public override bool Configure(NES.EDetectionOrigin origin) { //configure switch (Cart.board_type) { case "MAPPER013": AssertPrg(3...
C#
Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/CPROM.cs
superusercode/RTC3
mit
1,379
70
codeparrot/github-code
c1217edbe7f3f57706b042b5f35d5c9bff66aa7fb5547642835b5eede908d8a8
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using Xamarin.Forms.Internals; namespace Xamarin.Forms.GoogleMaps.Bindings { [Preserve(AllMembers = true)] public sealed class TakeSnapshotBehavior : BehaviorBase<Map> { public static ...
C#
Source/Xamarin.Forms.GoogleMaps.Bindings/TakeSnapshotBehavior.cs
nuitsjp/Xamarin.Forms.GoogleMaps.Bindings
mit
1,413
44
codeparrot/github-code
149965a553bff123703e71b249a101a21d953f43e1446ca95050a40df6b0e2cc
#!/usr/bin/env python # Metarunlog, experiment management tool. # Author: Tom Sercu # Date: 2015-01-23 from metarunlog import cfg # NOTE cfg is modified by MetaRunLog._loadBasedirConfig() with custom configuration. from metarunlog.exceptions import * from metarunlog.util import nowstring, sshify, _decode_dict, _decode...
Python
metarunlog/__init__.py
tomsercu/metarunlog
mit
22,170
473
codeparrot/github-code
6b3024c1bd2e8ddccef90b8dffa9061c7333758fcc508c0c65a0c7d5785609c7
#include <zmq.hpp> // https://github.com/zeromq/cppzmq #include "ipcmsg.pb.h" // protobuf message #include <stdio.h> #include <sstream> #include <unistd.h> void send_message(zmq::socket_t *socket, pb::Message *msg) { std::string msg_str; zmq::message_t message; msg->SerializeToString(&msg_str); messag...
C++
examples/c++_ipc/cppmain.cc
strahlex/pymachinetalk
mit
1,814
64
codeparrot/github-code
4a1685f73be7c159407c14ff35427f7e5167315651d0e31631fb05f57805e22e
var noop = function noop () {}; // HOF Wraps the native Promise API // to add take a shouldCancel promise and add // an onCancel() callback. var speculation = function speculation (fn) { // Don't cancel by default var cancel = ( arguments.length > 1 && arguments[1] !== undefined ) ? arguments[1] : Promis...
JavaScript
src/index.js
ericelliott/speculation
mit
1,324
51
codeparrot/github-code