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
d433985b54cfe9c7ebe09cf12083dcf0371e12a7222f8696650e07e80418bcc9
package com.piggymetrics.user.domain; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.NamedQuery; @Entity @NamedQuery(name = "User.findByName", query = "select name,address from User u where u.name=?1") pu...
Java
user-service/src/main/java/com/piggymetrics/user/domain/User.java
yiping999/springcloud-pig
mit
1,115
59
codeparrot/github-code
a23f221b0121b2a092ffad6ee3a7b1cee1f46220c9831788362caea43b4b5e8d
package com.hkm.urbansdk.gson; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import java....
Java
urbanSDK/urbansdk/src/main/java/com/hkm/urbansdk/gson/NullStringToEmptyAdapterFactory.java
HKMOpen/UrbanDicSDK
mit
1,266
43
codeparrot/github-code
a3b2b8accd9236b330c4e66a7ce1e293af60d9c361154e42343dde1bbdf7287f
package net.h31ix.travelpad.api; import net.h31ix.travelpad.LangManager; import org.bukkit.Location; import org.bukkit.entity.Player; /** * <p> * Defines a new Unnamed TravelPad on the map, this is only used before a pad is named by the player. */ public class UnnamedPad { private Location location = nul...
Java
src/main/java/net/h31ix/travelpad/api/UnnamedPad.java
gravitylow/TravelPad
mit
884
45
codeparrot/github-code
72955b71f95effab10568e744db62f4367c1be32c9ea4734d844bfd2fd5c0644
-- Faster lookup for built-in globals. local find = string.find local fmt = string.format local cut = string.sub local error = error -- The heart of the matter. local function spliter(str, delimiter) -- Handle special cases concerning the delimiter parameter. -- If the pattern is nil, split on contiguous whitespac...
Lua
src/spliterator.lua
mbmccormick/lua-split
mit
1,131
43
codeparrot/github-code
038fb44c5c3facbe52f939e925fe0bdb1e8865c1f27bb63ffc9294169e05a127
<!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>🐾 Teach Brian How to Code</title> <link rel="stylesheet" href="stylesheets/blog-stylesheet.css" type="text/css"> </head> <body> <div class="sub-div"> <p><a href="../index.html">Back to Home</a></p> </div> <main> <h6>Create jQuery Libra...
HTML
blog/t17-jquerylib.html
sarahkwak/sarahkwak.github.io
mit
6,282
154
codeparrot/github-code
dac4c4c276bbefbc2a13c1cad96e1f593100577f52792c3ea74b1f5c837334f1
import { createPlugin } from 'draft-extend'; // TODO(mime): can't we just use LINK? i forget why we're using ANCHOR separately..., something with images probably :-/ const ENTITY_TYPE = 'ANCHOR'; // TODO(mime): one day, maybe switch wholesale to draft-extend. for now, we have a weird hybrid // of draft-extend/draft-c...
JavaScript
packages/hello-world-editor/plugins/Anchor.js
mimecuvalo/helloworld
mit
1,418
42
codeparrot/github-code
0261df6193926ffe29299b21e3f22a684a2fc62c09f491253b22cfe868fda139
public class Prime { private Prime() { } public static void printPrimes(int max) { boolean[] flags = sieveOfEratosthenes(max); System.out.println("== Primes up to " + max + " =="); for (int i = 0; i < flags.length; i++) { if (flags[i]) { System.out.println("* " + i); } } } ...
Java
src/Prime.java
sadikovi/algorithms
mit
1,245
54
codeparrot/github-code
ef45cc45cf5878bfe7eed44c9480ebb2d017d501d36dc212dcad55f9f0f2a3f8
import Vector from '../prototype' import {componentOrder, allComponents} from './components' export const withInvertedCurryingSupport = f => { const curried = right => left => f(left, right) return (first, second) => { if (second === undefined) { // check for function to allow usage by the pipeline func...
JavaScript
vector/util/misc.js
senritsu/grid-utils
mit
1,138
35
codeparrot/github-code
ced45b098ae877384720c23f4896984ca4e90bcebb3f3b39fe45da5a705b7abf
import babylon from '../../babel-parser' import Documentation from '../../Documentation' import resolveExportedComponent from '../../utils/resolveExportedComponent' import classDisplayNameHandler from '../classDisplayNameHandler' jest.mock('../../Documentation') function parse(src: string) { const ast = babylon().pa...
TypeScript
packages/vue-docgen-api/src/script-handlers/__tests__/classDisplayNameHandler.ts
vue-styleguidist/vue-styleguidist
mit
1,242
46
codeparrot/github-code
5acc189dd7dcd1efc55972ce44b61e7b5a048211738df11e1e61dfa692298857
'use strict'; angular.module('mpApp') .factory( 'preloader', function($q, $rootScope) { // I manage the preloading of image objects. Accepts an array of image URLs. function Preloader(imageLocations) { // I am the image SRC values to preload. this.imageLocations = imageLocations...
JavaScript
app/scripts/services/preloader.js
59023g/mpdotcom
mit
6,121
236
codeparrot/github-code
06ad62a1cb9483fee25d879eb6cb11659557d28991a26112882300385c4131ee
package com.sonnytron.sortatech.pantryprep.Fragments.IngredientFilters; import android.os.Bundle; import com.sonnytron.sortatech.pantryprep.Fragments.IngredientsListFragment; import com.sonnytron.sortatech.pantryprep.Models.Ingredient; import com.sonnytron.sortatech.pantryprep.Service.IngredientManager; import java...
Java
app/src/main/java/com/sonnytron/sortatech/pantryprep/Fragments/IngredientFilters/ProteinFragment.java
PantryPrep/PantryPrep
mit
872
35
codeparrot/github-code
fd893e40d5aab03162223a065d2c638818c8fb60fdaf8763595bffc80f087f08
# frozen_string_literal: true module ProxyFetcher module Providers # FreeProxyList provider class. class Proxypedia < Base # Provider URL to fetch proxy list def provider_url "https://proxypedia.org" end # [NOTE] Doesn't support filtering def xpath "//main/ul/li...
Ruby
lib/proxy_fetcher/providers/proxypedia.rb
nbulaj/proxy_fetcher
mit
1,241
49
codeparrot/github-code
3d49b630a74e5db7d4249283a27af678a1b46e0459ed8830f6cac94645a0933b
/* json2.js 2013-05-26 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO NOT CONTROL. Th...
JavaScript
ExpressForms/ExpressFormsExample/Scripts/json2.js
DanielLangdon/ExpressForms
mit
16,984
486
codeparrot/github-code
a775687833f0a51b10c9ca1acf38f53a675ab2cd7777e31f2286c028bf237c50
package main import ( "fmt" "io" "log" "net/http" "os" "time" "github.com/elazarl/goproxy" ) const ( AppendLog int = iota ReopenLog int = iota ) var ( emptyResp = &http.Response{} emptyReq = &http.Request{} ) type LogData struct { action int req *http.Request resp *http.Response user string ...
GO
log.go
thekvs/microproxy
mit
3,286
176
codeparrot/github-code
bc4ffa8eecbbc9f6731e8dc105c34b9256a49d15d39c0cd49705d0c611c32c69
var packageInfo = require('./package.json'); var taskList = [{name:'default'},{name:'delete'},{name:'build'},{name:'copy'},{name:'minify'}]; var gulpTalk2me = require('gulp-talk2me'); var talk2me = new gulpTalk2me(packageInfo,taskList); var del = require('del'); var gulp = require('gulp'); var runSequence = require('r...
JavaScript
Gulpfile.js
belgac/bs-fa-boolean-directive
mit
2,022
66
codeparrot/github-code
5ea58944cb266edaeb57e7910a124d6601d9458abe01a7687ccf40deeb4d6103
package tunnel import ( "bytes" stdcrypto "crypto" "encoding/base64" "errors" "fmt" "net" "net/url" "os" "os/user" "path/filepath" "reflect" "regexp" "runtime" "strconv" "strings" "github.com/Lafeng/deblocus/auth" "github.com/Lafeng/deblocus/crypto" "github.com/Lafeng/deblocus/exception" "github.co...
GO
tunnel/config.go
Lafeng/deblocus
mit
14,293
616
codeparrot/github-code
402def8df1b10568ac6d3b1d34cd499cba95c55a6ec77aba21f1946b16b7930d
<?php /* File: class/class_api.php Created: 11/10/2016 at 1:34PM Eastern Time Info: Creates a class file to use as an API for modders who don't wish to use the main game code! Author: TheMasterGeneral Website: https://github.com/MasterGeneral156/chivalry-engine */ if (!defined('MONO_ON')) { exit; } class use...
PHP
upload/class/class_api_user.php
MasterGeneral156/chivalry-engine
mit
25,835
590
codeparrot/github-code
0de36d323c10d9c0c4a2f6623d65e63db6227d7a303f0fecb31855f19859186f
package com.cinnamon.object; import com.cinnamon.system.ComponentFactory; import com.cinnamon.system.Config; import com.cinnamon.utils.Shape; /** * <p> * Provides {@link BodyComponent} lookup when computing physics updates. * </p> */ public abstract class BodyFactory extends ComponentFactory<BodyComponent, Ob...
Java
com/cinnamon/object/BodyFactory.java
joltix/Cinnamon
mit
2,496
108
codeparrot/github-code
81b71f11fa5ea979c7bf70d321f958f3cfe2e275a0a87fefa866ec13b0fc065b
// // Adapted from: // http://stackoverflow.com/questions/22330103/how-to-include-node-modules-in-a-separate-browserify-vendor-bundle // var gulp = require('gulp'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var bust = require('gulp-buster'); var str...
JavaScript
gulpfile.js
pafalium/gd-web-env
mit
2,513
90
codeparrot/github-code
3c4484f37b9f1222d0d6b02d45366ffe1a664f5a8e70b6523b8fb31879824ebe
#include "spritesheet.hpp" ////////// // Code // // Initializing the SpriteSheet sizes. void SpriteSheet::init(int cols, int rows, int width, int height) { this->cols = cols; this->rows = rows; this->width = width; this->height = height; } // Making a SpriteSheet from an existing SDL_Texture. Sp...
C++
src/spritesheet.cpp
crockeo/hc
mit
1,860
63
codeparrot/github-code
2c224707d1dfdeb8c9d49a241cc3e35b84067684b7ad349a443f769280ff730b
package blogr.vpm.fr.blogr.activity; import android.view.ActionMode; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.widget.EditText; import blogr.vpm.fr.blogr.R; import blogr.vpm.fr.blogr.format.AlignCenterTagsProvider; import blogr.vpm.fr.blogr.format.AlignLe...
Java
app/src/main/java/blogr/vpm/fr/blogr/activity/PostContentEditionActions.java
vpmalley/tpblogr
mit
2,107
69
codeparrot/github-code
3835f4046a7ebbf4006fd32b1912ed46a7ba38c9ac392c8c27533d9a282b2101
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
HTML
_site/tags/index.html
galtubi91/galtubi91.github.io
mit
10,746
305
codeparrot/github-code
72c1a612b72e2aeac6b17b4dfc52bf1310203c81461d9a5530ad54da5a5fcd1c
<?php /* Template Name: WP Riddle Single Page */ ?> <!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="ie ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?>> <!--<![endif]-...
PHP
template/wpr_single.php
quietshu/wpriddle
mit
3,458
76
codeparrot/github-code
0650edfabfd5d374994b258db4b0f27006ea685323beafbffb806454704787b8
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Memoria.Prime.Text; namespace Memoria.Assets { public sealed class ExportFieldTags : FieldTags { private readonly KeyValuePair<Regex, String>[] _complexTags; public ExportFieldTags() ...
C#
Assembly-CSharp/Memoria/Assets/Text/Export/Fields/ExportFieldTags.cs
Albeoris/Memoria
mit
2,261
58
codeparrot/github-code
22e059caf78c16b9e4141d2a4b11c6361d52139e937e764cc94101201d8745ff
'use strict' if (!process.addAsyncListener) require('async-listener') var noop = function () {} module.exports = function () { return new AsyncState() } function AsyncState () { var state = this process.addAsyncListener({ create: asyncFunctionInitialized, before: asyncCallbackBefore, error: noop,...
JavaScript
index.js
watson/async-state
mit
1,118
47
codeparrot/github-code
967a91bf1954ff2c419e61060020e7bfe14209a84bfcef641ba4dfaf3b5de489
//===================================================================== // This sample demonstrates using TeslaJS // // https://github.com/mseminatore/TeslaJS // // Copyright (c) 2016 Mark Seminatore // // Refer to included LICENSE file for usage rights and restrictions //===============================================...
JavaScript
samples/simpleStreaming.js
mseminatore/TeslaJS
mit
1,453
56
codeparrot/github-code
f2bfbe1066e7f3df381e641c91f17258f396cda3fa4fd4050d288bc0f403341e
using DrinkCounter.Models; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Hosting; using Microsoft.Data.Entity; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace DrinkCounter { public class Startup { public St...
C#
Startup.cs
AlexandyZ/DrinkCounter
mit
2,148
59
codeparrot/github-code
e58c36946ec9678b4e3d45771b345b0ddd003cd3c08b92ed7b1ffb04a4570281
package com.onliquid.personalization; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import io.lqd.sdk.Liquid; import java.util.HashMap; public class MainActivity extends Activity { private Liquid lqd; protected void onCreate(Bundle bundle) ...
Java
personalization/src/main/java/com/onliquid/personalization/MainActivity.java
lqd-io/android-examples
mit
1,370
52
codeparrot/github-code
9e38ad7643ce56546aa4498b766cb62b2c4cb86f3f5f3a3d490a0f49a7bcaf0f
<?php class Question { private $connection; function __construct($mysqli) { $this->connection = $mysqli; } // Kõikide küsimustikude tõmbamine andmebaasist function getAllQuestionnaires($email){ $stmt = $this->connection->prepare("SELECT tap_questionnaires.id, tap_questionna...
PHP
app/class/Question.php
shxtov/TAP_kusitlused
mit
7,448
216
codeparrot/github-code
d4064ae296bfd00d8bbbb54e6287aaf1f321b7e2fe29c62a20f36d70e10d05e5
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Oakcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "merkleblock.h" #include "hash.h" #include "consensus/consensus.h" #inc...
C++
src/merkleblock.cpp
stratton-oakcoin/oakcoin
mit
6,736
182
codeparrot/github-code
07e34aa2fbd243e8360f81469724761cc44410281dd13c3492d4cca0ef2d7a57
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="search...
HTML
SDKs/VST3 SDK/vstgui4/vstgui/Documentation/html/search/variables_63.html
rcgilbert/csc344-wi14
mit
16,135
208
codeparrot/github-code
2afa4c899bcfdbe7df8bbf803a74e00e3691e3d4a1b8a2be198f73182af279d7
#include <cstdlib> #include <iostream> #include <vector> #include <sys/time.h> #include <omp.h> #include <hbwmalloc.h> using namespace std; double drand() { return double(rand()) / double(RAND_MAX); } double wctime() { struct timeval tv; gettimeofday(&tv,NULL); return (double)tv.tv_sec + (double)tv.tv_usec...
C++
attic/knl/tmp-04.cpp
nushio3/formura
mit
2,420
118
codeparrot/github-code
4d5ec11a150a56e5a1c6407dd041c6ac3a5a3b50cc8ed564617e4ddec9653a65
import java.util.HashMap; import java.util.Map; public class LeetCode171 { public int titleToNumber(String s) { char[] chars = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}; Map<Character, Integer> map = new HashM...
Java
leetcode/hashtable/LeetCode171.java
rayjun/awesome-algorithm
mit
817
33
codeparrot/github-code
ff81c0fe28921aeced0f459b4a0629b5c3c76d675f92c1c3f986476338f74c89
// Depends on jsbn.js and rng.js // Version 1.1: support utf-8 encoding in pkcs1pad2 // convert a (hex) string to a bignum object function parseBigInt(str,r) { return new BigInteger(str,r); } function linebrk(s,n) { var ret = ""; var i = 0; while(i + n < s.length) { ret += s.substring(i,i+n) + "\n"; ...
JavaScript
B593js/RSA.js
Wolfrax/Traffic
mit
3,146
128
codeparrot/github-code
643fa7cba9e9ef610a0aad55238ed2e8874d6464cb1db11daf0b9623da310887
package com.anderspersson.xbmcwidget.remote; import com.anderspersson.xbmcwidget.R; import com.anderspersson.xbmcwidget.xbmc.XbmcService; import android.app.PendingIntent; import android.appwidget.AppWidgetProvider; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.conten...
Java
XBMCWidget/src/com/anderspersson/xbmcwidget/remote/RemoteWidget.java
baluubas/XBMC-Widget
mit
2,278
51
codeparrot/github-code
f39d70067a5caf2e1e9b0e8afcc62ea5775b5d7e353838f213ff00cd85251eae
using System.Linq; using Android.Graphics; using Android.Widget; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using RoutingEffects = FormsCommunityToolkit.Effects; using PlatformEffects = FormsCommunityToolkit.Effects.Droid; [assembly: ExportEffect(typeof(PlatformEffects.LabelCustomFont), nameof(Routing...
C#
src/Effects/Effects.Android/Effects/Label/LabelCustomFont.cs
Depechie/FormsCommunityToolkit
mit
1,072
33
codeparrot/github-code
50cd591ffd6dfb588a16b0be11ef79a484f7996a3ebdcd262978b98b0c446572
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dblib: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.10.1/dblib/8.7.0.html
coq-bench/coq-bench.github.io
mit
6,903
165
codeparrot/github-code
3e6f6c4f0a2b0798f3e21279a8b916ad4de54cbdff862f744a20be42b0064e08
var ShaderTool = new (function ShaderTool(){ function catchReady(fn) { var L = 'loading'; if (document.readyState != L){ fn(); } else if (document.addEventListener) { document.addEventListener('DOMContentLoaded', fn); } else { document.attachEvent...
JavaScript
front/js/shadertool.js
w23/tool.gl
mit
52,669
1,585
codeparrot/github-code
d55be48a031345172446ae59686251b09756fc20df2d64c4363a21ae6204ccfd
import React, { PureComponent } from "react"; import { graphql } from 'gatsby' import Link from "gatsby-link"; import path from "ramda/src/path"; import ScrollReveal from "scrollreveal"; import Layout from "../components/Layout"; import "prismjs/themes/prism.css"; import styles from "./post.module.scss"; const getPos...
JavaScript
Example/blog/src/templates/post.js
EvKylin/Kylin
mit
1,870
80
codeparrot/github-code
c5c7436157dce6226004ccb32d12988a016f4a857ecd793f91dea9a7cfc18be0
package com.jikken2; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import android.annotation.SuppressLint; import android.app.Activity; import android.app.ProgressDialog; import android.os.AsyncTask; @SuppressLint("NewApi") public class ConnectDB_PP ...
Java
src/com/jikken2/ConnectDB_PP.java
000ubird/JikkenII
mit
2,487
119
codeparrot/github-code
f17c2e5f992d6e22e927631a8426c124ff7defa7c957ca2a22d2dce0dfee810d
import * as React from 'react'; import classNames from 'classnames'; import ResizeObserver from 'rc-resize-observer'; import { composeRef } from 'rc-util/lib/ref'; import { ConfigContext } from '../config-provider'; import devWarning from '../_util/devWarning'; import { Breakpoint, responsiveArray } from '../_util/resp...
TypeScript
components/avatar/avatar.tsx
icaife/ant-design
mit
6,437
235
codeparrot/github-code
2f9b1ace3fbe4901d9703738a10bb668a88240eb8d6a284d6a11a73ea2510a40
import React, {Component} from 'react'; import {View, Text} from 'react-native'; import {xdateToData} from '../../interface'; import XDate from 'xdate'; import dateutils from '../../dateutils'; import styleConstructor from './style'; class ReservationListItem extends Component { constructor(props) { super(props)...
JavaScript
src/agenda/reservation-list/reservation.js
eals/react-native-calender-pn-wix-extended
mit
2,094
73
codeparrot/github-code
b2b2e2c5a3ab266c05ba2eb896a088bf751ee91ce33dc67f44077530fe1bdc71
""" Visualization module. """ import numpy as np from matplotlib import animation import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes from mpl_toolkits.axes_grid1.inset_locator import mark_inset from pca import create_handles i...
Python
projects/reports/terrorist_attacks/project/visualization.py
mdeff/ntds_2017
mit
8,333
241
codeparrot/github-code
cc3b066e70eca4286173ac58bba11647d2ad8aa3831d8a022590f9ce8e10d65e
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
HTML
_layouts/home.html
budzianowski/budzianowski.github.io
mit
2,386
72
codeparrot/github-code
c5b78c8bd5366941673f642ef12a32d25b951c5deb99c20383bd8f88e5d1dfb8
#!/usr/bin/perl $usage = qq{ rnaseqIds.pl <rnaseq-data> <rnaseq-data> e.g. Ctr1_Lt_0h.txt or AAAAAA.txt }; die "$usage" unless @ARGV == 1; $file = $ARGV[0]; $med4 = 0; $phm2 = 0; open (FILE, $file) or die "No likey the file $file!"; @data = <FILE>; close FILE; foreach $line (@data) { chomp $lin...
Perl
cyanophage-light-dark-transcriptomics/code/rnaseqIds.pl
cuttlefishh/papers
mit
947
55
codeparrot/github-code
85b94be2f5442a0f36e4d4398f453e75b59dea85b7521ebbb4f8d0a8a3fdbada
/********************************************************************* ** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved. ** ** This file is part of the POSIX-Proactor module. ** ** @file SslChannel.h ** ** ** @author Alexander Libman <libman@terabit.com.au> ** ** ** *********************************...
C
3rd/Terabit/app/IOTerabit/SSL/SslChannel.h
binghuo365/BaseLab
mit
2,795
95
codeparrot/github-code
57755862efcbbf0f1088679538c03904d9177815aff2d812989cfafb935c5082
package de.tum.in.www1.artemis.repository; import java.util.List; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; im...
Java
src/main/java/de/tum/in/www1/artemis/repository/ModelingSubmissionRepository.java
ls1intum/ArTEMiS
mit
3,605
55
codeparrot/github-code
3f3fb17289b202da3e386dac35205b1aacec02a0f583387fea441682e6175c45
/* * Qt4 facoin GUI. * * W.J. van der Laan 2011-2012 * The Facoin Developers 2011-2012 */ #include "facoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdialog.h" #include "aboutdialog.h" #include "clientmode...
C++
src/qt/facoingui.cpp
facash/facoin
mit
35,491
983
codeparrot/github-code
a851a1fb16124255e3a7ad227ca0d2111153deafde9b5f588540ca5af8790247
package edu.psu.compbio.seqcode.gse.ewok.nouns; import java.util.Vector; import edu.psu.compbio.seqcode.gse.datasets.species.Gene; public class GeneDomainTimeSeries { public static final int window = 30000; private Gene gene; private Vector<GeneDomainData> data; public GeneDomainTimeSeries(Gene...
Java
src/edu/psu/compbio/seqcode/gse/ewok/nouns/GeneDomainTimeSeries.java
shaunmahony/seqcode
mit
897
40
codeparrot/github-code
55cbe6a4796999d48761ffec535a581bb2c6d5791201bd8a8cfe4b3ec3a29dce
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
HTML
_site/驱动开发/总线设备驱动模型/index.html
hntea/hntea.github.io
mit
33,425
790
codeparrot/github-code
c8b30629673369a476f8e70cef55a319513b62195fba3ebe311ae0f16eeae0a4
///<reference path="./otmword.ts" /> ///<reference path="./wmmodules.ts" /> ///<reference path="./wgenerator.ts" /> ///<reference path="./ntdialog.ts" /> /** * 単語作成部で使用するViewModel */ class WordDisplayVM { /** * コンストラクタ * @param el バインディングを適用するタグのid * @param dict OTM形式辞書クラス * @param...
JavaScript
scripts/worddisplayvm.js
Nobuyuki-Tokuchi/wordmaker_web
mit
4,512
125
codeparrot/github-code
1eddaeaf873fe62bab9e4c579c4adbd19cf7d3c499e6ef9ef75e805ec46f3ca6
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Display Debug backtrace |-------------------------------------------------------------------------- | | If set to TRUE, a backtrace will be displayed along with php err...
PHP
application/config/constants.php
samuelamam/GameBling
mit
4,422
89
codeparrot/github-code
a75c56decfed6ebfec0b72256b3db75bc6de38ced08601243d625fc47fa2137e
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Timers; using System.Web; using AutoMapper; using BellTowerEscape.Commands; using BellTowerEscape.Utility; namespace BellTowerEscape.Se...
C#
BellTowerEscape/Server/Game.cs
eonarheim/BellTowerEscape
mit
19,301
528
codeparrot/github-code
8072ca77e608da856c00bfc0cd090fb15d6954b23a92ca31c4338213672f6d88
/* global $:true */ + function($) { var defaults; var Photos = function(config) { this.initConfig(config); this.index = 0; } Photos.prototype = { initConfig: function (config) { this.config = $.extend({}, defaults, config); this.activeIndex = this.lastActiveIndex = this.config.initInd...
JavaScript
src/js/photos.js
lihongxun945/jquery-weui
mit
12,342
357
codeparrot/github-code
20ed2b878d99272df9b3a9e82e440d28e3f897b6350b389090e8c9a085f0baf8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lambda: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.02.3-2.0.6/released/8.8.0/lambda/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,478
173
codeparrot/github-code
00c1aad316bd5314be6fbefcdf5d2a854ed35cf11b00a2261cb5476e432236de
<?php session_start(); include "secure/connectstring.php";?> <DIV id="requesttabcontent" class="tab-content"> <DIV class="tab-pane fade in" id="open"> <BR> <table class = 'table table-hover table-condensed '> <THEAD> <TR> <TD class = 'td_scholar_10 column_name'> REQUEST DATE ...
PHP
AC_request_view_completed_process.php
ivanlanuza/reallife
mit
3,363
109
codeparrot/github-code
5eb0a8fe4a66389dc3bda5b93d3414e0464e23df948eeeddf6bb0f740242f619
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered.org <http://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
Java
src/main/java/org/spongepowered/mod/mixin/api/text/title/MixinTitle.java
SpongeHistory/Sponge-History
mit
3,524
86
codeparrot/github-code
b73744d3e2f441bdfeb584d7f668d948ca0535f5a78602196432eedb7b033029
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <assert.h> #include "treestore.h" #ifdef WIN32 #include <malloc.h> #else #include <alloca.h> #endif struct ts_node *ts_text_load(struct ts_io *io); int ts_text_save(struct ts_node *tree, struct ts_io *io); static long io_read(void...
C
src/treestore.c
jtsiomb/libtreestore
mit
15,446
810
codeparrot/github-code
f342a524acdce1d351454f5eb93279899ad946db844cd64a42406171d480419d
package fr.unice.spinefm.MSPLModel.impl; import java.util.ArrayList; import java.util.List; import java.util.Map; import fr.unice.spinefm.roassaltracer.RoassalTracer; public class DEAssociationEndImplDelegate extends DEAssociationEndImpl { private static int counter = 0; public DEAssociationEndImplDelegate() {...
Java
spinefm-eclipseplugins-root/spinefm-core/src/fr/unice/spinefm/MSPLModel/impl/DEAssociationEndImplDelegate.java
surli/spinefm
mit
1,094
37
codeparrot/github-code
a14ac9757f4c10e355f9a04b1296f6789cbe8f2e087d28df7b4b209803ac91c3
<?php return [ /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error...
PHP
config/app.php
SalvadorP/pacasas
mit
7,233
202
codeparrot/github-code
f6979c658f317fd0867ace6747d58889b998ad3178dcf207611bb6b80d29a992
module Dumpdb class Db DEFAULT_VALUE = ''.freeze def initialize(dump_file_name = nil, values = nil) dump_file_name = dump_file_name || 'dump.output' @values = dumpdb_symbolize_keys(values) [:host, :port, :user, :pw, :db, :output_root].each do |key| @values[key] ||= DEFAULT...
Ruby
lib/dumpdb/db.rb
redding/dumpdb
mit
1,367
61
codeparrot/github-code
a8bc834263955f682c6caa7eab2bb81c573e175e1c4821f047f2f7962245ede2
/* * f_sdp.c -- USB HID Serial Download Protocol * * Copyright (C) 2017 Toradex * Author: Stefan Agner <stefan.agner@toradex.com> * * This file implements the Serial Download Protocol (SDP) as specified in * the i.MX 6 Reference Manual. The SDP is a USB HID based protocol and * allows to download images directl...
C
BBB-firmware/u-boot-v2018.05-rc2/drivers/usb/gadget/f_sdp.c
guileschool/BEAGLEBONE-tutorials
mit
17,640
747
codeparrot/github-code
9eae0b788240268e6d9dec7afd68167881c49fb1a86bc61983845874666d155f
package uk.gov.dvsa.motr.web.formatting; import com.amazonaws.util.StringUtils; import uk.gov.dvsa.motr.remote.vehicledetails.VehicleDetails; public class MakeModelFormatter { private static String UNKNOWN_VALUE = "UNKNOWN"; public static String getMakeModelString(String make, String model, String makeInFu...
Java
webapp/src/main/java/uk/gov/dvsa/motr/web/formatting/MakeModelFormatter.java
dvsa/motr-webapp
mit
1,423
45
codeparrot/github-code
875f5af10e882cc633446dfd26149a87b0c89c9b58b704d5c0b243d05e1d6b1b
<?php /* WebProfilerBundle:Profiler:toolbar_redirect.html.twig */ class __TwigTemplate_76d5100a24a797f44c4c78afddbb3ca32310a1272d9ad67227fbe6b4fb04239d extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 try { $t...
PHP
app/cache/dev/twig/76/d5/100a24a797f44c4c78afddbb3ca32310a1272d9ad67227fbe6b4fb04239d.php
bhupendrakanojiya/mediapackage
mit
2,377
81
codeparrot/github-code
cc1e6ebfefb2040a4123e3b9455a11fb1884fcf3581a745b7e2d95879ee4ef0a
// // c_language_demo.c // swift4demo // // Created by hzyuxiaohua on 2017/6/29. // Copyright © 2017年 XY Network Co., Ltd. All rights reserved. // #include "c_language_demo.h" #include "stdlib.h" int uninitialized_value_demo() { int a; return a + 42; } int dereference_demo(int *value) { int tmp...
C
swift4demo/c_language_demo.c
27629678/swift4demo
mit
1,002
56
codeparrot/github-code
a40fb394a53eb67d12045180b534bab3bfda2b21a3094fd14bb67f81b88d0d29
import Fs from 'fs' import Path from 'path' import XmlParser from 'xml2js' const Zip = require('node-zip') /** * This represents an entry in the zip file. If the entry comes from an existing archive previously loaded, the content will be automatically decompressed/converted first. * @see https://stuk.github.io/jszip...
TypeScript
src/lib/xlsx-util.ts
akabekobeko/npm-xlsx-extractor
mit
8,722
421
codeparrot/github-code
41b59c9022eedcc2aba03dc63f9228f6c8bde599a4ad94e0a92e9f3bd0c958fc
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Jorg Heymans * * 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, inclu...
Java
test/src/test/java/hudson/model/RunTest.java
jtnord/jenkins
mit
3,005
68
codeparrot/github-code
805c915030349a79e61fa57a9a8603f8ed320e2f4a99e647f3c766c3f0359774
using System; using umbraco.cms.businesslogic.datatype; using umbraco.interfaces; using Umbraco.Core; namespace InfoCaster.Umbraco.TextFieldPreviewable.DataType { public class DataType : BaseDataType, IDataType { static readonly Guid _guid = new Guid("7a5355a6-684c-4813-9c0d-8487852bd08b"); IDataEditor _editor;...
C#
DataType/DataType.cs
kipusoep/TextFieldPreviewable
mit
1,055
55
codeparrot/github-code
28cd8e90fb62230cb15ce9a1bd767440423da738694760acbc05d2c6e76eec82
from app.app_and_db import app from flask import Blueprint, jsonify, render_template import datetime import random import requests dashboard = Blueprint('dashboard', __name__) cumtd_endpoint = 'https://developer.cumtd.com/api/{0}/{1}/{2}' cumtd_endpoint = cumtd_endpoint.format('v2.2', 'json', 'GetDeparturesByStop') ...
Python
app/dashboard/views.py
nickofbh/kort2
mit
1,414
42
codeparrot/github-code
d39a0d494220458694fdd2aa20f9fef6a49258fb76cc63fb8b15f6077d757f6f
<# .SYNOPSIS Short description .DESCRIPTION Long description .EXAMPLE Example of how to use this cmdlet .EXAMPLE Another example of how to use this cmdlet .INPUTS Inputs to this cmdlet (if any) .OUTPUTS Output from this cmdlet (if any) .NOTES General notes .COMPONENT The component this c...
PowerShell
Barracuda.WAF/Public/Get-ServiceBasicSecurity.ps1
juniinacio/Barracuda.WAF
mit
1,929
65
codeparrot/github-code
3145ec02a6b0a52633239e99b746b92211f5da03d7c6f1d38df97d097eb4ca57
package main import ( "fmt" "net/http" ) func main() { var m map[string]string fmt.Printf("len(m):%2d\n", len(m)) // 0 for k, _ := range m { // nil map iterates zero times fmt.Println(k) } v, ok := m["2"] fmt.Printf("v:%s, ok:%v\n\n", v, ok) // zero(string), false // m["foo"] = "bar" // panic: assignmen...
GO
golang/nil/nilMap.go
fivezh/Keepgoing
mit
1,681
67
codeparrot/github-code
dbee696911dd6e662aa8bb29305cc72f3856dcaf5e78828f15f67511f0c21180
<?php namespace Symfasize\Bundle\ConfigurationBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolv...
PHP
src/Symfasize/Bundle/ConfigurationBundle/Form/ConfigurationType.php
symfasize/symfasize
mit
1,581
47
codeparrot/github-code
1ae72997d0ad55c68e12874539ed195c7e9a3e43872793aa70c10575bffbc4b8
from __future__ import print_function import sys sys.path.append('..') # help python find cyton.py relative to scripts folder from openbci import cyton as bci import logging import time def printData(sample): # os.system('clear') print("----------------") print("%f" % (sample.id)) print(sample.chann...
Python
scripts/test.py
OpenBCI/OpenBCI_Python
mit
937
32
codeparrot/github-code
15d00725a10725cb7883eee4c9ce664a32928dcb1e58965be8ff061f8b1d4c4f
package com.tazine.container.collection.set.cases.stud; import java.util.HashSet; import java.util.Iterator; import java.util.Set; /** * @author frank * @since 1.0.0 */ public class Client { public static void main(String[] args) { Set<Student> set = new HashSet<>(); Student s1 = new Student...
Java
codeplay-container/src/main/java/com/tazine/container/collection/set/cases/stud/Client.java
BookFrank/CodePlay
mit
700
35
codeparrot/github-code
da15306a781b5a44afe8bf057515b9e09c92c6bf13692ad34bc8e19f950777f7
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using System; using WaveEngine.Common.Math; using WaveEngine.Framework; using WaveEngine.Framework.Graphics; #endregion namespace WaveEngine.Components.GameActions { /// <summary> /// Game acti...
C#
Shared/GameActions/Animations/MoveTo3DGameAction.cs
WaveEngine/Components
mit
2,416
80
codeparrot/github-code
2430e141f97b16e3cf2b4693bd7b3e64990e9f433be4f472895314702e4f3b7b
#ifndef __ACTOR_H__ #define __ACTOR_H__ /* // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // -- // -- File Name: FOUR.Actor.h // -- // -- Author(s): Paul Nispel // -- // -- Creation Date: 4/17/2013 // -- /...
C
src/actor/Actor.h
pnispel/Four.js
mit
1,201
59
codeparrot/github-code
c651742cf6ac2bf9ef726ba28890b3a5ec3772701270cf040b9bdaa1ef6d8d5e
const should = require('should'); const MissionLog = require('../lib/log').MissionLog; const Severity = require('../lib/Severity'); describe('MissionLog', function () { it('should test the properties', function () { const Log = new MissionLog(); Log.should.have.property('severities').with.lengthOf(...
JavaScript
test/test-missionlog.js
romankl/mission-log
mit
2,073
61
codeparrot/github-code
20b89555d049b6e65d6cca8514ee110c94a0be7f82be8d8ec32e427a0693c3a0
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Rych Data, Elizabeth's Experiments in Data Science"> <title>python tag // Rych Data // Elizabeth's Experiments in Data Science</ti...
HTML
tag/python.html
ERych/erych.github.io
mit
8,539
155
codeparrot/github-code
e678fa614169ca4cd318716ae19ed5fe3821121e0c1c0a15705c9ae8f6effe5f
#include "include/global.h" #include "alinous.lock/ConcurrentGate.h" #include "alinous.db.table.lockmonitor/IDatabaseLock.h" #include "alinous.db.table.lockmonitor/RowLock.h" #include "alinous.db.table.lockmonitor/IThreadLocker.h" #include "alinous.db.table/IDatabaseTable.h" #include "alinous.db.table.lockmonitor.db/...
C++
lib/src_java/alinous.db.table.lockmonitor.db/RowLockManager.cpp
alinous-core/alinous-elastic-db
mit
3,119
102
codeparrot/github-code
2532dfe6ad9c874ca02823e0ceb8d849f64efc3ac7475c0c60e8ab9f2786c1e5
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2013 The paccoin developer // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "base58.h" #include "paccoinrpc.h" #i...
C++
src/rpcrawtransaction.cpp
wmcorless/paccoin
mit
19,860
538
codeparrot/github-code
2c2bf15ee91cef8d914e1357a1030e52780f143b1bd5166517cf9150081db012
<?php class PostsController extends AppController { var $name = 'Posts'; var $uses = array('Post', 'User', 'Answer', 'History', 'Setting', 'Tag', 'PostTag', 'Vote', 'Widget'); var $components = array('Auth', 'Session', 'Markdownify', 'Markdown', 'Cookie', 'Email', 'Recaptcha', 'Htmlfilter'); var $helpers = a...
PHP
app/controllers/posts_controller.php
mcka1n/study-group-forum
mit
22,597
651
codeparrot/github-code
0d24b385fdc5c5ff7c28a8624577ad3f3c87cfa56ac8f684735536273977b25f
import datetime def suffix(d): return 'th' if 11<=d<=13 else {1:'st',2:'nd',3:'rd'}.get(d%10, 'th') def custom_strftime(format, t): return t.strftime(format).replace('{S}', str(t.day) + suffix(t.day)) print "Welcome to GenerateUpdateLines, the nation's favourite automatic update line generator." start = in...
Python
GenerateUpdateLines.py
ArthurStart/arthurstart.github.io
mit
889
33
codeparrot/github-code
4169211110e4388b220c7b1e00911d1e5c2b997be734c5f569e672de15bc9272
#!/usr/bin/python import praw import re import os import pickle from array import * import random #REPLY = "I want all the bacon and eggs you have." REPLY = array('i',["I want all the bacon and eggs you have", "I know what I'm about son", "I'm not interested in caring about people", "Is this not rap?"]) if not os.pat...
Python
swanson_bot.py
dcooper2/Swanson_Bot
mit
2,143
64
codeparrot/github-code
4604c8ce42fb2ddab950fda083cbaec8c3299c58e307b3da57844386462e66a5
// Copyright (C) 2000 Per M.A. Bothner. // This is free software; for terms and warranty disclaimer see ../../COPYING. package kawa.standard; import gnu.expr.*; import gnu.lists.*; import gnu.mapping.*; import gnu.kawa.io.InPort; import gnu.kawa.lispexpr.*; import kawa.lang.*; import java.io.File; public class defin...
Java
kawa/standard/define_autoload.java
maoueh/kawa-fork
mit
7,247
291
codeparrot/github-code
f323cb37925bf4614f2071a53b7a151ed58c2c51ef7d99299b8742ab778558b8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
HTML
lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/images/photon/js/images/photon/css/css_compiled/photon-min.css-v1.1.html
user-tony/photon-rails
mit
16,503
197
codeparrot/github-code
5a13041a1e379797b4e91c937b4eb5aec63241429ee060d1ab13e848c935cd2e
import React from 'react' import { mount, shallow, render } from 'enzyme' import { Stepper } from './Stepper' import Step from './Stepper.Step' import { StepUI, StepperUI } from './Stepper.css' const mockSteps = [ { id: 'Id1', title: 'Test Title 1', }, { id: 'Id2', title: 'Test Title 2', }, {...
JavaScript
src/components/Stepper/Stepper.test.js
helpscout/blue
mit
5,530
190
codeparrot/github-code
a583372849cf61d7bcad72c25eb0fbffd47adfa41be769105301f0d0d28a9c85
module.exports = middleware; var states = { STANDBY: 0, BUSY: 1 }; function middleware(options) { var regio = require('regio'), tessel = require('tessel'), camera = require('camera-vc0706').use(tessel.port[options.port]), app = regio.router(), hwReady = false, current; camera.on...
JavaScript
index.js
vstirbu/regio-camera
mit
944
44
codeparrot/github-code
f4cd42591758492f5daba03bda0f39a0ae103378bb7da9e3910a724706c1accf
/* ** FFI C call handling. ** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_ctype.h" #include "lj_cconv.h" #include "lj_cdata.h" #include "lj_ccall.h"...
C
Sample/ClientSource/scripting/lua/luajit/LuaJIT-2.0.1/src/lj_ccall.c
wenhulove333/ScutServer
mit
26,581
838
codeparrot/github-code
4a731a3edd8012c88b9766152b01287f4f3fa2b65cfd14a1d37455e2042eb7b2
var assert = require('chai').assert; var Pad = require('../lib/pad'); describe('Pad', function() { it('should be an object', function() { var pad = new Pad(); assert.isObject(pad); }); it('should have a x coordinate of 310 by default', function() { var terminator = new Pad(); assert.equal(termin...
JavaScript
test/pad-test.js
jonwille/Frogger
mit
995
40
codeparrot/github-code
dbbbcf5cf4e165ec8730af8dcf4d02b8f7bf3bf005ce6161a66b338008f54682
<?php class Db{ //member variables private static $_con = null, $_driver = "sqlsrv", $_host = "localhost", $_user = "arsan", $_pass = "a1254n", $_db = "APDPLN", $_error = false; //established connection to the database private func...
PHP
library/Db.php
arsan-irianto/apdpln
mit
5,580
197
codeparrot/github-code
8ea0167b4c189ea6c5daf21bc5d6df6a44dc0a7a00ab3bf034852d87b2765346
using PoppertechCalculator.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PoppertechCalculator.Processors { public class ForecastGraphCalculations : IForecastGraphCalculations { private const decimal _leftTail = 10; private const decimal ...
C#
PoppertechCalculator/Logic/Processors/ForecastGraph/ForecastGraphCalculations.cs
poppertech/Goal-based-Calculator
mit
3,985
128
codeparrot/github-code
a993751d0d8d9c77cdb106d153fc5c65aa20bceae80c1766aa19da9d467f540b
package space.harbour.l111.ehcache; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.config.CacheConfiguration; import net.sf.ehcache.store.MemoryStoreEvictionPolicy; /** * Created by tully. */ public class EhcacheHelper { static final int MAX_ENTRIES = 10; static final...
Java
L11.1/src/main/java/space/harbour/l111/ehcache/EhcacheHelper.java
vitaly-chibrikov/harbour_java_2017_05
mit
1,571
49
codeparrot/github-code
10e3e632375046a8cca5c7831add6a23394da958850380a186af1da5e4a3d7cc
#pragma once #include "StockTypeMacro.h" #include "BigNumber/BigNumberAPI.h" #include <vector> #include <memory> #include "IntDateTime/IntDateTimeAPI.h" enum FilterType { FILTER_INIT, ALL_STOCK, RISE_UP, FALL_DOWN, }; enum StrategyType { STRATEGY_INIT, SAR_RISE_BACK_COUNT, SAR_RISE...
C
src/StockType/StockType/src/StockType.h
xylsxyls/xueyelingshuang
mit
3,725
192
codeparrot/github-code
9e78458f5f7c99d8fd9be0553f69e5ddc6865dfbcda4fac8af9f8f94eb511886
#include "Image.h" // to avoid compiler confusion, python.hpp must be include before Halide headers #include <boost/format.hpp> #include <boost/python.hpp> #define USE_NUMPY #ifdef USE_NUMPY #ifdef USE_BOOST_NUMPY #include <boost/numpy.hpp> #else // we use Halide::numpy #include "../numpy/numpy.hpp" #endif #endif /...
C++
python_bindings/python/Image.cpp
ronen/Halide
mit
25,082
603
codeparrot/github-code
44e78e5f7fffc3c8a9ff5de072a4c19d49b1f95af0df8a14828f002064eb1d7d
module Kakin class Configuration def self.tenant @@_tenant end def self.setup config = { 'auth_url' => ENV['OS_AUTH_URL'], 'tenant' => ENV['OS_TENANT_NAME'] || ENV['OS_PROJECT_NAME'], 'username' => ENV['OS_USERNAME'], 'pas...
Ruby
lib/kakin/configuration.rb
buty4649/kakin
mit
1,718
48
codeparrot/github-code
3f1a1f4e409681e9892dec6126dd85245fe07f9cab8a99d5d5f1ecd469b464e7
<?php if(isset($_GET['pemail'])) { $pemail=$_GET['pemail']; } else { $pemail = ''; } //echo $pemail; //exit; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="...
PHP
application/views/newsletter/signup_view-06-12-2016.php
sygcom/diesel_2016
mit
7,489
171
codeparrot/github-code
9d842879e0ecbf6fb72c25cf9e39bf06d4f9bbb2512191485825c5c747f1d779
'use strict'; var spawn = require('child_process').spawn; var font2svg = require('../'); var fs = require('graceful-fs'); var noop = require('nop'); var rimraf = require('rimraf'); var test = require('tape'); var xml2js = require('xml2js'); var parseXML = xml2js.parseString; var fontPath = 'test/SourceHanSansJP-Nor...
JavaScript
test/test.js
shinnn/node-font2svg
mit
9,120
297
codeparrot/github-code
1027f3dcedefa92ce65bcef232c6ede6150eb984afd91be3e789905ecd9ff927
<?php /** * This file is part of Terminalor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Terminalor core application class responsible for managing user defined * commands. * * @package Terminalor * @subpackage Applicati...
PHP
library/Terminalor/Application.php
b-b3rn4rd/Terminalor
mit
4,584
189
codeparrot/github-code
2c22ec3dc94173c4254d1d6ba2df8f80fec1ec0edf3d6edd7dff3c0a72f68990
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks for methods with too many parameters. # The maximum number of parameters is configurable. # On Ruby 2.0+ keyword arguments can optionally # be excluded from the total count. class ParameterLists...
Ruby
lib/rubocop/cop/metrics/parameter_lists.rb
jonas054/rubocop
mit
1,124
46
codeparrot/github-code
afe3356473624dfe4d22258beb505e7296b6a2168980b097d789ee000a33eee4
import { propValues, isConstructor, initializeProps, parseAttributeValue, ICustomElement, ConstructableComponent, FunctionComponent, PropsDefinition, } from "./utils"; let currentElement: HTMLElement & ICustomElement; export function getCurrentElement() { return currentElement; } export function noS...
TypeScript
src/element.ts
ryansolid/component-register
mit
3,536
123
codeparrot/github-code