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/Antholoj/netbeans/blob/master/ide/xml.schema.completion/src/org/netbeans/modules/xml/schema/completion/SchemaBasedCompletionProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | netbeans | Antholoj | Java | Code | 267 | 716 | /*
* 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 ... | 40,042 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Apk_Extractor_com.ext.ui.apk/javafiles/android/support/transition/ViewGroupUtils.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 206 | 753 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.transition;
import android.view.ViewGroup;
// Referenced classes of package android.support.transition:
// ViewGroupUtilsApi18,... | 20,447 |
https://github.com/heyjul3s/artifak/blob/master/docs/assets/UtilitiesIcon.tsx | Github Open Source | Open Source | MIT | 2,020 | artifak | heyjul3s | TypeScript | Code | 115 | 1,029 | import React from 'react';
import { theme } from '../theme';
export function UtilitiesIcon() {
return (
<svg
id="Layer_1"
data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
>
<style type="text/css">
{`
.st0{
fill:none;
... | 25,859 |
https://github.com/dfimiarz/clubhouse-app-engine/blob/master/booking_types/api.js | Github Open Source | Open Source | MIT | null | clubhouse-app-engine | dfimiarz | JavaScript | Code | 62 | 187 | const express = require('express')
const bodyParser = require('body-parser')
const { check, validationResult } = require('express-validator')
const controller = require('./controller')
const RESTError = require('./../utils/RESTError');
const router = express.Router();
urlEncodedParse = bodyParser.urlencoded({ extende... | 3,813 |
https://github.com/ggrimes/jvarkit/blob/master/src/test/java/com/github/lindenb/jvarkit/tools/vcfvcf/VcfPeekVcfTest.java | Github Open Source | Open Source | MIT | 2,022 | jvarkit | ggrimes | Java | Code | 93 | 598 | package com.github.lindenb.jvarkit.tools.vcfvcf;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Arrays;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import com.github.lindenb.jvarkit.tests.AlsoTest;
import com.github.lindenb.jvarki... | 27,747 |
https://github.com/moniquelive/gocheat/blob/master/main.go | Github Open Source | Open Source | MIT | 2,022 | gocheat | moniquelive | Go | Code | 391 | 1,301 | package main
//go:generate gotext update -lang en-US,pt -out catalog.go
import (
"bytes"
"fmt"
"io"
"log"
url2 "net/url"
"os"
"golang.org/x/text/message"
"github.com/Xuanwo/go-locale"
"github.com/charmbracelet/bubbles/list"
"github.com/charmbracelet/bubbles/textinput"
"github.com/charmbracelet/bubbles/vi... | 2,418 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/t/tstl/src/main/scala/typingsSlinky/tstl/errorCategoryMod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 171 | 448 | package typingsSlinky.tstl
import typingsSlinky.tstl.errorCodeMod.ErrorCode
import typingsSlinky.tstl.errorConditionMod.ErrorCondition
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@JSImport("tstl/exception/ErrorCate... | 41,710 |
https://github.com/Krakow-Ruby-Users-Group/krug-website/blob/master/config/deploy/production.rb | Github Open Source | Open Source | MIT | 2,023 | krug-website | Krakow-Ruby-Users-Group | Ruby | Code | 21 | 73 | server 'ebisu', user: 'mensfeld', roles: %w{web app db}
set :stage, :production
set :ssh_options, forward_agent: true
set :linked_files, %w{
config/secrets.yml
config/database.yml
}
| 33,565 |
https://github.com/leafycampus/bg4/blob/master/bg4/src/main/java/org/spo/svc3/trx/pgs/t03/mappings/UsrMappings.java | Github Open Source | Open Source | MIT | null | bg4 | leafycampus | Java | Code | 120 | 567 | package org.spo.svc3.trx.pgs.t03.mappings;
import java.lang.reflect.Type;
import java.util.LinkedHashMap;
import org.spo.cms3.svc.PageService;
import org.spo.ifs3.dsl.controller.Forms;
import org.spo.svc3.trx.pgs.t03.cmd.Usr_Menu;
import org.spo.svc3.trx.pgs.t03.cmd.Usr_Reg_I;
import com.google.gson.Gson;
import com... | 8,680 |
https://github.com/streamnative/pulsarctl/blob/master/pkg/ctl/context/internal/config_access.go | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | pulsarctl | streamnative | Go | Code | 1,133 | 2,623 | // 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... | 56,210 |
https://github.com/apsoftwaredev/psytrack/blob/master/ExistingSupervisionGivenEntity.m | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | psytrack | apsoftwaredev | Objective-C | Code | 37 | 118 | //
// ExistingSupervisionGivenEntity.m
// PsyTrack Clinician Tools
// Version: 1.5.4
//
// Created by Daniel Boice on 1/1/13.
// Copyright (c) 2013 PsycheWeb LLC. All rights reserved.
//
#import "ExistingSupervisionGivenEntity.h"
#import "ExistingHoursEntity.h"
@implementation ExistingSupervisionGivenEntity
@dy... | 4,481 |
https://github.com/gdk46/CrudPhp/blob/master/Database/Crud.php | Github Open Source | Open Source | MIT | 2,022 | CrudPhp | gdk46 | PHP | Code | 359 | 1,161 | <?php
namespace Crud\Database;
use Crud\Config\Mensage;
class Crud
{
private $db;
/**
* Instancia Database
*
* @param $connection Receive connection with database
*/
public function __construct($connection)
{
$this->db = $connection;
}
/**
* Insert data fr... | 9,092 |
https://github.com/cml-techniques/Techniques/blob/master/CmlTechniques/CmlTechniques/CMS/CAS_Commissioning1.aspx.cs | Github Open Source | Open Source | MIT | 2,019 | Techniques | cml-techniques | C# | Code | 14,559 | 55,176 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLogic;
using App_Properties;
using System.Data;
namespace CmlTechniques.CMS
{
public partial class CAS_Commissioning1 : System.Web.UI.Page
{
public st... | 48,111 |
https://github.com/Corniel/Sudoku/blob/master/src/Corniel.Sudoku/SudokuSolver.cs | Github Open Source | Open Source | MIT | null | Sudoku | Corniel | C# | Code | 118 | 339 | using Corniel.Sudoku.Events;
using System;
using System.Collections.Generic;
namespace Corniel.Sudoku
{
/// <summary>A solver for Sudoku puzzles.</summary>
public class SudokuSolver
{
/// <summary>Initializes a new solver for a given puzzle.</summary>
public SudokuSolver(SudokuPuzzle puzzl... | 28,260 |
https://github.com/tia337/maokg/blob/master/MAOKG_lab2/src/sample/Figure.java | Github Open Source | Open Source | MIT | null | maokg | tia337 | Java | Code | 286 | 1,122 | package sample;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.GeneralPath;
import java.awt.geom.Line2D;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.Timer;
public class Figure extends JPanel implements ActionListener {
... | 18,948 |
https://github.com/BieleckiLtd/RepoDB/blob/master/RepoDb.Core/RepoDb/Operations/DbRepository/CountAll.cs | Github Open Source | Open Source | Apache-2.0 | null | RepoDB | BieleckiLtd | C# | Code | 504 | 1,271 | using System;
using System.Data;
using System.Data.Common;
using System.Threading.Tasks;
namespace RepoDb
{
/// <summary>
/// A base object for all shared-based repositories.
/// </summary>
public partial class DbRepository<TDbConnection> : IDisposable
where TDbConnection : DbConnection
{
... | 41,494 |
https://github.com/cookra/CA-Agile-Central---Viewport-Container/blob/master/App.js | Github Open Source | Open Source | MIT | 2,017 | CA-Agile-Central---Viewport-Container | cookra | JavaScript | Code | 216 | 645 | // R Cook
// v1.0.1
// 2017-02-21
// Template script to load a viewport with 5 panels
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function () {
console.log('f launch');
var me = this; // <- Personal preference but I like me rather than this;)
me._... | 9,720 |
https://github.com/DragonRuby/dragonruby-game-toolkit-contrib/blob/master/samples/10_advanced_debugging/03_unit_tests/serialize_deserialize_tests.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | dragonruby-game-toolkit-contrib | DragonRuby | Ruby | Code | 401 | 2,213 | def assert_hash_strings! assert, string_1, string_2
Kernel.eval("$assert_hash_string_1 = #{string_1}")
Kernel.eval("$assert_hash_string_2 = #{string_2}")
assert.equal! $assert_hash_string_1, $assert_hash_string_2
end
def test_serialize args, assert
args.state.player_one = "test"
result = args.gtk.serialize_... | 3,876 |
https://github.com/flatlevel/FishPi-POCV---Command---Control/blob/master/fishpi/sensor/camera.py | Github Open Source | Open Source | BSD-2-Clause | 2,016 | FishPi-POCV---Command---Control | flatlevel | Python | Code | 465 | 1,712 |
#
# FishPi - An autonomous drop in the ocean
#
#
# CameraController
# - provides interface for image capture
#
import os
import logging
from PIL import Image
import pygame
import pygame.camera
from pygame.locals import *
class CameraController(object):
""" Provides access to camera devices. """
TICK_DELAY ... | 23,910 |
https://github.com/lmt6498/CaseStudy_Module3_LMS/blob/master/src/main/webapp/homeKH.jsp | Github Open Source | Open Source | MIT | 2,021 | CaseStudy_Module3_LMS | lmt6498 | null | Spoken | 430 | 2,050 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Theme Made By www.w3schools.com - No Copyright -->
<title>Bootstrap Theme Simply Me</title>
<meta charset="utf-8">
<meta name=... | 3,000 |
https://github.com/AlexMocioi/signME/blob/master/app/controller/Login.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | signME | AlexMocioi | JavaScript | Code | 178 | 1,026 | Ext.define('signME.controller.Login', {
extend: 'Ext.app.Controller',
stores: [
'User'
],
views: [
'LoginForm',
'MainToolbar'
],
init: function() {
this.control({
"loginform button[id=btnSubmit]": {
click: this.onLoginClick
... | 25,458 |
https://github.com/PragmaWolf/collectionLessCSS/blob/master/lib/mixins-text.less | Github Open Source | Open Source | MIT | 2,015 | collectionLessCSS | PragmaWolf | Less | Code | 348 | 1,186 | @charset "utf-8";
//============================================================
// Коллекция LESS CSS: Примеси для установки параметров текста в элементах
//
// @description LESS CSS параметры и миксины для проекта
// @see http://lesscss.org///
//============================================================
// Сделат... | 21,502 |
https://github.com/s94285/onnx-darknet/blob/master/onnx_darknet/handlers/frontend/reduce_prod.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | onnx-darknet | s94285 | Python | Code | 29 | 139 | from onnx_darknet.handlers.frontend_handler import FrontendHandler
from onnx_darknet.handlers.handler import onnx_op
from onnx_darknet.handlers.handler import darknet_op
from .math_mixin import ReductionMixin
@onnx_op("ReduceProd")
@darknet_op("Prod")
class ReduceProd(ReductionMixin, FrontendHandler):
@classmethod... | 26,780 |
https://github.com/sigmike/blender/blob/master/source/blender/vr/intern/vr_widget_select.cpp | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | null | blender | sigmike | C++ | Code | 6,002 | 21,188 | /*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 2
* of the License, or (at your option) any later version.
*
* This program is d... | 52,794 |
https://github.com/pagupasoft/NEOPAGUPA/blob/master/resources/views/admin/ventas/retencionRecibidaXML/index.blade.php | Github Open Source | Open Source | MIT | null | NEOPAGUPA | pagupasoft | PHP | Code | 156 | 812 | @extends ('admin.layouts.admin')
@section('principal')
<div class="card card-secondary">
<div class="card-header">
<h3 class="card-title">Cargar Retenciones Recibidas</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<form class="form-horizontal" method="POST" action="{{ url("re... | 51,552 |
https://github.com/ericmarc159/HealthTracker/blob/master/src/components/App.jsx | Github Open Source | Open Source | MIT | null | HealthTracker | ericmarc159 | null | Spoken | 48 | 130 | import React from 'react';
import {BrowserRouter, Route, Switch} from 'react-router-dom'
import Header from './Header.jsx'
import Main from './Main.jsx'
// import SignUp from '../components/SignUp'
const App = () => {
return (
<BrowserRouter>
<Header/>
<Switch>
<Route path = '/' component ={Mai... | 43,336 |
https://github.com/LimeEng/MarkovChain/blob/master/src/test/java/test_utils/Block.java | Github Open Source | Open Source | MIT | null | MarkovChain | LimeEng | Java | Code | 31 | 55 | package test_utils;
/**
* Utility interface for representing a block of code to be executed, while also
* throwing exceptions
*/
@FunctionalInterface
public interface Block {
void run() throws Exception;
}
| 44,740 |
https://github.com/RocMarshal/fevernova/blob/master/src/main/java/com/github/fevernova/io/kafka/data/KafkaData.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | fevernova | RocMarshal | Java | Code | 71 | 227 | package com.github.fevernova.io.kafka.data;
import com.github.fevernova.framework.common.data.Data;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class KafkaData implements Data {
private String topic;
private String destTopic;
private byte[] key;
private byte[] value;
... | 42,922 |
https://github.com/viestrada22/reservas/blob/master/microservicio/infraestructura/src/main/resources/sql/tipohabitacion/listar.sql | Github Open Source | Open Source | Apache-2.0 | null | reservas | viestrada22 | SQL | Code | 5 | 13 | select id, tipoHabitacion from tipo_habitacion | 18,701 |
https://github.com/vicfran/galileo/blob/master/galileo-realm/src/main/java/com/josedlpozo/galileo/realm/realmbrowser/view/RealmBrowserViewField.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | galileo | vicfran | Kotlin | Code | 486 | 1,541 | /*
* The MIT License (MIT)
*
* Original Work: Copyright (c) 2015 Danylyk Dmytro
*
* Modified Work: Copyright (c) 2015 Rottmann, Jonas
*
* Modified Work: Copyright (c) 2018 vicfran
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation f... | 6,483 |
https://github.com/NeoRyu/GestionParcInfo/blob/master/src/application/resources/UIResources.properties | Github Open Source | Open Source | Apache-2.0 | 2,016 | GestionParcInfo | NeoRyu | null | Spoken | 211 | 641 | # Titre
titre = ITpark Manager
# Menu Fichier
root_file = Fichier
root_file_main = Accueil
root_file_machine = Machine
root_file_composant = Composant
root_file_exit = Quitter
# Menu Configuration
root_config = Configuration
root_config_db = Base de Donnees
root_config_skin = Changer le Skin
root_config_lang = Chang... | 14,649 |
https://github.com/adminicg/opentracker/blob/master/src/core/EventQueueImplementation.cxx | Github Open Source | Open Source | BSD-3-Clause | 2,021 | opentracker | adminicg | C++ | Code | 566 | 1,189 | /* ========================================================================
* Copyright (c) 2006,
* Institute for Computer Graphics and Vision
* Graz University of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... | 54,984 |
https://github.com/lucastheo/SMQ/blob/master/server/src/main/java/simplesmq/service/mensagem/MensagemTempoConsumoService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | SMQ | lucastheo | Java | Code | 132 | 535 | package simplesmq.service.mensagem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import simplesmq.domain.entity.MensagemEntit... | 33,710 |
https://github.com/ianaditama26/tokoOnline/blob/master/resources/views/layouts/partials/head.blade.php | Github Open Source | Open Source | MIT | null | tokoOnline | ianaditama26 | PHP | Code | 39 | 222 | <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Toko UKM</title>
{{-- icon head --}}
<link rel="icon" href="{{ asset('storage/icon/shopping-bag.png') }}">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:20... | 301 |
https://github.com/nowakprojects/KtTimeTraveler/blob/master/kt-time-traveler-core/src/main/kotlin/pl/zycienakodach/kttimetraveler/core/Java8TimeApiExtensions.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | KtTimeTraveler | nowakprojects | Kotlin | Code | 52 | 268 | package pl.zycienakodach.kttimetraveler.core
import java.time.*
fun LocalTime.toInstant(localDate: LocalDate = LocalDate.now(), zoneId: ZoneId = ZoneId.systemDefault()) =
this.atDate(localDate).toInstant(zoneId)
fun LocalDate.toInstant(localTime: LocalTime = LocalTime.of(0, 0), zoneId: ZoneId = ZoneId.system... | 678 |
https://github.com/Siddhant-K-code/Frontend/blob/master/src/components/Feed/Dropdown.jsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | Frontend | Siddhant-K-code | null | Spoken | 263 | 921 | import PropTypes from 'prop-types';
import React, { useState, useRef, useEffect } from 'react';
// import onClickOutside from 'react-onclickoutside';
import styles from '../../scss/dropdown.module.scss';
const Dropdown = ({ items, multiSelect = false }) => {
const [open, setOpen] = useState(false);
const [select... | 34,613 |
https://github.com/leaofelipe/javascript-design-patterns/blob/master/creational/factory/fixtures/taskRepo.js | Github Open Source | Open Source | WTFPL | 2,017 | javascript-design-patterns | leaofelipe | JavaScript | Code | 43 | 107 | 'use strict'
/* FACTORY EXAMPLES FIXTURE */
let taskRepo = function () {
let get = function (id) {
return {name: 'Task #1'}
}
return {
get: get,
save: function (task) {
return {name: task.name, status: 'OK'}
}
}
}
module.exports = taskRepo()
| 15,124 |
https://github.com/KarolosLykos/dendrite/blob/master/userapi/storage/postgres/stats_table.go | Github Open Source | Open Source | Apache-2.0 | null | dendrite | KarolosLykos | Go | Code | 1,550 | 4,899 | // Copyright 2022 The Matrix.org Foundation C.I.C.
//
// 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... | 52,440 |
https://github.com/majacQ/data.gov/blob/master/roots-nextdatagov/templates/head.php | Github Open Source | Open Source | CC0-1.0 | 2,022 | data.gov | majacQ | PHP | Code | 67 | 310 | <!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php wp_title('|', true, 'right'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
<link rel=... | 5,818 |
https://github.com/Zireael-N/node-weakauras-parser/blob/master/native/src/ace_serialize/serialization/mod.rs | Github Open Source | Open Source | MIT | 2,023 | node-weakauras-parser | Zireael-N | Rust | Code | 401 | 1,472 | use crate::macros::check_recursion;
use serde_json::Value;
fn f64_to_parts(v: f64) -> (u64, i16, i8) {
let bits = v.to_bits();
let sign: i8 = if bits >> 63 == 0 { 1 } else { -1 };
let mut exponent: i16 = ((bits >> 52) & 0x7ff) as i16;
let mantissa = if exponent == 0 {
(bits & 0xfffffffffffff) <... | 19,452 |
https://github.com/isabella232/intellij-stats-collector/blob/master/test/com/intellij/mocks/SortingMocks.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | intellij-stats-collector | isabella232 | Kotlin | Code | 202 | 488 | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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 agre... | 56,566 |
https://github.com/The-Peso-G/trousers/blob/master/src/index.spec.tsx | Github Open Source | Open Source | MIT | 2,020 | trousers | The-Peso-G | TSX | Code | 283 | 878 | /**
* @jest-environment node
*/
import React, { FC, ReactNode } from 'react';
import { renderToString } from 'react-dom/server';
import { hydrate } from 'react-dom';
import { JSDOM } from 'jsdom';
import {
StyleCollector,
SingleStyleCollector,
ThemeProvider,
styleCollector,
useStyles,
css,
... | 46,536 |
https://github.com/Koderpark/1Day1CommitBot/blob/master/node_modules/node-kakao/dist/talk/chat/template/media-template.d.ts | Github Open Source | Open Source | MIT | 2,020 | 1Day1CommitBot | Koderpark | TypeScript | Code | 86 | 243 | /// <reference types="node" />
import { ChatType } from "../chat-type";
export interface MediaItemTemplate {
name: string;
data: Buffer;
ext?: string;
}
export interface SizedMediaItemTemplate extends MediaItemTemplate {
width: number;
height: number;
}
export interface BaseMediaTemplate<T extends C... | 25,833 |
https://github.com/jamiepg1/catharsis/blob/master/bin/catharsis | Github Open Source | Open Source | BSD-2-Clause | 2,013 | catharsis | jamiepg1 | Shell | Code | 5 | 22 | #!/bin/bash
quark -f2 catharsis.clp $@
| 24,407 |
https://github.com/cnotoham/fastlane/blob/master/spaceship/lib/spaceship/connect_api/models/app.rb | Github Open Source | Open Source | MIT | null | fastlane | cnotoham | Ruby | Code | 783 | 3,336 | require_relative '../model'
require_relative './build'
module Spaceship
class ConnectAPI
class App
include Spaceship::ConnectAPI::Model
attr_accessor :name
attr_accessor :bundle_id
attr_accessor :sku
attr_accessor :primary_locale
attr_accessor :removed
attr_accessor :is... | 53,915 |
https://github.com/2sharpi/trackingapp/blob/master/application/controllers/PublicPage.php | Github Open Source | Open Source | MIT | 2,019 | trackingapp | 2sharpi | PHP | Code | 92 | 554 | <?php
defined('BASEPATH') or exit ('access denied ');
class PublicPage extends CI_Controller{
public function index(){
$this->load->view('web/header.php');
$this->load->view('web/index.php');
$this->load->view('web/footer.php');
}
public function tracking($input = null){
... | 23,742 |
https://github.com/mastrosoft/GoogleCloudPrintApi/blob/master/GoogleCloudPrintApi/Models/Printer/Cover.cs | Github Open Source | Open Source | MIT | 2,017 | GoogleCloudPrintApi | mastrosoft | C# | Code | 194 | 504 | using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace GoogleCloudPrintApi.Models.Printer
{
/// <summary>
/// Physical model of a printer cover.
/// </summary>
public class Cover
{
/// <summary>
/// Enumeration of cover types.
/// </summary>
[JsonCon... | 11,497 |
https://github.com/yaii/ipyconsole/blob/master/IPython/winconsole.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ipyconsole | yaii | Python | Code | 151 | 406 | """Set of functions to work with console on Windows.
"""
#*****************************************************************************
# Copyright (C) 2005 Alexander Belchenko <bialix@ukr.net>
#
# This file is placed in the public domain.
#
#*******************************************************... | 38,951 |
https://github.com/ChrisLambrou/TinyJsonSer/blob/master/.build/build.ps1 | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-unknown | 2,017 | TinyJsonSer | ChrisLambrou | PowerShell | Code | 536 | 1,749 | # This file cannot be invoked directly; it simply contains a bunch of Invoke-Build tasks. To use it, invoke
# _init.ps1 which declares three global functions (build, clean, rebuild), then invoke one of those functions.
[CmdletBinding()]
param([string]$Configuration = 'Release')
use 14.0 MSBuild
# Useful paths used b... | 39,667 |
https://github.com/mbizhani/DModuleArchetype/blob/master/src/main/resources/archetype-resources/common/pom.xml | Github Open Source | Open Source | Apache-2.0 | 2,018 | DModuleArchetype | mbizhani | null | Spoken | 33 | 362 | <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>${groupId}</group... | 6,823 |
https://github.com/metux/chromium-suckless/blob/master/third_party/wds/src/mirac_network/gst-test.cpp | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-only, LGPL-2.0-or-later, GPL-1.0-or-later, MIT, Apache-2.0 | 2,017 | chromium-suckless | metux | C++ | Code | 440 | 1,435 | /*
* This file is part of Wireless Display Software for Linux OS
*
* Copyright (C) 2014 Intel Corporation.
*
* Contact: Alexander Kanavin <alex.kanavin@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | 16,225 |
https://github.com/SimoNonnis/react-tabs/blob/master/TabContent/component.spec.jsx | Github Open Source | Open Source | MIT | null | react-tabs | SimoNonnis | null | Spoken | 45 | 109 | /* eslint-env jest */
import React from 'react';
import { shallow } from 'enzyme';
import TabContent from './component';
describe('Test <TabContent />', () => {
const wrapper = shallow(<TabContent >The 1st tab content is here</TabContent>);
it('should find <TabContent /> component', () => {
expect(wrapper.fi... | 30,687 |
https://github.com/Demosphere/TheCodexServicing/blob/master/tests/persistence/AbstractDAOTest.java | Github Open Source | Open Source | Apache-2.0 | null | TheCodexServicing | Demosphere | Java | Code | 157 | 609 | package persistence;
import entity.Level1;
import entity.Level2;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import java.util.Set;
import static org.junit.Assert.*;
/**
* Created by paulawaite on 4/24/16.
*/
public class AbstractDAOTest {
AbstractDAO dao;
Level1 levelTest;
@... | 27,815 |
https://github.com/bevyengine/bevy/blob/master/crates/bevy_gilrs/src/converter.rs | Github Open Source | Open Source | Apache-2.0, MIT, Zlib, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-other-permissive | 2,023 | bevy | bevyengine | Rust | Code | 162 | 770 | use bevy_input::gamepad::{Gamepad, GamepadAxisType, GamepadButtonType};
pub fn convert_gamepad_id(gamepad_id: gilrs::GamepadId) -> Gamepad {
Gamepad::new(gamepad_id.into())
}
pub fn convert_button(button: gilrs::Button) -> Option<GamepadButtonType> {
match button {
gilrs::Button::South => Some(Gamepad... | 16,334 |
https://github.com/yash786agg/Catalog/blob/master/app/src/androidTest/java/com/app/catalog/utils/ConstantTest.kt | Github Open Source | Open Source | Apache-2.0 | null | Catalog | yash786agg | Kotlin | Code | 27 | 70 | package com.app.catalog.utils
class ConstantTest {
companion object {
const val TEST_MILK_VALUE : String = "Milk"
const val TEST_PRODUCT_NAME_MILK : String = "Product Name : Milk"
}
} | 7,665 |
https://github.com/dizzyd/Mekanism/blob/master/src/main/java/mekanism/generators/common/tile/TileEntityAdvancedSolarGenerator.java | Github Open Source | Open Source | MIT | 2,019 | Mekanism | dizzyd | Java | Code | 179 | 674 | package mekanism.generators.common.tile;
import javax.annotation.Nonnull;
import mekanism.api.Coord4D;
import mekanism.api.IEvaporationSolar;
import mekanism.common.base.IBoundingBlock;
import mekanism.common.capabilities.Capabilities;
import mekanism.common.config.MekanismConfig.generators;
import mekanism.common.uti... | 6,749 |
https://github.com/yatostar/soundsgood/blob/master/app/models/PostVideo.php | Github Open Source | Open Source | MIT | 2,017 | soundsgood | yatostar | PHP | Code | 15 | 47 | <?php
use Illuminate\Database\Eloquent\Model as Eloquent;
class PostVideo extends Eloquent {
protected $table = 'post_video';
} | 47,188 |
https://github.com/shixincube/CubeWare-Android/blob/master/app/src/main/java/cube/ware/widget/indexbar/CubeIndexBar.java | Github Open Source | Open Source | MIT | 2,021 | CubeWare-Android | shixincube | Java | Code | 1,446 | 5,728 | package cube.ware.widget.indexbar;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.support.v4.widget.NestedScrollView;
import ... | 40,578 |
https://github.com/pearsonk/xc-windows/blob/master/xenevtchn/dumpdev.c | Github Open Source | Open Source | MIT | 2,021 | xc-windows | pearsonk | C | Code | 786 | 2,703 | /*
* Copyright (c) 2010 Citrix Systems, Inc.
*
* 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
* to use, copy, modify, merg... | 22,476 |
https://github.com/robertlestak/docker-registry/blob/master/registrymanager/pkg/catalog/catalog.go | Github Open Source | Open Source | MIT | 2,020 | docker-registry | robertlestak | Go | Code | 330 | 1,031 | package catalog
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"strconv"
"github.com/umg/docker-registry-manager/pkg/users"
)
// BasicAuthRealm is the string name of the realm
const BasicAuthRealm string = "Docker Registry"
// Catalog contains the repositories list
type Catalog struct ... | 29,060 |
https://github.com/christopheriskindacool/baldi-vr/blob/master/Assets/Scripts/Assembly-CSharp/WarningScreenScript.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | baldi-vr | christopheriskindacool | C# | Code | 43 | 151 | using System;
using UnityEngine;
using UnityEngine.SceneManagement;
using Valve.VR;
// Token: 0x02000030 RID: 48
public class WarningScreenScript : MonoBehaviour
{
// Token: 0x060000F2 RID: 242 RVA: 0x00008278 File Offset: 0x00006678
private void Update()
{
if (SteamVR_Input.GetFloat("UseItem", SteamVR_Input_Sou... | 35,876 |
https://github.com/stillwater-sc/universal/blob/master/internal/blockdecimal/CMakeLists.txt | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown, LGPL-3.0-only, LicenseRef-scancode-public-domain | 2,023 | universal | stillwater-sc | CMake | Code | 40 | 245 | file (GLOB API_SRC "./api/*.cpp")
file (GLOB CONVERSION_SRC "./conversion/*.cpp")
file (GLOB ARITHMETIC_SRC "./arithmetic/*.cpp")
file (GLOB LOGIC_SRC "./logic/*.cpp")
file (GLOB PERFORMANCE_SRC "./performance/*.cpp")
compile_all("true" "bd" "Internal/block-level/blockdecimal/api" "${API_SRC}")
compile_all("true" "bd"... | 24,074 |
https://github.com/ZHISHAN-IoT/zhishan-iot.ga/blob/master/page/mirror/Cadence to Acquire Tensilica_files/cadence_007.js | Github Open Source | Open Source | MIT | 2,017 | zhishan-iot.ga | ZHISHAN-IoT | JavaScript | Code | 305 | 1,019 |
var searchq='';
var mouseq=false;
var useenter=false;
define(['jquery', 'cadence','cadence.utils', 'bootstrap3-typeahead'], function($) {
$('.clearable').on('keyup', this, function (event) {
if (event.keyCode == 13) {
if(!useenter) {
if(!mouseq) {
$(this).val(searchq);
$(... | 4,316 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/morph/P106/P106355.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 126 | 510 | #new_text=P106355
FORM SEGM XPOSTAG XPOSTAG POS
3(u) 3(u)[ten] NU NU D
dug dug[pot] N N D
1(ban2) 1(ban)[unit] NU N D
5(disz) 5(disz)[one] NU NU D
sila3 sila[unit] N N D
kasz kasz[beer] N N D
nig2-diri-ka-sze3 _ N N POS
ki ki[place] N N D
lugal-sza3-la2-ta _ PN PN Iabcdefgh
lugal-e lugal[king]-e N N.ERG D
szu szu[hand]... | 1,570 |
https://github.com/copslock/broadcom_cpri/blob/master/sdk-6.5.20/libs/sdklt/bcmltx/bcmtnl/bcmltx_tnl_mpls_policy_sel.c | Github Open Source | Open Source | Spencer-94 | null | broadcom_cpri | copslock | C | Code | 311 | 1,262 | /*! \file bcmltx_port_vlan_xlate_icfi_mapped.c
*
* PORT_VLAN_XLATE.ICFI_MAPPED Transform Handler
*
* This file contains field transform information for PORT_VLAN_XLATE.ICFI_MAPPED.
*
* Element 'N' of PORT_VLAN_XLATE.ICFI_MAPPED array corresponds to the field
* arg->rfield[N](forward transform), arg->field[N](rev... | 34,922 |
https://github.com/bagwaa/richardbagshaw.co.uk/blob/master/src/pages/success.js | Github Open Source | Open Source | MIT | null | richardbagshaw.co.uk | bagwaa | JavaScript | Code | 101 | 294 | import React from "react"
import Helmet from "react-helmet"
import Layout from "../components/layout"
import thanksGif from "../../static/thanks.gif"
const Success = props => {
return (
<Layout location="/success" title="Richard Bagshaw">
<Helmet>
<title>Success Page</title>
<meta name="des... | 45,808 |
https://github.com/ogolem/ogolem/blob/master/src/org/ogolem/generic/threading/GenericThreadDispatcher.java | Github Open Source | Open Source | BSD-4-Clause | 2,022 | ogolem | ogolem | Java | Code | 831 | 1,974 | /*
Copyright (c) 2013-2014, J. M. Dieterich
2015, J. M. Dieterich and B. Hartke
2017-2020, J. M. Dieterich and B. Hartke
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
*... | 37,648 |
https://github.com/nuintun/qrcode/blob/master/src/qrcode/encoder/QRKanji.ts | Github Open Source | Open Source | MIT | 2,022 | qrcode | nuintun | TypeScript | Code | 183 | 419 | /**
* @module QRKanji
* @author nuintun
* @author Kazuhiko Arase
* @description SJIS only
*/
import { QRData } from './QRData';
import { Mode } from '../common/Mode';
import { BitBuffer } from './BitBuffer';
import { encode } from '../../encoding/SJIS';
export class QRKanji extends QRData {
/**
* @construct... | 5,485 |
https://github.com/Ayfri/2d-minecraft/blob/master/src/blocks/Tile.ts | Github Open Source | Open Source | MIT | 2,021 | 2d-minecraft | Ayfri | TypeScript | Code | 212 | 845 | import { game } from '../main';
import PIXI from '../PIXI';
import { BlockType, Directions, TileEvents } from '../types';
import Collection from '../utils/Collection';
import EventEmitter from '../utils/EventEmitter';
import TilePosition from '../utils/TilePosition';
import Block from './Block';
export default class T... | 39,991 |
https://github.com/hashtag32/CreatorDash/blob/master/src/components/EditableTableReport/EditableSwitch.js | Github Open Source | Open Source | MIT | null | CreatorDash | hashtag32 | JavaScript | Code | 262 | 759 | import { readDBData, writeDBData } from "components/Internal/DBFunctions.js";
import { useDispatch, useSelector } from "react-redux";
import { useEffect, useState } from "react";
import Button from "components/CustomButtons/Button.js";
import CommonComps from "components/Internal/CommonComps.js";
import MaterialTable ... | 30,556 |
https://github.com/geakw/AndroidArchComponents/blob/master/app/src/main/java/com/geakw/arch/components/RotateActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | AndroidArchComponents | geakw | Java | Code | 71 | 301 | package com.geakw.arch.components;
import android.app.Activity;
import android.arch.lifecycle.LifecycleActivity;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity... | 42,058 |
https://github.com/houssemtayech/darkom/blob/master/app/cache/dev/twig/21/212bf9709fcbe3511fb0d98d0d42eb98080b322c2dc9ea24d1eda8ee0a3aa0f3.php | Github Open Source | Open Source | MIT | null | darkom | houssemtayech | PHP | Code | 1,695 | 7,153 | <?php
/* EspritDarkomBundle:Default:Annonceur.html.twig */
class __TwigTemplate_c5f262d541a64239a6a1df253106298897f4e07b56794e4daf7939633cc2b57f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks... | 40,769 |
https://github.com/ashwinche/health-tech/blob/master/html/aboutus.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | health-tech | ashwinche | PHP | Code | 475 | 1,355 | <?php
error_reporting(0);
session_start();
if($_SESSION['valid']){
$login=1;
}
$displayname = $_SESSION['displayname'];
$isdoctor = $_SESSION['user_is_doctor'];
?>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.co... | 19,956 |
https://github.com/rosahuanaco/webterminalmaster/blob/master/application/views/chofer/inc_chofer.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | webterminalmaster | rosahuanaco | PHP | Code | 154 | 790 | <!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" style="background-image: linear-gradient(#ffffff, #114A7F);">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
... | 31,883 |
https://github.com/taisiusyut/taisiusyut/blob/master/packages/web/day.ts | Github Open Source | Open Source | MIT | 2,021 | taisiusyut | taisiusyut | TypeScript | Code | 12 | 56 | import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import 'dayjs/locale/zh-tw';
dayjs.locale('zh-tw');
dayjs.extend(relativeTime);
| 647 |
https://github.com/TencentCloud/tencentcloud-sdk-dotnet-intl-en/blob/master/TencentCloud/Ses/V20201002/SesClient.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | tencentcloud-sdk-dotnet-intl-en | TencentCloud | C# | Code | 2,761 | 8,511 | /*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 17,803 |
https://github.com/Anzumana/DeltaEngineCpp/blob/master/Core/Runner.h | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,012 | DeltaEngineCpp | Anzumana | C++ | Code | 57 | 116 | #pragma once
#include "Object.h"
namespace DeltaEngine { namespace Core
{
// Allows classes to automatically run before any app code each frame (clearing, actors, physics,
// etc.). Runners are executed in threads based on dependencies used in their constructors.
// http://DeltaEngine.net/About/CodingStyle#Runners
... | 45,775 |
https://github.com/liuyb4016/model_project/blob/master/model_springmvc/src/main/java/cn/liuyb/app/sync/handler/MultipartCmdHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | model_project | liuyb4016 | Java | Code | 27 | 115 | package cn.liuyb.app.sync.handler;
import java.util.Map;
import org.springframework.web.multipart.MultipartFile;
import cn.liuyb.app.sync.json.Request;
import cn.liuyb.app.sync.json.Response;
public interface MultipartCmdHandler<T extends Request> extends CmdHandler {
public abstract Response handle(T request,... | 35,072 |
https://github.com/ibmresilient/resilient-community-apps/blob/master/fn_reaqta/fn_reaqta/components/funct_reaqta_get_processes.py | Github Open Source | Open Source | MIT | 2,023 | resilient-community-apps | ibmresilient | Python | Code | 169 | 634 | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2010, 2022. All Rights Reserved.
"""AppFunction implementation"""
from fn_reaqta.lib.app_common import AppCommon, PACKAGE_NAME, get_hive_options
from resilient_circuits import AppFunctionComponent, app_function, Fu... | 46,542 |
https://github.com/maaz583/noor/blob/master/environments/uat/common/config/params-local.php | Github Open Source | Open Source | BSD-3-Clause | null | noor | maaz583 | PHP | Code | 16 | 80 | <?php
return [
'app' => 'https://business-uat.ziggyjobs.com',
'env' => 'uat',
'api' => 'https://api-uat.ziggyjobs.com',
'backoffice' => 'https://backoffice-uat.ziggyjobs.com',
];
| 6,032 |
https://github.com/sagb/libtrivdl/blob/master/examples/stream/Makefile | Github Open Source | Open Source | MIT | 2,021 | libtrivdl | sagb | Makefile | Code | 26 | 76 |
all: example-stream-posix example-stream-msp430
example-stream-posix:
cd posix && make all
example-stream-msp430:
cd msp430 && make all
clean:
cd posix && make clean
cd msp430 && make clean
| 656 |
https://github.com/coopsrc/xAndroid/blob/master/dewdrops/src/main/java/com/coopsrc/xandroid/dewdrops/processor/IProcessorBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | xAndroid | coopsrc | Java | Code | 50 | 208 | package com.coopsrc.xandroid.dewdrops.processor;
import com.coopsrc.xandroid.dewdrops.annotation.Mode;
import com.coopsrc.xandroid.dewdrops.annotation.Scheme;
/**
* @author tingkuo
* <p>
* Datetime: 2019-10-08 18:08
*/
public interface IProcessorBuilder {
IProcessorBuilder mode(@Mode int mode);
IProcesso... | 54,475 |
https://github.com/dataewan/datatools-taxonomy/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,013 | datatools-taxonomy | dataewan | Makefile | Code | 15 | 67 | newcomment:
python strip_comments.py
python yaml2json.py ratings.yaml
updateratings:
python strip_comments.py
python csv2yaml.py ratings.csv
python yaml2json.py ratings.yaml
| 12,882 |
https://github.com/amosassis/tic-tac-toe-pure/blob/master/src/app.js | Github Open Source | Open Source | MIT | null | tic-tac-toe-pure | amosassis | JavaScript | Code | 366 | 1,132 | const app = document.getElementById('board');
const player = document.getElementById('player');
const placar = document.getElementById('placar');
let moveElements = {};
const moves = ['X', 'O'];
const totalPoints = {
0: 0,
1: 0
};
let priorMoveIndex = 0;
let actualMoveIndex = 0;
let gameStatus = 0;
const winner... | 31,156 |
https://github.com/rubedos/l4t_R32.5.1_viper/blob/master/kernel/kernel-4.9/tools/include/linux/spinlock.h | Github Open Source | Open Source | MIT | 2,019 | l4t_R32.5.1_viper | rubedos | C | Code | 19 | 116 | #define spinlock_t pthread_mutex_t
#define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER;
#define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x)
#define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x)
| 54,405 |
https://github.com/GTNewHorizons/LunatriusCore/blob/master/src/main/java/com/github/lunatrius/core/util/vector/Vector3d.java | Github Open Source | Open Source | MIT | 2,022 | LunatriusCore | GTNewHorizons | Java | Code | 395 | 1,221 | package com.github.lunatrius.core.util.vector;
public class Vector3d extends Vector2d {
public double z;
public Vector3d() {
this(0, 0, 0);
}
public Vector3d(Vector3d vec) {
this(vec.x, vec.y, vec.z);
}
public Vector3d(double num) {
this(num, num, num);
}
pub... | 31,045 |
https://github.com/denissceluiko/vote-lusp/blob/master/resources/views/election/show.blade.php | Github Open Source | Open Source | MIT | null | vote-lusp | denissceluiko | PHP | Code | 211 | 1,115 | @extends('layouts.app')
@section('content')
<div class="container">
<h1>{{ $election->name }}</h1>
<div class="row">
<div class="col-12 col-md-6 col-lg-4 mb-3">
<div class="card">
<div class="card-header">Dati par vēlēšanu zīmēm</div>
... | 5,813 |
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P291657.conll | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,022 | mtaac_cdli_ur3_corpus | cdli-gh | null | Spoken | 41 | 209 | #new_text=P291657
# ID FORM SEGM XPOSTAG HEAD DEPREL MISC
o.1.1 2(u)
o.1.2 {gesz}dusu
o.2.1 ki
o.2.2 ur-{d}igi-nun-bi-sze3-ta
o.3.1 ARAD2
o.3.2 szu
o.3.3 ba-ti
o.4.1 iti
o.4.2 dal
r.1.1 mu
r.1.2 us2-sa
r.1.3 ki-masz{ki}
r.1.4 ba-hul
s1.1.1 dumu
s1.1.2 u2-rum
s1.2.1 ARAD2
| 29,763 |
https://github.com/courtc/libhal_stub/blob/master/libhal_stub.c | Github Open Source | Open Source | BSD-2-Clause | 2,013 | libhal_stub | courtc | C | Code | 855 | 2,786 | /*
* Copyright (c) 2013, Courtney Cavin
*
* 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 con... | 55,246 |
https://github.com/apple/swift-lldb/blob/master/packages/Python/lldbsuite/test/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py | Github Open Source | Open Source | NCSA, Apache-2.0, LLVM-exception | 2,019 | swift-lldb | apple | Python | Code | 795 | 2,195 | """
Test that the Python operating system plugin works correctly
"""
from __future__ import print_function
import os
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class PluginPythonOSPlugin(TestBase):
mydir = TestBase.compute_mydir(__file__)
NO_DEBUG_INFO_TES... | 36,842 |
https://github.com/pgeorgopoulos/forFun/blob/master/terraform/main.tf | Github Open Source | Open Source | MIT | 2,019 | forFun | pgeorgopoulos | HCL | Code | 13 | 18 | #Provision another ec2 instance and run a container on it for some website. | 3,933 |
https://github.com/luca1337/DirectX11Framework/blob/master/D3D11Framework/D3D11Framework/BoxCollider.cpp | Github Open Source | Open Source | MIT | null | DirectX11Framework | luca1337 | C++ | Code | 43 | 225 | #include "BoxCollider.h"
#include "Physics.h"
#include "Actor.h"
#include "Transform.h"
#include "PhysicsMaterial.h"
BoxCollider::BoxCollider(Actor& owner) : Collider(owner, eColliderType::eBOX)
{
box_geometry = std::make_shared<physx::PxBoxGeometry>(physx::PxVec3(owner.transform->scale.x, owner.transform->scale.y, ... | 26,215 |
https://github.com/ryanmoelter/magellan/blob/master/magellan-lint/src/main/java/com/wealthfront/magellan/LintRegistry.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | magellan | ryanmoelter | Kotlin | Code | 50 | 201 | package com.wealthfront.magellan
import com.android.tools.lint.client.api.IssueRegistry
import com.android.tools.lint.detector.api.CURRENT_API
import com.android.tools.lint.detector.api.Issue
internal const val PRIORITY_MED = 5
internal const val PRIORITY_HIGH = 8
internal const val PRIORITY_MAX = 10
class LintRegis... | 40,890 |
https://github.com/ElenaOrozco/colores_web/blob/master/application/views/sections/gallery.php | Github Open Source | Open Source | MIT | null | colores_web | ElenaOrozco | PHP | Code | 136 | 785 |
<section class="my-gallery py-5">
<div class="container pb-5">
<div class="container gallery-container">
<h3 class="title-section text-center p-5 animated zoomIn">GALLERY</h3>
<div class="tz-gallery">
<div class="row mb-3">
<div class="col-md-4">
... | 4,910 |
https://github.com/Buristan/ISAL-Crypto/blob/master/Makefile.PL | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ISAL-Crypto | Buristan | Perl | Code | 415 | 1,463 | use ExtUtils::MakeMaker;
use Cwd qw(abs_path);
use Config;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
# Check nasm and yasm versions support
my $nasm_v = qx(nasm -v);
$nasm_v =~ s{\A.*version (\d+)\.(\d+)\.(\d+).*}{sprintf "%d.%02d%02d", $1, $2, $3}... | 994 |
https://github.com/mimifitz/IOMED/blob/master/node_modules/@elastic/eui/es/services/hooks/useDependentState.js | Github Open Source | Open Source | MIT | null | IOMED | mimifitz | JavaScript | Code | 351 | 727 | function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.p... | 3,005 |
https://github.com/weltam/dremio-oss/blob/master/client/jdbc/src/main/java/com/dremio/jdbc/impl/DremioExceptionMapper.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | dremio-oss | weltam | Java | Code | 647 | 1,539 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 28,230 |
https://github.com/ianhomer/digital-garden/blob/master/packages/garden/src/thing.test.ts | Github Open Source | Open Source | MIT | 2,022 | digital-garden | ianhomer | TypeScript | Code | 30 | 93 | import { createGarden } from "./garden";
const garden = createGarden({
directory: "./src/test/content/",
});
describe("thing", () => {
it("should have name", () => {
const thing = garden.thing("garden/my-name.md");
expect(thing.name).toBe("my-name");
});
});
| 46,619 |
https://github.com/janestreet/universe/blob/master/ppx_sexp_conv/test/expect/test_functors.ml | Github Open Source | Open Source | MIT | 2,020 | universe | janestreet | OCaml | Code | 470 | 2,080 | open! Base
module Maybe = struct
type 'a t = 'a option [@@deriving_inline sexp_grammar]
let _ = fun (_ : 'a t) -> ()
let (t_sexp_grammar : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.t) =
let (_the_generic_group :
Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.generic_group) =
{
implicit_vars = ["o... | 55,814 |
https://github.com/i-den/Courses/blob/master/Software_University/04_PHP_Web_Development_Basics/15_OOP_ADVANCED/01_02_Circle_and_Area_Interface/IArea.php | Github Open Source | Open Source | MIT | 2,020 | Courses | i-den | PHP | Code | 10 | 30 | <?php
namespace Van\Classes\First;
interface IArea
{
public function getSurface();
} | 9,860 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.