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/NimmiW/VippsDotNetSdk/blob/master/VippsDotNetSdk/Model/Callback/Shipping/ShippingResponse.cs | Github Open Source | Open Source | MIT | 2,018 | VippsDotNetSdk | NimmiW | C# | Code | 34 | 94 | using System.Collections;
using System.Collections.Generic;
namespace VippsDotNetSdk.Model.Callback.Shipping
{
public class ShippingResponse
{
public int AddressId { get; set; }
public string OrderId { get; set; }
public IList<ShippingDe... | 23,056 |
https://github.com/HBenzaoui/grommet/blob/master/src/js/components/Tab/doc.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | grommet | HBenzaoui | JavaScript | Code | 60 | 159 | import { describe, PropTypes } from 'react-desc';
export const doc = Tab => {
const DocumentedTab = describe(Tab)
.description('One tab within Tabs.')
.usage(
`import { Tab } from 'grommet';
<Tab />`,
);
DocumentedTab.propTypes = {
plain: PropTypes.bool
.description('Whether this is a ... | 25,618 |
https://github.com/DmitriM3/proyecto-de-software/blob/master/app/Views/usuarios/crear.php | Github Open Source | Open Source | MIT | null | proyecto-de-software | DmitriM3 | PHP | Code | 138 | 666 | <?= $this->extend('template/admin-template'); ?>
<?= $this->section('content'); ?>
<div class="row justify-content-md-center">
<div class="col-md-8">
<form class="was-validated" action="<?= site_url('/guardar') ?>" method="post">
<div class="mb-3">
<label for="usuario" class="fo... | 24,493 |
https://github.com/imyzx2017/mindspore_pcl/blob/master/cmake/external_libs/sentencepiece.cmake | Github Open Source | Open Source | Apache-2.0, MIT, Libpng, LicenseRef-scancode-proprietary-license, LGPL-2.1-only, AGPL-3.0-only, MPL-2.0-no-copyleft-exception, IJG, Zlib, MPL-1.1, BSD-3-Clause, BSD-3-Clause-Open-MPI, MPL-1.0, GPL-2.0-only, MPL-2.0, BSL-1.0, LicenseRef-scancode-unknown-license-reference, Unlicense, LicenseRef-scancode-public-domain, BS... | 2,020 | mindspore_pcl | imyzx2017 | CMake | Code | 76 | 592 | if (ENABLE_GITEE)
set(REQ_URL "https://gitee.com/mirrors/sentencepiece/repository/archive/v0.1.92.tar.gz")
set(MD5 "618f5590c99884866c01cb773096c523")
else()
set(REQ_URL "https://github.com/google/sentencepiece/archive/v0.1.92.tar.gz")
set(MD5 "5dfd2241914b5598a68b2a8542ed8e91")
endif ()
if (WIN32)
... | 29,382 |
https://github.com/kollya/fluentui-system-icons/blob/master/packages/react-icons/src/components/PhoneUpdate24Filled.tsx | Github Open Source | Open Source | MIT | 2,021 | fluentui-system-icons | kollya | TSX | Code | 86 | 438 | import * as React from "react";
import { JSX } from "react-jsx";
import { IFluentIconsProps } from '../IFluentIconsProps.types';
const PhoneUpdate24Filled = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
return <svg... | 17,815 |
https://github.com/PSteinhaus/good-web-game/blob/master/src/goodies/scene.rs | Github Open Source | Open Source | MIT | 2,021 | good-web-game | PSteinhaus | Rust | Code | 1,084 | 2,855 | //! The Scene system is basically for transitioning between
//! *completely* different states that have entirely different game
//! loops and but which all share a state. It operates as a stack, with new
//! scenes getting pushed to the stack (while the old ones stay in
//! memory unchanged). Apparently this is basic... | 2,072 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/ro_ing_mobile_banking_android_activity/source/ɿ.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Java | Code | 84 | 278 | import android.os.Looper;
public final class ɿ
{
private Looper zzall;
private ﯦ zzfmh;
public ɿ() {}
public final ɿ zza(Looper paramLooper)
{
ʅ.checkNotNull(paramLooper, "Looper must not be null.");
this.zzall = paramLooper;
return this;
}
public final ɿ zza(ﯦ paramﯦ)
{
ʅ.chec... | 41,754 |
https://github.com/mathomas/twig/blob/master/src/app/left-side-bar/left-side-bar.component.scss | Github Open Source | Open Source | Apache-2.0 | null | twig | mathomas | SCSS | Code | 11 | 43 | @import '../../styles_colors';
:host {
background-color: $buildit-coal;
max-height: calc(100vh - 100px);
}
| 7,950 |
https://github.com/2122aaor/shakti_custom/blob/master/cores/iclass/verilog/module_fn_sll.v | Github Open Source | Open Source | BSD-3-Clause | 2,018 | shakti_custom | 2122aaor | Verilog | Code | 199 | 856 | //
// Generated by Bluespec Compiler, version 2014.07.A (build 34078, 2014-07-30)
//
// On Mon Sep 14 23:06:34 IST 2015
//
//
// Ports:
// Name I/O size props
// fn_sll O 64
// fn_sll__in1 I 64
// fn_sll__in2 I 64
// fn_sll_... | 15,634 |
https://github.com/wkkisme/shiwai-im-server/blob/master/imserver-client/src/main/java/com/im/imserver/api/MetricsServiceI.java | Github Open Source | Open Source | MIT | null | shiwai-im-server | wkkisme | Java | Code | 65 | 271 | package com.im.imserver.api;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.Response;
import com.im.imserver.dto.*;
import com.im.imserver.dto.clientobject.ATAMetricCO;
/**
* MetricsServiceI
*
* @author Frank Zhang
* @date 2019-03-01 10:06 AM
*/
public interface MetricsServiceI {
publ... | 6,455 |
https://github.com/yldio/docker-compose-api/blob/master/compose/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | docker-compose-api | yldio | Python | Code | 11 | 35 | from __future__ import absolute_import
from __future__ import unicode_literals
__version__ = '1.13.0dev'
| 19,907 |
https://github.com/bradical/Airbrake-Notifier-for-Java/blob/master/src/main/java/hoptoad/IsValidBacktrace.java | Github Open Source | Open Source | Apache-2.0 | 2,012 | Airbrake-Notifier-for-Java | bradical | Java | Code | 68 | 185 | // Modified or written by Luca Marrocco for inclusion with hoptoad.
// Copyright (c) 2009 Luca Marrocco.
// Licensed under the Apache License, Version 2.0 (the "License")
package hoptoad;
import org.hamcrest.*;
public class IsValidBacktrace<T> extends BaseMatcher<T> {
@Factory
public static final <T> Matcher<T> v... | 11,465 |
https://github.com/beetlefinder/go-server/blob/master/controller/alert.go | Github Open Source | Open Source | MIT | 2,018 | go-server | beetlefinder | Go | Code | 182 | 589 | // Copyright 2018 Vladimir Poliakov and The Contributors. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package controller
import (
goctx "context"
"net/http"
"github.com/beetlefinder/go-server/dto"
"github.com/gin-gonic/gin"
"gith... | 53,652 |
https://github.com/111116/virtualventure/blob/master/simulation/main_testbench.vhdl | Github Open Source | Open Source | CC0-1.0 | 2,021 | virtualventure | 111116 | VHDL | Code | 284 | 895 | library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity main_testbench is
end entity ; -- main_testbench
architecture arch of main_testbench is
component sram_model is
port (
Address : in unsigned(19 downto 0);
CE_n : in std_logic;
DataIO : inout unsigned(15 do... | 2,584 |
https://github.com/Jiuhong-casperlabs/eip3156workspace/blob/master/eip3156-1/tests/testing/src/integration_tests_borrower_lender.rs | Github Open Source | Open Source | MIT | null | eip3156workspace | Jiuhong-casperlabs | Rust | Code | 1,860 | 7,188 | #[cfg(test)]
mod tests {
use casper_engine_test_support::{
DeployItemBuilder, ExecuteRequestBuilder, InMemoryWasmTestBuilder, ARG_AMOUNT,
DEFAULT_ACCOUNT_INITIAL_BALANCE, DEFAULT_GENESIS_CONFIG, DEFAULT_GENESIS_CONFIG_HASH,
DEFAULT_PAYMENT,
};
use casper_execution_engine::core::engin... | 2,927 |
https://github.com/keith/DrString/blob/master/Sources/Critic/explainers.swift | Github Open Source | Open Source | MIT | 2,022 | DrString | keith | Swift | Code | 1,745 | 3,547 | // DO NOT EDIT: this is generated by Scripts/generateexplainers.py
extension Explainer {
public static var all: [String: Explainer] {
[
"E001": .init(
id: "E001",
summary: """
A documented parameter is not recognized as part of the function signature.
... | 19,522 |
https://github.com/phantie/starlette-json/blob/master/setup.py | Github Open Source | Open Source | BSD-3-Clause | null | starlette-json | phantie | Python | Code | 121 | 461 | import os
from setuptools import setup
NAME = 'starlette_json'
VERSION = '20.09.18'
DESCRIPTION = 'orjson serializer for the Starlette web framework.'
URL = 'https://github.com/chrisliveseer/starlette-json'
EMAIL = 'chris@liveseer.com'
AUTHOR = 'Chris Liveseer'
REQUIRES_PYTHON = '>=3.6.0'
here = os.path.abspath(os.p... | 42,196 |
https://github.com/mul1sh/game3.js/blob/master/packages/client/src/core/utilities/components/TxPendingModal.js | Github Open Source | Open Source | MIT | 2,020 | game3.js | mul1sh | JavaScript | Code | 445 | 1,675 | import React, { useState, useRef, useEffect } from "react";
import {
Modal,
Box,
Icon,
Link,
Button,
Flex,
Heading,
Text,
Card,
Tooltip
} from "rimble-ui";
import ProgressBar from "./ProgressBar";
import ProgressPercentCircle from "./ProgressPercentCircle";
import EyeIcon from "./EyeIcon";
import sh... | 29,069 |
https://github.com/graphprotocol/graph-node/blob/master/store/postgres/src/store.rs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | graph-node | graphprotocol | Rust | Code | 462 | 1,674 | use async_trait::async_trait;
use std::sync::Arc;
use graph::{
components::{
server::index_node::VersionInfo,
store::{
BlockPtrForNumber, BlockStore as BlockStoreTrait, QueryStoreManager, StatusStore,
Store as StoreTrait,
},
},
constraint_violation,
data:... | 17,677 |
https://github.com/not522/CompetitiveProgramming/blob/master/old2/contest/AtCoder/abc144/A.cpp | Github Open Source | Open Source | Unlicense | 2,023 | CompetitiveProgramming | not522 | C++ | Code | 34 | 68 | #include "template.hpp"
int main() {
int a(in), b(in);
if (a <= 9 && b <= 9) {
cout << a * b << endl;
} else {
cout << -1 << endl;
}
}
| 44,446 |
https://github.com/theezak/BloomFilters/blob/master/TBag.BloomFilters/Countable/ICountingBloomFilter.Generic.cs | Github Open Source | Open Source | MIT | 2,021 | BloomFilters | theezak | C# | Code | 821 | 2,181 |
using System.Collections.Generic;
using TBag.BloomFilters.Configurations;
using TBag.BloomFilters.Countable.Configurations;
namespace TBag.BloomFilters.Countable
{
/// <summary>
/// Interface for a counting Bloom filter
/// </summary>
/// <typeparam name="TEntity">Entity type</typeparam>
/// <typ... | 11,998 |
https://github.com/naseemakhtar994/JsonUnit/blob/master/json-unit-core/src/main/java/net/javacrumbs/jsonunit/core/internal/Differences.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | JsonUnit | naseemakhtar994 | Java | Code | 170 | 359 | /**
* Copyright 2009-2017 the original author or 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 a... | 33,243 |
https://github.com/b0nbon1/restuarant-php/blob/master/api/database/factories/Reviews.php | Github Open Source | Open Source | MIT | 2,020 | restuarant-php | b0nbon1 | PHP | Code | 32 | 122 | <?php
use App\Food;
use App\User;
use Faker\Generator as Faker;
$factory->define(App\Reviews::class, function (Faker $faker) {
return [
'review'=> $faker->paragraph,
'star'=> $faker->numberBetween(0,5),
'food_id' => function(){ return Food::all()->random();},
'user_id' => function(... | 31,909 |
https://github.com/Badging-System/Badging-System/blob/master/mongo-seed/models/Badge.js | Github Open Source | Open Source | MIT | 2,020 | Badging-System | Badging-System | JavaScript | Code | 58 | 189 | const mongoose = require("mongoose");
ObjectID = require("mongodb").ObjectID;
const Schema = mongoose.Schema;
//create a schema
const badgeSchema = new Schema({
Name: {
type: String
},
Description: {
type: String
},
Team: {
type: Schema.Types.ObjectId,
ref: "teams"
},
Recipients: [{type: ... | 38,879 |
https://github.com/unitdeveloper/me2/blob/master/admin/modules/warehousemoving/views/default/__modern_trade.php | Github Open Source | Open Source | BSD-3-Clause | null | me2 | unitdeveloper | PHP | Code | 1,067 | 4,733 | <?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
use admin\modules\SaleOrders\models\FunctionSaleOrder;
?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
//'filterModel' => $searchModel,
'tableOptions' => ['class' => 'table table-bordered table-hover', 'id' => 'mode... | 29,671 |
https://github.com/bluecamel/image-processing/blob/master/stitcher/include/airmap/stitcher.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | image-processing | bluecamel | C | Code | 654 | 1,744 | #pragma once
#include <atomic>
#include <sstream>
#include "airmap/camera.h"
#include "airmap/logging.h"
#include "airmap/monitor/estimator.h"
#include "airmap/monitor/monitor.h"
#include "airmap/panorama.h"
using airmap::stitcher::monitor::Estimator;
using airmap::stitcher::monitor::Monitor;
using airmap::stitcher:... | 20,761 |
https://github.com/KatsumiTakei/secretseekspy/blob/master/Assets/FilterTemplateAssetPostprocessor/Editor/PropertyDrawers/ContainsDrawer.cs | Github Open Source | Open Source | MIT | 2,021 | secretseekspy | KatsumiTakei | C# | Code | 113 | 459 | using System.Text.RegularExpressions;
using FilterTemplateAssetPostprocessor.Runtime.Attributes;
using UnityEditor;
using UnityEngine;
namespace FilterTemplateAssetPostprocessor.Editor.PropertyDrawers
{
[CustomPropertyDrawer(typeof(ContainsAttribute))]
public class ContainsDrawer : PropertyDrawer
{
... | 27,604 |
https://github.com/t3dbrida/VTK/blob/master/Common/DataModel/vtkPartitionedDataSet.cxx | Github Open Source | Open Source | BSD-3-Clause | 2,019 | VTK | t3dbrida | C++ | Code | 209 | 864 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPartitionedDataSet.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | 1,916 |
https://github.com/ChristineSeven/alicloud-ams-demo/blob/master/push-openapi-java-demo/src/test/java/com/aliyun/demo/push/AdvancedPushDemoTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | alicloud-ams-demo | ChristineSeven | Java | Code | 571 | 4,123 | package com.aliyun.demo.push;
import com.aliyuncs.push.model.v20150827.CancelPushRequest;
import com.aliyuncs.push.model.v20150827.CancelPushResponse;
import com.aliyuncs.push.model.v20150827.PushRequest;
import com.aliyuncs.push.model.v20150827.PushResponse;
import com.aliyuncs.utils.ParameterHelper;
import org.junit... | 39,135 |
https://github.com/allegro/hermes/blob/master/hermes-api/src/main/java/pl/allegro/tech/hermes/api/endpoints/ReadinessEndpoint.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | hermes | allegro | Java | Code | 46 | 297 | package pl.allegro.tech.hermes.api.endpoints;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.Response;
import pl.allegro.tech.hermes.api.DatacenterReadiness;
import p... | 24,011 |
https://github.com/SparseDataTree/Priority-Operation-Processing/blob/master/api/main/src/main/java/com/comcast/pop/api/output/OutputStreams.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Priority-Operation-Processing | SparseDataTree | Java | Code | 66 | 211 | package com.comcast.pop.api.output;
import java.util.List;
public class OutputStreams
{
private List<OutputStream> video;
private List<OutputStream> audio;
private List<OutputStream> text;
public List<OutputStream> getVideo()
{
return video;
}
public void setVideo(List<OutputStre... | 16,315 |
https://github.com/jasonkuhrt/origin/blob/master/pkg/assets/handlers.go | Github Open Source | Open Source | Apache-2.0 | 2,014 | origin | jasonkuhrt | Go | Code | 55 | 183 | package assets
import (
"net/http"
"strings"
)
func HTML5ModeHandler(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if _, err := Asset(strings.TrimPrefix(r.URL.Path, "/")); err != nil {
b, err := Asset("index.html")
if err != nil {
http.Error(w, "F... | 50,623 |
https://github.com/common-fate/granted/blob/master/pkg/browsers/browsers.go | Github Open Source | Open Source | MIT | 2,022 | granted | common-fate | Go | Code | 389 | 1,295 | package browsers
import (
"errors"
"os/exec"
"runtime"
)
const (
ChromeKey string = "CHROME"
FirefoxKey string = "FIREFOX"
FirefoxStdoutKey string = "FIREFOX_STDOUT"
EdgeKey string = "EDGE"
BraveKey string = "BRAVE"
StdoutKey string = "STDOUT"
ChromiumKey string = "... | 53,734 |
https://github.com/BramKaashoek/commercetools-python-sdk/blob/master/src/commercetools/services/custom_objects.py | Github Open Source | Open Source | MIT | null | commercetools-python-sdk | BramKaashoek | Python | Code | 162 | 677 | import typing
from typing import Optional
from commercetools import schemas, types
from commercetools.services import abstract
from commercetools.typing import OptionalListStr
__all__ = ["CustomObjectService"]
class CustomObjectDeleteSchema(abstract.AbstractDeleteSchema):
pass
class CustomObjectQuerySchema(ab... | 4,482 |
https://github.com/tiendq/aloxide/blob/master/packages/demux-icon/test/isBigNumber.test.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | aloxide | tiendq | TypeScript | Code | 20 | 85 | import isBigNumber from '../src/isBigNumber';
describe('test is big number', () => {
it('check 1598862518674351', () => {
expect(isBigNumber('1598862518674351')).toEqual(false);
expect(isBigNumber(1598862518674351)).toEqual(false);
});
});
| 32,524 |
https://github.com/NicholasZonenberg/DomoMaker-A-Start/blob/master/client/app/maker.js | Github Open Source | Open Source | Apache-2.0 | null | DomoMaker-A-Start | NicholasZonenberg | JavaScript | Code | 349 | 1,427 | const handleDomo = (e) => {
e.preventDefault();
$("#domoMessage").animate({width:'hide'},350);
if($('#domoName').val() == '' || $("#domoAge").val() == ''){
handleError("All fields are required");
return false;
}
sendAjax('POST', $("#domoForm").attr("action"), $("#domoForm").serial... | 15,786 |
https://github.com/ManYuenYu/BaiSiBuDeJie/blob/master/百思不得姐/Podfile | Github Open Source | Open Source | Apache-2.0 | 2,017 | BaiSiBuDeJie | ManYuenYu | Ruby | Code | 11 | 36 | platform :ios, '10.2'
target '百思不得姐' do
pod 'AFNetworking'
pod 'pop'
end
| 50,608 |
https://github.com/yvesmauron/univariate-time-series-forecasting/blob/master/man/forecast_forunco.Rd | Github Open Source | Open Source | MIT | 2,020 | univariate-time-series-forecasting | yvesmauron | R | Code | 452 | 1,315 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ts_forecast.R
\name{forecast_forunco}
\alias{forecast_forunco}
\title{Forunco function for batch forecasting in R}
\usage{
forecast_forunco(
ts_col,
h = 12,
num_cores = NULL,
num_cores_ignore = 1,
prog_bar = T,
levels = c(95),
m... | 24,991 |
https://github.com/laminga/framework/blob/master/src/ExifTool.php | Github Open Source | Open Source | MIT | 2,023 | framework | laminga | PHP | Code | 169 | 519 | <?php
namespace minga\framework;
class ExifTool
{
public static function GetBinary() : string
{
$binPath = Context::Paths()->GetBinPath();
return '"' . $binPath . '/exiftool/exiftool"';
}
public static function UpdateMetadata(string $file, string $title, string $authors) : bool
{
Profiling::BeginTimer();
... | 4,091 |
https://github.com/JoelWachsler/IS1200/blob/master/main.c | Github Open Source | Open Source | BSD-3-Clause | null | IS1200 | JoelWachsler | C | Code | 272 | 633 | /**
* @file main.c
* @author Joel Wachsler (wachsler@kth.se)
* @author Marcus Werlinder (werli@kth.se)
* @date 2016
* @copyright For copyright and licensing, see file COPYING
*
* This file was written 2016 by Joel wachsler and Marcus Werlinder.
* This file is based on "mipslabmain.c" written by Axel Isa... | 51,659 |
https://github.com/twilroad/sources-for-php-mall/blob/master/resources/mixes/administration/src/assets/less/configuration-pay.less | Github Open Source | Open Source | Apache-2.0 | null | sources-for-php-mall | twilroad | Less | Code | 59 | 217 | .mall-wrap {
.configuration-pay {
.ivu-tabs-nav-scroll {
background: #ffffff;
padding: 0 20px;
}
.prompt-box {
background-color: #f5f7f9;
padding: 20px;
font-size: 12px;
margin-bottom: 20px;
}
.ivu-btn-sm... | 46,124 |
https://github.com/camptocamp/prometheus-pingdom-exporter/blob/master/vendor/github.com/russellcardullo/go-pingdom/pingdom/pingdom_test.go | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | prometheus-pingdom-exporter | camptocamp | Go | Code | 354 | 1,168 | package pingdom
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
"reflect"
"strings"
"testing"
)
var (
mux *http.ServeMux
client *Client
server *httptest.Server
)
func setup() {
// test server
mux = http.NewServeMux()
server = httptest.NewServer(mux)
// test client
client = New... | 37,985 |
https://github.com/taomanhdung/my_cv/blob/master/css/main.scss | Github Open Source | Open Source | Apache-2.0 | null | my_cv | taomanhdung | SCSS | Code | 10 | 38 | ---
---
@import "grayscale.min";
@import "grayscale";
@import "portfolio";
@import "my_custom"; | 7,015 |
https://github.com/boulos/syrah/blob/master/src/unitTests/timer.cc | Github Open Source | Open Source | BSD-3-Clause | 2,021 | syrah | boulos | C++ | Code | 143 | 489 | #include <stdio.h>
#include <unistd.h>
#include "syrah/CycleTimer.h"
using namespace syrah;
#define SLEEP_TESTS \
SLEEP_TEST(UsleepShort, usleep, 8371, CycleTimer::usPerTick) \
SLEEP_TEST(UsleepLong, usleep, 127381, CycleTimer::usPerTick) \
SLEEP_TEST(S... | 18,338 |
https://github.com/Henrique-Temponi/site-estoque/blob/master/resources/views/admin/usuario/editar.blade.php | Github Open Source | Open Source | MIT | 2,020 | site-estoque | Henrique-Temponi | PHP | Code | 18 | 104 | @extends('layout.admin')
@section('conteudo')
<h3>Editar Usuario</h3>
@include('admin.errors')
<form action="" method="post">
{{ csrf_field() }}
@include('admin.usuario._form')
<button type="submit" class="btn">Atualizar usuario</button>
</form>
@endsection | 28,658 |
https://github.com/Cyello/Camara/blob/master/resources/views/layout/principal.blade.php | Github Open Source | Open Source | MIT | null | Camara | Cyello | PHP | Code | 81 | 611 | <!DOCTYPE html>
<html lang="pt-BR" ng-app>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home</title>
<link href="{{asset('css/bootstrap.min.css')}}" rel="stylesheet">
<link ... | 48,247 |
https://github.com/ankane/duckdb/blob/master/src/include/duckdb/optimizer/rule/like_optimizations.hpp | Github Open Source | Open Source | MIT | 2,022 | duckdb | ankane | C++ | Code | 64 | 216 | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/optimizer/rule/like_optimizations.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/optimizer/rule.hpp"
#include "duckd... | 22,324 |
https://github.com/hyl1995/spring-cloud/blob/master/common/src/main/java/org/hyl/cloud/common/util/Lock.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | spring-cloud | hyl1995 | Java | Code | 40 | 101 | package org.hyl.cloud.common.util;
public class Lock {
private String name;
private String value;
public Lock(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public String getValue() {
return va... | 51,474 |
https://github.com/mestreengaisaber/SPRING/blob/master/01-Oreilly_Sync_Client_Rest/src/main/java/com/oreilly/service/JokeService.java | Github Open Source | Open Source | MIT | 2,019 | SPRING | mestreengaisaber | Java | Code | 70 | 292 | package com.oreilly.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import com.oreilly.json.JokeResponse;
@Service
public class Jo... | 30,603 |
https://github.com/mayee/dragonshard/blob/master/dragonshard-data-mybatis/src/main/java/net/dragonshard/dsf/data/mybatis/common/cons/PageCons.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | dragonshard | mayee | Java | Code | 169 | 415 | /*
* Copyright 1999-2018 dragonshard.net.
* 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... | 12,562 |
https://github.com/scottdouglas238/Eat_The_Burger/blob/master/views/index.handlebars | Github Open Source | Open Source | MIT | null | Eat_The_Burger | scottdouglas238 | null | Spoken | 109 | 471 | <div class = "text-center container">
<div class = "row">
<img src = "https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/best-burgers-across-the-country-new-jersey-left-bank-burger-bar-1573665543.jpg">
</div>
<div class = "row">
<h3>Eat-Da-Burger</h3>
</div>
<div class = "row buttonRow">
<div class =... | 49,565 |
https://github.com/craston/MARS/blob/master/utils1/extract_frames_flows.py | Github Open Source | Open Source | MIT | 2,023 | MARS | craston | Python | Code | 451 | 1,595 | '''
Code extracts frames from video at a rate of 25fps and
'''
import sys, os, pdb, cv2, subprocess, struct
import numpy as np
from tqdm import tqdm
TAG_FLOAT = 202021.25
MIN_WIDTH = 1
MAX_WIDTH = 99999
MIN_HEIGHT = 1
MAX_HEIGHT = 99999
def readFlowFile(filename):
"""
flow_utils.readFlowFile(<FILENAME>) r... | 9,346 |
https://github.com/Thnapatza/massage/blob/master/frontend/controllers/JoinhangoutController.php | Github Open Source | Open Source | BSD-3-Clause | null | massage | Thnapatza | PHP | Code | 557 | 2,144 | <?php
namespace frontend\controllers;
use Yii;
use yii\helpers\Html;
use common\models\Joinhangout;
use frontend\models\JoinhangoutSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use common\models\Hangout;
use common\models\Sport;
use common\models\Chat;
/**
* Joinhang... | 18,778 |
https://github.com/JonathanHallKJR/tSQLt/blob/master/Source/tSQLt.Private_NullCellTable.tbl.sql | Github Open Source | Open Source | Apache-2.0 | null | tSQLt | JonathanHallKJR | SQL | Code | 40 | 143 | IF OBJECT_ID('tSQLt.Private_NullCellTable') IS NOT NULL DROP TABLE tSQLt.Private_NullCellTable;
GO
---Build+
GO
CREATE TABLE tSQLt.Private_NullCellTable(
I INT
);
GO
INSERT INTO tSQLt.Private_NullCellTable (I) VALUES (NULL);
GO
CREATE TRIGGER tSQLt.Private_NullCellTable_StopDeletes ON tSQLt.Private_NullCellTable I... | 19,872 |
https://github.com/samsonyuwono/rec-league-deploy/blob/master/client/src/containers/players/PlayersList.js | Github Open Source | Open Source | MIT | null | rec-league-deploy | samsonyuwono | JavaScript | Code | 89 | 281 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PlayerCard from '../../components/players/PlayerCard';
import PlayerForm from '../../components/players/PlayerForm';
import { fetchPlayers } from '../../actions/players'
import '../../assets/Players.css'
class PlayersList extends C... | 19,030 |
https://github.com/mosheduminer/docker_client/blob/master/lib/model/service_spec_mode.dart | Github Open Source | Open Source | BSD-3-Clause | 2,021 | docker_client | mosheduminer | Dart | Code | 169 | 509 | part of docker_client.api;
class ServiceSpecMode {
ServiceSpecModeReplicated replicated = null;
Object global = null;
ServiceSpecMode();
@override
String toString() {
return 'ServiceSpecMode[replicated=$replicated, global=$global, ]';
}
ServiceSpecMode.fromJson(Map<String, dynamic> json) {
... | 15,081 |
https://github.com/mongo-dart/sasl_scram/blob/master/test/example_scram_sha1.dart | Github Open Source | Open Source | MIT | 2,021 | sasl_scram | mongo-dart | Dart | Code | 151 | 930 | import 'package:crypto/crypto.dart';
import 'package:sasl_scram/sasl_scram.dart';
import 'abstract_example.dart';
class ScramSha1Example extends ScramExample {
static final ScramSha1Example _singleton = ScramSha1Example._internal();
factory ScramSha1Example() {
return _singleton;
}
ScramSha1Example._int... | 49,835 |
https://github.com/vinhnx/spawn/blob/master/Tests/LinuxMain.swift | Github Open Source | Open Source | MIT | 2,020 | spawn | vinhnx | Swift | Code | 12 | 44 | import XCTest
import upgenopenTests
var tests = [XCTestCaseEntry]()
tests += upgenopenTests.allTests()
XCTMain(tests)
| 21,640 |
https://github.com/Annastasshia/GeorgiaCovid/blob/master/views/partials/store.handlebars | Github Open Source | Open Source | Apache-2.0 | 2,020 | GeorgiaCovid | Annastasshia | null | Spoken | 1,025 | 5,252 | <div class="uk-container">
<!--Store Open Modal-->
<button id="openStoreBtn" uk-toggle="target: #my-id" type="button" class="uk-button uk-button-primary"
style="margin-bottom: 25px;">Add That You're Open</button>
{{!-- FORM MODAL --}}
<div id="my-id" uk-modal>
<div class="uk-modal-dialog uk-modal-body"... | 30,194 |
https://github.com/iimog/x-party-game/blob/master/src/ablauf/MatchFileHandler.java | Github Open Source | Open Source | MIT | 2,021 | x-party-game | iimog | Java | Code | 984 | 3,978 | package ablauf;
import games.Modus;
import java.awt.Color;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashSet;
impor... | 26,441 |
https://github.com/seesmith/archivesspace/blob/master/frontend/app/controllers/jobs_controller.rb | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, ECL-2.0, Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,016 | archivesspace | seesmith | Ruby | Code | 225 | 810 | class JobsController < ApplicationController
set_access_control "view_repository" => [:index, :show, :log, :status, :records]
set_access_control "import_records" => [:new, :create]
set_access_control "cancel_importer_job" => [:cancel]
def index
@active_jobs = Job.active
@search_data = Job.archived(se... | 5,876 |
https://github.com/ju214425/cpp-with-opencv/blob/master/cmake_setup.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | cpp-with-opencv | ju214425 | Shell | Code | 72 | 253 | echo -e "\n setting upgrade version of cmake\n"
sudo apt-get -y upgrade gcc g++
sudo apt-get -y remove cmake
wget --no-check-certificate https://cmake.org/files/v3.11/cmake-3.11.0.tar.gz
tar -zxvf cmake-3.11.0.tar.gz
rm cmake-3.11.0.tar.gz
cd cmake-3.11.0/
echo -e "\n============\n Setting system Curl \n ===========... | 38,729 |
https://github.com/jgit2013/test/blob/master/fuel/app/classes/controller/api/put.php | Github Open Source | Open Source | MIT | 2,013 | test | jgit2013 | PHP | Code | 229 | 830 | <?php
class Controller_Api_Put extends Controller_Api {
public function put_message() {
$is_edited = false;
$id = Input::put('id');
$username = Input::put('username');
$after_title = Input::put('title');
$after_message = Input::put('message');
... | 37,788 |
https://github.com/biin489/2handmarketadmin/blob/master/js/pages/login/login.js | Github Open Source | Open Source | MIT | null | 2handmarketadmin | biin489 | JavaScript | Code | 62 | 334 | var firebaseConfig = {
apiKey: "AIzaSyBfgBCcHaoo5kjt2Myvu8E9vArQ7gs-SKg",
authDomain: "demodoan1.firebaseapp.com",
databaseURL: "https://demodoan1.firebaseio.com",
projectId: "demodoan1",
storageBucket: "demodoan1.appspot.com",
messagingSenderId: "585840118644",
appId: "1:585840118644:web:fe... | 34,169 |
https://github.com/claudiodekker/laravel-auth-old/blob/master/src/LaravelAuthServiceProvider.php | Github Open Source | Open Source | MIT | 2,023 | laravel-auth-old | claudiodekker | PHP | Code | 118 | 573 | <?php
namespace ClaudioDekker\LaravelAuth;
use ClaudioDekker\LaravelAuth\Methods\Totp\Contracts\TotpContract;
use ClaudioDekker\LaravelAuth\Methods\Totp\GoogleTwoFactorAuthenticator;
use ClaudioDekker\LaravelAuth\Methods\WebAuthn\Contracts\WebAuthnContract;
use ClaudioDekker\LaravelAuth\Methods\WebAuthn\SpomkyWebAuth... | 46,827 |
https://github.com/zrusev/flight-system/blob/master/flight_app/src/components/Reservation/DrawGrid.jsx | Github Open Source | Open Source | MIT | 2,019 | flight-system | zrusev | JavaScript | Code | 128 | 486 | import React, { Component } from 'react';
import { Container, Row, Col, Table } from 'react-bootstrap';
import AvailableList from './AvailableList';
import ReservedList from './ReservedList';
import SelectedList from './SelectedList';
import Cart from '../Cart/Cart';
class DrawGrid extends Component {
render() {
... | 3,456 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/comparison_androart/de_number26_android/app/smali_classes2/fm/icelink/webrtc/AdobeAudioRenderProvider$RenderInternal.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 178 | 1,078 | .class Lfm/icelink/webrtc/AdobeAudioRenderProvider$RenderInternal;
.super Ljava/lang/Object;
.source "AdobeAudioRenderProvider.java"
# interfaces
.implements Lcom/adobe/fre/FREFunction;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lfm/icelink/webrtc/AdobeAudioRenderProvider;
.end a... | 44,214 |
https://github.com/tanishpvt/Authentication/blob/master/lib/screens/home.dart | Github Open Source | Open Source | Apache-2.0 | 2,021 | Authentication | tanishpvt | Dart | Code | 64 | 220 | import 'package:flutter/material.dart';
import 'package:lit_firebase_auth/lit_firebase_auth.dart';
import 'auth/auth.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({Key key}) : super(key: key);
static MaterialPageRoute get route => MaterialPageRoute(
builder: (context) => const HomeSc... | 48,516 |
https://github.com/shiveshkhaitan/rmf_core/blob/master/rmf_fleet_adapter/include/rmf_fleet_adapter/agv/TrafficLight.hpp | Github Open Source | Open Source | Apache-2.0 | null | rmf_core | shiveshkhaitan | C++ | Code | 1,347 | 2,555 | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 49,378 |
https://github.com/MoizAhmedd/noize/blob/master/Noize-ios-application/Noize-ios-application/Extensions/UIColor+HexValue.swift | Github Open Source | Open Source | Apache-2.0 | 2,018 | noize | MoizAhmedd | Swift | Code | 70 | 188 | //
// UIColor+HexValue.swift
// Noize-ios-application
//
// Created by Thayallan Srinathan on 2018-10-09.
// Copyright © 2018 Noize. All rights reserved.
//
import UIKit
extension UIColor {
convenience init(hexValue: Int) {
let components = (
R: CGFloat((hexValue >> 16) & 0xFF) / 255,
... | 43,868 |
https://github.com/toder34/termux-packages/blob/master/packages/cava/no-posix-shmem.patch | Github Open Source | Open Source | Apache-2.0 | 2,020 | termux-packages | toder34 | null | Spoken | 128 | 623 | diff -uNr cava-0.7.0/cava.c cava-0.7.0.mod/cava.c
--- cava-0.7.0/cava.c 2020-05-26 23:29:47.000000000 +0300
+++ cava-0.7.0.mod/cava.c 2020-06-20 22:57:21.423501150 +0300
@@ -505,10 +505,12 @@
audio.rate = 44100;
break;
#endif
+#ifndef __ANDROID__
case INPUT_SHMEM:
thr_id... | 50,686 |
https://github.com/radon-provenance/radon-web/blob/master/rest_cdmi/models.py | Github Open Source | Open Source | Apache-2.0 | null | radon-web | radon-provenance | Python | Code | 871 | 2,344 | # Copyright 2021
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distr... | 4,727 |
https://github.com/gbj/venite/blob/master/commonprayer/utils/collect-order/collect-order.js | Github Open Source | Open Source | MIT | 2,023 | venite | gbj | JavaScript | Code | 200 | 625 | function collectOrder(allCollects, version) {
const nodes = Array.from(document.getElementsByTagName("p"));
const collects = allCollects.filter(d => (d.category.includes("Collect") || d.category.includes("Collect of the Day")) && !d.category.includes("LFF 2018"));
const withNodes = collects.map(doc => ({
doc,... | 45,973 |
https://github.com/zhmu/ananas/blob/master/external/binutils-2.38/bfd/ecoff-bfd.h | Github Open Source | Open Source | FSFAP, GPL-3.0-only, Zlib, LicenseRef-scancode-public-domain, GPL-2.0-only, LGPL-3.0-only, GPL-1.0-or-later, LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-copyleft, LGPL-2.0-only, LicenseRef-scancode-other-permissive, GPL-2.0-or-later | 2,022 | ananas | zhmu | C | Code | 327 | 935 | /* Externally visible ECOFF routines.
Copyright (C) 2019-2022 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
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 S... | 38,829 |
https://github.com/shmp0722/Scripts/blob/master/LIFE/fe/SO_fefgGet.m | Github Open Source | Open Source | BSD-2-Clause | 2,016 | Scripts | shmp0722 | MATLAB | Code | 1,055 | 4,717 | %% SO_fefgGet.m
%% Set the path to data directory
homeDir = '/biac4/wandell/biac2/wandell/data/DWI-Tamagawa-Japan';
subDir = {...
'JMD1-MM-20121025-DWI'
'JMD2-KK-20121025-DWI'
'JMD3-AK-20121026-DWI'
'JMD4-AM-20121026-DWI'
'JMD5-KK-20121220-DWI'
'JMD6-NO-20121220-DWI'
'JMD7-YN-20130621-DWI'
... | 30,015 |
https://github.com/DCNick3/trikRuntime/blob/master/trikGui/updateWidget.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | trikRuntime | DCNick3 | C++ | Code | 228 | 729 | /* Copyright 2014 CyberTech Labs 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 agree... | 27,680 |
https://github.com/eonx-com/easy-monorepo/blob/master/packages/EasyUtils/src/SensitiveData/StringSanitizers/AbstractStringSanitizer.php | Github Open Source | Open Source | MIT | 2,023 | easy-monorepo | eonx-com | PHP | Code | 26 | 134 | <?php
declare(strict_types=1);
namespace EonX\EasyUtils\SensitiveData\StringSanitizers;
use EonX\EasyUtils\SensitiveData\StringSanitizerInterface;
use EonX\EasyUtils\Traits\HasPriorityTrait;
abstract class AbstractStringSanitizer implements StringSanitizerInterface
{
use HasPriorityTrait;
public function __... | 25,696 |
https://github.com/TeamTrillFSA/silikon-road/blob/master/server/api/products.spec.js | Github Open Source | Open Source | MIT | null | silikon-road | TeamTrillFSA | JavaScript | Code | 121 | 495 | /* global describe beforeEach it */
const { expect } = require('chai');
const request = require('supertest');
const db = require('../db');
const app = require('../index');
const Product = db.model('product');
describe('Product routes', () => {
beforeEach(() => {
return db.sync({ force: true });
});
const n... | 27,090 |
https://github.com/Chloe-Girard/Foci_counting/blob/master/utils/chromosome_dsb/search.py | Github Open Source | Open Source | MIT | null | Foci_counting | Chloe-Girard | Python | Code | 1,266 | 4,165 | import numpy as np
from skimage.feature import hog
from skimage.draw import ellipsoid
from skimage import util
import joblib
from skimage import morphology
from skimage import measure
def _task_predict(window, clf, scaler):
im = hog(window, orientations=8, pixels_per_cell=(6, 6), block_norm = 'L2-Hys',
... | 4,032 |
https://github.com/courtois-neuromod/task_stimuli/blob/master/env.sh | Github Open Source | Open Source | MIT | 2,023 | task_stimuli | courtois-neuromod | Shell | Code | 2 | 18 |
export PUPIL_PATH=$HOME/git/pupil
| 10,056 |
https://github.com/amw3344/opensources-frameworkes/blob/master/opensources-framework/opensources-framework-demos/opensources-demo-canal-adapter/src/main/java/com/loverent/canal/adapter/demo/boot/config/loverent_telemarket/CustomerInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | opensources-frameworkes | amw3344 | Java | Code | 72 | 300 | package org.opensourceframework.canal.adapter.demo.boot.config.opensourceframework_telemarket;
import org.opensourceframework.canal.adapter.es.core.annotation.ESDocument;
import org.opensourceframework.canal.adapter.es.core.annotation.ESField;
import org.opensourceframework.canal.adapter.es.core.config.Document;
impo... | 53,432 |
https://github.com/Daoting/uno/blob/master/src/Uno.UWP/Generated/3.0.0.0/Windows.Media.SpeechRecognition/SpeechRecognizerState.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | uno | Daoting | C# | Code | 98 | 306 | #pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Media.SpeechRecognition
{
#if false || false || false || false || false || false || false
#if false || false || false || false || false || false || false
[global::Uno.NotImplemented]
#endif
public ... | 26,758 |
https://github.com/ChenChenJH/yo-new/blob/master/src/pages/Home/Help.less | Github Open Source | Open Source | MIT | null | yo-new | ChenChenJH | Less | Code | 131 | 545 | .my_container{
width:100%;
background:#eeeeee;
border-top:2px solid #0099dd;
padding:0 20px;
}
.quetionBoxDivStyle {
width:100%;
max-width:990px;
padding: 25px;
margin: 30px auto;
background: white;
}
.startTitle {
margin: 10px 10px 25px;
border-top: 1px solid #e2e2e2;
position: relative;
}
.... | 23,999 |
https://github.com/maranqz/yii2-support/blob/master/src/Component/Referee/UseCase/Referee/SendMessage/SendMessageInterface.php | Github Open Source | Open Source | MIT | 2,020 | yii2-support | maranqz | PHP | Code | 14 | 70 | <?php
namespace SSupport\Component\Referee\UseCase\Referee\SendMessage;
use SSupport\Component\Core\Entity\MessageInterface;
interface SendMessageInterface
{
public function __invoke(SendMessageInputInterface $inputDTO): MessageInterface;
}
| 53,651 |
https://github.com/i2p/i2p.android.base/blob/master/app/src/main/java/net/i2p/android/router/util/AppCache.java | Github Open Source | Open Source | LicenseRef-scancode-infineon-free, Apache-2.0, LicenseRef-scancode-public-domain | 2,023 | i2p.android.base | i2p | Java | Code | 1,242 | 2,891 | package net.i2p.android.router.util;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import net.i2p.android.router.provider.CacheProvider;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import jav... | 35,772 |
https://github.com/mavodev-de/ScreenVolume2/blob/master/ScreenVolume/AppDelegate.swift | Github Open Source | Open Source | MIT | 2,020 | ScreenVolume2 | mavodev-de | Swift | Code | 711 | 2,652 | //
// AppDelegate.swift
// MonitorControl
//
// Created by Mathew Kurian on 9/26/16.
// Last edited by Guillaume Broder on 9/17/2017
// MIT Licensed. 2017.
//
import Cocoa
import Foundation
import MediaKeyTap
import MASPreferences
var app: AppDelegate! = nil
let prefs = UserDefaults.standard
@NSApplicationMain
... | 3,104 |
https://github.com/syumai/heiseirb/blob/master/2019/08/template/heiseirb_api_client/spec/heiseirb_api_client_spec.rb | Github Open Source | Open Source | MIT | 2,019 | heiseirb | syumai | Ruby | Code | 39 | 136 | require 'byebug'
RSpec.describe HeiseirbApiClient do
it "has a version number" do
expect(HeiseirbApiClient::VERSION).not_to be nil
end
context '#similar_users' do
let(:user_id) { 1 }
subject do
client = HeiseirbApiClient::CRUD::User.new
client.similar_users(user_id)
end
it do
... | 38,750 |
https://github.com/Addamsovka/Revit-PyExamples/blob/master/CHEETSHEET.py | Github Open Source | Open Source | MIT | null | Revit-PyExamples | Addamsovka | Python | Code | 2,891 | 4,403 | # Python Build-in Function
#----------------------------------------------------------------
abs(x)
# Return the absolute value of a number. The argument may be an integer, a floating point number, or an object implementing __abs__(). If the argument is a complex number, its magnitude is returned.
all(iterable)
# Ret... | 3,145 |
https://github.com/teamresistance/Core86/blob/master/src/org/teamresistance/core/util/Time.java | Github Open Source | Open Source | MIT | 2,017 | Core86 | teamresistance | Java | Code | 334 | 570 | package org.teamresistance.core.util;
/**
* Static class used to track elapsed time between updates.
*
* @author Frank McCoy
*
*/
public class Time {
public static final long SECOND = 1000000000L;
private static double delta;
private static double previousTime = getTime();
/**
* Update the amount of tim... | 10,070 |
https://github.com/TheThingsNetwork/lorawan-stack/blob/master/pkg/gatewayserver/is.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | lorawan-stack | TheThingsNetwork | Go | Code | 642 | 1,977 | // Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... | 11,559 |
https://github.com/stilley2/minc-tools/blob/master/conversion/dicomserver_sonata/siemens_include/ds_head_basic_types.h | Github Open Source | Open Source | LicenseRef-scancode-other-permissive | 2,019 | minc-tools | stilley2 | C | Code | 1,189 | 3,979 | /*[- HEADER FILE -------------------------------------------------------------------------*/
/*
Name: ds_head_basic_types.h
Description: The header file defines the basic types for internal header.
Each enumerator identifier is build up as a type qualification and the
enu... | 14,865 |
https://github.com/kloetzl/mugsy/blob/master/mugsy-seqan/projects/library/demos/graph_algo_dfs.cpp | Github Open Source | Open Source | Artistic-2.0 | 2,020 | mugsy | kloetzl | C++ | Code | 190 | 615 | ///A tutorial about depth-first search.
#include <iostream>
#include <seqan/graph_algorithms.h>
using namespace seqan;
int main()
{
typedef Graph<Directed<> > TGraph;
typedef VertexDescriptor<TGraph>::Type TVertexDescriptor;
typedef EdgeDescriptor<TGraph>::Type TEdgeDescriptor;
typedef Size<TGraph>::Type TSize;... | 11,936 |
https://github.com/us-federal-sbst/office-of-evaluation-sciences/blob/master/assets/js/toolkits.js | Github Open Source | Open Source | CC0-1.0 | null | office-of-evaluation-sciences | us-federal-sbst | JavaScript | Code | 171 | 648 |
$(document).ready(function() {
var href = window.location.hash;
if (href) {
var tabs_list = $('.nav-tabs > li > a');
for (let i = 0; i < tabs_list.length; i++) {
var href_split = tabs_list[i].href.split("/")
var target = href_split[href_split.length - 1];
if (target == hr... | 6,510 |
https://github.com/animedy/ut/blob/master/UTP_Aplicacion/2. Construccion/2.3. Codigo Fuente/Restaurant/application/config/recaptcha.php | Github Open Source | Open Source | Apache-2.0 | null | ut | animedy | PHP | Code | 10 | 101 | <?php
$config['recaptcha_sitekey'] = "6Le7pTIUAAAAAKo7gQGTBgafxhH4a-8MOECXJhWl";
$config['recaptcha_secretkey'] = "6Le7pTIUAAAAAFlHJit4lSeUsp5oFZ7jC0GQA3SC";
$config['lang'] = "es"; | 18,986 |
https://github.com/Kakeshi007/mcotplaylist/blob/master/database/mcot.sql | Github Open Source | Open Source | BSD-3-Clause | null | mcotplaylist | Kakeshi007 | SQL | Code | 416 | 1,215 | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50505
Source Host : localhost:3306
Source Database : mcot
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2020-07-17 16:02:56
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----... | 28,358 |
https://github.com/tf2pickup-pl/client/blob/master/src/app/notifications/request-notification-permissions/request-notification-permissions.component.scss | Github Open Source | Open Source | MIT | 2,021 | client | tf2pickup-pl | SCSS | Code | 74 | 282 | @use "components/surface";
@use "utils/respond";
@use "theme";
@use "variables";
.request-notification-permissions {
@include surface.make;
@include surface.shadow;
@include surface.ink-color(theme.$on-secondary);
display: flex;
@include respond.above(huge) {
flex-flow: row wrap;
align-items: cente... | 47,032 |
https://github.com/banana-galaxy/challenges/blob/master/challenge1/testing.py | Github Open Source | Open Source | MIT | 2,020 | challenges | banana-galaxy | Python | Code | 153 | 501 | import os, importlib
import update_board
from pathlib import Path
def solution(matrix, out=64):
scale = int(out/len(matrix))
return [[matrix[i//scale][n//scale] for n in range(out)] for i in range(out)]
def create_matrix(length):
return [[n for n in range(1, length+1)] for i in range(length)]
factors = [... | 14,160 |
https://github.com/cnxy/Masuit.Tools/blob/master/Masuit.Tools.Abstractions/Extensions/BaseType/StringExtensions.old.cs | Github Open Source | Open Source | MIT | null | Masuit.Tools | cnxy | C# | Code | 68 | 234 | using System;
using System.Numerics;
namespace Masuit.Tools
{
public static partial class StringExtensions
{
/// <summary>
/// 任意进制转十进制
/// </summary>
/// <param name="str"></param>
/// <param name="bin">进制</param>
/// <returns></returns>
public static ... | 14,978 |
https://github.com/ekaterina-fomenko/text-editor/blob/master/src/main/java/com/editor/model/LineInfo.java | Github Open Source | Open Source | MIT | 2,022 | text-editor | ekaterina-fomenko | Java | Code | 51 | 129 | package com.editor.model;
public class LineInfo {
private final int startIndex;
private final int length;
public LineInfo(int startIndex, int length) {
this.startIndex = startIndex;
this.length = length;
}
public int getStartIndex() {
return startIndex;
}
public i... | 8,467 |
https://github.com/wang-zi-tao/dotfiles/blob/master/packages/wcp/default.nix | Github Open Source | Open Source | MIT | null | dotfiles | wang-zi-tao | null | Spoken | 64 | 233 | { stdenv, fetchgit, lib, cmake }:
stdenv.mkDerivation rec {
pname = "wcp";
version = "57c5e64";
src = fetchgit {
url = "https://github.com/wheybags/wcp/";
rev = "57c5e64fb65dd8c282309b7cd9d26484fc9b7e56";
sha256 = "sha256-fYirw7plUEZV6OKdazEMnf2uYCI4u/fa4LOjy6B9Lb8=";
};
installPhase = ''
mkd... | 30,452 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.