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/corda/corda/blob/master/core/src/main/kotlin/net/corda/core/flows/KilledFlowException.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | corda | corda | Kotlin | Code | 79 | 157 | package net.corda.core.flows
import net.corda.core.CordaRuntimeException
/**
* An exception that is thrown when a flow has been killed.
*
* This exception can be returned and thrown to RPC clients waiting for the result of a flow's future.
*
* It can also be used in conjunction with [FlowLogic.isKilled] to escap... | 55,899 |
https://github.com/Shogatsu/Gems-and-Glory/blob/master/me/Shogatsu/Commands/LeagueOfLegends/LeagueHelp.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Gems-and-Glory | Shogatsu | Java | Code | 65 | 251 | package me.Shogatsu.Commands.LeagueOfLegends;
import com.jagrosh.jdautilities.command.Command;
import com.jagrosh.jdautilities.command.CommandEvent;
import me.Shogatsu.Menu.ErrorMenu;
import me.Shogatsu.Menu.HelpMenu;
public class LeagueHelp extends Command {
public LeagueHelp() {
this.name = "lh";
... | 54,157 |
https://github.com/ldaniels528/spark/blob/master/src/test/scala/io/scalajs/npm/eclairjs/SparkContextTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | spark | ldaniels528 | Scala | Code | 152 | 559 | package io.scalajs.npm.eclairjs
import io.scalajs.nodejs.console
import io.scalajs.npm.eclairjs.Implicits._
import io.scalajs.util.PromiseHelper.Implicits._
import org.scalatest.FunSpec
import scala.scalajs.concurrent.JSExecutionContext.Implicits.queue
import scala.scalajs.js
import scala.scalajs.js.JSConverters._
im... | 14,424 |
https://github.com/NoahKunin/micropurchase/blob/master/features/step_definitions/admin_views_drafts_steps.rb | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,016 | micropurchase | NoahKunin | Ruby | Code | 46 | 160 | Then(/^I should see a table listing all draft auctions$/) do
table_xpath = '//table[@id="table-drafts"]'
expect(page).to have_xpath(table_xpath)
end
Then(/^I should see the auction as a draft auction$/) do
table_xpath = '//table[@id="table-drafts"]'
within(:xpath, table_xpath) do
expect(page).to have_conte... | 37,540 |
https://github.com/ztaober/packer-ng-plugin/blob/master/common/src/main/java/com/mcxiaoke/packer/support/walle/PayloadWriter.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | packer-ng-plugin | ztaober | Java | Code | 519 | 1,545 | package com.mcxiaoke.packer.support.walle;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.FileChannel;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
final class PayloadWriter {
... | 34,134 |
https://github.com/elamysteknologioiden-lappi-2025/3DViewer/blob/master/3DViewer/Assets/VRTK/LegacyExampleFiles/ExampleResources/Prefabs/SDKSetups.prefab.meta | Github Open Source | Open Source | MIT | 2,020 | 3DViewer | elamysteknologioiden-lappi-2025 | Unity3D Asset | Code | 12 | 64 | fileFormatVersion: 2
guid: 41c0760bd81dd084283814f0c432b466
timeCreated: 1491551029
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
| 26,158 |
https://github.com/artlung/noke.us/blob/master/index.njk | Github Open Source | Open Source | BSD-3-Clause | 2,023 | noke.us | artlung | null | Spoken | 211 | 949 | ---
title: Roanoke Web Tech Resources
---
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6... | 34,220 |
https://github.com/laishi/see3d/blob/master/case/shave/b4w/js/scenes.js | Github Open Source | Open Source | MIT | null | see3d | laishi | JavaScript | Code | 11,189 | 45,006 | /**
* Copyright (C) 2014-2015 Triumph LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program i... | 39,523 |
https://github.com/thinkingcoding/disunity/blob/master/disunity-core/src/main/java/info/ata4/unity/asset/FileIdentifierTable.java | Github Open Source | Open Source | Unlicense | 2,015 | disunity | thinkingcoding | Java | Code | 168 | 448 | /*
** 2013 August 16
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.ata4... | 24,375 |
https://github.com/gamemasterplc/moduledemo/blob/master/tools/Makefile | Github Open Source | Open Source | MIT | 2,022 | moduledemo | gamemasterplc | Makefile | Code | 60 | 234 | HOST_ENV := $(shell uname 2>/dev/null || echo Unknown)
CC := gcc
CXX := g++
CFLAGS := -std=c++17 -I. -O2 -s
LDFLAGS := -lstdc++
ALL_PROGRAMS := makemodule
BUILD_PROGRAMS := $(ALL_PROGRAMS)
default: all
makemodule_SOURCES := makemodule.cpp
all: $(BUILD_PROGRAMS)
clean:
$(RM) $(ALL_PROGRAMS)
define COMPILE
$(1): ... | 43,760 |
https://github.com/s4nchez/http4k/blob/master/http4k-core/src/test/kotlin/org/http4k/client/AsyncHttpClientContract.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | http4k | s4nchez | Kotlin | Code | 110 | 560 | package org.http4k.client
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import org.http4k.core.Method.GET
import org.http4k.core.Method.POST
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.CLIENT_TIMEOUT
import org.http4k.c... | 55,061 |
https://github.com/JPry/helpscout-api-php/blob/master/tests/Reports/ParameterBagFactoryTest.php | Github Open Source | Open Source | MIT | 2,022 | helpscout-api-php | JPry | PHP | Code | 84 | 325 | <?php
declare(strict_types=1);
namespace HelpScout\Api\Tests\Reports;
use HelpScout\Api\Reports;
use PHPUnit\Framework\TestCase;
class ParameterBagFactoryTest extends TestCase
{
public function testBuild()
{
$date = new \DateTimeImmutable('now');
$mailboxes = [
123,
3... | 25,580 |
https://github.com/csdevsc/colcat_crowdsourcing_application/blob/master/tasks/admin.py | Github Open Source | Open Source | MIT | null | colcat_crowdsourcing_application | csdevsc | Python | Code | 54 | 188 | from django.contrib import admin
# from import_export import resources
# from import_export.admin import ImportExportModelAdmin
# from tasks.models import Task_Foci_001
#
# class Task_Foci_001_Resource(resources.ModelResource):
# class Meta:
# model = Task_Foci_001
#
# # ADMINS
# class Task_Foci_001_Admin(a... | 38,962 |
https://github.com/emistoolbox/emistoolbox/blob/master/core/src/com/emistoolbox/common/model/mapping/impl/EntityBaseDbMapImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | emistoolbox | emistoolbox | Java | Code | 74 | 270 | package com.emistoolbox.common.model.mapping.impl;
import com.emistoolbox.common.model.mapping.DbRowAccess;
import com.emistoolbox.common.model.mapping.EntityBaseDbMap;
import com.emistoolbox.common.model.meta.EmisMetaEntity;
public class EntityBaseDbMapImpl extends EmisDbMapBaseImpl implements EntityBaseDbMap
{
... | 47,833 |
https://github.com/Scrivener07/FO4_SpecialMenuEx/blob/master/Data/Interface/Source/F4NV/SPECIALMenu/$Terminal_Font.as | Github Open Source | Open Source | MIT | 2,020 | FO4_SpecialMenuEx | Scrivener07 | null | Spoken | 19 | 62 | package
{
import flash.text.Font;
public dynamic class $Terminal_Font extends Font
{
public function $Terminal_Font()
{
super();
}
}
}
| 33,447 |
https://github.com/linsipese/ifcppstudy/blob/master/SimpleViewerExample/src/viewer/ViewerWidget.cpp | Github Open Source | Open Source | MIT | 2,018 | ifcppstudy | linsipese | C++ | Code | 429 | 1,596 | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* i... | 47,916 |
https://github.com/hienhien25/staff-management/blob/master/resources/views/layout/search_mail.blade.php | Github Open Source | Open Source | MIT | 2,019 | staff-management | hienhien25 | Blade | Code | 116 | 546 | @extends('layout.mailbox')
@section('mail')
<div class="table-responsive">
<!-- THE MESSAGES -->
@if($count==0)
<span class="text-danger">Không tìm thấy kết quả nào !</span>
@else
<span class="text-danger">Đã tìm thấy {{$count}} kết quả !</span>
@endif
<table class="table table-mailbox">
<thead>
<th></th>
... | 6,029 |
https://github.com/ygnthetzaw/simple-android/blob/master/app/src/androidTest/java/org/simple/clinic/TestClinicApp.kt | Github Open Source | Open Source | MIT | null | simple-android | ygnthetzaw | Kotlin | Code | 474 | 1,859 | package org.simple.clinic
import android.app.Application
import android.content.Context
import androidx.arch.core.executor.ArchTaskExecutor
import androidx.arch.core.executor.TaskExecutor
import androidx.test.platform.app.InstrumentationRegistry
import com.datadog.android.Datadog
import com.datadog.android.core.config... | 27,993 |
https://github.com/pauls658/ReluDiff-ICSE2020-Artifact/blob/master/eran/ELINA/elina_zonotope/zonotope_constructor.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | ReluDiff-ICSE2020-Artifact | pauls658 | C | Code | 312 | 1,118 | /*
*
* This source file is part of ELINA (ETH LIbrary for Numerical Analysis).
* ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich
* This software is distributed under GNU Lesser General Public License Version 3.0.
* For more information, see the ELINA project website at:
* http://elina.et... | 13,907 |
https://github.com/cocolabs/pz-liquid-overhaul/blob/master/build/generated/sources/zdoc/media/lua/client/Blacksmith/TimedActions/ISEmptyDrum.lua | Github Open Source | Open Source | MIT | null | pz-liquid-overhaul | cocolabs | Lua | Code | 94 | 406 | --***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require "TimedActions/ISBaseTimedAction"
---@class ISEmptyDrum : ISBaseTimedAction
ISEmptyDrum = ISBaseTimedAction:derive("ISEmptyDr... | 16,338 |
https://github.com/ashrakay/maths/blob/master/vendor/bundle/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/opera/bridge.rb | Github Open Source | Open Source | Apache-2.0 | 2,013 | maths | ashrakay | Ruby | Code | 82 | 282 | module Selenium
module WebDriver
module Opera
#
# @api private
#
class Bridge < Remote::Bridge
def initialize(opts = {})
http_client = opts.delete(:http_client)
unless opts.empty?
raise ArgumentError, "unknown option#{'s' if opts.size != 1}: #{op... | 351 |
https://github.com/Bora-Oudom/Management/blob/master/resources/views/user/profile.blade.php | Github Open Source | Open Source | MIT | 2,021 | Management | Bora-Oudom | Blade | Code | 150 | 665 | @extends('templates.main')
@section('content')
<div class="container ">
<div class="row d-flex justify-content-center align-items-center ">
<div class="col-lg-12 col-xl-11">
<div class="card text-black" style="border-radius: 25px;">
<div class="card-body p-md-5">
<div clas... | 7 |
https://github.com/joaooliversystem/uxneocompiler/blob/master/examples/csharp/HelloWorld/HelloWorld.cs | Github Open Source | Open Source | MIT | 2,020 | uxneocompiler | joaooliversystem | C# | Code | 37 | 127 | using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Services.Neo;
using System;
using System.ComponentModel;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace Template
{
[Features(ContractFeatures.HasStorage)]
public class Contract1 : SmartContract
{
public st... | 47,133 |
https://github.com/Emeshka/cats-warriors/blob/master/activities/standard_camp_activities.js | Github Open Source | Open Source | MIT | 2,021 | cats-warriors | Emeshka | JavaScript | Code | 136 | 702 | var game = null
exports.define = function(g) {
game = g
}
exports.activities = {
sleep_home_select_hours: function(){return{
text: "home_camp_go_sleep",
img: game.actor.race+"_camp_actor_sleepplace_"+game.getSeason()+".jpg",
doAndGetArgs: function() {
return []
},
options: [
{
text: "o_sleep_6_h... | 35,026 |
https://github.com/proagil/proagil/blob/master/app/models/frontend/Artefact.php | Github Open Source | Open Source | MIT | null | proagil | proagil | PHP | Code | 151 | 783 | <?php
class Artefact extends Eloquent{
public static function enumerate($mode=NULL){
$consult = DB::table('artefact')->where('enabled', TRUE)->get();
$result = array();
if($mode!=NULL){
foreach($consult as $index => $row){
$result[$index] = $row->id;
}
}
return ($mode!=NULL)?$result:$co... | 8,325 |
https://github.com/bonomali/ulog/blob/master/mods/config/args.browser.js | Github Open Source | Open Source | MIT | 2,021 | ulog | bonomali | JavaScript | Code | 20 | 63 | var parse = require('./parse')
module.exports = parse(typeof location == 'undefined' ? [] : location.search.replace(/^(\?|#|&)/, '').split('&'),
/\+/g, ' ', decodeURIComponent
)
| 33,964 |
https://github.com/NinesStack/nmesos/blob/master/src/test/scala/ninesstack/nmesos/config/YmlSpec.scala | Github Open Source | Open Source | MIT | 2,021 | nmesos | NinesStack | Scala | Code | 685 | 2,719 | package ninesstack.nmesos.config
import org.scalatest._
import org.scalatest.flatspec._
import org.scalatest.matchers._
import ninesstack.nmesos.util.InfoFormatter
import ninesstack.nmesos.config.YamlParser._
import ninesstack.nmesos.config.YamlParserHelper.YamlCustomProtocol._
import ninesstack.nmesos.config.model._... | 25,827 |
https://github.com/boost-entropy-azure/prime-data-hub/blob/master/operations/Makefile | Github Open Source | Open Source | Apache-2.0 | null | prime-data-hub | boost-entropy-azure | Makefile | Code | 207 | 631 | SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
TF_ENV = "dev" #VAR Your target environment (e.g. dev, test, staging, prod)
TF_STAGE = "" # not surfaced
# HELP
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
.PHONY: help tf-cli tf-01-network tf... | 34,138 |
https://github.com/MMP-HCKMCR/team-death/blob/master/rest/api.js | Github Open Source | Open Source | MIT | 2,017 | team-death | MMP-HCKMCR | JavaScript | Code | 510 | 1,960 | // libs
var express = require('express');
//API implementations
var login = require('./Login');
var deceased = require('./Deceased');
var recipients = require('./Recipient');
var events = require('./Events');
var messages = require('./Messages');
// var encryption = require('../gchq_encryption/encrypt')
// express r... | 35,958 |
https://github.com/jlantz/GrantLifecycleApp/blob/master/src/classes/ContactSearchUtility_TEST.cls | Github Open Source | Open Source | BSD-3-Clause | 2,016 | GrantLifecycleApp | jlantz | Apex | Code | 404 | 1,071 | /*
Copyright (c) 2013, Bridge Farm Consulting Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notic... | 43,226 |
https://github.com/vlocityinc/newport-design-system/blob/master/ui/organisms/communities-articles-group/communities-articles-group.stories.js | Github Open Source | Open Source | BSD-3-Clause, CC-BY-ND-4.0, LicenseRef-scancode-unknown-license-reference, OFL-1.1 | 2,022 | newport-design-system | vlocityinc | JavaScript | Code | 194 | 1,029 | import { storiesOf } from '@storybook/html';
import base from 'paths.macro';
import { withKnobs, radios } from '@storybook/addon-knobs';
import {
withExample,
withDocs,
commentToHTML
} from '../../../scripts/storybook';
import scss from './base/_index.scss';
import notes from './doc.md';
const label = 'Open Sections';... | 56,794 |
https://github.com/3nprob/contextmenu_folder/blob/master/contextmenu_folder.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | contextmenu_folder | 3nprob | JavaScript | Code | 6,174 | 23,288 | // Plugin: contextmenu_folder
// Roundcube Context Menu Folder Manager
// Adds context menus with mailbox operations
// plugin class
function plugin_contextmenu_folder() {
var self = this;
// flat mailbox list, total
this.parent_list = [];
// flat mailbox list, total
this.folder_list = [];
// structured messa... | 32,433 |
https://github.com/lundinc2/FreeRTOS-Labs/blob/master/FreeRTOS/Demo/CORTEX_A2F200_SoftConsole/MicroSemi_Code/drivers/mss_ace/envm_layout.h | Github Open Source | Open Source | freertos-exception-2.0, GPL-2.0-or-later, MIT | 2,020 | FreeRTOS-Labs | lundinc2 | C | Code | 100 | 264 | /*******************************************************************************
* (c) Copyright 2009 Actel Corporation. All rights reserved.
*
* This file contains the addresses and size of the various blocks of data
* stored in eNVM.
*
* SVN $Revision: 1113 $
* SVN $Date: 2009-07-01 11:11:29 +0100 (Wed, 01 J... | 54,816 |
https://github.com/fmagrini/seislib/blob/master/seislib/colormaps/bukavu/bukavu.py | Github Open Source | Open Source | MIT | 2,022 | seislib | fmagrini | Python | Code | 827 | 4,888 | #
# bukavu
# www.fabiocrameri.ch/colourmaps
from matplotlib.colors import LinearSegmentedColormap
cm_data = [[0.10021, 0.20003, 0.20006],
[0.10119, 0.20327, 0.20759],
[0.10214, 0.20654, 0.21514],
[0.10309, 0.20978, 0.2228], ... | 26,167 |
https://github.com/wizedkyle/sumocli/blob/master/internal/encryption/machineid_linux.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | sumocli | wizedkyle | Go | Code | 59 | 204 | package encryption
import (
"github.com/rs/zerolog"
"os"
"strings"
)
const (
dbusPath = "/var/lib/dbus/machine-id"
dbusPathEtc = "/var/machine-id"
)
func getMachineId(log zerolog.Logger) string {
machineId, err := os.ReadFile(dbusPath)
if err != nil {
machineId, err = os.ReadFile(dbusPathEtc)
}
if err ... | 16,048 |
https://github.com/expo/expo-test-runner/blob/master/src/TemplateEvaluator.ts | Github Open Source | Open Source | MIT | 2,021 | expo-test-runner | expo | TypeScript | Code | 45 | 122 | import { Definitions, template } from 'dot';
import * as fs from 'fs-extra';
export default class TemplateEvaluator {
constructor(private definitions: Definitions) {}
async compileFileAsync(path: string) {
const fileContent = await fs.readFile(path, 'utf-8');
const templateFn = template(fileContent, {
... | 33,787 |
https://github.com/UbuntuEvangelist/OG-Platform/blob/master/projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/timeseries/FXVolatilitySurfaceHistoricalTimeSeriesFunction.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | OG-Platform | UbuntuEvangelist | Java | Code | 56 | 184 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.timeseries;
import com.opengamma.core.value.MarketDataRequirementNames;
import com.opengamma.financial.analytics.model.InstrumentTypePrope... | 924 |
https://github.com/mahmoudali18/ecommercepro/blob/master/routes/admin.php | Github Open Source | Open Source | MIT | null | ecommercepro | mahmoudali18 | PHP | Code | 500 | 2,704 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| admin Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Rou... | 7,418 |
https://github.com/dpla/marmotta/blob/master/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/collections/EquivalenceHashSet.java | Github Open Source | Open Source | CC-BY-3.0, Apache-2.0 | null | marmotta | dpla | Java | Code | 2,484 | 4,995 | /*
* 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 ... | 15,829 |
https://github.com/zconnect-iot/zconnect-web/blob/master/components/forms/PasswordField/index.js | Github Open Source | Open Source | MIT | 2,019 | zconnect-web | zconnect-iot | JavaScript | Code | 80 | 217 | import React from 'react'
import PropTypes from 'prop-types'
import { createFieldComponent } from '../genericInput/index'
import './style.scss'
const { component, renderInput, classes } = createFieldComponent('PasswordField', 'password')
function PasswordField({ ...props }) {
// You can't just render <component ..... | 387 |
https://github.com/akhil-karat/AngularStarter/blob/master/WebContent/common/services/url-config.js | Github Open Source | Open Source | MIT | 2,016 | AngularStarter | akhil-karat | JavaScript | Code | 40 | 106 | (function () {
'use strict'
angular.module('app.webServiceApi', []).factory('webServiceApi', [webService]);
function webService() {
var getUrl = window.location;
var path = '';
var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + path;
var services = {
};
... | 50,462 |
https://github.com/pradyumnasagar/jvarkit/blob/master/src/test/java/com/github/lindenb/jvarkit/tools/structvar/SamExtractClipTest.java | Github Open Source | Open Source | MIT | 2,019 | jvarkit | pradyumnasagar | Java | Code | 41 | 212 | package com.github.lindenb.jvarkit.tools.structvar;
import java.io.File;
import java.io.IOException;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.github.lindenb.jvarkit.tools.tests.TestUtils;
public class SamExtractClipTest extends TestUtils{
@Test(dataProvider="all-sam-or-bam-files")
... | 43,767 |
https://github.com/Racoon22/auth/blob/master/public/js/main.js | Github Open Source | Open Source | MIT | 2,017 | auth | Racoon22 | JavaScript | Code | 195 | 613 | $('#auth_btn').on("click", function (e) {
e.preventDefault();
var password = $('#password').val(),
login = $('#login').val(),
token = $('#token').val();
$.post({
url: 'index.php',
data: {
login: login,
password: password,
token: token
... | 12,216 |
https://github.com/oceanics-io/oceanics.io/blob/master/oceanics-io-www/src/hooks/useWasmRuntime.tsx | Github Open Source | Open Source | MIT | 2,022 | oceanics.io | oceanics-io | TypeScript | Code | 180 | 417 | /**
* React and friends.
*/
import { useEffect, useMemo, useState } from "react";
// https://stackoverflow.com/questions/52112948/whats-the-return-type-of-a-dynamic-import
type ModuleType = typeof import("oceanics-io-wasm");
/**
* Basic single-threaded runtime.
*
* You can't supply the import path externally, b... | 24,883 |
https://github.com/guoer1228/Sikiro.RBAC/blob/master/src/GS.Web.Admin/Models/Role/RoleVo.cs | Github Open Source | Open Source | MIT | 2,020 | Sikiro.RBAC | guoer1228 | C# | Code | 54 | 163 | using System;
using MongoDB.Bson;
using Sikiro.Web.Admin.Attribute;
namespace Sikiro.Web.Admin.Models.Role
{
public class RoleVo
{
public string Id { get; set; }
/// <summary>
/// 角色名称
/// </summary>
[TableCols(Tile = "角色名称")]
public string Name { get; set; }
... | 8,400 |
https://github.com/jiangxinlingdu/VictoriaMetrics-cluster/blob/master/app/vmselect/prometheus/query_range_response.qtpl.go | Github Open Source | Open Source | Apache-2.0 | null | VictoriaMetrics-cluster | jiangxinlingdu | Go | Code | 273 | 2,082 | // Code generated by qtc from "query_range_response.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line app/vmselect/prometheus/query_range_response.qtpl:1
package prometheus
//line app/vmselect/prometheus/query_range_response.qtpl:1
import (
"github.com/VictoriaMetrics/VictoriaMe... | 17,573 |
https://github.com/zhoujiagen/sequences/blob/master/sequences-api-core/src/main/java/com/spike/giantdataanalysis/sequences/api/ISequencer.java | Github Open Source | Open Source | MIT | null | sequences | zhoujiagen | Java | Code | 35 | 134 | package com.spike.giantdataanalysis.sequences.api;
import java.io.Serializable;
import com.spike.giantdataanalysis.sequences.api.domain.Sequence;
import com.spike.giantdataanalysis.sequences.api.domain.SequenceGroup;
public interface ISequencer extends Serializable {
long START_VALUE = 1L;
void init(String nam... | 43,597 |
https://github.com/paulmand3l/WhereTo/blob/master/js/whereto.js | Github Open Source | Open Source | MIT | 2,014 | WhereTo | paulmand3l | JavaScript | Code | 128 | 474 | (function() {
var getClosestStops;
$(function() {
var map, mapOptions;
mapOptions = {
center: {
lat: 37.7833,
lng: -122.4167
},
zoom: 13
};
map = new google.maps.Map(document.getElementById('map'), mapOptions);
return navigator.geolocation.getCurrentPosition(fu... | 30,148 |
https://github.com/kuanfandevops/zeva/blob/master/frontend/src/dashboard/components/UserSettings.js | Github Open Source | Open Source | Apache-2.0 | null | zeva | kuanfandevops | JavaScript | Code | 89 | 369 | import React from 'react';
import CustomPropTypes from '../../app/utilities/props';
const UserSettings = (props) => {
const { details } = props;
return (
<div id="user-settings" className="dashboard-fieldset">
<h1>Welcome</h1>
<div className="content">
<div className="text">
<h5... | 38,564 |
https://github.com/google/skia-buildbot/blob/master/golden/modules/BUILD.bazel | Github Open Source | Open Source | BSD-3-Clause | 2,023 | skia-buildbot | google | Starlark | Code | 99 | 498 | load("//infra-sk:index.bzl", "karma_test", "sass_library", "ts_library")
karma_test(
name = "common_test",
src = "common_test.ts",
deps = [
":common_ts_lib",
"//golden/modules/search-controls-sk",
"//infra-sk/modules:dom_ts_lib",
"//infra-sk/modules:test_util_ts_lib",
... | 53,482 |
https://github.com/sumit44840/kernel_3.18_coolpad_CP8298_I00_CP8676_I02/blob/master/drivers/misc/mediatek/imgsensor/src/mt6753/ov5648_sunny_mipi_raw/Makefile | Github Open Source | Open Source | Apache-2.0 | null | kernel_3.18_coolpad_CP8298_I00_CP8676_I02 | sumit44840 | Makefile | Code | 5 | 49 | #include $(srctree)/drivers/misc/mediatek/imgsensor/src/Makefile.custom
obj-y += ov5648sunnymipi_Sensor.o
| 38,871 |
https://github.com/mbonjour/GEN_lab3/blob/master/src/main/java/GoToJailSquare.java | Github Open Source | Open Source | MIT | null | GEN_lab3 | mbonjour | Java | Code | 36 | 105 | public class GoToJailSquare extends Square {
public GoToJailSquare(String name){
super(name);
}
/**
* On envoie le joueur en prison quand il tombe dessus
* @param player
*/
@Override
public void landedOn(Player player) {
player.getOwns().setLocation(player.getBoard(... | 11,343 |
https://github.com/DevSolutionsLtd/Weekly-Training-Calls/blob/master/03-github/plot.R | Github Open Source | Open Source | CC0-1.0 | 2,021 | Weekly-Training-Calls | DevSolutionsLtd | R | Code | 19 | 48 | plot(cars$speed, cars$dist, main = "Cars Speeds vs. Stopping Distances", xlab = "Car Speed (mph)", ylab = "Stopping Distance (ft)")
| 25,854 |
https://github.com/daniloff200/ngx-bootstrap/blob/master/src/chronos/i18n/nb.ts | Github Open Source | Open Source | MIT | 2,022 | ngx-bootstrap | daniloff200 | TypeScript | Code | 185 | 681 | import { LocaleData } from '../locale/locale.class';
//! moment.js locale configuration
//! locale : Norwegian Bokmål [nb]
//! authors : Espen Hovlandsdal : https://github.com/rexxars
//! Sigurd Gartmann : https://github.com/sigurdga
export const nbLocale: LocaleData = {
abbr: 'nb',
months: 'januar_febr... | 8,336 |
https://github.com/JetBrains/intellij-community/blob/master/plugins/editorconfig/testData/org/editorconfig/language/codeinsight/inspections/unexpectedChar/.editorconfig | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | null | Spoken | 10 | 34 | [*]
property_with_form_feed_in_value = va<error descr="Expected a valid string character"></error>lue | 52,332 |
https://github.com/smitty1eGH/pyphlogiston/blob/master/Makefile | Github Open Source | Open Source | MIT | null | pyphlogiston | smitty1eGH | Makefile | Code | 115 | 337 | .PHONY: help b c t tidy reqsFr reqsInst
.DEFAULT_GOAL := help
FILES=`find . -type f -name "*.py"`
help:
@echo ""
@echo "Pyphlogiston commands:"
@echo ""
@echo "target | description"
@echo "---------+------------"
@echo "b fix style with black"
@echo "c check typing with mypy"
@echo "t ... | 40,885 |
https://github.com/marlonklc/gof-design-patterns/blob/master/src/main/java/com/marlonklc/designpatterns/creational/FactoryMethod/console/LogPrinterConsole.java | Github Open Source | Open Source | MIT | null | gof-design-patterns | marlonklc | Java | Code | 40 | 148 | package com.marlonklc.designpatterns.creational.FactoryMethod.console;
import com.marlonklc.designpatterns.creational.FactoryMethod.logger.LogPrinter;
import com.marlonklc.designpatterns.creational.FactoryMethod.utils.DateTimeUtils;
/**
* Created by Marlon on 10/07/2017.
*/
public class LogPrinterConsole implements... | 48,996 |
https://github.com/ysavchen/otus-java-2019-3-hw/blob/master/L13-structural-patterns/src/main/java/com/mycompany/atm/exceptions/InsufficientFundsException.java | Github Open Source | Open Source | MIT | null | otus-java-2019-3-hw | ysavchen | Java | Code | 32 | 75 | package com.mycompany.atm.exceptions;
/**
* Thrown when an account does not have enough money to be issued by ATM.
*/
public class InsufficientFundsException extends RuntimeException {
public InsufficientFundsException(String message) {
super(message);
}
}
| 3,086 |
https://github.com/macressler/optic/blob/master/core/src/main/scala-2.12/com/opticdev/core/cli/CliMain.scala | Github Open Source | Open Source | MIT | 2,018 | optic | macressler | Scala | Code | 234 | 695 | //package com.opticdev.core.cli
//
//import better.files.File
//import com.opticdev.common.launcher.ServerLauncher
//import com.opticdev.core.cli.output.InstallSessionMonitor
//import me.tongfei.progressbar.ProgressBar
//import scopt.OptionParser
//object CliMain {
// case class Config(
// in: ... | 20,691 |
https://github.com/impactmarketingspecialists/honeybadger-admin/blob/master/lib/source.js | Github Open Source | Open Source | MIT | 2,015 | honeybadger-admin | impactmarketingspecialists | JavaScript | Code | 357 | 725 | // Copyright Impact Marketing Specialists, Inc. and other contributors.
//
// 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 t... | 37,557 |
https://github.com/UnaNancyOwen/OpenCVDNNSample/blob/master/sample/Pose Estimation/OpenPose/main.cpp | Github Open Source | Open Source | MIT | 2,021 | OpenCVDNNSample | UnaNancyOwen | C++ | Code | 416 | 1,195 | #include <iostream>
#include <string>
#include <vector>
#include <limits>
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include "util.h"
int main( int argc, char* argv[] )
{
// Open Video Capture
cv::VideoCapture capture = cv::VideoCapture( 0 );
if( !capture.isOpened() ){
return -1;
... | 51,975 |
https://github.com/yikeshu0611/docxR/blob/master/R/append_docx.R | Github Open Source | Open Source | Apache-2.0 | 2,021 | docxR | yikeshu0611 | R | Code | 39 | 97 | #' append docx file
#'
#' @param name word name end with docx
#'
#' @export
#'
append_docx <- function(name){
if (missing(name)) stop('name must be given')
if (do::right(name,5) != '.docx') stop('name must end with .docx')
.docxname <<- name
}
| 7,560 |
https://github.com/jbelke/network-unifi/blob/master/prettier.config.js | Github Open Source | Open Source | MIT | 2,018 | network-unifi | jbelke | JavaScript | Code | 3 | 21 | module.exports = require('@invisionag/prettier-config-ivx');
| 39,808 |
https://github.com/luisplata/museoCarmona/blob/master/database/migrations/2021_09_14_194451_create_categori_mural.php | Github Open Source | Open Source | MIT | null | museoCarmona | luisplata | PHP | Code | 61 | 200 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriMural extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement("INSERT INTO `ca... | 28,413 |
https://github.com/asc-lab/aws-lambda-poc/blob/master/generateInvoiceFunc/src/main/kotlin/pl/altkom/asc/lab/lambda/invoice/invoicing/Invoice.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | aws-lambda-poc | asc-lab | Kotlin | Code | 96 | 348 | package pl.altkom.asc.lab.lambda.invoice.invoicing
import pl.altkom.asc.lab.lambda.invoice.billing.BillingItem
import java.math.BigDecimal
data class Invoice(
val customer: String,
val invoiceNumber: String,
val description: String,
val lines: MutableList<InvoiceLine>,
var tota... | 54,686 |
https://github.com/yjjmuz/myprj/blob/master/application/common/model/Admin.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | myprj | yjjmuz | PHP | Code | 103 | 595 | <?php
namespace app\common\model;
use think\Model;
use think\Loader;
use think\Validate;
class Admin extends Model
{
protected $pk = 'admin_id';
protected $table = 'blog_admin';
public function login($data)
{
$validate = Loader::validate(('Admin'));
if(!$validate -> check($data)){... | 17,087 |
https://github.com/AyloSrd/portfolio/blob/master/src/modules/templates/SkillTag.js | Github Open Source | Open Source | MIT | null | portfolio | AyloSrd | JavaScript | Code | 43 | 164 | const SkillTag = ({ skill, researchedSkill }) => {
const template = `
<span
data-skill="${skill}"
class="skill-tag${
researchedSkill
? ' researched-skill'
: ' listed-skill'
}"
>
${skill}
${ researchedSkill
? `<span data-skill="${skill}" class="remove-researched-skill">x</span>`
: ''
}
... | 45,594 |
https://github.com/fdr/redrat/blob/master/test/test_redrat.rb | Github Open Source | Open Source | Unlicense | 2,022 | redrat | fdr | Ruby | Code | 199 | 1,031 | require "test/unit"
require "redrat"
class TestRedrat < Test::Unit::TestCase
def get_builtin name
RedRat::Internal::apply(
RedRat::Internal::getattr(
RedRat::Internal::builtins,
RedRat::Internal::unicode('__getitem__')),
RedRat::Internal::unicode(name))
end
def test_module_declar... | 51,980 |
https://github.com/Bossierp/com.mrboss.checkdb/blob/master/src/android/CheckDB.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | com.mrboss.checkdb | Bossierp | Java | Code | 857 | 3,452 | /*
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... | 6,398 |
https://github.com/K3yChain/yadr/blob/master/.dockerignore | Github Open Source | Open Source | BSD-2-Clause | 2,019 | yadr | K3yChain | Ignore List | Code | 4 | 33 | docker-compose.yml
Dockerfile
bin/fix_macvim_external_display.sh
bin/osx
| 53,713 |
https://github.com/ErwanLeroux/hibernate-types/blob/master/hypersistence-utils-hibernate-60/src/test/java/io/hypersistence/utils/spring/repo/querymethod/domain/PostComment.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | hibernate-types | ErwanLeroux | Java | Code | 66 | 204 | package io.hypersistence.utils.spring.repo.querymethod.domain;
import jakarta.persistence.*;
@Entity
@Table(name = "post_comment")
public class PostComment {
@Id
@GeneratedValue
private Long id;
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "post_id")
private Post p... | 5,184 |
https://github.com/ElectricPeelSoftware/EPSReactiveCollectionViewController/blob/master/Project/EPSReactiveCollectionViewController/EPSExampleViewController.h | Github Open Source | Open Source | MIT | 2,015 | EPSReactiveCollectionViewController | ElectricPeelSoftware | C | Code | 31 | 91 | //
// EPSExampleViewController.h
// EPSReactiveCollectionViewController
//
// Created by Peter Stuart on 3/3/14.
// Copyright (c) 2014 Electric Peel, LLC. All rights reserved.
//
#import "EPSReactiveCollectionViewController.h"
@interface EPSExampleViewController : EPSReactiveCollectionViewController
@end
| 56,503 |
https://github.com/zwkno1/serialization2/blob/master/test/jsontest.cpp | Github Open Source | Open Source | BSL-1.0 | 2,019 | serialization2 | zwkno1 | C++ | Code | 493 | 1,872 | #include "unittest.h"
#include <serialization/serialization.h>
#include <limits>
struct TestInt
{
int value;
bool operator==(const TestInt & other) const { return value == other.value; }
SERIALIZATION_DEFINE(value);
};
struct TestUint
{
uint value;
bool operator==(const TestUint & other) const { return value ==... | 8,655 |
https://github.com/dimitrilongo/mod_pagespeed/blob/master/pagespeed/kernel/http/response_headers_test.cc | Github Open Source | Open Source | Apache-2.0 | 2,020 | mod_pagespeed | dimitrilongo | C++ | Code | 5,196 | 28,678 | // Copyright 2011 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 agreed to in... | 6,699 |
https://github.com/ali-attar/online-exams/blob/master/app/Models/azmoon.php | Github Open Source | Open Source | MIT | null | online-exams | ali-attar | PHP | Code | 67 | 273 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class azmoon extends Model
{
use HasFactory;
public function azmoonClass()
{
return $this->hasMany(azmoonClass::class, 'azmoon_id', 'id');
}
public function question(... | 42,485 |
https://github.com/zemuldo/iso_8583/blob/master/.eslintignore | Github Open Source | Open Source | MIT | 2,023 | iso_8583 | zemuldo | Ignore List | Code | 1 | 7 |
/example/*.js | 3,653 |
https://github.com/Angold-4/OSDI/blob/master/Minix3/commands/scripts/postinstall.sh | Github Open Source | Open Source | MIT | 2,022 | OSDI | Angold-4 | Shell | Code | 72 | 129 | #!/bin/sh
echo -n "Would you like to install binary packages from the CD? (y/N) "
read y
if [ "$y" = y -o "$y" = Y ]
then echo "Ok, showing you a list of packages, please type y"
echo "for every package you want installed."
/usr/bin/packme
else echo "Ok, not installing binary packages."
fi
echo "Use the 'packme' comm... | 27,874 |
https://github.com/Zweihander-Main/github-battle-ts/blob/master/app/components/Battle.tsx | Github Open Source | Open Source | MIT | 2,020 | github-battle-ts | Zweihander-Main | TypeScript | Code | 478 | 1,841 | import * as React from 'react';
import * as PropTypes from 'prop-types';
import {
FaUserFriends,
FaFighterJet,
FaTrophy,
FaTimesCircle,
} from 'react-icons/fa';
import ThemeContext from '../contexts/theme';
import { Link } from 'react-router-dom';
/**
* Renders instructions for Battle
*/
const Instructions: Reac... | 41,454 |
https://github.com/maikees/moc-orm/blob/master/tests/Model/ErrorTest.php | Github Open Source | Open Source | MIT | 2,018 | moc-orm | maikees | PHP | Code | 73 | 318 | <?php
namespace MocOrm\Tests\Model;
use MocOrm\Model\Error;
final class ErrorTest extends \PHPUnit\Framework\TestCase
{
protected static $error;
public function testFirstError()
{
self::$error = Error::create('First error', 42);
$this->assertInstanceOf(Error::class, self::$error);
... | 12,457 |
https://github.com/iLikeTree/iLikeTree/blob/master/demo/demo.js | Github Open Source | Open Source | MIT | null | iLikeTree | iLikeTree | JavaScript | Code | 126 | 460 | (function () {
$(document).on('mousewheel', function (event) {
event.preventDefault();
throttle(listenScroll, event);
});
var ids = ['home', 'my', 'demo', 'daily', 'end'];
var activeId = 0;
var len = ids.length;
var done = true;
// 页面滚动事件
function listenScroll(event) {
... | 36,624 |
https://github.com/dreikanter/soundhound-export/blob/master/tweets/2015_11.js | Github Open Source | Open Source | MIT | null | soundhound-export | dreikanter | JavaScript | Code | 615 | 2,607 | Grailbird.data.tweets_2015_11 =
[ {
"source" : "\u003Ca href=\"http:\/\/soundhound.com\/\" rel=\"nofollow\"\u003ESoundHound\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ ],
"media" : [ ],
"hashtags" : [ {
"text" : "SoundHound",
"indices" : [ 34, 45 ]
} ],
"urls" : [ {
"... | 28,193 |
https://github.com/peterfraedrich/golem-lang/blob/master/lib/sys.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | golem-lang | peterfraedrich | Go | Code | 200 | 487 | // Copyright 2017 The Golem Project Developers
//
// 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... | 7,380 |
https://github.com/auser/lambda-authorizer/blob/master/dist/index.js | Github Open Source | Open Source | MIT | 2,020 | lambda-authorizer | auser | JavaScript | Code | 66 | 199 | "use strict";
const {
LogEnv,
LambdaLogger,
LambdaResponse
} = require('@erikmuir/lambda-utils');
exports.handler = async function (event, context) {
LogEnv.lambdaEvent = event;
LogEnv.lambdaContext = context;
const logger = new LambdaLogger('index');
const response = new LambdaResponse();
try {
... | 23,985 |
https://github.com/nashid/ast-transformations/blob/master/ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/anonymization/data/classes_and_methods/in_5_fields.py | Github Open Source | Open Source | MIT | 2,021 | ast-transformations | nashid | Python | Code | 14 | 40 | class C:
def __init__(self):
self.a = 1
self.b = 2
c = 3
print(C().a) | 46,932 |
https://github.com/IFabioI/mycontroller/blob/master/modules/core/src/main/java/org/mycontroller/standalone/api/jaxrs/OperationHandler.java | Github Open Source | Open Source | Apache-2.0 | null | mycontroller | IFabioI | Java | Code | 304 | 1,179 | /*
* Copyright 2015-2017 Jeeva Kandasamy (jkandasa@gmail.com)
* and other contributors as indicated by the @author tags.
*
* 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://... | 56,749 |
https://github.com/Sarvesh19/angular2-google-maps/blob/master/gulp/config.js | Github Open Source | Open Source | MIT | 2,016 | angular2-google-maps | Sarvesh19 | JavaScript | Code | 164 | 534 | const path = require('path');
const ts = require('typescript');
const $ = require('gulp-load-plugins')();
// package.json as JS object
module.exports.pkg = require(path.join(__dirname, '../package.json'));
// note: for all paths, the base dir is ../
module.exports.PATHS = {
srcDir: 'src',
tsSrcFiles: 'src/**/*.ts... | 42,263 |
https://github.com/0n0123/poke-types/blob/master/script.js | Github Open Source | Open Source | MIT | null | poke-types | 0n0123 | JavaScript | Code | 623 | 2,040 | import { Types, getType, judge } from './types.js';
const selections = document.getElementById('selection');
for (const type of Types) {
const button = createElement('button', {
text: type.name,
className: 'type_' + type.id,
attr: {
tabIndex: '-1'
},
onclick: e ... | 7,477 |
https://github.com/YehudaEi/AutoIt-Attachment/blob/master/Attachments/43K-44K/3000-4000/43063/_FileReadToArrayEx.au3 | Github Open Source | Open Source | MIT | 2,021 | AutoIt-Attachment | YehudaEi | null | Spoken | 512 | 1,663 | ; #CONSTANTS# ====================================================
#Region ;**** Global vars for _FileReadToArrayEx
Global Const $FRTA_NOCOUNT = 1
Global Const $FRTA_ARRAYFIELD = 2
Global Const $FRTA_STRIPLEADING = 4
Global Const $FRTA_STRIPTRAILING = 8
Global Const $FRTA_STRIPLINEEMPTY = 16
Global C... | 5,930 |
https://github.com/echristianfelts/MLAgentsStartProject/blob/master/Project/Assets/Scripts/ButtonPressAgent.cs | Github Open Source | Open Source | Apache-2.0 | null | MLAgentsStartProject | echristianfelts | C# | Code | 553 | 1,805 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Unity.MLAgents;
using Unity.MLAgents.Actuators;
using Unity.MLAgents.Sensors;
public class ButtonPressAgent : Agent
{
[SerializeField] private Transform targetTransform;
[SerializeField] private Transform avoidTransform;
/... | 4,962 |
https://github.com/MikeDevice/east/blob/master/testUtils/createEastrc.js | Github Open Source | Open Source | MIT | null | east | MikeDevice | JavaScript | Code | 98 | 314 | 'use strict';
const pathUtils = require('path');
const _ = require('underscore');
const fse = require('fs-extra');
// allow to enable config loading by env var, useful for integration
// testing with different adapters
const loadConfig = Boolean(Number(process.env.NODE_EAST_TEST_LOAD_CONFIG));
module.exports = (para... | 55,764 |
https://github.com/AkashiSN/CHUNITHM-Rate-Calculator-PHP/blob/master/common.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | CHUNITHM-Rate-Calculator-PHP | AkashiSN | PHP | Code | 2,380 | 11,552 | <?php
/*
+---------------------------------------------------+
| CHUNITHM Rate Calculator [common.php] |
+---------------------------------------------------+
| Copyright (c) 2015-2016 Akashi_SN |
+---------------------------------------------------+
| This software is released u... | 2,345 |
https://github.com/hatemhosny/jsrepl/blob/master/tools/closure-compiler/trunk/test/com/google/javascript/jscomp/ReplaceIdGeneratorsTest.java | Github Open Source | Open Source | MIT | 2,022 | jsrepl | hatemhosny | Java | Code | 585 | 1,606 | /*
* Copyright 2009 The Closure Compiler 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 required by applicable... | 46,472 |
https://github.com/MidflightDigital/stepmania/blob/master/src/Texture Font Generator/Texture Font GeneratorDlg.cpp | Github Open Source | Open Source | MIT | 2,022 | stepmania | MidflightDigital | C++ | Code | 10,138 | 53,458 | #include "stdafx.h"
#include "Texture Font Generator.h"
#include "Texture Font GeneratorDlg.h"
#include "TextureFont.h"
#include "Utils.h"
#include <vector>
#include <fstream>
#include <set>
using namespace std;
#include <math.h>
static TextureFont *g_pTextureFont = NULL;
IMPLEMENT_DYNAMIC(CTextureFontGeneratorDlg... | 25,668 |
https://github.com/h-od/Floating-Info---Android/blob/master/app/src/main/java/uk/co/alt236/floatinginfo/ui/overlay/writers/CpuTextWriter.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference | 2,017 | Floating-Info---Android | h-od | Java | Code | 190 | 496 | /*
* Copyright 2016 Alexandros Schillings
*
* 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... | 55,780 |
https://github.com/ten2net/initializr/blob/master/initializr-web/src/main/java/io/spring/initializr/web/support/CommandLineHelpGenerator.java | Github Open Source | Open Source | Apache-2.0 | null | initializr | ten2net | Java | Code | 1,238 | 3,629 | /*
* Copyright 2012-2019 the original author or 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 required by ap... | 35,248 |
https://github.com/alban/rktlet/blob/master/journal2cri/journal2cri/journal2cri.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | rktlet | alban | Go | Code | 401 | 1,058 | /*
Copyright 2016 The Kubernetes 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 required by applicable law or agreed to in writing, ... | 27,306 |
https://github.com/KingAMS/photo-screen-saver/blob/master/app/scripts/options.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,017 | photo-screen-saver | KingAMS | JavaScript | Code | 897 | 2,776 | /*
* Copyright (c) 2015-2017, Michael A. Updike All rights reserved.
* Licensed under the BSD-3-Clause
* https://opensource.org/licenses/BSD-3-Clause
* https://github.com/opus1269/photo-screen-saver/blob/master/LICENSE.md
*/
(function(document) {
'use strict';
/**
* Extension's Options page
* @namespace... | 26,470 |
https://github.com/nmardirossian/pyscf/blob/master/pyscf/dft/test/test_numint.py | Github Open Source | Open Source | BSD-2-Clause | 2,018 | pyscf | nmardirossian | Python | Code | 428 | 2,291 | #!/usr/bin/env python
import unittest
import numpy
from pyscf import gto
from pyscf import dft
from pyscf import lib
dft.numint.SWITCH_SIZE = 0
mol = gto.Mole()
mol.verbose = 0
mol.output = None
mol.atom = [('h', (0,0,i*3)) for i in range(12)]
mol.basis = 'ccpvtz'
mol.build()
mf = dft.RKS(mol)
mf.grids.atom_grid = {... | 52,681 |
https://github.com/Cobaltergeist/SFML/blob/master/examples/android/jni/Application.mk | Github Open Source | Open Source | Zlib | 2,020 | SFML | Cobaltergeist | Makefile | Code | 16 | 57 | NDK_TOOLCHAIN_VERSION := 4.8
APP_PLATFORM := android-17
APP_STL := c++_shared
APP_ABI := armeabi
APP_MODULES := sfml-activity sfml-example
| 21,198 |
https://github.com/ungerik/go-dry/blob/master/os_test.go | Github Open Source | Open Source | MIT | 2,023 | go-dry | ungerik | Go | Code | 49 | 188 | package dry
import "testing"
func TestEnvironMap(t *testing.T) {
ret := environToMap([]string{
"a=b",
"b=c=d",
})
if len(ret) != 2 {
t.Fail()
}
if ret["a"] != "b" {
t.Fail()
}
if ret["b"] != "c=d" {
t.Fail()
}
}
func TestGetenvDefault(t *testing.T) {
if GetenvDefault("GO_DRY_BOGUS_ENVIRONMENT_V... | 20,173 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.