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/anjannath/minishift/blob/master/cmd/minishift/cmd/delete.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | minishift | anjannath | Go | Code | 699 | 2,367 | /*
Copyright 2016 The Kubernetes Authors 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
Unless required by applicable law or ag... | 29,505 |
https://github.com/deccer/Xacor/blob/master/Xacor.Game/GameBase.cs | Github Open Source | Open Source | MIT | 2,022 | Xacor | deccer | C# | Code | 325 | 1,165 | using System;
using System.Diagnostics;
using Xacor.Graphics.Api;
using Xacor.Input;
using Xacor.Platform;
namespace Xacor.Game
{
public class GameBase : IDisposable
{
private readonly Options _options;
private readonly IGamePlatformFactory _gamePlatformFactory;
private readonly IGameL... | 21,099 |
https://github.com/pombredanne/travis/blob/master/lib/travis/cli/setup/s3.rb | Github Open Source | Open Source | MIT | 2,013 | travis | pombredanne | Ruby | Code | 66 | 187 | require 'travis/cli/setup'
module Travis
module CLI
class Setup
class S3 < Service
description "automatic pushing to S3"
def run
deploy 's3', 'push' do |config|
config['access_key_id'] = ask("Access key ID: ").to_s
config['secret_access_key'] = ask("Secret... | 25,782 |
https://github.com/strassek/chromiumos-platform2/blob/master/camera/hal/mediatek/mtkcam/include/mtkcam/v4l2/V4L2LensMgr.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | chromiumos-platform2 | strassek | C | Code | 462 | 1,351 | /*
* Copyright (C) 2019 MediaTek Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 21,214 |
https://github.com/vivimice/influxdb/blob/master/ui/src/notebooks/components/panel/MovePanelButton.tsx | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,020 | influxdb | vivimice | TSX | Code | 104 | 294 | // Libraries
import React, {FC, MouseEvent} from 'react'
// Components
import {SquareButton, IconFont, ComponentStatus} from '@influxdata/clockface'
// Utils
import {event} from 'src/notebooks/shared/event'
interface Props {
onClick?: () => void
direction: 'up' | 'down'
active: boolean
}
const MovePanelUpButt... | 20,874 |
https://github.com/MonZop/BioBlender21/blob/master/bin/pdb2pqr-1.6/src/na.py | Github Open Source | Open Source | BSD-2-Clause | 2,020 | BioBlender21 | MonZop | Python | Code | 1,324 | 3,280 | """
Nucleic Acid Structures for PDB2PQR
This module contains the base nucleic acid structures for
pdb2pqr.
----------------------------
PDB2PQR -- An automated pipeline for the setup, execution, and analysis of
Poisson-Boltzmann electrostatics calculations
Copyright (c) 2002-2010, Jens Erik Nielsen, University C... | 16,820 |
https://github.com/specfocus/react-focus/blob/master/app/index.d.ts | Github Open Source | Open Source | MIT | null | react-focus | specfocus | TypeScript | Code | 38 | 98 | import AutoApp from './AutoApp';
import AppUI from './AppUI';
import AppContext from './AppContext';
import AppRouter from './AppRouter';
import defaultI18nProvider from '../features/i18n/defaultI18nProvider';
export * from '../features/core';
export * from '../components';
export { AutoApp, AppContext, AppRouter as Ap... | 52,259 |
https://github.com/bseeger/karaf/blob/master/shell/core/src/main/java/org/apache/karaf/shell/support/parsing/DefaultParser.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | karaf | bseeger | Java | Code | 238 | 518 | /*
* 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 ... | 20,707 |
https://github.com/hounangogogo/openAI-retro-sonic-game-DulingDeepQ/blob/master/third-party/capnproto/c++/src/capnp/CMakeFiles/capnpc_capnp.dir/cmake_clean.cmake | Github Open Source | Open Source | MIT-0, MIT | null | openAI-retro-sonic-game-DulingDeepQ | hounangogogo | CMake | Code | 17 | 120 | file(REMOVE_RECURSE
"CMakeFiles/capnpc_capnp.dir/compiler/capnpc-capnp.c++.o"
"capnpc-capnp"
"capnpc-capnp.pdb"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/capnpc_capnp.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
| 18,888 |
https://github.com/fajarlahhh/smpnempatbelasmataram/blob/master/app/Http/Controllers/KontakController.php | Github Open Source | Open Source | MIT | null | smpnempatbelasmataram | fajarlahhh | PHP | Code | 116 | 576 | <?php
namespace App\Http\Controllers;
use App\Models\Kontak;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\File;
class KontakController extends Controller
{
//
public function frontend(Request $req)
{
return view('fronten... | 15,865 |
https://github.com/ajlopez/AjTalkJava/blob/master/src/main/java/com/ajlopez/ajtalk/language/IObject.java | Github Open Source | Open Source | MIT | 2,012 | AjTalkJava | ajlopez | Java | Code | 30 | 103 | package com.ajlopez.ajtalk.language;
import com.ajlopez.ajtalk.ExecutionException;
import com.ajlopez.ajtalk.Machine;
public interface IObject {
IBehavior getBehavior();
Object getVariable(int offset);
void setVariable(int offset, Object value);
Object send(String selector, Object[] arguments, Machine machine) th... | 50,002 |
https://github.com/whatup1981/parsec/blob/master/parsec-gradle-plugin/src/main/java/com/yahoo/parsec/gradle/AbstractParsecGradleTask.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | parsec | whatup1981 | Java | Code | 118 | 372 | // Copyright 2016 Yahoo Inc.
// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
package com.yahoo.parsec.gradle;
import com.yahoo.parsec.gradle.utils.FileUtils;
import com.yahoo.parsec.gradle.utils.PathUtils;
import org.gradle.api.DefaultTask;
/**
* @... | 32,682 |
https://github.com/AdMiRaL1716/ReportsProject/blob/master/app/Http/Controllers/Services/ContentService.php | Github Open Source | Open Source | MIT | null | ReportsProject | AdMiRaL1716 | PHP | Code | 293 | 1,069 | <?php
namespace App\Http\Controllers\Services;
use App\Models\Report;
use App\Models\Test;
use Illuminate\Support\Facades\Validator;
class ContentService
{
public static function choiceOption($link, $element, $data)
{
switch ($link) {
case 'elements':
ElementService::inser... | 32,607 |
https://github.com/leginee/netbeans/blob/master/cnd/cnd.remote/src/org/netbeans/modules/cnd/remote/sync/Zipper.java | Github Open Source | Open Source | Apache-2.0 | null | netbeans | leginee | Java | Code | 752 | 1,543 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject... | 2,472 |
https://github.com/andretv/React-Redux-Boilerplate/blob/master/src/scss/variables/_border-radius.scss | Github Open Source | Open Source | MIT | 2,020 | React-Redux-Boilerplate | andretv | SCSS | Code | 2 | 8 | $border-radius: 4; | 16,953 |
https://github.com/Innmind/Http/blob/master/src/Factory/Header/Factories.php | Github Open Source | Open Source | MIT | 2,021 | Http | Innmind | PHP | Code | 167 | 631 | <?php
declare(strict_types = 1);
namespace Innmind\Http\Factory\Header;
use Innmind\Http\Factory\HeaderFactory as HeaderFactoryInterface;
use Innmind\Immutable\Map;
final class Factories
{
/** @var Map<string, HeaderFactoryInterface>|null */
private static ?Map $all = null;
private static ?HeaderFactoryI... | 33,183 |
https://github.com/sandsmark/freeage/blob/master/.gitmodules | Github Open Source | Open Source | BSD-3-Clause | 2,020 | freeage | sandsmark | Git Config | Code | 8 | 44 | [submodule "third_party/genieutils"]
path = third_party/genieutils
url = https://github.com/sandsmark/genieutils.git
| 31,015 |
https://github.com/tvolkert/co19/blob/master/LanguageFeatures/Super-mixins/mixin_members_t03.dart | Github Open Source | Open Source | BSD-3-Clause | null | co19 | tvolkert | Dart | Code | 606 | 1,601 | /*
* Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion The mixin introduced by a mixin declaration contains all the
* non-static memb... | 4,814 |
https://github.com/mattdeigh/react-jsonschema-form-extras/blob/master/lib/helpers/shortkey/addMention.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | react-jsonschema-form-extras | mattdeigh | JavaScript | Code | 252 | 894 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = addMention;
var _draftJs = require("draft-js");
var _draftjsUtils = require("draftjs-utils");
var _htmlToDraftjs = require("html-to-draftjs");
var _htmlToDraftjs2 = _interopRequireDefault(_htmlToDraftjs);
var _immutab... | 5,405 |
https://github.com/DecryptMedia/ost-wallet-sdk-react-native/blob/master/js/Redemptions/MultipleClickHandler.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | ost-wallet-sdk-react-native | DecryptMedia | JavaScript | Code | 46 | 98 | export default (func, wait = 500) => {
let tapCount = 0;
let handler;
return function() {
if (tapCount === 0) {
tapCount++;
func();
}
// Clear the previous timeout and set a new one.
clearTimeout(handler);
handler = setTimeout(() => (tapCount = 0), wait);
... | 31,438 |
https://github.com/LCOpenSDK/LCOpenSDK/blob/master/LeChangeNewDemo/Depend/LCAddDeviceModule/LCAddDeviceModule/AddDevice/QRCodeWay/Protocol/DHAddByQRCodeProtocol.swift | Github Open Source | Open Source | MIT | 2,020 | LCOpenSDK | LCOpenSDK | Swift | Code | 48 | 136 | //
// Copyright © 2018年 dahua. All rights reserved.
//
import Foundation
import UIKit
protocol IDHAddByQRCodeView: AnyObject {
var presenter: IDHAddByQRCodePresenter? {
get set
}
}
protocol IDHAddByQRCodePresenter: AnyObject {
var qrCodeContent: String? {
get
}
var container... | 42,706 |
https://github.com/theshadowx/TestEnv/blob/master/Vagrantfile | Github Open Source | Open Source | MIT | 2,016 | TestEnv | theshadowx | Ruby | Code | 66 | 227 | hosts = {
"test" => "192.168.1.50"
}
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/wily64"
config.ssh.insert_key = false
hosts.each do |name, ip|
config.vm.define name do |vm|
vm.vm.hostname = "%s" % name
# vm.vm.network "private_network", ip: ip
vm.vm.network "public_network",... | 24,641 |
https://github.com/almamedia/fargate/blob/master/cmd/service_restart.go | Github Open Source | Open Source | Apache-2.0 | null | fargate | almamedia | Go | Code | 95 | 316 | package cmd
import (
"github.com/almamedia/fargate/console"
ECS "github.com/almamedia/fargate/ecs"
"github.com/spf13/cobra"
)
type ServiceRestartOperation struct {
ServiceName string
}
var serviceRestartCmd = &cobra.Command{
Use: "restart <service-name>",
Short: "Restart service",
Long: `Restart service
Cr... | 34,206 |
https://github.com/xavierartot/Readable-Nanodegree/blob/master/src/components/Comments.js | Github Open Source | Open Source | MIT | 2,022 | Readable-Nanodegree | xavierartot | JavaScript | Code | 206 | 630 | /*
* Comments.js
* Copyright (C) 2018 xav <xav@xavs-Mac-mini>
*
* Distributed under terms of the MIT license.
*/
import React, { Component } from 'react'
import { withRouter, Link } from 'react-router-dom'
import { Label, Segment, List, Icon } from 'semantic-ui-react'
import { formatDate } from '../utils/helpers'
... | 40,005 |
https://github.com/annocx/learning-ios/blob/master/tech_yourself_ios7_in_21hours/HelloNoun/HelloNoun/ViewController.m | Github Open Source | Open Source | Apache-2.0 | 2,017 | learning-ios | annocx | Objective-C | Code | 106 | 308 | //
// ViewController.m
// HelloNoun
//
// Created by mcxiaoke on 15/8/17.
// Copyright (c) 2015年 mcxiaoke. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@property(weak, nonatomic) IBOutlet UILabel *titleLabel;
@property(weak, nonatomic) IBOutlet UILabel *label;
@property(strong, ... | 33,029 |
https://github.com/jamiefang/internetmap/blob/master/Android/app/src/main/java/com/peer1/internetmap/utils/ViewUtils.java | Github Open Source | Open Source | MIT | 2,019 | internetmap | jamiefang | Java | Code | 148 | 394 | package com.peer1.internetmap.utils;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
public class ViewUtils {
/**
* Runs an AlphaAnimation on the given view.
* Note, onAnimationEnd the view visibility will be set to GONE.
* setFillAft... | 45,728 |
https://github.com/marlonfan/nsq_to_swoole/blob/master/source/Exception/SocketException.php | Github Open Source | Open Source | MIT | 2,020 | nsq_to_swoole | marlonfan | PHP | Code | 18 | 51 | <?php
/**
* @author Iris Xie
* Create: 2017-05-30
*/
namespace Iris\NsqToSwoole\Exception;
class SocketException extends \RuntimeException {
}
| 21,490 |
https://github.com/Marsup/good/blob/master/test/monitor.js | Github Open Source | Open Source | BSD-3-Clause | null | good | Marsup | JavaScript | Code | 1,300 | 4,117 | // Load modules
var Fs = require('fs');
var Http = require('http');
var Async = require('async');
var Hapi = require('hapi');
var Lab = require('lab');
var GoodReporter = require('good-reporter');
var Monitor = require('../lib/monitor');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.l... | 12,303 |
https://github.com/GeekyShiva/IBM-Watson-Face-Detector-/blob/master/Assets/Watson/Scripts/Services/TradeoffAnalytics/v1/TradeoffAnalytics.cs | Github Open Source | Open Source | MIT | 2,020 | IBM-Watson-Face-Detector- | GeekyShiva | C# | Code | 747 | 1,999 | /**
* Copyright 2015 IBM Corp. 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
*
* Unless required by applicable law ... | 7,878 |
https://github.com/Dokotela/jessie/blob/master/lib/fhirpath/grammar/fhir_path.dart | Github Open Source | Open Source | MIT | null | jessie | Dokotela | Dart | Code | 32 | 126 | import '../selector/resource_type.dart';
import 'package:petitparser/petitparser.dart';
import '../selector.dart';
import '../selector/sequence.dart';
import 'selector.dart';
final fhirPath = (letter()
.plus()
.flatten()
.map((value) => ResourceType(value))
.star() &
... | 25,845 |
https://github.com/oajo2019/FullStack-MERN/blob/master/frontend/src/components/CreateUser.js | Github Open Source | Open Source | MIT | null | FullStack-MERN | oajo2019 | JavaScript | Code | 225 | 725 | import React, { useState, useEffect } from "react";
import Axios from "axios";
// JS
// const input = document.getElementById('myText');
// const inputValue = input.value
// React
// value, onChange
const CreateUser = () => {
// varibles de estado
const url = "http://localhost:4000/api/users/";
const [loading, s... | 43,579 |
https://github.com/NordCipher/tiket/blob/master/application/models/user/User_model.php | Github Open Source | Open Source | Apache-2.0 | null | tiket | NordCipher | PHP | Code | 613 | 2,458 | <?PHP
require_once __DIR__ . "/constants.php";
class User_model extends BaseMySQL_model
{
public static $CHANGE_PASSWORD_MSG = array(
1 => 'Successfully changed password.',
0 => 'There was some error creating your account! Please try again later.',
-1 => 'Incorrect old password',
);
public function __con... | 18,826 |
https://github.com/vaisup/systemverilog-1/blob/master/regressiontests/macro_params_string_with_comma2/test.sv | Github Open Source | Open Source | MIT | null | systemverilog-1 | vaisup | null | Spoken | 7 | 30 | `define FOO(a,b) [a]+[b]
`FOO( "abc,\"def\"", 2 ) | 53,126 |
https://github.com/KoueiYamaoka/slackbot/blob/master/plugins/ping.py | Github Open Source | Open Source | MIT | 2,018 | slackbot | KoueiYamaoka | Python | Code | 11 | 46 | # coding: utf-8
from slackbot.bot import respond_to
@respond_to('ping')
def pong(message):
message.reply('pong')
| 7,963 |
https://github.com/wonyeol/static-analysis-for-support-match/blob/master/tests/pyro_examples/csis_original.py | Github Open Source | Open Source | MIT | 2,022 | static-analysis-for-support-match | wonyeol | Python | Code | 281 | 1,145 | import torch
import torch.nn as nn
import torch.functional as F
import pyro
import pyro.distributions as dist
import pyro.infer
import pyro.optim
import os
smoke_test = ('CI' in os.environ)
n_steps = 2 if smoke_test else 2000
def model(prior_mean, observations={"x1": 0, "x2": 0}):
x = pyro.sample("z", dist.Norma... | 37,969 |
https://github.com/atefben/fdc/blob/master/src/FDC/CourtMetrageBundle/Resources/public/sass/base/_block.scss | Github Open Source | Open Source | MIT | null | fdc | atefben | SCSS | Code | 4,068 | 14,824 | // 2. Block
// - HALF DIV
// - THREE QUARTS DIV
// - CARDS
// - BLOCK 01
// - BLOCK 01 medium
// - BLOCK 01 small
// - BLOCK 01 m small
// - BLOCK 01 x small
// - BLOCK 02
// - BLOCK 03
// - BLOCK 05
// - BLOCK PUSH
// - BLOCK PUSH 02
// - BLOCK PUSH 03 (with margin)
// - BLOCK PUSH TOP
// - BLOCK LEGEND
// - BLOCK FIL... | 46,205 |
https://github.com/grahamedgecombe/icicle/blob/master/icicle/test/test_alu.py | Github Open Source | Open Source | ISC, BSD-2-Clause | 2,023 | icicle | grahamedgecombe | Python | Code | 143 | 681 | from unittest import TestCase
from amaranth.sim import Simulator, Delay
from icicle.alu import OperandMux, ASel, BSel, ResultMux, ResultSel
class OperandMuxTestCase(TestCase):
def test_a(self):
m = OperandMux()
sim = Simulator(m)
def process():
yield m.rs1_rdata.eq(1)
... | 23,914 |
https://github.com/ekvanox/adfree-viafree/blob/master/se.viafree.android/4.22.1/patched_source/smali_classes2/kotlin/w/f.smali | Github Open Source | Open Source | MIT | 2,021 | adfree-viafree | ekvanox | Smali | Code | 113 | 619 | .class Lkotlin/w/f;
.super Lkotlin/w/e;
.source "Sequences.kt"
# direct methods
.method public static a(Ljava/util/Iterator;)Lkotlin/w/b;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/... | 987 |
https://github.com/BlackKite0206233/Daan-Info-Web/blob/master/app/daan_info_web/Services/topicServices.php | Github Open Source | Open Source | MIT | null | Daan-Info-Web | BlackKite0206233 | PHP | Code | 29 | 146 | <?php
//處理專題內容的商業邏輯
namespace daan_info_web\Services;
use daan_info_web\Services\uploadFactoryFunction\Upload;
use Validator;
use Response;
use Illuminate\Http\Request;
use daan_info_web\Repositories\topicRepositories;
class topicServices
{
protected $topicRepositories;
public function __construct(topicRepo... | 35,406 |
https://github.com/INDElab/conversationkg/blob/master/analytics/embeddings_for_the_people/personalised_GPT2/process_emails.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | conversationkg | INDElab | Python | Code | 293 | 1,091 | # -*- coding: utf-8 -*-
import pickle
#import os
from datetime import datetime
#from tqdm import tqdm
import re
#import numpy as np
#from collections import Counter
#import html
import email.utils as mailutil
from dateutil.parser import parse as du_parse
#import datetime
from datetime import timedelta
from urllib.... | 5,042 |
https://github.com/Artyom17/dance-tonite/blob/master/src/sdftext/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | dance-tonite | Artyom17 | JavaScript | Code | 356 | 913 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 40,351 |
https://github.com/iangawronski/cheepcreep/blob/master/lib/cheepcreep.rb | Github Open Source | Open Source | MIT | 2,015 | cheepcreep | iangawronski | Ruby | Code | 213 | 856 | require "cheepcreep/version"
require "cheepcreep/init_db"
require "httparty"
require "pry"
module Cheepcreep
class CreateGithubUser < ActiveRecord::Base
end
end
class Github
include HTTParty
base_uri 'https://api.github.com'
def initialize
@auth = {:username => ENV['GITHUB_USER'], :password => ENV['GIT... | 19,864 |
https://github.com/813035778/eftiso8583/blob/master/src/main/java/com/aditiva/ISO8583/utils/TLVParser.java | Github Open Source | Open Source | MIT | 2,018 | eftiso8583 | 813035778 | Java | Code | 96 | 271 | package com.aditiva.ISO8583.utils;
import java.util.Arrays;
import java.util.HashMap;
/**
* @author aditiva
*/
public final class TLVParser {
public static HashMap<String,byte[]> parse(byte[] message, int tagLength, int lengthOfDataLen)
{
HashMap<String,byte[]> parts = new HashMap<>();
in... | 10,205 |
https://github.com/lantus/openbor/blob/master/openborscript.c | Github Open Source | Open Source | BSD-2-Clause | 2,017 | openbor | lantus | C | Code | 20,000 | 68,748 | /* * OpenBOR - http://www.LavaLit.com * ----------------------------------------------------------------------- * Licensed under the BSD licence, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2011 OpenBOR Team */ /* This file include all script methods used by openbor engine Notice: Make sure to nul... | 9,700 |
https://github.com/stack-of-tasks/sot-core/blob/master/src/tools/switch.cpp | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,022 | sot-core | stack-of-tasks | C++ | Code | 100 | 370 | // Copyright (c) 2017, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
#include <dynamic-graph/factory.h>
#include <sot/core/switch.hh>
#include "type-name-helper.hh"
namespace dynamicgraph {
namespace sot {
template <typename Tin, typename Tout, typename Time>
std::string VariadicAbstract<Tin, T... | 5,259 |
https://github.com/kikkoi/FlexDotnetCMS/blob/master/WebApplication/Frontend/styles/scss/base/_typography.scss | Github Open Source | Open Source | Apache-2.0 | 2,019 | FlexDotnetCMS | kikkoi | SCSS | Code | 340 | 1,153 | $brand-font: 'Work Sans', sans-serif;
$secondary-font: 'Bitter', serif;
@mixin header-font-style {
font-family: $brand-font;
font-weight: 700;
text-transform: uppercase;
}
body,
html {
font-size: 18px; // set base font size
font-family: $brand-font, arial, sans-serif; // set brand font family
color: $grey;... | 13,263 |
https://github.com/tk20dk/sally/blob/master/stm8flash/ihex.c | Github Open Source | Open Source | MIT | null | sally | tk20dk | C | Code | 353 | 1,028 | /* stlink/v2 stm8 memory programming utility
(c) Valentin Dudouyt, 2012 - 2014 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ihex.h"
#include "error.h"
#include "byte_utils.h"
char line[256];
static unsigned char checksum(unsigned char *buf, unsigned int length, int chunk_len, int chunk_... | 52,889 |
https://github.com/mgpavlov/SoftUni/blob/master/Java/Java Fundamentals/03.Java OOP Advanced - July 2018/ExamPreparation/02.ExamArrPeeGee_MartinBG/app/contracts/Writer.java | Github Open Source | Open Source | MIT | 2,019 | SoftUni | mgpavlov | Java | Code | 10 | 34 | package ExamArrPeeGee.app.contracts;
public interface Writer {
void writeLine(String text);
}
| 7,674 |
https://github.com/witoldswitek/wszib-courier/blob/master/src/Courier.Core/Services/ILocationService.cs | Github Open Source | Open Source | MIT | null | wszib-courier | witoldswitek | C# | Code | 25 | 90 | using Courier.Core.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Courier.Core.Services
{
public interface ILocationService
{
Task<bool> ExistAsync(string address);
Task<AddressDto> GetAsync(string address);
}
}
| 19,223 |
https://github.com/massnetwork/mass-browser/blob/master/chrome/test/data/extensions/api_test/enterprise_device_attributes/basic.js | Github Open Source | Open Source | GPL-3.0-only, BSD-3-Clause | 2,017 | mass-browser | massnetwork | JavaScript | Code | 81 | 207 | // Copyright 2015 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.
// Must be packed to ../enterprise_device_attributes.crx using the private key
// ../enterprise_device_attributes.pem .
// The expected directory device ... | 40,053 |
https://github.com/nicksnyder/Delta/blob/master/Pods/Target Support Files/Alpha/Alpha-umbrella.h | Github Open Source | Open Source | MIT | null | Delta | nicksnyder | C | Code | 14 | 60 | #import <UIKit/UIKit.h>
#import "Alpha.h"
#import "AlphaProvider.h"
FOUNDATION_EXPORT double AlphaVersionNumber;
FOUNDATION_EXPORT const unsigned char AlphaVersionString[];
| 14,922 |
https://github.com/rachael-soh/Online-Learning-webapp/blob/master/app/Views/pages/editQuestion.php | Github Open Source | Open Source | MIT | null | Online-Learning-webapp | rachael-soh | PHP | Code | 291 | 1,127 | <li class="breadcrumb-item text-dark"> <a class="text-dark" href="<?php echo site_url('classes/viewClass/')?><?php echo session()->get('class_id') ?>"> <?php echo session()->get('class_name') ?> </a> </li>
<li class="breadcrumb-item text-dark"> <a class="text-dark" href="<?php echo site_url('TestReport/tests')?>"> Test... | 24,934 |
https://github.com/openfun/joanie/blob/master/src/tray/templates/services/app/secret.yml.j2 | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | joanie | openfun | null | Spoken | 39 | 99 | apiVersion: v1
kind: Secret
metadata:
labels:
app: joanie
service: joanie
name: "{{ joanie_secret_name }}"
namespace: "{{ namespace_name }}"
data:
{% for k, v in JOANIE_VAULT.items() %}
{{ k }}: {{ v | default('') | b64encode }}
{% endfor %}
| 43,896 |
https://github.com/web3000123x/EtherScore/blob/master/contracts/node_modules/@graphql-tools/stitch/selectionSetArgs.d.ts | Github Open Source | Open Source | MIT | 2,021 | EtherScore | web3000123x | TypeScript | Code | 21 | 53 | import { SelectionSetNode, FieldNode } from 'graphql';
export declare const forwardArgsToSelectionSet: (selectionSet: string, mapping?: Record<string, string[]>) => (field: FieldNode) => SelectionSetNode;
| 39,476 |
https://github.com/sirivus/studioonline/blob/master/node_modules/ipfs-unixfs-importer/dist/src/chunker/fixed-size.d.ts | Github Open Source | Open Source | MIT | 2,022 | studioonline | sirivus | TypeScript | Code | 9 | 37 | declare const _exports: import('../types').Chunker;
export = _exports;
//# sourceMappingURL=fixed-size.d.ts.map | 19,089 |
https://github.com/nhatuan87/crstream/blob/master/examples/PingPong/PingPong.ino | Github Open Source | Open Source | MIT | null | crstream | nhatuan87 | null | Spoken | 233 | 894 | #include <crstream.h>
#include <uniqueID.h>
/*
* Cresson RF module connects to uC using UART serial interface.
* It supports HardwareSerial / SoftwareSerial and power pin.
* Please modify instantiation below corresponding to actual hardware.
*/
//#define CRESSON_POWER_PIN NO_POWERPIN
#if defined(ARDUINO_ARCH_A... | 12,067 |
https://github.com/IMULMUL/PSReflect-Functions/blob/master/Structures/SHARE_INFO_2.ps1 | Github Open Source | Open Source | BSD-3-Clause | 2,023 | PSReflect-Functions | IMULMUL | PowerShell | Code | 55 | 170 | $SHARE_INFO_2 = struct $Module SHARE_INFO_2 @{
shi2_netname = field 0 String -MarshalAs @('LPWStr')
shi2_type = field 1 UInt32
shi2_remark = field 2 String -MarshalAs @('LPWStr')
shi2_permissions = field 3 UInt32
shi2_max_uses = field 4 UInt32
shi2_current_uses = field 5... | 7,046 |
https://github.com/NeatNerdPrime/magic-wormhole/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,023 | magic-wormhole | NeatNerdPrime | Makefile | Code | 267 | 1,070 | # How to Make a Release
# ---------------------
#
# This file answers the question "how to make a release" hopefully
# better than a document does (only meejah and warner may currently do
# the "upload to PyPI" part anyway)
#
default:
echo "see Makefile"
release-clean:
@echo "Cleanup stale release: " `python newest... | 44,041 |
https://github.com/Sinharitik589/react-native-elements/blob/master/packages/themed/src/BottomSheet/__tests__/BottomSheet.test.tsx | Github Open Source | Open Source | MIT | 2,022 | react-native-elements | Sinharitik589 | TypeScript | Code | 68 | 223 | import React from 'react';
import BottomSheet from '../index';
import { renderWithWrapper } from '../../../.ci/testHelper';
import { SafeAreaView } from 'react-native-safe-area-context';
describe('BottomSheet Component', () => {
it('Should use Theme', () => {
const { wrapper } = renderWithWrapper(
<BottomS... | 20,418 |
https://github.com/rcasanovan/JMusic/blob/master/JMusicLibrary/src/jmusic/player/controller/AboutWindowViewController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | JMusic | rcasanovan | Java | Code | 61 | 158 | package jmusic.player.controller;
import jmusic.player.view.MyOwnJFrame;
/**
* View controller class for the About window
* @author Ricardo Casanova
* @version 1.0.0
* @since JMusic 1.0.0
*/
public final class AboutWindowViewController
{
/**
* Method to return to the father window from here
* @para... | 39,519 |
https://github.com/thantalas/slim-Nne/blob/master/Nne/Nne/Views/admin/templates/layout/head.php | Github Open Source | Open Source | MIT | 2,018 | slim-Nne | thantalas | PHP | Code | 56 | 349 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Nnet csm" />
<meta name =robots content="noindex" />
<meta name =robots content="nofol... | 46,921 |
https://github.com/jianglei-zll/supplier_web/blob/master/src/views/pms/productCate/index.vue | Github Open Source | Open Source | MIT | null | supplier_web | jianglei-zll | Vue | Code | 833 | 3,868 | <template>
<div class="app-container">
<div class="tbtns">
<p @click="handleAddProductCate()">添加</p>
</div>
<div class="table-container">
<el-table
ref="productCateTable"
style="width: 100%"
:data="list"
v-loading="listLoading"
border
>
<el... | 52,089 |
https://github.com/Bruno-Sil/Backend_SiteCarnaubavalley/blob/master/bruno/backend/classes/startup.php | Github Open Source | Open Source | MIT | null | Backend_SiteCarnaubavalley | Bruno-Sil | PHP | Code | 1,773 | 6,744 | <?php
class Startup
{
private $id;
private $logo;
private $nome;
private $razao_social;
private $cnpj;
private $email;
private $data_fundacao;
private $telefone;
private $descricao_curta;
private $descricao;
private $tags;
private $modelo_negocio;
private $publico_a... | 26,717 |
https://github.com/izeigerman/akka/blob/master/akka-stream-tests/src/test/scala/akka/stream/scaladsl/TickSourceSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | akka | izeigerman | Scala | Code | 347 | 1,514 | /**
* Copyright (C) 2014-2018 Lightbend Inc. <https://www.lightbend.com>
*/
package akka.stream.scaladsl
import scala.concurrent.duration._
import akka.stream.{ ClosedShape, ActorMaterializer }
import akka.stream.testkit._
import akka.stream.testkit.Utils._
import akka.stream.testkit.scaladsl.StreamTestKit._
import... | 8,104 |
https://github.com/dina-fouad/pyccel/blob/master/doc/scripts/scripts/Functional_Stmts.py | Github Open Source | Open Source | MIT | 2,022 | pyccel | dina-fouad | Python | Code | 134 | 395 | a0 = [6]*10
a1 = sum(a0[i] for i in range(len(a0)))
a2 = sum(i for i in a0)
a3 = max(i if i>k else k for i in range(5) for k in range(10))
a4 = min(k if i>k else 0 if i==k else i for i in range(5) for k in range(10))
#$ header function incr(int)
def incr(x):
y = x + 1
return y
from numpy import ones
a=ones((5... | 51,425 |
https://github.com/flitzmo-hso/Leitsteuerung_Panel/blob/master/node_modules/@patternfly/react-tokens/dist/js/c_table_m_compact_tr_td_responsive_PaddingTop.d.ts | Github Open Source | Open Source | MIT | 2,021 | Leitsteuerung_Panel | flitzmo-hso | TypeScript | Code | 14 | 115 | export const c_table_m_compact_tr_td_responsive_PaddingTop: {
"name": "--pf-c-table--m-compact-tr-td--responsive--PaddingTop",
"value": "0.25rem",
"var": "var(--pf-c-table--m-compact-tr-td--responsive--PaddingTop)"
};
export default c_table_m_compact_tr_td_responsive_PaddingTop; | 11,002 |
https://github.com/thatmaxplayle/Discord.Webhooks/blob/master/Discord.Webhooks.Test/Program.cs | Github Open Source | Open Source | MIT | 2,021 | Discord.Webhooks | thatmaxplayle | C# | Code | 66 | 220 | using System;
using System.Net.Http;
using System.Security.Cryptography;
using Discord.Webhooks;
namespace Discord.Webhooks.Test
{
class Program
{
static void Main(string[] args)
{
while (true)
Tick();
}
static void Tick()
{
Cons... | 42,807 |
https://github.com/Daven-/laravel-todo-list/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | 2,016 | laravel-todo-list | Daven- | JavaScript | Code | 85 | 252 | /**
* @Author: Daven
* @Date: 2016-04-19T09:41:41-07:00
* @Email: daven1919@gmail.com
* @Last modified by: Daven
* @Last modified time: 2016-04-19T13:09:58-07:00
*/
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management... | 21,802 |
https://github.com/AITosee/Sentry-Mixly-/blob/master/Sentry-Arduino/src/protoc/protocol_types.h | Github Open Source | Open Source | Apache-2.0 | null | Sentry-Mixly- | AITosee | C | Code | 218 | 905 | #ifndef PROTOCOL_TYPES_H_
#define PROTOCOL_TYPES_H_
#include "SimpleList.h"
#include <stdint.h>
#include "../hardware/hw_conf.h"
#ifdef SENTRY_MAX_RESULT
/* QRCode = (cmd + frame + version_id + start_id + stop_id + (x,y,w,h,num_code) * sizeof(uint16) + ALIGN_UP(num_code * sizeof(uint16), 10)) + protocol_size */
#defi... | 8,944 |
https://github.com/salewski/sedbf/blob/master/tools/strip.sh | Github Open Source | Open Source | WTFPL | 2,019 | sedbf | salewski | Shell | Code | 9 | 37 | #!/bin/bash
tr '\n' ' ' | sed -E "s/[^][+,.<>!0-9-]//g"
| 6,038 |
https://github.com/yunzhe-tao/sagemaker-rl-container/blob/master/src/vw-serving/src/vw_serving/sagemaker/error_handler.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | sagemaker-rl-container | yunzhe-tao | Python | Code | 431 | 1,161 | """
Module which contains the necessary components to handle MXNet errors and resurface those back to customers
with user friendly messaging. Algorithm authors have the ability to customize the error messaging per algorithm
based on the errors thrown by MXNet in different scenarios.
"""
import logging
import sys
from ... | 40,484 |
https://github.com/patrickbdev/ViewInspector/blob/master/Tests/ViewInspectorTests/Gestures/RotationGestureTests.swift | Github Open Source | Open Source | MIT | null | ViewInspector | patrickbdev | Swift | Code | 284 | 1,173 | import XCTest
import SwiftUI
import Combine
@testable import ViewInspector
// MARK: - Retotation Gesture Tests
@available(iOS 13.0, macOS 10.15, *)
@available(tvOS, unavailable)
final class RotationGestureTests: XCTestCase {
var rotationAngle: Angle?
var rotationValue: RotationGesture.Value?
var ges... | 44,760 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/e/ethereumjs-vm/src/main/scala/typingsSlinky/ethereumjsVm/05ModexpMod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 31 | 186 | package typingsSlinky.ethereumjsVm
import typingsSlinky.ethereumjsVm.evmMod.ExecResult
import typingsSlinky.ethereumjsVm.typesMod.PrecompileInput
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, ... | 35,895 |
https://github.com/thomasbrockmeier-ams/Open3D-ML/blob/master/eval.py | Github Open Source | Open Source | MIT | null | Open3D-ML | thomasbrockmeier-ams | Python | Code | 88 | 369 | import os
import ml3d as _ml3d
import ml3d.tf as ml3d
def main():
cfg_file = "ml3d/configs/randlanet_amsterdam3d.yml"
cfg = _ml3d.utils.Config.load_from_file(cfg_file)
model = ml3d.models.RandLANet(**cfg.model)
cfg.dataset['dataset_path'] = "datasets/Cyclomedia_pc_verified"
dataset = _ml3d.dataset... | 12,512 |
https://github.com/rajivnmg/pitchandswitch/blob/master/admin/src/models/offerTrade.js | Github Open Source | Open Source | MIT | 2,019 | pitchandswitch | rajivnmg | JavaScript | Code | 77 | 312 | 'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
global.Promise = mongoose.Promise;
var bcrypt = require('bcrypt-nodejs');
var OfferTradeSchema = new Schema({
pitchUserId:{
type: Schema.Types.ObjectId,
ref: 'User'
},
SwitchUserId:{
type: Schema.Types.ObjectId,
ref: 'User'
},
SwitchUs... | 7,720 |
https://github.com/bnbsystems/renaissance_asset_website/blob/master/themes/gatsby-theme-graphql-playground/src/components/colormode-toggle.tsx | Github Open Source | Open Source | MIT | null | renaissance_asset_website | bnbsystems | TypeScript | Code | 93 | 343 | /** @jsx jsx */
import { jsx } from "theme-ui"
type Props = {
isDark: boolean
toggle: (e: React.SyntheticEvent) => void
}
// Adapted from: https://codepen.io/aaroniker/pen/KGpXZo and https://github.com/narative/gatsby-theme-novela/blob/714b6209c5bd61b220370e8a7ad84c0b1407946a/%40narative/gatsby-theme-novela/src/c... | 5,652 |
https://github.com/sisbell/jaxme/blob/master/source/jaxme-jm/src/main/java/org/apache/ws/jaxme/generator/types/AtomicTypeSGImpl.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain | 2,012 | jaxme | sisbell | Java | Code | 451 | 1,506 | /*
* Copyright 2003, 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,264 |
https://github.com/BBalazs458/Helixlab_Project/blob/master/FinalProject/Assets/Scene/Sandbox.unity | Github Open Source | Open Source | Apache-2.0 | 2,021 | Helixlab_Project | BBalazs458 | Unity3D Asset | Code | 20,000 | 85,788 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!29 &1 OcclusionCullingSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_OcclusionBakeSettings: smallestOccluder: 5 smallestHole: 0.25 backfaceThreshold: 100 m_SceneGUID: 09400216c9ab4e049aadedf93cf33fc5 m_OcclusionCullingData: {fileID: 36300000, guid: 13f165860420c4b4... | 13,481 |
https://github.com/wanderer6994/Volte/blob/master/src/Data/Models/EventArgs/ModActionEventArgs.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,019 | Volte | wanderer6994 | C# | Code | 212 | 556 | using System;
using Discord;
using Volte.Commands;
namespace Volte.Data.Models.EventArgs
{
public class ModActionEventArgs
{
public IGuildUser Moderator { get; }
public VolteContext Context { get; }
public ModActionType ActionType { get; }
public string Reason { get; }
p... | 7,835 |
https://github.com/juseongkr/BOJ/blob/master/acmicpc/7453.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | BOJ | juseongkr | C++ | Code | 172 | 478 | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
#define MAX 4001
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<int> ab, cd;
int a[MAX], b[MAX], c[MAX], d[MAX];
int n;
cin >> n;
for (int i=0; i<n; ++i)
cin >> a[i] >> b[i] >> c[i] >> d[i];
for (i... | 19,637 |
https://github.com/jxw-tmp/nimbro_picking/blob/master/apc_object_perception/apc_densecap/densecap/preprocess_centauro_imagenet.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,017 | nimbro_picking | jxw-tmp | Python | Code | 1,350 | 4,334 | # coding=utf8
import argparse, os, json, string
from collections import Counter
from Queue import Queue
from threading import Thread, Lock
from math import floor
import h5py
import numpy as np
import sys
import xmltodict
import os
from scipy.misc import imread, imresize
OBJECTS = [
("", "[background]"),
("n0323972... | 37,639 |
https://github.com/anthonybrown/frontend/blob/master/integration-tests/webdriver/src/test/java/com/gu/test/NavigationSteps.java | Github Open Source | Open Source | Apache-2.0 | null | frontend | anthonybrown | Java | Code | 298 | 1,191 | package com.gu.test;
import com.gu.test.actions.asserts.AssertSectionIsExpanded;
import com.gu.test.actions.asserts.AssertSectionIsHidden;
import com.gu.test.actions.ui.ExpandSectionAction;
import com.gu.test.actions.ui.HideSectionAction;
import com.gu.test.actions.ui.SelectArticleAction;
import com.gu.test.actions.ui... | 15,480 |
https://github.com/DotOS/android_frameworks_base/blob/master/core/java/android/net/KeepalivePacketData.java | Github Open Source | Open Source | LicenseRef-scancode-unicode, Apache-2.0 | 2,021 | android_frameworks_base | DotOS | Java | Code | 423 | 993 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 8,012 |
https://github.com/openphacts/BridgeDb_Old/blob/master/org.bridgedb.uri.sql/src/org/bridgedb/uri/SetMappings.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,014 | BridgeDb_Old | openphacts | Java | Code | 533 | 1,521 | // BridgeDb,
// An abstraction layer for identifier mapping services, both local and online.
//
// Copyright 2006-2009 BridgeDb developers
// Copyright 2012-2013 Christian Y. A. Brenninkmeijer
// Copyright 2012-2013 OpenPhacts
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use t... | 22,367 |
https://github.com/frykten/addepar-style-toolbox/blob/master/styles/core/core-variables/_animations.scss | Github Open Source | Open Source | MIT | null | addepar-style-toolbox | frykten | SCSS | Code | 74 | 326 | // -----------------------------------
// Core - Core Variables | Animations
// -----------------------------------
@import 'duration';
// Animation types
// -------------------------
$core-animation-type-shake: shake !default;
$core-animation-type-spin: spin !default;
$core-animation-t... | 14,036 |
https://github.com/daphnis-automation/example-website/blob/master/src/app/app.routing.ts | Github Open Source | Open Source | MIT | null | example-website | daphnis-automation | TypeScript | Code | 104 | 308 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
import { LandingLayoutComponent } from './layouts/landing-layout.component';
import { MainModule } from './modules/main/main.module';
const routes: Routes = [
{
... | 50,877 |
https://github.com/mido-mid/ATMS/blob/master/app/Http/Controllers/QuestionController.php | Github Open Source | Open Source | MIT | null | ATMS | mido-mid | PHP | Code | 330 | 1,078 | <?php
namespace App\Http\Controllers;
use App\Models\Question;
use Illuminate\Http\Request;
class QuestionController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$questions = Questio... | 29,247 |
https://github.com/mancjs/mancjs-code-golf/blob/master/src/challenges/c0-hello-world/index.ts | Github Open Source | Open Source | MIT | 2,021 | mancjs-code-golf | mancjs | TypeScript | Code | 39 | 84 | import type { Challenge } from "..";
import solution from "./solution";
const challenge: Challenge = {
input: "",
title: "Hello World",
output: solution(),
description: `Write a function that returns "Hello, World!".`,
example: `⟶ "Hello, World!"`,
};
export = challenge;
| 26,254 |
https://github.com/skyportsystems/incubator-samza/blob/master/samza-core/src/test/scala/org/apache/samza/system/chooser/TestBufferingMessageChooser.scala | Github Open Source | Open Source | Apache-2.0 | null | incubator-samza | skyportsystems | Scala | Code | 381 | 1,197 | /*
* 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 ... | 48,225 |
https://github.com/richarrieta/miequipo/blob/master/app/controllers/administracion/seguridad/GruposController.php | Github Open Source | Open Source | MIT | null | miequipo | richarrieta | PHP | Code | 249 | 986 | <?php namespace Administracion\Seguridad;
class GruposController extends \Administracion\TablasBaseController {
public function __construct() {
parent::__construct();
}
public function getModificar($id = null) {
if ($id==null) {
$data['grupo'] = new \Grupo();
$per... | 54,053 |
https://github.com/alibaba/G3D/blob/master/demo/041-picking-main.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | G3D | alibaba | JavaScript | Code | 193 | 589 | function main(
G3D,
{ canvas, requestAnimationFrame, onClickCanvas }
) {
const engine = new G3D.Engine(canvas);
const scene = new G3D.Scene(engine);
const camera = new G3D.RotatePerspectiveCamera(scene);
camera.alpha = -60;
camera.beta = 30;
camera.radius = 6;
const light1 = new ... | 13,102 |
https://github.com/pughua/Orleans.Sagas/blob/master/Orleans.Sagas/ActivityDefinition.cs | Github Open Source | Open Source | MIT | 2,020 | Orleans.Sagas | pughua | C# | Code | 60 | 151 | using System;
namespace Orleans.Sagas
{
public class ActivityDefinition<TConfig> : ActivityDefinition
{
public TConfig Config { get; }
public ActivityDefinition() : base()
{
}
public ActivityDefinition(Type type, TConfig config) : base(type)
{
Conf... | 40,666 |
https://github.com/1060680253/AndroidChromium/blob/master/app/src/main/java/org/chromium/chrome/browser/vr_shell/VrCoreVersionChecker.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | AndroidChromium | 1060680253 | Java | Code | 73 | 135 | // Copyright 2016 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.
package org.chromium.chrome.browser.vr_shell;
/**
* Abstracts away the VrCoreVersionCheckerImpl class, which may or may not be present at runtime
* dep... | 42,246 |
https://github.com/zhangdapeng520/zdpgo_email/blob/master/imap/client/cmd_auth.go | Github Open Source | Open Source | MIT | null | zdpgo_email | zhangdapeng520 | Go | Code | 1,331 | 3,149 | package client
import (
"errors"
"time"
"github.com/zhangdapeng520/zdpgo_email/imap"
"github.com/zhangdapeng520/zdpgo_email/imap/commands"
"github.com/zhangdapeng520/zdpgo_email/imap/responses"
)
// ErrNotLoggedIn is returned if a function that requires the client to be
// logged in is called then the client is... | 3,686 |
https://github.com/CalvinLowe/tnn/blob/master/css/scss/_variables.scss | Github Open Source | Open Source | MIT | null | tnn | CalvinLowe | SCSS | Code | 77 | 398 | // _variables.scss
// Find colours names from coolrs.io
// Light Colours
$tnn-primary: #78bc42;
$tnn-primary-variation-1: #79bc43;
$tnn-primary-variation-2: #79bb43; //Recipes header
$tnn-primary-variation-3: #93C967;
// Dark Colours
$tnn-secondary: #6a8139;
$tnn-secondary-variation-1: #6a823a;
// Neutrals
$tnn-gre... | 27,311 |
https://github.com/jorgejimenez98/backend-evaluacion-desempenno/blob/master/backend/apps/currency/migrations/0001_initial.py | Github Open Source | Open Source | MIT | null | backend-evaluacion-desempenno | jorgejimenez98 | Python | Code | 40 | 157 | # Generated by Django 3.2.2 on 2021-06-04 04:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Currency',
fields=[
('id', models.IntegerFi... | 8,584 |
https://github.com/jqueuniet/nixos-host-configs/blob/master/hosts/master1.nix | Github Open Source | Open Source | MIT | null | nixos-host-configs | jqueuniet | null | Spoken | 38 | 148 | {config, pkgs, ...}:
{
networking.hostName = "master1";
networking.interfaces.ens2.useDHCP = true;
networking.interfaces.ens2.ipv6.addresses = [ {
address = "2001:bc8:600:2227::1";
prefixLength = 64;
} ];
networking.defaultGateway6 = {
address = "2001:bc8:600:2227::";
interface = "ens2";
};... | 934 |
https://github.com/apache/ambari/blob/master/ambari-server/src/main/java/org/apache/ambari/server/controller/ResourceProviderFactory.java | Github Open Source | Open Source | GPL-1.0-or-later, GPL-2.0-or-later, OFL-1.1, MS-PL, AFL-2.1, GPL-2.0-only, Python-2.0, Apache-2.0, BSD-2-Clause, MIT, BSD-3-Clause, LicenseRef-scancode-free-unknown | 2,023 | ambari | apache | Java | Code | 211 | 748 | /*
* 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 ... | 22,542 |
https://github.com/notomo/favostack/blob/master/src/scripts/state.ts | Github Open Source | Open Source | MIT | null | favostack | notomo | TypeScript | Code | 200 | 575 | export enum NextState {
temporary,
permanent,
}
export class NextStates {
private static QUEUE_SIZE = 3;
constructor(
private readonly states: Map<string, NextState> = new Map<
string,
NextState
>(),
private readonly queue: CappedQueue<string> = new CappedQueue<string>(
NextState... | 7,429 |
https://github.com/mahuerta/TestingSpringNodeJS/blob/master/Java/src/test/java/es/urjc/code/daw/library/util/BookTestUtils.java | Github Open Source | Open Source | MIT | 2,021 | TestingSpringNodeJS | mahuerta | Java | Code | 32 | 76 | package es.urjc.code.daw.library.util;
public class BookTestUtils {
protected final static String EXAMPLE_TITLE = "Book 1";
protected final static String EXAMPLE_DESCRIPTION = "Book 1 description";
protected final static String BOOK_SEQUEL = " 2";
}
| 23,514 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.