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/lamusique/ScalaSandbox/blob/master/ScalaJS-workbench-example-app/src/test/scala/utils/ListUtilityTest.scala | Github Open Source | Open Source | Apache-2.0 | null | ScalaSandbox | lamusique | Scala | Code | 57 | 157 | package utils
import utest._
object ListUtilityTest extends TestSuite {
import utils.LoggingUtility._
val tests = Tests{
'match - {
val arg = List(('a, false), ('b, true), ('c, true), ('d, false), ('e, false), ('f, true), ('g, false), ('h, true), ('i, true), ('j, false), ('k, true), ('l, true), ('m, ... | 3,273 |
https://github.com/Dzmuh/webstack-by-daniel/blob/master/bulky/src/Bulky/SqlServerBulkCopy.cs | Github Open Source | Open Source | MIT | 2,022 | webstack-by-daniel | Dzmuh | C# | Code | 485 | 1,546 | using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Linq;
using TableDescriptor;
namespace bulky
{
/// <summary>
/// Performs high speed bulk inserts against a SQL Server database.
/// Optimizations:
/// - TABLOCK is set
/// - The... | 35,543 |
https://github.com/codebreaker/tumblean/blob/master/app/src/main/java/in/flashbulb/tumblean/Application.kt | Github Open Source | Open Source | Apache-2.0 | null | tumblean | codebreaker | Kotlin | Code | 74 | 352 | package `in`.flashbulb.tumblean
import `in`.flashbulb.tumblean.util.Prefs
import com.tumblr.jumblr.JumblrClient
/**
* Created by sruthi on 4/29/18.
*/
class Application:android.app.Application(){
private val CONSUMER_SECRET = "XsmLGRZvZZeONhuIBAa7ZdLCH0HNFFEK0wojILjW5lipH4PBmo"
private val CONSUMER_KEY = "d... | 44,259 |
https://github.com/kubernetes-sigs/kubetest2/blob/master/kubetest2-gke/deployer/version.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | kubetest2 | kubernetes-sigs | Go | Code | 643 | 1,499 | /*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 39,551 |
https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/ruby/example_code/cloudtrail/lookup_events.rb | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | aws-doc-sdk-examples | awsdocs | Ruby | Code | 91 | 306 | # frozen_string_literal: true
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# Demonstrates how to look up AWS CloudTrail trail events
# snippet-start:[cloudtrail.Ruby.lookupEvents]
require "aws-sdk-cloudtrail" # v2: require 'aws-sdk'
# @param [Object] cli... | 53,810 |
https://github.com/cautioncreation/gatsby-blog/blob/master/src/components/grid/index.js | Github Open Source | Open Source | MIT | 2,020 | gatsby-blog | cautioncreation | JavaScript | Code | 112 | 314 | import React from 'react'
import * as S from './style'
export const Row = ({ children }) => (
<S.Row>
{children}
</S.Row>
)
export const Column = ({ children, xs, sm, md, lg, xl, spacer }) => (
<S.Column xs={xs} sm={sm} md={md} lg={lg} xl={xl} spacer={spacer}>
{children}
</S.Column>
)
export const Section =... | 3,849 |
https://github.com/Estudantinder/estudantinder-api/blob/master/src/main/java/org/estudantinder/features/Users/Filters/ShowUserFilters/Controller.java | Github Open Source | Open Source | MIT | null | estudantinder-api | Estudantinder | Java | Code | 74 | 289 | package org.estudantinder.features.Users.Filters.ShowUserFilters;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.core.Response;
import org.eclipse.microprofile.jwt.JsonWebToken;
import org.estudantinder.entities.Preferences;
impo... | 45,677 |
https://github.com/kanekky/Examples-Android/blob/master/HostWebView/src/me/akabeko/hostwebview/GoogleMapsActivity.java | Github Open Source | Open Source | MIT | 2,014 | Examples-Android | kanekky | Java | Code | 453 | 1,511 | package me.akabeko.hostwebview;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMet... | 20,693 |
https://github.com/AleksanderPopov/samael/blob/master/lib/master/collector/suite.ts | Github Open Source | Open Source | MIT | 2,021 | samael | AleksanderPopov | TypeScript | Code | 267 | 910 | import { Configuration } from '../../configuration';
import { AfterRunSuiteInfo } from '../../listener/afterRunSuiteInfo';
import { AfterRunTestInfo } from '../../listener/afterRunTestInfo';
import { Error } from '../../listener/error';
import { SuiteStatus } from '../../listener/suiteStatus';
import { Util } from '../... | 21,760 |
https://github.com/widyaop/ormawamanager/blob/master/app/Nomorsuratkeluar.php | Github Open Source | Open Source | MIT | null | ormawamanager | widyaop | PHP | Code | 41 | 183 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Nomorsuratkeluar extends Model
{
protected $primaryKey = 'id';
protected $fillable = [
'nomorsuratkeluarconf_id',
'user_id',
'nomor_suratkeluar'
];
public function Nomorsuratkeluarconf(){
return $this->hasMan... | 20,023 |
https://github.com/jdeathe/centos-ssh-haproxy/blob/master/src/etc/systemd/system/centos-ssh-haproxy@.service | Github Open Source | Open Source | MIT | 2,019 | centos-ssh-haproxy | jdeathe | null | Spoken | 572 | 2,666 | # ------------------------------------------------------------------------------
# Naming convention:
#
# centos-ssh-haproxy@.service = {service-unit-install-template-name}
# |
# +--------------------- {image-name}
#
# haproxy@.service = {service-unit-template-name}
# |
# +--------... | 144 |
https://github.com/roginvs/space-rangers-quest/blob/master/src/lib/formula/parser.ts | Github Open Source | Open Source | MIT | 2,023 | space-rangers-quest | roginvs | TypeScript | Code | 776 | 2,031 | import {
Token,
Expression,
NumberExpression,
SyntaxKind,
ParameterExpression,
RangePart,
RangeExpression,
SyntaxKindBinary,
} from "./types";
const MAX_PRECEDENCE = 8;
/**
* If candidate is binary token on presedence, then return corresponding binary operator
*/
function isTokenBinaryOperator(
pr... | 24,874 |
https://github.com/codeEmano/My-notes/blob/master/front-end/src/Components/CreateNotes.js | Github Open Source | Open Source | MIT | 2,021 | My-notes | codeEmano | JavaScript | Code | 130 | 567 | import {useState,useEffect,useRef} from 'react';
import axios from 'axios';
function CreateNotes()
{
const [name, setName] = useState('');
const [notes, setNotes] = useState('');
const [users, setUsers] = useState([]);
const ref=useRef('userInput');
const onchangeHandleName= (e) =>{
setName(... | 28,012 |
https://github.com/ashvardanian/sacabench/blob/master/sacabench/saca/bucket_pointer_refinement/bucketsort.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | sacabench | ashvardanian | C++ | Code | 2,499 | 5,727 | /*******************************************************************************
* Copyright (C) 2018 Florian Grieskamp <florian.grieskamp@tu-dortmund.de>
*
* All rights reserved. Published under the BSD-3 license in the LICENSE file.
******************************************************************************/
... | 15,834 |
https://github.com/wudao1234/hl/blob/master/RapidWMS/thinleaf-system/src/main/java/org/mstudio/modules/wms/customer_order/service/handler/Kingdee2Handler.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | hl | wudao1234 | Java | Code | 427 | 1,803 | package org.mstudio.modules.wms.customer_order.service.handler;
import cn.hutool.core.util.StrUtil;
import cn.hutool.poi.excel.sax.handler.RowHandler;
import lombok.extern.slf4j.Slf4j;
import org.mstudio.exception.BadRequestException;
import org.mstudio.modules.wms.common.WmsUtil;
import org.mstudio.modules.wms.custom... | 50,137 |
https://github.com/Sharknoon/pixina/blob/master/src/components/tools/TileColors.vue | Github Open Source | Open Source | Apache-2.0 | 2,021 | pixina | Sharknoon | Vue | Code | 592 | 1,705 | <template>
<div class="h-100 d-flex flex-column">
<div class="flex-grow-1 overflow-auto p-2 position-relative">
<div class="row row-cols-1 row-cols-lg-2 row-cols-xxl-4 m-0">
<div
v-for="color in sortedColors"
:key="color.number_pixelhobby"
class="col p-2"
>
... | 4,457 |
https://github.com/datkt/fs/blob/master/realpath.kt | Github Open Source | Open Source | MIT | 2,021 | fs | datkt | Kotlin | Code | 83 | 331 | package datkt.fs
import kotlinx.cinterop.staticCFunction
import kotlinx.cinterop.toKString
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ByteVar
import datkt.fs.BufferCallback as Callback
import datkt.uv.uv_fs_realpath
import datkt.uv.uv_fs_t
fun realpath(path: String, callback: Callback) {
val req = u... | 27,761 |
https://github.com/Shukina/llvm/blob/master/test/Transforms/LoopPredication/basic_widenable_branch_guards.ll | Github Open Source | Open Source | Apache-2.0 | null | llvm | Shukina | LLVM | Code | 12,473 | 40,309 | ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -loop-predication -loop-predication-predicate-widenable-branches-to-deopt=true < %s 2>&1 | FileCheck %s
; RUN: opt -S -passes='require<scalar-evolution>,loop(loop-predication)' -loop-predication-predicate-widenable-branches-to-deopt... | 33,300 |
https://github.com/maxdanilov/subscity/blob/master/app/views/partials/_filters_movies.slim | Github Open Source | Open Source | MIT | 2,021 | subscity | maxdanilov | null | Spoken | 74 | 588 | div id="filters-container"
table.text-center.filters.filters-sort id="filters" style="display:none;"
tbody
tr
td
div.big-font.dark-shadowed
| Сортировать по:
div.btn-group
button.btn.btn-default.big-font.font-bold id="button-sort-title" type="button"
span.button-icon.fa.fa-sort-a... | 49,017 |
https://github.com/HostaPlantain/Floricraft2/blob/master/src/main/java/com/hosta/Floricraft2/block/BlockBaseCrops.java | Github Open Source | Open Source | MIT | 2,020 | Floricraft2 | HostaPlantain | Java | Code | 98 | 395 | package com.hosta.Floricraft2.block;
import java.util.Random;
import com.hosta.Floricraft2.module.ModuleCrops;
import net.minecraft.block.BlockCrops;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import ... | 46,661 |
https://github.com/meepo3927/meepo3927.github.io/blob/master/src_travel/less/pages/user-manage.less | Github Open Source | Open Source | MIT | 2,020 | meepo3927.github.io | meepo3927 | Less | Code | 30 | 115 | .page-user-manage {
.section-box {
border: 1px solid #ddd;
}
.section-title {
margin-top: 12px;
margin-bottom: 5px;
}
.ztree {
li {
line-height: 25px;
span.node_name {
font-size: 16px;
}
}
}
} | 7,090 |
https://github.com/sasukeh/azure-cli/blob/master/src/azure-cli/azure/cli/command_modules/monitor/grammar/MetricAlertConditionLexer.py | Github Open Source | Open Source | MIT | 2,020 | azure-cli | sasukeh | Python | Code | 355 | 5,597 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 49,309 |
https://github.com/tflovorn/displ/blob/master/displ/pwscf/parseScf.py | Github Open Source | Open Source | MIT | 2,021 | displ | tflovorn | Python | Code | 632 | 2,057 | import numpy as np
def fermi_from_scf(scf_path):
fp = open(scf_path, 'r')
lines = fp.readlines()
fp.close()
for line in lines:
if 'Fermi' in line:
fermi = float(line.strip().split()[-2])
return fermi
# If we get here, didn't find 'Fermi' line in scf_path.
return... | 5,263 |
https://github.com/mattelisi/double-drift-saccade/blob/master/analysis/prepare/functions/anaEyeMovementsFilter_reloaded.m | Github Open Source | Open Source | Unlicense | 2,018 | double-drift-saccade | mattelisi | MATLAB | Code | 2,201 | 10,666 | %% Drifting Gabor - moving envelope - eye movement analysis
%
% Matteo Lisi, 2013
%
if welche == 1
reaAllFile = sprintf('../rea/AllSubjects_V%iD%iT%iS%i.rea',velSD,minDur,VELTYPE,SAMPRATE);
reaAllFile_R = sprintf('../R/AllSubjects_V%iD%iT%iS%i.txt',velSD,minDur,VELTYPE,SAMPRATE);
btrAllFile = sprintf('../b... | 26,006 |
https://github.com/naviji/Thankful/blob/master/screens/Editor.tsx | Github Open Source | Open Source | MIT | 2,020 | Thankful | naviji | TypeScript | Code | 486 | 2,007 | import React, {useState} from "react";
import { Icon } from "react-native-elements";
import * as ImagePicker from 'expo-image-picker';
import { useFonts } from '@use-expo/font';
import * as Permissions from 'expo-permissions';
import {
SafeAreaView,
Dimensions,
TouchableHighlight,
Image,
Modal,
FlatList,
... | 19,672 |
https://github.com/nwin/ssdp-rs/blob/master/src/message/listen.rs | Github Open Source | Open Source | Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | ssdp-rs | nwin | Rust | Code | 221 | 972 | use std::net::{SocketAddr, IpAddr};
use error::SSDPResult;
use message;
use receiver::{SSDPReceiver, FromRawSSDP};
use net;
pub trait Listen {
type Message: FromRawSSDP + Send + 'static;
/// Listen for messages on all local network interfaces.
fn listen() -> SSDPResult<SSDPReceiver<Self::Message>> {
... | 32,913 |
https://github.com/bluisheila25/zGoToPhilippinesM/blob/master/engine1/wowslider.js | Github Open Source | Open Source | MIT | 2,013 | zGoToPhilippinesM | bluisheila25 | JavaScript | Code | 3,628 | 10,071 | jQuery.fn.wowSlider = function (D) {
var L = jQuery;
var l = this;
var i = l.get(0);
D = L.extend({
effect: function () {
this.go = function (c, f) {
b(c);
return c
}
},
prev: "",
next: "",
duration: 1000,
... | 35,290 |
https://github.com/volkansahin45/DataBindingExample/blob/master/app/src/main/java/com/vsahin/databindingexample/data/RetrofitService.java | Github Open Source | Open Source | MIT | 2,019 | DataBindingExample | volkansahin45 | Java | Code | 23 | 116 | package com.vsahin.databindingexample.data;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import java.util.List;
public interface RetrofitService {
@GET("/todos")
Call<List<Todo>> getTodos();
@GET("todos/{id}")
Call<Todo> getTodo(@Path("id") String id);
}
| 12,471 |
https://github.com/wtf42/e-shop/blob/master/site2/protected/views/purchases/search.php | Github Open Source | Open Source | MIT | 2,014 | e-shop | wtf42 | PHP | Code | 100 | 530 | <?php
/* @var $this PurchasesController */
/* @var $model Purchases */
$this->layout='//layouts/admin';
$this->menu_selector='purchases';
$this->breadcrumbs=array(
'Покупки'=>array('admin'),
'Поиск',
);
$this->menu=array(
array('label'=>'List Purchases', 'url'=>array('index')),
array('label'=>'Create Purchases', ... | 53,878 |
https://github.com/idanco77/recru/blob/master/resources/views/candidates/create.blade.php | Github Open Source | Open Source | MIT | null | recru | idanco77 | PHP | Code | 62 | 216 | @extends('layouts.app')
@section('title', 'Create candidate')
@section('content')
<h1>Create candidate</h1>
<form method = "post" action = "{{action('CandidatesController@store')}}">
@csrf
<div class="form-group">
<label for = "name">Candiadte name</label>
<inp... | 44,842 |
https://github.com/aeternity/aeternal/blob/master/src/server.rs | Github Open Source | Open Source | ISC | 2,019 | aeternal | aeternity | Rust | Code | 4,316 | 16,485 | use diesel::sql_query;
use coinbase::coinbase;
use compiler::*;
use models::*;
use node::Node;
use chrono::prelude::*;
use diesel::RunQueryDsl;
use loader::PGCONNECTION;
use loader::SQLCONNECTION;
use regex::Regex;
use rocket;
use rocket::http::{Header, Method, Status};
use rocket::response::Response;
use rocket::Sta... | 2,932 |
https://github.com/rajmic/matlab-grafika/blob/master/geom_transformace/scaling_matrix.m | Github Open Source | Open Source | MIT | 2,023 | matlab-grafika | rajmic | MATLAB | Code | 69 | 185 | function M = scaling_matrix(diagonal)
% vraci matici pro zmenu meritka v 3D homogenních souradnicich
% diagonal.....vektor meritek, porade sx, sy, sz
%
% Napriklad:
% A = scaling_matrix([2 1 .5])
% (c) 2008-2013, Pavel Rajmic, UTKO FEKT VUT v Brne
%% Kontrola, zda je to vektor
% [n,m] = size(diagonal);
if ~isvector... | 27,768 |
https://github.com/testbot-github/ZDRA-Protection/blob/master/source/events/messageUpdate.js | Github Open Source | Open Source | MIT | 2,021 | ZDRA-Protection | testbot-github | JavaScript | Code | 15 | 52 | const db = require('quick.db');
module.exports = async(client, oldMessage, newMessage) => {
require('../functions/messageUpdateFunction').get(oldMessage, newMessage, db);
}; | 28,785 |
https://github.com/darrenjaworski/byte-converter-react/blob/master/byteConverter.test.jsx | Github Open Source | Open Source | MIT | 2,020 | byte-converter-react | darrenjaworski | null | Spoken | 313 | 1,212 | import React from "react";
import renderer from "react-test-renderer";
import ByteConverter from "./index";
describe("ByteConverter", () => {
it("renders without crashing", () => {
const tree = renderer.create(<ByteConverter>1024</ByteConverter>).toJSON();
expect(tree).toMatchSnapshot();
});
it("can co... | 17,017 |
https://github.com/smitexpert/dmexpress/blob/master/resources/views/backend/admin/invoice/paid.blade.php | Github Open Source | Open Source | MIT | 2,021 | dmexpress | smitexpert | PHP | Code | 278 | 1,340 | @extends('backend.admin.layouts.master')
@push('styles')
@livewireStyles
@endpush
@push('scripts')
@livewireScripts
@endpush
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Paid Invoice
<small>Paid Invoice</small>
<... | 41,623 |
https://github.com/jmopen/gzb-jssdk/blob/master/src/MobileApi.ts | Github Open Source | Open Source | MIT | 2,019 | gzb-jssdk | jmopen | TypeScript | Code | 515 | 1,971 | /**
* 移动端API具体实现
* @module
*/ /** */
/* tslint:disable: no-any */
import Api from './Api'
import * as Events from './events'
import * as Handlers from './handlers'
import { Bridge, MobileBridge } from './Bridge'
import { SetBarParams } from './protocol'
const DEFAULT_SET_BAR_OPTIONS: SetBarParams = {
hideMoreBtn:... | 10,570 |
https://github.com/AS3Commons/as3commons-ui/blob/master/examples/layout/CellConfig3.as | Github Open Source | Open Source | Apache-2.0 | 2,021 | as3commons-ui | AS3Commons | null | Spoken | 65 | 272 | package layout {
import layout.common.box.Box;
import org.as3commons.ui.layout.HLayout;
import org.as3commons.ui.layout.constants.Align;
import org.as3commons.ui.layout.shortcut.*;
import flash.display.Sprite;
public class CellConfig3 extends Sprite {
public function CellConfig3() {
var h : HLayout = hlayou... | 1 |
https://github.com/billyan2018/java-rules/blob/master/src/main/java/codecube/domain/PullFile.java | Github Open Source | Open Source | Apache-2.0 | null | java-rules | billyan2018 | Java | Code | 160 | 518 | package codecube.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Pattern;
import lombok.Getter;
@Getter
@JsonIgnorePro... | 16,841 |
https://github.com/halcyondude/gitqlite/blob/master/gitqlite.go | Github Open Source | Open Source | MIT | 2,020 | gitqlite | halcyondude | Go | Code | 11 | 42 | package main
import (
"github.com/augmentable-dev/gitqlite/cmd"
)
func main() {
cmd.Execute()
}
| 50,490 |
https://github.com/jfallows/k3po/blob/master/specification/k3po.control/src/test/java/org/kaazing/specification/control/ControlIT.java | Github Open Source | Open Source | Apache-2.0 | null | k3po | jfallows | Java | Code | 143 | 240 | /**
* Copyright 2007-2015, Kaazing Corporation. 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 require... | 24,827 |
https://github.com/janmax/domjudge-cli/blob/master/Makefile | Github Open Source | Open Source | MIT | null | domjudge-cli | janmax | Makefile | Code | 41 | 124 | CC = g++
CFLAGS = -Wall -g
init:
@mkdir -p bin input
@for name in {A..E}; do cp ../default.cpp $$name.cpp; touch input/$$name.in; done;
wipe:
@rm *.cpp
@rm -r bin input
%: %.cpp
@$(CC) $(CFLAGS) -o bin/$@.o $<
@cat input/$@.in | ./bin/$@.o | 28,644 |
https://github.com/skeeto/northbound/blob/master/src/Game.js | Github Open Source | Open Source | Unlicense | 2,021 | northbound | skeeto | JavaScript | Code | 772 | 2,244 | function Game() {
this.map = new Map();
this.count = 0;
var y = this.map.edge + 4,
row = this.map.get(y),
x = null;
for (x = 0; x < row.length; x++) {
if (row[x].type === Tile.ROAD) break;
}
this.player = new Unit(x, y, '@');
this.player.step = Unit.STEP_PLAYER;
t... | 54,417 |
https://github.com/discodian/parts/blob/master/src/Registry.php | Github Open Source | Open Source | MIT | 2,017 | parts | discodian | PHP | Code | 120 | 372 | <?php
/*
* This file is part of the Discodian bot toolkit.
*
* (c) Daniël Klabbers <daniel@klabbers.email>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @see http://discodian.com
* @see https://github.com/discodian
*/
names... | 47,476 |
https://github.com/DeanoC/gfx_meshmod/blob/master/include/render_meshmod/polygon/planeequation.h | Github Open Source | Open Source | Apache-2.0 | null | gfx_meshmod | DeanoC | C | Code | 41 | 263 | #pragma once
#include "al2o3_platform/platform.h"
#include "render_meshmod/meshmod.h"
#include "al2o3_cmath/vector.h"
#include "render_meshmod/mesh.h"
#define MeshMod_PolygonPlaneEquationTag MESHMOD_POLYGONTAG('P', 'L', 'N', 'E', 'Q')
typedef struct MeshMod_PolygonPlaneEquation {
Math_Vec4F planeEq;
} MeshMod_Polygon... | 29,144 |
https://github.com/ravitony1/VersionTracker/blob/master/src/components/Tasks.jsx | Github Open Source | Open Source | MIT | null | VersionTracker | ravitony1 | null | Spoken | 56 | 128 | import React from "react";
import PropTypes from "prop-types";
import CustomTable from "./CustomTable";
/**
* this component is rendered when any release row is expanded
*/
const Tasks = ({ tasks, releaseIndex }) => {
return (
<div>
<CustomTable data={tasks} type="task" releaseIndex={releaseIndex} />
... | 38,839 |
https://github.com/hammerlab/math-utils/blob/master/tolerance/shared/src/test/scala/org/hammerlab/math/tolerance/GeometricTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | math-utils | hammerlab | Scala | Code | 411 | 1,133 | package org.hammerlab.math.tolerance
import org.scalatest.{ FunSuite, Matchers }
import hammerlab.math.tolerance._
class GeometricTest
extends FunSuite
with Matchers {
implicit val ε: E = 1e-6
def check(
l: Double,
r: Double,
cmp: Cmp,
includeReverse: Boolean = true
): Unit = {
... | 13,419 |
https://github.com/weimingtom/mud/blob/master/src/ui/Container.h | Github Open Source | Open Source | Zlib | 2,018 | mud | weimingtom | C++ | Code | 219 | 673 | // Copyright (c) 2018 Hugo Amiard hugo.amiard@laposte.net
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#pragma once
#include <obj/Array.h>
#include <ui/Generated/Forward.h>
#include ... | 46,724 |
https://github.com/mayankmanj/acl2/blob/master/books/models/jvm/m1/wormhole-abstraction.lisp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | acl2 | mayankmanj | Common Lisp | Code | 2,468 | 4,296 | ; Correctness of Fact via Wormhole Abstraction
; Problem: Define an M1 program to compute the factorial of its natural number
; input. Prove your program correct without specifying what happens to some
; variables.
; Acknowledgement: This approach to code proofs was first developed by Dave
; Greve at Rockwell Collin... | 37,134 |
https://github.com/situkangsayur/weka-em-alumnee/blob/master/src/main/java/org/weka/em/DataResult.java | Github Open Source | Open Source | MIT | 2,016 | weka-em-alumnee | situkangsayur | Java | Code | 98 | 213 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.weka.em;
import weka.core.Instance;
/**
*
* @author hendri_k
*/
public class DataResult {
private Instance data;
... | 2,299 |
https://github.com/mrniceguy127/machina/blob/master/src/commands/music/classes/yt-playlist-scraper.js | Github Open Source | Open Source | MIT | null | machina | mrniceguy127 | JavaScript | Code | 134 | 375 | 'use-strict';
const cheerio = require('cheerio');
const Scraper = require('./scraper');
class YTPlaylistScraper extends Scraper {
getVideoID(videoURL) {
return (new URL(videoURL)).searchParams.get("v");
}
// Parse HTML with a provided URL of the page.
parseHTML(url, html) {
const $ = cheerio.load(htm... | 51,012 |
https://github.com/denis256/minio-java/blob/master/api/src/main/java/io/minio/messages/TopicConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | minio-java | denis256 | Java | Code | 171 | 322 | /*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, 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
*
... | 13,124 |
https://github.com/brian6382/Recipe_App_com/blob/master/app/src/main/java/com/brian/popularnews/view/detail/DetailPresenter.java | Github Open Source | Open Source | MIT | null | Recipe_App_com | brian6382 | Java | Code | 102 | 415 | /*-----------------------------------------------------------------------------
- Developed by Haerul Muttaqin -
- Last modified 4/7/19 7:07 PM -
- Subscribe : https://www.youtube.com/haerulmuttaqin -
... | 23,203 |
https://github.com/charliecalvert/JsObjects/blob/master/JavaScript/Syntax/PromiseTest/MyPromise.js | Github Open Source | Open Source | MIT | 2,023 | JsObjects | charliecalvert | JavaScript | Code | 38 | 115 | const foo = (bar) => {
return new Promise((resolve, reject) => {
if (bar >= 2) {
resolve(2);
} else {
reject('Smaller than 2');
}
});
}
foo(1)
.then((bar) => {
console.log(bar);
})
.catch((ex) => {
console.log(ex);
});
| 533 |
https://github.com/sugar3103/speedlink-zend-3/blob/master/module/OAuth/src/Factory/AuthControllerFactory.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | speedlink-zend-3 | sugar3103 | PHP | Code | 70 | 266 | <?php
namespace OAuth\Factory;
use Zend\ServiceManager\Factory\FactoryInterface;
use Doctrine\Common\Cache\FilesystemCache;
use Interop\Container\ContainerInterface;
use OAuth\Controller\AuthController;
use OAuth\Service\AuthManager;
use OAuth\Service\UserManager;
class AuthControllerFactory implements FactoryInterfa... | 26,031 |
https://github.com/zhangqian814640816/loser/blob/master/reader/fbreader/org/geometerplus/zlibrary/text/view/ZLTextImageElement.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | loser | zhangqian814640816 | Java | Code | 187 | 347 | /*
* Copyright (C) 2007-2013 Geometer Plus <contact@geometerplus.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ver... | 41,331 |
https://github.com/dlr-eoc/ukis-frontend-libraries/blob/master/projects/services-util-store/src/lib/util-store.service.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | ukis-frontend-libraries | dlr-eoc | TypeScript | Code | 102 | 314 | import { TestBed } from '@angular/core/testing';
import { UtilStoreService } from './util-store.service';
describe('UtilStoreService', () => {
let service: UtilStoreService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(UtilStoreService); // new UtilStoreService();
... | 34,349 |
https://github.com/Ekta3012/afewtaps_framework/blob/master/resources/views/career.blade.php | Github Open Source | Open Source | MIT | 2,017 | afewtaps_framework | Ekta3012 | Blade | Code | 230 | 1,187 | <!DOCTYPE html>
<html>
<head>
<title>Career - afewtaps</title>
<link rel="shortcut icon" href="http://www.afewtaps.com/images/Logo2.png" type="image/png">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jq... | 17,499 |
https://github.com/perrin4869/univapay-node/blob/master/test/fixtures/errors.ts | Github Open Source | Open Source | MIT | 2,021 | univapay-node | perrin4869 | TypeScript | Code | 37 | 102 | import { ResponseErrorCode } from "../../src/errors/APIError";
import { RequestError } from "../../src/errors/RequestResponseError";
export const createRequestError = (fields: string[]): RequestError => {
return new RequestError({
code: ResponseErrorCode.ValidationError,
errors: fields.map((field: ... | 24,651 |
https://github.com/jericholegaspi/roots/blob/master/ROOTS/web/assets/js/itemModal.js | Github Open Source | Open Source | MIT | 2,019 | roots | jericholegaspi | JavaScript | Code | 138 | 595 | if (document.readyState == 'loading'){
document.addEventListener('DOMContentLoaded', ready);
} else{
ready();
}
function ready() {
var addToCartButtons = document.getElementsByClassName('see-details')
for (var i = 0; i < addToCartButtons.length; i++) {
var button = addToCartButtons[i]
button.add... | 48,733 |
https://github.com/HuaizhengZhang/CS224n-UCBerkeley-DRL-homework/blob/master/boleizhou/RLexample/navigation_agent.py | Github Open Source | Open Source | MIT | 2,019 | CS224n-UCBerkeley-DRL-homework | HuaizhengZhang | Python | Code | 122 | 382 | # install AI2THOR at https://github.com/allenai/ai2thor
import ai2thor.controller
import random
import matplotlib.pyplot as plt
import time
# Kitchens: FloorPlan1 - FloorPlan30
# Living rooms: FloorPlan201 - FloorPlan230
# Bedrooms: FloorPlan301 - FloorPlan330
# Bathrooms: FloorPLan401 - FloorPlan43... | 5,311 |
https://github.com/jgdo/arips_local_planner/blob/master/include/arips_local_planner/potential_map_grid.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | arips_local_planner | jgdo | C | Code | 890 | 1,973 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... | 38,200 |
https://github.com/gravero66er/arcos-company/blob/master/src/components/svg/ProductsPattern.js | Github Open Source | Open Source | 0BSD | null | arcos-company | gravero66er | JavaScript | Code | 68 | 550 | import * as React from "react"
function ProductsPattern() {
return (
<svg viewBox="0 0 160 69" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M141.499 8.325H58.317L77.58.745h83.182l-19.263 7.58zM83.709 70.045H.527l19.263-7.58h83.182l-1... | 29,209 |
https://github.com/MatakiTanaka09/kw-server/blob/master/kmkit/kw/Application/Controllers/Common/CompanyAndMember/CompanyAndMemberBaseController.php | Github Open Source | Open Source | MIT | null | kw-server | MatakiTanaka09 | PHP | Code | 176 | 880 | <?php
namespace KW\Application\Controllers\Common\CompanyAndMember;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use KW\Infrastructure\Eloquents\CompanyAndMember;
class CompanyAndMemberBaseController extends Controller
{
/**
* @re... | 47,500 |
https://github.com/dylanmayes77/MHKiT-Python/blob/master/mhkit/tidal/__init__.py | Github Open Source | Open Source | BSD-3-Clause, Python-2.0 | 2,020 | MHKiT-Python | dylanmayes77 | Python | Code | 16 | 38 | from mhkit.tidal import device
from mhkit.tidal import graphics
from mhkit.tidal import io
from mhkit.tidal import resource
| 6,573 |
https://github.com/JianpingZeng/xcc/blob/master/xcc/test/mediabench4/pgp/dinero/scripts/pgp_128-512.sh | Github Open Source | Open Source | BSD-3-Clause | 2,020 | xcc | JianpingZeng | Shell | Code | 184 | 529 | #!/opt/local/bin/tcsh -f
# Script for the simulation
#
# the location of benchmark
set path = ../bin
set dpath = ../data
#benchmark name
set benchmark1 = pgpencode
set benchmark2 = pgpdecode
set data1 = pgptest.plain
set data2 = pgptest.enc
set out =
#benchmark options
set options1 = "-es"
set options2 = "-db"
set inp... | 10,007 |
https://github.com/javihgil/doctrine-pagination-bundle/blob/master/EventListener/PaginationParamConverterListener.php | Github Open Source | Open Source | MIT | 2,022 | doctrine-pagination-bundle | javihgil | PHP | Code | 200 | 769 | <?php
namespace Jhg\DoctrinePaginationBundle\EventListener;
use Doctrine\Common\Annotations\AnnotationReader;
use Jhg\DoctrinePaginationBundle\Configuration as Pagination;
use Jhg\DoctrinePaginationBundle\Request\RequestParam;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpF... | 46,214 |
https://github.com/DominicAmal/saas/blob/master/book/2-end/app/components/layout/menus.ts | Github Open Source | Open Source | MIT | 2,019 | saas | DominicAmal | TypeScript | Code | 24 | 63 | const menuOnTheRight = () => [
{
text: 'Your Settings',
href: '/your-settings',
simple: true,
},
{
separator: true,
},
];
export { menuOnTheRight };
| 48,467 |
https://github.com/hosseindbk/autokala/blob/master/app/Http/Controllers/Admin/SupplierproductgroupController.php | Github Open Source | Open Source | MIT | null | autokala | hosseindbk | PHP | Code | 98 | 437 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\supplierproductgrouprequest;
use App\Supplier_product_group;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Redirect;
class SupplierproductgroupController extends C... | 46,712 |
https://github.com/joshrestivo/dnamobile/blob/master/www/js/dna-controllers.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | dnamobile | joshrestivo | JavaScript | Code | 756 | 2,883 | angular.module('dnaMobile.controllers',
[ 'dnaMobile.services', 'dnaMobile.filters', 'ngSanitize' ])
.controller('MainCtrl', function($scope, $ionicModal, $timeout, $sce, dataLoader, $rootScope, $log) {
$scope.items = [ {
title : "Street Closures",
icon : "ion-ios-speedometer",
iconColor : "#7aca4f",
sref : "st... | 29,610 |
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_ImageProcessing.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, Apache-2.0, MIT | 2,023 | azure-sdk-for-net | Azure | C# | Code | 501 | 2,926 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using NUni... | 29,471 |
https://github.com/KeyTalk/goproxyclient/blob/master/openssl-1.0.2j/test/sslv2conftest.c | Github Open Source | Open Source | BSD-3-Clause | 2,020 | goproxyclient | KeyTalk | C | Code | 922 | 2,594 | /* Written by Matt Caswell for the OpenSSL Project */
/* ====================================================================
* Copyright (c) 2016 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... | 27,814 |
https://github.com/oksks/citizenos-fe/blob/master/public/js/controllers/JoinCtrl.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | citizenos-fe | oksks | JavaScript | Code | 102 | 323 | 'use strict';
angular
.module('citizenos')
.controller('JoinCtrl', ['$scope', '$rootScope', '$state', '$stateParams', '$location', '$filter', '$log', 'Topic', function ($scope, $rootScope, $state, $stateParams, $location, $filter, $log, Topic) {
var joinTopic = new Topic();
joinTopic
... | 37,599 |
https://github.com/ccnex5/AR_RC/blob/master/Assets/Plugins/WSA.meta | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license, BSD-3-Clause, LicenseRef-scancode-free-unknown, Apache-2.0, BSD-4-Clause-UC, BSD-4-Clause, LicenseRef-scancode-public-domain, GPL-1.0-or-later, APSL-1.1, LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause, LicenseRef-scancode-mit-old-style, IJG, LicenseRef-scancode-unkno... | 2,017 | AR_RC | ccnex5 | Unity3D Asset | Code | 14 | 67 | fileFormatVersion: 2
guid: fe07eebfd84ffcf429450f0a78462913
folderAsset: yes
timeCreated: 1511284253
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 51,632 |
https://github.com/deep-learning-indaba/Baobab/blob/master/api/migrations/versions/d54c936be94d_.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | Baobab | deep-learning-indaba | Python | Code | 40 | 147 | """empty message
Revision ID: d54c936be94d
Revises: ('0462d1a06d40', '15d51e2866ce')
Create Date: 2023-05-06 19:53:11.631116
"""
# revision identifiers, used by Alembic.
revision = 'd54c936be94d'
down_revision = ('0462d1a06d40', '15d51e2866ce')
from alembic import op
import sqlalchemy as sa
def upgrade():
pas... | 36,167 |
https://github.com/GrandathePanda/panda-malrec/blob/master/scripts/unpack_samples.py | Github Open Source | Open Source | MIT | 2,022 | panda-malrec | GrandathePanda | Python | Code | 116 | 422 | #!/usr/bin/env python
import sys
import shutil
import random
import pefile
import zipfile
NUM_SAMPLES = 100
ZIP_PW = 'infected'
zip = zipfile.ZipFile(sys.argv[1])
namelist = zip.namelist()
s = set()
se = set()
while len(s) < NUM_SAMPLES:
nm = random.choice(namelist)
if nm in s: continue
zf = zip.open(nm... | 4,323 |
https://github.com/hxy493045049/GlobalAccess/blob/master/app/src/main/java/com/msy/globalaccess/base/BaseFragment.java | Github Open Source | Open Source | Apache-2.0 | null | GlobalAccess | hxy493045049 | Java | Code | 334 | 1,128 | /*
* Copyright (c) 2016 shawn <shawn0729@foxmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 4,847 |
https://github.com/bitslab/CompilerInterrupts/blob/master/benchmarks/server_delegation/libfiber/test/test_cpu_scale.c | Github Open Source | Open Source | MIT, ISC | 2,021 | CompilerInterrupts | bitslab | C | Code | 890 | 2,802 | /*
* Copyright (c) 2012-2015, Brian Watling and other contributors
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED... | 12,544 |
https://github.com/carsmie/react-geo/blob/master/src/Button/SimpleButton/SimpleButton.jsx | Github Open Source | Open Source | BSD-2-Clause | null | react-geo | carsmie | null | Spoken | 289 | 822 | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Tooltip } from 'antd';
import Icon from 'react-fa/lib/Icon';
import './SimpleButton.less';
import { CSS_PREFIX } from '../../constants';
/**
* The SimpleButton.
*
* @class The SimpleButton
* @extends React.Component
*/
class SimpleB... | 47,232 |
https://github.com/zhuhaijun753/2G_ADAS/blob/master/apps/linde/src/vehicle_ctrl/passive_beep/passive_beep.c | Github Open Source | Open Source | Apache-2.0 | null | 2G_ADAS | zhuhaijun753 | C | Code | 44 | 214 | #include "passive_beep.h"
#include "my_misc.h"
#include <gpio.h>
#include <device.h>
#include <board.h>
#include <stdio.h>
#include <stdint.h>
bool passiveBeepSetup()
{
HAL_Init();
TIM8_PWM_Init(500-1,72-1);
TIM_SetTIM8Compare4(0);
return true;
}
bool passiveBeepOpen()
{
TIM_SetTIM8Compare4(300);
... | 30,778 |
https://github.com/kaist-plrg/jest/blob/master/src/main/scala/kr/ac/kaist/jest/model/algorithm/SameValueZero.scala | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,021 | jest | kaist-plrg | Scala | Code | 129 | 351 | package kr.ac.kaist.jest.model
import kr.ac.kaist.jest.ir._
import kr.ac.kaist.jest.ir.Parser._
object SameValueZero extends Algorithm {
val name: String = "SameValueZero"
val length: Int = 2
val lang: Boolean = true
val func: Func = FixUIdWalker(parseFunc(""""SameValueZero" (x, y) => {
app __x0__ = (Type... | 53,709 |
https://github.com/EddieKamau/aqueduct/blob/master/aqueduct/lib/src/cli/commands/db_version.dart | Github Open Source | Open Source | BSD-2-Clause | null | aqueduct | EddieKamau | Dart | Code | 121 | 418 | import 'dart:async';
import 'dart:io';
import 'package:aqueduct/src/cli/command.dart';
import 'package:aqueduct/src/cli/mixins/database_connecting.dart';
import 'package:aqueduct/src/cli/mixins/database_managing.dart';
import 'package:aqueduct/src/cli/mixins/project.dart';
/// Used internally.
class CLIDatabaseVersio... | 42,207 |
https://github.com/mntnr/dashboard/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,018 | dashboard | mntnr | JavaScript | Code | 5 | 21 | const RepoMatrix = require('./RepoMatrix')
RepoMatrix.start()
| 24,571 |
https://github.com/fpeyron/sample-akka-contest/blob/master/src/main/scala/com/betc/danon/game/routes/HealthRoute.scala | Github Open Source | Open Source | Apache-2.0 | null | sample-akka-contest | fpeyron | Scala | Code | 68 | 318 | package com.betc.danon.game.routes
import akka.http.scaladsl.model._
import akka.http.scaladsl.server.{Directives, Route}
import buildinfo.BuildInfo
import com.betc.danon.game.utils.CorsSupport
trait HealthRoute extends Directives with CorsSupport {
val healthCheckRoute: Route = corsHandler(
path("health") {
... | 23,142 |
https://github.com/regen-network/lunie/blob/master/src/scripts/ledger.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | lunie | regen-network | JavaScript | Code | 595 | 1,561 | import { App, comm_u2f } from "ledger-cosmos-js"
import { createCosmosAddress } from "scripts/wallet.js"
import { signatureImport } from "secp256k1"
import semver from "semver"
// TODO: discuss TIMEOUT value
const INTERACTION_TIMEOUT = 120 // seconds to wait for user action on Ledger, currently is always limited to 60... | 32,100 |
https://github.com/kayahr/jest-extended/blob/master/src/matchers/toContainKeys/predicate.js | Github Open Source | Open Source | MIT | null | jest-extended | kayahr | JavaScript | Code | 11 | 36 | export default (obj, keys) => keys.every(key => obj.hasOwnProperty && Object.prototype.hasOwnProperty.call(obj, key));
| 29,466 |
https://github.com/Wandalen/wDocGenerator/blob/master/asset/realFiles/l2/ModulesRegistry.s | Github Open Source | Open Source | MIT | 2,022 | wDocGenerator | Wandalen | null | Spoken | 1,783 | 6,177 | ( function _ModulesRegistry_s_() {
'use strict';
let _global = _global_;
let _ = _global.wTools;
if( !Object.hasOwnProperty.call( _global, 'ModuleRegistry' ) )
_global.ModulesRegistry = Object.create( null );
let Self = _global.ModulesRegistry;
// --
// helper
// --
function includeAny( filePath, name )
{
_.asser... | 20,657 |
https://github.com/oakesville/mdw-demo/blob/master/assets/com/centurylink/mdw/db/add_fkeys.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | mdw-demo | oakesville | SQL | Code | 136 | 602 | ALTER TABLE ACTIVITY_INSTANCE ADD (
CONSTRAINT ACTINST_PROCINST_FK
FOREIGN KEY (PROCESS_INSTANCE_ID)
REFERENCES PROCESS_INSTANCE (PROCESS_INSTANCE_ID));
ALTER TABLE EVENT_INSTANCE ADD (
CONSTRAINT EVENTINST_DOCUMENT_FK
FOREIGN KEY (DOCUMENT_ID)
REFERENCES DOCUMENT (DOCUMENT_ID));
ALTER TABLE DOCUMENT_C... | 48,521 |
https://github.com/trubliphone/esdoc-test/blob/master/Q/questionnaire/views/views_errors.py | Github Open Source | Open Source | MIT | null | esdoc-test | trubliphone | Python | Code | 135 | 431 | ####################
# ES-DOC CIM Questionnaire
# Copyright (c) 2017 ES-DOC. All rights reserved.
#
# University of Colorado, Boulder
# http://cires.colorado.edu/
#
# This project is distributed according to the terms of the MIT license [http://www.opensource.org/licenses/MIT].
####################
from djan... | 43,789 |
https://github.com/usgin/usgin-geoportal/blob/master/src/gpt/search/axl2csw.xslt | Github Open Source | Open Source | Apache-2.0 | null | usgin-geoportal | usgin | null | Spoken | 921 | 9,078 | <?xml version="1.0" encoding="UTF-8"?>
<!--
See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
Esri Inc. licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may o... | 22,142 |
https://github.com/lambdaxymox/DragonFlyBSD/blob/master/gnu/usr.bin/cc80/cc_tools/libcpp/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,022 | DragonFlyBSD | lambdaxymox | Makefile | Code | 96 | 374 | # Despite the source files ending in ".c", the c++ compiler needs to build
# everything. We have to roll our own targets to properly support this.
GCC_NO_PATH= yes
LOCAL_CONFIG= yes
.include "../Makefile.inc"
.PATH: ${GCCDIR}/libcpp
LIB= cpp
CFLAGS+= -I${.CURDIR}
CFLAGS+= -Duchar="unsigned char"
CXXFLAGS+= ${NOEXC... | 32,898 |
https://github.com/DEIPworld/deip-graphene/blob/master/libraries/plugins/proposal_history/include/deip/proposal_history/proposal_state_object.hpp | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT | 2,021 | deip-graphene | DEIPworld | C++ | Code | 217 | 1,428 | #pragma once
#include <boost/multi_index/composite_key.hpp>
using namespace deip::chain;
using namespace std;
namespace deip {
namespace proposal_history {
using chainbase::allocator;
using deip::protocol::asset;
using deip::protocol::external_id_type;
using deip::protocol::asset_symbol_type;
using fc::shared_stri... | 30,834 |
https://github.com/smth/frontend-v2/blob/master/themes/eds/public/less/variables.less | Github Open Source | Open Source | MIT | 2,019 | frontend-v2 | smth | Less | Code | 114 | 652 | /* Images */
@image-path: "/static/img";
@background-image: "@{image-path}/bg.png";
/* Masthead */
@masthead-text-color: @color-secondary-07;
@masthead-link-color: @masthead-text-color;
@masthead-bg: @color-secondary-06;
@masthead-bg-start: #005d7a;
@masthead-bg-end: #00536b;
/* Stages */
@stages-text-color: #aeaeae;... | 47,070 |
https://github.com/mewbak/ferret/blob/master/pkg/compiler/compiler_collect_aggregate_test.go | Github Open Source | Open Source | MIT | 2,022 | ferret | mewbak | Go | Code | 610 | 2,324 | package compiler_test
import (
"context"
"github.com/MontFerret/ferret/pkg/compiler"
"github.com/MontFerret/ferret/pkg/runtime"
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func TestAggregate(t *testing.T) {
Convey("Should aggregate values without grouping", t, func() {
c := compiler.New()
prog... | 42,486 |
https://github.com/fut0k0/hash-iteration-online-web-sp-000/blob/master/lib/birthday.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | hash-iteration-online-web-sp-000 | fut0k0 | Ruby | Code | 47 | 138 | def happy_birthday(birthday_kids)
birthday_kids.each {|name, age| puts "Happy Birthday #{name}! You are now #{age} years old!"}
end
def age_appropriate_birthday(birthday_kids)
birthday_kids.each do |name, age|
if age <= 12
puts "Happy Birthday #{name}! You are now #{age} years old!"
else
puts "You are too ... | 20,612 |
https://github.com/XfaonXE/XFRAME/blob/master/vendor/xframe/mvc/src/App.php | Github Open Source | Open Source | MIT | 2,021 | XFRAME | XfaonXE | PHP | Code | 674 | 1,981 | <?php
namespace xframe\Mvc;
class App
{
/**
* model object
*
*/
private Model $model;
/**
* controller object
*
*/
private Controller $controller;
/**
* view object
*
*/
private View $view;
/**
* router object
*
*/
... | 56,688 |
https://github.com/chazix/frayer/blob/master/libImgEdit/include/ChangeLayerLineHandle.h | Github Open Source | Open Source | BSD-3-Clause | 2,018 | frayer | chazix | C++ | Code | 181 | 938 | #ifndef _CHANGELAYERLINEHANDLE_H_
#define _CHANGELAYERLINEHANDLE_H_
#include "ImgFileHandle.h"
#include "ImgUpdateData.h"
#include "ImgLayer.h"
#include "ImgLayerGroup.h"
#include "ImgFile.h"
class _EXPORTCPP ChangeLayerLineHandle
: public ImgFileHandle
{
public:
ChangeLayerLineHandle() :
from_index(-1),
to_in... | 11,392 |
https://github.com/kamilgregorczyk/lens/blob/master/src/renderer/components/+extensions/read-file-notify/read-file-notify.ts | Github Open Source | Open Source | MIT | 2,020 | lens | kamilgregorczyk | TypeScript | Code | 93 | 232 | /**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import fse from "fs-extra";
import { getMessageFromError } from "../get-message-from-error/get-message-from-error";
import logger from "../../../../main/logger";
import { No... | 4,250 |
https://github.com/davebenvenuti/lgtv.js/blob/master/examples/set-volume.js | Github Open Source | Open Source | MIT | 2,022 | lgtv.js | davebenvenuti | JavaScript | Code | 101 | 270 | lgtv = require("lgtv");
/*---------------------------------------------------------------------------*/
var args = process.argv.slice(2);
var vol = 10;
if (args.length > 0) {
try {
vol = parseInt(args[0]);
} catch(error) {
}
}
var retry_timeout = 10;
var run_test = function() {
lgtv.discover_ip(retry_tim... | 989 |
https://github.com/thaysouza/FCamara-Front/blob/master/src/Components/Footer.jsx | Github Open Source | Open Source | MIT | null | FCamara-Front | thaysouza | null | Spoken | 120 | 582 | import React from 'react';
import logofcamara from '../img/grupo-fcamara-negativo.png';
import { FiFacebook } from 'react-icons/fi';
import { FiInstagram } from 'react-icons/fi';
import { SiGlassdoor } from 'react-icons/si';
import { FiYoutube } from 'react-icons/fi';
import { FiLinkedin } from 'react-icons/fi';
impor... | 42,990 |
https://github.com/deepakkumar1984/MxNet.Sharp/blob/master/src/MxNet/Image/LightingAug.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | MxNet.Sharp | deepakkumar1984 | C# | Code | 164 | 350 | /*****************************************************************************
Copyright 2018 The MxNet.Sharp 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 ... | 7,060 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.