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/hapejot/hape_c/blob/master/io/io_std_seek.c
Github Open Source
Open Source
Apache-2.0
null
hape_c
hapejot
C
Code
89
248
#include "platform.h" #include "io_int.h" #include <stdio.h> /*--------------------------------------------------------------------------- * NAME * io_std_seek - * * SYNOPSIS */ INT io_std_seek ( IN IO_FILE p_io, IN UINT64 p_pos ) /* * DESCRIPTION * * PARAMETERS * * RETURN VALUES ...
28,769
https://github.com/aguinet/dragonffi/blob/master/examples/CMakeLists.txt
Github Open Source
Open Source
Apache-2.0
2,021
dragonffi
aguinet
CMake
Code
51
314
if (BUILD_TESTS) set(EXAMPLES_DIR "${PROJECT_SOURCE_DIR}/examples") if (PYTHON_BINDINGS) set(EXAMPLES "${EXAMPLES_DIR}/archive.py" "${EXAMPLES_DIR}/fftw.py" "${EXAMPLES_DIR}/readdir.py" ) set(PYDFFI_LIB_DIR $<TARGET_FILE_DIR:pydffi>) configure_file("lit.site.cfg.in" "${CMAKE_CURRE...
13,245
https://github.com/mk0sojo/allReady/blob/master/AllReadyApp/Web-App/AllReady.UnitTest/Areas/Admin/Controllers/Builders/EventControllerBuilder.cs
Github Open Source
Open Source
MIT
2,022
allReady
mk0sojo
C#
Code
191
792
using System; using AllReady.Areas.Admin.Controllers; using AllReady.Areas.Admin.ViewModels.Validators; using AllReady.Security; using AllReady.Services; using MediatR; using Moq; namespace AllReady.UnitTest.Areas.Admin.Controllers.Builders { public class EventControllerBuilder { private IImageService ...
45,100
https://github.com/noahamar/smlscrn/blob/master/src/client/app/server.js
Github Open Source
Open Source
MIT
2,016
smlscrn
noahamar
JavaScript
Code
535
1,440
import axios from 'axios'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { createMemoryHistory, match, RouterContext } from 'react-router'; import { Provider } from 'react-redux'; import createRoutes from './routes'; import configureStore from './store'; import preRenderMiddlewar...
17,573
https://github.com/pulumi/pulumi-aws/blob/master/sdk/dotnet/Ec2ClientVpn/Inputs/EndpointClientConnectOptionsGetArgs.cs
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, MPL-2.0
2,023
pulumi-aws
pulumi
C#
Code
118
292
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
41,116
https://github.com/pavl0sh/Paper-blog/blob/master/client/src/components/categoriesList/Item.vue
Github Open Source
Open Source
MIT
2,019
Paper-blog
pavl0sh
Vue
Code
31
103
<template> <div class="title"> <h4> <a>{{ categoryName }}</a> </h4> </div> </template> <style scoped> a { cursor: pointer; } </style> <script> export default { name: "category-item", props: { categoryName: String } }; </script>
13,431
https://github.com/s6056826/netty-study/blob/master/src/main/java/cn/dbw/netty/ssy/TestServerInitHandler.java
Github Open Source
Open Source
MIT
2,019
netty-study
s6056826
Java
Code
36
175
package cn.dbw.netty.ssy; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelPipeline; import io.netty.channel.socket.SocketChannel; import io.netty.handler.codec.http.HttpRequestDecoder; import io.netty.handler.codec.http.HttpServerCodec; public class TestServerInitHandler extends ChannelInit...
43,721
https://github.com/mifm/FUSED-Wake/blob/master/fusedwake/noj/interface.py
Github Open Source
Open Source
MIT
2,018
FUSED-Wake
mifm
Python
Code
960
3,288
# import python.noj as noj import fusedwake.noj.fortran as fnoj import fusedwake.noj.fortran_mod as fnoj_mod import numpy as np class NOJ(object): # The different versions and their respective inputs inputs = { # 'py0': ['WF', 'WS', 'WD', 'K'], 'fort_noj_av': ['x_g', 'y_g', 'z_g', 'dt', 'p_c',...
49,111
https://github.com/inovua/reactdatagrid/blob/master/community-edition/NumericEditor/NumericEditor.tsx
Github Open Source
Open Source
MIT
2,023
reactdatagrid
inovua
TSX
Code
187
572
/** * Copyright © INOVUA TRADING. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import NumericInput from '../packages/NumericInput'; type TypeFilterValue = { name: string; operator: string; type: ...
48,018
https://github.com/sohrabmistri/-inflatable-airfoil-geometric/blob/master/supporting files/support files for Internal_Bumpy_Airfoil/get_Tangent_Circle_Data_01.m
Github Open Source
Open Source
MIT
2,021
-inflatable-airfoil-geometric
sohrabmistri
MATLAB
Code
127
545
function [ Cy r ] = get_Tangent_Circle_Data_01( airfoil_Top_Equation, airfoil_Bottom_Equation, Cx ) %UNTITLED3 Summary of this function goes here % Detailed explanation goes here Cx %fun = @(x) (((airfoil_Top_Equation(x(1)) - x(3))^2) + ((x(1) - Cx)^2) - ((airfoil_Bottom_Equation(x(2)) - x(3))^2) - ((x(2) - Cx)^2))^...
13,692
https://github.com/codepongo/TyranScript/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,012
TyranScript
codepongo
Ignore List
Code
3
10
*.o build/ *.out
24,866
https://github.com/ImedAdel/flaub/blob/master/src/components/FontSwitcher.tsx
Github Open Source
Open Source
MIT
2,022
flaub
ImedAdel
TypeScript
Code
129
405
import { useFont } from "../contexts/font" import { useEffect, useState } from "react" import { ReactComponent as Square } from "../icons/Feather/square.svg" import { ReactComponent as Circle } from "../icons/Feather/circle.svg" import { ReactComponent as Loader } from "../icons/Feather/loader.svg" import clsx from "cl...
29,029
https://github.com/theogobinet/armorydesbuissons/blob/master/components/live/LastKills.js
Github Open Source
Open Source
MIT
2,021
armorydesbuissons
theogobinet
JavaScript
Code
260
862
import React, { useState, useEffect } from 'react'; import { useTransition, animated } from 'react-spring'; import useTranslation from 'next-translate/useTranslation'; import { isDarkMode } from '../../helpers/theme'; import LastKill from './LastKill'; import Player from './Player'; import EVENTS from '../../helpers/l...
50,224
https://github.com/lvqier/fishingjoy/blob/master/src/app.common.ui.gadget.SceneSwitcherLoading.lua
Github Open Source
Open Source
Unlicense
null
fishingjoy
lvqier
Lua
Code
93
383
slot2 = "SceneSwitcherLoading" SceneSwitcherLoading = class(slot1) SceneSwitcherLoading.ctor = function (slot0) return end SceneSwitcherLoading.switchTo = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6, slot7, slot8) slot7 = 0 slot8 = slot8 or 0 function slot9() if slot0 then slot0() end end ...
5,008
https://github.com/steakknife/ObjectFabric/blob/master/objectfabric.examples/intro/part09/versioning/Main.java
Github Open Source
Open Source
Apache-2.0
2,016
ObjectFabric
steakknife
Java
Code
514
1,013
/** * Copyright (c) ObjectFabric Inc. All rights reserved. * * This file is part of ObjectFabric (objectfabric.com). * * ObjectFabric is licensed under the Apache License, Version 2.0, the terms * of which may be found at http://www.apache.org/licenses/LICENSE-2.0.html. * * This file is provided AS IS with NO W...
9,654
https://github.com/xiaokun19931126/guanggoo-android/blob/master/app/src/main/java/org/mazhuang/guanggoo/data/entity/Comment.java
Github Open Source
Open Source
Apache-2.0
2,021
guanggoo-android
xiaokun19931126
Java
Code
218
560
package org.mazhuang.guanggoo.data.entity; /** * * @author mazhuang * @date 2017/9/17 */ public class Comment { private String avatar; private Meta meta; private String content; public static class Meta { private User replier; private String time; private int floor; ...
44,066
https://github.com/GustavoAT/sistemalojista/blob/master/system/language/portugues/imglib_lang.php
Github Open Source
Open Source
MIT
null
sistemalojista
GustavoAT
PHP
Code
275
701
<?php $lang['imglib_source_image_required'] = "Você deve especificar uma imagem de origem em suas preferências."; $lang['imglib_gd_required'] = "A biblioteca de imagens GD é necessária para esse recurso."; $lang['imglib_gd_required_for_props'] = "Seu servidor deve suportar a biblioteca de imagens GD para determinar as...
14,928
https://github.com/ydua/HP-ReportCard/blob/master/node_modules/rhea-promise/dist/lib/eventContext.js
Github Open Source
Open Source
Apache-2.0
2,021
HP-ReportCard
ydua
JavaScript
Code
217
524
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache License. See License in the project root for license information. Object.defineProperty(exports, "__esModule", { value: true }); const connection_1 = require("./connection"); const session_1 = require("./session"); c...
17,106
https://github.com/valgur/OCP/blob/master/opencascade/Aspect_TypeOfDisplayText.hxx
Github Open Source
Open Source
Apache-2.0
2,022
OCP
valgur
C++
Code
186
394
// Created by: NW,JPB,CAL // Copyright (c) 1991-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License...
22,491
https://github.com/cisco-open-source/libass/blob/master/libass/x86/blend_bitmaps.h
Github Open Source
Open Source
ISC
2,016
libass
cisco-open-source
C
Code
273
786
/* * Copyright (C) 2013 Rodger Combs <rcombs@rcombs.me> * * This file is part of libass. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE...
42,873
https://github.com/alexgorbatchev/quotaservice/blob/master/admin/public/__tests__/reducers/CurrentVersion.react-test.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,017
quotaservice
alexgorbatchev
JavaScript
Code
69
256
import { currentVersion } from '../../src/reducers/configs.jsx' import { CONFIGS_FETCH_SUCCESS } from '../../src/actions/configs.jsx' describe('currentVersion reducer', () => { it('should return the initial state', () => { expect(currentVersion(undefined, {})).toEqual(0) }) it('should handle CONFIGS_FETCH_S...
27,830
https://github.com/klinem/circuit-ui/blob/master/src/components/Badge/Badge.story.tsx
Github Open Source
Open Source
Apache-2.0
2,020
circuit-ui
klinem
TSX
Code
199
495
/** * Copyright 2019, SumUp Ltd. * 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 in wri...
37,908
https://github.com/nokeedev/gradle-native/blob/master/subprojects/platform-base/src/main/java/dev/nokee/platform/base/TaskView.java
Github Open Source
Open Source
Apache-2.0
2,023
gradle-native
nokeedev
Java
Code
236
403
/* * Copyright 2020 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
43,720
https://github.com/RT-Thread/IoT_Board/blob/master/examples/13_component_fal/applications/main.c
Github Open Source
Open Source
Apache-2.0
2,022
IoT_Board
RT-Thread
C
Code
496
1,526
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-08-16 armink first implementation * 2018-08-28 MurphyZhao add fal */ #include <rtthread.h> #include <fal.h> #define DBG_TAG "main" #defi...
38,472
https://github.com/Zhangoufei/NotePractice/blob/master/Website/DotNetCore/CoreWebsite/Views/File/EditorImageUpload.cshtml
Github Open Source
Open Source
Apache-2.0
2,022
NotePractice
Zhangoufei
C#
Code
142
871
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <!--加载js/css需要翻墙!!!--> <!-- Include external CSS. --> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> @*<link rel="stylesheet" href="https://cdnjs.cloudflare.com...
36,797
https://github.com/carousel/dev.dynastydog/blob/master/app/libraries/Floats.php
Github Open Source
Open Source
MIT
2,015
dev.dynastydog
carousel
PHP
Code
472
1,279
<?php namespace Floats; class Floats { public static function compare($float1, $float2, $operator = '=') { // Check numbers to 5 digits of precision $epsilon = 0.00001; $float1 = (float)$float1; $float2 = (float)$float2; switch ($opera...
7,972
https://github.com/Aevit/SCWrapDemo/blob/master/SCWrapDemo/SCWrapDemo/SCWrap/SCHelper/SCCommon/SCCommon.m
Github Open Source
Open Source
MIT
2,015
SCWrapDemo
Aevit
Objective-C
Code
157
489
// // SCCommon.m // SCWrapDemo // // Created by Aevitx on 14/12/25. // Copyright (c) 2014年 Aevit. All rights reserved. // #import "SCCommon.h" #import <UIKit/UIKit.h> @implementation SCCommon /** * find the topest presenting controller * (the result maybe a navigationController, a tabbarController or a norm...
4,022
https://github.com/bangsus-sistem/bangsus-sistem/blob/master/resources/js/components/sidebar/SidebarItemIcon.vue
Github Open Source
Open Source
Apache-2.0
null
bangsus-sistem
bangsus-sistem
Vue
Code
31
105
<template> <FeatherIcon :icon="icon" :size="20" class="sidebar-item-icon" /> </template> <script> import FeatherIcon from '../icons/FeatherIcon' export default { components: { FeatherIcon, }, props: { icon: { required: true, type: String, }, } } </sc...
35,850
https://github.com/snaekobbi/jsass/blob/master/src/test/resources/sass/error.sass
Github Open Source
Open Source
MIT
2,022
jsass
snaekobbi
Sass
Code
3
8
@error "Test exception"
50,292
https://github.com/djx314/poi-collection/blob/master/build.sbt
Github Open Source
Open Source
MIT
2,020
poi-collection
djx314
Scala
Code
41
195
//bintrayOrganization := Some("scalax") //bintrayRepository := "poi-collection" resolvers += Resolver.jcenterRepo resolvers += Resolver.bintrayRepo("djx314", "maven") licenses += ("MIT", url("http://opensource.org/licenses/MIT")) bintrayVcsUrl := Some("git@github.com:scalax/poi-collection.git") bintrayPackageLabels ...
18,511
https://github.com/sudhan499/rdf2x/blob/master/src/main/java/com/merck/rdf2x/flavors/WikidataFlavor.java
Github Open Source
Open Source
Apache-2.0
2,020
rdf2x
sudhan499
Java
Code
391
1,268
/* * Copyright 2017 Merck Sharp & Dohme Corp. a subsidiary of Merck & Co., * Inc., Kenilworth, NJ, USA. * * 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/l...
7,280
https://github.com/Joralmi/wot-hive/blob/master/src/main/java/directory/things/Things.java
Github Open Source
Open Source
Apache-2.0
null
wot-hive
Joralmi
Java
Code
433
2,020
package directory.things; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.net.URI; import java.net.URISyntaxException; import org.apache.jena.datatypes.BaseDatatype; import org.apache.jena.rdf.model.Literal; import org.apache.jena.rdf.model.Model; import org.apache.jena.rd...
1,828
https://github.com/rswijesena/Flow_Stripe/blob/master/update.js
Github Open Source
Open Source
MIT
2,019
Flow_Stripe
rswijesena
JavaScript
Code
161
594
const copy = require('recursive-copy'); const download = require('download'); const fs = require('fs-extra'); const merger = require('three-way-merger'); (async function() { console.log('Downloading update...'); await download('https://github.com/manywho/ui-custom-component/archive/master.zip', '__update__', {...
3,081
https://github.com/Asbaharoon/ome-files-performance/blob/master/results/tubhiswt-pixeldata-win-cpp-20.tsv
Github Open Source
Open Source
BSD-2-Clause
2,021
ome-files-performance
Asbaharoon
TSV
Code
48
238
test.lang test.name test.file proc.real proc.user proc.system C++ pixeldata.read tubhiswt_C0_TP0.ome.tif 1166 608 561 C++ pixeldata.read.init tubhiswt_C0_TP0.ome.tif 411 327 93 C++ pixeldata.read.pixels tubhiswt_C0_TP0.ome.tif 755 280 468 C++ pixeldata.write tubhiswt_C0_TP0.ome.tif 2039 327 1669 C++ pixeldata.write.ini...
30,313
https://github.com/fahmilu/sgcall/blob/master/system/cms/modules/navigation/language/lithuanian/navigation_lang.php
Github Open Source
Open Source
PHP-3.01, PHP-3.0
null
sgcall
fahmilu
PHP
Code
186
833
<?php defined('BASEPATH') OR exit('No direct script access allowed'); // labels $lang['nav:parent_label'] = 'Tėvas'; $lang['nav:target_label'] = 'Target'; $lang['nav:class_label'] = 'Class'; $lang['nav:url_label'] = 'URL'; $lang['nav:details_la...
20,105
https://github.com/JetBrains/intellij-community/blob/master/java/java-psi-impl/src/com/intellij/psi/impl/source/tree/java/NameValuePairElement.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Java
Code
275
833
/* * Copyright 2000-2012 JetBrains s.r.o. * * 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 agre...
19,918
https://github.com/RaviPatel75/ScalajsReactTyped/blob/master/l/lazy_dot_js/src/main/scala/typingsJapgolly/lazyJs/LazyJS/AsyncHandle.scala
Github Open Source
Open Source
MIT
2,020
ScalajsReactTyped
RaviPatel75
Scala
Code
61
332
package typingsJapgolly.lazyJs.LazyJS import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ trait AsyncHandle[T] extends js.Object { def cancel(): Unit def onComplete(callback: Callback): Unit def onError(callback: ErrorCallback): Unit } object AsyncHandle { @scala.inline ...
13,367
https://github.com/Mega-Mewthree/tile-trials-visualizer/blob/master/src/App.vue
Github Open Source
Open Source
MIT
null
tile-trials-visualizer
Mega-Mewthree
Vue
Code
54
238
<template> <v-app> <v-main> <router-view/> </v-main> </v-app> </template> <script> export default { name: "App" }; </script> <style lang="scss"> @import "@/styles/variables.scss"; html { --white-text-color: $white-text-color; } .v-application { background-color: var(--v-background-base) !imp...
27,766
https://github.com/openebs/sparse-tools/blob/master/sparse/test/client_test.go
Github Open Source
Open Source
Apache-2.0
2,019
sparse-tools
openebs
Go
Code
2,590
8,032
package test import ( "testing" . "github.com/longhorn/sparse-tools/sparse" "github.com/longhorn/sparse-tools/sparse/rest" ) const ( localhost = "127.0.0.1" timeout = 5 //seconds port = "5000" ) func TestSyncSmallFile1(t *testing.T) { localPath := tempFilePath("ssync-small-src-") remotePath := tempFi...
46,896
https://github.com/andysomers/ax-docs-across/blob/master/docs/modules/across-web/pages/basic-features/servlets-and-filters.adoc
Github Open Source
Open Source
Apache-2.0
null
ax-docs-across
andysomers
AsciiDoc
Code
220
549
:page-partial: [[dynamic-servlet-registration]] [#registering-servlets-and-filters] == Registering servlets and filters It is possible to register `Servlet` and `Filter` instances from within an Across module by providing `ServletContextInitializer` beans. During bootstrap, AcrossWebModule will detect these beans and e...
33,941
https://github.com/meowpub/meow/blob/master/lib/errors.go
Github Open Source
Open Source
MIT
2,021
meow
meowpub
Go
Code
226
460
package lib import ( "context" "github.com/pkg/errors" "go.uber.org/zap" ) // Error attaches a status code to an error. type Err struct { Err error StatusCode int } // Wraps an error with an error code. func Code(err error, code int) error { if err != nil { return Err{err, code} } return nil } // ...
18,225
https://github.com/oneOffJS/zuen/blob/master/standard/f/src/internal/first.js
Github Open Source
Open Source
MIT
2,020
zuen
oneOffJS
JavaScript
Code
11
24
const first = (target) => ( target?.[0] ) export default first
34,732
https://github.com/LexChiang/LexChiang/blob/master/SinaWeibo_Objective-C/SinaWeibo_Objective-C/ViewController.h
Github Open Source
Open Source
Apache-2.0
null
LexChiang
LexChiang
C
Code
28
89
// // ViewController.h // SinaWeibo_Objective-C // // Created by SteveChiang on 15/11/25. // Copyright © 2015年 SteveChiang. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
16,679
https://github.com/renjithraj2005/go-playbook/blob/master/error.go
Github Open Source
Open Source
Apache-2.0
2,018
go-playbook
renjithraj2005
Go
Code
92
204
package main import ( "fmt" "time" ) type MyError struct { When time.Time What string } //Go programs express error state with error values. //The error type is a built-in interface similar to fmt.Stringer: func (e *MyError) Error() string { return fmt.Sprintf("at %v, %s", e.When, e.What) } func run() error...
22,116
https://github.com/zimekk/scene/blob/master/src/Video.tsx
Github Open Source
Open Source
MIT
2,021
scene
zimekk
TSX
Code
181
548
import {Composition} from 'remotion'; import phone from './assets/phone.mp4'; import tablet from './assets/tablet.mp4'; import {Scene} from './Scene'; import { GooBallCSS } from './GooBallCSS' import {GLTransitions} from './GLTransitions'; const FPS = 30 // Welcome to the Remotion Three Starter Kit! // Two compositio...
10,741
https://github.com/Naeviant/DigitalPeopleLabs/blob/master/web/static/js/links_management.js
Github Open Source
Open Source
MIT
null
DigitalPeopleLabs
Naeviant
JavaScript
Code
46
181
$('#newLinkSubmit').click(() => { const linkName = $('#newLinkName').val(); const linkTextColour = $('#newLinkTextColour').val(); const linkBackgroundColour = $('#newLinkBackgroundColour').val(); const linkURL = $('#newLinkURL').val(); $.ajax('/api/admin/links', { data: JSON.stringify({ ...
36,846
https://github.com/maxima-us/crypto-dom/blob/master/src/crypto_dom/binance/market_data/depth.py
Github Open Source
Open Source
MIT
null
crypto-dom
maxima-us
Python
Code
228
670
import typing from decimal import Decimal import pydantic import stackprinter from typing_extensions import Literal stackprinter.set_excepthook(style="darkbg2") from crypto_dom.binance.definitions import TIMEFRAME, SYMBOL # ============================================================ # DEPTH (ORDERBOOK) # =========...
27,159
https://github.com/dvpravin/org.ops4j.pax.jms/blob/master/pax-jms-api/src/main/java/org/ops4j/pax/jms/service/PooledConnectionFactoryFactory.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
org.ops4j.pax.jms
dvpravin
Java
Code
264
539
/* * 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 ...
12,873
https://github.com/smartdevicelink/sdl_ios/blob/master/SmartDeviceLink/private/SDLDynamicMenuUpdateAlgorithm.m
Github Open Source
Open Source
2,023
sdl_ios
smartdevicelink
Objective-C
Code
556
1,724
// // SDLMenuUpdateAlgorithm.m // SmartDeviceLink // // Created by Justin Gluck on 5/14/19. // Copyright © 2019 smartdevicelink. All rights reserved. // #import "SDLDynamicMenuUpdateAlgorithm.h" #import "SDLDynamicMenuUpdateRunScore.h" #import "SDLMenuCell.h" #import "SDLLogMacros.h" #import "SDLWindowCapability.h...
939
https://github.com/NicoLaval/Bauhaus/blob/master/app/src/js/components/shared/input-multi-rmes/input-multi-rmes.stories.js
Github Open Source
Open Source
MIT
2,022
Bauhaus
NicoLaval
JavaScript
Code
71
262
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import InputMulti from './'; import { withKnobs, text } from '@storybook/addon-knobs'; const stories = storiesOf('Input multi', module); stories.addDecorator(withKnobs); const styleDecorator = ...
22,682
https://github.com/karkisubash/TutionMgmt/blob/master/application/controllers/studentFunctions.php
Github Open Source
Open Source
MIT
null
TutionMgmt
karkisubash
PHP
Code
130
865
<?php class studentFunctions extends CI_Controller{ public function student_login(){ //login for student $uname=$this->input->post('uname'); $pword=md5($this->input->post('pword')); $this->load->model('studentModel'); $log_id=$this->studentModel->check_login($uname,$pword); If($log_id){ ...
3,269
https://github.com/trentmillar/haraka-test/blob/master/node_modules/maxmind/lib/data/region_name_data.js
Github Open Source
Open Source
MIT
null
haraka-test
trentmillar
JavaScript
Code
10,364
46,191
/* jshint indent: 2 */ // Do not modify this file, it was generated by // ./tools/gen_time_zone.rb module.exports = { "AD": { "2": "Canillo", "3": "Encamp", "4": "La Massana", "5": "Ordino", "6": "Sant Julia de Loria", "7": "Andorra la Vella", "8": "Escaldes-Engordany" }, "AE": { ...
2,848
https://github.com/XiangHuang-LMC/ijava-binder/blob/master/CSC176/textbook/book/mytest/ArrayListTest.java
Github Open Source
Open Source
OFL-1.1, MIT, Unlicense
2,020
ijava-binder
XiangHuang-LMC
Java
Code
57
224
package mytest; import org.junit.*; import static org.junit.Assert.*; import java.util.*; public class ArrayListTest { private ArrayList<String> list = new ArrayList<String>(); @Before public void setUp() throws Exception { } @Test public void testInsertion() { list.add("Beijing"); assertEqu...
43,489
https://github.com/truthencode/ddo-calc/blob/master/subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/feats/SilverFlameExorcism.scala
Github Open Source
Open Source
Apache-2.0
2,020
ddo-calc
truthencode
Scala
Code
243
559
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2015-2021 Andre White. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * ...
16,122
https://github.com/freebsd/freebsd-ports/blob/master/net/liboping/files/patch-src_liboping.c
Github Open Source
Open Source
BSD-2-Clause
2,023
freebsd-ports
freebsd
C
Code
48
164
--- src/liboping.c.orig 2014-09-28 09:21:20 UTC +++ src/liboping.c @@ -801,6 +801,11 @@ static ssize_t ping_sendto (pingobj_t *obj, pinghost_t if (errno == ENETUNREACH) return (0); #endif + /* BSDs return EHOSTDOWN on ARP/ND failure */ +#if defined(EHOSTDOWN) + if (errno == EHOSTDOWN) + return (0); +#endif ...
47,234
https://github.com/zeroday0619/zerodayAPI/blob/master/routes/v1/__init__.py
Github Open Source
Open Source
MIT
2,020
zerodayAPI
zeroday0619
Python
Code
24
74
from sanic.blueprints import Blueprint from sanic.response import json from sanic import response from routes.v1.index_root import api_info from routes.v1.rtsq import rtsq_Api index = Blueprint.group(api_info, rtsq_Api)
37,543
https://github.com/KazeJiyu/eclipse-discord-integration/blob/master/tests/fr.kazejiyu.discord.rpc.integration.tests/src/fr/kazejiyu/discord/rpc/integration/settings/GlobalPreferencesListenerTest.java
Github Open Source
Open Source
Apache-2.0
2,019
eclipse-discord-integration
KazeJiyu
Java
Code
395
2,292
package fr.kazejiyu.discord.rpc.integration.settings; import static java.util.Arrays.asList; import static org.mockito.Mockito.only; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verifyZeroInteractions; import static org.mockito.Mockito.when; import java.util.EnumMap; import java.util.Ma...
12,613
https://github.com/rboman/progs/blob/master/sandbox/tbb/thead_local_storage/main.cpp
Github Open Source
Open Source
Apache-2.0
2,022
progs
rboman
C++
Code
78
310
// from // https://www.threadingbuildingblocks.org/tutorial-intel-tbb-thread-local-storage #include <tbb/tbb.h> #include <cstdio> using namespace tbb; typedef tbb::enumerable_thread_specific<std::pair<int, int>> CounterType; CounterType MyCounters(std::make_pair(0, 0)); struct Body { void operator()(const tbb::b...
42,008
https://github.com/wirenic/news-feed/blob/master/news-cleaner/go.mod
Github Open Source
Open Source
MIT
2,021
news-feed
wirenic
Go Module
Code
13
92
module github.com/panz3r/news.panz3r.dev/news-cleaner go 1.13 require ( github.com/ericaro/frontmatter v0.0.0-20200210094738-46863cd917e2 gopkg.in/yaml.v2 v2.4.0 // indirect )
36,973
https://github.com/The0x539/wasp/blob/master/libc/winsup/cygwin/include/sys/poll.h
Github Open Source
Open Source
MIT
2,022
wasp
The0x539
C
Code
189
471
/* sys/poll.h This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #ifndef _SYS_POLL_H #define _SYS_POLL_H #include <sys/cdefs.h> #include <sys/types.h> #include <signal.h> __BEGIN_DECL...
50,703
https://github.com/MetaVoidTeam/Insta-Anime-Bot/blob/master/index.js/src/structures/ClientUser.js
Github Open Source
Open Source
MIT
2,022
Insta-Anime-Bot
MetaVoidTeam
JavaScript
Code
191
432
const User = require('./User') /** * Represents the logged in client's Instagram user. * @extends {User} */ class ClientUser extends User { /** * @param {Client} client The instantiating client * @param {object} data The data for the client user. */ constructor (client, data) { super(...
29,515
https://github.com/corbinmcneill/codejam/blob/master/sheep_py/solve.py
Github Open Source
Open Source
Apache-2.0
null
codejam
corbinmcneill
Python
Code
65
210
def solve(case, n): marker = [False]*10 p = n for i in range(101): stringN = str(n) for charN in stringN: marker[int(charN)] = True done = True for j in range(len(marker)): if not marker[j]: done = False break if done: print "Case #%d: %d"%(case,n) return n+=p print "Case #%d...
27,303
https://github.com/heavendarren/dangqun/blob/master/src/main/java/com/thinkgem/jeesite/modules/partyManage/service/SPmPcService.java
Github Open Source
Open Source
Apache-2.0
null
dangqun
heavendarren
Java
Code
143
689
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.partyManage.service; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import ...
29,623
https://github.com/shoulderhu/heroku-cloud/blob/master/app/www/routes.py
Github Open Source
Open Source
MIT
null
heroku-cloud
shoulderhu
Python
Code
75
342
import os import sys from . import www from flask import current_app as app, request, render_template, url_for, json, jsonify @www.route("/") def index(): with app.open_resource("static/json/www-index-card.json") as f: cards = json.load(f) return render_template("index.html", ...
13,836
https://github.com/guilhermejccavalcanti/orientdb/blob/master/core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/binary/OBinaryComparator.java
Github Open Source
Open Source
Apache-2.0
2,019
orientdb
guilhermejccavalcanti
Java
Code
268
550
/* * * * Copyright 2010-2016 OrientDB LTD (http://orientdb.com) * * * * 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...
19,629
https://github.com/jordanbray/chess_uci/blob/master/src/engine/registration.rs
Github Open Source
Open Source
MIT
2,020
chess_uci
jordanbray
Rust
Code
157
573
use error::Error; use std::fmt; use std::str::FromStr; use nom::IResult; use nom::combinator::{map, complete, value}; use nom::bytes::streaming::tag; use nom::branch::alt; use nom::sequence::tuple; use parsers::*; #[derive(Copy, Clone, PartialEq, PartialOrd, Debug)] pub enum Registration { Good, Checking, ...
49,737
https://github.com/ivanbanov/xstyled/blob/master/packages/prop-types/src/index.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
xstyled
ivanbanov
TypeScript
Code
52
119
import { oneOfType, number, string, object, bool } from 'prop-types' export const getSystemPropTypes = (system?: any) => { if (!system) return {} return system.meta.props.reduce( (obj: { [key: string]: any }, prop: string) => { obj[prop] = oneOfType([number, string, object, bool]) return obj },...
7,706
https://github.com/shopgate/ext-cart/blob/master/extension/test/unit/cart/deleteProductsFromCart-test.js
Github Open Source
Open Source
Apache-2.0
null
ext-cart
shopgate
JavaScript
Code
119
387
const assert = require('assert') const deleteProductsFromCart = require('../../../cart/deleteProductsFromCart') const {PRODUCT, COUPON} = require('../../../common/consts') describe('deleteProductsFromCart', () => { const cart = [ { id: 'qwerty123', productId: 'QWERTY123', quantity: 1, typ...
34,494
https://github.com/cafemoca/MinecraftCommandStudio/blob/master/MinecraftCommandStudio/ViewModels/Flips/SettingFlips/EditorViewModel.cs
Github Open Source
Open Source
MIT
null
MinecraftCommandStudio
cafemoca
C#
Code
255
814
using Cafemoca.MinecraftCommandStudio.Settings; using Livet; namespace Cafemoca.MinecraftCommandStudio.ViewModels.Flips.SettingFlips { public class EditorViewModel : ViewModel { public bool AllowScrollBelowDocument { get { return Setting.Current.EditorOptions.AllowScrollBelowDocume...
16,399
https://github.com/uurdev/kodluyoruz-graduation-project/blob/master/project/src/main/java/kodluyoruz/graduation/project/dto/AuthorDto.java
Github Open Source
Open Source
MIT
2,021
kodluyoruz-graduation-project
uurdev
Java
Code
45
151
package kodluyoruz.graduation.project.dto; public class AuthorDto { private String authorName; private String authorSurname; public String getAuthorName() { return authorName; } public void setAuthorName(String authorName) { this.authorName = authorName; } public Strin...
45,737
https://github.com/Spark100k/frpmgr/blob/master/ui/icon.go
Github Open Source
Open Source
Apache-2.0
2,021
frpmgr
Spark100k
Go
Code
209
738
package ui import ( "github.com/koho/frpmgr/pkg/consts" "github.com/lxn/walk" ) var cachedSystemIconsForWidthAndDllIdx = make(map[widthDllIdx]*walk.Icon) func loadSysIcon(dll string, index int32, size int) (icon *walk.Icon) { icon = cachedSystemIconsForWidthAndDllIdx[widthDllIdx{size, index, dll}] if icon != nil...
35,850
https://github.com/arcogelderblom/HC-SR04-Ultrasonic-Sensor/blob/master/hwlib/html/search/defines_0.js
Github Open Source
Open Source
BSL-1.0
null
HC-SR04-Ultrasonic-Sensor
arcogelderblom
JavaScript
Code
11
525
var searchData= [ ['hwlib_5fhere',['HWLIB_HERE',['../hwlib-defines_8hpp.html#a360fe3b1713068844a760bed1aa1384a',1,'hwlib-defines.hpp']]], ['hwlib_5finline',['HWLIB_INLINE',['../hwlib-defines_8hpp.html#a520a8905adc71f1757aea4ce05183585',1,'hwlib-defines.hpp']]], ['hwlib_5fnoinline',['HWLIB_NOINLINE',['../hwlib-def...
28,244
https://github.com/ilonazakharova/java_course/blob/master/sandbox/src/test/java/ru/stqa/pft/sandbox/Lecture2/HomeTask2_2.java
Github Open Source
Open Source
Apache-2.0
null
java_course
ilonazakharova
Java
Code
110
368
package ru.stqa.pft.sandbox.Lecture2; import java.util.Scanner; public class HomeTask2_2 { public static void main(String[] args) { int a, b, c; double function; int r; double square; double length; Scanner conin = new Scanner(System.in); System.out.println("Введите a: "); while (...
42,016
https://github.com/iotbusters/assistant.net/blob/master/src/Messaging.Web.Server/Internal/ErrorHandlingMiddleware.cs
Github Open Source
Open Source
Apache-2.0
null
assistant.net
iotbusters
C#
Code
120
420
using Assistant.Net.Messaging.Exceptions; using Microsoft.AspNetCore.Http; using System; using System.Threading.Tasks; namespace Assistant.Net.Messaging.Internal { /// <summary> /// Global error handling middleware. /// </summary> internal class ExceptionHandlingMiddleware : IMiddleware { ...
32,011
https://github.com/meyerluk/mailmerge/blob/master/src/Http/Middleware/ClientSwitcher.php
Github Open Source
Open Source
MIT
2,020
mailmerge
meyerluk
PHP
Code
80
311
<?php namespace MailMerge\Http\Middleware; use Closure; use Illuminate\Foundation\Application; use Illuminate\Http\Request; use MailMerge\MailClient; class ClientSwitcher { public Application $app; public function __construct(Application $app) { $this->app = $app; } public function hand...
18,519
https://github.com/AlexITC/scala-js-chrome/blob/master/bindings/src/main/scala/chrome/system/cpu/bindings/package.scala
Github Open Source
Open Source
MIT
2,023
scala-js-chrome
AlexITC
Scala
Code
55
151
package chrome.system.cpu package object bindings { type Feature = String object Features { val MMX: Feature = "mmx" val SSE: Feature = "sse" val SSE2: Feature = "sse2" val SSE3: Feature = "sse3" val SSSE3: Feature = "ssse3" val SSE4_1: Feature = "sse4_1" val SSE4_2: Feature = "sse4_...
42,754
https://github.com/varumug/Ed-Fi-ODS/blob/master/Application/EdFi.Ods.Standard/Artifacts/PgSql/Structure/Ods/0020-Tables.sql
Github Open Source
Open Source
Apache-2.0
null
Ed-Fi-ODS
varumug
SQL
Code
20,000
54,848
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. -- Table edfi.AbsenceEventCategoryDescriptor -- CRE...
22,373
https://github.com/looms-polimi/Parallel_manipulators/blob/master/Modelica_models/DeltaRobot/Types/ReducerParameters.mo
Github Open Source
Open Source
BSD-3-Clause
null
Parallel_manipulators
looms-polimi
Modelica
Code
23
77
within DeltaRobot.Types; record ReducerParameters "Parameters of a gear reducer" extends DeltaRobot.Icons.Record; // Icon parameter Real ratio(min=0) = 20 "Transmission ratio (flange_a.phi/flange_b.phi)"; end ReducerParameters;
16,803
https://github.com/henrique15775/Programa-oWeb--Pr-tica-01/blob/master/app/js/model/conta.js
Github Open Source
Open Source
MIT
null
Programa-oWeb--Pr-tica-01
henrique15775
JavaScript
Code
67
201
class Conta { constructor(numero, saldo = 0) { this._numero = numero; this._saldo = saldo; } get numero() { return this._numero; } set numero(numero) { this._numero = numero; } get saldo() { return this._saldo; } debitar(valor) { //apen...
34,854
https://github.com/boisebrigade/cute-pets-boise/blob/master/apikeys.py
Github Open Source
Open Source
MIT
null
cute-pets-boise
boisebrigade
Python
Code
25
161
# All API keys needed by the script to function pet_finder_key = "YOUR_PETFINDER_API_KEY_GOES_HERE" twitter_consumer_key = "YOUR_TIWTTER_CONSUMER_KEY_GOES_HERE" twitter_consumer_secret = "YOUR_TWITTER_CONSUMER_SECRET_GOES_HERE" twitter_access_token_key = "YOUR_TWITTER_ACCESS_TOKEN_KEY_GOES_HERE" twitter_access_token_...
47,632
https://github.com/omunroe-com/nasabingo/blob/master/examples/serial_example.py
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-us-govt-public-domain
2,018
nasabingo
omunroe-com
Python
Code
647
2,298
""" example of regression done using the serial island manager (islands done serially on a single process) """ import random import numpy as np from bingo.AGraph import AGraphManipulator as agm from bingo.AGraph import AGNodes from bingo import AGraphCpp from bingo.FitnessPredictor import FPManipulator as fpm from bin...
26,977
https://github.com/cesantaniello/rick-and-morty-vue/blob/master/src/components/FilterByName.vue
Github Open Source
Open Source
MIT
2,022
rick-and-morty-vue
cesantaniello
Vue
Code
81
229
<template> <div class="search"> <input type="text" placeholder="Search by name" v-model="name" @keyup="filter()"> </div> </template> <script> import { ref } from 'vue' import { useStore } from 'vuex' export default { setup() { const store = useStore() const name = ref('') const filter = () =...
13,026
https://github.com/Aminou/SonataMediaBundle/blob/master/src/Model/MediaInterface.php
Github Open Source
Open Source
MIT
2,022
SonataMediaBundle
Aminou
PHP
Code
412
1,232
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\MediaBundle\Model; u...
758
https://github.com/thierry-martinez/dune/blob/master/src/stdune/console.ml
Github Open Source
Open Source
MIT
2,020
dune
thierry-martinez
OCaml
Code
392
1,014
module Display = struct type t = | Progress | Short | Verbose | Quiet let all = [ ("progress", Progress) ; ("verbose", Verbose) ; ("short", Short) ; ("quiet", Quiet) ] end let reset_terminal () = print_string "\x1bc"; flush stdout module T = struct type t = { display...
33,400
https://github.com/Lexicality/Hanover_Flipdot/blob/master/hanover_flipdot/fonts.py
Github Open Source
Open Source
MIT
null
Hanover_Flipdot
Lexicality
Python
Code
10,200
50,178
unscii = [ [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], [0x17, 0x15, 0x1D, 0x00, 0x7C, 0x10, 0x7C, 0x00], [0x17, 0x15, 0x1D, 0x00, 0x6C, 0x10, 0x6C, 0x00], [0x1F, 0x15, 0x11, 0x00, 0x6C, 0x10, 0x6C, 0x00], [0x1F, 0x15, 0x11, 0x00, 0x04, 0x7C, 0x04, 0x00], [0x1F, 0x15, 0x11, 0x00, 0x3C, 0x64...
40,840
https://github.com/echoghi/calorie-tracker/blob/master/src/app/components/Nutrition/index.tsx
Github Open Source
Open Source
MIT
null
calorie-tracker
echoghi
TypeScript
Code
536
1,864
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import Loading from '../Loading'; import { useWindowSize } from '@echoghi/hooks'; import isEmpty from 'lodash.isempty'; import moment from 'moment'; import Bar ...
49,665
https://github.com/ReyhanPatria/OpenMetadata/blob/master/ingestion/src/airflow_provider_openmetadata/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
OpenMetadata
ReyhanPatria
Python
Code
16
74
import metadata def get_provider_config(): return { "name": "OpenMetadata", "description": "OpenMetadata <https://open-metadata.org/>", "package-name": "openmetadata-ingestion", "version": "0.4.1", }
25,357
https://github.com/jstanden/cerb6/blob/master/features/cerberusweb.core/patches/10.x/10.2.0.php
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
null
cerb6
jstanden
PHP
Code
2,888
12,499
<?php /** @noinspection SqlResolve */ $db = DevblocksPlatform::services()->database(); $queue = DevblocksPlatform::services()->queue(); $logger = DevblocksPlatform::services()->log(); $tables = $db->metaTables(); // =========================================================================== // Add `queue` table if(!i...
47,646
https://github.com/stjordanis/codecs/blob/master/src/uuid.test.ts
Github Open Source
Open Source
MIT
2,019
codecs
stjordanis
TypeScript
Code
73
224
import { runAndCatch } from '@carnesen/run-and-catch'; import { uuid } from './uuid'; import { cast } from './cast'; import { isRight } from 'fp-ts/lib/Either'; const validValue = '00000000-0000-0000-0000-000000000000'; describe(uuid.name, () => { it('validates a uuid', () => { const decoded = uuid.decode(vali...
47,473
https://github.com/sirio3mil/sql-parser/blob/master/app/Utilities/FileName.php
Github Open Source
Open Source
MIT
null
sql-parser
sirio3mil
PHP
Code
166
536
<?php /** * Created by PhpStorm. * User: reynier.delarosa * Date: 16/03/2018 * Time: 14:15 */ namespace App\Utilities; class FileName { protected $filename; protected const ROOT_FILE_FOLDER_NAME = "split"; public function __construct(string $type, string $object_name) { $this->SetFile...
236
https://github.com/japinol7/flask_examples/blob/master/flask_02_ex/app/utils/utils.py
Github Open Source
Open Source
MIT
2,020
flask_examples
japinol7
Python
Code
42
183
import logging logging.basicConfig(format='%(asctime)s %(levelname)s %(name)s: %(message)s') logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) def read_file_as_string(file_name): res = [] try: with open(file_name, "r", encoding='utf-8') as in_file: for line_in in in_file...
45,040
https://github.com/MobileDev418/react_redux_master/blob/master/src/components/common/sidebar.js
Github Open Source
Open Source
MIT
2,019
react_redux_master
MobileDev418
JavaScript
Code
212
989
import React from 'react' const Icon = require('./Icon'); import {Grid, Col, Row} from 'react-bootstrap'; import SidebarControlBtn from './SidebarControlBtn'; class ApplicationSidebar extends React.Component { render() { return ( <div> <Grid fluid> <Row> <Col xs={12}> ...
15,075
https://github.com/netgenlayouts/content-browser/blob/master/bundle/Resources/views/form/form_div_layout.html.twig
Github Open Source
Open Source
MIT
2,021
content-browser
netgenlayouts
Twig
Code
442
1,408
{% trans_default_domain 'ngcb' %} {%- block ngcb_widget -%} <div class="js-input-browse {% if value is empty %}item-empty{% endif %}" data-disabled="{% if form.vars.disabled %}true{% else %}false{% endif %}" {% if start_location is not null %} data-start_location="{{ start_location }}" {% e...
4,536
https://github.com/suver/r4sky/blob/master/custom_components/ready4sky/switch.py
Github Open Source
Open Source
Apache-2.0
null
r4sky
suver
Python
Code
279
1,020
"""Platform for light integration.""" import logging import homeassistant.util.color as color_util from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.components.switch import ( SwitchEntity ) from . import DOMAIN from .kettle_entity import KettleEntity _LOGGER = logging.getLog...
29,772
https://github.com/DaniilStepanov/kotlinWithFuzzer/blob/master/bbfgradle/tmp/results/diffABI/hscemom_FILE.kt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,021
kotlinWithFuzzer
DaniilStepanov
Kotlin
Code
35
126
// Bug happens on JVM , JVM -Xuse-ir // FILE: tmp0.kt @file:JvmMultifileClass() @file:JvmName("wodpa") import kotlin.collections.* import kotlin.sequences.* import kotlin.jvm.* import kotlin.coroutines.* import kotlin.annotation.* import kotlin.test.* import kotlin.time.* @Test() external fun <T, S> gbyyu(a: UInt):...
22,294
https://github.com/romanbrickie/CTRmodel/blob/master/src/main/com/ggstar/serving/mleap/serialization/ModelSerializer.scala
Github Open Source
Open Source
Apache-2.0
2,020
CTRmodel
romanbrickie
Scala
Code
44
235
package com.ggstar.serving.mleap.serialization import ml.combust.bundle.BundleFile import org.apache.spark.ml.PipelineModel import org.apache.spark.ml.bundle.SparkBundleContext import org.apache.spark.ml.mleap.SparkUtil import ml.combust.mleap.spark.SparkSupport._ import org.apache.spark.sql.DataFrame import resource....
48,486
https://github.com/DDiimmkkaass/lets-cook/blob/master/resources/themes/admin/views/weekly_menu/show.blade.php
Github Open Source
Open Source
MIT
null
lets-cook
DDiimmkkaass
PHP
Code
187
826
@extends('layouts.editable') @section('content') <div class="row"> <div class="col-lg-12"> {!! Form::model($model, ['role' => 'form', 'method' => 'put', 'class' => 'form-horizontal weekly-menu-form', 'route' => ['admin.weekly_menu.update', $model->id]]) !!} @include('weekly_menu.p...
4,845
https://github.com/masud-technope/ACER-Replication-Package-ASE2017/blob/master/corpus/class/sling/1447.java
Github Open Source
Open Source
MIT
null
ACER-Replication-Package-ASE2017
masud-technope
Java
Code
402
1,919
/* * 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 ...
13,319
https://github.com/Bernardstanislas/institu-de-la-neo-pensee-francaise/blob/master/src/templates/blog-post.tsx
Github Open Source
Open Source
MIT
null
institu-de-la-neo-pensee-francaise
Bernardstanislas
TypeScript
Code
107
372
import * as React from 'react' import { Disqus, CommentCount } from 'gatsby-plugin-disqus'; import { graphql } from 'gatsby' import Layout from "../components/Layout"; export default ({data: {markdownRemark: post}}) => { const disqusConfig = { identifier: post.id, title: post.frontmatter.title, ...
21,773
https://github.com/tulip-control/omega/blob/master/tests/cover_enum_test.py
Github Open Source
Open Source
BSD-3-Clause
2,021
omega
tulip-control
Python
Code
2,609
7,919
"""Test `omega.symbolic.cover_enum`.""" import itertools import pprint from nose.tools import assert_raises from omega.symbolic import cover as cov from omega.symbolic import cover_enum as cov_enum from omega.symbolic import fol as _fol from omega.symbolic import orthotopes as lat def test_cyclic_core_with_care_set(...
560