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/TRANTANKHOA/pptx-template/blob/master/test/test_xlsx_model.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | pptx-template | TRANTANKHOA | Python | Code | 165 | 995 | #
# coding=utf-8
import unittest
import sys
import os
from io import open
import openpyxl as xl
from pptx_template.xlsx_model import _build_tsv, _format_cell_value, generate_whole_model
class Cell:
def __init__(self, value, number_format):
self.value = value
self.number_format = number_format
de... | 17,271 |
https://github.com/IsmanArman/emonevppg/blob/master/app/Http/Controllers/Admin/QuestionnaireController.php | Github Open Source | Open Source | MIT | null | emonevppg | IsmanArman | PHP | Code | 229 | 709 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Answer;
use App\Models\Question;
use App\Models\Questionnaire;
use App\Models\User;
use Illuminate\Http\Request;
class QuestionnaireController extends Controller
{
/**
* Display a listing of the resource.
*
... | 6,000 |
https://github.com/ramprasath25/react-mobile-app/blob/master/screens/Onboarding.js | Github Open Source | Open Source | MIT | 2,020 | react-mobile-app | ramprasath25 | JavaScript | Code | 173 | 563 | import React from 'react';
import { ImageBackground, StyleSheet, StatusBar, Dimensions, Platform } from 'react-native';
import { Block, Button, Text, theme } from 'galio-framework';
const { height, width } = Dimensions.get('screen');
import materialTheme from '../constants/Theme';
import Images from '../constants/Ima... | 1,353 |
https://github.com/LReinel/SMA2/blob/master/app/src/main/java/com/sma2/sma2/Ex_mov_hands.java | Github Open Source | Open Source | MIT | 2,018 | SMA2 | LReinel | Java | Code | 152 | 789 | package com.sma2.sma2;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
public class Ex_mov_hands extends AppCompatActivity implements View.OnClickListener {
private String exercise_mov_hands;
... | 24,563 |
https://github.com/aws/aws-sdk-go-v2/blob/master/service/devicefarm/types/errors.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | aws-sdk-go-v2 | aws | Go | Code | 1,010 | 2,634 | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// An invalid argument was specified.
type ArgumentException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ArgumentException) Error() string {
return fmt... | 4,107 |
https://github.com/beagles/tripleo-ansible/blob/master/tripleo_ansible/ansible_plugins/modules/tripleo_composable_network.py | Github Open Source | Open Source | Apache-2.0 | null | tripleo-ansible | beagles | Python | Code | 1,280 | 5,152 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2020 OpenStack Foundation
# 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.apac... | 31,089 |
https://github.com/jimv39/qvcsos/blob/master/testFiles/TestKeywordExpansion.contracted.cpp | Github Open Source | Open Source | Apache-2.0 | 2,015 | qvcsos | jimv39 | C++ | Code | 3,115 | 10,127 | // $Log$
// $FilePath$
//
// $Log3$
//
// $Filename$
// $Logfile$
// $Author$
// $Owner$
// $Date$
// $Revision$
// $Version$
// $Label$
// $Header$
// $HeaderPath$
// $VER$
// $Project$
//
// $Copyright$
#include "stdafx.h"
#include <ctype.h>
#include <time.h>
#include <string.h>
#includ... | 2,823 |
https://github.com/girleffect/core-authentication-service/blob/master/authentication_service/tests/test_tasks.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | core-authentication-service | girleffect | Python | Code | 566 | 2,962 | import datetime
import logging
import uuid
from unittest.mock import MagicMock
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.tokens import default_token_generator
from django.core import mail
from django.core.management import call_command
from django.test imp... | 13,964 |
https://github.com/floriandonhauser/TeBaG-RL/blob/master/tests/__init__.py | Github Open Source | Open Source | MIT | null | TeBaG-RL | floriandonhauser | Python | Code | 4 | 15 | from tests.test_environment import test_environment_creation
| 45,136 |
https://github.com/Countly/countly-sdk-java/blob/master/sdk-java/src/test/java/ly/count/sdk/java/internal/LogTests.java | Github Open Source | Open Source | MIT | 2,022 | countly-sdk-java | Countly | Java | Code | 484 | 2,340 | package ly.count.sdk.java.internal;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.powermock.reflect.Whitebox;
import ly.count.sdk.java.Config;
import static ly.count.sdk.java.Config.... | 20,628 |
https://github.com/fz6m/commit-verify/blob/master/src/interface.ts | Github Open Source | Open Source | MIT | 2,022 | commit-verify | fz6m | TypeScript | Code | 164 | 519 | export enum EEmojiPos {
start = 'start',
end = 'end',
}
export interface IConfig {
/**
* whether auto add emoji to commit msg
* @default false
*/
emoji?: boolean
/**
* will add random emoji list
* @default ['🍓', '🍉', '🍇', '🍒', '🍡', '🍥', '🍩', '🍰', '🍭', '🌸', '🌈']
*/
emojiList?: s... | 30,083 |
https://github.com/code-distortion/be-prepared-for-tests/blob/master/src/Adapters/LaravelPostgreSQL/LaravelPostgreSQLBuild.php | Github Open Source | Open Source | MIT | null | be-prepared-for-tests | code-distortion | PHP | Code | 370 | 1,162 | <?php
namespace CodeDistortion\Adapt\Adapters\LaravelPostgreSQL;
use CodeDistortion\Adapt\Adapters\Interfaces\BuildInterface;
use CodeDistortion\Adapt\Adapters\Traits\InjectTrait;
use CodeDistortion\Adapt\Adapters\Traits\Laravel\LaravelBuildTrait;
use CodeDistortion\Adapt\Adapters\Traits\Laravel\LaravelHelperTrait;
u... | 34,280 |
https://github.com/IreneGinani/twu-biblioteca-ireneginani/blob/master/biblioteca_queries/q5.sql | Github Open Source | Open Source | Apache-2.0 | null | twu-biblioteca-ireneginani | IreneGinani | SQL | Code | 15 | 39 | SELECT name, COUNT(name) FROM member INNER JOIN checkout_item ON member.id = checkout_item.member_id
GROUP BY name; | 24,452 |
https://github.com/weizai118/zstack/blob/master/search/src/main/java/org/zstack/zql/ast/parser/visitors/OrderByVisitor.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | zstack | weizai118 | Java | Code | 31 | 178 | package org.zstack.zql.ast.parser.visitors;
import org.zstack.header.zql.ASTNode;
import org.zstack.zql.antlr4.ZQLBaseVisitor;
import org.zstack.zql.antlr4.ZQLParser;
public class OrderByVisitor extends ZQLBaseVisitor<ASTNode.OrderBy> {
@Override
public ASTNode.OrderBy visitOrderBy(ZQLParser.OrderByContext ct... | 48,459 |
https://github.com/jvmendesavila/knockout-tournament/blob/master/components/Player/List/Field/style.tsx | Github Open Source | Open Source | MIT | null | knockout-tournament | jvmendesavila | TypeScript | Code | 32 | 90 | import { makeStyles, Theme } from '@material-ui/core'
const useStyles = makeStyles((theme: Theme) => ({
infoContainer: {
padding: 12
},
infoTitle: {
marginBottom: 8,
fontWeight: 600,
color: theme.palette.primary.main
}
}))
export default useStyles
| 22,207 |
https://github.com/jadob/container/blob/master/Event/ContainerRelatedEventInterface.php | Github Open Source | Open Source | MIT | null | container | jadob | PHP | Code | 8 | 33 | <?php
declare(strict_types=1);
namespace Jadob\Container\Event;
interface ContainerRelatedEventInterface
{
} | 22,212 |
https://github.com/navikt/aktivitetsplan/blob/master/src/moduler/aktivitet/ny-aktivitet/NyAktivitetForm.tsx | Github Open Source | Open Source | MIT | 2,023 | aktivitetsplan | navikt | TSX | Code | 340 | 1,649 | import { PayloadAction, isFulfilled } from '@reduxjs/toolkit';
import React, { MouseEventHandler, useRef } from 'react';
import { useSelector } from 'react-redux';
import { Route, Routes, useNavigate } from 'react-router-dom';
import { AktivitetStatus } from '../../../datatypes/aktivitetTypes';
import { VeilarbAktivit... | 25,154 |
https://github.com/Kelsiii/Gaze/blob/master/gaze/nodes/core.py | Github Open Source | Open Source | MIT | null | Gaze | Kelsiii | Python | Code | 97 | 430 | import cv2 as cv
from ..engine.base_node import Node
class EdgeDetection(Node):
def __init__(self, **kwargs):
super(EdgeDetection, self).__init__(**kwargs)
def call(self, inputs, **kwargs):
gray = cv.cvtColor(inputs, cv.COLOR_BGR2GRAY)
laplacian = cv.Laplacian(gray, cv.CV_8U)
... | 15,289 |
https://github.com/linmuxi/AndroidTV/blob/master/src/com/jxjr/tv/PropertiesUtil.java | Github Open Source | Open Source | MIT | null | AndroidTV | linmuxi | Java | Code | 78 | 325 | /*
* Copyright 2015 the original author or phly.
* 鏈粡姝e紡涔﹂潰鍚屾剰锛屽叾浠栦换浣曚釜浜恒�鍥綋涓嶅緱浣跨敤銆佸鍒躲�淇敼鎴栧彂甯冩湰杞欢.
*/
package com.jxjr.tv;
import java.io.IOException;
import java.util.Properties;
public class PropertiesUtil {
private static final Properties prop = new Properties();
private static final PropertiesUtil util ... | 16,440 |
https://github.com/entone/brood/blob/master/priv/ui/src/types.js | Github Open Source | Open Source | MIT | 2,018 | brood | entone | JavaScript | Code | 75 | 222 | export const SEND_MESSAGE = 'SEND_MESSAGE';
export const UPDATE_UI = 'UPDATE_UI';
export const RECEIVE_ACTION = 'ACTION';
export const RECEIVE_DATA_POINT = 'DATA_POINT';
export const RECEIVE_DATA = 'DATA';
export const RECEIVE_IMAGE = 'IMAGE';
export const RECEIVE_CHANNEL_SETTINGS = 'CHANNEL_SETTINGS';
export const REC... | 37,488 |
https://github.com/wj596/fastboot/blob/master/plugs/security/src/main/java/org/jsets/fastboot/security/config/SecurityCustomizer.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | fastboot | wj596 | Java | Code | 367 | 1,276 | /*
* Copyright 2021-2022 the original author(https://github.com/wj596)
*
* <p>
* 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
*
* ... | 38,176 |
https://github.com/Thavarajan/koia/blob/master/src/app/shared/utils/string-utils.ts | Github Open Source | Open Source | MIT | 2,020 | koia | Thavarajan | TypeScript | Code | 215 | 487 | export class StringUtils {
static readonly EMPTY = '';
/**
* @return abbreviated string using ellipses or specified string if it doesn't exceed [[maxWidth]]
*/
static abbreviate(str: string, maxWidth: number): string {
if (!str || str.length <= maxWidth) {
return str;
}
retur... | 31,964 |
https://github.com/bobbyangers/XrmUnitTest/blob/master/DLaB.Xrm.Entities/msdyn_workhourtemplate.cs | Github Open Source | Open Source | MIT | 2,021 | XrmUnitTest | bobbyangers | C# | Code | 1,904 | 13,036 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------... | 2,364 |
https://github.com/studydheena/tradeapp/blob/master/libraries/book/src/test/java/com/paritytrading/parity/book/MarketEvents.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | tradeapp | studydheena | Java | Code | 242 | 500 | /*
* Copyright 2014 Parity 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 ... | 32,603 |
https://github.com/SteveWaweru/mfl_admin_web/blob/master/src/app/facility_mgmt/tests/controllers/regulate.spec.js | Github Open Source | Open Source | MIT, Unlicense, OFL-1.1 | 2,022 | mfl_admin_web | SteveWaweru | JavaScript | Code | 414 | 2,166 | (function () {
"use strict";
describe("Test facility regulation controllers", function () {
var rootScope, ctrl, httpBackend, server_url, log, state;
beforeEach(function () {
module("mflAdminAppConfig");
module("mfl.auth.services");
module("mfl.facility_mgmt... | 2,223 |
https://github.com/MTES-MCT/trackdechets-dasri-proto/blob/master/back/src/dasris/resolvers/mutations/createDraftBsdasri.ts | Github Open Source | Open Source | MIT | null | trackdechets-dasri-proto | MTES-MCT | TypeScript | Code | 40 | 146 | import {
MutationCreateBsdasriArgs,
ResolversParentTypes
} from "../../../generated/graphql/types";
import { GraphQLContext } from "../../../types";
import createBsdasri from "./create";
const createDraftBsdasriResolver = async (
parent: ResolversParentTypes["Mutation"],
bsdasriCreateInput: MutationCreateBsd... | 50,499 |
https://github.com/xiayuu/chord/blob/master/chord/test.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | chord | xiayuu | Python | Code | 40 | 160 | #!/usr/bin/env python
# encoding: utf-8
from hashlib import sha1
from rpcudp.rpcserver import RPCServer, rpccall
RING_SIZE = 4
class ChordProtocol(RPCServer):
@rpccall
def rdict(self, dest):
pass
@rpccall
def find_successor(self, dest, ident):
pass
def rpc_rdict(self):
... | 17,059 |
https://github.com/SergeWilfried/rave-android/blob/master/rave_presentation/src/main/java/com/flutterwave/raveandroid/rave_presentation/RavePayManager.java | Github Open Source | Open Source | Unlicense | 2,019 | rave-android | SergeWilfried | Java | Code | 247 | 597 | package com.flutterwave.raveandroid.rave_presentation;
abstract public class RavePayManager {
protected String email;
protected double amount = -1;
protected String publicKey;
protected String encryptionKey;
protected String txRef;
protected String narration = "";
protected String currency... | 4,590 |
https://github.com/irmoralesb/SVG/blob/master/Source/SvgDocument.Drawing.cs | Github Open Source | Open Source | MS-PL | 2,022 | SVG | irmoralesb | C# | Code | 884 | 2,313 | #if !NO_SDC
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml;
using Svg.Exceptions;
namespace Svg
{
public partial class SvgDocument : SvgFragment, ITypeDescriptorContext
{
/// <summary>
/// Skip check whether the GDI+ can be loa... | 29,345 |
https://github.com/pshoben/devutils/blob/master/tagwire/EmapiTagwireWrapper.cpp | Github Open Source | Open Source | MIT | null | devutils | pshoben | C++ | Code | 150 | 559 |
#include <string>
#include <memory>
#include <typeinfo>
#include "MessageDataIf.h"
#include "emapi.h"
#include "EmapiTypes.h"
//#include "MessageTrace.h"
#include "TagwireDecoder.h"
#include "EmapiTagwireWrapper.h"
using std::string;
namespace emapi {
EmapiTagwireWrapper::EmapiTagwireWrapper(){}
//EmapiTagwireWrapp... | 10,617 |
https://github.com/guardian/source/blob/master/packages/@guardian/source-react-components/src/tiles/Tiles.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | source | guardian | TSX | Code | 295 | 987 | import type { SerializedStyles } from '@emotion/react';
import type { EmotionJSX } from '@emotion/react/types/jsx-namespace';
import type { Breakpoint } from '@guardian/source-foundations';
import type { HTMLAttributes } from 'react';
import type { Props } from '../@types/Props';
import {
collapseUntilDesktopTiles,
c... | 49,622 |
https://github.com/1217720084/EnergyModels.jl/blob/master/test/io.jl | Github Open Source | Open Source | MIT | 2,019 | EnergyModels.jl | 1217720084 | Julia | Code | 30 | 95 | # Test I/O
module Mock
type MockGenerator <: Component
model::EnergyModel
end
@testset "NetCDF" begin
model = EnergyModel()
MockGenerator(model)
naming(model, :)
defVar()
io = EM.NcIO("test.nc")
@test EM.get(io, :generator) == nothing
end
| 45,402 |
https://github.com/gwonhyeong/tlabs/blob/master/tlab/src/ext/live555/rtsp_client.cpp | Github Open Source | Open Source | MIT | null | tlabs | gwonhyeong | C++ | Code | 888 | 3,472 | /**
* @file rtsp_client.cpp
* @author ghtak
* @brief
* @version 0.1
* @date 2019-01-28
*
* @copyright Copyright (c) 2019
*
*/
#include <map>
#include <tlab/ext/live555/rtsp_client.hpp>
#include <tlab/util.hpp>
// check https://github.com/mpromonet
namespace tlab::ext::live555 {
template <typename string_type... | 50,984 |
https://github.com/maskhb/bbbbb/blob/master/src/utils/attr/repair.js | Github Open Source | Open Source | MIT | null | bbbbb | maskhb | JavaScript | Code | 164 | 546 | /**
* 维修状态
*/
export const repairStatusOptions = [
{
value: 1,
label: '待维修',
},
{
value: 2,
label: '维修完成',
},
{
value: 3,
label: '已取消',
},
];
/**
* 维修类型
*/
export const repairTypeOptions = [
{
value: 1,
label: '防水漏水',
},
{
value: 2,
label: '墙面地面',
},
{
... | 48,397 |
https://github.com/subaochen/TetrisMina/blob/master/src/main/java/tetrismina/client/ui/game/Block.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | TetrisMina | subaochen | Java | Code | 258 | 563 | package tetrismina.client.ui.game;
public enum Block {
T(3, 2, new byte[][] { { 1, 1, 1 }, { 0, 1, 0 } }), L(2, 3, new byte[][] {
{ 1, 0 }, { 1, 0 }, { 1, 1 } }), I(1, 4, new byte[][] { { 1 },
{ 1 }, { 1 }, { 1 } }), TIAN(2, 2, new byte[][] { { 1, 1 },
{ 1, 1 } }), AL(2, 3, new byte[][] { { 0, 1 }, { 0, 1 },... | 18,659 |
https://github.com/gx1997/chrome-loongson/blob/master/chrome/browser/ui/views/simple_message_box_views.h | Github Open Source | Open Source | BSD-3-Clause | 2,012 | chrome-loongson | gx1997 | C++ | Code | 249 | 818 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_SIMPLE_MESSAGE_BOX_VIEWS_H_
#pragma once
#include "base/b... | 651 |
https://github.com/firstsano/prikormka/blob/master/frontend/modules/cab/controllers/OrderController.php | Github Open Source | Open Source | BSD-3-Clause | null | prikormka | firstsano | PHP | Code | 294 | 1,068 | <?php
namespace frontend\modules\cab\controllers;
use Yii;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
use yii\web\NotFoundHttpException;
use yii\web\BadRequestHttpException;
use frontend\models\OrderForm;
use common\models\Order;
use yii\filters\AccessControl;
use yii\data\Pagination;
class OrderContro... | 4,815 |
https://github.com/ufabdyop/coralapiserver/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,017 | coralapiserver | ufabdyop | Ignore List | Code | 24 | 50 | # Eclipse generated directories
.classpath
.project
.settings
# Maven generated files
target
# Temporary files or swap files generated by Vim
*~
*.swp
*.swo
| 16,261 |
https://github.com/reiform/celix/blob/master/libs/framework/src/bundle_archive.c | Github Open Source | Open Source | Apache-2.0 | null | celix | reiform | C | Code | 2,257 | 8,410 | /*
* 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 ... | 14,576 |
https://github.com/chenpenghui93/tutorial/blob/master/tutorial-java-basic/src/main/java/com/example/javabasic/sample/exception/example2/Annoyance.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | tutorial | chenpenghui93 | Java | Code | 16 | 51 | package com.example.javabasic.sample.exception.example2;
/**
* @author chenpenghui
* @date 2021-4-4
*/
public class Annoyance extends Exception{
}
| 34,502 |
https://github.com/ngirard/directwrite-rs/blob/master/src/font_file/loader/set_loader.rs | Github Open Source | Open Source | MIT | null | directwrite-rs | ngirard | Rust | Code | 198 | 530 | use crate::error::DWResult;
use crate::descriptions::key::FontKey;
use crate::font_file::loader::{FontFileLoader, FontFileStream};
use std::borrow::Borrow;
use std::collections::HashMap;
use std::hash::Hash;
use std::marker::PhantomData;
use winapi::shared::winerror::{HRESULT_FROM_WIN32, ERROR_FILE_NOT_FOUND};
/// R... | 41,283 |
https://github.com/MajorCooke/Doom4Doom/blob/master/shaders/glorykill.shader | Github Open Source | Open Source | MIT | 2,022 | Doom4Doom | MajorCooke | GLSL | Code | 120 | 482 | uniform float timer;
vec4 Process(vec4 color)
{
vec2 texCoord = gl_TexCoord[0].st;
vec4 orgColor = getTexel(texCoord) * color;
float cp = (sin(pixelpos.y/4-timer*8)+1)/2;
vec2 fragCoord = gl_FragCoord.xy/2;
// polkadot alpha
float cpd = float(int(fragCoord.x)%2 == 0 && int(fragCoord.y)%2 == 0);
cp = clamp... | 24,185 |
https://github.com/GabrielJSuarez/JS-library/blob/master/js/dom.js | Github Open Source | Open Source | MIT | 2,021 | JS-library | GabrielJSuarez | JavaScript | Code | 239 | 737 | // DOM variables
// Get the form for new books
const addForm = document.forms['add-book'];
// Prevent page from reloading when submitting a new book
addForm.addEventListener('submit', function (e) {
e.preventDefault();
});
// DOM Modification
const library = (() => {
// Create new book objects from UI and addi... | 4,979 |
https://github.com/chrisstephenmiller/spotifolio/blob/master/server/auth/spotify_client.js | Github Open Source | Open Source | MIT | null | spotifolio | chrisstephenmiller | JavaScript | Code | 196 | 539 | const SpotifyWebApi = require('spotify-web-api-node')
module.exports = ({ session, graphql, user }) => {
const spotifyWebApi = new SpotifyWebApi({
clientId: process.env.SPOTIFY_CLIENT_ID,
clientSecret: process.env.SPOTIFY_CLIENT_SECRET
})
const refreshToken = async sessionData => {
spotifyWebApi.set... | 21,170 |
https://github.com/MaxHillebrand/libnunchuk/blob/master/tests/src/nunchukutils_test.cpp | Github Open Source | Open Source | MIT | 2,021 | libnunchuk | MaxHillebrand | C++ | Code | 424 | 3,494 | // Copyright (c) 2020 Enigmo
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <nunchuk.h>
#include <amount.h>
#include <doctest.h>
TEST_CASE("testing SanitizeBIP32Input") {
using namespace nunchuk;
std::string xpub... | 45,840 |
https://github.com/DeepManuPy/cat-dog-classifier/blob/master/gpu_config.py | Github Open Source | Open Source | MIT | null | cat-dog-classifier | DeepManuPy | Python | Code | 30 | 77 | """
Optional, only for those who are training the model on GPU and facing "CUDA_error:ran_out_of_memory" problem.
"""
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
| 532 |
https://github.com/Frank-Mayer/MazeSolving/blob/master/closure-compiler.py | Github Open Source | Open Source | MIT | null | MazeSolving | Frank-Mayer | Python | Code | 93 | 383 | #!/usr/bin/python3
import http.client
import urllib.request
import urllib.parse
import urllib.error
import sys
import os
directory = r'./'
if (os.system("tsc -p " + directory + "tsconfig.json --pretty") == 0):
print("TypeScript compiled")
for filename in os.listdir(directory):
if filename.endswith(".j... | 39,013 |
https://github.com/SvenKube/throwless/blob/master/tests/option.test.ts | Github Open Source | Open Source | MIT | 2,021 | throwless | SvenKube | TypeScript | Code | 591 | 1,799 | import {err, none, ok, Option, some} from "../src";
describe("Tests for Some", () => {
let option: Option<number>;
beforeAll(() => {
option = some(773);
});
test("isSome() returns true", () => {
expect(option.isSome()).toBeTruthy();
});
test("isNone() returns false", () => {... | 44,050 |
https://github.com/AllenInstitute/aics-fms-file-explorer-app/blob/master/packages/core/components/AnnotationSidebar/index.tsx | Github Open Source | Open Source | BSD-2-Clause | 2,023 | aics-fms-file-explorer-app | AllenInstitute | TSX | Code | 282 | 723 | import classNames from "classnames";
import * as React from "react";
import { DragDropContext, OnDragEndResponder, OnDragStartResponder } from "react-beautiful-dnd";
import { useDispatch } from "react-redux";
import AnnotationHierarchy from "../AnnotationHierarchy";
import AnnotationList, { DROPPABLE_ID as ANNOTATION_... | 11,596 |
https://github.com/EasyAbp/Cms/blob/master/src/EasyAbp.Cms.Web/Pages/Cms/Articles/Article/EditModal.cshtml.cs | Github Open Source | Open Source | MIT | 2,021 | Cms | EasyAbp | C# | Code | 78 | 271 | using System;
using System.Threading.Tasks;
using EasyAbp.Cms.Articles;
using EasyAbp.Cms.Articles.Dtos;
using Microsoft.AspNetCore.Mvc;
namespace EasyAbp.Cms.Web.Pages.Cms.Articles.Article
{
public class EditModalModel : CmsPageModel
{
[HiddenInput]
[BindProperty(SupportsGet = true)]
p... | 25,972 |
https://github.com/audevbot/autorest.devops.debug/blob/master/generated/intermediate/examples_cli/apimanagement_service_apis_issues_comments_get_1.sh | Github Open Source | Open Source | MIT | null | autorest.devops.debug | audevbot | Shell | Code | 14 | 129 | # ApiManagementGetApiIssueComment
RESOURCE_GROUP="myresourcegroup"
SERVICE_NAME="myservice"
API_NAME="myapi"
ISSUE_NAME="myissue"
COMMENT_NAME="mycomment"
az resource show --id /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.ApiManagement/service/$SERVICE_NAME/apis/$API_NAME/issues/$... | 21,911 |
https://github.com/jaholme/MSIX-PackageSupportFramework/blob/master/fixups/FileRedirectionFixup/CreateFileFixup.cpp | Github Open Source | Open Source | MIT | null | MSIX-PackageSupportFramework | jaholme | C++ | Code | 231 | 706 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//-------------------------------------------------... | 15,257 |
https://github.com/claudiocro/react-autowhatever/blob/master/test/plain-list/Autowhatever.test.js | Github Open Source | Open Source | MIT | 2,016 | react-autowhatever | claudiocro | JavaScript | Code | 181 | 654 | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import {
init,
getStoredFocusedItemName,
getInputAttribute,
getItemsContainerAttribute,
getItems,
mouseEnterItem,
mouseLeaveItem,
mouseDownItem,
clickItem
} from '../helpers';
import Autowhatever... | 6,572 |
https://github.com/vgstation-coders/space-station-14/blob/master/Content.Shared/Suspicion/SuspicionMessages.cs | Github Open Source | Open Source | CC-BY-NC-SA-3.0, CC-BY-4.0, CC-BY-SA-3.0, MIT, LicenseRef-scancode-proprietary-license | 2,022 | space-station-14 | vgstation-coders | C# | Code | 25 | 81 | using Robust.Shared.Serialization;
namespace Content.Shared.Suspicion
{
public static class SuspicionMessages
{
[Serializable, NetSerializable]
public sealed class SetSuspicionEndTimerMessage : EntityEventArgs
{
public TimeSpan? EndTime;
}
}
}
| 43,980 |
https://github.com/addeye/labadministrasi/blob/master/koneksi/koneksi.php | Github Open Source | Open Source | MIT | null | labadministrasi | addeye | PHP | Code | 5 | 56 | <?php
$db=mysql_connect("localhost","root","");
$sel=mysql_select_db("lab_unesa",$db);
date_default_timezone_set('Asia/Jakarta');
?> | 29,309 |
https://github.com/Kcch91/MASAI-concierge-android-app/blob/master/app/src/main/java/solutions/masai/masai/android/core/model/travelfolder_user/Choice.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | MASAI-concierge-android-app | Kcch91 | Java | Code | 97 | 298 | package solutions.masai.masai.android.core.model.travelfolder_user;
import java.util.Locale;
/**
* Created by cWahl on 25.08.2017.
*/
public class Choice {
private String value;
private String textDE;
private String textEN;
//region properties
public String getValue() {
return value;
}
public void setV... | 12,405 |
https://github.com/integrify-group-3/iBudget/blob/master/client/src/components/IncomeExpensesYearChart/index.tsx | Github Open Source | Open Source | MIT | 2,021 | iBudget | integrify-group-3 | TSX | Code | 250 | 861 | import React, { useState } from 'react'
import { Paper } from '@material-ui/core'
import {
ArgumentAxis,
ValueAxis,
Chart,
Legend,
SplineSeries,
BarSeries,
Tooltip,
Title,
} from '@devexpress/dx-react-chart-material-ui'
import { EventTracker, Animation } from '@devexpress/dx-react-chart'
import { scaleB... | 5,068 |
https://github.com/ericyd/generative-art/blob/master/nannou/examples/util/prism.rs | Github Open Source | Open Source | MIT | 2,022 | generative-art | ericyd | Rust | Code | 463 | 1,471 | // A super-simple implementation of a 3D prism
// made by simply drawing the polygons that are
// shown when looking with perspective.
// The polygons are all quadrilaterals defined by the vertices
// which are labeled below
//
// B▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔C
// ▕ ╲ ╲
// ▕ ╲ ╲
// ▕ ╲ ... | 50,710 |
https://github.com/3182779524qq/bk-vue-cec/blob/master/src/components/date-picker/base/mixin.js | Github Open Source | Open Source | MIT | 2,021 | bk-vue-cec | 3182779524qq | JavaScript | Code | 378 | 772 | /*
* Tencent is pleased to support the open source community by making
* 科技内在设计(T-inside) available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* 科技内在设计(T-inside) is licensed under the MIT License.
*
* License for 科技内在设计(T-inside):
*
* ----------------------------------... | 7,987 |
https://github.com/uk-gov-mirror/hmrc.view-external-guidance-frontend/blob/master/test/mocks/MockGuidanceService.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | hmrc.view-external-guidance-frontend | uk-gov-mirror | Scala | Code | 428 | 1,460 | /*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 18,790 |
https://github.com/RomashkinAndrew/TrulyRandom/blob/master/TrulyRandom/DirectShow/Structs.cs | Github Open Source | Open Source | MIT | null | TrulyRandom | RomashkinAndrew | C# | Code | 1,071 | 2,677 | using System;
using System.Drawing;
using System.Runtime.InteropServices;
// Source: AForge library
namespace TrulyRandom.DirectShow
{
[StructLayout(LayoutKind.Sequential)]
class AMMediaType : IDisposable
{
/// <summary>
/// Globally unique identifier (GUID) that specifies the major type o... | 484 |
https://github.com/Zebra/iFactr-Android/blob/master/iFactr.Droid/Cells and Tiles/FooterView.cs | Github Open Source | Open Source | MIT | null | iFactr-Android | Zebra | C# | Code | 252 | 842 | using Android.Content;
using Android.Graphics;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using iFactr.UI;
using System;
using System.ComponentModel;
using MonoCross.Utilities;
using Color = iFactr.UI.Color;
namespace iFactr.Droid
{
public class FooterView : TextView, ISectionFooter, INotify... | 37,173 |
https://github.com/ethanstrominger/website/blob/master/_sass/components/_about.scss | Github Open Source | Open Source | GPL-2.0-only | 2,022 | website | ethanstrominger | SCSS | Code | 1,688 | 6,129 | /* This page is built using a mobile first method. Plain tags apply to mobile. Breakpoints below for larger sizes. */
.header-link--about {
text-decoration: none;
font-weight: 700;
&:link,
&:visited {
color: $color-black;
}
&:hover,
&:active,
&:focus {
color: $color-red;
... | 42,975 |
https://github.com/veil-os/frontend/blob/master/src/components/DistributeContainer/DistributeContainer.tsx | Github Open Source | Open Source | MIT | 2,021 | frontend | veil-os | TypeScript | Code | 566 | 2,235 | import React, { useState } from "react";
import { config } from "../../config";
import { ButtonLg } from "../Button";
import { DistributionDashboard } from "../DistributionDashboard";
import { LayoutDark } from "../Layout";
import { NavigationBar } from "../NavigationBar";
const { DEFAULT_EXTERNAL_NULLIFIER, DEFAULT_I... | 4,387 |
https://github.com/gammasoft71/Examples_Win32/blob/master/Win32.Gui/Components/Timer/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,022 | Examples_Win32 | gammasoft71 | CMake | Code | 18 | 149 | cmake_minimum_required(VERSION 3.2)
project(Timer)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup")
add_definitions(-DUNICODE)
add_executable(${PROJECT_NAME} WIN32 Timer.cpp)
set_target_properties(${PROJECT_NAME} PROPERTIES F... | 11,007 |
https://github.com/timzatko/feebas/blob/master/packages/desktop_app/src/app/components/screenshot-item/screenshot-item.component.ts | Github Open Source | Open Source | BSD-3-Clause | 2,021 | feebas | timzatko | TypeScript | Code | 135 | 585 | import { Component, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Screenshots } from '../../models/screenshots';
import { ProjectService } from '../../services/project.service';
import { getScreenshotClass } from '../../scripts/screenshot';
@Component({
selector: 'app-screenshot-... | 30,549 |
https://github.com/JoaoMotondon/MovieSearchDemoApp/blob/master/app/src/main/java/com/motondon/moviesearchdemoapp/presenter/movies/MovieDetailsPresenter.java | Github Open Source | Open Source | MIT | 2,018 | MovieSearchDemoApp | JoaoMotondon | Java | Code | 15 | 60 | package com.motondon.moviesearchdemoapp.presenter.movies;
public interface MovieDetailsPresenter {
void loadMovieDetails(final String movieIdr);
void loadMovieCast(final String movieId);
}
| 814 |
https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/sorts/LinkListSort.java | Github Open Source | Open Source | MIT | 2,023 | Java | TheAlgorithms | Java | Code | 1,541 | 2,958 | /**
* Author : Siddhant Swarup Mallick
* Github : https://github.com/siddhant2002
*/
/** Program description - To sort the LinkList as per sorting technique */
package com.thealgorithms.sorts;
import java.util.*;
public class LinkListSort {
public static boolean isSorted(int[] p, int option) {
try (... | 2,142 |
https://github.com/cafesao/Programas_Python/blob/master/Pagamento.py | Github Open Source | Open Source | MIT | 2,019 | Programas_Python | cafesao | Python | Code | 219 | 542 | # Programa para pagamento, aceitando Á vista, cartão em 2x, 3x ou mais vezes.
# Mostrando no final o desconto ou o juros e o total
nom1 = str(input('Qual seu nome?: '))
val1 = float(input('Qual o valor do produto: '))
nom2 = nom1.split()
nom2 = nom2[0]
nom2 = nom2.capitalize()
print('Digite a opção desejada para a fo... | 4,505 |
https://github.com/angeleenmcw/cartoon-collections-v-000/blob/master/cartoon_collections.rb | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | cartoon-collections-v-000 | angeleenmcw | Ruby | Code | 40 | 199 | def roll_call_dwarves(dwarves)
dwarves.each_with_index do |dwarf, index|
puts "#{index+1}.#{drarf}"
end
def summon_captain_planet(planeteer_calls)
puts planeteer_calls.collect{|call| call.capitalize + "!"}
end
def long_planeteer_calls(characters)
characters.any?{|call| call.length > 4)
end
def find_the_cheese... | 27,019 |
https://github.com/BorisLechev/Programming-Basics/blob/master/Documents/Github/Programming-Fundamentals/3. Data Types and Variables/Beer Kegs/Program.cs | Github Open Source | Open Source | MIT | 2,019 | Programming-Basics | BorisLechev | C# | Code | 86 | 297 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beer_Kegs // !!!!!!!!!!
{
class Program
{
static void Main(string[] args)
{
byte n = byte.Parse(Console.ReadLine());
double volumeOfTheBiggestKe... | 7,537 |
https://github.com/gniftygnome/ductwork/blob/master/src/main/java/net/gnomecraft/ductwork/mixin/RedstoneWireBlockMixin.java | Github Open Source | Open Source | MIT | 2,022 | ductwork | gniftygnome | Java | Code | 60 | 324 | package net.gnomecraft.ductwork.mixin;
import net.gnomecraft.ductwork.Ductwork;
import net.gnomecraft.ductwork.collector.CollectorBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.RedstoneWireBlock;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.min... | 37,211 |
https://github.com/qq283335746/CustomProvider/blob/master/src/TygaSoft/LiteMembershipProvider/Entities/RolesInfo.cs | Github Open Source | Open Source | MIT | 2,019 | CustomProvider | qq283335746 | C# | Code | 33 | 73 | using System;
namespace Yibi.LiteMembershipProvider.Entities
{
public partial class RolesInfo
{
public Guid ApplicationId { get; set; }
public Guid Id { get; set; }
public string Name { get; set; }
}
}
| 14,068 |
https://github.com/schattian/seatable-api-python/blob/master/demo/dateutils_test.py | Github Open Source | Open Source | Apache-2.0 | null | seatable-api-python | schattian | Python | Code | 222 | 1,037 | from seatable_api import dateutils
# test the functions of date utils
time_str = "2020-6-15"
time_str_s = "2020-6-15 15:23:21"
time_end = "2020-5-3 13:13:13"
time_start = "2019-6-3 20:1:12"
# 1. dateutils.date
print(dateutils.date(2020, 5, 16)) # 2020-05-16
# 2. dateutils.dateadd
print(dateutils.dateadd(time_str,... | 33,263 |
https://github.com/davidgisexpert420/babylogger/blob/master/modules/dailyreports/server/controllers/dailyreports.server.controller.js | Github Open Source | Open Source | MIT | 2,020 | babylogger | davidgisexpert420 | JavaScript | Code | 191 | 643 | 'use strict';
/**
* Module dependencies.
*/
require('moment-duration-format');
var path = require('path'),
moment = require('moment'),
mongoose = require('mongoose'),
Entry = mongoose.model('Entry'),
Child = mongoose.model('Child'),
EntryDetail = mongoose.model('EntryDetail'),
errorHandler = require(path... | 20,592 |
https://github.com/Pro-YY/ezouqi/blob/master/backend/services/ezq_core/ezq_core/dispatcher.py | Github Open Source | Open Source | MIT | 2,018 | ezouqi | Pro-YY | Python | Code | 61 | 226 | from ezq_core.accessor import store_event
import ezq_core.handlers as H
async def _noop_handler(*args, **kwargs):
pass
# event handlers registration
_HANDLERS = {
'CREATE_ACCOUNT_INIT': H.create_account,
'UPDATE_ACCOUNT_INIT': H.update_account,
'UPDATE_ACCOUNT_DONE': _noop_handler,
'DELETE_ACCOUN... | 48,685 |
https://github.com/lchrennew/es-triggers/blob/master/src/core/domain/events/listener-internal-error.js | Github Open Source | Open Source | MIT | 2,022 | es-triggers | lchrennew | JavaScript | Code | 12 | 28 | import DomainEvent from "./domain-event.js";
export default class ListenerInternalError extends DomainEvent {
}
| 11,972 |
https://github.com/muellerzr/fastrelease/blob/master/fastrelease/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | fastrelease | muellerzr | Python | Code | 7 | 21 | __version__ = "0.1.13"
from .core import *
| 33,688 |
https://github.com/MateuszKubuszok/BackupDSL/blob/master/modules/psm/src/test/scala/pl/combosolutions/backup/psm/elevation/ElevationServerImplSpec.scala | Github Open Source | Open Source | MIT | 2,015 | BackupDSL | MateuszKubuszok | Scala | Code | 73 | 232 | package pl.combosolutions.backup.psm.elevation
import org.specs2.mock.Mockito
import org.specs2.mutable.Specification
import pl.combosolutions.backup.{ Async, Result }
import pl.combosolutions.backup.psm.programs.GenericProgram
import pl.combosolutions.backup.test.Tags.UnitTest
class ElevationServerImplSpec extends S... | 6,754 |
https://github.com/kalasour/Coding-Virtual-Reality-Games-for-Kids/blob/master/CodingVR/Assets/Scripts/Interaction_System/IHoverable.cs | Github Open Source | Open Source | MIT | 2,022 | Coding-Virtual-Reality-Games-for-Kids | kalasour | C# | Code | 30 | 85 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VHS
{
public interface IHoverable
{
string Tooltip { get; set;}
Transform TooltipTransform { get; }
void OnHoverStart(Material _hoverMat);
void OnHoverEnd();
}
}
| 34,032 |
https://github.com/bayberryan/Fluent.Ribbon/blob/master/Fluent.Ribbon/Controls/GalleryItemPlaceholder.cs | Github Open Source | Open Source | MIT | 2,017 | Fluent.Ribbon | bayberryan | C# | Code | 263 | 592 | using System.Windows;
// ReSharper disable once CheckNamespace
namespace Fluent
{
/// <summary>
/// Represents internal class to use it in
/// GalleryPanel as placeholder for GalleryItems
/// </summary>
internal class GalleryItemPlaceholder : UIElement
{
#region Properties
//... | 33,054 |
https://github.com/hrahmadi71/MultiRefactor/blob/master/data/ganttproject/ganttproject-1.11.1/src/net/sourceforge/ganttproject/roles/RoleManagerImpl.java | Github Open Source | Open Source | MIT | 2,020 | MultiRefactor | hrahmadi71 | Java | Code | 308 | 1,521 |
package net.sourceforge.ganttproject.roles;
import java.util.ArrayList;
import java.util.*;
import net.sourceforge.ganttproject.language.GanttLanguage;
/**
* @author athomas
*
*/
public class RoleManagerImpl implements RoleManager {
String [] defaultRoles;
//private ArrayList myDefaultRoles = new ArrayList... | 13,600 |
https://github.com/jbw/hypertonic/blob/master/test/user.spec.js | Github Open Source | Open Source | MIT | 2,021 | hypertonic | jbw | JavaScript | Code | 92 | 361 | const chai = require('chai');
const expect = chai.expect;
const nock = require('nock');
const test = require('./common.js');
const api = test.api;
const fitbitDomain = test.fitbitDomain;
describe('#User', () => {
beforeEach(() => {
const userProfile = require('./fixtures/user-profile.json');
nock... | 46,054 |
https://github.com/tvd12/ezyfox-db/blob/master/src/main/java/com/tvd12/ezyfox/db/query/Load.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | ezyfox-db | tvd12 | Java | Code | 79 | 263 | /**
*
*/
package com.tvd12.ezyfox.db.query;
import java.io.Serializable;
import org.hibernate.Session;
import com.tvd12.ezyfox.db.Query;
/**
* @author tavandung12
*
*/
public class Load implements Query {
private Serializable id;
private Class<?> entityClass;
public Load() {this(null, null);... | 31,855 |
https://github.com/ratiotile/StardustDevEnvironment/blob/master/3rdparty/openbw/bwapi/bwapi/BWAPI/Source/BWAPI/BWtoBWAPI.h | Github Open Source | Open Source | MIT | 2,022 | StardustDevEnvironment | ratiotile | C | Code | 18 | 86 | #pragma once
#include <BWAPI/Order.h>
#include <BWAPI/UnitType.h>
namespace BWAPI
{
extern int BWtoBWAPI_Order[Orders::Enum::MAX];
extern int AttackAnimationRestFrame[UnitTypes::Enum::MAX];
void BWtoBWAPI_init();
} | 11,764 |
https://github.com/ceti-dev/PhysX/blob/master/physx/documentation/PhysXAPI/files/structphysx_1_1Gu_1_1NarrowPhaseParams.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | PhysX | ceti-dev | JavaScript | Code | 25 | 232 | var structphysx_1_1Gu_1_1NarrowPhaseParams =
[
[ "NarrowPhaseParams", "structphysx_1_1Gu_1_1NarrowPhaseParams.html#a7e06ecf33181a9a53ea833ee097943be", null ],
[ "mContactDistance", "structphysx_1_1Gu_1_1NarrowPhaseParams.html#a2fa12b6a67441059365d7a9da301e326", null ],
[ "mMeshContactMargin", "structphysx_1... | 14,422 |
https://github.com/acritox/infrastructure-agent/blob/master/pkg/metrics/disk_linux.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | infrastructure-agent | acritox | Go | Code | 414 | 1,151 | // Copyright 2020 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
// +build linux
package metrics
import (
"fmt"
"runtime/debug"
"github.com/sirupsen/logrus"
)
func (m *DiskMonitor) Sample() (result *DiskSample, err error) {
defer func() {
if panicErr := recover(); panicErr ... | 10,832 |
https://github.com/fossabot/codewars/blob/master/kata/7 kyu/testing-1-2-3/index.ts | Github Open Source | Open Source | MIT | 2,022 | codewars | fossabot | TypeScript | Code | 17 | 42 | function number(array: string[]): string[] {
return array.map((line, index) => `${index + 1}: ${line}`);
}
export default number;
| 2,144 |
https://github.com/tiernanmartin/NeighborhoodChangeTypology/blob/master/man/export-model.Rd | Github Open Source | Open Source | MIT | 2,019 | NeighborhoodChangeTypology | tiernanmartin | R | Code | 67 | 419 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/export-model.R
\name{export_model_all_csv}
\alias{export_model_all_csv}
\alias{export_model_all_rds}
\alias{export_model_all_gpkg}
\alias{export_model_pdx18_gpkg}
\alias{export_model_coo16_gpkg}
\alias{export_model_coo18_gpkg}
\alias{export_m... | 18,799 |
https://github.com/kovdennik/TestEngine/blob/master/src/Engine/Renderer/Shaders/Parser.hpp | Github Open Source | Open Source | MIT | null | TestEngine | kovdennik | C++ | Code | 5,666 | 18,209 | // A Bison parser, made by GNU Bison 3.0.4.
// Skeleton interface for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2015 Free Software Foundation, Inc.
// 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 Soft... | 32,363 |
https://github.com/AgungPrabowo/Toko-Online/blob/master/application/views/user/view_contact.php | Github Open Source | Open Source | MIT | null | Toko-Online | AgungPrabowo | PHP | Code | 236 | 957 | <?php $this->load->view($header);?>
<?php $this->load->view($menu);?>
<!-- START Big Google Maps -->
<section class="maps">
<div id="gmaps-marker" style="height:360px;"></div>
</section>
<!--/ END Big Google Maps -->
<!-- START Contact Form + Infos -->
<section class="section bgcolor-white">
<div class="conta... | 34,506 |
https://github.com/tor-legit/rural-crowdsourcing-toolkit/blob/master/server/frontend/src/store/apis/HttpUtils.ts | Github Open Source | Open Source | MIT | 2,021 | rural-crowdsourcing-toolkit | tor-legit | TypeScript | Code | 431 | 933 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* Helper functions to interact with the backend
*/
import axios, { AxiosError } from 'axios';
import { AuthHeader } from '../../components/auth/Auth.extra';
import { ErrorBody } from './HttpResponseTypes';
/** Set axios base server URL ... | 29,044 |
https://github.com/progressive-identity/ref-python/blob/master/src/py/test_00.py | Github Open Source | Open Source | Apache-2.0 | null | ref-python | progressive-identity | Python | Code | 3 | 13 | import test_datetime
test_datetime.patch()
| 11,733 |
https://github.com/NL628/USACO/blob/master/18JanS1.cpp | Github Open Source | Open Source | MIT | 2,018 | USACO | NL628 | C++ | Code | 295 | 798 | // COMPETITION: USACO
// NAME: 2018JanS1, Lifeguards
// DATE: November 30, 2018
// STATUS: Finished
#include <bits/stdc++.h>
using namespace std;
typedef pair<double, double> pd;
typedef pair<int, int> pi;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<pi> vpi;
#define min3(a, b,... | 20,923 |
https://github.com/codierpro/vue_to_do_app/blob/master/src/components/ToDo.vue | Github Open Source | Open Source | MIT | null | vue_to_do_app | codierpro | Vue | Code | 294 | 1,034 | <template>
<div id="app">
<div class="ToDo">
<img class="Logo" :src="logo" alt="Vue logo" />
<h1 class="ToDo-Header">Vue To Do</h1>
<div class="ToDo-Container">
<div class="ToDo-Content">
<ToDoItem v-for="item in list" :item="item" @delete="onDeleteItem" :key="item.id" />
... | 50,073 |
https://github.com/hukl/rstats/blob/master/c_reference_sources/rtruncnorm.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | rstats | hukl | C | Code | 872 | 2,351 | /*
* rtruncnorm.c - Random truncated normal number generator.
*
* Authors:
* Björn Bornkamp <bornkamp@statistik.tu-dortmund.de>
* Olaf Mersmann <olafm@statistik.uni-dortmund.de>
*/
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
#include <Rinternals.h>
#include <R_ext/Applic.h>
#include <float.h>
... | 29,033 |
https://github.com/gjvanhalem/NetCICD-developer-toolbox/blob/master/runonce.sh | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | NetCICD-developer-toolbox | gjvanhalem | Shell | Code | 1,097 | 3,082 | #!/bin/bash
nexus_plugin="0.4.0"
echo "****************************************************************************************************************"
echo " Start clean"
echo "****************************************************************************************************************"
docker-compose down --r... | 10,598 |
https://github.com/ManuGar/objectDetectionAPI/blob/master/configs_slurm/tensorflow.sh | Github Open Source | Open Source | MIT | 2,022 | objectDetectionAPI | ManuGar | Shell | Code | 47 | 357 | #!/bin/sh
# Carga de librerías.
module load cuda/10.1.105
module load cudnn/7.6
module load python
# Configuración PYTHONPATH.
export PYTHONPATH=$PYTHONPATH:/home/jheras/ws/holms/models/research:/home/jheras/ws/holms/models/research/slim
# Configuración de parámetros para entrenar.
PIPELINE_CONFIG_PATH=/home/jheras/ws... | 3,015 |
https://github.com/michaldomino/Voice-interface-optimization/blob/master/lib/data/DTOs/requests/refresh_token_request.dart | Github Open Source | Open Source | MIT | null | Voice-interface-optimization | michaldomino | Dart | Code | 15 | 50 | class RefreshTokenRequest {
String refresh;
RefreshTokenRequest(this.refresh);
Map<String, dynamic> toJson() => {
'refresh': refresh,
};
} | 5,921 |
https://github.com/ishine/universal-data-tool/blob/master/src/components/Header/index.story.js | Github Open Source | Open Source | MIT | 2,022 | universal-data-tool | ishine | JavaScript | Code | 45 | 147 | // @flow
import React from "react"
import { storiesOf } from "@storybook/react"
import Header from "./"
storiesOf("Header", module)
.add("Tabs", () => (
<Header
title="Some Header"
tabs={["Setup", "Samples", "Label"]}
currentTab="Samples"
/>
))
.add("Sample Color", () => (
<Heade... | 49,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.