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/serg-io/infuse.host/blob/master/src/splitFragments.js | Github Open Source | Open Source | MIT | 2,019 | infuse.host | serg-io | JavaScript | Code | 2,043 | 4,785 | import configs from './configs.js';
/**
* Takes an array of tag function names and returns a settings object that can be used to find tag
* functions in strings with template literals. The returned object is meant to be used by the
* `splitFragments` function.
*
* @function createTagSettings
* @param {(string[]|... | 38,887 |
https://github.com/sensortower/daterangepicker/blob/master/gulpfile.babel.js | Github Open Source | Open Source | MIT | 2,022 | daterangepicker | sensortower | JavaScript | Code | 44 | 188 | // generated using generator-gulp-webapp 1.0.3
const gulp = require('gulp');
const gulpLoadPlugins = require('gulp-load-plugins');
const requireDir = require('require-dir');
const del = require('del');
const $ = gulpLoadPlugins();
requireDir('./tasks');
gulp.task('clean', del.bind(null, ['.tmp', '.publish', 'dist'])... | 28,954 |
https://github.com/Maximilyanus29/rasteniya/blob/master/backend/views/provider/_form.php | Github Open Source | Open Source | BSD-3-Clause | null | rasteniya | Maximilyanus29 | PHP | Code | 113 | 449 | <?php
use kartik\select2\Select2;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Provider */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="provider-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'username')->textI... | 20,977 |
https://github.com/RedLucas/foundation-sites-6/blob/master/docs/assets/scss/_header.scss | Github Open Source | Open Source | MIT | 2,015 | foundation-sites-6 | RedLucas | SCSS | Code | 123 | 435 | // Styles specific to the layout of the docs are here.
.docs-header {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
max-width: none;
}
.docs-site-title {
font-size: 1rem;
font-weight: bold;
margin: 0;
display: inline-block;
margin-right: 1rem;
a {
color: $black;
&:hover {
color: $prim... | 36,337 |
https://github.com/randolphwong/mcsema/blob/master/llvm-3.5/test/CodeGen/X86/sse2-mul.ll | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mcsema | randolphwong | LLVM | Code | 65 | 162 | ; RUN: llc < %s -march=x86-64 -mcpu=core2 | FileCheck %s
define <4 x i32> @test1(<4 x i32> %x, <4 x i32> %y) {
%m = mul <4 x i32> %x, %y
ret <4 x i32> %m
; CHECK-LABEL: test1:
; CHECK: pshufd $49
; CHECK: pmuludq
; CHECK: pshufd $49
; CHECK: pmuludq
; CHECK: shufps $-120
; CHECK: pshufd $-40
; CHECK: ret
}
| 7,747 |
https://github.com/microsoft/reverse-proxy/blob/master/samples/ReverseProxy.HttpSysDelegation.Sample/SampleHttpSysServer/Program.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,023 | reverse-proxy | microsoft | C# | Code | 34 | 142 | using System.Diagnostics;
using Microsoft.AspNetCore.Server.HttpSys;
var builder = WebApplication.CreateBuilder(args);
Debug.Assert(OperatingSystem.IsWindows());
builder.WebHost.UseHttpSys(options =>
{
options.RequestQueueName = "SampleHttpSysServerQueue";
options.RequestQueueMode = RequestQueueMode.Create;
}... | 37,209 |
https://github.com/siyuyifang/lede-read/blob/master/src/main/java/com/lede/blockchain/common/service/impl/BaseCRUDServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | lede-read | siyuyifang | Java | Code | 93 | 424 | package com.lede.blockchain.common.service.impl;
import com.lede.blockchain.common.dao.CommonCRUDDao;
import com.lede.blockchain.common.pagination.PaginationInfo;
import com.lede.blockchain.common.pagination.PaginationList;
import com.lede.blockchain.common.service.CommonCRUDService;
import java.util.List;
import jav... | 41,942 |
https://github.com/anubhavsrivastava/leetcodeJS/blob/master/Medium/957 Prison Cells After N Days/prisonCellsAfterNDays.js | Github Open Source | Open Source | MIT | 2,021 | leetcodeJS | anubhavsrivastava | JavaScript | Code | 98 | 213 | /**
* @param {number[]} cells
* @param {number} N
* @return {number[]}
*/
var prisonAfterNDays = function (cells, N) {
let map = {};
if (N == 0) return cells;
N = N % 14 == 0 ? 14 : N % 14;
let step = [...cells]
for (let i = 0; i < N; i++) {
step = getNextStep(step);
map[step] ... | 44,517 |
https://github.com/ceres-solver/ceres-solver/blob/master/internal/ceres/line_search_minimizer.cc | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause | 2,023 | ceres-solver | ceres-solver | C++ | Code | 1,569 | 5,628 | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... | 1,043 |
https://github.com/wisn/py2many/blob/master/tests/cases/print.py | Github Open Source | Open Source | MIT | 2,021 | py2many | wisn | Python | Code | 6 | 26 | def main():
print(2)
print("b")
print(2, "b")
| 34,738 |
https://github.com/AWolan/cloud-commerce-spartacus-storefront/blob/master/projects/storefrontlib/src/lib/ui/components/form-components/item-counter/item-counter.component.scss | Github Open Source | Open Source | Apache-2.0 | 2,019 | cloud-commerce-spartacus-storefront | AWolan | SCSS | Code | 145 | 795 | @import 'theme';
@import 'functions';
@import 'mixins';
@import '~bootstrap/scss/button-group';
// cx-item-counter color variables
$cx-item-counter-border-color: 'light' !default;
$cx-item-counter-border: 1px solid !default;
$cx-item-counter-border-radius: 4px !default;
$cx-item-counter-value-border: 1px solid !defau... | 6,256 |
https://github.com/metodo100k/teste/blob/master/tsesse/colastrina-pv/js/whatsapp-co.js | Github Open Source | Open Source | MIT | 2,019 | teste | metodo100k | JavaScript | Code | 75 | 1,029 | var addID = document.getElementsByClassName("numberWhatsapp")[0];
addID.id="numberWhatsapp";
var wCookie = Cookies.get('numberWhatsappCookie');
if(wCookie){
var link = document.getElementById('numberWhatsapp');
link.href = wCookie;
}else{
var wNumber = new Array();
/*Amanda*/ wNumber[0] = "https://api.w... | 19,030 |
https://github.com/amandahp/poc-micro-frontend-webpack/blob/master/login/node_modules/@material-ui/icons/esm/ArrowBackIosRounded.js | Github Open Source | Open Source | MIT | 2,021 | poc-micro-frontend-webpack | amandahp | JavaScript | Code | 39 | 190 | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M10.88 2.88c-.48-.48-1.28-.48-1.76 0L.71 11.29c-.39.39-.39 1.02 0 1.41l8.41 8.41c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L3.54 ... | 19,910 |
https://github.com/o3de/o3de.org/blob/master/static/docs/api/frameworks/AzToolsFramework/class_az_tools_framework_1_1_view_bookmark_interface.js | Github Open Source | Open Source | Apache-2.0, MIT, CC-BY-4.0, LicenseRef-scancode-unknown-license-reference | 2,023 | o3de.org | o3de | JavaScript | Code | 30 | 309 | var class_az_tools_framework_1_1_view_bookmark_interface =
[
[ "LoadBookmarkAtIndex", "class_az_tools_framework_1_1_view_bookmark_interface.html#a6bed6bc5bbe9d0f36f288c40c3039b3f", null ],
[ "LoadLastKnownLocation", "class_az_tools_framework_1_1_view_bookmark_interface.html#a0ac1f1f0f8ed24963847fc3997ac0acb", n... | 56,345 |
https://github.com/LongerZrLong/cs107-FinalProject/blob/master/docs/doxygen/html/search/all_f.js | Github Open Source | Open Source | MIT | 2,020 | cs107-FinalProject | LongerZrLong | JavaScript | Code | 8 | 228 | var searchData=
[
['tan_5fbackward_64',['tan_backward',['../namespace_o_p.html#af93511ce6cc46c87439bd34bed01a83c',1,'OP']]],
['tan_5fforward_65',['tan_forward',['../namespace_o_p.html#a1c1a3c023b292540431f550f7517b8ca',1,'OP']]],
['tanh_5fbackward_66',['tanh_backward',['../namespace_o_p.html#a3111e41e02113f352f06... | 18,558 |
https://github.com/ShahinaSk/findMeClinic/blob/master/SchedulerService/src/main/java/com/stackroute/domain/Scheduler.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | findMeClinic | ShahinaSk | Java | Code | 33 | 139 | package com.stackroute.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import java.util.List;
import java.util.Map;
@AllArgsConstructor
@NoArgsConstructor
@Data
@RedisHa... | 1,985 |
https://github.com/cuijingqi/SqringBoot_Repair/blob/master/src/main/java/cui/repair/store/component/MyShiroRealm.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | SqringBoot_Repair | cuijingqi | Java | Code | 201 | 1,260 | package cui.repair.store.component;
import cui.repair.store.entity.LoginUserInfo;
import cui.repair.store.entity.SysPermission;
import cui.repair.store.entity.SysUser;
import cui.repair.store.service.SysService;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.Aut... | 1,291 |
https://github.com/epuce/web-bootcamp/blob/master/local-env-setup/src/Angular-project/web/src/app/app.reducers.ts | Github Open Source | Open Source | MIT | null | web-bootcamp | epuce | TypeScript | Code | 42 | 119 | import { combineReducers } from 'redux';
import { FluxStandardAction } from 'flux-standard-action';
export function requestReducer(state = [], action: FluxStandardAction<string, any>) {
switch (action.type) {
case 'REQUEST_SUCCESS':
return [
...action.payload
];
... | 30,931 |
https://github.com/shyoutarou/Exam-70-483_Gerenciar_fluxo/blob/master/Exemplos/1_Thread_Async/Thread_IsBackground/Thread_IsBackground/Program.cs | Github Open Source | Open Source | MIT | 2,020 | Exam-70-483_Gerenciar_fluxo | shyoutarou | C# | Code | 109 | 344 | using System;
using System.Diagnostics;
using System.Threading;
namespace Thread_IsBackground
{
class Program
{
static void Main(string[] args)
{
//Instantiate a thread
Thread myThread = new Thread(new ThreadStart(MyThreadMethod));
//by default Isbackgrount... | 33,924 |
https://github.com/chevah/github-hooks-server/blob/master/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | github-hooks-server | chevah | Makefile | Code | 74 | 291 | all: test
clean:
rm -rf build
env:
@if [ ! -d "build" ]; then virtualenv build; fi
deps: env
@build/bin/pip install -Ue '.[dev]' \
--index-url http://pypi.chevah.com/simple \
--trusted-host pypi.chevah.com
run:
@build/bin/python \
scripts/start-chevah-github-hooks.py \
test/config.ini \
--port tcp... | 3,366 |
https://github.com/sharpedavid/moh-hnclient-v2-PoC/blob/master/hnclient-v2/src/main/java/ca/bc/gov/hlth/hnclientv2/auth/ClientAuthenticationBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | moh-hnclient-v2-PoC | sharpedavid | Java | Code | 11 | 56 | package ca.bc.gov.hlth.hnclientv2.auth;
import com.nimbusds.oauth2.sdk.auth.ClientAuthentication;
public interface ClientAuthenticationBuilder {
ClientAuthentication build();
}
| 35,467 |
https://github.com/noobymatze/crusader/blob/master/src/Reporting/Result.hs | Github Open Source | Open Source | BSD-3-Clause | null | crusader | noobymatze | Haskell | Code | 417 | 900 | module Reporting.Result
( Result (..)
, Answer (..)
, ok
, throw
, toEither
) where
import qualified Reporting.OneOrMore as OneOrMore
-- RESULT
data Result info warning error value
= Result
{ _info :: [info]
, _warnings :: [warning]
, _answer :: Answer (OneOrMore.OneOrMore error) ... | 8,443 |
https://github.com/FlymeOS5/device-cancro/blob/master/core-libart.jar.out/smali/org/apache/harmony/security/x509/tsp/TimeStampReq.smali | Github Open Source | Open Source | Apache-2.0 | null | device-cancro | FlymeOS5 | Smali | Code | 795 | 5,176 | .class public Lorg/apache/harmony/security/x509/tsp/TimeStampReq;
.super Ljava/lang/Object;
.source "TimeStampReq.java"
# static fields
.field public static final ASN1:Lorg/apache/harmony/security/asn1/ASN1Sequence;
# instance fields
.field private final certReq:Ljava/lang/Boolean;
.field private encoding:[B
.fie... | 26,176 |
https://github.com/slead/Ignite/blob/master/app/datatables/event_datatable.rb | Github Open Source | Open Source | MIT | 2,018 | Ignite | slead | Ruby | Code | 126 | 406 | class EventDatatable < AjaxDatatablesRails::Base
def_delegators :@view, :link_to, :edit_event_path, :event_path
def sortable_columns
# Declare strings in this format: ModelName.column_name
@sortable_columns ||= %w(Event.name Event.city Event.country Event.url Event.twitter_name)
end
def searchable_col... | 33,750 |
https://github.com/hasanalrasyid/cpvoh/blob/master/src/CPVO/IO/Reader/Ecalj/DOS.hs | Github Open Source | Open Source | BSD-3-Clause | null | cpvoh | hasanalrasyid | Haskell | Code | 529 | 1,212 | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Strict #-}
{-# LANGUAGE FlexibleContexts #-}
module CPVO.IO.Reader.Ecalj.DOS (
readPDOS
)
where
import CPVO.Numeric
import CPVO.IO
--
import Text.Printf as TP
import Numeric.LinearAlgebra
import qualified System.Process as SP
import System.IO (openTempFile,hClose)... | 38,340 |
https://github.com/boontdustie/last_number/blob/master/test/support/mock_aws.rb | Github Open Source | Open Source | MIT | null | last_number | boontdustie | Ruby | Code | 64 | 199 | module AWS
def self.s3
MockAWS
end
end
class MockAWS
def initialize(aws_opts={})
@bucket = MockBucket.new
end
def buckets
{ "mock_bucket" => @bucket }
end
end
class MockBucket
def initialize
@mock_s3_file = MockS3File.new
end
def objects
{ "mock_object_key" => @mock_s3_file }
... | 10,010 |
https://github.com/AmirRaptoR/Orleans.Providers.EntityFramework/blob/master/src/Orleans.Providers.EntityFramework/Extensions/GrainStorageSiloHostBuilderExtensions.cs | Github Open Source | Open Source | MIT | 2,019 | Orleans.Providers.EntityFramework | AmirRaptoR | C# | Code | 49 | 204 | using Microsoft.EntityFrameworkCore;
using Orleans.Hosting;
namespace Orleans.Providers.EntityFramework.Extensions
{
public static class GrainStorageSiloHostBuilderExtensions
{
public static ISiloHostBuilder AddEfGrainStorageAsDefault<TContext>(this ISiloHostBuilder builder)
where TContext... | 39,225 |
https://github.com/HelloAllen8893/AliOS-Things/blob/master/platform/mcu/xr872/drivers/src/ota/source.mk | Github Open Source | Open Source | Apache-2.0 | 2,018 | AliOS-Things | HelloAllen8893 | Makefile | Code | 5 | 34 | XR_SOURCE_FILES += drivers/src/ota/ota.c \
drivers/src/ota/ota_file.c
| 15,484 |
https://github.com/MarkAKelly/capital-gains-calculator-frontend/blob/master/test/common/TestModels.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | capital-gains-calculator-frontend | MarkAKelly | Scala | Code | 1,628 | 9,715 | /*
* Copyright 2016 HM Revenue & Customs
*
* 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 a... | 8,471 |
https://github.com/shreyas-dharanesh/Jimple-statement-and-heap-locations/blob/master/com/sun/xml/bind/v2/model/impl/Messages_it.properties | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,020 | Jimple-statement-and-heap-locations | shreyas-dharanesh | null | Spoken | 1,287 | 3,315 | #
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright (c) 1997-2017 Oracle and/or its affiliates. All rights reserved.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common Development
# and Distribution License("CDDL"... | 14,577 |
https://github.com/howl111/eth-scrapper/blob/master/contracts/0x8e43d7a5c4b2de24b728deff0e666fe674b3ca91.sol | Github Open Source | Open Source | Apache-2.0 | 2,018 | eth-scrapper | howl111 | Gerber Image | Code | 1,433 | 6,288 |
//Address: 0x8e43d7a5c4b2de24b728deff0e666fe674b3ca91
//Contract name: GetTheHorseShoe
//Balance: 0 Ether
//Verification Date: 5/2/2018
//Transacion Count: 202
// CODE STARTS HERE
pragma solidity ^0.4.23;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, addr... | 48,925 |
https://github.com/nacl/rules_pkg/blob/master/toolchains/rpmbuild_configure.bzl | Github Open Source | Open Source | Apache-2.0 | 2,022 | rules_pkg | nacl | Python | Code | 217 | 592 | # Copyright 2020 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 21,739 |
https://github.com/varsharamani/CustomerReportKDS/blob/master/routes/web.php | Github Open Source | Open Source | MIT | 2,021 | CustomerReportKDS | varsharamani | PHP | Code | 69 | 232 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... | 42,011 |
https://github.com/jaredpar/advent2021/blob/master/day07/day07_test.go | Github Open Source | Open Source | MIT | 2,021 | advent2021 | jaredpar | Go | Code | 124 | 455 | package day07
import (
_ "embed"
"testing"
"advent2021.com/testUtil"
"advent2021.com/util"
)
//go:embed input.txt
var inputText string
//go:embed sample.txt
var sampleText string
func testFuelCore(t *testing.T, line string, expectedPosition int, expectedFuel int) {
values, err := util.ParseCommaSepInt(line)
... | 42,089 |
https://github.com/tudasc/PIRA/blob/master/run-shell-lint.sh | Github Open Source | Open Source | BSD-3-Clause | 2,022 | PIRA | tudasc | Shell | Code | 124 | 342 | #! //usr/bin/env bash
echo "Running Shell lint"
didfail=0
for i in $(find ./test/integration -iname "*.sh"); do
testName=$(echo "$i" | awk -F . '{print substr($2,2)}')
echo "Running $i -> $testName";
if [[ $(grep -e '/home/*' -c "$i") -ne 0 ]]; then
echo "Detected paths refering to /home"
didfail=$((... | 27,730 |
https://github.com/accountos/LeetCodeLearning/blob/master/Array/cuijilin/Day20200706.cpp | Github Open Source | Open Source | MIT | 2,021 | LeetCodeLearning | accountos | C++ | Code | 173 | 570 | //
// Created by 崔继霖 on 2020/7/5.
//
#include <stdio.h>
#include "LinkedList.h"
/**
* 1.计算一个数二进制中1的个数。
*
* */
int *getOneCount(int number);
/**
* * 2.将字符串反转进行输出(利用指针
* */
void reverseCharArray(char array[]);
/**
* 给定一个链表,旋转链表,将链表每个节点向右移动 k 个位置,其中 k 是非负数。
* https://leetcode-cn.com/problems/rotate-list/
* */... | 26,412 |
https://github.com/gabejohnson/fantasy-interfaces/blob/master/src/biapply.js | Github Open Source | Open Source | MIT | 2,021 | fantasy-interfaces | gabejohnson | JavaScript | Code | 208 | 537 | 'lang sweet.js';
import { implements, protocol } from 'sweet-interfaces';
import { Bifunctor } from './bifunctor';
import { id } from './category';
const identity = id(Function);
const constant = k => () => k;
protocol Biapply extends Bifunctor {
// biap :: Biapply w => w a c ~> w (a -> b) (c -> d) -> w b d
biap... | 50,314 |
https://github.com/prezi/Frank/blob/master/gem/test/launcher_test.rb | Github Open Source | Open Source | Apache-2.0 | 2,021 | Frank | prezi | Ruby | Code | 124 | 441 | require_relative 'test_helper.rb'
include Frank::Cucumber::Launcher
include Frank::Cucumber::FrankHelper
def wait_for_frank_to_come_up
# orig FrankHelper::wait_for_frank_to_come_up
# doing nothing
end
describe "frank cucumber launcher" do
DUMMY_APP_PATH = '/tmp/dummy_app_path'
before do
`mkdir -p #{DUMM... | 45,871 |
https://github.com/trippedout/things-with-firebase/blob/master/controller-app/src/main/java/net/trippedout/android/thingswithfirebase/MainActivity.java | Github Open Source | Open Source | Apache-2.0 | null | things-with-firebase | trippedout | Java | Code | 509 | 1,633 | package net.trippedout.android.thingswithfirebase;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.google.android.things.contrib.driver.adcv2x.Adcv2x;
import com.google.android.things.pio.PeripheralManagerService;
import com.goo... | 34,397 |
https://github.com/MahmoudFawzy01/ARM-Projects/blob/master/stm32f10/FOTA/include/RCC_interface.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | ARM-Projects | MahmoudFawzy01 | C | Code | 574 | 1,811 | #ifndef RCC_INTERFACE_H
#define RCC_INTERFACE_H
/******************************************************************************************/
/******************************************************************************************/
/********************************* RCC clock interface ******************************... | 22,265 |
https://github.com/harshmauny/algorithms-2/blob/master/sorting/radix_sort/cpp/RadixSort.cpp | Github Open Source | Open Source | MIT | 2,022 | algorithms-2 | harshmauny | C++ | Code | 86 | 426 | #include <bits/stdc++.h>
using namespace std;
int Max(int *a,int n)
{
int k=a[0];
for(int i=1;i<n;i++)
{
if(a[i]>k)
k=a[i];
}
return k;
}
int counting(int *a, int exp, int n)
{
int b[n];
int c[10]={0};
int i,j;
for(i=0;i<n;i++)
c[(a[i]/exp)%10]++;
for(i=1;i<10;i++)
c[i]=c[i-1]+c[i];
for(i=n-1;i>=0;i--)
{
b[c[(a[i]/ex... | 24,729 |
https://github.com/doud94220/custom_shirt-3/blob/master/src/Repository/ColRepository.php | Github Open Source | Open Source | MIT | null | custom_shirt-3 | doud94220 | PHP | Code | 128 | 503 | <?php
namespace Repository;
use Entity\Col;
class ColRepository extends RepositoryAbstract
{
public function getTable()
{
return 'col';
}
public function findAllCol()
{
$query = <<<EOS
SELECT *
FROM col
ORDER BY id_col DESC
EOS;
$dbCols = $this->db->fetchAll($query);
... | 32,754 |
https://github.com/Phitherek/linkuniverse/blob/master/app/controllers/links_controller.rb | Github Open Source | Open Source | MIT | 2,018 | linkuniverse | Phitherek | Ruby | Code | 561 | 2,161 | class LinksController < ApplicationController
before_action :require_current_user, except: :show
before_action :find_collection
before_action :find_link, except: [:new, :create, :title_on_the_fly]
def new
render_error :forbidden unless @collection.user == current_user || @collection.permission_for(current_... | 39,010 |
https://github.com/budkee/camilabudke.github.io/blob/master/JavaScript/Udemy/Fundamentos/Operadores/destructuring02.js | Github Open Source | Open Source | MIT | null | camilabudke.github.io | budkee | JavaScript | Code | 51 | 125 | // Retira algum elemento de um objeto { } ou de um array []. ES2015.
const [a] = [10]
const [n1, n2, n3, n4, n5, n6 = 0] = [10, 7, 9, 8]
const [,[, nota]] = [[, 8, 8], [9, 6, 8]] // Revisar.
console.log(a)
console.log(n1, n3, n5, n6)
console.log(nota)
| 14,416 |
https://github.com/wisnubaldas/skripsi_gas_pertamina/blob/master/application/controllers/transaction/PengisianController.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | skripsi_gas_pertamina | wisnubaldas | PHP | Code | 379 | 1,647 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class PengisianController extends CI_Controller {
protected $fields;
public function __construct()
{
parent::__construct();
$this->load->model('Pengisian_model');
$this->load->model('Couriers');
$this->load->mod... | 36,805 |
https://github.com/dirtysalt/banditlib/blob/master/main.cpp | Github Open Source | Open Source | MIT | null | banditlib | dirtysalt | C++ | Code | 276 | 1,164 | #include <iostream>
#include "bandit/util.hpp"
#include "arm/arm.hpp"
#include "arm/arm_bernoulli.hpp"
#include "arm/arm_normal.hpp"
#include "policy/policy.hpp"
#include "policy/policy_egreedy.hpp"
#include "policy/policy_ucb.hpp"
#include "policy/policy_ucbv.hpp"
#include "policy/policy_klucb.hpp"
#include "policy/p... | 7,261 |
https://github.com/TomPalfreyman/adyen-hybris/blob/master/adyenv6core/src/com/adyen/v6/forms/AddressForm.java | Github Open Source | Open Source | MIT | 2,021 | adyen-hybris | TomPalfreyman | Java | Code | 387 | 1,137 | package com.adyen.v6.forms;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
*
*/
public class AddressForm {
private String addressId;
private String titleCode;
private String firstName;
private String lastName;
private String line1;
private String l... | 25,201 |
https://github.com/mevans/recovqr-api/blob/master/src/main.ts | Github Open Source | Open Source | MIT | 2,021 | recovqr-api | mevans | TypeScript | Code | 105 | 348 | import { Logger } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import * as rateLimit from 'express-rate-limit';
import * as helmet from 'helmet';
import { AppModule } from './app.module';
import { ConfigService } from './core/servic... | 50,129 |
https://github.com/Subscription-Tool/maintenance-page/blob/master/_redirects | Github Open Source | Open Source | BSD-3-Clause | 2,020 | maintenance-page | Subscription-Tool | null | Spoken | 25 | 119 | # Redirect domain aliases to primary domain
https://maintenance-page.freecodecamp.org/* https://maintenance.freecodecamp.org/:splat 301!
https://maintenance.freecodecamp.dev/* https://maintenance.freecodecamp.org/:splat 301!
# Optional: Redirect default Netlify subdomain to primary domain
https://maintenance-page.netl... | 50,394 |
https://github.com/salemalem/deno-twd-drash/blob/master/drash-resources/pages/not_found_resource.js | Github Open Source | Open Source | MIT | 2,021 | deno-twd-drash | salemalem | JavaScript | Code | 57 | 170 | import { Drash } from "../../dependencies.js";
export class NotFoundResource extends Drash.Http.Resource {
static paths = [
"/not_found",
"/404",
];
async GET() {
try {
this.response.body = await this.response.render(
Deno.cwd() + "/public/views/pages/404",
{
page_t... | 29,372 |
https://github.com/sumara523/GenerativeGraphics/blob/master/New Unity Project/Assets/NuitrackSDK/Tutorials/SegmentExample/Prefab/UserPixel.prefab.meta | Github Open Source | Open Source | MIT | 2,020 | GenerativeGraphics | sumara523 | Unity3D Asset | Code | 12 | 67 | fileFormatVersion: 2
guid: caee4ac3e25a49f46a51bd751314bcf8
timeCreated: 1522339264
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
| 36,937 |
https://github.com/OpenSourceConsulting/athena-sqs/blob/master/src/main/java/com/athena/sqs/MessageConverter.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | athena-sqs | OpenSourceConsulting | Java | Code | 456 | 1,020 | /*
* Copyright 2012 The Athena Project
*
* The Athena Project licenses this file to you 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
... | 22,780 |
https://github.com/yufuid/yufu-design/blob/master/packages/documents/src/static/main.less | Github Open Source | Open Source | MIT | 2,021 | yufu-design | yufuid | Less | Code | 24 | 74 | html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
:global {
#root {
width: 100%;
height: 100%;
background-color: #f4f4f4;
}
}
| 27,266 |
https://github.com/AmauryCarrade/minutis-redcall-app/blob/master/symfony/bundles/password-login-bundle/Entity/PasswordRecovery.php | Github Open Source | Open Source | MIT | 2,021 | minutis-redcall-app | AmauryCarrade | PHP | Code | 185 | 650 | <?php
namespace Bundles\PasswordLoginBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="uuid_idx", columns={"uuid"})})
* @ORM\Entity(repositoryClass="Bundles\PasswordLoginBundle\Repository\PasswordRecoveryRepository")
* @ORM\ChangeTrackingPolicy("DEFERR... | 33,493 |
https://github.com/arobb/python-processrunner/blob/master/tests/tests/contentwrapper_test.py | Github Open Source | Open Source | MIT | 2,021 | python-processrunner | arobb | Python | Code | 517 | 1,852 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import math
import unittest
from kitchen.text.converters import to_bytes, to_unicode
from tests.tests import context
from processrunner.contentwrapper import ContentWrapper
'''
'''
class ProcessRunnerContentWrapperTestCase(unittest.TestCase):
def se... | 27,943 |
https://github.com/rmello4d/WakHotel/blob/master/WakHotel/database/methods/leads/leads-events.js | Github Open Source | Open Source | MIT | 2,016 | WakHotel | rmello4d | JavaScript | Code | 382 | 944 |
//=====generateUUID
model.leads.events.init = function(event) {
return this.id = generateUUID()
}
//ATTRIBUT LASTNAME NOT NULL ON VALIDATE
model.leads.last_name.events.validate = function() {
if (this.last_name == null) {
return {error: 7, errorMessage: 'last_name must be declared'};
}
else... | 19,492 |
https://github.com/fridde/funct/blob/master/src/Strings.php | Github Open Source | Open Source | MIT | null | funct | fridde | PHP | Code | 4,222 | 10,748 | <?php
namespace Fridde\Strings;
/**
* Extracts the string between two substrings
*
* @param string $input
* @param string $left
* @param string $right
*
* @return string
*
* @author Lucantis Swann <lucantis.swann@gmail.com>
*/
function between($input, $left, $right)
{
$input = ' ' . $input;
$ini =... | 2,680 |
https://github.com/rbeucher/com.lithodat.api.client.csvimporter/blob/master/com.lithodat.api.client.csvimporter/src/main/java/com/lithodat/api/client/csvimporter/CSVImporterApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | com.lithodat.api.client.csvimporter | rbeucher | Java | Code | 300 | 1,367 | package com.lithodat.api.client.csvimporter;
import java.util.Map;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.sprin... | 27,767 |
https://github.com/tailoredstack/truck-tracking/blob/master/resources/views/welcome.blade.php | Github Open Source | Open Source | MIT | null | truck-tracking | tailoredstack | PHP | Code | 228 | 1,252 | @extends('partials.body')
@section('title', trans('admin.admin-user.actions.index'))
@section('body')
<truck-listing
:data="{{ $data->toJson() }}"
:url="'{{ url('admin/trucks') }}'"
inline-template>
<div class="row">
<div class="col">
<div class="card">
<div cl... | 19,798 |
https://github.com/e-mayo/mscreen/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | mscreen | e-mayo | Ignore List | Code | 34 | 124 | # Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# Ignore cache files from Python
*.pyc
*__pycache__
*__pycache__/*
# C extensions
*.so
/data/*
!/data/config*
!data/receptor/
<<<<<<< HEAD
!data/ligands/
*bad.mol2
=======
!data/ligands/
>>>>>>> dev
| 26,511 |
https://github.com/tharcius/clientes/blob/master/web/footer.php | Github Open Source | Open Source | MIT | 2,015 | clientes | tharcius | Hack | Code | 95 | 532 |
<footer class="page-footer orange">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Code.Education - POO - Lista de Clientes</h5>
<p class="grey-text text-lighten-4">Exercício do curso de PhP Orientado a Objeto.</p>
... | 45,827 |
https://github.com/pdcdev/pdc/blob/master/js/my_js_stuff.js | Github Open Source | Open Source | BSD-3-Clause | 2,015 | pdc | pdcdev | JavaScript | Code | 22 | 89 | function my_js_function() {
jQuery.ajax({
url: my_ajax_script.ajaxurl,
data: ({action : 'get_my_option'}),
success: function(response) {
window.console.log("ajax call sucessful: ", response);
}
});
}
my_js_function(); | 17,085 |
https://github.com/marcellodebernardi/alexa-bpdiagnostics/blob/master/frontend/src/main/Placeholder.java | Github Open Source | Open Source | Apache-2.0 | null | alexa-bpdiagnostics | marcellodebernardi | Java | Code | 23 | 54 | package main;
/**
* @author Marcello De Bernardi
*/
public class Placeholder {
public static void main(String[] args) {
System.out.println("Hello Catherine!");
}
}
| 17,256 |
https://github.com/usenixatc2021/SoftRefresh_Scheduling/blob/master/linsched-linsched-alpha/arch/arm/mach-s5p64x0/include/mach/spi-clocks.h | Github Open Source | Open Source | MIT | 2,022 | SoftRefresh_Scheduling | usenixatc2021 | C | Code | 76 | 243 | /* linux/arch/arm/mach-s5p64x0/include/mach/spi-clocks.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Copyright (C) 2010 Samsung Electronics Co. Ltd.
* Jaswinder Singh <jassi.brar@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it un... | 35,639 |
https://github.com/piyushchauhan2011/conclave/blob/master/webpack.config.js | Github Open Source | Open Source | MIT | 2,022 | conclave | piyushchauhan2011 | JavaScript | Code | 38 | 143 | const path = require('path');
var glob = require("glob");
module.exports = {
context: path.resolve(__dirname, 'lib'),
entry: {
main: './main.js',
demo: './demo.js',
bots: './userBot.js',
timegraph: './timeGraph.js',
arraysGraph: './arraysGraph.js',
idGraph: './idGraph.js'
},
output: {
... | 8,994 |
https://github.com/gmvalentino8/mvi-multiplatform/blob/master/common/domain/src/commonMain/kotlin/com/gmvalentino/usecases/UpdateTask.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | mvi-multiplatform | gmvalentino8 | Kotlin | Code | 61 | 196 | package com.gmvalentino.usecases
import com.gmvalentino.repositories.TaskRepository
import kotlinx.datetime.LocalDate
class UpdateTask(
private val repository: TaskRepository
) : UpdateTaskUseCase {
override suspend fun execute(arguments: UpdateTaskUseCase.Args) {
repository.updateTask(
ar... | 507 |
https://github.com/antaresproject/core/blob/master/src/components/area/src/Collections/AreasCollection.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | core | antaresproject | PHP | Code | 407 | 1,075 | <?php
/**
* Part of the Antares package.
*
* NOTICE OF LICENSE
*
* Licensed under the 3-clause BSD License.
*
* This source file is subject to the 3-clause BSD License that is
* bundled with this package in the LICENSE file.
*
* @package Antares Core
* @version 0.9.0
* @author Antares Team
* @li... | 21,612 |
https://github.com/guardian/facia-tool/blob/master/fronts-client/src/components/inputs/ButtonOverlay.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | facia-tool | guardian | TypeScript | Code | 101 | 326 | import React from 'react';
import { styled, theme } from 'constants/theme';
import { css } from 'styled-components';
import Button from 'components/inputs/ButtonDefault';
const ButtonWithShadow = styled(Button)<{ active?: boolean }>`
box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 10px 2px,
rgba(255, 255, 255, 0.15) 0p... | 33,639 |
https://github.com/noahdietz/repo-automation-bots/blob/master/packages/gcf-utils/src/server/server.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | repo-automation-bots | noahdietz | TypeScript | Code | 285 | 597 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 40,405 |
https://github.com/dmitriilezine/AzureVDCIdentity/blob/master/deploymentTemplates/ADDS/scripts/DeployADDS/xActiveDirectory/DSCResources/MSFT_xADUser/MSFT_xADUser.psm1 | Github Open Source | Open Source | MIT | 2,019 | AzureVDCIdentity | dmitriilezine | PowerShell | Code | 4,541 | 14,385 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingUserNameAndPassWordParams', '')]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "PasswordAuthentication")]
param()
$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent)... | 38,581 |
https://github.com/JetBrains/intellij-community/blob/master/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/transformations/inline/GroovyInlineASTTransformationSupport.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Kotlin | Code | 192 | 475 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.groovy.transformations.inline
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.plugins.groovy.lang.psi.GroovyPsiElement
/**
* Groovy provides various w... | 53,539 |
https://github.com/majidphpdeveloper/AuthSystem/blob/master/Authenticate/Authenticator.php | Github Open Source | Open Source | MIT | 2,016 | AuthSystem | majidphpdeveloper | PHP | Code | 169 | 506 | <?php
namespace Poirot\AuthSystem\Authenticate;
use Poirot\AuthSystem\Authenticate\Adapter\UserPassCredential;
use Poirot\AuthSystem\Authenticate\Exceptions\AuthenticationException;
use Poirot\AuthSystem\Authenticate\Interfaces\iCredential;
use Poirot\AuthSystem\Authenticate\Interfaces\iIdentity;
use Poirot\AuthSystem... | 31,560 |
https://github.com/kuribas/haskell-opentype/blob/master/Opentype/Fileformat/FontInfo.hs | Github Open Source | Open Source | MIT | 2,016 | haskell-opentype | kuribas | Haskell | Code | 3,515 | 7,281 | -- | This module implements a somewhat more logical structure
-- containing font information, without the need for an in-depth study
-- of the opentype spec.
module Opentype.Fileformat.FontInfo (FontInfo(..), Weight(..),
Width(..), Slant(..), Decoration(..),
... | 19,853 |
https://github.com/PervasiveDigital/microserver/blob/master/src/Bytewizer.System/Threading/UnhandledThreadPoolExceptionDelegate.cs | Github Open Source | Open Source | MIT | 2,021 | microserver | PervasiveDigital | C# | Code | 46 | 106 | namespace System.Threading
{
/// <summary>
/// Unhandled Threadpool Exception event handler would be raised whenever an
/// unhandled exception occurs in a threadpool.
/// </summary>
/// <param name="state">This argument should be ignored.</param>
/// <param name="ex">The unhandled exception t... | 16,720 |
https://github.com/kejgon/working-with-java/blob/master/methods.java | Github Open Source | Open Source | MIT | null | working-with-java | kejgon | Java | Code | 637 | 1,290 |
///////////////// THIS KEYWORD ///////////
class ThisDemo {
int a = 10;
void display() {
int a = 20;
System.out.println("Local variable :" + a);
System.out.println("INSTANCE variable :" + this.a);
System.out.println(a + this.a);
}
public static void main(String args... | 30,387 |
https://github.com/robintanis/substrate-node-template/blob/master/target/release/build/node-template-c5ddbe621865c0a1/build_script_build-c5ddbe621865c0a1.d | Github Open Source | Open Source | Unlicense | 2,021 | substrate-node-template | robintanis | Makefile | Code | 5 | 130 | /home/robin/substrate-node-template/target/release/build/node-template-c5ddbe621865c0a1/build_script_build-c5ddbe621865c0a1: node/build.rs
/home/robin/substrate-node-template/target/release/build/node-template-c5ddbe621865c0a1/build_script_build-c5ddbe621865c0a1.d: node/build.rs
node/build.rs:
| 23,823 |
https://github.com/YehorPytomets/ProtoData/blob/master/gradle-plugin/build.gradle.kts | Github Open Source | Open Source | Apache-2.0 | 2,021 | ProtoData | YehorPytomets | Kotlin | Code | 299 | 791 | /*
* Copyright 2021, TeamDev. 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
*
* Redistribution and use in source... | 4,227 |
https://github.com/LoveCppp/openwhyd/blob/master/app/controllers/LibUserProfile.js | Github Open Source | Open Source | MIT | null | openwhyd | LoveCppp | JavaScript | Code | 915 | 3,042 | var snip = require('../snip.js');
var mongodb = require('../models/mongodb.js');
var userModel = require('../models/user.js');
var followModel = require('../models/follow.js');
var postModel = require('../models/post.js');
var activityModel = require('../models/activity.js');
var activityController = require('../contro... | 18,371 |
https://github.com/inklabs/kommerce-core/blob/master/tests/ActionHandler/Option/CreateTextOptionHandlerTest.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | kommerce-core | inklabs | PHP | Code | 59 | 295 | <?php
namespace inklabs\kommerce\ActionHandler\Option;
use inklabs\kommerce\Action\Option\CreateTextOptionCommand;
use inklabs\kommerce\Entity\TextOption;
use inklabs\kommerce\tests\Helper\TestCase\ActionTestCase;
class CreateTextOptionHandlerTest extends ActionTestCase
{
protected $metaDataClassNames = [
... | 8,892 |
https://github.com/vmware/declarative-cluster-management/blob/master/workload-generator/getAzureTraces.sh | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,023 | declarative-cluster-management | vmware | Shell | Code | 132 | 792 | wget -O v1-deployment.csv.gz https://azurecloudpublicdataset.blob.core.windows.net/azurepublicdataset/trace_data/deployment/deployment.csv.gz
wget -O v1-subscriptions.csv.gz https://azurecloudpublicdataset.blob.core.windows.net/azurepublicdataset/trace_data/subscriptions/subscriptions.csv.gz
wget -O v1-vmtable.csv.gz h... | 46,342 |
https://github.com/mbahri/vote_ensimag/blob/master/votes_ensimag/IntranetFilterAuthBackend.py | Github Open Source | Open Source | MIT | 2,015 | vote_ensimag | mbahri | Python | Code | 178 | 530 | __author__ = 'mehdi'
from django.contrib.auth.models import User
from votes.models import Votant
from django.core.exceptions import PermissionDenied
import urllib.request as req
class IntranetFilterAuthBackend(object):
def authenticate(self, username=None, password=None):
# On vérifie d'abord que le pseu... | 4,235 |
https://github.com/abrn/prodmafia/blob/master/src/io/decagames/rotmg/seasonalEvent/tasks/GetLegacySeasonsTask.as | Github Open Source | Open Source | MIT | 2,021 | prodmafia | abrn | null | Spoken | 119 | 557 | package io.decagames.rotmg.seasonalEvent.tasks {
import io.decagames.rotmg.seasonalEvent.data.SeasonalEventModel;
import kabam.lib.tasks.BaseTask;
import kabam.rotmg.account.core.Account;
import kabam.rotmg.appengine.api.AppEngineClient;
import robotlegs.bender.framework.api.ILogger;
public class GetLegacySeasonsTas... | 7,365 |
https://github.com/vaskinyy/query-reform/blob/master/data/samples/Java/59347.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | query-reform | vaskinyy | Java | Code | 154 | 397 | /** The benchmark is distributed under the Creative Commons,
* Attribution-NonCommercial-NoDerivatives. This license includes the benchmark database
* and its derivatives. For attribution, please cite this page, and our publications below.
* This data is provided free of charge for non-commercial and academic benchmark... | 2,327 |
https://github.com/Smbat888/the-guardian-news-feed/blob/master/NewsFeed/app/src/main/java/smbat/com/newsfeed/broadcasts/NewsGetOnRebootReceiver.java | Github Open Source | Open Source | MIT | null | the-guardian-news-feed | Smbat888 | Java | Code | 45 | 167 | package smbat.com.newsfeed.broadcasts;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import smbat.com.newsfeed.services.NewsNotificationService;
/**
* Broadcast receiver for restart news notification service on device... | 54,540 |
https://github.com/shridharmanvi/gratipay.com/blob/master/gratipay/models/participant/exchange_routes.py | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,017 | gratipay.com | shridharmanvi | Python | Code | 321 | 1,004 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import braintree
from psycopg2 import IntegrityError, errorcodes
from ..exchange_route import ExchangeRoute
from ...billing.instruments import CreditCard
from ...utils import is_card_expiring
class ExchangeRou... | 24,800 |
https://github.com/ppdaicorp/das/blob/master/das-client/src/test/java/com/ppdai/das/core/ResultMergerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | das | ppdaicorp | Java | Code | 142 | 621 | package com.ppdai.das.core;
import com.google.common.collect.ImmutableMap;
import org.junit.Assert;
import org.junit.Test;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.SQLException;
import java.util.Map;
public class ResultMergerTest {
@Test
public void testSum() throws SQLExcept... | 24,126 |
https://github.com/AltisourceLabs/ecloudmanager/blob/master/tmrk-cloudapi/src/main/java/org/ecloudmanager/tmrk/cloudapi/model/TemplateOperatingSystemType.java | Github Open Source | Open Source | MIT | null | ecloudmanager | AltisourceLabs | Java | Code | 291 | 922 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.07.... | 1,692 |
https://github.com/HbnKing/Computation-Framework/blob/master/MapReduce/src/main/java/demo3_AmericanTempurature/TempuratureMapperTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Computation-Framework | HbnKing | Java | Code | 83 | 381 | package com.work.hadoopwork;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mrunit.mapreduce.MapDriver;
import org.junit.Before;
import org.junit.Test;
... | 47,690 |
https://github.com/achristensen6/tvOS10Headers/blob/master/System/Library/PrivateFrameworks/FrontBoard.framework/FBSceneUpdateContext.h | Github Open Source | Open Source | MIT | 2,017 | tvOS10Headers | achristensen6 | Objective-C | Code | 160 | 538 | /*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:06:12 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/PrivateFrameworks/FrontBoard.framework/FrontBoard
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Eli... | 38,313 |
https://github.com/ReifyIt/basis/blob/master/form/src/main/scala/basis/form/JsonException.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | basis | ReifyIt | Scala | Code | 62 | 154 | // ____ ___
// / __ | ___ ____ /__/___ A library of building blocks
// / __ / __ |/ ___|/ / ___|
// / /_/ / /_/ /\__ \/ /\__ \ (c) 2012-2015 Chris Sachs
// |_____/\_____\____/__/\____/ http://basis.reify.it
package basis.form
class JsonException(message: String, val par... | 10,978 |
https://github.com/namaljayathunga/nw.js/blob/master/src/api/shortcut/global_shortcut_listener_mac.h | Github Open Source | Open Source | MIT | 2,022 | nw.js | namaljayathunga | C | Code | 564 | 1,341 | // Copyright (c) 2014 Intel Corp
// Copyright (c) 2014 The Chromium Authors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
... | 51,690 |
https://github.com/jslphp/router/blob/master/src/Components/Route.php | Github Open Source | Open Source | MIT | 2,023 | router | jslphp | PHP | Code | 230 | 706 | <?php
namespace Jsl\Router\Components;
use Jsl\Router\Contracts\NamesInterface;
use Jsl\Router\Contracts\RouteInterface;
class Route implements RouteInterface
{
/**
* @var string
*/
protected string $method;
/**
* @var string
*/
protected string $pattern;
/**
* @var arr... | 9,607 |
https://github.com/jjxs/coolweather/blob/master/daqi/server/src/main/java/cn/com/cnc/fcc/web/rest/QmsBogiepressureTonTestResource.java | Github Open Source | Open Source | Apache-2.0 | null | coolweather | jjxs | Java | Code | 469 | 2,030 | package cn.com.cnc.fcc.web.rest;
import com.codahale.metrics.annotation.Timed;
import cn.com.cnc.fcc.domain.QmsBogiepressureTonTest;
import cn.com.cnc.fcc.repository.QmsBogiepressureTonTestRepository;
import cn.com.cnc.fcc.web.rest.errors.BadRequestAlertException;
import cn.com.cnc.fcc.web.rest.util.HeaderUtil;
import... | 28,730 |
https://github.com/rosneru/ADiffView/blob/master/src/diffengine/test_plain/DiffEngine_test_plain.pro | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,023 | ADiffView | rosneru | null | Spoken | 68 | 316 | TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
QMAKE_CXXFLAGS += -std=c++11 -Wall -Wconversion -Wextra -pedantic #-Weffc++
INCLUDEPATH += ../ \
../../worker \
../../oscottlibs
SOURCES += \
DiffEngine_test_plain.cpp \
../DiffEngine.cpp \
../DiffLi... | 50,995 |
https://github.com/Cryptonomic/Conseil/blob/master/conseil-api/src/test/scala/tech/cryptonomic/conseil/api/routes/platform/data/tezos/TezosDataOperationsTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | Conseil | Cryptonomic | Scala | Code | 7,067 | 23,675 | package tech.cryptonomic.conseil.api.routes.platform.data.tezos
import java.sql.Timestamp
import com.softwaremill.diffx.scalatest.DiffShouldMatcher._
import org.scalatest.concurrent.IntegrationPatience
import slick.jdbc.PostgresProfile.api._
import tech.cryptonomic.conseil.api.TezosInMemoryDatabaseSetup
import tech.c... | 49,943 |
https://github.com/jppf-grid/JPPF/blob/master/demo/src/java/sample/test/largedata/LargeDataRunner.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | JPPF | jppf-grid | Java | Code | 933 | 2,429 | /*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.org
*
* 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 re... | 13,545 |
https://github.com/C3maLi/Angular5App/blob/master/src/app/cart/cart-item-list.ts | Github Open Source | Open Source | Unlicense | null | Angular5App | C3maLi | TypeScript | Code | 12 | 29 | import { CartItem } from './cart-item';
export const CART_ITEM_LIST: CartItem[] = [];
| 36,991 |
https://github.com/mish0501/scory/blob/master/public/assets/js/header.js | Github Open Source | Open Source | MIT | 2,016 | scory | mish0501 | JavaScript | Code | 167 | 545 | var header = (function() {
var menuItems = document.getElementsByClassName('menu-item'),
menu = document.getElementById('menu');
function activeMenu(n) {
for (var i = 0; i < menuItems.length; i += 1) {
if (i !== n) {
menuItems[i].className = 'menu-item';
}
}
if (menuItems[n].className === 'menu... | 49,720 |
https://github.com/t0930198/OAI_nb_IoT/blob/master/targets/SIMU/EXAMPLES/ETH_EMUL_1eNB_2UE/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | OAI_nb_IoT | t0930198 | Makefile | Code | 30 | 142 | all: oaisim nasmesh
userclean: clean oaisim nasmesh
oaisim:
(cd $(OPENAIR_TARGETS)/SIMU/USER && make LINK_ENB_PDCP_TO_IP_DRIVER=1 -j2)
nasmesh:
(cd $(OPENAIR2_DIR) && make nasmesh_netlink.ko)
(cd $(OPENAIR2_DIR)/NAS/DRIVER/MESH/RB_TOOL/ && make)
clean:
(cd $(OPENAIR_TARGETS)/SIMU/USER && make clean)
| 30,362 |
https://github.com/MySage/backend/blob/master/sage/user/views.py | Github Open Source | Open Source | Apache-2.0 | 2,015 | backend | MySage | Python | Code | 86 | 280 | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse, JsonResponse, HttpResponseForbidden
from models import *
import json
from django.core import serializers
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def index(request):
return HttpResponse("H... | 24,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.