identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/viktor-podzigun/codegalaxy-app/blob/master/app/src/test/scala/io/codegalaxy/app/CodeGalaxyRootSpec.scala
Github Open Source
Open Source
Apache-2.0
null
codegalaxy-app
viktor-podzigun
Scala
Code
969
3,450
package io.codegalaxy.app import io.codegalaxy.app.chapter.ChapterState import io.codegalaxy.app.topic.TopicActions.TopicsFetchAction import io.codegalaxy.app.topic.{MockTopicActions, TopicState} import io.codegalaxy.app.user.UserActions.UserLoginAction import io.codegalaxy.app.user._ import io.codegalaxy.domain._ imp...
17,995
https://github.com/jarys/zcash-test-vectors/blob/master/test-vectors/rust/bip_0032.rs
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT-0, MIT
null
zcash-test-vectors
jarys
Rust
Code
1,719
7,056
struct TestVector { c: [u8; 32], pk: [u8; 33], address: [u8; 20], external_ovk: [u8; 32], internal_ovk: [u8; 32], account: u32, }; // From https://github.com/zcash-hackworks/zcash-test-vectors/blob/master/bip_0032.py ...
3,579
https://github.com/azuse/Gboard-Patched/blob/master/Gboard_renamed_miui/smali/hwp.smali
Github Open Source
Open Source
MIT
2,022
Gboard-Patched
azuse
Smali
Code
906
4,506
.class public final Lhwp; .super Ljava/lang/Object; .source "PG" # instance fields .field public final a:Lhws; .field public final b:Lhwr; .field public c:Ljava/util/ArrayList; .field public final d:Z .field public e:Ljava/lang/String; .field public final f:I .field g:Z .field public final h:I .field public f...
14,579
https://github.com/HunseopJeong/TAU/blob/master/examples/mobile/UIComponents_legacy/src/widgets/popupwindow/popupwindow.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-flora-1.1, MIT
2,019
TAU
HunseopJeong
JavaScript
Code
121
624
/*global $ */ /*jslint unparam: true */ $(document).one("pageinit", "#popupwindow-demo", function () { var direction = ""; $("#btn_textbox_popup_cancel").on("vclick", function () { $("#textbox_popup").find("input").val(""); $("#textbox_popup").popup("close"); return false; }); $("#textbox_popup a").click(fu...
12,520
https://github.com/ludikduran/RemoteSupport/blob/master/Settings.ascx
Github Open Source
Open Source
MIT
2,014
RemoteSupport
ludikduran
null
Spoken
47
267
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Settings.ascx.cs" Inherits="LD2.TeamViewer.Settings" %> <%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %> <%@ Register TagPrefix="dnn" TagName="FileUpload" Src="~/controls/FilePickerUploader.ascx" %> <div> ...
29,207
https://github.com/thanhtuancr2011/core-package/blob/master/public/core/components/collection/CollectionService.js
Github Open Source
Open Source
MIT
null
core-package
thanhtuancr2011
JavaScript
Code
431
1,122
var collectionApp = angular.module('collection', []); collectionApp.factory('CollectionResource',['$resource', function ($resource){ return $resource('/api/collection/:method/:id', {'method':'@method','id':'@id'}, { add: {method: 'post'}, save:{method: 'post'}, update:{method: 'put'} });...
19,539
https://github.com/haozhiyu1990/XVim2/blob/master/XVim2/XcodeHeader/DVTKit/_TtC6DVTKit46DVTPathControlDescriptiveNavigationPopoverItem.h
Github Open Source
Open Source
MIT
2,022
XVim2
haozhiyu1990
C
Code
41
182
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 Steve Nygard. // #import <DVTKit/_TtC6DVTKit35DVTPathControlNavigationPopoverItem.h> @class MISSING_TYPE; __attribute__((visibility("hidden"))) @interface _TtC6DVTKit46DVTPathControlDescriptiv...
38,814
https://github.com/jonaslo98/side9/blob/master/app/Http/Controllers/Side9Controller.php
Github Open Source
Open Source
MIT
null
side9
jonaslo98
PHP
Code
27
83
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Routing\Controller as BaseController; class Side9Controller extends BaseController { function get(Request $request) { $number = $request->get('h'); return "hey" . $number; } }
5,693
https://github.com/sysrel/SIFT/blob/master/test/Feature/KleeReportError.c
Github Open Source
Open Source
Apache-2.0
2,021
SIFT
sysrel
C
Code
102
329
// RUN: %llvmgcc %s -g -emit-llvm -O0 -c -o %t2.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --emit-all-errors %t2.bc 2>&1 | FileCheck %s // RUN: ls %t.klee-out/ | grep .my.err | wc -l | grep 2 #include <stdio.h> #include <assert.h> int main(int argc, char** argv) { int x, y, *p = 0; kle...
16,731
https://github.com/unica-isde/isde/blob/master/src2/dispatch/rock_paper_scissor_4.py
Github Open Source
Open Source
Apache-2.0
2,022
isde
unica-isde
Python
Code
147
605
from abc import ABC, abstractmethod class Weapon(ABC): def __str__(self): return self.__class__.__name__ @abstractmethod def fight_against(self, other_weapon): pass # second dispatch @abstractmethod def _fight_against_scissor(self): pass @abstractmethod def ...
40,766
https://github.com/HussainAlazzani/TheGymWebsite/blob/master/TheGymWebsite/Views/Account/EditUserRoles.cshtml
Github Open Source
Open Source
MIT
null
TheGymWebsite
HussainAlazzani
C#
Code
209
958
@model EditUserRolesViewModel @{ ViewData["Title"] = "Add user to or remove from role"; } <div class="card mb-3"> <div class="card-header font-weight-bold"> <div class="container"> <div class="row"> <div class="col-auto"> @Model.UserName ...
33,310
https://github.com/PacktPublishing/Unity-2017-Building-a-Tilemap-2D-Game-from-Scratch/blob/master/Section04/SaveLoadSystem.cs
Github Open Source
Open Source
MIT
2,021
Unity-2017-Building-a-Tilemap-2D-Game-from-Scratch
PacktPublishing
C#
Code
205
672
using System.Collections; using System.Collections.Generic; using UnityEngine; public static class SaveLoadSystem { public static void Save(string slotKey, SavingData data) { //Save into PlayerPrefs for each data item within the SavingData structure PlayerPrefs.SetInt(slotKey + "_level", data.level); PlayerPre...
17,231
https://github.com/byu343/sonic-wpa-supplicant/blob/master/tests/fuzzing/json/json.c
Github Open Source
Open Source
Unlicense
2,022
sonic-wpa-supplicant
byu343
C
Code
95
304
/* * JSON parser - test program * Copyright (c) 2019, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/json.h" #include "../fuzzer-common.h" int LLVMFuzzerTest...
51,034
https://github.com/BlueMonk1107/SimpleExample/blob/master/Client/Assets/Mecanim Warrior Anim Free/Animations/death_new.anim
Github Open Source
Open Source
MIT
2,019
SimpleExample
BlueMonk1107
Unity3D Asset
Code
20,000
70,152
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!74 &7400000 AnimationClip: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: death_new serializedVersion: 6 m_Legacy: 0 m_Compressed: 0 m_UseHighQualityCurve: 1 m_RotationCurves: - curve: serializedVersion: 2 m_Curve: - time: 0 v...
35,184
https://github.com/unleashed/apisonator/blob/master/lib/3scale/backend/version.rb
Github Open Source
Open Source
Apache-2.0
null
apisonator
unleashed
Ruby
Code
9
28
module ThreeScale module Backend VERSION = '2.84.0' end end
23,597
https://github.com/kirriri/ararin-ui-mobile/blob/master/src/components/PrizeWheel/_style.scss
Github Open Source
Open Source
MulanPSL-1.0
2,021
ararin-ui-mobile
kirriri
SCSS
Code
89
292
.ararin_prizeWheel_box { img { width: 100%; } } .ararin_prizeWheel_box { margin: 0 auto; position: relative; flex-shrink: 0; // @media (max-width: 420px) { // width: 310px; // } // @media (max-width: 375px) { // width: 280px; // } // @media (max-width: ...
12,701
https://github.com/zbowling/mojo/blob/master/services/speech_recognizer/src/org/chromium/mojo/speech_recognizer/SpeechRecognizerApplicationDelegate.java
Github Open Source
Open Source
BSD-3-Clause
2,020
mojo
zbowling
Java
Code
158
545
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.mojo.speech_recognizer; import android.content.Context; import org.chromium.mojo.application.ApplicationConnection; import org.chro...
10,099
https://github.com/graphile-contrib/pg-many-to-many/blob/master/src/manyToManyRelationships.js
Github Open Source
Open Source
MIT
2,023
pg-many-to-many
graphile-contrib
JavaScript
Code
369
1,227
function arraysAreEqual(array1, array2) { return ( array1.length === array2.length && array1.every((el, i) => array2[i] === el) ); } // Given a `leftTable`, trace through the foreign key relations // and identify a `junctionTable` and `rightTable`. // Returns a list of data objects for these many-to-many relat...
45,969
https://github.com/rokrepo/pomdog/blob/master/examples/ObsoleteModules/Rendering/Processors/PrimitiveCommandProcessor.hpp
Github Open Source
Open Source
MIT
2,020
pomdog
rokrepo
C++
Code
91
325
// Copyright (c) 2013-2019 mogemimi. Distributed under the MIT license. #pragma once #include "Pomdog.Experimental/Rendering/RenderCommandProcessor.hpp" #include "Pomdog/Graphics/detail/ForwardDeclarations.hpp" #include "Pomdog/Math/Matrix4x4.hpp" #include <Pomdog/Pomdog.hpp> #include <memory> namespace Pomdog { nam...
9,375
https://github.com/DougRogers-DigitalFish/USD/blob/master/pxr/base/trace/testenv/testTraceSerialization.cpp
Github Open Source
Open Source
BSD-2-Clause
2,022
USD
DougRogers-DigitalFish
C++
Code
585
2,172
// // Copyright 2018 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
2,576
https://github.com/artem-smotrakov/sling-org-apache-sling-discovery-base/blob/master/src/test/java/org/apache/sling/discovery/base/commons/DummyDiscoveryService.java
Github Open Source
Open Source
Apache-2.0
2,021
sling-org-apache-sling-discovery-base
artem-smotrakov
Java
Code
208
527
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
8,040
https://github.com/vicfran/got-challenge/blob/master/app/src/main/java/es/npatarino/android/gotchallenge/presentation/adapter/GoTCharactersAdapter.java
Github Open Source
Open Source
Apache-2.0
2,016
got-challenge
vicfran
Java
Code
226
1,039
package es.npatarino.android.gotchallenge.presentation.adapter; import android.app.Activity; import android.content.Intent; import android.support.v4.app.ActivityOptionsCompat; import android.support.v4.util.Pair; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.LayoutI...
34,247
https://github.com/Casey-Hofland/Quest-System-Pro/blob/master/Assets/Devdog/QuestSystemPro/Scripts/Integrations/LipSync/Dialogue/DialogueOwnerLipSyncBridge.cs
Github Open Source
Open Source
MIT
2,022
Quest-System-Pro
Casey-Hofland
C#
Code
111
446
#if LIPSYNC using Devdog.General; using Devdog.QuestSystemPro.Dialogue; using UnityEngine; using UnityEngine.Assertions; namespace Devdog.QuestSystemPro.Integration.LipSync { [AddComponentMenu(QuestSystemPro.AddComponentMenuPath + "Integrations/LipSync/Dialogue Owner LipSync Bridge")] public class DialogueOw...
4,701
https://github.com/openebs/MayaStor/blob/master/test/python/common/msclient.py
Github Open Source
Open Source
Apache-2.0
2,019
MayaStor
openebs
Python
Code
218
619
import os import subprocess import json from common.util import mayastor_target_dir class MayastorClient: """Abstraction around Mayastor command line client, which allows flexible client configuration and supports parsing of command output depending on requested output mode. In order to invoke mayasto...
3,604
https://github.com/RupaliSableTechInvento/multicrytp-trading/blob/master/client/assets/app/router/sammy.js
Github Open Source
Open Source
MIT
2,018
multicrytp-trading
RupaliSableTechInvento
JavaScript
Code
2,861
8,018
// -- Sammy -- /sammy.js // http://code.quirkey.com/sammy // Version: 0.6.2 // Built: Mon Oct 11 12:41:51 -0700 2010 (function(g, i) { console.log("sammy.js"); var n, f = "([^/]+)", j = /:([\w\d]+)/g, k = /\?([^#]*)$/, b = function(o) { return Array.prototype.slice.call(o) }, c = function(o) { retur...
40,113
https://github.com/sadrulhc/chromium/blob/master/fuchsia/runners/cast/cast_runner_switches.cc
Github Open Source
Open Source
BSD-3-Clause
2,020
chromium
sadrulhc
C++
Code
42
114
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "fuchsia/runners/cast/cast_runner_switches.h" const char kForceHeadlessForTestsSwitch[] = "force-headless-for-tests"; const char kDisableVulkan...
35,076
https://github.com/krenak-code/nuxt-vue-locality/blob/master/lib/plugin.js
Github Open Source
Open Source
MIT
null
nuxt-vue-locality
krenak-code
JavaScript
Code
9
30
import Vue from 'vue' import Locality from 'vue-locality' Vue.use(Locality)
12,008
https://github.com/eliseemond/elastix/blob/master/Common/Transforms/itkBSplineInterpolationDerivativeWeightFunction.hxx
Github Open Source
Open Source
Apache-2.0
2,022
elastix
eliseemond
C++
Code
347
1,041
/*========================================================================= * * Copyright UMC Utrecht and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
26,982
https://github.com/nickyvanurk/social-network-api/blob/master/tests/user.test.js
Github Open Source
Open Source
MIT
2,021
social-network-api
nickyvanurk
JavaScript
Code
288
1,034
const request = require('supertest'); const app = require('../src/app'); const User = require('../src/models/user'); const { userOneId, userOne, setupDatabase } = require('./fixtures/db'); beforeEach(setupDatabase); test('Signup a new user', async () => { const response = await request(app) .post('/users'...
41,204
https://github.com/Methma/WSO2-SP410-CustomWidget-HelloWorld/blob/master/node_modules/react-vizgrammar/dist/components/resources/themes/victoryDarkTheme.js
Github Open Source
Open Source
Apache-2.0
2,018
WSO2-SP410-CustomWidget-HelloWorld
Methma
JavaScript
Code
759
2,316
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _assign = require('lodash/assign'); var _assign2 = _interopRequireDefault(_assign); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Colors var yellow200 = '#FFF59D'; /* ...
43,945
https://github.com/igogo5yo/atom-yii2/blob/master/snippets/model-updateCounters.cson
Github Open Source
Open Source
MIT
2,021
atom-yii2
igogo5yo
CoffeeScript
Code
11
65
'.source.php': 'Yii 2 Model updateCounters': 'prefix': 'updatecounters' 'body': '${1:ModelName}::updateCounters({2:[\'${6:key}\' => ${7:value}]})'
35,404
https://github.com/yaminphyu923/fever_clinic_vueback/blob/master/app/Models/MedicalList.php
Github Open Source
Open Source
MIT
null
fever_clinic_vueback
yaminphyu923
PHP
Code
52
244
<?php namespace App\Models; use App\Models\User; use App\Models\MedicalCategory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; class MedicalList extends Model { use HasFactory; protected $table = "medical_lists"; protected $fillable = [ "name", ...
13,080
https://github.com/rjcnrd/domestic_violence_covid-19/blob/master/testimonials_tab/testimonials.py
Github Open Source
Open Source
MIT
2,020
domestic_violence_covid-19
rjcnrd
Python
Code
244
865
import dash_html_components as html import dash_bootstrap_components as dbc import pandas as pd import math import numpy as np MESSAGES_DISPLAYED = 9 """ def get_messages(survey_df): all_reports = survey_df.written_report.tolist() random.shuffle(all_reports) first_x_reports_after_shuffle = all_reports[0...
32,013
https://github.com/manggoguy/parsec-modified/blob/master/pkgs/libs/tbblib/src/src/test/test_openmp.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
parsec-modified
manggoguy
C++
Code
974
2,789
/* Copyright 2005-2010 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
836
https://github.com/TheSylence/BuildNotifications/blob/master/BuildNotifications/Views/Notification/NewNotificationsCounterView.xaml.cs
Github Open Source
Open Source
MIT
2,021
BuildNotifications
TheSylence
C#
Code
15
51
namespace BuildNotifications.Views.Notification { public partial class NewNotificationsCounterView { public NewNotificationsCounterView() { InitializeComponent(); } } }
35,193
https://github.com/jenriquelopezdev/inventario/blob/master/resources/views/correos/compra.blade.php
Github Open Source
Open Source
MIT
2,021
inventario
jenriquelopezdev
PHP
Code
475
2,537
<!DOCTYPE html> <html lang="en-US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="https://lllmaxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="ano...
41,857
https://github.com/alanta/Wyam/blob/master/src/core/Wyam.Hosting/LiveReload/Messages/InfoMessage.cs
Github Open Source
Open Source
MIT
2,022
Wyam
alanta
C#
Code
27
66
namespace Wyam.Hosting.LiveReload.Messages { internal class InfoMessage : ILiveReloadMessage { public string Command { get; set; } = "info"; public string Url { get; set; } } }
33,664
https://github.com/SugarSpinda/MyLib/blob/master/file/xml/XmlLexer.hpp
Github Open Source
Open Source
MIT
2,017
MyLib
SugarSpinda
C++
Code
179
551
#ifndef _XMLLEXER_HPP_ #define _XMLLEXER_HPP_ #include <vector> #include <string> typedef struct CodeLocation { CodeLocation() : line(1), column(1) {} CodeLocation(const CodeLocation &c) : line(c.line), column(c.column) {} size_t line; size_t column; } CodeLocation; typedef struct Token { Token() {} Token(...
196
https://github.com/k-raputa/burmester/blob/master/custom/plugins/SwagCustomizedProducts/src/Resources/views/storefront/page/checkout/_include/thumbnail-aside.html.twig
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,021
burmester
k-raputa
Twig
Code
35
131
{% block page_checkout_aside_item_image_inner_default %} {% sw_thumbnails 'cart-item-img-thumbnails' with { media: cover, sizes: { 'default': '100px' }, attributes: { 'class': 'img-fluid cart-item-img', 'alt': (cover.translated.alt ?: ''), ...
2,007
https://github.com/EdutechSRL/Adevico_DSS/blob/master/3-Business/3-Modules/lm.Comol.Modules.CallForPapers/Presentation/Base/Edit/EditCallEditorPresenter.cs
Github Open Source
Open Source
MIT
2,020
Adevico_DSS
EdutechSRL
C#
Code
1,330
5,840
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lm.Comol.Core.DomainModel; using lm.Comol.Modules.CallForPapers.Business; using lm.Comol.Modules.CallForPapers.Domain; using lm.Comol.Core.Business; namespace lm.Comol.Modules.CallForPapers.Presentation { public class Edit...
41,710
https://github.com/Seraf/LISA/blob/master/lisa/server/web/manageplugins/templates/plugin/web/tests.tpl
Github Open Source
Open Source
MIT
2,018
LISA
Seraf
null
Spoken
32
54
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase
18,404
https://github.com/marcosherreroa/CompiladorCtrlC/blob/master/ProyectoCompilador/errors/ErroresTyping.java
Github Open Source
Open Source
CC0-1.0
2,022
CompiladorCtrlC
marcosherreroa
Java
Code
661
2,819
package errors; import alex.TokenValue; import ast.Expression; import ast.MaybeType; import ast.Type; public class ErroresTyping { private ErroresTyping() {} public static void expectedLiteral(String expectedType, TokenValue value) { System.out.println("**\nExpected literal of type "+expectedType+" in\n...
14,547
https://github.com/DivyeshModi/Ads-Manager/blob/master/AdsModule/src/main/java/com/example/adsmodule/MyAdsManager.java
Github Open Source
Open Source
MIT
null
Ads-Manager
DivyeshModi
Java
Code
1,009
4,757
package com.example.adsmodule; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.ImageView; import ...
3,595
https://github.com/junkor/WBXPlugins/blob/master/WBXPlugins/Classes/WBPlugins/Plugins/WBPluginsIpaExporter/Views/WBOTAUploadViewController.h
Github Open Source
Open Source
MIT, Unlicense
null
WBXPlugins
junkor
C
Code
41
139
// // WBOTAUploadViewController.h // WBXPlugins // // Created by jun on 5/2/16. // Copyright © 2016 sina. All rights reserved. // #import <Cocoa/Cocoa.h> @class WBArchiveInfo; @interface WBOTAUploadViewController : NSViewController @property (nonatomic, copy) void (^uploadBlock)(NSString *name,NSString *desc); ...
9,843
https://github.com/chromium/chromium/blob/master/components/variations/processed_study_unittest.cc
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
C++
Code
878
4,203
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/variations/processed_study.h" #include <cstdint> #include "base/test/metrics/histogram_tester.h" #include "components/variations/proto/study.pb.h" #inclu...
42,752
https://github.com/jereinhardt/feste/blob/master/spec/support/test_user.rb
Github Open Source
Open Source
MIT
2,020
feste
jereinhardt
Ruby
Code
35
114
class TestUser private def self.find_by(**_) nil end def self.has_many(_, **options) end public include Feste::User @@id = 1 def initialize(email = "test@test.com") @email = email @id = @@id @@id += 1 end attr_accessor :email, :id end
12,961
https://github.com/cns-iu/xmacroscope/blob/master/packages/site-visualizations/src/app/shared/components/visualization-page/visualization-page.component.scss
Github Open Source
Open Source
MIT
2,019
xmacroscope
cns-iu
SCSS
Code
275
1,001
::ng-deep { .mat-expanded .mat-expanded .mat-expansion-panel-content { min-height: 13rem; } } :host { display: block; width: 100%; markdown { display: block; } .header { display: flex; height: 4rem; margin-bottom: 4.5rem; padding: 0 1rem; align-items: center; font-weight...
17,873
https://github.com/Mimetis/Dotmim.Sync/blob/master/Samples/WebAdmin/web/src/Navigator.tsx
Github Open Source
Open Source
MIT
2,023
Dotmim.Sync
Mimetis
TSX
Code
164
569
import Divider from "@mui/material/Divider"; import Drawer, { DrawerProps } from "@mui/material/Drawer"; import List from "@mui/material/List"; import Box from "@mui/material/Box"; import ListItem from "@mui/material/ListItem"; import ListItemButton from "@mui/material/ListItemButton"; import ListItemIcon from "@mui/ma...
43,672
https://github.com/anzboi/arrai/blob/master/syntax/expr_recursion_test.go
Github Open Source
Open Source
Apache-2.0
2,022
arrai
anzboi
Go
Code
194
517
package syntax import ( "testing" ) func TestRecursionExpr(t *testing.T) { t.Parallel() AssertCodesEvalToSameValue(t, `55`, `let rec fib = \n cond {(n = 0): 0, (n = 1): 1, (n > 0): fib(n-1) + fib(n-2), _: 0}; fib(10)`, ) AssertCodesEvalToSameValue(t, `true`, `let rec eo = ( even: \n n = 0 || eo...
13,885
https://github.com/Zeyad-37/RxRedux/blob/master/core/src/main/java/com/zeyad/rxredux/core/view/BaseActivity.kt
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
RxRedux
Zeyad-37
Kotlin
Code
120
456
package com.zeyad.rxredux.core.view import android.os.Bundle import android.os.Parcelable import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatDelegate import com.zeyad.rxredux.core.viewmodel.IBaseViewModel import io.reactivex.Observable abstract class BaseActivity<I, R, S : Parcelab...
24,863
https://github.com/vanyaland/Popular-Movies/blob/master/Android/PopularMovies/app/src/main/java/com/ivanmagda/popularmovies/network/MoviesLoader.java
Github Open Source
Open Source
MIT
2,019
Popular-Movies
vanyaland
Java
Code
55
218
package com.ivanmagda.popularmovies.network; import android.content.Context; import android.support.v4.content.AsyncTaskLoader; import com.ivanmagda.popularmovies.data.model.Movie; import java.util.List; public final class MoviesLoader extends AsyncTaskLoader<List<Movie>> { private Resource<List<Movie>> mResou...
28,483
https://github.com/yonbergman/bugmash/blob/master/app/assets/stylesheets/layout.css.scss
Github Open Source
Open Source
MIT
2,013
bugmash
yonbergman
SCSS
Code
21
62
//body{ // background: #eee; //} // //.container{ // background: white; // padding: 30px; // margin: 10px auto; // @include border-radius(10px); //}
18,549
https://github.com/xushuqing1018/x360p_org_pc/blob/master/src/views/system/basic/fees.vue
Github Open Source
Open Source
MIT
2,021
x360p_org_pc
xushuqing1018
Vue
Code
313
1,706
<template> <div class="c-grid"> <div class="box box-query"> <Form ref="ref_search" :label-width="70" :model="search_field" class="filter-form row"> <Form-item label="杂费名称" prop="name" class="col-md-3 col-sm-6"> <Input v-model="search_field.name" placeholder="请输入杂费名"></Input> </Form-...
37,613
https://github.com/juvs/Moya-Argo/blob/master/Example/Moya-Argo/PlainMoyaTableViewController.swift
Github Open Source
Open Source
MIT
2,020
Moya-Argo
juvs
Swift
Code
250
761
// // PlainMoyaTableViewController.swift // Moya-Argo // // Created by Sam Watts on 23/01/2016. // Copyright © 2016 Sam Watts. All rights reserved. // import UIKit import Moya struct PlainMoyaUser { let id: Int let name: String let birthdate: String? } extension PlainMoyaUser: UserType { } cla...
19,380
https://github.com/scottholdren/devoted-vm/blob/master/puppet/custom_modules/civcraft/templates/get_and_build_spigot.sh.erb
Github Open Source
Open Source
MIT
2,018
devoted-vm
scottholdren
Shell
Code
121
439
#!/bin/bash sudo chown <%= @minecraftuser %>:<%= @minecraftuser %> <%= @spigotbuildpath %> cd <%= @spigotbuildpath %> wget <%= @spigotbuildtoolsurl %> -O BuildTools.jar git config --global --unset core.autocrlf echo Not sure how long this will take, so sit back and relax. sudo su vagrant -c "java -Xmx1500M -jar B...
41,969
https://github.com/mikirov/Unreal-RL/blob/master/Source/BossBattleServer.Target.cs
Github Open Source
Open Source
Apache-2.0
2,020
Unreal-RL
mikirov
C#
Code
35
122
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; using System.Collections.Generic; [SupportedPlatforms(UnrealPlatformClass.Server)] public class BossBattleServerTarget : TargetRules { public BossBattleServerTarget(TargetInfo Target) : base(Target) { Type = TargetType.Server; E...
34,888
https://github.com/eid101/InjazErp/blob/master/src/org/openbravo/erpCommon/ad_actionButton/UpdateMaintenanceScheduled.java
Github Open Source
Open Source
Apache-2.0
null
InjazErp
eid101
Java
Code
695
2,549
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in...
39,703
https://github.com/robohack/newsyslog/blob/master/newsyslog2netbsd.sh
Github Open Source
Open Source
NTP, LicenseRef-scancode-public-domain
2,020
newsyslog
robohack
Shell
Code
255
1,001
#!/bin/sh # # newsyslog2netbsd - upgrade from latest newsyslog release # # This file Copyright (C) by Planix, Inc. # - see COPYING for details. # # NOTE: needs a fully POSIX /bin/sh to run properly.... # #ident "@(#)newsyslog:newsyslog2netbsd.sh:$Format:%D:%ci:%cN:%h$" # The following variables can be adjusted as nece...
43,060
https://github.com/The-Actual-Damien/https-github.com-Evizero-UnicodePlots.jl/blob/master/test/tst_plots.jl
Github Open Source
Open Source
MIT
null
https-github.com-Evizero-UnicodePlots.jl
The-Actual-Damien
Julia
Code
737
3,041
myDict=Dict{(@compat AbstractString), Int}() myDict["Hi"] = 37 myDict["ho"] = 23 print(barplot(myDict)) myPlot=barplot(["Please","don't","crash","my","friend"], [10,24,30,13,7]) print(myPlot) barplot!(myPlot, ["just", "dont", "!"], [2, 49, 15]) @test_throws DimensionMismatch barplot!(myPlot, ["just", "dont", "!"], [2,...
43,121
https://github.com/nvv-academy2/train-parser/blob/master/app/City.php
Github Open Source
Open Source
MIT
null
train-parser
nvv-academy2
PHP
Code
32
71
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * * Class City * @package App * @property string $name * @property int $code */ class City extends Model { protected $table = 'cities'; }
8,178
https://github.com/surajpjannu/DesignPatterns/blob/master/src/main/java/com/design/patterns/creational/factory/example1/TextParser.java
Github Open Source
Open Source
Apache-2.0
2,021
DesignPatterns
surajpjannu
Java
Code
16
50
package com.design.patterns.creational.factory.example1; public class TextParser { public void parse() { System.out.println("Text parsing is successful"); } }
26,555
https://github.com/the-haive/GitVersion/blob/master/src/GitVersionCore.Tests/BuildServers/BuildServerBaseTests.cs
Github Open Source
Open Source
MIT
null
GitVersion
the-haive
C#
Code
109
373
using System; using System.Collections.Generic; using GitVersion; using GitVersionCore.Tests; using NUnit.Framework; using Shouldly; [TestFixture] public class BuildServerBaseTests { [Test] public void BuildNumberIsFullSemVer() { var writes = new List<string>(); var semanticVersion = new ...
49,931
https://github.com/totov/laravel-cap-hpi/blob/master/src/Subsets/TechnicalSpecification/TechnicalSpecification.php
Github Open Source
Open Source
MIT
null
laravel-cap-hpi
totov
PHP
Code
195
816
<?php namespace Totov\Cap\Subsets\TechnicalSpecification; use Totov\Cap\Cap; use Totov\Cap\Exceptions\AuthorisationFailedException; use Totov\Cap\Subsets\Subset; use Totov\Cap\Subsets\TechnicalSpecification\Categories\Categories; use Totov\Cap\Subsets\TechnicalSpecification\Requests\ByDerivativeTypeAndCapIdRequest; u...
25,846
https://github.com/pheinrich/euler/blob/master/solved/problem_0116.rb
Github Open Source
Open Source
MIT
null
euler
pheinrich
Ruby
Code
262
488
require 'projectEuler' class Problem_0116 def title; 'Red, green or blue tiles' end def difficulty; 30 end # A row of five black square tiles is to have a number of its tiles replaced # with coloured oblong tiles chosen from red (length two), green (length # three), or blue (length four). # # If red til...
36,030
https://github.com/nielssp/csol/blob/master/src/csv.h
Github Open Source
Open Source
MIT
2,022
csol
nielssp
C
Code
62
148
/* csol * Copyright (c) 2020 Niels Sonnich Poulsen (http://nielssp.dk) * Licensed under the MIT license. * See the LICENSE file or http://opensource.org/licenses/MIT for more information. */ #ifndef CSV_H #define CSV_H #include <stdio.h> /* column types: * - s: char * * - i: int32_t * - t: time_t * - *: ...
31,267
https://github.com/ornn-foundation/ornn-finance/blob/master/src/widget/Box.tsx
Github Open Source
Open Source
MIT
null
ornn-finance
ornn-foundation
TypeScript
Code
74
216
import React, { CSSProperties, ReactElement } from "react"; import { Children } from "../interface/children"; interface Props extends Children { style?: CSSProperties; flex: boolean; justifyContent?: "center" | "end"; alignItems?: "center"; } export default function Box({ style, flex, alignItems, just...
45,767
https://github.com/s0m3chill/flutter_contacts/blob/master/ios/Classes/properties/Group.swift
Github Open Source
Open Source
MIT
2,022
flutter_contacts
s0m3chill
Swift
Code
55
140
import Contacts @available(iOS 9.0, *) struct Group { var id: String var name: String init(fromMap m: [String: Any]) { id = m["id"] as! String name = m["name"] as! String } init(fromGroup g: CNGroup) { id = g.identifier name = g.name } func toMap() -> [Str...
6,832
https://github.com/randomn4me/bin/blob/master/weather
Github Open Source
Open Source
ISC
2,023
bin
randomn4me
Shell
Code
28
77
#!/bin/bash usage() { cat << EOF usage: weather <city> EOF } getdata() { curl -s "wttr.in/$1?Q+0" } test $# -lt 1 && usage && exit 1 getdata $1
45,695
https://github.com/badcock4412/PowerShell/blob/master/Get-MyADObject.ps1
Github Open Source
Open Source
MIT
2,022
PowerShell
badcock4412
PowerShell
Code
556
2,242
# https://github.com/RamblingCookieMonster/PowerShell/blob/master/Get-ADSIObject.ps1 # http://www.ldapexplorer.com/en/manual/109010000-ldap-filter-syntax.htm # alternate credentials # https://www.reddit.com/r/PowerShell/comments/40zmmf/converting_a_vb_script_to_powershellabsolutely/ function Get-MADObject { param...
3,191
https://github.com/forki/Sproc.Lock/blob/master/tests/Sproc.Lock.Tests/Tests.fs
Github Open Source
Open Source
Unlicense
2,017
Sproc.Lock
forki
null
Spoken
283
695
module Sproc.Lock.Tests open System open Sproc.Lock.Fun open NUnit.Framework let connString = match Environment.GetEnvironmentVariable "LockConnString" with | s when String.IsNullOrEmpty s -> "Server=(local);Database=Lock;Trusted_Connection=True;" | s -> s [<Test>] let ``Get global lock`` () = ...
47,647
https://github.com/Rabosa616/NetConf2019_MicroservicesGeneratingChaos/blob/master/src/1.Services/Microservices.GeneratingChaos.Services.Api/Infrastructure/AutofacModules/RepositoryModule.cs
Github Open Source
Open Source
MIT
null
NetConf2019_MicroservicesGeneratingChaos
Rabosa616
C#
Code
102
456
using Autofac; using Microservices.GeneratingChaos.BuildingBlocks.Infrastructure.AutofacModules; using Microservices.GeneratingChaos.BuildingBlocks.Infrastructure.DataBase; using Microservices.GeneratingChaos.BuildingBlocks.Infrastructure.Generators.Interfaces; using Microservices.GeneratingChaos.Services.Api.Domain.E...
45,026
https://github.com/mlocati/web-pecl/blob/master/templates/pages/extension.php
Github Open Source
Open Source
PHP-3.01
2,021
web-pecl
mlocati
PHP
Code
1,416
5,465
<?php $this->extend('layout.php', ['title' => 'Package :: '.$package['name'].($version ? ' '.$version : '').($windows ? ' for Windows' : '')]) ?> <?php $this->start('content') ?> <?= $breadcrumbs ?> <?php if (!empty($releaseId)): ?> :: <a href="/package/<?= $this->e($package['name']) ?>"><?= $this->e($package['n...
21,886
https://github.com/LucasFernandesBrazil/Java/blob/master/Java/Exercicios/src/Linguagem 1/POO/exercicio10/SessaoFilme.java
Github Open Source
Open Source
MIT
2,021
Java
LucasFernandesBrazil
Java
Code
33
107
package exercicios.Linguagem1.POO.exercicio10; public class SessaoFilme { private String horario; public SessaoFilme() { this.horario = null; } public String getHorario() { return horario; } public void setHorario(String horario) { this.horario = horario; } }
35,137
https://github.com/Sv443/sBot/blob/master/commands/fact.js
Github Open Source
Open Source
MIT
2,020
sBot
Sv443
JavaScript
Code
176
654
const settings = require("../settings.js"); const Discord = require("discord.js"); const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; module.exports.help = "Tells you a random / useless fact"; module.exports.category = "Knowledge"; module.exports.args = []; module.exports.run = (client, message, args) =>...
23,814
https://github.com/palharesgabriel/AccountSystem/blob/master/src/Main.kt
Github Open Source
Open Source
MIT
2,017
AccountSystem
palharesgabriel
Kotlin
Code
30
96
/* Getting Started the Application */ import com.accountsystem.AccountDatabaseController import com.accountsystem.DatabaseHandler import com.accountsystem.Credor fun main(args: Array<String>) { var dbHandler = DatabaseHandler() var accountCtrl = AccountDatabaseController(dbHandler) var window = AccountsGUI(accountC...
7,467
https://github.com/rgommers/scipy/blob/master/scipy/stats/mvndst.f
Github Open Source
Open Source
BSL-1.0, BSD-2-Clause, MIT, LicenseRef-scancode-unknown-license-reference, Qhull, BSD-3-Clause
2,023
scipy
rgommers
null
Spoken
6,845
18,607
* Note: The test program has been removed and a utility routine mvnun has been * added. RTK 2004-08-10 * * Copyright 2000 by Alan Genz. * Copyright 2004-2005 by Enthought, Inc. * * The subroutine MVNUN is copyrighted by Enthought, Inc. * The rest of the file is copyrighted by Alan Genz and has kindly been offered * to...
1,381
https://github.com/smallkot/ReactKitCalculator/blob/master/ReactKitCalculator/Helper.swift
Github Open Source
Open Source
MIT
2,015
ReactKitCalculator
smallkot
Swift
Code
634
1,857
// // Helper.swift // ReactKitCalculator // // Created by Yasuhiro Inami on 2015/02/21. // Copyright (c) 2015年 Yasuhiro Inami. All rights reserved. // import Foundation import ReactKit let MAX_DIGIT_FOR_NONEXPONENT = 9 let MIN_EXPONENT = 9 let SIGNIFICAND_DIGIT = 7 let COMMA_SEPARATOR = "," typealias ScientificN...
46,525
https://github.com/drjerry/acsploit/blob/master/test/exploits/sort/test_quicksort.py
Github Open Source
Open Source
BSD-3-Clause
2,022
acsploit
drjerry
Python
Code
198
588
import math from exploits.sort import quicksort from test.exploits.dummy_output import DummyOutput from input.ints import IntGenerator def test_run_mid(): output = DummyOutput() n_inputs = 11 quicksort.options['n_inputs'] = n_inputs quicksort.options['type'] = 'mid' quicksort.run(IntGenerator(), o...
9,166
https://github.com/Quiq/stubborn-fetch/blob/master/rollup.config.js
Github Open Source
Open Source
MIT
2,021
stubborn-fetch
Quiq
JavaScript
Code
66
234
import babel from 'rollup-plugin-babel'; import flow from 'rollup-plugin-flow'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import pkg from './package.json'; export default { input: 'src/index.js', output: [ { file: pkg.main, format: 'cjs', ...
19,492
https://github.com/rips/java-connector/blob/master/connector/src/main/java/com/ripstech/api/connector/service/queryparameter/JsonFilter.java
Github Open Source
Open Source
BSD-3-Clause
2,019
java-connector
rips
Java
Code
361
1,014
package com.ripstech.api.connector.service.queryparameter; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.ripstech.api.connector.entity.send.filter.Expression; import com.ripstech.api.connector.entity.send.filter.condition.And; import com.ripst...
22,280
https://github.com/Samsung/TizenRT/blob/master/os/board/rtl8730e/src/component/audio/interfaces/audio/audio_track.h
Github Open Source
Open Source
Apache-2.0, GPL-1.0-or-later, BSD-3-Clause, ISC, MIT, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-permissive
2,023
TizenRT
Samsung
C
Code
1,889
4,274
/* * Copyright (c) 2021 Realtek, LLC. * All rights reserved. * * Licensed under the Realtek License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License from Realtek * * Unless required by applicable law or agreed to in writing, ...
19,135
https://github.com/Kevin2/radionets/blob/master/radionets/dl_framework/learner.py
Github Open Source
Open Source
MIT
2,022
radionets
Kevin2
Python
Code
176
786
import torch.nn as nn from radionets.dl_framework.model import init_cnn from radionets.dl_framework.callbacks import ( NormCallback, SaveTempCallback, TelegramLoggerCallback, DataAug, AvgLossCallback, ) from fastai.optimizer import Adam from fastai.learner import Learner from fastai.data.core import...
30,069
https://github.com/FogChainInc/vscode-radjav/blob/master/media/RadJavAppPreview/dependencies/dojo/dojox/mdnd/adapter/DndFromDojo.js
Github Open Source
Open Source
MIT
null
vscode-radjav
FogChainInc
JavaScript
Code
183
1,975
//>>built define("dojox/mdnd/adapter/DndFromDojo",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/connect","dojo/_base/array","dojo/dom-class","dojo/_base/window","dojox/mdnd/AreaManager","dojo/dnd/Manager"],function(_1,_2,_3,_4,_5,_6,_7,_8){ var _9=_2("dojox.mdnd.adapter.DndFromDojo",null,{dropIndicatorSize:{"w"...
48,724
https://github.com/vannguyendev96/Inventory/blob/master/src/views/buttons/brand-buttons/BrandButtons.js
Github Open Source
Open Source
MIT
2,021
Inventory
vannguyendev96
JavaScript
Code
996
5,380
import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CRow } from '@coreui/react' import CIcon from '@coreui/icons-react' const BrandButtons = () => { return ( <CRow> <CCol xs="12"> <CCard> <CCardHeader> Brand button </CCardHead...
32,728
https://github.com/sindaZeng/XHuiCloud/blob/master/XHuiCloud-commons/XHuiCloud-common-lock/src/main/java/com/xhuicloud/common/lock/XHuiRedissonManager.java
Github Open Source
Open Source
MIT
2,022
XHuiCloud
sindaZeng
Java
Code
431
1,302
/* * MIT License * Copyright <2021-2022> * * 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, p...
42,659
https://github.com/CarGuo/gsy_github_app_flutter/blob/master/lib/db/sql_manager.dart
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
gsy_github_app_flutter
CarGuo
Dart
Code
207
561
import 'dart:async'; import 'dart:io'; import 'package:gsy_github_app_flutter/common/dao/user_dao.dart'; import 'package:gsy_github_app_flutter/model/User.dart'; import 'package:sqflite/sqflite.dart'; /** * 数据库管理 * Created by guoshuyu * Date: 2018-08-03 */ class SqlManager { static const _VERSION = 1; stati...
40,454
https://github.com/jxfengzi/srp/blob/master/openssl_srp/src/Tiny/Base/tiny_define.h
Github Open Source
Open Source
MIT
2,016
srp
jxfengzi
C
Code
46
163
/** * Copyright (C) 2013-2015 * * @author jxfengzi@gmail.com * @date 2013-7-9 * * @file ct_define.h * * @remark * set tabstop=4 * set shiftwidth=4 * set expandtab */ #ifndef __TINY_DEFINE_H__ #define __TINY_DEFINE_H__ #define TINY_IP_LEN 32 #define TINY_URL_LEN 1024 #defin...
15,819
https://github.com/mr-noone/sqlighter/blob/master/Tests/SQLighterTests/BetweenPredicateTests.swift
Github Open Source
Open Source
MIT
null
sqlighter
mr-noone
Swift
Code
57
181
import XCTest @testable import SQLighter final class BetweenPredicateTests: XCTestCase { func testBetweenPredicate() { let predicate = "id" ~= 0...100 XCTAssertEqual(predicate.sqlQuery().sql, "id BETWEEN ? AND ?") XCTAssertEqual(predicate.sqlString(), "id BETWEEN 0 AND 100") } func testNotBetweenP...
16,479
https://github.com/Xuxue1/akka/blob/master/akka-actor-testkit-typed/src/main/scala/akka/actor/testkit/typed/internal/StubbedActorContext.scala
Github Open Source
Open Source
Apache-2.0
2,019
akka
Xuxue1
Scala
Code
1,120
2,979
/* * Copyright (C) 2018-2019 Lightbend Inc. <https://www.lightbend.com> */ package akka.actor.testkit.typed.internal import akka.actor.typed._ import akka.actor.typed.internal._ import akka.actor.typed.internal.adapter.AbstractLogger import akka.actor.testkit.typed.CapturedLogEvent import akka.actor.testkit.typed.s...
2,568
https://github.com/dfunckt/swift-futures/blob/master/Sources/Futures/Stream/ScanStream.swift
Github Open Source
Open Source
MIT
2,021
swift-futures
dfunckt
Swift
Code
127
347
// // ScanStream.swift // Futures // // Copyright © 2019 Akis Kesoglou. Licensed under the MIT license. // extension Stream._Private { public enum Scan<Output, Base: StreamProtocol> { public typealias Accumulate = (Output, Base.Output) -> Output case pending(Base, Output, Accumulate) ca...
267
https://github.com/triffon/oop-2019-20/blob/master/labs/2/00-template-vector/Vector.hpp
Github Open Source
Open Source
MIT
2,022
oop-2019-20
triffon
C++
Code
146
440
#pragma once #include <iostream> template <typename Elem_t> class Vector { public: // Big four Vector(size_t capacity = 0); Vector(const Vector<Elem_t>& other); Vector<Elem_t>& operator=(const Vector<Elem_t>& other); ~Vector(); // Methods inline size_t size() const { return m_size; } i...
6,997
https://github.com/Arthur-Lozano/todo/blob/master/taskathand/src/components/auth/Login.js
Github Open Source
Open Source
MIT
null
todo
Arthur-Lozano
JavaScript
Code
67
196
import React, { useState, useContext } from 'react'; import { LoginContext } from '../context/context'; const [user, setUser] = useState(false); const userContext = useContext(LoginContext); const handleChange = (e) => { setUser({ ...user, [e.target.name]: e.target.value }) } const handleSubmit = (e) => { e.prev...
24,639
https://github.com/zoli-forks/node-retry/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
node-retry
zoli-forks
Ignore List
Code
4
19
/node_modules/* npm-debug.log coverage lib
9,463
https://github.com/david2am/vote-app-react/blob/master/src/components/molecules/index.ts
Github Open Source
Open Source
MIT
null
vote-app-react
david2am
TypeScript
Code
18
45
export { VoteForm } from './VoteForm/VoteForm' export { Info } from './Info/Info' export { CardListTitle } from './CardListTitle/CardListTitle'
2,701
https://github.com/jaumesala/bootstrap/blob/master/js/tests/unit/dom/manipulator.spec.js
Github Open Source
Open Source
MIT
2,020
bootstrap
jaumesala
JavaScript
Code
309
1,170
import Manipulator from '../../../src/dom/manipulator' /** Test helpers */ import { getFixture, clearFixture } from '../../helpers/fixture' describe('Manipulator', () => { let fixtureEl beforeAll(() => { fixtureEl = getFixture() }) afterEach(() => { clearFixture() }) describe('setDataAttribute'...
22,407
https://github.com/Armer7/todotrello/blob/master/libs/feature/src/index.ts
Github Open Source
Open Source
MIT
null
todotrello
Armer7
TypeScript
Code
8
21
export * from './lib/events/events'; export * from './lib/feature';
39,812
https://github.com/smallholexu/helix-toolkit/blob/master/Source/Examples/WPF/ExampleBrowser/Examples/BuildingDemo/Superellipse.cs
Github Open Source
Open Source
MIT
2,018
helix-toolkit
smallholexu
C#
Code
110
314
namespace BuildingDemo { using System; using System.Windows.Markup; using System.Windows.Media.Media3D; public class Superellipse : MarkupExtension { private readonly double a; private readonly double b; private readonly double n; public Superellipse(double a, dou...
40,111
https://github.com/TimCollins/BlogEngine/blob/master/BlogEngine.UnitTests/TestPostRepository.cs
Github Open Source
Open Source
MIT
2,014
BlogEngine
TimCollins
C#
Code
477
1,195
using System; using System.Collections.Generic; using System.Linq; using BlogEngine.Models.Entities; using BlogEngine.Models.Repositories.Interfaces; using BlogEngine.Models.ViewModels; namespace BlogEngine.UnitTests { class TestPostRepository : IPostRepository { private readonly List<Post> _testPosts...
12,030
https://github.com/JayGreentree/mvcogee/blob/master/system/ee/ExpressionEngine/Controller/Members/Roles/AbstractRoles.php
Github Open Source
Open Source
Apache-2.0
null
mvcogee
JayGreentree
PHP
Code
251
1,101
<?php /** * This source file is part of the open source project * ExpressionEngine (https://expressionengine.com) * * @link https://expressionengine.com/ * @copyright Copyright (c) 2003-2021, Packet Tide, LLC (https://www.packettide.com) * @license https://expressionengine.com/license Licensed under Apache...
36,809
https://github.com/Trilonka/MireaAl/blob/master/Julia/Semester_1/task_2.7/task_2-7.jl
Github Open Source
Open Source
BSD-2-Clause
null
MireaAl
Trilonka
Julia
Code
135
442
function change(k) if k==1 return 0 else return 1 end end function mark(r, k) if k==1 putmarker!(r) end end function draw(r) k = 1 right = 0 bot = 0 putmarker!(r) while !isborder(r, West) move!(r, West) k = change(k) right+=1 ...
26,321