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/dmgerman/camel/blob/master/examples/camel-example-hazelcast-kubernetes/src/main/java/org/apache/camel/example/kubernetes/fmp/HazelcastRoute.java
Github Open Source
Open Source
Apache-2.0
null
camel
dmgerman
Java
Code
499
1,903
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
21,845
https://github.com/bagel99/llvm-my66000/blob/master/llvm/test/CodeGen/WebAssembly/lower-em-exceptions-lpad-only.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,021
llvm-my66000
bagel99
LLVM
Code
100
270
; RUN: opt < %s -wasm-lower-em-ehsjlj -S | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" target triple = "wasm32-unknown-unknown" @_ZTIi = external constant i8* ; Checks if a module that only contains a landingpad (and resume) but not an ; invoke works correctly and does not crash. ; CHECK-LABE...
14,022
https://github.com/woodser/java_machine_learning_classification/blob/master/src/ml/ModelLearner.java
Github Open Source
Open Source
MIT, Apache-2.0
2,017
java_machine_learning_classification
woodser
Java
Code
315
905
package ml; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeSet; import learner.Experience; import learner.Learner; import learner.features.ContinuousFeature; import learner.features.Feature; import learner.features.N...
6,312
https://github.com/AAI-USZ/FixJS/blob/master/input/50-100/before/b1bb0b9ccc28895e3864bb30a53e7b541568dfee_19_1.js
Github Open Source
Open Source
MIT
2,022
FixJS
AAI-USZ
JavaScript
Code
31
160
function(shouldHighlight) { if (this.$highlightGutterLine == shouldHighlight) return; this.$highlightGutterLine = shouldHighlight; if (!this.$gutterLineHighlight) { this.$gutterLineHighlight = dom.createElement("div"); this.$gutterLineHighlig...
38,495
https://github.com/gb6612/qr-sheet-generator/blob/master/myfunctions.js
Github Open Source
Open Source
MIT
null
qr-sheet-generator
gb6612
JavaScript
Code
258
758
function leadZeroes(num, size) { num = num.toString(); while (num.length < size) num = "0" + num; return num; } function isOdd(num) { return num % 2;} function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } //*************************************** // create QR code sheet with the foll...
1,547
https://github.com/darren-fu/pampas/blob/master/pampas-storage-mybatis/src/main/java/com/github/pampas/storage/config/MybatisConfig.java
Github Open Source
Open Source
Apache-2.0
2,020
pampas
darren-fu
Java
Code
96
458
package com.github.pampas.storage.config; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.SqlSessionTemplate; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import...
1,096
https://github.com/rotemjac/Vagrant-networking/blob/master/vagrantfile_builder/builder.py
Github Open Source
Open Source
MIT
null
Vagrant-networking
rotemjac
Python
Code
38
234
import os import jinja2 class VagrantManager: def __init__(self): pass @classmethod def generate_vagrantfile( cls, config, vagrantfile_path='Vagrantfile' ): __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) ...
29,118
https://github.com/mkskeller/mpc-benchmarks/blob/master/mpyc/source/innerprod.py
Github Open Source
Open Source
MIT
2,021
mpc-benchmarks
mkskeller
Python
Code
125
355
import numpy as np from mpyc.runtime import mpc async def main(): # initialize mpc, define secure int type LEN = 100000 await mpc.start() secint = mpc.SecInt(128) # party 0 samples the inputs locally... if mpc.pid == 0: vec1 = [np.random.randint(1,1000) for _ in range(LEN)] v...
24,164
https://github.com/skazancev/saleor/blob/master/common.env
Github Open Source
Open Source
BSD-2-Clause
2,018
saleor
skazancev
Shell
Code
8
130
DATABASE_URL=postgres://saleor:saleor@165.227.11.217:15432/saleor DEFAULT_FROM_EMAIL=nur-k@list.ru ELASTICSEARCH_URL=http://search:9200 OPENEXCHANGERATES_API_KEY REDIS_URL=redis://redis:6379/0 REDIS_BROKER_URL=redis://redis:6379/1 SECRET_KEY=changeme ALLOWED_HOSTS=127.0.0.1
22,381
https://github.com/jvdvegt/flexmark-java/blob/master/flexmark/src/main/java/com/vladsch/flexmark/html/renderer/HeaderIdGeneratorFactory.java
Github Open Source
Open Source
BSD-2-Clause
null
flexmark-java
jvdvegt
Java
Code
63
137
package com.vladsch.flexmark.html.renderer; /** * Factory for instantiating new node renderers when rendering is done. */ public interface HeaderIdGeneratorFactory { /** * Create a new node renderer for the specified rendering context. * * @param context the context for rendering (normally passed...
36,285
https://github.com/leftidev/TaskMAN/blob/master/TaskMAN/Pages/TaskEntries/Index.cshtml.cs
Github Open Source
Open Source
Apache-2.0
null
TaskMAN
leftidev
C#
Code
57
201
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.EntityFrameworkCore; using TaskMAN.Data; using TaskMAN.Models; namespace TaskMAN.Pages.TaskEntries { public class IndexModel :...
46,144
https://github.com/pluskal/CsharpCourse/blob/master/Lectures/Lecture03/Assets/sln/Examples/StreamWriterSample.cs
Github Open Source
Open Source
MIT
2,019
CsharpCourse
pluskal
C#
Code
92
200
using System; using System.IO; namespace Examples { public class StreamWriterSample { public static void Main() { try { // Create an instance of StreamWriter to write to a file. // The using statement also closes the StreamWriter. ...
37,900
https://github.com/basmaezz/eiadat/blob/master/resources/views/admin/doctorAnalysis/create.blade.php
Github Open Source
Open Source
MIT
2,019
eiadat
basmaezz
Blade
Code
150
693
@extends('layouts.app') @section('content') <!-- BEGIN SAMPLE FORM PORTLET--> <div class="portlet box green "> <div class="portlet-title"> <div class="caption"> <i class="fa fa-plus"></i> @lang('admin.Add new item') </div> <div class="tools"></div> </div> <div class="portlet-...
6,237
https://github.com/aaronpriven/List-Flat-pm/blob/master/t/withrefutil.t
Github Open Source
Open Source
Artistic-1.0
2,017
List-Flat-pm
aaronpriven
Perl
Code
34
97
use strict; use Test::More 0.98; use List::Flat(qw/flat flat_f flat_r/); note('Use Ref::Util for checking array references'); unless ( eval { require Ref::Util; 1 } ) { plan skip_all => 'No Ref::Util'; } require './t/lib/list_flat.pl'; done_testing;
17,245
https://github.com/ChibiCritters/deprecated-chibi-critters-website/blob/master/admin/app/models/model.php
Github Open Source
Open Source
BSD-3-Clause
2,015
deprecated-chibi-critters-website
ChibiCritters
PHP
Code
197
599
<?php require_once(dirname($_SERVER['SCRIPT_FILENAME']) . '/application.php'); require_once(ROOT . 'lib/spyc.php'); /** * Class for Models to inherit from. * This class will handle DB queries. */ abstract class Model { protected static $mysqli; // Go ahead and override this in child classes, that's what it is f...
28,688
https://github.com/aaronsturm/serverless-libreoffice/blob/master/compile.sh
Github Open Source
Open Source
MIT
2,021
serverless-libreoffice
aaronsturm
Shell
Code
437
1,640
#!/usr/bin/env bash # see https://stackoverflow.com/questions/2499794/how-to-fix-a-locale-setting-warning-from-perl export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 # install basic stuff required for compilation sudo yum-config-manager --enable epel sudo yum install -y \ autoconf \ ccache \ expat-dev...
456
https://github.com/purplejacket/vscode-annotator/blob/master/src/lib/app-integrator-factory.ts
Github Open Source
Open Source
MIT
2,022
vscode-annotator
purplejacket
TypeScript
Code
391
1,680
import {ChangedFileLabelMaker} from './changed-file-label-maker'; import {AnnotateCommand} from './command/annotate'; import {SwitchDiffCommand} from './command/switch-diff'; import {AppIntegrator} from './app-integrator'; import {ChangedFileListParser} from './changed-file-list-parser'; import {ChangedFilePicker} from...
42,152
https://github.com/hubsen1980/bitcoinj/blob/master/src/com/google/bitcoin/bouncycastle/crypto/macs/CMac.java
Github Open Source
Open Source
Apache-2.0
2,022
bitcoinj
hubsen1980
Java
Code
766
1,954
package com.google.bitcoin.bouncycastle.crypto.macs; import com.google.bitcoin.bouncycastle.crypto.BlockCipher; import com.google.bitcoin.bouncycastle.crypto.CipherParameters; import com.google.bitcoin.bouncycastle.crypto.Mac; import com.google.bitcoin.bouncycastle.crypto.modes.CBCBlockCipher; import com.google.bitcoi...
30,381
https://github.com/iamsuryakant/100-days-of-code/blob/master/JAVA/Bank_Account.java
Github Open Source
Open Source
MIT
2,020
100-days-of-code
iamsuryakant
Java
Code
46
141
public class Bank_Account { public String Account_Holder_Name; private String Account_Number; private char Account_Type; public Boolean withdraw_money(int money) { return true; } public Boolean deposit_money(int money) { return true; } public Bank_Account(String name,String number,char type) {...
36,872
https://github.com/edwarnicke/git-bom-site/blob/master/assets/sass/header.sass
Github Open Source
Open Source
Apache-2.0
2,022
git-bom-site
edwarnicke
Sass
Code
8
47
@each $icon-name, $icon-code in $fa-icons-all .#{$site-css-prefix}-#{$icon-name}:after content: $icon-code
23,377
https://github.com/mellisphera/mellihealth-api/blob/master/src/main/java/com/mellisphera/security/entities/BmAuth.java
Github Open Source
Open Source
Apache-2.0
2,019
mellihealth-api
mellisphera
Java
Code
216
604
/* Copyright 2018-present Mellisphera 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 di...
11,508
https://github.com/tecnicatura-villa-el-libertador/CentroAsistencialH3/blob/master/CentroAsist/migrations/0001_initial.py
Github Open Source
Open Source
BSD-3-Clause
2,016
CentroAsistencialH3
tecnicatura-villa-el-libertador
Python
Code
100
556
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Paciente', fields=[ ('id', models.AutoField(aut...
28,441
https://github.com/alu0100697698/prct09/blob/master/lib/matriz/matrizdensa.rb
Github Open Source
Open Source
MIT
2,013
prct09
alu0100697698
Ruby
Code
495
1,437
require "./lib/matriz/matriz.rb" module Matriz class Matriz_Densa < Matriz def initialize(n, m) super @contenido = Array.new(@N,0) i = 0 while i < @N @contenido[i] = Array.new(@M,0) i += 1 end end def get(i, j) if( i < 0 or i >=@N or j < 0 or ...
11,377
https://github.com/duckAndroid/android-aidl-4-FINAL-/blob/master/AppB-aidlServer/app/src/main/java/com/pythoncat/appb/base/MyApplication.java
Github Open Source
Open Source
Apache-2.0
2,017
android-aidl-4-FINAL-
duckAndroid
Java
Code
40
125
package com.pythoncat.appb.base; import android.app.Application; /** * Created by pythonCat on 2016/9/22 0022. * * @apiNote application */ public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); App.set(this); } @Override public ...
24,302
https://github.com/winterchaufr/hyperspectral-image-classification-1/blob/master/src/project_m_file.m
Github Open Source
Open Source
MIT
2,018
hyperspectral-image-classification-1
winterchaufr
MATLAB
Code
654
2,360
clear format compact close all load ../dataset/Salinas_hyperspectral.mat %Load the Salinas hypercube called "Salinas_Image" [p,n,l]=size(Salinas_Image) % p,n define the spatial resolution of the image, while l is the number of bands (number of features for each pixel) c = 5; %number of classes load ../dataset/classif...
14,559
https://github.com/IsaiahJTurner/AlisonsBakery/blob/master/test/helpers/menu-csv-parser.js
Github Open Source
Open Source
FSFAP
null
AlisonsBakery
IsaiahJTurner
JavaScript
Code
66
325
var menuParser = require('../../helpers/menu-csv-parser.js'); var chai = require('chai'); chai.use(require("chai-as-promised")); chai.should(); describe('menu-csv-parser', function() { describe('#parse()', function() { it('should return an array of MenuItems', function(done) { menuParser.parse...
4,990
https://github.com/joticarroll/Torque3D/blob/master/My Projects/CubistMT/game/art/cube/sets/reef_collision.cs
Github Open Source
Open Source
MIT
2,012
Torque3D
joticarroll
C#
Code
10
47
singleton TSShapeConstructor(Reef_collisionDae) { baseShape = "./reef_collision.dae"; loadLights = "0"; };
41,848
https://github.com/macsux/cf-dotnet-sdk/blob/master/src/CloudFoundry.CloudController.V2.Client/Generated/UserProvidedServiceInstances.cs
Github Open Source
Open Source
Apache-2.0
2,020
cf-dotnet-sdk
macsux
C#
Code
909
3,797
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------...
37,951
https://github.com/Joevaen/Scikit-image_On_CT/blob/master/Restoration/denoise_tv_bregman.py
Github Open Source
Open Source
Apache-2.0
null
Scikit-image_On_CT
Joevaen
Python
Code
2
24
# 使用split-Bregman优化执行总变量降噪。
13,373
https://github.com/AddinX/AddinX.Ribbon/blob/master/src/Implementation/Control/Gallery.cs
Github Open Source
Open Source
MIT
2,021
AddinX.Ribbon
AddinX
C#
Code
606
2,020
using System; using System.Xml.Linq; using AddinX.Ribbon.Contract.Control.Gallery; using AddinX.Ribbon.Contract.Control.Item; using AddinX.Ribbon.Contract.Enums; using AddinX.Ribbon.Implementation.Ribbon; namespace AddinX.Ribbon.Implementation.Control { public class Gallery : Control, IGallery { priva...
9,539
https://github.com/atsushi-tago-0209/laravelapp/blob/master/resources/views/hello/index.blade.php
Github Open Source
Open Source
MIT
null
laravelapp
atsushi-tago-0209
PHP
Code
106
546
<html> <head> <title>Hello/Index</title> <style> body { font-size: 16pt; color: #999; } h1 { font-size: 50pt; text-align: right; color: #f6f6f6; margin: -20px 0px -30px 0px; letter-spacing: -4pt; } </style> </head> <body> <h1>Blade/Index</h1> <ol> ...
3,148
https://github.com/JohnAdriaan/80386EX/blob/master/Demo/Ints/Debug/Init.inc
Github Open Source
Open Source
Unlicense
2,021
80386EX
JohnAdriaan
Assembly
Code
101
334
; ; Ints/Debug/Init.inc ; ; This module handles the Debug interrupt Init and Done routines. ;............................................................................... Ints.Debug.Init: MOV AX, x86.Selector(Demo.GDT.Screen, .GDT, .RPL0) ; *** MOV ES, AX ...
29,499
https://github.com/HolyBimBam/CloudSeed_AU_VST3/blob/master/plugin/PluginProcessor.h
Github Open Source
Open Source
MIT
2,021
CloudSeed_AU_VST3
HolyBimBam
C++
Code
272
1,178
#pragma once #include <juce_audio_processors/juce_audio_processors.h> #include "audio_engine/ReverbController.h" //============================================================================== class AudioPluginAudioProcessor : public juce::AudioProcessor { public: //=============================================...
12,183
https://github.com/davemckelvie/attiny-bus-buddy/blob/master/src/main.cpp
Github Open Source
Open Source
Apache-2.0
2,017
attiny-bus-buddy
davemckelvie
C++
Code
258
669
/* * Copyright (C) 2017 David McKelvie. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
26,365
https://github.com/bluegenes/MakeMyTranscriptome/blob/master/scripts/util/truncate_fastq.py
Github Open Source
Open Source
BSD-3-Clause
2,017
MakeMyTranscriptome
bluegenes
Python
Code
254
710
import argparse import random import sys def fq_parser(fastq): f = open(fastq) ret = [] count = 0 for line in f: ret.append(line.rstrip('\n')) count += 1 if(count % 4 == 0): yield ret ret = [] f.close() def fq_writer(f, entry): for line in entr...
6,150
https://github.com/TamHi/dandelion/blob/master/client/components/sidebar/sidebar.directive.js
Github Open Source
Open Source
MIT
2,016
dandelion
TamHi
JavaScript
Code
29
122
'use strict'; angular.module('dandelionApp') .directive('sidebar', () => ({ templateUrl: 'components/sidebar/sidebar.html', restrict: 'E', controller: 'SidebarCtrl', controllerAs: 'sb', link: function() { $('.category-products .panel-default .panel-heading .panel-title a').click(func...
18,371
https://github.com/pittar/openshift-docs/blob/master/modules/cluster-logging-collector-throttling.adoc
Github Open Source
Open Source
Apache-2.0
2,022
openshift-docs
pittar
AsciiDoc
Code
495
980
// Module included in the following assemblies: // // * logging/cluster-logging-collector.adoc [id="cluster-logging-collector-throttling_{context}"] = Throttling log collection For projects that are especially verbose, an administrator can throttle down the rate at which the logs are read in by the log collector befo...
5,777
https://github.com/halitcan/samples/blob/master/AllJoyn/Platform/BackgroundHost/BackgroundHost.Headed/Views/BooleanValueConverter.h
Github Open Source
Open Source
MIT
2,022
samples
halitcan
C
Code
315
745
// // Copyright (c) 2015, Microsoft Corporation // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AU...
4,345
https://github.com/BadCoder1337/r6api.js/blob/master/src/methods/findByUsername.ts
Github Open Source
Open Source
MIT
2,022
r6api.js
BadCoder1337
TypeScript
Code
76
245
import { getToken } from '../auth'; import fetch from '../fetch'; import { PlatformAll, UUID } from '../typings'; import { getURL, getAvatars } from '../utils'; export interface IProfile { profileId: UUID; userId: UUID; idOnPlatform: UUID | string; platformType: PlatformAll; nameOnPlatform: string; } export ...
34,164
https://github.com/jerbaroo/bridge-sim/blob/master/scripts/docker.sh
Github Open Source
Open Source
MIT
2,020
bridge-sim
jerbaroo
Shell
Code
59
195
#!/usr/bin/env bash set -euo pipefail VERSION=$(sed -n '2p' docker/Dockerfile | awk '{print $3}') read -r -p "Tag Docker image as $VERSION, correct? [y/N]" RESPONSE case "$RESPONSE" in [yY][eE][sS]|[yY]) echo "Okay, tagging Docker iamge as $VERSION..." ;; *) echo "Exiting..." >&2; exit 1 ;; esac ...
15,757
https://github.com/NeoGmTak/video-box/blob/master/js/WebAudioNote.js
Github Open Source
Open Source
MIT
2,016
video-box
NeoGmTak
JavaScript
Code
202
718
INST.AUDIO = function(){ //API return { initialize : function(){ console.log("using web audio"); INST.initialize(); }, //xhr management createXHR : function(url, callback){ var request = new XMLHttpRequest(); request.open('GET', url, true); request.responseType = 'arraybuffer'; // Decode asy...
30,462
https://github.com/germanfica/unity-ummorpg-invector-third-person-controller-integration-addon/blob/master/Assets/uMMORPG/Addons/unity-ummorpg-invector-third-person-controller-integration-addon/ThirdPersonController.cs
Github Open Source
Open Source
MIT
null
unity-ummorpg-invector-third-person-controller-integration-addon
germanfica
C#
Code
117
392
using System.Collections; using System.Collections.Generic; using UnityEngine; public partial class Player { void LateUpdate_v() { foreach (Animator anim in GetComponentsInChildren<Animator>()) { /* FUNCIONAAAAAAA * Recibe del servidor si el personaje se está moviendo ...
6,456
https://github.com/ben-xD/mit-research-gromacs-induced-curvature-md/blob/master/methyl-sulfonate-mol-pmf/launch_pulling_28.sh
Github Open Source
Open Source
MIT
2,018
mit-research-gromacs-induced-curvature-md
ben-xD
Shell
Code
28
117
#!/bin/bash #SBATCH -J 28-methyl-sulfonate #SBATCH -o pmf-28.out #SBATCH -N 1 #SBATCH -n 8 #SBATCH -p regular-cpu mdrun -v -pf pullf_28.xvg -px pullx_28.xvg -s pulling_28_md_2.tpr -deffnm pulling_28_md -cpi pulling_28_md.cpt
41,860
https://github.com/ScalablyTyped/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/clientsGlobalacceleratorMod/CustomRoutingEndpointConfiguration.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
91
292
package typings.awsSdk.clientsGlobalacceleratorMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} trait CustomRoutingEndpointConfiguration extends StObject { /** * An ID for the endpoint. For cu...
30,927
https://github.com/Hypfer/Valetudo/blob/master/backend/lib/core/capabilities/ManualControlCapability.js
Github Open Source
Open Source
Apache-2.0
2,023
Valetudo
Hypfer
JavaScript
Code
148
555
const Capability = require("./Capability"); const NotImplementedError = require("../NotImplementedError"); /** * @template {import("../ValetudoRobot")} T * @extends Capability<T> */ class ManualControlCapability extends Capability { /** * * @param {object} options * @param {T} options.robot ...
50,051
https://github.com/hironoriyh/franka_ros/blob/master/franka_gripper/src/franka_gripper.cpp
Github Open Source
Open Source
Apache-2.0
2,019
franka_ros
hironoriyh
C++
Code
244
996
// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include <franka_gripper/franka_gripper.h> #include <cmath> #include <functional> #include <thread> #include <ros/node_handle.h> #include <franka/exception.h> #include <franka/gripper_state.h> #inclu...
12,737
https://github.com/LightGuard/aweplug/blob/master/lib/aweplug/helpers/video.rb
Github Open Source
Open Source
MIT
null
aweplug
LightGuard
Ruby
Code
236
729
require 'aweplug/helpers/video/vimeo' require 'aweplug/helpers/video/youtube' require 'aweplug/helpers/video/helpers' module Aweplug module Helpers module Video include Aweplug::Helpers::Video::Helpers # Public: Embeds videos from vimeo inside a div. Retrieves the title # and video cast from v...
38,453
https://github.com/TaimurAzhar/Rocket.Chat.Fuselage/blob/master/packages/css-in-js/.eslintrc.js
Github Open Source
Open Source
MIT
null
Rocket.Chat.Fuselage
TaimurAzhar
JavaScript
Code
36
132
const path = require('path'); module.exports = { extends: ['@rocket.chat/eslint-config'], parser: 'babel-eslint', rules: { indent: ['error', 2], 'import/order': ['error', { 'newlines-between': 'always', groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']] }], }, ...
46,141
https://github.com/thinktomorrow/repo/blob/master/src/Thinktomorrow/Repo/Filterable.php
Github Open Source
Open Source
MIT
null
repo
thinktomorrow
PHP
Code
273
724
<?php namespace Thinktomorrow\Repo; use Illuminate\Support\Facades\Input; trait Filterable{ /** * Contains the allowed filters * * @var array */ private $filterWhitelist = []; /** * Active filters in effect of current query request * * @var array */ private $filterPayload; ...
13,909
https://github.com/Urbanproof/procountor-php/blob/master/src/Procountor/Interfaces/Write/Transaction.php
Github Open Source
Open Source
MIT
null
procountor-php
Urbanproof
PHP
Code
11
48
<?php namespace Procountor\Procountor\Interfaces\Write; use Procountor\Procountor\Interfaces\TransactionCommon; interface Transaction extends TransactionCommon { }
19,480
https://github.com/JuanCBM/Damas/blob/master/src/main/java/usantatecla/draughts/controllers/InteractorController.java
Github Open Source
Open Source
MIT
null
Damas
JuanCBM
Java
Code
40
175
package usantatecla.draughts.controllers; import usantatecla.draughts.models.Coordinate; import usantatecla.draughts.models.Game; import usantatecla.draughts.models.Piece; import usantatecla.draughts.models.State; public abstract class InteractorController extends Controller { protected InteractorController(Game ga...
25,108
https://github.com/OneKeyHQ/app-monorepo/blob/master/packages/kit/src/views/ScanQrcode/PreviewSend.tsx
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license
2,023
app-monorepo
OneKeyHQ
TSX
Code
322
1,224
import type { FC } from 'react'; import { useNavigation, useRoute } from '@react-navigation/core'; import { useIntl } from 'react-intl'; import { Account, Box, Form, HStack, Modal, Typography, useForm, useSafeAreaInsets, } from '@onekeyhq/components'; import backgroundApiProxy from '@onekeyhq/kit/src/...
25,346
https://github.com/NSLS-II-CMS/profile_collection/blob/master/startup/96-automation.py
Github Open Source
Open Source
BSD-3-Clause
2,023
profile_collection
NSLS-II-CMS
Python
Code
5,446
18,482
#!/usr/bin/python # -*- coding: utf-8 -*- # vi: ts=4 sw=4 ################################################################################ # Classes for controlling the robotics and automation on the beamline. ################################################################################ # Known Bugs: # N/A ###...
24,024
https://github.com/ansaryergesh/find_house_frontend/blob/master/src/reducers/messages.js
Github Open Source
Open Source
MIT
null
find_house_frontend
ansaryergesh
JavaScript
Code
56
147
export const messages = (state = { success: null, error: null, }, action) => { switch (action.type) { case 'SUCCESS_MESSAGE': return { ...state, success: action.payload, error: null, }; case 'ERROR_MESSAGE': return { ...state, success: null, error: action.payload, }...
28,759
https://github.com/rlannon/csin/blob/master/src/parser/statement/call.hpp
Github Open Source
Open Source
MIT
null
csin
rlannon
C++
Code
27
81
#pragma once #include "statement.hpp" #include "../expression/call.hpp" namespace statement { class call : public statement_base, public expression::call { public: call(expression::call& call_exp); call(); virtual ~call() = default; }; }
21,696
https://github.com/shashankgpt/TypeScript-Node-Starter/blob/master/src/config/strategies/local.ts
Github Open Source
Open Source
MIT
null
TypeScript-Node-Starter
shashankgpt
TypeScript
Code
99
249
import passport from "passport"; import request from "request"; import passportLocal from "passport-local"; import { User1 } from "../../app/models/user-collection"; const localStrategy = passportLocal.Strategy; export function initLocalStrategy() { passport.use(new localStrategy({ usernameField: "email" }, (email, ...
19,639
https://github.com/dedeguo/knowledge_graph_construction/blob/master/bilstm-crf-model/ner_metrics.py
Github Open Source
Open Source
Apache-2.0
null
knowledge_graph_construction
dedeguo
Python
Code
401
1,241
from collections import Counter from utils_ner import get_entities class SeqEntityScore(object): def __init__(self, id2label,markup='bios'): self.id2label = id2label self.markup = markup self.reset() def reset(self): self.origins = [] self.founds = [] self.right...
6,282
https://github.com/maciejg-git/vue-bootstrap-icons/blob/master/dist-phosphor/phosphor/Light/airplane-takeoff-light.js
Github Open Source
Open Source
MIT, CC-BY-4.0, MIT-0
null
vue-bootstrap-icons
maciejg-git
JavaScript
Code
50
390
import { h } from 'vue' export default { name: "AirplaneTakeoffLight", vendor: "Ph", type: "", tags: ["airplane","takeoff","light"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-airplane-takeoff...
42,676
https://github.com/5x/javatutorialdaohibernate/blob/master/src/main/java/brewery/persistence/dao/IFactoryUnit.java
Github Open Source
Open Source
MIT
null
javatutorialdaohibernate
5x
Java
Code
19
85
package brewery.persistence.dao; import brewery.persistence.entities.BeerStyle; import brewery.persistence.entities.FactoryUnit; public interface IFactoryUnit extends IBaseDAO<Integer, FactoryUnit> { Integer getBeerSortProductionVolume(FactoryUnit factoryUnit, BeerStyle beerStyle); }
21,193
https://github.com/Simple2B/cortex-backend/blob/master/app/models/billing.py
Github Open Source
Open Source
MIT
2,021
cortex-backend
Simple2B
Python
Code
94
363
import datetime from sqlalchemy import Column, ForeignKey, Integer, DateTime, String from sqlalchemy.orm import relationship from app.database import Base from .utils import ModelMixin class Billing(Base, ModelMixin): __tablename__ = "billings" id = Column(Integer, primary_key=True, index=True) date = ...
39,757
https://github.com/IVCTool/IVCT_Framework/blob/master/docs/src/IVCT-Book.adoc
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
IVCT_Framework
IVCTool
AsciiDoc
Code
162
592
:toc: :numbered: = IVCT Documentation toc::[] == Background A good starting point to get a bit of an background on the architecture are the following sections. include::{includedir}/1-1-IVCT-Module-Overview.adoc[] include::{includedir}/1-2-model.adoc[] include::{includedir}/1-3-badge2testsuite.adoc[] include::{i...
25,381
https://github.com/wf539/LearningTree933SoftwareEngineeringBestPractices/blob/master/FlashCardsSolution Before Unit Tests/FlashCardsSolution/foo/Class1.vb
Github Open Source
Open Source
MIT
null
LearningTree933SoftwareEngineeringBestPractices
wf539
Visual Basic
Code
52
104
' ' Created by SharpDevelop. ' User: 502Student ' Date: 4/3/2008 ' Time: 4:45 PM ' ' To change this template use Tools | Options | Coding | Edit Standard Headers. ' Public Class Class1 Public Sub foo(params As Hashtable) For Each item As DictionaryEntry In params Next End Sub End Class
43,593
https://github.com/RIKEN-RCCS/HIVE/blob/master/RenderPluginKVS/cartesianvolume_converter/KVSCartesianVolumeConverter_Lua.h
Github Open Source
Open Source
MIT
null
HIVE
RIKEN-RCCS
C
Code
42
296
/* RenderPluginKVS/KVSCartesianVolumeConverter.h */ #pragma once #include "LuaUtil.h" #include "KVSCartesianVolumeConverter.h" #include "BufferVolumeData_Lua.h" class KVSCartesianVolumeConverter_Lua : public KVSCartesianVolumeConverter { private: KVSCartesianVolumeConverter_Lua() : KVSCartesianVolume...
31,546
https://github.com/git102347501/Abp.Captcha/blob/master/host/Abp.Captcha.HttpApi.Host/Startup.cs
Github Open Source
Open Source
MIT
2,021
Abp.Captcha
git102347501
C#
Code
39
172
using System; using MaigcalConch.Abp.Captcha.VerifyPicture; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace MaigcalConch.Abp.Captcha { public class Startup { public void ConfigureServi...
20,519
https://github.com/timsawyer/web-prototyping-tool/blob/master/src/app/routes/project/components/assets-importer/asset-importer.pipe.ts
Github Open Source
Open Source
Apache-2.0
2,022
web-prototyping-tool
timsawyer
TypeScript
Code
242
555
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
16,121
https://github.com/JentCastttttt/Runtime/blob/master/ClassMethodSwizing/ClassMethodSwizing/NSMutableArray+SafeMethod.h
Github Open Source
Open Source
MIT
2,018
Runtime
JentCastttttt
Objective-C
Code
27
93
// // NSMutableArray+SafeMethod.h // ClassMethodSwizzling // // Created by JianRongCao on 7/13/16. // Copyright © 2016 JianRongCao. All rights reserved. // #import <Foundation/Foundation.h> @interface NSMutableArray (SafeMethod) @end
47,270
https://github.com/btomashvili/maxmertkit/blob/master/widgets/menu/_vars.sass
Github Open Source
Open Source
Apache-2.0
2,018
maxmertkit
btomashvili
Sass
Code
84
387
$caret: -caret $caret: -caret $dropdown: -dropdown $dropdown-content: #{$dropdown}-content $dropdown-content-background: #fff $dropdown-header: #{$dropdown}-header $dropdown-border-radius: 5px $dropdown-box-shadow: 0 2px 4px rgba(#000, .3) $dropdown-line-height: 1px $caret: -caret $dropdown: -dropdown $dropdow...
28,346
https://github.com/nikhilgorantla/nerdctl/blob/master/internal_logging.go
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-dco-1.1
2,020
nerdctl
nikhilgorantla
Go
Code
362
1,069
/* Copyright (C) nerdctl authors. Copyright (C) containerd authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requi...
9,008
https://github.com/housecanary/tile38/blob/master/internal/server/checksum.go
Github Open Source
Open Source
MIT
null
tile38
housecanary
Go
Code
512
1,261
package server import ( "crypto/md5" "errors" "fmt" "io" "os" "time" "github.com/tidwall/tile38/internal/log" ) // checksum performs a simple md5 checksum on the aof file func (s *Server) checksum(pos, size int64) (sum string, err error) { if pos+size > s.aofsz { return "", io.EOF } var f *os.File f, er...
16,052
https://github.com/yjhu/wowewe/blob/master/views/order/channellist.php
Github Open Source
Open Source
BSD-3-Clause
2,015
wowewe
yjhu
PHP
Code
462
2,063
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\grid\GridView; use yii\bootstrap\Button; use yii\bootstrap\ButtonGroup; use app\models\U; use app\models\MChannel; use app\models\MOffice; $this->title = '渠道列表'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="muser-index"> <h1><?php //echo Htm...
8,974
https://github.com/Ethan-Alfaro/MVC-ecomerce/blob/master/src/views/components/TorusModel/TorusModel.js
Github Open Source
Open Source
MIT
null
MVC-ecomerce
Ethan-Alfaro
JavaScript
Code
168
595
import React, { useEffect } from "react"; import * as THREE from "three"; import "./torusModel.css"; let scene, camera, renderer, torus; function TorusModel() { useEffect(() => { document.querySelector("section.torusModel").appendChild(init()); animate(); }); function init() { //creating scene ...
18,074
https://github.com/tramainejackson/atstmpllc/blob/master/resources/views/errors/404.blade.php
Github Open Source
Open Source
MIT
null
atstmpllc
tramainejackson
PHP
Code
47
153
{{--Created by PhpStorm.--}} {{--User: tjackson--}} {{--Date: 1/24/19--}} {{--Time: 3:56 PM--}} <h2>This page is not a correct link. You'll be redirected in 5 seconds to the home page</h2> <h2 id="whatever" style="display: none;">{{ route('welcome') }}</h2> <script type="text/javascript"> var locate = document.ge...
611
https://github.com/jesuspg/fiware-sdc/blob/master/test/acceptance/component/product_metadata_resource/steps.py
Github Open Source
Open Source
Apache-2.0
null
fiware-sdc
jesuspg
Python
Code
585
2,442
# -*- coding: utf-8 -*- # Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at: # # http://ww...
19,604
https://github.com/narentnj/plaid-java/blob/master/src/test/java/com/plaid/client/integration/DepositSwitchCreateTokenTest.java
Github Open Source
Open Source
MIT
2,022
plaid-java
narentnj
Java
Code
184
990
package com.plaid.client.integration; import static org.junit.Assert.*; import com.plaid.client.integration.AbstractIntegrationTest; import com.plaid.client.model.AccountBase; import com.plaid.client.model.AccountType; import com.plaid.client.model.AccountsGetRequest; import com.plaid.client.model.AccountsGetResponse...
3,480
https://github.com/codemonkey800/dotfiles/blob/master/fish/core/04-events.fish
Github Open Source
Open Source
MIT
2,023
dotfiles
codemonkey800
Fish
Code
27
102
function __add_pm_tools_dir --on-variable PWD if string match -qe ~/projects/postmates $PWD set PATH \ $PATH \ ~/projects/postmates/{ \ tools/bin, \ skel/src/cloud/deploy, \ phantom-operator, \ } end end __add_pm_tools_dir
5,366
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/antv__component/src/main/scala/typingsSlinky/antvComponent/trendMod.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
307
1,276
package typingsSlinky.antvComponent import typingsSlinky.antvComponent.typesMod.GroupComponentCfg import typingsSlinky.antvGBase.interfacesMod.IGroup import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSNa...
26,718
https://github.com/kiwiwin/git-sniffer/blob/master/lib/git_sniffer/blob.rb
Github Open Source
Open Source
MIT
2,012
git-sniffer
kiwiwin
Ruby
Code
28
113
require_relative 'object' module GitSniffer class Blob < GitSniffer::Object lazy_reader :name def initialize(base, sha) super(base, sha) end def lazy_name_source @base.exec("rev-list --all --objects") =~ /#{@sha} (.*)\n/ $1 end end end
4,337
https://github.com/viktor-podzigun/expo/blob/master/ios/versioned-react-native/ABI38_0_0/ReactNative/React/CoreModules/ABI38_0_0RCTDevSettings.mm
Github Open Source
Open Source
Apache-2.0, MIT
2,021
expo
viktor-podzigun
Objective-C++
Code
1,171
5,229
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import "ABI38_0_0RCTDevSettings.h" #import <objc/runtime.h> #import <ABI38_0_0FBReactNativeSpec/ABI38_0_0FBReactNativeSpec.h> #i...
11,292
https://github.com/zhouyijiaren/commons/blob/master/tests/python/twitter/common/string/test_structured_scanf.py
Github Open Source
Open Source
Apache-2.0
2,019
commons
zhouyijiaren
Python
Code
381
1,176
import pytest import unittest from twitter.common.string.scanf import ScanfParser def almost_equal(a, b, digits=7): return abs(a-b) < 0.1**digits def scanf(fmt, string): formatter = ScanfParser(fmt) result = formatter.parse(string) return result.groups(), result.ungrouped() def test_parsing_names(): with p...
29,605
https://github.com/wiltonlazary/diy-alexa/blob/master/firmware/lib/audio_output/WAVFileReader.h
Github Open Source
Open Source
MIT
2,022
diy-alexa
wiltonlazary
C
Code
43
158
#ifndef __wav_file_reader_h__ #define __wav_file_reader_h__ #include <SPIFFS.h> #include <FS.h> #include "SampleSource.h" class WAVFileReader : public SampleSource { private: int m_num_channels; bool m_repeat; File m_file; public: WAVFileReader(const char *file_name, bool repeat = false); ~WAVFil...
46,680
https://github.com/Tonykaynoni/record-uploader/blob/master/resources/views/upload-file.blade.php
Github Open Source
Open Source
MIT
2,021
record-uploader
Tonykaynoni
PHP
Code
31
155
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Upload File</title> </head> <body class="antialiased"> <form action="/upload" method="post" enctype="multipart/form-data"> @csrf ...
18,462
https://github.com/pandaU/spring-fabric/blob/master/fabric-explorer-spring-boot-starter/src/main/java/io/github/ecsoya/fabric/explorer/controller/FabricExplorerController.java
Github Open Source
Open Source
MIT
null
spring-fabric
pandaU
Java
Code
839
3,156
package io.github.ecsoya.fabric.explorer.controller; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.List; import java.util.UUID; import javax.servlet.http.HttpServletRequest; import io.github.ecsoya.fabric.FabricResponse; import io.github.ecsoya.fabric.explore...
42,136
https://github.com/bhandarijiwan/Zappos-Product-Search/blob/master/app/src/main/java/com/Challenge/Zappos/products/ProductListActivity.java
Github Open Source
Open Source
MIT
2,017
Zappos-Product-Search
bhandarijiwan
Java
Code
278
816
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
42,892
https://github.com/as3io/email-crack-server/blob/master/src/handlebars.js
Github Open Source
Open Source
MIT
2,021
email-crack-server
as3io
JavaScript
Code
27
79
const handlebars = require('handlebars'); const moment = require('moment'); // Register custom helpers, etc, here... handlebars.registerHelper('now', () => new Date()); handlebars.registerHelper('moment-format', (date, format) => moment(date).format(format)); module.exports = handlebars;
19,229
https://github.com/philvanzu/Bubbles/blob/master/Dependencies/XamlFileSystemExplorer/FSExplorer/FileSystemInfoEx/Tools/Work/MultiExWork.cs
Github Open Source
Open Source
MIT
null
Bubbles
philvanzu
C#
Code
261
1,020
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LYCJ (c) 2010 - http://www.quickzip.org/components // // Release under LGPL license. ...
35,944
https://github.com/exapde/Exasim/blob/master/tests/WaveEquation/Membrane/pdemodel.m
Github Open Source
Open Source
MIT
2,023
Exasim
exapde
MATLAB
Code
161
438
function pde = pdemodel pde.mass = @mass; pde.flux = @flux; pde.source = @source; pde.fbou = @fbou; pde.ubou = @ubou; pde.initu = @initu; pde.initq = @initq; pde.initw = @initw; end function m = mass(u, q, w, v, x, t, mu, eta) m = sym(1.0); end function f = flux(u, q, w, v, x, t, mu, eta) f = mu*q; end function s = ...
23
https://github.com/wwwsolutions/nx-ng-starter/blob/master/libs/client-store/src/lib/user/user.store.ts
Github Open Source
Open Source
MIT
2,021
nx-ng-starter
wwwsolutions
TypeScript
Code
139
394
import { Injectable } from '@angular/core'; import { Action, Selector, State, StateContext } from '@ngxs/store'; import { userActions } from './user.actions'; import { IUserState, TUserPayload, USER_STATE_TOKEN, userInitialState } from './user.interface'; @State<IUserState>({ name: USER_STATE_TOKEN, defaults: { ...
9,663
https://github.com/tanepiper/rxjs-string/blob/master/libs/rxjs/array/src/lib/sort-map.ts
Github Open Source
Open Source
MIT
2,022
rxjs-string
tanepiper
TypeScript
Code
329
661
/** * @packageDocumentation * @module Array */ import { OperatorFunction } from 'rxjs'; import { map } from 'rxjs/operators'; import { defaultSortFn } from '../utils/sort'; import { MapFn, SortFn } from '../types/generic-methods'; /** * Returns an Observable that emits an array of sorted mapped values from a sourc...
26,026
https://github.com/rossoha/facto/blob/master/app/js/shared/src/main/scala/flux/stores/entries/WithIsPending.scala
Github Open Source
Open Source
Apache-2.0
2,018
facto
rossoha
Scala
Code
59
185
package flux.stores.entries import models.Entity import models.access.JsEntityAccess import models.modification.EntityType case class WithIsPending[Entry](entry: Entry, isPending: Boolean) object WithIsPending { /** Shortcut to cut down on boiler plate. */ def isPending[E <: Entity: EntityType](entity: E)(impli...
8,008
https://github.com/jdpgrailsdev/blog/blob/master/src/jbake/content/2014/09/23/spring_jruby_autodetect_deps.adoc
Github Open Source
Open Source
Apache-2.0
2,018
blog
jdpgrailsdev
AsciiDoc
Code
1,035
2,913
= Use Spring to Autodetect and Load JRuby Gem Dependencies Jonathan Pearlin 2014-09-23 :jbake-type: post :jbake-tags: gradle, spring, jruby :jbake-status: published :source-highlighter: prettify :linkattrs: :id: spring_jruby_autodetect_deps :icons: font :bundler: http://bundler.io/[Bundler, window="_blank"] :gradle: ht...
40,737
https://github.com/jamesbond004/FluidFramework/blob/master/experimental/PropertyDDS/services/property-query-service/src/server/controllers/metrics_controller.js
Github Open Source
Open Source
MIT
2,022
FluidFramework
jamesbond004
JavaScript
Code
156
357
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * @fileoverview * The SingleMetricsController will be used to generate an endpoint for * a metric, to be used by the HFDM-Monitor to generate * another metric. */ const BaseController = req...
50,061
https://github.com/iedadata/geomapapp/blob/master/haxby/image/jcodec/containers/mp4/boxes/ClearApertureBox.java
Github Open Source
Open Source
Apache-2.0
null
geomapapp
iedadata
Java
Code
134
378
package haxby.image.jcodec.containers.mp4.boxes; import java.nio.ByteBuffer; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ public class ClearApertureBox extends FullBox { public static final String CLEF = "cle...
11,432
https://github.com/bogdang989/cwl-ts/blob/master/src/mappings/v1.0/SoftwareRequirement.ts
Github Open Source
Open Source
Apache-2.0
2,022
cwl-ts
bogdang989
TypeScript
Code
55
123
import {ProcessRequirement} from "./ProcessRequirement"; import {SoftwarePackage} from "./SoftwarePackage"; /** * A list of software packages that should be configured in the environment of * the defined process. * */ export interface SoftwareRequirement extends ProcessRequirement { /** * Always 'Soft...
41,688
https://github.com/waychang626/Precious/blob/master/public/js/menu.js
Github Open Source
Open Source
MIT
null
Precious
waychang626
JavaScript
Code
114
572
'use strict'; // Call this function when the page loads (the "ready" event) $(document).ready(function () { initializePage(); $("#hbreakfast").click(hbreakfast); $("#hlunch").click(hlunch); $("#hdinner").click(hdinner); }) /* * Function that is called when the document is ready. */ function initiali...
34,345
https://github.com/ChaosJu/caelus/blob/master/pkg/caelus/util/cgroup/freezer.go
Github Open Source
Open Source
BSD-3-Clause
null
caelus
ChaosJu
Go
Code
138
293
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. * * 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 applica...
21,587
https://github.com/hpcc-systems/LogisticRegression/blob/master/Deviance_Detail.ecl
Github Open Source
Open Source
MIT
2,019
LogisticRegression
hpcc-systems
ECL
Code
264
953
IMPORT ML_Core; IMPORT ML_Core.Types AS Core_Types; IMPORT $ AS LR; IMPORT LR.Types AS Types; // aliases AnyField := Core_Types.AnyField; NumericField := Core_Types.NumericField; DiscreteField:= Core_Types.DiscreteField; Raw_Pred := Types.Raw_Prediction; Obs_Deviance := Types.Observation_Deviance; Layout_Model ...
29,081
https://github.com/ianmartinez/ThornLegacy/blob/master/Thorn/Thorn/frmMain.vb
Github Open Source
Open Source
MIT
null
ThornLegacy
ianmartinez
Visual Basic
Code
1,170
3,860
Imports System.IO Imports Tundra.Aero Public Class frmMain Private Updating As Boolean Public Sub RedrawAero() If DWMEnabled() Then MainToolStrip.BackColor = Color.Black Me.MainToolStrip.RenderMode = ToolStripRenderMode.System Me.MainToolStrip.Renderer = New FixedS...
9,079
https://github.com/wyaadarsh/LeetCode-Solutions/blob/master/Python3/0353-Design-Snake-Game/soln.py
Github Open Source
Open Source
MIT
2,020
LeetCode-Solutions
wyaadarsh
Python
Code
232
566
class SnakeGame: def __init__(self, width, height, food): """ Initialize your data structure here. @param width - screen width @param height - screen height @param food - A list of food positions E.g food = [[1,1], [1,0]] means the first food is positioned at [1,1],...
20,995
https://github.com/willypuzzle/laravel-permission/blob/master/src/Traits/PermissionChecker.php
Github Open Source
Open Source
MIT
2,017
laravel-permission
willypuzzle
PHP
Code
255
990
<?php namespace Idsign\Permission\Traits; use Idsign\Permission\Libraries\Config; use Illuminate\Foundation\Auth\User; use Idsign\Permission\Exceptions\UnauthorizedException; use Illuminate\Http\Request; trait PermissionChecker { use UserManagement; protected function setSection($section) { $thi...
38,069
https://github.com/ruck314/dev-board-cryo/blob/master/firmware/common/core/rtl/AxisSysgenProcDataFramerRdFsm.vhd
Github Open Source
Open Source
BSD-3-Clause-LBNL
2,019
dev-board-cryo
ruck314
VHDL
Code
847
2,361
------------------------------------------------------------------------------- -- File : AxisSysgenProcDataFramerRdFsm.vhd -- Company : SLAC National Accelerator Laboratory -- Created : 2018-04-25 -- Last update: 2018-04-25 ------------------------------------------------------------------------------- -- ...
4,825