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/bgctw/cosore/blob/master/tests/testthat/test_utils.R | Github Open Source | Open Source | CC-BY-4.0 | 2,020 | cosore | bgctw | R | Code | 1,777 | 7,125 | # test-utils.R
context("utils")
test_that("embargoed", {
expect_error(embargoed(1))
})
test_that("remove_empty_columns", {
# Bad input
expect_error(remove_empty_columns(1))
expect_identical(remove_empty_columns(data.frame()), data.frame())
expect_identical(remove_empty_columns(cars), cars)
x <- cars
x... | 2,566 |
https://github.com/juliend2/wiki_blossom/blob/master/lib/wiki_blossom/wiki.rb | Github Open Source | Open Source | MIT | 2,012 | wiki_blossom | juliend2 | Ruby | Code | 173 | 637 | module WikiBlossom
class Wiki
def initialize(directory)
@directory = directory.chomp('/')
@files = files()
@pages = @files.map {|f| Page.new(f) }
end
def serve(path)
case path
when '', '/'
content = index
[200, header(content), [content]]
when /^\/([^\/... | 27,939 |
https://github.com/undancer/oni-data/blob/master/Managed/firstpass/Epic/OnlineServices/Ecom/CatalogItemInternal.cs | Github Open Source | Open Source | MIT | 2,021 | oni-data | undancer | C# | Code | 318 | 1,402 | using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Ecom
{
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CatalogItemInternal : IDisposable
{
private int m_ApiVersion;
[MarshalAs(UnmanagedType.LPStr)]
private string m_CatalogNamespace;
[MarshalAs(UnmanagedTyp... | 35,463 |
https://github.com/waterlyx/cms/blob/master/Application/Home/Controller/AboutController.class.php | Github Open Source | Open Source | Apache-2.0 | null | cms | waterlyx | PHP | Code | 24 | 98 | <?php
namespace Home\Controller;
use Common\Controller\HomeController;
class AboutController extends HomeController {
//获取公司简介
public function showlist(){
$about = M('about');
$data = $about->cache(true,60)->find();
$this->assign('content',$data['content']);
$this->display();
}
} | 43,943 |
https://github.com/Jimut123/code-backup/blob/master/java_backup/my java/codmw3/tests1.java | Github Open Source | Open Source | MIT | 2,021 | code-backup | Jimut123 | Java | Code | 111 | 468 | import java.util.*;
public class tests1
{
Scanner sc=new Scanner(System.in);
class example
{
int a=0;
void input()
{
System.out.println("Enter number");
a=sc.nextInt();
}
void display()
{
System.out.println(+a);
}
... | 6,970 |
https://github.com/srthkdb/lotus/blob/master/lotus/src/events/Input.cpp | Github Open Source | Open Source | MIT | 2,020 | lotus | srthkdb | C++ | Code | 149 | 424 | #include "lotus/events/Input.h"
namespace Lotus
{
static float lastX = 0.0f;
static float lastY = 0.0f;
static bool firstMouse = true;
void Input::UpdateKeyState(const KeyboardEvent& event)
{
try
{
_state.at(event.KeyCode) = event.State;
}
catch (const s... | 42,660 |
https://github.com/izghua/-go-blog/blob/master/service/index.go | Github Open Source | Open Source | MIT | 2,022 | -go-blog | izghua | Go | Code | 1,248 | 5,613 | /**
* Created by GoLand.
* User: zhu
* Email: ylsc633@gmail.com
* Date: 2019-05-16
* Time: 20:17
*/
package service
import (
"encoding/json"
"github.com/gin-gonic/gin"
"github.com/go-redis/redis"
"github.com/gorilla/feeds"
"github.com/izghua/go-blog/common"
"github.com/izghua/go-blog/conf"
"github.com/izg... | 22,613 |
https://github.com/GbookingLTD/gbooking-integration-api/blob/master/src/interfaces/client/ISplittedBusinessesRequestData.ts | Github Open Source | Open Source | MIT | null | gbooking-integration-api | GbookingLTD | TypeScript | Code | 22 | 65 | /**
* ISplittedBusinessesRequestData is an interface for CalendarService's getTimeResourcesSplitted method
*/
export interface ISplittedBusinessesRequestData {
businessId: string;
resources: string[];
taxonomies: string[];
}
| 20,716 |
https://github.com/santana-devin/NodeJs-Livro/blob/master/modulo1/exercicio2.app.js | Github Open Source | Open Source | MIT | 2,020 | NodeJs-Livro | santana-devin | JavaScript | Code | 10 | 42 | const hello = require("./exercicio2.hello");
const human = require("./exercicio2.human");
hello("hello");
human.hello("Human.Hello"); | 45,581 |
https://github.com/Om3rCitak/phpsa/blob/master/tests/analyze-fixtures/Expression/FunctionCall/VarExportUnexpected.php | Github Open Source | Open Source | MIT | 2,017 | phpsa | Om3rCitak | PHP | Code | 118 | 354 | <?php
namespace Tests\Analyze\Fixtures\Expression\FunctionCall;
class VarExportUnexpected
{
/**
* @return string
*/
public function testVarExportSuccess()
{
return "test " . var_export(1, true);
}
/**
* @return string
*/
public function testVarExportUnexpected()
... | 27,806 |
https://github.com/soumya1984/coding-interview-prep-today/blob/master/src/main/java/IP/arraySorting/SortArray.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | coding-interview-prep-today | soumya1984 | Java | Code | 127 | 358 | package main.java.IP.arraySorting;
import java.util.PriorityQueue;
/**
* https://leetcode.com/problems/sort-an-array/submissions/
* 912. Sort an Array
* Medium
*
* 585
*
* 315
*
* Add to List
*
* Share
* Given an array of integers nums, sort the array in ascending order.
*
*
*
* Example 1:
*
* Input... | 32,734 |
https://github.com/parallaxinc/BlocklyProp/blob/master/db-updates/create_blocklyprop_tables.sql | Github Open Source | Open Source | MIT, Apache-2.0 | 2,022 | BlocklyProp | parallaxinc | SQL | Code | 675 | 2,256 | /*
* Create the blocklyprop tables
*/
--
-- Table structure for table `admin`
--
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`db_version` int(11) NOT NULL,
`db_script` varchar(255) NOT NULL,
`notes` varchar(255) DEFAULT NULL,
`last_change_date` datetime N... | 9,418 |
https://github.com/dadoonet/elasticsearch-java/blob/master/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysis.java | Github Open Source | Open Source | Apache-2.0 | null | elasticsearch-java | dadoonet | Java | Code | 521 | 1,692 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 7,546 |
https://github.com/nkonev/migrate/blob/master/source/packr/testdata/3_test.up.sql | Github Open Source | Open Source | MIT | null | migrate | nkonev | SQL | Code | 5 | 11 | INSERT INTO test(i) VALUES (3); | 31,279 |
https://github.com/nulogy/ec2_metadata_stubs/blob/master/test/fixtures/cookbooks/ec2_metadata_stubs-test/metadata.rb | Github Open Source | Open Source | MIT | 2,018 | ec2_metadata_stubs | nulogy | Ruby | Code | 4 | 23 | name "ec2_metadata_stubs-test"
version "0.1.0"
| 51,971 |
https://github.com/indahhamidah/PKL/blob/master/app/Http/Controllers/ContohSoalController.php | Github Open Source | Open Source | MIT | 2,020 | PKL | indahhamidah | PHP | Code | 193 | 1,243 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use App\Departemen;
use App\ContohSoal;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
use PDF;
use Excel;
use Carbon\Carbon;
class ContohSoalController extends Control... | 42,887 |
https://github.com/jeffbrown/grails-core/blob/master/grails-test-suite-web/src/test/groovy/org/codehaus/groovy/grails/web/taglib/InvokeTagLibAsMethodTests.groovy | Github Open Source | Open Source | Apache-2.0 | null | grails-core | jeffbrown | Groovy | Code | 48 | 164 | package org.codehaus.groovy.grails.web.taglib
class InvokeTagLibAsMethodTests extends AbstractGrailsTagTests {
void onSetUp() {
gcl.parseClass('''
class TestTagLib {
Closure testTypeConversion = { attrs ->
out << "Number Is: ${attrs.int('number')}"
}
}
''')
}
void testTypeConverte... | 15,033 |
https://github.com/FedericoPecora/meta-csp-framework/blob/master/src/main/java/org/metacsp/framework/meta/FocusConstraint.java | Github Open Source | Open Source | MIT | 2,021 | meta-csp-framework | FedericoPecora | Java | Code | 97 | 312 | package org.metacsp.framework.meta;
import java.util.Arrays;
import org.metacsp.framework.Constraint;
import org.metacsp.framework.Variable;
public class FocusConstraint extends Constraint {
private static final long serialVersionUID = 1065072281439135501L;
@Override
public String toString() {
return Arrays.t... | 44,424 |
https://github.com/soso1525/java100-1team/blob/master/web/src/main/webapp/js/company-check.js | Github Open Source | Open Source | MIT | 2,018 | java100-1team | soso1525 | JavaScript | Code | 486 | 2,134 |
var passID = false, passPwd = false, passEmail = false, passBno = false;
var bno;
var submitBtn = $('#submitBtn'),
btnCheckBtn = $('#btnCheckInfo'),
idItem = $('#id'),
passwordItem = $('#password'),
nameItem = $('#cName'),
kindItem = $('#cKind'),
cTypeItem = $('#cType'),
emailItem = $('#... | 41,010 |
https://github.com/jugstalt/gview5/blob/master/gView.DataSources.OSGeo/OSGeo/v3/gdal/Attribute.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | gview5 | jugstalt | C# | Code | 491 | 1,946 | //------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.12
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//----... | 6,056 |
https://github.com/nathaneastwood/sparklio/blob/master/R/spark_drop.R | Github Open Source | Open Source | MIT | 2,021 | sparklio | nathaneastwood | R | Code | 218 | 565 | #' Drop tables from a Spark session
#'
#' Remove either a single table or all tables from a Spark session.
#'
#' @param sc A `spark_connection`.
#' @param name `character(1)`. The name of the table to remove.
#'
#' @return
#' * `spark_drop_table()`: A `logical(1)` referring to whether the removal was
#' successful (`... | 31,854 |
https://github.com/terminal42/contao-inserttags/blob/master/contao/languages/ja/tl_inserttags.php | Github Open Source | Open Source | MIT | 2,023 | contao-inserttags | terminal42 | PHP | Code | 74 | 854 | <?php
declare(strict_types=1);
// Fields
$GLOBALS['TL_LANG']['tl_inserttags']['tag'] = ['挿入タグ', '挿入タグを入力してください。<br>{{custom::your-tag}}を使用して、どのコンテント要素でもこのタグを使用できます。'];
$GLOBALS['TL_LANG']['tl_inserttags']['replacement'] = ['置き換え', '挿入タグと置き換える内容を入力してください。'];
$GLOBALS['TL_LANG']['tl_inserttags']['disableRTE'] = ['TinyM... | 38,386 |
https://github.com/chrismear/rails-lighthouse-archive/blob/master/data/attachments/86440/to-param-for-scaffold.patch | Github Open Source | Open Source | MIT | 2,011 | rails-lighthouse-archive | chrismear | null | Spoken | 206 | 701 | From f7e5771547208df212b1f767a6c263eb0803926e Mon Sep 17 00:00:00 2001
From: Pat Nakajima <patnakajima@gmail.com>
Date: Sun, 8 Feb 2009 11:36:01 -0500
Subject: [PATCH] Changed scaffold generated controller tests to use #to_param.
Before, the generated controller tests were calling #id, which
can change over time, maki... | 51,166 |
https://github.com/DamieFC/chromium/blob/master/third_party/libaom/source/config/linux/arm-neon-cpu-detect/config/aom_config.asm | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,020 | chromium | DamieFC | Assembly | Code | 323 | 945 | ;
; Copyright (c) 2021, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... | 47,429 |
https://github.com/eugeneilyin/mdi-norm/blob/master/lib/SharpLocalCafe.js | Github Open Source | Open Source | MIT | 2,019 | mdi-norm | eugeneilyin | JavaScript | Code | 47 | 209 | "use strict";
var _babelHelpers = require("./utils/babelHelpers.js");
exports.__esModule = true;
var _react = _babelHelpers.interopRequireDefault(require("react"));
var _Icon = require("./Icon");
var _fragments = require("./fragments");
var SharpLocalCafe =
/*#__PURE__*/
function SharpLocalCafe(props) {
return ... | 123 |
https://github.com/rundfunk47/Juice/blob/master/Juice/Classes/JSONDictionary+Decode.swift | Github Open Source | Open Source | MIT | 2,020 | Juice | rundfunk47 | Swift | Code | 1,741 | 3,424 | //
// JSONDictionary+Decode.swift
// Juice
//
// Created by Narek M on 19/06/16.
// Copyright © 2016 Narek. All rights reserved.
//
// MARK: Main methods to decode given a key path
public extension JSONDictionary {
/// Decodes a type in the dictionary, given a key path.
/// - Parameter keyPath: Array of s... | 31,488 |
https://github.com/mydesoft/paystack/blob/master/app/Http/Controllers/AdminController.php | Github Open Source | Open Source | MIT | null | paystack | mydesoft | PHP | Code | 163 | 624 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use App\Events\AdminCreatedEvent;
use App\Models\Contact;
class AdminController extends Controller
{
public function dashboard(){
return view('admin.dashboard');
}
... | 24,631 |
https://github.com/Ecommerce-Mercadante/ecommerce-admin-backend/blob/master/src/variation/variation.service.ts | Github Open Source | Open Source | MIT | null | ecommerce-admin-backend | Ecommerce-Mercadante | TypeScript | Code | 25 | 70 | import { Injectable } from '@nestjs/common';
// import { CreateVariationInput } from './dto/create-variation.input';
// import { UpdateVariationInput } from './dto/update-variation.input';
@Injectable()
export class VariationService {}
| 48,554 |
https://github.com/arturspon/zombie-killer/blob/master/export/windows/obj/include/flixel/util/FlxSpriteUtil.h | Github Open Source | Open Source | MIT | null | zombie-killer | arturspon | C | Code | 559 | 2,610 | // Generated by Haxe 4.0.0-rc.2+77068e10c
#ifndef INCLUDED_flixel_util_FlxSpriteUtil
#define INCLUDED_flixel_util_FlxSpriteUtil
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS1(flixel,FlxBasic)
HX_DECLARE_CLASS1(flixel,FlxObject)
HX_DECLARE_CLASS1(flixel,FlxSprite)
HX_DECLARE_CLASS2(flixel,effects,FlxFlick... | 18,182 |
https://github.com/Gudang-Source/kelaspengganti/blob/master/application/models/MatkulDosenM.php | Github Open Source | Open Source | MIT | 2,021 | kelaspengganti | Gudang-Source | PHP | Code | 55 | 333 | <?php
class MatkulDosenM extends CI_Model{
public function getMatkulDosenU($username){
$this->db->select("mk.id_mk AS id, mk.kode_MK AS kodeMK, mk.nama_MK AS namaMK, mk.sks_MK AS sksMK, mk.kategori AS kategoriMK, mk.batas_pertemuan AS batasPertemuan");
$this->db->from("mata_kuliah mk");
$this->db->join(... | 46,365 |
https://github.com/raul-hc/Languaje-programming-design2/blob/master/src/ast/AbstractTipo.java | Github Open Source | Open Source | MIT | 2,017 | Languaje-programming-design2 | raul-hc | Java | Code | 24 | 59 | /**
* @generated VGen 1.3.3
*/
package ast;
public abstract class AbstractTipo extends AbstractTraceable implements Tipo {
public String getSufijo(){
return "";
}
}
| 12,169 |
https://github.com/LiJingBiao/Flutter_Learn/blob/master/0707/tab_learn/lib/Pages/HomePage.dart | Github Open Source | Open Source | Apache-2.0 | null | Flutter_Learn | LiJingBiao | Dart | Code | 51 | 207 | import 'package:flutter/material.dart';
import './HomeDetail.dart';
class HomePage extends StatelessWidget {
const HomePage({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignm... | 37,193 |
https://github.com/BartoszMilewski/CodeCoop/blob/master/WinLib/Win/WinMain.h | Github Open Source | Open Source | MIT | 2,022 | CodeCoop | BartoszMilewski | C | Code | 75 | 178 | #if !defined (WINMAIN_H)
#define WINMAIN_H
// (c) Reliable Software 2002
#include <Win/Instance.h>
namespace Win
{
// Client must implement this entry point in every Windows program
int Main (Win::Instance inst, char const * cmdParam, int cmdShow);
class CommandLine
{
public:
CommandLine ();
// string ending... | 42,228 |
https://github.com/hca1120/2019/blob/master/05/UnitTestDemo/CoreLayer/Repositories/IUserInfoRepository.cs | Github Open Source | Open Source | MIT | 2,019 | 2019 | hca1120 | C# | Code | 25 | 112 | namespace CoreLayer.Repositories
{
using Domains;
using System.Threading.Tasks;
public interface IUserInfoRepository
{
Task<bool> CreateUserAsync(UserInfo userInfo);
Task<bool> ModifyUserAsync(UserInfo userInfo);
Task<bool> DeleteUserAsync(UserInfo userInfo);
Task<Us... | 28,909 |
https://github.com/feywind/node-debug-logging/blob/master/src/clientHooks.ts | Github Open Source | Open Source | Apache-2.0 | null | node-debug-logging | feywind | TypeScript | Code | 156 | 270 | // Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 7,308 |
https://github.com/sallesike/Gestao_eventos/blob/master/resources/views/template/template.blade.php | Github Open Source | Open Source | MIT | null | Gestao_eventos | sallesike | PHP | Code | 356 | 2,350 | <!DOCTYPE html>
<html lang="pt=Br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width-device-width, initial-scale = 1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" int... | 1,510 |
https://github.com/cfour-hi/lerna-ts-rollup/blob/master/packages/foo/lib/types.ts | Github Open Source | Open Source | MIT | 2,020 | lerna-ts-rollup | cfour-hi | TypeScript | Code | 11 | 31 | export interface FooOptions {
arg1?: string;
arg2: number;
arg3: boolean;
}
| 38,230 |
https://github.com/marco-ruiz/grid-wizard-enterprise/blob/master/src/main/bin/client/gwe-util-client-update.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | grid-wizard-enterprise | marco-ruiz | Shell | Code | 37 | 79 | #!/bin/sh
# GWE client updater from a previously installed version. Expects:
# - $GWE_HOME of the previously installed version as parameter
# - $GWE_HOME set to the location of the newly installed GWE version
cp $1/conf/*.* $GWE_HOME/conf
| 35,976 |
https://github.com/federico-terzi/osarracino/blob/master/lib/movegenerator/ArnoldMoveGenerator.cpp | Github Open Source | Open Source | MIT | 2,022 | osarracino | federico-terzi | C++ | Code | 434 | 1,417 | //
// Created by freddy on 17/04/19.
//
#include <random>
#include <algorithm>
#include <util/BitUtils.h>
#include "ArnoldMoveGenerator.h"
const bool citadels[9][9] = {
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 1},
... | 20,776 |
https://github.com/ArkEcosystem/desktop-wallet/blob/master/src/app/hooks/use-env-synchronizer.test.tsx | Github Open Source | Open Source | MIT | 2,023 | desktop-wallet | ArkEcosystem | TSX | Code | 112 | 350 | import { act, renderHook } from "@testing-library/react-hooks";
import { EnvironmentProvider } from "app/contexts";
import { PluginManager, PluginManagerProvider } from "plugins";
import React from "react";
import { env, waitFor } from "utils/testing-library";
import { useEnvSynchronizer as useEnvironmentSynchronizer ... | 38,771 |
https://github.com/city41/tacklebox/blob/master/src/hud.h | Github Open Source | Open Source | MIT | 2,018 | tacklebox | city41 | C++ | Code | 15 | 46 | #pragma once
#include <Arduino.h>
#include "player.h"
struct Hud {
public:
static void render(Player& player);
};
| 33,287 |
https://github.com/j4baek/dse260-CapStone-Amazon/blob/master/Image_based_Recommender/10K_Image_Datasets/embedding-logs/metadata_4_classes.tsv | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | dse260-CapStone-Amazon | j4baek | TSV | Code | 1,550 | 3,875 | Class Name
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
1 cluster0
2 cluster0
2 cluster0
2 cluster0
2 cluster0
2 cluster0
2 cluster0
2 cluster0
2 cluster0
2... | 51,727 |
https://github.com/Phikzel2/haroldcoin-main-MacOS/blob/master/contrib/gitian-builder/inputs/MacOSX.sdk/usr/share/man/man8/sysdiagnose_helper.8 | Github Open Source | Open Source | MIT | null | haroldcoin-main-MacOS | Phikzel2 | null | Spoken | 39 | 81 | .Dd November 10, 2016
.Dt sysdiagnose_helper 8
.Os OSX
.Sh NAME
.Nm sysdiagnose_helper
.Nd performs critical operations for sysdiagnose.
.Sh DESCRIPTION
.Nm
is a helper daemon that performs critical sub-tasks in separate processes to improve sysdiagnose's stability and reliability.
| 29,139 |
https://github.com/dead-horse/ngen/blob/master/templates/edpweb/content/controllers/home.js | Github Open Source | Open Source | MIT | 2,013 | ngen | dead-horse | JavaScript | Code | 38 | 98 | /*!
* {{project}} - controllers/home.js
* Copyright(c) {{copyrightyear}} Alibaba Group Holding Limited.
* Author: {{name}} <{{email}}>
*/
"use strict";
/**
* Module dependencies.
*/
module.exports = function (req, res, next) {
res.render('/index', {
now: new Date()
});
};
| 50,951 |
https://github.com/k2boys/k2boys.github.io/blob/master/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss | Github Open Source | Open Source | MIT | null | k2boys.github.io | k2boys | SCSS | Code | 1,555 | 3,249 | /// Susy3 Configuration
/// ===================
/// Susy3 has 4 core settings, in a single settings map.
/// You'll notice a few differences from Susy2:
///
/// **Columns** no longer accept a single number, like `12`,
/// but use a syntax more similar to the new
/// CSS [grid-template-columns][columns] –
/// a list of ... | 12,986 |
https://github.com/andrewgross/redisio/blob/master/libraries/redisio.rb | Github Open Source | Open Source | Apache-2.0 | 2,013 | redisio | andrewgross | Ruby | Code | 449 | 1,428 | #
# Cookbook Name:: redisio
# Resource::install
#
# Copyright 2013, Brian Bianco <brian.bianco@gmail.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/license... | 16,002 |
https://github.com/munzuruleee/matrix-android-sdk/blob/master/matrix-sdk/src/main/java/org/matrix/androidsdk/sync/EventsThread.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | matrix-android-sdk | munzuruleee | Java | Code | 1,339 | 3,722 | /*
* Copyright 2014 OpenMarket Ltd
*
* 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 ... | 38,082 |
https://github.com/stan-ko/StanKoUtils/blob/master/app/src/main/java/com/stanko/tools/LocaleHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | StanKoUtils | stan-ko | Java | Code | 307 | 712 | package com.stanko.tools;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import java.util.Locale;
public class LocaleHelper {
/**
* Applies the new Locale for the application on the fly
*
* Note:
... | 23,050 |
https://github.com/Mikeliro/time-in-a-bottle/blob/master/src/main/java/com/haoict/tiab/ItemRegistryHandler.java | Github Open Source | Open Source | MIT | null | time-in-a-bottle | Mikeliro | Java | Code | 59 | 245 | package com.haoict.tiab;
import com.haoict.tiab.item.ItemTimeInABottle;
import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegis... | 42,263 |
https://github.com/Authing/authing-java-sdk/blob/master/src/main/java/cn/authing/sdk/java/dto/DataResourceSimpleRespDto.java | Github Open Source | Open Source | MIT | 2,023 | authing-java-sdk | Authing | Java | Code | 60 | 219 | package cn.authing.sdk.java.dto;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
public class DataResourceSimpleRespDto {
/**
* 数据权限所属的数据资源 ID
*/
@JsonProperty("resourceId")
private String resourceId;
/**
* 数据权限所属的数据资源名称
*/
@JsonProperty("resourceN... | 21,661 |
https://github.com/thunderkerrigan/GGJ2019/blob/master/Assets/PlayMaker/Actions/Convert/ConvertIntToString.cs | Github Open Source | Open Source | MIT | null | GGJ2019 | thunderkerrigan | C# | Code | 151 | 505 | // (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Convert)]
[Tooltip("Converts an Integer value to a String value with an optional format.")]
public class ConvertIntToString : FsmStateAction
{
[RequiredFi... | 22,818 |
https://github.com/fpagliughi/sockpp/blob/master/src/inet_address.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | sockpp | fpagliughi | C++ | Code | 493 | 1,306 | // inet_address.cpp
//
// --------------------------------------------------------------------------
// This file is part of the "sockpp" C++ socket library.
//
// Copyright (c) 2014-2017 Frank Pagliughi
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, ar... | 1,690 |
https://github.com/daemon/old-stuff/blob/master/2013/bot-core/ycore/network/util.py | Github Open Source | Open Source | MIT | null | old-stuff | daemon | Python | Code | 397 | 1,582 | from . import network as net
import datetime
import re
class LogWriter(net.ChatNetworkDecorator):
def __init__(self, networkManager, method):
self.networkManager = networkManager
self.method = method
def receive(self, messages):
self.networkManager.receive(messages)
... | 15,388 |
https://github.com/clawpack/geoclaw/blob/master/src/python/geoclaw/most2geoclaw.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | geoclaw | clawpack | Python | Code | 622 | 2,036 | """
Module for converting MOST data and output to GeoClaw format.
This is Work In Progress -- this module should be improved to use newer
topotools.
"""
from __future__ import absolute_import
from __future__ import print_function
import os, glob, re
from six.moves import range
def most2tt3(fname, fname2=None):
... | 27,199 |
https://github.com/klikli-dev/occultism/blob/master/src/main/java/com/klikli_dev/occultism/client/model/entity/GuardianFamiliarModel.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | occultism | klikli-dev | Java | Code | 1,320 | 6,108 | /*
* MIT License
*
* Copyright 2021 vemerion
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge,... | 20,562 |
https://github.com/yun-an/deis/blob/master/mesos/pkg/net/net.go | Github Open Source | Open Source | Apache-2.0 | 2,016 | deis | yun-an | Go | Code | 206 | 548 | package net
import (
"errors"
"net"
"strconv"
"strings"
"time"
)
// InterfaceIPAddress is used to know the interface and ip address in the sytem
type InterfaceIPAddress struct {
Iface string
IP string
}
// WaitForPort wait for successful network connection
func WaitForPort(proto string, ip string, port int... | 33,970 |
https://github.com/panglove/mycryto/blob/master/node_modules/@unstoppabledomains/resolution/build/utils/abicoder/bytes.d.ts | Github Open Source | Open Source | MIT | null | mycryto | panglove | TypeScript | Code | 77 | 172 | export declare type Arrayish = string | ArrayLike<number> | null;
export interface Hexable {
toHexString(): string;
}
export declare function isArrayish(value: any): value is Arrayish;
export declare function isHexable(value: any): value is Hexable;
export declare function hexlify(value: Arrayish | Hexable | number... | 33,438 |
https://github.com/rezonant/rezolve/blob/master/src/main/java/com/rezolvemc/storage/machines/diskBay/DiskBayMenu.java | Github Open Source | Open Source | MIT, BSD-2-Clause | 2,023 | rezolve | rezonant | Java | Code | 51 | 206 | package com.rezolvemc.storage.machines.diskBay;
import org.torchmc.inventory.ValidatedSlot;
import com.rezolvemc.common.machines.MachineMenu;
import net.minecraft.world.entity.player.Inventory;
public class DiskBayMenu extends MachineMenu<DiskBayEntity> {
public DiskBayMenu(int containerId, Inventory playerInv) {... | 28,301 |
https://github.com/cs2103-ay1819s2-w15-1/MAIN/blob/master/src/test/java/seedu/address/logic/commands/SomethingColorCommandTest.java | Github Open Source | Open Source | MIT | null | MAIN | cs2103-ay1819s2-w15-1 | Java | Code | 271 | 1,007 | package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccessTwoSoln;
import org.junit.Test;
import seedu.address.logic.CommandHistory;
import seedu.address.model.Model;
import see... | 53,034 |
https://github.com/Vetlin/telegram-bot/blob/master/src/model.js | Github Open Source | Open Source | MIT | null | telegram-bot | Vetlin | JavaScript | Code | 361 | 1,136 | const texts = require('./texts');
const routes = require('./routes');
const config = require('./config');
const fetch = require('node-fetch');
const Model = class {
constructor(texts, routes, config) {
this.texts = texts;
this.routes = routes;
this.config = config;
this.metalsId = ... | 33,513 |
https://github.com/borkan82/operatorpanel/blob/master/src/AppBundle/Controller/HelpersController.php | Github Open Source | Open Source | MIT | 2,017 | operatorpanel | borkan82 | PHP | Code | 583 | 3,414 | <?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\Response;
class HelpersController extends Controller
{
protected $_allowedArr = array(
'BA' => Array('38760'... | 36,421 |
https://github.com/icco/cron/blob/master/server/server.go | Github Open Source | Open Source | MIT | 2,021 | cron | icco | Go | Code | 520 | 1,792 | package main
import (
"context"
"encoding/json"
"fmt"
"html/template"
"net/http"
"os"
"cloud.google.com/go/pubsub"
"github.com/dgraph-io/ristretto"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/icco/cron"
"github.com/icco/cron/shared"
"github.com/icco/cron/sites"
"github.c... | 2,832 |
https://github.com/Ashiqur906/cinebaz-frontend-laravel-main/blob/master/resources/views/cart/checkout.blade.php | Github Open Source | Open Source | MIT | 2,022 | cinebaz-frontend-laravel-main | Ashiqur906 | PHP | Code | 359 | 1,546 | @extends('layouts.master')
@section('content')
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script src="https://unpkg.com/vue@next"></script>
<div class="main-content">
<div class="cart_section">
<div class="container-fluid">
... | 14,405 |
https://github.com/xiaham/face/blob/master/OriginalDesign.pde | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,017 | face | xiaham | null | Spoken | 98 | 294 |
void setup ()
{
size (400, 400);
}
void draw ()
{
if (mousePressed)
{
face ();
}
else
{
darkness ();
}
}
void darkness ()
{
fill (0);
rect (0,0,400,400);
fill (250); ellipse (175, 150, 50, 50); ellipse (225, 150, 50, 50); fill (0); ellipse (175,150, 10, 10); ellipse(225, 150, 10, 10); //eyes
}
voi... | 31,908 |
https://github.com/almaz114/QRainbowStyleSheet/blob/master/example/example5.py | Github Open Source | Open Source | MIT, CC-BY-4.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference | 2,021 | QRainbowStyleSheet | almaz114 | Python | Code | 149 | 833 | from qtpy.QtWidgets import QApplication, QWidget, QVBoxLayout, QSlider, QPushButton, QHBoxLayout, QLabel, QSizePolicy
from qtpy.QtCore import Qt, qInstallMessageHandler
import sys
import qrainbowstyle
from qrainbowstyle.widgets import QRoundProgressBar, StylePickerHorizontal
from qrainbowstyle.windows import Frameles... | 27,018 |
https://github.com/JSlowgrove/OOT-Assignment-1-OGRE/blob/master/OOT-OGRE-Framework/src/MyUtils.cpp | Github Open Source | Open Source | MIT | null | OOT-Assignment-1-OGRE | JSlowgrove | C++ | Code | 793 | 2,787 | #include "stdafx.h"
#include "MyUtils.h"
/*A namespace to contain utility functions.*/
namespace util
{
/*Create a 4x4 rotation matrix.*/
Ogre::Matrix3 RotationMatrixXYZ(Ogre::Vector3& orientation)
{
/*get a rotation matrix for x*/
Ogre::Matrix3 rotateX = xRotationMatrix3(orientation.x);
/*get a rotation ma... | 31,569 |
https://github.com/ppizarror/QUAKE/blob/master/quake/plot_ft.m | Github Open Source | Open Source | MIT | 2,020 | QUAKE | ppizarror | MATLAB | Code | 547 | 1,383 | function [w, ftw] = plot_ft(ft, wmin, wmax, varargin)
% PLOT_FT: Grafica la funcion de transferencia.
%
% ft = ft_velt_sa(...) / ft_velt_sb(...) / ft_elt(...)
% plot = plot_ft(ft, wmin, wmax, 'Plot title', varargin);
%
% Parametros:
% ft Funcion de transferencia en omega, ft(w)
% wmin Fr... | 40,178 |
https://github.com/ekawatani/youtube-data-scraper/blob/master/dist/data.d.ts | Github Open Source | Open Source | MIT | 2,020 | youtube-data-scraper | ekawatani | TypeScript | Code | 55 | 144 | export interface YouTubeVideoData {
id: string;
channelId: string;
unlisted: string;
title: string;
description: string;
duration: number;
publishedAt: string;
category: string;
gameTitle: string;
viewCount: number;
likeCount: number;
dislikeCount: number;
commentCoun... | 42,080 |
https://github.com/itrofimow/corefx/blob/master/src/Common/src/Interop/Windows/SChannel/Interop.SchProtocols.cs | Github Open Source | Open Source | MIT | 2,019 | corefx | itrofimow | C# | Code | 234 | 839 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
internal static partial class Interop
{
internal static partial class SChannel
{
// Most constants b... | 36,281 |
https://github.com/lamnguyenit/serverTCU/blob/master/moodle/blocks/xp/classes/form/edit_form.php | Github Open Source | Open Source | Apache-2.0 | null | serverTCU | lamnguyenit | PHP | Code | 266 | 769 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | 16,098 |
https://github.com/mrstephenneal/pdfwatermarker/blob/master/tests/test_conduit_watermark.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | pdfwatermarker | mrstephenneal | Python | Code | 418 | 1,538 | import os
import unittest
from tempfile import TemporaryDirectory
from looptools import Timer
from pdfconduit.conduit import Watermark
from pdfconduit.conduit.watermark.label import Label
from pdfconduit.utils import Info
from tests import *
class TestWatermark(unittest.TestCase):
@classmethod
def setUpClas... | 7,552 |
https://github.com/ballmw/java-library/blob/master/src/main/java/com/urbanairship/api/client/parse/APIResponseObjectMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | java-library | ballmw | Java | Code | 323 | 2,486 | /*
* Copyright (c) 2013-2015. Urban Airship and Contributors
*/
package com.urbanairship.api.client.parse;
import com.urbanairship.api.channel.information.model.ChannelView;
import com.urbanairship.api.channel.information.model.DeviceType;
import com.urbanairship.api.channel.information.model.ios.IosSettings;
impo... | 26,042 |
https://github.com/frobben/lecoffeeride/blob/master/public/wp-content/plugins/wp-add-mime-types/wp-add-mime-types.php | Github Open Source | Open Source | MIT | null | lecoffeeride | frobben | PHP | Code | 441 | 1,544 | <?php
/*
Plugin Name: WP Add Mime Types
Plugin URI:
Description: The plugin additionally allows the mime types and file extensions to WordPress.
Version: 2.2.1
Author: Kimiya Kitani
Author URI: http://kitaney-wordpress.blogspot.jp/
Text Domain: wp-add-mime-types
Domain Path: /lang
*/
// Multi-language support.
funct... | 49,839 |
https://github.com/Yueleng/ccc_cco_material/blob/master/prev_exams_and_ans/2020ccc/q4_cyclic_shifts/cyclic_shifts.py | Github Open Source | Open Source | MIT | null | ccc_cco_material | Yueleng | Python | Code | 55 | 161 | #import sys
#input = sys.stdin.readline
t = input()
s = input()
def gen_cyclic(word):
s_len = len(word)
s_cyclic = []
for i in range(0, s_len):
s_cyclic.append(word[i:] + word[:i])
return s_cyclic
flag = False
for cyclic in gen_cyclic(s):
if cyclic in t: # if t.find(cyclic) >= 0:
... | 42,086 |
https://github.com/lionralfs/tal-ts/blob/master/src/widgets/carousel/navigators/bookendednavigator.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | tal-ts | lionralfs | TypeScript | Code | 107 | 263 | import { Navigator } from './navigator';
export class BookendedNavigator extends Navigator {
/**
* @param index
* @return the first focussable index after that supplied
*/
public indexAfter(index: number): number {
const potentialIndex = super.indexAfter(index);
return this.validateIndex(potential... | 5,357 |
https://github.com/rbuels/jbrowse/blob/master/tests/js_tests/spec/GFF3.spec.js | Github Open Source | Open Source | Artistic-2.0 | 2,020 | jbrowse | rbuels | JavaScript | Code | 550 | 1,900 | require([
'dojo/_base/array',
'dojo/_base/lang',
'dojo/request/xhr',
'JBrowse/Browser',
'JBrowse/Model/XHRBlob',
'JBrowse/Util/GFF3',
'JBrowse/Store/SeqFeature/GFF3/Parser',
'JBrowse/Store/SeqFeature/GFF3'
], functio... | 49,776 |
https://github.com/glauberm/doaj/blob/master/portality/bll/exceptions.py | Github Open Source | Open Source | Apache-2.0 | null | doaj | glauberm | Python | Code | 244 | 660 | import sys, traceback
class AuthoriseException(Exception):
"""
Exception to raise if an action is not authorised
"""
# standardised reasons why an action might not be allowed
NOT_OWNER = "not_owner"
WRONG_ROLE = "wrong_role"
WRONG_STATUS = "wrong_status"
NOT_AUTHORISED = "not_authorise... | 30,873 |
https://github.com/leabiv/ova-ap/blob/master/resources/views/correos/index.blade.php | Github Open Source | Open Source | MIT | null | ova-ap | leabiv | PHP | Code | 144 | 759 | @extends('layouts.app')
@section('content')
<div class="container py-4">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header navbar-color-ufps"><h3 class="text-white">{{ __('Enviar Mensaje') }}</h3></div>
<d... | 28,615 |
https://github.com/benignware/benignware-installer/blob/master/test/wp-content/themes/sitekick/scss/_sidebar.scss | Github Open Source | Open Source | MIT | null | benignware-installer | benignware | SCSS | Code | 22 | 76 | :root {
--sidebar-top: #{56}px; // Pixels only
}
.admin-bar {
--sidebar-top: #{32 + 56}px;
}
.sidebar {
position: sticky;
top: var(--sidebar-top);
}
| 35,182 |
https://github.com/mecathcart/Hackathon/blob/master/src/main/java/org/hackreduce/examples/ngram/one_gram/NgramWordMatchCounterLowerCase.java | Github Open Source | Open Source | MIT | 2,012 | Hackathon | mecathcart | Java | Code | 310 | 1,104 | package org.hackreduce.examples.ngram.one_gram;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce... | 16,270 |
https://github.com/wimdaw/go-drive/blob/master/web/src/views/EntryListView/index.vue | Github Open Source | Open Source | MIT | 2,021 | go-drive | wimdaw | Vue | Code | 243 | 932 | <template>
<div class="entry-list-view">
<entry-list
v-if="!error"
ref="entryList"
:path="loadedPath"
:entries="filteredEntries"
@entry-click="$emit('entry-click', $event)"
@entry-menu="$emit('entry-menu', $event)"
@path-change="$emit('path-change', $event)"
:sort="... | 37,965 |
https://github.com/Daniel-Amaya/PSC/blob/master/publico/js/validar/validarAdopcionForm.js | Github Open Source | Open Source | MIT | 2,022 | PSC | Daniel-Amaya | JavaScript | Code | 144 | 712 | (function(){
document.addEventListener('DOMContentLoaded', () =>{
////////////////////////// Pregunta 2 //////////////////////////
let p2 = document.getElementsByName('2');
p2[1].addEventListener('change', function(){
if(this.checked){
id('db2').value = 'No apl... | 52,745 |
https://github.com/CyberFlameGO/Starfield/blob/master/Starfield.Core/Block/Blocks/BlockGlowstone.cs | Github Open Source | Open Source | MIT | 2,021 | Starfield | CyberFlameGO | C# | Code | 65 | 178 | // FILE AUTOGENERATED. DO NOT MODIFY
using System;
namespace Starfield.Core.Block.Blocks {
[Block("minecraft:glowstone", 200, 4013, 4013, 4013)]
public class BlockGlowstone : BlockBase {
public override ushort State {
get {
return DefaultState;
}
s... | 40,912 |
https://github.com/edwincervantes/StateMechanic/blob/master/src/StateMechanic/StateMachineFaultedException.cs | Github Open Source | Open Source | MIT | 2,022 | StateMechanic | edwincervantes | C# | Code | 85 | 190 | using System;
namespace StateMechanic
{
/// <summary>
/// Exception thrown when the state machine faults, because some part threw an exception
/// </summary>
public class StateMachineFaultedException : Exception
{
/// <summary>
/// Gets information on which component faulted, and t... | 24,862 |
https://github.com/ElvisNogueira/Veiculos_Pajeu/blob/master/Veiculos_Pajeu/src/business/ClienteBusiness.java | Github Open Source | Open Source | Apache-2.0 | null | Veiculos_Pajeu | ElvisNogueira | Java | Code | 151 | 464 | /*
* 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 business;
import dao.ClienteDAO;
import fachada.Fachada;
import java.util.ArrayList;
import model.Cliente;
import model.Ender... | 23,302 |
https://github.com/samkenxstream/axiom/blob/master/gruntfile.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | axiom | samkenxstream | JavaScript | Code | 963 | 4,798 | // Copyright 2014 Google Inc. 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... | 39,045 |
https://github.com/vjeson/flutter-desktop-embedding/blob/master/plugins/window_utils/lib/window_frame.dart | Github Open Source | Open Source | Apache-2.0 | 2,020 | flutter-desktop-embedding | vjeson | Dart | Code | 207 | 748 | import 'package:flutter/material.dart';
import 'package:window_utils/window_utils.dart';
class WindowsFrame extends StatelessWidget {
const WindowsFrame({
Key key,
@required this.child,
@required this.active,
this.border,
}) : super(key: key);
final Widget child;
final bool active;
final Box... | 41,580 |
https://github.com/forging2012/v3nayou/blob/master/routes/member.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | v3nayou | forging2012 | Go | Code | 847 | 2,896 | package routes
import (
"crypto/subtle"
"database/sql"
"encoding/json"
"errors"
"strconv"
"time"
"github.com/Lofanmi/v3nayou/cfg"
"github.com/Lofanmi/v3nayou/spiders/gzhu"
"github.com/Lofanmi/v3nayou/utils"
"github.com/gin-gonic/gin"
"github.com/parnurzeal/gorequest"
)
// Member 个人中心账号绑定
func Member(c *g... | 32,358 |
https://github.com/gen1us2k/docs/blob/master/tests/jest/redirects/docs-redirects.test.ts | Github Open Source | Open Source | Apache-2.0 | null | docs | gen1us2k | TypeScript | Code | 24 | 76 | import { readSitemapXML, Sitemap, getLoc, getNewURL, runTest } from './utils'
const sitemap = readSitemapXML('sitemap_docs.xml')
it('test docs sitemap', async () => {
await runTest(sitemap)
})
| 27,668 |
https://github.com/vaporlain/Knak-Legends/blob/master/knakky/.import/village_004_2048x1536.png-c96f03f54d544c714c097e42bf2002be.md5 | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,019 | Knak-Legends | vaporlain | null | Spoken | 2 | 54 | source_md5="0665c299e74a4a8a30fa6c025bac3e40"
dest_md5="01047eeab8b84e9c291dd0ab5859e664"
| 37,858 |
https://github.com/tuwiendsg/RAHYMS/blob/master/hcu/hcu-external-lib/src/main/java/gridsim/parallel/SSGridletList.java | Github Open Source | Open Source | Apache-2.0 | null | RAHYMS | tuwiendsg | Java | Code | 295 | 605 | /*
* Title: GridSim Toolkit
* Description: GridSim (Grid Simulation) Toolkit for Modeling and Simulation
* of Parallel and Distributed Systems such as Clusters and Grids
* License: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2002, The University of Melbourne, Australia
... | 32,622 |
https://github.com/vadixidav/ndimage/blob/master/src/processing/kernel.rs | Github Open Source | Open Source | MIT | 2,019 | ndimage | vadixidav | Rust | Code | 434 | 1,284 | //! Contains the definitions of the image kernel type and the convolution operation.
use core::{Image2D, Image2DMut, ImageBuffer2D, Pixel, Primitive, Rect};
use helper::generic::f64_to_float;
use math;
use failure::Error;
use num_traits::{Float, NumCast, Zero};
use std::ops::Add;
/// Symmetric odd kernel, whose cen... | 8,731 |
https://github.com/Skholastik/TimeTracker/blob/master/src/main/webapp/webpack/src/app/globalServices/entitiesDTO/reportDTO.class.ts | Github Open Source | Open Source | MIT | 2,016 | TimeTracker | Skholastik | TypeScript | Code | 19 | 74 | import {Serializable} from './serializable.class.ts'
import {UserDTO} from './userDTO.class'
export class ReportDTO extends Serializable{
id:string;
report:string;
workTime:string;
workDate:string;
creationDateTime:string;
}
| 4,550 |
https://github.com/Nimai-Trade/ANGULAR/blob/master/src/styles/_main.scss | Github Open Source | Open Source | Apache-2.0 | null | ANGULAR | Nimai-Trade | SCSS | Code | 149 | 431 | html,
body {
height: 100%;
margin: 0;
font-family: "Fontil Sans";
}
.main-container {
position: absolute;
top: 64px;
left: 200px;
right: 0;
bottom: 0;
padding: 20px;
}
.mb-20 {
margin-bottom: 20px;
}
* {
font-family: "Nunito Sans", sans-serif;
}
html {
margin: 0;
padding: 0;
height: 100%... | 51,290 |
https://github.com/rmleon/GorillasCollection/blob/master/maps/src/main/scala/gorillas/collection/mutable/NavigableMultiMapBuilder.scala | Github Open Source | Open Source | BSD-2-Clause | 2,012 | GorillasCollection | rmleon | Scala | Code | 187 | 559 | package gorillas.collection.mutable
import gorillas.collection.generic.KeyTransformation
import gorillas.collection.immutable.{ SortedArrayMultiMap, NavigableMultiMap }
import collection.IndexedSeqLike
import collection.immutable.Seq
import gorillas.util.PairSorting
/**
* @author Ricardo Leon
* @param ordering keys... | 29,178 |
https://github.com/OutlierVentures/MoneyCirclesPoc/blob/master/test/contracts/testCircleCalculations.ts | Github Open Source | Open Source | Apache-2.0 | null | MoneyCirclesPoc | OutlierVentures | TypeScript | Code | 1,294 | 3,637 | import assert = require('assert');
import web3config = require('./web3config');
var web3plus = web3config.web3plus;
var web3 = web3plus.web3;
describe("Circle calculations", () => {
/**
* The Solidity web3 contract.
*/
var circleContract;
var testName = "A testing circle";
var testCommonBo... | 19,683 |
https://github.com/georgeOsdDev/slidepad/blob/master/src/documents/deck.js/index.html.coffee | Github Open Source | Open Source | MIT | 2,019 | slidepad | georgeOsdDev | CoffeeScript | Code | 164 | 622 | ---
title: 'deck.js'
name: 'deck.js'
linkTitle: 'deck.js'
pageOrder: 3
layout: 'deck'
tags: ['navmenu']
---
# Helper for nested section
hashedPages ={}
pages=[]
rendered = {}
renderChild = (page) ->
page.child?.forEach (childId) =>
childPage = hashedPages[childId]
if not rendered[childPage.sectionId]
s... | 37,757 |
https://github.com/ContinuITy-Project/ContinuITy/blob/master/continuity.service.jmeter/src/main/java/org/continuity/jmeter/controllers/AvailabilityController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ContinuITy | ContinuITy-Project | Java | Code | 51 | 195 | package org.continuity.jmeter.controllers;
import static org.continuity.api.rest.RestApi.JMeter.Availability.ROOT;
import static org.continuity.api.rest.RestApi.JMeter.Availability.Paths.CHECK;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;... | 16,671 |
https://github.com/wolubo/FuzzyLogicInterpreter/blob/master/src/main/java/de/wbongartz/fuzzy_logic_parser/evaluable/bool/IsSymmetricComplement.java | Github Open Source | Open Source | MIT | 2,021 | FuzzyLogicInterpreter | wolubo | Java | Code | 51 | 311 | package de.wbongartz.fuzzy_logic_parser.evaluable.bool;
import de.wbongartz.fuzzy_logic_parser.set.Set;
import de.wbongartz.fuzzy_logic_parser.set.SetElement;
import de.wbongartz.fuzzy_logic_parser.evaluable.Evaluable;
import de.wbongartz.fuzzy_logic_parser.evaluable.TernaryOperator;
import de.wbongartz.fuzzy_logic_pa... | 50,271 |
https://github.com/dickeylth/g2/blob/master/test/bugs/default-tooltip-marker-spec.js | Github Open Source | Open Source | MIT | 2,020 | g2 | dickeylth | JavaScript | Code | 125 | 402 | const expect = require('chai').expect;
const G2 = require('../../src/index');
describe('Default tooltip marker', () => {
let div;
let chart;
before(() => {
div = document.createElement('div');
document.body.appendChild(div);
});
it('Default tooltip marker', () => {
const data = [
{ genre: ... | 31,603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.