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/caomulaodao/solarcellsky.github.com/blob/master/Games/2015Keywords/tpl/base-lib/utils/adaptHelper.js
Github Open Source
Open Source
MIT
2,017
solarcellsky.github.com
caomulaodao
JavaScript
Code
109
404
define(function(require, exports) { 'use strict'; var CONS = { EDITOR: { MAX_HEIGHT: 1040, MAX_HEIGHT_RANGE: 1050, MAX_WIDTH: 640, MAX_WIDTH_RANGE: 650, RANGE: 10, // 放大倍率 RATIO: 0.6, // 最小倍率 MIN...
29,697
https://github.com/intel/DML/blob/master/include/dml/hl/execution_path.hpp
Github Open Source
Open Source
MIT
2,022
DML
intel
C++
Code
460
1,002
/* * Copyright 2021 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, * and your use of them is governed by the express license under which they * were provided to you ("License"). Unless the License provides otherwise, * you may not use, modify, copy, publish, distri...
9,349
https://github.com/malliina/musicpimp-win/blob/master/TestApp/Mle/TestApp/RedTextBlock.xaml.cs
Github Open Source
Open Source
BSD-3-Clause
2,015
musicpimp-win
malliina
C#
Code
19
52
using System.Windows.Controls; namespace Mle.TestApp { public partial class RedTextBlock : UserControl { public RedTextBlock() { InitializeComponent(); } } }
52,075
https://github.com/zzhmark/vaa3d_tools/blob/master/hackathon/zhi/NeuronStudio_zhi/image/nspixels-row.inl
Github Open Source
Open Source
MIT
2,021
vaa3d_tools
zzhmark
C++
Code
522
2,657
NS_PRIVATE void _ns_pixel_row_get_func_lum_u1( NsPixelLumU1 *pixel, const nsuint8 *row, nssize x ) { pixel->luminance = ns_bit_buf_is_set( row, x ) ? 1 : 0; } NS_PRIVATE void _ns_pixel_row_get_func_lum_u8( NsPixelLumU8 *pixel, const NsPixelLumU8 *row, nssize x ) { *pixel = *( row + x ); } NS_PRIVATE void _ns_p...
49,084
https://github.com/SellerCloudTeam/graphql-net/blob/master/examples/09-cosmos-db/WebApi.Tests/BaseTests.cs
Github Open Source
Open Source
MIT
2,019
graphql-net
SellerCloudTeam
C#
Code
131
471
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.Configuration; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using WebApi.Models; namespace WebApi.Tests { pu...
26,486
https://github.com/sinch/nuget-serversdk/blob/master/src/Sinch.ServerSdk/Messaging/Models/IncomingMessageEvent.cs
Github Open Source
Open Source
MIT
2,022
nuget-serversdk
sinch
C#
Code
130
273
 using Sinch.ServerSdk.Models; namespace Sinch.ServerSdk.Messaging.Models { /// <summary> /// An incoming Sms callback event /// </summary> public class IncomingMessageEvent { /// <summary> /// The identity of the sender /// </summary> public IdentityModel From { ge...
43,471
https://github.com/gehrman/dotfiles/blob/master/common/_emacs.d/config/config-evil.el
Github Open Source
Open Source
MIT
2,017
dotfiles
gehrman
null
Spoken
1,209
3,729
;;; config-evil --- Setup evil mode. ;;; Commentary: ;; Evil Mode. A/K/A Make Emacs Usable. ;;; Code: ;; We're going to bind C-w for window management later, but to do so we need to ;; unbind it here first. Before unsetting, it's bound to 'kill-region, but we're ;; about have vim bindings for that. (global-unset-key...
45,556
https://github.com/saintedlama/whirlwind-tour-to-javascript/blob/master/examples/03_equality.js
Github Open Source
Open Source
MIT
2,014
whirlwind-tour-to-javascript
saintedlama
JavaScript
Code
66
150
// Evaluate everything to true/false var someString = 'something'; if (someString) { console.log('someString is true'); } someString = ''; if (!someString) { console.log('someString is false'); } // Two compare operators for equality var stringValue = '0'; var numberValue = 0; if (numberValue == stringVa...
52,421
https://github.com/Hopson97/MineCraft-One-Week-Challenge/blob/master/Source/Maths/Vector2XZ.cpp
Github Open Source
Open Source
MIT
2,023
MineCraft-One-Week-Challenge
Hopson97
C++
Code
20
60
#include "Vector2XZ.h" bool operator==(const VectorXZ &left, const VectorXZ &right) noexcept { return (left.x == right.x) && (left.z == right.z); }
33,469
https://github.com/ZeusWPI/hydra/blob/master/server/admin/app.py
Github Open Source
Open Source
MIT
2,023
hydra
ZeusWPI
Python
Code
155
625
from datetime import datetime from datetime import timedelta import os import stat import time from flask import Flask from flask import render_template from cron_converter import Cron from cron_descriptor import get_description, ExpressionDescriptor import config from datedifference import humanize_date_difference ...
28,343
https://github.com/gram-js/gramjs/blob/master/gramjs/tl/types-generator/template.js
Github Open Source
Open Source
MIT
2,023
gramjs
gram-js
JavaScript
Code
840
2,995
// Not sure what they are for. const WEIRD_TYPES = new Set(["Bool", "X", "Type"]); module.exports = ({ types, constructors, functions }) => { function groupByKey(collection, key) { return collection.reduce((byKey, member) => { const keyValue = member[key] || "_"; if (!byKey[keyValu...
36,273
https://github.com/Blarget2/OF-Engine/blob/master/data/library/core/base/base_vslots.lua
Github Open Source
Open Source
MIT
2,012
OF-Engine
Blarget2
Lua
Code
358
898
--[[! File: library/core/base/base_vslots.lua About: Author q66 <quaker66@gmail.com> About: Copyright Copyright (c) 2011 OctaForge project About: License This file is licensed under MIT. See COPYING.txt for more information. About: Purpose This file provides a nic...
16,737
https://github.com/sushantanshu/syscop/blob/master/MusicApp_springBoot/src/main/java/com/stackroute/repository/TrackRepository.java
Github Open Source
Open Source
Apache-2.0
2,019
syscop
sushantanshu
Java
Code
84
230
package com.stackroute.repository; import com.stackroute.domain.Track; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.repository.query.Param; import java.util.List; public interface TrackRepository extends MongoRepository<Track,Integer> { List<Track> findByT...
22,374
https://github.com/TheJonCallahan/Scripts/blob/master/Scripts and Tools/ProactiveRemediations/PR-Win32_BIOSVersion-Detect.ps1
Github Open Source
Open Source
BSD-Source-Code
2,020
Scripts
TheJonCallahan
PowerShell
Code
82
212
# Get BIOS information from WMI $Win32BIOS = Get-WmiObject -Namespace "root\cimv2" -Query "SELECT * FROM Win32_BIOS" -ErrorAction 'SilentlyContinue' # Return value for Win32BIOS if found, otherwise exit with 1 if ($Win32BIOS -gt $null) { # Return value for SMBIOSBIOSVersion if found, otherwise exit with 1 if ($Win32B...
35,723
https://github.com/hakimo-ai/mipsdk-samples-component/blob/master/ConfigAccessViaSDK/DumpConfigurationUserControl.cs
Github Open Source
Open Source
MIT
2,022
mipsdk-samples-component
hakimo-ai
C#
Code
1,203
5,222
using System; using System.Collections.Generic; using System.Windows.Forms; using System.Collections; using VideoOS.Platform; using VideoOS.Platform.Login; using VideoOS.Platform.Messaging; using VideoOS.Platform.UI; using VideoOS.Platform.Util; namespace ConfigAccessViaSDK { public class DumpConfigurationUserCont...
48,390
https://github.com/Craiel/UnityEssentials/blob/master/Audio/Editor/GameDataAudio.cs
Github Open Source
Open Source
MIT
2,021
UnityEssentials
Craiel
C#
Code
123
483
using AudioChannel = Craiel.UnityAudio.Runtime.Enums.AudioChannel; using AudioPlayBehavior = Craiel.UnityAudio.Runtime.Enums.AudioPlayBehavior; namespace Craiel.UnityAudio.Editor { using System.Collections.Generic; using Runtime.Data; using UnityEngine; using UnityGameData.Editor.Builder; using Un...
45,677
https://github.com/Icenium/serverless-custom-domain/blob/master/index.js
Github Open Source
Open Source
MIT
2,017
serverless-custom-domain
Icenium
JavaScript
Code
277
1,001
"use strict"; const DomainNameService = require("./lib/services/domain-name-service"); const BasePathMappingService = require("./lib/services/base-path-mapping-service"); const RecordSetService = require("./lib/services/record-set-service"); class CustomDomainPlugin { constructor(serverless, options) { this.server...
51,680
https://github.com/abdraisal25/Project_HRIS/blob/master/application/controllers/RegistrasiControl.php
Github Open Source
Open Source
MIT
null
Project_HRIS
abdraisal25
PHP
Code
185
1,000
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class RegistrasiControl extends CI_Controller{ function __construct(){ parent::__construct(); $this->load->model('cit/registrasi/M_Registrasi', 'registrasi'); $this->load->model('personalia/data/M_Data', 'user'); } ...
26,265
https://github.com/itamaro/cinder/blob/master/Lib/compiler/readonly/types.py
Github Open Source
Open Source
CNRI-Python-GPL-Compatible
null
cinder
itamaro
Python
Code
103
308
from __future__ import annotations from typing import List class Value: def __init__(self, is_readonly: bool, bases: List[Value], name: str) -> None: """ is_readonly: the Value is readonly and cannot be modified """ self.is_readonly = is_readonly self.bases = bases ...
40,390
https://github.com/kkmann/binaryTwoStageDesigns/blob/master/test/test_SampleSpace.jl
Github Open Source
Open Source
MIT
null
binaryTwoStageDesigns
kkmann
Julia
Code
64
208
@testset "'SampleSpace' ........................ " begin ss = SampleSpace(collect(5:10), 25) ss = SampleSpace(5:10, 25) @test interimsamplesizerange(ss) == collect(5:10) @test maxsamplesize(ss) == 25 @test all(possible.(5:10, ss)) @test all(.!possible.([-3, 0, 4, 11, 20], ss)) @test isgroupsequenti...
4,877
https://github.com/tqbdev/Paint-Win32/blob/master/Source code/Paint/RibbonIDs.h
Github Open Source
Open Source
MIT
2,021
Paint-Win32
tqbdev
C
Code
344
1,686
// ***************************************************************************** // * This is an automatically generated header file for UI Element definition * // * resource symbols and values. Please do not modify manually. * // **************************************************************************...
51,670
https://github.com/trivoldus28/gunpowder/blob/master/gunpowder/nodes/klb_source.py
Github Open Source
Open Source
MIT
2,022
gunpowder
trivoldus28
Python
Code
642
1,920
import copy import logging import numpy as np import glob from gunpowder.batch import Batch from gunpowder.coordinate import Coordinate from gunpowder.ext import pyklb from gunpowder.profiling import Timing from gunpowder.roi import Roi from gunpowder.array import Array from gunpowder.array_spec import ArraySpec from ...
14,465
https://github.com/danurwenda/xeroxampah/blob/master/assets/modules/polkam/js/pengajian/configs.js
Github Open Source
Open Source
MIT
null
xeroxampah
danurwenda
JavaScript
Code
452
1,542
function formatIndividuList(individu) { if (individu.loading) return individu.text; var markup = "<div class='select2-result-repository clearfix'>" + "<div class='select2-result-repository__meta'>" + "<div class='select2-result-repository__title'>" + individu.individu_name + "</...
41,654
https://github.com/akgrant43/Glorp/blob/master/Glorp.package/PersistentObject.class/instance/matchAttribute.to..st
Github Open Source
Open Source
MIT
null
Glorp
akgrant43
null
Spoken
29
66
private matchAttribute: anExpression to: value "We match expressions differently depending on what type they are." ^(value isString and: [value includes: $%]) ifTrue: [anExpression like: value] ifFalse: [anExpression = value].
5,125
https://github.com/frank-pang-msft/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchConvenience.cs
Github Open Source
Open Source
MIT
2,022
azure-sdk-for-net
frank-pang-msft
C#
Code
345
841
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using Azure.Core.TestFramework; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; namespace Azure.AI.TextAnalytics.Samples { public partial class TextAnalyticsSamples { ...
8,921
https://github.com/s-kennedy/cimssimple/blob/master/src/pages/planning-tool.js
Github Open Source
Open Source
MIT
null
cimssimple
s-kennedy
JavaScript
Code
443
1,338
import React from 'react' import Link from 'gatsby-link' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { updatePlan, getLocalPlanData } from '../redux/modules/planningTool'; import { editPlan, updateSaveStatus } from '../redux/modules/user'; import Grid from 'material-ui/Grid' import ...
38,077
https://github.com/hahatiantang/scaffolding/blob/master/assets/src/redux/reducers/index.js
Github Open Source
Open Source
Apache-2.0
null
scaffolding
hahatiantang
JavaScript
Code
31
122
/** * 文件说明:根reducer * 详细描述: * 创建者: 余成龍 * 创建时间: 2016/6/28 * 变更记录: */ import {combineReducers} from 'redux'; import {indexQuestionStore} from './indexReaucers'; const rootReducer = combineReducers({ indexQuestionStore }); export default rootReducer;
19,664
https://github.com/evilBird/BbCore/blob/master/BbCoreProject/Pods/BbRuntime/BbRuntime/NSObject+BbRuntime.m
Github Open Source
Open Source
MIT
2,017
BbCore
evilBird
Objective-C
Code
100
339
// // NSObject+BbRuntime.m // BbRuntime // // Created by Travis Henspeter on 1/5/16. // Copyright © 2016 birdSound. All rights reserved. // #import "NSObject+BbRuntime.h" #import <objc/runtime.h> @implementation NSObject (BbRuntime) + (id)uniqueClassInstance { id instance = [NSObject new]; [instance make...
17,012
https://github.com/d3v3lop3r1/ingatlan/blob/master/public/templates/hu_osszkomfortos.php
Github Open Source
Open Source
MIT
null
ingatlan
d3v3lop3r1
PHP
Code
29
103
Összkomfortos Légkondicionáló a nappaliban Kábel-TV, Internet a házban Kaputelefon elektromos ajtónyitással Déli fekvésű erkély, kilátás a parkosításra Kisállat-háziállat tartása engedélyezett Parkolás a ház előtt, lakók számára olcsó bérleti díjak
16,573
https://github.com/testpress/android/blob/master/app/src/main/java/in/testpress/testpress/ui/fragments/OTPVerificationFragment.kt
Github Open Source
Open Source
MIT
2,023
android
testpress
Kotlin
Code
368
1,472
package `in`.testpress.testpress.ui.fragments import `in`.testpress.enums.Status import `in`.testpress.testpress.Injector import `in`.testpress.testpress.R import `in`.testpress.testpress.core.TestpressService import `in`.testpress.testpress.repository.InstituteRepository import `in`.testpress.testpress.ui.utils.AutoD...
31,886
https://github.com/TizianoCoroneo/TCJSON/blob/master/Example/Tests/TestClassWithCodingKeys.swift
Github Open Source
Open Source
MIT
2,018
TCJSON
TizianoCoroneo
Swift
Code
281
697
// // TestClassWithCodingKeys.swift // TCJSON_Tests // // Created by Tiziano Coroneo on 03/01/2018. // Copyright © 2018 Tiziano Coroneo. All rights reserved. // import TCJSON struct TestClassWithCodingKeys: TCJSONCodable, Equatable { let string: String = "aaa" let emptyString: String = "" let int: Int...
40,293
https://github.com/sidhi-sid/Smart-IV/blob/master/webserver/js/entry-firebase.js
Github Open Source
Open Source
Apache-2.0
2,020
Smart-IV
sidhi-sid
JavaScript
Code
290
1,702
const div = document.getElementById('show'); const db = firebaseConfig2.database(); db.ref().on('value', function(snapshot) { div.innerHTML = ""; snapshot.forEach(function(childSnapshot) { var roomNumber = parseInt(childSnapshot.key.slice(12),10); console.log(roomNumber); childSnapshot.forEach(function(child2Sna...
33,258
https://github.com/monkslc/hyperpolyglot/blob/master/samples/Mathematica/TestString.mt
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
hyperpolyglot
monkslc
Mathematica
Code
10
27
Test["a" <> "b", "ab", TestID -> "Concat \"a\" and \"b\""]
1,949
https://github.com/Keenyuan/volunteer/blob/master/app/Http/Controllers/CategoryController.php
Github Open Source
Open Source
MIT
2,020
volunteer
Keenyuan
PHP
Code
94
393
<?php namespace App\Http\Controllers; use App\Category; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class CategoryController extends Controller { // public function index(){ $categorys = Category::all(); return view("category.index",compact("categorys")); } publi...
9,478
https://github.com/wallnutkraken/Swagify/blob/master/Swagify/Swagify/CompilerExtensions.cs
Github Open Source
Open Source
MIT-0, MIT
null
Swagify
wallnutkraken
C#
Code
38
123
using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Swagify { public static class CompilerExtensions { public static IdentifierNameSyntax GetName(this ExpressionSyntax exp) { return (exp as MemberAccessExpressionSyntax)?.Name as IdentifierNameSyntax; } public sta...
35,225
https://github.com/velv01/ComNetLab/blob/master/exp3/ring/ring.awk
Github Open Source
Open Source
Apache-2.0
null
ComNetLab
velv01
null
Spoken
70
188
BEGIN{ lineCount=0; totalBits=0;} #==========Body============= { if($1=="-" && $3=="0" && $4=="1"){ totalBits += 8*$6; if(lineCount==0){ timeBegin = $2; lineCount++; } else{ timeEnd = $2; } } } #==========Body ends=========== END{ duration = timeEnd - timeBegin; print "=======================OUTPUT...
8,744
https://github.com/TheRakeshPurohit/carbon/blob/master/packages/carbon-react/src/feature-flags.js
Github Open Source
Open Source
Apache-2.0
2,022
carbon
TheRakeshPurohit
JavaScript
Code
47
107
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import * as FeatureFlags from '@carbon/feature-flags'; FeatureFlags.merge({ 'enable-css-custom-properties': true, 'enable-css-grid': tru...
14,474
https://github.com/Trietptm-on-Security/lemal/blob/master/signatures/ClamAV/scripts/hash_sections/section_hashes.py
Github Open Source
Open Source
MIT
2,015
lemal
Trietptm-on-Security
Python
Code
173
672
""" https://stackoverflow.com/questions/20027990/how-can-i-get-text-section-from-pe-file-using-pefile https://docs.python.org/2/library/hashlib.html https://www.python.org/dev/peps/pep-0274/ """ import pefile import hashlib import argparse def get_cli_arguments(): """ Read command line arguments. """ ...
22,859
https://github.com/BSoDGamingYT/Ryujinx/blob/master/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NameTypeWithTemplateArguments.cs
Github Open Source
Open Source
MIT
2,022
Ryujinx
BSoDGamingYT
C#
Code
51
182
using System.IO; namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast { public class NameTypeWithTemplateArguments : BaseNode { private BaseNode _prev; private BaseNode _templateArgument; public NameTypeWithTemplateArguments(BaseNode prev, BaseNode templateArgument) : base(NodeType.Name...
34,316
https://github.com/bader/SYCL-CTS/blob/master/tests/nd_item/nd_item_async_work_group_copy_common.h
Github Open Source
Open Source
Apache-2.0
2,021
SYCL-CTS
bader
C++
Code
238
1,211
/******************************************************************************* // // SYCL 1.2.1 Conformance Test Suite // // Provides common methods for nd_item async_work_group_copy tests // *******************************************************************************/ #ifndef SYCL_1_2_1_TESTS_ND_ITEM_ASYNC_WOR...
24,013
https://github.com/maxmlr/rpi-photobooth/blob/master/boot/scripts/wifi_connect.sh
Github Open Source
Open Source
MIT
2,021
rpi-photobooth
maxmlr
Shell
Code
245
919
#!/bin/bash interface=${1:-wlan0} network=${2:-0} echo > /tmp/wifi_connect.log dhc_tmp_lease=/tmp/dhclient.$interface.leases dhc_tmp_lease6=/tmp/dhclient6.$interface.leases if [[ "$network" -eq 0 ]] then dhc_lease=/var/lib/dhcp/dhclient.$interface.leases dhc_lease6=/var/lib/dhcp/dhclient6.$interface.leases els...
1,836
https://github.com/anthonycanino1/entbench-pi/blob/master/batik/badapt_classes/org/apache/batik/css/engine/value/svg/TextRenderingManager.java
Github Open Source
Open Source
Apache-2.0
2,016
entbench-pi
anthonycanino1
Java
Code
514
10,162
package org.apache.batik.css.engine.value.svg; public class TextRenderingManager extends org.apache.batik.css.engine.value.IdentifierManager { protected static final org.apache.batik.css.engine.value.StringMap values = new org.apache.batik.css.engine.value.StringMap( ); static { values.put(org.apach...
51,718
https://github.com/Sharp-Point-Data/XSerializer/blob/master/XSerializer/JsonConstructorAttribute.cs
Github Open Source
Open Source
MIT
2,022
XSerializer
Sharp-Point-Data
C#
Code
28
75
using System; namespace XSerializer { /// <summary> /// Instructs the <see cref="JsonSerializer{T}"/> to use the decorated constructor. /// </summary> [AttributeUsage(AttributeTargets.Constructor)] public class JsonConstructorAttribute : Attribute { } }
51,756
https://github.com/FelipeSantosTi/meustickets/blob/master/resources/views/auth/register2.blade.php
Github Open Source
Open Source
MIT
null
meustickets
FelipeSantosTi
PHP
Code
1
15
@extends('adminlte::auth.register2')
32,822
https://github.com/pedox/genshin-optimizer/blob/master/src/Artifact/UploadDisplay.jsx
Github Open Source
Open Source
MIT
null
genshin-optimizer
pedox
null
Spoken
2,736
8,110
import { faTimes } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React, { useCallback, useEffect, useState } from 'react'; import { Button, Card, Col, Form, Modal, ProgressBar, Row } from 'react-bootstrap'; import ReactGA from 'react-ga'; import { cre...
46,052
https://github.com/CDNoyes/Research/blob/master/Matlab/iLQR/UnscentedTransformDemos.m
Github Open Source
Open Source
MIT
2,021
Research
CDNoyes
MATLAB
Code
112
350
%% UT Demos clear; clc; % Simple sine function, linear variance produces poor variance results theta = -15; std = 1; x = theta + std*randn(10000, 1); y = sind(x); [z,w] = UnscentedTransform(theta, std^2, 3); mc_mean = mean(y); mc_var = var(y); linear_mean = sind(theta); linear_var = cosd(theta)^2 * std^2; yz = s...
52,874
https://github.com/ahirner/pytorch/blob/master/test/quantization/fx/test_equalize_fx.py
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-generic-cla, BSL-1.0, Apache-2.0, BSD-2-Clause
2,021
pytorch
ahirner
Python
Code
383
1,916
import torch from torch.testing._internal.common_quantization import QuantizationTestCase from torch.quantization.fx._equalize import ( _InputEqualizationObserver, _WeightEqualizationObserver, calculate_equalization_scale ) # Standard Libraries import numpy as np # Testing utils from hypothesis import given from ...
13,968
https://github.com/Happy-Dude/dotfiles/blob/master/emacs/.config/emacs/conf/packages/rainbow.el
Github Open Source
Open Source
Vim
2,021
dotfiles
Happy-Dude
null
Spoken
13
93
;; rainbow-delimiters (add-to-list 'load-path "~/.config/emacs/plugins/rainbow-delimiters") (require 'rainbow-delimiters) (add-hook 'prog-mode-hook #'rainbow-delimiters-mode) (add-hook 'org-mode-hook #'rainbow-delimiters-mode)
42,294
https://github.com/ARMAN-8/laravel-ped-college/blob/master/resources/views/layouts/sidebar1/administration_content.blade.php
Github Open Source
Open Source
MIT
null
laravel-ped-college
ARMAN-8
PHP
Code
819
4,897
<div class="mt-3"> <h5 class="font-weight-bold mb-3 text-center"><strong>{{__('messages.college_administration')}}</strong></h5> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12"> <div class="row mt-3"> <div class="col-lg-5 col-xl-4"> <div class...
15,158
https://github.com/ddRenrek/oatpp-ssdp/blob/master/src/oatpp-ssdp/SsdpMessage.hpp
Github Open Source
Open Source
Apache-2.0
null
oatpp-ssdp
ddRenrek
C++
Code
433
1,185
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, Leoni...
35,805
https://github.com/satyajitsingh/master/blob/master/server.js
Github Open Source
Open Source
MIT
null
master
satyajitsingh
JavaScript
Code
540
1,871
// Node.js core dependencies const path = require('path') // Npm dependencies const express = require('express') const cookieSession = require('cookie-session') const favicon = require('serve-favicon') const bodyParser = require('body-parser') const i18n = require('i18n') const logger = require('./common/utils/logger'...
45,748
https://github.com/sgothel/jaulib/blob/master/include/jau/cpp_lang_util.hpp
Github Open Source
Open Source
MIT
null
jaulib
sgothel
C++
Code
1,370
3,339
/* * Copyright (c) 2020 Gothel Software e.K. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge...
31,276
https://github.com/MINALRAI/arc-front-end/blob/master/src/pages/About.js
Github Open Source
Open Source
MIT
null
arc-front-end
MINALRAI
JavaScript
Code
30
78
import React from "react"; import NavBar from "../components/NavBar"; import AboutMain from "../components/AboutMain"; const About = () => { return ( <div> <NavBar></NavBar> <AboutMain /> </div> ); }; export default About;
26,781
https://github.com/elina-petrova/Petrova_E_Tran_MT_Yu_J_Meng_Z_Oka_R_LondonRefereesGroup/blob/master/assets/sass/modules/homepage/_goals.scss
Github Open Source
Open Source
Unlicense, MIT
null
Petrova_E_Tran_MT_Yu_J_Meng_Z_Oka_R_LondonRefereesGroup
elina-petrova
SCSS
Code
124
560
#goals{ // background-image: url('../images/ourgoals-bg.jpg'); // background-position: center bottom; // background-size: cover; span svg{ color: $red; } } .goals_wrap{ display: -webkit-box; display: -ms-flexbox; display: flex; padding-top: $default-padding_mobile; -webk...
29,178
https://github.com/adammathieson/portfolio-UI/blob/master/sass/variables.scss
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,020
portfolio-UI
adammathieson
SCSS
Code
51
247
// Media queries $mobile-width: 450px; $tablet-width: 730px; $desktop-width: 900px; //colors ––––––––––––––––––– $white: #E1DCC1; $primary-font: #073D4F; // $primary-font: red; $bg-landing: #5F73C1; $bg-projects: #BCD3DB; $bg-contact: linear-gradient(234.56deg, #51E3EC 0.75%, #A16DC6 100.51%); // $submit-green: #30F4...
48,618
https://github.com/ParaStation/psmpi/blob/master/mpich2/test/mpi/parastation/large_msg_coll_ialltoall.c
Github Open Source
Open Source
mpich2, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer
2,023
psmpi
ParaStation
C
Code
514
1,535
/* * ParaStation * * Copyright (C) 2021-2023 ParTec AG, Munich * * This file may be distributed under the terms of the Q Public License * as defined in the file LICENSE.QPL included in the packaging of this * file. */ #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include "mpitest.h" int factor = 2;...
6,496
https://github.com/mweruli/biometric-timeattendance/blob/master/application/views/company/hr/employeeemployeereport.php
Github Open Source
Open Source
MIT
null
biometric-timeattendance
mweruli
PHP
Code
969
3,528
<div class="panel-body"> <form class="form-horizontal" role="form" method="post" name="employeereport_form" id="employeereport_form" novalidate> <div class="form-group"> <label class="col-sm-1 control-label"> Branch </label> <div class="col-sm-5"> <select id...
25,148
https://github.com/BCS-Broker/APICore/blob/master/pod_push.sh
Github Open Source
Open Source
MIT
2,021
APICore
BCS-Broker
Shell
Code
7
68
pod repo push gitlab-bcsbroker-ios-brokerrepo APICore.podspec --allow-warnings --sources='https://gitlab.com/BCSBroker/iOS/brokerrepo.git,https://github.com/CocoaPods/Specs'
40,987
https://github.com/qegabbe/eclipseCAST/blob/master/lib/com.github.uchang_nos.c_helper.src/pointer/MemoryProblem.java
Github Open Source
Open Source
MIT
null
eclipseCAST
qegabbe
Java
Code
119
437
package com.github.uchan_nos.c_helper.pointer; import org.eclipse.cdt.core.dom.ast.IASTNode; import com.github.uchan_nos.c_helper.util.Util; /** * 解析の途中で検出した問題を表す. * 例えばfreeに未初期化変数を渡しているとか、freeにmallocした以外の値を渡しているなど */ public class MemoryProblem { public static enum Kind { FREE_INVALID_NUMBER_ARGUMENT,...
28,760
https://github.com/matang28/java-pipelines/blob/master/src/main/java/com/matangolan/pipelines/tasks/PartitionListTask.java
Github Open Source
Open Source
Apache-2.0
2,018
java-pipelines
matang28
Java
Code
49
183
package com.matangolan.pipelines.tasks; import com.matangolan.pipelines.core.ITask; import com.matangolan.pipelines.utils.ListUtils; import java.util.List; /** * Created by Matan on 22-Nov-16. * . */ public class PartitionListTask<T> implements ITask<List<T>, List<List<T>>> { private Integer partitionSize =...
49,057
https://github.com/vladimir-gavrilenko/nscala-time/blob/master/src/test/scala/DurationSpec.scala
Github Open Source
Open Source
Apache-2.0
null
nscala-time
vladimir-gavrilenko
Scala
Code
48
208
package com.github.nscala_time.time import com.github.nscala_time.time.Imports.{richDuration, richSDuration} import org.joda.time.Duration import org.scalacheck.{Prop, Arbitrary, Properties} import scala.concurrent.duration.{Duration => SDuration} object DurationSpec extends Properties("Duration"){ private[this] i...
19,917
https://github.com/uber/base-web/blob/master/src/tree-view/__tests__/tree-view.stories.js
Github Open Source
Open Source
MIT
2,019
base-web
uber
JavaScript
Code
115
265
/* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ // @flow import React from 'react'; import { Scenario as TreeViewIconOverrides } from './tree-view-icon-overrides.scenario.js'; import { Scenario as TreeV...
9,532
https://github.com/Vladlgv/TCI_G3/blob/master/AssignmentG3/src/test/java/casino/game/GameRuleTest.java
Github Open Source
Open Source
MIT
null
TCI_G3
Vladlgv
Java
Code
216
780
package casino.game; import casino.bet.Bet; import casino.bet.BetResult; import org.junit.Test; import java.util.HashSet; import java.util.Set; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; public class GameRuleTest { int maxNumberOfBets=6; GameRule gameRule = new GameRule(maxNu...
6,037
https://github.com/ropensci/jqr/blob/master/man/funs.Rd
Github Open Source
Open Source
MIT
2,022
jqr
ropensci
R
Code
118
418
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funs.R \name{funs} \alias{funs} \title{Define and use functions} \usage{ funs(.data, fxn, action) } \arguments{ \item{.data}{input} \item{fxn}{A function definition, without \code{def} (added internally)} \item{action}{What to do with the f...
39,595
https://github.com/z-van-baars/IronWarden/blob/master/.import/0030.png-a1f2b64c721bc0333d8502de612063bc.md5
Github Open Source
Open Source
MIT
2,021
IronWarden
z-van-baars
null
Spoken
2
55
source_md5="c9d683ac0673081730e9281aaf4f0573" dest_md5="f58ac17d9fc5755aefbcb1799f2f7123"
9,015
https://github.com/ExternKit/externs-js/blob/master/aws-sdk/src/js/aws/cognitoidentity/UpdateIdentityPoolInput.hx
Github Open Source
Open Source
MIT
2,016
externs-js
ExternKit
Haxe
Code
6
24
package js.aws.cognitoidentity; typedef UpdateIdentityPoolInput = _ShapeSf;
43,128
https://github.com/davegomez/silky/blob/master/packages/group/__tests__/Group.test.js
Github Open Source
Open Source
MIT
2,019
silky
davegomez
JavaScript
Code
149
624
import React from 'react'; import serializer, { matchers } from 'jest-emotion'; import { render, cleanup } from 'react-testing-library'; import { css } from '@emotion/core'; import { Group } from '../src'; expect.addSnapshotSerializer(serializer); expect.extend(matchers); afterEach(cleanup); test('Group', () => { c...
31,028
https://github.com/Brodong/vizdoommaze/blob/master/vizdoommaze/envs/vizdoommazefour18.py
Github Open Source
Open Source
MIT
null
vizdoommaze
Brodong
Python
Code
10
67
from vizdoommaze.envs.vizdoomenv import VizdoomEnv class VizdoomMazeFour18(VizdoomEnv): def __init__(self): super(VizdoomMazeFour18, self).__init__(91)
34,928
https://github.com/DanielaIvanova/04.CSharp-Advanced/blob/master/06. StringsAndTextProcessing/20.Palindromes/Palindromes.cs
Github Open Source
Open Source
MIT
null
04.CSharp-Advanced
DanielaIvanova
C#
Code
80
229
using System; class Palindromes { static void Main() { Console.Write("Enter text: "); string text = Console.ReadLine(); string[] words = text.Split(new char[] { ' ', ',', '.' }, StringSplitOptions.RemoveEmptyEntries); string palindromes = string.Empty; foreach (var wor...
40,939
https://github.com/radiotech/LP_Motion/blob/master/learning/background/Assets/Scenes/Stage1.unity.meta
Github Open Source
Open Source
MIT
2,015
LP_Motion
radiotech
Unity3D Asset
Code
6
41
fileFormatVersion: 2 guid: f35b4b5e697fe4cbbb3685e80f07c384 DefaultImporter: userData:
38,784
https://github.com/Cub-Hub/dayCare/blob/master/client/components/admin/financialSnapshot.js
Github Open Source
Open Source
MIT
null
dayCare
Cub-Hub
JavaScript
Code
169
698
import React, {useState, useEffect} from 'react' import axios from 'axios' const financialSnapshot = () => { const [finalReport, setFinalReport] = useState(()=>[]) useEffect(()=>{ const runReport = async()=>{ const { id } = (await axios.post('/api/v1/reporting/report_runs')).data const dataTwo =...
25,995
https://github.com/TuomasOstman/CoreDatabaseApp/blob/master/App/DAL/EntityFrameworkDAL.cs
Github Open Source
Open Source
MIT
null
CoreDatabaseApp
TuomasOstman
C#
Code
346
1,021
using CoreApp.Entities.DB; using CoreApp.Model; using Microsoft.EntityFrameworkCore; using System; using System.Diagnostics; using System.Linq; namespace CoreApp { public class EntityFrameworkDAL { #region EntityFramework /// <summary> /// Inserts data with EntityFramework ///...
10,569
https://github.com/Nerkritus/Povengine/blob/master/Povengine/Atlas/Cone.h
Github Open Source
Open Source
Apache-2.0
null
Povengine
Nerkritus
C
Code
30
86
#pragma once #include "BaseEntity.h" namespace Atlas { class Cone : public BaseEntity { public: Cone(int quality, float size, glm::vec3 pos, Shader* shader); virtual void InitData(); private: int _quality; }; }
32,911
https://github.com/balusio/podcast-demo/blob/master/src/components/podcast-list/podcast-list.scss
Github Open Source
Open Source
MIT
null
podcast-demo
balusio
SCSS
Code
16
65
.podcast-list{ tr{ &:nth-child(even) { background: #ffffff } &:nth-child(odd) { background: #cccccc } cursor: pointer; } }
14,035
https://github.com/cietwwl/xgame-code_server/blob/master/game_part/src/main/java/com/game/part/io/SyncIoOperProc.java
Github Open Source
Open Source
Apache-2.0
2,020
xgame-code_server
cietwwl
Java
Code
192
712
package com.game.part.io; /** * 同步的 IO 工作过程 * * @author haijiang * */ class SyncIoOperProc implements IIoOperProc<IIoOper> { /** 单例对象 */ static final SyncIoOperProc OBJ = new SyncIoOperProc(); /** * 类默认构造器 * */ private SyncIoOperProc() { } @Override public void execut...
3,612
https://github.com/uk-gov-mirror/SkillsFundingAgency.das-apim-endpoints/blob/master/src/SFA.DAS.SharedOuterApi/InnerApi/Requests/GetStandardsExportRequest.cs
Github Open Source
Open Source
MIT
2,022
SkillsFundingAgency.das-apim-endpoints
uk-gov-mirror
C#
Code
18
72
using SFA.DAS.SharedOuterApi.Interfaces; namespace SFA.DAS.SharedOuterApi.InnerApi.Requests { public class GetStandardsExportRequest : IGetApiRequest { public string GetUrl => "ops/export"; } }
8,908
https://github.com/AndyAyersMS/runtime/blob/master/src/libraries/Microsoft.Extensions.Configuration.Binder/gen/SourceGenerationSpec.cs
Github Open Source
Open Source
MIT
2,023
runtime
AndyAyersMS
C#
Code
47
139
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Microsoft.CodeAnalysis; namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration { internal sealed record SourceGenerationS...
16,362
https://github.com/awslabs/fever/blob/master/fever-annotations-platform/src/util/wiki.py
Github Open Source
Open Source
Apache-2.0
2,023
fever
awslabs
Python
Code
365
940
# Copyright 2018 Amazon Research Cambridge # # 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...
26,783
https://github.com/fiiSoft/fiisoft-changeskeeper/blob/master/src/Tools/ChangesKeeper/ChangesKeeper.php
Github Open Source
Open Source
MIT
null
fiisoft-changeskeeper
fiiSoft
PHP
Code
636
1,678
<?php namespace FiiSoft\Tools\ChangesKeeper; use LogicException; use UnexpectedValueException; class ChangesKeeper { /** @var array[] */ protected $changes = []; /** @var ChangesHistoryGenerator */ protected $historyGenerator; /** @var array */ private $variables = []; /** ...
16,779
https://github.com/PeterOgdin/Bytecraft/blob/master/src/info/bytecraft/commands/TeleportCommand.java
Github Open Source
Open Source
BSD-4-Clause
2,013
Bytecraft
PeterOgdin
Java
Code
197
737
package info.bytecraft.commands; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import info.bytecraft.Bytecraft; import info.bytecraft.api.BytecraftPlayer; import info.tregmine.api.math.Distance; public class TeleportCommand extends AbstractCommand { private class Te...
46,428
https://github.com/guanaco-io/events-web/blob/master/app/Webserver.scala
Github Open Source
Open Source
Apache-2.0
null
events-web
guanaco-io
Scala
Code
250
643
/* * Copyright 2018 - anova r&d bvba * * 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 agree...
49,755
https://github.com/mssfang/azure-sdk-for-java/blob/master/sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/models/ErrorResponseBody.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-public-domain, CC0-1.0, LGPL-2.1-or-later, BSD-3-Clause, BSD-2-Clause, LicenseRef-scancode-warranty-disclaimer
2,021
azure-sdk-for-java
mssfang
Java
Code
383
830
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.apimanagement.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.faste...
31,095
https://github.com/DrNorton/slack-bot/blob/master/bot-service/src/api-modules/booking/meetingRooms/attributeTypes/entity/room.attributeType.entity.ts
Github Open Source
Open Source
MIT
2,019
slack-bot
DrNorton
TypeScript
Code
108
370
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne, PrimaryColumn, OneToMany, } from 'typeorm'; import { RoomAttributeEntity } from '../../attributes/entity/roomAttribute.entity'; import { TeamEntity } from '../../../../team/entity/team.entity'; import { RoomAttributeTypeDto } from '../dto/roomAttri...
12,801
https://github.com/svsoft/yii2-items/blob/master/src/repositories/tables/TableField.php
Github Open Source
Open Source
MIT
2,020
yii2-items
svsoft
PHP
Code
62
256
<?php namespace svsoft\yii\items\repositories\tables; use yii\db\Connection; class TableField extends AbstractTableValue { use TableKeyTrait; CONST TABLE = 'items_field'; protected $all; function __construct(Connection $db) { parent::__construct($db); foreach($this->getAll() a...
41,703
https://github.com/anbturki/gitlab-ui/blob/master/src/utils/use_mock_intersection_observer.js
Github Open Source
Open Source
MIT
null
gitlab-ui
anbturki
JavaScript
Code
258
792
/* global jest, beforeEach, afterEach */ /* eslint-disable class-methods-use-this, max-classes-per-file, babel/camelcase */ import { isMatch, isArray } from 'lodash'; /** * This class gives us a JSDom friendly DOM observer which we can manually trigger in tests * * Use this in place of MutationObserver or Intersect...
49,326
https://github.com/nfaguirrec/M3C-store/blob/master/master/6-311++G.3df.2p/history.freqs/H3C5.q1.m3-47.com
Github Open Source
Open Source
BSD-2-Clause
2,019
M3C-store
nfaguirrec
DIGITAL Command Language
Code
42
234
%NProcShared=4 #p b3lyp/6-311++G(3df,2p) freq IOp(2/17=3) IOp(2/18=3) b3lyp opt 1 3 C -1.083323983 -0.496833987 -0.000229990 H -1.674978983 -0.750802987 -0.883892693 H -1.675250983 -0.751001987 0.883193307 C 0.291060015 -1.088506989 -0.000085068 C 1.307326982 -0.365677013 0.000152763 C -0.587107977 0.962969016 ...
14,631
https://github.com/xiang12835/JavaLearning/blob/master/JavaBase/ObjectOriented/31. 最熟悉的陌生人:String/code/src/com/geekbang/learn/LearnString2.java
Github Open Source
Open Source
MIT
2,022
JavaLearning
xiang12835
Java
Code
90
420
package com.geekbang.learn; public class LearnString2 { public static void main(String[] args) { String content = "Orange_Apple_Banana"; char[] chars = content.toCharArray(); for (int i = 0; i < chars.length; i++) { System.out.println(chars[i]); } String sp = "...
30,753
https://github.com/vukhanhtruong/express-api-cli/blob/master/lib/sequelize/ts/express/src/models/user.ts
Github Open Source
Open Source
MIT
2,020
express-api-cli
vukhanhtruong
TypeScript
Code
95
249
/* eslint-disable no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */ 'use strict'; import { Model } from 'sequelize'; import { IUser } from '../interfaces/user.interface'; export default (sequelize, DataTypes) => { class User extends Model<IUser> implements IUser { public firstName; pub...
29,687
https://github.com/uiwjs/react-native-uiw/blob/master/example/examples/src/routes/Tooltip/index.tsx
Github Open Source
Open Source
MIT
2,023
react-native-uiw
uiwjs
TSX
Code
174
623
import React, {Component} from 'react'; import {StyleSheet, View} from 'react-native'; import Layout, {Container} from '../../Layout'; import {Tooltip, Icon, Text} from '@uiw/react-native'; import {ComProps} from '../../routes'; const {Header, Body, Footer} = Layout; export interface IndexProps extends ComProps {} ex...
15,549
https://github.com/Haze272/mireaDSaA/blob/master/task_4/Main.cpp
Github Open Source
Open Source
CC0-1.0
2,021
mireaDSaA
Haze272
C++
Code
70
183
#include <iosteam> using namespace std; struct Cell { string name = "N/A"; string article = "N/A"; struct Cell* nextCell = nullptr; bool isEmpty() const { return article == "N/A" && name == "N/A"; } }; class BinarySearchTree() { Cell* root; public: BinarySearchTree() { ...
38,568
https://github.com/NicolasMing/lin-cms-dotnetcore/blob/master/src/LinCms.Web/Controllers/Blog/CommentController.cs
Github Open Source
Open Source
MIT
2,020
lin-cms-dotnetcore
NicolasMing
C#
Code
500
2,193
using System; using System.Threading.Tasks; using AutoMapper; using DotNetCore.CAP; using FreeSql; using LinCms.Aop.Filter; using LinCms.Blog.Comments; using LinCms.Blog.Notifications; using LinCms.Data; using LinCms.Entities.Blog; using LinCms.Exceptions; using LinCms.IRepositories; using LinCms.Security; using Micro...
11,078
https://github.com/fmeslet/SPPNet/blob/master/scapy_ssl_tls/ssl_tls_crypto.py
Github Open Source
Open Source
MIT
2,022
SPPNet
fmeslet
Python
Code
3,529
21,158
#! /usr/bin/env python # -*- coding: UTF-8 -*- # Author : tintinweb@oststrom.com <github.com/tintinweb> # http://www.secdev.org/projects/scapy/doc/build_dissect.html import binascii import copy import os import struct import zlib import re import warnings from scapy.layers import pkcs7 from scapy.layers import ssl_tls...
24,375
https://github.com/osonus/oson/blob/master/src/main/java/ca/oson/json/util/DeSerializerUtil.java
Github Open Source
Open Source
Apache-2.0
2,017
oson
osonus
Java
Code
646
2,516
package ca.oson.json.util; import java.util.Arrays; import java.util.BitSet; import java.util.Calendar; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import java.util.function.Function; import ca.oson.json.DataMapper; import ca.oson.json.Oson; import ca.os...
21,546
https://github.com/SebastienForay/Ingress-ExactAP/blob/master/Fr.Fisher01.IngressExactAp.Android/Renderers/EntryRenderer.cs
Github Open Source
Open Source
Apache-2.0
null
Ingress-ExactAP
SebastienForay
C#
Code
42
176
using Android.Content; using Fr.Fisher01.IngressExactAp.Droid.Renderers; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; [assembly: ExportRenderer(typeof(Entry), typeof(CustomEntryRenderer))] namespace Fr.Fisher01.IngressExactAp.Droid.Renderers { public class CustomEntryRenderer: EntryRenderer { ...
18,050
https://github.com/fengalin/fix-getters/blob/master/fix-calls/test_samples/input/baseline.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
fix-getters
fengalin
Rust
Code
501
1,531
//! This is a test //! //! ```rust //! let b = String::from("abc"); //! assert_eq!(hello.get_str(), Some("Hello!")); //! ``` /// ``` /// fn from_my_type() -> u64 { /// let my_instance = MyType { foo: 42u64 }; /// let _ = my_instance.get_multiple_arg(42u64); /// let other = my_instance.get_foo(); /// le...
34,761
https://github.com/metux/chromium-suckless/blob/master/ash/mus/bridge/wm_window_mus.h
Github Open Source
Open Source
BSD-3-Clause
2,017
chromium-suckless
metux
C++
Code
1,144
3,753
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ #define ASH_MUS_BRIDGE_WM_WINDOW_MUS_H_ #include <memory> #include "ash/common/shell_window_ids.h" #include "ash...
28,535
https://github.com/lulzzz/virtualrtu/blob/master/src/IoTEdge.VirtualRtu/Dockerfile
Github Open Source
Open Source
MIT
2,019
virtualrtu
lulzzz
Dockerfile
Code
12
50
FROM microsoft/dotnet:2.2-runtime WORKDIR /app EXPOSE 502 ENTRYPOINT ["dotnet", "IoTEdge.VirtualRtu.dll"] COPY . /app
43,175
https://github.com/SanjuGovindharaj/crank/blob/master/app/Library/CompileRunHack.php
Github Open Source
Open Source
MIT
2,019
crank
SanjuGovindharaj
PHP
Code
177
700
<?php namespace App\Library; //Endpoints Of Hackerearth API $endpoint_compile = "https://api.hackerearth.com/v3/code/compile/"; $endpoint_run = "https://api.hackerearth.com/v3/code/run/"; class CompileRunHack{ function __construct() { } /** * parms is an array wjich expects time, memory, file * example ...
30,209
https://github.com/Odinvt/eccrypto/blob/master/index.js
Github Open Source
Open Source
CC0-1.0
2,019
eccrypto
Odinvt
JavaScript
Code
1,064
2,914
/** * Node.js eccrypto implementation. * @module eccrypto */ "use strict"; const EC_GROUP_ORDER = Buffer.from('fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141', 'hex'); const ZERO32 = Buffer.alloc(32, 0); var promise = typeof Promise === "undefined" ? require("es6-promise").Promise ...
4,629
https://github.com/apaniukov/workbench/blob/master/client/src/app/shared/components/model-details/model-details.component.ts
Github Open Source
Open Source
Apache-2.0
2,022
workbench
apaniukov
TypeScript
Code
1,704
6,021
import { ChangeDetectionStrategy, Component, Inject, Input, LOCALE_ID, OnInit } from '@angular/core'; import { DatePipe, DecimalPipe } from '@angular/common'; import { capitalize, get, isBoolean, isNil, isNumber } from 'lodash'; import { MessagesService } from '@core/services/common/messages.service'; import { Mod...
41,352