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/ear/advent-of-code-2016/blob/master/common/Advent.hs
Github Open Source
Open Source
0BSD
null
advent-of-code-2016
ear
Haskell
Code
90
206
{-# OPTIONS_GHC -Wno-incomplete-patterns #-} module Advent ( module Advent ) where import System.Environment (getArgs) import Text.Printf (printf) getRawInput :: Int {- ^ day number -} -> IO String getRawInput n = do args <- getArgs case args of [] -> readFile (printf "inputs/input-%02d.txt" n) ...
38,440
https://github.com/zjamshidi/audio_service/blob/master/android/src/main/java/com/ryanheise/audioservice/AudioInterruption.java
Github Open Source
Open Source
MIT
2,020
audio_service
zjamshidi
Java
Code
11
49
package com.ryanheise.audioservice; public enum AudioInterruption { pause, temporaryPause, temporaryDuck, unknownPause, }
37,169
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-groundstation/include/aws/groundstation/model/RegisterAgentResult.h
Github Open Source
Open Source
Apache-2.0, MIT, JSON
2,023
aws-sdk-cpp
aws
C++
Code
256
837
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/groundstation/GroundStation_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebSer...
21,992
https://github.com/SmartVanYT/TaskManagerIO/blob/master/examples/eventHandling/eventHandling.ino
Github Open Source
Open Source
Apache-2.0
null
TaskManagerIO
SmartVanYT
null
Spoken
718
1,242
/** * An example simple event that simulates a dice and an interrupt on a pin. When the dice simulated by random reads * 3 then we raise an event. This is a polled event meaning that we rely on task manager polling to "roll the dice". * Further, there is a basic interrupt on a selected pin that is not marshalled by ...
17,648
https://github.com/lbdm44/checkup/blob/master/packages/core/__tests__/utils/merge-lint-config-test.ts
Github Open Source
Open Source
MIT
2,022
checkup
lbdm44
TypeScript
Code
559
1,882
import { CLIEngine } from 'eslint'; import { mergeLintConfig } from '../../src/utils/merge-lint-config'; import { TemplateLintConfig } from '../../src/types/ember-template-lint'; describe('mergeLintConfig', () => { describe('eslint', () => { it('should merge strings and tuples when strings are leftmost, tuple ta...
52,381
https://github.com/ChillFish8/axum/blob/master/src/handler/mod.rs
Github Open Source
Open Source
MIT
2,021
axum
ChillFish8
Rust
Code
2,234
6,096
//! Async functions that can be used to handle requests. use crate::{ body::{box_body, BoxBody}, extract::FromRequest, response::IntoResponse, routing::{future::RouteFuture, EmptyRouter, MethodFilter}, service::{HandleError, HandleErrorFromRouter}, }; use async_trait::async_trait; use bytes::Bytes;...
11,549
https://github.com/SLIPO-EU/workbench/blob/master/webapp/src/main/java/eu/slipo/workbench/web/model/provenance/Feature.java
Github Open Source
Open Source
Apache-2.0
2,020
workbench
SLIPO-EU
Java
Code
52
165
package eu.slipo.workbench.web.model.provenance; import java.util.Map; import com.vividsolutions.jts.geom.Geometry; public class Feature { private Geometry geometry; private Map<String, String> properties; public Map<String, String> getProperties() { return properties; } public void se...
14,758
https://github.com/jaspreetssethi/sgine/blob/master/ui/src/main/scala/org/sgine/ui/render/ReusableByteBuffer.scala
Github Open Source
Open Source
BSD-3-Clause
null
sgine
jaspreetssethi
Scala
Code
217
490
package org.sgine.ui.render import java.nio.{ByteOrder, ByteBuffer} import java.lang.ThreadLocal /** * Provides a thread-local instance of a direct ByteBuffer to be re-used without creating excess garbage or memory * consumption. * * @author Matt Hicks <mhicks@sgine.org> */ private class ReusableByteBuffer { p...
51,483
https://github.com/brianway/algorithms-learning/blob/master/algorithms-algs4/src/main/java/com/brianway/learning/algorithms/algs4utils/DirectedCycle.java
Github Open Source
Open Source
Apache-2.0
2,021
algorithms-learning
brianway
Java
Code
777
1,717
/****************************************************************************** * Compilation: javac DirectedCycle.java * Execution: java DirectedCycle input.txt * Dependencies: Digraph.java Stack.java StdOut.java In.java * Data files: http://algs4.cs.princeton.edu/42digraph/tinyDG.txt * http://algs4.cs.prin...
12,048
https://github.com/Rickcy/kubegres/blob/master/scripts/WriteYamlTemplatesInGoFile.go
Github Open Source
Open Source
Apache-2.0
2,022
kubegres
Rickcy
Go
Code
307
705
/* Copyright 2021 Reactive Tech Limited. "Reactive Tech Limited" is a company located in England, United Kingdom. https://www.reactive-tech.io Lead Developer: Alex Arica 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 co...
11,758
https://github.com/msanssouci/projektor/blob/master/server/server-app/src/main/kotlin/projektor/notification/NotificationConfig.kt
Github Open Source
Open Source
MIT
2,022
projektor
msanssouci
Kotlin
Code
27
96
package projektor.notification import io.ktor.config.* data class NotificationConfig(val serverBaseUrl: String?) { companion object { fun createNotificationConfig(applicationConfig: ApplicationConfig): NotificationConfig { val serverBaseUrl = applicationConfig.propertyOrNull("ktor.notification...
17,979
https://github.com/Retera/WarsmashModEngine/blob/master/core/src/com/etheller/warsmash/viewer5/handlers/w3x/simulation/combat/CWeaponType.java
Github Open Source
Open Source
MIT, GPL-1.0-or-later
2,023
WarsmashModEngine
Retera
Java
Code
38
172
package com.etheller.warsmash.viewer5.handlers.w3x.simulation.combat; public enum CWeaponType { NORMAL, INSTANT, ARTILLERY, ALINE, MISSILE, MSPLASH, MBOUNCE, MLINE; public static CWeaponType parseWeaponType(final String weaponTypeString) { return valueOf(weaponTypeString.toUpperCase()); } public boolean...
10,522
https://github.com/UMI3D/UMI3D-SDK/blob/master/UMI3D-SDK/Assets/UMI3D SDK/ClientDevelopmentKit/InteractionSystem/Runtime/Interaction/FileUploader.cs
Github Open Source
Open Source
Apache-2.0
2,022
UMI3D-SDK
UMI3D
C#
Code
467
1,103
/* Copyright 2019 - 2021 Inetum 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 writing, software d...
25,940
https://github.com/getsocial-im/getsocial-unity-sdk/blob/master/example/GetSocialSdkDemo/Assets/GetSocial/Scripts/Ui/Platforms/Android/AndroidJavaProxy/ActionListenerProxy.cs
Github Open Source
Open Source
Apache-2.0
2,020
getsocial-unity-sdk
getsocial-im
C#
Code
49
194
#if UNITY_ANDROID using System; using System.Diagnostics.CodeAnalysis; using GetSocialSdk.Core; using UnityEngine; namespace GetSocialSdk.Ui { [SuppressMessage("ReSharper", "UnusedMember.Local")] public class ActionListenerProxy : JavaInterfaceProxy { readonly ActionListener _internal; p...
1,696
https://github.com/fia-net/cpp-commons/blob/master/config/config.mk
Github Open Source
Open Source
Apache-2.0
null
cpp-commons
fia-net
Makefile
Code
17
96
# Configuration file for FIA-NET cpp-commons export FIANET_COMMONS_CONFIG_DIR=$(FIANET_COMMONS_DIR)/config # architecture info include $(FIANET_COMMONS_CONFIG_DIR)/arch/x86.mk # googletest include $(FIANET_COMMONS_CONFIG_DIR)/gtest/gtest-usr-local.mk
8,343
https://github.com/FedeMoli/Compilador-Micro/blob/master/Microo/src/Analizador/Scanner.java
Github Open Source
Open Source
Apache-2.0
null
Compilador-Micro
FedeMoli
Java
Code
2,815
15,563
/* The following code was generated by JFlex 1.6.1 */ package Analizador; import java_cup.runtime.Symbol; import java.lang.Character; /** * This class is a scanner generated by * <a href="http://www.jflex.de/">JFlex</a> 1.6.1 * from the specification file <tt>C:/Users/Lenovo-PC/Documents/Microo/src/Analizador/A...
17,530
https://github.com/knokko/RPG-Mod-1.7.10/blob/master/src/main/java/knokko/rpg/worldgen/firelands/FireLandsProvider.java
Github Open Source
Open Source
MIT
null
RPG-Mod-1.7.10
knokko
Java
Code
130
565
package knokko.rpg.worldgen.firelands; import java.util.Random; import knokko.rpg.entity.creature.EntityFireEye; import knokko.rpg.entity.monster.EntityFireDragon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.Entity; import net.minecraft.util.Vec3; import n...
6,341
https://github.com/ubikloadpack/jmeter/blob/master/build.properties
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown, OFL-1.1, MPL-2.0, xpp, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference
2,019
jmeter
ubikloadpack
null
Spoken
1,552
14,744
# 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 ma...
25,487
https://github.com/sinoz/Rabyrinth/blob/master/src/main/java/rabyrinth/gdx/screen/loading/ui/ProgressText.java
Github Open Source
Open Source
Apache-2.0
null
Rabyrinth
sinoz
Java
Code
38
132
package rabyrinth.gdx.screen.loading.ui; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.badlogic.gdx.scenes.scene2d.ui.Skin; /** @author Sino */ public final class ProgressText extends Label { public ProgressText(Skin skin) { super("Loading... 0%", skin); } public void setPercentage(float percentag...
26,931
https://github.com/AndersKaareEide/Masterprosjekt/blob/master/src/main/kotlin/sidepanels/propertypanel/PropListFragment.kt
Github Open Source
Open Source
BSD-3-Clause
null
Masterprosjekt
AndersKaareEide
Kotlin
Code
84
300
package sidepanels.propertypanel import javafx.geometry.Pos import javafx.scene.layout.Priority import tornadofx.* class PropListFragment() : ListCellFragment<PropositionItem>() { val controller: PropPanelController by inject() val proposition = PropItemModel(itemProperty) override val root = hbox { ...
22,634
https://github.com/WilliamGoossen/epsos-common-components.gnomonportal/blob/master/webapps/ROOT/html/portlet/ext/struts_includes/button.jsp
Github Open Source
Open Source
Apache-2.0
2,012
epsos-common-components.gnomonportal
WilliamGoossen
null
Spoken
799
3,079
<%@ include file="/html/common/init.jsp" %> <tiles:useAttribute id="tilesAction" name="action" classname="java.lang.String"/> <tiles:useAttribute id="tilesActionPortlet" name="actionPortlet" classname="java.lang.String" ignore="true"/> <tiles:useAttribute id="tilesConfirm" name="confirm" classname="java.lang.String" i...
16,555
https://github.com/khaliddermoumi/intellij-hcl/blob/master/src/kotlin/org/intellij/plugins/hcl/editor/HCLCommenter.kt
Github Open Source
Open Source
Apache-2.0
null
intellij-hcl
khaliddermoumi
Kotlin
Code
262
836
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
49,616
https://github.com/CachopAIDA/gilded-rose-kata/blob/master/csharp/Program.cs
Github Open Source
Open Source
MIT
null
gilded-rose-kata
CachopAIDA
C#
Code
160
472
using System; using System.Collections.Generic; namespace csharp { public class Program { public static void Main(string[] args) { Console.WriteLine("OMGHAI!"); IList<Item> Items = new List<Item>{ Item.CreateInstance(name: "+5 Dexterity Vest", sellIn: 1...
49,457
https://github.com/mireiffe/mas109_matlab_2021_1/blob/master/_codes/weeks/week10/my_rref.m
Github Open Source
Open Source
MIT
2,021
mas109_matlab_2021_1
mireiffe
MATLAB
Code
265
629
function rref_A = my_rref(A) % Find the reduced row echelon form of A % by performing Gauss-Jordan elimination with partial pivoting. [m, n] = size(A); rref_A = A; % Initialization of rref_A as A. % Forward Phase with row interchanges. rowIdx = 1; % Count row. for colIdx = 1:n % Find element to interchange two ro...
18,984
https://github.com/KotShiro/human-readable-number/blob/master/src/index.js
Github Open Source
Open Source
MIT
null
human-readable-number
KotShiro
JavaScript
Code
200
497
numbersList = { 1 : 'one', 2 : 'two', 3 : 'three', 4 : 'four', 5 : 'five', 6 : 'six', 7 : 'seven', 8 : 'eight', 9 : 'nine', 10 : 'ten', 11 : 'eleven', 12 : 'twelve', 13 : 'thirteen', 14 : 'fourteen', 15 : 'fifteen', 16 : 'sixteen', 17 : 'seventeen', 18 : 'eighteen', 19 : 'nineteen', 20 : 'twenty', 30 : 'thirty', 40 ...
3,369
https://github.com/arc-vmware/daml/blob/master/ledger/ledger-api-bench-tool/src/main/scala/com/daml/ledger/api/benchtool/Cli.scala
Github Open Source
Open Source
Apache-2.0
2,021
daml
arc-vmware
Scala
Code
806
2,936
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.ledger.api.benchtool import com.daml.ledger.api.benchtool.Config.StreamConfig import com.daml.ledger.api.tls.TlsConfigurationCli import com.daml.ledger.api.v1.ledg...
14,340
https://github.com/atgatt/atgatt-backend/blob/master/application/parsers/snell_helmet_parser.go
Github Open Source
Open Source
Apache-2.0
2,021
atgatt-backend
atgatt
Go
Code
203
639
package parsers import ( "atgatt-backend/persistence/entities" "encoding/json" "errors" "io/ioutil" "net/http" "strings" ) // SNELLHelmetParser contains functions used to retrieve SNELL's helmet data via their JSON API type SNELLHelmetParser struct { } // SNELLHelmetsResponse represents the data returned from ...
43,534
https://github.com/briancabbott/GitHub-Repository-Downloader/blob/master/TypeScript/resources/code/ts_lib/Apollo-Latest/apollographql/apollo-rs/crates/apollo-parser/test_data/parser/err/0043_type_with_trailing_garbage.graphql
Github Open Source
Open Source
MIT, Apache-2.0
2,023
GitHub-Repository-Downloader
briancabbott
null
Spoken
12
34
type Person { id: ID! appearedIn: [Film]s name: String directed: [Film] }
42,399
https://github.com/anthonyalbertyn/react-context-demo/blob/master/context-demo/src/App.js
Github Open Source
Open Source
MIT
null
react-context-demo
anthonyalbertyn
JavaScript
Code
67
193
import React from 'react'; import './App.css'; import MyContext from './MyContext'; import { Organisim } from './Organisim'; const App = () => { const getRandomNumber = (maximum) => { return Math.floor(Math.random() * maximum); }; const contextData = { firstName: "John", lastName: "Doe", profes...
24,854
https://github.com/mmcclain117/School-Code/blob/master/High School/HS-Extra-Code/Calculator/src/Main.java
Github Open Source
Open Source
Apache-2.0
2,020
School-Code
mmcclain117
Java
Code
27
61
/** * * @author Jacob */ public class Main { public static void main(String[] args) { Canvas c = new Canvas(); c.fillRect(10, 10, 15, 15); } }
33,091
https://github.com/openeuler-mirror/radiaTest/blob/master/radiaTest-web/src/views/caseManage/folderView/taskDetails/modules/details.js
Github Open Source
Open Source
MulanPSL-1.0
null
radiaTest
openeuler-mirror
JavaScript
Code
965
3,055
import { ref, h } from 'vue'; import axios from '@/axios.js'; import { createCaseReview } from '@/api/post'; import { formatTime } from '@/assets/utils/dateFormatUtils.js'; import router from '@/router'; import { NButton, NFormItem, NInput, NSpace } from 'naive-ui'; import { getCaseDetail } from '@/api/get'; import { e...
43,047
https://github.com/yangkedc1984/Source_Codes_Collected/blob/master/osrm-backend/include/engine/routing_algorithms/alternative_path.hpp
Github Open Source
Open Source
BSD-2-Clause
2,020
Source_Codes_Collected
yangkedc1984
C++
Code
45
208
#ifndef ALTERNATIVE_PATH_ROUTING_HPP #define ALTERNATIVE_PATH_ROUTING_HPP #include "engine/datafacade/contiguous_internalmem_datafacade.hpp" #include "engine/internal_route_result.hpp" #include "engine/algorithm.hpp" #include "engine/search_engine_data.hpp" #include "util/exception.hpp" namespace osrm { namespace e...
18,013
https://github.com/intrigus/CN1WindowsPort/blob/master/src/java/util/TimeZone.cs
Github Open Source
Open Source
MIT
2,016
CN1WindowsPort
intrigus
C#
Code
4,039
17,871
// Automatically generated by xmlvm2csharp (do not edit). using org.xmlvm; namespace java.util { public abstract class TimeZone: global::java.lang.Object,global::java.io.Serializable,global::java.lang.Cloneable { static TimeZone() { @static(); } public static int _fSHORT = 0; public static int _fLONG = 1; pri...
13,928
https://github.com/ZsofiaFarago/afp2_trio/blob/master/Project/protected/subpages/training/resources/views/cart.blade.php
Github Open Source
Open Source
MIT
2,021
afp2_trio
ZsofiaFarago
Blade
Code
119
607
@extends('layouts.master') @section("content") <div class="custom-product" style="padding-top: 5%; padding-left: 20%;"> <div class="col-sm-12 col-md-10 col-md-offset-1"> <table class="table table-hover"> <thead> <tr> <th><h2>Termékek</h2></th> <th class="text-center">Ár</th> <th> </th> </tr> </thead> ...
56,121
https://github.com/killua001/pgoparser/blob/master/tokenizer/word.go
Github Open Source
Open Source
Apache-2.0
2,020
pgoparser
killua001
Go
Code
143
277
package tokenizer import ( "github.com/elliotcourant/pgoparser/keywords" "github.com/elliotcourant/pgoparser/tokens" ) // tokenizeWord will consume the first character as the identifier start. It will then consume every valid following // character until it finds a character that it cannot consume. func (t *Tokeniz...
20,916
https://github.com/olsthoorn-group/account-domain/blob/master/tests/Identity/Commands/ActivateAccountTest.php
Github Open Source
Open Source
MIT
null
account-domain
olsthoorn-group
PHP
Code
41
210
<?php namespace OG\Account\Test\Domain\Identity\Commands; use OG\Account\Domain\Identity\Commands\ActivateAccount; use OG\Account\Domain\Identity\Model\ActivationCode; use OG\Account\Domain\Identity\Model\Email; class ActivateAccountTest extends \PHPUnit_Framework_TestCase { /** * @test */ public f...
42,167
https://github.com/Nukami/Metaresc/blob/master/tests/smoke_json.c
Github Open Source
Open Source
MIT
2,022
Metaresc
Nukami
C
Code
4
20
#include <smoke.h> SMOKE_METHOD (JSON)
14,211
https://github.com/CarGuo/LazyRecyclerAdapter/blob/master/app-kotlin/src/main/java/example/shuyu/recycler/kotlin/bind/holder/BindNoDataHolder.kt
Github Open Source
Open Source
MIT
2,022
LazyRecyclerAdapter
CarGuo
Kotlin
Code
80
313
package example.shuyu.recycler.kotlin.bind.holder import android.content.Context import android.view.View import example.shuyu.recycler.kotlin.R import com.shuyu.commonrecycler.BindRecyclerBaseHolder /** * 继承BindRecyclerBaseHolder的Holder,可用在普通recyclerView的adapter * * * 空数据Holder * Created by shuyu on 2016/11/23...
41,955
https://github.com/tracid56/Tounci-OldHelywan/blob/master/resources/[DARK_DEV]/esx_Useable_Items/__resource.lua
Github Open Source
Open Source
MIT
2,020
Tounci-OldHelywan
tracid56
Lua
Code
26
97
------ -- InteractSound by Atri for SunnyIsland -- Verstion: v0.0.1 --With help of Morow Big thanks to him ! ------ resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" client_script 'client.lua' server_script 'server.lua'
53,348
https://github.com/avlijastefan/laravel-crud/blob/master/app/Http/Controllers/PageController.php
Github Open Source
Open Source
MIT
2,020
laravel-crud
avlijastefan
PHP
Code
27
84
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class PageController extends Controller { public function index (Request $request) { $page_title = 'Index'; return view('index',[ 'page_title' => $page_title ]); } }
40,564
https://github.com/talalabbas84/my-portfolio/blob/master/node_modules/braintreehttp/spec/unit/serializer/multipart_spec.js
Github Open Source
Open Source
MIT
2,020
my-portfolio
talalabbas84
JavaScript
Code
176
713
'use strict'; let Multipart = require('../../../lib/braintreehttp/serializer/multipart'); let FormPart = Multipart.FormPart; describe('multipart serializer', function () { let multipartSerializer = new Multipart.Multipart(); describe('_filetype', function () { it('returns image/jpeg for *.jpg filename', func...
268
https://github.com/Littink/gtad/blob/master/gtad_lib/dataset.py
Github Open Source
Open Source
Apache-2.0
null
gtad
Littink
Python
Code
1,046
4,560
# -*- coding: utf-8 -*- import os import numpy as np import pandas as pd import json, pickle import torch.utils.data as data import torch import h5py def ioa_with_anchors(anchors_min, anchors_max, box_min, box_max): # calculate the overlap proportion between the anchor and all bbox for supervise signal, # the ...
50,087
https://github.com/286545761/Elastos.App.UnionSquare.iOS/blob/master/ELA/Wallet/walletCreate/HWMQrCodeScanningResultsViewController.h
Github Open Source
Open Source
MIT
null
Elastos.App.UnionSquare.iOS
286545761
C
Code
29
131
// // HWMQrCodeScanningResultsViewController.h // elastos wallet // // Created by 韩铭文 on 2019/8/26. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface HWMQrCodeScanningResultsViewController : UIViewController /* *<# #> */ @property(copy,nonatomic)NSString *resultString; @end NS_ASSUME_NONNULL_END
53,841
https://github.com/ZhaoKaiQiang/OkHttpPlus/blob/master/library/src/main/java/com/socks/okhttp/plus/builder/GetRequestBuilder.java
Github Open Source
Open Source
Apache-2.0
2,022
OkHttpPlus
ZhaoKaiQiang
Java
Code
213
638
package com.socks.okhttp.plus.builder; import android.text.TextUtils; import com.socks.okhttp.plus.OkHttpProxy; import com.socks.okhttp.plus.callback.OkCallback; import okhttp3.Call; import okhttp3.Callback; import okhttp3.Request; import okhttp3.Response; import java.io.IOException; import java.util.HashMap; import...
33,599
https://github.com/fabriziodemaria/flo/blob/master/workflow/src/main/java/io/rouz/flo/Util.java
Github Open Source
Open Source
Apache-2.0
2,017
flo
fabriziodemaria
Java
Code
64
268
package io.rouz.flo; import static org.fusesource.jansi.Ansi.Color.CYAN; import static org.fusesource.jansi.Ansi.Color.WHITE; import static org.fusesource.jansi.Ansi.ansi; import org.fusesource.jansi.Ansi; public final class Util { private Util() { } public static Ansi colored(TaskId taskId) { final Stri...
42,763
https://github.com/viettung92/AADC/blob/master/AADC/drohne/oculus-ardrone-master/simple.c
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,020
AADC
viettung92
C
Code
198
982
/* * OpenHMD - Free and Open Source API and drivers for immersive technology. * Copyright (C) 2013 Fredrik Hultin. * Copyright (C) 2013 Jakob Bornecrantz. * Distributed under the Boost 1.0 licence, see LICENSE for full text. */ /* Simple Test */ #include <openhmd.h> #include <stdio.h> #include <math.h> #define ...
54,786
https://github.com/kyoshidajp/omm-japan-2016/blob/master/config/routes.rb
Github Open Source
Open Source
MIT
2,017
omm-japan-2016
kyoshidajp
Ruby
Code
36
111
Rails.application.routes.draw do root to: 'welcome#index' namespace :api do namespace :v1 do resources :players, only: [:index], format: 'json' resources :controls, only: [:index], format: 'json' resources :results, only: [:index], format: 'json' get :bibs, to: 'results#bibs' end e...
1,563
https://github.com/polygonplanet/WSHModule/blob/master/WSHModule/bin/src/util.js
Github Open Source
Open Source
MIT
2,021
WSHModule
polygonplanet
JavaScript
Code
1,516
4,316
/** * WSHModule: Utilities */ exports.util = {}; var slice = Array.prototype.slice.call.bind(Array.prototype.slice); var hasOwn = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty); var toString = Object.prototype.toString.call.bind(Object.prototype.toString); var mixin = exports.util.mixin ...
15,262
https://github.com/danke-sra/cybergarage-x3d/blob/master/core/src/main/java/org/cybergarage/x3d/node/OrientationInterpolatorNode.java
Github Open Source
Open Source
BSD-3-Clause
2,016
cybergarage-x3d
danke-sra
Java
Code
456
1,598
/****************************************************************** * * CyberVRML97 for Java * * Copyright (C) Satoshi Konno 1997-1998 * * File : OrientationInterpolator.java * ******************************************************************/ package org.cybergarage.x3d.node; import java.io.PrintWriter; import org...
18,414
https://github.com/kan01234/design-patterns/blob/master/adapter-pattern/src/main/java/com/dotterbear/adapter/pattern/Panda.java
Github Open Source
Open Source
MIT
2,020
design-patterns
kan01234
Java
Code
16
43
package com.dotterbear.adapter.pattern; public interface Panda { public String eat(); public String sit(); public String hello(); }
10,986
https://github.com/amirblum/Game-Programming-Course/blob/master/Ex2/src/Renderable.cpp
Github Open Source
Open Source
MIT
2,018
Game-Programming-Course
amirblum
C++
Code
358
1,300
// // Renderable.cpp // CGP-Ex2 // // Created by Amir Blum on 3/16/15. // Copyright (c) 2015 Amir Blum. All rights reserved. // #include "Renderable.h" #include "ShaderIO.h" #include <glm/gtc/type_ptr.hpp> #include "glm/gtc/matrix_transform.hpp" #include "Camera.h" #define SHADERS_DIR "shaders/" Renderable::R...
36,438
https://github.com/Kyledmw/student-projects/blob/master/spring/crowdfunder/src/main/java/com/crowdfunder/controllers/web/IndexController.java
Github Open Source
Open Source
Apache-2.0
null
student-projects
Kyledmw
Java
Code
116
313
package com.crowdfunder.controllers.web; import java.util.Locale; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** **********************************...
24,216
https://github.com/avh4/elm-format/blob/master/avh4-lib/src/CommandLine/World.hs
Github Open Source
Open Source
2,023
elm-format
avh4
Haskell
Code
266
562
{-# LANGUAGE TypeFamilies #-} module CommandLine.World where import Prelude () import Relude hiding (getLine, putStr) data FileType = IsFile | IsDirectory | DoesNotExist class Monad m => World m where readUtf8File :: FilePath -> m Text readUtf8FileWithPath :: FilePath -> m (FilePath, Text) ...
35,482
https://github.com/sproshchaev/Bank_FinancialProcessingSystem_POS/blob/master/src/main/java/ru/sbp/bankfinancialprocessingsystem/pos/Payment.java
Github Open Source
Open Source
Unlicense
null
Bank_FinancialProcessingSystem_POS
sproshchaev
Java
Code
235
630
package ru.sbp.bankfinancialprocessingsystem.pos; import java.util.Date; /** * Класс Payment содержит методы работы с платежами по банковским картам * * @version 1.0 * @autor Sergey Proshchaev */ public class Payment { private String cardNumber; private String cardDateExp; private Date dateOperatio...
36,580
https://github.com/hdm/mac-tracker/blob/master/data/js/70/b3/d5/12/20/00.36.js
Github Open Source
Open Source
CC-BY-4.0, MIT
2,021
mac-tracker
hdm
JavaScript
Code
10
64
macDetailCallback("70b3d5122000/36",[{"a":"Scheepmalersstraat 33 Zwijndrecht ZH NL 3334 KG","o":"Henri Systems Holland bv","d":"2016-11-06","t":"add","s":"ieee","c":"KG"}]);
49,466
https://github.com/spatools/promizr/blob/master/dist/promizr.d.ts
Github Open Source
Open Source
MIT
2,020
promizr
spatools
TypeScript
Code
6,274
12,031
/** * @packageDocumentation * * Promise extensions and utility methods. */ /** * @public * * Create a new Task which exec `task` with given arguments. * * @param action - The function to apply * @param args - The `task` argument * * @example * ```typescript * const action = (value: string, upperCase: bo...
48,340
https://github.com/City-of-Turku/kada-elastic-events/blob/master/src/kadasearch/styles/abstractions.scss
Github Open Source
Open Source
MIT
2,018
kada-elastic-events
City-of-Turku
SCSS
Code
58
190
@mixin breakpoint($min, $max: null) { $min: get-breakpoint($min); @if ($max) { $max: get-breakpoint($max); @media screen and (min-width: $min) and (max-width: $max - 1px) { @content; } } @else { @media screen and (min-width: $min) { @content; } } } @function get-breakpoint($na...
9,189
https://github.com/BiyuHuang/scala-exercises/blob/master/core/runtime/src/test/scala/com/fortysevendeg/exercises/utilities.scala
Github Open Source
Open Source
Apache-2.0
2,016
scala-exercises
BiyuHuang
Scala
Code
164
565
/* * scala-exercises-runtime * Copyright (C) 2015-2016 47 Degrees, LLC. <http://www.47deg.com> */ package com.fortysevendeg.exercises import scala.collection.JavaConversions._ import java.io.ByteArrayInputStream import java.io.IOException import java.lang.ClassLoader import java.net.URL import java.net.URLStreamH...
33,715
https://github.com/ArkEcosystem/core/blob/master/__tests__/unit/core-test-framework/mocks/block-repository.test.ts
Github Open Source
Open Source
MIT
2,023
core
ArkEcosystem
TypeScript
Code
136
627
import "jest-extended"; import passphrases from "@packages/core-test-framework/src/internal/passphrases.json"; import { BlockRepository } from "@packages/core-test-framework/src/mocks"; import { Identities } from "@packages/crypto"; const delegateForgedBlock: BlockRepository.DelegateForgedBlock = { generatorPubli...
52,185
https://github.com/appshore/CRM/blob/master/lib/phpreports/xslt/PHPReportHeader.xsl
Github Open Source
Open Source
BSD-2-Clause
null
CRM
appshore
null
Spoken
40
366
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="HEADER"> <xsl:variable name="group_name"> <xsl:choose> <xsl:when test="string-length(../@NAME)&gt;0"> <xsl:value-of select="../@NAME"/> </xsl:when> <xsl:otherwise> <xsl:text>gn_</xsl:text><xsl:value...
40,071
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Health_com.huawei.health/smali_classes7/o/dxq.smali
Github Open Source
Open Source
MIT
2,019
AndroidPolicyAutomation
Andreas237
Smali
Code
1,212
6,050
.class public Lo/dxq; .super Ljava/lang/Object; .source "SourceFile" # direct methods .method public constructor <init>()V .locals 0 .line 15 invoke-direct {p0}, Ljava/lang/Object;-><init>()V return-void .end method .method public static a(Ljava/util/List;)D .locals 15 .annotation system Ld...
11,799
https://github.com/sladwig/moosi/blob/master/app/initializers/update-state.coffee
Github Open Source
Open Source
MIT
2,017
moosi
sladwig
CoffeeScript
Code
56
190
# Takes two parameters: container and app initialize = (container, app) -> updateStateTo = (transition, name, state) -> if name.substring(0, 5) is transition.targetName.substring(0, 5) transition.send 'setState', name, state app.register 'update:state', updateStateTo, instantiate: no app.inject 'route:p...
27,602
https://github.com/FurkanOzkaya/DeepNote/blob/master/app/src/main/java/com/abms/af/projeversion02/Models/PHPMailersifregonderme.java
Github Open Source
Open Source
MIT
null
DeepNote
FurkanOzkaya
Java
Code
112
277
package com.abms.af.projeversion02.Models; public class PHPMailersifregonderme { private String Result; private String Email; private String Kod; public PHPMailersifregonderme(String result, String email, String kod) { Result = result; Email = email; Kod = kod; } publ...
20,186
https://github.com/sw-ashai/ashaimall/blob/master/mall-product/src/main/java/icu/ashai/mall/product/controller/AttrController.java
Github Open Source
Open Source
Apache-2.0
null
ashaimall
sw-ashai
Java
Code
231
983
package icu.ashai.mall.product.controller; import icu.ashai.common.utils.PageUtils; import icu.ashai.common.utils.R; import icu.ashai.mall.product.entity.ProductAttrValueEntity; import icu.ashai.mall.product.service.AttrService; import icu.ashai.mall.product.service.ProductAttrValueService; import icu.ashai.mall.produ...
53,214
https://github.com/zdimon/our/blob/master/plugins/sfCacheTaggingPlugin/lib/vendor/Doctrine/Collection/Cachetaggable.php
Github Open Source
Open Source
MIT
2,015
our
zdimon
PHP
Code
559
1,848
<?php /* * This file is part of the sfCacheTaggingPlugin package. * (c) 2009-2011 Ilya Sabelnikov <fruit.dev@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Adds functionality to fetch collectio...
43,700
https://github.com/imransilvake/personal/blob/master/src/assets/data/profile/education.ts
Github Open Source
Open Source
MIT
null
personal
imransilvake
TypeScript
Code
56
255
const profileEducation = { title: 'Profile.Terms.Education', subTitle: { text: 'Profile.Education.Sub_Title', type: 'Profile.Terms.Masters' }, universityName: 'Profile.Education.University_Name', universityInfo: 'Profile.Education.University_Info', education: [ { name: 'BONN', logo: 'bonn', type: '...
761
https://github.com/nseyler1/LavaCake/blob/master/Library/Source Files/Helpers/Field.h
Github Open Source
Open Source
MIT
2,022
LavaCake
nseyler1
C
Code
932
2,837
#pragma once #include "helpers.h" #include "ABBox.h" #include "Math/basics.h" namespace LavaCake { namespace Helpers { /** *Class Field2D : *\brief : A virtual class that represent any 2D field of value *\tparam T the type the Field will hold */ template <typename T> class Field2D{ public: ...
54,382
https://github.com/luanx/stat/blob/master/stat-web/src/main/java/com/wantdo/stat/web/shop/fba/FBAController.java
Github Open Source
Open Source
Apache-2.0
null
stat
luanx
Java
Code
357
1,678
package com.wantdo.stat.web.shop.fba; import com.wantdo.stat.entity.account.Organization; import com.wantdo.stat.entity.front.response.ResponseVo; import com.wantdo.stat.entity.shop.FBA; import com.wantdo.stat.service.account.OrganizationService; import com.wantdo.stat.service.account.ShiroDbRealm; import com.wantdo.s...
45,855
https://github.com/NYULibraries/formaggio/blob/master/lib/formaggio/capistrano/cleanup.rb
Github Open Source
Open Source
MIT
null
formaggio
NYULibraries
Ruby
Code
20
82
Capistrano::Configuration.instance(:must_exist).load do after "deploy:restart", "deploy:cleanup" before "deploy:cleanup", "touch:latest_release" namespace :touch do task :latest_release do run "touch #{current_release}" end end end
46,474
https://github.com/taljacobson/devlogger/blob/master/public/app/components/log/log.component.ts
Github Open Source
Open Source
MIT
null
devlogger
taljacobson
TypeScript
Code
113
422
import { Component,OnInit } from '@angular/core'; import { FeathersService } from "../../services/feathers.service"; import { Log } from "../../models/log"; @Component({ moduleId:module.id, selector: 'logs', templateUrl: 'log.component.html' }) export class LogsComponent implements OnInit{ logs:Array<Log> = [...
30,251
https://github.com/soerenray/MatFlow/blob/master/tests/workflowtests/test_files/workflow_manager/template1/tpl1.py
Github Open Source
Open Source
MIT
null
MatFlow
soerenray
Python
Code
4
9
"this is a tmplate"
56,190
https://github.com/vugarbakhisov/Laravel-Blog-2/blob/master/database/seeds/CategoriesSeed.php
Github Open Source
Open Source
MIT
2,020
Laravel-Blog-2
vugarbakhisov
PHP
Code
55
286
<?php use App\Models\Api\Categories; use Illuminate\Database\Seeder; use Faker\Factory as Faker; use Illuminate\Support\Facades\DB; class CategoriesSeed extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create(); ...
10,477
https://github.com/konser1/alipaytest/blob/master/src/main/java/com/alipay/api/domain/SearchAbilityOrderData.java
Github Open Source
Open Source
Apache-2.0
null
alipaytest
konser1
Java
Code
647
2,450
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 搜索运营中具体运营的信息(基础信息、品牌直达、服务直达) * * @author auto create * @since 1.0, 2020-12-15 19:20:15 */ public class SearchAbili...
34,102
https://github.com/bowetech/react-car-configurator/blob/master/src/components/Option/Option.js
Github Open Source
Open Source
MIT
2,021
react-car-configurator
bowetech
JavaScript
Code
180
451
import React from 'react'; import PropTypes from 'prop-types'; // Styles import './Option.css'; const types = ["text", "color", "image"]; /* * TODO: Leverage memoization with Option * * Tips: * - Wrap the Option component by using the React.memo HoC * - Don't forget to use the useCallback hook to wrap any event ...
27,925
https://github.com/gtplusnet/digima_mvm2/blob/master/app/Http/Controllers/PasswordController.php
Github Open Source
Open Source
MIT
2,020
digima_mvm2
gtplusnet
PHP
Code
278
1,594
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Models\TblBusinessModel; use App\Models\TblCountyModel; use App\Models\TblUserAccountModel; use App\Models\TblPasswordResetModel; use App\Models\TblContactUs; use App\Models\TblBusin...
24,881
https://github.com/josephthomashines/TicTacGo/blob/master/board/board.go
Github Open Source
Open Source
MIT
null
TicTacGo
josephthomashines
Go
Code
231
623
package board import ( "fmt" "os" ) const PLACEHOLDER = "_" // Errors type BoardOutOfBoundsError struct { received, limit int axis string } func (e *BoardOutOfBoundsError) Error() string { out := fmt.Sprintf("Error: Index %d must be %s to %d on the %s axis", e.received, "%s", e.limit, e.axis) if e...
44,213
https://github.com/nagyist/intellij-rust/blob/master/src/main/kotlin/org/rust/lang/core/psi/ext/RsLambdaExpr.kt
Github Open Source
Open Source
MIT
2,023
intellij-rust
nagyist
Kotlin
Code
53
185
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.lang.core.psi.ext import org.rust.lang.core.psi.RsElementTypes import org.rust.lang.core.psi.RsLambdaExpr import org.rust.lang.core.psi.RsValueParameter val RsLambdaExpr.isAsync: Boolean ge...
45,651
https://github.com/alethiaQ/dear-santa/blob/master/frontend/src/actions/gifts.js
Github Open Source
Open Source
MIT
null
dear-santa
alethiaQ
JavaScript
Code
260
579
// exporting action type as a const so its less prone to typos and unnecessary bugs import { deduceFunds, increaseFunds } from './funds'; export const ADD_GIFT = "ADD_GIFT"; export const DELETE_GIFT = "DELETE_GIFT"; export const SET_GIFTS = "SET_GIFTS"; export const LIKE_GIFT = "LIKE_GIFT"; export const addGift = (gi...
53,548
https://github.com/unclazz/jp1ajs2.unitdef/blob/master/src/main/java/org/unclazz/jp1ajs2/unitdef/parameter/RunConditionWatchLimitTime.java
Github Open Source
Open Source
MIT
2,020
jp1ajs2.unitdef
unclazz
Java
Code
62
308
package org.unclazz.jp1ajs2.unitdef.parameter; /** * ユニット定義パラメータwt(起動条件監視の終了時刻)を表すインターフェース. */ public interface RunConditionWatchLimitTime { /** * 起動条件監視およびその終了時刻の指定形式を表す列挙型. */ public static enum LimitationType { /** * 起動条件監視を行わない. */ NO_WATCHING, /** * 絶対時刻で指定する. */ ABSOLUTE_TIME, /**...
8,598
https://github.com/broadinstitute/clio/blob/master/clio-client/src/test/scala/org/broadinstitute/clio/client/dispatch/MarkExternalExecutorSpec.scala
Github Open Source
Open Source
BSD-3-Clause
2,020
clio
broadinstitute
Scala
Code
171
729
package org.broadinstitute.clio.client.dispatch import java.net.URI import akka.stream.scaladsl.{Sink, Source} import io.circe.syntax._ import org.broadinstitute.clio.client.BaseClientSpec import org.broadinstitute.clio.client.commands.MarkExternalArrays import org.broadinstitute.clio.client.util.IoUtil import org.br...
36,297
https://github.com/majos95/Software-Engineering/blob/master/frontend/src/models/management/Discussion.ts
Github Open Source
Open Source
MIT
null
Software-Engineering
majos95
TypeScript
Code
90
263
import Doubt from '@/models/management/Doubt'; export default class Discussion { postsDto: Doubt[] = []; id: number | null = null; visibility: String = 'PRIVATE'; questionTitle: string = ''; title: string = ''; author: string = ''; authorId: number | null = null; status: String = 'OPEN'; constructor...
31,458
https://github.com/Fa-Li/E3SM/blob/master/components/eam/src/physics/crm/samxx/abcoefs.cpp
Github Open Source
Open Source
zlib-acknowledgement, FTL, RSA-MD
2,022
E3SM
Fa-Li
C++
Code
91
253
#include "abcoefs.h" // Compute the coefficients for the Adams-Bashforth scheme void abcoefs() { if (nstep >= 3) { realHost1d dt3Host("dt3Host",3); dt3.deep_copy_to(dt3Host); yakl::fence(); real alpha = dt3Host(nb-1) / dt3Host(na-1); real beta = dt3Host(nc-1) / dt3Host(na-1); ct = (2.+3.* a...
11,062
https://github.com/yangyang14641/arrayfire/blob/master/src/backend/cuda/copy.hpp
Github Open Source
Open Source
MIT, BSD-3-Clause, Zlib, BSL-1.0, Apache-2.0
2,018
arrayfire
yangyang14641
C++
Code
107
345
/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause **********************************************...
19,817
https://github.com/lm-project/Analysismap/blob/master/src/main/webapp/js/tab-3/map.js
Github Open Source
Open Source
MIT
null
Analysismap
lm-project
JavaScript
Code
194
921
// tab-3/map.js['msg'] define(['msg'],function (msg){ var map; var bdary; var init = function (){ map = new BMap.Map("container"); bdary = new BMap.Boundary(); map.centerAndZoom(new BMap.Point(116.403765, 39.914850), 5); var stdMapCtrl = new BMap.NavigationControl({type: BMAP_NAVIGATION_CONTROL_SMALL...
15,440
https://github.com/fagan2888/mrSensitive/blob/master/MethodsComparision/MULTIcOLIfITcODE/mrQ_testMapFitErr.m
Github Open Source
Open Source
MIT
2,016
mrSensitive
fagan2888
MATLAB
Code
125
1,136
function MappimngErr=mrQ_testMapFitErr(B1file,rawDatfile,Gfile,PDfile,T1file,BMfile,boxsize) load(rawDatfile); B1=readFileNifti(B1file);B1=double(B1.data); G=readFileNifti(Gfile);G=double(G.data); T1=readFileNifti(T1file);T1=double(T1.data).*1000; PD=readFileNifti(PDfile);PD=double(PD.data); BM=readFileNifti(BMfile);...
56,122
https://github.com/Sueng-Won/semiProject/blob/master/semiProject/web/views/common/header.jsp
Github Open Source
Open Source
MIT
2,018
semiProject
Sueng-Won
null
Spoken
249
1,452
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% String id = (String) session.getAttribute("id"); String member_type = (String) session.getAttribute("member_type"); %> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, in...
30,605
https://github.com/Frontendcore/frontendcore/blob/master/components/anchor-scroll/js/anchor-scroll.js
Github Open Source
Open Source
Apache-2.0
2,018
frontendcore
Frontendcore
JavaScript
Code
183
774
;(function (window, document, oGlobalSettings, FrontendTools, FrontendCore, $) { 'use strict'; FrontendCore.define('anchor-scroll', [], function () { var ua = window.navigator.userAgent, msie = ua.indexOf("MSIE "), mozilla = ua.indexOf("Firefox"), sElementToScroll = msie > 0 || mozilla > 0 || !!navigator...
1,582
https://github.com/SuperMap/iClient3D-vue/blob/master/src/main.js
Github Open Source
Open Source
Apache-2.0
2,022
iClient3D-vue
SuperMap
JavaScript
Code
103
422
import { createApp } from 'vue' import App from './App.vue' const app = createApp(App); app.config.productionTip = false; import '@babel/polyfill' // 第三方库ui import ElementPlus from 'element-plus'; import 'element-plus/lib/theme-chalk/index.css'; // app.use(ElementPlus) import locale from 'element-plus/lib/locale/lang/...
9,437
https://github.com/Pocket-titan/Pluto.jl/blob/master/frontend/components/CellInput.js
Github Open Source
Open Source
MIT
null
Pluto.jl
Pocket-titan
JavaScript
Code
1,086
3,529
import { html, useState, useEffect, useLayoutEffect, useRef } from "../common/Preact.js" import { utf8index_to_ut16index } from "../common/UnicodeTools.js" import { map_cmd_to_ctrl_on_mac } from "../common/KeyboardShortcuts.js" const clear_selection = (cm) => { const c = cm.getCursor() cm.setSelection(c, c, {...
33,955
https://github.com/SGpp/SGpp/blob/master/datadriven/src/sgpp/datadriven/operation/hash/OperationPruneGraphOCL/OpFactory.cpp
Github Open Source
Open Source
LicenseRef-scancode-generic-exception, BSD-3-Clause
2,021
SGpp
SGpp
C++
Code
580
2,321
// Copyright (C) 2008-today The SG++ project // This file is part of the SG++ project. For conditions of distribution and // use, please see the copyright notice provided with SG++ or at // sgpp.sparsegrids.org #include <sgpp/base/exception/factory_exception.hpp> #include <sgpp/base/opencl/OCLOperationConfiguration.hp...
32,442
https://github.com/Hacky-DH/pytorch/blob/master/caffe2/operators/reduce_front_back_max_ops.cc
Github Open Source
Open Source
Intel
2,022
pytorch
Hacky-DH
C++
Code
900
3,126
#include "caffe2/operators/reduce_front_back_max_ops.h" #include "caffe2/core/operator_gradient.h" namespace caffe2 { #define REDUCTION_OP_SHAPE_INFERENCE(is_front_reducer) \ CAFFE_ENFORCE_LE(1, in.size()); \ CAFFE_ENFORCE_GE(2, in.size()); ...
21,496
https://github.com/xuwen4020/XW4020Base/blob/master/XWBase/XW4020Base/Category/UILabel/UILabel+TFUtils.h
Github Open Source
Open Source
MIT
null
XW4020Base
xuwen4020
C
Code
60
289
// // UILabel+TFUtils.h // SCGov // // Created by XuWen on 2019/11/29. // Copyright © 2019 solehe. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UILabel (TFUtils) + (UILabel *)createCommonLabelConfigWithTextColor:(UIColor *)textColor font:(UIFont *)font aliment:(NSTextAlignme...
27,801
https://github.com/physical-computation/Warp-firmware/blob/master/tools/sdk/ksdk1.1.0/platform/hal/src/mcglite/fsl_mcglite_hal.c
Github Open Source
Open Source
BSD-3-Clause
2,023
Warp-firmware
physical-computation
C
Code
617
1,508
/* * Copyright (c) 2014, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of...
19,100
https://github.com/PeculiarVentures/pvpkcs11/blob/master/src/osx/x509_request_template.h
Github Open Source
Open Source
MIT
2,021
pvpkcs11
PeculiarVentures
C
Code
84
521
#pragma once #include <Security/SecAsn1Types.h> #include <Security/SecAsn1Templates.h> #include "./x509_template.h" typedef struct { SecAsn1Item version; SecAsn1Item subject; ASN1_SUBJECT_PUBLIC_KEY_INFO subjectPublicKeyInfo; SecAsn1Item attributes; } ASN1_CERTIFICATION_REQUEST_INFO; static const Se...
21,610
https://github.com/stainless-steel/special/blob/master/benches/gamma.rs
Github Open Source
Open Source
MIT, Apache-2.0
2,022
special
stainless-steel
Rust
Code
110
396
#![feature(test)] extern crate random; extern crate special; extern crate test; use random::Source; use special::Gamma; use test::{black_box, Bencher}; #[bench] fn digamma(bencher: &mut Bencher) { let x = random::default() .iter::<f64>() .take(1000) .map(|x| 20.0 * x - 10.0) .coll...
2,207
https://github.com/billyjov/prolang-api/blob/master/deploy.sh
Github Open Source
Open Source
MIT
2,021
prolang-api
billyjov
Shell
Code
80
284
#!/bin/bash start=$(date +"%s") ssh -p ${SPORT} ${SUSER}@${SNAME} -i key.txt -t -t -o StrictHostKeyChecking=no << 'ENDSSH' cd prolang docker pull tericcabrel/prolang-api:latest API_CONTAINER_NAME=prolang-api if [ "$(docker ps -qa -f name=$API_CONTAINER_NAME)" ]; then if [ "$(docker ps -q -f name=$API_CONTAINER_...
44,566
https://github.com/isabella232/react-native-slider/blob/master/src/Touchable.js
Github Open Source
Open Source
MIT
2,020
react-native-slider
isabella232
JavaScript
Code
962
2,703
import React, { Component } from 'react' import PropTypes from 'prop-types' import { View, TouchableWithoutFeedback } from 'react-native' import ViewPropTypes from 'react-native/Libraries/Components/View/ViewPropTypes' import createFocusableComponent from '@bluejeans/react-native-windows/Libraries/Components/FocusableW...
37,807
https://github.com/quarkusio/quarkusio.github.io/blob/master/_posts/2022-07-19-quarkus-2-10-3-final-released.adoc
Github Open Source
Open Source
CC-BY-3.0
2,023
quarkusio.github.io
quarkusio
AsciiDoc
Code
265
598
--- layout: post title: 'Quarkus 2.10.3.Final released - Fixes CVE-2022-2466' date: 2022-07-19 tags: release synopsis: 2.10.3.Final fixes CVE-2022-2466 and is a mandatory upgrade for anyone exposing GraphQL services with Quarkus 2.10.x. author: gsmet --- 2.10.0.CR1 introduced a major security issue known as CVE-2022-2...
1,393
https://github.com/einnovator/einnovator-devops-starter/blob/master/src/main/java/org/einnovator/devops/client/model/Route.java
Github Open Source
Open Source
Apache-2.0
2,021
einnovator-devops-starter
einnovator
Java
Code
664
1,774
package org.einnovator.devops.client.model; import java.util.ArrayList; import java.util.List; import org.einnovator.util.model.EntityBase; import org.einnovator.util.model.ToStringCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @JsonIgnore...
28,858
https://github.com/ogii-test/ddp-study-server/blob/master/pepper-apis/src/main/java/org/broadinstitute/ddp/db/dto/BooleanQuestionDto.java
Github Open Source
Open Source
BSD-3-Clause
2,021
ddp-study-server
ogii-test
Java
Code
91
339
package org.broadinstitute.ddp.db.dto; import java.io.Serializable; import java.util.Set; import org.jdbi.v3.core.mapper.Nested; import org.jdbi.v3.core.mapper.reflect.ColumnName; import org.jdbi.v3.core.mapper.reflect.JdbiConstructor; /** * DTO class to represent boolean question that includes all base question da...
38,494