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/rafern/mapwriter-mc1.4.7-backport/blob/master/src/main/java/mapwriter/BackgroundExecutor.java | Github Open Source | Open Source | MIT | null | mapwriter-mc1.4.7-backport | rafern | Java | Code | 630 | 1,496 | package mapwriter;
import java.util.LinkedList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import mapwriter.tasks.Task;
import java.util.Date;
import java.util.HashMap;
/*
This class handles executing ... | 55,921 |
https://github.com/varadchoudhari/UA-Frontend/blob/master/app/components/Forum/ForumDiscussion.jsx | Github Open Source | Open Source | MIT | null | UA-Frontend | varadchoudhari | null | Spoken | 744 | 2,552 | import React from 'react';
import ContentWrapper from '../Layout/ContentWrapper';
import { Grid, Row, Col, Panel, Button, Table, Collapse } from 'react-bootstrap';
class ForumDiscussion extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
reply... | 22,007 |
https://github.com/itspriddle/dotfiles/blob/master/bin/viscosity | Github Open Source | Open Source | MIT | 2,023 | dotfiles | itspriddle | Shell | Code | 237 | 531 | #!/usr/bin/env bash
# Usage: viscosity [command] [vpn]
#
# Connect/disconnect from a VPN using Viscosity.app on OS X.
#
# Help:
# viscosity connect Connect to all VPNs
# viscosity connect "My VPN" Connect to the VPN named "My VPN"
# viscosity disconnect Disconnect from all VPNs
# v... | 9,203 |
https://github.com/michaeljklein/git-details/blob/master/src/Data/Text/Builder/Utils.hs | Github Open Source | Open Source | BSD-3-Clause | 2,017 | git-details | michaeljklein | Haskell | Code | 190 | 409 | {-|
Module : Data.DepthElement
Description : A `DepthElement` is a `Text` object with 'depth' so that it can
be unfolded into a `Tree`
Copyright : (c) Michael Klein, 2016
License : BSD3
Maintainer : lambdamichael(at)gmail.com
-}
module Data.Text.Builder.Utils where
import Data.Char ... | 38,664 |
https://github.com/IamRakibAhmed/Tic-Tac-Toe-Windows-Application/blob/master/TicTacToe-Windows-Form-App.sln | Github Open Source | Open Source | Apache-2.0 | 2,021 | Tic-Tac-Toe-Windows-Application | IamRakibAhmed | null | Spoken | 94 | 619 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31624.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TicTacToe-Windows-Form-App", "TicTacToe-Windows-Form-App\TicTacToe-Windows-Form-App.csproj", "{0447... | 2,325 |
https://github.com/mtxr/parcel/blob/master/packages/core/package-manager/src/NodePackageManager.js | Github Open Source | Open Source | MIT | 2,020 | parcel | mtxr | JavaScript | Code | 672 | 1,983 | // @flow
import type {FilePath, ModuleSpecifier, SemverRange} from '@parcel/types';
import type {FileSystem} from '@parcel/fs';
import type {
ModuleRequest,
PackageManager,
PackageInstaller,
InstallOptions,
} from './types';
import type {ResolveResult} from '@parcel/utils';
import {resolve, resolveSync} from '... | 1,473 |
https://github.com/lukeggchapman/resume/blob/master/src/components/Section.tsx | Github Open Source | Open Source | MIT | null | resume | lukeggchapman | TypeScript | Code | 43 | 112 | import React from 'react'
import { View, Text } from '@react-pdf/renderer'
import typography from './typography'
export interface SectionProps {
title: string
children: React.ReactNode
}
const Section = ({ title, children }: SectionProps) => (
<View>
<Text style={typography.h2}>{title}</Text>
{children... | 13,244 |
https://github.com/intrinsyx/dojox-diagram/blob/master/sharon/MyEditor/dojo-release-1.2.0/dojox/xmpp/RosterService.js | Github Open Source | Open Source | BSD-3-Clause, AFL-2.1 | 2,010 | dojox-diagram | intrinsyx | JavaScript | Code | 353 | 2,506 | /*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.xmpp.RosterService"]){
dojo._hasResource["dojox.xmpp.RosterService"]=true;
dojo.provide("dojox... | 15,421 |
https://github.com/parlay-island/game/blob/master/Parlay/Assets/Scripts/awards/AwardManager.cs | Github Open Source | Open Source | Apache-2.0 | null | game | parlay-island | C# | Code | 188 | 522 | using System;
using System.Collections.Generic;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
/**
* This file has the business logic for the award manager.
* The award manager checks all of the different Award objects to see if their
* requirements have been met by the user when a q... | 2,791 |
https://github.com/N3RDCLASH/IPM/blob/master/app/Models/Vak.php | Github Open Source | Open Source | MIT | 2,021 | IPM | N3RDCLASH | PHP | Code | 54 | 198 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Vak extends Model
{
use HasFactory;
protected $table = "vakken";
protected $fillable = [
"vak_naam"
];
protected function createVak($data)
{
return... | 5,984 |
https://github.com/zuzu59/logomatch/blob/master/tests_matching/Learn/02_good_features.py | Github Open Source | Open Source | MIT | 2,019 | logomatch | zuzu59 | Python | Code | 40 | 204 | # https://docs.opencv.org/3.4/d4/d8c/tutorial_py_shi_tomasi.html
import cv2
import numpy as np
# filename = 'logo/gray/c280.jpg'
# gray = cv2.imread(filename)
filename = 'in/logo.jpg'
img = cv2.imread(filename)
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
corners = cv2.goodFeaturesToTrack(gray,25,0.01,10)
corners = n... | 41,025 |
https://github.com/cornell-zhang/GraphZoom/blob/master/mat_coarsen/core/util/nulbasis.m | Github Open Source | Open Source | BSD-3-Clause | 2,021 | GraphZoom | cornell-zhang | MATLAB | Code | 129 | 305 | function N = nulbasis(A)
% nulbasis Basis for nullspace.
%
% N = nulbasis(A) returns a basis for the nullspace of A
% in the columns of N. The basis contains the n-r special
% solutions to Ax=0. freecol is the list of free columns.
%
% Example:
%
% >> A = [1 2 0 3;
% [0 0 1 4];
%
% >> N = nulbasis(A)
%
% N... | 38,653 |
https://github.com/mustaphash/EShop/blob/master/src/DAL/Queries/GetAllShopsQueryHandler.cs | Github Open Source | Open Source | MIT | null | EShop | mustaphash | C# | Code | 48 | 178 | using Core.Entity;
using Core.Queries;
using Microsoft.EntityFrameworkCore;
namespace DAL.Queries
{
public class GetAllShopsQueryHandler : IQueryHandler<GetAllShopsQuery, IList<Shop>>
{
private readonly ShopContext _shopContext;
public GetAllShopsQueryHandler(ShopContext shopContext)
{... | 16,142 |
https://github.com/dabreadman/sync-upstream-repo/blob/master/entrypoint.sh | Github Open Source | Open Source | BSD-3-Clause | 2,022 | sync-upstream-repo | dabreadman | Shell | Code | 140 | 542 | #!/usr/bin/env bash
set -x
UPSTREAM_REPO=$1
UPSTREAM_BRANCH=$2
DOWNSTREAM_BRANCH=$3
GITHUB_TOKEN=$4
MERGE_ARGS=$5
PUSH_ARGS=$6
if [[ -z "$UPSTREAM_REPO" ]]; then
echo "Missing \$UPSTREAM_REPO"
exit 1
fi
if [[ -z "$DOWNSTREAM_BRANCH" ]]; then
echo "Missing \$DOWNSTREAM_BRANCH"
echo "Default to ${UPSTREAM_BRA... | 14,448 |
https://github.com/devmohamedamr/hodhodproject/blob/master/app/Seo.php | Github Open Source | Open Source | MIT | 2,020 | hodhodproject | devmohamedamr | PHP | Code | 29 | 151 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use TCG\Voyager\Traits\Translatable;
class Seo extends Model
{
protected $table = "seo";
use Translatable;
protected $translatable = ['description','keywords','canonical','oglocale','ogtype','ogtitle','ogdescription','ogurl','ogsite_name','ogi... | 17,323 |
https://github.com/appenginecorp/react-native-yoga-flexbox/blob/master/csharp/Facebook.Yoga/YogaLogger.cs | Github Open Source | Open Source | MIT | null | react-native-yoga-flexbox | appenginecorp | C# | Code | 54 | 130 | /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
using System;
using System.Runtime.InteropServices;
namespace Facebook.Yoga
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
... | 1,368 |
https://github.com/Amalkarunakaran/preact-www/blob/master/src/components/controllers/repl/style.less | Github Open Source | Open Source | MIT | 2,019 | preact-www | Amalkarunakaran | Less | Code | 267 | 1,011 | @import '~style/helpers';
.repl {
position: absolute;
left: 0;
top: 56px;
bottom: 0;
height: auto;
width: 100%;
background: #eee;
overflow: hidden;
.toolbar {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2.5rem;
display: flex;
align-items: center;
// line-height: 2.5rem;
backgr... | 24,190 |
https://github.com/evandojunior/urbem3.0/blob/master/src/Urbem/PatrimonialBundle/Resources/config/Sonata/Almoxarifado/EntradaTransferenciaAdmin.php | Github Open Source | Open Source | MIT | null | urbem3.0 | evandojunior | PHP | Code | 40 | 202 | <?php
namespace Urbem\PatrimonialBundle\Resources\config\Sonata\Almoxarifado;
use Urbem\CoreBundle\Model\Patrimonial\Almoxarifado\PedidoTransferenciaModel;
/**
* Class EntradaTransferenciaAdmin
*/
class EntradaTransferenciaAdmin extends SaidaTransferenciaAdmin
{
protected $baseRouteName = 'urbem_patrimonial_al... | 9,136 |
https://github.com/enso-org/enso/blob/master/lib/scala/editions/src/test/scala/org/enso/editions/LibraryNameSpec.scala | Github Open Source | Open Source | AGPL-3.0-only, Apache-2.0, AGPL-3.0-or-later | 2,023 | enso | enso-org | Scala | Code | 85 | 283 | package org.enso.editions
import org.enso.testkit.EitherValue
import org.enso.yaml.YamlHelper
import org.scalatest.EitherValues
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
class LibraryNameSpec
extends AnyWordSpec
with Matchers
with EitherValue
with EitherVa... | 31,708 |
https://github.com/openedx/paragon/blob/master/icons/jsx/SignalCellularNull.jsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | paragon | openedx | null | Spoken | 34 | 136 | import * as React from "react";
function SvgSignalCellularNull(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={24}
height={24}
viewBox="0 0 24 24"
{...props}
>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z" />
</svg>
);
}
export default SvgSigna... | 9,032 |
https://github.com/wwhitehead/raxe/blob/master/build/raxe/cli/CompilerCommand.hx | Github Open Source | Open Source | MIT | 2,015 | raxe | wwhitehead | Haxe | Code | 590 | 1,487 | package raxe.cli;using Lambda;using StringTools;import sys.FileSystem;
import raxe.tools.Error;
import raxe.tools.FolderReader;
import raxe.compiler.Compiler;
@:tink class CompilerCommand{
public var response : String;
private var files = new Map<String, Int>();
private var src : String;
private var dest : Str... | 16,395 |
https://github.com/svenwal/nymphicus-windows/blob/master/Nymphicus/Controls/SearchTextbox.xaml.cs | Github Open Source | Open Source | BSD-2-Clause | 2,015 | nymphicus-windows | svenwal | C# | Code | 149 | 472 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigati... | 15,308 |
https://github.com/cruncher/dom/blob/master/modules/scroll-ratio.js | Github Open Source | Open Source | Unlicense | 2,020 | dom | cruncher | JavaScript | Code | 24 | 57 | /**
scrollRatio(node)
Return the ratio of scrollTop to scrollHeight - clientHeight.
*/
export default function scrollRatio(node) {
return node.scrollTop / (node.scrollHeight - node.clientHeight);
}
| 7,317 |
https://github.com/vert-x3/vertx-jdbc-client/blob/master/src/main/java/io/vertx/ext/jdbc/impl/actions/JDBCQuery.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | vertx-jdbc-client | vert-x3 | Java | Code | 217 | 631 | /*
* Copyright (c) 2011-2014 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distributi... | 52,520 |
https://github.com/chromium/chromium/blob/master/ppapi/generators/test_cgen/enum_typedef.h | Github Open Source | Open Source | LicenseRef-scancode-khronos, BSD-3-Clause | 2,023 | chromium | chromium | C | Code | 202 | 557 | /*
* Copyright 2011 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* From test_cgen/enum_typedef.idl modified Wed Dec 5 13:08:05 2012. */
#ifndef PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_
#define PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_
#include "... | 37,454 |
https://github.com/victorbrodsky/order-lab/blob/master/orderflex/public/orderassets/AppUserdirectoryBundle/handsontable-6/src/utils/interval.js | Github Open Source | Open Source | BSD-3-Clause, CC0-1.0, Apache-2.0, MIT | 2,023 | order-lab | victorbrodsky | JavaScript | Code | 287 | 725 | import { requestAnimationFrame, cancelAnimationFrame } from './../helpers/feature';
/**
* @class Interval
* @util
*/
class Interval {
static create(func, delay) {
return new Interval(func, delay);
}
constructor(func, delay) {
/**
* Animation frame request id.
*
* @type {Number}
*/... | 27,323 |
https://github.com/MrChico/solidity/blob/master/test/libsolidity/smtCheckerTests/typecast/string_literal_to_fixed_bytes_function_call.sol | Github Open Source | Open Source | MIT | null | solidity | MrChico | Solidity | Code | 43 | 106 | pragma experimental SMTChecker;
contract B {
function f() pure public {
g("0123456");
}
function g(bytes7 a) pure public {
assert(a == "0123456");
assert(a == "1234567");
}
}
// ----
// Warning: (162-184): Assertion violation happens here
// Warning: (162-184): Assertion violation happens here
| 40,171 |
https://github.com/BarbaraV/dune-stuff/blob/master/dune/stuff/test/.gitignore | Github Open Source | Open Source | BSD-2-Clause | 2,018 | dune-stuff | BarbaraV | Ignore List | Code | 28 | 129 | test_validation
*.o
*.gcda
*.gcno
common_color
common_logger
common_parameter_validation
function_expression_2
common_math
common_profiler
common_string
common_typenames
data/
fem_error
fem_projection
function_expression
grid_information
grid_provider
function.param
provider.param
pgfoutput_*
common_tuple
grid_output_p... | 16,649 |
https://github.com/9fans/plan9port/blob/master/src/lib9/getwd.c | Github Open Source | Open Source | MIT, bzip2-1.0.6, LPL-1.02 | 2,023 | plan9port | 9fans | C | Code | 16 | 57 | #include <u.h>
#include <libc.h>
#undef getwd
char*
p9getwd(char *s, int ns)
{
return getcwd(s, ns);
}
| 47,582 |
https://github.com/jeroenr/zio/blob/master/core-tests/shared/src/test/scala/zio/concurrent/CountdownLatchSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | zio | jeroenr | Scala | Code | 85 | 346 | package zio.concurrent
import zio._
import zio.test._
import zio.test.Assertion._
object CountdownLatchSpec extends ZIOBaseSpec {
val spec: ZSpec[Environment, Failure] =
suite("CountdownLatchSpec")(
suite("Construction")(
testM("Creates a latch") {
assertM(CountdownLatch.make(100).flatMa... | 8,935 |
https://github.com/porkbao/freemarker/blob/master/src/main/java/freemarker/ext/beans/ResourceBundleModel.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | freemarker | porkbao | Java | Code | 1,001 | 2,159 | /*
* Copyright (c) 2003 The Visigoth Software Society. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice,... | 53,678 |
https://github.com/dedalusgs/sitae/blob/master/sitae/src/main/java/es/novasoft/sitae/ws/fandango/CertificacionPublicacionWSService.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | sitae | dedalusgs | Java | Code | 48 | 176 | /**
* CertificacionPublicacionWSService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package es.novasoft.sitae.ws.fandango;
public interface CertificacionPublicacionWSService extends javax.xml.rpc.Service {
public java.lang.String ... | 53,800 |
https://github.com/kvchen/hog-winrate-web/blob/master/assets/js/grid.js | Github Open Source | Open Source | Apache-2.0 | null | hog-winrate-web | kvchen | JavaScript | Code | 215 | 1,220 | !function(){function t(t){return function(e,i){e=d3.hsl(e),i=d3.hsl(i);var r=(e.h+120)*a,h=(i.h+120)*a-r,s=e.s,l=i.s-s,o=e.l,u=i.l-o;return isNaN(l)&&(l=0,s=isNaN(s)?i.s:s),isNaN(h)&&(h=0,r=isNaN(r)?i.h:r),function(a){var e=r+h*a,i=Math.pow(o+u*a,t),c=(s+l*a)*i*(1-i);return"#"+n(i+c*(-.14861*Math.cos(e)+1.78277*Math.si... | 41,741 |
https://github.com/limitpointinf0/tit-4-tat/blob/master/api/controllers/advertise/instagram/destroy-one-instagram.js | Github Open Source | Open Source | MIT | 2,021 | tit-4-tat | limitpointinf0 | JavaScript | Code | 91 | 266 | module.exports = {
friendlyName: 'Destroy one instagram',
description: 'Delete an instagram that will no longer be advertised.',
inputs: {
id: {
description: 'The id of the thing to destroy',
type: 'number',
required: true
},
},
exits: {
... | 2,900 |
https://github.com/ScalablyTyped/Distribution/blob/master/w/workbox-build/src/main/scala/typings/workboxBuild/buildLibPopulateSwTemplateMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 34 | 192 | package typings.workboxBuild
import typings.workboxBuild.anon.GeneratePartialmanifestEn
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object buildLibPopulateSwTemplateMod {
@JSImport("workbox-build... | 16,913 |
https://github.com/spreadthesource/wooki/blob/master/src/main/java/com/wooki/services/utils/SqlUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | wooki | spreadthesource | Java | Code | 49 | 126 | package com.wooki.services.utils;
/**
* Static class for SQL string manipulation
*
* @author ccordenier
*/
public class SqlUtils
{
/**
* By now only escape
*
* @param query
* @return
*/
public static String escapeWildcards(String query)
{
String result = query.replac... | 8,951 |
https://github.com/dsavransky/PhDThesis/blob/master/figures/apri_expansion.eps | Github Open Source | Open Source | CC-BY-4.0 | 2,019 | PhDThesis | dsavransky | PostScript | Code | 4,393 | 8,360 | %!PS-Adobe-3.0 EPSF-3.0
%%Creator: MATLAB, The Mathworks, Inc. Version 7.9.0.529 (R2009b). Operating System: Linux 2.6.18-128.1.6.el5 #1 SMP Tue Mar 24 12:05:57 EDT 2009 x86_64.
%%Title: /home/ds/SIM2/paperfigs/apri_residuals.eps
%%CreationDate: 04/01/2010 15:41:50
%%DocumentNeededFonts: Times-Roman
%%DocumentProcessC... | 55,077 |
https://github.com/Brenins/vitrine/blob/master/admin/listar/produtos.php | Github Open Source | Open Source | Apache-2.0 | null | vitrine | Brenins | PHP | Code | 152 | 724 | <?php
if ( !isset ( $page ) ) exit;
?>
<div class="card shadow-lg">
<div class="card-header">
<h2 class="float-left">Listar Produtos</h2>
<div class="float-right">
<a href="cadastros/produtos" title="Cadastrar Novo Produto" class="btn btn-primary">
Cadastrar Produto
... | 50,602 |
https://github.com/osrf/opensplice/blob/master/examples/dcps/HelloWorld/java/src/HelloWorldDataSubscriber.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | opensplice | osrf | Java | Code | 334 | 1,005 | /*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... | 45,840 |
https://github.com/hsleonis/learnyounode/blob/master/2-baby-steps.js | Github Open Source | Open Source | MIT | 2,015 | learnyounode | hsleonis | JavaScript | Code | 10 | 49 | var len = process.argv.length;
var sum=0;
for(var i=2;i<len;i++)
sum+=Number(process.argv[i]);
console.log(sum); | 53,717 |
https://github.com/UTN-FRBA-Mobile/CulturaVerde/blob/master/app/src/main/java/com/example/culturaverde/Classes/UsuarioGlobal.kt | Github Open Source | Open Source | MIT | null | CulturaVerde | UTN-FRBA-Mobile | Kotlin | Code | 29 | 132 | package com.example.culturaverde.Classes
import android.content.Context
import com.example.culturaverde.Models.Usuario
import io.paperdb.Paper
class UsuarioGlobal {
companion object {
fun guardarUsuario(usuario:Usuario) {
Paper.book().write("usuario", usuario)
}
fun getUsuar... | 39,911 |
https://github.com/IntrepidPursuits/auth-ios/blob/master/Pods/Intrepid/SwiftWisdom/Core/Version/Version.swift | Github Open Source | Open Source | MIT | 2,017 | auth-ios | IntrepidPursuits | Swift | Code | 173 | 372 | //
// Version.swift
// bmap
//
// Created by Logan Wright on 11/30/15.
// Copyright © 2015 Intrepid. All rights reserved.
//
import Foundation
public struct Version {
public private(set) var major: Int = 0
public private(set) var minor: Int = 0
public private(set) var patch: Int = 0
public in... | 41,064 |
https://github.com/govzhz/seed/blob/master/seed-webapp/src/test/java/com/base/seed/webapp/common/DingTalkUtilsTest.java | Github Open Source | Open Source | MIT | 2,020 | seed | govzhz | Java | Code | 28 | 116 | package com.base.seed.webapp.common;
import com.base.seed.common.dingtalk.DingTalkUtils;
import com.base.seed.webapp.BaseTest;
import org.junit.Test;
public class DingTalkUtilsTest extends BaseTest {
@Test
public void send() throws InterruptedException {
DingTalkUtils.sendTextMsgNoExcption("",
"test... | 47,357 |
https://github.com/KarolisRazmus/atraskvr-alone.dev/blob/master/app/Http/Controllers/VRUsersController.php | Github Open Source | Open Source | MIT | null | atraskvr-alone.dev | KarolisRazmus | PHP | Code | 305 | 1,054 | <?php
namespace App\Http\Controllers;
use App\Models\VRUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Route;
class VRUsersController extends Controller
{
/**
* Display a listing of the resource.
* GET /users
*
* @return Response
*/
... | 5,905 |
https://github.com/AlexNguyen27/sportbook-backend/blob/master/src/resolvers/order.resolver.ts | Github Open Source | Open Source | MIT | 2,021 | sportbook-backend | AlexNguyen27 | TypeScript | Code | 177 | 659 | import joi from 'joi';
import { middleware, schemaValidation, tokenValidation } from '../components';
import {
Order, Resolvers, MutationCreateOrderArgs, MutationUpdateOrderArgs, MutationUpdateOrderStatusArgs,
} from '../types/graphql.type';
import { ROLE, PAYMENT_TYPE } from '../components/constants';
import OrderS... | 25,363 |
https://github.com/ScalablyTyped/Distribution/blob/master/a/aws-sdk__client-kms/src/main/scala/typings/awsSdkClientKms/distTypesModelsModels0Mod/DescribeCustomKeyStoresRequest.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 327 | 867 | package typings.awsSdkClientKms.distTypesModelsModels0Mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait DescribeCustomKeyStoresRequest extends StObject {
/**
* <p>Gets only information ab... | 2,647 |
https://github.com/Active-mcc/configx/blob/master/configx-web/src/main/java/com/configx/web/model/BuildConfigChange.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | configx | Active-mcc | Java | Code | 967 | 2,306 | package com.configx.web.model;
public class BuildConfigChange {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column build_config_change.build_id
*
* @mbggenerated
*/
private Long buildId;
/**
* This field was generated by MyBat... | 54,409 |
https://github.com/nhatofo/redshiftdw_ud/blob/master/etl.py | Github Open Source | Open Source | MIT | 2,019 | redshiftdw_ud | nhatofo | Python | Code | 165 | 438 | import configparser
import psycopg2
from sql_queries import copy_table_queries, insert_table_queries
"""
below we have a funtion that will perform queries that will loads data from S3 buckets
to Redshift cluster.
parameters:
cur, conn
return: none
"""
def load_staging_tables(cur, conn):
for query in copy_t... | 7,912 |
https://github.com/lonardo/sres/blob/master/idea-sres/gen/me/tatarka/sres/idea/psi/impl/SResAtomImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | sres | lonardo | Java | Code | 97 | 398 | // This is a generated file. Not intended for manual editing.
package me.tatarka.sres.idea.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
impo... | 55,882 |
https://github.com/hiloWang/notes/blob/master/Kotlin/Code/Kotlin-Android-V1.3/app/src/main/java/com/ztiany/kotlin/coroutines/CoroutinesActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | notes | hiloWang | Kotlin | Code | 45 | 201 | package com.ztiany.kotlin.coroutines
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.ztiany.kotlin.R
/**
*@author Ztiany
* Email: ztiany3@gmail.com
* Date : 2018-05-04 17:33
*/
class CoroutinesActivity : AppCompatActivity() {
override fun onCreate(savedInstanceSt... | 18,902 |
https://github.com/whipermr5/gocd/blob/master/common/src/main/java/com/thoughtworks/go/serverhealth/ServerHealthService.java | Github Open Source | Open Source | Apache-2.0 | null | gocd | whipermr5 | Java | Code | 472 | 1,560 | /*
* Copyright 2022 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 31,674 |
https://github.com/jewelsjacobs/cpapp/blob/master/src/app/app.js | Github Open Source | Open Source | MIT | 2,014 | cpapp | jewelsjacobs | JavaScript | Code | 99 | 363 | angular.module( 'ngBoilerplate', [
//angular resources
'ui.router',
'ngResource',
'ngAnimate',
'ngSanitize',
//combined templates and common plugins
'templates-app',
'templates-common',
//routes
'ngBoilerplate.login',
'ngBoilerplate.home',
//Core Systems
'ngBoilerplate.API',
'ngBoilerplate.USER',
'rs.UI'... | 22,888 |
https://github.com/zzb254188/ppl.cv/blob/master/src/ppl/cv/cuda/remap.cu | Github Open Source | Open Source | Apache-2.0 | 2,021 | ppl.cv | zzb254188 | null | Spoken | 1,855 | 5,074 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may ... | 23,703 |
https://github.com/gradle/gradle/blob/master/subprojects/docs/src/snippets/swift/swiftXCTest/kotlin/build.gradle.kts | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-or-later, LicenseRef-scancode-mit-old-style, EPL-2.0, CDDL-1.0, MIT, LGPL-2.1-only, Apache-2.0, MPL-2.0, EPL-1.0 | 2,023 | gradle | gradle | Kotlin | Code | 19 | 88 | // tag::apply-plugin[]
plugins {
xctest
}
// end::apply-plugin[]
// tag::configure-target-machines[]
xctest {
targetMachines = listOf(machines.linux.x86_64, machines.macOS.x86_64)
}
// end::configure-target-machines[]
| 15,247 |
https://github.com/julianah/sofi/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,018 | sofi | julianah | Python | Code | 136 | 534 | from setuptools import setup, find_packages
from os import path
# Get the long description from the README file
with open(path.join('.', 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
author="tryexceptpass",
author_email="cmedina@tryexceptpass.org",
name="sofi",
versio... | 50,738 |
https://github.com/smhadisadati/TMTDyn/blob/master/v2_TMTDyn_IJRR2020/Samples/Rods/1. STIFF-FLOP/code (ROM n1)/codegen/mex/EOM_eq/sprdmpF7.c | Github Open Source | Open Source | BSD-4-Clause | 2,022 | TMTDyn | smhadisadati | C | Code | 5,234 | 17,270 | /*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* sprdmpF7.c
*
* Code generation for function 'sprdmpF7'
*
*/
/* Include files */
#include "mwmathutil.h"
#i... | 51,917 |
https://github.com/hnidboubker/NeedDotNet/blob/master/Src/Web/www/NeedDotNet.Web/Models/Users/ArchiveUserModel.cs | Github Open Source | Open Source | Apache-2.0 | null | NeedDotNet | hnidboubker | C# | Code | 53 | 104 | using System;
namespace NeedDotNet.Web.Models.Users
{
public class ArchiveUserModel
{
public long Id { get; set; }
public string Name { get; set; }
public string UserName { get; set; }
public string Email { get; set; }
public bool IsActive { get; set; }
public ... | 30,128 |
https://github.com/SSG-DRD-IOT/docker-ciotlabs/blob/master/gateway-mraa/main.js | Github Open Source | Open Source | MIT | null | docker-ciotlabs | SSG-DRD-IOT | JavaScript | Code | 116 | 260 | var m = require("mraa") ;
console.log('MRAA version: ' + m.getVersion());
m.addSubplatform(m.GENERIC_FIRMATA, "/dev/ttyACM0");
var io = new m.Gpio(525);
io.dir(m.DIR_OUT); // configure the LED gpio as an output
console.log("Using LED pin number: " + 13) ;
// now we are going to flash the LED by t... | 4,263 |
https://github.com/openpodd/podd-api/blob/master/firebase/management/commands/send_fcm_to_user.py | Github Open Source | Open Source | MIT | 2,023 | podd-api | openpodd | Python | Code | 62 | 208 | from django.core.management import BaseCommand, CommandError
from accounts.models import User, UserDevice
from common.functions import publish_fcm_message
class Command(BaseCommand):
args = 'username message'
help = 'send message to username via fcm'
def handle(self, *args, **options):
if len(ar... | 38,452 |
https://github.com/enger816/tl3d/blob/master/test2.6/src/engine/tl3d/engine/utils/shadow/Shadow.ts | Github Open Source | Open Source | MIT | 2,020 | tl3d | enger816 | TypeScript | Code | 118 | 328 | import { Display3dShadow } from "../../display3D/Display3dShadow";
export class Shadow {
public _visible: boolean = false;
public display: Display3dShadow;
public data: Array<number>;
public constructor() {
this.data = [0, 0, 0, 5];
}
public set visible(value: boolean) {
t... | 11,455 |
https://github.com/bjoernalbers/mowoli/blob/master/app/models/hl7/segment/obx.rb | Github Open Source | Open Source | MIT | 2,021 | mowoli | bjoernalbers | Ruby | Code | 58 | 204 | # Observation Result
module HL7
module Segment
class OBX < Base
field :set_id
field :value_type
field :observation_identifier
field :observation_sub_id
field :observation_value
field :units
field :references_range
field :abnormal_flags
field :probability
... | 25,976 |
https://github.com/ZeyuanWei/backstage/blob/master/packages/core-app-api/src/apis/implementations/FetchApi/PluginProtocolResolverFetchMiddleware.test.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | backstage | ZeyuanWei | TypeScript | Code | 251 | 948 | /*
* Copyright 2021 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 54,829 |
https://github.com/Tervis-Tumbler/TervisShopifyAdminPlus/blob/master/TervisShopifyAdminPlusPersonalizeIt.js | Github Open Source | Open Source | MIT | null | TervisShopifyAdminPlus | Tervis-Tumbler | JavaScript | Code | 2,796 | 12,792 | import {
html,
render,
directive
} from 'https://unpkg.com/lit-html@1.1.2?module'
import {
ifDefined
} from 'https://unpkg.com/lit-html@1.1.2/directives/if-defined.js?module'
import {
Get_TervisProductMetaDataUsingIndex
} from 'https://unpkg.com/@tervis/tervisproductmetadata?module'
import {
... | 25,979 |
https://github.com/perezite/Boost4Android/blob/master/android-ndk-r10b/tests/device/clone/jni/Android.mk | Github Open Source | Open Source | BSL-1.0 | 2,019 | Boost4Android | perezite | Makefile | Code | 28 | 119 | LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := clone
LOCAL_SRC_FILES := clone.c
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := clone-static
LOCAL_SRC_FILES := clone.c
LOCAL_LDFLAGS += -static -Wl,--eh-frame-hdr
include $(BUILD_EXECUTABLE)
| 3,884 |
https://github.com/desarrollo-para-triunfadores/Inmobiliaria-NUBE/blob/master/NUBE/resources/views/admin/partes/navtop/contenido_notificacion.blade.php | Github Open Source | Open Source | MIT | 2,018 | Inmobiliaria-NUBE | desarrollo-para-triunfadores | Blade | Code | 328 | 1,451 | <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" onclick="cambiar_estado()">
<i class="fa fa-bell-o"></i>
@if ($notificaciones->count() > 0)
<span class="label label-warning">{{$notificaciones->count()}}</span>
@endif
</a>
<ul class="dropdown-menu" style="width: 380px">
@if ($notific... | 44,079 |
https://github.com/bonifacsolyom/FoD/blob/master/src/gui/guihandler.cpp | Github Open Source | Open Source | MIT | 2,017 | FoD | bonifacsolyom | C++ | Code | 158 | 543 | #include "guihandler.h"
#include "../core/global.h"
/*!
* @author kovlev
*/
GUIHandler::GUIHandler() {
clear();
}
bool GUIHandler::isLocked() {
return hasGUI;
}
bool GUIHandler::isHardlocked() {
return hardlocked;
}
BasicGUI* GUIHandler::getGUI() {
return currentGUI;
}
Battle* GUIHandler::getBattle() {
re... | 55,884 |
https://github.com/dpocheng/Python-Search-Engine-Text-Tokenizer/blob/master/pocheng_Assignment_1B.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | Python-Search-Engine-Text-Tokenizer | dpocheng | Python | Code | 372 | 1,156 | # Copyright 2017 Pok On Cheng
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 39,030 |
https://github.com/andreasjacobsen93/XamarinThirdpartySamples/blob/master/SlidingMenuSharp-master/Sample/SlidingContent.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | XamarinThirdpartySamples | andreasjacobsen93 | C# | Code | 44 | 175 | using Android.App;
using Android.OS;
namespace Sample
{
[Activity(Label = "Sliding Content", Theme = "@style/ExampleTheme")]
public class SlidingContent : BaseActivity
{
public SlidingContent()
: base(Resource.String.title_bar_content)
{ }
protected override void OnCre... | 46,051 |
https://github.com/Bikeman868/Urchin/blob/master/Urchin.Server.Owin/Ui/web/Views/SecurityRule/SecurityRuleListElementView.dart | Github Open Source | Open Source | Apache-2.0 | 2,020 | Urchin | Bikeman868 | Dart | Code | 81 | 337 | import 'dart:html';
import '../../MVVM/Mvvm.dart';
import '../../Events/AppEvents.dart';
import '../../Models/SecurityRuleModel.dart';
import '../../ViewModels/SecurityRuleViewModel.dart';
class SecurityRuleListElementView extends View
{
BoundLabel<String> _startIpBinding;
BoundLabel<String> _endIpBinding;
Se... | 15,890 |
https://github.com/alphagov/imminence/blob/master/test/functional/admin/places_controller_test.rb | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,023 | imminence | alphagov | Ruby | Code | 540 | 1,951 | require "test_helper"
class Admin::PlacesControllerTest < ActionController::TestCase
setup do
@service = FactoryBot.create(:service)
stub_locations_api_does_not_have_a_postcode("FY4 1AZ")
end
context "adding a place" do
context "given the latest inactive data set" do
setup do
@data_set... | 40,676 |
https://github.com/R2Road/cocos2dx_playground/blob/master/cocos2dx_playground/Classes/step_rain_of_chaos_input_KeyCodeCollectScene.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | cocos2dx_playground | R2Road | C | Code | 86 | 375 | #pragma once
#include <string>
#include "2d/CCScene.h"
#include "step_rain_of_chaos_input_KeyCodeCollector.h"
NS_CC_BEGIN
class Label;
NS_CC_END
namespace step_rain_of_chaos
{
namespace input
{
class KeyCodeCollectScene : public cocos2d::Scene
{
private:
KeyCodeCollectScene();
public:
static const... | 2,243 |
https://github.com/zhangsl/androidannotations/blob/master/AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/OnActivityResult.java | Github Open Source | Open Source | Apache-2.0 | null | androidannotations | zhangsl | Java | Code | 283 | 669 | /**
* Copyright (C) 2010-2014 eBusiness Information, Excilys Group
*
* 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 ... | 33,712 |
https://github.com/axal25/JavaCourse/blob/master/src/main/java/concurrency/multithreading/synchronization/lock/intrinsic/wait/notify/demo5/LogsCopyOnAdd.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | JavaCourse | axal25 | Java | Code | 182 | 672 | package concurrency.multithreading.synchronization.lock.intrinsic.wait.notify.demo5;
import utils.StringUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class LogsCopyOnAdd {
private ArrayList<Strin... | 43,231 |
https://github.com/researchstudio-sat/webofneeds/blob/master/webofneeds/won-node/src/main/java/won/node/service/persistence/SocketAclService.java | Github Open Source | Open Source | Zlib, EPL-1.0, LZMA-exception, bzip2-1.0.6, CPL-1.0, CDDL-1.0, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | webofneeds | researchstudio-sat | Java | Code | 434 | 1,700 | package won.node.service.persistence;
import org.apache.jena.graph.Graph;
import org.apache.jena.query.Dataset;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.sparql.graph.GraphFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component... | 32,340 |
https://github.com/joliclic/zml_webcontrol/blob/master/src/css/color-selector.less | Github Open Source | Open Source | MIT | 2,018 | zml_webcontrol | joliclic | Less | Code | 169 | 673 | #hsl-selector-box {
margin-top: 2em;
}
@colorsample-width: 100px;
@colorsample-height: 100px;
@colorsample-margin-right: 20px;
#colorsample-box {
width: @colorsample-width;
//height: @colorsample-height;
//border: 2px solid black;
//background-color: rgb(169, 0, 255);
float: left;
}
#colorsample {
widt... | 27,707 |
https://github.com/Dr-Cazador/Vs-Ace/blob/master/source/Character.hx | Github Open Source | Open Source | Apache-2.0 | 2,021 | Vs-Ace | Dr-Cazador | Haxe | Code | 559 | 2,108 | package;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.graphics.frames.FlxAtlasFrames;
using StringTools;
class Character extends FlxSprite
{
public var animOffsets:Map<String, Array<Dynamic>>;
public var curCharacter:String = 'bf';
public var holdTimer:Float = 0;
public function new(x:Float, y:F... | 12,636 |
https://github.com/mingli1/Questmark/blob/master/core/src/com/questmark/entity/systems/enemy/RandomMovementSystem.kt | Github Open Source | Open Source | MIT | 2,019 | Questmark | mingli1 | Kotlin | Code | 179 | 625 | package com.questmark.entity.systems.enemy
import com.badlogic.ashley.core.Engine
import com.badlogic.ashley.core.Entity
import com.badlogic.ashley.core.EntitySystem
import com.badlogic.ashley.core.Family
import com.badlogic.ashley.systems.IteratingSystem
import com.badlogic.gdx.math.MathUtils
import com.questmark.ent... | 15,818 |
https://github.com/fritsvt/Laravel-JWT-Boilerplate/blob/master/app/Helpers/Obfuscate.php | Github Open Source | Open Source | MIT | null | Laravel-JWT-Boilerplate | fritsvt | PHP | Code | 69 | 186 | <?php
namespace App\Helpers;
class Obfuscate
{
/**
* Obfuscate a string with a key between 100 and 800
* @param $string
* @param $key
* @return string
*/
public static function obfuscate($string, $key)
{
$chars = str_split($string);
$finalString = "";
fore... | 44,334 |
https://github.com/RamaAbbas/HospitalSystem/blob/master/app/Http/Controllers/OperationController.php | Github Open Source | Open Source | MIT | null | HospitalSystem | RamaAbbas | PHP | Code | 267 | 887 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\operation;
use App\Models\doctor;
use App\Models\op_room;
class OperationController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function inde... | 6,702 |
https://github.com/SmirnoffRD/java_script/blob/master/js/js4_2.js | Github Open Source | Open Source | MIT | null | java_script | SmirnoffRD | JavaScript | Code | 593 | 1,747 | /*jshint esversion: 6 */
/* jshint -W097 */
/*jslint devel: true */
'use strict';
/**
* Объект с настройками игры.
* @property {int} rowsCount Количество строк в карте.
* @property {int} colsCount Количество колонок в карте.
* @property {int} startPositionX Начальная позиция игрока по X координате.
* @property {... | 40,359 |
https://github.com/Akshaybj0221/Arduino-Projects/blob/master/rfduino_ypr_4_gyro_refined/rfduino_ypr_4_gyro_refined.ino | Github Open Source | Open Source | MIT | null | Arduino-Projects | Akshaybj0221 | null | Spoken | 593 | 1,921 | //DMP without INT and FIFO Overflow and 6 sensors connected n tested
#include <RFduinoBLE.h>
#include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
#include "Wire.h"
MPU6050 mpu(0x68); // <-- use for AD0 high
#define OUTPUT_READABLE_YAWPITCHROLL
int pin[15];
int ad0 = 2;
bool blinkState = false;
// MPU c... | 55,675 |
https://github.com/Jonsuff/AutoDeliverProject_Turtlebot3/blob/master/opencv-4.1.1/modules/imgproc/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,019 | AutoDeliverProject_Turtlebot3 | Jonsuff | CMake | Code | 48 | 283 | set(the_description "Image Processing")
ocv_add_dispatched_file(accum SSE4_1 AVX AVX2)
ocv_add_dispatched_file(bilateral_filter SSE2 AVX2)
ocv_add_dispatched_file(box_filter SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(filter SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(color_hsv SSE2 SSE4_1 AVX2)
ocv_add_dispatched_file(col... | 21,328 |
https://github.com/jeroenr/gnip-rule-validator/blob/master/src/test/scala/com/github/jeroenr/gnip/rule/validation/GnipRuleValidatorSpec.scala | Github Open Source | Open Source | MIT | 2,016 | gnip-rule-validator | jeroenr | Scala | Code | 1,529 | 5,107 | package com.github.jeroenr.gnip.rule.validation
import org.scalatest._
class GnipRuleValidatorSpec extends WordSpec with MustMatchers with TryValues {
"Gnip rule parser" should {
"accept single character" in {
GnipRuleValidator("h", Twitter, PowertrackV1).success
}
"NOT accept single #" in {
... | 11,781 |
https://github.com/nahidupa/grr/blob/master/lib/access_control.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | grr | nahidupa | Python | Code | 669 | 1,608 | #!/usr/bin/env python
"""The access control classes and user management classes for the data_store.
An AccessControlManager has the following responsibilities:
- Authorize users access to resources based on a set of internal rules
A UserManager class has the following responsibilities :
- Check if a user has a pa... | 47,774 |
https://github.com/kaushlam/F-Salon-App/blob/master/lib/payment/wallet.dart | Github Open Source | Open Source | MIT | null | F-Salon-App | kaushlam | Dart | Code | 27 | 82 | import 'package:flutter/material.dart';
class Wallet extends StatefulWidget {
@override
_WalletState createState() => _WalletState();
}
class _WalletState extends State<Wallet> {
@override
Widget build(BuildContext context) {
return Container();
}
} | 46,438 |
https://github.com/chinhngocong2308/chinhngocong2308.github.io/blob/master/resources/views/pages/product/search.blade.php | Github Open Source | Open Source | MIT | null | chinhngocong2308.github.io | chinhngocong2308 | PHP | Code | 781 | 4,236 | @extends('layout')
@section('content')
<!-- header area end -->
<!-- category-banner area start -->
<div class="category-banner">
<img src="{{asset('public/frontend/img/slider/home-1/HD-TFT126-SummerSale-US-HomepageBanner-1920x270px-vD.webp')}}" style="width: 1920px;height: 270px">
</div>
<!-- category-ban... | 39,202 |
https://github.com/apache/openoffice/blob/master/main/drawinglayer/inc/drawinglayer/attribute/sdrsceneattribute3d.hxx | Github Open Source | Open Source | Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1.... | 2,023 | openoffice | apache | C++ | Code | 247 | 755 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 21,824 |
https://github.com/openSIL/openSIL/blob/master/xUSL/NBIO/IOD/PkgTypeFixups.c | Github Open Source | Open Source | MIT | 2,023 | openSIL | openSIL | C | Code | 1,319 | 5,748 | /**
* @file PkgTypeFixups.c
* @brief Package Specific PCIe Configuration
*
*/
/* Copyright 2022-2023 Advanced Micro Devices, Inc. All rights reserved. */
// SPDX-License-Identifier: MIT
#include <SilCommon.h>
#include <xSIM.h>
#include <CommonLib/SmnAccess.h>
#include <PciStructs.h>
#include <CommonLib/CpuLib... | 44,329 |
https://github.com/amvb/GUCEF/blob/master/platform/gucefCOMCORE/src/CUDPMasterSocket.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | GUCEF | amvb | C++ | Code | 747 | 2,550 | /*
* gucefCOMCORE: GUCEF module providing basic communication facilities
*
* Copyright (C) 1998 - 2020. Dinand Vanvelzen
*
* 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
*
* ... | 5,953 |
https://github.com/Theseus-Aegis/GTRecoilSystem/blob/master/addons/cup/CfgWeapons.hpp | Github Open Source | Open Source | MIT | null | GTRecoilSystem | Theseus-Aegis | C++ | Code | 105 | 763 | class CfgWeapons {
#include "caliber\baseclasses.hpp"
// 5.45 Rifles
#include "caliber\545\ak.hpp"
#include "caliber\545\ak12.hpp"
// 5.56 Rifles
#include "caliber\556\acr.hpp"
#include "caliber\556\ak.hpp"
#include "caliber\556\ak19.hpp"
#include "caliber\556\aug.hpp"
#include... | 30,375 |
https://github.com/lambdaxymox/DragonFlyBSD/blob/master/sys/dev/drm/radeonfw/REDWOOD_smc/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,022 | DragonFlyBSD | lambdaxymox | Makefile | Code | 14 | 93 | # $FreeBSD: head/sys/modules/drm2/radeonkmsfw/REDWOOD_smc/Makefile 254885 2013-08-25 19:37:15Z dumbbell $
KMOD= radeonkmsfw_REDWOOD_smc
IMG= REDWOOD_smc
.include <bsd.kmod.mk>
| 26,961 |
https://github.com/anithashok1910/sprint-retro-board/blob/master/packages/app/src/components/signUp/Login.jsx | Github Open Source | Open Source | MIT | null | sprint-retro-board | anithashok1910 | null | Spoken | 213 | 743 | import React, { Component } from 'react';
import { Form, Icon, Input, Button, Checkbox } from 'antd';
import './login.css';
import { ApplicationContext } from '../../context/ApplicationContext';
import Actions from '../../context/Actions';
class NormalLoginForm extends Component {
static contextType = ApplicationCon... | 316 |
https://github.com/ukolshurika/kindergarten/blob/master/config/initializers/session_store.rb | Github Open Source | Open Source | MIT | 2,016 | kindergarten | ukolshurika | Ruby | Code | 16 | 56 | # Be sure to restart your server when you modify this file.
require 'rack-cas/session_store/rails/active_record'
Rails.application.config.session_store :rack_cas_active_record_store
| 37,094 |
https://github.com/jhonncerv/Trivias/blob/master/app/Share.php | Github Open Source | Open Source | MIT | null | Trivias | jhonncerv | PHP | Code | 33 | 93 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Share extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'fb_post_id', 'postal_id', 'participante_id', 'points'
];
}
| 23,718 |
https://github.com/ndevelder/amr-wind-channel-les/blob/master/submods/amrex/Src/EB/AMReX_EB2_Level.cpp | Github Open Source | Open Source | BSD-3-Clause | null | amr-wind-channel-les | ndevelder | C++ | Code | 2,474 | 12,032 |
#include <AMReX_EB2_Level.H>
#include <AMReX_IArrayBox.H>
#include <algorithm>
namespace amrex { namespace EB2 {
void
Level::prepareForCoarsening (const Level& rhs, int max_grid_size, IntVect ngrow)
{
BoxArray all_grids(amrex::grow(m_geom.Domain(),ngrow));
all_grids.maxSize(max_grid_size);
FabArray<EBCel... | 12,416 |
https://github.com/ekoeppen/MSP430_Generic_Ada_Drivers/blob/master/examples/uart/main.adb | Github Open Source | Open Source | MIT | null | MSP430_Generic_Ada_Drivers | ekoeppen | Ada | Code | 57 | 195 | with Interfaces; use Interfaces;
with MSPGD.Board;
with Drivers.Text_IO;
procedure Main is
pragma Preelaborate;
package Board renames MSPGD.Board;
package Text_IO is new Drivers.Text_IO (USART => Board.UART);
N : Unsigned_32 := 0;
begin
Board.Init;
Text_IO.Put_Line ("Hello, World!");
loop
... | 56,447 |
https://github.com/pandeliskirpoglou/SE---Lab-Assignment-2/blob/master/seip2020_practical_assignments/unittesting/src/test/java/math/MyMathTest.java | Github Open Source | Open Source | MIT | null | SE---Lab-Assignment-2 | pandeliskirpoglou | Java | Code | 231 | 585 | package math;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import math.MyMath;
/**
* A class that provides test cases for the MyMath class.
*
* @author pandeliskirpoglou (pand181567@yahoo.com)
*/
public class MyMathTest {
/*
* A unit test t... | 8,822 |
https://github.com/Nameles-Org/Nameless-realtime/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | Nameless-realtime | Nameles-Org | Makefile | Code | 97 | 428 | CC=gcc
CXX=g++
RM=rm -f
LIBS=libpq libpqxx python3 libzmq
CXXFLAGS=-Wall -std=c++14 -I./src -I./include $(shell pkg-config --cflags libpq python3)
LDFLAGS=-L./lib/
LDLIBS=-lm -lrt -lgflags -lboost_system -lpthread -lboost_thread -lzmqpp $(shell pkg-config --libs $(LIBS))
BIN=data-processing
TESTSBIN=test-data-process... | 24,299 |
https://github.com/RECONet/RECO/blob/master/SRC/S11/s11_mme_bearer_manager.c | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, BSD-2-Clause-Views, BSD-2-Clause | 2,018 | RECO | RECONet | C | Code | 1,297 | 6,138 | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the Apache License... | 19,353 |
https://github.com/j-kitch/simple-jms/blob/master/simple-jms-broker/src/main/java/kitchen/josh/simplejms/broker/ProducerService.java | Github Open Source | Open Source | MIT | null | simple-jms | j-kitch | Java | Code | 91 | 409 | package kitchen.josh.simplejms.broker;
import kitchen.josh.simplejms.common.Destination;
import kitchen.josh.simplejms.common.message.Message;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
@Component
public class Pro... | 4,566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.