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/jun0/choreonoid/blob/master/src/Util/boostpython/PySceneGraph.cpp
Github Open Source
Open Source
MIT
null
choreonoid
jun0
C++
Code
265
1,457
/*! @author Shin'ichiro Nakaoka */ #include "PyUtil.h" #include "../SceneGraph.h" #include "../SceneProvider.h" using namespace boost::python; using namespace cnoid; namespace { void SgObject_notifyUpdate1(SgObject& self){ self.notifyUpdate(); } void SgObject_notifyUpdate2(SgObject& self, SgUpdate& update){ self....
48,471
https://github.com/kubatruhlar/JTAlertView/blob/master/JTAlertView Example/JTAlertView Example/ViewController.m
Github Open Source
Open Source
MIT
2,016
JTAlertView
kubatruhlar
Objective-C
Code
442
1,786
// // ViewController.m // JTAlertView Example // // Created by Jakub Truhlar on 13.06.15. // Copyright (c) 2015 Jakub Truhlar. All rights reserved. // #import "ViewController.h" #import "JTAlertView.h" @interface ViewController () @property (nonatomic, strong) JTAlertView *alertView; @property (nonatomic, assign...
41,668
https://github.com/freestyle076/MyOpenMS/blob/master/src/tests/class_tests/openms/source/TargetedExperiment_test.cpp
Github Open Source
Open Source
Zlib, Apache-2.0
2,018
MyOpenMS
freestyle076
C++
Code
842
2,996
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and ...
46,868
https://github.com/ffalt/jampacked/blob/master/src/screens/PinnedMediaScreen.tsx
Github Open Source
Open Source
MIT
2,023
jampacked
ffalt
TSX
Code
283
1,031
import React, {useCallback, useState} from 'react'; import {PageHeader} from '../components/PageHeader'; import {PinnedMediaItem} from '../components/PinnedMediaItem'; import {PinMedia, TrackEntry} from '../services/types'; import {usePinnedMedia} from '../services/pin-hooks'; import {DownloadsRoute, DownloadsRouteProp...
22,845
https://github.com/thetonymaster/thetonymaster.github.io/blob/master/patterns/content-based-router/scala/src/main/scala/com/thetonymaster/router/Router.scala
Github Open Source
Open Source
MIT
null
thetonymaster.github.io
thetonymaster
Scala
Code
238
792
package com.thetonymaster.router import com.thetonymaster.completableapp._ import scala.collection.Map import akka.actor._ case class Order(id: String, orderType: String, orderItems: Map[String, OrderItem]) { val grandTotal: Double = orderItems.values.map(orderItem => orderItem.price).sum override def toString(...
51,901
https://github.com/mholland/marten/blob/master/src/Marten.Testing/Events/EventGraphTests.cs
Github Open Source
Open Source
MIT
2,016
marten
mholland
C#
Code
65
446
using Marten.Events; using Shouldly; using Xunit; namespace Marten.Testing.Events { public class EventGraphTests { private readonly EventGraph theGraph = new EventGraph(); [Fact] public void find_stream_mapping_initially() { theGraph.StreamMappingFor<Issue>() ...
6,412
https://github.com/nip3o/beer/blob/master/.env.fish
Github Open Source
Open Source
MIT
2,016
beer
nip3o
Fish
Code
46
181
set PROJECT_ROOT (dirname $argv[1]) set VIRTUAL_ENV_DIR $PROJECT_ROOT/.venv if not test -e $VIRTUAL_ENV_DIR virtualenv $VIRTUAL_ENV_DIR end if set -q $VIRTUAL_ENV . $VIRTUAL_ENV_DIR/bin/activate.fish end if set -q $DJANGO_SETTINGS_MODULE set -gx DJANGO_SETTINGS_MODULE "mb.conf.settings.development" set -gx PYTHO...
210
https://github.com/jsonbao/form-create/blob/master/src/factory/vNode.js
Github Open Source
Open Source
MIT
2,019
form-create
jsonbao
JavaScript
Code
94
304
import {isFunction, isString} from '../core/util' export function parseVData(data) { if (isString(data)) data = {domProps: {innerHTML: data}}; else if (data && isFunction(data.get)) data = data.get(); return data } export function getVNode(VNode) { return isFunction(VNode) ? VNode() :...
34,207
https://github.com/vcaravani/research.matrices/blob/master/backend/auth-api/resources/routes.py
Github Open Source
Open Source
Apache-2.0
null
research.matrices
vcaravani
Python
Code
68
323
from .model import ModelsApi, ModelApi from .dataset import DatasetsApi, DatasetApi, DatasetImageApi, DatasetCreator, SegmentationDatasetCreator from .auth import SignupApi, LoginApi from .user import UserApi def initialize_routes(api): api.add_resource(ModelsApi, '/api/models') api.add_resource(ModelApi, '/ap...
23,487
https://github.com/rightscale/rsc/blob/master/rl10/codegen_client.go
Github Open Source
Open Source
MIT
2,021
rsc
rightscale
Go
Code
4,477
11,850
//************************************************************************// // RightScale API client // // Generated with: // $ praxisgen -metadata=rl10/docs/api -output=rl10 -pkg=rl10 -target=unversioned -client=API // // The content of this file is auto-generated, DO NOT MODIFY //****************...
31,572
https://github.com/AlexKnauth/my-unpossible/blob/master/utils/my-point-at.rkt
Github Open Source
Open Source
MIT
2,022
my-unpossible
AlexKnauth
null
Spoken
320
969
#lang sweet-exp typed/racket/base provide my-point-at require pict3d : my-point-at : Pos {Pos U Dir} Pos {Pos U Dir} [#:normalize? Boolean] -> Affine define my-point-at(v1 v2 v3 v4 #:normalize? [normalize? #t]) relocate point-at(v1 v2 #:normalize? normalize?) point-at(v3 v4 #:normalize? normalize?) module...
24,970
https://github.com/mghextreme/uipath-validator/blob/master/UIPathValidator/Validation/Referees/InvokeWorkflowReferee.cs
Github Open Source
Open Source
Apache-2.0
2,022
uipath-validator
mghextreme
C#
Code
398
1,337
using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; using UIPathValidator.UIPath; using UIPathValidator.Validation.Result; namespace UIPathValidator.Validation.Referees { public class InvokeWorkflowReferee : IWorkflowReferee { public string Code => "invoke-workf...
22,154
https://github.com/alsotang/defo/blob/master/defo.js
Github Open Source
Open Source
MIT
2,013
defo
alsotang
JavaScript
Code
520
1,226
(function (name, definition){ if (typeof define === 'function'){ // AMD define(definition); } else if (typeof module !== 'undefined' && module.exports) { // Node.js module.exports = definition(); } else { // Browser var theModule = definition(), global = this, old = global[name]; theModule.noConfl...
572
https://github.com/kasim444/contentful-blog/blob/master/src/components/index.js
Github Open Source
Open Source
MIT
2,022
contentful-blog
kasim444
JavaScript
Code
11
33
import Header from './Header/Header.js'; import Loading from './Loading/Loading.js'; export {Header, Loading};
50,935
https://github.com/BCcampus/open-sage/blob/master/resources/views/template-use-oer.blade.php
Github Open Source
Open Source
MIT
2,019
open-sage
BCcampus
PHP
Code
19
127
{{-- Template Name: Use OER --}} @extends('layouts.app') @section('content') @include('partials.page-header') <div class="row"> @include('partials.use-open-page-cards') </div> <div class="row"> @include('partials.use-open-page-triple-cards') </div> @include('partials.use-open-page-gu...
25,164
https://github.com/Bouke/SimpleInjector/blob/master/src/SimpleInjector/Lifestyles/LifestyleSelectionBehaviorProxyLifestyle.cs
Github Open Source
Open Source
MIT
null
SimpleInjector
Bouke
C#
Code
104
295
// Copyright (c) Simple Injector Contributors. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for license information. namespace SimpleInjector.Lifestyles { using System; /// <summary> /// Forwards CreateRegistration calls to the lifestyle that is returned fr...
30,772
https://github.com/leanhvu86/matrix-server/blob/master/tests/handlers/test_typing.py
Github Open Source
Open Source
Apache-2.0
null
matrix-server
leanhvu86
Python
Code
764
3,827
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket 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 applicab...
5,236
https://github.com/misterfifths/nis_mods/blob/master/utils/hexdump/__main__.py
Github Open Source
Open Source
MIT
2,021
nis_mods
misterfifths
Python
Code
379
1,176
import codecs import sys from argparse import ArgumentParser, Namespace from pathlib import Path from utils import private_mmap from . import hexdump def pos_nonzero_int(s: str) -> int: i = int(s) if i <= 0: raise ValueError('argument must be an integer > 0') return i def pos_dec_int(s: str) ...
6,952
https://github.com/Weiming-Wang/Pix2Surf/blob/master/core/models/__init__.py
Github Open Source
Open Source
MIT
2,020
Pix2Surf
Weiming-Wang
Python
Code
11
39
import importlib def get_model(alias): module = importlib.import_module('core.models.' + alias) return module.Model
17,115
https://github.com/wenbinye/PhalconX/blob/master/src/Exception/BadAnnotationException.php
Github Open Source
Open Source
MIT
2,018
PhalconX
wenbinye
PHP
Code
33
100
<?php namespace PhalconX\Exception; use Phalcon\Annotation\Annotation; class BadAnnotationException extends Exception { private $annotation; public function __construct(Annotation $annotation, $message) { parent::__construct($message . ' ' . $annotation); } public function getAnnotat...
27,649
https://github.com/WanderingMonk/eve-industrial/blob/master/eve-api-crest/src/main/java/com/arrggh/eve/api/crest/queries/CrestApiTranquilityQueryUriBuilder.java
Github Open Source
Open Source
MIT
null
eve-industrial
WanderingMonk
Java
Code
30
99
package com.arrggh.eve.api.crest.queries; /** * A UriBuilder instances that targets the Production environment server (crest-tq.eveonline.com). */ public class CrestApiTranquilityQueryUriBuilder extends QueryUriBuilder { @Override protected String getHostname() { return "crest-tq.eveonline.com"; ...
29,801
https://github.com/simonvomeyser/simonvomeyser.de/blob/master/src/components/NavigationDesktop.js
Github Open Source
Open Source
MIT
null
simonvomeyser.de
simonvomeyser
JavaScript
Code
274
914
import React, { useContext } from 'react' import posed from 'react-pose' import NavigationLink from 'src/components/NavigatonLink' import { LogoNavigationSvg, PaperPlaneSvg, ProjectsSvg, UserSvg } from 'src/svg' import { on } from 'src/util/breakpoint' import { vars } from 'src/util/vars' import styled from 'styled-com...
43,023
https://github.com/sigurasg/ghidra/blob/master/Ghidra/Features/FileFormats/developer_scripts/DexWriteRegistersScript.java
Github Open Source
Open Source
Apache-2.0
2,022
ghidra
sigurasg
Java
Code
251
450
/* ### * IP: GHIDRA * * 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 writin...
51,546
https://github.com/AndryanaBaros/web-api/blob/master/app/Http/Controllers/LoginController.php
Github Open Source
Open Source
MIT
2,021
web-api
AndryanaBaros
PHP
Code
103
399
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use Illuminate\Support\Str; use App\Models\User; class LoginController extends Controller { public function index() { return view('pages.login'); } public function login(Request $request) { $request->validate (...
13,758
https://github.com/Leeemons/infrastructure/blob/master/src/Infrastructure/Riganti.Utils.Infrastructure.Azure.TableStorage/Helpers/TableHelpers.cs
Github Open Source
Open Source
Apache-2.0
2,022
infrastructure
Leeemons
C#
Code
288
845
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Table; using Riganti.Utils.Infrastructure.Core; namespace Riganti.Utils.Infrastructure.Azure.TableStora...
32,313
https://github.com/fenekku/invenio-rdm-records/blob/master/invenio_rdm_records/services/pids/providers/datacite.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
invenio-rdm-records
fenekku
Python
Code
751
2,182
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # Copyright (C) 2023 Northwestern University. # Copyright (C) 2023 Graz University of Technology. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """DataCite ...
19,523
https://github.com/koolgax99/lms-flipr/blob/master/app/Classroom_Teachers.php
Github Open Source
Open Source
MIT
null
lms-flipr
koolgax99
PHP
Code
33
152
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Classroom_Teachers extends Model { protected $table = 'classroom_teachers'; protected $fillable = ['classroom_id','teacher_id','subject_id']; public function classroom_teachers_get_teachers() { return $this->belongsTo('App\User'...
46,374
https://github.com/drunkfly/retrotoolkit/blob/master/Sources/Compiler/Java/JNIStringRef.h
Github Open Source
Open Source
MIT, Unlicense
2,022
retrotoolkit
drunkfly
C
Code
48
214
#ifndef COMPILER_JAVA_JNISTRINGREF_H #define COMPILER_JAVA_JNISTRINGREF_H #include "Compiler/Java/JNIRef.h" class JNIStringRef final : public JNIRef { JNIREF(JNIStringRef, jstring) public: static JNIStringRef from(const char* utf8); static JNIStringRef from(const std::string& utf8); static JNIStringR...
48,683
https://github.com/hsin421/nameisTaiwan/blob/master/app/components/Vote.jsx
Github Open Source
Open Source
MIT, Unlicense
2,018
nameisTaiwan
hsin421
null
Spoken
134
953
import React from 'react'; import EntryBox from 'components/EntryBox'; import MainSection from 'components/MainSection'; // import Scoreboard from 'components/Scoreboard'; import styles from 'scss/components/_vote'; export default class Vote extends React.Component { render() { return ( <div className={s...
14,037
https://github.com/magomedcoder/pcore/blob/master/config/routes.php
Github Open Source
Open Source
MIT
2,022
pcore
magomedcoder
PHP
Code
23
132
<?php declare(strict_types=1); return [ [['GET', 'POST', 'PUT', 'DELETE'], '/', '\App\Controller\ExampleController@index'], ['POST', '/example/create', '\App\Controller\ExampleController@post'], ['GET', '/example/{id}/get', '\App\Controller\ExampleController@get'], ['PUT', '/example/{id}/edit', '\App\...
32,696
https://github.com/Antholoj/netbeans/blob/master/java/form/test/unit/src/org/netbeans/modules/form/layoutdesign/ALT_SeqResizing04bTest.java
Github Open Source
Open Source
Apache-2.0
2,022
netbeans
Antholoj
Java
Code
1,047
3,776
/* * 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 ...
51,937
https://github.com/Habu-Kagumba/rapid_runty/blob/master/spec/unit/router/routes_spec.rb
Github Open Source
Open Source
MIT
2,019
rapid_runty
Habu-Kagumba
Ruby
Code
99
354
require 'spec_helper' describe RapidRunty::Router::Routes do let(:routes) { described_class.new } let!(:define_routes) do routes.draw do root 'demo#index' get '/demo', to: 'demo#index' get '/demo/:id', to: 'demo#show' end end describe 'matches incoming paths (from Rack env)' do ...
13,581
https://github.com/bhdm/bankrot/blob/master/src/Bankrot/SiteBundle/Entity/DropRuleRepository.php
Github Open Source
Open Source
MIT
2,019
bankrot
bhdm
PHP
Code
65
257
<?php namespace Bankrot\SiteBundle\Entity; use Doctrine\ORM\EntityRepository; class DropRuleRepository extends EntityRepository { /** * Находит ближайший период данного лота, который соответсвует дате * @param $lotId * @param $currentDate * @return mixed * @throws \Doctrine\ORM\NonUnique...
274
https://github.com/revathiks/srm-online-app/blob/master/application/modules/crm-admin/views/queries/view.php
Github Open Source
Open Source
MIT
null
srm-online-app
revathiks
PHP
Code
441
2,027
<?php //echo $open_ticket; ?> <div class="container queries"> <div class="row mb-2"> <div class="col-sm-4"> <span><input type="text" class="form-control" id="filter-ticketid" type="text" placeholder="Search by Ticket ID" /></span> </div> </div> <div class="row mb-4">...
52,433
https://github.com/tom-krieger/pxe_install/blob/master/tasks/create_password.sh
Github Open Source
Open Source
Apache-2.0
2,022
pxe_install
tom-krieger
Shell
Code
49
103
#!/bin/bash if puppet config print server | grep -v -q `hostname`; then echo "This task can only be run on the PE master!"; exit 1 fi if [ -z "${PT_password}" ] ; then echo "Please give a password to encrypt!" exit 1 fi /usr/bin/openssl passwd -6 ${PT_password} exit 0
41,606
https://github.com/andyruwruw/chess-web-api/blob/master/src/endpoints/puzzles.js
Github Open Source
Open Source
MIT
2,021
chess-web-api
andyruwruw
JavaScript
Code
74
314
const WebApiRequest = require('../request/webapi-request.js'); const HttpManager = require('../request/http-manager.js'); const { sortParameters } = require('../utils/sort-parameters'); function getDailyPuzzle(options, callback, headers) { const [_options, _callback, _headers] = sortParameters( ['object', 'funct...
10,872
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/Editor/UMGEditor/Private/Nodes/K2Node_CreateDragDropOperation.cpp
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,022
UnrealEngine_NVIDIAGameWorks
windystrife
C++
Code
401
1,578
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "Nodes/K2Node_CreateDragDropOperation.h" #include "K2Node_CallFunction.h" #include "Blueprint/DragDropOperation.h" #include "Blueprint/WidgetBlueprintLibrary.h" #include "EditorCategoryUtils.h" #include "KismetCompilerMisc.h" #include "KismetCompi...
21,506
https://github.com/datawire/forge/blob/master/forge/tests/blackbox/delete/badargs.spec
Github Open Source
Open Source
Apache-2.0
2,018
forge
datawire
null
Spoken
28
41
RUN forge delete OUT either supply a service or the --all option ERR RUN forge delete asdf --all OUT cannot specify an argument with the --all option ERR
2,786
https://github.com/gautamvr/DesignPatterns/blob/master/Structural_Patterns/DecoratorPattern/Program.cs
Github Open Source
Open Source
MIT
null
DesignPatterns
gautamvr
C#
Code
27
87
// See https://aka.ms/new-console-template for more information using DecoratorPattern; Console.WriteLine("Decorator Pattern - Client side"); IScanImage scanImage = new MRScanImage(); scanImage = new TextAnnotator(scanImage); scanImage = new GeometryAnnotator(scanImage); scanImage.RenderImage();
12,149
https://github.com/keybase/client/blob/master/go/engine/login_provision.go
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown
2,023
client
keybase
Go
Code
4,440
12,986
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package engine import ( "errors" "fmt" "sort" "golang.org/x/net/context" "github.com/keybase/client/go/kex2" "github.com/keybase/client/go/libkb" keybase1 "github.com/keybase/client/go/pro...
34,324
https://github.com/WOLFI3654/WowSuchCleaner/blob/master/WowSuchCleaner/src/main/java/io/github/Cnly/WowSuchCleaner/WowSuchCleaner/config/region/RegionConfig.java
Github Open Source
Open Source
MIT
2,018
WowSuchCleaner
WOLFI3654
Java
Code
74
310
package io.github.Cnly.WowSuchCleaner.WowSuchCleaner.config.region; import io.github.Cnly.WowSuchCleaner.WowSuchCleaner.config.auction.AuctionConfig; import io.github.Cnly.WowSuchCleaner.WowSuchCleaner.config.cleaning.CleaningConfig; public class RegionConfig { private String regionName; private WSCAppro...
42,541
https://github.com/voskvv/resource/blob/master/pkg/db/store.go
Github Open Source
Open Source
Apache-2.0
null
resource
voskvv
Go
Code
64
240
package db import ( "io" "git.containerum.net/ch/resource-service/pkg/models/deployment" "github.com/containerum/kube-client/pkg/model" ) type Store interface { io.Closer Init() error } type DeploymentStorage interface { Create(deployment deployment.DeploymentResource) (model.Deployment, error) Update(deploy...
1,359
https://github.com/Huangwei20180621/meta-arago/blob/master/meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch
Github Open Source
Open Source
MIT
2,018
meta-arago
Huangwei20180621
null
Spoken
176
830
From 548f8e308b15e396241149e1c89ce7ffecf6242c Mon Sep 17 00:00:00 2001 From: Qin Su <qsu@ti.com> Date: Tue, 27 Nov 2018 18:08:06 -0500 Subject: [PATCH] generate versioned library Upstream-Status: Inappropriate [TI only test code] Signed-off-by: Qin Su <qsu@ti.com> --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 in...
44,633
https://github.com/rayjolt/xunit/blob/master/src/common.tests/CultureAwareTesting/CulturedFactAttributeDiscoverer.cs
Github Open Source
Open Source
Apache-2.0
2,022
xunit
rayjolt
C#
Code
102
411
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit.Internal; using Xunit.Sdk; using Xunit.v3; namespace Xunit { public class CulturedFactAttributeDiscoverer : IXunitTestCaseDiscoverer { public ValueTask<IReadOnlyCollection<IXunitTestCase>> Discover( _ITestFrameworkDi...
17,504
https://github.com/ScalablyTyped/Distribution/blob/master/s/sentry__replay/src/main/scala/typings/sentryReplay/typesSessionGetSessionMod.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
139
568
package typings.sentryReplay import typings.sentryReplay.anon.Session import typings.sentryReplay.typesTypesReplayMod.SessionOptions import typings.sentryReplay.typesTypesReplayMod.Timeouts import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JS...
28,695
https://github.com/nhatquyen/Laravel-Hue_cit/blob/master/app/Http/Controllers/Admin/Education/StudentController.php
Github Open Source
Open Source
MIT
null
Laravel-Hue_cit
nhatquyen
PHP
Code
777
2,836
<?php namespace App\Http\Controllers\Admin\Education; use App\Models\Children; use App\Models\Commune; use App\Models\ContinuingEducationCenter; use App\Models\District; use App\Models\HighSchool; use App\Models\JuniorAndHighSchool; use App\Models\JuniorHighSchool; use App\Models\NurserySchool; use App\Models\Primary...
25,642
https://github.com/mojolicious/mojo-status/blob/master/t/status.t
Github Open Source
Open Source
Artistic-2.0
2,021
mojo-status
mojolicious
Perl
Code
187
1,607
use Mojo::Base -strict; use Test::More; use Config; use Mojolicious::Lite; use Mojo::IOLoop; use Test::Mojo; my $route = any '/status'; plugin Status => {return_to => '/does_not_exist', route => $route, slowest => 5}; get '/' => sub { my $c = shift; $c->render(text => 'Hello Mojo!'); }; get '/subprocess' => su...
8,411
https://github.com/shawnxz/hw3/blob/master/times/Part_II/stimt_seed1807_01_A.1D
Github Open Source
Open Source
MIT
2,018
hw3
shawnxz
null
Spoken
20
62
7.3 15.5 27.7 35.8 52.0 71.6 84.4 97.4 104.9 117.4 126.2 134.7 154.7 169.9 194.1 217.1 227.7 238.7 265.1 281.4
42,170
https://github.com/BKSteve/spksrc/blob/master/cross/ffmpeg/patches/syno-reject/105-REJECT-SYNO-empty-defines.patch
Github Open Source
Open Source
BSD-3-Clause
2,022
spksrc
BKSteve
null
Spoken
109
371
diff -uprN ../ffmpeg-4.2.2-patch104/synoconfig.h ./synoconfig.h --- ../ffmpeg-4.2.2-patch104/synoconfig.h 2020-03-07 07:57:48.000000000 -0500 +++ ./synoconfig.h 2020-03-07 08:20:37.659694767 -0500 @@ -111,3 +111,23 @@ #if defined(SYNO_VIDEOSTATION) #define SYNO_DTV_SKIP_VISUAL_IMPAIRED_TRACK #endif + +/* Skip subtit...
35,614
https://github.com/lourentflores/Code-Rena/blob/master/client/node_modules/redux-form/es/getFormNames.js
Github Open Source
Open Source
MIT
2,021
Code-Rena
lourentflores
JavaScript
Code
11
34
import createGetFormNames from './selectors/getFormNames'; import plain from './structure/plain'; export default createGetFormNames(plain);
48,916
https://github.com/probabilistic-numerics/probnum/blob/master/src/probnum/linops/_linear_operator.py
Github Open Source
Open Source
MIT
2,023
probnum
probabilistic-numerics
Python
Code
5,687
17,148
"""Finite-dimensional linear operators.""" from __future__ import annotations import abc import functools from typing import Callable, Optional, Tuple, Union import numpy as np import scipy.linalg import scipy.sparse from probnum import config # pylint: disable=cyclic-import from probnum.typing import ArrayLike, D...
1,419
https://github.com/nutstick/whack-a-mole/blob/master/App.js
Github Open Source
Open Source
MIT
2,018
whack-a-mole
nutstick
JavaScript
Code
181
428
import React, { Component } from "react" import { View } from "react-native" import Field from "./components/field" export default class App extends Component { state = { moles: [ { id: 1, active: false }, { id: 2, active: false }, { id: 3, active: false }, { id: 4, active: false }, ...
40,859
https://github.com/liujiamingustc/phd/blob/master/docker/water/delft3d/tags/v6686/src/utils_lgpl/delftonline/src/delftonline/arrayshape.cpp
Github Open Source
Open Source
Apache-2.0
2,022
phd
liujiamingustc
C++
Code
719
1,879
//------------------------------------------------------------------------------- // DelftOnline -- ArrayShape Routines // // Irv.Elshoff@Deltares.NL // 24 may 12 //------------------------------------------------------------------------------- //---- LGPL ------------------------------------------------------------...
44,605
https://github.com/DannyMor/zio-k8s/blob/master/zio-k8s-codegen/src/shared/scala/com/coralogix/zio/k8s/codegen/internal/GroupVersionKind.scala
Github Open Source
Open Source
Apache-2.0
2,022
zio-k8s
DannyMor
Scala
Code
18
62
package com.coralogix.zio.k8s.codegen.internal case class GroupVersionKind(group: String, version: String, kind: String) { override def toString: String = s"$group/$version/$kind" }
51,749
https://github.com/bodyloss/Benchmarkable/blob/master/Benchmarkable/ThisClause.cs
Github Open Source
Open Source
MIT
2,017
Benchmarkable
bodyloss
C#
Code
60
165
using System; namespace Benchmarkable { public class ThisClause { private Benchmark benchmark; internal ThisClause(Benchmark benchmark) { this.benchmark = benchmark; } /// <summary> /// Method to benchmark against /// </summary> ///...
13,933
https://github.com/pulumi/pulumi-tls/blob/master/sdk/java/src/main/java/com/pulumi/tls/SelfSignedCert.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, MPL-2.0
2,023
pulumi-tls
pulumi
Java
Code
1,405
4,197
// *** WARNING: this file was generated by pulumi-java-gen. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package com.pulumi.tls; import com.pulumi.core.Output; import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; import com.pulumi.core.in...
36,472
https://github.com/egustafson/sandbox/blob/master/go/tunable-prototype/tunable/tunable_test.go
Github Open Source
Open Source
Apache-2.0
2,023
sandbox
egustafson
Go
Code
49
260
package tunable_test import ( "testing" "github.com/stretchr/testify/assert" "github.com/egustafson/sandbox/go/tunable-prototype/tunable" ) func TestTunableBool(t *testing.T) { var boolFlag bool = false tuneset := tunable.NewTunableSet("test-tunable-set") assert.NotNil(t, tuneset) tuneset.DefineBoolVar(&bo...
35,754
https://github.com/shelsoloa/shelsoloa-web/blob/master/src/styles/theme.scss
Github Open Source
Open Source
MIT
2,019
shelsoloa-web
shelsoloa
SCSS
Code
31
108
@import 'master'; body { background-color: $bg-color; color: $text-color; } a { text-decoration: none; color: $highlight-color; &:hover { color: white; } } .center { text-align: center; } .highlight { color: $highlight-color; }
47,176
https://github.com/joaopalmeiro/textlint-extra-terms/blob/master/test.js
Github Open Source
Open Source
MIT
null
textlint-extra-terms
joaopalmeiro
JavaScript
Code
1,169
4,232
const TextLintTester = require('textlint-tester'); const textlintRuleTerminology = require('textlint-rule-terminology'); const d3Terms = [ 'd3', 'd3.js', 'd3js', 'd3 js', 'D3.js', 'D3js', 'D3 js', 'd3.JS', 'd3JS', 'd3 JS', 'D3.JS', 'D3JS', 'D3 JS', ]; const d3Invalids = d3Terms.map((term) => { return { ...
17,854
https://github.com/marcoboerner/ComicSplash/blob/master/ComicSplash/Views/LogoView.swift
Github Open Source
Open Source
MIT
null
ComicSplash
marcoboerner
Swift
Code
81
254
// // WelcomeView.swift // ComicSplash // // Created by Marco Boerner on 16.07.21. // import SwiftUI // TODO: - Create transitions for all changes in between screens and texts. struct LogoAndLoadingView: View { var scale: CGFloat = 1.0 var animated: Bool = false @State var rotation: Angle = .zero var body: ...
38,358
https://github.com/SandorSzilard/boilerplate/blob/master/frontend/src/app/auth/register/register.component.ts
Github Open Source
Open Source
MIT
2,018
boilerplate
SandorSzilard
TypeScript
Code
84
309
import { Component, OnInit } from '@angular/core'; import { element } from 'protractor'; import { User } from '../../user'; import { UserService } from '../../user-service.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-register', templateUrl: './register.component.html', styleUrl...
38,485
https://github.com/costajob/git_commands/blob/master/lib/git_commands.rb
Github Open Source
Open Source
MIT
null
git_commands
costajob
Ruby
Code
13
65
lib = File.expand_path("../../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "git_commands/version" require "git_commands/computer" require "git_commands/cli"
7,588
https://github.com/MontaVista-OpenSourceTechnology/meta-cgl/blob/master/meta-cgl-common/recipes-cgl/pacemaker/pacemaker/0001-pacemaker-set-OCF_ROOT_DIR-to-libdir-ocf.patch
Github Open Source
Open Source
MIT
null
meta-cgl
MontaVista-OpenSourceTechnology
null
Spoken
151
436
From 3ca78a6441eefc26f18211375b18205ed6fc28c6 Mon Sep 17 00:00:00 2001 From: Mingli Yu <mingli.yu@windriver.com> Date: Thu, 3 Sep 2020 05:26:36 +0000 Subject: [PATCH] pacemaker: set OCF_ROOT_DIR to $libdir/ocf * Set the default OCF_ROOT_DIR to $libdir/ocf to make the resource agents components more compatible Ups...
30,743
https://github.com/dohaki/bureau32/blob/master/src/pages/index.js
Github Open Source
Open Source
MIT
null
bureau32
dohaki
JavaScript
Code
44
149
import React from 'react' import titleImg from '../img/inst.png' const IndexPage = () => ( <div style={{ display: 'flex' }}> <img src={titleImg} alt="collage-with-vitrine" style={{ maxWidth: '40rem', height: 'auto', display: 'block', marginRight: 'auto', ...
46,408
https://github.com/cloudenum/web-resto/blob/master/application/assets/admin/js/jambuka-page.js
Github Open Source
Open Source
Apache-2.0
2,021
web-resto
cloudenum
JavaScript
Code
133
630
$(document).ready(function () { $(document).ajaxStart(function () { Pace.restart(); }); $.ajax({ url: baseURL("crud/select_time"), data: "d=" + $("#day").val(), //for example "id=5&parent=6" dataType: "json", //data format success: function (res) { if (res.success) { getData(res.data); } else {...
11,153
https://github.com/nodeca/ndoc/blob/master/tests/prototype/src/prototype/ajax/periodical_updater.js
Github Open Source
Open Source
MIT-0, LicenseRef-scancode-unknown-license-reference, MIT
2,021
ndoc
nodeca
JavaScript
Code
1,335
3,231
/** section: Ajax * class Ajax.PeriodicalUpdater * * Periodically performs an Ajax request and updates a container's contents * based on the response text. * * [[Ajax.PeriodicalUpdater]] behaves like [[Ajax.Updater]], but performs the * update at a prescribed interval, rather than only once. (Note that it i...
20,635
https://github.com/ACW1/itertools/blob/master/tests/Zicht/ItertoolsTest/FilterTest.php
Github Open Source
Open Source
MIT
2,017
itertools
ACW1
PHP
Code
451
1,545
<?php /** * @author Boudewijn Schoon <boudewijn@zicht.nl> * @copyright Zicht Online <http://zicht.nl> */ namespace Zicht\ItertoolsTest; use Zicht\Itertools; /** * Class FilterTest * * @package Zicht\ItertoolsTest */ class FilterTest extends \PHPUnit_Framework_TestCase { /** * Test good sequences ...
2,997
https://github.com/hexbee-net/parquet-go/blob/master/datastore/float.go
Github Open Source
Open Source
MIT
null
parquet-go
hexbee-net
Go
Code
339
964
package datastore //nolint:dupl // it's cleaner to keep each type separate, even with duplication import ( "encoding/binary" "math" "github.com/hexbee-net/errors" "github.com/hexbee-net/parquet/parquet" ) const sizeFloat = 4 type FloatStore struct { valueStore min float32 max float32 } // NewFloatStore crea...
30,169
https://github.com/Sirtwitter/NPC-AI-Kit/blob/master/Data/Scripts/LeapAbility.lua
Github Open Source
Open Source
Apache-2.0
2,021
NPC-AI-Kit
Sirtwitter
Lua
Code
48
183
--[[ Leap Ability v1.0 by: standardcombo Gives the player a vertical impulse when the ability executes. --]] local ABILITY = script.parent local LEAP_AMOUNT = script:GetCustomProperty("LeapAmount") local LEAP_EFFECTS = script:GetCustomProperty("LeapEffects") function OnExecute(ability) local player = ability....
31,783
https://github.com/acedece14/kotlin-vk-api/blob/master/vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/account/LookupContactsService.kt
Github Open Source
Open Source
MIT
2,018
kotlin-vk-api
acedece14
Kotlin
Code
43
197
package name.alatushkin.api.vk.generated.account import com.fasterxml.jackson.annotation.JsonCreator import com.fasterxml.jackson.annotation.JsonValue enum class LookupContactsService(@JsonValue val jsonValue: String) { EMAIL("email"), PHONE("phone"), TWITTER("twitter"), FACEBOOK("facebook"), ODNOKLASSNIKI("...
28,625
https://github.com/FieryInferno/rekap_keluhan/blob/master/application/controllers/Pegawai.php
Github Open Source
Open Source
MIT
null
rekap_keluhan
FieryInferno
PHP
Code
299
1,681
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Pegawai extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('Konten_model', 'Menu_model', 'Pelanggan_model'); is_logged_in(); } public function index() {...
23,939
https://github.com/devopvoid/webrtc-java/blob/master/webrtc-jni/src/main/cpp/src/JNI_VideoBufferConverter.cpp
Github Open Source
Open Source
BSD-3-Clause, DOC, LicenseRef-scancode-html5, Apache-2.0
2,023
webrtc-java
devopvoid
C++
Code
417
1,449
/* * Copyright 2019 Alex Andres * * 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 ...
14,370
https://github.com/Nepxion/Marvel/blob/master/nepxion-swing/src/com/nepxion/swing/framework/ribbon/xml/Dom4JRibbonParser.java
Github Open Source
Open Source
Apache-2.0
2,021
Marvel
Nepxion
Java
Code
2,422
8,300
package com.nepxion.swing.framework.ribbon.xml; /** * <p>Title: Nepxion Swing</p> * <p>Description: Nepxion Swing Repository</p> * <p>Copyright: Copyright (c) 2010</p> * <p>Company: Nepxion</p> * @author Neptune * @email 1394997@qq.com * @version 1.0 */ import java.awt.Insets; import java.awt.LayoutManager; i...
28,056
https://github.com/andremirt/v_cond/blob/master/gamess/libqc/src/matrix/plot.cpp
Github Open Source
Open Source
Unlicense
null
v_cond
andremirt
C++
Code
679
2,819
#include "plot.hpp" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkStructuredGridGeometryFilter.h" #include "vtkActor.h" #include "vtkAxesActor.h" #include "vtkCamera.h" #include "vtkCaptionActor2D.h" #include "vtkContourFilter.h" #include "vtkDataSetMapper.h...
49,938
https://github.com/churcho/css-grid-a-day/blob/master/src/components/email-client/application.module.scss
Github Open Source
Open Source
MIT
2,019
css-grid-a-day
churcho
SCSS
Code
272
1,018
@import "../../styles/_tools.respond_to.sass"; .container { display: grid; grid-template-columns: 200px 1fr 1.3fr; grid-template-rows: 50px 1fr; min-height: 100vh; grid-gap: 0 1px; position: relative; background: #EBEBEB; grid-template-areas: "header header header" "sidebar list view"; } .head...
46,900
https://github.com/mjm/html-to-tweets/blob/master/test/split.test.ts
Github Open Source
Open Source
ISC
2,019
html-to-tweets
mjm
TypeScript
Code
166
415
import { split } from "../src/split" test("does not split if tweet is short enough", () => { const input = { body: "abcd ".repeat(56), mediaURLs: [], } expect(split(input)).toMatchSnapshot() }) test("splits tweets along word boundaries", () => { const input = { body: "abcd ".repeat(57), media...
41,601
https://github.com/Y-D-Lu/rr_frameworks_base/blob/master/wifi/java/android/net/wifi/hotspot2/ProvisioningCallback.java
Github Open Source
Open Source
Apache-2.0
null
rr_frameworks_base
Y-D-Lu
Java
Code
471
940
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
24,692
https://github.com/cchalmers/diagrams-backend-tests/blob/master/src/Diagrams/Test/Cairo.hs
Github Open Source
Open Source
BSD-3-Clause
2,014
diagrams-backend-tests
cchalmers
Haskell
Code
77
204
module Diagrams.Test.Cairo (cairoTester) where import Diagrams.Backend.Cairo import Diagrams.Backend.Cairo.Internal import Diagrams.Prelude hiding (D, (<.>)) import Diagrams.Tests import System.FilePath ((</>),(<.>)) import Text.Html as H hiding ((</>)) cairoTester :: (String, Test -> IO Html) cairoTester = ( "cair...
51,900
https://github.com/xylonx/UniqueRecruitmentSystem/blob/master/packages/candidate-dashboard/src/components/Reset/index.tsx
Github Open Source
Open Source
MIT
2,021
UniqueRecruitmentSystem
xylonx
TSX
Code
230
701
import { t, Trans } from '@lingui/macro'; import { Box, Button, Stack } from '@material-ui/core'; import { LoadingButton } from '@material-ui/lab'; import { validateCode, validatePhone } from '@uniqs/utils'; import React, { FC } from 'react'; import { SubmitHandler, useForm } from 'react-hook-form'; import { useHistory...
3,640
https://github.com/jaxesn/eks-anywhere-build-tooling/blob/master/projects/replicatedhq/troubleshoot/patches/0001-Replace-promptui-mod-to-mitigate-LGPL-dependency.patch
Github Open Source
Open Source
Apache-2.0
null
eks-anywhere-build-tooling
jaxesn
null
Spoken
142
460
From b6c334e70a201503f4a4995e505a75ab92fc7a82 Mon Sep 17 00:00:00 2001 From: Abhay Krishna Arunachalam <arnchlm@amazon.com> Date: Mon, 13 Sep 2021 20:03:18 -0700 Subject: [PATCH] Replace promptui mod to mitigate LGPL dependency Troubleshoot has a dependency on the manifoldco/promptui module, which in turn has a depend...
50,334
https://github.com/Albeoris/Troublemaker/blob/master/Troublemaker.Xml/Dialogs/DialogActionUpdateSteamAchievement.cs
Github Open Source
Open Source
MIT
null
Troublemaker
Albeoris
C#
Code
23
101
using System; namespace Troublemaker.Xml.Dialogs { [XPath("self::property[@Type='UpdateSteamAchievement']")] public sealed class DialogActionUpdateSteamAchievement : DialogAction { [XPath("@C_Achievement")] public String Achievement; [XPath("@C_Achieved")] public String Achieved; } }
8,725
https://github.com/meet1993shah/azure-sdk-for-net/blob/master/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResourcePropertiesOfferDetail.cs
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT, LGPL-2.1-or-later, Apache-2.0
2,021
azure-sdk-for-net
meet1993shah
C#
Code
232
592
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
32,012
https://github.com/punica-box/japan-hackathon-box/blob/master/#2-mesi/src/modules/contract.ts
Github Open Source
Open Source
MIT
2,018
japan-hackathon-box
punica-box
TypeScript
Code
1,244
4,086
import { AbiInfo, Parameter, ParameterType, RestClient } from "ontology-ts-sdk"; import * as json from "./helloworld.abi.json"; import { Dispatch, Action } from "redux"; import { client } from "ontology-dapi"; import { HumanData, Ibid, Company, ResultAuction } from "../interface"; import { onScCall } from "../domain/in...
17,387
https://github.com/2572418665/pharmacy/blob/master/ruoyi-ui/src/api/pharmacy/prescription.js
Github Open Source
Open Source
MIT
null
pharmacy
2572418665
JavaScript
Code
100
327
import request from '@/utils/request' // 查询处方列表 export function listPrescription(query) { return request({ url: '/pharmacy/prescription/list', method: 'get', params: query }) } // 查询处方详细 export function getPrescription(id) { return request({ url: '/pharmacy/prescription/' + id, method: 'get'...
39,258
https://github.com/AnotherSuperIntensiveMinecraftPlayer/ATACS/blob/master/src/partial_order.h
Github Open Source
Open Source
Apache-2.0
2,020
ATACS
AnotherSuperIntensiveMinecraftPlayer
C++
Code
175
670
#ifndef _partial_order_h #define _partial_order_h #include <string.h> #include "struct.h" #include "satconf.h" #include "memaloc.h" #include "def.h" #include "loadg.h" #include "ly.h" //for OUT and IN and DUMMY #include <list> #include <ext/hash_map> bool partial_order(char *filename, bool verbose, bool dont_optimiz...
47,708
https://github.com/mohankri/network-ddk/blob/master/dpdk-2.2.0/lib/librte_tcp/net/if_bridge.c
Github Open Source
Open Source
BSD-3-Clause
null
network-ddk
mohankri
C
Code
6,722
22,271
/* $NetBSD: if_bridge.c,v 1.70 2009/05/17 11:34:21 cegger Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. * All rights reserved. * * Written by Jason R. Thorpe for Wasabi Systems, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
41,451
https://github.com/trackterraorg/trackterra-api/blob/master/libs/tax-apps/src/apps/cryptotaxcalculator.taxapp.ts
Github Open Source
Open Source
MIT
2,022
trackterra-api
trackterraorg
TypeScript
Code
231
790
import { seperateIndexFromToken, timeToUtc } from '@trackterra/common'; import { TxTag } from '@trackterra/parser/parser'; import _ = require('lodash'); import { ITaxApp } from '../interfaces/base.taxapp.interface'; import { AppAttrType, RowFormatterType } from './app.types'; import { BaseTaxApp } from './base.taxapp';...
45,564
https://github.com/jon-kizzang/kizzangapi/blob/master/www/application/db/ruckusing.conf.php
Github Open Source
Open Source
Apache-2.0
2,017
kizzangapi
jon-kizzang
PHP
Code
277
990
<?php //$ruckusBase=dirname(__FILE__) . '/../../../../lib/ruckus'; $env = 'ENV_DEV'; $system_path = '../../vendor/rogeriopradoj/codeigniter/system'; if (realpath($system_path) !== FALSE) { $system_path = realpath($system_path).'/'; } // ensure there's a trailing slash $system_path = rtrim($system_path, '/').'/'; ...
52,042
https://github.com/JFrankfurt/cluster/blob/master/src/server/api/utils.js
Github Open Source
Open Source
MIT
2,018
cluster
JFrankfurt
JavaScript
Code
67
246
const fetch = require('node-fetch') module.exports = async ticker => { let {rawPairs} = await fetch('https://exchanges.balanc3.net/coins').then(x => x.json()) const options = Object.keys(rawPairs) .reduce((acc, cur) => { let tickers = cur.split('_') // sold_bought (i.e., ETH price in USD is...
46,914
https://github.com/srph/dream-rose/blob/master/app/views/pages/item/create.blade.php
Github Open Source
Open Source
zlib-acknowledgement
2,018
dream-rose
srph
PHP
Code
334
1,346
@extends('templates.default') @section('title') - Post New Item @stop @section('content') <h4> Post New Item </h4> <hr> <div class="row"> <div class="col-md-8"> <div class="alert alert-warning"> <p> Fields with the red asterisk (<span class="off">*</span>) are required </p> </div> {{ Form::open(a...
16,355
https://github.com/Pigaco/libpiga/blob/master/common/src/player.c
Github Open Source
Open Source
Apache-2.0
2,016
libpiga
Pigaco
C
Code
244
1,015
#include <stdlib.h> #include <piga/internal/piga_player_struct.h> piga_player* piga_player_create() { piga_player *player = (piga_player*) malloc(sizeof(piga_player)); piga_player_init((char* ) player); return player; } void piga_player_init(char* memory) { piga_player *player = (piga_player*) memory; ...
28,315
https://github.com/daisy1754/Artemis/blob/master/artemis-code/src/concolic/solver/expressionprinter.cpp
Github Open Source
Open Source
Apache-2.0
2,013
Artemis
daisy1754
C++
Code
343
1,146
/* * Copyright 2012 Aarhus University * * 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,640
https://github.com/VassilievVV/SpreadCommander/blob/master/SpreadCommander.Common/Script/Book/DataTableOptions.cs
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,022
SpreadCommander
VassilievVV
C#
Code
996
3,179
using DevExpress.Spreadsheet; using DevExpress.XtraRichEdit.API.Native; using SpreadCommander.Common.Code; using SpreadCommander.Common.Parsers.ConsoleScript; using SpreadCommander.Common.Script.Spreadsheet; using SpreadCommander.Common.ScriptEngines.ConsoleCommands; using SpreadCommander.Common.Spreadsheet; using Sys...
29,074
https://github.com/magnusnordlander/fifty-fifty/blob/master/src/ViewControllers/Menus/MenuViewController.cpp
Github Open Source
Open Source
MIT
2,022
fifty-fifty
magnusnordlander
C++
Code
257
956
// // Created by Magnus Nordlander on 2021-02-06. // #include "MenuViewController.h" #include <utility> #define MENU_ROW_HEIGHT 14 void MenuViewController::render(U8G2 display) { display.setFontMode(1); display.setDrawColor(2); display.setFont(u8g2_font_ncenB08_tr); unsigned int numMenuItems = this...
22,408
https://github.com/royaljayaprakash/SpringWithJPA/blob/master/SpringWithJPA-master/src/main/java/com/dev/controller/UpdateController.java
Github Open Source
Open Source
MIT
null
SpringWithJPA
royaljayaprakash
Java
Code
78
375
package com.dev.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; ...
41,381
https://github.com/96liuzhixin/DFRobot_bmm150/blob/master/python/raspberrypi/examples/data_ready_interrupt/data_readly_interrupt.py
Github Open Source
Open Source
MIT
2,021
DFRobot_bmm150
96liuzhixin
Python
Code
162
688
# -*- coding:utf-8 -*- """ @file data_readly_interrupt.py @brief get geomagnetic data @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) @licence The MIT License (MIT) @author [ZhixinLiu](zhixin.liu@dfrobot.com) version V1.0 date 2021-03-02 @get from https://www.dfrobot.c...
50,753
https://github.com/jpaulos/opt_control/blob/master/ROS/opt_control/include/evolve_waypoints.h
Github Open Source
Open Source
BSD-3-Clause
2,020
opt_control
jpaulos
C
Code
82
224
/* * Student License - for use by students to meet course requirements and * perform academic research at degree granting institutions only. Not * for government, commercial, or other organizational use. * * evolve_waypoints.h * * Code generation for function 'evolve_waypoints' * */ #ifndef EVOLVE_WAYPOINTS_...
32,020
https://github.com/lijingdetime/weixinMinApp/blob/master/fishBooked/fish/migrations/0016_auto_20171112_1631.py
Github Open Source
Open Source
MIT
null
weixinMinApp
lijingdetime
Python
Code
90
420
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-11-12 08:31 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('fish', '0015_auto_20171112_1618'), ] ...
31,178
https://github.com/Muthaias/quick-poll/blob/master/quick_poll/endpoints/auth.py
Github Open Source
Open Source
MIT
2,022
quick-poll
Muthaias
Python
Code
127
503
from flask import current_app from flask_httpauth import HTTPBasicAuth, HTTPTokenAuth, MultiAuth import jwt basic_auth = HTTPBasicAuth() @basic_auth.verify_password def verify_password(username, password): if not current_app.config.get("QUICKPOLL_SIMPLE_AUTH", True): return False if username != "" ...
34,065
https://github.com/calebgregory/portfolio/blob/master/app/templates/partials/footer.jade
Github Open Source
Open Source
MIT
null
portfolio
calebgregory
null
Spoken
4
11
footer p FOOTER HERE
52,149