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/ruixuantan/tp/blob/master/src/test/java/tutorspet/logic/commands/lesson/EditLessonDescriptorTest.java | Github Open Source | Open Source | MIT | 2,020 | tp | ruixuantan | Java | Code | 125 | 836 | package tutorspet.logic.commands.lesson;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static tutorspet.logic.commands.CommandTestUtil.DESC_LESSON_FRI_8_TO_10;
import static tutorspet.logic.commands.CommandTestUtil.DESC_LESSON_WED_2_TO_4;
... | 23,821 |
https://github.com/andrigoBS/IpsisLiteris/blob/master/src/main/java/scanner/compiler/semantic/Symbol.java | Github Open Source | Open Source | MIT | null | IpsisLiteris | andrigoBS | Java | Code | 22 | 66 | package scanner.compiler.semantic;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class Symbol {
public String Identifier;
public VariableCategory category;
public int atribute_01;
public int atribute_02;
}
| 8,129 |
https://github.com/eddydowle/cerasi/blob/master/cerasiWithinComparisons.R | Github Open Source | Open Source | MIT | 2,021 | cerasi | eddydowle | R | Code | 2,099 | 11,052 | #this code is based around the WGCNA pipeline
setwd("~/Documents/Cerasi/Cerosi/salmonResults/BackToHigh2Mremove3M/")
setwd("~/Documents/Cerasi/Cerosi/salmonResults2018MainTranscript/BackToHigh2Mremove3Mand25sample/")
High<-read.table('Table.cerosi.high.fixannot',header=T,row.names=NULL,sep='\t')
low<-read.table('Table... | 33,957 |
https://github.com/Game-Designing/Custom-Football-Game/blob/master/sources/com/google/gson/C10178i.java | Github Open Source | Open Source | MIT | 2,019 | Custom-Football-Game | Game-Designing | Java | Code | 162 | 523 | package com.google.gson;
/* renamed from: com.google.gson.i */
/* compiled from: FieldNamingPolicy */
public enum C10178i implements FieldNamingStrategy {
IDENTITY,
UPPER_CAMEL_CASE,
UPPER_CAMEL_CASE_WITH_SPACES,
LOWER_CASE_WITH_UNDERSCORES,
LOWER_CASE_WITH_DASHES;
/* renamed from: a */
st... | 43,092 |
https://github.com/OpenDataServices/contract-xml-parser/blob/master/pytest/test.py | Github Open Source | Open Source | MIT | 2,020 | contract-xml-parser | OpenDataServices | Python | Code | 115 | 483 | import os
import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
@pytest.mark.parametrize("filename", [
("basic1"),
])
def test_data(filename):
# Get input
in_filename = os.path.join(os.path.dirname(
os.path.realpath(__file__)), '..', 'testdat... | 10,638 |
https://github.com/dbrcina/OPJJ-FER-2018-19/blob/master/javat/05predavanje/src/hr/fer/zemris/java/pred05/primjer5/Zaposlenik.java | Github Open Source | Open Source | MIT | 2,021 | OPJJ-FER-2018-19 | dbrcina | Java | Code | 123 | 448 | package hr.fer.zemris.java.pred05.primjer5;
import java.util.Comparator;
public class Zaposlenik {
private String sifra;
private String prezime;
private String ime;
private double placa;
public static final Comparator<Zaposlenik> PO_IMENU = (z1, z2) -> z2.getIme().compareTo(z1.getIme());
public static final C... | 53,692 |
https://github.com/danhax/V1-temp/blob/master/COMPDIRS/debug.BIN.mac/bessel/zbinu.f | Github Open Source | Open Source | Apache-2.0 | 2,019 | V1-temp | danhax | null | Spoken | 518 | 1,570 | *DECK ZBINU
SUBROUTINE ZBINU (ZR, ZI, FNU, KODE, N, CYR, CYI, NZ, RL, FNUL,
+ TOL, ELIM, ALIM)
C***BEGIN PROLOGUE ZBINU
C***SUBSIDIARY
C***PURPOSE Subsidiary to ZAIRY, ZBESH, ZBESI, ZBESJ, ZBESK and ZBIRY
C***LIBRARY SLATEC
C***TYPE ALL (CBINU-A, ZBINU-A)
C***AUTHOR Amos, D. E., (SNL)
C***DESCRIP... | 39,589 |
https://github.com/remore/gemstat/blob/master/lib/gemstat/cache/gemfiles/h/hqmf-parser:1.1.0/Gemfile | Github Open Source | Open Source | MIT | 2,015 | gemstat | remore | Ruby | Code | 8 | 32 | gem 'rubyzip'
gem 'spreadsheet'
gem 'google-spreadsheet-ruby'
gem 'roo'
| 40,039 |
https://github.com/silvenon/xdm/blob/master/lib/integration/esbuild.js | Github Open Source | Open Source | MIT | 2,021 | xdm | silvenon | JavaScript | Code | 329 | 930 | import vfile from 'vfile'
import {promises as fs} from 'fs'
import {createFormatAwareProcessors} from '../util/create-format-aware-processors.js'
import {extnamesToRegex} from '../util/extnames-to-regex.js'
var eol = /\r\n|\r|\n|\u2028|\u2029/g
/**
* Compile MDX w/ esbuild.
*
* @param {import('../core.js').Process... | 29,544 |
https://github.com/chapeleirogn/NewTech/blob/master/resources/views/bloglistleftsidebar.blade.php | Github Open Source | Open Source | MIT | 2,018 | NewTech | chapeleirogn | Blade | Code | 1,314 | 5,641 | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Maxapp - App Landing HTML5 Template</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-... | 25,691 |
https://github.com/jekwatt/tech_talks/blob/master/context_managers/context_managers.ipynb | Github Open Source | Open Source | MIT | 2,019 | tech_talks | jekwatt | Jupyter Notebook | Code | 875 | 3,162 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Context Managers"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Documentation\n",
"\n",
"https://docs.python.org/3.7/library/contextlib.html?highlight=context%20manager#\n",
"\n",
... | 5,339 |
https://github.com/matteotgahvaei/spring-testing/blob/master/nickname-service/src/main/java/com/rabbit/samples/nicknameservice/persistence/repos/NicknameRepository.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | spring-testing | matteotgahvaei | Java | Code | 24 | 137 | package com.rabbit.samples.nicknameservice.persistence.repos;
import com.rabbit.samples.nicknameservice.persistence.entities.Nickname;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Repo... | 40,119 |
https://github.com/verbalhanglider/se459_team9_trivia_game/blob/master/src/main/java/se459Team9/triviaGame/ProhibitedWordList.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | se459_team9_trivia_game | verbalhanglider | Java | Code | 292 | 958 | package se459Team9.triviaGame;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.JTextArea;
public class Prohibi... | 35,929 |
https://github.com/my-jam-store/gatsby-myjam/blob/master/src/components/ProductGrid/Product.js | Github Open Source | Open Source | MIT | 2,020 | gatsby-myjam | my-jam-store | JavaScript | Code | 253 | 935 | import React, { useContext, useState } from "react"
import { Item, PlusIcon, QuantityBoxMobile, CartIcon, QtyMinus, QtyPlus, ErrorMessage } from "./Components"
import AppContext from "../../store/context"
import { addItemAction } from "../../store/actions"
import { showMessage } from "../../utils/notification"
const P... | 2,692 |
https://github.com/balajidharma/laravel-vue-admin-panel/blob/master/app/Http/Controllers/Admin/MenuController.php | Github Open Source | Open Source | MIT | 2,023 | laravel-vue-admin-panel | balajidharma | PHP | Code | 302 | 1,092 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use BalajiDharma\LaravelMenu\Models\Menu;
use BalajiDharma\LaravelAdminCore\Requests\StoreMenuRequest;
use BalajiDharma\LaravelAdminCore\Requests\UpdateMenuRequest;
use Illuminate\Support\Facades\Auth;
use Inertia\Inertia;
class MenuCon... | 35,440 |
https://github.com/padrian2s/spring-aws-lambda/blob/master/example/src/main/java/me/ccampo/example/MainHandler.java | Github Open Source | Open Source | MIT | 2,016 | spring-aws-lambda | padrian2s | Java | Code | 245 | 513 | package me.ccampo.example;
import com.amazonaws.services.lambda.runtime.Context;
import me.ccampo.example.model.Request;
import me.ccampo.example.model.Response;
import me.ccampo.spring.aws.lambda.SpringRequestHandler;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation... | 31,910 |
https://github.com/luisgarrido270514/taller_laravel/blob/master/resources/views/productos/productos.blade.php | Github Open Source | Open Source | MIT | null | taller_laravel | luisgarrido270514 | PHP | Code | 57 | 306 | @extends('productos.layaout')
@section('contenido')
<div class="container p4">
<div class="row">
<div class="col-md-6 col-6">
<a class="btn btn-danger btn-sm" href="{{route('productos.create')}}">crear producto</a>
<div class="card">
<div class="card-body">
... | 48,870 |
https://github.com/AtlanticBlockchainCompany/uni-wallet/blob/master/web/app/assets/stylesheets/components/_login.scss | Github Open Source | Open Source | MIT | null | uni-wallet | AtlanticBlockchainCompany | SCSS | Code | 605 | 2,578 | .dialog-login{
position: relative;
padding-bottom: 90px;
//min-height: 780px;
margin: 30px auto;
.h1{
font-weight: 900;
font-size: 36px;
text-transform: none;
padding-bottom: 18px;
.tm{
font-size: 12px;
text-transform: uppercase;
font-weight: 400;
}
&.h1-fsz-28{
font-size: 28px;
margi... | 5,787 |
https://github.com/muppet2011ad/canidae/blob/master/test/strings/test_strings.py | Github Open Source | Open Source | MIT | 2,021 | canidae | muppet2011ad | Python | Code | 431 | 1,471 | import subprocess
def test_string_literals_recognised():
completed = subprocess.run(["bin/canidae", "test/strings/string_literals_recognised.can"], text=True, capture_output=True)
assert completed.returncode == 0
lines = completed.stdout.split("\n")
assert len(lines) == 2
assert lines[0] == "Hello... | 51,786 |
https://github.com/Liamolucko/twilight/blob/master/util/src/snowflake.rs | Github Open Source | Open Source | ISC | null | twilight | Liamolucko | Rust | Code | 792 | 2,815 | //! Provides the Snowflake trait for defining extractable information from a Discord Snowflake.
use twilight_model::id::{
marker::{
ApplicationMarker, AttachmentMarker, AuditLogEntryMarker, ChannelMarker, CommandMarker,
CommandVersionMarker, EmojiMarker, GenericMarker, GuildMarker, IntegrationMarke... | 15,366 |
https://github.com/chrisingrassia/celos/blob/master/celos-server/src/main/java/com/collective/celos/CronSchedule.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | celos | chrisingrassia | Java | Code | 242 | 657 | /*
* Copyright 2015 Collective, 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 ... | 30,270 |
https://github.com/javiosyc/NYTimesSearch/blob/master/app/src/test/java/javio/com/nytimessearch/models/ArticleTest.java | Github Open Source | Open Source | Apache-2.0 | null | NYTimesSearch | javiosyc | Java | Code | 138 | 478 | package javio.com.nytimessearch.models;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Test;
/**
* Created by javiosyc on 2017/2/21.
*/
public class ArticleTest {
@Test
public void test() {
GsonBuilder ... | 53,666 |
https://github.com/jerryzeng11/mcux-sdk/blob/master/components/flash/mflash/component_mflash_common.cmake | Github Open Source | Open Source | Apache-2.0 | 2,022 | mcux-sdk | jerryzeng11 | CMake | Code | 21 | 104 | #Description: statically allocated file system for mflash; user_visible: False
include_guard(GLOBAL)
message("component_mflash_common component is included.")
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)
| 18,195 |
https://github.com/miaohua1982/simple_fasterrcnn_pytorch/blob/master/model/backbone/resnet.py | Github Open Source | Open Source | MIT | 2,021 | simple_fasterrcnn_pytorch | miaohua1982 | Python | Code | 436 | 1,533 | from torch import nn
from torch.nn import functional as F
from torchvision.models import resnet18, resnet34, resnet50, resnet101, resnet152
class TwoMLPHead(nn.Module):
"""
Standard heads for Roi Header
Arguments:
in_channels (int): number of input channels
representation_size (int): size ... | 21,583 |
https://github.com/openbmc/phosphor-power/blob/master/phosphor-regulators/src/presence_service.hpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | phosphor-power | openbmc | C++ | Code | 423 | 940 | /**
* Copyright © 2020 IBM 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 law or agr... | 32,274 |
https://github.com/olgavrou/diachron-test/blob/master/ontology-converter/src/main/java/uk/ac/ebi/spot/diachron/ComplexChangeJson.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | diachron-test | olgavrou | Java | Code | 74 | 233 | package uk.ac.ebi.spot.diachron;
/**
* Created by olgavrou on 30/11/2015.
*/
public class ComplexChangeJson {
private String Dataset_URI = "";
private ComplexChange CC_Definition = new ComplexChange();
public String getDataset_URI() {
return Dataset_URI;
}
public void setDataset_URI(Str... | 14,512 |
https://github.com/dspsforms/dspsAdvisingFlow/blob/master/dspsmisc-print/src/app/dsps-staff/form/component/completed-by/completed-by.component.ts | Github Open Source | Open Source | RSA-MD | null | dspsAdvisingFlow | dspsforms | TypeScript | Code | 59 | 225 | import { Component, OnInit, Input } from '@angular/core';
import { WrappedForm } from 'src/app/model/wrapped-form.model';
@Component({
selector: 'app-completed-by',
templateUrl: './completed-by.component.html',
styleUrls: ['./completed-by.component.scss']
})
export class CompletedByComponent implements OnInit {
... | 46,418 |
https://github.com/dmcloughlin/Flipper/blob/master/reader/src/test/scala/parser/utils/ImageProcessingSuite.scala | Github Open Source | Open Source | MIT | 2,021 | Flipper | dmcloughlin | Scala | Code | 168 | 523 | package parser.utils
import java.io.File
import org.junit.runner.RunWith
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitRunner
import parser.utils.ImageProcessing._
import org.apache.pdfbox.pdmodel.PDDocument
//noinspection ComparingLength
@RunWith(classOf[JUnitRunner])
class ImageProcessingSuite exten... | 47,653 |
https://github.com/skivis/BlackSheep/blob/master/tests/client/__init__.py | Github Open Source | Open Source | MIT | 2,021 | BlackSheep | skivis | Python | Code | 104 | 357 | """These classes implement the interface used by BlackSheep HTTP client implementation, to simplify testing on the
ClientSession object; including handling of connections and requests timeouts; redirects, etc."""
import asyncio
class FakeConnection:
def __init__(self, fake_responses):
self.fake_responses ... | 2,893 |
https://github.com/rhenium/SmileEssence/blob/master/app/src/main/java/net/lacolaco/smileessence/view/adapter/PageListAdapter.java | Github Open Source | Open Source | MIT | 2,015 | SmileEssence | rhenium | Java | Code | 499 | 1,195 | /*
* The MIT License (MIT)
*
* Copyright (c) 2012-2014 lacolaco.net
*
* 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... | 6,311 |
https://github.com/Martinovsky/kadaneAlgo/blob/master/kadane.cpp | Github Open Source | Open Source | MIT | null | kadaneAlgo | Martinovsky | C++ | Code | 87 | 269 | #include "kadane.hpp"
std::tuple<std::vector<int>::iterator, std::vector<int>::iterator, int> maxSubArray(std::vector<int> &data)
{
std::vector<int>::iterator left = data.begin();
std::vector<int>::iterator right = left;
int max = *left;
if (data.empty())
{
return std::make_tuple(left, righ... | 15,723 |
https://github.com/vv3g/luwra/blob/master/lib/luwra/types/stl.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,018 | luwra | vv3g | C++ | Code | 274 | 920 | /* Luwra
* Minimal-overhead Lua wrapper for C++
*
* Copyright (C) 2016, Ole Krüger <ole@vprsm.de>
*/
#ifndef LUWRA_TYPES_STL_H_
#define LUWRA_TYPES_STL_H_
#include "../common.hpp"
#include "../values.hpp"
#include "../stack.hpp"
#include "../internal/indexsequence.hpp"
#include <utility>
#include <tuple>
#includ... | 3,087 |
https://github.com/Transport-Protocol/SmartChair/blob/master/middleware/src/com/hawhamburg/sg/data/SensorValue.java | Github Open Source | Open Source | MIT | 2,019 | SmartChair | Transport-Protocol | Java | Code | 43 | 185 | package com.hawhamburg.sg.data;
import org.influxdb.dto.Point.Builder;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SensorValue extends AbstractValue {
private int id;
@JsonCreator
public SensorValue(@JsonProperty("id") int id,@JsonProper... | 7,488 |
https://github.com/fasteddys/MaximiseWFScaffolding/blob/master/RandomSchool/RandomSchool/Maintain/vDepartment/Default.aspx | Github Open Source | Open Source | Apache-2.0 | 2,015 | MaximiseWFScaffolding | fasteddys | null | Spoken | 272 | 1,594 | <%@ Page Title="DepartmentList" Language="C#" MasterPageFile="~/Site.Master" CodeBehind="Default.aspx.cs" Inherits="RandomSchool.Maintain.vDepartment.Default" %>
<%@ Register TagPrefix="FriendlyUrls" Namespace="Microsoft.AspNet.FriendlyUrls" %>
<%@ Register TagName="Foreign" TagPrefix="LC" Src="~/DynamicData/UserTempl... | 27,089 |
https://github.com/krafs/LevelUp/blob/master/Source/ProfileInitializer.cs | Github Open Source | Open Source | MIT | 2,023 | LevelUp | krafs | C# | Code | 190 | 715 | using System;
using Verse;
namespace LevelUp;
public static class ProfileInitializer
{
public static void InitializeProfile(Profile profile)
{
// Level up
foreach (ActionDef actionDef in DefDatabase<ActionDef>.AllDefs)
{
if (!profile.LevelUpActionMaker.Actions.Any(x => x.Ac... | 40,222 |
https://github.com/zhangmianhongni/MyPracticeVarious/blob/master/Java/CoreJavaBook/v2ch04/query/QueryTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | MyPracticeVarious | zhangmianhongni | Java | Code | 581 | 1,554 | package query;
import java.io.*;
import java.nio.file.*;
import java.sql.*;
import java.util.*;
/**
* This program demonstrates several complex database queries.
* @version 1.30 2012-06-05
* @author Cay Horstmann
*/
public class QueryTest
{
private static final String allQuery = "SELECT Books.Price, Books.Titl... | 15,942 |
https://github.com/alifahfathonah/umkmadminweb/blob/master/store/cekiklan.php | Github Open Source | Open Source | MIT | 2,021 | umkmadminweb | alifahfathonah | PHP | Code | 49 | 218 | <?php
$root = "../";
include $root."includes/php/initial.php";
include $root."includes/php/classUtama.php";
$db = new classUtama();
$db->mysql_connect();
if(!isset($_SESSION[SESSION_NAME])) {
$db->mysql_close();
die(json_encode(array("success" => false, "message" => "Ke... | 23,247 |
https://github.com/dshongphuc/amplitudejs/blob/master/src/init/init.js | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,018 | amplitudejs | dshongphuc | JavaScript | Code | 2,351 | 5,751 | /**
* Imports the config module
* @module config
*/
import config from '../config.js';
/**
* AmplitudeJS Core Module
* @module core/AmplitudeCore
*/
import AmplitudeCore from '../core/core.js';
/**
* AmplitudeJS Core Helpers
* @module core/AmplitudeHelpers
*/
import AmplitudeHelpers from '../core/helpers.js'... | 25,390 |
https://github.com/impira/yugabyte-db/blob/master/managed/ui/src/components/tables/common.scss | Github Open Source | Open Source | Apache-2.0, CC0-1.0 | 2,022 | yugabyte-db | impira | SCSS | Code | 93 | 384 | @import '../../_style/colors.scss';
.table-type-logo {
width: 30px;
height: 30px;
}
.backup-frequency-control {
position: relative;
& > span {
position: absolute;
display: inline;
left: 50%;
top: 33px;
margin-left: -6px;
}
input[type='number']::-webkit-inner-spin-button,
input[type='... | 28,220 |
https://github.com/tanibi/js-gui-vue/blob/master/components/nameLength/nameLength.js | Github Open Source | Open Source | MIT | 2,021 | js-gui-vue | tanibi | JavaScript | Code | 41 | 104 | const name = (x) => { return x; };
const nameLength = new Vue({
el: '#nameLength',
data: {
name: 'Lily',
},
computed: {
result: function () {
const nLength = parseInt((this.name).length);
return `${this.name}, your name length is ${name(nLength)}.`;
}
}
}) | 6,938 |
https://github.com/gszyboy/pythonDemo/blob/master/customTools/fetchdocx.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | pythonDemo | gszyboy | Python | Code | 123 | 501 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Date : 2019-01-09 09:47:44
# @Author : 如风 (26982310@qq.com)
# @Link : http://blog.youmaku.top
# @Version : $Id$
import os
import docx
class fetchDocx(object):
"""
读取Docx文件
filepath:文件路径
filename:文件名称
"""
def __init__(self,filepath,filenam... | 39,942 |
https://github.com/HiroHan/slideapp/blob/master/3/Network+Storage/MvrModernWiFi.h | Github Open Source | Open Source | BSD-3-Clause | 2,010 | slideapp | HiroHan | Objective-C | Code | 107 | 459 | //
// MvrModernWiFi.h
// Network
//
// Created by ∞ on 12/09/09.
// Copyright 2009 Infinite Labs (Emanuele Vulcano). All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MvrWiFiScanner.h"
#import "MvrPlatformInfo.h"
#define kMvrModernWiFiDifficultyStartingListenerNotification @"MvrModernWiFiDifficul... | 49,615 |
https://github.com/snuspl/incubator-nemo/blob/master/compiler/optimizer/src/main/java/org/apache/nemo/compiler/optimizer/NemoOptimizer.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-unknown | 2,023 | incubator-nemo | snuspl | Java | Code | 953 | 2,959 | /*
* 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 ... | 9,359 |
https://github.com/Tulpen/CAIL/blob/master/CAIL2020/cocr/build.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | CAIL | Tulpen | Shell | Code | 25 | 112 | docker build -f Dockerfile -t pytorch:1.0 . --network=host
docker login https://hub.ai.xm.gov.cn
docker tag pytorch:1.0 hub.ai.xm.gov.cn/comp_2416/pytorch:1.0
docker push hub.ai.xm.gov.cn/comp_2416/pytorch:1.0
docker run -it -u root pytorch:1.0 bash | 52,130 |
https://github.com/Capstone-SpringSummer-2020-Bonspiel/bonspiel-tracking-system/blob/master/src/app/modules/admin/components/dashboard/dashboard.component.scss | Github Open Source | Open Source | MIT | 2,020 | bonspiel-tracking-system | Capstone-SpringSummer-2020-Bonspiel | SCSS | Code | 873 | 3,044 | /* Structure */
table {
width: 100%;
}
tr.example-detail-row {
height: 0;
}
tr.example-sample-row:not(.example-expanded-row):hover {
background: #f5f5f5;
}
tr.example-sample-row:not(.example-expanded-row):active {
background: #efefef;
}
.example-sample-row td {
border-bottom-width: 0;
}
.examp... | 53,803 |
https://github.com/tijsverkoyen/DBFact/blob/master/Types/Artikel.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | DBFact | tijsverkoyen | PHP | Code | 628 | 2,085 | <?php
namespace TijsVerkoyen\DBFact\Types;
/**
* DBFact Artikel class
*
* @author Tijs Verkoyen <php-dbfact@verkoyen.eu>
*/
class Artikel extends BaseObject
{
/**
* @var string
*/
public $ArtCode;
/**
* @var string
*/
public $ArtNummer;
/**
* @var string
*/
... | 41,771 |
https://github.com/nepennington/natepennington/blob/master/web/modules/contrib/instagram_block/src/Plugin/Block/InstagramBlockBlock.php | Github Open Source | Open Source | MIT | null | natepennington | nepennington | PHP | Code | 695 | 2,278 | <?php
namespace Drupal\instagram_block\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Link;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Form\FormStateInterface;
use GuzzleHttp\Client;
use Symfony\Component\DependencyInjection\ContainerI... | 47,510 |
https://github.com/Michael0ne/TOD_tools/blob/master/TOD1/File.h | Github Open Source | Open Source | FSFAP | 2,022 | TOD_tools | Michael0ne | C | Code | 1,143 | 3,505 | #pragma once
#include "StringsPool.h"
#include <vector>
#define FILE_MAX_ZIP_FILES 8
#define FILE_BUFFER_SIZE (1024 * 128)
#define FILE_ZIP_MAGIC_HEADER 0x16ED5B50
class FileWrapper
{
public:
friend class File;
enum FileAttribute
{
READONLY = 1,
HIDDEN = 2,
ARCHIVE = 4
};
pro... | 18,052 |
https://github.com/Hochmah/sclp/blob/master/sclp/sc.web/Modules/Default/TextbookContent/TextbookContentGrid.ts | Github Open Source | Open Source | MIT | null | sclp | Hochmah | TypeScript | Code | 49 | 159 |
namespace sc.Default {
@Serenity.Decorators.registerClass()
export class TextbookContentGrid extends Serenity.EntityGrid<TextbookContentRow, any> {
protected getColumnsKey() { return 'Default.TextbookContent'; }
protected getDialogType() { return TextbookContentDialog; }
protected get... | 2,232 |
https://github.com/side-projects-42/website/blob/master/components/contributors/index.tsx | Github Open Source | Open Source | MIT | 2,021 | website | side-projects-42 | TypeScript | Code | 146 | 510 | import { Avatar as MuiAvatar, Tooltip, Typography } from "@material-ui/core";
import Translation from "components/translation";
import { Algorithm, Contributor } from "lib/models";
import React, { useState } from "react";
import ContributorsDialog from "./dialog";
import classes from "./style.module.css";
function Ava... | 21,239 |
https://github.com/LunaMultiplayer/LunaMultiplayer/blob/master/LmpCommon/Enums/MasterServerMessageType.cs | Github Open Source | Open Source | MIT | 2,023 | LunaMultiplayer | LunaMultiplayer | C# | Code | 12 | 33 | namespace LmpCommon.Enums
{
public enum MasterServerMessageType
{
Main = 0
}
}
| 30,574 |
https://github.com/sap-ariba/netplugin/blob/master/contivmodel/spec/auth_proxy.raml | Github Open Source | Open Source | Apache-2.0 | 2,021 | netplugin | sap-ariba | null | Spoken | 189 | 716 | #%RAML 1.0
title: Contiv
description: Contiv API Specification
version: v1
baseUri:
value: https://{serverfqdn}:10000/api/{version}
(rediractable): true
baseUriParameters:
serverfqdn:
type: string
protocols: [ HTTPS ]
mediaType: [ application/json ]
resourceTypes:
collection: !include auth_proxy/schemas/c... | 12,935 |
https://github.com/skeptycal/RTVS/blob/master/src/VsCode/LanguageServer/Impl/Services/Editor/PropertyHolder.cs | Github Open Source | Open Source | MIT | 2,019 | RTVS | skeptycal | C# | Code | 80 | 183 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using Microsoft.Common.Core;
using Microsoft.Common.Core.Services;
using Microsoft.Languages.Editor.Text;
namespace Microsoft.R.LanguageServer.Service... | 50,486 |
https://github.com/joorgej/tytus/blob/master/parser/fase2/team22/reportes/error.py | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,021 | tytus | joorgej | Python | Code | 18 | 58 |
class Error:
def __init__(self, TIPO, LEXEMA, FIL, COL):
self.TIPO = TIPO
self.LEXEMA = LEXEMA
self.COL = COL
self.FIL=FIL
| 43,500 |
https://github.com/georgeshokry/promote-energy/blob/master/server/navbar.js | Github Open Source | Open Source | MIT | 2,019 | promote-energy | georgeshokry | JavaScript | Code | 468 | 1,549 | //add special link to navbar //checked
function addNavLink(linkObj, assignlogmsg) {
if (linkObj.linkName != "" && linkObj.ar != "" && linkObj.link != "" && linkObj.link != undefined) {
var linkName = linkObj.linkName;
var obj = {
ar: linkObj.ar,
link: linkObj.link
}
... | 12,125 |
https://github.com/activej/activej/blob/master/core-bytebuf/src/main/java/io/activej/bytebuf/ByteBufStrings.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | activej | activej | Java | Code | 2,302 | 5,804 | /*
* Copyright (C) 2020 ActiveJ LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 42,072 |
https://github.com/mbarton/shout21/blob/master/svelte.config.js | Github Open Source | Open Source | MIT | null | shout21 | mbarton | JavaScript | Code | 79 | 262 | import preprocess from 'svelte-preprocess';
const codespaceName = process.env['CODESPACE_NAME'];
const hmrPort = 24678;
const hmrRemoteHost = codespaceName ? `${codespaceName}-${hmrPort}.githubpreview.dev` : 'localhost';
const hmrRemotePort = codespaceName ? 443 : hmrPort;
/** @type {import('@sveltejs/kit').Config} ... | 47,363 |
https://github.com/msiddique933/Hangar/blob/master/src/slack/actions/unsubscribe.ts | Github Open Source | Open Source | MIT | 2,020 | Hangar | msiddique933 | TypeScript | Code | 140 | 383 | import { BlockAction, Middleware, SlackActionMiddlewareArgs } from '@slack/bolt';
import { getDashboardContext } from '../utilities/getDashboardContext';
import { Subscriber } from '../../entities/subscriber';
import { openAlertModal } from '../utilities/openAlertModal';
import updateHomeTabView from '../utilities/upda... | 10,489 |
https://github.com/tiwariammit/Parchment/blob/master/NavigationBarExample/ViewController.swift | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,018 | Parchment | tiwariammit | Swift | Code | 362 | 755 | import UIKit
import Parchment
// Create our own custom paging view and override the layout
// constraints. The default implementation positions the menu view
// above the page view controller, but since we're going to put the
// menu view inside the navigation bar we don't want to setup any
// layout constraints for t... | 42,402 |
https://github.com/jolantis/Artlantis/blob/master/site/templates/work-item.php | Github Open Source | Open Source | MIT | null | Artlantis | jolantis | PHP | Code | 255 | 1,256 | <?php snippet('html-head', array('criticalcss' => 'work_item')); ?>
<?php snippet('banner'); ?>
<main role="main">
<div class="contain-padding aligner aligner--baseline">
<h1 class="alpha-heading space-trailer-ggr">
<?php echo ($page->long_title()->exists() && $page->long_title()->isNotEmpty()) ? $page->... | 28,633 |
https://github.com/mr0ng/unity-renderer/blob/master/unity-renderer/Assets/Scripts/MainScripts/DCL/Interfaces/ICleanable.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | unity-renderer | mr0ng | C# | Code | 11 | 28 | namespace DCL
{
public interface ICleanable
{
void Cleanup();
}
} | 33,390 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/iRobot_com.irobot.home/javafiles/com/irobot/home/BroadcastSetupActivity$24$2.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 1,153 | 4,819 | // 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 com.irobot.home;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com... | 15,499 |
https://github.com/geneontology/noctua-models/blob/master/models/MGI_MGI_3618753.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | noctua-models | geneontology | Turtle | Code | 1,426 | 16,633 |
<http://model.geneontology.org/MGI_MGI_3618753> a <http://www.w3.org/2002/07/owl#Ontology> .
<http://geneontology.org/lego/evidence> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/lego/hint/layout/x> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/leg... | 30,422 |
https://github.com/cefore/2021-hands-on/blob/master/practice-A/csmgr/Dockerfile | Github Open Source | Open Source | BSD-3-Clause | 2,023 | 2021-hands-on | cefore | Dockerfile | Code | 39 | 148 | FROM cefore/base
LABEL maintainer="hayamizu <hayamizu@nict.go.jp>"
WORKDIR /cefore/cefore
RUN ./configure --enable-cache --enable-csmgr
RUN make
RUN make install
RUN make clean
RUN ldconfig
RUN echo "CS_MODE=2" > /usr/local/cefore/cefnetd.conf
RUN echo "CACHE_TYPE=memory" > /usr/local/cefore/csmgrd.conf
ENV USER root
C... | 14,823 |
https://github.com/nathan-oliveira/Projeto_Carrinho_Compras_NodeJS_React/blob/master/web-app/src/redux/store/index.js | Github Open Source | Open Source | MIT | null | Projeto_Carrinho_Compras_NodeJS_React | nathan-oliveira | JavaScript | Code | 13 | 38 | import { createStrore } from 'redux';
import rootReducer from '../reducers/index';
export default createStrore(rootReducer); | 22,944 |
https://github.com/Flowsqy/ClaimUpdater/blob/master/src/main/java/fr/flowsqy/claimupdater/ClaimUpdater.java | Github Open Source | Open Source | MIT | null | ClaimUpdater | Flowsqy | Java | Code | 303 | 1,081 | package fr.flowsqy.claimupdater;
import com.sk89q.worldguard.domains.DefaultDomain;
import com.sk89q.worldguard.protection.managers.RegionManager;
import com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import org.bukkit.OfflinePlayer;
impor... | 5,560 |
https://github.com/YosysHQ/yosys/blob/master/tests/sva/counter.sv | Github Open Source | Open Source | ISC, MIT, LicenseRef-scancode-other-copyleft, BSD-2-Clause | 2,023 | yosys | YosysHQ | null | Spoken | 130 | 310 | module top (input clk, reset, up, down, output reg [7:0] cnt);
always @(posedge clk) begin
if (reset)
cnt <= 0;
else if (up)
cnt <= cnt + 1;
else if (down)
cnt <= cnt - 1;
end
default clocking @(posedge clk); endclocking
default disable iff (reset);
assert property (up |=> cnt == $past(cnt) + 8'd ... | 48,983 |
https://github.com/StefanMaron/MSDyn365BC.Code.History/blob/master/BaseApp/Source/Base Application/FeatureMapCurrencySymbol.Codeunit.al | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, LicenseRef-scancode-warranty-disclaimer | 2,023 | MSDyn365BC.Code.History | StefanMaron | null | Spoken | 289 | 994 | #if not CLEAN22
codeunit 5405 "Feature Map Currency Symbol" implements "Feature Data Update"
{
ObsoleteReason = 'Feature CurrencySymbolMapping will be enabled by default in version 22.0.';
ObsoleteState = Pending;
ObsoleteTag = '22.0';
procedure IsDataUpdateRequired(): Boolean;
begin
CountR... | 26,835 |
https://github.com/papegaaij/jsr-352/blob/master/JSR352.API/src/javax/batch/operations/JobOperator.java | Github Open Source | Open Source | Apache-2.0 | null | jsr-352 | papegaaij | Java | Code | 1,071 | 2,087 | /*
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may ob... | 27,974 |
https://github.com/cokeSchlumpf/cdays/blob/master/chatbot/cdays-bot-gen/messages/entry-points/index.js | Github Open Source | Open Source | Apache-2.0 | null | cdays | cokeSchlumpf | JavaScript | Code | 5 | 17 | exports.main = [
require('./first_contact').main
]; | 27,805 |
https://github.com/sjaanus/ifresco-0.3/blob/master/web/index.php | Github Open Source | Open Source | Apache-2.0 | null | ifresco-0.3 | sjaanus | PHP | Code | 187 | 467 | <?php
/**
* @package AlfrescoClient
* @author Dominik Danninger
*
* ifresco Client v0.1alpha
*
* Copyright (c) 2011 Dominik Danninger, MAY Computer GmbH
*
* This file is part of "ifresco Client".
*
* "ifresco Client" is free software: you can redistribute it and/or modify
* it under the terms of the G... | 27,381 |
https://github.com/nuitsjp/NextGateForPrism/blob/master/NextGateForPrism/PageNavigationTypeResolver.cs | Github Open Source | Open Source | MIT | 2,017 | NextGateForPrism | nuitsjp | C# | Code | 158 | 577 | using System;
using System.Collections.Generic;
using System.Reflection;
namespace NextGateForPrism
{
public static class PageNavigationTypeResolver
{
private static readonly Dictionary<Assembly, Assembly> ViewModelAssignedToViewAssemblies = new Dictionary<Assembly, Assembly>();
private static... | 2,388 |
https://github.com/gxa/atlas/blob/master/base/src/main/java/uk/ac/ebi/atlas/species/admin/SpeciesAdminController.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | atlas | gxa | Java | Code | 218 | 744 | package uk.ac.ebi.atlas.species.admin;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web... | 9,982 |
https://github.com/restful-routing/restful-routing/blob/master/src/RestfulRouting/Format/MimeType.cs | Github Open Source | Open Source | MIT | 2,021 | restful-routing | restful-routing | C# | Code | 79 | 210 | using System.Linq;
using System.Text.RegularExpressions;
namespace RestfulRouting.Format
{
public class MimeType
{
public string Type { get; set; }
public string Format { get; set; }
public string[] Synonyms { get; set; }
public MimeType(string type, string format, params stri... | 13,706 |
https://github.com/KestrelInstitute/Specware/blob/master/TestSuite/Bugs/Bug_0105/Tests.lisp | Github Open Source | Open Source | BSD-2-Clause | 2,021 | Specware | KestrelInstitute | Common Lisp | Code | 220 | 614 | (test-directories ".")
(test
("Bug 0105 A: The new-style type quantifications in claim definitions are ambiguous"
:show "QuantifiedAxiom#A"
:output '(";;; Elaborating spec at $TESTDIR/QuantifiedAxiom#A"
(:optional "")
"spec"
(:optional "")
" op [a] f infixl 22: List(a) * a -> Int"
(:o... | 40,597 |
https://github.com/djobiii2078/PROJETRO/blob/master/node_modules/no/lp_solve/build/Release/.deps/Release/lp_solve.node.d | Github Open Source | Open Source | MIT | 2,016 | PROJETRO | djobiii2078 | Makefile | Code | 10 | 54 | cmd_Release/lp_solve.node := rm -rf "Release/lp_solve.node" && cp -af "Release/obj.target/lp_solve.node" "Release/lp_solve.node"
| 1,700 |
https://github.com/voyages-sncf-technologies/function-tec/blob/master/src/test/java/com/vsct/component/util/stream/VCollectorsTest.java | Github Open Source | Open Source | Apache-2.0 | null | function-tec | voyages-sncf-technologies | Java | Code | 350 | 1,449 | /*
* Copyright (C) 2021 VSCT
*
* 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 wri... | 34,853 |
https://github.com/Raekye/Carbon/blob/master/haskell/carbon.cabal | Github Open Source | Open Source | MIT | 2,014 | Carbon | Raekye | null | Spoken | 64 | 258 | Name: Carbon-Haskell
Version: 0.0.0
Description: Implementation of random things in random languages
License: MIT
License-file: ../LICENSE
Author: Raekye
Maintainer: adrian@creatifcubed.com
bug-reports: https://github.com/Raekye/Carbon/issues
Build-Type: Simple
Cabal-Version: >=1.2
Test-Suite test
type: exitcode-stdi... | 50,679 |
https://github.com/enyachoke/openmrs-module-metadatamapping/blob/master/omod/src/main/java/org/openmrs/module/metadatamapping/web/rest/MetadataTermMappingResource.java | Github Open Source | Open Source | Naumen, Condor-1.1, MS-PL | null | openmrs-module-metadatamapping | enyachoke | Java | Code | 495 | 2,404 | package org.openmrs.module.metadatamapping.web.rest;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.openmrs.api.context.Context;
import org.openmrs.module.metadatamapping.MetadataSource;
import org.openmrs.module.metadatamapping.MetadataTermMapping;
import... | 88 |
https://github.com/ampproject/amphtml/blob/master/extensions/amp-date-display/1.0/component.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | amphtml | ampproject | JavaScript | Code | 619 | 2,103 | import {getDate} from '#core/types/date';
import * as Preact from '#preact';
import {useMemo} from '#preact';
import {Wrapper} from '#preact/component';
import {useRenderer} from '#preact/component/renderer';
import {useResourcesNotify} from '#preact/utils';
import {user} from '#utils/log';
import {getTimeZoneName} ... | 53,724 |
https://github.com/LanikSky/bpoint/blob/master/test/testUtilsNg1.js | Github Open Source | Open Source | MIT | 2,016 | bpoint | LanikSky | JavaScript | Code | 464 | 1,272 | /// <reference path='../typings/angularjs/angular.d.ts' />
/// <reference path='../typings/jasmine/jasmine.d.ts' />
// Promise testing support
angular.module('ngMock').config(function ($provide, $locationProvider) {
var oldFn = $locationProvider.html5Mode;
$locationProvider.html5Mode = function() {
var retval ... | 42,694 |
https://github.com/mecchu/mall/blob/master/mall-ware/src/main/java/me/cchu/mall/ware/dao/WareSkuDao.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | mall | mecchu | Java | Code | 57 | 269 | package me.cchu.mall.ware.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.cchu.mall.ware.entity.WareSkuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> ... | 3,359 |
https://github.com/lixiawss/Your-Microservice/blob/master/your-microservice-core/src/main/java/your/microservice/core/security/idp/security/AuthenticationController.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | Your-Microservice | lixiawss | Java | Code | 1,449 | 4,954 | package your.microservice.core.security.idp.security;
import com.nimbusds.jwt.JWTClaimsSet;
import your.microservice.core.system.messaging.jms.MessagePublisherService;
import your.microservice.core.security.idp.jwt.YourMicroserviceInvalidTokenException;
import your.microservice.core.security.idp.jwt.YourMicroserviceT... | 39,500 |
https://github.com/Mojgan-Jelodar/restcountries/blob/master/CountriesList/Model/Response/Currencies.swift | Github Open Source | Open Source | MIT | 2,021 | restcountries | Mojgan-Jelodar | Swift | Code | 50 | 138 | //
// ContryService.swift
// CountriesList
//
// Created by m.jelodar on 1/30/21.
//
import Foundation
import ObjectMapper
struct Currencies: Mappable {
var code: String?
var name: String?
var symbol: String?
init?(map: Map) {
}
mutating func mapping(map: Map) {
code <- map["code"]
name <- map["name"... | 34,378 |
https://github.com/medismailben/llvm-project/blob/master/openmp/libomptarget/test/offloading/looptripcnt.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-project | medismailben | C | Code | 171 | 702 | // RUN: %libomptarget-compile-aarch64-unknown-linux-gnu && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-aarch64-unknown-linux-gnu 2>&1 | %fcheck-aarch64-unknown-linux-gnu -allow-empty -check-prefix=DEBUG
// RUN: %libomptarget-compile-powerpc64-ibm-linux-gnu && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-powerpc64-ibm-linu... | 43,785 |
https://github.com/Casey-Hofland/Quest-System-Pro/blob/master/Assets/Devdog/QuestSystemPro/Scripts/Dialogue/EdgeConditions/TaskStatusEdgeCondition.cs | Github Open Source | Open Source | MIT | 2,022 | Quest-System-Pro | Casey-Hofland | C# | Code | 60 | 163 | namespace Devdog.QuestSystemPro.Dialogue
{
public class TaskStatusEdgeCondition : SimpleQuestEdgeConditionBase
{
public TaskStatus status = TaskStatus.Active;
public string taskName = "";
public override bool CanUse(Dialogue dialogue)
{
foreach (var quest in quests)... | 50,782 |
https://github.com/tanishiking/dotty/blob/master/tests/run/t4297.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotty | tanishiking | Scala | Code | 22 | 66 | object Test {
def main(args: Array[String]): Unit = {
def f = List(1,2,3).view
assert(f.toString == "SeqView(<not computed>)")
assert(f.mkString == "123")
}
}
| 10,847 |
https://github.com/tandn164/iOS_ASR_App/blob/master/ASRApplication/Source/General/Core/FileUpload.swift | Github Open Source | Open Source | MIT | 2,023 | iOS_ASR_App | tandn164 | Swift | Code | 10 | 29 | //FileUpload.swift
import Foundation
import SwiftHTTP
class FileUpload: Upload {
}
| 27,553 |
https://github.com/c0c0bird/dvelop-examples-cs/blob/master/Client/DocumentRepository.cs | Github Open Source | Open Source | Apache-2.0 | null | dvelop-examples-cs | c0c0bird | C# | Code | 105 | 216 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DMSAPISamples.Client
{
public class DocumentRepository
{
public string Id { get; set; }
public string Name { get; set; }
public string ServerId { get; set; }
... | 53,167 |
https://github.com/erichester76/alerta/blob/master/alerta/models/user.py | Github Open Source | Open Source | Apache-2.0 | null | alerta | erichester76 | Python | Code | 593 | 2,362 |
from datetime import datetime
from typing import Any, Dict, List, Optional, Tuple, Union
from uuid import uuid4
from flask import current_app
from alerta.app import db
from alerta.auth import utils
from alerta.database.base import Query
from alerta.models.group import Group
from alerta.utils.response import absolute... | 50,157 |
https://github.com/Aussama-Ul-Islam/NCache-Solutions/blob/master/PersistentCache/src/Alachisoft.NCache.PersistenceProvider/BackingSourceProviders/PersistenceStartupLoader.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | NCache-Solutions | Aussama-Ul-Islam | C# | Code | 314 | 804 | // Copyright (c) 2019 Alachisoft
//
// 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 ... | 13,304 |
https://github.com/Patryk-Foryszewski/BookManager/blob/master/Procfile | Github Open Source | Open Source | MIT | 2,021 | BookManager | Patryk-Foryszewski | null | Spoken | 3 | 12 | web: gunicorn bookmanager.wsgi
| 49,941 |
https://github.com/refaqtor/Parallax-ESP32/blob/master/settings.h | Github Open Source | Open Source | MIT | 2,020 | Parallax-ESP32 | refaqtor | C | Code | 81 | 281 | /**
* @brief settings functions
* @author Michael Burmeister
* @date February 11, 2020
* @version 1.0
*/
int getVersion(void*, char*);
int getModuleName(void*, char*);
int setModuleName(void*, char*);
int getWiFiMode(void*, char*);
int setWiFiMode(void*, char*);
int getWiFiSSID(void*, char*);
int getIPAddress(voi... | 52,987 |
https://github.com/kudige/launchjs/blob/master/test/data/modules/test1_2/index.js | Github Open Source | Open Source | MIT | null | launchjs | kudige | JavaScript | Code | 130 | 471 | TestController = MakeController(__filename, module)
Launch.extend(TestController.prototype, {
_init: function() {
this._uses('Model1', 'Model2', 'CamelCase1')
},
_viewpath: function() {
return __dirname
},
// Controller methods
// Direct method
method1: function(a,b) {
console.log('method1')
return a+b... | 19,114 |
https://github.com/ChemelAA/scientific_python/blob/master/scientific_python/c_numpy/multidim_arrays.py | Github Open Source | Open Source | MIT | 2,020 | scientific_python | ChemelAA | Python | Code | 1,467 | 3,657 | #!/usr/bin/env python3
from __future__ import division
import numpy as np
from numpy.testing import assert_allclose, assert_array_equal
# This and another files in this subpackage are based on NumPy User Guide. The
# guide is really good and you can prefer it to my modules:
# https://docs.scipy.org/doc/numpy/user/ba... | 21,115 |
https://github.com/takemiyamakoto/mpltools/blob/master/mpltools/special/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mpltools | takemiyamakoto | Python | Code | 22 | 55 | """
Module for special-purpose plots.
"""
from __future__ import absolute_import
from .hinton import hinton
from .errorfill import errorfill
__all__ = ['hinton', 'errorfill']
| 26,256 |
https://github.com/86dev/sql-builder/blob/master/src/Enums/ForeignKeyAction.php | Github Open Source | Open Source | MIT | null | sql-builder | 86dev | PHP | Code | 357 | 551 | <?php
namespace SQLBuilder\Enums;
/**
* Foreign key available actions on delete or update
*
* @version 1.0
* @author 86Dev
*/
abstract class ForeignKeyAction extends \PHPTools\Enum
{
/**
* Delete or update the row from the parent table, and automatically delete or update the matching rows in the child table.
... | 37,190 |
https://github.com/shi27feng/mockturtle/blob/master/include/mockturtle/networks/xmg.hpp | Github Open Source | Open Source | MIT | null | mockturtle | shi27feng | C++ | Code | 4,318 | 12,462 | /* mockturtle: C++ logic network library
* Copyright (C) 2018-2021 EPFL
*
* 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... | 21,053 |
https://github.com/slashbyte/polyglot/blob/master/polyglot-2.0.4.orig/book_merge.h | Github Open Source | Open Source | MIT | null | polyglot | slashbyte | C | Code | 28 | 86 |
// book_merge.h
#ifndef BOOK_MERGE_H
#define BOOK_MERGE_H
// includes
#include "util.h"
// functions
extern void book_merge (int argc, char * argv[]);
#endif // !defined BOOK_MERGE_H
// end of book_merge.h
| 469 |
https://github.com/OpenHFT/Java-Lang/blob/master/lang-sandbox/src/main/java/net/openhft/lang/model/VanillaFilter.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Java-Lang | OpenHFT | Java | Code | 552 | 1,543 | /*
* Copyright 2014 Higher Frequency Trading
*
* http://www.higherfrequencytrading.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 24,287 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.