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
77dc82c549456f9ac0eb84b6003896b648ea2cc14c3ac3f247b3e46b04576a0b
<HTML><HEAD> <TITLE>Review for Just Like a Woman (1992)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0104576">Just Like a Woman (1992)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Jam...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/2775.html
xianjunzhengbackup/code
mit
5,938
98
codeparrot/github-code
1773bde803261b4d4177151198232d6fa3909b5ecee514bcea7a337c4050af84
<HTML><HEAD> <TITLE>Review for Messenger: The Story of Joan of Arc, The (1999)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0151137">Messenger: The Story of Joan of Arc, The (1999)</A></H1><H3 ALIGN...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/21668.html
xianjunzhengbackup/code
mit
5,237
100
codeparrot/github-code
f562295a8be5b8d10f7671e21f9593cd16a17caf0b7f588a0d3463f6c2743384
<?php if(! defined('BASEPATH')) exit('No tienes permiso para acceder a este archivo'); class Modelo_proyecto extends CI_Model{ private $key_hash; private $timezone; function __construct(){ parent::__construct(); $this->load->database("default"); $this->key_hash = $_SERVER['HASH_ENCRYPT']; $th...
PHP
app/models/Modelo_proyecto.php
osmel/tema_Codeigniter
mit
85,391
2,144
codeparrot/github-code
2f2eedf3911591ae328c59a9f635b097b17244c200b7fc1402cfbad60263c0f0
<?php namespace GaBundle\Form; use AppBundle\Form\EmailMessageType as AppEmailMessageType; use GaBundle\Entity\Klantdossier; use GaBundle\Entity\Vrijwilligerdossier; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\Extension\Core\Type\Submi...
PHP
src/GaBundle/Form/EmailMessageType.php
deregenboog/ecd
mit
2,091
78
codeparrot/github-code
3763a91cc3c2dd774dc0561c003a9d4329d0e3c41443a722481c9cc2bcb2e092
<?php /** * @namespace */ namespace Vein\Core\Application\Service; use Vein\Core\Application\Service\AbstractService; /** * Class Cache * * @category Vein\Core * @package Application * @subpackage Service */ class Cache extends AbstractService { /** * Initializes the cache */ public fun...
PHP
src/Application/Service/Cache.php
temafey/vein-phalcon-core
mit
6,140
171
codeparrot/github-code
47dab4e0d2759701968d824f48c1c50ea57778c02ae3669c3c3ca0d8f08734de
using System.Threading.Tasks; using Wargaming.WebAPI.Common.Requests; using Wargaming.WebAPI.Common.Responses; using Wargaming.WebAPI.Enums; namespace Wargaming.WebAPI.Common { public static partial class ContractDefinitions { public static ContractDefinition ClanListDefinition = new ContractDefinitio...
C#
Wargaming.WebAPI.Common/Clans/ContractDefinitions.cs
derstarman/WG.WebApi
mit
2,051
41
codeparrot/github-code
b71f741a07019cb1304b230d12f120fe0afbcbbe23ad6d57c635287caa132bb0
--- --- <!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>PushStateLocationService | @uirouter/angular</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="...
HTML
_ng2_docs/2.0.3/classes/vanilla.pushstatelocationservice.html
ui-router/ui-router.github.io
mit
44,877
793
codeparrot/github-code
e6f98e91e0605b05bd6d517200e66688549272de28009a0a5dd22a38294ff183
namespace ZetaResourceEditor.RuntimeBusinessLogic.Snapshots; using BL; using DL; using ExportImportExcel.Export; using Language; using Projects; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Linq; using ZetaLongPaths; /// <summary> /// 2017-04-02, Uwe Ke...
C#
Source/RuntimeBusinessLogic/Snapshots/InMemoryTranslationSnapshotController.cs
UweKeim/ZetaResourceEditor
mit
4,650
150
codeparrot/github-code
114f860c66a49583ebc2ffae66187aebc1beb7032760ef22f48f8ce7f219d5ca
/** * AssetController * * @description :: Server-side logic for managing assets * @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers */ var _ = require('lodash'); var path = require('path'); var actionUtil = require('sails/lib/hooks/blueprints/actionUtil'); var Promise = require('bluebi...
JavaScript
api/controllers/AssetController.js
ArekSredzki/electron-release-server
mit
9,728
289
codeparrot/github-code
eb5539b95d5efaf13bcf478e731a54459bc738f953cb6a2b8f27e0a492453925
import Base from 'simple-auth/authenticators/base'; import Configuration from './../configuration'; /** Authenticator that conforms to OAuth 2 ([RFC 6749](http://tools.ietf.org/html/rfc6749)), specifically the _"Resource Owner Password Credentials Grant Type"_. This authenticator supports access token refresh...
JavaScript
packages/ember-simple-auth-oauth2/lib/simple-auth-oauth2/authenticators/oauth2.js
dukex/ember-simple-auth
mit
10,162
277
codeparrot/github-code
8d42e743772f9afe6c87e3f4e7ef45b510f737e2a80e582c2c1288aa0d59d571
# -*- coding: UTF-8 -*- """ This modules helps computing interesting stats about the scores stored on the Web server. """ import re from collections import defaultdict def stats(scores): """ Compute stats on a ``ScoresStore``, and return a dict that can then be used in a template. Each value is a string...
Python
rogue_scores/web/stats.py
bfontaine/rogue_scores
mit
1,355
54
codeparrot/github-code
090f37e7ac93f67c66ebee1ff92730fd54668b870eebe6a58e89f74103f5a0cd
import React from 'react'; import { act } from 'react-dom/test-utils'; import { mount } from 'enzyme'; import { RcThemeProvider } from '@ringcentral-integration/rcui'; import { ManualEntryPanel, ManualEntryPanelProps } from './ManualEntryPanel'; let wrapper; const currentLocale = 'en-US'; const defaultTransferCountryO...
TypeScript
packages/engage-voice-widget/components/TransferCallRecipient/ManualEntryPanel.spec.tsx
ringcentral/ringcentral-js-widget
mit
2,491
77
codeparrot/github-code
f19976d967f688780d28d1214bfafbb6590ad2c0ea210c0d3a7cf3d7bbfb8014
import time import wx import xapian from threading import Thread from stop_words import stop_words class NoteEntryFrame(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, None, title="Note Entry", size=(300, 300)) self.db_path = "db" self.InitUI() def InitUI(self): panel = wx.Panel(se...
Python
note_entry.py
narrowmark/engelbart
mit
4,157
167
codeparrot/github-code
a2111f9673c3313e1cdfc7f9723f3b02349c9c9262873515136b4cb70a8d4fdd
/*jslint node: true, nomen: true */ module.exports = function (childProcess, gearman) { 'use strict'; var syncUserProfileOnPostsByUserId, syncedCallback; syncUserProfileOnPostsByUserId = function (id, syncedCallback, worker) { var filteredId = parseInt(id, 10), cmdParams, ...
JavaScript
application/search/library/manager.js
henvic/vehikel
mit
1,572
56
codeparrot/github-code
a6ae6449201ed879d4259f74ea9c2f5c86820e057fb65d640c06ca960cfe4ef1
using System; using Priority_Queue; namespace TopinFrassi.GraphTheories.Graphs.Edges { /// <summary> /// Edge between two nodes in a graph /// </summary> public class Edge : PriorityQueueNode, IEdge { private readonly Lazy<int> computedHashCode; public Guid AssociationId { get; } ...
C#
TopinFrassi.GraphTheories.Graphs/Edges/Edge.cs
topinfrassi01/GraphTheories
mit
4,844
107
codeparrot/github-code
7e1fd6288b3de52486656c517566e3ad08c5124c713ce566f451f5dfa6ea96d4
import _ from 'lodash'; const ModelResolver = requireF('core/services/resolvers/ModelResolver'); exports.register = async (server, options, next) => { const modelResolver = new ModelResolver(); const userModel = modelResolver.getModel('user'); server.ext('onRequest', async (request, reply) => { if (!reques...
JavaScript
src/core/plugins/package-default-user.js
labibramadhan/mastery
mit
873
31
codeparrot/github-code
dada242795a35b696091589cc8c0bb81760baf37e1e23bd91878c252f4fd25ba
<?php /** * Created by PhpStorm. * User: pakholeung * Date: 9/25/17 * Time: 5:10 PM */ class Search_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function search_material_name($search_key) { $this->db-...
PHP
application/models/Search_model.php
Pakhoalot/StuShare
mit
2,303
85
codeparrot/github-code
e96d4e7e29df68d789dd607d60b363cd763003f84dd267809d45cc0d6268502c
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Profile extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('m_user'); $this->load->model('m_time'); $this->load->model('m_group'); $this->load->...
PHP
application/controllers/profile.php
sereepap2029/rcal
mit
4,026
100
codeparrot/github-code
93f82d65cb49885ecd9e8d22b200f84cf5584ef5dd90b4a656dc4c03ff6b788f
# Solution to exercise MaxCounters # http://www.codility.com/train/ def solution(N, A): counters = [0 for _ in range(N)] last_max_counter = 0 current_max_counter = 0 # Iterate through A. At each step, the value of counter i is # last_max_counter or counters[i], whichever is greater ...
Python
MaxCounters.py
jmaidens/Codility
mit
951
30
codeparrot/github-code
a13fbf1061488101c12a6df355f2b41d2cab37e95a0d4ad53fb197a1e7d6d3e4
#pragma once #include <glm/glm.hpp> #include <glm/ext.hpp> /** * \brief Transformer class calculates and stores all necessary transformations. */ class CTransformer { public: void setPosition(const glm::vec3& position); void setRotation(const glm::quat& rotation); void setScale(const glm::vec3& scale); void setV...
C
source/math/CTransformer.h
redagito/CG2015
mit
1,930
70
codeparrot/github-code
0f9b85974ba172829e4c6cd925b82554282dee3e8c1e8f60efe256d6051d252b
'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs); var _utilJs = require('./../util.js'); /** @test {CoverageBuilder} */ describe('Coverage:', function () { /** @test {CoverageBuilder#ex...
JavaScript
out/test/src/BuilderTest/CoverageDocTest.js
stefanwalther/esdoc
mit
1,947
76
codeparrot/github-code
00ab20767852057bb7fbbb6bfd4c19b882d547a14ff50042429f5bd14727e4b8
using UnityEngine; using MeshEngine; using CreateThis.VR.UI.Interact; namespace MMVR.Interact { public abstract class DefaultTriggerable : Triggerable { private ModeType mode; protected bool triggerDown; protected bool modeChanged; public override void OnTriggerDown(Transform cont...
C#
Assets/MMVR/Interact/DefaultTriggerable.cs
createthis/mesh_maker_vr
mit
1,631
55
codeparrot/github-code
c6f4f914ac8d75fc7b9f2eb90a415a442a56aaa018db0080ce29ed5fbf7867bd
import triggerBeforeSoftRestore from "./triggerBeforeSoftRestore"; import triggerAfterSoftRestore from "./triggerAfterSoftRestore"; const documentSoftRestore = function(args = {}) { const { doc, simulation = true, trusted = false } = args; // Stop execution, if we are not on the server, when the "simulation" flag...
JavaScript
lib/utils/documentSoftRestore.js
jagi/meteor-astronomy-softremove-behavior
mit
1,472
57
codeparrot/github-code
a3e6be5b5e14feaa27bd6901ffe93d2c04e601d698e6953ce61e8297a025aaf2
/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
C
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/rtc_base/sslidentity.h
koobonil/Boss2D
mit
10,965
273
codeparrot/github-code
e9598090ed66dac738363e993870f5f61639cc9fed0187c59060c7332aa6e847
package util; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.util.ArrayList; import org.apache.commons.io.IOUtils; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class JsonHelper { /** * Takes an input stream...
Java
Snack/src/util/JsonHelper.java
antan/snack
mit
1,041
38
codeparrot/github-code
d03bd3d31d7cb3085852d4f534257ced231ead1defb14662e08b840e47e9a5cf
// dashy.go // // Author:: Chirantan Mitra // Copyright:: Copyright (c) 2015-2017. All rights reserved // License:: MIT package main import ( "encoding/json" "fmt" "io/ioutil" "net/http" ) type Dashy struct { URL string `json:"url"` Interests Interests `json:"interests"` } func NewDashy(request ...
GO
dashy.go
chiku/dashy
mit
653
36
codeparrot/github-code
aef656eb6b0be1230e217c05b73bab8beb83189d3b00b57c4ebf2e31259d3815
<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <title>Portfolio 2 Columns Grid | Unify - Responsive Website Template</title> <!-- Meta --> <meta charset="utf-8"> <meta name...
HTML
static/plugins/Unify-v1.9.5/HTML/portfolio_2_columns_fullwidth.html
code1492/jenkinstest
mit
59,429
1,210
codeparrot/github-code
02aeaae683a078b4e0f9629d8c1924666b0e4b1aa5374e4ef5240e6b8482b314
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {ERROR_DEBUG_CONTEXT, ERROR_LOGGER, ERROR_TYPE, wrappedError} from '@angular/core/src/util/errors'; import {...
TypeScript
packages/core/test/error_handler_spec.ts
matsko/angular
mit
2,849
90
codeparrot/github-code
31d255cc40350d64454d2b6c950f97214f327d3902bf286ad64feaeb3a43aa2f
# frozen_string_literal: true class LdapsController < ApplicationController before_action :authorize, :not_guest, :not_author before_action :set_title, except: [:destroy] before_action :set_ldap, only: [:show, :edit, :update, :destroy] before_action :not_supervisor, except: [:index, :show] respond_to :html ...
Ruby
app/controllers/ldaps_controller.rb
cirope/monitor
mit
1,212
65
codeparrot/github-code
548f2444c04090c409c9f4ba5a7c8db6cc1324bb47f46b2d781f2b909015390f
#include <iostream> using namespace std; class RoleStateMemento { public: RoleStateMemento(unsigned iBlood, unsigned iAttack, unsigned iDefense) : m_iBlood(iBlood), m_iAttack(iAttack), m_iDefense(iDefense){} private: friend class GameRole; unsigned GetBloodValue() { return m_iBlood; } unsigned Ge...
C++
Behavioral Patterns/memento/test/memento -1.cpp
lijiansong/design-pattern
mit
2,270
92
codeparrot/github-code
5ea31304288c4ad501efbf74e952eff65fe4db8a9f55e3c98d771fb99b5bb55b
using System; using System.IO; using System.Linq; using System.Net; using System.Threading.Tasks; using FakeItEasy; using FluentAssertions; using Newtonsoft.Json.Linq; using NUnit.Framework; using Ober.Test.Extensions; using Ober.Test.Mock; using Ober.Tool.Commands; using Ober.Tool.Interfaces; using Ober.Tool.Localiza...
C#
Ober.Test/Commands/SubmitCommandPackageTest.cs
JanJoris/ober
mit
4,022
87
codeparrot/github-code
18ad9cf3562f98f6c9e7d4120157cc48fa649ef5f0c6663bb05845af484264c6
#include <CSVGEllipse.h> #include <CSVG.h> #include <CSVGLog.h> /* Attributes: <Core> <Conditional> <Style> <Paint> <Color> <Opacity> <Graphics> <Clip> <Mask> <Filter> <GraphicalEvents> <Cursor> <External> cx <Coordinate> cy <Coordinate> rx ...
C++
src/CSVGEllipse.cpp
colinw7/CSVG
mit
5,473
255
codeparrot/github-code
9faeef7eae63289be887f32799aec1c3be9a523d8175ce61a87614a55d403871
// This file is provided under The MIT License as part of Steamworks.NET. // Copyright (c) 2013-2015 Riley Labrecque // Please see the included LICENSE.txt for additional information. // This file is automatically generated. // Changes to this file will be reverted when you update Steamworks.NET using System; using S...
C#
Plugins/Steamworks.NET/autogen/isteamcontroller.cs
etodd/Steamworks.NET
mit
7,497
148
codeparrot/github-code
bd1c3d0d4f527d13e6d9820cc5afa7d323cf96370dfe0be3fd56ebd716d1a5ea
import asyncio import time import psycopg2 import psycopg2.pool import os import sys class Database: def __init__(self): loop = asyncio.get_event_loop() loop.run_until_complete(self.init_connection()) @asyncio.coroutine def init_connection(self): result = 1 loop_end =...
Python
src/db.py
STOP2/stop2.0-backend
mit
4,799
138
codeparrot/github-code
94c896d326a2f8279c6f4caf81f9a3ee2ee415410e8fcb7d8aea80a0282f778f
'use strict'; const chai = require('chai'); const assert = chai.assert; const fetch = require('node-fetch'); const co = require('co'); const stringify = require('querystring').stringify; const auth = require('../src/auth'); const crud = require('../src/crud'); describe('authentication', () => { const port = proce...
JavaScript
test/auth-tests.js
listochkin/solid-opinion-node
mit
1,813
70
codeparrot/github-code
e1e898635f96c2a84a59654db5c98eb5e797af695414afdad24d7e759f88aa57
<?php namespace Concrete\Controller\SinglePage\Dashboard\Users\Points; use Concrete\Core\Page\Controller\DashboardPageController; use Concrete\Core\Search\Pagination\PaginationFactory; use Concrete\Core\User\Group\Group; use Concrete\Core\User\Point\Action\Action as UserPointAction; use Concrete\Core\User\Point\Actio...
PHP
concrete/controllers/single_page/dashboard/users/points/actions.php
mainio/concrete5
mit
4,188
142
codeparrot/github-code
4213cd7ae7b316ffb8336aab4a2f18a105f5289505516bcc6561f61616e84d69
#pragma once #ifndef RAZ_MATERIAL_HPP #define RAZ_MATERIAL_HPP #include "RaZ/Math/Vector.hpp" #include "RaZ/Render/Shader.hpp" #include "RaZ/Render/ShaderProgram.hpp" #include "RaZ/Render/Texture.hpp" #include <unordered_map> namespace Raz { class Material; using MaterialPtr = std::unique_ptr<Material>; class Mat...
C++
include/RaZ/Render/Material.hpp
Razakhel/RaZ
mit
9,629
196
codeparrot/github-code
4775e4bf90a040e54f13ea8595828fc5a737ac93bd4605936bb391cf7b112efb
/*global document, window, setTimeout, clearTimeout, module, test, asyncTest, ok, equal, start, Boot*/ (function () { "use strict"; module("Boot.getCSS"); test("Environment", function () { ok(window.Boot, 'Boot is defined.'); ok(window.Boot.getCSS, 'Boot.getCSS is defined.'); }); ...
JavaScript
test/unit/boot.getcss.js
artzstudio/Boot
mit
842
33
codeparrot/github-code
ca1a2efa2641ecf60b0220c8cf3de370afd5eae5bb917a3eb54ccfcb10169143
// // NXNWCerter.h // NXNetworkManager // // Created by 明刘 on 2017/9/9. // Copyright © 2017年 yoyo. All rights reserved. // #import "NXNWConstant.h" #import <Foundation/Foundation.h> @class NXNWRequest; @class NXBatchRequest; @class NXChainRequest; @class NXNWBridge; @interface NXNWCerter : NSObject @property(nona...
C
NXFramework/Classes/NXNetworkManager/NXNWCerter.h
jsonwang/NXFramework
mit
3,081
150
codeparrot/github-code
86762c28484bcacbf61a55dac4457175938f2c40e9a6997e8790966755dfa45d
<!DOCTYPE html> <html> <head> <title>Demo Chat</title> <link href="bootstrap.css" rel="stylesheet"> <style> body { padding:20px; } .console { height: 400px; overflow: auto; } .username-msg {color:orange;} .connect-msg {color:green;} .disconnect-msg {color:red;} .send-msg {co...
HTML
zheng-message/zheng-message-client/namespace-index.html
shuzheng/zheng
mit
4,432
140
codeparrot/github-code
c711d5e506807dfac7c5f684d0738db662718759eed7caa146b0c2f60a790ce7
{% load proposal_filters %} {% if title %} <h2 class="section-title">{{ title }}</h2> {% endif %} {% for proposal in proposals %} <div class="row user-proposals"> <div class="col-xs-12" > <div class="proposal-list-content"> <div class="col-sm-1 hidden-xs proposal-stats"> <div c...
HTML
junction/templates/proposals/partials/proposal-list--votes-dashboard.html
pythonindia/junction
mit
2,774
73
codeparrot/github-code
37e4264a7274efb2237d7fe81496984fc42a23238697c28a5ba3d49109a0a16e
package com.wt.studio.plugin.querydesigner.gef.figures; import org.eclipse.draw2d.ColorConstants; import org.eclipse.draw2d.Figure; import org.eclipse.draw2d.FrameBorder; import org.eclipse.draw2d.GridData; import org.eclipse.draw2d.GridLayout; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.ImageFigure; ...
Java
com.wt.studio.plugin.querydesigner/src/com/wt/studio/plugin/querydesigner/gef/figures/FrameBlockModelFigure.java
winture/wt-studio
mit
1,387
60
codeparrot/github-code
388d3d84e3043085a54199b7520b04443ab533ea8fba98a408453ad1d575c8c6
#!/usr/bin/env python3 from monosat import * import argparse from itertools import tee import random def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." a, b = tee(iterable) next(b, None) return zip(a, b) parser = argparse.ArgumentParser(description='BGAMapper') parser.add_argument("--seed"...
Python
examples/python/shortestpath_benchmark.py
sambayless/monosat
mit
5,527
142
codeparrot/github-code
150d1efe1fb5166b668485d352f5c8533fca21159179aae68d83e11e45589429
<?php /** * CGI support. * * @author Jia Huang * * @version $Id$ * * @copyright Genee, 2014-02-07 **/ /** * Define DocBlock. **/ namespace Gini; class CGI { public static function stripslashes(&$value) { return is_array($value) ? array_map([__CLASS__, __FUNCTION__], $value) : ...
PHP
class/Gini/CGI.php
pihizi/gini
mit
7,789
249
codeparrot/github-code
986daa164dd670e580f4e3a6c996cb0d697f67ccc10d258adfa67a057ebc32fc
""" Created on Dec 20, 2011 @author: StarlitGhost """ from twisted.plugin import IPlugin from zope.interface import implementer from desertbot.message import IRCMessage from desertbot.moduleinterface import IModule from desertbot.modules.commandinterface import BotCommand from desertbot.response import IRCResponse, R...
Python
desertbot/modules/commands/Join.py
DesertBot/DesertBot
mit
1,084
37
codeparrot/github-code
6a31934ec041ecb819e2d0d7bf440c42b52f0345ee1dbaf6f29c308fdcc7e104
/* jshint node: true */ 'use strict'; var autoprefixer = require( 'broccoli-autoprefixer' ); var path = require( 'path' ); var mergeTrees = require( 'broccoli-merge-trees' ); var Funnel = require( 'broccoli-funnel' ); var compileLess = require( 'broccoli-less-single' ); var componentClassPrefix; var fingerprintDefaul...
JavaScript
index.js
softlayer/sl-ember-components
mit
6,237
191
codeparrot/github-code
0cc521643c666cec938d164a0e1ef617cab3263a3d40d788f1fc11747f4a362e
/* ======================================== ID: mathema6 TASK: C LANG: C++14 * File Name : C.cpp * Creation Date : 22-05-2021 * Last Modified : Sat 22 May 2021 02:18:12 PM CEST * Created By : Karel Ha <mathemage@gmail.com> * URL : * Points/Time : * Total/ETA : * Status : ==========...
C++
atcoder/abc/202_AISing Programming Contest 2021/C/C.v0.cpp
mathemage/CompetitiveProgramming
mit
4,902
175
codeparrot/github-code
d61883433fd9f24324087ba2d443f19e9754a0e6ac21cd78faddfcc0c2dffa4f
<?php /** * This file is part of the array_column library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) 2013 Ben Ramsey <http://benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ if (!...
PHP
config/userland.php
delold/bakalari-crawler
mit
9,408
283
codeparrot/github-code
a56aaefb28c57a8107c909556cc8696ac6eac160dfae2c5df132d92b8ab1af59
import * as express from 'express'; import * as fallback from 'express-history-api-fallback'; import * as openResource from 'open'; import * as serveStatic from 'serve-static'; import * as codeChangeTool from './code_change_tools'; import {resolve} from 'path'; import * as buildConfig from '../../config'; export func...
TypeScript
tools/utils/seed/server.ts
dimsetrdi/angular2-playground
mit
1,434
58
codeparrot/github-code
88db22f41856dd0f05ef7346d8b733b8ec774e173c8a5206ed53ddb56bb047f7
<?php namespace Platformsh\Cli\Command\User; use Platformsh\Cli\Command\CommandBase; use Platformsh\Client\Model\ProjectAccess; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\Ou...
PHP
src/Command/User/UserGetCommand.php
platformsh/platformsh-cli
mit
4,354
107
codeparrot/github-code
7696d430b2adef01e82dfdbe2219589de1388959dd757d8c0f7e65c7bdb36108
<!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/images/photon/plugins/elrte/js/bootstrap/js/bootstrap/js/plugins/prettify/js/plugins/bootstrap-fileupload.min.js.html
user-tony/photon-rails
mit
15,727
197
codeparrot/github-code
8c251b736cab576edf067235b3e55b99595d019fbbf4983955164f3362a0b1c0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>traversable-fincontainer: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../boo...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.6/traversable-fincontainer/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,148
168
codeparrot/github-code
9bb0400cef4e0a91e3fa76797ba01e6174de2d1d9a787524a7707f7ca59c0e86
// lonTree.js // Interface and implementation for the longitude interval tree // Required: // - IntervalTree var it = require('./intervalTree'); // LATLON // Convert degrees to radians Number.prototype.toRad = function(){ return (this*Math.PI) / 180; }; var toRad = function(degree){ return (degree*Math.PI) / 18...
JavaScript
support/lonTree.js
jamesroseman/brainiac
mit
7,756
292
codeparrot/github-code
8dabbb877b57b20dd018311fbf5381a61f7aa5df9d46472e8b7c56b47e78f129
"""Defines all search scopes used in this project.""" from os import path ROOT_PATH = path.abspath('/') class TreeSearchScope: """Encapsulation of a search scope to search up the tree.""" def __init__(self, from_folder=ROOT_PATH, to_folder=ROOT_PATH): """Initialize ...
Python
plugin/utils/search_scope.py
niosus/EasyClangComplete
mit
2,889
99
codeparrot/github-code
1519b6ab580a4bcc93434831d82e9ee9eefae7c0f913ebfe05857b9b46df3fd3
\begin{center} \begin{table} \caption{Tem\'aticas generadas usando Keywords} \def\arraystretch{1.5} \begin{tabularx}{\textwidth}{ lX } \textbf{T\'opico} & \textbf{T\'erminos clave} \\ \hline Mercado Financiero & market - price - stock - markets - model - returns - prices - trading - sec...
TeX
docs/comparacion/subj_keywords.tex
latorrefabian/gapmaps
mit
5,916
111
codeparrot/github-code
12586d54330c788b224c9c8541dba97ac207a5a54ce8d016ee9a49648c32dd5b
#!/usr/bin/env python ################################################################################### # # Copyright (c) 2010-2016 Motsai # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Softwa...
Python
test/neblinaTest.py
Motsai/neblina-python
mit
4,448
129
codeparrot/github-code
5322bd6b1b3caff2591d8b9157ab99d5e84ffbee04b1948920ed3e277f2d55ca
using System; using System.Configuration; using System.Net; using System.Text; using ECommon.Components; using ECommon.Configurations; using ECommon.Logging; using ECommon.Remoting; using ECommon.Serilog; using ECommonConfiguration = ECommon.Configurations.Configuration; namespace PushMessageTestClient { class Pr...
C#
src/PushMessageTestClient/Program.cs
tangxuehua/ecommon
mit
1,845
55
codeparrot/github-code
3f020e7f02076aee6eb19759d22deb698a6c6beff400e60a125882caea6219ac
package org.ieatta.server.cache; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiskCache; import org.ieatta.database.models.DBPhoto; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; impor...
Java
app/src/main/java/org/ieatta/server/cache/BaseImageUtil.java
trujunzhang/IEATTA-ANDROID
mit
6,334
200
codeparrot/github-code
321d9dc0301587ce9117248a898c7c87a20a5e08ba3d6b9860a39ccd1c9dd48c
<?php /* SensioDistributionBundle:Configurator:final.html.twig */ class __TwigTemplate_9ce6463e692e6a8a502c8b87f721ea9dc2ad3a895edc6dda6c09a6985075bede extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTempla...
PHP
app/cache/dev/twig/9c/e6/463e692e6a8a502c8b87f721ea9dc2ad3a895edc6dda6c09a6985075bede.php
kooliameni/ProjetCommerce
mit
3,492
110
codeparrot/github-code
da1e96beb80557e18a002ac865c99e7481a017ad72636342843de4bef6e66f7b
""" This script was created by Sergey Tomin for Workshop: Designing future X-ray FELs. Source and license info is on GitHub. August 2016. """ # this python library provides generic shallow (copy) and deep copy (deepcopy) operations from copy import deepcopy # import from Ocelot main modules and functions from ...
Python
2_tracking.py
sergey-tomin/workshop
mit
2,857
102
codeparrot/github-code
bd2a88ca5dd1918dddaf5ae5384e286bf3ce5cdbf53357c92fcf86c55f05d3bf
<?php namespace Core\Service\Commands; use Core\Adapter\TotallyDoctrine; /** * Class FourthCommand * * Responsible for outputting information * about an Employee on the Console * * @package Core\Service\Commands */ class FourthCommand extends Command { public function __construct(TotallyDoctrine $databa...
PHP
Software University/04) PHP Web Development Basics/22) MYSQL AND PHP FUNDAMENTALS - Exercises/Core/Service/Commands/FourthCommand.php
i-den/SoftwareUniversity
mit
2,019
77
codeparrot/github-code
499ef6b3af9fbb7cb5633456337f5e25ee4dd40d68bc9f047248d1b9a679ae07
""" Functions for calculating statistics and handling uncertainties. (c) Oscar Branson : https://github.com/oscarbranson """ import numpy as np import uncertainties.unumpy as un import scipy.interpolate as interp from scipy.stats import pearsonr def nan_pearsonr(x, y): xy = np.vstack([x, y]) xy = xy[:, ~np.a...
Python
latools/helpers/stat_fns.py
oscarbranson/latools
mit
7,150
276
codeparrot/github-code
203e63374e4748960b266625616486eb63f75cd3fb5ef581f428bc263277c49d
"use strict"; var Renderer = require("./renderer"); var Camera = require("./camera"); var Vector = require("./math/vector"); var Action = require("./enums").Action; function MovingDots(amount, msPerUpdate) { this.max = amount + 1; this.current = 0; this.msPerUpdate = msPerUpdate; this.timeSinceLastUpd...
JavaScript
src/game/loading_screen.js
NikolaDimitroff/GiftOfTheSanctum
mit
4,116
116
codeparrot/github-code
038e940202e0e0519c201b59f043e1a537f7eddca87ddbcd95fc2a1cf347135c
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.eShopOnContainers.Services.Catalog.API.Model; namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers { [Route("/")] public class CatalogController : ...
C#
src/Services/Catalog/Catalog.API/Controllers/CatalogController.cs
CESARDELATORRE/containerized-eshop
mit
1,810
74
codeparrot/github-code
fc2267006e731494d0ff5781381721fa85c90579f5085a0452d0a0bbdfcd52b1
/* * The MIT License * * Copyright 2015 Antonio Rabelo * * 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, m...
Java
src/test/java/com/github/tennaito/test/jpa/entity/Item.java
tennaito/entity-services
mit
3,606
141
codeparrot/github-code
7a4f2f5a1b17b070f361b1629878249c56a5b50486f862bc9fd90863af921c76
// Saves options to chrome.storage function save_options() { var allowed_external_urls = document.getElementById('allowed_external_urls').value; chrome.storage.sync.set({ allowed_external_urls: allowed_external_urls }, function() { // Update status to let user know options were saved. var status = doc...
JavaScript
options.js
huguesbr/chrome-extension-find-the-right-one
mit
1,008
30
codeparrot/github-code
3d5928e62b0cbb5560f4a61773f3e6e0699aadbb84050d13912fd3f43e1e117c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="http://ajax.googleapis.com/ajax/libs...
HTML
font/anonymous_pro_b-demo.html
tuliofaria/itangram
mit
37,657
613
codeparrot/github-code
31260bfd42595c6067aaf12f3b9aa7b3ec971fd544858eaaad17b11637927734
#include "Inline/BasicTypes.h" #include "Inline/Floats.h" #include "WAST.h" #include "Lexer.h" #include "Parse.h" #include <climits> #include <cerrno> #include <limits> // Include the David Gay's dtoa code. // #define strtod and dtoa to avoid conflicting with the C standard library versions // This is complicated by ...
C++
libraries/wasm-jit/Source/WAST/ParseNumbers.cpp
EOSIO/eos
mit
10,137
341
codeparrot/github-code
7f6dbbabad0955102e325de1c4f13b6ffdf144f865f5786586c772a01fb78237
(function (window, angular) { 'use strict'; angular.module('ea.controllers') .controller('LoginCtrl', ['$scope', '$state', 'bk.utils', 'ea.authentication', 'ea.toastr', 'externalLogins', function ($scope, $state, utils, authentication, toastr, externalLogins) { var ctrl = this; ...
JavaScript
AngularJSAuthRefreshToken.Web/App/modules/account/login/controller.js
luboid/AngularJSWebApiAuthRefreshToken
mit
2,249
59
codeparrot/github-code
311c2aac051b10c052e01bda76650c2fac327b97c094252e54b5adeef99f9115
<?php namespace sgoendoer\Sonic\Model; use sgoendoer\Sonic\Model\ImageObjectBuilder; use sgoendoer\Sonic\Model\ILikeableObject; use sgoendoer\Sonic\Model\ITagableObject; use sgoendoer\Sonic\Model\ICommentableObject; /** * Represents a IMAGE object * version 20170612 * * author: Sebastian Goendoer * copyright: S...
PHP
src/Model/ImageObject.php
sgoendoer/sonic
mit
4,698
207
codeparrot/github-code
0a334be55871b0d1c09dc1abd9a81e5fcae951553c913e9410b8e97ce876aab1
#ifndef __KR_DATA_ITEM_DDI_H__ #define __KR_DATA_ITEM_DDI_H__ #include "kr_data_item.h" #include "krparam/kr_param_class_ddi.h" typedef enum { KR_DDI_STATISTICS_INCLUDE = 'I', /*include current record*/ KR_DDI_STATISTICS_EXCLUDE = 'E' /*exclude current record*/ }E_KRDDIStatisticsType; typedef en...
C
krdata/kr_data_item_ddi.h
AbsoluteTiger/krproject
mit
1,218
42
codeparrot/github-code
d72a40b4872eb695fd4cd1e3c819d215ab610f964b39e32349a91b51a86a1d1d
import logging import os.path import shutil import tempfile import urllib2 import zipfile from django.contrib.gis.gdal import DataSource, OGRGeometry, OGRGeomType from django.db import transaction from django.db.utils import IntegrityError logger = logging.getLogger('neighborhoods.importer') class NeighborhoodShapef...
Python
neighborhoods/importer.py
coddingtonbear/django-neighborhoods
mit
3,743
109
codeparrot/github-code
9e1d65ea5b56f7f93618b9940d6d969739ddc088b7a5d97e6961c00d20e00593
import ReactDOM from 'react-dom'; import { scryRenderedDOMComponentsWithClass, scryRenderedDOMComponentsWithTag } from 'react-addons-test-utils'; export function setProps(props) { this.instance.setState(props); } export function extractRootDOMNode() { this.elements.rootDOMNode = ReactDOM.findDOMNode(t...
JavaScript
test/helpers/middleware.js
yummies/core-components
mit
897
34
codeparrot/github-code
d86c01f564a1a2046a5449587fe57f1734c7ebfdab2f5174744165f74b100ab6
package com.chen.util; import java.util.List; public class Pager<T> { private Integer pageNo; //Ò³ÃæºÅ private Integer pageSize; //µ¥Ò³Ãæ´óС private Integer totalSize;//×Ü´óСÊýÁ¿ private Integer totalPages;//×ÜÒ³Êý private Integer start; //²éѯ¿ªÊ¼µÄÊý×Ö£¬ÊDZ¾Ò³ÃæÇ°ÃæµÄËùÓдóС private List<T> items;...
Java
src/main/java/com/chen/util/Pager.java
gorunn/waimai
mit
1,730
95
codeparrot/github-code
2542ccdaf92df0b071b7c5b45430ce90fece2ca12bf99b751651cdd46ee93c85
using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Reflection; using System.IO; using NLog; using Newtonsoft.Json.Linq; namespace loady { public class Agent { Dictionary<string, object> dict = new Dictionary<string, object>(); int index = -1; ...
C#
loady/Agent.cs
keedongpark/bot
mit
13,280
598
codeparrot/github-code
75f576ba77e0ef55d7fb1a03a3d260432f10b432c8c4cae7db002340a2014573
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dblib: 35 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="style...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.8.2/dblib/8.8.0.html
coq-bench/coq-bench.github.io
mit
9,178
181
codeparrot/github-code
9b6d78ab9f05770ad68d7a62cdf3a2af5de0ba7ad2c1e59b2c9dfa65cea8b255
using System; using System.Collections.Generic; namespace CSML.UI { public abstract class Element { public event Action OnAdded; public event Action OnRemoved; public event Action OnAddedToView; public event Action OnRemovedFromView; public event Action OnRender; ...
C#
CSML/Source/UI/Element.cs
ChevyRay/CSML
mit
6,135
257
codeparrot/github-code
1faf26a2a09b4fd709729060bd5a9f5629b36ccaae9ce50b486b1e77d7c1430d
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>HighScore Test</title> <script src="./js/jquery-2.2.4.min.js"></script> </head> <body> <div class="results"></div> <script src="HighScore.js"></script> <script src="Game.js"></script> <script> var highScoreStore, highScore; fu...
HTML
TestHighscore.html
ilonade/FairyRings
mit
1,089
48
codeparrot/github-code
cc4c53cdfea4bf2aa86fbf9d58307ef675db3a216776906b99ce491d76a88cea
'use strict'; angular.module('alchemy').directive('alchDropdown', function(){ return { restrict: 'EA', transclude: true, replace: true, scope: { 'dropdown' : '=alchDropdown' }, templateUrl: 'component/templates/dropdown.html', controller: ['$scop...
JavaScript
component/scripts/alchemy-dropdown.directive.js
ui-alchemy/alchemy-header
mit
995
36
codeparrot/github-code
49c26ed3bf796e177f1dddf3f249c22b7255b4d0959e2f863de6e699b7d61b78
#pragma once #include <vector> #include <set> #include <typeindex> #include "frame/Mask.h" #include "frame/Registry.h" // Interlaved hierarchy !! #include "frame/Component.h" #include "frame/interface/FrameInterface.h" #include "frame/managers/FrameComponents.h" // namespace frame { /// \class CompenentIterator ...
C
include/frame/Entity.h
stett/frame
mit
8,698
268
codeparrot/github-code
050c8df7ca59b62d41820eab2217d4a042230c1fea16a0f3faadf69250f8c913
/** * OpenFB is a micro-library that lets you integrate your JavaScript application with Facebook. * OpenFB works for both BROWSER-BASED apps and CORDOVA/PHONEGAP apps. * This library has no dependency: You don't need (and shouldn't use) the Facebook SDK with this library. Whe running in * Cordova, you also don't n...
JavaScript
src/app/openfb-angular.js
camposcristianeze/AltaCanchaFrontEnd
mit
8,999
226
codeparrot/github-code
34260b4a62971cc6efcc15d48e39ef6b96d165c8cde18b622421adf1c074017a
<HTML> <HEAD> <TITLE>Simple Example of Automation with ActiveLedIt! (using JavaScript)</TITLE> </HEAD> <BODY Language="JavaScript" OnLoad="InitBody ();"> <Center> <h4>Simple Example of Automation with ActiveLedIt! (using JavaScript)</h4> </Center> <p> Below you should see a text edit control. ActiveLedIt! is contain...
HTML
Samples/ActiveLedIt/Samples/HTML-JavaScript/SimpleAutomation.html
SophistSolutions/Stroika
mit
2,100
51
codeparrot/github-code
3d647ff7dd24771a17b15ee6cf5e29d1a903def50af12b893b6652cd929a915c
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { routerContext } from 'react-router/PropTypes'; import { FormattedMessage } from 'react-intl'; import Match from 'react-router/Match'; import Helmet from 'react-helmet'; import OrderList from '../../components/OrdersList'; import B...
JavaScript
app/containers/ActiveOrdersPage/index.js
Frizi/amciu
mit
2,208
70
codeparrot/github-code
89ed8e4adede6f55265c6234b8e8c0c554030e2253e80d395ed903acd1cfd8a2
var _ = require('./util') var config = require('./config') var Watcher = require('./watcher') var textParser = require('./parsers/text') var expParser = require('./parsers/expression') /** * A directive links a DOM element with a piece of data, * which is the result of evaluating an expression. * It registers a wat...
JavaScript
bower_components/vue/src/directive.js
MStaehling/TIY-Etsy
mit
5,023
220
codeparrot/github-code
f1e80eea25f9392ebacde207dd73c54f5c96050d119147cb8d5a4bff9d0ad681
/* 34. Search for a Range Total Accepted: 133990 Total Submissions: 429440 Difficulty: Medium Contributor: LeetCode Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If...
C#
034. Search for a Range.cs
new2500/LeetCode
mit
1,456
54
codeparrot/github-code
6bb545e6269c777e5e4bb021229fa11ac411f8049cab814fffc767c13f9af1a7
'use strict' const {Parser: XMLParser} = require('xml2js') const camelCase = require('camelcase') // ------------------------------------------------------------- // Constants. // ------------------------------------------------------------- const OPTIONS = { explicitArray: false, async: false, tagNameProcesso...
JavaScript
lib/core/parser.js
pixelnest/presskit.html
mit
1,433
58
codeparrot/github-code
16a19d47234aa73a2ff59fc9e37bffd097152936445218d1a8a174e4ead3bac6
/// @file effectFactory.cpp /// @brief Implements a factory of effects. /// @author Enrico Fraccaroli /// @date Oct 22 2016 /// @copyright /// Copyright (c) 2016 Enrico Fraccaroli <enrico.fraccaroli@gmail.com> /// Permission is hereby granted, free of charge, to any person obtaining a /// copy of this software and...
C++
src/character/effect/effectFactory.cpp
Galfurian/RadMud
mit
2,298
64
codeparrot/github-code
6b0a3c182f29c5232262b92bc47f7c972a6204bd74d3e9931e378c434401b52a
(function() { "use strict"; var root = this, Chart = root.Chart, helpers = Chart.helpers; Chart.defaults.global.elements.rectangle = { backgroundColor: Chart.defaults.global.defaultColor, borderWidth: 0, borderColor: Chart.defaults.global.defaultColor, }; Chart.elements.Rectangle = Chart.Element.exte...
JavaScript
src/elements/element.rectangle.js
morleyzhi/OkChart.js
mit
2,069
91
codeparrot/github-code
117ab2a3ed4d76b25722f5b21ef572e698d987d5f27584af4a87d910d0eb6bd3
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/workbench/parts/files/browser/views/explorerViewer.ts
rkeithhill/VSCode
mit
32,159
962
codeparrot/github-code
135e566bdfa2289006b566e501175f5d02770ef1cedb5593d4e1f4e4cab19dd0
package main import "github.com/nsf/termbox-go" const mainMenuMenuOffsetY0 = 5 const ( mainMenuAddress = iota mainMenuSettings mainMenuExit mainMenuCount ) func makeMainMenu(selection int) Frame { return MainMenu{ Menu: Menu{ Selection: selection, Options: CurrentTranslation().MainMenu[:], Activat...
GO
mainmenu.go
BenLubar/dmdfcgpt
mit
2,037
112
codeparrot/github-code
048a145b1083fa9221d7e0423f80beb268f5c380d6507946bd5f4c6795a91b4f
# frozen_string_literal: true module CircleCI module CLI module Command class BaseCommand class << self def setup_token CircleCi.configure do |config| config.token = ENV['CIRCLE_CI_TOKEN'] || ask('Circle CI token ? :') end end def...
Ruby
lib/circleci/cli/command/base_command.rb
unhappychoice/circle
mit
1,191
46
codeparrot/github-code
01ce7b44bbb2d92801f8e4acfba3f01af79889d4c9acfd37dffef82b3f3621c7
// // LBYouTubeExtractor.h // LBYouTubeView // // Created by Laurin Brandner on 28.09.12. // // #import <Foundation/Foundation.h> extern NSString* const LBYouTubePlayerExtractorErrorDomain; extern NSInteger const LBYouTubePlayerExtractorErrorCodeInvalidHTML; extern NSInteger const LBYouTubePlayerExtractorErrorCode...
C
Teach/SupportingModules/LBYoutubePlayer/LBYouTubeExtractor.h
liuslevis/Gooru-iOS
mit
1,546
49
codeparrot/github-code
f0971559cd72c650a1d7fff435a66e3c690195ba81899fc235bd350a46877d87
var today = new Date; var current_year = today.getFullYear(); var current_month = today.getMonth(); function countPeriod(m_start, y_start, m_end, y_end) { var months = 12*(y_end - y_start) + m_end - m_start; var month_num = months % 12; var year_num = Math.floor(months/12); return [year_num, month_num]; } f...
JavaScript
static/js/getdate.js
elarionova/matthew-cv
mit
1,110
50
codeparrot/github-code
281705d80bea3624961f51825a86bd39e3efac721be6073fded2790b0f4df956
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using CodeCamp.Models; using Newtonsoft.Json; namespace CodeCamp.Helpers { /// <summary> /// This is the Services static class that can be used to get data from the /...
C#
CodeCamp/Helpers/Services.cs
jamesmontemagno/code-camp-app
mit
3,870
121
codeparrot/github-code
4f4bbc9c75be3ba33e69c60cf80106b83dc1323bf2235e1a23ba17e9c98f158f
# == Schema Information # # Table name: uploaded_files # # id :integer not null, primary key # competition_id :integer not null # user_id :integer not null # original_file :string not null # filename :string not null # content_type :string...
Ruby
app/models/uploaded_file.rb
rdunlop/unicycling-registration
mit
1,458
48
codeparrot/github-code
604cdba75e281785e3627f56cf9c3601945e77dd2484fe23b8bf5e297f3d912a
context ('Show Character', function () { beforeEach (() => { cy.open (); cy.loadTestAssets (); }); it ('Displays the character correctly', function () { this.monogatari.setting ('TypeAnimation', false); this.monogatari.script ({ 'Start': [ 'show character y happy with fadeIn', 'y Tada!' ] }...
JavaScript
cypress/integration/actions/show_character.spec.js
MonogatariVN/Monogatari
mit
14,077
347
codeparrot/github-code
9c1a4bbe92aefee2150dd026f8b033932495bcbaa2e3ea28b769e9519ed3015b
'use strict' /* eslint-disable no-console */ const multaddr = require('multiaddr') const PeerId = require('peer-id') const Node = require('./libp2p-bundle.js') const { stdinToStream, streamToConsole } = require('./stream') async function run() { // Create a new libp2p node with the given multi-address const idLis...
JavaScript
examples/chat/src/listener.js
diasdavid/node-libp2p
mit
1,225
43
codeparrot/github-code
5863ca4cae7c8d25a95f73f981fa69150535bcd243d91742cae40b84025b1c07
/** * Ryan Harrigan * PID: homerunh * Student ID#: 904932498 * CS xxxx * * On my honor: * * - I have not discussed the Java language code in my program with * anyone other than my instructor or the teaching assistants * assigned to this course. * * - I have not used Java language code...
Java
src/java/Questions/Q3.java
homerunh/advent
mit
3,852
128
codeparrot/github-code
c88d32cdc61225f8b25f36e4e484a0932a2ba10ba1cae6ea0ae999ea6d72cbf0
/* The MIT License (MIT) Copyright (c) 2016 Gameblabla 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...
C
Consoles_port/3DO_port/Source/3DO.c
gameblabla/evilaustralians
mit
7,475
317
codeparrot/github-code
57ea97f0606f5833fcd75fa4abb2a1f4861e3297dee721fd508098a8104718db
// Copyright (c) 2016 Uber Technologies, 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, modify, merge...
JavaScript
test/labels.js
uber/ringpop-common
mit
12,963
350
codeparrot/github-code