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/coopdevs/katuma-web/blob/master/src/containers/Header/Menus/LoggedIn/index.js | Github Open Source | Open Source | MIT | 2,018 | katuma-web | coopdevs | JavaScript | Code | 96 | 346 | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import headerStyles from '../../styles/index.scss';
class LoggedInMenu extends Component {
static propTypes = {
user: PropTypes.object,
};
render() {
const { user } = this.pr... | 54,132 |
https://github.com/villanopack/instant-api/blob/master/spec/factories/user_factory.rb | Github Open Source | Open Source | MIT | 2,014 | instant-api | villanopack | Ruby | Code | 31 | 86 | FactoryGirl.define do
factory :user do
email { Faker::Internet.email }
age { 20 }
born_at { 20.years.ago }
registered_at { DateTime.now }
terms_accepted { true }
money { BigDecimal.new('4.2') }
end
end | 50,485 |
https://github.com/bmcmahen/AtlasKit/blob/master/packages/single-select/docs/index.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-generic-cla, Apache-2.0 | 2,017 | AtlasKit | bmcmahen | JavaScript | Code | 129 | 359 | import React from 'react';
import styled from 'styled-components';
/* eslint-disable import/no-duplicates, import/first */
import Example from './Example';
import exampleSrc from '!raw-loader!./Example';
import StatelessExample from './StatelessExample';
import statelessExampleSrc from '!raw-loader!./StatelessExample'... | 12,338 |
https://github.com/marclaporte/hopebilling/blob/master/template/admin/default/views/employee/list.php | Github Open Source | Open Source | MIT | 2,022 | hopebilling | marclaporte | PHP | Code | 251 | 1,244 | <div class="ajax-block">
<div>
<div class="top-menu">
<a href="<?= $_->link('admin/employee/add') ?>" class="btn btn-default ajax-modal"><span
class="glyphicon glyphicon-ok"
aria-hidden="true"></span><?=$_->l('Добавить')?></a>
</div>
<ta... | 44,647 |
https://github.com/renzocarara/kuoz/blob/master/resources/js/App.vue | Github Open Source | Open Source | MIT | 2,021 | kuoz | renzocarara | Vue | Code | 197 | 1,070 | <template>
<v-app>
<v-app-bar color="blue-grey" dark app>
<v-app-bar-nav-icon @click="drawer = true"></v-app-bar-nav-icon>
<v-toolbar-title>
<v-img
class="d-inline-block"
src="/images/logo.png"
alt="logo"
... | 30,150 |
https://github.com/lyh001126/blog/blob/master/blog/user/urls.py | Github Open Source | Open Source | MIT | null | blog | lyh001126 | Python | Code | 15 | 52 | # user子应用的视图
from django.urls import path
from user.views import RegisterView
urlpatterns=[
path('register/', RegisterView.as_view(), name='register'),
] | 56,437 |
https://github.com/catchorg/Catch2/blob/master/fuzzing/fuzz_TestSpecParser.cpp | Github Open Source | Open Source | BSL-1.0 | 2,023 | Catch2 | catchorg | C++ | Code | 53 | 205 |
// Copyright Catch2 Authors
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// SPDX-License-Identifier: BSL-1.0
//By Paul Dreik 2020
#include <catch2/internal/catch_test_spec_parser.hpp>
#in... | 23,578 |
https://github.com/youyouqiu/hybrid-development/blob/master/clbs/src/main/java/com/zw/platform/task/SchedulingMonitorTask.java | Github Open Source | Open Source | MIT | 2,021 | hybrid-development | youyouqiu | Java | Code | 105 | 527 | package com.zw.platform.task;
import com.zw.platform.service.reportManagement.DriverDiscernStatisticsService;
import com.zw.platform.service.schedulingcenter.SchedulingManagementService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotat... | 22,527 |
https://github.com/shniu/tdd-starter/blob/master/eco-notes/arts/src/main/java/io/github/shniu/arts/core/cache/bee/store/impl/LRUCacheStore.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | tdd-starter | shniu | Java | Code | 275 | 1,050 | package io.github.shniu.arts.core.cache.bee.store.impl;
import io.github.shniu.arts.core.cache.bee.store.CacheStore;
import java.util.HashMap;
import java.util.Map;
/**
* HashMap + Doubly linked list
* <p>
* Created by shniu on 2019/3/26.
*/
public class LRUCacheStore<K, V> implements CacheStore<K, V> {
pri... | 23,092 |
https://github.com/shelltdf/ifcplusplus/blob/master/IfcPlusPlus/src/ifcpp/IFC4/lib/IfcFootingTypeEnum.cpp | Github Open Source | Open Source | MIT | 2,019 | ifcplusplus | shelltdf | C++ | Code | 293 | 1,267 | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include <map>
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/IFC4/include/IfcFootingTypeEn... | 8,516 |
https://github.com/openshift/installer/blob/master/terraform/providers/google/vendor/github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/bigqueryreservation/assignment_schema.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | installer | openshift | Go | Code | 554 | 2,070 | // Copyright 2023 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | 19,832 |
https://github.com/xordoquy/raincoat/blob/master/tests/test_source.py | Github Open Source | Open Source | MIT | 2,017 | raincoat | xordoquy | Python | Code | 307 | 1,568 | import os
import shutil
import mock
import pytest
from raincoat import source
def test_source_tarball(tmpdir, mocker):
install_dir = tmpdir.mkdir("install_dir")
pip = mocker.patch("pip.main")
def simulate_download(*args):
filename = "fr2csv-1.0.1.tar.gz"
shutil.copyfile(
os... | 52,863 |
https://github.com/formewp/forme-crosswise/blob/master/src/Controllers/Create.php | Github Open Source | Open Source | MIT | 2,023 | forme-crosswise | formewp | PHP | Code | 68 | 248 | <?php
declare(strict_types=1);
namespace Forme\Crosswise\Controllers;
use Forme\Framework\Controllers\AbstractController;
use Laminas\Diactoros\Response\JsonResponse;
use Symfony\Component\String\UnicodeString;
final class Create extends AbstractController
{
public function __invoke($request)
{
$mode... | 5,350 |
https://github.com/wangyang2010344/mve/blob/master/public/lib/share-util/bezier.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | mve | wangyang2010344 | JavaScript | Code | 178 | 500 | define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
exports.createPointBezier = exports.createBezierPoints = void 0;
/**
* 参考
* https://www.cnblogs.com/lxiang/p/4995255.html
* @param anchorPoints
* @param amount 点数量
*/
functi... | 20,887 |
https://github.com/smaislin186/a4/blob/master/database/seeds/CenterProductTableSeeder.php | Github Open Source | Open Source | MIT | null | a4 | smaislin186 | PHP | Code | 130 | 455 | <?php
use Illuminate\Database\Seeder;
use App\Center;
use App\Product;
class CenterProductTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$center_product = [
'South Boston' => [
'Loans' => [
... | 45,472 |
https://github.com/marvink/sbt-jruby/blob/master/build.sbt | Github Open Source | Open Source | BSD-3-Clause | 2,014 | sbt-jruby | marvink | Scala | Code | 29 | 117 | sbtPlugin := true
name := "jruby"
version := "0.4"
scalaVersion := "2.10.4"
organization := "de.marvinkerkhoff"
libraryDependencies ++= Seq(
"org.jruby" % "jruby-complete" % "1.7.16"
)
addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.0.2")
| 12,391 |
https://github.com/ugorji/collab-wiki/blob/master/src/main/java/net/ugorji/oxygen/wiki/actions/RSSRedirectToSearchAction.java | Github Open Source | Open Source | MIT | 2,021 | collab-wiki | ugorji | Java | Code | 104 | 434 | /* <<< COPYRIGHT START >>>
* Copyright 2006-Present OxygenSoftwareLibrary.com
* Licensed under the GNU Lesser General Public License.
* http://www.gnu.org/licenses/lgpl.html
*
* @author: Ugorji Nwoke
* <<< COPYRIGHT END >>>
*/
package net.ugorji.oxygen.wiki.actions;
import java.util.HashMap;
import java.util.M... | 34,272 |
https://github.com/razvanm/vanadium-core/blob/master/v23/security/ecdsa_go.go | Github Open Source | Open Source | BSD-3-Clause | null | vanadium-core | razvanm | Go | Code | 97 | 300 | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !openssl
package security
import (
"crypto/ecdsa"
"crypto/x509"
"fmt"
"v.io/v23/verror"
)
func newInMemoryECDSASignerImpl(key *ecdsa.Pri... | 24,071 |
https://github.com/andreshp/GeneticQAP/blob/master/results/paper/esc32b/PathRelinking/2optb/alpha=0.1/27.sol | Github Open Source | Open Source | MIT | 2,017 | GeneticQAP | andreshp | Gerber Image | Code | 70 | 120 | Time (s): 10.27169680595398
Number of evaluations: 20691532
Number of iterations: 352
Number of local search applications: 8068
Number of greedy solutions: 353
Number of reemplacements in GADEGD: 338
The solution has objective value 168 .
The permutation is:
[12 4 14 10 6 2 8 0 24 25 16 17 30 26 28 29 27 31 22 18 ... | 26,376 |
https://github.com/qingye5x/disunity/blob/master/src/info/ata4/unity/engine/enums/TextureFormat.java | Github Open Source | Open Source | Unlicense | 2,019 | disunity | qingye5x | Java | Code | 170 | 712 | /*
** 2013 June 20
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.ata4.u... | 24,055 |
https://github.com/alefesampaio502/food/blob/master/app/Models/ProdutoEspecificacaoModel.php | Github Open Source | Open Source | MIT | 2,021 | food | alefesampaio502 | PHP | Code | 127 | 602 | <?php
namespace App\Models;
use CodeIgniter\Model;
class ProdutoEspecificacaoModel extends Model
{
protected $table = 'produtos_especificacoes';
protected $returnType = 'object';
protected $allowedFields = ['produto_id','medida_id','preco','customizavel'];
//Validações
pr... | 12,218 |
https://github.com/Dikshapurswani/Algorithms-and-Data-Structures-1/blob/master/Java/Data-Structures/ARRAYS/MISC/ArrayRotation1.java | Github Open Source | Open Source | MIT | 2,022 | Algorithms-and-Data-Structures-1 | Dikshapurswani | Java | Code | 92 | 337 | /*
* ARRAY ROTATION USING TEMP ARRAY
* LEFT ROTATE TO 2
*/
import java.util.*;
public class ArrayRotation1
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
int[] arr = {1,2,3,4,5,6,7};
int shift=2;
rotate(arr,shift,arr.length);
... | 27,100 |
https://github.com/BillysInterns/hv-client/blob/master/src/elevate/HVObjects/Thing/FamilyHistory3.php | Github Open Source | Open Source | MIT | 2,018 | hv-client | BillysInterns | PHP | Code | 95 | 408 | <?php
/** @author jonfor */
namespace elevate\HVObjects\Thing;
use elevate\HVObjects\Thing\DataXML\Type\FamilyHistory3Type;
use JMS\Serializer\Annotation\XmlRoot;
use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\SerializedName;
use JMS\Serializer\Annotation\XmlList;
use elevate\TypeTranslator;
use... | 24,289 |
https://github.com/chrlembeck/aoc2017/blob/master/src/main/java/de/chrlembeck/aoc2020/day17/Aoc2020Day17.java | Github Open Source | Open Source | BSD-3-Clause | null | aoc2017 | chrlembeck | Java | Code | 87 | 255 | package de.chrlembeck.aoc2020.day17;
import de.chrlembeck.aoccommon.AbstractAocBase;
import java.util.Scanner;
public class Aoc2020Day17 extends AbstractAocBase {
public static void main(final String[] args) {
new Aoc2020Day17().run();
}
@Override
public Object part1(final Scanner input) {
... | 14,174 |
https://github.com/svn2github/Artistic-Style/blob/master/tags/2.06/AStyleTest/file-py/astyle_resource.py | Github Open Source | Open Source | MIT | 2,018 | Artistic-Style | svn2github | Python | Code | 997 | 2,903 | #! /usr/bin/python
""" Check ASResource vectors for various criteria.
"""
# to disable the print statement and use the print() function (version 3 format)
from __future__ import print_function
import libastyle # local directory
# global variables ------------------------------------------------------------
_... | 30,438 |
https://github.com/HaonanQiu/future-city/blob/master/源码/future_city_front/web/src/main/webapp/pay.jsp | Github Open Source | Open Source | LicenseRef-scancode-mulanpsl-2.0-en, MulanPSL-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | future-city | HaonanQiu | null | Spoken | 486 | 2,935 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="a... | 40,596 |
https://github.com/abysmli/Perl-Socket/blob/master/TCP_Client.pl | Github Open Source | Open Source | MIT | 2,013 | Perl-Socket | abysmli | Perl | Code | 98 | 404 | #!/usr/bin/perl -w
#TCP_Client.pl
#Design by Li, Yuan
use IO::Socket;
$ipaddr = $ARGV[0];
print "Server Adresse: $ipaddr\n";
$socket = new IO::Socket::INET (
PeerAddr => $ipaddr,
PeerPort => 5000,
Proto => 'tcp'... | 37,381 |
https://github.com/CoursejiProject/CoursejiServer/blob/master/courseji/src/main/kotlin/com/littlecorgi/courseji/schedule/exception/ScheduleNotFoundException.kt | Github Open Source | Open Source | MIT | null | CoursejiServer | CoursejiProject | Kotlin | Code | 17 | 60 | package com.littlecorgi.courseji.schedule.exception
/**
* Schedule信息没找到
*
* @author littlecorgi
* @date 2021/4/22
*/
class ScheduleNotFoundException : RuntimeException()
| 38,571 |
https://github.com/PH2M/Magento-Extra-RESTful/blob/master/code/Model/Api2/Page.php | Github Open Source | Open Source | MIT | 2,021 | Magento-Extra-RESTful | PH2M | PHP | Code | 22 | 84 | <?php
/**
* Exposes CMS pages
*
* @author Daniel Deady <daniel@clockworkgeek.com>
* @license MIT
*/
class Clockworkgeek_Extrarestful_Model_Api2_Page extends Clockworkgeek_Extrarestful_Model_Api2_Abstract
{
}
| 53,814 |
https://github.com/VanAndelInstitute/intent/blob/master/include/bc1.h | Github Open Source | Open Source | MIT | 2,020 | intent | VanAndelInstitute | C++ | Code | 398 | 3,394 | #ifndef BC1_H
#define BC1_H
#include <set>
static std::set<std::string> V2_BC1 {
"GTTTGTTT",
"ACCGTGTTT",
"GATAGTGTTT",
"TGAGGCGGTTT",
"GATCGTTT",
"ATCACGTTT",
"GATGTAGTTT",
"TGACACAGTTT",
"CTTTCTTT",
"AGCCTCTTT",
"GACGGGCTTT",
"TGAATGACTTT",
"TGCTATTT",... | 3,094 |
https://github.com/the-mx-group/mx-application-formulas/blob/master/app/xee/init.sls | Github Open Source | Open Source | Apache-2.0 | 2,023 | mx-application-formulas | the-mx-group | null | Spoken | 2 | 19 | homebrew/cask/xee:
pkg.installed
| 38,549 |
https://github.com/ppuspu/DirectXShaderCompiler/blob/master/tools/clang/lib/SPIRV/GlPerVertex.cpp | Github Open Source | Open Source | NCSA | 2,022 | DirectXShaderCompiler | ppuspu | C++ | Code | 2,530 | 8,819 | //===--- GlPerVertex.cpp - GlPerVertex implementation ------------*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 50,078 |
https://github.com/WilliamSESE/SpringBootDemo/blob/master/sbm-generator/src/main/java/com/mrcoder/sbmgenerator/service/PersonService.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | SpringBootDemo | WilliamSESE | Java | Code | 21 | 90 | package com.mrcoder.sbmgenerator.service;
import com.mrcoder.sbmgenerator.entity.Person;
import java.util.List;
public interface PersonService {
int addPerson(Person person);
List<Person> findAllPerson(int pageNum, int pageSize);
List<Person> findAllPersonNoPage();
}
| 39,992 |
https://github.com/xorpse/sleigh-ocaml/blob/master/lib/sleigh.mli | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | sleigh-ocaml | xorpse | OCaml | Code | 875 | 1,467 | open Stdint
type t
type varnode = {
space : string;
offset : uint64;
size : int;
}
type register = varnode
type constant = {
value : uint64;
size : int;
}
type address = uint64
type operand = Address of { value : uint64; size : int }
| Constant of { value : uint64; size : int }
... | 23,828 |
https://github.com/hir12111/normativeTypesCPP/blob/master/test/ntscalarMultiChannelTest.cpp | Github Open Source | Open Source | MIT | null | normativeTypesCPP | hir12111 | C++ | Code | 428 | 1,854 | /*
* Copyright information and license terms for this software can be
* found in the file LICENSE that is included with the distribution
*/
/*
* ntscalarMultiChannelTest.cpp
*
* Created on: 2015.08
* Authors: Marty Kraimer, Dave Hickin
*/
#include <cstddef>
#include <cstdlib>
#include <cstddef>
#include <... | 47,575 |
https://github.com/Gizmotronn/Unity-Intro/blob/master/Pokemon RPG/Assets/Art/gfx/Overworld_89.asset.meta | Github Open Source | Open Source | MIT | 2,021 | Unity-Intro | Gizmotronn | Unity3D Asset | Code | 12 | 66 | fileFormatVersion: 2
guid: 1b2cc093c139f3c468e8ce1091532714
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
| 5,005 |
https://github.com/DeKaDeNcE/WildStar-Sandbox/blob/master/Projects/RealmServer/ClientDB/Structures/ItemDisplay.cs | Github Open Source | Open Source | MIT | 2,021 | WildStar-Sandbox | DeKaDeNcE | C# | Code | 313 | 669 | public class ItemDisplay
{
public uint Id { get; set; }
public string Description { get; set; }
public uint Item2TypeId { get; set; }
public string ObjectModel { get; set; }
public string ObjectModelL { get; set; }
public string ObjectTexture0 { get; set; }
public string ObjectTextur... | 45,639 |
https://github.com/baydindima/ScalaChat/blob/master/app/controllers/Application.scala | Github Open Source | Open Source | Apache-2.0 | null | ScalaChat | baydindima | Scala | Code | 97 | 307 | package controllers
import actors.UserActor
import play.api.Play.current
import play.api.libs.json.JsValue
import play.api.mvc.{Action, Controller, WebSocket}
import scala.concurrent.Future
object Application extends Controller {
val Nick = "nickname"
val Address = "address"
val Msg = "msg"
def index = Acti... | 8,443 |
https://github.com/anuchandy/azure-sdk-for-java/blob/master/edgegateway/resource-manager/v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/DataBoxEdgeManagementClientImpl.java | Github Open Source | Open Source | MIT | 2,019 | azure-sdk-for-java | anuchandy | Java | Code | 1,103 | 2,729 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.edgegateway.v2019_03_01.implementation;
import c... | 32,950 |
https://github.com/kmyokoyama/sdsc/blob/master/test/src/Makefile | Github Open Source | Open Source | MIT | null | sdsc | kmyokoyama | Makefile | Code | 136 | 608 | TARGET=test_api_queue
SRCS=${TARGET}.c
BASE=../..
BINDIR=../bin
#include libs.in
SDSCINCLUDE=${BASE}/libs/include
SDSCDIR=${BASE}/libs/lib
SDSCAR=${SDSCDIR}/libsdsc.a
#LIBSDIR=${LISTSDIR} ${TREESDIR}
FLAGS=-static -O2 -Wall -g -MMD
INCLUDE=-I. -I${SDSCINCLUDE}
#INCLUDE=-I. -I${LISTSINCLUDE} -I${TREESINCLUDE}
LIBDIR... | 34,375 |
https://github.com/PranayBandaru/ESA_product_microservice/blob/master/api/model.js | Github Open Source | Open Source | Apache-2.0 | null | ESA_product_microservice | PranayBandaru | JavaScript | Code | 97 | 256 | 'use strict';
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const ProductSchema = new Schema({
productId: {
type: String,
required: true,
index: {
unique: true
}
},
category: {
type: String,
required: true
},
produ... | 8,584 |
https://github.com/kuadrosx/mongomapper_ext/blob/master/lib/mongomapper_ext/filter.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,009 | mongomapper_ext | kuadrosx | Ruby | Code | 142 | 551 | module MongoMapperExt
module Filter
def self.included(klass)
require 'lingua/stemmer'
klass.class_eval do
extend ClassMethods
key :_keywords, Array
ensure_index :_keywords
before_save :_update_keywords
end
end
module ClassMethods
def filterable_k... | 18,463 |
https://github.com/dhawton/org.flyak.api/blob/master/src/main/java/org/nzvirtual/api/config/SecurityConfig.java | Github Open Source | Open Source | MIT | null | org.flyak.api | dhawton | Java | Code | 159 | 1,117 | package org.nzvirtual.api.config;
import org.nzvirtual.api.security.AuthTokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.BeanIds;
import org.s... | 39,878 |
https://github.com/SavenR/Bingether/blob/master/jsframework/static/jsframework/js/ng/controllers/mainController.js | Github Open Source | Open Source | Artistic-2.0 | 2,015 | Bingether | SavenR | JavaScript | Code | 46 | 133 | app.controller('mainController', function($http){
var mc = this,
pages = [
[ 'COMMUNITY', '/community' ],
[ 'MY BINGETHERS', '/my_bingethers' ],
[ 'PERSONAL BINGES', '/binge_list' ],
[ 'SEARCH', '/search' ],
[ 'LOG OUT', '/log_out' ]
];
})... | 19,127 |
https://github.com/Zerounary/design-patterns-JS/blob/master/src/behavioral/chain-of-resp/try/deal.js | Github Open Source | Open Source | MIT | 2,020 | design-patterns-JS | Zerounary | JavaScript | Code | 92 | 301 |
class C1 {
constructor(){
this.next = null;
}
setNext(fn){
this.next = fn;
}
exec(params){
params.push(1);
return this.next.exec(params);
}
}
class c2 {
constructor(){
this.next = null;
}
setNext(fn){
this.next = fn;
}
exec(params){
params.push(2);
return this.n... | 2,393 |
https://github.com/chiswicked/go-boilerplate/blob/master/Makefile | Github Open Source | Open Source | 0BSD | null | go-boilerplate | chiswicked | Makefile | Code | 134 | 460 | BASE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
BASE_DIR := $(notdir $(patsubst %/,%,$(dir $(BASE_PATH))))
ORG ?= chiswicked
SERVICE ?= $(BASE_DIR)
DOCKER_IMAGE := $(ORG)/$(SERVICE)
VERSION ?= $(shell cat $(BASE_PATH)/VERSION 2> /dev/null || echo 0.0.1)
# Local commands
.PHONY: all clean clean-co... | 23,412 |
https://github.com/andyaiken/dojo/blob/master/src/components/controls/group.tsx | Github Open Source | Open Source | MIT | 2,022 | dojo | andyaiken | TypeScript | Code | 124 | 392 | import React from 'react';
import { RenderError } from '../error';
interface Props {
className: string | null;
transparent: boolean;
onClick: (() => void) | null;
}
export class Group extends React.Component<Props> {
public static defaultProps = {
className: null,
transparent: false,
onClick: null
};
pr... | 31,433 |
https://github.com/zhangsxagithub/flutter_news/blob/master/packages/flutter/test/widgets/animated_switcher_test.dart | Github Open Source | Open Source | BSD-3-Clause | 2,020 | flutter_news | zhangsxagithub | Dart | Code | 1,158 | 4,936 | // Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('AnimatedSwitcher fade... | 52,172 |
https://github.com/morphene/morphene/blob/master/libraries/plugins/apis/database_api/database_api.cpp | Github Open Source | Open Source | MIT | 2,019 | morphene | morphene | C++ | Code | 4,256 | 16,063 | #include <appbase/application.hpp>
#include <morphene/plugins/database_api/database_api.hpp>
#include <morphene/plugins/database_api/database_api_plugin.hpp>
#include <morphene/protocol/get_config.hpp>
#include <morphene/protocol/exceptions.hpp>
#include <morphene/protocol/transaction_util.hpp>
#include <morphene/ut... | 10,807 |
https://github.com/Br0ckers/Murphy/blob/master/lib/user.rb | Github Open Source | Open Source | MIT | 2,018 | Murphy | Br0ckers | Ruby | Code | 82 | 328 | class User
attr_reader :connection, :email, :pass
def initialize
if ENV['ENVIRONMENT'] == 'test'
@connection = PG.connect(dbname: 'murphy_test')
else
@connection = PG.connect(dbname: 'murphy')
end
end
def self.create(email,password)
user = User.new
user.createUser(email,password)
end... | 31,537 |
https://github.com/Swathi1253/logistics-business-network-gtt-samples/blob/master/lbn-gtt-template-tso/GTT-V2-Sample-TrackSalesOrders-Service/srv/src/main/java/com/sap/gtt/v2/sample/sof/odata/model/TrackedObject.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | logistics-business-network-gtt-samples | Swathi1253 | Java | Code | 124 | 485 | package com.sap.gtt.v2.sample.sof.odata.model;
import com.google.gson.annotations.SerializedName;
import com.sap.gtt.v2.sample.sof.constant.Constants;
import org.apache.olingo.odata2.api.annotation.edm.*;
@EdmEntityType(namespace = Constants.MODEL_NAMESPACE, name = TrackedObject.ENTITY_NAME)
@EdmEntitySet(name = Trac... | 17,585 |
https://github.com/ZBJDSBJ/MaterialNews-Mvp/blob/master/base_library/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,016 | MaterialNews-Mvp | ZBJDSBJ | Gradle | Code | 114 | 787 | buildscript {
dependencies {
classpath 'com.jakewharton:butterknife-gradle-plugin:8.4.0'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
minSdkVersion 15
targetSdkVe... | 48,826 |
https://github.com/IgorLesnevskiy/adentro/blob/master/gulp/webpack.config.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | adentro | IgorLesnevskiy | JavaScript | Code | 429 | 1,908 | const webpack = require('webpack');
const gutil = require('gulp-util');
const argv = require('yargs').argv;
const config = require('./config.js');
const paths = config.paths;
// const StatsWriterPlugin = require("webpack-stats-plugin").StatsWriterPlugin;
// const Visualizer = require('webpack-visualizer-plugin');
const... | 24,881 |
https://github.com/stephmelanofridis/homework-15-tech-blog/blob/master/controllers/homeRoutes.js | Github Open Source | Open Source | MIT | 2,021 | homework-15-tech-blog | stephmelanofridis | JavaScript | Code | 350 | 1,128 | const router = require('express').Router();
const { User, Post, Comment } = require('../models');
const withAuth = require('../utils/auth');
router.get('/', withAuth, async (req, res) => {
try {
const postData = await Post.findAll({
include: [{ model: User }],
order: [['createdAt', ... | 54,665 |
https://github.com/sanorg/blog-symfony/blob/master/src/SpBar/Bundle/BlogBundle/Form/Type/PostMetaFormType.php | Github Open Source | Open Source | MIT | null | blog-symfony | sanorg | PHP | Code | 79 | 345 | <?php
namespace SpBar\Bundle\BlogBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use SpBar\Bundle\BlogBundle\Form\DataTransformer\MetaTransformer;
use SpBar\Bundle\BlogBundle\Model\PostMetaMana... | 9,221 |
https://github.com/thethrustguru/TheThrustGuru/blob/master/TheThrustGuru/Stores/RestuarantMainForm.Designer.cs | Github Open Source | Open Source | MIT | 2,018 | TheThrustGuru | thethrustguru | C# | Code | 393 | 1,825 | namespace TheThrustGuru.Stores
{
partial class RestuarantMainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summar... | 40,259 |
https://github.com/rokf/various-audio-tools/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,020 | various-audio-tools | rokf | Makefile | Code | 19 | 94 |
LDLIBS=-lsporth -lsoundpipe -lsndfile -lao -lm
all: sporth_ao sporth_ao_stream
sporth_ao: sporth_ao.c
sporth_ao_stream: sporth_ao_stream.c
clean:
rm sporth_ao sporth_ao_stream
.PHONY: all clean
| 52,468 |
https://github.com/vanya6537/asteratart.com/blob/master/src/components/molecules/newsletter-block/newsletter-block.test.js | Github Open Source | Open Source | MIT | 2,020 | asteratart.com | vanya6537 | JavaScript | Code | 32 | 91 | import React from 'react';
import renderer from 'react-test-renderer';
import { NewsletterBlock } from './newsletter-block';
describe('Newsletter Block', () => {
it('renders correctly', () => {
const tree = renderer.create(<NewsletterBlock />).toJSON();
expect(tree).toMatchSnapshot();
});
});
| 45,026 |
https://github.com/pyroceper/gbemu/blob/master/include/memory.h | Github Open Source | Open Source | MIT | 2,022 | gbemu | pyroceper | C | Code | 35 | 131 | #ifndef MEMORY_H
#define MEMORY_H
#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>
#include <fmt/core.h>
class Memory
{
public:
void load_ROM(const std::string &path);
uint8_t rom[0x10000] {};
uint8_t read(uint16_t address);
void write(uint16_t address, ui... | 36,156 |
https://github.com/LiquidsShadow/2D0/blob/master/server/startup.js | Github Open Source | Open Source | MIT | null | 2D0 | LiquidsShadow | JavaScript | Code | 984 | 2,822 | /*
This file contains the code that runs on the Meteor server. All CRUD (Create, Read, Update, and Delete) operations performed on website data is handled
in this file. Client side code must call the methods defined here to perform CRUD operations. This code also defines what data is sent to clients by the server.
The ... | 16,329 |
https://github.com/Hexirp/hexirp-hakyll/blob/master/hexyll/src/Hexyll.hs | Github Open Source | Open Source | Apache-2.0 | 2,020 | hexirp-hakyll | Hexirp | Haskell | Code | 169 | 591 | --------------------------------------------------------------------------------
-- | Top-level module exporting all modules that are interesting for the user
{-# LANGUAGE CPP #-}
module Hexyll
( module Hexyll.Core.OldCompiler
, module Hexyll.Core.Configuration
, module Hexyll.Core.File
, module Hexyll.... | 56,466 |
https://github.com/BFNZ/bfnz/blob/master/app/forms/customer_and_order_form.rb | Github Open Source | Open Source | MIT | 2,018 | bfnz | BFNZ | Ruby | Code | 127 | 501 | class CustomerAndOrderForm < BaseForm
attribute :title, String
attribute :first_name, String
attribute :last_name, String
attribute :address, String
attribute :suburb, String
attribute :city_town, String
attribute :post_code, String
attribute :dpid, String
attribute :x, Decimal
attribute :y, Decima... | 31,842 |
https://github.com/sk-ys/redmine_actual_date/blob/master/assets/javascripts/rearrange_date_information.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | redmine_actual_date | sk-ys | JavaScript | Code | 299 | 1,242 | $(function () {
// === common ===
// --- configuration ---
var actual_start_date_cf_id = ActualDates['cf_id']['start'];
var actual_end_date_cf_id = ActualDates['cf_id']['end'];
var label_date_information = ActualDates['label_date_information'];
// === issue attribute ===
// --- configurati... | 54,671 |
https://github.com/PyWaves/PyWaves/blob/master/tests/cancelOrderTest.py | Github Open Source | Open Source | MIT | 2,023 | PyWaves | PyWaves | Python | Code | 150 | 1,115 | from .. import pywaves as pw
from .. import address
from .. import asset
from .. import order
import pytest
import time
pw.setThrowOnError(True)
def test_pywavesOfflineCancelOrder():
pw.setMatcher('https://testnet.waves.exchange/api/v1/forward/matcher')
pw.setNode('https://nodes-testnet.wavesnodes.com', 'T')... | 19,458 |
https://github.com/creativetimofficial/material-dashboard-react-nodejs/blob/master/material-react-app/src/layouts/billing/components/BillingInformation/index.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | material-dashboard-react-nodejs | creativetimofficial | JavaScript | Code | 137 | 488 | /**
=========================================================
* Material Dashboard 2 React - v2.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-react
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
Coded by www.creative... | 19,521 |
https://github.com/farihaorna23/Project/blob/master/frontend/node_modules/react-quiz-component/lib/Locale.jsx | Github Open Source | Open Source | MIT | 2,021 | Project | farihaorna23 | JavaScript | Code | 7 | 16 | export const defaultLocale = {
""
} | 22,244 |
https://github.com/chadinsane016/magazine-website/blob/master/src/Common/Cik.CoreLibs/Bus/ICommandBus.cs | Github Open Source | Open Source | MIT | 2,017 | magazine-website | chadinsane016 | C# | Code | 20 | 60 | using System;
using System.Reactive;
namespace Cik.CoreLibs.Bus
{
public interface ICommandBus
{
IObservable<Unit> Send<T>(T command) where T : Command;
}
} | 30,725 |
https://github.com/ctouzel/SpotDriverWeb/blob/master/beta.php | Github Open Source | Open Source | Apache-2.0 | null | SpotDriverWeb | ctouzel | PHP | Code | 169 | 1,021 | <?php
//
// CONFIGURATION
//
date_default_timezone_set('America/New_York');
error_reporting(-1);
ini_set('display_errors', 1);
ini_set('memory_limit', '1024M');
//
// INCLUDES
//
include("constants_spotdriver.php");
include("utils.php");
include("spotify_utils.php");
include("Session.php");
include("SpotifyWebAPI.php... | 43,959 |
https://github.com/johnny13/HolaSiri/blob/master/HeySiriMacOS/MenuBarController.framework/Versions/A/Headers/MenuBarController.h | Github Open Source | Open Source | MIT | 2,018 | HolaSiri | johnny13 | C | Code | 118 | 332 | //
// MenuBarController.h
// MenuBarController
//
// Created by Dmitry Nikolaev on 27.10.14.
// Copyright (c) 2014 Dmitry Nikolaev. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for MenuBarController.
FOUNDATION_EXPORT double MenuBarControllerVersionNumber;
//! Project version string... | 35,947 |
https://github.com/innocces/taro-hooks/blob/master/packages/father-build/src/fixtures/build/rollup-resolve-jsx/src/Foo.jsx | Github Open Source | Open Source | MIT | 2,022 | taro-hooks | innocces | null | Spoken | 5 | 16 | export default () => <h1>Foo</h1>;
| 53,306 |
https://github.com/lshappylife/snippet-manager/blob/master/snippets/attribute.py | Github Open Source | Open Source | MIT | 2,019 | snippet-manager | lshappylife | Python | Code | 14 | 57 | class AttributeDictionary(dict):
__getattr__ = dict.__getitem__
__setattr__ = dict.__setitem__
import json
data = json.loads(json_str, object_hook=AttributeDictionary)
| 34,558 |
https://github.com/jromero98/QuickSale/blob/master/quicksale.sql | Github Open Source | Open Source | MIT | null | QuickSale | jromero98 | SQL | Code | 1,755 | 4,335 | CREATE TABLE categoria (
id integer NOT NULL,
nombre_categoria character varying(50) NOT NULL
);
ALTER TABLE categoria OWNER TO postgres;
--
-- TOC entry 186 (class 1259 OID 16419)
-- Name: categoria_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE categoria_id_seq
START WITH 1... | 10,444 |
https://github.com/KinoAndWorld/Whisper/blob/master/Whisper/Controller/ContactListController.m | Github Open Source | Open Source | Apache-2.0 | 2,014 | Whisper | KinoAndWorld | Objective-C | Code | 212 | 990 | //
// ContactListController.m
// Whisper
//
// Created by kino on 14-9-23.
//
//
#import "ContactListController.h"
#import "ChatController.h"
#import "ChatDelegate.h"
#import "XmppManager.h"
#import "ContactManager.h"
//#import "NotifitionConfig.h"
#define kRecContactsCount @"recContacts.count"
@interface Conta... | 36,214 |
https://github.com/TOIFLMSC/spyfall-web-backend/blob/master/internal/app/model/lobby.go | Github Open Source | Open Source | MIT | null | spyfall-web-backend | TOIFLMSC | Go | Code | 34 | 124 | package model
// Lobby type
type Lobby struct {
Token string `json:"token"`
Locations []string `json:"locations"`
CurrentLocation string `json:"currentloc"`
AmountPl int `json:"amountpl"`
AmountSpy int `json:"amountspy"`
SpyPlayers []string `json:"spyplayers"`
All... | 40,399 |
https://github.com/Celeo/GETIN-Auth/blob/master/check_keys.py | Github Open Source | Open Source | MIT | 2,018 | GETIN-Auth | Celeo | Python | Code | 51 | 188 | from auth.hr.app import *
with open('results.txt', 'w') as f:
for key in APIKey.query.all():
try:
auth = xmlapi.auth(keyID=key.key, vCode=key.code)
result = auth.account.APIKeyInfo()
if not result.key.accessMask == app.config['API_KEY_MASK']:
f.write('In... | 3,038 |
https://github.com/ardatan/DefinitelyTyped/blob/master/types/email-templates/index.d.ts | Github Open Source | Open Source | MIT | 2,017 | DefinitelyTyped | ardatan | TypeScript | Code | 471 | 1,110 | // Type definitions for node-email-templates 2.6
// Project: https://github.com/niftylettuce/node-email-templates
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Matus Gura <https://github.com/gurisko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
*... | 36,132 |
https://github.com/IndeedSi/azkarra-streams/blob/master/azkarra-runtime/src/test/java/io/streamthoughts/azkarra/runtime/interceptors/KafkaBrokerReadyInterceptorConfigTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | azkarra-streams | IndeedSi | Java | Code | 190 | 619 | /*
* Copyright 2019-2020 StreamThoughts.
*
* 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,... | 56,296 |
https://github.com/thetjyoung/BudgetAnalyser/blob/master/BudgetAnalyser.Engine.UnitTest/Matching/MatchingRuleTest.cs | Github Open Source | Open Source | MIT | 2,021 | BudgetAnalyser | thetjyoung | C# | Code | 710 | 2,371 | using System;
using BudgetAnalyser.Engine.Budget;
using BudgetAnalyser.Engine.Matching;
using BudgetAnalyser.Engine.Statement;
using BudgetAnalyser.Engine.UnitTest.TestData;
using BudgetAnalyser.Engine.UnitTest.TestHarness;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace BudgetAnalyser.Engine.UnitTest.M... | 40,633 |
https://github.com/andrsam/bookshelf/blob/master/src/main/webapp/resources/plugins/jquery.tagbox.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | bookshelf | andrsam | JavaScript | Code | 738 | 3,017 | /**
* jQuery EasyUI 1.5.1
*
* Copyright (c) 2009-2016 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function ($) {
function _1(_2) {
var _3 = $.data(_2, "... | 8,396 |
https://github.com/richardzZZZZ/XD/blob/master/chrysalis/FNO/run/run_3d.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | XD | richardzZZZZ | Shell | Code | 36 | 183 | #!/bin/bash
for ARCH in conv xd
do
python -u fourier_3d.py --arch=${ARCH} --visc=5 --datapath ${DATA} --warmup_epochs=0 --arch_lr=0.005 --arch_sgd=True --arch_momentum=0.5 |& tee results/fourier_3d_v5_${ARCH}.log
python -u fourier_3d.py --arch=${ARCH} --visc=4 --datapath ${DATA} --warmup_epochs=0 --arch_lr=0... | 27,498 |
https://github.com/n0ix/SFDL.NET/blob/master/SFDL.NET 3/SelectContainerDownloadPathPopUp.xaml.vb | Github Open Source | Open Source | MIT | 2,021 | SFDL.NET | n0ix | Visual Basic | Code | 14 | 43 | Partial Public Class SelectContainerDownloadPathPopUp
Inherits UserControl
Public Sub New()
Me.InitializeComponent()
End Sub
End Class
| 42,686 |
https://github.com/joshterrill/hackathon-starter/blob/master/views/api/nyt.handlebars | Github Open Source | Open Source | MIT | 2,016 | hackathon-starter | joshterrill | null | Spoken | 64 | 346 | extends ../layout.handlebars
block content
.page-header
h2
i.fa.fa-building-o
| New York Times API
.btn-group.btn-group-justified
a.btn.btn-primary(href='http://developer.nytimes.com/page', target='_blank')
i.fa.fa-check-square-o
| Overview
... | 25,507 |
https://github.com/thinkofashish/embarc-utils/blob/master/php/mysql_interface.php | Github Open Source | Open Source | MIT | null | embarc-utils | thinkofashish | PHP | Code | 837 | 3,268 | <?php
require_once("mysql_db.php");
class MYSQL_INTERFACE
{
public $db_object = false;
public $db_connection = false;
public function __construct() {
$this->db_object = new MYSQL_DB();
$this->db_connection = $this->db_object->connect();
}
public function getCountries() {
$query = "SELECT * from cs_dhlZo... | 242 |
https://github.com/sergey-miryanov/as3isolib_haxe/blob/master/src/as3isolib/display/renderers/SceneBlittingRenderer.hx | Github Open Source | Open Source | MIT | 2,012 | as3isolib_haxe | sergey-miryanov | Haxe | Code | 270 | 872 | //
// (c) 2006 J.W.Opitz and (c) 2011 haxeports. See LICENSE
//
package as3isolib.display.renderers;
import as3isolib.bounds.IBounds;
import as3isolib.core.IIsoDisplayObject;
import as3isolib.display.IIsoView;
import as3isolib.display.scene.IIsoScene;
import as3isolib.errors.IsoError;
import flash.display.Bitmap;
imp... | 10,013 |
https://github.com/antopen/alipay-sdk-java-all/blob/master/src/main/java/com/alipay/api/domain/SpiVoiceCallback.java | Github Open Source | Open Source | Apache-2.0 | null | alipay-sdk-java-all | antopen | Java | Code | 204 | 755 | package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 语音回调列表
*
* @author auto create
* @since 1.0, 2019-09-03 21:26:02
*/
public class SpiVoiceCallback extends AlipayObject {
private static final long serialVersionUID =... | 52,372 |
https://github.com/apache/ant-easyant-core/blob/master/src/main/java/org/apache/easyant/tasks/Import.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,018 | ant-easyant-core | apache | Java | Code | 889 | 2,254 | /*
* 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... | 30,503 |
https://github.com/hopkings2008/yig/blob/master/messagebus/kafka/builder.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | yig | hopkings2008 | Go | Code | 128 | 490 | package kafka
import (
"errors"
"github.com/confluentinc/confluent-kafka-go/kafka"
"github.com/journeymidnight/yig/helper"
bus "github.com/journeymidnight/yig/messagebus"
"github.com/journeymidnight/yig/messagebus/types"
)
type KafkaBuilder struct {
}
func (kb *KafkaBuilder) Create(config helper.MsgBusConfig) ... | 52,541 |
https://github.com/karolrom-intel/target-utils/blob/master/third-party/klish/plugins/lua/plugin_init.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | target-utils | karolrom-intel | C | Code | 39 | 247 | #include "target-utils/lub/ini.h"
#include "target-utils/lub/string.h"
#include "private.h"
CLISH_PLUGIN_INIT(lua)
{
lub_ini_t *ini;
char *conf = clish_plugin__get_conf(plugin);
if (conf) {
ini = lub_ini_new();
lub_ini_parse_str(ini, conf);
scripts_path =
lub_string_dup(lub_ini_find(ini, LUA_SCRIPTS_DIR)... | 12,243 |
https://github.com/lucafavatella/otp/blob/master/erts/etc/win32/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,017 | otp | lucafavatella | Makefile | Code | 216 | 776 | #
# %CopyrightBegin%
#
# Copyright Ericsson AB 1996-2012. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 42,075 |
https://github.com/petermucha/spot-css/blob/master/test/sass/input/private/register/register.error.no-component.sass | Github Open Source | Open Source | MIT | 2,020 | spot-css | petermucha | Sass | Code | 15 | 31 | @import "./src/spot-css"
// try to use it outside of component (no selector is present)
+register
| 49,666 |
https://github.com/tisnik/go-fedora/blob/master/benchmarks/mandelbrot/go-linewise/mandelbrot.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | go-fedora | tisnik | Go | Code | 266 | 833 | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func writeImage(width uint, height uint, image []byte) {
w := bufio.NewWriter(os.Stdout)
defer w.Flush()
fmt.Fprintln(w, "P3")
fmt.Fprintf(w, "%d %d\n", width, height)
fmt.Fprintln(w, "255")
for i := 0; i < len(image); {
r := image[i]
i++
g := ima... | 43,098 |
https://github.com/tcampbell3/Black-Lives-Matter-Lethal-Force/blob/master/Code/Appendix - County dataset.do | Github Open Source | Open Source | MIT | 2,021 | Black-Lives-Matter-Lethal-Force | tcampbell3 | null | Spoken | 611 | 1,748 | clear all
tempfile temp
tempvar tframe
* Backbone
use "Data\Geography\county_adjacency2010.dta", clear
destring fipscounty, g(fips)
split countyname, parse(", ")
drop if inlist(countyname2,"PR","VI","MP","AS","GU")
keep fips
gduplicates drop
* Import county populatino
cap frame drop `tframe'
frame create `tframe'
fra... | 46,548 |
https://github.com/miroadamy/language-matrix/blob/master/javascript-npm/if/if.js | Github Open Source | Open Source | MIT | 2,022 | language-matrix | miroadamy | JavaScript | Code | 60 | 117 |
let a = 10
let b = null;
if (a < 5) { //accept truthiness
b = a + 10;
} else if (a > 5 && a < 10) {
b = a + 20
} else {
b = a + 40;
}
console.log(b);
const list = [1,2,3]
let status;
if (list) {
status = "Approved";
}
console.log(status);
| 12,474 |
https://github.com/tvdias/meotv/blob/master/src/smali_classes3/io/reactivex/internal/operators/mixed/FlowableConcatMapCompletable$ConcatMapCompletableObserver.smali | Github Open Source | Open Source | MIT | 2,020 | meotv | tvdias | Smali | Code | 1,082 | 8,468 | .class final Lio/reactivex/internal/operators/mixed/FlowableConcatMapCompletable$ConcatMapCompletableObserver;
.super Ljava/util/concurrent/atomic/AtomicInteger;
.source "FlowableConcatMapCompletable.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lio/reactivex/disposables/Disposable;
# ... | 28,280 |
https://github.com/Benn-Co/refactored-broccoli/blob/master/rebro/src/java/org/netlib/lapack/Ieeeck.java | Github Open Source | Open Source | MIT | null | refactored-broccoli | Benn-Co | Java | Code | 21 | 51 | package org.netlib.lapack;
public final class Ieeeck {
public static int ieeeck(int i, float f, float f1) {
return 1;
}
}
| 14,928 |
https://github.com/shintav12/miaureviews_cms/blob/master/app/Models/Frebie.php | Github Open Source | Open Source | MIT | 2,019 | miaureviews_cms | shintav12 | PHP | Code | 13 | 35 | <?php
namespace App\Models;
class Frebie extends BaseModel
{
protected $table = "frebies";
}
| 3,538 |
https://github.com/letamhot/hueCIT/blob/master/resources/views/layouts/home.blade.php | Github Open Source | Open Source | MIT | null | hueCIT | letamhot | PHP | Code | 1,425 | 6,099 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cổng Thông Tin Thành Phố Huế</title>
<!-- add icon link -->
<link rel="icon" href="{{ asset('img/b1.png') }}" type="image/x-icon">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script ... | 29,963 |
https://github.com/Hengle/PLUGS/blob/master/Development/UnityApp2/Assets/Plugins/DemoSceneAssets/Materials/gyro_droid-15 - Default.mat.meta | Github Open Source | Open Source | MIT | 2,018 | PLUGS | Hengle | Unity3D Asset | Code | 4 | 28 | fileFormatVersion: 2
guid: a3d0c0442211fc4419f709e261f58633
| 25,454 |
https://github.com/zhengzhou001/chuxiProject/blob/master/cas-overlay-template-5.3/src/main/java/com/xinan/casServer/config/CustomAuthenticationConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | chuxiProject | zhengzhou001 | Java | Code | 108 | 665 | package com.xinan.casServer.config;
import com.xinan.casServer.CustomerHandler;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlan;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlanConfigurer;
import org.apereo.cas.authentication.AuthenticationHandler;
import org.apereo.cas.authe... | 46,925 |
https://github.com/MILE-IISc/CRNN/blob/master/data_generator.py | Github Open Source | Open Source | MIT | null | CRNN | MILE-IISc | Python | Code | 482 | 1,922 | import os
import cv2
import numpy as np
import linecache
import abc
import tensorflow.keras
class Generator(tensorflow.keras.utils.Sequence):
__metaclass__ = abc.ABCMeta
def __init__(self, base_dir, annotation_file, batch_size, img_size, nb_channels, timesteps, label_len, characters_file, shuffle=True):
... | 54,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.