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/dubaut/aoc2019scala/blob/master/src/main/scala/net/halenka/hannes/aoc19scala/validation/NonBlankString.scala | Github Open Source | Open Source | Apache-2.0 | null | aoc2019scala | dubaut | Scala | Code | 106 | 312 | package net.halenka.hannes.aoc19scala.validation
import org.apache.commons.lang3.StringUtils
import scala.collection.StringOps
/** A container representing an non-blank _string value. */
final class NonBlankString private(private val string: String) extends SimpleValueContainer[String](string) {
assert(StringUtils... | 28,027 |
https://github.com/hmrc/self-assessment-api-legacy/blob/master/app/uk/gov/hmrc/r2/selfassessmentapi/repositories/MtdReferenceRepository.scala | Github Open Source | Open Source | Apache-2.0 | null | self-assessment-api-legacy | hmrc | Scala | Code | 217 | 722 | /*
* Copyright 2021 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... | 34,761 |
https://github.com/yuan50697105/my-project-parent/blob/master/my-boot-app-parent/my-boot-app-01/my-boot-app-01-service/my-boot-app-01-service-auth/src/main/java/org/myproject/app/service/auth/controller/AuthPermissionController.java | Github Open Source | Open Source | LicenseRef-scancode-mulanpsl-2.0-en, MulanPSL-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | my-project-parent | yuan50697105 | Java | Code | 170 | 801 | package org.myproject.app.service.auth.controller;
import ai.yue.library.base.view.Result;
import ai.yue.library.base.view.ResultInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.myproject.app.db.auth.pojo.AuthPermission;
import org.myproj... | 20,428 |
https://github.com/exercism/python/blob/master/exercises/practice/diamond/.meta/example.py | Github Open Source | Open Source | Python-2.0, BSD-3-Clause, MIT | 2,023 | python | exercism | Python | Code | 59 | 140 | def rows(letter):
lines = ord(letter) - 64
columns = lines * 2 - 1
half = make_half(lines, columns)
return half + half[-2::-1]
def make_half(lines, columns):
diamond_half = []
for number in range(lines):
row = [' '] * columns
row[lines - 1 - number] = chr(number + 65)
r... | 42,268 |
https://github.com/john-dupuy/access-requests-frontend/blob/master/src/Components/AccessRequestsTable/AccessRequestsTable.js | Github Open Source | Open Source | Apache-2.0 | null | access-requests-frontend | john-dupuy | JavaScript | Code | 1,009 | 3,990 | import React from 'react';
import {
Label,
Toolbar,
ToolbarItem,
ToolbarContent,
Button,
InputGroup,
TextInput,
Pagination,
Dropdown,
DropdownToggle,
DropdownItem,
Select,
SelectOption,
ChipGroup,
Chip,
Bullseye,
Spinner,
EmptyState,
EmptyStateIcon,
EmptyStateBody,
Title
} from... | 51,612 |
https://github.com/mongoose-os/esp-idf/blob/master/components/freertos/port/xtensa/include/freertos/portmacro_deprecated.h | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | esp-idf | mongoose-os | C | Code | 347 | 899 | /*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ---------------------------------------------------- Deprecate ------------------------------------------------------
* - Macros or functions that should be deprecated in v5.0, then removed in ... | 52,804 |
https://github.com/wazerstar/Exo-CC/blob/master/extensions/cce/src/main/jni/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,021 | Exo-CC | wazerstar | CMake | Code | 370 | 1,809 | # Sets the minimum version of CMake required to build your native library.
# This ensures that a certain set of CMake features is available to
# your build.
cmake_minimum_required(VERSION 3.6)
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__... | 12,473 |
https://github.com/TatyanaBeneva/SoftUni-Courses/blob/master/JS Advanced/Objects/Exercise/jsonTable.js | Github Open Source | Open Source | MIT | null | SoftUni-Courses | TatyanaBeneva | JavaScript | Code | 56 | 251 | function jsonTable(data){
let parseData = data.map(x => JSON.parse(x));
let createTable = content => `<table>${content}\n</table>`;
let createRow = content => `\n\t<tr>${content}\n\t</tr>`;
let createData = content => `\n\t\t<td>${content}</td>`;
let result = parseData.reduce((accRows, row) => {
... | 20,782 |
https://github.com/senorgeno/csvue/blob/master/mathspamprotection/_config.php | Github Open Source | Open Source | BSD-3-Clause | 2,013 | csvue | senorgeno | PHP | Code | 10 | 22 | <?php
/**
* Default _config file for MathSpamProtection module.
*/ | 17,650 |
https://github.com/jordyamc/UKIKU/blob/master/app/src/main/java/knf/kuma/tv/cards/SectionCardView.kt | Github Open Source | Open Source | MIT | 2,023 | UKIKU | jordyamc | Kotlin | Code | 52 | 228 | package knf.kuma.tv.cards
import android.content.Context
import android.widget.ImageView
import android.widget.TextView
import knf.kuma.R
import knf.kuma.commons.doOnUIGlobal
import knf.kuma.tv.BindableCardView
import knf.kuma.tv.sections.SectionObject
import org.jetbrains.anko.find
class SectionCardView(context: Con... | 48,858 |
https://github.com/exodos/sitemanagement/blob/master/resources/views/ports/export.blade.php | Github Open Source | Open Source | MIT | 2,021 | sitemanagement | exodos | PHP | Code | 66 | 324 | <table>
<thead>
<tr>
<th scope="col">Id</th>
<th scope="col">Name</th>
<th scope="col">Device Role</th>
<th scope="col">Slot</th>
<th scope="col">Slot Usage</th>
<th scope="col">Card Type</th>
<th scope="col">Port Usage</th>
<th scope="col">Created... | 51,430 |
https://github.com/dannycerongarcia/COMP-pgrm/blob/master/comparisonOperators.cpp | Github Open Source | Open Source | MIT | null | COMP-pgrm | dannycerongarcia | C++ | Code | 95 | 518 | // Comparison operator
// pair sorting
#include <bits/stdc++.h>
#include <string>
void pairSortingTest(std::vector<std::pair<int,int>> v)
{
std::cout<<"Before Sortign\n";
for (size_t i =0; i<v.size(); i++)
{
std::cout<<'('<<v[i].first<<'-'<<v[i].second<<')'<<' ';
}
std::sort(v.begin(),v.end... | 17,226 |
https://github.com/JhuangLabTools/iMAP/blob/master/code/preprocessing/05_get_qced_reads.bash | Github Open Source | Open Source | MIT | 2,020 | iMAP | JhuangLabTools | Shell | Code | 71 | 617 | #!/usr/bin/env bash
# cd ./data/raw/qctrim25
# for i in `ls -1 *R1_001.fastq.gz | sed 's/R1_001.fastq.gz//'`
# do
# /imap/code/bbmap/bbduk.sh -Xmx4g in1=$i\R1_001.fastq.gz in2=$i\R2_001.fastq.gz out1=/imap/data/raw/qced/$i\R1_001.nophix.fastq.gz out2=/imap/data/raw/qced/$i\R2_001.nophix.fastq.gz outm1=/imap/data/raw/q... | 45,053 |
https://github.com/uk0/teleport/blob/master/lib/auth/webauthn/login_test.go | Github Open Source | Open Source | Apache-2.0 | null | teleport | uk0 | Go | Code | 1,900 | 6,532 | /*
Copyright 2021 Gravitational, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | 50,413 |
https://github.com/escenic/TwelveMonkeys/blob/master/common/common-io/src/main/java/com/twelvemonkeys/xml/DOMSerializer.java | Github Open Source | Open Source | Unlicense, Zlib, BSD-3-Clause | 2,018 | TwelveMonkeys | escenic | Java | Code | 698 | 1,786 | /*
* Copyright (c) 2008, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... | 41,428 |
https://github.com/JosephLucas/reflex-realworld-example/blob/master/dep/servant-auth/default.nix | Github Open Source | Open Source | BSD-2-Clause | 2,022 | reflex-realworld-example | JosephLucas | null | Spoken | 29 | 119 | { nixpkgs ? import <nixpkgs> {} }: self: super:
let
gitinfo = nixpkgs.pkgs.lib.importJSON ./git.json;
servant-auth-src = nixpkgs.pkgs.fetchgit {
inherit (gitinfo) url rev sha256;
};
in self.callCabal2nix "servant-auth-snap" "${servant-auth-src}/servant-auth-snap" {}
| 37,240 |
https://github.com/apache/shardingsphere/blob/master/proxy/bootstrap/src/main/java/org/apache/shardingsphere/proxy/Bootstrap.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | shardingsphere | apache | Java | Code | 246 | 790 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 31,959 |
https://github.com/pantsbuild/pants/blob/master/src/python/pants/core/util_rules/source_files_test.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | pants | pantsbuild | Python | Code | 324 | 1,305 | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import itertools
from functools import partial
from pathlib import PurePath
from typing import Iterable, NamedTuple
import pytest
from pants.core.targ... | 4,087 |
https://github.com/j3270/SAMD_Experiments/blob/master/xdk-asf-3.51.0/thirdparty/wireless/ble_smart_sdk/services/gpio/button.c | Github Open Source | Open Source | MIT | null | SAMD_Experiments | j3270 | C | Code | 154 | 884 | #include <asf.h>
#include "button.h"
#include "platform.h"
extern uint32_t *wakeup_event_pending;
bool button_debounce = true;
void button_init(void)
{
struct gpio_config config_gpio_pin;
gpio_get_config_defaults(&config_gpio_pin);
config_gpio_pin.direction = GPIO_PIN_DIR_INPUT;
config_gpio_pin.input_pull = ... | 10,689 |
https://github.com/absentees/parcel-plugin-imagemin/blob/master/lib/ImagePackager.js | Github Open Source | Open Source | MIT | 2,018 | parcel-plugin-imagemin | absentees | JavaScript | Code | 87 | 229 | // Node requires
const path = require('path');
const url = require('url');
const fs = require('fs');
const imagemin = require('imagemin');
// Parcel requires
const parcelRequires = require('./parcelRequires');
const RawPackager = parcelRequires.RawPackager;
const Config = parcelRequires.config;
class ImagePackager ex... | 20,777 |
https://github.com/JetBrains/ForTea/blob/master/Backend/RiderPlugin/ForTea.RiderPlugin/ProtocolAware/Highlighting/Impl/T4OutputExtensionChangeListener.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | ForTea | JetBrains | C# | Code | 37 | 139 | using JetBrains.Annotations;
using JetBrains.Collections.Viewable;
namespace JetBrains.ForTea.RiderPlugin.ProtocolAware.Highlighting.Impl
{
public sealed class T4OutputExtensionChangeListener
{
[NotNull]
private IViewableProperty<string> Sink { get; }
public T4OutputExtensionChangeListener([NotNull] IViewable... | 41,071 |
https://github.com/Ifarukcolak/boa/blob/master/packages/components/src/Popover/Popover.d.ts | Github Open Source | Open Source | MIT | 2,019 | boa | Ifarukcolak | TypeScript | Code | 104 | 265 | import { ComponentBase, ComponentBaseInstance, ComponentBaseProps } from '@kuveytturk/boa-base';
export interface PopoverProps extends ComponentBaseProps {
anchorEl?: any;
isOriginSetted?: boolean;
anchorOrigin?: any;
animated?: boolean;
animation?: () => void; // TODO: method parametre ve dönüş tipi eklenme... | 34,837 |
https://github.com/vladkoblynsky/shop/blob/master/stroylux/main/graphql/account/resolvers.py | Github Open Source | Open Source | BSD-3-Clause | null | shop | vladkoblynsky | Python | Code | 156 | 802 | import graphene
from django.contrib.auth import models as auth_models
from graphql_jwt.exceptions import PermissionDenied
import graphene_django_optimizer as gql_optimizer
from main.account import models
from main.core.permissions import AccountPermissions
from main.graphql.account.utils import get_user_permissions
fr... | 25,725 |
https://github.com/fmancia/covidpy-frontend-operador/blob/master/src/app/pages/covid19/operador-toma-muestra-laboratorial.component.ts | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | covidpy-frontend-operador | fmancia | TypeScript | Code | 847 | 4,522 | import { Component, OnInit } from "@angular/core";
import { Router, ActivatedRoute } from "@angular/router";
import {Location} from '@angular/common';
import { Subscription } from 'rxjs';
import { Covid19Service } from '../../services/Covid19Service';
import {FormDatosBasicos} from './model/formDatosBasicos.model';
i... | 44,730 |
https://github.com/pjfanning/poi-ooxml-lite-build/blob/master/src/main/java/org/openxmlformats/schemas/spreadsheetml/x2006/main/impl/CTDataConsolidateImpl.java | Github Open Source | Open Source | Apache-2.0 | null | poi-ooxml-lite-build | pjfanning | Java | Code | 1,194 | 5,119 | /*
* XML Type: CT_DataConsolidate
* Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
* Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDataConsolidate
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
import jav... | 51,494 |
https://github.com/patractlabs/ink/blob/master/crates/storage/src/alloc/mod.rs | Github Open Source | Open Source | Apache-2.0 | 2,020 | ink | patractlabs | Rust | Code | 947 | 1,450 | // Copyright 2018-2020 Parity Technologies (UK) Ltd.
//
// 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 applicab... | 38,694 |
https://github.com/S21hivamgiri/Vibrant-The-Online-Event-Management-Site/blob/master/client/src/app/roles/admin/admin-routing.module.ts | Github Open Source | Open Source | Apache-2.0 | null | Vibrant-The-Online-Event-Management-Site | S21hivamgiri | TypeScript | Code | 201 | 563 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AdminlayoutComponent } from './adminlayout.component';
import { LayoutComponent } from '../../shared/homepage/layout.component';
import { AddspeakerComponent } from './addspeaker/addspeaker.component';
import { Ev... | 5,843 |
https://github.com/trofi/re2c/blob/master/test/error15.re | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain | 2,022 | re2c | trofi | C++ | Code | 12 | 36 | // re2c $INPUT -o $OUTPUT
/*!re2c
1 = "a";
1 {}
*/
| 12,252 |
https://github.com/danielsaidi/Sheeeeeeeeet/blob/master/Tests/SheeeeeeeeetTests/ActionSheet/Views/ActionSheetBackgroundViewTests.swift | Github Open Source | Open Source | MIT | 2,023 | Sheeeeeeeeet | danielsaidi | Swift | Code | 71 | 225 | //
// ActionSheetBackgroundViewTests.swift
// Sheeeeeeeeet
//
// Created by Daniel Saidi on 2019-08-14.
// Copyright © 2019 Daniel Saidi. All rights reserved.
//
import Quick
import Nimble
import Sheeeeeeeeet
class ActionSheetBackgroundViewTests: QuickSpec {
override func spec() {
descri... | 19,460 |
https://github.com/toolsplus/atlassian-connect-jwt-scala/blob/master/modules/core/src/test/scala/io/toolsplus/atlassian/jwt/JwtJsonBuilderSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | atlassian-connect-jwt-scala | toolsplus | Scala | Code | 559 | 1,864 | package io.toolsplus.atlassian.jwt
import java.time.{Duration, Instant}
import java.time.temporal.ChronoUnit
import io.circe.Json
import io.circe.optics.JsonPath._
import io.circe.parser._
import org.scalacheck.Gen._
import org.scalatest.Assertion
class JwtJsonBuilderSpec extends TestSpec {
private val leewaySeco... | 45,903 |
https://github.com/proywm/CCProf/blob/master/benchmarks/kripke/kripke-openmp-1.1/build/CMakeFiles/kripke.dir/cmake_clean.cmake | Github Open Source | Open Source | MIT | 2,021 | CCProf | proywm | CMake | Code | 17 | 103 | file(REMOVE_RECURSE
"CMakeFiles/kripke.dir/src/kripke.cpp.o"
"kripke.pdb"
"kripke"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/kripke.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
| 49,710 |
https://github.com/532268948/RefreshRecyclerView/blob/master/app/src/main/java/com/example/refreshrecyclerview/custom/RefreshRecyclerView.java | Github Open Source | Open Source | Apache-2.0 | null | RefreshRecyclerView | 532268948 | Java | Code | 28 | 88 | package com.example.refreshrecyclerview.custom;
/**
* 作 者: ZUST_YTH
* 日 期: 2018/4/8
* 时 间: 19:18
* 项 目: RefreshRecyclerView
* 描 述:
*/
public class RefreshRecyclerView {
}
| 46,443 |
https://github.com/laigor/sqlrelay-non-english-fixes-/blob/master/doc/programming/parts/phppdo-bind.php | Github Open Source | Open Source | PHP-3.01, CC-BY-3.0 | 2,022 | sqlrelay-non-english-fixes- | laigor | PHP | Code | 18 | 188 | $dbh=new PDO("sqlrelay:host=sqlrserver;port=9000;socket=/tmp/example.socket;tries=0;retrytime=1;debug=0","exampleuser","examplepassword");
if (!$dbh) {
die("connection failed");
}
$stmt=$dbh->prepare("insert into exampletable values (:var1,:var2,:var3,:var4)");
$stmt->bindValue(":var",1,PDO::PARAM_INT);
$stmt->bindVa... | 49,019 |
https://github.com/Juan-Quijano/tankfarm-web-v1/blob/master/Laravel/storage/framework/views/16b27ab9d4c5fbe9cdabdc88e08ed3268e4a0a12.php | Github Open Source | Open Source | MIT | 2,021 | tankfarm-web-v1 | Juan-Quijano | PHP | Code | 494 | 1,898 | <style>
body { display:none; }
.btn.btn-app {
position: relative;
padding: 15px 5px;
margin: 0 0 10px 10px;
min-width: 150px;
height: 94px;
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 0;
text-align: center;
color: #666;
border: 1px solid #ddd;
backgroun... | 42,048 |
https://github.com/Soneso/stellar-php-sdk/blob/master/Soneso/StellarSDK/SEP/TransferServerService/AnchorTransactionResponse.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | stellar-php-sdk | Soneso | PHP | Code | 90 | 252 | <?php declare(strict_types=1);
// Copyright 2022 The Stellar PHP SDK Authors. All rights reserved.
// Use of this source code is governed by a license that can be
// found in the LICENSE file.
namespace Soneso\StellarSDK\SEP\TransferServerService;
use Soneso\StellarSDK\Responses\Response;
class AnchorTransactionRes... | 50,360 |
https://github.com/abhishekks831998/umple/blob/master/Umplificator/UmplifiedProjects/weka-umplified-0/src/test/java/weka/core/UtilsTest.java | Github Open Source | Open Source | MIT | 2,022 | umple | abhishekks831998 | Java | Code | 582 | 1,668 | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | 51,383 |
https://github.com/florianmaxim/XGold/blob/master/src/public/actions/actions-blocks.js | Github Open Source | Open Source | MIT | 2,018 | XGold | florianmaxim | JavaScript | Code | 297 | 1,101 | import ControllerBlockchain from '../controllers/controller-blockchain';
import * as config from '../../../config.json';
const Blockchain = new ControllerBlockchain();
let interval;
/*
Blocks
*/
export const selectBlock = (block) => {
return (dispatch) => {
console.log(block.state)
dispatch({typ... | 13,620 |
https://github.com/cityindex-attic/CIAPI.ObjC/blob/master/CIAPI/CIAPI/Requests/CIAPIGetOpenPositionRequest.m | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,014 | CIAPI.ObjC | cityindex-attic | Objective-C | Code | 78 | 259 | //
// CIAPIGetOpenPositionRequest.m
// CIAPI
//
// Copyright 2011 Adam Wright/CityIndex. All rights reserved.
//
#import "CIAPIGetOpenPositionRequest.h"
#import "CIAPIGetOpenPositionResponse.h"
@implementation CIAPIGetOpenPositionRequest
@synthesize orderId;
- (CIAPIGetOpenPositionRequest*)initWithOrderId:(NS... | 14,406 |
https://github.com/jucaruga2010/Sheepocalypse/blob/master/Executable Program - Linux and Windows/application.linux64/source/Map06.pde | Github Open Source | Open Source | CC0-1.0 | 2,016 | Sheepocalypse | jucaruga2010 | null | Spoken | 117 | 408 | class Map06 extends Map{
public Map06(Entity jugador)
{
sheeps = new Sheep[3];
buttons = new Button[1];
obstacles = new Obstacle[4];
fondo = loadImage("map6.png");
x = 99;
y = 480;
NumSheeps = 3;
NumButtons = 1;
NumObstacles = 4;
for(int i=0; i < NumSheeps; i++)
{
... | 3,166 |
https://github.com/vincentlooi/FCIS/blob/master/ros/test/sorting_vision.cpp | Github Open Source | Open Source | Apache-2.0 | 2,017 | FCIS | vincentlooi | C++ | Code | 1,115 | 4,753 | #include <ros/ros.h>
#include <ros/package.h>
#include <iostream>
// pcl ros messages and pointcloud2
#include <pcl_ros/point_cloud.h>
#include <pcl_ros/transforms.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/PCLPointCloud2.h>
// pcl core
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#in... | 34,473 |
https://github.com/LevelFourAB/commons/blob/master/commons-types/src/test/java/se/l4/commons/types/matching/ClassMatchingMultimapTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | commons | LevelFourAB | Java | Code | 320 | 1,764 | package se.l4.commons.types.matching;
import static org.hamcrest.CoreMatchers.anyOf;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assert... | 13,251 |
https://github.com/TheTimidShade/Timid-Emission/blob/master/scripts/tts_emission/functions/zen/fn_zen_moduleStartEmission.sqf | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | 2,021 | Timid-Emission | TheTimidShade | SQF | Code | 49 | 284 | ["TTS Emission", "STR_tts_emission_moduleStartEmission_title",
{
params [["_position", [0,0,0], [[]], 3], ["_attachedObject", objNull, [objNull]]];
if (isNil "tts_emission_emissionIsActive") then {tts_emission_emissionIsActive = false;};
if (tts_emission_emissionIsActive) then {
["STR_tts_emission_moduleStartEmi... | 34,412 |
https://github.com/mur47x111/pDiSL/blob/master/src-test/ch/usi/dag/disl/test/utils/ClientServerEvaluationRunner.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | pDiSL | mur47x111 | Java | Code | 801 | 2,364 | package ch.usi.dag.disl.test.utils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import ch.usi.dag.util.Duration;
import ch.usi.dag.util.Lists;
public class ClientServerEvalua... | 20,707 |
https://github.com/brunolauze/openpegasus-providers-old/blob/master/src/Providers/UNIXProviders/BlockStatisticsCapabilities/UNIX_BlockStatisticsCapabilitiesPrivate.h | Github Open Source | Open Source | MIT | 2,020 | openpegasus-providers-old | brunolauze | C | Code | 50 | 353 |
#if defined(PEGASUS_OS_HPUX)
# include "UNIX_BlockStatisticsCapabilitiesPrivate_HPUX.h"
#elif defined(PEGASUS_OS_LINUX)
# include "UNIX_BlockStatisticsCapabilitiesPrivate_LINUX.h"
#elif defined(PEGASUS_OS_DARWIN)
# include "UNIX_BlockStatisticsCapabilitiesPrivate_DARWIN.h"
#elif defined(PEGASUS_OS_AIX)
# include "UNIX... | 19,378 |
https://github.com/krisnailafat/penggelcms/blob/master/application/models/Article_model.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,019 | penggelcms | krisnailafat | PHP | Code | 168 | 802 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Article_model extends CI_Model
{
public function getNameKategori()
{
$query = "SELECT `post`.*, `kategori`.`name_kategori`
FROM `post`
JOIN `kategori`
ON `post`.`id_... | 32,179 |
https://github.com/miathedev/BoostForArduino/blob/master/src/boost_spirit_home_classic_iterator_position_iterator_fwd.hpp | Github Open Source | Open Source | BSL-1.0 | 2,021 | BoostForArduino | miathedev | C++ | Code | 2 | 26 | #include <boost/spirit/home/classic/iterator/position_iterator_fwd.hpp>
| 14,362 |
https://github.com/CodeBrig/Arthor/blob/master/src/main/groovy/com/codebrig/arthur/observe/structure/naming/RubyNaming.groovy | Github Open Source | Open Source | Apache-2.0 | 2,021 | Arthor | CodeBrig | Groovy | Code | 143 | 569 | package com.codebrig.arthur.observe.structure.naming
import com.codebrig.arthur.SourceNode
import com.codebrig.arthur.observe.structure.StructureNaming
import com.codebrig.arthur.observe.structure.filter.InternalRoleFilter
import com.codebrig.arthur.observe.structure.filter.MultiFilter
import com.codebrig.arthur.obser... | 47,059 |
https://github.com/cedrvanh/Pi-Memory-Game/blob/master/src/js/Player.js | Github Open Source | Open Source | MIT | 2,020 | Pi-Memory-Game | cedrvanh | JavaScript | Code | 36 | 102 | import Database from './Database';
export default class Player {
constructor(pattern = []) {
this.pattern = pattern;
this._db = new Database();
this.uid = this._db.getUserID();
}
reset() {
this.pattern = [];
this._db.updateData(this.uid, {
player_pattern... | 34,657 |
https://github.com/DoubleDeez/MDFastBinding/blob/master/Source/MDFastBinding/Public/BindingValues/MDFastBindingValueBase.h | Github Open Source | Open Source | MIT | null | MDFastBinding | DoubleDeez | C | Code | 71 | 288 | #pragma once
#include "CoreMinimal.h"
#include "MDFastBindingObject.h"
#include "MDFastBindingValueBase.generated.h"
class UMDFastBindingInstance;
/**
*
*/
UCLASS(Abstract, EditInlineNew, DefaultToInstanced)
class MDFASTBINDING_API UMDFastBindingValueBase : public UMDFastBindingObject
{
GENERATED_BODY()
public... | 5,170 |
https://github.com/SReichelt/slate/blob/master/src/shared/logics/hlm/macros/number.ts | Github Open Source | Open Source | MIT | 2,022 | slate | SReichelt | TypeScript | Code | 266 | 957 | import * as Fmt from '../../../format/format';
import * as FmtHLM from '../meta';
import * as Logic from '../../logic';
import { LibraryDataAccessor } from '../../../data/libraryDataAccessor';
import { HLMUtils } from '../utils';
import * as HLMMacro from '../macro';
import CachedPromise from '../../../data/cachedPromi... | 24,968 |
https://github.com/ggolani/streamline/blob/master/streams/notifier/src/main/java/org/apache/streamline/streams/notifiers/NotifierRuntimeException.java | Github Open Source | Open Source | Apache-2.0 | null | streamline | ggolani | Java | Code | 40 | 116 | package org.apache.streamline.streams.notifiers;
/**
* Signals some runtime issue with a notifier
*/
public class NotifierRuntimeException extends RuntimeException {
public NotifierRuntimeException(String msg) {
super(msg);
}
public NotifierRuntimeException(String msg, Throwable th) {
sup... | 53,375 |
https://github.com/Ourten/TeaBeans/blob/master/src/main/java/fr/ourten/teabeans/binding/specific/IntExpression.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | TeaBeans | Ourten | Java | Code | 62 | 233 | package fr.ourten.teabeans.binding.specific;
import fr.ourten.teabeans.value.Observable;
import java.util.Objects;
import java.util.function.IntSupplier;
public class IntExpression extends IntBinding
{
private IntSupplier closure;
public IntExpression(IntSupplier closure, Observable... dependencies)
{
... | 27,130 |
https://github.com/GhostMachineSoftware/SPFx_GetListItems/blob/master/node_modules/@microsoft/sp-http/lib/resx-strings/ca-es.js | Github Open Source | Open Source | MIT | 2,021 | SPFx_GetListItems | GhostMachineSoftware | JavaScript | Code | 72 | 188 | define([], function() {
var strings = {
"_+tvmKa3YEOqWGKKXzwjtaw": {
"additionalCredentialsWarning": "Per veure la informació d'aquesta pàgina, heu de verificar la vostra identitat.",
"servicePrincipalNotAvaliableError": "Per veure la informació sobre aquesta pàgina, demanar un global o administrador ... | 12,328 |
https://github.com/timswalling/contentful-cli/blob/master/test/unit/cmds/boilerplate.test.js | Github Open Source | Open Source | MIT | 2,019 | contentful-cli | timswalling | JavaScript | Code | 254 | 933 | import fs from 'fs'
import inquirer from 'inquirer'
import streamBuffers from 'stream-buffers'
import axios from 'axios'
import { downloadBoilerplate } from '../../../lib/cmds/boilerplate'
import { getContext } from '../../../lib/context'
import {createManagementClient} from '../../../lib/utils/contentful-clients'
j... | 29,761 |
https://github.com/zermylf/eval-deobfuscator/blob/master/src/vendors.js | Github Open Source | Open Source | MIT | 2,021 | eval-deobfuscator | zermylf | JavaScript | Code | 24 | 167 | module.exports = {
Datadome: require("./vendors/datadome"),
Distil: require("./vendors/distil"),
Akami: require("./vendors/akami"),
ArkoseLabs: require("./vendors/arkoselabs"),
ShapeSecurityBasic: require("./vendors/shapesecuritybasic"),
PerimeterX: require("./vendors/perimeterx"),
Meetrics:... | 37,110 |
https://github.com/bernardventer/xictools/blob/master/xic/src/gtkxic/gtkvia.cc | Github Open Source | Open Source | Apache-2.0 | 2,020 | xictools | bernardventer | C++ | Code | 2,734 | 13,774 |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 18,024 |
https://github.com/Kaninchen221/Zinet/blob/master/GraphicLayer/include/Zinet/GraphicLayer/ZtGLDescriptorPool.h | Github Open Source | Open Source | MIT | 2,023 | Zinet | Kaninchen221 | C++ | Code | 74 | 324 | #pragma once
#include "Zinet/GraphicLayer/ZtGraphicLayer.h"
#include "Zinet/GraphicLayer/ZtGLVulkanObject.h"
namespace zt::gl
{
class Device;
class DescriptorSetLayout;
class ZINET_GRAPHIC_LAYER_API DescriptorPool : public VulkanObject<vk::raii::DescriptorPool>
{
public:
DescriptorPool() = default;
Descri... | 36,178 |
https://github.com/mhkoji/hachee/blob/master/hachee/src/dependency-parsing/shift-reduce.lisp | Github Open Source | Open Source | MIT | 2,020 | hachee | mhkoji | Common Lisp | Code | 914 | 3,594 | ;;; Non-Projective Dependency Parsing in Expected Linear Time
(defpackage :hachee.dependency-parsing.shift-reduce
(:use :cl :hachee.util.stream)
(:import-from :alexandria
:when-let
:if-let))
(in-package :hachee.dependency-parsing.shift-reduce)
(cl-annot:enable-annot-syntax)
;;; vert... | 5,057 |
https://github.com/lczgywzyy/MyMath/blob/master/test_angle.cc | Github Open Source | Open Source | MIT | 2,020 | MyMath | lczgywzyy | C++ | Code | 123 | 603 | #include "ltest.hpp"
#include "angle.hpp"
#include <cmath>
#ifdef USE_SIN_TABLE
#include "sin_table.h"
#endif
using namespace mypilot::mymath;
int main(int argc, char* argv[]) {
#ifdef USE_SIN_TABLE
TEST_START("SIN_TABLE");
{
EXPECT_FLOAT_EQ(0.0f, SIN_TABLE[0]);
EXPECT_FLOAT_EQ(1.0f, SIN_TABLE[16384]);... | 23,172 |
https://github.com/rkowalewski/minijava_compiler/blob/master/src/minijava/syntax/TyVoid.java | Github Open Source | Open Source | MIT | null | minijava_compiler | rkowalewski | Java | Code | 62 | 169 | package minijava.syntax;
public class TyVoid extends Ty {
public TyVoid() {
}
@Override
public String toString() {
return "boolean";
}
@Override
public boolean isPrimitive() {
return false;
}
@Override
public <A> A accept(TyVisitor<A> v) {
return v.vi... | 42,101 |
https://github.com/handav/friendly_ml5/blob/master/ml5-examples/p5js/PitchDetection/PitchDetection/sketch.js | Github Open Source | Open Source | MIT | 2,019 | friendly_ml5 | handav | JavaScript | Code | 120 | 366 | // Copyright (c) 2018 ml5
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
/* ===
ml5 Example
Basic Pitch Detection
=== */
let audioContext;
let mic;
let pitch;
function setup() {
noCanvas();
var startDiv = createDiv('Click to start audio');
startDiv.position(10, 13... | 33,743 |
https://github.com/eDanilovich-qa/aquality-tracking-api/blob/master/src/main/java/main/model/db/dao/project/TestResultStatDao.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | aquality-tracking-api | eDanilovich-qa | Java | Code | 21 | 106 | package main.model.db.dao.project;
import main.model.db.dao.DAO;
import main.model.dto.project.TestResultStatDto;
public class TestResultStatDao extends DAO<TestResultStatDto>{
public TestResultStatDao() {
super(TestResultStatDto.class);
select = "{call SELECT_RESULTS_STAT(?,?,?)}";
}
}
| 15,535 |
https://github.com/PacktPublishing/Modern-JavaScript-Web-Development-Cookbook/blob/master/Chapter08/src/counterApp/index.js | Github Open Source | Open Source | MIT | 2,023 | Modern-JavaScript-Web-Development-Cookbook | PacktPublishing | JavaScript | Code | 34 | 105 | /* @flow */
import { Counter } from "./counter.component.js";
import { ConnectedCounter } from "./counter.connected.js";
import { ClicksDisplay } from "./clicksDisplay.component.js";
import { ConnectedClicksDisplay } from "./clicksDisplay.connected.js";
export {
Counter,
ConnectedCounter,
ClicksDisplay,
... | 46,976 |
https://github.com/xoreo/tcp/blob/master/Transmitter/Transmitter.ino | Github Open Source | Open Source | MIT | null | tcp | xoreo | null | Spoken | 97 | 360 | /* Big Arduino */
#define STATUS LOW
#define GREEN_ 13
#define GREENW 12
#define BLUE_ 10
#define BLUEW 11
#define BROWN_ 8
#define BROWNW 9
#define ORANGE_ 7
#define ORANGEW 6
int write_green() {
digitalWrite(GREEN_, STATUS);
digitalWrite(GREENW, STATUS);
return 0;
}
int write_blue() {
digitalWrite(BLU... | 3,588 |
https://github.com/shawnsandy/cts-demo/blob/master/resources/views/page/index.blade.php | Github Open Source | Open Source | MIT | null | cts-demo | shawnsandy | PHP | Code | 599 | 1,943 | @extends('page.page-layouts.default')
@section('page')
@include('shared.nav')
<header class="index" data-aos="fade-down">
<div class="cover">
<div class="layout-table">
<div class="layout-row">
<div class="logo">
<h1>Complete Techno... | 35,069 |
https://github.com/sodero/clib2-1/blob/master/test_programs/network/if_nametoindex.c | Github Open Source | Open Source | Unlicense, BSD-3-Clause | null | clib2-1 | sodero | C | Code | 40 | 108 | #include <stdio.h>
#include <net/if.h>
int main()
{
int index = 0;
/* Get the interface index */
if ((index = if_nametoindex("eth0")) == 0)
printf("if_nametoindex() failed to obtain interface index\n");
else
printf("if_nametoindex() found interface at index %d\n", index);
return 0;
... | 468 |
https://github.com/scala-steward/scaladex/blob/master/modules/core/shared/src/test/scala/scaladex/core/test/InMemoryDatabase.scala | Github Open Source | Open Source | BSD-3-Clause | null | scaladex | scala-steward | Scala | Code | 650 | 2,733 | package scaladex.core.test
import java.time.Instant
import java.util.UUID
import scala.collection.mutable
import scala.concurrent.Future
import scaladex.core.model.Artifact
import scaladex.core.model.ArtifactDependency
import scaladex.core.model.GithubInfo
import scaladex.core.model.GithubStatus
import scaladex.core... | 37,063 |
https://github.com/guisedassari/cyrela/blob/master/application/models/admin/Clientes_model.php | Github Open Source | Open Source | MIT | null | cyrela | guisedassari | PHP | Code | 110 | 360 | <?php
class Clientes_model extends CI_Model {
public $title;
public $content;
public $date;
public function __construct() {
// Call the CI_Model constructor
parent::__construct();
}
public function visualizar() {
return $this->db->get('clientes')->result_array();... | 6,308 |
https://github.com/fasseg/akubra-hdfs/blob/master/src/main/java/de/fiz/akubra/hdfs/HDFSBlobStore.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | akubra-hdfs | fasseg | Java | Code | 324 | 786 | /*
Copyright 2011 FIZ Karlsruhe
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 48,799 |
https://github.com/Workday/canvas-kit/blob/master/modules/react/popup/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | canvas-kit | Workday | TypeScript | Code | 16 | 47 | export {Popup} from './lib/Popup';
export * from './lib/Popper';
export * from './lib/getTransformFromPlacement';
export * from './lib/hooks';
| 39,497 |
https://github.com/AlexanderYunker1983/SalaryForecaster/blob/master/SalaryForecaster.Core/Models/Day.cs | Github Open Source | Open Source | MIT | null | SalaryForecaster | AlexanderYunker1983 | C# | Code | 25 | 56 | using System;
namespace SalaryForecaster.Core.Models
{
public class Day
{
public DateTime Date { get; set; }
public bool IsWorkDate { get; set; }
}
} | 42,559 |
https://github.com/canoo/open-dolphin/blob/master/subprojects/demo-javafx/combined/src/main/groovy/org/opendolphin/demo/startGrailsSmallFootprintDemo.groovy | Github Open Source | Open Source | Apache-2.0 | 2,020 | open-dolphin | canoo | Groovy | Code | 133 | 356 | /*
* Copyright 2012-2017 Canoo Engineering AG.
*
* 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... | 23,138 |
https://github.com/Granary/granary/blob/master/clients/lifetime/metadata.cc | Github Open Source | Open Source | BSD-3-Clause | 2,022 | granary | Granary | C++ | Code | 863 | 1,899 | /* Copyright 2014 Peter Goodman, all rights reserved. */
#include "clients/lifetime/metadata.h"
#include "granary/allocator.h"
#include "granary/hash_table.h"
using namespace granary;
namespace client {
// Statically allocated array of meta-data about objects. We store an object's
// base address
object_metadata D... | 39,827 |
https://github.com/ColdMuBai/GoLangDemo/blob/master/Demo/Demo01/testUrl.go | Github Open Source | Open Source | Apache-2.0 | null | GoLangDemo | ColdMuBai | Go | Code | 122 | 551 | package main
import (
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"bufio"
"strings"
)
func main(){
httpGet()
// httpIoCopy()
}
func httpIoCopy(){
for _,url := range os.Args[1:] {
resp,err := http.Get(url)
if err != nil {
continue
}
defer resp.Body.Close()
out,err := os.Create("./test.zip"... | 52,452 |
https://github.com/DE-labtory/swim/blob/master/keyring.go | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0 | 2,019 | swim | DE-labtory | Go | Code | 154 | 554 | package swim
import (
"os"
"github.com/DE-labtory/heimdall"
"github.com/DE-labtory/heimdall/config"
"github.com/DE-labtory/heimdall/hecdsa"
"github.com/DE-labtory/iLogger"
)
/*
secLV
128 -> P256
192 -> P384
256 -> P521
*/
// if the key already exists, create a new one, or load the existing key.
func GenerateKe... | 23,197 |
https://github.com/angelobelchior/RecomendacaoProdutos/blob/master/ECommerce/Pages/Index.cshtml | Github Open Source | Open Source | MIT | 2,021 | RecomendacaoProdutos | angelobelchior | C# | Code | 84 | 383 | @page
@model IndexModel
@{
ViewData["Title"] = "Lista de Produtos";
}
<div class="container py-5">
<div class="row text-center mb-5">
<div class="col-lg-7 mx-auto">
<h1 class="display-4">Lista de Produtos</h1>
</div>
</div>
<div class="row">
<div class="col-lg-8 mx-... | 40,253 |
https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/internal/DomainConversion.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | pmd | pmd | Java | Code | 494 | 1,526 | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule.xpath.internal;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.NonNull;
impo... | 27,018 |
https://github.com/PowerUpToTheMax/NotSoBot/blob/master/mods/Verification.py | Github Open Source | Open Source | MIT | 2,016 | NotSoBot | PowerUpToTheMax | Python | Code | 1,465 | 5,081 | import discord
import asyncio
import pymysql
import random
from discord.ext import commands
from utils import checks
cool = "```xl\n{0}\n```"
code = "```py\n{0}\n```"
class Verification():
def __init__(self, bot):
self.bot = bot
self.connection = bot.mysql.connection
self.cursor = bot.mysql.cursor
@c... | 21,189 |
https://github.com/AngelaJubeJudy/Algorithms/blob/master/week4/LongestIncreasingPath.java | Github Open Source | Open Source | MIT | null | Algorithms | AngelaJubeJudy | Java | Code | 144 | 455 | class LongestIncreasingPath {
public int longestIncreasingPath(int[][] matrix) {
// 有向,无环
// 初始化
m = matrix.length;
n = matrix[0].length;
ans = new int[m][n];
int result = 0;
for(int i=0; i<m; i++)
for(int j=0; j<n; j++) ans[i][j] = -1;
/... | 12,297 |
https://github.com/NREL/MinCostFlows.jl/blob/master/src/solveflows.jl | Github Open Source | Open Source | MIT | 2,020 | MinCostFlows.jl | NREL | Julia | Code | 311 | 779 | """
Implements the Relaxation dual-ascent method for solving
min-cost flow problems, as described in Bertsekas (1998)
"""
function solveflows!(fp::FlowProblem; verbose::Bool=false)
verbose && (starttime = time())
majoriters = 0
majoriters_multinode = 0
minoriters = 0
while true
# Find a ... | 10,499 |
https://github.com/pntraining2020/JeromeBurce/blob/master/resources/views/welcome.blade.php | Github Open Source | Open Source | MIT | 2,020 | JeromeBurce | pntraining2020 | Blade | Code | 284 | 1,406 | <!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=d... | 7,279 |
https://github.com/bingoohuang/eql/blob/master/src/test/java/org/n3r/eql/eqler/dynamic/DynamicEqler.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | eql | bingoohuang | Java | Code | 109 | 368 | package org.n3r.eql.eqler.dynamic;
import org.n3r.eql.config.EqlConfig;
import org.n3r.eql.eqler.annotations.*;
import java.util.Map;
@EqlerConfig("me")
public interface DynamicEqler {
@Sql("select ''$$'' as hello, ## as world")
Map<String, String> echo(@Dynamic String hello, String world);
@Sql("select... | 24,805 |
https://github.com/cash2one/xai/blob/master/xai/brain/wordbase/verbs/_flexing.py | Github Open Source | Open Source | MIT | 2,017 | xai | cash2one | Python | Code | 24 | 102 |
from xai.brain.wordbase.verbs._flex import _FLEX
#calss header
class _FLEXING(_FLEX, ):
def __init__(self,):
_FLEX.__init__(self)
self.name = "FLEXING"
self.specie = 'verbs'
self.basic = "flex"
self.jsondata = {}
| 19,656 |
https://github.com/pola-rs/polars/blob/master/crates/polars-plan/src/logical_plan/optimizer/fast_projection.rs | Github Open Source | Open Source | MIT | 2,023 | polars | pola-rs | Rust | Code | 434 | 1,110 | use std::collections::BTreeSet;
use polars_core::prelude::*;
use super::*;
use crate::logical_plan::alp::ALogicalPlan;
use crate::logical_plan::functions::FunctionNode;
/// Projection in the physical plan is done by selecting an expression per thread.
/// In case of many projections and columns this can be expensive... | 23,034 |
https://github.com/danielnorberg/crush/blob/master/src/lang/command/closure.rs | Github Open Source | Open Source | MIT | 2,022 | crush | danielnorberg | Rust | Code | 1,629 | 6,593 | use crate::lang::argument::{Argument, ArgumentDefinition, ArgumentType};
use crate::lang::command::{BoundCommand, Command, CrushCommand, OutputType, Parameter, ArgumentDescription};
use crate::lang::command_invocation::CommandInvocation;
use crate::lang::data::dict::Dict;
use crate::lang::errors::{argument_error_legacy... | 23,576 |
https://github.com/Nyaran/gherkin-lint-ng/blob/master/src/rules/table-align.js | Github Open Source | Open Source | ISC | 2,022 | gherkin-lint-ng | Nyaran | JavaScript | Code | 186 | 560 | import _ from 'lodash';
const TABLE_SEPARATOR = '|';
export const name = 'table-align';
export const availableConfigs = {
examples: true,
steps: true,
};
export function run({feature, file}, config) {
function _checkRows(rows) {
if (rows.length === 0 || rows.some(row => row == null)) {
return;
}
... | 17,227 |
https://github.com/andresjosehr/Cronometraje/blob/master/resources/views/eventos/crear.blade.php | Github Open Source | Open Source | MIT | null | Cronometraje | andresjosehr | PHP | Code | 392 | 1,787 | <link href="https://cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet">
<script src="https://cdn.quilljs.com/1.0.0/quill.js"></script>
@if (count($Categorias)>0)
<div class="col-sm-12 col-md-12 crear_evento" style="padding-top: 25px">
<strong class="text-muted d-block mb-2">Agregar Evento</strong>
<div id="#co... | 49,496 |
https://github.com/PatrickRose/msgraph-sdk-php/blob/master/src/Beta/Microsoft/Graph/Model/CloudPC.php | Github Open Source | Open Source | MIT | null | msgraph-sdk-php | PatrickRose | PHP | Code | 1,001 | 2,762 | <?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CloudPC File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license ... | 49,801 |
https://github.com/hanakoa/alpaca/blob/master/env-js/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | alpaca | hanakoa | Dockerfile | Code | 31 | 120 | FROM node:9.8.0-alpine as builder
WORKDIR /tmp/alpaca
ADD package.json .
ADD env.js .
RUN npm install && npm run build
FROM nginx:1.13.9-alpine
COPY --from=builder /tmp/alpaca/env.min.js /usr/share/nginx/html/env.js
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 443 | 40,194 |
https://github.com/NishiyamatoGakuenSSHTA/nygssh-journey/blob/master/src/widgets.py | Github Open Source | Open Source | MIT | null | nygssh-journey | NishiyamatoGakuenSSHTA | Python | Code | 396 | 1,574 | import IPython
from IPython.display import HTML
def GameDisplay():
return IPython.display.HTML('''
<button id='left-btn'>←</button>
<button id='right-btn'>→</button>
<button id='up-btn'>↑</button>
<button id='down-btn'>↓</button>
<button id='a-btn'>A</button>
<button id='b-btn'>B</button>
... | 31,248 |
https://github.com/evolution411/symfonyfos/blob/master/src/Acme/HelloBundle/Resources/public/images/NetBeans 7.3/javacard/JCDK3.0.2_ConnectedEdition/samples/web/HelloWorld/src/com/sun/jchowto/helloworld/HelloWorldServlet.java | Github Open Source | Open Source | MIT | null | symfonyfos | evolution411 | Java | Code | 121 | 524 | /*
* Copyright (c) 2009 Sun Microsystems, Inc.
* All rights reserved.
* Use is subject to license terms.
*/
package com.sun.jchowto.helloworld;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServl... | 4,021 |
https://github.com/cat-push/inkpaint/blob/master/lib/textures/TextureMatrix.js | Github Open Source | Open Source | MIT | null | inkpaint | cat-push | JavaScript | Code | 305 | 892 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _Matrix = _interopRequireDefault(require("../math/Matrix"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var tempMat = new _Matrix.default();
class Textur... | 30,310 |
https://github.com/beckettkev/Goldfish/blob/master/src/views/PeopleSearch/PeopleSearch.jsx | Github Open Source | Open Source | MIT | 2,019 | Goldfish | beckettkev | JavaScript | Code | 823 | 2,879 | import React from 'react';
import styles from './PeopleSearch.css';
import cssModules from 'react-css-modules';
import Utils from '../../utils/utilities';
import Waypoint from 'react-waypoint';
import Menu from '../../components/menu/Menu.jsx';
import Search from '../../components/search/Search.jsx';
import Settings fr... | 16,918 |
https://github.com/evanjs/musnix/blob/master/tests/default.nix | Github Open Source | Open Source | BSD-2-Clause | 2,023 | musnix | evanjs | null | Spoken | 69 | 259 | #
# To run:
#
# nix-build tests/default.nix
#
import <nixpkgs/nixos/tests/make-test-python.nix> {
name = "musnix-boot";
nodes.machine =
{ config, pkgs, ... }:
{ imports = [ ../default.nix ];
musnix.enable = true;
musnix.kernel.realtime = true;
musnix.rtirq.enable = true;
musnix... | 34,594 |
https://github.com/pitcrewnl/seq-app-datadog/blob/master/test/DatadogReactorTests/ReactorFixture.cs | Github Open Source | Open Source | MIT | null | seq-app-datadog | pitcrewnl | C# | Code | 104 | 354 | using System;
using System.IO;
using Moq;
using Seq.Apps;
using Seq.Apps.LogEvents;
using Serilog;
using Xunit.Abstractions;
namespace Seq.App.Datadog.Tests.DatadogReactorTests
{
public abstract class ReactorFixture : IDisposable
{
private readonly ITestOutputHelper outputHelper;
private reado... | 26,573 |
https://github.com/ViperLiu/Remote-Control-Music-Server/blob/master/key.py | Github Open Source | Open Source | MIT | null | Remote-Control-Music-Server | ViperLiu | Python | Code | 244 | 1,138 | import ctypes
from ctypes import wintypes
import time
user32 = ctypes.WinDLL('user32', use_last_error=True)
INPUT_MOUSE = 0
INPUT_KEYBOARD = 1
INPUT_HARDWARE = 2
KEYEVENTF_EXTENDEDKEY = 0x0001
KEYEVENTF_KEYUP = 0x0002
KEYEVENTF_UNICODE = 0x0004
KEYEVENTF_SCANCODE = 0x0008
MAPVK_VK_TO_VSC = 0
# msdn... | 39,880 |
https://github.com/athanor/athanor/blob/master/src/operators/opAllDiff.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | athanor | athanor | C++ | Code | 1,147 | 3,859 | #include "operators/opAllDiff.h"
#include <algorithm>
#include <cassert>
#include <unordered_map>
#include "operators/shiftViolatingIndices.h"
#include "operators/simpleOperator.hpp"
#include "utils/ignoreUnused.h"
using namespace std;
using OperandsSequenceTrigger =
OperatorTrates<OpAllDiff>::OperandsSequenceTrigg... | 39,442 |
https://github.com/jDan735/kobra/blob/master/kobra/__init__.py | Github Open Source | Open Source | MIT | null | kobra | jDan735 | Python | Code | 43 | 112 | __version__ = "0.3.1"
__logo__ = [
" _ _",
"| | _____ | |__ _ __ __ _",
"| |/ / _ \\| '_ \\| '__/ _` |",
"| < (_) | |_) | | | (_| |",
"|_|\\_\\___/|_.__/|_| \\__,_|",
" "
]
| 1,747 |
https://github.com/klauspost/minio/blob/master/Dockerfile.mint | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | minio | klauspost | Dockerfile | Code | 52 | 174 | FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV GOROOT /usr/local/go
ENV GOPATH /usr/local
ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH
ENV MINT_ROOT_DIR /mint
COPY mint /mint
RUN apt-get --yes update && apt-get --yes upgrade && \
apt-get --yes --quiet install wget jq curl git dnsmasq &&... | 16,317 |
https://github.com/REANNZ/reporting-service/blob/master/app/assets/javascripts/reporting/bar_graph/data_index.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | reporting-service | REANNZ | JavaScript | Code | 14 | 42 | reporting.barGraph.dataIndex = function() {
return {
idpName: 0,
core: 1,
optional: 2
};
};
| 4,143 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.