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/ericlay14/Docketeer/blob/master/src/components/tabs/Yml.js
Github Open Source
Open Source
MIT
null
Docketeer
ericlay14
JavaScript
Code
528
1,803
import React, { useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import * as actions from '../../actions/actions'; import * as helper from '../helper/commands'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBod...
30,662
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testData/inspection/redundantCast/FieldAccessOnTheLeftOfAssignment.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Java
Code
34
99
abstract class Foo { protected int field; public int f(Bar t){ ((<warning descr="Casting 't' to 'Foo' is redundant">Foo</warning>)t).field = 0; return ((<warning descr="Casting 't' to 'Foo' is redundant">Foo</warning>)t).field; } } class Bar extends Foo{}
48,965
https://github.com/hyller/GladiatorLibrary/blob/master/Visual C++ Example/第14章 数据库及其相关技术/实例339~342药品库存管理系统/源程序代码/MedicAdmin/ChangePasswordDlg.cpp
Github Open Source
Open Source
Unlicense
2,022
GladiatorLibrary
hyller
C++
Code
140
878
// ChangePasswordDlg.cpp : implementation file // #include "stdafx.h" #include "MedicAdmin.h" #include "ChangePasswordDlg.h" #include "MainFrm.h" #include "MedicAdminDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ////////////////////////////////////////////////...
9,844
https://github.com/heartshare/wocenter/blob/master/services/MenuService.php
Github Open Source
Open Source
BSD-3-Clause
2,017
wocenter
heartshare
PHP
Code
854
3,627
<?php namespace wocenter\services; use wocenter\backend\modules\menu\models\Menu; use wocenter\core\Service; use wocenter\interfaces\ModularityInfoInterface; use wocenter\Wc; use wocenter\helpers\ArrayHelper; use Yii; /** * 菜单服务类 * * @author E-Kevin <e-kevin@qq.com> */ class MenuService extends Service { /**...
49,441
https://github.com/CLionMesonIntegration/CLionMesonIntegration/blob/master/src/main/gen/com/nonnulldinu/clionmeson/mesonbuildlang/psi/MesonBuildAssignmentStatement.java
Github Open Source
Open Source
MIT
2,020
CLionMesonIntegration
CLionMesonIntegration
Java
Code
36
142
// This is a generated file. Not intended for manual editing. package com.nonnulldinu.clionmeson.mesonbuildlang.psi; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface MesonBuildAssignmentStatement extends PsiElement { @NotNull MesonBuildAtrop getAtrop(); @Nullable Meso...
9,316
https://github.com/notDanish/zombie-game/blob/master/Game/Assets/Scripts/SelectByKeyPress.cs
Github Open Source
Open Source
MIT
2,020
zombie-game
notDanish
C#
Code
36
157
using UnityEngine; using System.Collections; public class SelectByKeyPress : MonoBehaviour { void OnTriggerEnter( Collider other){ other.gameObject.GetComponent<Renderer>().material.color = Color.red; } void OnTriggerExit( Collider other){ other.gameObject.GetComponent<Renderer>().material.color = Color.bl...
3,687
https://github.com/anatolek/deviation_of_two_curves/blob/master/aprox2curves.py
Github Open Source
Open Source
Unlicense
null
deviation_of_two_curves
anatolek
Python
Code
385
1,198
#! /usr/bin/python3 import os import math from scipy.interpolate import interp1d N = 100 # number of points of approximation f1 = 'data/exp/M186/p_p0.txt' # data for curve №1 f2 = 'data/theory/M186/upper.xy' # data for curve №2 # x must be first column n1 = 2 # column for curve №1 n2 = 2 ...
42,060
https://github.com/edkotkas/alia/blob/master/tests/logger.ts
Github Open Source
Open Source
ISC
2,023
alia
edkotkas
TypeScript
Code
95
319
import env from '../src/env' import Log from '../src/logger' describe('Logger', () => { beforeEach(() => { spyOn(console, 'info').and.callFake(() => ({})) spyOn(console, 'error').and.callFake(() => ({})) env.verbose = false }) it('should call console info', () => { Log.in...
9,002
https://github.com/shngmsw/stat.ink/blob/master/migrations/m180616_111627_missing_octo_gears.php
Github Open Source
Open Source
MIT
null
stat.ink
shngmsw
PHP
Code
120
591
<?php /** * @copyright Copyright (C) 2015-2018 AIZAWA Hina * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT * @author AIZAWA Hina <hina@bouhime.com> */ use app\components\db\GearMigration; use app\components\db\Migration; use yii\db\Query; class m180616_111627_missing_octo_gears extends M...
18,717
https://github.com/artm-tech/ERC20/blob/master/token/contracts/CrowdsaleWallet.sol
Github Open Source
Open Source
MIT
null
ERC20
artm-tech
Solidity
Code
45
138
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; /** * @title Artemis Payment Splitting Wallet */ contract CrowdsaleWallet is PaymentSplitter { /** * @dev Constructs the payment splitting crowdsale wallet */ constructor( ...
37,282
https://github.com/endual/manager/blob/master/src/main/java/com/haiyu/manager/dao/dic/DurationModeMapper.java
Github Open Source
Open Source
MIT
2,020
manager
endual
Java
Code
28
121
package com.haiyu.manager.dao.dic; import com.haiyu.manager.pojo.dic.DurationModeDO; import org.apache.ibatis.annotations.Mapper; import tk.mapper.MyMapper; /** * 车票有效期类别 * * @author lzx * @date 2020-09-08 15:02:08 */ @Mapper public interface DurationModeMapper extends MyMapper<DurationModeDO> { }
4,298
https://github.com/NawaMan/FunctionalJ/blob/master/functionalj-core/src/test/java/functionalj/lens/lenses/time/TimeLensTest.java
Github Open Source
Open Source
MIT
2,022
FunctionalJ
NawaMan
Java
Code
58
304
package functionalj.lens.lenses.time; import static functionalj.lens.lenses.java.time.LocalDateLens.theLocalDate; import static org.junit.Assert.assertEquals; import java.time.LocalDate; import org.junit.Test; import lombok.val; public class TimeLensTest { @Test public void testLocalDate() { val...
45,846
https://github.com/VasquezSRE/Debut/blob/master/core/View.php
Github Open Source
Open Source
MIT
2,017
Debut
VasquezSRE
PHP
Code
255
657
<?php namespace core; use Exception; use core\Config; use Twig_Environment; use Twig_Extension_Debug; use Twig_Loader_Filesystem; use Twig_Extensions_Extension_Text; class View { public function __construct() {} /** * Agrega el archivo de la vista * * @param string $view * * @r...
11,545
https://github.com/giggio/servicebus_exporter/blob/master/create-index.sh
Github Open Source
Open Source
MIT
2,020
servicebus_exporter
giggio
Shell
Code
41
133
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" pushd $DIR/charts helm package servicebusexporter --destination=.deploy cr upload -o giggio -r servicebus_exporter -p .deploy popd pushd $DIR cr index -i index.yaml -p ./charts/.deploy/ -o giggio -r servicebus_exporter -c https://github.com/giggio/...
47,731
https://github.com/dhmontgomery/pioneer-press-code/blob/master/sos-scraper/turnout.r
Github Open Source
Open Source
MIT
2,018
pioneer-press-code
dhmontgomery
R
Code
607
1,610
# Scrapes turnout data for the Aug. 9, 2016 Minnesota primary election from the Minnesota Secretary of State's FTP file, processes that data and saves it. # Requires countycode-fips converter.csv to be in the working directory. These should have been provided if you downloaded this entire folder. # Also requires a user...
41,315
https://github.com/maximacgfx/example-app/blob/master/database/seeders/NewsTagPivotSeeder.php
Github Open Source
Open Source
MIT
2,021
example-app
maximacgfx
PHP
Code
63
217
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\News; use App\Models\NewsTag; class NewsTagPivotSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // создать связи между постами и тегами ...
25,696
https://github.com/nikup/SofiaTransport/blob/master/SofiaTransport/ViewModels/TypesViewModel.cs
Github Open Source
Open Source
MIT
2,013
SofiaTransport
nikup
C#
Code
121
413
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using SofiaTransport.Models; namespace SofiaTransport.ViewModels { class TypesViewModel { private ObservableCollection<TypeModel> types; pu...
20,025
https://github.com/purm/IvmpDotNet/blob/master/IvmpDotNet.Core/Wrappings/WorldManager.cs
Github Open Source
Open Source
MIT
2,021
IvmpDotNet
purm
C#
Code
77
327
using IvmpDotNet.SDK; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IvmpDotNet.Wrappings { public class WorldManager : IWorldManager { public bool SetTime(int iHour, int iMinute) { return Imports.World.World_SetTim...
39,700
https://github.com/abrorxonobidov/almix/blob/master/frontend/components/MyLightGalleryWidget.php
Github Open Source
Open Source
BSD-3-Clause
null
almix
abrorxonobidov
PHP
Code
53
181
<?php /** * Created by PhpStorm. * User: Abrorxon Obidov * Date: 07-Feb-21 * Time: 18:00 */ namespace frontend\components; use kowap\lightgallery\LightGalleryWidget; use yii\helpers\Json; class MyLightGalleryWidget extends LightGalleryWidget { public function registerClientScript() { $view = $th...
9,764
https://github.com/awcarlsson/marius/blob/master/examples/training/scripts/ogbn_proteins_multi_gpu.sh
Github Open Source
Open Source
Apache-2.0
2,021
marius
awcarlsson
Shell
Code
25
70
# preprocess the ogbn_proteins graph and put preprocessed graph into output dir marius_preprocess ogbn_proteins output_dir/ # run marius on the preprocessed input marius_train examples/training/configs/ogbn_proteins_multi_gpu.ini info
33,114
https://github.com/chemalot/chemalot/blob/master/src/com/genentech/struchk/oeStruchk/MolReorder.java
Github Open Source
Open Source
GPL-1.0-or-later, GPL-3.0-only, GPL-2.0-only, Apache-2.0
2,023
chemalot
chemalot
Java
Code
1,182
4,223
/* Copyright 2008-2015 Genentech Inc. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
8,196
https://github.com/l3dlp-sandbox/Rocket.Chat/blob/master/apps/meteor/client/providers/AvatarUrlProvider.tsx
Github Open Source
Open Source
MIT
null
Rocket.Chat
l3dlp-sandbox
TypeScript
Code
141
467
import React, { useMemo, FC } from 'react'; import { getURL } from '../../app/utils/lib/getURL'; import { AvatarUrlContext } from '../contexts/AvatarUrlContext'; import { useSetting } from '../contexts/SettingsContext'; import { roomCoordinator } from '../lib/rooms/roomCoordinator'; const AvatarUrlProvider: FC = ({ c...
40,374
https://github.com/nayosx/SimpleDemoRoom/blob/master/app/src/main/java/com/ado/formulario/database/RoomBD.java
Github Open Source
Open Source
MIT
null
SimpleDemoRoom
nayosx
Java
Code
62
224
package com.ado.formulario.database; import androidx.room.*; import android.content.Context; import com.ado.formulario.dao.NoteDao; import com.ado.formulario.model.Note; @Database(entities = {Note.class}, version = 1, exportSchema = false) public abstract class RoomBD extends RoomDatabase { private static RoomBD...
42,313
https://github.com/mbbo/whatsNewPHP/blob/master/src/Command/SevenZero.php
Github Open Source
Open Source
MIT
null
whatsNewPHP
mbbo
PHP
Code
127
527
<?php namespace App\Command; use App\Definition\Logger; use App\Object\LoggerEmpty; use App\Object\Calcul; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class SevenZero extends Command { public function c...
23,572
https://github.com/ningyu1/easybase/blob/master/easybase-core/src/main/java/io/ningyu/core/security/service/IRoleService.java
Github Open Source
Open Source
Apache-2.0
2,021
easybase
ningyu1
Java
Code
80
319
package io.ningyu.core.security.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import io.ningyu.core.security.dto.CreateRole; import io.ningyu.core.security.dto.UpdateRole; import io.ningyu.core.security.entity.Role; /** * @Clas...
50,057
https://github.com/CalvinWilliams1012/WednesdayMyDudes/blob/master/assets/js/clicker/GameView.js
Github Open Source
Open Source
MIT
2,017
WednesdayMyDudes
CalvinWilliams1012
JavaScript
Code
10
38
function GameView(){} GameView.prototype.render = function(data) { // body... console.log(data.frogs); };
7,639
https://github.com/lenneTech/nest-server/blob/master/src/server/modules/user/inputs/user-create.input.ts
Github Open Source
Open Source
MIT
2,022
nest-server
lenneTech
TypeScript
Code
43
96
import { InputType } from '@nestjs/graphql'; import { CoreUserCreateInput } from '../../../../core/modules/user/inputs/core-user-create.input'; /** * User input to create a new user */ @InputType({ description: 'User input to create a new user' }) export class UserCreateInput extends CoreUserCreateInput { // Exten...
17,905
https://github.com/Cingozzz/Distribution/blob/master/f/fhir/src/main/scala/typings/fhir/fhir/CapabilityStatementMessagingSupportedMessage.scala
Github Open Source
Open Source
MIT
2,021
Distribution
Cingozzz
Scala
Code
128
409
package typings.fhir.fhir import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * Messages supported by this system */ trait CapabilityStatementMessagingSupportedMessage extends StObject with Bac...
4,615
https://github.com/websemantics/oea.svg/blob/master/src/Draw2D/FClasses/Graphical/RectNode.js
Github Open Source
Open Source
MIT
2,021
oea.svg
websemantics
JavaScript
Code
208
592
/** * Draw2D.svg : RectNode * * @author Adnan M.Sagar, PhD. <adnan@websemantics.io> * @copyright 2004-2016 Web Semantics, Inc. (http://websemantics.io) * @license http://www.opensource.org/licenses/mit-license.php MIT * @since 8th November 2005 * @package websemantics/oea/draw2d.svg/fclasses/graphical...
44,361
https://github.com/liuzq71/miilink/blob/master/zed_system/zed3_axiethlite/zed3_axiethlite.ip_user_files/ipstatic/axi_gpio_v2_0/hdl/src/vhdl/axi_gpio.vhd
Github Open Source
Open Source
MIT
2,022
miilink
liuzq71
VHDL
Code
2,991
10,160
------------------------------------------------------------------------------- -- AXI_GPIO - entity/architecture pair ------------------------------------------------------------------------------- -- -- *************************************************************************** -- DISCLAIMER OF LIABILITY -- -- This ...
15,578
https://github.com/AndresMorales-gif/Entregas/blob/master/microservicio/dominio/src/test/java/com/ceiba/envio/servicio/testdatabuilder/EnvioTestDataBuilder.java
Github Open Source
Open Source
Apache-2.0
null
Entregas
AndresMorales-gif
Java
Code
124
434
package com.ceiba.envio.servicio.testdatabuilder; import com.ceiba.envio.modelo.entidad.Envio; public class EnvioTestDataBuilder { private Long id; private String remitente; private String destinatario; private Long zona; private Boolean envioPlus; private Long pesoCarga; public EnvioTes...
38,598
https://github.com/jloisel/phpdir/blob/master/applications/backend/modules/login/validators/emailexistsvalidator.php
Github Open Source
Open Source
Apache-2.0
2,013
phpdir
jloisel
PHP
Code
79
247
<?php /** * Validates that the email is a valid email and * an administrator has this email. * * @author Jerome Loisel */ class EmailExistsValidator extends sfValidatorEmail { protected function configure($options = array(), $messages = array()) { parent::configure ( $options, $messages ); if(is_array($me...
34,530
https://github.com/aks-cefz7k/boruishaoz/blob/master/OpenATC-Admin-ui/OpenATC-Admin-web/src/views/Service/serviceUtil.js
Github Open Source
Open Source
MulanPSL-1.0
null
boruishaoz
aks-cefz7k
JavaScript
Code
188
405
/** * Copyright (c) 2020 kedacom * OpenATC is licensed under Mulan PSL v2. * You can use i18n software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES ...
44,456
https://github.com/compwright/Core52/blob/master/objects/AutoLoader.php
Github Open Source
Open Source
MIT
2,018
Core52
compwright
PHP
Code
502
1,341
<?php /** * Core52 Class Autoloader * * This class works directly with __autoload() to loop through possible * locations for classes. It allows you to specify specific folders to * look in for an unknown class and you can also specify exactly where * specific classes are located. * * Originally written during ...
40,716
https://github.com/osrg/nova/blob/master/nova/tests/virt/docker/test_driver.py
Github Open Source
Open Source
Apache-2.0
null
nova
osrg
Python
Code
534
2,453
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2013 dotCloud, Inc. # All Rights Reserved. # # 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 # # http://www.apache...
5,104
https://github.com/alhaag/skeleton-node-api/blob/master/model/news.js
Github Open Source
Open Source
MIT
2,016
skeleton-node-api
alhaag
JavaScript
Code
221
658
/** * Model news * * Modelo que representa o documento news. * Agrega validações e comportamentos de persistencia no BD. * * @author André Luiz Haag <andreluizhaag@gmail.com> * @license LICENSE.md * @see middlewares/images */ /** * dependencies */ var mongoose = require('mongoose'); var validate = requir...
15,383
https://github.com/xhigher/nettyboot/blob/master/nettyboot-rpcclient/src/main/java/com/nettyboot/rpcclient/SimpleClient.java
Github Open Source
Open Source
Apache-2.0
2,021
nettyboot
xhigher
Java
Code
440
1,626
package com.nettyboot.rpcclient; import com.nettyboot.rpcmessage.MessageDecoder; import com.nettyboot.rpcmessage.MessageEncoder; import com.nettyboot.rpcmessage.SimpleMessage; import io.netty.bootstrap.Bootstrap; import io.netty.channel.*; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.S...
16,761
https://github.com/pvicky9586/proyect_laravel7/blob/master/app/Http/Controllers/Livewire/AppMenu.php
Github Open Source
Open Source
MIT
2,020
proyect_laravel7
pvicky9586
PHP
Code
18
60
<?php namespace App\Http\Controllers\Livewire; use Livewire\Component; class AppMenu extends Component { public function render() { return view('livewire.app-menu'); } }
22,892
https://github.com/adrienemery/auv-control-ui/blob/master/src/views/Dashboard.vue
Github Open Source
Open Source
MIT
null
auv-control-ui
adrienemery
Vue
Code
722
2,804
<template> <div class="section"> <div class="columns"> <!-- Left Hand Side --> <div class="column is-half"> <!-- Top Buttons --> <div class="buttons" style="margin-bottom: 20px; margin-top: 5px"> <button class="button is-info" @click="startTrip">Start</button> <b...
30,354
https://github.com/kitsonk/swc/blob/master/ecmascript/minifier/tests/terser/compress/sequences/negate_iife_for/input.js
Github Open Source
Open Source
Apache-2.0, MIT
2,022
swc
kitsonk
JavaScript
Code
22
49
(function () {})(); for (i = 0; i < 5; i++) console.log(i); (function () {})(); for (; i < 10; i++) console.log(i);
40,325
https://github.com/aculclasure/code-journal/blob/master/go/exercism/go/linked-list/linked_list.go
Github Open Source
Open Source
MIT
null
code-journal
aculclasure
Go
Code
429
875
package linkedlist import "errors" // Node represents a node in the linked list. type Node struct { Val interface{} prev, next *Node } // Next returns the next node. func (e *Node) Next() *Node { return e.next } // Prev returns the previous node. func (e *Node) Prev() *Node { return e.prev } // ErrEmpty...
9,797
https://github.com/sionescu/iolib/blob/master/src/multiplex/scheduler.lisp
Github Open Source
Open Source
MIT
2,023
iolib
sionescu
Common Lisp
Code
350
909
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- Controlling the queue of scheduled events and running expired timers. ;;; ;;; Copyright (C) 2003 Zach Beane <xach@xach.com> ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining ;;; a copy of this software and associated documentation fi...
48,060
https://github.com/DiKiALiF/sekolah/blob/master/kelas 12/laravel 8/resources/views/pembeli.blade.php
Github Open Source
Open Source
MIT
2,021
sekolah
DiKiALiF
Blade
Code
27
310
<html> <body> <h1>Tampil Data</h1> @foreach($pmbl as $data) <fieldset> <legend>Pembeli {{$data->id_pembeli}}</legend> <table> <tr><td>Id</td><td>:</td><td>{{$data->id_pembeli}}</td></tr> <tr><td>Nama Suplier</td><td>:</td><td>{{$data->nama}}</td></tr> <tr><td>Jenis Kelamin</td><td>:</td><td>{{$data-...
11,014
https://github.com/desancheztorres/smc/blob/master/resources/views/admin/users/index.blade.php
Github Open Source
Open Source
MIT
null
smc
desancheztorres
PHP
Code
56
284
@extends('admin.layouts.app') @section('page_title', 'Users') @section('content') @include('admin.users.partials.header') <!-- CONTENT--> <div class="tab-content" id="pills-tabContent"> <div class="tab-pane fade show active" id="pills-blogs" role="tabpanel" aria-labelledby="pills-blogs-tab"> ...
3,237
https://github.com/kupl/starlab-benchmarks/blob/master/Benchmarks_with_Functional_Bugs/Java/Bears-169/src/thirdeye/thirdeye-pinot/src/main/java/com/linkedin/thirdeye/completeness/checker/DataCompletenessJobRunner.java
Github Open Source
Open Source
MIT
null
starlab-benchmarks
kupl
Java
Code
385
1,924
package com.linkedin.thirdeye.completeness.checker; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.collect.Lists; import com.linkedin.thirdeye.anomaly.job.JobConstants.JobStatus; import com.linkedin.thirdeye.anomaly.job.JobRunner;...
15,595
https://github.com/ric2b/Vivaldi-browser/blob/master/update_notifier/thirdparty/wxWidgets/samples/drawing/drawing.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
Vivaldi-browser
ric2b
C++
Code
8,135
32,006
///////////////////////////////////////////////////////////////////////////// // Name: samples/drawing/drawing.cpp // Purpose: shows and tests wxDC features // Author: Robert Roebling // Modified by: // Created: 04/01/98 // Copyright: (c) Robert Roebling // Licence: wxWindows licence /////////...
1,792
https://github.com/ddkq/dedao/blob/master/newshenzhen/shanghai/application/Api/Controller/AppController.class.php
Github Open Source
Open Source
Apache-2.0
2,019
dedao
ddkq
PHP
Code
38
162
<?php /** * 微信小程序 */ namespace Api\Controller; use Common\Controller\AppframeController; class AppController extends AppframeController { public function app_get_slide(){ $slide = I('slide'); $slides = sp_getslide($slide); foreach ($slides as $key => $value) { $slides[$key]['slide...
7,049
https://github.com/Hyperfoil/Hyperfoil/blob/master/api/src/main/java/io/hyperfoil/api/session/WriteAccess.java
Github Open Source
Open Source
Apache-2.0
2,022
Hyperfoil
Hyperfoil
Java
Code
29
109
package io.hyperfoil.api.session; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public interface WriteAccess extends ReadAccess { Logger log = LogManager.getLogger(WriteAccess.class); boolean trace = log.isTraceEnabled(); void unset(Session session); Session.Var cre...
23,006
https://github.com/superk589/Family/blob/master/Sources/Shared/TypeAlias.swift
Github Open Source
Open Source
MIT
null
Family
superk589
Swift
Code
38
96
#if os(macOS) import Cocoa public typealias ViewController = NSViewController public typealias View = NSView public typealias Insets = NSEdgeInsets #else import UIKit public typealias ViewController = UIViewController public typealias View = UIView public typealias Insets = UIEdgeInsets #endif
357
https://github.com/hatpick/DroneMyoGlass/blob/master/jni/sdk/v2_0_1/ARDroneLib/FFMPEG/ffmpeg/libavcodec/error_resilience.c
Github Open Source
Open Source
Apache-2.0
2,022
DroneMyoGlass
hatpick
C
Code
3,599
16,746
/* * Error resilience / concealment * * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation...
31,968
https://github.com/accup/VyJit/blob/master/src/canvas-renderer/index.ts
Github Open Source
Open Source
MIT
2,021
VyJit
accup
TypeScript
Code
16
31
export * from './core' export * from './color' export * from './plot' export * from './pseudocolor'
13,516
https://github.com/Sevgo24/Proyect_SRGDA/blob/master/SGRDA.DA/DATipoenvioFactura.cs
Github Open Source
Open Source
Unlicense
2,021
Proyect_SRGDA
Sevgo24
C#
Code
337
1,893
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Practices.EnterpriseLibrary.Common; using Microsoft.Practices.EnterpriseLibrary.Data; using Microsoft.Practices.ServiceLocation; using SGRDA.Entities; using System.Data.Common; using Syst...
9,625
https://github.com/remiX-/ImgurUploader/blob/master/src/ImgurModels/LocalImage.cs
Github Open Source
Open Source
MIT
null
ImgurUploader
remiX-
C#
Code
101
314
using Prism.Mvvm; using System.IO; namespace ImgurUploader { public class LocalImage : BindableBase { #region Vars string localPath; string fileName; long fileSize; public string LocalPath { get { return localPath; } set { SetProperty(ref localPath, value); FileInfo fi = new FileInfo(...
7,343
https://github.com/jmaargh/punter/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,019
punter
jmaargh
Ignore List
Code
2
11
/target /image.png
22,882
https://github.com/thamerla/SocialOpinion-Public/blob/master/SocialOpinionAPI/Core/RequestBuilder.cs
Github Open Source
Open Source
MIT
2,021
SocialOpinion-Public
thamerla
C#
Code
500
1,822
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; namespace SocialOpinionAPI.Core { public class RequestBuilder { private const string VERSION = "1.0"; ...
32,327
https://github.com/andes/andes-fhir-server/blob/master/src/config.ts
Github Open Source
Open Source
MIT
2,020
andes-fhir-server
andes
TypeScript
Code
242
860
const { VERSIONS } = require('@asymmetrik/node-fhir-server-core').constants; /** * @name mongoConfig * @summary Configurations for our Mongo instance */ export const mongoConfig = { connection: process.env.MONGO_HOSTNAME, db_name: process.env.MONGO_DB_NAME, options: { auto_reconnect: true, useUnifiedTopology...
42,811
https://github.com/robotomize/gokuu/blob/master/provider/ecb/csv_test.go
Github Open Source
Open Source
Apache-2.0
2,021
gokuu
robotomize
Go
Code
587
2,207
package ecb import ( "errors" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/robotomize/gokuu/label" ) func TestParseCSV(t *testing.T) { t.Parallel() decodeFn := decodeCSV() if err := decodeFn([]byte("nothing"), nil); err != nil { if !errors.Is(err, errMissingI...
8,293
https://github.com/kyx0r/kiss-find/blob/master/lib/render.js
Github Open Source
Open Source
MIT
null
kiss-find
kyx0r
JavaScript
Code
226
775
async function readFile(filename = '/dev/stdin') { const buffer = new ArrayBuffer(1024) const handle = await tjs.fs.open(filename, 'r') let csv = '' let data = await handle.read(buffer.length) while (data.length) { csv += new TextDecoder().decode(data) data = await handle.read(buffer.length) } re...
17,224
https://github.com/cortside/cortside.core/blob/master/src/ValueTypes/QuantityType.cs
Github Open Source
Open Source
MIT
null
cortside.core
cortside
C#
Code
462
1,372
using System; using System.Runtime.Serialization; using System.Security.Permissions; namespace Cortside.Core.Types { [Serializable] public struct QuantityType : IComparable, IDataType, ISerializable { DecimalType myValue; public static readonly QuantityType DEFAULT = new QuantityType(TypeStat...
2,704
https://github.com/shwinshaker/adversarial_robustness_pytorch/blob/master/core/utils/logger.py
Github Open Source
Open Source
MIT
2,022
adversarial_robustness_pytorch
shwinshaker
Python
Code
47
176
import logging class Logger(object): """ Helper class for logging. Arguments: path (str): Path to log file. """ def __init__(self, path): self.logger = logging.getLogger() self.path = path self.setup_file_logger() print ('Logging to file: ', self.path) ...
47,812
https://github.com/olifink/qspread/blob/master/src/spread/german/cfg3.asm
Github Open Source
Open Source
MIT
2,018
qspread
olifink
Assembly
Code
143
886
* Spreadsheet 29/11-91 * - configuration information (english) * include win1_mac_config02 include win1_mac_olicfg include win1_keys_wstatus include win1_keys_k section config xref.l qs_vers * * Qjump's standard config block 02 Tab mkcfhead {QSpread Spezial},qs_vers ;-----------------...
28,233
https://github.com/alex/asciinema/blob/master/asciinema/timer.py
Github Open Source
Open Source
MIT
2,015
asciinema
alex
Python
Code
22
66
import time def timeit(callable, *args): start_time = time.time() ret = callable(*args) end_time = time.time() duration = end_time - start_time return (duration, ret)
13,395
https://github.com/avgust13/Account-Manager/blob/master/src/renderer/components/DropdownMenuButton/DropdownMenuButton.scss
Github Open Source
Open Source
MIT
2,021
Account-Manager
avgust13
SCSS
Code
70
266
$button-height: 24px; .DropdownMenuButton { $self: &; &--active { background: var(--color-gray-100); } &__menu { background: var(--color-white); border-radius: 3px; box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); padding: 6px 0; position: fixed; } &__option { align-items: center; ...
1,367
https://github.com/mpfeiffermway/relution-plugin/blob/master/relution-publisher/src/main/java/org/jenkinsci/plugins/relution_publisher/net/responses/AssetResponse.java
Github Open Source
Open Source
Apache-2.0
2,013
relution-plugin
mpfeiffermway
Java
Code
11
59
package org.jenkinsci.plugins.relution_publisher.net.responses; import org.jenkinsci.plugins.relution_publisher.entities.Asset; public class AssetResponse extends ApiResponse<Asset> { }
8,137
https://github.com/workze/jallcode/blob/master/local/src/main/java/kafkastaff/KafkaConsumerFactory.java
Github Open Source
Open Source
Apache-2.0
null
jallcode
workze
Java
Code
7
22
package kafkastaff; public class KafkaConsumerFactory { }
24,115
https://github.com/N-I-N-0/NSMBWii-Mod/blob/master/Kamek/src/numpad.cpp
Github Open Source
Open Source
MIT
null
NSMBWii-Mod
N-I-N-0
C++
Code
1,405
6,003
#include <common.h> #include <game.h> #include "sfx.h" #include "numpad.h" CREATE_STATE(dNumpadSpawner_c, Hidden); CREATE_STATE(dNumpadSpawner_c, ShowWait); CREATE_STATE(dNumpadSpawner_c, ButtonActivateWait); CREATE_STATE(dNumpadSpawner_c, Wait); CREATE_STATE(dNumpadSpawner_c, HideWait); dNumpadSpawner_c *dNumpadSp...
701
https://github.com/ruoshuixuelabi/spring-cloud-code/blob/master/ch6-2/ch6-2-provider-service/src/main/java/cn/springcloud/book/controller/TestController.java
Github Open Source
Open Source
Apache-2.0
2,022
spring-cloud-code
ruoshuixuelabi
Java
Code
44
181
package cn.springcloud.book.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bin...
23,163
https://github.com/apollographql/apollo-scalajs/blob/master/tests/src/test/scala/com/apollographql/scalajs/ApolloLinkTest.scala
Github Open Source
Open Source
MIT
2,023
apollo-scalajs
apollographql
Scala
Code
66
272
package com.apollographql.scalajs import com.apollographql.scalajs.link.{ApolloLink, GraphQLRequest, HttpLink, HttpLinkOptions} import org.scalatest.{Assertion, AsyncFunSuite} import scala.concurrent.Promise import scala.scalajs.js class ApolloLinkTest extends AsyncFunSuite { js.Dynamic.global.window.fetch = Unfet...
28,050
https://github.com/lwyj123/vue-endless/blob/master/src/utils/audio.js
Github Open Source
Open Source
MIT
null
vue-endless
lwyj123
JavaScript
Code
123
437
import store from '../store'; // let dist = { // 'backgroundMusic': require('static/audio/bgm.wav'), // 'fight-attack' : require('static/audio/fight-attack.wav'), // } let dist = {}; let AudioList = []; window.AudioList = AudioList; let GameAudio = function (opt){ this.$AudioList = AudioList; this.src = opt...
32,622
https://github.com/Ferfortlima/AtlasFMTool/blob/master/controller/js/AdjustCanvas.js
Github Open Source
Open Source
MIT
2,018
AtlasFMTool
Ferfortlima
JavaScript
Code
219
560
function adjustSizes() { var topBarIcons = document.getElementById("topBarIconGroup"); var topBarIconsSmall = document.getElementById("topBarIconGroupSmall"); var canvas = document.getElementById("graphContainer"); var modelName = document.getElementById("modelName"); var height = window.innerHeight; var wi...
30,711
https://github.com/BorjaPintos/fullcalendar/blob/master/packages/__tests__/src/event-drag/validRange.ts
Github Open Source
Open Source
MIT
2,022
fullcalendar
BorjaPintos
TypeScript
Code
175
568
import { DayGridViewWrapper } from '../lib/wrappers/DayGridViewWrapper' describe('validRange event dragging', () => { describe('when start constraint', () => { describe('when in month view', () => { pushOptions({ initialView: 'dayGridMonth', initialDate: '2017-06-01', validRange: { ...
3,544
https://github.com/hudeany/java-utilities-no-dependencies/blob/master/src/de/soderer/utilities/json/schema/validator/ExtendedBaseJsonSchemaValidator.java
Github Open Source
Open Source
MIT
2,016
java-utilities-no-dependencies
hudeany
Java
Code
61
259
package de.soderer.utilities.json.schema.validator; import de.soderer.utilities.json.JsonNode; import de.soderer.utilities.json.JsonObject; import de.soderer.utilities.json.schema.JsonSchemaDefinitionError; import de.soderer.utilities.json.schema.JsonSchemaDependencyResolver; public abstract class ExtendedBaseJsonSch...
27,650
https://github.com/msgilligan/jsr354-ri/blob/master/src/test/java/org/javamoney/moneta/function/MonetaryRoundedFactoryBuilderTest.java
Github Open Source
Open Source
Apache-2.0
null
jsr354-ri
msgilligan
Java
Code
252
1,345
package org.javamoney.moneta.function; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertTrue; import static org.testng.Assert.fail; import java.math.MathContext; import java.math.RoundingMode; import javax.money.MonetaryOperator; impo...
5,693
https://github.com/brgcode/compas_wood/blob/master/src/compas_wood/CGAL/slicer_test.py
Github Open Source
Open Source
MIT
null
compas_wood
brgcode
Python
Code
176
566
import os import numpy as np from compas_view2.app import App from compas_view2.objects import Collection from compas.geometry import Point from compas.geometry import Vector from compas.geometry import Plane from compas.geometry import Polyline from compas.datastructures import Mesh from compas_wood import HERE #? ...
50,247
https://github.com/SoftwareDefinedBuildings/mortar-analytics/blob/master/simultaneous_heating_cooling_ahus/app.py
Github Open Source
Open Source
BSD-2-Clause
2,022
mortar-analytics
SoftwareDefinedBuildings
Python
Code
371
1,526
__author__ = "Anand Krishnan Prakash" __email__ = "akprakash@lbl.gov" import pymortar import datetime import pandas as pd import argparse def get_error_message(x): dt_format = "%Y-%m-%d %H:%M:%S" st = x.name st_str = st.strftime(dt_format) site = x.site ahu = x.ahu msg = "At time: {0}, in the...
32,618
https://github.com/ozylog/ozylog-validator/blob/master/src/index.js
Github Open Source
Open Source
MIT
2,018
ozylog-validator
ozylog
JavaScript
Code
29
65
// @flow 'use strict'; export {default as validator, addValidator} from './validator'; export {default as sanitizer} from './sanitizer'; export {default as Rules} from './Rules'; export {default as Rule} from './Rule';
29,876
https://github.com/quickbundle/quickbundle-5.0_javasec/blob/master/archetype/quickbundle-securityweb/src/main/java/org/quickbundle/third/quartz/jobexecuting/util/JobExecutingException.java
Github Open Source
Open Source
Apache-2.0
2,018
quickbundle-5.0_javasec
quickbundle
Java
Code
137
597
//代码生成时,文件路径: E:/platform/myProject/svn/oss/quickbundle/trunk/quickbundle-securityweb/src/main/java/org/quickbundle/third/quartz/jobexecuting/util/exception/JobExecutingException.java //代码生成时,系统时间: 2012-04-02 22:28:49 //代码生成时,操作系统用户: qb /* * 系统名称:单表模板 --> quickbundle-securityweb * * 文件名称: org.quickbundle.third.qua...
1,380
https://github.com/mhnam/first-steps-with-tensorflow/blob/master/rnn_ptb/simple-examples/rnnlm-0.2b/convert.c
Github Open Source
Open Source
MIT
2,021
first-steps-with-tensorflow
mhnam
C
Code
96
380
// this simple program converts srilm output obtained in -debug 2 test mode to raw per-word probabilities #include <stdio.h> void goToDelimiter(int delim, FILE *fi) { int ch=0; while (ch!=delim) { ch=fgetc(fi); if (feof(fi)) { exit(1); } } } int main() { int str[1000...
33,980
https://github.com/biscout24/toguru-scala-client/blob/master/core/src/main/scala/toguru/implicits/Toggle.scala
Github Open Source
Open Source
MIT
null
toguru-scala-client
biscout24
Scala
Code
33
144
package toguru.implicits import toguru.api.Toggling import toguru.impl.{ToggleState, TogglesString} object toggle { implicit class TogglesToString(toggles: Iterable[ToggleState]) { def buildString(implicit toggling: Toggling): String = TogglesString.build { import toggling.client toggles.map(t => ...
1,722
https://github.com/tyrion70/polygon-adapter/blob/master/index.js
Github Open Source
Open Source
MIT
null
polygon-adapter
tyrion70
JavaScript
Code
262
760
const rp = require('request-promise') const retries = process.env.RETRIES || 3 const delay = process.env.RETRY_DELAY || 1000 const timeout = process.env.TIMEOUT || 1000 const requestRetry = (options, retries) => { return new Promise((resolve, reject) => { const retry = (options, n) => { return rp(options) ...
44,450
https://github.com/JLimperg/lean4/blob/master/tests/playground/map_perf.lean
Github Open Source
Open Source
Apache-2.0
2,022
lean4
JLimperg
Lean
Code
199
368
abbrev Map1 : Type := RBMap Nat Bool (λ a b, a < b) abbrev Map2 : Type := HashMap Nat Bool def mkMap1Aux : Nat → Map1 → Map1 | 0 m := m | (n+1) m := mkMap1Aux n (m.insert n (n % 10 = 0)) def mkMap2Aux : Nat → Map2 → Map2 | 0 m := m | (n+1) m := mkMap2Aux n (m.insert n (n % 10 = 0)) def mkMap1 (n : Nat) := mkMap1Aux ...
20,948
https://github.com/webclinic017/VectorBTanalysis/blob/master/.venv/share/jupyter/lab/staging/node_modules/@krassowski/jupyterlab-lsp/lib/overrides/defaults.d.ts
Github Open Source
Open Source
MIT, BSD-3-Clause
2,020
VectorBTanalysis
webclinic017
TypeScript
Code
11
31
import { ICodeOverridesRegistry } from './tokens'; export declare const language_specific_overrides: ICodeOverridesRegistry;
12,271
https://github.com/youyo/zabbix-aws-integration/blob/master/cmd/zabbix-aws-integration/cmd/ec2Discovery.go
Github Open Source
Open Source
MIT
2,018
zabbix-aws-integration
youyo
Go
Code
296
1,273
package cmd import ( "context" "fmt" "log" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" "github.com/spf13/cobra" ) type ( Ec2DiscoveryItem struct { InstanceID string `json:"{#INSTANCE_ID}"` InstanceName string `json:"{#INSTANCE_NAME}"` InstanceRole string `jso...
7,811
https://github.com/tanyaweaver/Prtfolio/blob/master/scripts/controllers/resumeController.js
Github Open Source
Open Source
MIT
null
Prtfolio
tanyaweaver
JavaScript
Code
23
84
(function(module) { var resumeController = {}; resumeController.index = function() { if($('#resume section').length === 0) { ResumeSection.fetchAll(); } $('#resume').show().siblings().hide(); }; module.resumeController = resumeController; })(window);
22,062
https://github.com/pvmoore/ppl2/blob/master/src/ppl2/check/check_module.d
Github Open Source
Open Source
MIT
2,019
ppl2
pvmoore
D
Code
1,652
5,314
module ppl2.check.check_module; import ppl2.internal; /// /// Check semantics after all types have been resolved. /// final class ModuleChecker { private: Module module_; StopWatch watch; Set!string stringSet; IdentifierResolver identifierResolver; EscapeAnalysis escapeAnalysis; public: this(Mo...
23,085
https://github.com/yulqen/twdft/blob/master/twdft.fish
Github Open Source
Open Source
MIT
2,019
twdft
yulqen
Fish
Code
63
151
#complete -c twdft -l create_inspection -d "Port Facility Name" -a "(twdft complete_site (commandline -cp))" #complete -f -c twdft -d "Create inspection" -a "(twdft complete_site)" complete -f -c twdft -d "Port Facility" -a "(twdft_complete_site)" complete -f -c twdft -l inspectiondate -d "Inspection date" complete -f ...
41,831
https://github.com/SakurajimaMaii/Utils/blob/master/libraries/VastSwipeView/src/main/java/com/gcode/vastswipeview/exception/VastSwipeViewNotInit.kt
Github Open Source
Open Source
MIT
null
Utils
SakurajimaMaii
Kotlin
Code
36
94
package com.gcode.vastswipeview.exception /** * @OriginalAuthor: Vast Gui * @OriginalDate: * @EditAuthor: Vast Gui * @EditDate: 2021/12/17 */ internal data class VastSwipeViewNotInit( override val message: String, override val cause: Throwable? = null ) : Throwable(message, cause) {}
31,441
https://github.com/tryboy/polarphp/blob/master/unittests/utils/StringPoolTest.cpp
Github Open Source
Open Source
PHP-3.01
null
polarphp
tryboy
C++
Code
121
314
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2019 polarphp software foundation // Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license info...
47,178
https://github.com/YiduoQiu/Jeesite-demo/blob/master/src/main/java/com/thinkgem/jeesite/modules/aqtrzj/service/CzzAqtrzjService.java
Github Open Source
Open Source
Apache-2.0
null
Jeesite-demo
YiduoQiu
Java
Code
131
973
package com.thinkgem.jeesite.modules.aqtrzj.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.thinkgem.jeesite.common.persistence.Page; import com.th...
46,569
https://github.com/javra/lean/blob/master/tests/lean/prodtst.lean
Github Open Source
Open Source
Apache-2.0
2,022
lean
javra
Lean
Code
22
44
-- inductive prod2 (A B : Type₊) := mk : A → B → prod2 A B set_option pp.universes true check @prod2
5,596
https://github.com/dream-png/HotelSystem/blob/master/src/com/hyc/www/test/TestHotelDao.java
Github Open Source
Open Source
Apache-2.0
2,022
HotelSystem
dream-png
Java
Code
279
1,219
/* * Copyright (c) 2019. 黄钰朝 * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
32,693
https://github.com/PinkDiamond1/openiban/blob/master/openibanlib/providers/OpenIBAN.py
Github Open Source
Open Source
MIT
2,015
openiban
PinkDiamond1
Python
Code
57
218
''' Created on Apr 30, 2015 @author: nabu ''' from openibanlib.providers.interfaces import IBANProvider class OpenIBAN(IBANProvider): """ OpenIBAN provider: https://openiban.com/ """ PROVIDER_URL = "https://openiban.com/validate/XXXXXXXX?getBIC=true" def _request_params(self): re...
48,125
https://github.com/thereR4lights/ember-styleguide/blob/master/app/styles/components/_es-navbar.scss
Github Open Source
Open Source
MIT
2,019
ember-styleguide
thereR4lights
SCSS
Code
383
1,555
/** Navbar in header **/ .navbar { margin-bottom: 0; &.navbar-inverse { background-color: $orange; border-color: transparent; border-radius: 0; padding: 0; .mr-auto { margin-right: auto; } .navbar-collapse, .navbar-form { border-color: $orange-darkest; } .navbar...
12,426
https://github.com/dkomarov/jitsi-meet/blob/master/react/features/filmstrip/components/web/Thumbnail.js
Github Open Source
Open Source
Apache-2.0
null
jitsi-meet
dkomarov
JavaScript
Code
2,679
7,958
// @flow import { withStyles } from '@material-ui/styles'; import clsx from 'clsx'; import debounce from 'lodash/debounce'; import React, { Component } from 'react'; import { createScreenSharingIssueEvent, sendAnalytics } from '../../../analytics'; import { Avatar } from '../../../base/avatar'; import { isMobileBrows...
39,920
https://github.com/ericktateishi/scoreplay-album/blob/master/src/test/mock/season.js
Github Open Source
Open Source
MIT
null
scoreplay-album
ericktateishi
JavaScript
Code
16
36
export default [ { id: 862, name: "top" }, { id: 694, name: "test2" }, ]
8,608
https://github.com/Stratus3D/programming_erlang_exercises/blob/master/chapter_25/exercise_5/src/ping_pong.erl
Github Open Source
Open Source
MIT
2,020
programming_erlang_exercises
Stratus3D
Erlang
Code
9
42
-module(ping_pong). -export([ping/1]). % Sample CGI function ping(_Arg) -> [<<"foobar">>].
35,741
https://github.com/wiseminds/flutter_music_query/blob/master/example/lib/src/bloc/BlocProvider.dart
Github Open Source
Open Source
MIT
null
flutter_music_query
wiseminds
Dart
Code
79
295
import 'package:flutter/widgets.dart'; import './BlocBase.dart'; class BlocProvider<T extends BlocBase> extends StatefulWidget { final Key? key; final Widget child; final T bloc; static Type _typeOf<T>() => T; BlocProvider({this.key, required this.child, required this.bloc}) : super(key: key); @ov...
8,481
https://github.com/whigg/hdf5plotter/blob/master/hdf5plotter/tests/test_plot.py
Github Open Source
Open Source
MIT
2,015
hdf5plotter
whigg
Python
Code
25
59
# -*- coding: utf-8 -*- import numpy as np from nose.tools import eq_ from hdf5plotter._plot import plot def test_plot(): plot([1, 2, 3], [1, 4, 9])
21,549
https://github.com/gitter-badger/Light.Data2/blob/master/test/Light.Data.Mysql.Test/Mysql_BaseFieldAggregateTest.cs
Github Open Source
Open Source
MIT
2,020
Light.Data2
gitter-badger
C#
Code
12,330
47,577
using System; using System.Collections.Generic; using System.Text; using Xunit; using Xunit.Abstractions; using System.Linq; using System.Threading.Tasks; using System.Threading; namespace Light.Data.Mysql.Test { public class Mysql_BaseFieldAggregateTest : BaseTest { class BytesEqualityComparer : IEqu...
41,406
https://github.com/sandialabs/nnsd-common/blob/master/src/DatabaseLib/Interpreters/SMARTInterpreter.cs
Github Open Source
Open Source
MIT
2,021
nnsd-common
sandialabs
C#
Code
76
308
using gov.sandia.sld.common.configuration; using gov.sandia.sld.common.data; using gov.sandia.sld.common.utilities; using System.Collections.Generic; using System.Data.SQLite; namespace gov.sandia.sld.common.db.interpreters { public class SMARTInterpreter : BaseInterpreter, IDataInterpreter { public v...
47,203