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/rakitzis/rc/blob/master/exec.c | Github Open Source | Open Source | Zlib | 2,023 | rc | rakitzis | C | Code | 499 | 1,305 | /* exec.c */
#include "rc.h"
#include <errno.h>
#include <signal.h>
#include <termios.h>
#include <unistd.h>
#include "wait.h"
#if HASH_BANG
#else
#include "execve.c"
#endif
/*
Takes an argument list and does the appropriate thing (calls a
builtin, calls a function, etc.)
*/
extern void exec(List *s, bool p... | 49,231 |
https://github.com/KyleBanks/goggles/blob/master/server/assets/assets.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | goggles | KyleBanks | Go | Code | 19 | 58 | package assets
import (
"github.com/elazarl/go-bindata-assetfs"
)
// FS returns the assets FileSystem.
func FS() *assetfs.AssetFS {
return assetFS()
}
| 6,481 |
https://github.com/IktiarSaputra/inventory/blob/master/app/Http/Controllers/ProductInController.php | Github Open Source | Open Source | MIT | null | inventory | IktiarSaputra | PHP | Code | 410 | 1,485 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\ProductIn;
use App\Models\Product;
use App\Models\Expense;
use App\Models\Suplier;
class ProductInController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/... | 8,417 |
https://github.com/zhkmxx9302013/SoftwarePilot/blob/master/externalModels/python/TimeCaptured/timeCaptured.py | Github Open Source | Open Source | MIT | 2,019 | SoftwarePilot | zhkmxx9302013 | Python | Code | 19 | 92 | import sys
from capture_time import *
path_name = sys.argv[1]
data = get_exif(path_name)
time = data.split(":")
secs = int(time[0])*3600+int(time[1])*60+int(time[2])
print("time="+str(secs/(24.0*3600)))
| 22,042 |
https://github.com/nickgros-sage/Synapse-Repository-Services/blob/master/services/repository-managers/src/test/java/org/sagebionetworks/repo/manager/oauth/ClaimsWithAuthTimeTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Synapse-Repository-Services | nickgros-sage | Java | Code | 50 | 186 | package org.sagebionetworks.repo.manager.oauth;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Date;
import org.junit.jupiter.api.Test;
class ClaimsWithAuthTimeTest {
@Test
void testRoundTrip() {
Date authDate = new Date();
ClaimsWithAuthTime claims = ClaimsWithAuthTime.newClai... | 37,306 |
https://github.com/rphuang/riot/blob/master/Riot.Pi/client/GpioPinClient.cs | Github Open Source | Open Source | MIT | null | riot | rphuang | C# | Code | 172 | 460 | using HttpLib;
using Newtonsoft.Json;
namespace Riot.Pi.Client
{
/// <summary>
/// implements Gpio Pin client node with http protocol
/// </summary>
public class GpioPinClient : IotClientNode
{
/// <summary>
/// data for gpio pin
/// </summary>
public GpioPinData Pi... | 28,431 |
https://github.com/wahello/openshift-installer/blob/master/terraform/alicloud/vendor/github.com/aliyun/terraform-provider-alicloud/alicloud/data_source_alicloud_adb_db_clusters.go | Github Open Source | Open Source | Apache-2.0 | null | openshift-installer | wahello | Go | Code | 987 | 4,402 | package alicloud
import (
"fmt"
"regexp"
"strings"
"github.com/PaesslerAG/jsonpath"
util "github.com/alibabacloud-go/tea-utils/service"
"github.com/aliyun/terraform-provider-alicloud/alicloud/connectivity"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/hel... | 4,145 |
https://github.com/gabriel-rc-201/G-Trello-API/blob/master/src/services/CreateCardService.ts | Github Open Source | Open Source | MIT | null | G-Trello-API | gabriel-rc-201 | TypeScript | Code | 102 | 287 | import { getCustomRepository } from "typeorm";
import { CardsRepositories } from "../repositories/CardsRepositories";
import { ListsRepositories } from "../repositories/ListsRepositories";
class CreateCardService {
async execute(name: string, description: string, ownerList: string) {
const cardsRepositories = ge... | 38,950 |
https://github.com/TencentCloud/tencentcloud-sdk-dotnet-intl-en/blob/master/TencentCloud/Sqlserver/V20180328/Models/BackupFile.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | tencentcloud-sdk-dotnet-intl-en | TencentCloud | C# | Code | 307 | 734 | /*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
*
... | 6,182 |
https://github.com/LinfocitoSolution/Sistema_de_convocatorias/blob/master/app/Tematica.php | Github Open Source | Open Source | MIT | null | Sistema_de_convocatorias | LinfocitoSolution | PHP | Code | 39 | 171 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Tematica extends Model
{
public $table='tematicas';
protected $fillable = [
'id',
'name',
];
public function requerimientos()
{
return $this->belongsToMany(Requerimiento::class)->withTimestamps();
}... | 25,580 |
https://github.com/hushilin/iOS1351Headers/blob/master/Applications/Feedback Assistant iOS/FBAFilePredicateCondition.h | Github Open Source | Open Source | MIT | 2,021 | iOS1351Headers | hushilin | Objective-C | Code | 64 | 218 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "FBAManagedFeedbackObject.h"
@class NSString;
@interface FBAFilePredicateCondition : FBAManagedFeedbackObject
{
}
+ (id)entityName; // I... | 47,255 |
https://github.com/nbrabant/laraadmin/blob/master/src/Installs/resources/views/emails/send_login_cred.blade.php | Github Open Source | Open Source | MIT | null | laraadmin | nbrabant | PHP | Code | 27 | 166 | @lang('emails.dear_name', ['name' => $user->name]),<br><br>
@lang('emails.new_account.registered_on', ['url' => url('/')]).<br><br>
@lang('emails.new_account.credentials'):<br><br>
@lang('emails.name'): {{ $user->email }}<br>
@lang('emails.password'): {{ $password }}<br><br>
@lang('emails.access_link', ['url' => ur... | 19,292 |
https://github.com/dstweihao/dst-android-example/blob/master/app/src/main/java/com/jweihao/jdemo/ui/activity/animation/ValueAnimatorActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | dst-android-example | dstweihao | Java | Code | 74 | 372 | package com.jweihao.jdemo.ui.activity.animation;
import android.animation.ValueAnimator;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.ImageView;
import com.wh.customcontrol.R;
import butterknife.BindView;
import butterknife.ButterKnife... | 24,761 |
https://github.com/bluedisk/SunlessSeaKo/blob/master/sunless_web/migrations/0014_auto_20180519_0153.py | Github Open Source | Open Source | MIT | 2,020 | SunlessSeaKo | bluedisk | Python | Code | 85 | 469 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-05-18 16:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sunless_web', '0013_auto_20180519_0152'),
]
operations = [
migrations.AlterF... | 44,062 |
https://github.com/jakutis/orodarius/blob/master/test/unit/directives/ng-bind-keys.spec.js | Github Open Source | Open Source | MIT | 2,017 | orodarius | jakutis | JavaScript | Code | 117 | 408 | 'use strict';
describe('Directive: ngBindKeys', function() {
var compile, $document;
var parentScopeMock = {
options: {
37: _.noop, // left
38: _.noop, // up
39: _.noop, // right
40: _.noop, // down
106: _.noop, // j
107: _.noop, // k
32: _.noop, // space
16: _.... | 2,334 |
https://github.com/almeidaalijessica/sql/blob/master/sql.txt | Github Open Source | Open Source | MIT | 2,021 | sql | almeidaalijessica | SQL | Code | 54 | 108 | create database escola_futebol
create table matricula(
id bigint not null,
nome varchar not null,
nome_pai varchar not null,
nome_mae varchar not null,
endereco bigint not null,
primary key (id)
);
create table professor(
id bigint ,
nome char,
primary key (id)
);
create table aluno(
id bigint,
nome char ,
primary key... | 9,093 |
https://github.com/erlage/tard/blob/master/packages/rad/lib/src/core/framework.dart | Github Open Source | Open Source | BSD-3-Clause | null | tard | erlage | Dart | Code | 328 | 1,294 | import 'package:rad/src/core/common/enums.dart';
import 'package:rad/src/core/common/objects/build_context.dart';
import 'package:rad/src/core/renderer/renderer.dart';
import 'package:rad/src/core/run_app.dart';
import 'package:rad/src/core/services/scheduler/abstract.dart';
import 'package:rad/src/core/services/schedu... | 19,605 |
https://github.com/scoreyou/UXMPDFKit/blob/master/Pod/Classes/Annotations/PDFAnnotation.swift | Github Open Source | Open Source | MIT | 2,016 | UXMPDFKit | scoreyou | Swift | Code | 42 | 126 | //
// PDFAnnotation.swift
// Pods
//
// Created by Chris Anderson on 3/7/16.
//
//
import UIKit
protocol PDFAnnotation {
func mutableView() -> UIView
func touchStarted(_ touch: UITouch, point:CGPoint)
func touchMoved(_ touch:UITouch, point:CGPoint)
func touchEnded(_ touch:UITouch, point:CGPoin... | 44,239 |
https://github.com/http-github-com-alisscco/codeql-action/blob/master/node_modules/github-linguist/dist/index.d.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | codeql-action | http-github-com-alisscco | TypeScript | Code | 30 | 61 | import { LocResult } from './directory';
export { LocDir, LocDirOptions } from './directory';
export { LocFile, LineInfo } from './file';
declare const loc: (fileOrDir: string) => Promise<LocResult>;
export default loc;
| 24,974 |
https://github.com/m2sd/laravel-nuxt/blob/master/src/Facades/Nuxt.php | Github Open Source | Open Source | MIT | 2,020 | laravel-nuxt | m2sd | PHP | Code | 25 | 126 | <?php
namespace M2S\LaravelNuxt\Facades;
use Illuminate\Support\Facades\Route;
use M2S\LaravelNuxt\Http\Controllers\NuxtController;
class Nuxt
{
public static function route(string $path)
{
return Route::get(
'/'.trim(config('nuxt.prefix'), '/').'/'.trim($path, '/'),
'\\'.Nuxt... | 32,229 |
https://github.com/ofofs/jca/blob/master/jca-api/src/main/java/com/github/ofofs/jca/model/JcaCommon.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jca | ofofs | Java | Code | 691 | 2,612 | package com.github.ofofs.jca.model;
import com.github.ofofs.jca.constants.JcaConstants;
import com.github.ofofs.jca.util.Sequence;
import com.sun.source.util.Trees;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.code.TypeTag;
import com.sun.tools.javac.processing.JavacProcessingEnvironment;
import ... | 35,557 |
https://github.com/secondzc/zcy_sys/blob/master/syslink/src/main/resources/web/src/views/review/msgComponent.vue | Github Open Source | Open Source | MIT | 2,018 | zcy_sys | secondzc | Vue | Code | 61 | 296 | <template>
<section>
<el-badge :value="msgNum" class="item">
<el-button size="small" @click="detail(scope.$index,scope.row)">通知</el-button>
</el-badge>
</section>
</template>
<script>
export default{
data(){
return {
msgNum: 0,
}
},
methods: {
loopGetMsg(){
... | 31,459 |
https://github.com/ntnlabs/AltList/blob/master/PSSpecifier+AltList.h | Github Open Source | Open Source | MIT | 2,022 | AltList | ntnlabs | C | Code | 12 | 66 | @interface PSSpecifier (AltList)
- (BOOL)atl_hasValidGetter;
- (id)atl_performGetter;
- (BOOL)atl_hasValidSetter;
- (void)atl_performSetterWithValue:(id)value;
@end | 46,161 |
https://github.com/eerimoq/monolinux-example-project/blob/master/3pp/linux/arch/s390/boot/boot.h | Github Open Source | Open Source | MIT, Linux-syscall-note, GPL-2.0-only | 2,020 | monolinux-example-project | eerimoq | C | Code | 47 | 197 | /* SPDX-License-Identifier: GPL-2.0 */
#ifndef BOOT_BOOT_H
#define BOOT_BOOT_H
void startup_kernel(void);
void detect_memory(void);
void store_ipl_parmblock(void);
void setup_boot_command_line(void);
void parse_boot_command_line(void);
void setup_memory_end(void);
void verify_facilities(void);
void print_missing_facil... | 2,625 |
https://github.com/vishaleyes/SilkInventoryAPI/blob/master/framework/i18n/data/ms.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | SilkInventoryAPI | vishaleyes | PHP | Code | 2,223 | 7,148 | <?php
/**
* Locale data for 'ms'.
*
* This file is automatically generated by yiic cldr command.
*
* Copyright © 1991-2007 Unicode, Inc. All rights reserved.
* Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
*
* Copyright © 2008-2011 Yii Software LLC (http://www.yiiframework.com/lic... | 16,871 |
https://github.com/JimmyLaurent/lycos/blob/master/src/scraper/scraper.js | Github Open Source | Open Source | MIT | 2,021 | lycos | JimmyLaurent | JavaScript | Code | 968 | 2,884 | const { parseDOM } = require('./htmlparser2');
const { selectAllGenerator, selectOne, is } = require('./css-select');
const serialize = require('./dom-serializer');
const { getLink, getLinks, getLinksGenerator } = require('./links');
const parseFormat = require('./parseFormat');
const rselector = /^([^@]*)(?:@\s*([\w-... | 20,741 |
https://github.com/SByteDev/Net.Xamarin.Plugins.WebBrowser/blob/master/SByteDev.Xamarin.Plugins.WebBrowser/Shared/WebBrowserPlugin.cs | Github Open Source | Open Source | MIT | 2,020 | Net.Xamarin.Plugins.WebBrowser | SByteDev | C# | Code | 54 | 170 | using SByteDev.Xamarin.Plugins.Base;
// ReSharper disable once CheckNamespace
namespace SByteDev.Xamarin.Plugins.WebBrowser
{
public static class WebBrowserPlugin
{
private static readonly Plugin<IWebBrowser> Plugin;
public static bool IsSupported => Plugin.IsSupported;
public static... | 47,516 |
https://github.com/brolund/bumblebee/blob/master/bumblebee/src/test/java/com/agical/bumblebee/agiledox/TestDeCamelCasingFormatter.java | Github Open Source | Open Source | Apache-2.0 | 2,010 | bumblebee | brolund | Java | Code | 45 | 149 | package com.agical.bumblebee.agiledox;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class TestDeCamelCasingFormatter {
private Formatter formatter = new DeCamelCasingFormatter();
@Test
public void formatClass() throws Exception {
assertEquals("Test de camel casing f... | 50,351 |
https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later, CC0-1.0, BSD-3-Clause, UPL-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause | 2,023 | azure-sdk-for-java | Azure | Java | Code | 77 | 383 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.generated;
import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest;
/** Samples for Volumes Reestab... | 14,250 |
https://github.com/stacy89/Student-Management-Tool/blob/master/config/initializers/datadog-tracer.rb | Github Open Source | Open Source | MIT | 2,019 | Student-Management-Tool | stacy89 | Ruby | Code | 10 | 50 | # config/initializers/datadog-tracer.rb
Datadog.configure do |c|
c.use :rails, service_name: 'my-rails-app'
end | 44,778 |
https://github.com/rubensworks/AsyncIterator/blob/master/test/setup.js | Github Open Source | Open Source | MIT | 2,021 | AsyncIterator | rubensworks | JavaScript | Code | 69 | 178 | // Set up the Chai assertion library
var chai = require('chai');
global.sinon = require('sinon');
global.should = chai.should();
global.expect = chai.expect;
chai.use(require('sinon-chai'));
// Captures the number of times an event has been emitted
global.captureEvents = function (item) {
var counts = item._eventCo... | 49,280 |
https://github.com/yandex/yandex-taxi-testsuite/blob/master/tools/release.sh | Github Open Source | Open Source | MIT | 2,023 | yandex-taxi-testsuite | yandex | Shell | Code | 110 | 261 | #!/bin/sh
set -ex
die() {
echo $* >&2
exit 1
}
if [ "x$(git rev-parse --abbrev-ref HEAD)" != "xdevelop" ]; then
die "Error: Must be on develop branch"
fi
OLD_PACKAGE_VERSION=$(awk '/^version = /{print $3}' setup.cfg)
$EDITOR setup.cfg || die "Not edited"
PACKAGE_VERSION=$(awk '/^version = /{print $3}'... | 37,028 |
https://github.com/Mhammed998/fci-assistant/blob/master/admin/layouts/js/custom.js | Github Open Source | Open Source | MIT | 2,021 | fci-assistant | Mhammed998 | JavaScript | Code | 20 | 47 | $(function () {
'use strict';
// switch between Hide & Show Side Navbar With Edit Body Padding !
//
});
| 53,839 |
https://github.com/triniti/app-js/blob/master/tests/App.test.js | Github Open Source | Open Source | Apache-2.0 | null | app-js | triniti | JavaScript | Code | 468 | 1,608 | /* globals global */
import test from 'tape';
import { serviceIds as pbjxServiceIds } from '@gdbots/pbjx/constants';
import { actionTypes } from '../src/constants';
import { App, getInstance, hasInstance, setInstance } from '../src';
import TestPlugin from './fixtures/TestPlugin';
/**
* @returns {App}
*/
const creat... | 52,762 |
https://github.com/xiguawudongmian/easy-cloud/blob/master/easy-cloud-core-parent/easy-cloud-core-jdbc/src/main/java/com/easy/cloud/core/jdbc/audit/aspect/EcAuditAspect.java | Github Open Source | Open Source | MIT | 2,019 | easy-cloud | xiguawudongmian | Java | Code | 83 | 486 | package com.easy.cloud.core.jdbc.audit.aspect;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.a... | 38,958 |
https://github.com/hushilin/iOS1351Headers/blob/master/System/Library/Frameworks/Messages.framework/_MSExtensionGlobalState.h | Github Open Source | Open Source | MIT | 2,021 | iOS1351Headers | hushilin | Objective-C | Code | 75 | 257 | /*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:37:13 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/Frameworks/Messages.framework... | 17,453 |
https://github.com/isabella232/canvas-node-quickstart/blob/master/app/routes/api.js | Github Open Source | Open Source | MIT | 2,016 | canvas-node-quickstart | isabella232 | JavaScript | Code | 174 | 595 | 'use strict';
var express = require('express');
var bodyParser = require('body-parser');
var authService = require('../services/auth');
var url = require('url');
var responder = require('../services/responder');
module.exports = function (model) {
var router = express.Router();
router.use(bodyParser.json());
... | 36,697 |
https://github.com/digideskio/turbo-octo-goggles/blob/master/src/components/ArticlePreview.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | turbo-octo-goggles | digideskio | JavaScript | Code | 47 | 184 | 'use strict';
const React = require('react');
const ArticlePreview = props => {
return (
<div className="article-preview">
<a className="preview-link">
<h1>{props.article.title}</h1>
<p>{props.article.description}</p>
<span>Read more...</span>
<ul className="tag-list">
... | 34,033 |
https://github.com/mayapeneva/FamousQuotes/blob/master/FamousQuotes.App/Extensions/QuoteSeedDto.cs | Github Open Source | Open Source | MIT | null | FamousQuotes | mayapeneva | C# | Code | 23 | 58 | namespace FamousQuotes.App.Extensions
{
internal class QuoteSeedDto
{
public string QuoteText { get; set; }
public string QuoteAuthor { get; set; }
}
}
| 13,864 |
https://github.com/rspier/insteon/blob/master/i2device.go | Github Open Source | Open Source | Apache-2.0 | null | insteon | rspier | Go | Code | 397 | 819 | // Copyright 2018 Andrew Bates
//
// 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 wri... | 44,063 |
https://github.com/jfdm/idris-config/blob/master/Config/JSON.idr | Github Open Source | Open Source | BSD-3-Clause | 2,020 | idris-config | jfdm | null | Spoken | 415 | 886 | -- ---------------------------------------------------------------- [ JSON.idr ]
-- Description : Parse JSON files.
-- This code was borrowed and improved from lightyear examples.
--
-- Copyright : (c) Jan de Muijnck-Hughes
-- License : see LICENSE
-- ------------------------------------------------... | 24,854 |
https://github.com/Ritvikjain/JavaQuiz/blob/master/quiz/src/quiz/ViewUpdateAdmin.java | Github Open Source | Open Source | MIT | 2,017 | JavaQuiz | Ritvikjain | Java | Code | 375 | 2,489 | package quiz;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Image;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import j... | 32,769 |
https://github.com/gala377/LyricerSpotify/blob/master/oauth/request_test.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | LyricerSpotify | gala377 | Go | Code | 153 | 571 | package oauth
import (
"testing"
)
func TestRequestCreation(t *testing.T) {
// todo make it 4 different tests
// as well as test errors
// for now it's sufficient
r, err := NewAuthRequest(
"http://localhost:9090",
"someID",
"http://localhost:9090/redirect",
[]string{"scope1", "scope2"})
if err != nil {
... | 46,646 |
https://github.com/foreverzmy/zent/blob/master/packages/zent/src/form/form-components/FormComponentField.js | Github Open Source | Open Source | MIT | null | zent | foreverzmy | JavaScript | Code | 334 | 898 | import React, { Component } from 'react';
import CheckboxField from './CheckboxField';
import CheckboxGroupField from './CheckboxGroupField';
import ColorPickerField from './ColorPickerField';
import DatePickerField from './DatePickerField';
import WeekPickerField from './WeekPickerField';
import MonthPickerField from... | 37,386 |
https://github.com/MannyKayy/chainer-disentanglement-lib/blob/master/net/jointvae.py | Github Open Source | Open Source | MIT | 2,019 | chainer-disentanglement-lib | MannyKayy | Python | Code | 1,081 | 3,829 | import numpy as np
import chainer
import chainer.links as L
import chainer.functions as F
from chainer.functions.loss.vae import gaussian_kl_divergence
class JointVAE(chainer.Chain):
"""JointVAE model.
Based on Equation (7) of "Learning Disentangled Joint Continuous
and Discrete Representations"
(htt... | 51,569 |
https://github.com/binlee1990/Entitas-Java/blob/master/codegenerator/core/src/main/java/ilargia/entitas/codeGeneration/PackageResolver.java | Github Open Source | Open Source | MIT | 2,017 | Entitas-Java | binlee1990 | Java | Code | 33 | 162 | package ilargia.entitas.codeGeneration;
import ilargia.entitas.codeGeneration.utils.CodeFinder;
import java.util.List;
import java.util.stream.Collectors;
public class PackageResolver {
List<String> _basePaths;
public PackageResolver(List<String> basePaths) {
_basePaths = basePaths;
}
pub... | 37,382 |
https://github.com/yelirekim/thrift/blob/master/lib/py/src/server/TProcessPoolServer.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | thrift | yelirekim | Python | Code | 398 | 979 | #
# 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 u... | 1,614 |
https://github.com/edoandcode/three-type-materials/blob/master/src/js/components/three-type-materials/parts/normalType.js | Github Open Source | Open Source | MIT | null | three-type-materials | edoandcode | JavaScript | Code | 337 | 1,131 | /**
* @author Edoardo Conti <edoardoconti.com>
*
* */
import * as THREE from 'three';
import Type from './Type';
import { MyShaderLib } from './_MyShaderLib';
export default class NormalType extends Type {
constructor(options){
super(options);
this.uniforms = {
...this.un... | 20,682 |
https://github.com/foxyfoxza/ringcentral-csharp/blob/master/RingCentral.Test.Mock/AuthenticationTests.cs | Github Open Source | Open Source | MIT | 2,019 | ringcentral-csharp | foxyfoxza | C# | Code | 423 | 1,975 | using Newtonsoft.Json.Linq;
using NUnit.Framework;
using RingCentral.Http;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
namespace RingCentral.Test
{
public partial class MockHttpClient
{
privat... | 1,725 |
https://github.com/pwaykole/ES6-Concepts-Mini-App/blob/master/js/dom.js | Github Open Source | Open Source | MIT | 2,016 | ES6-Concepts-Mini-App | pwaykole | JavaScript | Code | 30 | 86 | export const getWeather = document.querySelector('#submit');
export const getCityName = document.querySelector('#city_name');
export const weatherCard = document.querySelector('#weather');
export const weatherCardTitle = document.querySelector('#card-title');
export const weatherDescription = document.querySelector('#d... | 31,696 |
https://github.com/bububa/opentaobao/blob/master/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIResponse.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | opentaobao | bububa | Go | Code | 54 | 350 | package fenxiao
import (
"encoding/xml"
"github.com/bububa/opentaobao/model"
)
// TaobaoFenxiaoProductImportFromAuctionAPIResponse 导入商品生成产品 API返回值
// taobao.fenxiao.product.import.from.auction
//
// 供应商选择关联店铺的前台宝贝,导入生成产品
type TaobaoFenxiaoProductImportFromAuctionAPIResponse struct {
model.CommonResponse
TaobaoFe... | 25,207 |
https://github.com/MahametH/eltrade-fiscal-device-protocol/blob/master/EltradeProtocol/EltradeProtocol/Requests/SetDateTime.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | eltrade-fiscal-device-protocol | MahametH | C# | Code | 28 | 92 | using System;
namespace EltradeProtocol.Requests
{
public class SetDateTime : EltradeFiscalDeviceRequestPackage
{
public SetDateTime() : this(DateTime.Now) { }
public SetDateTime(DateTime dateTime) : base(0x3d, dateTime.ToString("dd-MM-y HH:mm:ss")) { }
}
}
| 5,577 |
https://github.com/yojindo/programming-univbasics-4-basic-hashes-lab-nyc01-seng-ft-060120/blob/master/lib/intro_to_ruby_hashes_lab.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | programming-univbasics-4-basic-hashes-lab-nyc01-seng-ft-060120 | yojindo | Ruby | Code | 43 | 96 | def new_hash
new = {}
end
def my_hash
new = {name:'Jake'}
end
def pioneer
# return a hash with a key of :name and a corresponding value of 'Grace Hopper'
hash = {name: 'Grace Hopper'}
end
def id_hash_generator(number)
hash = {id: number}
end | 27,304 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/p/pkcs11js/src/main/scala/typingsSlinky/pkcs11js/Pkcs11Js/MechanismInfo.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 105 | 397 | package typingsSlinky.pkcs11js.Pkcs11Js
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait MechanismInfo extends StObject {
var flags: Double = js.native
... | 51,436 |
https://github.com/LianPo/soloshop/blob/master/Application/Home/Controller/CenterController.class.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | soloshop | LianPo | PHP | Code | 326 | 2,271 | <?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 yershop All rights reserved.
// +--------------------------------------------------------------... | 43,737 |
https://github.com/rickydigime/digime-sdk-android/blob/master/sdk/src/main/java/me/digi/sdk/entities/DMEDataRequest.kt | Github Open Source | Open Source | MIT, Apache-2.0 | 2,019 | digime-sdk-android | rickydigime | Kotlin | Code | 12 | 43 | package me.digi.sdk.entities
interface DMEDataRequest {
var timeRanges: List<DMETimeRange>
var context: String
} | 22,899 |
https://github.com/allegro/hermes/blob/master/hermes-api/src/main/java/pl/allegro/tech/hermes/api/endpoints/GroupEndpoint.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | hermes | allegro | Java | Code | 66 | 381 | package pl.allegro.tech.hermes.api.endpoints;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.DELETE;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.Response;
import p... | 24,511 |
https://github.com/CrackerCat/iWeChat/blob/master/header6.6.1/WCPaySelectArriveTimeItem.h | Github Open Source | Open Source | MIT | 2,022 | iWeChat | CrackerCat | C | Code | 114 | 525 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "WCBaseInfoItem.h"
#import "WCPaySelectArriveTimeViewControllerDelegate-Protocol.h"
@class EnterTimeItem, MMUIViewController,... | 51,389 |
https://github.com/Yukaii/kabegami-new-page/blob/master/packages/default-sets/__tests__/defaultSets.spec.ts | Github Open Source | Open Source | MIT | 2,022 | kabegami-new-page | Yukaii | TypeScript | Code | 19 | 59 | import { firstLoadRandomWallpaper } from '../src'
describe('Test defaultSets', function () {
it('#firstLoadRandomWallpaper', function () {
expect(typeof firstLoadRandomWallpaper()).toBe('string')
})
})
| 33,569 |
https://github.com/ghostsf/TailLog-Source/blob/master/src/routers/NoMatch/index.scss | Github Open Source | Open Source | MIT | 2,022 | TailLog-Source | ghostsf | SCSS | Code | 60 | 215 | #react-content {
height: 100%;
background-color: #fff;
}
#page-404 {
width: 100%;
height: 100%;
background: url(https://os.alipayobjects.com/rmsportal/NOAjOBbnYCrNzrW.jpg) no-repeat fixed 50%;
background-size: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 100;
}
#page-404... | 28,779 |
https://github.com/manishSRM/solvedProblems/blob/master/MyFiles/KINGCON.cpp | Github Open Source | Open Source | Apache-2.0 | null | solvedProblems | manishSRM | C++ | Code | 243 | 769 | #include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
#include <vector>
#include <limits.h>
#include <stack>
#include <queue>
#include <iomanip>
#include <list>
#include <set>
#include <deque>
#include <bitset>
#include <map>
#include <assert.h>
#include <utility>
#include <string.h>
#include <cst... | 42,284 |
https://github.com/Q115/Goalie/blob/master/app/src/main/java/com/github/q115/goalie_android/ui/popular_goal/PopularGoalFragmentRecycler.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | Goalie | Q115 | Java | Code | 260 | 935 | package com.github.q115.goalie_android.ui.popular_goal;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.github.q115.goalie_android.R;
import... | 30,336 |
https://github.com/sathapa/medicare/blob/master/.svn/pristine/9e/9e57f202b3b62a976257d1f44a991c1a1e870352.svn-base | Github Open Source | Open Source | Apache-2.0 | 2,017 | medicare | sathapa | PHP | Code | 156 | 872 | <?php
$this->breadcrumbs=array(
'Patients',
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
$('.search-form').slideToggle('fast');
return false;
});
$('.search-form form').submit(function(){
$.fn.yiiGridView.update('patient-grid', {
... | 43,430 |
https://github.com/ksugio/MPImage/blob/master/MPLn23d/stat.c | Github Open Source | Open Source | MIT | 2,019 | MPImage | ksugio | C | Code | 84 | 239 | #include "MPLn23d.h"
int MP_StatCalc(int nclass, unsigned int freq[], double rfreq[], double *ave, double *var)
{
int i;
int total;
total = 0;
for (i = 0; i < nclass; i++) {
total += freq[i];
}
for (i = 0; i < nclass; i++) {
rfreq[i] = (double)freq[i]/(double)total;
}
*ave = 0.0;
for (i = 0; i < nclass; ... | 54,167 |
https://github.com/lenfestlab/monorepo/blob/master/nabeletter/web/app/javascript/components/admin/editions/shared/EditionBodyInput/EmailBodyInput/sections/images/Field.ts | Github Open Source | Open Source | MIT | 2,021 | monorepo | lenfestlab | TypeScript | Code | 283 | 837 | import { h } from "@cycle/react"
import { div, img, table, tbody, td, tr } from "@cycle/react-dom"
import { important, percent, px } from "csx"
import { FunctionComponent } from "react"
import { media } from "typestyle"
import { LayoutTable } from "components/table"
import { allEmpty, chunk, either, isEmpty } from "fp... | 38,841 |
https://github.com/theCapypara/riptide-lib/blob/master/riptide/config/document/project.py | Github Open Source | Open Source | MIT | 2,019 | riptide-lib | theCapypara | Python | Code | 447 | 1,149 | import os
from typing import List, TYPE_CHECKING
from schema import Schema, Optional
from configcrunch import YamlConfigDocument, DocReference, ConfigcrunchError, variable_helper, REMOVE
from riptide.config.document.app import App
HEADER = 'project'
if TYPE_CHECKING:
from riptide.config.document.config import ... | 15,928 |
https://github.com/jleightcap/chip8tui/blob/master/src/test/rom_test.rs | Github Open Source | Open Source | MIT | null | chip8tui | jleightcap | Rust | Code | 25 | 124 | use std::io::ErrorKind;
use super::*;
#[test]
fn test_new_prog() {
let r = ROM::new_prog(&[0xde, 0xad]).unwrap();
assert_eq!(&r.rom[0..2], [0xde, 0xad]);
let r = ROM::new_prog(&[0x00; RAM_SIZE]).map_err(|e| e.kind());
assert_eq!(r, Err(ErrorKind::InvalidData));
}
| 39,225 |
https://github.com/pommedeterresautee/unine/blob/master/man/portuguese_stoplist.Rd | Github Open Source | Open Source | MIT | 2,019 | unine | pommedeterresautee | R | Code | 43 | 163 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{portuguese_stoplist}
\alias{portuguese_stoplist}
\title{Portuguese stop list}
\format{\link{character} containing the list of words}
\source{
\href{http://members.unine.ch/jacques.savoy/clef/}{Unine website}
}
\usa... | 7,407 |
https://github.com/mwilsonUCSD/multimodal_organoids/blob/master/helper functions 221128/f_plot_PLV_vs_freq_221126.m | Github Open Source | Open Source | MIT | 2,022 | multimodal_organoids | mwilsonUCSD | MATLAB | Code | 818 | 2,472 | function [plv_light_final, plv_dark_final, pval, is_significant] = f_plot_PLV_vs_freq(phase_specgram_light, phase_specgram_dark, spikes_light, spikes_dark, ind_light_all, ind_dark_all, t_amplifier, nBoots, nFreq, win, f, mapping, good_channels, params, nickname)
% Function to calculate and plot the phase locking value ... | 33,204 |
https://github.com/taok-monitor/taok-collector-impl/blob/master/src/main/java/br/com/taok/collector/Collect.java | Github Open Source | Open Source | MIT | null | taok-collector-impl | taok-monitor | Java | Code | 100 | 387 | package br.com.taok.collector;
import java.time.LocalDate;
import java.util.List;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;
import br.com.taok.collector.api.Collector;
import br.com.taok.collector.api.model.standard.CollectedLaunch;
import br.com.taok.co... | 15,062 |
https://github.com/yaozd/com.yzd.hazelcast-lean/blob/master/com.yzd.hazelcast-lean/03-hazelcast-in-ring-queue/src/main/java/com/yzd/queue/AbstractRingQueue.java | Github Open Source | Open Source | MIT | null | com.yzd.hazelcast-lean | yaozd | Java | Code | 126 | 364 | package com.yzd.queue;
import lombok.Getter;
/**
* 抽象环形队列
*
* @Author: yaozh
* @Description:
*/
public abstract class AbstractRingQueue {
public static final int ONE_HOUR = 3600;
@Getter
protected StepSlot[] slot = new StepSlot[3600];
public AbstractRingQueue() {
for (int i = 0; i < ONE... | 24,682 |
https://github.com/IgorChugurov/gmallupdate/blob/master/public/assets/scrollerjs-development/test/unit/NeededMocks.js | Github Open Source | Open Source | MIT | 2,021 | gmallupdate | IgorChugurov | JavaScript | Code | 85 | 521 | Function.RegisterNamespace("Test.Scroller");
[Import("/Users/ndandekar/scroller/test/unit/Stubs.Dom.js")]
Test.Scroller.NeededMocks={
getWindowMock:function(){
return Mocks.GetMock(Object.Global(),"window",
Stubs.GetObject({
/* methods */
getComputedStyle:function(element){
return element.CSSStyleDe... | 29,976 |
https://github.com/babakjahangiri/Tarrahaan/blob/master/Tarrahaan/Areas/Admin/AdminAreaRegistration.cs | Github Open Source | Open Source | Unlicense | null | Tarrahaan | babakjahangiri | C# | Code | 92 | 303 | using System.Web.Mvc;
using Glimpse.AspNet.Tab;
namespace Tarrahaan.Areas.Admin
{
public class AdminAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "WebAdmin";
}
}
public override void ... | 560 |
https://github.com/mrlottery/mr-lottery/blob/master/app/containers/LoginPage/divBackground.js | Github Open Source | Open Source | MIT | null | mr-lottery | mrlottery | JavaScript | Code | 14 | 46 | import styled from 'styled-components';
const DIV = styled.div`
background-color:#000;
height: 100vh;`;
export default DIV;
| 42,193 |
https://github.com/kubeform/provider-azurerm-api/blob/master/client/clientset/versioned/typed/monitor/v1alpha1/fake/fake_monitor_client.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | provider-azurerm-api | kubeform | Go | Code | 272 | 922 | /*
Copyright AppsCode Inc. and Contributors
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... | 9,793 |
https://github.com/imedakrouti/system/blob/master/app/Modules/staff/database/migrations/2020_11_06_105032_replace_view_remove_lates.php | Github Open Source | Open Source | MIT | 2,021 | system | imedakrouti | PHP | Code | 768 | 3,177 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ReplaceViewRemoveLates extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::connection('mysql')->st... | 37,761 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/algoliasearch-helper/src/main/scala/typingsSlinky/algoliasearchHelper/mod/SearchForFacetValues.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 210 | 760 | package typingsSlinky.algoliasearchHelper.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object SearchForFacetValues {
@js.native
trait Hit extends StObject {
... | 14,077 |
https://github.com/Bhaskers-Blu-Org2/WinObjC/blob/master/tests/unittests/Foundation/ReferenceFoundation/TestNSLocale.mm | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer, Swift-exception, Apache-2.0 | 2,020 | WinObjC | Bhaskers-Blu-Org2 | Objective-C++ | Code | 210 | 862 | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 8,086 |
https://github.com/amsnyder/resource-watch/blob/master/layout/app/partners/component.js | Github Open Source | Open Source | MIT | null | resource-watch | amsnyder | JavaScript | Code | 517 | 1,695 | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'routes';
// components
import Layout from 'layout/layout/layout-app';
import PartnerBlock from 'components/app/common/Partners/PartnerBlock';
import Banner from 'components/app/common/Banner';
import Breadcrumbs fro... | 9,319 |
https://github.com/majaalin/gatenhielmska/blob/master/resources/styles/components/_home.scss | Github Open Source | Open Source | MIT | 2,020 | gatenhielmska | majaalin | SCSS | Code | 294 | 1,083 |
.home {
margin: 0px;
padding: 0px;
background-color: $color-dark;
width: 100%;
.home__wrapper {
width: 100%;
box-sizing: border-box;
.home__first-view {
position: relative;
width: 100%;
height: 100vh;
margin-bottom: 1px;
.home__hero-img {
... | 40,452 |
https://github.com/kozlyuk/appart/blob/master/payments/serializers.py | Github Open Source | Open Source | MIT | null | appart | kozlyuk | Python | Code | 333 | 1,475 | from decimal import Decimal, ROUND_HALF_UP
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from payments.models import Payment, Bill, Service, Rate, BillLine, PaymentService
class ServiceSerializer(serializers.ModelSerializer):
class Meta:
model = Service
... | 41,380 |
https://github.com/stephanemartin/MQTT/blob/master/Data Format Extension/mqttwebsocket/src/main/java/com/neotys/mqtt/mqttwebsocket/MqttNLUnsubscribe.java | Github Open Source | Open Source | BSD-2-Clause | null | MQTT | stephanemartin | Java | Code | 285 | 1,129 | package com.neotys.mqtt.mqttwebsocket;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.internal.wire.CountingInputStream;
import org.eclipse.paho.... | 48,159 |
https://github.com/47deg/nine-cards-backend/blob/master/modules/processes/src/test/scala/cards/nine/processes/collections/TestData.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | nine-cards-backend | 47deg | Scala | Code | 804 | 2,336 | /*
* Copyright 2017 47 Degrees, LLC. <http://www.47deg.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 ... | 21,253 |
https://github.com/opendragon/Core_MPlusM/blob/master/CommonLisp/RandomBurst.lisp | Github Open Source | Open Source | BSD-3-Clause | null | Core_MPlusM | opendragon | Common Lisp | Code | 431 | 846 | ;;--------------------------------------------------------------------------------------------------
;;
;; File: RandomBurst.lisp
;;
;; Project: m+m
;;
;; Contains: An example script that sends blocks of random numbers.
;;
;; Written by: Norman Jaffe
;;
;; Copyright: (c) 2015 by H Plus Technologies Ltd... | 41,116 |
https://github.com/alansnchz0/DomoSystems-2.0/blob/master/Doc/html/navtreeindex16.js | Github Open Source | Open Source | MIT | 2,018 | DomoSystems-2.0 | alansnchz0 | JavaScript | Code | 255 | 12,096 | var NAVTREEINDEX16 =
{
"group___n_v_i_c___register___masks.html#gae8ec204dbf1e1b4cb8231ae35dd8c9e9":[0,1,19,1,53],
"group___n_v_i_c___register___masks.html#gaeb17cee4dd52ffd4c4846ea19af863e0":[2,0,1,2,1583],
"group___n_v_i_c___register___masks.html#gaeb17cee4dd52ffd4c4846ea19af863e0":[0,1,19,1,98],
"group___n_v_i_c___r... | 50,431 |
https://github.com/humbletim/megaverse/blob/master/libraries/trackers/src/trackers/Logging.h | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0 | 2,019 | megaverse | humbletim | C | Code | 43 | 147 | //
// Created by Bradley Austin Davis on 2017/04/25
// Copyright 2013-2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_TrackersLogging_h
#define hifi_TrackersLogging_h
#include ... | 23,240 |
https://github.com/vqtuandev/agenda/blob/master/client/src/redux/reducers/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | agenda | vqtuandev | TypeScript | Code | 39 | 113 | import { combineReducers } from "redux";
import { userReducer, listReducer } from "../../modules";
import { listsReducer } from "../../modules/lists/lists-reducer";
import { usersReducer } from "../../modules/users";
export const rootReducer = combineReducers({
users: usersReducer,
currentUser: userReducer,
... | 49,663 |
https://github.com/microconfig/microconfig/blob/master/microconfig-core/src/test/java/io/microconfig/core/environments/ComponentImplTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | microconfig | microconfig | Java | Code | 84 | 434 | package io.microconfig.core.environments;
import io.microconfig.core.configtypes.ConfigTypeFilter;
import io.microconfig.core.configtypes.ConfigTypeRepository;
import io.microconfig.core.properties.Properties;
import io.microconfig.core.properties.PropertiesFactory;
import org.junit.jupiter.api.Test;
import static io... | 26,183 |
https://github.com/br8km/DearPyGui/blob/master/DearPyGui/src/core/AppItems/composite/mvLogger.cpp | Github Open Source | Open Source | MIT | 2,021 | DearPyGui | br8km | C++ | Code | 1,594 | 7,014 | #include "mvLogger.h"
#include <chrono>
#include "mvInput.h"
#include "mvCore.h"
#include "mvGlobalIntepreterLock.h"
#include "mvItemRegistry.h"
#include "mvFontScope.h"
#include "mvPythonExceptions.h"
typedef std::chrono::high_resolution_clock clock_;
typedef std::chrono::duration<double, std::ratio<1> > second_;
na... | 16,439 |
https://github.com/Crown-Commercial-Service/crown-marketplace/blob/master/app/assets/javascripts/facilities-management/buildings/add-address.js | Github Open Source | Open Source | MIT | 2,020 | crown-marketplace | Crown-Commercial-Service | JavaScript | Code | 84 | 368 | $(() => {
const buildingName = $('#facilities_management_building_building_name');
const buildingDescription = $('#facilities_management_building_description');
const formBuildingDetails = $('#building-details-form');
const formBuildingAddressDetails = $('#building-address-details-form');
function getDetails... | 52,290 |
https://github.com/qiufengyu/LetsCode/blob/master/Challenge-2021-09/23_break_a_palindrome.cpp | Github Open Source | Open Source | MIT | null | LetsCode | qiufengyu | C++ | Code | 53 | 142 | #include "../header.h"
class Solution {
public:
string breakPalindrome(string palindrome) {
int l = palindrome.size();
if (l == 1) {
return "";
}
for (int i = 0; i < l / 2; ++i) {
if (palindrome[i] != 'a') {
palindrome[i] = 'a';
... | 3,306 |
https://github.com/cca/koha_snippets/blob/master/admin-js/paycollect.js | Github Open Source | Open Source | ECL-2.0 | 2,020 | koha_snippets | cca | JavaScript | Code | 129 | 393 | if (path.match('/cgi-bin/koha/members/paycollect.pl')) {
// append payment type to notes field, see https://github.com/cca/koha_snippets/issues/20
// and https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21791
let $note = $('#selected_accts_notes')
$('#payfine, #payindivfine').on('submit', () =>... | 40,539 |
https://github.com/seebe/rzg_stuff/blob/master/boards/rzfive_smarc/rzfive-sieve/sieve.c | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,023 | rzg_stuff | seebe | C | Code | 2,421 | 6,151 | #include <stddef.h>
#include <math.h>
enum { FALSE = 0, TRUE = 1 };
const char cstr1[] = "Constant String1";
char defaultstring[] = "test";
static int mstatic1, mstatic2, mcount;
static int period = 1000;
signed short int plot1 = -15000, plot2 = 0;
float vfloat = 1.0;
double vdouble = 1.0;
typedef int tdef1;
tdef1... | 29,343 |
https://github.com/githubs32142/OnkoTest/blob/master/Praca_Dyplomowa/test/projekt/Class/SaveToPDFTest.java | Github Open Source | Open Source | MIT | 2,017 | OnkoTest | githubs32142 | Java | Code | 174 | 422 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package projekt.Class;
import java.io.File;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.j... | 37,148 |
https://github.com/vamsi3/IITB-Abstractions-and-Paradigms/blob/master/Minor Assignment 2/submission/160050064/3.rkt | Github Open Source | Open Source | MIT | 2,020 | IITB-Abstractions-and-Paradigms | vamsi3 | null | Spoken | 89 | 167 | #lang racket
(provide simpson)
;Define function simpson below
;Do not call the function here
(define (simpson f a b n)
(define h (/ (- b a) (* 3 n)))
(define (simp-helper f a b n)
(cond [(= n 0) (f a)]
[(even? n) (+ (* 2 (f (+ a (* 3 h n)))) (simp-helper f a b (- n 1)))]
[(odd? n) (+ (* 4... | 283 |
https://github.com/joshmurr/super-survey/blob/master/scripts/getAnswers.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | super-survey | joshmurr | JavaScript | Code | 52 | 213 | const admin = require('firebase-admin');
const fs = require('fs');
const serviceAccount = require('./firebase-admin-keys.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://test-thing-307817.firebaseio.com',
});
const db = admin.firestore();
db.collection('ans... | 8,726 |
https://github.com/sali007/nasa-opencmt/blob/master/src/ui/ViewRegistry.js | Github Open Source | Open Source | Apache-2.0, CC0-1.0 | null | nasa-opencmt | sali007 | JavaScript | Code | 741 | 1,379 | /*****************************************************************************
* Open MCT, Copyright (c) 2014-2016, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version ... | 41,993 |
https://github.com/ejspeiro/HackerRank/blob/master/all_domains/python/strings/find_a_string.py | Github Open Source | Open Source | MIT | null | HackerRank | ejspeiro | Python | Code | 57 | 166 | # -*- coding: utf8 -*-
def count_substring(string, sub_string):
stringLength = len(string)
subStringLength = len(sub_string)
countSubStr = 0
for ii in range(0, stringLength):
aux = string[ii] == sub_string[0]
if aux and string[ii:ii + subStringLength] == sub_string:
countSu... | 53,988 |
https://github.com/patconnole/openc2-oif-orchestrator/blob/master/orchestrator/gui/server/gui_server/webApp/views/api.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | openc2-oif-orchestrator | patconnole | Python | Code | 74 | 243 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import permissions
from rest_framework.decorators import api_view, permission_classes
from rest_framework.response import Response
@api_view(['GET'])
@permission_classes((permissions.AllowAny,))
def api_root(request):
"""
Orc... | 22,997 |
https://github.com/ingoem/scala-react/blob/master/test/scala/react/test/ReactorTests.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | scala-react | ingoem | Scala | Code | 60 | 160 | package scala.react
package test
import utils._
import dom._
import org.junit.Test
import org.junit.Assert._
class ReactorTests extends TestUtils with Observing {
@Test def simple() = testTurns(3) {
val x = EventSource[Int]
val r = Reactor.flow { self =>
log(1)
self await x
log(2)
}
... | 12,527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.