code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; function __export(m) { for (var p in m) if (!exports.hasOw...
tomlarkworthy/animaxe
dist/src/CanvasAnimation.js
JavaScript
mit
19,265
import { h } from 'preact'; import JustNotSorry from '../src/components/JustNotSorry.js'; import { configure, mount } from 'enzyme'; import Adapter from 'enzyme-adapter-preact-pure'; configure({ adapter: new Adapter() }); describe('JustNotSorry', () => { const justNotSorry = mount(<JustNotSorry />); let editable...
cyrusinnovation/just-not-sorry
spec/JustNotSorrySpec.test.js
JavaScript
mit
9,846
from cryptography.hazmat import backends from cryptography.hazmat.primitives.asymmetric import ec, dsa, rsa # Crypto and Cryptodome have same API if random(): from Crypto.PublicKey import DSA from Crypto.PublicKey import RSA else: from Cryptodome.PublicKey import DSA from Cryptodome.PublicKey import RS...
github/codeql
python/ql/test/query-tests/Security/CWE-326-WeakCryptoKey/weak_crypto.py
Python
mit
2,155
module Travis::API::V3 class Models::Message < Model self.inheritance_column = :none belongs_to :subject, polymorphic: true scope :ordered, -> do order(%Q{ CASE WHEN level = 'alert' THEN '0' WHEN level = 'error' THEN '1' WHEN level = 'warn' THEN '2' WHEN lev...
travis-ci/travis-api
lib/travis/api/v3/models/message.rb
Ruby
mit
422
import re import urllib import hashlib from django import template from django.conf import settings URL_RE = re.compile(r'^https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?', re.IGNORECASE) EMAIL_RE = re.compile(r'^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$', re.IGNORECASE) GRAVATAR_URL_PREFIX = 'http...
santa4nt/django-gravatar
django_gravatar/templatetags/gravatar_tags.py
Python
mit
4,346
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace RemoteSurf { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void ...
XanderLuciano/remotesurf
src/winforms/RemoteSurf/Program.cs
C#
mit
516
import { Category } from '../../../stories/storiesHierarchy'; export const storySettings = { category: Category.COMPONENTS, storyName: 'ColorPicker', dataHook: 'storybook-colorpicker', };
wix/wix-style-react
packages/wix-style-react/src/ColorPicker/test/storySettings.js
JavaScript
mit
195
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.storage.v2019_04_01; import com.microsoft.azure....
selvasingh/azure-sdk-for-java
sdk/storage/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/storage/v2019_04_01/StorageAccountUpdateParameters.java
Java
mit
14,066
<?php namespace App\Events\Stats; use App\Events\Event; class TorrentDuplicateDeleted extends Event { }
ivacuum/hosting
app/Events/Stats/TorrentDuplicateDeleted.php
PHP
mit
106
import { detectState, RepoState } from '../Repo' import logger from '../../Logger' import { spawnSync, SpawnSyncOptionsWithStringEncoding, SpawnSyncReturns } from 'child_process' jest.mock('child_process') jest.mock('../../Logger') afterEach(() => jest.resetAllMocks()) type spawnSyncFn = (command: string, args?: rea...
bugsnag/bugsnag-js
packages/react-native-cli/src/lib/__test__/Repo.test.ts
TypeScript
mit
3,325
import Client from '@bugsnag/core/client' import _NetInfo, { NetInfoState } from '@react-native-community/netinfo' import plugin from '../' jest.mock('@react-native-community/netinfo', () => ({ addEventListener: jest.fn() })) const NetInfo = _NetInfo as jest.Mocked<typeof _NetInfo> describe('plugin: react native c...
bugsnag/bugsnag-js
packages/plugin-react-native-connectivity-breadcrumbs/test/connectivity.test.ts
TypeScript
mit
2,475
process.env.NODE_ENV = 'test'; var chai = require('chai'); var chaihttp = require('chai-http'); chai.use(chaihttp); var expect = chai.expect; require(__dirname + '/../app.js'); describe('the error handler function', function() { it('should return a status of 500', function(done) { chai.request('localhost:3000...
ryanheathers/seattle-composting
test/error_handler_test.js
JavaScript
mit
531
<?php namespace Psalm\Issue; class ExtensionRequirementViolation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 239; }
vimeo/psalm
src/Psalm/Issue/ExtensionRequirementViolation.php
PHP
mit
158
require 'rails/generators/active_record' module ActiveRecord module Generators class ModelGenerator < Base argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" check_class_collision class_option :timestamps, :type => :boolean class_option :parent, ...
cloudcastle/activerecord-simpledb-adapter
lib/generators/active_record/model/model_generator.rb
Ruby
mit
786
<?php declare(strict_types=1); namespace TSwiackiewicz\AwesomeApp\Application\User\Command; use TSwiackiewicz\AwesomeApp\DomainModel\User\Password\UserPassword; use TSwiackiewicz\AwesomeApp\SharedKernel\User\UserId; /** * Class ChangePasswordCommand * @package TSwiackiewicz\AwesomeApp\Application\User\Command */ ...
tswiackiewicz/ddd-workshops
src/Application/User/Command/ChangePasswordCommand.php
PHP
mit
1,054
using System; using Abp.Application.Features; using Abp.Auditing; using Abp.BackgroundJobs; using Abp.Dependency; using Abp.Domain.Uow; using Abp.Events.Bus; using Abp.Notifications; using Abp.Runtime.Caching.Configuration; namespace Abp.Configuration.Startup { /// <summary> /// Used to configure ABP and modu...
4nonym0us/aspnetboilerplate
src/Abp/Configuration/Startup/IAbpStartupConfiguration.cs
C#
mit
3,515
# frozen_string_literal: true require "rails_helper" RSpec.describe ArticlesController, type: :routing do describe "routing" do it "recognizes and generates #index" do expect(get: "/").to route_to(controller: "articles", action: "index") end it "recognizes and generates #index with rss format" do...
publify/publify
publify_core/spec/routing/articles_routing_spec.rb
Ruby
mit
2,587
module SfdcConnect # Utility for validating reponses from SFDC REST calls module ResponseValidator def validate_response(response) raise "HTTP Error #{response.code}: #{response.parsed_response}" if response.code >= 400 raise "SFDC Error: #{response['error']} - #{response['error_description']}"...
scottweaver/sfdc-connect
lib/sfdc-support.rb
Ruby
mit
1,362
package storagesync // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regener...
Azure/azure-sdk-for-go
services/storagesync/mgmt/2018-04-02/storagesync/syncgroups.go
GO
mit
16,836
"""Test.""" import pytest TM_TABLE = [ ([0, 1, 1, 0, 1], True), ([0], True), ([1], False), ([0, 1, 0, 0], False), ] @pytest.mark.parametrize("n, result", TM_TABLE) def test_is_thue_morse(n, result): """Test.""" from is_thue_morse import is_thue_morse assert is_thue_morse(n) == result
rrustia/code-katas
src/test_is_thue_morse.py
Python
mit
318
// "node scripts/create-package-app-test.js && node packages/app-test/synchronize.js && node packages/react-boilerplate-app-scripts/scripts/link-react-boilerplates.js && lerna bootstrap", 'use strict'; require('./create-package-app-test.js'); require('../packages/app-test/synchronize.js'); require('../packages/react-b...
dog-days/create-react-boilerplate-app
scripts/bootstrap.js
JavaScript
mit
1,512
from fastapi.testclient import TestClient from docs_src.request_files.tutorial001 import app client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/files/": { "post": { "responses": { ...
tiangolo/fastapi
tests/test_tutorial/test_request_files/test_tutorial001.py
Python
mit
6,215
'use strict'; var mongoose = require('mongoose'); var bcrypt = require('bcrypt'); var eat = require('eat'); var userSchema = new mongoose.Schema({ name: { type: String, required: true }, email: { type: String, required: true, unique: true, trim: true }, username: { type: String, ...
mskalandunas/parcel
models/user.js
JavaScript
mit
997
import matplotlib.pyplot as plt import numpy as np def logHist(X, N=30,fig=None, noclear=False, pdf=False, **kywds): ''' Plot logarithmic histogram or probability density function from sampled data. Args: X (numpy.ndarray): 1-D array of sampled values N (Optional[int]): Number of bins ...
dsavransky/miscpy
miscpy/PlotFun/logHist.py
Python
mit
1,435
version https://git-lfs.github.com/spec/v1 oid sha256:bf2580cc3dbb5c69564e5338a736b949ba7f1c7d567f37e58589d9f573c7abbb size 481
yogeshsaroya/new-cdnjs
ajax/libs/highlight.js/8.4/languages/step21.min.js
JavaScript
mit
128
version https://git-lfs.github.com/spec/v1 oid sha256:e7cf7648766782e7940410a3abb8126a98b94e57bd61bfc7c1523679e8ce7ed6 size 26807
yogeshsaroya/new-cdnjs
ajax/libs/string.js/1.9.1/string.js
JavaScript
mit
130
#include <ncore/sys/wait.h> #include "thread_pool.h" namespace ncore { ThreadPool::ThreadPool() : work_threads_(), running_(0) { exec_proc_.Register(this, &ThreadPool::DoJobs); } ThreadPool::~ThreadPool() { fini(); } bool ThreadPool::init(size_t thread_number) { if(!thread_numb...
shileiyu/ncore
ncore/utils/thread_pool.cpp
C++
mit
2,800
import * as React from "react"; import * as noUiSlider from "nouislider"; export interface SVSliderProps { value: number; maxSvs: number; max: number; onUpdate: (svs: number) => void; } export class SingularValuesSlider extends React.Component<SVSliderProps> { private sliderElRef: React.RefObject<HTMLDivEle...
timjb/svd-image-compression-demo
src/main-app/SingularValuesSlider.tsx
TypeScript
mit
3,237
version https://git-lfs.github.com/spec/v1 oid sha256:de6a4f96b6914035c33c21f63dc7fcb03b9203aa911b580501b99fbe3ea4b096 size 138
Gianfranco97/flyve-mdm-web-ui
src/Utils/ChangeSessionToken.ts
TypeScript
mit
128
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class PD_IS_10_model extends CI_Model { protected $db2; protected $db3; public function __construct() { parent:: __construct(); $this->db2 = $this->load->database('lib', TRUE); $this->db3 = $this->load->datab...
teorges/fmobile
application/models/qualidade_fibra/PD_IS_10_model.php
PHP
mit
2,567
require File.expand_path(File.join(File.dirname(__FILE__),"..",'/spec_helper')) describe IControl::Base do use_vcr_cassette "IControl::Base", :record => :all, :match_requests_on => [:uri, :method, :body] # Change :record => :new_episodes when done describe "Concurrent invocation" do it "should allow to be call...
magec/icontrol
spec/icontrol/base_spec.rb
Ruby
mit
951
# == Schema Information # # Table name: releases # # id :integer not null, primary key # tag_name :string # published_at :datetime # created_at :datetime not null # updated_at :datetime not null # # Indexes # # index_releases_on_published_at (published_at) # class Rele...
djsegal/julia_observer
app/models/release.rb
Ruby
mit
348
/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, 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 * ...
ROCmSoftwarePlatform/MIOpen
src/operator.cpp
C++
mit
3,112
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.semantic.swing.tree.querybuilder; import java.util.ArrayList; import java.util.List; import org.apache.lucene.search.BooleanQuery; import org.apache.lucene.search.Query; /** * * @author Christian Plonka (...
julianmendez/desktop-search
search-core/src/main/java/com/semantic/swing/tree/querybuilder/QueryPipeline.java
Java
mit
1,651
module ActiveRecord module Confirmable extend ActiveSupport::Concern included do validates_acceptance_of :confirmed after_rollback :check_confirming end def check_confirming errors.messages.delete( :confirmed ) self.confirmed = errors.empty? ? '1' : '' if self.confirmed end d...
beyond/activerecord-confirmable
lib/activerecord-confirmable/active_record/confirmable.rb
Ruby
mit
383
package ru.sigma.test.learning.data; /** * Created with IntelliJ IDEA. * User: emaltsev * Date: 22.11.13 * Time: 10:37 * To change this template use File | Settings | File Templates. */ public class ExponentialDemo { public static void main(String[] args) { double x = 11.635; double y = 2.76;...
low205/JavaTests
src/ru/sigma/test/learning/data/ExponentialDemo.java
Java
mit
780
/* The MIT License(MIT) ===================== Copyright(c) 2008, Cagatay Dogan Permission is hereby granted, free of charge, to any person obtaining a cop of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the right to use...
ocdogan/Sweet.BRE
Sweet.BRE/BRE/Statements/BreakStm.cs
C#
mit
3,478
#-- encoding: UTF-8 require 'spec_helper' RSpec.describe "Nomener::Cleaner" do context "with reformat" do it "returns the same string given" do expect(Nomener::Cleaner.reformat("Joe \"John\" O'Smith")).to eq "Joe \"John\" O'Smith" end it "returns the string with curved double quotes replaced" do ...
dan-ding/nomener
spec/nomener/nomener_helper_spec.rb
Ruby
mit
764
# # Cookbook Name:: dovecot # Recipe:: default # # Copyright 2014, YOUR_COMPANY_NAME # # All rights reserved - Do Not Redistribute # %w{dovecot-core dovecot-imapd dovecot-pop3d}.each do |p| package "#{p}" do action :install end end cookbook_file '/etc/dovecot/dovecot.conf' do source 'dovecot.conf' mode 06...
ringohub/anzen
cookbooks/dovecot/recipes/default.rb
Ruby
mit
327
const UrlPathValidator = require('../../../services/validators/url-path-validator') const referenceIdHelper = require('../../helpers/reference-id-helper') const BenefitOwner = require('../../../services/domain/benefit-owner') const ValidationError = require('../../../services/errors/validation-error') const insertBenef...
ministryofjustice/apvs-external-web
app/routes/apply/new-eligibility/benefit-owner.js
JavaScript
mit
2,796
<?php declare(strict_types=1); namespace Cortex\Foundation\Http\Middleware; use Closure; use Exception; use Illuminate\Http\Request; class SetCrawlingRobotsHeaders { protected $response; /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure ...
rinvex/cortex-foundation
src/Http/Middleware/SetCrawlingRobotsHeaders.php
PHP
mit
1,444
<?php namespace kosssi\MyAlbumsBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://sym...
Sharepear/Sharepear
src/kosssi/MyAlbumsBundle/DependencyInjection/Configuration.php
PHP
mit
874
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
ProfilerTeam/Profiler
protected/vendors/Zend/Validate/Hostname/Cn.php
PHP
mit
168,011
from __future__ import unicode_literals from django.utils import six import pytest from nicedjango.utils.compact_csv import CsvReader @pytest.fixture def stream(): csv = b'''"a\xc2\x96b\\"c'd\\re\\nf,g\\\\",1,NULL,""\n'''.decode('utf-8') return six.StringIO(csv) def test_reader_raw(stream): r = CsvRea...
katakumpo/nicedjango
tests/test_compact_csv_reader.py
Python
mit
1,175
package com.canigraduate.uchicago.models; public interface Activity { }
kevmo314/canigraduate.uchicago.edu
backend/uchicago/scraper/src/main/java/com/canigraduate/uchicago/models/Activity.java
Java
mit
73
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Kusto::Mgmt::V2020_02_15 module Models # # Class representing an iot hub data connection. # class IotHubDataConnection < Dat...
Azure/azure-sdk-for-ruby
management/azure_mgmt_kusto/lib/2020-02-15/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb
Ruby
mit
5,505
'use strict'; const {app} = require('electron'); const appName = app.getName(); module.exports = { label: appName, submenu: [{ label: 'About ' + appName, role: 'about', params: { version: '1.0.0' } }, { type: 'separator' }, { label: 'Preferences', event: 'prefer', params: 'optional params' },...
ragingwind/electron-menu-loader
demo/menu/darwin.js
JavaScript
mit
659
(function($) { "use strict"; /** * Main controller class for jaoselect input * @param {Object} settings for widget * @param {JQuery} model initial <select> element, we hide it and use like a "model" layer */ var JaoSelect = function(settings, model) { // Delete previously created element if exists mode...
PieceOfMeat/jaoselect
src/jquery.jaoselect.js
JavaScript
mit
10,820
from pxl_object import PxlObject from pxl_vector import PxlVector class PxlSprite(PxlObject): def __init__(self, size, position): pass
desk467/pyxel
src/pxl_sprite.py
Python
mit
150
// Get all of our fake login data //var login = require('../login.json'); exports.view = function(req, res){ var goalname =req.params.goalname; res.render('add-milestone', {'time' : req.cookies.startTime, 'goalname': goalname}); }; exports.timePost = function(req,res){ var startTime = req.params.startTime; res....
w0nche0l/milestone
routes/add-milestone.js
JavaScript
mit
369
/** * @license * Copyright Google LLC 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 {ElementRef, NgZone} from '@angular/core'; import {Direction} from '@angular/cdk/bidi'; import {coerceElement}...
andrewseguin/material2
src/cdk/drag-drop/drop-list-ref.ts
TypeScript
mit
41,996
<?php //constants for debug() function (in lib.php) define("DEBUG_OUTPUT_TYPE", "html"); // command_line, html define("IS_DEBUG_MESSAGES_ON", true); //error reporting level define("DEPLOYMENT", "development"); // production, development require 'database_config.php'; ?>
DubFriend/chess
server/define.php
PHP
mit
272
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "db.h" #include "net.h" #include "main.h" #inclu...
altcommunitycoin/altcommunitycoin-skunk
src/net.cpp
C++
mit
56,430
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Stalkhub::Application.initialize!
rhannequin/stalkhub
config/environment.rb
Ruby
mit
152
<?php echo "holitas"; echo $_GET['url']; ?>
josuerangel/mark
php/index.php
PHP
mit
46
Template.index.onCreated( () => { let template = Template.instance(); template.autorun(()=> { template.subscribe('wishList'); }); }); Template.index.helpers({ contentReady() { return Template.instance().subscriptionsReady(); }, wishItems() { return Wish.find().fetch(); } });
lnwKodeDotCom/WeWish
client/templates/authenticated/index.js
JavaScript
mit
307
""" Test suite for the embedded <script> extraction """ from BeautifulSoup import BeautifulSoup from nose.tools import raises, eq_ from csxj.datasources.parser_tools import media_utils from csxj.datasources.parser_tools import twitter_utils from tests.datasources.parser_tools import test_twitter_utils def make_soup(...
sevas/csxj-crawler
tests/datasources/parser_tools/test_media_utils.py
Python
mit
4,676
import random from urllib import urlopen import sys WORD_URL = "http://learncodethehardway.org/words.txt" WORDS = [] PHRASES = { "class %%%(%%%):": "Make a class named %%% that is-a %%%.", "class %%%(object):\n\tdef __init__(self, ***)" : "class %%% has-a __init__ hat takes self and *** parameter.", "class %%%...
peterhogan/python
oop_test.py
Python
mit
2,018
# vim: set fileencoding=utf-8 : """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from ...
lpancescu/atlas-lint
setup.py
Python
mit
3,767
jQuery(document).ready(function($){$(".slide8").remove();});
kwhaler/thenewarkansans
menace/rw_common/themes/couture/scripts/banner/slide_7.js
JavaScript
mit
61
module MarkdownDescriptionDecorator def description_markdown @description_markdown ||= Markdown.new(description) end def description_html @description_html ||= description_markdown.html.html_safe end def description_text @description_text ||= description_markdown.text.html_safe end end
hogelog/dmemo
app/decorators/markdown_description_decorator.rb
Ruby
mit
313
var throttle = require( "../throttle" ); // Fire callback at end of detection period var func = throttle(function() { // Do stuff here console.log( "throttled" ); }, 200 ); func();
ProperJS/throttle
test/test.js
JavaScript
mit
195
<?php /** * CodeIgniter * * An open source app development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2016, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ...
shr1th1k/0fferc1t1
system/database/drivers/mssql/mssql_result.php
PHP
mit
4,846
package org.droidplanner.core.MAVLink; import com.MAVLink.Messages.MAVLinkMessage; import com.MAVLink.common.msg_mission_ack; import com.MAVLink.common.msg_mission_count; import com.MAVLink.common.msg_mission_current; import com.MAVLink.common.msg_mission_item; import com.MAVLink.common.msg_mission_item_reached; impor...
Yndal/ArduPilot-SensorPlatform
Tower_with_3drservices/dependencyLibs/Core/src/org/droidplanner/core/MAVLink/WaypointManager.java
Java
mit
11,062
from .game import Board for i in range(10): Board.all() print(i)
jorgebg/tictactoe
time.py
Python
mit
74
#include <iostream> using namespace std; int main() { int n; cin >> n; if(n<6) cout << n/2+1 <<endl; else cout << (10-n)/2+1 <<endl; return 0; }
zzh8829/CompetitiveProgramming
CCC/Stage1/10/ccc10j1.cpp
C++
mit
162
# coding: utf-8 # ##Test out UGRID-0.9 compliant unstructured grid model datasets with PYUGRID # In[1]: name_list=['sea_surface_elevation', 'sea_surface_height_above_geoid', 'sea_surface_height','water level', 'sea_surface_height_above_sea_level', 'water_surface_height_ab...
ioos/comt
python/pyugrid_test.py
Python
mit
3,158
version https://git-lfs.github.com/spec/v1 oid sha256:e1af4eb3952e50a1690c1d45f20c988b688e49f11938afc9f62e5384f71aaebb size 7470
yogeshsaroya/new-cdnjs
ajax/libs/fpsmeter/0.3.0/fpsmeter.min.js
JavaScript
mit
129
version https://git-lfs.github.com/spec/v1 oid sha256:ef8207110cddbc9ab9a056d5d654bd6d8615dca91bbba5f04af60bfa0a82e780 size 408546
yogeshsaroya/new-cdnjs
ajax/libs/jsPlumb/1.4.1/mootools.jsPlumb-1.4.1-all.js
JavaScript
mit
131
import { sh } from '../sh' export const getLogLines = (previousVersion: string) => sh( 'git', 'log', `...${previousVersion}`, '--merges', '--grep="Merge pull request"', '--format=format:%s', '-z', '--' ).then(x => (x.length === 0 ? [] : x.split('\0')))
desktop/desktop
script/changelog/git.ts
TypeScript
mit
290
<?php /** * This file is part of the vardius/list-bundle package. * * (c) Rafał Lorenz <vardius@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Vardius\Bundle\ListBundle\Filter\Types\Type; use Doctrine\ORM\Qu...
Vardius/list-bundle
Filter/Types/Type/DateType.php
PHP
mit
1,881
var gulp = require('gulp'); var setup = require('web3-common-build-setup'); var DEPS_FOLDER = setup.depsFolder; // Build tools var _ = require(DEPS_FOLDER + 'lodash'); var insert = require(DEPS_FOLDER + 'gulp-insert'); var del = require(DEPS_FOLDER + 'del'); var plugins = {}; plugins.s...
toefel/web3-demo
gulpfile.js
JavaScript
mit
3,495
// ⚪ Initialization let canvas = document.getElementById('game') as HTMLCanvasElement; var gl = canvas.getContext('webgl'); if (!gl) { throw new Error('Could not create WebGL Context!'); } // 🔲 Create NDC Space Quad (attribute vec2 position) let ndcQuad = [ 1.0, -1.0, -1.0, -1.0, 1.0, 1.0, -1.0, 1.0 ]; let indices ...
alaingalvan/alain.xyz
packages/portfolio/blog/image-editor-effects/example.ts
TypeScript
mit
4,422
angular.module('africaXpress') .controller('ShopController', function($scope, Item){ $scope.allItems; $scope.getAll = function () { Item.getAll().success(function(data){ $scope.allItems = data }); }; $scope.getAll(); });
ctodmia/africaexpress
client/controllers/shopcontroller.js
JavaScript
mit
244
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
cemtuver/toastpf
Toastpf/Properties/AssemblyInfo.cs
C#
mit
2,340
//同一个键的值连续存储,使用find产生的迭代器连续删除n次,n是该键对应的值的个数
hongmi/cpp-primer-4-exercises
chapter-10/10.26.cc
C++
mit
114
var REGEX = require('REGEX'), MAX_SINGLE_TAG_LENGTH = 30, create = require('DIV/create'); var parseString = function(parentTagName, htmlStr) { var parent = create(parentTagName); parent.innerHTML = htmlStr; return parent; }; var parseSingleTag = function(htmlStr) { if (htmlStr.length > MAX_SIN...
JosephClay/d-js
src/parser.js
JavaScript
mit
975
package seedu.jobs.logic.commands; import java.io.IOException; import com.google.common.eventbus.Subscribe; import seedu.jobs.commons.core.EventsCenter; import seedu.jobs.commons.events.storage.SavePathChangedEventException; /* Change save path */ //@@author A0130979U public class PathCommand extends Command { ...
CS2103JAN2017-F11-B1/main
src/main/java/seedu/jobs/logic/commands/PathCommand.java
Java
mit
1,421
import { module, test } from "qunit"; import argvInjector from "inject-loader?nwjs/App!nwjs/argv"; module( "nwjs/argv" ); test( "Default values", assert => { const argv = argvInjector({ "nwjs/App": { argv: [] } }); assert.propEqual( argv.argv, { "_": [], "tray": false, "hide": false, "h...
bastimeyer/livestreamer-twitch-gui
src/test/tests/nwjs/argv.js
JavaScript
mit
3,497
package mobi.qubits.tradingapp.query; import java.util.Date; import org.springframework.data.annotation.Id; public class QuoteEntity { @Id private String id; private String symbol; private String name; private float open; private float prevClose; private float currentQuote; private float ...
yizhuan/tradingac
src/main/java/mobi/qubits/tradingapp/query/QuoteEntity.java
Java
mit
1,859
#!/usr/bin/python """ fanhaorename.py """ import os import os.path import logging import fileorganizer from fileorganizer import _helper from fileorganizer.replacename import _replacename __author__ = "Jack Chang <wei0831@gmail.com>" def _tagHelper(tag): """ TODO """ result = "" for c in tag: ...
wei0831/fileorganizer
fileorganizer/fanhaorename.py
Python
mit
2,156
<?php namespace Mitch\EventDispatcher; class Dispatcher { private $listeners = []; public function dispatch($event) { if (is_array($event)) { $this->fireEvents($event); return; } $this->fireEvent($event); } public function addListener($name, Listen...
mitchellvanw/event-dispatcher
src/Dispatcher.php
PHP
mit
1,085
using System; using System.Runtime.InteropServices; namespace UnityMathReference { [StructLayout(LayoutKind.Sequential)] public struct Point3 { #region Properties public int x, y, z; public static readonly Point3 one = new Point3(1); public static readonly Point3 minusOne = new Point3(-1); public static...
zezba9000/UnityMathReference
Assets/Math/Point3.cs
C#
mit
5,085
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class OrganizationType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options ...
Gordondalos/ereport-two
src/AppBundle/Form/OrganizationType.php
PHP
mit
995
using System; namespace Frog.Orm { [AttributeUsage(AttributeTargets.Property)] public sealed class PrimaryKeyAttribute : Attribute { public string Name { get; set; } } }
suneg/frogdotnet
Frog.Orm/PrimaryKeyAttribute.cs
C#
mit
208
import * as React from './dfvReact' import { dfvFront } from "./dfvFront"; export interface PopWindowPara { /** * 是否不覆盖全屏 */ notCover?: boolean; /** * 是否显示红色背景的错误提示框 */ isErr?: boolean; /** * 自动关闭时间,为0则不自动关闭 */ closeTime?: number; } export class dfvWindow { ...
rxaa/dfv
src/public/dfvWindow.tsx
TypeScript
mit
6,167
module.exports.default = undefined;
webpack/webpack-cli
test/build/config/undefined-default/webpack.config.js
JavaScript
mit
36
var tpl = [ '<div id="{uuid}" class="datepicker ui-d-n">', ' <div class="datepicker__mask"></div>', ' <div class="datepicker__main">', ' <div class="datepicker__header">', ' <div class="datepicker__time-toggle"></div>', ' <div class="datepicker__time-selector-list">', ' <div class="datepicker__time-selec...
yuanzm/simple-date-picker
lib/datepicker_tpl.js
JavaScript
mit
2,048
<?php namespace Nf; class Db { const FETCH_ASSOC = 2; const FETCH_NUM = 3; const FETCH_OBJ = 5; const FETCH_COLUMN = 7; private static $_connections = array(); public static $_forceStoreConnectionInInstance = null; public static function factory($config) { if (! is_array(...
jarnix/nofussframework
Nf/Db.php
PHP
mit
3,365
/** * Created by Administrator on 2015/2/3. */ var Task = require('../models/task') ; //add task exports.addTask = function(req,res){ var title = req.body.title, content = req.body.content, date = req.body.date, duration = req.body.duration, done = req.body.done, frequency...
lakb248/CouplesWallet
controllers/taskController.js
JavaScript
mit
6,193
<?php namespace App\Models\Soundcloud; use App\Models\SocialModel; class User extends SocialModel { protected $table = 'social_soundcloud_users'; }
rex/prex.io
app/Models/Soundcloud/User.php
PHP
mit
153
(function () { 'use strict'; angular .module('password', [ 'ngMaterial', /*@@DIST-TEMPLATE-CACHE*/ 'ngRoute', 'password.analytics', 'password.title', 'password.nav', 'password.welcome', 'password.forgot', 'password....
silinternational/idp-pw-ui
app/password.module.js
JavaScript
mit
513
<?php namespace LaravelBox\Commands\Files; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; use GuzzleHttp\Exception\ServerException; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Exception\TransferException; use LaravelBox\Factories\ApiResponseFactory; class DownloadFileCommand extends A...
ryanvade/laravel-box
src/LaravelBox/Commands/Files/DownloadFileCommand.php
PHP
mit
1,523
<?php /* * This file is part of KoolKode BPMN. * * (c) Martin Schröder <m.schroeder2007@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types = 1); namespace KoolKode\BPMN\Runtime\Behavior; use KoolKod...
koolkode/bpmn
src/Runtime/Behavior/MessageBoundaryEventBehavior.php
PHP
mit
1,724
const greetings = { morning: ['God morgon!', 'Kaffe?', 'Ha en bra dag!', 'Hoppas du får en bra dag!', 'Sovit gott?'], afternoon: ['Ganska fin du!', 'Trevlig eftermiddag!', 'Eftermiddags kaffe?', 'Glömde väl inte att fika?'], evening: ['Trevlig kväll!', 'Ser bra ut!', 'Myskväll?!'], }; module.exports = { getMes...
jakkra/SmartMirror
util/messages.js
JavaScript
mit
879
# class DesignComponent class Mucomo::Model::DesignComponent # @todo participant, meta, description # this include adds the attributes id, name, title to this class. include Mucomo::Model::HasIdentifiers attr_accessor :media_type # media_type's range is a restricted vocabulary, see XML schema file a...
pmenke/mucomo
lib/mucomo/model/design_component.rb
Ruby
mit
733
module I18n module Backend class Simple protected def pluralize(locale, entry, count) return entry unless entry.is_a?(Hash) and count key = :zero if count == 0 && entry.has_key?(:zero) locale_pluralize = lookup(locale, :pluralize) if locale_pluralize && locale_p...
romanvbabenko/ukrainian
lib/ukrainian/backend/simple.rb
Ruby
mit
678
package io.variability.jhipster.security; import io.variability.jhipster.config.Constants; import org.springframework.data.domain.AuditorAware; import org.springframework.stereotype.Component; /** * Implementation of AuditorAware based on Spring Security. */ @Component public class SpringSecurityAuditorAware imple...
axel-halin/Thesis-JHipster
FML-brute/jhipsters/uaa/src/main/java/io/variability/jhipster/security/SpringSecurityAuditorAware.java
Java
mit
548
import auth from '../auth'; import clone from 'clone'; import storage from './storage'; async function addBlockOrItem(dbConn, token, codeObj, props, type) { let user = await auth.getUser(token); console.log(`Adding new ${type} for user ${user.login}`); let add; let newType = { code: codeObj, name: pr...
UnboundVR/metavrse-server
src/inventory/controller.js
JavaScript
mit
2,973
<?php /** * Main DAV server class * * @package Sabre * @subpackage DAV * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved. * @author Evert Pot (http://www.rooftopsolutions.nl/) * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License */ class Sabre_DAV_Server { ...
harrydeluxe/mongofilesystem
example/dav/protected/lib/Sabre/DAV/Server.php
PHP
mit
68,178