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
b5c3e02f36ada4556b02f9a06aaabaeae5f31cd473416aac91573b0ea182d2aa
/* Copyright (c) 2014-2017, Fengping Bao <jamol@live.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, co...
C++
src/UdpSocketBase.cpp
Jamol/kuma
mit
20,909
624
codeparrot/github-code
a22e4d720b95da5cc13449fbd5876867bd7fa302cf7fb998f5c07405268ef516
var CACHE_VERSION = 'v1'; var CACHE_NAME = CACHE_VERSION + ':sw-cache-'; function onInstall(event) { console.log('[Serviceworker]', "Rails Service Worker Installing!", event); event.waitUntil( caches.open(CACHE_NAME).then(function prefill(cache) { return cache.addAll([ // make sure serviceworker...
JavaScript
lib/generators/serviceworker/templates/serviceworker.js
rossta/serviceworker-rails
mit
2,071
65
codeparrot/github-code
c4bf23013fffc42541c4031b2c7768b151ddab86dbe2b033583f42b8491f8dbf
package com.eagle.adventurersamulets2.common.item; import com.eagle.adventurersamulets2.api.AA2API; import com.eagle.adventurersamulets2.api.amp.IAMPItem; import com.eagle.adventurersamulets2.api.amp.IAMPType; import com.eagle.adventurersamulets2.common.Dictionary; import com.eagle.adventurersamulets2.common.core.AA2C...
Java
src/main/java/com/eagle/adventurersamulets2/common/item/ItemSearing.java
msrEagle/Adventurer-s-Amulets-2
mit
3,886
104
codeparrot/github-code
24ddcd707ab76fa375604c6b3d6065c9649b94b60547589a801c13eb59d2aef9
/* * Lavish.UI: A .NET wrapper for LavishSofts LavishGUI objects * Copyright (c) 2007 isxGames & CyberTech (cybertech@gmail.com) * * Repository located at https://github.com/isxGames/Lavish.UI */ using System; using InnerSpaceAPI; using LavishScriptAPI; namespace Lavish.UI { public class lguitab : lguielement ...
C#
Lavish.UI/lguitab.cs
isxGames/Lavish.UI
mit
993
66
codeparrot/github-code
2110b598bd4fb184a8ee82f665f6e2a9a98e76c185f36e9a6a1f69b8fae32939
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace VehicleRepair.DAL { [MetadataType(typeof(VehicleMetaData))] public partial class Vehicle { } public class VehicleMetaData {...
C#
VehicleRepair/DAL/Vehicle.cs
Tom2Filip/VehicleRepair
mit
2,176
62
codeparrot/github-code
0f70af3b79dae98b654f0bccff047d07fc76177a0be5a14b1d2a4817aa6830ec
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>zfc: 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.04.2-2.0.5/released/8.8.1/zfc/8.9.0.html
coq-bench/coq-bench.github.io
mit
7,853
188
codeparrot/github-code
a421b2b14083895f780689f78b78c39cb23483e4f2728cbc0560167a8095ff95
package som.primitives.arrays; import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.dsl.GenerateNodeFactory; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.frame.VirtualFrame; import com.oracle.truffle.api.source.SourceSection; import bd.primitives.Primitive...
Java
src/som/primitives/arrays/DoIndexesPrim.java
smarr/SOMns
mit
2,448
71
codeparrot/github-code
1a3881f1bad6d4679d19b872ec7ec6dbcda1ecc50995746f4d40b1f7de1af230
<?php use Symfony\Component\Yaml\Yaml as Yaml; use GuzzleHttp\Exception as GuzzleException; class RestClient { private $configFile; // path to certificate configuration file private $client; // Guzzle Rest Client instance private $options; // Guzzle Rest Client options public function __construct(...
PHP
features/bootstrap/RestClient.php
duyquang1202/HotelsTesting
mit
1,486
57
codeparrot/github-code
045da25d6707986be5f4853c973b33cc730bc13301e2219c442c021fe38f5e3f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer: 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.11.1-2.0.7/released/8.12.0/hammer/1.1+8.8.html
coq-bench/coq-bench.github.io
mit
6,679
171
codeparrot/github-code
091d22a69f8bd25b9c16f49a393c8aa1246720cdfc20db5b4fc5cb8c35368a6d
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
TypeScript
src/components/Extension.tsx
looker-open-source/app-lookml-diagram
mit
2,988
84
codeparrot/github-code
79d3e776564f6db618d0fc02f96f1c8295055d2694fbf2ef8b292699b6d1ad64
namespace Cloud_Based_Hospital_Management { partial class appo_view_new { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </...
C#
Cloud Based Hospital Management/appo_Viewer.Designer.cs
rahulvramesh/Cloud-Based-Hospital-Management-System
mit
4,650
110
codeparrot/github-code
b723a14af923d0a5efd17d7191e4b455f67bc7bb335f94c13d3607d2cce5d982
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lazy-pcf: 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.9.0/lazy-pcf/8.10.0.html
coq-bench/coq-bench.github.io
mit
6,954
176
codeparrot/github-code
ff6fac663ca2562768ccbf4a7e15f9be38f2e7f161ca30bffa7fa52e492e8a27
package DataStructure; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; public class Collections { public static void main(String[] args){ mapTest(); } // Map LinkedHashMap HashMap public static void mapTest(){ System.out.println("LinkedHashMap: "); ...
Java
src/DataStructure/Collections.java
stingchang/CS_Java
mit
1,439
56
codeparrot/github-code
7760b570d41bb8e553cf14741d255035fca8ce95ddd7adab4d848184fcef3483
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "httpcall.h" using namespace xbox::httpclient; STDAPI HCHttpCallRequestSetUrl( _In_ HCCallHandle call, _In_z_ const char* method, _In_z_ ...
C++
Source/HTTP/httpcall_request.cpp
jasonsandlin/libHttpClient
mit
12,040
530
codeparrot/github-code
4fb742866b29857e28b445bf3288d889351fce11173e5e2e2f651626c9fd955a
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
Ruby
config/environments/development.rb
benfreeman/yammer_training
mit
1,679
43
codeparrot/github-code
edf5bb1a21ad90f4930f331b7eb48bc78ab4868ed474a9b86a586afa8462f5eb
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>monae: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.12.2/monae/0.3.3.html
coq-bench/coq-bench.github.io
mit
7,761
185
codeparrot/github-code
2b5c1403a92066d462fe379e597bb720be0447c1b81544ca34bbb080f5000ddd
/*global $:false */ 'use strict'; function Carousel(container) { this.$container = container; } Carousel.prototype.buildCarousel = function() { var $slideContainer = $('<div />', {'class' : 'slide-container'}), $slides = this.$container.find('.slide'), $arrow = $('<div />', {'class' : 'nav-arrow'}), currentS...
JavaScript
carousel.js
bduimstra/full-with-carousel
mit
1,546
66
codeparrot/github-code
3ecd9b06cd33a4f20a2057eedc7b0694bba1683a3a7b0872b5299f375450a892
<!DOCTYPE HTML> <html lang="en" > <!-- Start book book --> <head> <!-- head:start --> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Birdstrike Report | book</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type">...
HTML
_book/learning/week5/birdstrike-report.html
AndreyShprengel/book
mit
35,491
1,230
codeparrot/github-code
89fdef0ef984e447769e80374d79f2f7ccab8990c90a20d6dee727b36dbad74c
package tech.pinto.time; import java.time.LocalDate; import java.time.ZoneId; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableMap; import tech.pinto.tools.ID; public final...
Java
src/main/java/tech/pinto/time/PeriodicRange.java
punkbrwstr/pinto
mit
3,198
124
codeparrot/github-code
e0e25424c635df86e01b0489666419ea7fec7ed37dcc8d8c02d3a862c3135fb9
''' This the main code for running the chain. It is quite straightforward: it runs chain_pairwise_pc and chain_merge_pcs (with a few additional logs...) ''' import chain_pairwise_pc import chain_merge_pcs import time from params import * import sys import os import os.path import shutil import numpy as np import resou...
Python
chain.py
sdrdis/iarpa_contest_submission
mit
1,327
59
codeparrot/github-code
6d325e4bf753762e81dd0a10e892ff933eb6c2a0b657bda317942d95ae156ac6
<?php /** * CakeTestCase file * * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions o...
PHP
lib/Cake/TestSuite/CakeTestCase.php
laravelartisan/cake
mit
20,350
712
codeparrot/github-code
e90d65b77c4636279930aceed80120004adde0c2706f7442cccb8256714ddeb2
import React from 'react'; import PropTypes from 'prop-types'; import Button from '~/Button'; import styles from './comment.scss'; /** * Comment component */ const Comment = ({ comment, like, unlike }) => ( <article className={styles.comment}> <p>{comment.text}</p> { comment.liked ? <Button t...
JavaScript
src/Home/Comments/Comment/index.js
jakubbarczyk/react-or-die
mit
814
35
codeparrot/github-code
e41022fe7abd79b86c50e093caf047d037688357670f346e570d550bf4c2342c
package components.data; import javax.swing.*; import java.awt.*; import java.util.ArrayList; public class TitanDataToolBar extends JToolBar { private ExpandButton expandButton; private CollapseButton collapseButton; private GroupButton groupButton; private UngroupButton ungroupButton; private Mov...
Java
src/components/data/TitanDataToolBar.java
ZeroPage/team6-titan-2015
mit
5,035
186
codeparrot/github-code
c92722f489b95556d157896acc558e72dc6cc24d63c7c07c6b015a85e95be443
var CandlestickFinder = require('../../lib/candlestick/CandlestickFinder').default; var assert = require('assert'); var input = { open: [30.10,30.18,30.15,29.15,28.35,29.19,28.83,28.13,28.17,28.35,28.34], high: [30.20,30.28,30.45,29.35,29.35,29.29,28.83,28.73,28.67,28.85,28.64], low: [29.41,29.32,29.96,28.74,2...
JavaScript
test/candlestick/CandlestickFinder.js
anandanand84/technicalindicators
mit
5,062
266
codeparrot/github-code
a0c4c237f1287a3fd060cdf1187e53d6fe958510256346b8e66daf953f8872a3
namespace Directions.Google { #region Usings using System; using System.Linq; using Core.Model; using Model; using Stop = Core.Model.Stop; using Time = Core.Model.Time; using TransitDetails = Core.Model.TransitDetails; #endregion internal static class ResultConverter { ...
C#
src/Directions.Google/ResultConverter.cs
Lordsauron/Directions.Google
mit
4,084
100
codeparrot/github-code
863e4997bcd47a4558aa1fceaf34d404ef56cbc77177a2b3408187709e49a93e
(function () { 'use strict'; angular.module('gg.promise-button') .directive('promiseButton', function ($log, $timeout, PromiseButton, $sce) { return { restrict: 'A', transclude: true, template: '<span class="promise-button-container">' + '<span class="original-content" ng-...
JavaScript
src/directive.js
GabiGrin/angular-promise-button
mit
3,492
106
codeparrot/github-code
b00d5e496354d26d73ebba109d17c57b436127e114b4f32b0ecb184a9c221616
using System.IO; using Newtonsoft.Json; namespace ModMyFactory.Helpers { static class JsonHelper { public static void Serialize<T>(T value, FileInfo file) { using (var writer = file.CreateText()) { string json = JsonConvert.SerializeObject(value, Formatt...
C#
ModMyFactory/ModMyFactory/Helpers/JsonHelper.cs
jodli/ModMyFactory
mit
800
32
codeparrot/github-code
04757b665fd1fe197f6d1b7f1588aa22247e697dcb69d7a44d901d16abab1322
/*--------------------------------------------------------*\ | | | hprose | | | | Official WebSite: https://hprose.com | | ...
C#
src/Hprose.RPC.Plugins/LoadBalance/WeightedLeastActiveLoadBalance.cs
hprose/hprose-dotnet
mit
4,626
117
codeparrot/github-code
1314c2123abe94bf3078eeedf18797b90c91b6bac84f487ffa887af619b0561b
package com.team.weChat.demo.controller; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bi...
Java
src/main/java/com/team/weChat/demo/controller/UserController.java
20gg/weChat
mit
913
37
codeparrot/github-code
1b282917a9877dae54b576f983c2a49db09e5e5c0754f56b5b246d79e607bcfc
<?xml version="1.0" encoding="utf-8"?> <!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> <title>ActionController::Helpers</title> <meta http-equiv="Content-Type"...
HTML
doc/api/classes/ActionController/Helpers.html
benfreeman/yammer_training
mit
4,831
171
codeparrot/github-code
a705f329993a29b1e4d1669e7cff1dab26fddb46a811e2ffe36b7a5c0e8f763a
<?php namespace App\Http\Controllers; use App\Queue; use App\Repositories\SettingsRepository; use App\Track; use App\Settings; use Illuminate\Http\Request; use App\Http\Requests; use lxmpd, URL, Redirect, View; use Symfony\Component\HttpFoundation\StreamedResponse as StreamedResponse; class PlayerController extends...
PHP
jukebox.local/app/Http/Controllers/PlayerController.php
wardcraigj/jukebox
mit
2,700
136
codeparrot/github-code
355a3669b237f46c791113b115d37c88820f9d210e040405c7bbe37fa13a2297
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <base data-ice="baseUrl" href="../../../../"> <title data-ice="title">src/templates/semantic/editgrid.js | formiojs</title> <link type="text/css" rel="stylesheet" href="css/style.css"> <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">...
HTML
docs/file/src/templates/semantic/editgrid.js.html
formio/formio.js
mit
45,945
309
codeparrot/github-code
f33b3da5c27dd96234417bc5253f783d21f2d14d673e524c239bb0be6d31c519
<?php namespace PM\Statistic\Web\Controller; use PM\Statistic\Gearman; use PM\Main\Web\Controller\Abstracts\Json; use PM\Main\Database; /** * This scripts defines class of statistic run controller. * * @author Martin Kovar * @category Performance * @package Statistic * * @link /statistic/run */ clas...
PHP
Performance/Statistic/Web/Controller/Run.php
tolan/performance-monitor
mit
2,824
100
codeparrot/github-code
d0385edad965886b9e92bf278da33f7ce71fc494b1f9173f699ef254ffa47c83
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Serialization; using Newtonsoft.Json; namespace GoogleMusic { public class Playlist : ICloneable { #region Properties: Info [JsonProperty("title")] ...
C#
GoogleMusicAPI.NET/Models/Playlist.cs
GodTamIt/.NET-Google-Music-API
mit
2,865
105
codeparrot/github-code
058c7c1768df3c5fa10c437a6c269a392848d1cf9ca54e3302e998e3197be3b0
using System; namespace MySql.Data.Serialization { // See https://dev.mysql.com/doc/internals/en/packet-EOF_Packet.html internal class EofPayload { public int WarningCount { get; } public ServerStatus ServerStatus { get; } public static EofPayload Create(PayloadData payload) { var reader = new ByteArra...
C#
src/MySqlConnector/Serialization/EofPayload.cs
gitsno/MySqlConnector
mit
1,654
44
codeparrot/github-code
f8af928f5883e2cadf5ea2479f0b77ef5e8b7909095e13ade82a58a1c1814980
#!/usr/bin/env python # encoding: utf-8 from flask.ext.restful import Resource, fields, marshal_with, marshal from .base import BaseArgs, LengthField, ChannelKey from database.channel.channel_model import get_channel_status, get_channel, update_channel, delete_channel class ChannelQueryArgs(BaseArgs): def rules(...
Python
resource/channel.py
hellolintong/LinDouFm
mit
1,825
65
codeparrot/github-code
d225a5c6e2fb4a37541754d7bb7443067b8864e423cb4b416e9430b01e0e08cb
using UnityEngine; using UnityEditor; using System.Collections.Generic; namespace NodeInspector.Editor{ public class ConnectionsCollection { public Connection LastDraggedConnection {get; private set;} public List<Connection> allConnections {get; set;} public ConnectionsCollection(List<Node>...
C#
Assets/NodeInspector/Scripts/Editor/ConnectionsCollection.cs
nicloay/Node-Inspector
mit
6,912
131
codeparrot/github-code
0451854ad6f33eeaefae609d8a83e9bac2e0a98830b547da3024941ecb6f42d8
package swingTest; import java.awt.FlowLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.JTextField; public class KeydownText extends JFrame implements KeyListener { private static final long serialVersionUID = 3711945226133604244L; ...
Java
pms/src/test/java/swingTest/KeydownText.java
zhangqiang110/my4j
mit
1,064
49
codeparrot/github-code
9687a3d2757bd18e36c4d5d6df3169412bdd7bfceb3604d0e6289a09de11d40c
from src.exceptions import BBJException, BBJParameterError, BBJUserError from src import db, schema, formatting from functools import wraps from uuid import uuid1 from sys import argv import traceback import cherrypy import sqlite3 import json dbname = "data.sqlite" # any values here may be overrided in the config.js...
Python
server.py
desvox/bbj
mit
27,166
717
codeparrot/github-code
51d7fb462f3bbdc874f3cc778661dc89a34bcb1f7117f6cdfa2755de2eb1a2f6
/* --- Day 13: Knights of the Dinner Table --- In years past, the holiday feast with your family hasn't gone so well. Not everyone gets along! This year, you resolve, will be different. You're going to find the optimal seating arrangement and avoid all those awkward conversations. You start by writing up a list of ev...
JavaScript
solutions/day13/1.js
Mistereo/adventofcode-solutions
mit
3,421
100
codeparrot/github-code
c3910052208be826e6497c59bff2c792c44b9f1d804b07436f7b7695f40168eb
package core import ( "bufio" "bytes" "io/ioutil" "path/filepath" "regexp" "sort" "strconv" "strings" "unicode/utf8" "github.com/errata-ai/vale/v2/config" "github.com/gobwas/glob" "github.com/jdkato/prose/tag" "github.com/jdkato/prose/tokenize" ) // AlertLevels holds the possible values for "level" in a...
GO
core/core.go
ValeLint/vale
mit
10,589
381
codeparrot/github-code
79e1190422602ef62bbc0c459d2f29178b8f10175afe206c3f803793a0140c5b
package gwi.mawex import java.util.UUID import java.util.concurrent.ThreadLocalRandom import akka.actor.{Actor, ActorLogging, ActorRef} import scala.concurrent.duration._ object Producer { case object Tick } class Producer(masterProxy: ActorRef) extends Actor with ActorLogging { import Producer._ import cont...
Scala
src/example/src/main/scala/gwi/mawex/Producer.scala
GlobalWebIndex/mawex
mit
1,412
50
codeparrot/github-code
3f7c13b4cfea66f201e1c591a1b92c286c04c2ee86b95a63e7bd7523787da42f
//====================================================================== // Copyright (C) 2015-2020 Winddy He. All rights reserved // Email: hgplan@126.com //====================================================================== using UnityEngine; using System.Collections.Generic; using ILRuntime.Other; ...
C#
knight-client/Packages/Knight-Lib/Knight.Framework.Hotfix/Runtime/Binder/Vector3Binder.cs
winddyhe/knight
mit
18,130
526
codeparrot/github-code
6b7d6381168c13fc917953f4bc18c11e27d9de4263c13393e0768b6f619d5b91
/** * Created by mag94 on 12/1/15. */ var selectedBibsKey = "selectedBibs"; // defined in _header.html.erb var selectedRaceKey = "selectedRace"; var selected_racers = []; var selected_races = { "routeid": "", "points": [] }; var racer_markers = []; // array of markers that are displayed on map var checkboxes = [...
JavaScript
app/assets/javascripts/map_display.js
maito94/TCAT_Tracker
mit
13,682
455
codeparrot/github-code
bff99bc7fed83379d26176815973a08d24ebaf33a1e9c7c0c07083893a2b8e67
using Microsoft.Bot.Connector; using Microsoft.Bot.Connector.Authentication; using Microsoft.Bot.Schema; using System; using Underscore.Bot.MessageRouting.DataStore; namespace Underscore.Bot.MessageRouting.Utils { /// <summary> /// A utility class for sending messages. /// </summary> public class Conn...
C#
BotMessageRouting/MessageRouting/Utils/ConnectorClientMessageBundle.cs
tompaana/bot-message-routing
mit
2,777
85
codeparrot/github-code
25c1e2a3cbf9b9bfbd005c566890fa67f7d0259e70b3802bd1234dd76d72ba66
# frozen_string_literal: true module RubyCritic module Command module Utils class BuildNumberFile attr_reader :file, :build_number def initialize open_build_number_file end # keep track of the number of builds and # use this build number to create separat...
Ruby
lib/rubycritic/commands/utils/build_number_file.rb
whitesmith/rubycritic
mit
933
38
codeparrot/github-code
0f3a740a23e579b8b7693b85b9a8553b229dd2b1129ee24e446426005293a8ce
import ltask,json from ltask import pset class Task(ltask.Task): #def __init__(self,params): #super(ltask.Task,self).__init__(self,params) def transform_params(self,p): #called in ltask.Task processed_params return p def out_dir(self): return './examples/out/' def kill(self)...
Python
examples/dummy.py
redsh/Tasks-In-A-Bottle
mit
641
31
codeparrot/github-code
fbde817102afe73b126078a53b3fb88140f7017301db702a37f14128a0adb435
var fs = require("fs"); var path = require("path"); var jsext = require("jsext"); var log = require("jsext").Log; module.exports = DNA; function DNA (file, dir) { var self = this; if(!file) throw new Error("DNA : missing params"); self.file = file; self.dir = dir; self.reload(); } DNA.prototype....
JavaScript
dna.js
rbuas/webbx
mit
891
38
codeparrot/github-code
696292ff88882d6b1653d33310cd8f6c5bfe32689d30dcc5748924072fc4434f
require 'hola/version' require 'hola/base_controller' # doc... module Hola class Application attr_reader :request class << self @@routes = [] def routes @@routes end # define route with method def define_route(method, path, target=nil, &block) route_def = {} ...
Ruby
lib/hola.rb
piotr-kedziak/hola
mit
4,456
159
codeparrot/github-code
53a6d9cd8eb8a2c9915ae5e94ddc691dc50c056ff642a1dfdc8264b5ab42b6af
package com.msu.moo.model.evaluator; import static org.junit.Assert.assertEquals; import java.util.Arrays; import org.junit.Test; import com.msu.moo.interfaces.IEvaluator; import com.msu.moo.model.evaluator.StandardEvaluator; import com.msu.moo.model.variable.DoubleListVariable; import com.msu.moo.problems.Kursawe;...
Java
src/test/java/com/msu/moo/model/evaluator/StandardEvaluatorTest.java
julesy89/moo-java
mit
1,150
41
codeparrot/github-code
74fbcb382bbc0eb1c96b9db13b14f108b50807f2c51441b7a413b596b56eadb6
/* * Copyright (C) 2009-2014 Gil Mendes * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS...
C
source/kernel/include/kernel/fs.h
gil0mendes/Infinity-OS
mit
3,068
80
codeparrot/github-code
d5d8afe1cf0c1c7a491ed57fc0b6be2905300ddebda4ff95ff3ab90b22e47a63
/** * */ package com.qshuttle.car; import java.util.ArrayList; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.content.Context; import android.net.Uri; impor...
Java
src/com/qshuttle/car/WebApi.java
pku9104038/qshuttle_driver
mit
14,215
589
codeparrot/github-code
2de0ba2546332cc96d6ff73314b0ad55c6d969ce0ed05cb460945c70db79286e
namespace SimpleInjector.Tests.Unit { using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class ResolveUnregisteredTypeEventTests { [TestMethod] ...
C#
SimpleInjector.NET.Tests.Unit/ResolveUnregisteredTypeEventTests.cs
abergs/SimpleInjector
mit
22,291
630
codeparrot/github-code
15662530f92b04a276e0f3b4ebde0ff7157a1db4222866241cbc58e48be72316
/**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ | | ...
Java
src/main/java/hprose/io/unserialize/ShortArrayUnserializer.java
zijan/hprose-java
mit
3,416
83
codeparrot/github-code
b65d2b3f19ee982ebb807cb6a37091e8cfbfd2f23ae14bd9674a877b36b5a36c
# encoding: UTF-8 # api-auth is a Ruby gem designed to be used both in your client and server # HTTP-based applications. It implements the same authentication methods (HMAC) # used by Amazon Web Services. # The gem will sign your requests on the client side and authenticate that # signature on the server side. If your...
Ruby
lib/api_auth/base.rb
chetan/bixby-auth
mit
3,392
106
codeparrot/github-code
687eb6e65b2d13e17490be1eb05d124ed9a815aedf6c80721bd55a61d7ac3537
package ch.spacebase.openclassic.api.network.msg; /** * Sent when a player's position is changed. */ public class PlayerPositionMessage extends Message { private byte playerId; private double xChange; private double yChange; private double zChange; public PlayerPositionMessage(byte playerId, double xChange,...
Java
src/main/java/ch/spacebase/openclassic/api/network/msg/PlayerPositionMessage.java
good2000mo/OpenClassicAPI
mit
1,360
68
codeparrot/github-code
155f41853629efa3410e5d3fc95d8ea4b7137f18d60c11155094aef6e3eecee2
<HTML><HEAD> <TITLE>Review for Spy Kids (2001)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0227538">Spy Kids (2001)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Brandon+Herring">Bran...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/28222.html
xianjunzhengbackup/code
mit
4,278
66
codeparrot/github-code
2e080eccdd7bb214c9adb3c593fa2256eee576a59d6f7e8dbaee8b1e7016903c
package org.innovateuk.ifs.competition.repository; import org.innovateuk.ifs.competition.domain.CompetitionParticipant; import org.innovateuk.ifs.competition.domain.CompetitionParticipantRole; import org.springframework.data.repository.NoRepositoryBean; import org.springframework.data.repository.PagingAndSortingReposi...
Java
ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/competition/repository/CompetitionParticipantRepository.java
InnovateUKGitHub/innovation-funding-service
mit
1,333
31
codeparrot/github-code
1dcaf88f89087e7d7e0c7c07163407a91b582e07ee7a1f19e7fd03dcd6fc5362
{-| Module : Control.Monad.Bayes.LogDomain Description : Numeric types representing numbers using their logarithms Copyright : (c) Adam Scibior, 2016 License : MIT Maintainer : ams240@cam.ac.uk Stability : experimental Portability : GHC -} -- Log-domain non-negative real numbers -- Essentially a polymor...
Haskell
src/Control/Monad/Bayes/LogDomain.hs
ocramz/monad-bayes
mit
4,423
147
codeparrot/github-code
31b458eaeef441a10ffa4a11cec1852742bb126093e01763f2196045294d0a07
using System; using System.ComponentModel.Design; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Runtime.InteropServices; using System.Threading; using EnvDTE; using EnvDTE80; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using VsExt.AutoShelve.E...
C#
VsExt.AutoShelve/VsExtAutoShelvePackage.cs
vercellone/tfsautoshelve
mit
19,842
510
codeparrot/github-code
3e9bb95cffa1b01e032580a9cb4759de3eb9890d4fb16782bb043e7c71ed3113
#ifndef DT3_GUIANIMKEY #define DT3_GUIANIMKEY //============================================================================== /// /// File: GUIAnimKey.hpp /// /// Copyright (C) 2000-2014 by Smells Like Donkey, Inc. All rights reserved. /// /// This file is subject to the terms and conditions defined in /// file 'LIC...
C++
DT3Core/Types/GUI/GUIAnimKey.hpp
pakoito/DT3
mit
5,626
168
codeparrot/github-code
5fbb56e23ff7bd4f4c8b67e6ea0afb6bdb53da09292e973d7c2a1ddd0cb35ce1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bdds: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.15.0/bdds/8.9.0.html
coq-bench/coq-bench.github.io
mit
7,573
187
codeparrot/github-code
ac31241e6666f7cb31c7b2b52ee9dfa6dd3e0063f8d46eb8c3551481112aad04
module ToyRoboSimulator # Robo is the character of this program. It serves to simulate the movement of a robot on a table. # The available actions are place, move, left, right, and report. # Each action is validated before execution # and will respond with the result. class Robo include Validator attr...
Ruby
lib/toy_robo_simulator/robo.rb
adlerhsieh/toy_robo_simulator
mit
3,755
127
codeparrot/github-code
7537d6f9c53be4dc6994c1b5c79e7186f2882f7c230d1cf5e6ea873ef04de17d
# # @lc app=leetcode id=103 lang=python3 # # [103] Binary Tree Zigzag Level Order Traversal # from typing import List # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None # @lc code=start class Solution: def zigzagL...
Python
leetcode/0103_binary-tree-zigzag-level-order-traversal.py
heyf/cloaked-octo-adventure
mit
1,261
49
codeparrot/github-code
b7a573fdada17ffd24f0c49d85a042ecb3b4189c449ade102cd1db86268f9f72
import numpy as np from week3 import lnn, tools import os def f(x): if 0 <= x < 0.25: return float(0) elif 0.25 <= x < 0.5: return 16.0 * (x - 0.25) elif 0.5 <= x < 0.75: return -16.0 * (x - 0.75) elif 0.75 < x <= 1: return float(0) else: raise ValueError('v...
Python
week3/w3_lnn.py
cyruscyliu/diffentropy
mit
2,275
89
codeparrot/github-code
212ac08f95e64513405bed4fb8bf3236ac93ec798811585864e3b0bae14e939c
<?php namespace Hyundai\KromaBundle\Menu; use Knp\Menu\FactoryInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\SecurityContextInterface; class FrontendMenuBuilder { private $factory; protected $securityContext; /** * @param FactoryInterface $factory ...
PHP
src/Hyundai/KromaBundle/Menu/FrontendMenuBuilder.php
songecko/kromahyundai
mit
1,709
55
codeparrot/github-code
c7b26e21ec5a73b1bb76ea8b92aacc660a41616a85fb6263244f5c5c9841180e
// -------------------------------------------------- // 3DS Theme Editor - TopSolidSetViewModel.cs // -------------------------------------------------- using System; using System.Windows.Media; using ThemeEditor.Common.Themes.ColorSets; using ThemeEditor.WPF.Localization; namespace ThemeEditor.WPF.Themes.ColorSets...
C#
ThemeEditor.WPF/Themes/ColorSets/TopSolidSetViewModel.cs
usagirei/3DS-Theme-Editor
mit
3,814
107
codeparrot/github-code
1657f0b6e8e7591b0e2a6933d3a79a87d056c0564256014501cfda1ce7c3e5c1
local bit = require("bit") local band, bor, lshift, rshift = bit.band, bit.bor, bit.lshift, bit.rshift local maths = require("remotesvg.maths"); local clamp = maths.clamp -- The actual layout in memory is: -- Little Endian - BGRA -- Big Endian - ARGB -- For things that actually depend on this memory ordering -- they s...
Lua
remotesvg/colors.lua
Wiladams/remotesvg
mit
7,591
238
codeparrot/github-code
07ec15af2e45fd67e4f0f2ecb961a52b8580fd2c7947af38cbcc5cc26541b70d
require 'oauth2' require 'multi_json' module Salesforce class Api attr_reader :options class_attribute :options self.options = { authorize_url: "https://login.salesforce.com", authorize_path: "/services/oauth2/authorize", authorize_token_path: "/services/oauth2/token" } def ini...
Ruby
lib/salesforce/api.rb
cmather/salesforce_api
mit
3,113
128
codeparrot/github-code
582e929d633934e92f672c963659133bbc74af81b169781f90b6957ab2907eea
<?php /* AcmeDemoBundle:Welcome:index.html.twig */ class __TwigTemplate_a0efa3ca5021f58d947b8b07aa0b13e8 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("AcmeDemoBundle::layout.html.twig"); ...
PHP
app/cache/dev/twig/a0/ef/a3ca5021f58d947b8b07aa0b13e8.php
stijnhens/symfonytut
mit
6,889
163
codeparrot/github-code
2a64f212c8bf3eac3cfe6b1e446bb8ed5521176f287e8ef35150b361e2440ce0
/* * Copyright (c) 2012. HappyDroids LLC, All rights reserved. */ package com.happydroids.droidtowers.gui.dialogs; import com.happydroids.droidtowers.entities.Elevator; import com.happydroids.droidtowers.entities.Player; import com.happydroids.droidtowers.gui.Dialog; import com.happydroids.droidtowers.gui.OnClickCa...
Java
src/com/happydroids/droidtowers/gui/dialogs/ConfirmElevatorAddCarDialog.java
frigidplanet/droidtowers
mit
1,267
42
codeparrot/github-code
96a3e298c831aaa4edf093ee58cf6147f34b2b3e922686cc2cef0f751203e687
'use strict'; const { DateTime } = require('luxon'); const db = require('../database'); const socket = require('./socket'); class Stats { constructor() {} get data() { return { feed: { list: db.stats.get('feed.list').value() }, charts: { follows: db.stats.get('follows').va...
JavaScript
lib/dashboard/stats.js
Morphy2k/broadcast-notification-system
mit
1,239
63
codeparrot/github-code
fb396b6a2384d2ea26b888f4b7c64b32acab9f6249420031c326406deee1798d
<?php namespace Asi\ClinicaBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Asi\ClinicaBundle\Entity\Tiposervicio; use Doctrine\ORM\EntityRepository; class ServicioType extends AbstractType { ...
PHP
src/Asi/ClinicaBundle/Form/ServicioType.php
sanborino/clinica
mit
3,844
116
codeparrot/github-code
9a9acb780da4e2507e5581f336fcd1a3588abf308b25a43223ce5b97374bca76
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="Asciidoctor 1.5.4"> <meta name="author" content="Exercises 1"> <title>Struct...
HTML
docs/html5/sp_av1_en.html
finki-mk/SP
mit
48,674
1,093
codeparrot/github-code
5efb8a00c2b8707872b5312a384b773d268243e5b9a2fe5a0597006d2100a38b
package ua.com.fielden.platform.expression.ast.visitor; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.fail; import java.math.BigDecimal; import org.junit.Test; import ua.com.fielden.platform.expression.EgTokenCategory; import ua.com.fielden.pl...
Java
platform-pojo-bl/src/test/java/ua/com/fielden/platform/expression/ast/visitor/TypeEnforcementForPlusOperationTest.java
fieldenms/tg
mit
19,708
360
codeparrot/github-code
39893a8b1d005f57fdcf98b19027efb44cb0a685f2abd8775f7109426d3db9b1
import { snapshotTrigger } from '@resolve-js/eventstore-base' import { getLog } from './get-log' import { AdapterPool } from './types' const saveSnapshot = async ( pool: AdapterPool, snapshotKey: string, content: string ): Promise<void> => snapshotTrigger(pool as any, snapshotKey, content, async () => { co...
TypeScript
packages/runtime/adapters/eventstore-adapters/eventstore-postgresql/src/save-snapshot.ts
reimagined/resolve
mit
1,042
38
codeparrot/github-code
dda708f15a8f34c2b0007e78b381c0139741bbf20ff384a359a6e37633c29c25
// Copyright (c) Lex Li. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. /* * Created by SharpDevelop. * User: lextm * Time: 11:06 AM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ namespace Je...
C#
JexusManager.Features.MimeMap/MimeMapFeature.cs
68681395/JexusManager
mit
5,104
171
codeparrot/github-code
4d6963410413309e508cc36f22da6e2ef6fa4b0fea8e8d854b8bd621aa42965b
# source: http://stackoverflow.com/questions/2758159/how-to-embed-a-python-interpreter-in-a-pyqt-widget import sys import os import re import traceback import platform from PyQt5 import QtCore from PyQt5 import QtGui from PyQt5 import QtWidgets from electrum import util from electrum.i18n import _ if platform.sys...
Python
electrum/gui/qt/console.py
cryptapus/electrum
mit
11,672
366
codeparrot/github-code
18b0fa577ad6162589cdc5b6c61ff30b3befce7651afb33ecbf61e912f524e85
<? if(!defined("site_root")){exit();} $flag_empty=false; $search_content=""; if($flow==1) { $search_cache_id="f|".$sql_cache_id."|".$lang_symbol[$lng]; } elseif($flow==2) { $search_cache_id="f2|".$sql_cache_id."|".$lang_symbol[$lng]; } else { $search_cache_id="l|".$sql_cache_id."|".$lang_symbol[$lng]; } if(!$smar...
PHP
members/content_list_items.php
binidini/mstock
mit
10,305
290
codeparrot/github-code
76293b1dcd9b064d87584032ddebdbc9c962f8b82002b5493c848f46fbcce994
/* Copyright (C) <2012> <Kieren 'Razish' McDevitt> 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, pu...
C
src/renderer/renderer.h
Razish/solitaire
mit
2,065
50
codeparrot/github-code
7b2f3c25c59204d678274f1ad45aa6251c329fde243709133e15afe1b433b04f
//----------------------------------------------------------------------- // Copyright 2011 Ciaran McHale. // // 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...
Java
config4j/src/main/java/org/config4j/SchemaTypeUnitsWithFloat.java
config4star/config4j
mit
2,437
63
codeparrot/github-code
bc9b2408eca7543d8ad7913f1cb413879fe59f456dd6d938410c54c0c25fb946
<?php namespace JLaso\TranslationsBundle\Command; /* * * * {"command":"key index", "key":"1234", "secret":1234, "project_id":1, ...} * * {"command":"bundle index", "key":"1234", "secret":1234, "project_id":1, ...} * * * */ use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\EntityManager; use ...
PHP
src/JLaso/TranslationsBundle/Command/ServerMongoCommand.php
jlaso/tradukoj
mit
39,911
1,158
codeparrot/github-code
0b5d1d3c9d4944f91f364d7fc18bb0f52db3e1aebef914216a9db1188a328c45
{ if (this.props.x === 317) { return React.createElement( "div", { className: "_4lg0 _4h2m", style: { height: 40, width: 721, left: 0 } }, undefined, React.createElement(TransitionCell142, { x: 316 }) ); } i...
JavaScript
data/5700.js
stas-vilchik/bdd-ml
mit
15,281
809
codeparrot/github-code
61ddf805c571af4b5492b665f8aa3630fbf129734a84718d08b4b68726f9348e
using System; using System.Diagnostics; using System.IO; using System.Text; using System.Threading.Tasks; using Pulse.Core; namespace Pulse.FS { public sealed class ArchiveListingWriterV3 { public static void Write(ArchiveListing listing) { ArchiveListingWriterV3 writer = new Archi...
C#
Pulse.FS/ArchiveListing/XIII-3/ArchiveListingWriterV3.cs
marcussacana/Pulse
mit
4,971
123
codeparrot/github-code
a48ad18a5a233e89227cd8394f4265b73c35bbf5e73602f10c157b823a3ce769
<?php api::tpl()->view('header'); ?> <?php api::tpl()->view('entity/wrapper_header'); ?> <?php if(is_array(api::tpl()->media) && (count(api::tpl()->media) > 1)): $i = 0; $max_i = 15; ?> <a href="<?=api::tpl()->entity->getUrl('media');?>" class="entity_media_preview ajax" title="Photos of <?=a...
PHP
public_html/app/JungleDB/View/entity/index.php
donwilson/magnetar
mit
2,043
68
codeparrot/github-code
cb69f4e5c7e2a99ed68fddd64a1627b6b74406fc5b0fc6c488234eb69acf37a6
/** * @param {string} s * @return {string} */ var reverseVowels = function (s) { var set = { 'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 1, 'A': 1, 'E': 1, 'I': 1, 'O': 1, 'U': 1 }; var strArray = s.split(''); var i = 0; var j = strArray.length - 1; var temp; while (i...
JavaScript
solutions/345.js
zhangxin840/leetcode-solutions
mit
588
45
codeparrot/github-code
54b959607ec5fecd312952f38cdb9a23ddf574dd20a5a3620e742d49d9852b5b
// Copyright (c) 2009-2012 The Bitcoin Developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 DieselCoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __CRYPTER_H__ #define __CRYP...
C
src/crypter.h
dieselcoin/DieselCoin
mit
3,442
103
codeparrot/github-code
bacffe493aa48736dbd97ed5854c98e5e15379ab5494b54af0eccd60b7fb3060
package com.yalantis.starwars; import android.annotation.TargetApi; import android.app.ActivityManager; import android.content.Context; import android.content.pm.ConfigurationInfo; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; impo...
Java
library/src/main/java/com/yalantis/starwars/TilesFrameLayout.java
Yalantis/StarWars.Android
mit
4,925
150
codeparrot/github-code
7a4af77cdf1d5c5804fd9f52d6c5071d17d786f7da8a5c2b6cf9b0c9b974cb41
<?php /** * Creates a nicely formatted and more specific title element text for output * in head of document, based on current view. * * @since Rainbow strap 1.0 * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. */ funct...
PHP
application/extensions/helpers.php
jitendrac/wp-theme-framework
mit
14,911
457
codeparrot/github-code
d65efc957bef2cbffe49533a16b14d3933e5713296fcf612ae04c40e9517b25a
package chipmunk import ( "github.com/vova616/chipmunk/transform" "github.com/vova616/chipmunk/vect" ) // Convenience wrapper around PolygonShape. type BoxShape struct { Shape *Shape // The polygon that represents this box. Do not touch! Polygon *PolygonShape verts [4]vect.Vect // The width of the box. Call ...
GO
boxShape.go
vova616/chipmunk
mit
2,258
108
codeparrot/github-code
d23204d7c7d35a5988b726f9acd2e4d71f7b3d079d69a9cb2019203b244f20ad
/*globals describe, it, beforeEach */ 'use strict'; var assert = require("assert"); var sinon = require("sinon"); describe('Date', function () { describe('Date.now()', function () { it('returns date in milliseconds', function () { var now = Date.now(); sinon.stub(Date, 'now', function () { ...
JavaScript
test/Date.test.js
tjunghans/learning-javascript
mit
2,119
85
codeparrot/github-code
6351ace284172924b7b0930a11b4f26dba5c1382a18082614fc240e2ef59861d
using System; using System.Collections.Generic; using System.Threading.Tasks; using Windows.ApplicationModel.DataTransfer; using Windows.Storage; using Windows.Storage.Pickers; using Windows.UI.Popups; using Windows.UI.Xaml; using Famoser.Bookmarked.View.Services.Interfaces; using Famoser.FrameworkEssentials.Logging; ...
C#
Famoser.Bookmarked.Presentation.Universal/Platform/InteractionService.cs
famoser/Bookmarked
mit
3,967
121
codeparrot/github-code
5e4481133f1b74c9829c95c2de1e7edf5ea35f0affbd212af1421fae885b222e
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Data; using System.Globalization; namespace WPFDemo.Presentation.Converters { public class DateTimeShortStringConverter : ValueConverterMarkupExtension<DateTimeSho...
C#
WPFDemo/Presentation/Converters/DateTimeShortStringConverter.cs
ptownsend1984/SampleApplications
mit
1,256
45
codeparrot/github-code
7ceca7be20ac256d69eaaedba1bcfb5e8c20be9775a595247ecd4f6b4e2b5309
package com.fitpay.android.utils; import androidx.annotation.IntDef; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; import java.util.List; /** * Created by Vlad on 14.11.2016. */ public class ...
Java
fitpay/src/main/java/com/fitpay/android/utils/FPLog.java
fitpay/fitpay-android-sdk
mit
3,272
139
codeparrot/github-code
03612a5074a73e18c6867c022176c938d5e1eb0edea806ffd7ed47e67eb24ee1
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE806_wchar_t_memcpy_33.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE806.label.xml Template File: sources-sink-33.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initial...
C++
samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s09/CWE122_Heap_Based_Buffer_Overflow__c_CWE806_wchar_t_memcpy_33.cpp
maurer/tiamat
mit
3,210
109
codeparrot/github-code
46a6cd81735affac3b47cb5dddbed2c0c475f3f8bf2d7c0c436b4ac7c77fe6d6
return function() if path:sub(1,1)~="/" then return "" end if path:sub(-1,-1)~="/" then path = path .. "/" end local appropriatepath = (fs.list and path) or var.webroot..path if not (fs.exists or os.exists)(appropriatepath) then context.Next() return end local tbl=tag"table"[{class="index"}]( tag"t...
Lua
init.lua
vifino/cautodex
mit
4,372
214
codeparrot/github-code
9ca78b8c5ae10f7581ed23583b4851e68f03c7c68bafb68e445915dc566c4db2
#pragma once #include "animation.h" #include "filter.h" #include "metric.h" namespace anim { class MotionMap { public: MotionMap(); MotionMap(const anim::Animation& a, const ::anim::metric::Base& metric); MotionMap(const anim::Animation& ax, const anim::Animation& ay, const ::anim::metric::Base& metric); std:...
C
src/plugins/anim/datatypes/motion_map.h
martin-pr/possumwood
mit
1,209
55
codeparrot/github-code
32b75cb4a79192f05cae34b1752bdda041d85ae0ddc3974299cfa60c7406f7c3
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* Tabulator v4.5.1 (c) Oliver Folkerd */ var Aj...
JavaScript
ajax/libs/tabulator/4.5.1/js/modules/ajax.js
cdnjs/cdnjs
mit
12,023
466
codeparrot/github-code
ef8853da09d20e472a2b84cc6dd4fceb9827a71b23817c695d6a5e6588adcd7c
BasicGame.MainMenu = function (game) { this.music = null; this.playButton = null; }; BasicGame.MainMenu.prototype = { create: function () { // We've already preloaded our assets, so let's kick right into the Main Menu itself. // Here all we're doing is playing some music and adding a p...
JavaScript
mainMenu.js
robertkent87/yaws
mit
1,389
50
codeparrot/github-code
d3bdb39e9ca1bac47b217330f246b43444273672e9b32e4ec8655639751f3406
#region License // Pomona is open source software released under the terms of the LICENSE specified in the // project's repository, or alternatively at http://pomona.io/ #endregion using System; using System.Linq.Expressions; namespace Pomona.Common.Expressions { public class LambdaRewriter<TExpression> : Expre...
C#
app/Pomona.Common/Expressions/LambdaRewriter.cs
Pomona/Pomona
mit
1,187
41
codeparrot/github-code