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/OscarLlamas6/tytusx/blob/master/20211SVAC/G08/CodigoFuente/src/app/Estructuras/Xquery/DeclaracionXquery.ts | Github Open Source | Open Source | MIT | 2,021 | tytusx | OscarLlamas6 | TypeScript | Code | 135 | 513 | import { ParamType, TipoDeclaracionXquery } from "../tipificacion";
import { SingleExpresion } from "./SingleExpresion";
//Clases para declaraciones de variables
export class DeclaracionXquery{
Tipo:TipoDeclaracionXquery;
Valor:Object;
constructor(Tipo:TipoDeclaracionXquery, Valor:Object){
this.Tip... | 8,268 |
https://github.com/crazycga/PiBorgSharp/blob/master/original_src/ThunderBorg/tbReadBattery.py | Github Open Source | Open Source | MIT | 2,021 | PiBorgSharp | crazycga | Python | Code | 189 | 432 | #!/usr/bin/env python
# coding: latin-1
# Import the libraries we need
import ThunderBorg
import time
import sys
# Setup the ThunderBorg
global TB
TB = ThunderBorg.ThunderBorg() # Create a new ThunderBorg object
#TB.i2cAddress = 0x15 # Uncomment and change the value if you have changed the board address
TB... | 9,555 |
https://github.com/oggy/bulldog/blob/master/lib/bulldog/missing_file.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,011 | bulldog | oggy | Ruby | Code | 30 | 109 | module Bulldog
class MissingFile
def initialize(options={})
@attachment_type = attachment_type
@file_name = options[:file_name] || 'missing-file'
@content_type = options[:content_type]
@path = options[:path] || '/dev/null'
end
attr_reader :attachment_type, :file_name, :content_typ... | 33,261 |
https://github.com/1-Yuriy/yii/blob/master/migrations/m210218_173649_taskListTable.php | Github Open Source | Open Source | BSD-3-Clause | null | yii | 1-Yuriy | PHP | Code | 91 | 334 | <?php
use yii\db\Migration;
/**
* Class m210218_173649_taskListTable
*/
class m210218_173649_taskListTable extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('task_list', [
'id' => $this->primaryKey(),
'title' => $this->stri... | 27,475 |
https://github.com/ericcf/saturn/blob/master/spec/views/site_statistics/index.html_spec.rb | Github Open Source | Open Source | MIT | 2,011 | saturn | ericcf | Ruby | Code | 64 | 234 | require 'spec_helper'
describe "site_statistics/index.html" do
let(:now) { DateTime.now }
before(:each) do
mock_section = stub_model(Section, :title => "Section", :updated_at => now)
mock_assignment = stub_model(Assignment, :updated_at => now)
mock_assignment.stub_chain("weekly_schedule.section") { m... | 31,855 |
https://github.com/dbones-labs/pipes/blob/master/src/Pipes/Next.cs | Github Open Source | Open Source | Apache-2.0 | null | pipes | dbones-labs | C# | Code | 40 | 103 | namespace Pipes
{
using System.Threading.Tasks;
/// <summary>
/// Calls the next action in the chain.
/// </summary>
/// <typeparam name="T"><see cref="T"/></typeparam>
/// <param name="context">the context which is passed between the actions</param>
/// <returns></returns>
public dele... | 48,803 |
https://github.com/JulianWielga/nussknacker/blob/master/interpreter/src/test/scala/pl/touk/nussknacker/engine/util/service/query/ServiceQuerySpec.scala | Github Open Source | Open Source | Apache-2.0 | null | nussknacker | JulianWielga | Scala | Code | 478 | 1,919 | package pl.touk.nussknacker.engine.util.service.query
import com.typesafe.config.ConfigFactory
import org.scalatest.{FlatSpec, Matchers}
import pl.touk.nussknacker.engine.api.context.{ProcessCompilationError, ValidationContext}
import pl.touk.nussknacker.engine.api.context.transformation.{NodeDependencyValue, SingleIn... | 27,284 |
https://github.com/nikhil-sakhamuri/core/blob/master/test/mock/application/functions/init/MockAppOne.sol | Github Open Source | Open Source | MIT | 2,019 | core | nikhil-sakhamuri | Solidity | Code | 27 | 89 | pragma solidity ^0.4.23;
library MockAppOne {
function funcOneAppOne() public pure returns (bytes4) {
return bytes4(0x65096456);
}
function funcTwoAppOne() public pure returns (bytes4) {
return bytes4(0xc77e14f6);
}
}
| 26,007 |
https://github.com/fireflysvet/vividus/blob/master/vividus-plugin-web-app/src/test/java/org/vividus/ui/web/action/search/ElementSearchActionTests.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | vividus | fireflysvet | Java | Code | 1,106 | 6,297 | /*
* Copyright 2019-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 35,219 |
https://github.com/It4innovations/hyperqueue/blob/master/crates/hyperqueue/src/stream/mod.rs | Github Open Source | Open Source | MIT | 2,023 | hyperqueue | It4innovations | Rust | Code | 6 | 11 | pub mod reader;
pub mod server;
| 6,786 |
https://github.com/hackur/traquer/blob/master/public/lib/storage.js | Github Open Source | Open Source | MIT | 2,016 | traquer | hackur | JavaScript | Code | 836 | 3,252 | "use strict";
Traquer.Storage = function(){
if (!(this instanceof Traquer.Storage)) {
return new Traquer.Storage();
}
this.traquer = Traquer.getInstance();
this.lzw = new Traquer.Lzw();
this.unit = function(){
var loc = JSON.stringify(window.location);
loc = JSON.pa... | 16,067 |
https://github.com/CLOSER-Cohorts/archivist/blob/master/db/migrate/20161121112227_add_not_null_to_code_list_label.rb | Github Open Source | Open Source | MIT | 2,023 | archivist | CLOSER-Cohorts | Ruby | Code | 12 | 45 | class AddNotNullToCodeListLabel < ActiveRecord::Migration[5.0]
def change
change_column_null :code_lists, :label, false
end
end
| 30,760 |
https://github.com/thepiratebear/x2_applications/blob/master/cnnmethod/test/test.bzl | Github Open Source | Open Source | Apache-2.0 | 2,020 | x2_applications | thepiratebear | Starlark | Code | 22 | 99 | def cnnmethod_test(name, case):
native.cc_test(
name = name,
deps = [":cnnmethod", "@googletest//:gtest", "@vision_type//:vision_type", "@opencv_aarch64//:opencv_aarch64"],
srcs = [":test_src"] + case,
includes = ["test"],
)
| 54,023 |
https://github.com/moayyaed/ewelink-web-ui/blob/master/client/src/app/services/auth.service.ts | Github Open Source | Open Source | MIT | 2,021 | ewelink-web-ui | moayyaed | TypeScript | Code | 78 | 233 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
import AuthLogin from '../models/authLogin';
import { DataLogin } from '../models/data_login';
import { tap } from 'rxjs/operators... | 50,652 |
https://github.com/paritytech/polkassembly/blob/master/auth-server/src/schema/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | polkassembly | paritytech | TypeScript | Code | 267 | 1,027 | // Copyright 2019-2020 @paritytech/polkassembly authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { gql } from 'apollo-server-express';
import addressLinkConfirm from './mutation/addressLinkConfirm';
import ad... | 2,717 |
https://github.com/zeesh49/tutorials/blob/master/java-lite/src/main/java/app/services/ArticleService.java | Github Open Source | Open Source | MIT | 2,022 | tutorials | zeesh49 | Java | Code | 16 | 54 | package app.services;
import java.util.List;
import app.models.Article;
public interface ArticleService {
List<Article> getArticles();
Article search(String keyword);
}
| 13,198 |
https://github.com/LongJohnCoder/geppetto/blob/master/src/lib/definitionHelpers.ts | Github Open Source | Open Source | MIT | 2,021 | geppetto | LongJohnCoder | TypeScript | Code | 2,728 | 7,798 | import {
ControlDefinition,
FolderDefinition,
ImageDefinition,
ItemSelection,
MutationVector,
ShapeDefinition,
SpriteDefinition,
Vec2,
} from "./types";
import {
isControlDefinition,
isMutationVector,
isShapeDefinition,
visit,
} from "./visit";
export const renameKey = <T extends Record<string,... | 3,075 |
https://github.com/Litres/FB3Editor/blob/master/Frontend/ext/classic/theme-base/sass/src/resizer/Resizer.scss | Github Open Source | Open Source | BSD-2-Clause | 2,023 | FB3Editor | Litres | SCSS | Code | 20 | 86 | // Elements wrapped by a resizer must be sized using border box sizing
.#{$prefix}resizable-wrapped {
box-sizing:border-box;
-moz-box-sizing:border-box;
-ms-box-sizing:border-box;
-webkit-box-sizing:border-box;
} | 13,338 |
https://github.com/HugoMago10/adivina_Numero_PHP/blob/master/juego.js | Github Open Source | Open Source | Apache-2.0 | null | adivina_Numero_PHP | HugoMago10 | JavaScript | Code | 165 | 627 | $(document).ready(function () {
$('#btnRe').attr("disabled", true);
cargaJuego();
function cargaJuego(){
var action = 'logica';
$.ajax({
type: 'post',
url: 'juego.php',
data: {action},
success: function(data){
logica (dat... | 45,557 |
https://github.com/petitg1987/urchinEngine/blob/master/3dEngine/src/api/setup/GraphicService.cpp | Github Open Source | Open Source | BSL-1.0 | 2,022 | urchinEngine | petitg1987 | C++ | Code | 395 | 1,678 | #include <UrchinCommon.h>
#include <api/setup/GraphicService.h>
#define VMA_IMPLEMENTATION
#include <libs/vma/vk_mem_alloc.h>
#include <api/setup/handler/QueueHandler.h>
using namespace urchin;
namespace urchin {
//static
bool GraphicService::useUniqueSurface = false;
VkInstance GraphicService::vkInstanc... | 21,601 |
https://github.com/kusumachalasani/iter8-istio/blob/master/test/kubernetes.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | iter8-istio | kusumachalasani | Go | Code | 339 | 1,050 | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License ... | 51,653 |
https://github.com/roboticslibrary/coin/blob/master/include/Inventor/fields/SFNodeAndEngine.tpl | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, GPL-1.0-or-later, LGPL-2.0-or-later | 2,021 | coin | roboticslibrary | null | Spoken | 318 | 645 | //$ TEMPLATE SFNodeAndEngine(_TYPENAME_, _Typename_)
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | 47,681 |
https://github.com/dlsniper/piCamera/blob/master/regionOfIntrest.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | piCamera | dlsniper | Go | Code | 143 | 327 | //Copyright (c) 2017, Technomancers. All rights reserved.
//Use of this source code is governed by a BSD-style
//license that can be found in the LICENSE file.
package piCamera
import (
"fmt"
)
//RegionOfIntrest is used to set the cameras area to be used as the source.
type RegionOfIntrest struct {
tlX float32
tl... | 20,466 |
https://github.com/googleinterns/differential-fuzzing-2020/blob/master/yaml_differential_fuzzing/yaml_fuzzing_tests/libyaml_wrapper_tests/code/test_libyaml_wrapper_check.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | differential-fuzzing-2020 | googleinterns | C++ | Code | 1,132 | 3,954 | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 23,800 |
https://github.com/pascal-the-elf/AnonySend/blob/master/sw.js | Github Open Source | Open Source | MIT | 2,021 | AnonySend | pascal-the-elf | JavaScript | Code | 32 | 100 | self.addEventListener('install', event => {
console.log('[Service Worker] Service Worker Loaded', event);
});
self.addEventListener('fetch', event => {
event.respondWith(async function() {
const cachedResponse = await caches.match(event.request);
if (cachedResponse) return cachedResponse;
... | 37,857 |
https://github.com/Fishfaceeast/nemo/blob/master/htdocs/app/Http/Controllers/UserController.php | Github Open Source | Open Source | MIT | 2,018 | nemo | Fishfaceeast | PHP | Code | 183 | 625 | <?php
/**
* Created by PhpStorm.
* User: yuqian
* Date: 16/7/27
* Time: 下午9:44
*/
namespace App\Http\Controllers;
use App\Basic;
use App\Detail;
use App\About;
use App\Target;
use App\Refer;
use App\User;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Repositorie... | 28,381 |
https://github.com/drusellers/chronos/blob/master/chronos-api/src/test/java/org/ds/chronos/api/DurationTest.java | Github Open Source | Open Source | MIT | 2,020 | chronos | drusellers | Java | Code | 422 | 1,380 | package org.ds.chronos.api;
import java.util.Calendar;
import java.util.Date;
import org.ds.chronos.api.ChronosException;
import org.ds.chronos.support.TestBase;
import org.ds.chronos.util.Duration;
import org.junit.Assert;
import org.junit.Test;
public class DurationTest extends TestBase {
@Test
public void si... | 12,131 |
https://github.com/athenagroup/brxm/blob/master/search-service/api/src/main/java/org/onehippo/cms7/services/search/query/reflect/StringQueryVisitor.java | Github Open Source | Open Source | Apache-2.0 | null | brxm | athenagroup | Java | Code | 297 | 976 | /*
* Copyright 2012-2013 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 45,089 |
https://github.com/dskhudia/FBGEMM/blob/master/bench/DepthwiseBenchmark.cc | Github Open Source | Open Source | BSD-3-Clause | 2,019 | FBGEMM | dskhudia | C++ | Code | 1,356 | 3,614 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <v... | 32,942 |
https://github.com/rip-projects/node-mon/blob/master/controllers/index.js | Github Open Source | Open Source | MIT | 2,016 | node-mon | rip-projects | JavaScript | Code | 53 | 152 | var fs = require('fs');
exports = module.exports = function(app) {
this.instances = {};
var files = fs.readdirSync('./controllers');
for(var i in files) {
var f = files[i].split('.');
if (files[i] != 'index.js' && f[1] == 'js' && !f[0].match(/_controller$/)) {
var Controller =... | 9,739 |
https://github.com/epiphany-platform/m-aws-basic-infrastructure/blob/master/cmd/common.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | m-aws-basic-infrastructure | epiphany-platform | Go | Code | 567 | 2,204 | package cmd
import (
"encoding/json"
"fmt"
"io/ioutil"
"path/filepath"
awsbi "github.com/epiphany-platform/e-structures/awsbi/v0"
st "github.com/epiphany-platform/e-structures/state/v0"
"github.com/google/go-cmp/cmp"
"github.com/jinzhu/copier"
terra "github.com/mkyc/go-terraform"
)
type ZeroLogger struct{}
... | 40,484 |
https://github.com/biosan/hippo/blob/master/react/src/index.js | Github Open Source | Open Source | MIT | null | hippo | biosan | JavaScript | Code | 87 | 251 | // >>> React stuff...
import React from 'react';
import ReactDOM from 'react-dom';
// >>> Style
// import 'tailwindcss/dist/base.min.css';
// import 'tailwindcss/dist/tailwind.min.css';
// import 'tailwindcss/dist/utilities.min.css';
// import 'tailwindcss/dist/components.css';
import 'marx-css/css/marx.min.css';
impo... | 777 |
https://github.com/dmatlack/moridin/blob/master/kernel/kernel/init.c | Github Open Source | Open Source | FSFAP | 2,021 | moridin | dmatlack | C | Code | 330 | 1,083 | /**
* @file kernel/exec.c
*
* @brief Bootstrap user space by setting up and running init.
*/
#include <kernel/init.h>
#include <mm/kmalloc.h>
#include <kernel/loader.h>
#include <kernel/proc.h>
#include <kernel/stack.h>
#include <kernel/test.h>
#include <kernel/sched.h>
#include <arch/reg.h>
#include <arch/cpu.h>
... | 48,917 |
https://github.com/polokobe/the-nature-of-code-raphael/blob/master/chp03_oscillation/NOC_3_04_PolarToCartesian/bundle.js | Github Open Source | Open Source | MIT | 2,014 | the-nature-of-code-raphael | polokobe | JavaScript | Code | 124 | 500 | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... | 46,216 |
https://github.com/kkysen/Subway/blob/master/src/main/java/sen/khyber/util/collections/immutable/Immutable.java | Github Open Source | Open Source | MIT | null | Subway | kkysen | Java | Code | 29 | 80 | package sen.khyber.util.collections.immutable;
/**
* Created by Khyber Sen on 2/11/2018.
*
* @author Khyber Sen
*/
public interface Immutable {
static UnsupportedOperationException uoe() {
return new UnsupportedOperationException();
}
} | 7,169 |
https://github.com/QueenField/PU-MSP430/blob/master/rtl/verilog/core/main/msp430_frontend.sv | Github Open Source | Open Source | MIT | 2,022 | PU-MSP430 | QueenField | null | Spoken | 3,830 | 13,496 | ////////////////////////////////////////////////////////////////////////////////
// __ _ _ _ //
// / _(_) | | | | //
// __ _ _ _ ___ ___ _ __ | |_ _ ___| | __| | ... | 4,839 |
https://github.com/erpmaroc/Prestashop-Like-2/blob/master/src/MicroweberPackages/Product/Observers/ProductObserver.php | Github Open Source | Open Source | MIT | null | Prestashop-Like-2 | erpmaroc | PHP | Code | 209 | 776 | <?php
/**
* Created by PhpStorm.
* Page: Bojidar
* Date: 8/19/2020
* Time: 2:53 PM
*/
namespace depexorPackages\Product\Observers;
use depexorPackages\Product\Models\Product;
use depexorPackages\Product\Models\ProductPrice;
use depexorPackages\Product\Models\ProductSpecialPrice;
class ProductObserver
{
prot... | 24,930 |
https://github.com/sikmir/nur-packages/blob/master/pkgs/suckless/ff-tools/default.nix | Github Open Source | Open Source | MIT | 2,020 | nur-packages | sikmir | null | Spoken | 74 | 267 | { lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ff-tools";
version = "2019-06-08";
src = fetchFromGitHub {
owner = "sirjofri";
repo = pname;
rev = "ca02af149a0915caae2c4b8de39baac21d3e596b";
hash = "sha256-V++8FI8u7N9ALDjoAyd/wD7vg/43E9D/wuwwKiB1NfQ=";
};
makeFlags = [ ... | 35,706 |
https://github.com/creed-us/tModLoader/blob/master/patches/Terraria/Terraria/Initializers/LaunchInitializer.cs.patch | Github Open Source | Open Source | MIT | 2,019 | tModLoader | creed-us | null | Spoken | 33 | 136 | --- src/decompiled/Terraria/Initializers/LaunchInitializer.cs
+++ src/Terraria/Terraria/Initializers/LaunchInitializer.cs
@@ -9,6 +_,12 @@
{
public static void LoadParameters(Main game) {
LoadSharedParameters(game);
+
+ if (Main.dedServ) { // #if SERVER
+ LoadServerParameters(game);
+ return;
+ }
+ ... | 48,594 |
https://github.com/JohnTitor/tarpaulin/blob/master/tests/data/arrays/src/lib.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | tarpaulin | JohnTitor | Rust | Code | 63 | 179 | #![allow(dead_code)]
fn print_length(x: &[i32]) {
println!("{}", x.len());
}
#[test]
fn simple_creation() {
// Create arrays and use slices with some line breaks dotted around
// to make sure no lines are marked as false positives
let x: [i32; 4] = [1,2,3,4];
print_length(
&x[0..2]
... | 38,730 |
https://github.com/mwernimont/repgen/blob/master/tests/testthat/test-utils-time.R | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain-disclaimer | 2,017 | repgen | mwernimont | R | Code | 452 | 2,558 | context("utils-time tests")
wd <- getwd()
setwd(dir = tempdir())
test_that('flexibleTimeParse can parse dates with UTC', {
time_str <- "2013-10-02T08:00:00.000Z"
timezone <- "Etc/GMT+6"
parsed_time <- flexibleTimeParse(time_str, timezone)
expect_is(parsed_time, "POSIXct")
expect_true(hour(parsed_time) ==... | 25,395 |
https://github.com/Alpine-DAV/ascent/blob/master/src/libs/ascent/runtimes/ascent_vtkh_data_adapter.cpp | Github Open Source | Open Source | BSD-3-Clause, Zlib | 2,023 | ascent | Alpine-DAV | C++ | Code | 5,520 | 23,690 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
// Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
// other details. No copyright assignment is required to contribute to Ascent.
//~~~~... | 5,447 |
https://github.com/swa-ds/aoc-2020/blob/master/day23/groovy/JeyP91/solution.groovy | Github Open Source | Open Source | MIT | 2,021 | aoc-2020 | swa-ds | Groovy | Code | 507 | 1,516 | testPart1()
testPart2()
solve()
static void solve() {
// tag::splitInput[]
ArrayList<Integer> input = "523764819".split("").collect{Integer.parseInt(it)}
println("Solution Part 1: " + solvePart1(input, 100))
println("Solution Part 2: " + solvePart2(input, 10000000, 1000000))
// end::splitInput[]
}
... | 31,651 |
https://github.com/arielgarbini/facturando-tdp/blob/master/app/Repositories/CajaEspecialRepository.php | Github Open Source | Open Source | MIT | null | facturando-tdp | arielgarbini | PHP | Code | 19 | 68 | <?php
namespace App\Repositories;
use App\CajaEspecial;
class CajaEspecialRepository extends AbstractRepository
{
function __construct(CajaEspecial $model)
{
$this->model = $model;
}
} | 8,750 |
https://github.com/ICT4H/dcs-web/blob/master/datawinners/media/javascript/project/reminders.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | dcs-web | ICT4H | JavaScript | Code | 349 | 1,316 | $(document).ready(function() {
var project_id = $('#project_id').html();
function reminder(projectName, message, beforeDay, afterDay, reminderMode, ownerViewModel, targetDataSenders) {
this.projectName = projectName;
this.beforeDay = ko.observable(beforeDay);
this.afterDay = ko.observab... | 1,115 |
https://github.com/joydascsepuc/diagnostic-center-management-system/blob/master/application/controllers/Pages.php | Github Open Source | Open Source | MIT | null | diagnostic-center-management-system | joydascsepuc | PHP | Code | 27 | 185 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php
class Pages extends CI_Controller{
public function index(){
$this->session->unset_userdata('logged_in');
$this->session->unset_userdata('user_id');
$this->session->unset_userdata('admintype');
$this->session->unset_userd... | 19,170 |
https://github.com/larsrh/purely-experimental/blob/master/Typed_Evaluation_Examples.thy | Github Open Source | Open Source | MIT | 2,015 | purely-experimental | larsrh | Isabelle | Code | 102 | 438 | theory Typed_Evaluation_Examples
imports Typed_Evaluation
begin
typed_evaluation data = \<open>int\<close>
ML\<open>val x = 1\<close>
ML\<open>
Typed_Evaluation.eval_exn @{token data} \<open>1 + error "abc"\<close> @{context};
val res = Typed_Evaluation.eval @{token data} \<open>1 + x\<close> @{context};
@{as... | 799 |
https://github.com/pulumi/pulumi-alicloud/blob/master/sdk/nodejs/cen/getRouteServices.ts | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | pulumi-alicloud | pulumi | TypeScript | Code | 420 | 925 | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
import * as utilities from "../utilities";
... | 36,074 |
https://github.com/icloudkit/Pixel/blob/master/net.quduo.pixel/src/main/java/net/quduo/pixel/interfaces/android/common/ChatListAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | Pixel | icloudkit | Java | Code | 254 | 858 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... | 2,655 |
https://github.com/Eligaos/laravel-grp20/blob/master/node/server.js | Github Open Source | Open Source | MIT | 2,015 | laravel-grp20 | Eligaos | JavaScript | Code | 365 | 1,370 | var app = require('express')();
var http = require('http');
var io = require('socket.io')(http);
var gameMod = require('./gameModel');
var port = 8080;
//start http
var server = http.createServer(function (req, res) {
});
var io = io.listen(server, {
log: false,
agent: false,
origins: '*:*'
// 'transp... | 10,237 |
https://github.com/Pearson-Higher-Ed/elements-sdk/blob/master/src/styles/elements/forms/_forms.scss | Github Open Source | Open Source | MIT | 2,023 | elements-sdk | Pearson-Higher-Ed | SCSS | Code | 43 | 204 | @import 'variables';
@import 'mixins';
%frm-fonts {
font-size: $form-font-size;
line-height: $form-line-height;
margin-bottom: 20px;
}
.pe-form {
.pe-form--name {
@extend %frm-fonts;
}
.pe-form--name-bold {
@extend %frm-fonts;
font-weight: $pe-label-bold;
}
.pe-form--error {
color: ... | 35,203 |
https://github.com/pavel-petrenko/vcpkg/blob/master/ports/cpprestsdk/portfile.cmake | Github Open Source | Open Source | MIT | 2,019 | vcpkg | pavel-petrenko | CMake | Code | 77 | 717 | vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/cpprestsdk
REF 122d09549201da5383321d870bed45ecb9e168c5
SHA512 c9ded33d3c67880e2471e479a38b40a14a9ff45d241e928b6339eca697b06ad621846260eca47b6b1b8a2bc9ab7bf4fea8d3e8e795cd430d8839beb530e16dd7
HEAD_REF master
PATCHES fix-find-openssl.p... | 12,168 |
https://github.com/Mario-td/Qt-Hand-Gesture-App/blob/master/main.cpp | Github Open Source | Open Source | MIT | 2,021 | Qt-Hand-Gesture-App | Mario-td | C++ | Code | 31 | 148 | #include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QFile file("stylesheet.qss");
file.open(QFile::ReadOnly);
QString styleSheet = QLatin1String(file.readAll());
qApp->setStyleSheet(styleSheet);
MainWindow window;
window.setWind... | 11,717 |
https://github.com/htrahddis-hub/DSA-Together-HacktoberFest/blob/master/matrix/CommonElements.py | Github Open Source | Open Source | MIT | 2,021 | DSA-Together-HacktoberFest | htrahddis-hub | Python | Code | 135 | 324 | # A Program to prints common element in all rows of matrix
# https://www.geeksforgeeks.org/common-elements-in-all-rows-of-a-given-matrix/
M = 4
N = 5
def printCommonElements(mat):
mp = dict()
for j in range(N):
mp[mat[0][j]] = 1
# traverse the matrix
for i in range(1, M):
for j in range(N):
# If el... | 16,580 |
https://github.com/zilbermanor/mlrun/blob/master/examples/horovod-training.py | Github Open Source | Open Source | Apache-2.0 | null | mlrun | zilbermanor | Python | Code | 622 | 2,472 | from __future__ import print_function
import os
import sys
import json
import keras
from keras.applications.vgg16 import VGG16
from keras.datasets import mnist
from keras.models import Model
from keras.layers import Conv2D, MaxPooling2D, Dropout, Flatten, Dense, \
Activation, BatchNormalization
from keras.preproces... | 35,424 |
https://github.com/frsknalexis/spring-webflux-reactivo/blob/master/spring-reactor-thyme/src/main/java/com/dev/reactor/thyme/service/impl/FacturaServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | spring-webflux-reactivo | frsknalexis | Java | Code | 52 | 273 | package com.dev.reactor.thyme.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.dev.reactor.thyme.base.repository.BaseRepository;
import com.dev.reactor.thyme.base.servic... | 41,513 |
https://github.com/ArtemK123/PolytechWebThings/blob/master/src/Application/Queries/GetRuleByWorkspaceAndName/GetRuleByWorkspaceAndNameQuery.cs | Github Open Source | Open Source | MIT | 2,021 | PolytechWebThings | ArtemK123 | C# | Code | 51 | 148 | using Domain.Entities.Rule;
using MediatR;
namespace Application.Queries.GetRuleByWorkspaceAndName
{
public class GetRuleByWorkspaceAndNameQuery : IRequest<Rule>
{
public GetRuleByWorkspaceAndNameQuery(int workspaceId, string userEmail, string ruleName)
{
WorkspaceId = workspaceId;... | 20,098 |
https://github.com/bndly/bndly-commons/blob/master/schema/schema-activator/src/main/java/org/bndly/schema/activator/impl/SchemaRestBeanJAXBMessageClassProviderTracker.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | bndly-commons | bndly | Java | Code | 375 | 1,398 | package org.bndly.schema.activator.impl;
/*-
* #%L
* Schema Activator
* %%
* Copyright (C) 2013 - 2020 Cybercon GmbH
* %%
* 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
*
* ht... | 6,903 |
https://github.com/EddiePhi/Google-Book-Search/blob/master/routes/api/googlebooks.js | Github Open Source | Open Source | MIT | null | Google-Book-Search | EddiePhi | JavaScript | Code | 48 | 212 | // Referencing code from JoelDore: https://github.com/JoelDore/goog-reads/
// Referencing code from WK21-Act 05
// https://developers.google.com/books/docs/v1/using
const router = require('express').Router();
const axios = require('axios')
require('dotenv').config()
// route for '/api/googlebooks'
router.route('/:id'... | 99 |
https://github.com/ppi/1/blob/master/PPI/Test/Request/SessionTest.php | Github Open Source | Open Source | MIT | 2,012 | 1 | ppi | PHP | Code | 175 | 762 | <?php
/**
* Unit test for the PPI Request GetQuery
*
* @package Core
* @author Paul Dragoonis <dragoonis@php.net>
* @license http://opensource.org/licenses/mit-license.php MIT
* @link http://www.ppiframework.com
*/
namespace PPI\Test\Request;
use PPI\Request\Session;
class SessionTest extends \PHPUnit... | 21,506 |
https://github.com/tacaswell/bluesky-widgets/blob/master/bluesky_widgets/examples/qt_search.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | bluesky-widgets | tacaswell | Python | Code | 262 | 802 | """
Select some runs and click the button. Their IDs will be printed to the
terminal. In a real application, this could kick off data processing, export,
or visualization.
"""
from datetime import datetime
from bluesky_widgets.qt import Window
from bluesky_widgets.qt import gui_qt
from bluesky_widgets.components.searc... | 29,519 |
https://github.com/krugercoin-project/krugercoin0.6.3/blob/master/BuildDeps/deps/db/test/scr038/data/float_table.sql | Github Open Source | Open Source | MIT | 2,020 | krugercoin0.6.3 | krugercoin-project | SQL | Code | 10 | 27 |
CREATE DATABASE numismatics;
CREATE TABLE table1 (att_float FLOAT PRIMARY KEY); | 52,867 |
https://github.com/LionsGroup-NYU-ITP-FA18/311app/blob/master/src/client/components/CustomCard.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | 311app | LionsGroup-NYU-ITP-FA18 | JavaScript | Code | 346 | 1,268 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import Button from '@material-... | 12,137 |
https://github.com/MilleBo/Unima/blob/master/src/Testura.Mutation.Core/Execution/MutationDocumentExecutor.cs | Github Open Source | Open Source | MIT | 2,019 | Unima | MilleBo | C# | Code | 459 | 1,838 | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Abstractions;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using log4net;
using Testura.Mutation.Core.Config;
using Testura.Mutation.Core.Exceptions;
using Testura.Mutation.Core.Executi... | 39,184 |
https://github.com/Yohsi/zug/blob/master/zug/util.hpp | Github Open Source | Open Source | BSL-1.0 | 2,022 | zug | Yohsi | C++ | Code | 232 | 614 | //
// zug: transducers for C++
// Copyright (C) 2019 Juan Pedro Bolivar Puente
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
#include <zug/detail/inline_constexpr.hpp>
#include <zug/meta/di... | 10,881 |
https://github.com/matheusmr13/create-micro-react-app/blob/master/packages/cli/test/create-app.test.js | Github Open Source | Open Source | MIT | 2,022 | create-micro-react-app | matheusmr13 | JavaScript | Code | 179 | 531 | const dircompare = require('dir-compare');
const create = require('../scripts/create');
const { mkdir, rm } = require('../scripts/utils/fs');
const buildFolder = (testName, isOld) => `./test/__snapshots__/dist${isOld ? '' : '-new'}/${testName}`;
const testSnapshot = async (testName) => {
const newFolder = buildFol... | 44,174 |
https://github.com/stevegagnon/uact/blob/master/src/index.tsx | Github Open Source | Open Source | MIT | null | uact | stevegagnon | TypeScript | Code | 77 | 242 | import { render, useState, useEffect, createElement, useRef } from './core';
function Header({ n }) {
return <h1>{n}</h1>;
}
function Counter() {
const [count, setCount] = useState(0);
const ref = useRef(null);
const input = useRef(null);
useEffect(() => {
console.log(count, ref.current);
}, [count])... | 12,420 |
https://github.com/IgorNCosta14/Curso_JS_Udemy/blob/master/aula71/aula71_geradora_infinito.js | Github Open Source | Open Source | MIT | null | Curso_JS_Udemy | IgorNCosta14 | JavaScript | Code | 24 | 89 | // Geradora infinita
function* geradora2() {
let i = 0
while(true) {
yield i;
i++
}
}
const g2 = geradora2();
console.log(g2.next().value);
console.log(g2.next().value);
console.log(g2.next().value);
| 16,035 |
https://github.com/iTraceur/sockjs-channels/blob/master/examples/chat/chat/asgi.py | Github Open Source | Open Source | MIT | 2,022 | sockjs-channels | iTraceur | Python | Code | 98 | 310 | """
ASGI config for chat project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import g... | 10,142 |
https://github.com/comapi/comapi-sdk-js/blob/master/src/indexedDBOrphanedEventManager.ts | Github Open Source | Open Source | MIT | null | comapi-sdk-js | comapi | TypeScript | Code | 935 | 3,062 | import { injectable } from "inversify";
import {
IOrphanedEventManager,
IConversationMessageEvent,
} from "./interfaces";
interface IOrphanedEventInfo {
conversationId: string;
continuationToken: number;
}
/**
*
*/
interface IOrphanedEventContainer {
continuationToken: number;
orphanedEv... | 50,448 |
https://github.com/cms-sw/cmssw/blob/master/Alignment/CommonAlignmentProducer/python/ALCARECOTkAlCosmics0THLT_Output_cff.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | cmssw | cms-sw | Python | Code | 75 | 377 | # last update: $Date: 2010/03/16 17:08:51 $ by $Author: mussgill $
import FWCore.ParameterSet.Config as cms
# AlCaReco for track based alignment using Cosmic muon events
OutALCARECOTkAlCosmics0THLT_noDrop = cms.PSet(
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('pathALCARECOTkAlCosmicsCTF... | 2,449 |
https://github.com/JohannDumoulin/weguideyou_repo/blob/master/resources/views/pages/create_advertisement.blade.php | Github Open Source | Open Source | MIT | 2,020 | weguideyou_repo | JohannDumoulin | PHP | Code | 399 | 2,186 | @extends('app')
@section('title', 'Déposer une annonce')
@push('style')
<link rel="stylesheet" href="{{asset('css/app.css')}}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
@endpush
@section('attribute', 'create_advertisement')
@section('c... | 27,642 |
https://github.com/cmoski/corert/blob/master/src/System.Private.Interop/src/System/Runtime/InteropServices/InvalidComObjectException.cs | Github Open Source | Open Source | MIT | null | corert | cmoski | C# | Code | 137 | 380 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*=============================================================================
**
** Class: InvalidComObjectExcepti... | 13,383 |
https://github.com/oneteam-dev/oneteam-rte-kt/blob/master/js/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | oneteam-rte-kt | oneteam-dev | JavaScript | Code | 26 | 74 | import React from 'react';
import ReactDOM from 'react-dom';
import Editor from './editor';
import './index.styl';
import './content.styl';
ReactDOM.render((
<Editor ref={c => window.editor = c} />
), document.getElementById('app-root'));
| 26,451 |
https://github.com/THeAkAy/robe-react-ui/blob/master/src/chart/PieChart.jsx | Github Open Source | Open Source | MIT | 2,017 | robe-react-ui | THeAkAy | JavaScript | Code | 124 | 487 | import React, { PropTypes } from "react";
import { PieChart as Chart, Pie } from "recharts";
import BaseChart from "./BaseChart";
export default class PieChart extends BaseChart {
/**
* Properties of the component
*
* @static
*/
static propTypes: Map = {
...BaseChart.DEFAULT_PROP_... | 49,526 |
https://github.com/GenericBreakGlass/GenericBreakGlass-XACML/blob/master/src/com.sun.xacml/src/main/java/com/sun/xacml/Target.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | GenericBreakGlass-XACML | GenericBreakGlass | Java | Code | 1,488 | 3,828 |
/*
* @(#)Target.java
*
* Copyright 2003-2005 Sun Microsystems, Inc. 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. Redistribution of source code must retain the above copyright no... | 52,293 |
https://github.com/poonix/dhl_mei04/blob/master/app/Http/Controllers/Cms/Master_tcController.php | Github Open Source | Open Source | MIT | null | dhl_mei04 | poonix | PHP | Code | 238 | 1,008 | <?php
namespace App\Http\Controllers\Cms;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Model\Master_tc;
use Auth;
class Master_tcController extends Controller
{
public function __construct()
{
$this->middleware('logincheckcms');
}
public function... | 33,298 |
https://github.com/georgezeng/com.sourcecode.mall.admin.ui/blob/master/src/view/merchant/shop/application/commit-success.vue | Github Open Source | Open Source | MIT | 2,020 | com.sourcecode.mall.admin.ui | georgezeng | Vue | Code | 317 | 1,429 | <style>
.num {
background-image: url("../../../../assets/images/numbers-circle.png");
background-position: 85px 123px;
background-size: 140px 130px;
display: inline-block;
height: 30px;
width: 30px;
}
.tip {
color: #28A69A;
position: absolute;
}
.grayTip {
color: gray;
... | 7,489 |
https://github.com/shivaprasad87/regnlogin/blob/master/application/models/Registermodel.php | Github Open Source | Open Source | MIT | null | regnlogin | shivaprasad87 | PHP | Code | 24 | 91 | <?php
class Registermodel extends CI_Model
{
public function register($data)
{
$this->db->insert('user',$data);
return true;
}
public function login($data)
{
$this->db->insert('user',$data);
return true;
}
}
?> | 37,511 |
https://github.com/Chia-Network/climate-warehouse-ui/blob/master/src/store/validations/estimations.validation.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | climate-warehouse-ui | Chia-Network | JavaScript | Code | 75 | 250 | import * as yup from 'yup';
export const estimationSchema = yup.object({
id: yup.string().optional(),
creditingPeriodStart: yup
.date()
.typeError('Invalid Date')
.required('Required Field'),
creditingPeriodEnd: yup
.date()
.typeError('Invalid Date')
.min(
yup.ref('creditingPeriodSt... | 31,512 |
https://github.com/berkeley-dsc/stress/blob/master/process_data/moodIdsDict.scala | Github Open Source | Open Source | 0BSD | 2,015 | stress | berkeley-dsc | Scala | Code | 103 | 371 | // TO RUN WITH BIDMACH DO:
// $ /opt/BIDMach_1.0.0-full-linux-x86_64/bidmach utils.scala examples.scala
import scala.io.Source
val indir = "/home/anasrferreira/destress/moodids_dict.csv";
val src = Source.fromFile(indir).getLines()
val headerLine = src.take(1).next
// val header = headerLine.split(",")
var mainList... | 29,777 |
https://github.com/pocesar/apify-shared-js/blob/master/src/regexs.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | apify-shared-js | pocesar | JavaScript | Code | 271 | 1,446 | /**
* Email validation regexp adapted from https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address
* with our restriction that hostname must be a TLD! (will not match example@localhost)
*/
export const EMAIL_REGEX_STR = '[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?... | 54,024 |
https://github.com/Xzya/Hacker-News-iOS-Client/blob/master/HackerNews/CommentsOptionsComment.swift | Github Open Source | Open Source | MIT | 2,018 | Hacker-News-iOS-Client | Xzya | Swift | Code | 90 | 255 | //
// CommentsOptionsComment.swift
// HackerNews
//
// Created by Mihail Cristian Dumitru on 10/30/16.
// Copyright © 2016 Null. All rights reserved.
//
import Foundation
enum CommentsOptionsComment: OptionType {
case share
case copy
case openInBrowser
var title: String {
switch self {
... | 51,540 |
https://github.com/vicwer/leetcode/blob/master/53.cpp | Github Open Source | Open Source | MIT | null | leetcode | vicwer | C++ | Code | 55 | 135 | class Solution {
public:
int maxSubArray(vector<int>& nums) {
int res = INT_MIN;
int size = nums.size();
for(int i = 0; i < size; i++)
{
int cntMax = 0;
for(int j = i; j < size; j++)
{
cntMax += nums[j];
if(res < cnt... | 30,167 |
https://github.com/juristr/nx/blob/master/packages/next/src/generators/application/lib/add-linting.ts | Github Open Source | Open Source | MIT | 2,023 | nx | juristr | TypeScript | Code | 262 | 981 | import { Linter, lintProjectGenerator } from '@nx/linter';
import {
addDependenciesToPackageJson,
GeneratorCallback,
joinPathFragments,
runTasksInSerial,
Tree,
updateJson,
} from '@nx/devkit';
import {
extendReactEslintJson,
extraEslintDependencies,
} from '@nx/react/src/utils/lint';
import { Normalized... | 31,776 |
https://github.com/siy/reactive-toolbox/blob/master/async-io/src/test/java/org/reactivetoolbox/io/async/PromiseAllTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | reactive-toolbox | siy | Java | Code | 1,485 | 5,728 | /*
* Copyright (c) 2020 Sergiy Yevtushenko
*
* 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... | 22,799 |
https://github.com/chrisdunelm/google-api-dotnet-client/blob/master/Src/Generated/Google.Apis.Dns.v1/Google.Apis.Dns.v1.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | google-api-dotnet-client | chrisdunelm | C# | Code | 5,131 | 14,050 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the ... | 17,003 |
https://github.com/luelher/exproaqua/blob/master/exproaqua/lib/model/doctrine/sfPremiumPlugin/DevolticTable.class.php | Github Open Source | Open Source | MIT | 2,010 | exproaqua | luelher | PHP | Code | 7 | 22 | <?php
class DevolticTable extends PluginDevolticTable
{
}
| 42,764 |
https://github.com/tefra/pytuber/blob/master/pytuber/core/commands/cmd_list.py | Github Open Source | Open Source | MIT | 2,022 | pytuber | tefra | Python | Code | 87 | 292 | import click
from tabulate import tabulate
from pytuber.core import params
from pytuber.core.models import PlaylistManager
@click.command()
@click.option("--provider", type=params.ProviderParamType(), required=False)
def list(provider: str):
"""List playlists."""
kwargs = {"provider": provider} if provider ... | 1,748 |
https://github.com/vermaumakant/licexamguru/blob/master/app/Http/Controllers/SubjectController.php | Github Open Source | Open Source | MIT | null | licexamguru | vermaumakant | PHP | Code | 202 | 912 | <?php
namespace App\Http\Controllers;
use File;
use Carbon\Carbon;
use App\Models\Course;
use App\Models\Lesson;
use App\Models\Subject;
use Illuminate\Http\Request;
use App\Models\UserCourseMapping;
use App\Models\Video;
class SubjectController extends Controller
{
public function index($course_id = null) {
... | 31,160 |
https://github.com/open-devops/fabric8/blob/master/fabric8-maven-plugin/src/main/java/io/fabric8/maven/CreateEnvMojo.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | fabric8 | open-devops | Java | Code | 1,763 | 5,713 | /*
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You... | 49,673 |
https://github.com/lineageos-kaibo/android_external_libtextclassifier/blob/master/java/com/google/android/textclassifier/ActionsSuggestionsModel.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | android_external_libtextclassifier | lineageos-kaibo | Java | Code | 827 | 2,018 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... | 46,318 |
https://github.com/pikesley/shobaleader-one/blob/master/shobaleader-one/lib/performers/performer.py | Github Open Source | Open Source | MIT | null | shobaleader-one | pikesley | Python | Code | 47 | 149 | from abc import ABC
from lib.conf import config
class Performer(ABC):
"""Abstract Base Class for Performers."""
def __init__(self, **kwargs):
"""Construct."""
self.__dict__ = kwargs
self.infinite_looping = True
self.defaults = {"colour": config()["colours"]["orange"]}
de... | 32,954 |
https://github.com/hartl3y94/redexer/blob/master/reg-testing/hello-correct/smali/androidx/recyclerview/widget/DiffUtil$Callback.smali | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,021 | redexer | hartl3y94 | Smali | Code | 154 | 685 | .class public abstract Landroidx/recyclerview/widget/DiffUtil$Callback;
.super Ljava/lang/Object;
.source "DiffUtil.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/DiffUtil;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
acces... | 17,045 |
https://github.com/tiagogeraldi/geraldi-ecommerce/blob/master/app/views/admin/_form_buttons.html.slim | Github Open Source | Open Source | Apache-2.0 | 2,016 | geraldi-ecommerce | tiagogeraldi | null | Spoken | 24 | 100 | hr.line
.btn-group
= f.submit t('save'), class: 'btn btn-primary btn-lg'
= f.submit t('save_and_close'), class: 'btn btn-primary btn-lg'
= link_to t('cancel'), send("admin_#{@klass.to_s.downcase.pluralize}_path"), class: 'btn btn-default btn-lg'
| 43,467 |
https://github.com/DanPyDev/SudokuNeuralNetwork/blob/master/Server_Sudoku_ROI/ConvNet_Predict.py | Github Open Source | Open Source | CC0-1.0 | null | SudokuNeuralNetwork | DanPyDev | Python | Code | 10 | 43 | def predict_ConvNet(model, cells):
return model.predict(cells)
def predict_ConvSolve(model, labels):
return model.predict(labels) | 20,769 |
https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/util/LongPropertyMap.java | Github Open Source | Open Source | GPL-1.0-or-later, GPL-3.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference | 2,023 | ghidra | NationalSecurityAgency | Java | Code | 241 | 465 | /* ###
* IP: GHIDRA
*
* 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 writin... | 52,666 |
https://github.com/bigspotteddog/nexus-platform-plugin/blob/master/src/main/java/org/sonatype/nexus/ci/iq/PolicyEvaluationReportAction.groovy | Github Open Source | Open Source | Apache-2.0 | 2,021 | nexus-platform-plugin | bigspotteddog | Groovy | Code | 404 | 1,110 | /*
* Copyright (c) 2016-present Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/... | 18,785 |
https://github.com/3cL1p5e7/mapbox-gl-js/blob/master/src/style/style_layer/dline_style_layer.js | Github Open Source | Open Source | MIT, BSD-3-Clause, BSD-2-Clause | 2,017 | mapbox-gl-js | 3cL1p5e7 | JavaScript | Code | 25 | 85 | 'use strict';
const StyleLayer = require('../style_layer');
const DLineBucket = require('../../data/bucket/dline_bucket');
class DLineStyleLayer extends StyleLayer {
createBucket(options) {
return new DLineBucket(options);
}
}
module.exports = DLineStyleLayer;
| 18,903 |
https://github.com/sauravpkr/Nucleus/blob/master/src/mme-app/mmeStates/stateFactory.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | Nucleus | sauravpkr | C++ | Code | 184 | 1,570 |
/*
* Copyright 2019-present Infosys Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
/**************************************
* .cpp
* This is an auto generated file.
* Please do not edit this file.
* All edits to be made through template source file
* <TOP-DIR/scripts/SMCodeGen/templates/stateMachineTm... | 14,321 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.