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/scaug10/NETESP/blob/master/src/main/java/com/g10/ssm/mapper/PracticeMapper.java | Github Open Source | Open Source | Apache-2.0 | null | NETESP | scaug10 | Java | Code | 56 | 243 | package com.g10.ssm.mapper;
import com.g10.ssm.po.Practice;
import com.g10.ssm.po.PracticeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PracticeMapper {
int countByExample(PracticeExample example);
int deleteByExample(PracticeExample example);
int deleteByP... | 16,235 |
https://github.com/cgiovvnni/Car-Control-Online/blob/master/Scripts/s-12-tr-compound-actualiza-propietario-prueba.sql | Github Open Source | Open Source | MIT | null | Car-Control-Online | cgiovvnni | SQL | Code | 202 | 662 | --@Autor: Rodrigo Lopez López - Carlos Giovanni Martínez Gutiérrez
--@Fecha creación: 16/06/2020
--@Descripción: Proyecto Final 'Prueba de Trigger Update'
set serveroutput on
Prompt =======================================
Prompt Prueba 1.
prompt Cambio de Propietario valido
Prompt ================================... | 16,890 |
https://github.com/TimFootsteps/ember-cli-furnace-forms/blob/master/addon/controls/panel.js | Github Open Source | Open Source | MIT | 2,015 | ember-cli-furnace-forms | TimFootsteps | JavaScript | Code | 228 | 1,016 | /**
* Provides Form and input features.
*
* @module furnace
* @submodule furnace-forms
*/
import Control from './abstract';
import Ember from 'ember';
import getName from 'furnace-forms/utils/get-name';
import ControlSupport from 'furnace-forms/mixins/controls/control-support';
import Proxy from 'furnace-forms/p... | 13,672 |
https://github.com/SMU-SIS/ksketch2/blob/master/KSKApp_Air/src/document/scrollerColumn/KDocumentSelectedEvent.as | Github Open Source | Open Source | CC-BY-3.0, MIT | null | ksketch2 | SMU-SIS | null | Spoken | 38 | 155 | package document.scrollerColumn
{
import flash.events.Event;
import sg.edu.smu.ksketch2.utils.KSketchDocument;
public class KDocumentSelectedEvent extends Event
{
public static const DOCUMENT_SELECTED:String = "docSelected";
public var selectedDocument:KSketchDocument;
public function KDocumentSelec... | 19,171 |
https://github.com/jheijari/kartta.paikkatietoikkuna.fi/blob/master/server-extension/src/main/java/flyway/ptimigration/V1_0__drop_wfslayerplugin_config.java | Github Open Source | Open Source | MIT | null | kartta.paikkatietoikkuna.fi | jheijari | Java | Code | 82 | 289 | package flyway.ptimigration;
import fi.nls.oskari.util.JSONHelper;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* Created by SMAKINEN on 26.5.2017.
*/
public class V1_0__drop_wfslayerplugin_config extends ConfigMigration {
private static final String PLUGIN_NAME = "Oskari.mapframework.bundle.mapw... | 49,609 |
https://github.com/jquery/themeroller.jquerymobile.com/blob/master/version.php | Github Open Source | Open Source | MIT | 2,023 | themeroller.jquerymobile.com | jquery | PHP | Code | 239 | 679 | <?php
function versionCompare( $version1, $version2 ) {
$empty = array( null, null, null, null, null );
$ver1 = array_replace( $empty, preg_split( "/\.|-/", $version1 ) );
$ver2 = array_replace( $empty, preg_split( "/\.|-/", $version2 ) );
if ( $ver1[0] > $ver2[0] ) {
return true;
} el... | 55,911 |
https://github.com/qos-ch/slf4j/blob/master/slf4j-ext/src/test/java/org/slf4j/dummyExt/XLoggerTest.java | Github Open Source | Open Source | LicenseRef-scancode-dco-1.1, MIT | 2,023 | slf4j | qos-ch | Java | Code | 526 | 1,810 | /**
* Copyright (c) 2004-2011 QOS.ch
* All rights reserved.
*
* 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... | 28,280 |
https://github.com/nondanee/Jike-Patcher/blob/master/smali/androidx/legacy/coreui/R.smali | Github Open Source | Open Source | MIT | 2,020 | Jike-Patcher | nondanee | Smali | Code | 29 | 217 | .class public final Landroidx/legacy/coreui/R;
.super Ljava/lang/Object;
.source "R.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/legacy/coreui/R$styleable;,
Landroidx/legacy/coreui/R$style;,
Landroidx/legacy/coreui/R$string;,
Landroid... | 54,581 |
https://github.com/AtaLuZiK/FreePanel/blob/master/web/core/constant.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | FreePanel | AtaLuZiK | PHP | Code | 15 | 50 | <?php
defined('BASE_PATH') || exit('No direct script access allowed');
// for URL_MODE
define('URL_MODE_PATHINFO', 0);
define('URL_MODE_REWRITE', 1);
| 10,576 |
https://github.com/morten1982/gnocl/blob/master/demo/test-eventBox.tcl | Github Open Source | Open Source | BSD-3-Clause, TCL | 2,014 | gnocl | morten1982 | null | Spoken | 284 | 738 | #!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
# $Id: test-eventBox.tcl,v 1.7 2004/08/12 08:17:29 baum Exp $
# ensure that "." is the decimal point
unset -nocomplain env(LC_ALL)
set ::env(LC_NUMERIC) "C"
set auto_path [linsert $auto_path 0 [file join [file dirname [info script]] ../src]]
packa... | 3,813 |
https://github.com/zdeslav/event_source/blob/master/test/eventsource_test.dart | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,013 | event_source | zdeslav | Dart | Code | 1,136 | 3,816 | import 'dart:async';
import 'package:unittest/unittest.dart';
import '../lib/event_source.dart';
class DogMixin extends Object with EventSource
{
static const int EVENT_WAG = 1;
Stream<String> get onBark => events.EVENT_BARK.stream; // => EVENT_BARK.stream; also works
Stream get onWag => events[EVENT_WAG].strea... | 45,456 |
https://github.com/aropixel/admin-bundle/blob/master/Resources/public/ckeditor/plugins/colorbutton/lang/id.js | Github Open Source | Open Source | LGPL-2.1-only, LGPL-2.1-or-later, BSD-3-Clause, OFL-1.1, GPL-2.0-or-later, MIT, MPL-1.1, GPL-2.0-only, LicenseRef-scancode-unknown-license-reference | 2,023 | admin-bundle | aropixel | JavaScript | Code | 225 | 743 | /*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'id', {
auto: 'Automatic', // MISSING
bgColorTitle: 'Warna Latar Belakang',
colors: {
'000': 'Black', // MISSING
'800000': 'Maro... | 44,254 |
https://github.com/YiLiu-Lly/weatherbench-resunet/blob/master/src/dataset/dataset_lat_and_lon.py | Github Open Source | Open Source | MIT | 2,021 | weatherbench-resunet | YiLiu-Lly | Python | Code | 1,443 | 5,706 | import numpy as np
import xarray as xr
import logging
import gc
import sys
from torch.utils.data import Dataset
sys.path.append('../')
from config import configs
years_train = [
# 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989,
# 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2... | 54,044 |
https://github.com/udacity/ud406/blob/master/2.1.01-Demo-ImportAndRunAProject/core/src/com/udacity/gamedev/firstdemo/UdacityScreen.java | Github Open Source | Open Source | MIT | 2,021 | ud406 | udacity | Java | Code | 306 | 1,095 | package com.udacity.gamedev.firstdemo;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.ParticleEffect;
import ... | 43,233 |
https://github.com/BrentonWatt/school-working-days-calculator/blob/master/src/Button.test.js | Github Open Source | Open Source | MIT | 2,018 | school-working-days-calculator | BrentonWatt | JavaScript | Code | 95 | 240 | import React from 'react';
import { shallow } from 'enzyme';
import Button from './Button';
const setup = (propOverrides) => {
const props = Object.assign({
// default props
}, propOverrides);
const wrapper = shallow(<Button {...props} />);
return {
props,
wrapper,
};
};
describe('<Button />',... | 24,255 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/q/qualifylabs/java-appium-docker/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 98 | 330 | FROM ubuntu:14.04
MAINTAINER Mehmet Bora Ezer <bora@qualifylabs.com>
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get -y install software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update
RUN \
echo oracle-java8-installer shared/accepted-oracle-lic... | 26,873 |
https://github.com/ezefarina/amf-1/blob/master/amf-webapi/shared/src/main/scala/amf/plugins/document/webapi/references/WebApiReferenceHandler.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | amf-1 | ezefarina | Scala | Code | 574 | 1,789 | package amf.plugins.document.webapi.references
import amf.core.parser._
import amf.core.parser.errorhandler.ParserErrorHandler
import amf.core.remote._
import amf.core.utils._
import amf.plugins.document.webapi.parser.RamlHeader
import amf.plugins.document.webapi.parser.RamlHeader.{Raml10Extension, Raml10Overlay}
impo... | 2,455 |
https://github.com/gbraad/openshift-origin/blob/master/pkg/route/apis/route/v1/conversion_test.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | openshift-origin | gbraad | Go | Code | 100 | 481 | package v1_test
import (
"testing"
kapi "k8s.io/kubernetes/pkg/api"
routeapi "github.com/openshift/origin/pkg/route/apis/route"
routeapiv1 "github.com/openshift/origin/pkg/route/apis/route/v1"
testutil "github.com/openshift/origin/test/util/api"
// install all APIs
_ "github.com/openshift/origin/pkg/api/inst... | 31,434 |
https://github.com/IUS-CS/NullPointerException/blob/master/src/Chronos/Models/GroupContentModel.cs | Github Open Source | Open Source | MIT | null | NullPointerException | IUS-CS | C# | Code | 96 | 212 | using System.Collections.Generic;
using Chronos.Entities;
namespace Chronos.Models
{
/// <summary>
/// Conatains the information to be displayed to the user
/// at a given home screen (dpenedent on the group)
/// </summary>
public class GroupContentModel
{
public int Id { get; set; }
... | 51,924 |
https://github.com/mikebdp2/MichalOS/blob/master/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | MichalOS | mikebdp2 | Makefile | Code | 309 | 1,028 | ### MichalOS Makefile
.DEFAULT_GOAL := retail
# These targets aren't triggered by a change of a file.
.PHONY: clean
# This selects all programs and music files to be built.
PROGRAMS := $(patsubst programs/%.asm,build/%.app,$(sort $(wildcard programs/*.asm)))
SONGS := $(patsubst content/%.mus,build/%.mmf,$(sort $(wil... | 54,538 |
https://github.com/Olli/mating-manager/blob/master/db/migrate/20110220162509_create_deliveries.rb | Github Open Source | Open Source | MIT | 2,015 | mating-manager | Olli | Ruby | Code | 36 | 141 | class CreateDeliveries < ActiveRecord::Migration
def self.up
create_table :deliveries do |t|
t.integer :user_id
t.integer :mating_apiary_id
t.integer :mating_unit_id
t.integer :amount
t.date :incomedate
t.date :pickupdate
t.string :state, :default => "requested"
... | 11,528 |
https://github.com/labfisdas/fisdascms/blob/master/webpack.mix.js | Github Open Source | Open Source | MIT | 2,021 | fisdascms | labfisdas | JavaScript | Code | 76 | 333 | const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... | 29,219 |
https://github.com/landon/WebGraphs/blob/master/GraphsCore/SerializationClasses.cs | Github Open Source | Open Source | MIT | 2,021 | WebGraphs | landon | C# | Code | 235 | 731 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Graphs
{
[DataContract(Name = "Vector")]
public class SerializationVector
{
[DataMember]
public double X;
[DataMember]
public double Y;
... | 6,311 |
https://github.com/Desarrollo-UCar/DesarrolloUcar/blob/master/app/Http/Controllers/EmpleadoController.php | Github Open Source | Open Source | MIT | null | DesarrolloUcar | Desarrollo-UCar | PHP | Code | 621 | 5,158 | <?php
namespace App\Http\Controllers;
use App\Empleado;
use App\Sucursal;
use App\EmpleadoSucursal;
use Illuminate\Http\Request;
use phpDocumentor\Reflection\Types\Nullable;
use Illuminate\Support\Facades\Storage;
use phpDocumentor\Reflection\DocBlock\Tags\Return_;
class EmpleadoController extends Controller
{
... | 8,414 |
https://github.com/aserdobintsev/NativeProtocolBinding/blob/master/Makefile | Github Open Source | Open Source | MIT | null | NativeProtocolBinding | aserdobintsev | Makefile | Code | 81 | 442 | BINDDIR=/src/binding
XBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
PROJECT_ROOT=NativeProtocol
PROJECT=$(PROJECT_ROOT)/NativeProtocol.xcodeproj
TARGET=NativeProtocol
BTOUCH=/Developer/MonoTouch/usr/bin/btouch-native
all: mobix.nativeprotocol.dll
libNativeProtocol-i386.a:
$(XBUILD) -project $(... | 9,670 |
https://github.com/jkrzefski/php-unit-conversion/blob/master/src/Unit/Volume/CubicYard.php | Github Open Source | Open Source | MIT | 2,017 | php-unit-conversion | jkrzefski | PHP | Code | 28 | 91 | <?php
namespace PhpUnitConversion\Unit\Volume;
use PhpUnitConversion\Traits\HasRelativeFactor;
class CubicYard extends CubicInch
{
use HasRelativeFactor;
const FACTOR = 27 * 1728;
const SYMBOL = 'yd3';
const LABEL = 'cubic yard';
}
| 22,423 |
https://github.com/bdraco/FreeRTOScpp/blob/master/TimerCPP.h | Github Open Source | Open Source | MIT | 2,020 | FreeRTOScpp | bdraco | C++ | Code | 537 | 1,340 | /**
* @file TimerCPP.h
* @copyright (c) 2016 Richard Damon
* @author Richard Damon <richard.damon@gmail.com>
* @parblock
* MIT License:
*
* 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 Softw... | 2,645 |
https://github.com/huhlig/vcpu16-rs/blob/master/src/system/clock.rs | Github Open Source | Open Source | Apache-2.0 | 2,021 | vcpu16-rs | huhlig | Rust | Code | 50 | 112 | pub struct Clock {
halted: bool,
cycles: u64,
}
impl Clock {
pub fn new() {
Clock {
halted: false,
cycles: 0,
}
}
pub fn halted(&self) -> bool { self.halted }
pub fn cycles(&self) -> u64 { self.cycles }
pub fn step(&mut self) { self.cycles += 1 }
} | 53,323 |
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/p/pulumi__kubernetes/src/main/scala/typings/pulumiKubernetes/outputMod/core/v1/VolumeProjection.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | BeastNeedsMoreTorque | Scala | Code | 116 | 337 | package typings.pulumiKubernetes.outputMod.core.v1
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
/**
* Projection that may be projected along with other supported volume types
*/
trait VolumeProjection extends js.Object {
/**
* information about the configMap data ... | 41,557 |
https://github.com/Jason360i/freznoshop/blob/master/app/Backend/Admin/Controllers/CategoriesController.php | Github Open Source | Open Source | MIT | 2,017 | freznoshop | Jason360i | PHP | Code | 135 | 395 | <?php
namespace App\Backend\Admin\Controllers;
use App\Models\Category;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class CategoriesController extends Controller
{
public function index()
{
$top_cat = Category::where('parent_id', '===', 0)->get();
$parent_cat = Category::... | 4,948 |
https://github.com/mdperveshossen/Ecoproperty/blob/master/resources/views/admin/Working_service/show.blade.php | Github Open Source | Open Source | MIT | null | Ecoproperty | mdperveshossen | PHP | Code | 161 | 719 | @extends('layouts.dashboard_app')
@section('title')
Update | Working service | dashboard
@endsection
@section('service')
active
@endsection
@section('dashboard_content')
<!-- ########## START: MAIN PANEL ########## -->
<div class="sl-mainpanel">
<nav class="breadcrumb sl-breadcrumb">
<a class="b... | 38,095 |
https://github.com/rinfo/rdl/blob/master/manage/install_collectreg_server.sh | Github Open Source | Open Source | BSD-2-Clause | 2,016 | rdl | rinfo | Shell | Code | 29 | 90 | #!/bin/sh
# Installs all necessary compontents for a server to act as a regression test server
fab target.collectreg sysconf.install_server sysconf.configure_server
fab target.collectreg app.service.install_elasticsearch
fab target.collectreg app.service.start_elasticsearch
fab target.collectreg app.service.deploy_ses... | 19,651 |
https://github.com/Boyquotes/godot_threads/blob/master/thread.gd | Github Open Source | Open Source | MIT | 2,020 | godot_threads | Boyquotes | GDScript | Code | 221 | 714 | class_name ThreadContainer
# https://godotengine.org/qa/33120/how-do-thread-and-wait_to_finish-work
var time_start = 0
var data = {}
#var thread = Thread.new()
var thread = null
#var psa = PoolStringArray()
# warning-ignore:unused_signal
signal send_log
# warning-ignore:unused_signal
signal begin
# warning-ignore:un... | 34,909 |
https://github.com/ngaud/sarl/blob/master/plugins/io.sarl.eclipse/src/io/sarl/eclipse/wizards/elements/newcapacity/NewSarlCapacityWizardPage.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | sarl | ngaud | Java | Code | 265 | 961 | /*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2015 Sebastian RODRIGUEZ, Nicolas GAUD, Stéphane GALLAND.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | 9,944 |
https://github.com/K0V0/CarrierwaveWithBase64/blob/master/spec/uploader/versions_spec.rb | Github Open Source | Open Source | Unlicense | null | CarrierwaveWithBase64 | K0V0 | Ruby | Code | 1,456 | 7,622 | # encoding: utf-8
require 'spec_helper'
describe CarrierWave::Uploader do
before do
@uploader_class = Class.new(CarrierWave::Uploader::Base)
@uploader = @uploader_class.new
end
after do
FileUtils.rm_rf(public_path)
end
describe '.version' do
it "should add it to .versions" do
@uploa... | 54,054 |
https://github.com/lolive/QueryGraph/blob/master/src/data/saveManager.js | Github Open Source | Open Source | MIT | 2,022 | QueryGraph | lolive | JavaScript | Code | 158 | 541 |
/**
* Class for menage query save in localstorage
*/
QueryGraph.Data.SaveManager = class SaveManager
{
constructor()
{
/**
* @property {QueryGraph.Data.LoadManager} loadManager Loading manager
*/
this.loadManager = null;
}
/**
* @property {String} ... | 54,367 |
https://github.com/kovalandrew/moko-mvvm/blob/master/mvvm-livedata/src/iosMain/kotlin/dev/icerock/moko/mvvm/livedata/deprecated/UISwitchBindings.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | moko-mvvm | kovalandrew | Kotlin | Code | 59 | 242 | /*
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch")
package dev.icerock.moko.mvvm.livedata
import platform.UIKit.UISwitch
@Deprecated(
"Use UISwitch.bindSwitchOn",
replaceWith = ReplaceWith("UISwitch.bindSwitchOn... | 7,878 |
https://github.com/Chef-Portfolio-2-BW/Marketing-Page-2/blob/master/less/home-page.less | Github Open Source | Open Source | MIT | null | Marketing-Page-2 | Chef-Portfolio-2-BW | Less | Code | 151 | 817 |
.top-section {
.diningIMG {
background-image: url(https://images.pexels.com/photos/1243337/pexels-photo-1243337.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260);
.parallax(600px);
@media @tablet {
height: 300px;
background-attachment: scrol... | 49,993 |
https://github.com/vincentndo/Pintos_3_-_File_Systems/blob/master/pintos/src/tests/userprog/G22-remove.ck | Github Open Source | Open Source | MIT-Modern-Variant, LicenseRef-scancode-unknown-license-reference, MIT | 2,017 | Pintos_3_-_File_Systems | vincentndo | Perl | Code | 41 | 152 | # -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected ([<<'EOF']);
(G22-remove) begin
(G22-remove) create G22_file_1.txt
(G22-remove) remove G22_file_1.txt
(G22-remove) create G22_file_2.txt
(G22-remove) open G22_file_2.txt
(G22-remove) remove G22_file_2.txt
(G22-remove) still write successfully aft... | 32,339 |
https://github.com/winhowes/freeText/blob/master/example.php | Github Open Source | Open Source | MIT | null | freeText | winhowes | PHP | Code | 14 | 52 | <?php
require_once('./freeText.php');
$freeText = new FreeText;
$result = $freeText->getCarrier($argv[1]);
echo "Carrier is $result\n";
?>
| 47,680 |
https://github.com/lrleon/brick/blob/master/Resources/install/brick/brick.desktop | Github Open Source | Open Source | WTFPL, LicenseRef-scancode-unknown-license-reference | 2,015 | brick | lrleon | null | Spoken | 11 | 55 | [Desktop Entry]
Encoding=UTF-8
Name=Brick
Comment=Bitrix24 messenger
Type=Application
Categories=Network;InstantMessaging;
Exec=brick
Icon=brick
Terminal=false
| 13,339 |
https://github.com/richardz316/usstore/blob/master/src/sg/edu/nus/iss/uss/service/ProductService.java | Github Open Source | Open Source | MIT | null | usstore | richardz316 | Java | Code | 95 | 307 | package sg.edu.nus.iss.uss.service;
import java.util.ArrayList;
import java.util.List;
import sg.edu.nus.iss.uss.model.Product;
public class ProductService extends UssCommonService {
private List<Product> productList = null;
public Product getProductByProductID(String productID){
//TODO TBI
return null;... | 13,461 |
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testData/ig/com/siyeh/igtest/redundancy/unnecessary_string_escape/SingleQuoteInString.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Java | Code | 45 | 127 | class X {
String s = "'";
char c = '\'';
String t = "\\'";
String u = "<warning descr="'\'' is unnecessarily escaped"><caret>\'</warning>";
String v = "Escape <warning descr="'\'' is unnecessarily escaped">\'</warning>'{0}'<warning descr="'\'' is unnecessarily escaped">\'</warning>";
String w = "<warning d... | 35,211 |
https://github.com/Xsolute/geeks-diary/blob/master/src/browser/app/app-settings/general-settings/general-settings.component.ts | Github Open Source | Open Source | MIT | 2,019 | geeks-diary | Xsolute | TypeScript | Code | 94 | 308 | import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Subscription } from 'rxjs';
import { ThemeService } from '../../../shared';
import { Themes } from '../../../ui/style';
@Component({
selector: 'gd-general-settings',
templateUrl: './general-set... | 41,311 |
https://github.com/aoijs/music/blob/master/lib/structures/Cache.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | music | aoijs | JavaScript | Code | 491 | 1,514 | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | 2,573 |
https://github.com/mufunyo/VisionRGBApp/blob/master/Win32xx/samples/DockTabbedMDI/src/Classes.h | Github Open Source | Open Source | Unlicense | 2,021 | VisionRGBApp | mufunyo | C | Code | 129 | 389 | //////////////////////////////////////////////////////////
// Classes.h - Declaration of CViewClasses, CContainClasses,
// and CDockClasses classes
#ifndef CLASSES_H
#define CLASSES_H
#include "MyCombo.h"
// Declaration of the CViewClasses class
class CViewClasses : public CTreeView
{
public:
CVi... | 10,233 |
https://github.com/dylangrech92/seotoolbox/blob/master/js/crawler_init.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | seotoolbox | dylangrech92 | JavaScript | Code | 58 | 281 | (function($){
$.ajax({
url : '/seotest/urlsAndSettings',
dataType : 'json',
success : function( result ){
if( !result ) throw "Error loading initial urls and settings";
$('#init-form').fadeIn();
$('#init-crawler-btn').click(function(){
... | 12,422 |
https://github.com/hasali19/raspi3-breakout/blob/master/src/io.c | Github Open Source | Open Source | MIT | null | raspi3-breakout | hasali19 | C | Code | 29 | 104 | #include "io.h"
#include "peripherals/auxiliaries.h"
char getchar(void)
{
return mini_uart_read();
}
void putchar(char c)
{
mini_uart_write(c);
}
/**
* _putchar implementation for printf.
*/
void _putchar(char c)
{
putchar(c);
}
| 34,659 |
https://github.com/YashTotale/word-count/blob/master/src/WordCountList.java | Github Open Source | Open Source | MIT | 2,021 | word-count | YashTotale | Java | Code | 665 | 1,690 | import java.util.ArrayList;
import java.util.Arrays;
public class WordCountList {
private WordCount[] list;
public WordCountList() {
this.list = new WordCount[0];
}
public WordCountList(WordCount[] arr) {
this.list = arr;
}
//Add
/**
* Adds the WordCount alphabeticall... | 50,804 |
https://github.com/ghsecuritylab/tomato_egg/blob/master/release/src-rt/linux/linux-2.6/drivers/usb/host/Makefile | Github Open Source | Open Source | FSFAP | 2,022 | tomato_egg | ghsecuritylab | Makefile | Code | 42 | 261 | #
# Makefile for USB Host Controller Drivers
#
ifeq ($(CONFIG_USB_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
obj-$(CONFIG_PCI) += pci-quirks.o
obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
obj-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
obj-$(CONFIG_USB_OHCI_HCD) += ohci-hcd.o
obj-$(CONFIG_USB_UHCI_HCD) += uhci-hcd.o
obj-... | 28,249 |
https://github.com/torkuds/laichushu/blob/master/app/src/main/java/com/laichushu/book/bean/netbean/HomeSearch_Paramet.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | laichushu | torkuds | Java | Code | 116 | 335 | package com.laichushu.book.bean.netbean;
/**
* home 搜索
* Created by wangtong on 2016/11/2.
*/
public class HomeSearch_Paramet {
private String complexName;
private String pageSize;
private String pageNo;
private String userId;
public HomeSearch_Paramet(String name, String pageSize, String pageN... | 19,362 |
https://github.com/lijiahangmax/orion-ops/blob/master/orion-ops-service/src/main/java/com/orion/ops/consts/AuditStatus.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | orion-ops | lijiahangmax | Java | Code | 74 | 223 | package com.orion.ops.consts;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 审核状态
*
* @author Jiahang Li
* @version 1.0.0
* @since 2021/7/10 20:42
*/
@AllArgsConstructor
@Getter
public enum AuditStatus {
/**
* 通过
*/
RESOLVE(10),
/**
* 驳回
*/
REJECT(20),
;... | 7,450 |
https://github.com/comeoninc/nativescript-cli/blob/master/lib/commands/update.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | nativescript-cli | comeoninc | TypeScript | Code | 115 | 416 | export class UpdateCommand implements ICommand {
public allowedParameters: ICommandParameter[] = [];
public static readonly SHOULD_MIGRATE_PROJECT_MESSAGE = 'This project is not compatible with the current NativeScript version and cannot be updated. Use "tns migrate" to make your project compatible.';
public static ... | 44,116 |
https://github.com/Accedian/bigmuddy-network-telemetry-pipeline/blob/master/vendor/github.com/cisco/bigmuddy-network-telemetry-proto/proto_go/cisco_ios_xr_ipv6_ospfv3_oper/ospfv3/processes/process/default_vrf/redistributions/redistribution/a.go | Github Open Source | Open Source | Apache-2.0 | null | bigmuddy-network-telemetry-pipeline | Accedian | Go | Code | 8 | 110 |
//go:generate protoc --go_out=plugins=grpc:. ospfv3_edm_redist.proto
// Cisco-IOS-XR-ipv6-ospfv3-oper:ospfv3/processes/process/default-vrf/redistributions/redistribution
package cisco_ios_xr_ipv6_ospfv3_oper_ospfv3_processes_process_default_vrf_redistributions_redistribution
| 5,216 |
https://github.com/gcnyin/vproxy/blob/master/base/src/main/c/xdp/Makefile | Github Open Source | Open Source | MIT | 2,022 | vproxy | gcnyin | Makefile | Code | 106 | 454 | .PHONY: clean
clean:
rm -f .libbpf
cd libbpf/src && make clean
rm -f sample_user
rm -f sample_kern.ll
rm -f sample_kern.o
.libbpf:
cd libbpf/src && make
touch .libbpf
linux-gnu-lib := $(shell echo /usr/lib/`uname -m`-linux-gnu)
linux-gnu-include := $(shell echo /usr/include/`uname -m`-linux-gnu)
.PHONY: libbp... | 45,281 |
https://github.com/cevadtokatli/smart-react-components/blob/master/src/modal/Body.test.tsx | Github Open Source | Open Source | MIT | 2,022 | smart-react-components | cevadtokatli | TypeScript | Code | 87 | 289 | import React from "react"
import getStyle from "../test/getStyle"
import Body from "./Body"
import theme from "../theme"
describe("<Body />", () => {
it("should add CSS references by default props", () => {
const style = getStyle(<Body />, Body)
expect(style.getPropertyValue("flex")).toEqual("1 1 a... | 43,440 |
https://github.com/zeruth/quest-helper/blob/master/src/main/java/com/questhelper/banktab/QuestHelperBankTagService.java | Github Open Source | Open Source | BSD-2-Clause | 2,023 | quest-helper | zeruth | Java | Code | 525 | 1,818 | /*
* Copyright (c) 2021, Zoinkwiz <https://github.com/Zoinkwiz>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notic... | 15,628 |
https://github.com/deeplearning4j/deeplearning4j/blob/master/libnd4j/include/ops/declarable/generic/kernels/knn_mindistance.cpp | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause | 2,023 | deeplearning4j | deeplearning4j | C++ | Code | 217 | 622 | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... | 51,400 |
https://github.com/Cerberrus/aic-test/blob/master/client/config/webpack/webpack.config.js | Github Open Source | Open Source | MIT | 2,021 | aic-test | Cerberrus | JavaScript | Code | 80 | 261 | const {merge} = require('webpack-merge')
module.exports = (env, argv) => {
process.env.NODE_ENV = argv.mode;
const legacyJS = require('./js.legacy.config')
const modernJs = require('./js.modern.config')
const serverConfig = require('./server.config')
const svgConfig = require('./svg.con... | 46,872 |
https://github.com/mpawlucz/bitforex-java-api/blob/master/src/main/java/com/github/mpawlucz/bitforex/domain/response/items/OpenOrderEntry.java | Github Open Source | Open Source | MIT | null | bitforex-java-api | mpawlucz | Java | Code | 32 | 145 | package com.github.mpawlucz.bitforex.domain.response.items;
import com.google.gson.annotations.SerializedName;
import lombok.*;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OpenOrderEntry {
@SerializedName("createTime")
private Long createTime;
@SerializedName("orderId")... | 9,365 |
https://github.com/fashionbrot/mars-dynamic-config/blob/master/core/src/main/java/com/github/fashionbrot/mapper/DynamicDataMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | mars-dynamic-config | fashionbrot | Java | Code | 73 | 380 |
package com.github.fashionbrot.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.fashionbrot.dto.DataDynamicJsonDTO;
import com.github.fashionbrot.entity.DynamicDataEntity;
import com.github.fashionbrot.req.DynamicDataReq;
import com.github.fashionbrot.vo.DataDynamicVo;
import org.apac... | 39,096 |
https://github.com/maspriyambodo/sertifikasiku/blob/master/db_template/bckup/sertif_table_sys_roles.sql | Github Open Source | Open Source | MIT | null | sertifikasiku | maspriyambodo | SQL | Code | 235 | 673 |
-- --------------------------------------------------------
--
-- Table structure for table `sys_roles`
--
DROP TABLE IF EXISTS `sys_roles`;
CREATE TABLE `sys_roles` (
`id` int NOT NULL,
`parent_id` int NOT NULL DEFAULT '0',
`name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`d... | 53,543 |
https://github.com/wskyt/carrot2/blob/master/core/carrot2-util-text/src-test/org/carrot2/text/preprocessing/filter/QueryLabelFilterTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-bsd-ack-carrot2 | 2,017 | carrot2 | wskyt | Java | Code | 219 | 638 |
/*
* Carrot2 project.
*
* Copyright (C) 2002-2016, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.text.preprocessing.filter;
imp... | 45,298 |
https://github.com/dalerhoda/vcqi-stata-public/blob/master/SIA/SIA_COVG_01_01PP.ado | Github Open Source | Open Source | MIT | 2,021 | vcqi-stata-public | dalerhoda | null | Spoken | 122 | 470 | *! SIA_COVG_01_01PP version 1.04 - Biostat Global Consulting - 2019-02-15
*******************************************************************************
* Change log
* Updated
* version
* Date number Name What Changed
* 2016-02-12 1.01 Dale Rhoda Make list of temp datasets
* 2017-01-30 1.02 Dale Rhoda ... | 53,145 |
https://github.com/ozars/shadow-passgen/blob/master/shadowgen-docker-data/usergen.sh | Github Open Source | Open Source | BSD-2-Clause | null | shadow-passgen | ozars | Shell | Code | 40 | 134 | #!/bin/sh
i=1
while read PASSWORD; do
if [ ! -z "${PASSWORD}" ]; then
NEW_USER="netsec${i}"
echo "!!! CREATING: User '${NEW_USER}' with password '${PASSWORD}'..."
useradd "${NEW_USER}"
echo "${NEW_USER}:${PASSWORD}" | chpasswd
i=$(expr ${i} + 1)
fi
done
echo "SHADOW_BEG... | 23,356 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/math/p5-Math-Calc-Units/Makefile | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 36 | 235 | # $NetBSD: Makefile,v 1.6 2021/05/24 19:52:58 wiz Exp $
DISTNAME= Math-Calc-Units-1.07
PKGNAME= p5-${DISTNAME}
PKGREVISION= 4
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/S/SF/SFINK/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://metacpan.org/pod/Math::Calc::Units
COMMENT= Hu... | 16,527 |
https://github.com/crcn-archive/beet/blob/master/lib/index.js | Github Open Source | Open Source | MIT | null | beet | crcn-archive | JavaScript | Code | 478 | 1,516 | var EventEmitter = require('sk/core/events').EventEmitter,
exec = require('child_process').exec,
Configuration = require('./models/configuration'),
supervisord = require('supervisord'),
nodefs = require('node-fs'),
crypto = require('crypto'),
fs = require('fs'),
_ = require('underscore');
function fileExists(path) {
... | 22,361 |
https://github.com/xyperia/telegram-chatbot-backend/blob/master/src/app.module.ts | Github Open Source | Open Source | MIT | null | telegram-chatbot-backend | xyperia | TypeScript | Code | 71 | 193 | import { Module } from '@nestjs/common';
import { MenuModule } from './menu/menu.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ApiModule } from './api/api.module';
import { LogModule } from './log/log.module';
import { UserModule } from './user/user.module';
import { ConfigModule } from './config/c... | 38,835 |
https://github.com/Nisshan/collegeproject/blob/master/resources/js/components/NewsPostComponents/StateNews.js | Github Open Source | Open Source | MIT | null | collegeproject | Nisshan | JavaScript | Code | 203 | 716 | import React, { Component ,Fragment} from 'react';
import { Route, Link } from "react-router-dom";
import SingleBlogPost from './SingleBlogPost';
import { SinglePageNews } from '../NewsLayout/SinglePageNews';
import { DistrictNews } from './DistrictNews';
import { MainPostArea } from '../NewsContentArea/MainPostArea';
... | 13,391 |
https://github.com/Bpazy/eql-plugin/blob/master/src/main/java/com/github/bpazy/eql/linemarker/EqlLineMarkerInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | eql-plugin | Bpazy | Java | Code | 38 | 210 | package com.github.bpazy.eql.linemarker;
import com.github.bpazy.eql.Configs;
import com.intellij.codeInsight.daemon.LineMarkerInfo;
import com.intellij.openapi.editor.markup.GutterIconRenderer;
import com.intellij.psi.PsiElement;
import java.util.Random;
public class EqlLineMarkerInfo extends LineMarkerInfo<PsiElem... | 37,433 |
https://github.com/imadmali/bball-hmm/blob/master/models/defense_1.stan | Github Open Source | Open Source | BSD-3-Clause | 2,021 | bball-hmm | imadmali | null | Spoken | 330 | 969 | // defensive model 1 estimate transition matrix (assignment for all 5 defenders)
data {
int<lower=0> N; // number of time steps
int<lower=0> K; // number of offensive players
int<lower=0> I; // number of defenders
real<lower=0> tau; // scale parameter associated with convex combination
ve... | 46,166 |
https://github.com/sarvex/crates.io/blob/master/app/templates/settings/tokens/new.hbs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | crates.io | sarvex | null | Spoken | 249 | 1,347 | <h2>New API Token</h2>
<form local-class="form" {{on "submit" (prevent-default (perform this.saveTokenTask))}}>
<div local-class="form-group" data-test-name-group>
{{#let (unique-id) as |id|}}
<label for={{id}} local-class="form-group-name">Name</label>
<Input
id={{id}}
@type="text"
... | 2,771 |
https://github.com/dankennedy/MigraDoc/blob/master/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/ListInfoOverrideRenderer.cs | Github Open Source | Open Source | MIT | null | MigraDoc | dankennedy | C# | Code | 338 | 784 | #region MigraDoc - Creating Documents on the Fly
//
// Authors:
// Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com)
//
// Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany)
//
// http://www.pdfsharp.com
// http://www.migradoc.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby g... | 6,717 |
https://github.com/nipunsingha/shop_app/blob/master/application/models/loginModel.php | Github Open Source | Open Source | MIT | null | shop_app | nipunsingha | PHP | Code | 41 | 165 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class loginModel extends CI_Model {
var $table = 'tbl_user';
public function __construct()
{
parent::__construct();
//$this->load->database();
}
public function login_user($username){
$this->db->from('tbl... | 43,871 |
https://github.com/olehkhol/WeatherComparator/blob/master/app/src/main/java/ua/in/khol/oleh/touristweathercomparer/views/ViewBinding.java | Github Open Source | Open Source | Apache-2.0 | null | WeatherComparator | olehkhol | Java | Code | 14 | 60 | package ua.in.khol.oleh.touristweathercomparer.views;
import androidx.databinding.ViewDataBinding;
public interface ViewBinding<T extends ViewDataBinding> {
void initBinding(T t);
}
| 45,381 |
https://github.com/pedronline/DevForm/blob/master/backend/src/index.js | Github Open Source | Open Source | MIT | null | DevForm | pedronline | JavaScript | Code | 51 | 180 | const express = require("express");
const cors = require("cors");
const routes = require("./routes");
const dotenv = require("dotenv").config();
const mongoose = require("mongoose").connect(`${process.env.MONGO_URI}`, {
useNewUrlParser: true,
useUnifiedTopology: true
});
const port = process.env.PORT || 3333;
con... | 24,408 |
https://github.com/Bnei-Baruch/mdb-admin/blob/master/src/components/File/tabs/danger/DangerZoneTab.js | Github Open Source | Open Source | MIT | 2,019 | mdb-admin | Bnei-Baruch | JavaScript | Code | 313 | 1,065 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {
Button, Dropdown, Grid, Header, Icon, List, Modal, Segment
} from 'semantic-ui-react';
import { EMPTY_OBJECT, SECURITY_LEVELS } from '../../../../h... | 10,906 |
https://github.com/nikulinn/angular-gulp/blob/master/node_modules/@angular/router/src/private_export.js | Github Open Source | Open Source | MIT | 2,022 | angular-gulp | nikulinn | JavaScript | Code | 67 | 155 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ROUTES } from './router_config_loader';
import { ROUTER_PROVIDERS } from './router_module';
import { flatten... | 31,190 |
https://github.com/Plasmmer/loopring-pay/blob/master/src/modals/MaintenanceModal.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | loopring-pay | Plasmmer | JavaScript | Code | 116 | 432 | import { MyModal } from "./styles/Styles";
import { withTheme } from "styled-components";
import AppLayout from "AppLayout";
import I from "components/I";
import React from "react";
import { Instruction, Section, TextPopupTitle } from "modals/styles/Styles";
class MaintenanceModal extends React.Component {
render()... | 37,060 |
https://github.com/Bianca-22/projeto-twitter/blob/master/prisma/migrations/20211007225824_create_tweet/migration.sql | Github Open Source | Open Source | MIT | null | projeto-twitter | Bianca-22 | SQL | Code | 59 | 192 | -- CreateTable
CREATE TABLE `Tweet` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updatedAt` DATETIME(3) NOT NULL,
`title` VARCHAR(191) NOT NULL,
`image` VARCHAR(191),
`authorId` VARCHAR(191),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER S... | 52,544 |
https://github.com/restiyulipradasari01/tugas_atw6/blob/master/admin-olshop/app/Http/Controllers/Konfirmasi_controller.php | Github Open Source | Open Source | MIT | 2,020 | tugas_atw6 | restiyulipradasari01 | PHP | Code | 126 | 637 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Session;
use App\Models\Konfirmasi;
use App\Models\Pesanan;
use App\Models\Pesanan_barang;
use App\Models\Barang;
class Konfirmasi_controller extends Controller
{
public function index()
{
$title = 'List konfirmasi pembayaran';
... | 18,571 |
https://github.com/suxun2003/fenfa/blob/master/cms/libraries/Template/plugins/block.applist.php | Github Open Source | Open Source | MIT | 2,019 | fenfa | suxun2003 | PHP | Code | 318 | 1,302 | <?php
function smarty_block_applist($params, $content, $template, &$repeat)
{
$cid = isset($params['id']) ? intval($params['id']) : 0;
$parent = isset($params['parent']) ? intval($params['parent']) : 0;
$num = isset($params['row']) ? intval($params['row']) : 10;
$start = isset($... | 27,348 |
https://github.com/technohippy/red-grape/blob/master/lib/red_grape/pipe/cap_pipe.rb | Github Open Source | Open Source | Unlicense, MIT | 2,017 | red-grape | technohippy | Ruby | Code | 34 | 117 | require 'red_grape/pipe/base'
module RedGrape
module Pipe
class CapPipe < Pipe::Base
def pass(obj, context)
ret = {}
context.grouping_items.each do |k, v|
v = v.map &:first
ret[k] = self.pipe_eval(it:v, &self.prev.reduce_function)
end
ret
end
en... | 48,367 |
https://github.com/SolitudeSF/elvish/blob/master/pkg/eval/builtin_fn_misc.go | Github Open Source | Open Source | BSD-2-Clause | 2,021 | elvish | SolitudeSF | Go | Code | 1,854 | 4,138 | package eval
// Misc builtin functions.
import (
"errors"
"fmt"
"io/ioutil"
"math/rand"
"net"
"strconv"
"sync"
"time"
"unicode/utf8"
"github.com/elves/elvish/pkg/eval/vals"
"github.com/elves/elvish/pkg/eval/vars"
"github.com/elves/elvish/pkg/parse"
)
// Builtins that have not been put into their own gro... | 20,588 |
https://github.com/LaudateCorpus1/RosettaCodeData/blob/master/Task/Host-introspection/Ada/host-introspection.ada | Github Open Source | Open Source | Info-ZIP | 2,018 | RosettaCodeData | LaudateCorpus1 | Ada | Code | 26 | 88 | with Ada.Text_IO; use Ada.Text_IO;
with System; use System;
procedure Host_Introspection is
begin
Put_Line ("Word size" & Integer'Image (Word_Size));
Put_Line ("Endianness " & Bit_Order'Image (Default_Bit_Order));
end Host_Introspection;
| 45,022 |
https://github.com/MerDoLive/AdminPanel/blob/master/application/views/category_level2/form.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | AdminPanel | MerDoLive | PHP | Code | 444 | 2,100 | <?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/left_panel'); ?>
<section id="content">
<div class="container">
<div class="card">
<div class="card-header">
<div class="col-md-4" style="padding: 0"><h3><i class="zmdi zmdi-city-al... | 31,480 |
https://github.com/michaelphines/tap-bot/blob/master/spec/tap_bot_spec.rb | Github Open Source | Open Source | MIT | null | tap-bot | michaelphines | Ruby | Code | 66 | 202 | $LOAD_PATH << File.expand_path("../../lib", __FILE__)
require 'rspec'
require 'tap_bot'
describe TapBot do
describe ".fit_ratio" do
it "returns the width ratio if smaller" do
ratio = TapBot.fit_ratio([2,4], [1,4])
expect(ratio).to eq(0.5)
end
it "returns the height ratio if smaller" do
... | 2,789 |
https://github.com/jufeng98/java-master/blob/master/spring-transactional/src/main/java/org/javamaster/spring/transactional/service/impl/AddressServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | java-master | jufeng98 | Java | Code | 430 | 1,560 | package org.javamaster.spring.transactional.service.impl;
import lombok.SneakyThrows;
import org.javamaster.spring.transactional.service.AddressHelper;
import org.javamaster.spring.transactional.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.... | 30,093 |
https://github.com/AsahiOS/gate/blob/master/usr/src/man/man2/setrctl.2 | Github Open Source | Open Source | MIT | null | gate | AsahiOS | null | Spoken | 1,487 | 3,506 | '\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPEN... | 36,505 |
https://github.com/microsoft/win32metadata/blob/master/generation/WinSDK/RecompiledIdlHeaders/ucrt/safeint_internal.h | Github Open Source | Open Source | MIT | 2,023 | win32metadata | microsoft | C++ | Code | 11,405 | 29,044 | /***
*safeint_internal.h - Internal details for SafeInt (see safeint.h)
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Private internal details for SafeInt.
* The constructs and functions in Microsoft::Utilities::details are not
* meant to be used by external code an... | 34,079 |
https://github.com/dzlabsch/immudb/blob/master/cmd/immugw/immugw.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | immudb | dzlabsch | Go | Code | 401 | 1,594 | package main
import (
"context"
"errors"
"flag"
"fmt"
"github.com/codenotary/immudb/pkg/api/schema"
rp "github.com/codenotary/immudb/pkg/client"
"github.com/codenotary/immudb/pkg/client/cache"
"github.com/codenotary/immudb/pkg/gw"
"github.com/codenotary/immudb/pkg/logger"
"github.com/golang/protobuf/ptypes/e... | 18,031 |
https://github.com/Ytaydin/kodluyoruzilkrepo/blob/master/SQL_EGITIMI/SQL_ODEV6.4.sql | Github Open Source | Open Source | MIT | null | kodluyoruzilkrepo | Ytaydin | SQL | Code | 10 | 24 | SELECT COUNT (DISTINCT (replacement_cost)) FROM film
WHERE length > 150; | 34,569 |
https://github.com/Bartlebys/Bundler/blob/master/Prototypes/server-prototype/Flexions/src/flexions/core/MetaFlexer.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | Bundler | Bartlebys | PHP | Code | 1,753 | 5,793 | <?php
require_once __DIR__ . '/FlexersConsts.php';
require_once __DIR__ . '/BJMParser.php';
require_once __DIR__ . '/PathsFlexer.php';
require_once __DIR__ . '/ProjectFlexer.php';
require_once __DIR__ . '/ActionFlexer.php';
require_once __DIR__ . '/EntityFlexer.php';
require_once __DIR__ . '/DescriptorsMerger.php';
re... | 22,467 |
https://github.com/wang1365/storm-traffic/blob/master/src/main/java/com/xiaochuan/wang/stormtraffic/topology/TrafficKPITopologyBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | storm-traffic | wang1365 | Java | Code | 163 | 1,039 | package com.xiaochuan.wang.stormtraffic.topology;
import com.xiaochuan.wang.stormtraffic.bolt.*;
import com.xiaochuan.wang.stormtraffic.config.AppConfig;
import com.xiaochuan.wang.stormtraffic.config.DbConfig;
import com.xiaochuan.wang.stormtraffic.config.TrafficPersistenceBolt;
import com.xiaochuan.wang.stormtraffic.... | 420 |
https://github.com/DmytroGerasymchuk/sqlselect/blob/master/sqlselect/sqlselect.sln | Github Open Source | Open Source | MIT | 2,017 | sqlselect | DmytroGerasymchuk | null | Spoken | 312 | 3,907 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sqlselect", "sqlselect\sqlselect.vcxproj", "{2F6C1053-3700-43ED-8CD8-8C2C3E1BB95B}"
EndProject
Project("{8BC9... | 31,127 |
https://github.com/serenity-is/Serenity/blob/master/src/Serenity.Net.Entity/Extensions/EntityServiceCollectionExtensions.cs | Github Open Source | Open Source | MIT | 2,023 | Serenity | serenity-is | C# | Code | 80 | 228 | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace Serenity.Extensions.DependencyInjection;
/// <summary>
/// Contains extensions to register entity services
/// </summary>
public static class EntityServiceCollectionExtensions
{
/// <summary>
... | 38,463 |
https://github.com/konradwrzeszcz/4Developers/blob/master/TravelAgency.Tests/DeclarativeCode/TravelMappingsTests.cs | Github Open Source | Open Source | MIT | 2,021 | 4Developers | konradwrzeszcz | C# | Code | 111 | 326 | using System;
using FluentAssertions;
using TravelAgency;
using TravelAgency.DeclarativeCode;
using Xunit;
namespace Tests.DeclarativeCode {
public class TravelMappingsTests {
[Fact]
public void should_map() {
//arrange
var source = new TravelDataStore.Travel {
... | 25,891 |
https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Advanced-Methods-and-Deep-Learning/blob/master/data/section 1/GP/part7/msg10774.eml | Github Open Source | Open Source | MIT | 2,021 | Machine-Learning-for-OpenCV-Advanced-Methods-and-Deep-Learning | PacktPublishing | null | Spoken | 306 | 799 | From: "Harry Lawrence" <zfcdyuaymlwm@linkline.com>
To: <paliourg@iit.demokritos.gr>
Cc: <gtsak@iit.demokritos.gr>
Subject: sperm count by 5 times
Date: Mon, 27 Jun 2005 14:16:34 +0300
MIME-Version: 1.0
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3
X-MSMail-Pri... | 53,509 |
https://github.com/ilikeorangutans/omf-contrib/blob/master/jcr2pojo/src/main/java/org/om/jcr2pojo/classgenerator/DAOGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | omf-contrib | ilikeorangutans | Java | Code | 293 | 778 | /*
* Copyright 2012 Tom Everett
*
* 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... | 38,903 |
https://github.com/DamiFlutter/flutter-ui-kits/blob/master/news_ui/lib/pages/page_switch.dart | Github Open Source | Open Source | MIT | 2,021 | flutter-ui-kits | DamiFlutter | Dart | Code | 96 | 431 | import 'package:flutter/material.dart';
import 'package:news_ui/pages/category_selection.dart';
import 'package:news_ui/pages/home.dart';
import 'package:news_ui/utils/constants.dart';
import 'package:news_ui/utils/static_data.dart';
import 'package:news_ui/widgets/bottom_bar.dart';
import 'package:news_ui/widgets/mini... | 43,260 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.