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/ColbyTJohnson/TU-RocketLeague/blob/master/src/components/Player/PlayerCard/Playstyle/Playstyle.js
Github Open Source
Open Source
MIT
2,018
TU-RocketLeague
ColbyTJohnson
JavaScript
Code
102
431
import React from 'react'; import { ResponsivePie } from '@nivo/pie'; const playstyle = (props) => ( <ResponsivePie data={[ { "id": "Goals", "label": "Goals", "value": props.goals, "color": "hsl(350, 69%, 38%)" }, ...
10,204
https://github.com/felipefzdz/gradle-heroku-plugin/blob/master/src/main/groovy/com/felipefzdz/gradle/heroku/HerokuPlugin.groovy
Github Open Source
Open Source
Apache-2.0
2,018
gradle-heroku-plugin
felipefzdz
Groovy
Code
138
685
package com.felipefzdz.gradle.heroku import com.felipefzdz.gradle.heroku.tasks.DeployAppTask import com.felipefzdz.gradle.heroku.tasks.DeployBundleTask import com.felipefzdz.gradle.heroku.tasks.VerifyConfigBundleTask import com.felipefzdz.gradle.heroku.tasks.VerifyConfigTask import com.felipefzdz.gradle.heroku.tasks.m...
51,774
https://github.com/ychen-z/label-web-tool/blob/master/src/components/common/u-loading/index.less
Github Open Source
Open Source
MIT
2,022
label-web-tool
ychen-z
Less
Code
37
141
.u-loading { &.u-loading-no-min-height { min-height: 0; } display: flex; flex: 1; flex-direction: column; align-content: center; justify-content: center; min-height: 100px; background: @white; .no-min-height { min-height: 0; } .spin { display: i...
10,913
https://github.com/Meowv/meowv.core/blob/master/Plus.Core/Plus/DependencyInjection/DependencyAttribute.cs
Github Open Source
Open Source
MIT
2,022
meowv.core
Meowv
C#
Code
51
130
using Microsoft.Extensions.DependencyInjection; using System; namespace Plus.DependencyInjection { public class DependencyAttribute : Attribute { public virtual ServiceLifetime? Lifetime { get; set; } public virtual bool TryRegister { get; set; } public virtual bool ReplaceServices {...
3,429
https://github.com/Lostefra/TranslationCoherence/blob/master/Datasets/EuroParl/ontologies/second_test/zh/zh_sentence171.ttl
Github Open Source
Open Source
MIT
null
TranslationCoherence
Lostefra
Turtle
Code
1,174
16,972
<http://www.ontologydesignpatterns.org/ont/fred/domain.owl#for> a <http://www.w3.org/2002/07/owl#ObjectProperty> . <http://www.ontologydesignpatterns.org/ont/fred/domain.owl#offset_103_112_accidents> a <http://www.essepuntato.it/2008/12/earmark#PointerRange> ; <http://www.w3.org/200...
50,129
https://github.com/skylarklxlong/WoodenBox/blob/master/app/src/main/java/online/himakeit/skylark/activity/mob/CookDetailsActivity.java
Github Open Source
Open Source
MIT
2,019
WoodenBox
skylarklxlong
Java
Code
151
781
package online.himakeit.skylark.activity.mob; import android.os.Bundle; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.TextView; ...
3,493
https://github.com/IUST-DMLab/farsbase/blob/master/mapper/access/src/main/java/ir/ac/iust/dml/kg/access/utils/UTF8MySQL5Dialect.kt
Github Open Source
Open Source
Apache-2.0
2,018
farsbase
IUST-DMLab
Kotlin
Code
41
126
/* * Farsi Knowledge Graph Project * Iran University of Science and Technology (Year 2017) * Developed by Majid Asgari. */ package ir.ac.iust.dml.kg.access.utils import org.hibernate.dialect.MySQL5Dialect class UTF8MySQL5Dialect : MySQL5Dialect() { override fun getTableTypeString(): String { return "ENGINE...
36,482
https://github.com/MukundMuralidhar/pi-frontend/blob/master/Pi/Pi/views/labels/PiLabel.swift
Github Open Source
Open Source
MIT
null
pi-frontend
MukundMuralidhar
Swift
Code
85
227
// // PiLabel.swift // Pi // // Created by Gilbert Lo on 4/23/19. // Copyright © 2019 Evidation Health, Inc. All rights reserved. // import EvidationCommonUI /// PiLabel provides an initializer that defaults to using AppFont.body class PiLabel: BaseLabel { required init(appFont: AppFont = .body, attributes: [...
26,635
https://github.com/scottcl88/BenjiAPI/blob/master/Repository/Extensions/VetVisitExtensions.cs
Github Open Source
Open Source
MIT
null
BenjiAPI
scottcl88
C#
Code
66
245
using Models.Shared; using Repository.Models; namespace Repository { public static class VetVisitExtensions { public static VetVisitModel ToVetVisitModel(this VetVisit dbVetVisit) { return new VetVisitModel() { VetVisitId = new VetVisitId() { Value = dbV...
41,208
https://github.com/Neilio3264/Emission-Omission/blob/master/src/components/Header.js
Github Open Source
Open Source
MIT
2,021
Emission-Omission
Neilio3264
JavaScript
Code
40
136
import React from 'react' import Logo from "./Logo.js" import Title from "./Title.js" function Header() { return( <div id="section1" style={{ display: "inline-flex", flexDirection: "row", alignItems: "center", color: "#FFFFFF", marginLeft: "150px"...
17,578
https://github.com/qingpx/chatengine/blob/master/app/service/biz/message/internal/core/message.getHistoryMessagesCount_handler.go
Github Open Source
Open Source
Apache-2.0
2,022
chatengine
qingpx
Go
Code
109
505
/* * Created from 'scheme.tl' by 'mtprotoc' * * Copyright (c) 2021-present, Teamgram Studio (https://teamgram.io). * All rights reserved. * * Author: teamgramio (teamgram.io@gmail.com) */ package core import ( "github.com/teamgram/proto/mtproto" "github.com/teamgram/teamgram-server/app/service/biz/message/...
5,098
https://github.com/microsoft/fhir-server/blob/master/src/Microsoft.Health.Fhir.Core/Features/Operations/QueueType.cs
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,023
fhir-server
microsoft
C#
Code
79
146
// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // -----------------------------------------------------------...
18,912
https://github.com/mby-qlik/Qlik-SupportTools/blob/master/Code/FreyrCollectorCommon/Winform/ControlExtensions.cs
Github Open Source
Open Source
CC0-1.0
2,021
Qlik-SupportTools
mby-qlik
C#
Code
104
338
using System; using System.Drawing; using System.Reflection; using System.Windows.Forms; namespace FreyrCollectorCommon.Winform { public static class ControlExtensions { public static void MakeLabelTransparent(this Form frm, Label label, Control parent) { var pos = frm.PointToScree...
13,278
https://github.com/hiqdev/hipanel-core/blob/master/src/components/ThemeSettingsStorage.php
Github Open Source
Open Source
BSD-3-Clause
2,023
hipanel-core
hiqdev
PHP
Code
180
644
<?php /** * HiPanel core package * * @link https://hipanel.com/ * @package hipanel-core * @license BSD-3-Clause * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/) */ namespace hipanel\components; use hiqdev\thememanager\storage\SettingsStorageInterface; use Yii; use yii\base\Component; ...
25,240
https://github.com/Mirzamurod/PcStore/blob/master/frontend/src/Components/AccountInfo/AccountInfo.js
Github Open Source
Open Source
Apache-2.0
null
PcStore
Mirzamurod
JavaScript
Code
1,004
3,539
import { memo, useEffect, useState } from 'react' import { useDispatch, useSelector } from 'react-redux' import Title from '../Title' import { Box, Button, FormControl, FormHelperText, Grid, IconButton, Input, InputAdornment, InputLabel, TextField, } from '@mui/material' import V...
27,256
https://github.com/WVAviator/readme-generator/blob/master/src/components/primitives/Button/Button.tsx
Github Open Source
Open Source
MIT
null
readme-generator
WVAviator
TypeScript
Code
56
164
import * as React from 'react' import { ButtonStyleProps, buttonStyles } from './styles' export interface IButtonProps extends ButtonStyleProps { children: React.ReactNode } export const Button = ({ scheme, shape, size, loading, outline, wide, className, children, ...rest }: IButtonProps) => ( <...
30,543
https://github.com/hungpham2511/toppra/blob/master/cpp/bindings/constraints.cpp
Github Open Source
Open Source
MIT
2,023
toppra
hungpham2511
C++
Code
331
1,649
#include <pybind11/eigen.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <pybind11/pytypes.h> #include <pybind11/stl.h> #include <iostream> #include <string> #include <toppra/geometric_path.hpp> #include <toppra/constraint.hpp> #include <toppra/constraint/cartesian_velocity_norm.hpp> #include <t...
24,251
https://github.com/fairyhawk/ld/blob/master/WebRoot/js/vocabtest.de.js
Github Open Source
Open Source
MIT
2,013
ld
fairyhawk
JavaScript
Code
298
1,327
function add_bkground_css(base) { for ( var count = 0; count < $("#vocabulary_test ul .row").length; count++) { var d = "#vocabulary_test ul .row:eq(" + count + ")"; var label = "#vocabulary_test ul .row label:eq(" + count + ")"; $(label).addClass('checkbox'); if (count % base >= 0 && count % base < (bas...
38,718
https://github.com/kevin1014/f4/blob/master/lib/ros_lib/gazebo_msgs/GetLinkProperties.h
Github Open Source
Open Source
BSD-3-Clause
2,022
f4
kevin1014
C
Code
1,402
5,001
#ifndef _ROS_SERVICE_GetLinkProperties_h #define _ROS_SERVICE_GetLinkProperties_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "geometry_msgs/Pose.h" namespace gazebo_msgs { static const char GETLINKPROPERTIES[] = "gazebo_msgs/GetLinkProperties"; class GetLinkProperties...
45,476
https://github.com/isaiassf2011/SistemaRestaurante/blob/master/AppRestaurante/web/rodape.jsp
Github Open Source
Open Source
Apache-2.0
null
SistemaRestaurante
isaiassf2011
null
Spoken
96
421
<%-- Document : rodape Created on : 04/11/2015, 20:55:09 Author : isaias_sergio --%> <footer> <div class="footer" id="footer"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul cl...
49,128
https://github.com/frodjango/Pharo-6.1-stable-/blob/master/github-cache/ThierryGoubier/AltBrowser/pharo6/ThierryGoubier-AltBrowser-5f4e358/Alt-Browser.package/RBParseErrorNode.extension/instance/isGlobal.st
Github Open Source
Open Source
MIT
2,018
Pharo-6.1-stable-
frodjango
null
Spoken
4
12
*alt-browser isGlobal ^ false
25,601
https://github.com/JonahhGohh/tp/blob/master/src/test/java/seedu/address/model/fee/MonthlyFeeTest.java
Github Open Source
Open Source
MIT
2,021
tp
JonahhGohh
Java
Code
148
574
package seedu.address.model.fee; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.testutil.Assert.assertThrows; import org.junit.jupiter.api.Test; public class MonthlyFeeTest { private double validMonthlyFee = 30.2...
17,196
https://github.com/nykula/acmd/blob/master/bin/acme-commander.sh
Github Open Source
Open Source
0BSD, LicenseRef-scancode-public-domain
2,020
acmd
nykula
Shell
Code
8
35
#!/bin/bash cd "$(dirname "$(realpath "$0")")"/.. NODE_ENV=production gjs bin/start.js
30,799
https://github.com/wtsi-hgi/thrifty-builder/blob/master/setup.py
Github Open Source
Open Source
MIT
2,019
thrifty-builder
wtsi-hgi
Python
Code
53
267
from setuptools import setup, find_packages from thriftybuilder.meta import VERSION, DESCRIPTION, PACKAGE_NAME, EXECUTABLE_NAME try: from pypandoc import convert def read_markdown(file: str) -> str: return convert(file, "rst") except ImportError: def read_markdown(file: str) -> str: return...
25,895
https://github.com/dued/dued/blob/master/pruebas/_soporte/arbol/fabric/python.py
Github Open Source
Open Source
BSD-2-Clause
null
dued
dued
Python
Code
40
130
"Artefactos de distribución de PyPI /etc." from dued import artefacto, Coleccion @artefacto(nombre="all", default=True) def all_(c): "Fabrica todos los paquetes de Python." pass @artefacto def sdist(c): "Construye tar.gz de estilo clásico." pass @artefacto def wheel(c): "Construye una distb. ...
30,373
https://github.com/poetries/xyutils/blob/master/dist/isMobile.js
Github Open Source
Open Source
MIT
2,018
xyutils
poetries
JavaScript
Code
61
235
/** * * @desc 判断是否移动设备 */ function isMobile(){ if (typeof this._isMobile === 'boolean'){ return this._isMobile; } var screenWidth = this.getScreenWidth(); var fixViewPortsExperiment = rendererModel.runningExperiments.FixViewport ||rendererModel.runningExperiments.fixviewport; var fixView...
37,990
https://github.com/deweller/switchaudio-osx/blob/master/audio_switch.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
switchaudio-osx
deweller
C
Code
351
920
/* * audio_switch.h * AudioSwitcher * Copyright (c) 2008 Devon Weller <wellerco@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
43,525
https://github.com/vdelacou/iblis-react-undraw/blob/master/src/components/Calendar.tsx
Github Open Source
Open Source
Apache-2.0
2,020
iblis-react-undraw
vdelacou
TypeScript
Code
737
4,412
import React, { SVGProps } from 'react'; import { IIblisReactUndrawProps } from '../iblis_react_undraw_props'; export const SvgCalendar = (props: IIblisReactUndrawProps & SVGProps<SVGSVGElement>) => ( <svg data-name="Layer 1" viewBox="0 0 835.61 660.05" className={props.class} width="100%" height=...
21,554
https://github.com/StanfordLegion/legion-manual/blob/master/Examples/Partitions/sets/CMakeLists.txt
Github Open Source
Open Source
Apache-2.0
2,023
legion-manual
StanfordLegion
CMake
Code
8
43
add_executable(sets sets.cc) target_link_libraries(sets Legion::Legion) add_test(NAME sets COMMAND $<TARGET_FILE:sets>)
32,696
https://github.com/MinhPD92/Weather-Forecast/blob/master/app/domain/src/test/java/com/nab/domain/usecases/ClearWeatherForecastCacheUseCaseTest.kt
Github Open Source
Open Source
MIT
null
Weather-Forecast
MinhPD92
Kotlin
Code
62
309
package com.nab.domain.usecases import com.nab.domain.repository.LocalForecastRepository import kotlinx.coroutines.runBlocking import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.mockito.Mock import org.mockito.Mockito.verify import org.mockito.MockitoAnnotations import org.mockito...
29,858
https://github.com/jeremysells/address-book-sample-application/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,018
address-book-sample-application
jeremysells
Ignore List
Code
30
94
# Ignore editor files /.idea /nbproject # Ignore PHP Dependencies /vendor # Ignore Javascript/CSS dependencies /public_html/node_modules # Ignore Dynamic folder /dynamic # Ignore QA Files /coverage.xml /build/logs /build/pdepend /build/phpmetrics /coverage.xml
17,706
https://github.com/johngian/mediawiki-extensions-Echo/blob/master/modules/styles/mw.echo.ui.CrossWikiUnreadFilterWidget.less
Github Open Source
Open Source
MIT
2,022
mediawiki-extensions-Echo
johngian
Less
Code
29
135
@import '../echo.variables.less'; .mw-echo-ui-crossWikiUnreadFilterWidget { border: 1px solid @border-color; padding: @specialpage-separation-unit; width: @specialpage-sidebar-width; &-title { display: block; font-size: 1.3em; font-weight: bold; } &-subtitle { display: block; color: @grey-light; } }...
24,708
https://github.com/sdkabuser/DEADCELL-CSGO/blob/master/oshgui/Drawing/RenderSurface.hpp
Github Open Source
Open Source
MIT
2,022
DEADCELL-CSGO
sdkabuser
C++
Code
101
330
/* * OldSchoolHack GUI * * by KN4CK3R https://www.oldschoolhack.me/ * * See license in OSHGui.hpp */ #ifndef OSHGUI_DRAWING_RENDERSURFACE_HPP #define OSHGUI_DRAWING_RENDERSURFACE_HPP #include "../Exports.hpp" #include "RenderQueue.hpp" #include "Point.hpp" #include <vector> namespace OSHGui { namespace Drawin...
17,140
https://github.com/drwff/pp_2020_autumn_informatics/blob/master/modules/task_2/kolesin_a_bubblesort/bubblesort.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
pp_2020_autumn_informatics
drwff
C++
Code
578
1,812
// Copyright 2020 Kolesin Andrey #include <mpi.h> #include <random> #include <ctime> #include <algorithm> #include <iostream> #include <vector> #include "../../../modules/task_2/kolesin_a_bubblesort/bubblesort.h" std::vector<int> getRandomArray(int size) { std::mt19937 gen; gen.seed(static_cast<unsigned int>(t...
10,062
https://github.com/pacificblue/Coursera-ICL-TensorFlow-2-for-Deep-Learning-Specialization/blob/master/ICL_Probabilistic_Deep_Learning_with_TensorFlow/Week 1 Naive Bayes classifier.ipynb
Github Open Source
Open Source
BSD-2-Clause
2,021
Coursera-ICL-TensorFlow-2-for-Deep-Learning-Specialization
pacificblue
Jupyter Notebook
Code
4,360
13,444
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "kernelspec": { "display_name": "feedforward", "language": "python", "name": "feedforward" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", ...
21,161
https://github.com/agussetyawan064/Auction-System-With-Laravel-Framework/blob/master/src/app/Http/Controllers/UploadLelang.php
Github Open Source
Open Source
MIT
2,017
Auction-System-With-Laravel-Framework
agussetyawan064
PHP
Code
373
1,640
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\CrudLelang; use App\Http\Requests; use App\Http\Requests\Lelang\StoreRequest; // use App\Http\Requests\Crud\UpdateRequest; use Validator, Response; use Illuminate\Support\Facades\Input; class UploadLelang extends Controller { <<<<<<< HEAD ...
34,991
https://github.com/jan25/skripts/blob/master/frontend/src/App.vue
Github Open Source
Open Source
MIT
null
skripts
jan25
Vue
Code
184
591
<template> <div id="app" class="d-flex justify-content-center"> <div id="app-container" class="flex-column align-items-center"> <Header /> <Editor :id="id" v-on:run="handleRun" v-on:save="handleSave" /> <Info :status="status" v-bind:error="error" /> <Output :output="output" /> </div> ...
1,722
https://github.com/cybrown/lys/blob/master/test/fixtures/compiler/mutability.lys.optimized.wast
Github Open Source
Open Source
Apache-2.0
2,019
lys
cybrown
null
Spoken
66
187
(module (type $0 (func (param i32) (result i32))) (type $1 (func (result i32))) (memory $0 1) (export "memory" (memory $0)) (export "main" (func $0)) (export "main2" (func $1)) (func $0 (; 0 ;) (type $1) (result i32) (i32.const 2) ) (func $1 (; 1 ;) (type $0) (param $0 i32) (result i32) (select (i32.con...
44,333
https://github.com/paws-r/paws/blob/master/cran/paws.machine.learning/man/transcribeservice_create_language_model.Rd
Github Open Source
Open Source
Apache-2.0
2,023
paws
paws-r
R
Code
427
831
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transcribeservice_operations.R \name{transcribeservice_create_language_model} \alias{transcribeservice_create_language_model} \title{Creates a new custom language model} \usage{ transcribeservice_create_language_model( LanguageCode, BaseM...
44,836
https://github.com/brucehu123/Bing.NetCore/blob/master/tests/Bing.Biz.Tests.Intergration/OAuthLogin/Configs/TestMicrosoftAuthorizationConfigProvider.cs
Github Open Source
Open Source
MIT
2,020
Bing.NetCore
brucehu123
C#
Code
53
216
using System.Threading.Tasks; using Bing.Biz.OAuthLogin.Microsoft.Configs; namespace Bing.Biz.Tests.Intergration.OAuthLogin.Configs { /// <summary> /// Microsoft 测试授权配置提供程序 /// </summary> public class TestMicrosoftAuthorizationConfigProvider : IMicrosoftAuthorizationConfigProvider { /// <s...
783
https://github.com/radoshordos/shopsymfony/blob/master/app/Resources/less/mystyle.less
Github Open Source
Open Source
BSD-3-Clause, MIT
2,014
shopsymfony
radoshordos
Less
Code
4
13
.hovno { color:#ff0000 }
22,987
https://github.com/simonmittag/cryptoutils/blob/master/src/main/java/com/simonmittag/cryptoutils/ByteArrayHelper.java
Github Open Source
Open Source
Apache-2.0
2,020
cryptoutils
simonmittag
Java
Code
237
537
/* * ByteHelper */ package com.simonmittag.cryptoutils; import org.apache.commons.codec.binary.Base64; import java.io.UnsupportedEncodingException; import java.util.Arrays; import java.util.Calendar; /** * Turn a fixed length String into a byte[] to use as symmetric key or init vector. * Fills Strings that are t...
31,900
https://github.com/RS-Mind/rscards/blob/master/RSCards/Utilities/DateTools.cs
Github Open Source
Open Source
MIT
null
rscards
RS-Mind
C#
Code
239
759
using System; using UnityEngine; namespace RSCards.Utilities // This is a direct copy from DHC { // Token: 0x02000006 RID: 6 internal static class DateTools { // Token: 0x06000016 RID: 22 RVA: 0x00002950 File Offset: 0x00000B50 public static bool DayOf(DateTime holiday) { ...
19,805
https://github.com/dromer/ChowMatrix/blob/master/src/gui/DetailsView/NodeDetailsGUI.h
Github Open Source
Open Source
BSD-3-Clause
null
ChowMatrix
dromer
C
Code
105
486
#pragma once #include "NodeDetailsViewport.h" class NodeDetailsGUI : public Component { public: NodeDetailsGUI (ChowMatrix& chowMatrix); void resized() override; enum ColourIDs { nodeColour, nodeSelectedColour, scrollThumbColour, scrollTrackColour, }; private: ...
956
https://github.com/Ogutu-Brian/questioners/blob/master/api/meetups/models.py
Github Open Source
Open Source
MIT
2,019
questioners
Ogutu-Brian
Python
Code
280
1,057
import uuid import datetime from django.db import models from users.models import User from typing import List, Dict from django.db.models.functions import Lower """ Models for the meetups """ class Tag(models.Model): """ Database Model for meetup tags """ id = models.UUIDField(primary_key=True, defau...
48,435
https://github.com/nfroidure/whook/blob/master/packages/whook-example/src/config/development/config.ts
Github Open Source
Open Source
MIT
2,022
whook
nfroidure
TypeScript
Code
102
262
import COMMON_CONFIG from '../common/config'; import type { WhookConfigs } from '@whook/whook'; /* Architecture Note #2.3: Overriding Finally the configuration file for a given environnment may reuse or override the custom configuration file like here for the development configuration. */ const CONFIG: WhookConfigs...
50,120
https://github.com/robertleeplummerjr/ssrl/blob/master/cli.js
Github Open Source
Open Source
MIT
null
ssrl
robertleeplummerjr
JavaScript
Code
12
57
const ssrl = require('./index'); const scripture = process.argv[2].replace(/[\n\t\r]/g, ''); console.log(JSON.stringify(ssrl.parse(scripture), null, 2));
7,338
https://github.com/slpcat/docker-images/blob/master/kafka/kafka-manager/centos7-kafka-manager/plugins.sbt
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer, MIT, PSF-2.0, LicenseRef-scancode-protobuf, GPL-2.0-or-later, LicenseRef-scancode-unknown-license-reference, BSL-1.0, Apache-2.0, BSD-2-Clause
2,023
docker-images
slpcat
Scala
Code
117
512
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ // Comment to get more information during initialization logLevel := Level.Info resolvers += Resolver.url( "bintray-sbt-plugin-releases", url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"...
13,337
https://github.com/TrendingTechnology/cloudrunner-go/blob/master/cloudconfig/yaml.go
Github Open Source
Open Source
MIT
2,021
cloudrunner-go
TrendingTechnology
Go
Code
164
470
package cloudconfig import ( "bytes" "fmt" "os" "gopkg.in/yaml.v3" ) func setEnvFromYAMLServiceSpecificationFile(name string) (err error) { defer func() { if err != nil { err = fmt.Errorf("set env from YAML service specification file %s: %w", name, err) } }() var config struct { Metadata struct { ...
25,614
https://github.com/metasucks/simple-metamask-react-dapp-starter/blob/master/src/App.js
Github Open Source
Open Source
MIT
2,021
simple-metamask-react-dapp-starter
metasucks
JavaScript
Code
325
889
import './App.css'; import { ethers } from "ethers"; import React, { useEffect, useState } from "react"; //import contract from './contractAbi/TODO.json'; const CONTRACT_ADDRESS = process.env.REACT_APP_CONTRACT_ADDRESS; function App() { const [currentAccount, setCurrentAccount] = useState(""); const checkIfWal...
34,075
https://github.com/hpi-swa-teaching/WebCrawler/blob/master/packages/BaselineOfWebCrawler.package/monticello.meta/categories.st
Github Open Source
Open Source
MIT
2,020
WebCrawler
hpi-swa-teaching
null
Spoken
3
16
SystemOrganization addCategory: #BaselineOfWebCrawler!
28,472
https://github.com/nilamjadhav/TypeScript/blob/master/tests/cases/fourslash/findAllRefsForObjectSpread.ts
Github Open Source
Open Source
Apache-2.0
2,022
TypeScript
nilamjadhav
TypeScript
Code
122
333
/// <reference path='fourslash.ts'/> ////interface A1 { readonly [|{| "isDefinition": true |}a|]: string }; ////interface A2 { [|{| "isDefinition": true |}a|]?: number }; ////let a1: A1; ////let a2: A2; ////let a12 = { ...a1, ...a2 }; ////a12.[|a|]; ////a1.[|a|]; const ranges = test.ranges(); const [r0, r1, r2, r3] = ...
15,546
https://github.com/giahuydo1379/ebuild/blob/master/app/Http/Controllers/ServiceUnitController.php
Github Open Source
Open Source
MIT
2,018
ebuild
giahuydo1379
PHP
Code
1,528
5,727
<?php /** * Created by PhpStorm. * User: phoenix.phung * Date: 2/7/2018 * Time: 10:17 AM */ namespace App\Http\Controllers; use App\Models\Brands; use App\Models\Features; use App\Models\FeaturesValues; use App\Models\ProductsCategories; use Doctrine\Common\Annotations\Annotation\Required; use Illuminate\Http\Req...
4,217
https://github.com/mooce/webgl-normal-mapping/blob/master/src/components/error.tsx
Github Open Source
Open Source
MIT
null
webgl-normal-mapping
mooce
TypeScript
Code
24
89
import * as React from "react"; import "../scss/error.scss"; export default (props: { error: Error }) => ( <div className="error"> <p>ERROR</p> <p>{props.error.name}</p> <p>{props.error.message}</p> </div> );
34,615
https://github.com/AhmedTohamy01/Egyptians-Abroad-Typescript-Frontend/blob/master/custom-routes/PrivateRoute.tsx
Github Open Source
Open Source
MIT
null
Egyptians-Abroad-Typescript-Frontend
AhmedTohamy01
TypeScript
Code
60
170
import React, { useState, useEffect, ReactNode } from 'react' import router from 'next/router' interface PropsType { children: ReactNode } /*---> Component <---*/ export default function PrivateRoute({ children }: PropsType) { const [userLoggedIn, setUserLoggedIn] = useState(false) useEffect(() => { const ...
3,419
https://github.com/zhusongm/AdaptiveCards/blob/master/source/ios/AdaptiveCards/AdaptiveCards/AdaptiveCards/ACRIBaseActionElementRenderer.h
Github Open Source
Open Source
MIT
null
AdaptiveCards
zhusongm
C
Code
45
210
// // ACRIBaseActionElementRenderer // ACRIBaseActionElementRenderer.h // // Copyright © 2017 Microsoft. All rights reserved. // #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import "HostConfig.h" #import "BaseActionElement.h" #import "ACRIContentHoldingView.h" using namespace AdaptiveCards; @protoco...
12,739
https://github.com/spatzewind/JKriging/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,023
JKriging
spatzewind
Ignore List
Code
8
40
/.gradle/ /bin/ /build/ .dbg .out .ps /copy_to_processing.sh /hs_err_*
46,955
https://github.com/twosigma/beakerx_plot/blob/master/beakerx_widgets/js/src/extension/codeEditor.ts
Github Open Source
Open Source
Apache-2.0
2,020
beakerx_plot
twosigma
TypeScript
Code
350
1,185
/* * Copyright 2018 TWO SIGMA OPEN SOURCE, LLC * * 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 appl...
12,268
https://github.com/openhive-network/hive/blob/master/libraries/chain/util/operation_extractor.cpp
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, MIT
2,023
hive
openhive-network
C++
Code
94
461
#include <hive/chain/util/operation_extractor.hpp> #include <hive/chain/util/type_extractor_processor.hpp> #include <fc/reflect/typename.hpp> #include <boost/type_index.hpp> namespace type_extractor { struct typename_gatherer { operation_extractor::operation_ids_container_t& operations_ids; operation...
49,181
https://github.com/algolia/faux-jax/blob/master/test/browser/XMLHttpRequest/open.js
Github Open Source
Open Source
MIT
2,019
faux-jax
algolia
JavaScript
Code
260
984
var bind = require('lodash-compat/function/bind'); var forEach = require('lodash-compat/collection/forEach'); var test = require('tape'); var XMLHttpRequest = require('../../../lib/XMLHttpRequest/'); test('xhr.open() throws when method not a string', function(t) { var xhr = new XMLHttpRequest(); t.throws(bind(xhr...
12,900
https://github.com/plentymarkets/plenty-manual-docs/blob/master/docs/en-gb/modules/online-store/pages/asort.adoc
Github Open Source
Open Source
MIT
null
plenty-manual-docs
plentymarkets
AsciiDoc
Code
50
135
= asort :lang: en // include::{includedir}/_header.adoc[] :keywords: asort :position: 10005 // auto generated content Thu, 06 Jul 2017 00:57:28 +0200 == Short description Sorts an array while maintaining the index association. == Description of this function [source,plenty] ---- asort( array $_array ) : ---- =...
24,766
https://github.com/Sohn123/SVGMorph/blob/master/packages/Tests-SVG-Morphic.package/SVGMorphTests.class/instance/EllipseBlackStrokeMorph.st
Github Open Source
Open Source
MIT
2,020
SVGMorph
Sohn123
null
Spoken
16
91
SVGTestMorphs EllipseBlackStrokeMorph ^'<svg width="200" height="250" version="1.1" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="25" cy="75" rx="10" ry="5" stroke="black" fill="transparent" stroke-width="5"/> </svg>'
7,607
https://github.com/SabinT/lygia/blob/master/color/space/rgb2lms.glsl
Github Open Source
Open Source
BSD-3-Clause, MIT
2,021
lygia
SabinT
GLSL
Code
265
507
/* author: Patricio Gonzalez Vivo description: convert rgb to LMS. LMS (long, medium, short), is a color space which represents the response of the three types of cones of the human eye, named for their responsivity (sensitivity) peaks at long, medium, and short wavelengths. https://en.wikipedia.org/wiki/LMS_color_sp...
11,446
https://github.com/cedmail/moonstone/blob/master/src/icons/HandleDrag.tsx
Github Open Source
Open Source
MIT
null
moonstone
cedmail
TypeScript
Code
122
569
import * as React from 'react'; type TIconSize = 'small' | 'default' | 'big'; interface IIconProps extends React.SVGProps<SVGSVGElement> { size?: TIconSize; className?: string; } const SvgHandleDrag = ({ size = 'default', className, ...otherProps }: IIconProps) => { const props = Object.assign( {}, ...
10,156
https://github.com/HackYourFutureBelgium/class-6/blob/master/views/student-thumbnail.js
Github Open Source
Open Source
CC-BY-4.0
2,020
class-6
HackYourFutureBelgium
JavaScript
Code
60
228
function renderStudentThumbnail(student) { const studentImg = document.createElement('img'); studentImg.alt = student.name + ' - ' + student.userName; studentImg.style = 'height:100px;width:100px;'; fetch('https://api.github.com/users/' + student.userName) .then(resp => resp.json()) .then(user => user...
17,181
https://github.com/muzammal456/signalwire/blob/master/resources/views/layouts/app.blade.php
Github Open Source
Open Source
MIT
null
signalwire
muzammal456
PHP
Code
644
2,298
<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</tit...
5,425
https://github.com/WildflowerSchools/wf-airtable-api/blob/master/app/router_ssj_typeforms.py
Github Open Source
Open Source
MIT
null
wf-airtable-api
WildflowerSchools
Python
Code
77
431
from fastapi import APIRouter, Depends, Request from . import auth from .models import ssj_typeform_start_a_school as ssj_typeform_start_a_school_models from .utils.utils import get_airtable_client OPENAPI_TAG_METADATA = { "name": "SSJ Typeforms", "description": "SSJ Typeform data in Airtable (mostly for stor...
22,534
https://github.com/YujinRobotJaehaKim/yujin_tools/blob/master/src/yujin_tools/init_build.py
Github Open Source
Open Source
BSD-3-Clause
2,019
yujin_tools
YujinRobotJaehaKim
Python
Code
1,733
6,559
############################################################################## # Imports ############################################################################## import os.path import stat # file permissions import argparse from argparse import RawTextHelpFormatter import shutil ##############################...
33,753
https://github.com/avdgrinten/bootstrap-managarm/blob/master/patches/python/0001-Added-managarm-target.patch
Github Open Source
Open Source
MIT
2,021
bootstrap-managarm
avdgrinten
null
Spoken
247
996
From db895160638796ba56dc0ba2f7f4469eaf4e3cd0 Mon Sep 17 00:00:00 2001 From: Dennisbonke <admin@dennisbonke.com> Date: Fri, 1 May 2020 16:04:04 +0200 Subject: [PATCH] Added managarm target Signed-off-by: Dennisbonke <admin@dennisbonke.com> --- config.sub | 2 +- configure.ac | 15 ++++++++++++++- 2 files changed, ...
25,704
https://github.com/ZaireWilson20/Discount-Legends/blob/master/Assets/Pack/Challonge/Internal/Shared/ChallongeInternalProperties.cs
Github Open Source
Open Source
MIT
null
Discount-Legends
ZaireWilson20
C#
Code
376
844
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Challonge.Internal.Properties { public static class ChallongeInternalProperties { // Base public const string Authorization = "Authorization"; public const stri...
26,665
https://github.com/HANXU2018/erupt-example/blob/master/src/main/java/com/example/demo/model/TestErupt.java
Github Open Source
Open Source
MIT
null
erupt-example
HANXU2018
Java
Code
153
560
package com.example.demo.model; import xyz.erupt.annotation.Erupt; import xyz.erupt.annotation.EruptField; import xyz.erupt.annotation.sub_erupt.RowOperation; import xyz.erupt.annotation.sub_erupt.Tpl; import xyz.erupt.annotation.sub_field.Edit; import xyz.erupt.annotation.sub_field.View; import xyz.erupt.jpa.model.Ba...
28,740
https://github.com/denvned/webpack-typescript/blob/master/src/index.ts
Github Open Source
Open Source
MIT
2,019
webpack-typescript
denvned
TypeScript
Code
13
37
import loadTypeScript from './loadTypeScript'; module.exports = function (content: string) { loadTypeScript(this, content); };
53,109
https://github.com/lan21/catalog/blob/master/catalog-rdbms/src/test/java/com/store/catalog/dao/CategoryDaoTest.java
Github Open Source
Open Source
Apache-2.0
null
catalog
lan21
Java
Code
205
809
package com.store.catalog.dao; import com.store.catalog.utils.ConstantUtils; import static com.store.catalog.utils.ConstantUtils.*; import com.store.catalog.model.Category; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import jav...
28,715
https://github.com/surgtechlab/MagSense/blob/master/Libraries/SdFs-master/doc/html/search/defines_a.js
Github Open Source
Open Source
MIT
2,020
MagSense
surgtechlab
JavaScript
Code
5
87
var searchData= [ ['wdt_5fyield_5ftime_5fmicros',['WDT_YIELD_TIME_MICROS',['../_fs_config_8h.html#a4e8a928d86c50c91c0bfc9a442373e14',1,'FsConfig.h']]] ];
39,304
https://github.com/aretoodeetoo/FSW16-Bingo/blob/master/less/navigation.less
Github Open Source
Open Source
MIT
2,018
FSW16-Bingo
aretoodeetoo
Less
Code
272
962
.main-navigation { width: 100%; height: 80px; position: fixed; z-index: 5; background-color: @nav-bg; @media @tablet { height: 90px; } @media @mobile { height: 160px; } .nav-container { height: 100%; display: flex; align-items: center; max-width: 1440px; width: 100%; ...
8,003
https://github.com/dotnetcore/sharding-core/blob/master/src/ShardingCore/Sharding/MergeEngines/Executors/CircuitBreakers/NoTripCircuitBreaker.cs
Github Open Source
Open Source
Apache-2.0
2,022
sharding-core
dotnetcore
C#
Code
36
158
using System.Collections.Generic; namespace ShardingCore.Sharding.MergeEngines.Executors.CircuitBreakers { internal class NoTripCircuitBreaker:AbstractCircuitBreaker { public NoTripCircuitBreaker(StreamMergeContext streamMergeContext) : base(streamMergeContext) { } protected o...
4,886
https://github.com/ChiTimesChi/synapse-sol-lib/blob/master/hardhat.config.ts
Github Open Source
Open Source
MIT
null
synapse-sol-lib
ChiTimesChi
TypeScript
Code
126
472
import path from "path"; import * as dotenv from "dotenv"; import { HardhatUserConfig } from "hardhat/config"; import "@nomiclabs/hardhat-etherscan"; import "@nomiclabs/hardhat-waffle"; import "hardhat-gas-reporter"; import "solidity-coverage"; dotenv.config(); const BASE_PATH: string = "./", CONTRACTS_PATH:...
30,272
https://github.com/WebbROI/gatsby-starter-webbroi-tailwind/blob/master/src/navigation/MobileNav.js
Github Open Source
Open Source
MIT
null
gatsby-starter-webbroi-tailwind
WebbROI
JavaScript
Code
228
802
import React from "react" import Popup from "reactjs-popup" import styled from 'styled-components' import MobileMenuList from './MobileMenuList' const BurgerMenu = styled.div` display: inline-block; cursor: pointer; position: fixed; right: 0.9em; top: 0.8em; z-index: 9999; background: #fff; padding: 10...
45,287
https://github.com/42wim/ulog2queue/blob/master/src/github.com/42wim/ulog2queue/ulog2file/backup.go
Github Open Source
Open Source
MIT
2,021
ulog2queue
42wim
Go
Code
132
540
package main import ( "io/ioutil" "strconv" "time" ) type Backup interface { BulkAdd(line *[]byte) Flush() error Size() int64 Close() Restore() } func doBackupTask(ctx *Context, name string) { log.Debug("start backup: ", name) filename := ctx.cfg.Backend[name].Queue directory := ctx.cfg.Backend[name].URI[...
20,562
https://github.com/hernanmd/pharo/blob/master/src/NautilusRefactoring.package/ChangesBrowser.class/instance/setFocus.st
Github Open Source
Open Source
MIT
2,019
pharo
hernanmd
null
Spoken
9
33
initialization setFocus self focusOrder add: changesTree; add: textArea; yourself
13,143
https://github.com/LizzieZam/fotoshare/blob/master/storage/framework/views/7ee699fc104419218e0f337ed756d7429caeda1c.php
Github Open Source
Open Source
MIT
2,019
fotoshare
LizzieZam
PHP
Code
87
490
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>"> <link rel="icon" href="favicon.ico"> <title><?php echo $__env->yieldContent('title'); ?>PHOTOS</title> <!-- Bootstrap core CSS --> <link r...
45,638
https://github.com/nityansuman/coding-python/blob/master/hackerrank/time_delta.py
Github Open Source
Open Source
Apache-2.0
null
coding-python
nityansuman
Python
Code
77
213
# Import packages from datetime import datetime def time_delta(t1, t2): # Compute absolute difference in seconds return int(abs((t1 - t2).total_seconds())) if __name__ == "__main__": # Read test cases from stdin t = int(input().strip()) for i in range(t): # Read two timestamps with time zone from stdin t1...
23,895
https://github.com/henrypfhu/MoonGene/blob/master/src/gene/src/main/scala/com/moongene/services/core/CoreInbox.scala
Github Open Source
Open Source
MIT
2,015
MoonGene
henrypfhu
Scala
Code
218
616
//Copyright 2014, Alex Khilko. //This file is part of MoonGene which is released under MIT. //See file LICENSE.TXT or go to www.alexkhilko.com for full license details. package com.moongene.services.core import akka.actor.{Props, RootActorPath, ActorLogging, Actor} import akka.cluster.{MemberStatus, Cluster, Member}...
5,127
https://github.com/aleandros/tdiff/blob/master/src/presentation/results_presenter.cr
Github Open Source
Open Source
MIT
2,021
tdiff
aleandros
Crystal
Code
32
148
require "colorize" require "../core/result" require "./result_presenter" module Tdiff::Presentation class ResultsPresenter getter results : Array(Tdiff::Core::Result) def initialize(@results) Colorize.on_tty_only! end def to_s(io) results[..-2].each do |result| ResultPresenter.n...
11,139
https://github.com/canokaue/abundant-music/blob/master/js/composer/simplemodulegeneratorphasegroup.js
Github Open Source
Open Source
MIT
2,022
abundant-music
canokaue
JavaScript
Code
787
4,507
const SimpleModuleGeneratorPhraseGroupType = { SINGLE_COMPLETE: 0, TONIC_PROLONG_PLUS_COMPLETE: 1, DECEPTIVE_PLUS_COMPLETE: 2, COMPLETE_PLUS_COMPLETE: 3, ANTECEDENT_CONSEQUENT: 4, TONIC_PROLONG_PLUS_DOMINANT_PROLONG_CADENCE: 5, TONIC_PROLONG_PLUS_DOMINANT_PROLONG_PLUS_TONIC_CADENCE_PROLONG:...
17,995
https://github.com/chromium/chromium/blob/master/services/webnn/dml/command_queue.h
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
C++
Code
318
1,079
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_WEBNN_DML_COMMAND_QUEUE_H_ #define SERVICES_WEBNN_DML_COMMAND_QUEUE_H_ #include <d3d12.h> #include <wrl.h> #include <deque> #include <vector> #include "base/...
8,618
https://github.com/tuvistavie/deep-learning-from-scratch/blob/master/tests/primitive/ndarray_test.cpp
Github Open Source
Open Source
MIT
2,018
deep-learning-from-scratch
tuvistavie
C++
Code
4,279
11,134
// // Created by TakumiYamashita on 2018/06/10. // #include <gtest/gtest.h> #include <iostream> #include "../src/primitive/primitive.hpp" using namespace dpl; TEST(ND_ARRAY_TEST, INITTIALIZE_ALL_ZERO_3x3x3) { ndarray<float, 3, 3, 3> array; array.fill(0); for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j...
30,655
https://github.com/HeRaNO/OI-ICPC-Codes/blob/master/Codeforces/605A.cpp
Github Open Source
Open Source
MIT
2,022
OI-ICPC-Codes
HeRaNO
C++
Code
66
361
#include<bits/stdc++.h> using namespace std; #define fi first #define se second #define SZ(x) ((int)x.size()) #define ALL(x) (x).begin(),(x).end() typedef long long ll; typedef pair<int,int> pii; typedef double db; const int MAXN=1e5+10,MAXM=1e7+10; const int INF=INT_MAX,SINF=0x3f3f3f3f; const ll llINF=LLONG_MAX; const...
41,047
https://github.com/Kernelcraft-Network/Server/blob/master/vanilla/src/applaunch/java/org/spongepowered/vanilla/applaunch/service/AccessWidenerLaunchService.java
Github Open Source
Open Source
MIT
2,021
Server
Kernelcraft-Network
Java
Code
525
1,516
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
20,614
https://github.com/socialsky-io/interp/blob/master/pkg/flag/export.go
Github Open Source
Open Source
Apache-2.0
2,021
interp
socialsky-io
Go
Code
175
1,405
// export by github.com/goplus/interp/cmd/qexp package flag import ( "flag" "github.com/goplus/interp" ) func init() { interp.RegisterPackage("flag", extMap, typList) } var extMap = map[string]interface{}{ "(*flag.FlagSet).Arg": (*flag.FlagSet).Arg, "(*flag.FlagSet).Args": (*flag.FlagSet).A...
7,919
https://github.com/iqram98/siaslbn1maros/blob/master/application/views/penilaian/index.php
Github Open Source
Open Source
MIT
null
siaslbn1maros
iqram98
PHP
Code
263
1,177
<!-- Main content --> <section class="content"> <div class="container-fluid"> <?php if ($this->session->flashdata('flash')): ?> <div class="alert alert-success alert-dismissible fade show" role="alert"> Data Nilai <strong>Berhasil! </strong><?= $this->session->flashdata('flash'); ?> <button type="button" cla...
40,057
https://github.com/hcuffy/Marks/blob/master/src/components/graphs/GraphDropdown.jsx
Github Open Source
Open Source
MIT
2,021
Marks
hcuffy
JavaScript
Code
186
725
import React from 'react'; import {connect} from 'react-redux'; import {withTranslation} from 'react-i18next'; import {resolveLabel, PDFbutton} from '../../utils'; import {handleGraphClassList, handleSubjectList, displayExamGraph} from './actions'; import {DropdownComponent, createDropdownItems} from '../helpers'; imp...
13,508
https://github.com/IndistinQuest/Game/blob/master/Game/Scene/GameData.cpp
Github Open Source
Open Source
MIT
2,017
Game
IndistinQuest
C++
Code
32
133
#include "GameData.h" GameData::GameData() { time = 0; for(int i = 1; i <= 10; ++i) { defeatedEnemyList.push_back(i); } } GameData::~GameData() {} void GameData::addEnemy(int id) { defeatedEnemyList.push_back(id); } void GameData::resetEnemyList() { defeatedEnemyList.clear(); }
22,475
https://github.com/joernb/redux-prefabs-connected-react-router/blob/master/src/index.test.ts
Github Open Source
Open Source
MIT
null
redux-prefabs-connected-react-router
joernb
TypeScript
Code
60
186
describe("pushRoute", () => { it("dummy test", () => { expect(true).toBeTruthy(); }) }); describe("replaceRoute", () => { it("dummy test", () => { expect(true).toBeTruthy(); }) }); describe("goForward", () => { it("dummy test", () => { expect(true).toBeTruthy(); }) }); describe("goBack", () ...
29,082
https://github.com/sulu/sulu/blob/master/src/Sulu/Bundle/AdminBundle/Resources/js/containers/ViewRenderer/tests/registries/ViewRegistry.test.js
Github Open Source
Open Source
MIT
2,023
sulu
sulu
JavaScript
Code
124
501
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import viewRegistry from '../../registries/viewRegistry'; beforeEach(() => { viewRegistry.clear(); }); test('Clear all view from ViewRegistry', () => { const component1 = () => (<h1>Test1</h1>); viewRegistry.add('test1'...
27,077
https://github.com/ghostdog87/CSharp-Database-2019/blob/master/Databases Advanced Entity Framework/Advanced Relations/AdvancedRelations/BillsPaymentSystem.Data/Config.cs
Github Open Source
Open Source
MIT
null
CSharp-Database-2019
ghostdog87
C#
Code
22
86
using System; using System.Collections.Generic; using System.Text; namespace BillsPaymentSystem.Data { public class Config { public static string connectionString = @"Server=LAPTOP-5SU6O5P6\SQLEXPRESS;Database=BillsPaymentSystem;Integrated Security=True;"; } }
18,324
https://github.com/slachiewicz/geocloud2/blob/master/public/user/edit/edit_p.php
Github Open Source
Open Source
MIT
2,015
geocloud2
slachiewicz
PHP
Code
174
672
<?php use \app\inc\Model; use \app\models\Setting; include('../header.php'); $postgisObject = new Model(); include('../vdaemon/vdaemon.php'); include('../html_header.php'); // Check if user is logged in - and redirect if this is the case if (!$_SESSION['auth'] || !$_SESSION['screen_name']) { die("<script>window.l...
32,810
https://github.com/nodamu/sign-langage-recogntion/blob/master/mediapipe/calculators/util/local_file_contents_calculator.cc
Github Open Source
Open Source
Apache-2.0
2,022
sign-langage-recogntion
nodamu
C++
Code
197
572
// Copyright 2019 The MediaPipe 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
30,440
https://github.com/peterdongan/ExdTech.ImageServer/blob/master/ExdTech.ImageServer.Common/Interfaces/IImageStorageService.cs
Github Open Source
Open Source
MIT
null
ExdTech.ImageServer
peterdongan
C#
Code
55
165
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; namespace ExdTech.ImageServer.Common { public interface IImageStorageService { /// <summary> /// Throw a FIleNotFoundException if the file is not found /// </summary> ...
34,428
https://github.com/yukunkun/CubeWare-Android/blob/master/CommonUtils/src/main/java/com/common/utils/utils/ThemeUtils.java
Github Open Source
Open Source
MIT
2,019
CubeWare-Android
yukunkun
Java
Code
70
207
package com.common.utils.utils; import android.content.Context; import android.content.res.TypedArray; import com.common.utils.R; /** * ThemeUtils * * @author lzx * @date 2018-3-27 */ public class ThemeUtils { private static final int[] APPCOMPAT_CHECK_ATTRS = { R.attr.colorPrimary }; public static v...
22,429