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/volllly/merfolk/blob/master/frontends/logger/benches/performance.rs | Github Open Source | Open Source | MIT | 2,021 | merfolk | volllly | Rust | Code | 68 | 417 | use merfolk::*;
use criterion::{criterion_group, criterion_main, Criterion};
pub fn frontend_logger(c: &mut Criterion) {
use tokio::sync::mpsc::{channel, Receiver, Sender};
let (to, from): (Sender<merfolk_backend_in_process::InProcessChannel>, Receiver<merfolk_backend_in_process::InProcessChannel>) = channel(1);... | 45,298 |
https://github.com/jianjiade/jianjiade.github.com/blob/master/scripts/creat.js | Github Open Source | Open Source | Apache-2.0 | null | jianjiade.github.com | jianjiade | JavaScript | Code | 282 | 1,056 |
const fs = require('fs');
const PinYin = require("pinyin");
const path = require('path');
function todo () {
const list = process.argv[2];
const pinyinList = PinYin(list, {
style: PinYin.STYLE_NORMAL
});
const {temp,showTitle} = template(list);
const componentDir = path.resolve(__dirname,... | 25,404 |
https://github.com/thotypous/altsourceprobe/blob/master/ExampleFIFOs.bsv | Github Open Source | Open Source | MIT | 2,021 | altsourceprobe | thotypous | Bluespec | Code | 29 | 128 | import JtagGetPut::*;
import SpecialFIFOs::*;
import Connectable::*;
typedef Bit#(8) Byte;
(* synthesize, clock_prefix="CLOCK_50", reset_prefix="RST_N" *)
module mkExample(Empty);
Get#(Byte) byteIn <- mkJtagGet("IN", mkSizedFIFOF(10));
Put#(Byte) byteOut <- mkJtagPut("OUT", mkPipelineFIFOF);
mkConnection(... | 38,031 |
https://github.com/marmelab/react-admin/blob/master/packages/ra-no-code/src/ResourceConfiguration/useResourcesConfiguration.ts | Github Open Source | Open Source | MIT | 2,023 | react-admin | marmelab | TypeScript | Code | 104 | 207 | import { useContext } from 'react';
import { ResourceConfigurationContext } from './ResourceConfigurationContext';
/**
* This hooks returns a tuple containing a map of the resources indexed by name as the first element, and an object providing helper functions to manipulate them as its second element.
*
* @example
... | 28,087 |
https://github.com/garydai/yii2/blob/master/demos/backend/protected/views/qna/add.php | Github Open Source | Open Source | BSD-3-Clause | 2,014 | yii2 | garydai | Hack | Code | 158 | 732 | <script type="text/javascript" src="/js/gaga.js"></script>
<ol class="breadcrumb">
<li><a href="/post/index">首页</a></li>
<li><a href="/qna/index">问答管理</a></li>
<li class="active">新增问答</li>
</ol>
<div class="panel panel-primary">
<!-- Default panel contents -->
<div class="panel-heading">新增问答</div>
... | 7,759 |
https://github.com/gilbertw/ipython/blob/master/IPython/utils/shimmodule.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | ipython | gilbertw | Python | Code | 216 | 468 | """A shim module for deprecated imports
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
import types
class ShimModule(types.ModuleType):
def __init__(self, *args, **kwargs):
self._mirror = kwargs.pop("mirror")
super(ShimModule, s... | 44,542 |
https://github.com/entrotech/deployapp/blob/master/Sabio.Web/Services/MilitaryBaseService.cs | Github Open Source | Open Source | MIT | null | deployapp | entrotech | C# | Code | 248 | 933 | using Sabio.Data;
using Sabio.Web.Domain;
using Sabio.Web.Models.Requests;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
namespace Sabio.Web.Services
{
public class MilitaryBaseService : BaseService
... | 9,099 |
https://github.com/LykkeCity/Lykke.Service.PayVolatility/blob/master/src/Lykke.Service.PayVolatility.Core/Domain/IVolatility.cs | Github Open Source | Open Source | MIT | null | Lykke.Service.PayVolatility | LykkeCity | C# | Code | 46 | 120 | using System;
namespace Lykke.Service.PayVolatility.Core.Domain
{
public interface IVolatility
{
string AssetPairId { get; }
DateTime Date { get; }
decimal ClosePriceStdev { get; }
decimal HighPriceStdev { get; }
decimal MultiplierFactor { get; }
decimal Cl... | 37,588 |
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/api/golden/v2/tensorflow.types.experimental.-tracing-context.pbtxt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,023 | tensorflow | tensorflow | Protocol Buffer Text Format | Code | 16 | 80 | path: "tensorflow.types.experimental.TracingContext"
tf_class {
is_instance: "<class \'tensorflow.python.types.trace.TracingContext\'>"
is_instance: "<type \'object\'>"
member_method {
name: "__init__"
}
}
| 29,650 |
https://github.com/iofod/IFstruct-parser/blob/master/temps/flutter/lib/components/base/IFmirror.dart | Github Open Source | Open Source | MIT | 2,021 | IFstruct-parser | iofod | Dart | Code | 17 | 48 | part of '../ui.dart';
Widget baseMirror(Config config, slot) {
Widget body = calcLayout(config, slot);
return componentWrap(config, body);
}
| 49,410 |
https://github.com/HeyJoel/CofoundryExample.SSOAndContent/blob/master/CofoundryExample.SSOAndContent/Domain/MemberUserArea/MemberSignInService.cs | Github Open Source | Open Source | MIT | 2,022 | CofoundryExample.SSOAndContent | HeyJoel | C# | Code | 238 | 612 | using Cofoundry.Domain;
using System.Threading.Tasks;
namespace CofoundryExample.SSOAndContent
{
/// <summary>
/// Here we use IAdvancedContentRepository for data access. This is a fluent API
/// wrapper around command and query execution to aid discoverability and ease of use.
/// </summary>
publ... | 37,869 |
https://github.com/Pein-mo/lunhuis/blob/master/application/index/controller/Server.php | Github Open Source | Open Source | Apache-2.0 | null | lunhuis | Pein-mo | PHP | Code | 24 | 105 | <?php
namespace app\index\controller;
use think\Controller;
use think\Db;
//网站首页
class Server extends Base{
public function index(){
$data = Db::name('server')->where('is_on',1)->select();
$this->assign('data',$data);
$this->assign('menu','server');
return $this->fetch();
}
}
| 7,386 |
https://github.com/wrk-fmd/geoclient/blob/master/client/src/state/app.state.ts | Github Open Source | Open Source | MIT | 2,023 | geoclient | wrk-fmd | TypeScript | Code | 79 | 212 | import {ApiService, DataService, ErrorService} from '../service';
import {KeyboardService} from '../service/keyboard.service';
import {Config} from './config';
import {Session} from './session';
/**
* This is essentially a self-made DI container
*/
export class AppState {
readonly apiService: ApiService;
readon... | 7,126 |
https://github.com/Rapciu/breakout-clone/blob/master/Breakout Clone/Assets/Scripts/Block Breaker Clone/GameManager.cs | Github Open Source | Open Source | MIT | 2,021 | breakout-clone | Rapciu | C# | Code | 498 | 1,737 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using TMPro;
public class GameManager : MonoBehaviour
{
// Objects and Components the Game Manager manages
[SerializeField] GameObject sceneLoader;
[SerializeField] GameObject gameCanvas;
... | 47,421 |
https://github.com/morristech/ImageLoader/blob/master/src/com/kisstools/imageloader/namer/Namer.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ImageLoader | morristech | Java | Code | 17 | 50 | /**
* @author dawson dong
*/
package com.kisstools.imageloader.namer;
public interface Namer {
public String create(String key);
}
| 14,391 |
https://github.com/Intellipharm/angular-svg-nodes/blob/master/examples/v0/src/app/4-events/example-controller.js | Github Open Source | Open Source | MIT | null | angular-svg-nodes | Intellipharm | JavaScript | Code | 165 | 643 | export default class Controller {
constructor () {
this.svg_nodes_api = {};
this.node_event_type;
this.node_event_node;
this.node_event_data;
this.line_event_type;
this.line_event_node;
this.line_event_data;
this.line_event_line_index;
thi... | 34,620 |
https://github.com/abod1944/client/blob/master/shared/team-building/contacts.tsx | Github Open Source | Open Source | BSD-3-Clause | null | client | abod1944 | TypeScript | Code | 530 | 2,007 | import * as React from 'react'
import * as TeamBuildingGen from '../actions/team-building-gen'
import * as Kb from '../common-adapters'
import * as Styles from '../styles'
import * as Container from '../util/container'
import * as SettingsGen from '../actions/settings-gen'
import type * as Types from '../constants/type... | 37,212 |
https://github.com/naps62/ffmpeg-dev-rs/blob/master/build.rs | Github Open Source | Open Source | MIT | 2,020 | ffmpeg-dev-rs | naps62 | Rust | Code | 897 | 3,841 | #![allow(unused)]
use std::iter::FromIterator;
use std::collections::HashSet;
use std::convert::AsRef;
use std::path::{PathBuf, Path};
use std::string::ToString;
use tar::Archive;
use flate2::read::GzDecoder;
///////////////////////////////////////////////////////////////////////////////
// UTILS - ENVIROMENT
//////... | 25,611 |
https://github.com/Pheithar/Animal-Sounds/blob/master/training/alreadyTested/FlattenCNN-2-3.sh | Github Open Source | Open Source | MIT | 2,022 | Animal-Sounds | Pheithar | Shell | Code | 188 | 501 | #!/bin/sh
### General options
### –- specify queue --
#BSUB -q gpua100
### -- set the job Name --
#BSUB -J FlattenCNN-2-3
### -- ask for number of cores (default: 1) --
#BSUB -n 1
### -- Select the resources: 1 gpu in exclusive process mode --
#BSUB -gpu "num=1:mode=exclusive_process"
### -- set walltime limit: hh:mm -... | 18,897 |
https://github.com/melsov/ComputeVoxel/blob/master/Assets/VoxelPerformance/Scripts/ChunkManagement/Proximity/TargetCenteredChunkBounds.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | ComputeVoxel | melsov | C# | Code | 132 | 426 | using UnityEngine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mel.Math;
namespace Mel.VoxelGen
{
public class TargetCenteredChunkBounds
{
public Transform target;
public IntVector3 size;
public VGenConfig vG... | 23,221 |
https://github.com/Fagertveit/GSGL/blob/master/public/data/2dParticle.vshader | Github Open Source | Open Source | MIT | null | GSGL | Fagertveit | GLSL | Code | 42 | 117 | attribute vec2 a_position;
attribute float a_pointSize;
uniform vec2 u_resolution;
void main() {
vec2 zeroToOne = a_position / u_resolution;
vec2 zeroToTwo = zeroToOne * 2.0;
vec2 clipSpace = zeroToTwo - 1.0;
gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);
gl_PointSize = a_pointSize;
} | 22,365 |
https://github.com/ishida624/book_store_api/blob/master/app/Models/Books.php | Github Open Source | Open Source | MIT | null | book_store_api | ishida624 | PHP | Code | 39 | 135 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Books extends Model
{
use HasFactory;
protected $table = 'books';
public $primaryKey = 'id';
protected $fillable = [
'bookName', 'price', 'bookStore_id',
];
... | 4,818 |
https://github.com/Codecarinas/massive-octo-shame/blob/master/Server/work/decompile-8eb82bde/net/minecraft/server/ChatComponentSelector.java | Github Open Source | Open Source | CC0-1.0 | 2,021 | massive-octo-shame | Codecarinas | Java | Code | 129 | 405 | package net.minecraft.server;
import java.util.Iterator;
public class ChatComponentSelector extends ChatBaseComponent {
private final String b;
public ChatComponentSelector(String s) {
this.b = s;
}
public String g() {
return this.b;
}
public String getText() {
retu... | 6,265 |
https://github.com/lixiao7215981/Arduino/blob/master/Arduino/Pods/Headers/Public/LXFrameWork_OC/UIView+Extension.h | Github Open Source | Open Source | Apache-2.0 | null | Arduino | lixiao7215981 | C | Code | 59 | 198 | //
// UIView+Extension.h
// HM新浪微博
//
// Created by 李晓 on 14-10-7.
// Copyright (c) 2014年 itcast. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Extension)
@property (nonatomic,assign) CGFloat x;
@property (nonatomic,assign) CGFloat y;
@property (nonatomic,assign) CGFloat width;
@property (n... | 9,352 |
https://github.com/ROCmSoftwarePlatform/iGEMMgen/blob/master/python/codegen/instruction.py | Github Open Source | Open Source | MIT | 2,022 | iGEMMgen | ROCmSoftwarePlatform | Python | Code | 741 | 3,289 | ################################################################################
#
# MIT License
#
# Copyright (c) 2020-2021 Advanced Micro Devices, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to dea... | 4,181 |
https://github.com/bmorris3/hcts/blob/master/hcts/setup.py | Github Open Source | Open Source | MIT | 2,018 | hcts | bmorris3 | Python | Code | 42 | 143 | from distutils.core import setup, Extension
from Cython.Build import cythonize
import numpy
# setup(ext_modules=[Extension("generate_lc", ["generate_lc.c"],
# include_dirs=[numpy.get_include()])])
# Or, if you use cythonize() to make the ext_modules list,
# include_dirs can be passed to s... | 20,329 |
https://github.com/BuildJet/sat4envi/blob/master/s4e-web/src/app/views/map-view/zk/state/report-templates/report-template.service.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | sat4envi | BuildJet | TypeScript | Code | 351 | 1,279 | /*
* Copyright 2021 ACC Cyfronet AGH
*
* 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 agre... | 15,903 |
https://github.com/MCCshreyas/aspnetcore/blob/master/src/Mvc/Mvc.ViewFeatures/test/Filters/ControllerViewDataAttributeFilterFactoryTest.cs | Github Open Source | Open Source | MIT | 2,022 | aspnetcore | MCCshreyas | C# | Code | 75 | 216 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Moq;
using Xunit;
namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Filters;
public class ControllerViewDataAttributeFilterFactoryTest
{
[Fact]
public vo... | 38,192 |
https://github.com/u2waremanager/u2ware-incubator/blob/master/io.github.u2ware.frontend.vue/src/apps/demo/test-components/components/C2.vue | Github Open Source | Open Source | Apache-2.0 | null | u2ware-incubator | u2waremanager | Vue | Code | 64 | 239 | <template>
<div class="hello">
<h1>BBBBBB</h1>
<h2>{{ foo }}</h2>
<h2>{{ bar }}</h2>
</div>
</template>
<script>
export default {
name : "C1",
props: {
foo: String,
bar: String,
},
components: {
},
data: () => ({
}),
methods : {
},
created: function() {
this.$log.debu... | 13,764 |
https://github.com/ideadapt/SAFE/blob/master/src/kr/ac/kaist/jsaf/analysis/typing/models/DOMHtml/HTMLDListElement.scala | Github Open Source | Open Source | BSD-3-Clause | 2,018 | SAFE | ideadapt | Scala | Code | 397 | 1,486 | /*******************************************************************************
Copyright (c) 2013-2014, KAIST, S-Core.
All rights reserved.
Use is subject to license terms.
This distribution may include materials developed by third parties.
**********************************************************... | 41,280 |
https://github.com/wrldwzrd89/older-java-games/blob/master/TwistedTrek/import2/studio/ignitionigloogames/twistedtrek/import2/items/combat/predefined/Bomb.java | Github Open Source | Open Source | Unlicense | null | older-java-games | wrldwzrd89 | Java | Code | 67 | 373 | /* Import2: An RPG */
package studio.ignitionigloogames.twistedtrek.import2.items.combat.predefined;
import studio.ignitionigloogames.twistedtrek.import2.battle.BattleTarget;
import studio.ignitionigloogames.twistedtrek.import2.creatures.StatConstants;
import studio.ignitionigloogames.twistedtrek.import2.effects.Effec... | 38,156 |
https://github.com/ruanpienaar/gun-connection-pool/blob/master/rebar.config | Github Open Source | Open Source | MIT | 2,018 | gun-connection-pool | ruanpienaar | Erlang | Code | 6 | 102 | {deps, [
{poolboy,".*",{git,"https://github.com/manifest/poolboy.git","feature/worker-args-any"}},{gun,".*",{git,"https://github.com/manifest/gun.git","feature/head-1xx"}}
]}.
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard]}.
| 31,851 |
https://github.com/FLVC/fcrepo-src-3.4.2/blob/master/fcrepo-security/fcrepo-security-pep/src/test/java/org/fcrepo/server/security/xacml/test/ContextUtilTest.java | Github Open Source | Open Source | Apache-2.0 | null | fcrepo-src-3.4.2 | FLVC | Java | Code | 273 | 1,439 |
package org.fcrepo.server.security.xacml.test;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.axis.AxisFault;
import org.fcrepo.common.Constants;
import org.fcrepo.server.security.xacml.pe... | 43,842 |
https://github.com/purcellif17/arcgis-server-maintainence/blob/master/server_maintenance.py | Github Open Source | Open Source | MIT | null | arcgis-server-maintainence | purcellif17 | Python | Code | 138 | 609 | #pylint: disable=E1101
import os.path
import arcpy
import logging
# Point to SDE Connection
arcpy.env.workspace = ""
SDE = arcpy.env.workspace
# Set up logger in current folder.
file_loc = os.path.dirname(__file__)
logging.basicConfig(filename='server_maintenance.log',filemode='w',format='%(asctime)s | %(lineno)s | ... | 6,109 |
https://github.com/DiyanaMancheva/NurserySchoolWebPortal/blob/master/Services/NurserySchoolWebPortal.Services.Data/IChildrenService.cs | Github Open Source | Open Source | MIT | null | NurserySchoolWebPortal | DiyanaMancheva | C# | Code | 25 | 118 | namespace NurserySchoolWebPortal.Services.Data
{
using System.Collections.Generic;
using System.Threading.Tasks;
using NurserySchoolWebPortal.Web.ViewModels.Children;
public interface IChildrenService
{
Task AddAsync(ChildInputModel input);
ChildViewModel ById(int id);
I... | 28,839 |
https://github.com/joepio/vscode-styled-components/blob/master/src/extension.ts | Github Open Source | Open Source | MIT | 2,021 | vscode-styled-components | joepio | TypeScript | Code | 72 | 326 | import * as vscode from 'vscode'
import cssProperties from './cssProperties'
export function activate(context: vscode.ExtensionContext) {
console.log('Colon and semicolon fix is active!')
let enterKeyEvent = vscode.commands.registerCommand(
'extension.insertColonOrSemiColon',
async () => {
await vscode.comm... | 30,693 |
https://github.com/dmaulikr/per-diem/blob/master/PerDiem/PerDiem/Controllers/CalendarDayViewController.h | Github Open Source | Open Source | MIT | 2,017 | per-diem | dmaulikr | Objective-C | Code | 64 | 218 | //
// CalendarDayViewController.h
// PerDiem
//
// Created by Florent Bonomo on 12/1/15.
// Copyright © 2015 PerDiem. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <DateTools/DateTools.h>
#import "PerDiem.h"
#import "PerDiemView.h"
#import "CalendarTransition.h"
@interface CalendarDayViewController : UI... | 44,563 |
https://github.com/mutasimbillah/laravel-pos-backend/blob/master/app/Filters/Filter.php | Github Open Source | Open Source | MIT | null | laravel-pos-backend | mutasimbillah | PHP | Code | 317 | 872 | <?php
namespace App\Filters;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
/**
* Base filter class for creating filterable resources
* @author Nazmul Alam <nazmulpcc@gmail.com>
*/
abstract class Filter {
/**
* @var Builder
*/
protected $query;
/**
* @var array
... | 14,198 |
https://github.com/jskit/kit-start/blob/master/src/components/point-item.vue | Github Open Source | Open Source | MIT | 2,017 | kit-start | jskit | Vue | Code | 319 | 1,279 | <template>
<div
class="item"
data-type="detail"
:data-id="data.p_sku_id"
@click="goNext($event)"
>
<div class="media" v-if="data.image">
<div class="image">
<img class="img" v-lazy="data.image" preload="1" />
<img class="icon" v-if="data.icon" v-lazy="data.icon" />
... | 19,452 |
https://github.com/olauzon/chronic_duration/blob/master/chronic_duration.gemspec | Github Open Source | Open Source | MIT | 2,016 | chronic_duration | olauzon | Ruby | Code | 116 | 364 | Gem::Specification.new do |s|
s.name = "chronic_duration"
s.version = "0.7.4"
s.date = "2009-02-23"
s.summary = "A Ruby natural language parser for elapsed time"
s.description = "A simple Ruby natural language parser for elapsed time.
(For example, 4 hours and 30 min... | 45,651 |
https://github.com/lalitkushwah143/GlassDesign2-master/blob/master/app/src/main/java/com/example/android/glass/glassdesign2/data/DataComponent.java | Github Open Source | Open Source | Apache-2.0 | null | GlassDesign2-master | lalitkushwah143 | Java | Code | 186 | 509 | package com.example.android.glass.glassdesign2.data;
public class DataComponent {
private String key;
private String title;
private String value;
private String module_id;
private int response;
private String issue_id;
public DataComponent() {
}
public DataComponent(String key, S... | 8,026 |
https://github.com/umangdevani/membroz2.0-Campaign/blob/master/src/app/shared/workingdays/workingdays.component.ts | Github Open Source | Open Source | RSA-MD, OML | null | membroz2.0-Campaign | umangdevani | TypeScript | Code | 345 | 1,228 | import { AfterViewInit, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Subject } from 'rxjs';
import { CommonService } from 'src/app/core/services/common/common.service';
import { BaseLiteComponemntComponent } from '../base-componemnt/base-lite-componemnt/base-lite-componemnt.component... | 34,367 |
https://github.com/KeepOnSurviving/SuperMemoAssistant/blob/master/src/Core/SuperMemoAssistant.Core/Plugins/SMAPluginManager.LogAdapter.cs | Github Open Source | Open Source | MIT | null | SuperMemoAssistant | KeepOnSurviving | C# | Code | 735 | 2,003 | #region License & Metadata
// The MIT License (MIT)
//
// 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, modi... | 12,000 |
https://github.com/Aang23/vcpkg/blob/master/installed/x64-windows/include/nng/protocol/reqrep0/rep.h | Github Open Source | Open Source | MIT | null | vcpkg | Aang23 | C | Code | 110 | 376 | //
// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may... | 27,297 |
https://github.com/jkl123456/rongchuang/blob/master/rc-api/src/main/java/com/ruoyi/common/Constants.java | Github Open Source | Open Source | MIT | 2,020 | rongchuang | jkl123456 | Java | Code | 147 | 447 | package com.ruoyi.common;
public class Constants {
/**
* 客户端有两种方式传递令牌: Header中X-Token, 或Cookie中X-Token
*/
public static final String X_TOKEN = "X_Token";
/**
* 用户登录过期时间(秒)
*/
public static final long LOGIN_TIMEOUT = 1 * 24 * 60 * 60;
/**
* redis User库
*/
public ... | 42,302 |
https://github.com/lotaris/migrator/blob/master/doc/schema.graffle/data.plist | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,014 | migrator | lotaris | XML Property List | Code | 20,000 | 137,616 | <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>ApplicationVersion</key> <array> <string>com.omnigroup.OmniGrafflePro</string> <string>138.28.0.154505</string> </array> <key>CreationDate</key>... | 49,240 |
https://github.com/Lee-myyyy/Journey/blob/master/frontend/src/components/workorder/autoorder/autoorderconfig/dynamicform/FieldConfig.vue | Github Open Source | Open Source | MIT | 2,020 | Journey | Lee-myyyy | Vue | Code | 1,077 | 6,905 | <template>
<div v-if="show">
<el-form size="mini" label-position="top">
<el-form-item label="标题" v-if="data.type!='grid'">
<el-input v-model="data.name"></el-input>
</el-form-item>
<el-form-item label="宽度" v-if="Object.keys(data.options).indexOf('width')>=0">
<el-input v-model="d... | 6,447 |
https://github.com/tanmeimei11/iui/blob/master/packages/iImgUpload/index.js | Github Open Source | Open Source | MIT | null | iui | tanmeimei11 | JavaScript | Code | 15 | 59 | import iImgUpload from './src/index.vue'
iImgUpload.install = function (Vue) {
Vue.component(iImgUpload.name, iImgUpload)
}
export default iImgUpload
| 48,425 |
https://github.com/g-plane/zsh-yarn-autocompletions/blob/master/src/deps/mod.rs | Github Open Source | Open Source | MIT | 2,023 | zsh-yarn-autocompletions | g-plane | Rust | Code | 301 | 1,430 | use async_std::fs;
use async_std::io::Result;
use itertools::Itertools;
use serde::Deserialize;
use std::collections::{HashMap, HashSet};
use std::env;
use std::path::PathBuf;
mod packages;
#[derive(Deserialize)]
struct Pkg {
dependencies: Option<HashMap<String, String>>,
#[serde(rename = "devDependencies")]
... | 7,535 |
https://github.com/JetBrains/teamcity-rake/blob/master/rake-runner-test/src/jetbrains/slow/plugins/rakerunner/RakeBuildScriptBuildLogTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | teamcity-rake | JetBrains | Java | Code | 325 | 1,239 | /*
* Copyright 2000-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 32,443 |
https://github.com/adamgayoso/anndata/blob/master/anndata/_core/anndata.py | Github Open Source | Open Source | BSD-3-Clause | null | anndata | adamgayoso | Python | Code | 7,285 | 21,729 | """\
Main class and helper functions.
"""
import warnings
import collections.abc as cabc
from collections import OrderedDict
from copy import copy, deepcopy
from enum import Enum
from functools import partial, singledispatch
from pathlib import Path
from os import PathLike
from textwrap import dedent
from typing import... | 600 |
https://github.com/exosite-garage/uip_rx62n_cloud/blob/master/uip_rx62n_cloud/src/RPDL/r_pdl_cgc_RX62Nxx.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | uip_rx62n_cloud | exosite-garage | C | Code | 158 | 475 | /*""FILE COMMENT""*******************************************************
* System Name : CGC API for RX62Nxx
* File Name : r_pdl_cgc_RX62Nxx.h
* Version : 0.10
* Contents : CGC header
* Customer :
* Model :
* Order :
* CPU : RX600
* Compiler : RXC
* OS : Nothing
* Programmer :
* Note :
*****************... | 3,415 |
https://github.com/dipenparmar12/Exportable/blob/master/src/Commands/CsvExport.php | Github Open Source | Open Source | MIT | 2,021 | Exportable | dipenparmar12 | PHP | Code | 314 | 1,025 | <?php
namespace Dipenparmar12\Exportable\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Schema;
class CsvExport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
... | 48,005 |
https://github.com/coreyFielding/rs-gatsby/blob/master/src/styles/custom/pages/_checkout.scss | Github Open Source | Open Source | RSA-MD | null | rs-gatsby | coreyFielding | SCSS | Code | 143 | 574 | // Cart specific css
// Make stripe fields same as normal input fields
.wc-stripe-elements-field {
@extend .form-control;
}
.woocommerce-input-wrapper {
display: block;
width: 100%;
}
.form-row label {
color: #3C4858;
font-size: 0.875rem;
font-weight: 600;
display: block;
margin-bottom: 0.5rem;
wi... | 46,593 |
https://github.com/raghavnauhria/whatmt/blob/master/pytorch/c10/test/core/DeviceGuard_test.cpp | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-generic-cla, Apache-2.0, BSD-2-Clause, MIT | 2,019 | whatmt | raghavnauhria | C++ | Code | 95 | 589 | #include <gtest/gtest.h>
#include <c10/core/DeviceGuard.h>
#include <c10/core/impl/FakeGuardImpl.h>
using namespace c10;
using namespace c10::impl;
// The tests here are mostly covered by InlineDeviceGuard_test, but there
// is some DeviceGuard specific functionality we must test.
// -- DeviceGuard ----------------... | 22,453 |
https://github.com/cristobal-sifon/astro/blob/master/astro/schlegel/CodeC/subs_predict.c | Github Open Source | Open Source | MIT | null | astro | cristobal-sifon | C | Code | 2,189 | 7,162 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "interface.h"
#include "subs_inoutput.h"
#include "subs_common_string.h"
#include "subs_fits.h"
#include "subs_asciifile.h"
#include "subs_memory.h"
#include "subs_lambert.h"
#include "subs_predict.h"
/*******************************... | 43,719 |
https://github.com/thomabel/resourceful-rails-game/blob/master/Assets/Scripts/Editor/ManagerEditor.cs | Github Open Source | Open Source | MIT | null | resourceful-rails-game | thomabel | C# | Code | 198 | 525 | /* This work is released under the MIT license.
Please see the file LICENSE in this distribution for
license terms. */
using Rails.Data;
using Rails.ScriptableObjects;
using UnityEditor;
using UnityEngine;
namespace Rails.Editor
{
/// <summary>
/// Custom inspector editor for the Manager component.
... | 3,976 |
https://github.com/avanish-patel/storybook-addon-playwright/blob/master/src/utils/is-story-json-file.ts | Github Open Source | Open Source | MIT | 2,022 | storybook-addon-playwright | avanish-patel | TypeScript | Code | 31 | 113 | export const isStoryJsonFile = (
jsonOrStoryFileName: string,
storyFileName: string,
) => {
if (jsonOrStoryFileName === storyFileName) return true;
const jsonName = jsonOrStoryFileName.split('.').slice(0, -2).join('.');
const storyName = storyFileName.split('.').slice(0, -1).join('.');
return storyName.ends... | 44,289 |
https://github.com/BBVA/purescript-google-apps/blob/master/src/Control/Google/Apps/Jdbc/JdbcStruct.purs | Github Open Source | Open Source | Apache-2.0 | 2,021 | purescript-google-apps | BBVA | PureScript | Code | 75 | 248 | module Control.Google.Apps.Jdbc.JdbcStruct (
getAttributes,
getSqlTypeName
) where
import Effect (Effect)
import Foreign (Foreign)
import Data.Google.Apps.Jdbc.JdbcStruct as JdbcJdbcStruct
foreign import getAttributesImpl :: JdbcJdbcStruct.JdbcStruct -> Effect (Array Foreign)
-- | For documentation of this m... | 47,511 |
https://github.com/DDmit04/MyHome/blob/master/service/src/test/java/com/myhome/services/unit/AmenityBookingSDJpaServiceTest.java | Github Open Source | Open Source | Apache-2.0 | null | MyHome | DDmit04 | Java | Code | 179 | 1,157 | package com.myhome.services.unit;
import com.myhome.domain.AmenityBookingItem;
import com.myhome.repositories.AmenityBookingItemRepository;
import com.myhome.services.springdatajpa.AmenityBookingSDJpaService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
im... | 38,627 |
https://github.com/taskattention/task-attended-metalearning/blob/master/parser.py | Github Open Source | Open Source | MIT | 2,021 | task-attended-metalearning | taskattention | Python | Code | 156 | 677 | import argparse, sys
import json
import numpy as np
import torch
import os
import random
import tensorflow as tf
import shutil
from algorithms import *
from utils import save_history
from config import Config
from models import *
from algorithms import algos
import os
from datasets import *
def parse_arguments():
... | 15,166 |
https://github.com/pantelisantonoudiou/Logic_szrDetect/blob/master/data_preparation/get_predictions.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | Logic_szrDetect | pantelisantonoudiou | Python | Code | 752 | 2,281 | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 15 18:22:20 2020
@author: Pante
"""
### ------------------------ IMPORTS -------------------------------------- ###
import os, sys, json
from tqdm import tqdm
import numpy as np
import pandas as pd
from sklearn.preprocessing imp... | 27,305 |
https://github.com/Hammerstad/xUnit-VW-Extension/blob/master/src/TestxUnit-VW-2.1.0/AssertComparisonTests.cs | Github Open Source | Open Source | MIT | 2,017 | xUnit-VW-Extension | Hammerstad | C# | Code | 694 | 2,485 | namespace TestxUnit_VW
{
using System.Collections.Generic;
using Xunit;
using Assert = Xunit.VW.Assert;
public partial class AssertTest
{
public class NotNull
{
[Fact]
[Trait("Type", "Real")]
public void Object()
{
Ass... | 18,945 |
https://github.com/brettchaldecott/lstacker/blob/master/lib/openvswitch.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | lstacker | brettchaldecott | Shell | Code | 244 | 712 | #!/bin/bash
#
# Copyright 2016-09 brett.chaldecott@gmail.com
#
# 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 ap... | 1,387 |
https://github.com/viensvecais/CRUD_Photography_portfolio/blob/master/resources/assets/js/components/Work.js | Github Open Source | Open Source | MIT | null | CRUD_Photography_portfolio | viensvecais | JavaScript | Code | 147 | 531 | import React from "react";
import axios from "axios";
import { AlbumForm } from "./AlbumForm";
import { AlbumItem } from "./AlbumItem";
export class Work extends React.Component {
constructor() {
super();
this.state = {
auth: false,
albums: [],
openAlbum: {}
... | 31,013 |
https://github.com/Instanssi/Instanssi.org/blob/master/Instanssi/admin_kompomaatti/urls.py | Github Open Source | Open Source | MIT | 2,023 | Instanssi.org | Instanssi | Python | Code | 94 | 673 | from django.urls import path
from Instanssi.admin_kompomaatti.views import (
accept_vote_code_request,
competition_delete,
competition_edit,
competition_participation_edit,
competition_participations,
competition_score,
competitions_browse,
compo_browse,
compo_delete,
compo_edit... | 35,976 |
https://github.com/aruniverse/itwin-viewer/blob/master/packages/modules/itwin-viewer-react/src/components/iModel/IModelLoader.tsx | Github Open Source | Open Source | MIT | 2,020 | itwin-viewer | aruniverse | TSX | Code | 414 | 1,191 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... | 9,751 |
https://github.com/kionay/OutlookPy/blob/master/OutlookPy/alternatedispatch.py | Github Open Source | Open Source | MIT | 2,021 | OutlookPy | kionay | Python | Code | 420 | 1,185 | #https://stackoverflow.com/questions/23341675/passing-additional-arguments-to-python-callback-object-win32com-client-dispatch?noredirect=1&lq=1
from win32com.client import Dispatch
from win32com.client import gencache
from win32com.client import getevents
from win32com.client import EventsProxy
import pythoncom
def _... | 34,143 |
https://github.com/xprv-0/vegawallet/blob/master/cmd/message.go | Github Open Source | Open Source | MIT | 2,021 | vegawallet | xprv-0 | Go | Code | 37 | 138 | package cmd
import (
"io"
"github.com/spf13/cobra"
)
func NewCmdMessage(w io.Writer, rf *RootFlags) *cobra.Command {
cmd := &cobra.Command{
Use: "message",
Short: "Sign and verify messages",
Long: "Sign and verify messages",
}
cmd.AddCommand(NewCmdSignMessage(w, rf))
cmd.AddCommand(NewCmdVerifyMessag... | 1,119 |
https://github.com/adrianedy/laravel-multi-languange-cms/blob/master/app/Providers/AppServiceProvider.php | Github Open Source | Open Source | MIT | null | laravel-multi-languange-cms | adrianedy | PHP | Code | 90 | 294 | <?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\Validator;
use App\Models\Equipment;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
... | 36,911 |
https://github.com/xianyinuma/MapOnline/blob/master/codes/backend/src/main/java/com/sota/controller/UserController.java | Github Open Source | Open Source | MIT | 2,017 | MapOnline | xianyinuma | Java | Code | 1,212 | 4,779 | package com.sota.controller;
import com.google.gson.Gson;
import com.sota.entity.Friend;
import com.sota.entity.Image;
import com.sota.entity.Tag;
import com.sota.entity.User;
import com.sota.message.*;
import com.sota.service.FriendService;
import com.sota.service.ImageService;
import com.sota.service.TagService;
im... | 30,001 |
https://github.com/wangjeaf/CSSCheckStyle/blob/master/tests/unit/compress/Try.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | CSSCheckStyle | wangjeaf | Python | Code | 198 | 958 | from helper import *
def doTest():
_basic()
_with_hack()
_with_extra()
_with_keyframes()
_with_keyframes_enter()
_only_comments()
_with_complecated_keyframes()
def _basic():
msg = doCssCompress('/* @wangjeaf */ .test {width: 100px; height: 100px;}')
equal(msg, '.test{width:100px;he... | 48,838 |
https://github.com/tuanthanh2067/live-chat-client/blob/master/src/components/Room/RoomSector.js | Github Open Source | Open Source | MIT | 2,021 | live-chat-client | tuanthanh2067 | JavaScript | Code | 201 | 596 | import styled from "styled-components";
import Room from "./Room";
import { Link } from "react-router-dom";
import { useSelector } from "react-redux";
import Loading from "../Loading/Loading";
const RoomSector = ({ title, rooms, path }) => {
const loading = useSelector((state) => state.UI.loading);
let content;
... | 11,086 |
https://github.com/wieloming/GPI/blob/master/1/45/65/0b45bc12c38e1b26a10247774c94c8c7cb3d6a151d09cc92acc6ee0a2bf1.php | Github Open Source | Open Source | MIT | null | GPI | wieloming | PHP | Code | 317 | 1,200 | <?php
/* MopaBootstrapBundle:Form:formflow_buttons.html.twig */
class __TwigTemplate_45650b45bc12c38e1b26a10247774c94c8c7cb3d6a151d09cc92acc6ee0a2bf1 extends Sonata\CacheBundle\Twig\TwigTemplate14
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent =... | 5,265 |
https://github.com/rafaeltuelho/kogito-tooling/blob/master/packages/online-editor/src/editor/EditorPage.tsx | Github Open Source | Open Source | Apache-2.0 | null | kogito-tooling | rafaeltuelho | TypeScript | Code | 1,403 | 6,005 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 47,027 |
https://github.com/JetBrains/intellij-community/blob/master/python/testData/inspections/PyCallingNonCallableInspection/callableClassDecorator.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Python | Code | 21 | 69 | class D(object):
def __init__(self, attribute, value):
pass
def __call__(self, cls):
return cls
@D("value", 42)
class C(object):
pass
a = C()
print(a.value) | 37,707 |
https://github.com/greifentor/archimedes-legacy/blob/master/legacy-core/src/main/java/corent/base/Releaseable.java | Github Open Source | Open Source | Apache-2.0 | null | archimedes-legacy | greifentor | Java | Code | 123 | 295 | /*
* Releaseable.java
*
* 10.01.2004
*
* (c) by O.Lieshoff
*
*/
package corent.base;
/**
* Mit Hilfe dieses Interfaces kann ein Objekt als ressourcenbindend gekennzeichnet werden. Es
* kann für Klassen genutzt werden, bei deren Objekte es nötig ist, gewisse Referenzen
* zu lösen, bevor sie ... | 12,300 |
https://github.com/lhon/dappled/blob/master/dappled/__main__.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | dappled | lhon | Python | Code | 10 | 38 | def main():
import dappled.command
dappled.command.main()
if __name__ == "__main__":
main() | 5,335 |
https://github.com/markokimpel/gpgscratchextension/blob/master/gpg3server/static/controller.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | gpgscratchextension | markokimpel | JavaScript | Code | 625 | 2,406 | /* https://github.com/markokimpel/gopigoscratchextension
*
* Controller UI
*
* Send commands to GoPiGo3 Server from a webpage.
*
* Copyright 2018 Marko Kimpel
*
* 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... | 2,381 |
https://github.com/NoNotCar/pycollo/blob/master/pycollo/quadrature.py | Github Open Source | Open Source | MIT | 2,022 | pycollo | NoNotCar | Python | Code | 951 | 3,536 | """Computation of quadrature points and weights for different schemes.
Attributes
----------
DEFAULT_COLLOCATION_POINTS_MAX : int
Constant default limitation on the maximum number of collocation points
per mesh section that a user can specify. The value of 20 has been chosen
as above this the algorithms th... | 19,268 |
https://github.com/apache/systemds/blob/master/src/test/java/org/apache/sysds/test/functions/privacy/PrivacyLineageTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | systemds | apache | Java | Code | 324 | 1,087 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 26,370 |
https://github.com/intel/zephyr/blob/master/boards/arm/cyclonev_socdk/support/appli_debug_cmd.gdb | Github Open Source | Open Source | Apache-2.0 | 2,023 | zephyr | intel | GDB | Code | 51 | 123 | # Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# helper file for "west debug" command to load the .elf
# works if the .elf is located in "build" directory
set confirm off
set pagination off
set remote interrupt-on-connect off
restore ./build/zephyr/zephyr.elf
symbol-file -... | 8,201 |
https://github.com/flavio-fernandes/motionbox/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | motionbox | flavio-fernandes | Ignore List | Code | 2 | 10 | *~
ssidConfig.h
| 36,388 |
https://github.com/apache/geode/blob/master/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/commands/CloseDurableClientCommand.java | Github Open Source | Open Source | BSD-3-Clause, MIT, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown | 2,023 | geode | apache | Java | Code | 253 | 896 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 23,454 |
https://github.com/patrickkfkan/volumio-now-playing-reactjs-client/blob/master/src/AppStartup.js | Github Open Source | Open Source | MIT | null | volumio-now-playing-reactjs-client | patrickkfkan | JavaScript | Code | 211 | 691 | import { useEffect, useRef } from "react";
import Modal from "react-modal/lib/components/Modal";
import { useAppContext } from "./contexts/AppContextProvider";
import { useSocket } from "./contexts/SocketProvider";
import io from "socket.io-client";
import { usePerformanceContext } from "./contexts/SettingsProvider";
... | 25,416 |
https://github.com/amitmawkin/ambassador/blob/master/cmd/busyambassador/main.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | ambassador | amitmawkin | Go | Code | 98 | 317 | // Ambassador combines the various Golang binaries used in the Ambassador
// container, dispatching on os.Args[0] like BusyBox. Note that the
// capabilities_wrapper binary is _not_ included here. That one has special
// permissions magic applied to it that is not appropriate for these other
// binaries.
package main
... | 43,261 |
https://github.com/codemac/docker/blob/master/graph/load_unsupported.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | docker | codemac | Go | Code | 28 | 73 | // +build !linux,!windows
package graph
import (
"fmt"
"io"
)
func (s *TagStore) Load(inTar io.ReadCloser, outStream io.Writer) error {
return fmt.Errorf("Load is not supported on this platform")
}
| 3,814 |
https://github.com/GChau/LetsBuildASynthesizerPlugin/blob/master/SynthTap/Source/SynthVoice.h | Github Open Source | Open Source | Apache-2.0 | null | LetsBuildASynthesizerPlugin | GChau | C | Code | 120 | 447 | /*
==============================================================================
SynthVoice.h
Created: 13 Apr 2021 11:31:33pm
Author: gklch
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
#include <memory>
#include <unordered_m... | 28,567 |
https://github.com/dim13/gofys/blob/master/execute.go | Github Open Source | Open Source | 0BSD | 2,018 | gofys | dim13 | Go | Code | 81 | 326 | package golyb
type Tape interface {
Add(arg int, off int)
Move(off int)
Print(off int)
Scan(off int)
IsZero() bool
Clear(off int)
Mult(arg int, off int, dst int)
Search(off int)
}
func (p Program) Execute(t Tape) {
for i := range p {
switch p[i].Op {
case Add:
t.Add(p[i].Arg, p[i].Off)
case Move:
... | 7,124 |
https://github.com/datanautsuk/si/blob/master/lib/si.rb | Github Open Source | Open Source | MIT | 2,019 | si | datanautsuk | Ruby | Code | 4 | 16 | require 'si/minimal'
require 'si/patch'
| 32,899 |
https://github.com/radiohead/callable-objects/blob/master/lib/callable/active_record/active_record_attribute.rb | Github Open Source | Open Source | MIT | null | callable-objects | radiohead | Ruby | Code | 128 | 286 | # frozen_string_literal: true
module Virtus
# Polymorphic class to use for coercing ActiveRecord models
class ActiveRecordAttribute < Virtus::Attribute
# Make ActiveRecord::Base default class for coercion
@model_klass = ActiveRecord::Base
def coerce(value)
# Raise an error if we got something oth... | 25,768 |
https://github.com/crowleaj/Subscribed/blob/master/app/src/main/java/edu/rose_hulman/crowleaj/subscribed/fragments/EmailFragment.java | Github Open Source | Open Source | MIT | 2,017 | Subscribed | crowleaj | Java | Code | 381 | 1,136 | package edu.rose_hulman.crowleaj.subscribed.fragments;
import android.content.Context;
import android.os.Bundle;
import android.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.TextVi... | 22,530 |
https://github.com/xenserver/xenadmin/blob/master/XenAdmin/Controls/Wlb/WeekView.cs | Github Open Source | Open Source | BSD-2-Clause | 2,023 | xenadmin | xenserver | C# | Code | 2,701 | 7,796 | /* Copyright (c) Cloud Software Group, Inc.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions a... | 10,304 |
https://github.com/lscbot/leitmotif-flutter/blob/master/lib/src/widgets/snackbars/lit_snackbar_controller.dart | Github Open Source | Open Source | BSD-3-Clause | 2,022 | leitmotif-flutter | lscbot | Dart | Code | 595 | 1,401 | import 'package:flutter/animation.dart';
import 'package:flutter/material.dart';
import 'package:leitmotif/leitmotif.dart';
/// A controller to handle animations on [LitSnackbar] widgets.
///
/// Each [LitSnackbar] is required to have a [LitSnackbarController] in order
/// to perform the animation, which will slide in... | 31,165 |
https://github.com/martijnhoekstra/scalatest/blob/master/scalactic-test/src/test/scala/org/scalactic/anyvals/NegZDoubleSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | scalatest | martijnhoekstra | Scala | Code | 1,963 | 5,884 | /*
* Copyright 2001-2014 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 23,920 |
https://github.com/hujiajie/pa-chromium/blob/master/native_client_sdk/src/libraries/nacl_io/mount_passthrough.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,021 | pa-chromium | hujiajie | C | Code | 105 | 320 | /* Copyright (c) 2012 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 LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_
#define LIBRARIES_NACL_IO_MOUNT_PASSTHROUGH_H_
#include "nacl_io/mount.h"
class MountPassthrough :... | 19,032 |
https://github.com/firebase/quickstart-ios/blob/master/analytics/LegacyAnalyticsQuickstart/AnalyticsExample/CircleImageView.m | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | quickstart-ios | firebase | Objective-C | Code | 193 | 496 | //
// Copyright (c) 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 17,129 |
https://github.com/bleroy/6502/blob/master/libs/6502.js | Github Open Source | Open Source | MIT | 2,018 | 6502 | bleroy | JavaScript | Code | 7,382 | 18,673 | 'use strict';
// Symbols for private fields
const aSymbol = Symbol('a'), xSymbol = Symbol('x'), ySymbol = Symbol('y'),
spSymbol = Symbol('sp'), pcSymbol = Symbol('pc'), srSymbol = ('sr'),
aHandlersSymbol = Symbol('aHandlers'), xHandlersSymbol = Symbol('xHandlers'), yHandlersSymbol = Symbol('yHandlers'),
me... | 9,111 |
https://github.com/asarmiento/Controlmensajeria/blob/master/app/views/setup/create-estado.blade.php | Github Open Source | Open Source | MIT | 2,020 | Controlmensajeria | asarmiento | PHP | Code | 30 | 135 | @extends('template.main')
@section('head')
<meta name="description" content="Pagina inicio">
<meta name="author" content="Anwar Sarmiento">
<meta name="keyword" content="palabras, clave">
<title><?php echo utf8_encode('Configuración'); ?></title>
@stop
@section('title')
<h1 class="text-lowercase"><?php echo utf8_e... | 4,881 |
https://github.com/poiapoi03/cisss/blob/master/models/UploadForm.php | Github Open Source | Open Source | BSD-3-Clause | null | cisss | poiapoi03 | PHP | Code | 274 | 1,321 | <?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\web\UploadedFile;
use Box\Spout\Reader\Common\Creator\ReaderEntityFactory;
class UploadForm extends Model
{
/**
* @var UploadedFile
*/
public $excelFile;
public function rules()
{
return [
[['excelFile'], 'f... | 29,590 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.