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/kuangyh/saw/blob/master/storage/textio.go | Github Open Source | Open Source | MIT | null | saw | kuangyh | Go | Code | 204 | 585 | package storage
import (
"bufio"
"io"
"strconv"
"github.com/kuangyh/saw"
"golang.org/x/net/context"
)
// Format: textio
// Reads and writes data line by line. datum.Key is ignored.
type TextFormat struct {
}
func (tf TextFormat) DatumReader(
ctx context.Context, rc ResourceSpec, shard int) (DatumReader, error... | 26,479 |
https://github.com/einarssons/adventofcode2020/blob/master/dec16/m16.py | Github Open Source | Open Source | MIT | null | adventofcode2020 | einarssons | Python | Code | 294 | 1,071 | from dataclasses import dataclass
import re
rule_pattern = re.compile(r"([a-z ]+): (\d+)-(\d+) or (\d+)-(\d+)")
ticket_pattern = re.compile(r"[0-9,]+$")
class TicketInfo:
def __init__(self, file_name: str):
self.rules = []
self.all_tickets = [] # my ticket is 0
self.columns_mapped = set... | 6,373 |
https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/blob/master/src/Microsoft.Graph/Generated/Models/VirtualEventAttendeeRegistrationStatus.cs | Github Open Source | Open Source | MIT | 2,023 | msgraph-beta-sdk-dotnet | microsoftgraph | C# | Code | 39 | 161 | // <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace Microsoft.Graph.Beta.Models {
public enum VirtualEventAttendeeRegistrationStatus {
[EnumMember(Value = "registered")]
Registered,
[EnumMember(Value = "canceled")]
Canceled,
[EnumMember(Value = "w... | 50,612 |
https://github.com/Novartis/peax/blob/master/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,020 | peax | Novartis | Dockerfile | Code | 146 | 510 | FROM continuumio/miniconda
RUN apt-get update && apt-get -y install \
make \
build-essential \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
vim
WORKDIR /peax
RUN conda install python=3.7 \
cython \
cytoolz \
seaborn \
flask \
flask-cors \
nodejs=10.* \
scikit-learn=0.22.0 \... | 32,618 |
https://github.com/hildamari/Marianne/blob/master/src/commands/Support Server/subscribe.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | Marianne | hildamari | TypeScript | Code | 184 | 563 | import { ApplyOptions } from '@sapphire/decorators';
import { ChatInputCommand, Command } from '@sapphire/framework';
import type { Guild, Role } from 'discord.js';
// import { isMessageInstance } from '@sapphire/discord.js-utilities';
@ApplyOptions<Command.Options>({
name: 'Subscribe',
description: 'Gives the "M... | 43,837 |
https://github.com/SantipapP/BikeRental-VB/blob/master/BikeRT-V2/FRM_In.vb | Github Open Source | Open Source | MIT | null | BikeRental-VB | SantipapP | Visual Basic | Code | 90 | 339 | Public Class FRM_In
Private Sub TBL_InBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TBL_InBindingNavigatorSaveItem.Click
Me.Validate()
Me.TBL_InBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me._BikeRT_V2DataSet)
End Sub
... | 48,341 |
https://github.com/mullet1989/strava-cups/blob/master/src/config/config.module.ts | Github Open Source | Open Source | MIT | null | strava-cups | mullet1989 | TypeScript | Code | 66 | 164 | import { Module } from '@nestjs/common';
import { ConfigService } from './config.service';
import { join } from 'path';
import { ConfigProduction } from './config.production';
@Module({
providers: [
{
provide: ConfigService,
useFactory: () => {
let env = process.env.NODE_ENV;
if (env ... | 13,441 |
https://github.com/MiguelSombrero/bloogie-backend/blob/master/src/main/java/bloogie/backend/handler/PostHandler.java | Github Open Source | Open Source | 0BSD | null | bloogie-backend | MiguelSombrero | Java | Code | 463 | 1,358 |
package bloogie.backend.handler;
import bloogie.backend.domain.Post;
import bloogie.backend.domain.Views;
import bloogie.backend.service.PostService;
import bloogie.backend.validator.PostValidator;
import org.springframework.beans.factory.annotation.Autowired;
import static org.springframework.http.MediaType.APPLICAT... | 17,124 |
https://github.com/natinusala/skia/blob/master/tests/sksl/fp/GrGrSLTypesAreSupported.fp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | skia | natinusala | GLSL | Code | 89 | 290 | int test_i (int a) { for (;;) { return a; } }
int2 test_i2(int2 a) { for (;;) { return a; } }
int3 test_i3(int3 a) { for (;;) { return a; } }
int4 test_i4(int4 a) { for (;;) { return a; } }
half3x4 test_h3x4(half3x4 a) { for (;;) { return a; } }
float2x4 test_f2x4(float... | 6,804 |
https://github.com/dreaderxxx/java-spring-messaging/blob/master/opentracing-spring-messaging-it/opentracing-spring-messaging-it-stream-common/src/main/java/io/opentracing/contrib/spring/integration/messaging/StreamApplication.java | Github Open Source | Open Source | Apache-2.0 | null | java-spring-messaging | dreaderxxx | Java | Code | 165 | 458 | /**
* Copyright 2017 The OpenTracing Authors
*
* 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... | 25,751 |
https://github.com/atarazana/quarkus-zero-to-serverless-guide/blob/master/documentation/modules/ROOT/pages/05-annex.adoc | Github Open Source | Open Source | Apache-2.0 | null | quarkus-zero-to-serverless-guide | atarazana | AsciiDoc | Code | 552 | 1,793 | = ANNEX: Packing & building by using Docker
include::_attributes.adoc[]
[#native-mode-ii-generated-in-a-container]
== Native Mode II (generated in a container)
Quite often one only needs to create a native Linux executable for their Quarkus application (for example in order to run in a containerized environment) and ... | 1,978 |
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/PrivateFrameworks/Coherence.framework/Coherence.CRDecodeContext.h | Github Open Source | Open Source | MIT | 2,020 | iOS13.4.1-Runtime-Headers | igiu1988 | Objective-C | Code | 18 | 69 | /* Generated by EzioChiu
Image: /System/Library/PrivateFrameworks/Coherence.framework/Coherence
*/
@interface Coherence.CRDecodeContext : _TtCs12_SwiftObject {
void context;
void references;
}
@end
| 29,929 |
https://github.com/zhangjiquan1/phpsourcecode/blob/master/imogo/MpHee/apps/article/view/index/layout.php | Github Open Source | Open Source | MIT | 2,020 | phpsourcecode | zhangjiquan1 | Hack | Code | 42 | 259 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台管理</title>
<meta content="IE=8" http-equiv="X-UA-Compatible" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="style... | 46,720 |
https://github.com/mikhailadvani/terraform-s3-backend/blob/master/test/backend_test.go | Github Open Source | Open Source | Apache-2.0 | null | terraform-s3-backend | mikhailadvani | Go | Code | 82 | 540 | package test
import (
"fmt"
"strings"
"testing"
"github.com/gruntwork-io/terratest/modules/terraform"
"github.com/stretchr/testify/assert"
"github.com/gruntwork-io/terratest/modules/aws"
"github.com/gruntwork-io/terratest/modules/random"
)
func TestTerraformS3Backend(t *testing.T) {
t.Parallel()
testRandom... | 3,552 |
https://github.com/sheng3636/assistPlan/blob/master/src/views/outlineAuthorized/taskDivision.vue | Github Open Source | Open Source | MIT | null | assistPlan | sheng3636 | Vue | Code | 362 | 1,836 |
<template>
<div class="app-container">
<div class="main-wrapper">
<div class="main-header">任务分工</div>
<div class="main-content">
<el-form ref="queryParams" :model="queryParams" label-width="80px" label-position="top">
<el-row>
<el-col :md="5" :sm="4">
<el-f... | 15,636 |
https://github.com/homerooliveira/Bump/blob/master/Sources/XcodeProjWrapperMock/TargetMock.swift | Github Open Source | Open Source | MIT | null | Bump | homerooliveira | Swift | Code | 43 | 114 | //
// File.swift
//
//
// Created by Homero Oliveira on 11/07/20.
//
import XcodeProjWrapper
public final class TargetMock: Target {
public let name: String
public let buildConfigurations: [BuildConfiguration]?
public init(name: String, buildConfigurations: [BuildConfiguration]?) {
self.name ... | 12,198 |
https://github.com/haunguyen2212/shop-laravel/blob/master/resources/views/frontend/cart.blade.php | Github Open Source | Open Source | MIT | null | shop-laravel | haunguyen2212 | PHP | Code | 320 | 1,494 | @extends('layout.master')
@section('title','Giỏ hàng')
@section('style')
<link rel="stylesheet" href="css/cart.css">
<link rel="stylesheet" href="css/toastr.min.css">
@endsection
@section('content')
<div id="breadcrumb" class="col-md-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<... | 14,253 |
https://github.com/Tomracer/CorsixTH/blob/master/CorsixTH/Lua/objects/gates_to_hell.lua | Github Open Source | Open Source | MIT | 2,022 | CorsixTH | Tomracer | Lua | Code | 317 | 662 | --[[ Copyright (c) 2013 Luís "driverpt" Duarte
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, merge, publish, di... | 7,039 |
https://github.com/ItsLastDay/KotlinFuzzer/blob/master/fuzzer/fuzzing_output/crashing_tests/verified/constructors.kt-803823115.kt | Github Open Source | Open Source | MIT | 2,021 | KotlinFuzzer | ItsLastDay | Kotlin | Code | 55 | 275 | import kotlin.reflect.*
import kotlin.reflect.jvm.*
import kotlin.test.assertEquals
class A(d: Double, s: String, parent: A?) {
class Nested(a: A)
inner class Inner(nested: Nested)
}
tailrec fun box(): String {
assertEquals(listOf(java.lang.Double.TYPE, String::class.java, A::class.java), ::A.parameters.map({it.typ... | 32,263 |
https://github.com/ckhairul/backend/blob/master/tasks/artifacts.py | Github Open Source | Open Source | MIT | null | backend | ckhairul | Python | Code | 27 | 125 | import os
from shutil import rmtree
from huey import crontab
from .config import huey
@huey.periodic_task(crontab(minute='0', hour='*'))
def clean_artifacts_runner():
for d in os.listdir('ansible/priv_data_dirs'):
rmtree(f"ansible/priv_data_dirs/{d}/artifacts", ignore_errors=True)
print("Artifacts a... | 38,764 |
https://github.com/cr88192/bgbtech_btsr1arch/blob/master/tk_ports/Q3Src/q3core/q3_ui/vm/ui_splevel.asm | Github Open Source | Open Source | MIT | 2,023 | bgbtech_btsr1arch | cr88192 | Assembly | Code | 13,630 | 44,126 | code
proc PlayerIcon 80 20
file "../ui_splevel.c"
line 128
;1:/*
;2:===========================================================================
;3:Copyright (C) 1999-2005 Id Software, Inc.
;4:
;5:This file is part of Quake III Arena source code.
;6:
;7:Quake III Arena source code is free software; you can redistribute ... | 26,926 |
https://github.com/kagemeka/atcoder-submissions/blob/master/jp.atcoder/typical90/typical90_aa/26086840.py | Github Open Source | Open Source | MIT | 2,022 | atcoder-submissions | kagemeka | Python | Code | 36 | 107 | import sys
import typing
def main() -> typing.NoReturn:
n = int(input())
s = sys.stdin.read().split()
buf = set()
res = []
for i in range(n):
if s[i] in buf: continue
res.append(i + 1)
buf.add(s[i])
print(*res, sep='\n')
main()
| 472 |
https://github.com/denimar/denibudget/blob/master/server/modules/transaction/transaction.controller.js | Github Open Source | Open Source | MIT | null | denibudget | denimar | JavaScript | Code | 37 | 172 | const transactionService = require('./transaction.service');
const commonConstant = require('../../../common/common.constant');
const bodyParser = require('body-parser');
const jsonParser = bodyParser.json();
module.exports = function(app) {
app.get(commonConstant.ENDPOINT.TRANSACTION, transactionService.getTransac... | 41,748 |
https://github.com/Tianle97/-Data-Centric-RAD-2017/blob/master/lab2/superheroes_wk2_part2.sql | Github Open Source | Open Source | Apache-2.0 | null | -Data-Centric-RAD-2017 | Tianle97 | SQL | Code | 303 | 1,267 | -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64)
--
-- Host: localhost Database: superheroes
-- ------------------------------------------------------
-- Server version 5.7.9
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/... | 45,776 |
https://github.com/dominikdassow/music-rs/blob/master/app/src/main/java/de/dominikdassow/musicrs/task/EvaluateSamplesTask.java | Github Open Source | Open Source | MIT | null | music-rs | dominikdassow | Java | Code | 288 | 1,439 | package de.dominikdassow.musicrs.task;
import de.dominikdassow.musicrs.AppConfiguration;
import de.dominikdassow.musicrs.model.Playlist;
import de.dominikdassow.musicrs.model.Track;
import de.dominikdassow.musicrs.model.feature.FeatureGenerator;
import de.dominikdassow.musicrs.model.feature.TrackFeature;
import de.dom... | 37,072 |
https://github.com/ingresso-group/django-debug-toolbar-api-requests/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,020 | django-debug-toolbar-api-requests | ingresso-group | Python | Code | 104 | 337 | #import os
from setuptools import setup
# allow setup.py to be run from any path
#os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-debug-toolbar-api-requests',
version='0.1.0',
packages=['djdt_api_requests', 'djdt_api_requests.panels'],
include_package... | 28,256 |
https://github.com/MarkCBell/flipper/blob/master/flipper/kernel/bundle.py | Github Open Source | Open Source | MIT | 2,021 | flipper | MarkCBell | Python | Code | 503 | 1,795 |
''' A module for representing triangulations of surface bundles over the circle.
Provides one class: Bundle. '''
import flipper
class Bundle:
''' This represents a triangulation of a surface bundle over the circle.
It is specified by a triangulation of the surface, a triangulation of the
bundle and... | 7,051 |
https://github.com/Den-Rimus/dokka/blob/master/core/src/test/kotlin/NodeSelect.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | dokka | Den-Rimus | Kotlin | Code | 245 | 811 | package org.jetbrains.dokka.tests
import org.jetbrains.dokka.DocumentationNode
import org.jetbrains.dokka.NodeKind
import org.jetbrains.dokka.RefKind
class SelectBuilder {
private val root = ChainFilterNode(SubgraphTraverseFilter(), null)
private var activeNode = root
private val chainEnds = mutableListOf... | 30,700 |
https://github.com/NETMF/llilum/blob/master/Zelig/Zelig/CompileTime/CodeGenerator/CodeTransformation/Annotations/RegisterCouplingConstraintAnnotation.cs | Github Open Source | Open Source | MIT | 2,022 | llilum | NETMF | C# | Code | 374 | 1,218 | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
namespace Microsoft.Zelig.CodeGeneration.IR
{
using System;
using System.Collections.Generic;
using Microsoft.Zelig.Runtime.TypeSystem;
public sealed class RegisterCouplingConstraintAnnotation : Annotation
{
//
... | 25,968 |
https://github.com/vicky-primathon/appsmith/blob/master/app/client/src/components/ads/Switch.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | appsmith | vicky-primathon | TSX | Code | 24 | 66 | import styled from "constants/DefaultTheme";
import { Switch } from "@blueprintjs/core";
export default styled(Switch)`
&&&&& input:checked ~ span {
background: ${(props) => props.theme.colors.selected};
}
`;
| 44,796 |
https://github.com/maddapper/prebid-server-java/blob/master/src/main/java/org/prebid/server/bidder/facebook/proto/FacebookNative.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | prebid-server-java | maddapper | Java | Code | 26 | 103 | package org.prebid.server.bidder.facebook.proto;
import com.iab.openrtb.request.Native;
import lombok.EqualsAndHashCode;
import lombok.Value;
import lombok.experimental.SuperBuilder;
@Value
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class FacebookNative extends Native {
Integer w;
Integer h;
... | 32,597 |
https://github.com/JaneliaSciComp/osgpyplusplus/blob/master/src/modules/osg/generated_code/vector_less__osg_scope_Vec3f__greater_.pypp.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | osgpyplusplus | JaneliaSciComp | C++ | Code | 15 | 112 | // This file has been generated by Py++.
#ifndef vector_less__osg_scope_Vec3f__greater__hpp__pyplusplus_wrapper
#define vector_less__osg_scope_Vec3f__greater__hpp__pyplusplus_wrapper
void register_vector_less__osg_scope_Vec3f__greater__class();
#endif//vector_less__osg_scope_Vec3f__greater__hpp__pyplusplus_wrapper
| 44,146 |
https://github.com/jew977/laravelhub/blob/master/resources/views/article/create.blade.php | Github Open Source | Open Source | MIT | 2,015 | laravelhub | jew977 | Blade | Code | 188 | 1,070 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>撰写博客</title>
@include('Home.style')
</head>
<body>
@include('Home.nav')
<div class="main">
<form method="post" class="create_blog">
<input type="hidden" name="_token" value="{{csrf_token()}}"/>
... | 24,135 |
https://github.com/Miguel-Con-Queso/Pic-A-Flick/blob/master/seeds/index.js | Github Open Source | Open Source | MIT | null | Pic-A-Flick | Miguel-Con-Queso | JavaScript | Code | 61 | 213 | const seedUsers = require('./user-seeds');
// const seedGenres = require('./genres-seeds');
const seedMovies = require('./movies-seeds');
// const seedVotes = require('./vote-seeds');
const sequelize = require('../config/connection');
const seedAll = async () => {
await sequelize.sync({ force: true });
console.l... | 20,950 |
https://github.com/yang-zhang99/hzero-platform/blob/master/src/main/java/org/hzero/platform/infra/repository/impl/DatasourceRepositoryImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | hzero-platform | yang-zhang99 | Java | Code | 124 | 683 | package org.hzero.platform.infra.repository.impl;
import org.hzero.boot.platform.lov.annotation.ProcessLovValue;
import org.hzero.core.base.BaseConstants;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.hzero.mybatis.domian.Condition;
import org.hzero.mybatis.util.Sqls;
import org.hzero.platform.doma... | 18,240 |
https://github.com/MikiSoft/UniBot/blob/master/UniBot v1.5 - by MikiSoft/Plugins/Sources (VB6)/captcha9kw/frmS.frm | Github Open Source | Open Source | MIT | 2,019 | UniBot | MikiSoft | Visual Basic | Code | 1,546 | 4,229 | VERSION 5.00
Begin VB.Form frmS
BorderStyle = 4 'Fixed ToolWindow
Caption = "captcha9kw settings"
ClientHeight = 2835
ClientLeft = 45
ClientTop = 285
ClientWidth = 3375
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 ... | 48,100 |
https://github.com/opencomputeproject/HWMgmt-DeviceMgr-PSME/blob/master/PSME/common/ssdp/include/ssdp/ssdp_packet.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | HWMgmt-DeviceMgr-PSME | opencomputeproject | C++ | Code | 967 | 2,348 | /*!
* @copyright
* Copyright (c) 2015-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 24,581 |
https://github.com/bozhidarmihaylov/20200407-shouty.java/blob/master/src/test/java/shouty/ShoutyHelper.java | Github Open Source | Open Source | MIT | null | 20200407-shouty.java | bozhidarmihaylov | Java | Code | 53 | 192 | package shouty;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
@Scope("cucumber-glue")
public class ShoutyHelper {
private final Shouty shouty = new Shouty();
public void setLocation(String person,... | 30,151 |
https://github.com/Spieldichein/ShoprX/blob/master/Android/ShoprX/src/main/java/de/tum/in/schlichter/shoprx/ui/explanation/SettingFragment.java | Github Open Source | Open Source | Apache-2.0 | null | ShoprX | Spieldichein | Java | Code | 24 | 95 | package de.tum.in.schlichter.shoprx.ui.explanation;
import android.app.Fragment;
import de.tum.in.schlichter.shoprx.algorithm.model.Attributes;
/**
* Created by Nicksteal on 03.04.2015.
*/
public class SettingFragment extends Fragment {
private Attributes.Attribute attribute;
}
| 41,108 |
https://github.com/kurli/chromium-crosswalk/blob/master/cc/output/renderer.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | chromium-crosswalk | kurli | C | Code | 290 | 805 | // Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_OUTPUT_RENDERER_H_
#define CC_OUTPUT_RENDERER_H_
#include "base/basictypes.h"
#include "cc/base/cc_export.h"
#include "cc/quads/render_pass.h"... | 11,356 |
https://github.com/muhammadoginh/parsley/blob/master/Playground/EllipseDetection.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | parsley | muhammadoginh | C# | Code | 253 | 926 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Emgu.CV.Structure;
using MathNet.Numerics.LinearAlgebra;
using Parsley.Core.Extensions;
namespace Playground {
[Parsley.Core.Addins.Addin]
public class EllipseDetection : Parsley.Core.IImageA... | 39,194 |
https://github.com/YuLeven/HaruGaKitaJavaApiPOC/blob/master/src/app/util/APIError.java | Github Open Source | Open Source | MIT | 2,018 | HaruGaKitaJavaApiPOC | YuLeven | Java | Code | 114 | 313 | package util;
/**
* Copyright 2017, Haru ga Kita! - All Rights Reserved
* Written by Yuri Levenhagen <yurileven@gmail.com>, 2017-01-30
*/
public enum APIError {
INTERNAL_SERVER_ERROR,
RESOURCE_NOT_FOUND,
USER_NOT_FOUND,
PACKAGE_NOT_FOUND,
KANJI_NOT_FOUND,
UNAUTHORIZED;
public String ge... | 13,115 |
https://github.com/kmykoh97/Unity-Games/blob/master/Roll A Ball/Assets/scripts/secondSceneVolume.cs | Github Open Source | Open Source | MIT | 2,018 | Unity-Games | kmykoh97 | C# | Code | 31 | 85 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class secondSceneVolume : MonoBehaviour {
public AudioSource myMusic;
// Use this for initialization
void Start () {
myMusic.volume = changeMusicVolume.volumeValue;
}
}
| 26,822 |
https://github.com/ezbuy/ezorm/blob/master/e2e/mongo/nested/gen_mongo_config.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | ezorm | ezbuy | Go | Code | 153 | 556 | package nested
import (
"context"
"fmt"
"github.com/ezbuy/ezorm/v2/pkg/db"
"github.com/ezbuy/wrapper/database"
"go.mongodb.org/mongo-driver/mongo"
)
type SetupOption struct {
monitor database.Monitor
postHooks []func()
}
type SetupOptionFn func(opts *SetupOption)
func WithStatsDMonitor(app string) SetupO... | 17,847 |
https://github.com/KoanHealth/aws-flow-ruby/blob/master/aws-flow/lib/aws/templates/default.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | aws-flow-ruby | KoanHealth | Ruby | Code | 482 | 1,300 | module AWS
module Flow
module Templates
# Default workflow class for the AWS Flow Framework for Ruby. It
# can run workflows defined by WorkflowTemplates.
class FlowDefaultWorkflowRuby
extend AWS::Flow::Workflows
# Create activity client and child workflow client
activi... | 37,142 |
https://github.com/LibreCat/librecat-citation/blob/master/t/LibreCat/Citation.t | Github Open Source | Open Source | Artistic-1.0 | null | librecat-citation | LibreCat | Perl | Code | 157 | 539 | use Catmandu::Sane;
use warnings FATAL => 'all';
use Test::More;
use Test::Exception;
use LibreCat -load => {layer_paths => [qw(t/layer)]};
use Data::Dumper;
my $pkg;
BEGIN {
$pkg = 'LibreCat::Citation';
use_ok $pkg;
}
require_ok $pkg;
lives_ok {$pkg->new()} 'lives_ok';
done_testing;
__END__
my $rec
=... | 48,663 |
https://github.com/odpi/egeria/blob/master/open-metadata-implementation/frameworks/open-connector-framework/src/main/java/org/odpi/openmetadata/frameworks/connectors/properties/beans/ElementOriginCategory.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0, CC-BY-4.0, LicenseRef-scancode-proprietary-license | 2,023 | egeria | odpi | Java | Code | 685 | 1,363 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.frameworks.connectors.properties.beans;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.ann... | 50,650 |
https://github.com/elifarley/kotlin-misc-lib/blob/master/src/com/github/elifarley/kotlin/textfile/DailyTextExporter.kt | Github Open Source | Open Source | MIT | 2,019 | kotlin-misc-lib | elifarley | Kotlin | Code | 318 | 1,142 | package com.orgecc.util.textfile
import com.orgecc.util.DateTimeKit.toDate
import com.orgecc.util.WithLogging
import com.orgecc.util.io.IOWithDigest
import com.orgecc.util.path.createParentDirectories
import java.nio.file.Path
import java.nio.file.Paths
import java.sql.ResultSet
import java.time.LocalDateTime
import j... | 15,611 |
https://github.com/Akuli/odotdot/blob/master/src/parse.c | Github Open Source | Open Source | MIT | 2,018 | odotdot | Akuli | C | Code | 2,816 | 9,140 | // some assert()s in this file have a comment like 'TODO: report error'
// it means that invalid syntax causes that assert() to fail
// FIXME: nomemerr handling
#include "parse.h"
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include "interpreter.h"
#include "objectsystem.h"
#inclu... | 28,944 |
https://github.com/mangpo/greenthumb/blob/master/arm/programs/p17_p21.s | Github Open Source | Open Source | BSD-2-Clause | 2,022 | greenthumb | mangpo | GAS | Code | 36 | 115 | cmp r0, r1
movne r2, r3
cmp r0, r3
eoreq r0, r3, r1
movne r0, #0
eor r0, r2, r0
sub r3, r0, #1
orr r3, r3, r0
add r3, r3, #1
and r0, r3, r0 | 19,339 |
https://github.com/lesit/NeuroStudio/blob/master/NeuroKernel/engine/NeuralNetworkPredictor.h | Github Open Source | Open Source | W3C | 2,022 | NeuroStudio | lesit | C | Code | 57 | 223 | #pragma once
#include "NeuralNetworkProcessor.h"
#include "NeuroData/StreamWriter.h"
namespace np
{
namespace engine
{
struct PREDICT_SETUP
{
dp::preprocessor::DataProvider* provider;
dp::StreamWriter* result_writer;
RecvSignal* recv_signal;
};
class NeuralNetworkPredictor : public NeuralNetwor... | 22,820 |
https://github.com/bsmsnd/LeetCode-CharlieChen/blob/master/304.range-sum-query-2-d-immutable.cpp | Github Open Source | Open Source | MIT | null | LeetCode-CharlieChen | bsmsnd | C++ | Code | 207 | 635 | /*
* @lc app=leetcode id=304 lang=cpp
*
* [304] Range Sum Query 2D - Immutable
*/
#include <iostream>
#include <vector>
using namespace std;
class NumMatrix {
public:
vector<vector<int>> sums;
NumMatrix(vector<vector<int>>& matrix) {
int n_rows = matrix.size();
int n_cols = matrix[0].size()... | 41,474 |
https://github.com/ETGgames/MIPS_Simulator/blob/master/test/mips_assembly/slti.mips.s | Github Open Source | Open Source | MIT | 2,021 | MIPS_Simulator | ETGgames | GAS | Code | 26 | 61 | #author: ES5017
#expected_exit_code: 1
#extra_info: tests simple case for slti and ensures numbers are compared as signed
lui $2, 0xF013
slti $2, $2, 1
jr $0
| 2,077 |
https://github.com/rpl/git-wiki/blob/master/static/themes/blue/print.sass | Github Open Source | Open Source | MIT | 2,019 | git-wiki | rpl | Sass | Code | 203 | 728 | @import ../lib/reset.sass
@import ../lib/changes.sass
body
color: #000
background: #FFF
font-family: Verdana, Arial, Helvetica, sans-serif
font-size: 10pt
line-height: 1.2em
h1
font-size: 180%
h2
font-size: 170%
h3
font-size: 150%
h4
font-size: 120%
h5
font-size: 120%
h6
font-size: 120%
h1... | 29,519 |
https://github.com/peerlinks/peerlinks-desktop/blob/master/src/App.js | Github Open Source | Open Source | MIT | 2,020 | peerlinks-desktop | peerlinks | JavaScript | Code | 233 | 721 | import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { HashRouter as Router, Route } from 'react-router-dom';
import './App.css';
import { checkNetwork, setFocus } from './redux/actions';
import FullScreen from './layouts/FullScreen';
import Chan... | 47,042 |
https://github.com/4saito5/sensor-management-web/blob/master/client/containers/SignUp.ts | Github Open Source | Open Source | MIT | 2,018 | sensor-management-web | 4saito5 | TypeScript | Code | 54 | 172 | import {connect} from 'react-redux'
import {Dispatch} from 'redux'
import {ReduxAction, ReduxState} from '../store'
// import {decrementAmount, incrementAmount} from '../modules/SignUp'
import SignUpForm from '../component/SignUp'
// dispatch処理
export class ActionDispatcher {
constructor(private dispatch: (action: R... | 37,518 |
https://github.com/Carcacri/Delirium/blob/master/src/app/comun/indicador-pantalla/indicador-pantalla.component.sass | Github Open Source | Open Source | MIT | null | Delirium | Carcacri | Sass | Code | 63 | 271 |
@import "../../../variables.sass"
@import "../../../breakpoints.scss"
::ng-deep .contenedorIndicadorPantalla
.contenedorIndicadorPantalla
position: absolute
bottom: 0
right: 0
z-index: 1000
color: white
text-align: center
background-color: green
@include media("<=desktop")
b... | 10,430 |
https://github.com/wuhou123/react-blogs/blob/master/umi-demo/src/pages/index/components/douyin/index.module.scss | Github Open Source | Open Source | MIT | null | react-blogs | wuhou123 | SCSS | Code | 89 | 303 | .recomment-config {
width: 600px;
height: 100%;
position: relative;
padding: 50px 0 0 60px;
.title {
h2 {
font-size: 24px;
}
}
.content {
width: 600px;
height: 600px;
position: relative;
background: #fff;
li {
width: 100%;
text-align: left;
color: #fff;
... | 8,145 |
https://github.com/9elements/gulp-9e-sass-lint/blob/master/test/fixtures/test.sass | Github Open Source | Open Source | MIT, Unlicense | null | gulp-9e-sass-lint | 9elements | Sass | Code | 14 | 40 | .overlay
position: absolute
color: red
top: 0
left: 0
.foo
color: red
@include clearfix
| 17,327 |
https://github.com/ZhyliaievD/gauge-java/blob/master/src/main/java/com/thoughtworks/gauge/Table.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | gauge-java | ZhyliaievD | Java | Code | 689 | 1,933 | /*----------------------------------------------------------------
* Copyright (c) ThoughtWorks, Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE.txt in the project root for license information.
*----------------------------------------------------------------*/
package com.thoughtworks.gauge;... | 14,216 |
https://github.com/sean-roberts/parallel-data/blob/master/src/request-maker.js | Github Open Source | Open Source | MIT | 2,021 | parallel-data | sean-roberts | JavaScript | Code | 353 | 1,035 | import { error } from './console'
import { assign } from './utils'
let xhrRequests = {}
let fetchRequests = {}
let allRequestsOptions = {}
const getKey = (method, url)=>{
return `${method.toUpperCase()}-${url}`
}
const makeXHRRequest = (method, url, headers, options )=>{
const key = getKey(method, url)
// d... | 1,063 |
https://github.com/tsuliuchao/gmc/blob/master/middleware/accesslog/accesslog.go | Github Open Source | Open Source | MIT | null | gmc | tsuliuchao | Go | Code | 157 | 758 | package accesslog
import (
"fmt"
"github.com/snail007/gmc"
gmclog "github.com/snail007/gmc/base/log"
gmcconfig "github.com/snail007/gmc/config"
gmcrouter "github.com/snail007/gmc/http/router"
"github.com/snail007/gmc/util/cast"
"strings"
"time"
)
type accesslog struct {
logger *gmclog.GMCLog
format string
}... | 22,796 |
https://github.com/deshankoswatte/tesb-rt-se/blob/master/job/controller/src/test/java/org/talend/esb/job/controller/internal/RuntimeESBConsumerTest.java | Github Open Source | Open Source | Apache-2.0 | null | tesb-rt-se | deshankoswatte | Java | Code | 419 | 1,444 | /*
* #%L
* Talend :: ESB :: Job :: Controller
* %%
* Copyright (C) 2011-2020 Talend 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/L... | 18,332 |
https://github.com/PCOL/FluentIL/blob/master/test/FluentILUnitTests/Resources/ITestInterface.cs | Github Open Source | Open Source | MIT | 2,022 | FluentIL | PCOL | C# | Code | 34 | 79 | namespace FluentILUnitTests.Resources
{
/// <summary>
/// defines a test interface.
/// </summary>
public interface ITestInterface
{
/// <summary>
/// Gets or sets a property.
/// </summary>
string GetSetProperty { get; set; }
}
} | 14,787 |
https://github.com/whitemike889/hotchocolate/blob/master/src/Client/Demo/GraphQL/Generated/StarWarsClient.cs | Github Open Source | Open Source | MIT | null | hotchocolate | whitemike889 | C# | Code | 135 | 507 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using StrawberryShake;
namespace StrawberryShake.Client.GraphQL
{
public class StarWarsClient
: IStarWarsClient
{
private readonly IOperationExecutor _executor;
... | 6,338 |
https://github.com/moazzamwaheed2017/carparkapi/blob/master/CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/geoanalytics/find_locations.py | Github Open Source | Open Source | MIT | null | carparkapi | moazzamwaheed2017 | Python | Code | 3,388 | 8,006 | """
These tools are used to identify areas that meet a number of different criteria you specify.
find_similar_locations finds locations most similar to one or more reference locations based on criteria you specify.
"""
import json as _json
import logging as _logging
import arcgis as _arcgis
from arcgis.features impor... | 49,934 |
https://github.com/nitika4/JsonPath/blob/master/json-path/src/test/java/com/jayway/jsonpath/TransformationBasicTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | JsonPath | nitika4 | Java | Code | 90 | 415 | package com.jayway.jsonpath;
import com.jayway.jsonpath.spi.transformer.TransformationSpec;
import org.junit.Before;
import org.junit.Test;
import java.io.InputStream;
import java.nio.charset.Charset;
import static org.junit.Assert.assertEquals;
public class TransformationBasicTest {
InputStream sourceStream;
... | 307 |
https://github.com/adrianstevens/Xamarin-Plugins/blob/master/SimpleAudioPlayer/SimpleAudioPlayer/Plugin.SimpleAudioPlayer.Android/SimpleAudioPlayerImplementation.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | Xamarin-Plugins | adrianstevens | C# | Code | 680 | 1,939 | using Android.Content.Res;
using System;
using System.IO;
using Uri = Android.Net.Uri;
namespace Plugin.SimpleAudioPlayer
{
/// <summary>
/// Implementation for Feature
/// </summary>
[Android.Runtime.Preserve(AllMembers = true)]
public class SimpleAudioPlayerImplementation : ISimpleAudioPlayer
... | 37,302 |
https://github.com/bolero-MURAKAMI/Sprig/blob/master/sprig/static_warning.hpp | Github Open Source | Open Source | BSL-1.0 | 2,018 | Sprig | bolero-MURAKAMI | C++ | Code | 81 | 393 | /*=============================================================================
Copyright (c) 2010-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprig
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===... | 7,961 |
https://github.com/FrankPfattheicher/stonehenge3/blob/master/IctBaden.Stonehenge3.Vue.SampleCore/Program.cs | Github Open Source | Open Source | MIT | 2,021 | stonehenge3 | FrankPfattheicher | C# | Code | 254 | 886 | using System;
using System.Diagnostics;
using System.Threading;
using IctBaden.Stonehenge3.Hosting;
using IctBaden.Stonehenge3.Kestrel;
using IctBaden.Stonehenge3.Resources;
using IctBaden.Stonehenge3.SimpleHttp;
using Microsoft.Extensions.Logging;
namespace IctBaden.Stonehenge3.Vue.SampleCore
{
internal static c... | 39,953 |
https://github.com/AndrewKralovec/FantasyCritic/blob/master/FantasyCritic.Lib/Services/FantasyCriticRoleManager.cs | Github Open Source | Open Source | MIT | 2,022 | FantasyCritic | AndrewKralovec | C# | Code | 46 | 199 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FantasyCritic.Lib.Domain;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Logging;
namespace FantasyCritic.Lib.Services
{
public class FantasyCriticRoleManager : RoleManager<Fa... | 5,345 |
https://github.com/NikitoG/TelerikAcademyHomeworks/blob/master/C#-II-Homework/TextFiles/CountWords/CounterForWords.cs | Github Open Source | Open Source | MIT | null | TelerikAcademyHomeworks | NikitoG | C# | Code | 225 | 656 | //Problem 13. Count words
//Write a program that reads a list of words from the file words.txt and finds how many times each of the words is contained
//in another file test.txt.
//The result should be written in the file result.txt and the words should be sorted by the number of their occurrences in
//descending o... | 48,938 |
https://github.com/Agent0005/hello-Community/blob/master/src/components/SocialMedia/styles.ts | Github Open Source | Open Source | MIT | null | hello-Community | Agent0005 | TypeScript | Code | 50 | 172 | import styled from 'styled-components';
export const NavigationIcons = styled.nav`
padding: 1rem 0;
a {
color: ${props => props.theme.colors.silver};
font-size: 1.5rem;
text-decoration: none;
margin-right: 8px;
transition: 0.3s;
&:hover {
color: ${props => props.theme.colors['dodger... | 11,791 |
https://github.com/Sparvnastet/make-all.se/blob/master/map.js | Github Open Source | Open Source | MIT | 2,012 | make-all.se | Sparvnastet | JavaScript | Code | 65 | 317 | var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
};
var map = new OpenLayers.Map('map', options);
var mapnik = new OpenLayers.Layer.OSM("OpenStreetMap (Mapnik)");
var size = new OpenLayers.Size(100,68);
var offset = new OpenLayers... | 15,157 |
https://github.com/aliefnaa/surveilans-undip/blob/master/surveilans-undip-master/application/controllers/Deteksi.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | surveilans-undip | aliefnaa | PHP | Code | 111 | 534 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Deteksi extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model("m_deteksi");
}
public function index()
{
$this->load->view('user/v_deteksi');
}
public function hasil()
... | 20,632 |
https://github.com/aliyun/alibabacloud-php-sdk/blob/master/cityvisual-20181030/src/Models/DescribeWorkGroupsResponseBody/workGroups/workGroup.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-php-sdk | aliyun | PHP | Code | 272 | 939 | <?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Cityvisual\V20181030\Models\DescribeWorkGroupsResponseBody\workGroups;
use AlibabaCloud\Tea\Model;
class workGroup extends Model
{
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
... | 14,052 |
https://github.com/tateshitah/PPPlot/blob/master/app/src/main/java/org/braincopy/gnss/plot/PointArray.java | Github Open Source | Open Source | MIT | 2,018 | PPPlot | tateshitah | Java | Code | 805 | 1,914 | /*
Copyright (c) 2013-2014 Hiroaki Tateshita
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, merge, publish, d... | 35,324 |
https://github.com/Crisspl/Nabla/blob/master/include/SColor.h | Github Open Source | Open Source | Apache-2.0 | null | Nabla | Crisspl | C | Code | 1,755 | 3,767 | // Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __COLOR_H_INCLUDED__
#define __COLOR_H_INCLUDED__
#include "irr/core/core.h"
#include "vectorSIMD.h"
#include "irr/asset/format/decodePixel... | 614 |
https://github.com/sql-machine-learning/elasticdl/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,023 | elasticdl | sql-machine-learning | Python | Code | 179 | 541 | # Copyright 2020 The ElasticDL Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 5,226 |
https://github.com/znerol-forks/fullbogons-nftables-gen/blob/master/main.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | fullbogons-nftables-gen | znerol-forks | Go | Code | 676 | 1,887 | /*
* Copyright 2021 Spæren, Teodor <teodor@sparen.no>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 14,210 |
https://github.com/5GinFIRE/-eu.5ginfire.nbi.osm4java/blob/master/src/main/java/yang/project/nsd/rev170228/project/NsdCatalog.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | -eu.5ginfire.nbi.osm4java | 5GinFIRE | Java | Code | 120 | 459 | package yang.project.nsd.rev170228.project;
import java.util.List;
import javax.annotation.Nullable;
import org.opendaylight.yangtools.yang.binding.Augmentable;
import org.opendaylight.yangtools.yang.binding.ChildOf;
import org.opendaylight.yangtools.yang.common.QName;
import yang.project.nsd.rev170228.$YangModuleIn... | 39,246 |
https://github.com/mootrichard/team-crater-eo/blob/master/client/src/Components/validate.js | Github Open Source | Open Source | MIT | 2,017 | team-crater-eo | mootrichard | JavaScript | Code | 32 | 71 | const validate = values => {
const errors = {}
if (!values.fname) {
errors.fname = '* Required'
}
if (!values.lname) {
errors.lname = '* Required'
}
return errors
}
export default validate
| 47,900 |
https://github.com/etoile/XMPPKit/blob/master/XMPPCapabilities.m | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,014 | XMPPKit | etoile | Objective-C | Code | 755 | 2,820 | //
// Capabilities.m
// Jabber
//
// Created by David Chisnall on 08/05/2005.
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
#import "XMPPCapabilities.h"
@implementation XMPPXMPPDiscoIdentity
+ (XMPPXMPPDiscoIdentity*) identityWithCategory:(NSString*)aCategory
type:(NSString*)aType
... | 48,777 |
https://github.com/etclabscore/evm_llvm/blob/master/test/ThinLTO/X86/Inputs/index-const-prop-cache-foo.ll | Github Open Source | Open Source | NCSA, LLVM-exception, Apache-2.0 | 2,020 | evm_llvm | etclabscore | LLVM | Code | 73 | 231 | target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@gFoo = internal unnamed_addr global i32 1, align 4
; Function Attrs: norecurse nounwind readonly ssp uwtable
define i32 @foo() local_unnamed_addr {
%1 = load i32, i32* @gFoo, alig... | 46,129 |
https://github.com/stefaneberl/openkit-native/blob/master/src/core/communication/IBeaconSendingContext.h | Github Open Source | Open Source | Apache-2.0 | null | openkit-native | stefaneberl | C | Code | 1,130 | 2,580 | /**
* Copyright 2018-2020 Dynatrace 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 ag... | 46,574 |
https://github.com/kunaltyagi/ign-common/blob/master/src/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,021 | ign-common | kunaltyagi | CMake | Code | 252 | 871 |
# Collect source files into the "sources" variable and unit test files into the
# "gtest_sources" variable
ign_get_libsources_and_unittests(sources gtest_sources)
# Create the library target
ign_create_core_library(
SOURCES ${sources}
CXX_STANDARD 17)
# Link the libraries that we always need
target_link_librarie... | 12,135 |
https://github.com/7alip/rsk-academy-dapp/blob/master/deployed/deployed-2021-07-08/Quote.sol | Github Open Source | Open Source | MIT | 2,021 | rsk-academy-dapp | 7alip | Solidity | Code | 94 | 257 | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
contract Quote {
address public owner;
string private message;
mapping (address => bool) public whiteList;
constructor() {
owner = msg.sender;
whiteList[msg.sender] = true;
}
modifier onlyOwner {
require(msg.sender == owner,"Onl... | 9,338 |
https://github.com/JetBrains/intellij-scala/blob/master/scala/worksheet/src/org/jetbrains/plugins/scala/worksheet/actions/repl/WorksheetResNGotoHandler.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-scala | JetBrains | Scala | Code | 222 | 743 | package org.jetbrains.plugins.scala.worksheet.actions.repl
import com.intellij.codeInsight.navigation.actions.GotoDeclarationHandler
import com.intellij.openapi.actionSystem.DataContext
import com.intellij.openapi.editor.Editor
import com.intellij.psi.PsiElement
import org.jetbrains.plugins.scala.extensions.OptionExt
... | 12,677 |
https://github.com/mozilla/airmozilla/blob/master/airmozilla/base/mozillians.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | airmozilla | mozilla | Python | Code | 450 | 1,588 | import logging
import urllib
import requests
from django.core.cache import cache
from django.conf import settings
class BadStatusCodeError(Exception):
pass
def _fetch_users(email=None, group=None, is_username=False, **options):
if not getattr(settings, 'MOZILLIANS_API_KEY', None): # pragma no cover
... | 27,877 |
https://github.com/thecoons/FlappyBirdS/blob/master/web/assets/vendor/vue/test/unit/modules/compiler/optimizer.spec.js | Github Open Source | Open Source | MIT | null | FlappyBirdS | thecoons | JavaScript | Code | 657 | 2,929 | import { parse } from 'compiler/parser/index'
import { optimize } from 'compiler/optimizer'
import { baseOptions } from 'web/compiler/index'
describe('optimizer', () => {
it('simple', () => {
const ast = parse('<h1 id="section1"><span>hello world</span></h1>', baseOptions)
optimize(ast, baseOptions)
expe... | 26,661 |
https://github.com/Krilline/Projet-DoctoTrip/blob/master/templates/home/housing.html.twig | Github Open Source | Open Source | MIT | null | Projet-DoctoTrip | Krilline | Twig | Code | 66 | 365 | {% extends 'base.html.twig' %}
{% block body %}
<div class="container">
<div class="row">
{% for housing in housings %}
<div class="col-lg-4 col-md-6 col-sm-7">
<h5 class="card-title">{{ housing.name }}</h5>
<img class="card-img-top" src="{{ housing.poster }}" alt="Card imag... | 25,688 |
https://github.com/SimulationEverywhere/CDPP_ExtendedStates-codename-Santi/blob/master/src/cd++/parser/cdlang/tuple_node.cpp | Github Open Source | Open Source | MIT | 2,022 | CDPP_ExtendedStates-codename-Santi | SimulationEverywhere | C++ | Code | 212 | 839 | #include <string>
#include <vector>
#include "tuple_node.h"
const TupleType TupleType::TheTuple;
TupleType::TupleType() : TypeValue(ttuple)
{
}
TupleNode::TupleNode(v_tuple* t) : tuple(t)
{
}
TupleNode::TupleNode(const Tuple<SyntaxNode*> &t) : tuple(t)
{
}
SyntaxNode *TupleNode::clone()
{
return new TupleNode(... | 20,006 |
https://github.com/ducklingcloud/vmt/blob/master/api/src/main/java/net/duckling/vmt/api/IRestOrgService.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | vmt | ducklingcloud | Java | Code | 604 | 2,738 | /*
* Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences.
*
* This file is part of Duckling project.
*
* 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 L... | 36,170 |
https://github.com/SaschaIoT/robot.sl/blob/master/robot.sl/Audio/AudioPlaying/AudioName.cs | Github Open Source | Open Source | MIT | 2,018 | robot.sl | SaschaIoT | C# | Code | 74 | 480 | namespace robot.sl.Audio.AudioPlaying
{
public enum AudioName
{
Welcome,
Forward,
Backward,
Left,
Right,
Stop,
Turn,
SlightlyLeft,
SlightlyRight,
VerySlightlyLeft,
VerySlightlyRight,
Slow,
Normal,
Fa... | 42,109 |
https://github.com/niteshregmi1234/avasplus/blob/master/onlineChat/app/start/global.php | Github Open Source | Open Source | MIT | 2,017 | avasplus | niteshregmi1234 | PHP | Code | 515 | 1,175 | <?php
use Illuminate\Support\Facades\Config;
/*
|--------------------------------------------------------------------------
| Register The Laravel Class Loader
|--------------------------------------------------------------------------
|
| In addition to using Composer, you may use the Laravel class loader to
| load yo... | 42,366 |
https://github.com/ava-labs/avalanchego/blob/master/vms/avm/txs/executor/semantic_verifier_test.go | Github Open Source | Open Source | BSD-3-Clause | 2,023 | avalanchego | ava-labs | Go | Code | 2,086 | 10,829 | // Copyright (C) 2019-2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package executor
import (
"reflect"
"testing"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"github.com/ava-labs/avalanchego/chains/atomic"
"github.com/ava-labs/avalanchego/database"... | 33,694 |
https://github.com/albyho/Tubumu.Utils/blob/master/Models/Page.cs | Github Open Source | Open Source | MIT | null | Tubumu.Utils | albyho | C# | Code | 77 | 226 | using System.Collections.Generic;
namespace Tubumu.Utils.Models
{
/// <summary>
/// 分页
/// </summary>
/// <typeparam name="T"></typeparam>
public class Page<T>
{
/// <summary>
/// 列表
/// </summary>
public List<T> List { get; set; }
/// <summary>
... | 18,779 |
https://github.com/SNC6SI/BlfLoad/blob/master/BlfExtractor.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | BlfLoad | SNC6SI | C | Code | 639 | 2,566 |
#include "mex.h"
#include <tchar.h> /* RTL */
#include <stdio.h>
#include <windows.h>
#include "binlog.h" /* BL */
#include <math.h>
#define STRICT /* WIN32 */
static BYTE dlcMapping[17] = {0,1,2,3,4,5,6,7,8,12,16,20,24,32,48,64};
int read_statistic... | 42,481 |
https://github.com/SayanBan/HackerRank-30-Days-of-code/blob/master/Day 01/Data Types.rb | Github Open Source | Open Source | MIT | 2,019 | HackerRank-30-Days-of-code | SayanBan | Ruby | Code | 82 | 168 | i = 4
d = 4.0
s = 'HackerRank '
# Declare second integer, double, and String variables.
# Read and save an integer, double, and String to your variables.
num2= gets.chomp.to_i
sum= i+num2
puts "#{sum}"
# Print the sum of both integer variables on a new line.
num3= gets.chomp.to_f
sum= d+num3
puts "#{sum}"
# Print the... | 11,832 |
https://github.com/chronolaw/ngx_ansic_dev/blob/master/t/ngx_http_ndg_thread_module.t | Github Open Source | Open Source | BSD-2-Clause | 2,022 | ngx_ansic_dev | chronolaw | Perl | Code | 93 | 250 | # Copyright (c) 2018 by chrono
#
# sudo cpan Test::Nginx
# export PATH=/opt/nginx/sbin:$PATH
# prove t/var.t
#use Test::Nginx::Socket 'no_plan';
use Test::Nginx::Socket;
repeat_each(1);
plan tests => repeat_each() * (blocks() * 2);
run_tests();
__DATA__
=== TEST 1 : thread
--- main_config
thread_pool xxx threa... | 28,033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.