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/flmmkch/nugem-rs/blob/master/nugem/src/game/mugen/character/state/read_cns.rs | Github Open Source | Open Source | MIT | 2,022 | nugem-rs | flmmkch | Rust | Code | 21 | 87 | use std::collections::HashMap;
use ::game::mugen::format::generic_def::{Categories, DefLine, GenericDef};
use std::fs::File;
use std::io::{BufRead, BufReader};
use super::{Command, CommandInput, CommandInputState};
pub fn read_cns_file(_: File) {
}
| 38,605 |
https://github.com/ArneLimburg/jpa-unit/blob/master/neo4j/src/integrationtest/java/eu/drus/jpa/unit/test/TransactionalIT.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | jpa-unit | ArneLimburg | Java | Code | 111 | 600 | package eu.drus.jpa.unit.test;
import static org.junit.Assert.assertNotNull;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.junit.BeforeClass;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorte... | 51,129 |
https://github.com/spicybirsge/AcronoxBot/blob/master/SlashCommands/soundboard/soundboard.js | Github Open Source | Open Source | Apache-2.0 | null | AcronoxBot | spicybirsge | JavaScript | Code | 79 | 305 | const { joinVoiceChannel, createAudioPlayer, createAudioResource, AudioPlayerStatus } = require('@discordjs/voice');
const path = require('path');
module.exports = {
name: 'soundboard',
description: "test command",
run: async(client, interaction, args) => {
if(interaction.guild.id !== "890260823572889610") re... | 39,176 |
https://github.com/sainideepak/corref-visual/blob/master/src/controller/Fachada.java | Github Open Source | Open Source | MIT | 2,016 | corref-visual | sainideepak | Java | Code | 125 | 462 | package controller;
import java.util.ArrayList;
import model.Grupo;
import model.Sintagma;
public class Fachada {
private static Fachada instance = null;
private final ListaDeGrupoController listaGrupoController;
private final GrupoController grupoController;
private final SintagmaController sintagma... | 52,119 |
https://github.com/AdhityaRamadhanus/gope/blob/master/filter_test.go | Github Open Source | Open Source | MIT | 2,016 | gope | AdhityaRamadhanus | Go | Code | 82 | 197 | package gope
import (
"testing"
)
func TestFilter(t *testing.T) {
var filter = func(xi interface{}) bool {
return (xi.(int)%2 == 1)
}
arr1 := [...]int{1, 2, 3, 4, 5}
arr2 := make([]interface{}, len(arr1))
for i, v := range arr1 {
arr2[i] = v
}
result := Filter(filter, arr2)
if len(result) != 3 {
t.Erro... | 40,569 |
https://github.com/wei-huan/sysY_compiler/blob/master/test/test_cases/91_line_search.c | Github Open Source | Open Source | MIT | null | sysY_compiler | wei-huan | C | Code | 72 | 307 |
int main()
{
//newline=10;
int i;
int sum;
int a[10];
sum=0;
//m = 1478;
//int t;
i=0;
while(i<10)
{
a[i]=i+1;
i=i+1;
}
int x;
int high;
int low;
int mid;
int n;
n=10;
x=getint();
high=n-1;
low=0;
mid=(high+low)/2;
... | 22,218 |
https://github.com/s-m-amin-ghasemi/PBE/blob/master/applications/performDL/pelicunPBE/file_io.py | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,019 | PBE | s-m-amin-ghasemi | Python | Code | 5,783 | 17,944 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Leland Stanford Junior University
# Copyright (c) 2018 The Regents of the University of California
#
# This file is part of pelicun.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condition... | 48,673 |
https://github.com/madmpro/winfiles/blob/master/scripts/Settings/Theme-Settings.ps1 | Github Open Source | Open Source | MIT | 2,018 | winfiles | madmpro | PowerShell | Code | 104 | 310 | #!/usr/bin/env powershell.exe
Import-Module -DisableNameChecking "$PSScriptRoot\..\Utilities\FileAndRegistryUtilities.psm1"
$winkey = "HKCU:\Software\Microsoft\Windows\CurrentVersion"
# Turn on Dark mode for apps
Set-RegistryInt "$winkey\Themes\Personalize" "AppsUseLightTheme" 0
# Automatically set accent color fro... | 17,776 |
https://github.com/ERamaM/Cosmos/blob/master/source/Cosmos.Assembler/x86/x87/FloatUCompareAnd2Pop.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Cosmos | ERamaM | C# | Code | 20 | 84 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Assembler.x86.X86.x87
{
[Cosmos.Assembler.OpCode("fucompp")]
public class FloatUCompareAnd2Pop : Instruction
{
}
}
| 6,881 |
https://github.com/LearnToDoShit/TheToolSet/blob/master/Memory/Queue.sv | Github Open Source | Open Source | MIT | 2,021 | TheToolSet | LearnToDoShit | null | Spoken | 204 | 750 | // Requires Counter and CounterWLoad ///!!!!!!!!!!!!!!!!!//
// Takes in M values of bitwidth N, outputs in FIFO order.
module Queue #(
parameter BitWidth = 32,
parameter BufferDepth = 4
)(
input clk, // Clock
input rst, // Asynchronous reset active high
output dInREQ,
input dInACK,
input [BitWidth-1:0] dI... | 45,404 |
https://github.com/Biloliddin93/project/blob/master/views/site/index.php | Github Open Source | Open Source | BSD-3-Clause | null | project | Biloliddin93 | PHP | Code | 252 | 1,312 | <?php
?>
<div class="creative_kids">
<div class="left__creative_kids">
<div class="owl-carousel owl-creative_kids">
<?php
foreach ($news as $vl){
?>
<div class="item" style="background-image: url('<?=Yii::$app->homeUrl."images/".$vl["url_img"]?>');">
... | 37,355 |
https://github.com/makhnnar/pokeApp/blob/master/app/src/main/java/com/pedrogomez/pokeapp/pokelist/models/pokedetail/PokeDetailResponse.kt | Github Open Source | Open Source | MIT | 2,021 | pokeApp | makhnnar | Kotlin | Code | 56 | 161 | package com.pedrogomez.pokeapp.pokelist.models.pokedetail
import kotlinx.serialization.Serializable
@Serializable
data class PokeDetailResponse(
val abilities: List<Ability>? = null,
val base_experience: Int? = null,
val height: Int? = null,
val id: Int? = null,
val is_default: Boolean? = null,
... | 15,121 |
https://github.com/benbria/node-promise-tools/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,020 | node-promise-tools | benbria | Ignore List | Code | 7 | 35 | /coverage
/src
/test
.travis.yml
.eslintrc
.babelrc
DEVELOPMENT.md
| 51,587 |
https://github.com/ntruchsess/tractusx/blob/master/portal/code/cx-portal/src/types/partnerNetwork/PartnerNetworkTypes.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | tractusx | ntruchsess | TypeScript | Code | 303 | 1,094 | import { GeographicCoordinate } from 'types/MainTypes'
import { GridColDef } from '@mui/x-data-grid'
//region Common Key Value pairs type
interface BpdmTypeNameObject {
name: string
url?: string
}
interface BpdmTypeCommonKeyValuePair extends BpdmTypeNameObject {
technicalKey: string
}
interface BpdmTypeUUIDKey... | 50,429 |
https://github.com/pyganflor/YuraSystem/blob/master/resources/views/adminlte/gestion/postcocecha/clientes/forms/add_agencias_carga.blade.php | Github Open Source | Open Source | MIT | 2,019 | YuraSystem | pyganflor | PHP | Code | 463 | 2,914 | <div id="div_select_agencia_carga">
<div class="row">
<div class="col-md-12">
<h4 class="box-title">
Agencias de carga
</h4>
<form id="form_add_user_agencia_carga">
<table width="100%" class="table table-responsive table-bordered" style="fo... | 51,527 |
https://github.com/arthurrib/nfe/blob/master/src/test/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoIPITributadoTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | nfe | arthurrib | Java | Code | 356 | 2,068 | package com.fincatto.documentofiscal.nfe400.classes.nota;
import com.fincatto.documentofiscal.nfe400.FabricaDeObjetosFake;
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoSituacaoTributariaIPI;
import org.junit.Assert;
import org.junit.Test;
import java.math.BigDecimal;
public class NFNotaInfoItemImpost... | 5,408 |
https://github.com/mbroomes22/coocucachew/blob/master/server/api/orderProduct.js | Github Open Source | Open Source | MIT | null | coocucachew | mbroomes22 | JavaScript | Code | 309 | 1,039 | const router = require('express').Router()
const isAdmin = require('../../utils/isAuth')
const {Product, User, OrderProduct, Order} = require('../db/models')
router.get('/', async (req, res, next) => {
try {
const fetchedOrderProducts = await OrderProduct.findAll({
where: {
orderId: req.body.orderI... | 1,352 |
https://github.com/Dev727/ancientplatinum/blob/master/data/phone/text/chad_caller.asm | Github Open Source | Open Source | blessing | 2,021 | ancientplatinum | Dev727 | Assembly | Code | 580 | 1,577 | ChadObservingWildText:
text "I recently began"
line "observing wild"
cont "@"
text_ram wStringBuffer4
text "."
para "I've been learning"
line "all sorts of new"
para "things through my"
line "observations."
para "I wish I could"
line "become a #MON"
para "researcher like"
line "PROF.OAK soon."
done
U... | 44,068 |
https://github.com/datyayu/weeselect/blob/master/app/components/champList/champList.scss | Github Open Source | Open Source | MIT | null | weeselect | datyayu | SCSS | Code | 84 | 288 | .ChampList {
margin-top: 1em;
// .save-button {padding:.5em; font-size: 2em}
.col-xs-2 {
padding: 0em;
padding-left: 0em;
padding-right: 0em;
height: 100%;
}
ul {
display: block;
li {border: 1px solid transparent; border-radius: 5px;}
}
.selected {
box-sizing: border-box... | 35,812 |
https://github.com/mtarapata/demoboard/blob/master/packages/demoboard-core/src/types/DemoboardTransformer.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | demoboard | mtarapata | TypeScript | Code | 52 | 106 | /*
* Copyright 2019 Seven Stripes Kabushiki Kaisha
*
* This source code is licensed under the Apache License, Version 2.0, found
* in the LICENSE file in the root directory of this source tree.
*/
import { DemoboardTransformedModule } from './DemoboardTransformedModule'
export type DemoboardTransformer = (
inp... | 1,365 |
https://github.com/lpdw/Stratajm/blob/master/src/CommonBundle/Resources/views/common-layout.html.twig | Github Open Source | Open Source | MIT | 2,017 | Stratajm | lpdw | Twig | Code | 210 | 1,290 | {% extends '::base.html.twig' %}
{% block title %}Les jeux{% endblock %}
{% block head %}
{% block stylesheets %}
{{ parent() }}
{% stylesheets
'@CommonBundle/Resources/public/css/common-theme.css'
%}
<link rel="stylesheet" href="{{ asset_url }}" />
{... | 12,393 |
https://github.com/huahang/sandbox/blob/master/thirdparty/grpc/status.h | Github Open Source | Open Source | Apache-2.0 | null | sandbox | huahang | C | Code | 2 | 24 | #include "thirdparty/grpc-1.19.1/include/grpc/status.h"
| 13,328 |
https://github.com/Armen-e5518/UserForm/blob/master/backend/web/js/set-data.js | Github Open Source | Open Source | BSD-3-Clause | null | UserForm | Armen-e5518 | JavaScript | Code | 628 | 2,492 | $(document).ready(function () {
if (_Id && _Form_id) {
var data = {};
data.id = _Id;
data.form_id = _Form_id;
$.ajax({
type: "POST",
url: "/admin/ajax/get-form-data-by-id",
data: data,
success: function (res) {
if (res) ... | 5,120 |
https://github.com/luontola/specsy/blob/master/specsy-examples/src/test/java/org/specsy/examples/java/StackSpec.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | specsy | luontola | Java | Code | 161 | 454 | // Copyright © 2010-2016, Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package org.specsy.examples.java;
import org.specsy.java.JavaSpecsy;
import java.util.ArrayDeque;
import java.util.Deque;
import... | 14,719 |
https://github.com/loongarch64/Bitbucket-papi/blob/master/src/libpfm-3.y/lib/ultra12_events.h | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,021 | Bitbucket-papi | loongarch64 | C | Code | 478 | 1,740 | static pme_sparc_entry_t ultra12_pe[] = {
/* These two must always be first. */
{ .pme_name = "Cycle_cnt",
.pme_desc = "Accumulated cycles",
.pme_ctrl = PME_CTRL_S0 | PME_CTRL_S1,
.pme_val = 0x0,
},
{ .pme_name = "Instr_cnt",
.pme_desc = "Number of instructions completed",
.pme_ctrl = PME_CTRL_S0 | PME_C... | 19,042 |
https://github.com/Microsvuln/vfuzz/blob/master/libvfuzz-runtime/src/sensor/driver.cpp | Github Open Source | Open Source | MIT | 2,020 | vfuzz | Microsvuln | C++ | Code | 1,003 | 4,182 | #include <sensor/driver.h>
#include <base/exception.h>
#include <sensor/processor/highest.h>
#include <sensor/processor/unique.h>
#include <sensor/processor/noop.h>
#include <sensor/sensor/allocationglobalmax.h>
#include <sensor/sensor/codecoverage.h>
#include <sensor/sensor/codeintensity.h>
#include <sensor/sensor/aut... | 38,096 |
https://github.com/aedart/athenaeum/blob/master/packages/Contracts/src/Support/Properties/Strings/ContentAware.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | athenaeum | aedart | PHP | Code | 148 | 313 | <?php
namespace Aedart\Contracts\Support\Properties\Strings;
/**
* Content Aware
*
* Component is aware of string "content"
*
* @author Alin Eugen Deac <aedart@gmail.com>
* @package Aedart\Contracts\Support\Properties\Strings
*/
interface ContentAware
{
/**
* Set content
*
* @param string|nu... | 25,494 |
https://github.com/touir1/Facebook-Chat-Terminal-mode/blob/master/classUtil.py | Github Open Source | Open Source | MIT | 2,018 | Facebook-Chat-Terminal-mode | touir1 | Python | Code | 67 | 222 | import hashlib
class Buffer:
def __init__(self, buffer = ""):
self.buffer = buffer
def getBuffer(self):
return self.buffer
def addChar(self,char):
if char == '\b':
self.buffer = self.buffer[:-1]
else:
self.buffer += char
def addToBuffer(self,to... | 51,524 |
https://github.com/Grom-Li/WindowsProtocolTestSuites/blob/master/ProtoSDK/MS-ADTS-LDAP/AdtsLdapV3Asn1Codec/SearchRequest_scope.cs | Github Open Source | Open Source | MIT | 2,022 | WindowsProtocolTestSuites | Grom-Li | C# | Code | 84 | 261 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Protocols.TestTools.StackSdk.Asn1;
namespace Microsoft.Protocols.TestTools.StackSdk.ActiveDirectory.Adts.Asn1CodecV3
{
/*
SearchRequest_scope ... | 34,492 |
https://github.com/hgwxr/AndroidBasic/blob/master/xianghaapp/src/main/java/com/example/xianghaapp/util/ShowView.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | AndroidBasic | hgwxr | Java | Code | 78 | 259 | package com.example.xianghaapp.util;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
/**
* Created by Administrator on 2016/8/15.
*/
public class ShowView {
public static void showTextView(View view, Object obj){
if (view instanceof ImageView){
Im... | 36,821 |
https://github.com/diorga/snitch/blob/master/hw/ip/snitch_ssr/test/tb_simple_ssr.sv | Github Open Source | Open Source | Apache-2.0 | null | snitch | diorga | null | Spoken | 785 | 2,252 | // Copyright 2020 ETH Zurich and University of Bologna.
// Solderpad Hardware License, Version 0.51, see LICENSE for details.
// SPDX-License-Identifier: SHL-0.51
// Author: Paul Scheffler <paulsc@iis.ee.ethz.ch>
module tb_simple_ssr;
// Test parameters
localparam int unsigned AddrWidth = 32;
localparam in... | 17,152 |
https://github.com/ElectricFiras/Yii-exams-site/blob/master/backend/views/site/users.php | Github Open Source | Open Source | BSD-3-Clause | null | Yii-exams-site | ElectricFiras | PHP | Code | 43 | 186 | <?php
use yii\widgets\LinkPager;
$this->title = 'Users';
$this->params['breadcrumbs'][] = $this->title;
echo "<h1>$this->title</h1>";
foreach ($models as $model) {
// display $model here\
echo "<a href='http://exam.yii/backend/index.php?r=site%2Fuser&id=" . $model->getAttribute('id') ."'>".$model->getAttr... | 35,969 |
https://github.com/MikeWuang/hawk-client/blob/master/hawk/modules/player/Fastplace.java | Github Open Source | Open Source | MIT | 2,021 | hawk-client | MikeWuang | Java | Code | 47 | 157 | package hawk.modules.player;
import hawk.events.Event;
import hawk.events.listeners.EventMotion;
import hawk.modules.Module;
public class Fastplace extends Module {
public void onEvent(Event var1) {
if (var1 instanceof EventMotion && var1.isPre()) {
this.mc.rightClickDelayTimer = 0;
}
}
... | 52,272 |
https://github.com/davidhay25/clinFHIR/blob/master/node_modules/fsh-sushi/dist/fshtypes/rules/ContainsRule.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | clinFHIR | davidhay25 | JavaScript | Code | 30 | 94 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Rule_1 = require("./Rule");
class ContainsRule extends Rule_1.Rule {
constructor(path) {
super(path);
this.items = [];
}
}
exports.ContainsRule = ContainsRule;
//# sourceMappingURL=ContainsRule.js.map | 51,643 |
https://github.com/JackBoos/vcpkg/blob/master/ports/crfsuite/CMakeLists.txt | Github Open Source | Open Source | MIT, BSL-1.0 | 2,020 | vcpkg | JackBoos | CMake | Code | 108 | 634 | cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
PROJECT(crfsuite)
file(GLOB SOURCE_FILE_CQDB
"lib/cqdb/src/*.c"
)
file(GLOB HEADERS_FILE_CQDB
"lib/cqdb/include/*.h"
)
file(GLOB SOURCE_FILE_CRF
"lib/crf/src/*.c"
)
file(GLOB HEADERS_FILE_CRF
"lib/crf/src/*.h"
)... | 2,362 |
https://github.com/xzhan96/chromium.src/blob/master/ios/web/shell/test/earl_grey/shell_matchers.mm | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,021 | chromium.src | xzhan96 | Objective-C++ | Code | 201 | 901 | // Copyright 2016 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.
#import "ios/web/shell/test/earl_grey/shell_matchers.h"
#import "base/mac/foundation_util.h"
#include "base/strings/sys_string_conversions.h"
#import "io... | 40,834 |
https://github.com/digggy/CS-Jacobs/blob/master/C++/C++ I/Lab3/a6p4/Square.h | Github Open Source | Open Source | MIT | 2,019 | CS-Jacobs | digggy | C++ | Code | 31 | 118 | /*
CH08-320142
Problem 6.4.cpp
Digdarshan Kunwar
d.kunwar@jacobs-university.de
*/
#ifndef _SQUARE_H
#define _SQUARE_H
#include"Rectangle.h"
class Square : public Rectangle {
public:
Square(const char *n, double a);
~Square();
private:
double length;
};
#endif
| 20,030 |
https://github.com/pip-services3-go/pip-services3-rpc-go/blob/master/auth/OwnerAuthManager.go | Github Open Source | Open Source | MIT | 2,023 | pip-services3-rpc-go | pip-services3-go | Go | Code | 253 | 951 | package auth
import (
"net/http"
"github.com/gorilla/mux"
cdata "github.com/pip-services3-go/pip-services3-commons-go/data"
cerr "github.com/pip-services3-go/pip-services3-commons-go/errors"
services "github.com/pip-services3-go/pip-services3-rpc-go/services"
)
type OwnerAuthManager struct {
}
func (c *OwnerAu... | 223 |
https://github.com/scala-steward/scalajs-benchmark/blob/master/benchmark/src/main/scala/japgolly/scalajs/benchmark/gui/FilenameCtx.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | scalajs-benchmark | scala-steward | Scala | Code | 52 | 195 | package japgolly.scalajs.benchmark.gui
import japgolly.scalajs.benchmark.Suite
import japgolly.scalajs.benchmark.engine.Progress
final case class FilenameCtx[P](folderPath: Seq[String],
suite : Suite[P],
progress : Progress[P]) {
import FilenameCt... | 7,334 |
https://github.com/hanierming/swoft-component/blob/master/src/task/src/Bean/Annotation/Task.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | swoft-component | hanierming | PHP | Code | 104 | 316 | <?php
namespace Swoft\Task\Bean\Annotation;
/**
* Task annotation
*
* @Annotation
* @Target("CLASS")
*/
class Task
{
/**
* 任务名称
*
* @var string
*/
private $name = '';
/**
* @var bool
*/
private $coroutine = false;
/**
* Bean constructor.
*
* @par... | 36,381 |
https://github.com/OVakhnenko/java8/blob/master/src/streams/Stream7.java | Github Open Source | Open Source | Apache-2.0 | null | java8 | OVakhnenko | Java | Code | 82 | 240 | package streams;
import domain.Car;
import java.util.Arrays;
import java.util.List;
public class Stream7 {
public static void main(String[] args) {
List<Car> cars = Arrays.asList(
new Car("AA1111BX", 2007),
new Car("AK5555IT", 2010),
new Car(null, 2012),
... | 36,868 |
https://github.com/alipay/antchain-openapi-prod-sdk/blob/master/integration_machine/nodejs/src/client.ts | Github Open Source | Open Source | MIT | 2,023 | antchain-openapi-prod-sdk | alipay | TypeScript | Code | 4,439 | 17,279 | // This file is auto-generated, don't edit it
import AntchainUtil from '@antchain/alipay-util';
import Util, * as $Util from '@alicloud/tea-util';
import RPCUtil from '@alicloud/rpc-util';
import * as $tea from '@alicloud/tea-typescript';
/**
* Model for initing client
*/
export class Config extends $tea.Model {
a... | 48,155 |
https://github.com/Dmytro8/Chatty/blob/master/src/components/common/FormControls.js | Github Open Source | Open Source | MIT | null | Chatty | Dmytro8 | JavaScript | Code | 560 | 1,658 | import React from "react";
import { useForm, Controller } from "react-hook-form";
import TextField from "@material-ui/core/TextField";
import { purple, red, grey } from "@material-ui/core/colors";
import { withStyles } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";
import CircularProgre... | 26,200 |
https://github.com/aabdikul/fewpjs-fns-as-first-class-data-array-o-functions-onl01-seng-pt-110319/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | fewpjs-fns-as-first-class-data-array-o-functions-onl01-seng-pt-110319 | aabdikul | JavaScript | Code | 119 | 438 | function wakeDog(dogName, dogBreed) {
let phrase = (`Wake ${dogName} the ${dogBreed}`);
console.log(phrase);
return (phrase);
}
function leashDog(dogName, dogBreed) {
let phrase = (`Leash ${dogName} the ${dogBreed}`);
console.log(phrase);
return (phrase);
}
function walkToPark(dogName, dogBreed) {
let phrase =... | 35,950 |
https://github.com/cuckata23/wurfl-data/blob/master/data/sonyericsson_lt30p_ver1_subuaa.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,015 | wurfl-data | cuckata23 | PHP | Code | 22 | 111 | <?php
return array (
'id' => 'sonyericsson_lt30p_ver1_subuaa',
'fallback' => 'sonyericsson_lt30p_ver1',
'capabilities' =>
array (
'model_name' => 'LT30a',
'uaprof' => 'http://wap.sonymobile.com/UAprof/LT30aR701.xml',
),
);
| 14,266 |
https://github.com/Danon/coyote/blob/master/database/migrations/2016_01_10_133307_create_before_topic_update_trigger.php | Github Open Source | Open Source | MIT | 2,022 | coyote | Danon | PHP | Code | 174 | 530 | <?php
use Illuminate\Database\Migrations\Migration;
class CreateBeforeTopicUpdateTrigger extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::unprepared('
CREATE FUNCTION before_topic_update() RETURNS trigger LANGUAGE plpgsql AS $$
BEGIN
... | 42,941 |
https://github.com/huzhenghui/mask-awesome/blob/master/di/build/ninja.README.md.dot | Github Open Source | Open Source | BSD-3-Clause | 2,021 | mask-awesome | huzhenghui | Graphviz (DOT) | Code | 116 | 878 | digraph ninja {
rankdir="LR"
node [fontsize=10, shape=box, height=0.25]
edge [fontsize=10]
"0x7fab45e040f0" [label="README.md"]
"0x7fab45e04080" [label="pandocomatic", shape=ellipse]
"0x7fab45e04080" -> "0x7fab45e040f0"
"0x7fab45c07c60" -> "0x7fab45e04080" [arrowhead=none]
"0x7fab45d046c0" -> "0x7fab45e04080" [arrowhea... | 33,826 |
https://github.com/KNIGHTTH0R/datumbox/blob/master/datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Ranks.java | Github Open Source | Open Source | Apache-2.0 | null | datumbox | KNIGHTTH0R | Java | Code | 436 | 1,123 | /**
* Copyright (C) 2013-2016 Vasilis Vryniotis <bbriniotis@datumbox.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
*
* Unles... | 9,723 |
https://github.com/CESNET/glite-lb/blob/master/org.glite.lb.common/src/query_rec.c | Github Open Source | Open Source | Apache-2.0 | 2,013 | glite-lb | CESNET | C | Code | 286 | 1,252 | #ident "$Header$"
/*
Copyright (c) Members of the EGEE Collaboration. 2004-2010.
See http://www.eu-egee.org/partners for details on the copyright holders.
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 Licens... | 23,203 |
https://github.com/jeswr/on2ts/blob/master/typescript/tsc/src/classes.ts | Github Open Source | Open Source | MIT | 2,021 | on2ts | jeswr | TypeScript | Code | 30 | 131 | /**
* @creator -
* Jesse Wrightr-
* <http://orcid.org/0000-0002-5771-988X>-
* <mailto:jesse.wright@anu.edu.au>on-
* <https://www.anu.edu.au>
* @type <http://www.w3.org/2002/07/owl#Ontology>
* @label-en The Ontology to Typescript (ont-to-ts) ontology
*/
export namespace classes {
}
| 2,633 |
https://github.com/kukirokuk/openregistry.assets.basic/blob/master/openregistry/assets/basic/includeme.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | openregistry.assets.basic | kukirokuk | Python | Code | 31 | 153 | # -*- coding: utf-8 -*-
from pyramid.interfaces import IRequest
from openregistry.api.interfaces import IContentConfigurator
from openregistry.assets.basic.models import Asset, IBasicAsset
from openregistry.assets.basic.adapters import BasicAssetConfigurator
def includeme(config):
config.add_assetType(Asset)
... | 31,218 |
https://github.com/wg1111/vueblog/blob/master/src/router/index.js | Github Open Source | Open Source | MIT | null | vueblog | wg1111 | JavaScript | Code | 184 | 652 | import Vue from 'vue'
import Router from 'vue-router'
import Login from '../views/Login.vue'
import Home from '../views/Home.vue'
import Test1 from '../views/Test1.vue'
import Test2 from '../views/Test2.vue'
Vue.use(Router)
export default new Router({
//使用history模式进行路由
mode: 'history',
routes: [
{
pa... | 15,905 |
https://github.com/LeontievVlad/booking/blob/master/Booking/Booking/Scripts/chat.js | Github Open Source | Open Source | MIT | 2,019 | booking | LeontievVlad | JavaScript | Code | 268 | 945 | $(document).ready(function () {
// логин
$("#btnLogin").click(function () {
var nickName = $("#txtUserName").val();
if (nickName) {
// формируем ссылку с параметрами, по которой идет обращение
var href = "/Chat/Index?user=" + encodeURIComponent(nickName);
hr... | 24,048 |
https://github.com/RomaniukVadim/ellipsometric-calculator/blob/master/Python_version/propagator.py | Github Open Source | Open Source | WTFPL | null | ellipsometric-calculator | RomaniukVadim | Python | Code | 592 | 5,918 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'propagator.ui'
#
# Created: Fri Oct 31 09:38:10 2014
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Att... | 10,768 |
https://github.com/cwray01/huaweicloud-sdk-java-v3/blob/master/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerDiscountsRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | huaweicloud-sdk-java-v3 | cwray01 | Java | Code | 206 | 804 | package com.huaweicloud.sdk.bss.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** Request Object */
public class ListSubCustomerDiscountsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value =... | 36,208 |
https://github.com/devilking6105/streetsupport-web/blob/master/src/pages/bournemouth/severe-weather-accommodation/index.hbs | Github Open Source | Open Source | MIT | null | streetsupport-web | devilking6105 | null | Spoken | 121 | 418 | ---
title: Severe Weather Emergency Accommodation in Freehold - HTHW
description: Severe Weather Emergency Accommodation provision in Freehold.
image: https://streetsupport.net/assets/img/og/street-support-bournemouth.jpg
layout: default.hbs
permalink: false
jsBundle: swep
section: freehold
page: freehold-advice
locati... | 47,978 |
https://github.com/ZumoCommunity/Meetup-API/blob/master/ZumoCommunity.MeetupAPI/ZumoCommunity.MeetupAPI.Data/Entity/Speaker.cs | Github Open Source | Open Source | MIT | 2,017 | Meetup-API | ZumoCommunity | C# | Code | 127 | 334 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ZumoCommunity.MeetupAPI.Data.Entity
{
public class Speaker : _Data
{
[Required]
public string FirstName { get; set; }
[Required]
public string LastName ... | 2,707 |
https://github.com/albetnov/telefon/blob/master/resources/views/search.blade.php | Github Open Source | Open Source | MIT | null | telefon | albetnov | PHP | Code | 134 | 617 | @extends('templates.guest')
@section('title', 'Search Data')
@section('content')
<main id="main">
<!-- ======= Breadcrumbs ======= -->
<section class="breadcrumbs">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
... | 7,199 |
https://github.com/Yakabuff/StationLoader/blob/master/src/main/java/net/modificationstation/stationloader/api/common/event/block/BlockRegister.java | Github Open Source | Open Source | CC0-1.0 | 2,020 | StationLoader | Yakabuff | Java | Code | 29 | 129 | package net.modificationstation.stationloader.api.common.event.block;
import net.modificationstation.stationloader.api.common.event.Event;
import net.modificationstation.stationloader.api.common.event.EventFactory;
public interface BlockRegister {
Event<BlockRegister> EVENT = EventFactory.INSTANCE.newEvent(Block... | 4,311 |
https://github.com/apecoraro/VoxVizThesis/blob/master/VoxViz/VoxVizCore/Controller.h | Github Open Source | Open Source | MIT | 2,019 | VoxVizThesis | apecoraro | C | Code | 25 | 97 | #ifndef VOX_CONTROLLER_H
#define VOX_CONTROLLER_H
#include <QtCore/qobject.h>
#include "VoxVizCore/SceneObject.h"
namespace vox
{
class Controller : public QObject, public Referenced
{
private:
SceneObject* pSceneObject;
};
}
#endif
| 46,113 |
https://github.com/hmcts/sscs-common/blob/master/src/main/java/uk/gov/hmcts/reform/sscs/ccd/domain/OverrideFields.java | Github Open Source | Open Source | MIT | 2,023 | sscs-common | hmcts | Java | Code | 51 | 239 | package uk.gov.hmcts.reform.sscs.ccd.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import uk.gov.hmcts.reform... | 8,728 |
https://github.com/ferderer/evelikto-di/blob/master/src/Bean.php | Github Open Source | Open Source | MIT | null | evelikto-di | ferderer | PHP | Code | 67 | 197 | <?php
namespace evelikto\di;
/** Dependency DTO, which wraps all informations needed to store it. */
class Bean
{
const SCOPE_PROTOTYPE = 'SCOPE_PROTOTYPE';
const SCOPE_SESSION = 'SCOPE_SESSION';
const SCOPE_GLOBAL = 'SCOPE_GLOBAL';
public $name, $aliases = [], $value, $scope;
public function __... | 39,375 |
https://github.com/MonkAlex/MangaReader/blob/master/MangaReader.Core/Manga/IDownloadable.cs | Github Open Source | Open Source | MIT | 2,023 | MangaReader | MonkAlex | C# | Code | 148 | 443 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MangaReader.Core.Manga
{
public interface IDownloadableContainer<out T> : IDownloadable where T : IDownloadable
{
/// <summary>
/// Загружаемое содержимое.
/// </summary>
IEnumerable<T> Container { get; }
... | 17,340 |
https://github.com/KacperAdamczyk/ProjektSWR/blob/master/ProjektSWR/Scripts/Panel/manage.js | Github Open Source | Open Source | MIT | 2,017 | ProjektSWR | KacperAdamczyk | JavaScript | Code | 49 | 124 | $(function () {
$.getJSON("/Panel/Users", parseJSON2);
});
function parseJSON2(data2) {
var i;
for (i = 0; i < data2.length; i++) {
var nr = i + 1
var line = "<option value=" + "\"" + nr + "\">" + data2[i].LastName + " " + data2[i].FirstName + "</option>";
$("#user_select").appen... | 45,302 |
https://github.com/igor-krawczuk/lm-evaluation-harness/blob/master/lm_eval/models/dummy.py | Github Open Source | Open Source | MIT | 2,021 | lm-evaluation-harness | igor-krawczuk | Python | Code | 38 | 93 | # REMINDER: this code needs to be rewritten for the new framework. Remove this comment when the code is fully converted.
from lm_eval.base import LM
from . import MODEL_REGISTRY
@MODEL_REGISTRY.register("dummy")
class DummyLM(LM):
def loglikelihood(self, context, continuation):
return 0.0
| 24,390 |
https://github.com/tu9th/agility-website-gatsby/blob/master/src/components/hamburger.scss | Github Open Source | Open Source | MIT | 2,020 | agility-website-gatsby | tu9th | SCSS | Code | 565 | 2,219 | @import "../global/_variables.scss";
.nav-icon1 {
width: 24px;
height: 18px;
transform: rotate(0deg);
cursor: pointer;
background-color: transparent;
border: none;
position: fixed;
right: 16px;
top: 23px;
outline: none;
display: none;
z-index: 30;
// transition: 0.5s ease-in-out;
transition... | 41,470 |
https://github.com/huzhangyang/puerts/blob/master/unreal/Puerts/Source/PuertsEditor/Private/BuildProgressService.cpp | Github Open Source | Open Source | BSD-3-Clause | null | puerts | huzhangyang | C++ | Code | 24 | 127 | #include "BuildProgressService.h"
#include "PuertsEditorModule.h"
void UBuildProgressService::Start()
{
IPuertsEditorModule::Get().StartBuild();
}
void UBuildProgressService::Update(int InCurrent, int InTotal)
{
IPuertsEditorModule::Get().SetBuildProgress(InCurrent, InTotal);
}
void UBuildProgressService::Stop(boo... | 32,568 |
https://github.com/shizhz/go/blob/master/src/cmd/compile/internal/noder/irgen_test.go | Github Open Source | Open Source | BSD-3-Clause | null | go | shizhz | Go | Code | 506 | 2,006 | package noder
import (
"bufio"
"cmd/compile/internal/amd64"
"cmd/compile/internal/base"
"cmd/compile/internal/escape"
"cmd/compile/internal/inline"
"cmd/compile/internal/ir"
"cmd/compile/internal/reflectdata"
"cmd/compile/internal/ssa"
"cmd/compile/internal/ssagen"
"cmd/compile/internal/syntax"
"cmd/compile... | 12,895 |
https://github.com/zihai367/rest.vertx/blob/master/src/test/java/com/zandero/rest/test/TestPostRest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | rest.vertx | zihai367 | Java | Code | 102 | 475 | package com.zandero.rest.test;
import com.zandero.rest.annotation.*;
import com.zandero.rest.reader.DummyBodyReader;
import com.zandero.rest.test.json.Dummy;
import com.zandero.rest.writer.TestDummyWriter;
import javax.ws.rs.*;
/**
*
*/
@Produces("application/json")
@Path("/post")
public class TestPostRest {
... | 18,673 |
https://github.com/ibm-hyperknowledge/IAPL/blob/master/timex-29/0008/p_0008_d0002.0_s03.5_b613b410c6c6a46789f97740637ee8ba.ttl | Github Open Source | Open Source | MIT | 2,021 | IAPL | ibm-hyperknowledge | Turtle | Code | 36 | 153 | @prefix : <http://www.ibm.com/timex#> .
@prefix v: <http://ex.org/variable#> .
v:0 :b v:6 ;
:eq_o_oi_d_di_s_si_f_fi v:1 ;
:eq_s_si v:5 .
v:3 :b_m_o_d_s v:4 .
v:1 :bi_mi_oi_d_f v:2 ;
:d v:7 ;
:oi v:5 .
v:2 :b_m_o v:7 .
| 40,941 |
https://github.com/lowdown1983/ecu_diagnostics/blob/master/ffi/ecu_diagnostics_ffi.hpp | Github Open Source | Open Source | MIT | 2,021 | ecu_diagnostics | lowdown1983 | C++ | Code | 989 | 2,176 | #ifndef ECU_DIAG_H_
#define ECU_DIAG_H_
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
namespace ecu_diagnostics {
/// Callback handler result
enum class CallbackHandlerResult {
/// Everything OK
OK = 0,
/// Read timeout
ReadTimeout = 2,
/// Write timeout
Write... | 267 |
https://github.com/antonmedv/year/blob/master/packages/1998/03/23/index.js | Github Open Source | Open Source | MIT | 2,021 | year | antonmedv | JavaScript | Code | 6 | 15 | module.exports = new Date(1998, 2, 23)
| 6,324 |
https://github.com/masx200/baidupcs-batch-upload/blob/master/lib/limiter.ts | Github Open Source | Open Source | MIT | 2,022 | baidupcs-batch-upload | masx200 | TypeScript | Code | 63 | 195 | import AsyncLimiter from "@masx200/async-task-current-limiter";
import { execFile } from "child_process";
import { promisify } from "util";
import { argsobj } from "./argsobj.js";
const 同时并发的上传文件个数 = Number(argsobj["concurrent"]) || 15;
const limiter = AsyncLimiter(同时并发的上传文件个数);
/**
* @param {any} data
*/
// const li... | 28,297 |
https://github.com/vinh869163/Simplicity/blob/master/Simplicity/SMMailboxRowView.h | Github Open Source | Open Source | BSD-2-Clause | 2,019 | Simplicity | vinh869163 | Objective-C | Code | 30 | 93 | //
// SMMailboxRowView.h
// Simplicity
//
// Created by Evgeny Baskakov on 12/3/15.
// Copyright © 2015 Evgeny Baskakov. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface SMMailboxRowView : NSTableRowView
@end
| 23,423 |
https://github.com/eaciit/windapp/blob/master/web/assets/core/js/page-loss-analysis.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | windapp | eaciit | JavaScript | Code | 559 | 2,853 | 'use strict';
viewModel.AvailabilityAnalysis = new Object();
var pg = viewModel.AvailabilityAnalysis;
var maxdate = new Date(Date.UTC(2016, 5, 30, 23, 59, 59, 0));
pg.isDetailDTTop = ko.observable(false);
pg.availabledatestartscada = ko.observable();
pg.availabledateendscada = ko.observable();
pg.availabledatestarts... | 44,115 |
https://github.com/dupriezt/Calypso/blob/master/Calypso-Environment-System-Tests.package/ClySortedVariablesTests.class/instance/contentClass.st | Github Open Source | Open Source | MIT | 2,017 | Calypso | dupriezt | null | Spoken | 3 | 14 | helpers
contentClass
^ClySortedVariables | 17,485 |
https://github.com/remore/gemstat/blob/master/lib/gemstat/cache/gemfiles/g/gist:4.5.0/Gemfile | Github Open Source | Open Source | MIT | 2,015 | gemstat | remore | Ruby | Code | 8 | 25 | gem 'rake'
gem 'ronn'
gem 'webmock'
gem 'rspec'
| 23,677 |
https://github.com/open-estuary/appbenchmark/blob/master/lib/ansible/roles/docker_net/netperf_test_server/templates/netperf_servercon.sh | Github Open Source | Open Source | Apache-2.0 | 2,017 | appbenchmark | open-estuary | Shell | Code | 15 | 39 | #!/bin/bash
yum clean all
yum install netperf -y
netserver
while true
do
sleep 1s
done
| 11,778 |
https://github.com/johnrabbit687/Holtzman/blob/master/imports/components/giving/checkout-buttons/index.js | Github Open Source | Open Source | ECL-2.0 | 2,019 | Holtzman | johnrabbit687 | JavaScript | Code | 483 | 1,724 | // @flow
// $FlowMeteor
import { Meteor } from "meteor/meteor";
import { Component } from "react";
import { graphql } from "react-apollo";
import { connect } from "react-redux";
import gql from "graphql-tag";
import { sortBy } from "underscore";
import {
modal,
accounts as accountsActions,
nav as navActions,
... | 53,807 |
https://github.com/isabella232/metronome/blob/master/jobs/src/main/scala/dcos/metronome/scheduler/impl/NotifyOfTaskStateOperationStep.scala | Github Open Source | Open Source | Apache-2.0 | 2,020 | metronome | isabella232 | Scala | Code | 76 | 296 | package dcos.metronome
package scheduler.impl
import akka.Done
import akka.event.EventStream
import dcos.metronome.eventbus.TaskStateChangedEvent
import dcos.metronome.scheduler.TaskState
import mesosphere.marathon.core.instance.update.{InstanceChange, InstanceChangeHandler}
import java.time.Clock
import scala.concur... | 33,710 |
https://github.com/bjerkio/crayon-api-go/blob/master/models/customer_tenant_agreement.go | Github Open Source | Open Source | Apache-2.0 | null | crayon-api-go | bjerkio | Go | Code | 376 | 1,079 | // Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"encoding/json"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
"... | 44,549 |
https://github.com/debugvelop/javaNest/blob/master/Sorts/MergeSort_Auto5.java | Github Open Source | Open Source | MIT | 2,020 | javaNest | debugvelop | Java | Code | 155 | 758 | import java.util.*;
import java.util.concurrent.TimeUnit;
import java.io.*;
public class MergeSort_Auto5{
private static File randomNum=new File("randomNumber500k.txt");
private static int[] mainArray;
public static void main(String[] args) throws FileNotFoundException,UnsupportedEncodingException{
... | 1,428 |
https://github.com/mcsherrylabs/sbt-native-packager/blob/master/project/plugins.sbt | Github Open Source | Open Source | BSD-2-Clause | null | sbt-native-packager | mcsherrylabs | Scala | Code | 63 | 254 | addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.0")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0-M1")
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
// Scripte... | 12,859 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/appflowMod/DatadogConnectorProfileProperties.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 76 | 299 | package typingsSlinky.awsSdk.appflowMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait DatadogConnectorProfileProperties extends StObject {
/**
* Th... | 10,937 |
https://github.com/ZachT1711/microsoft-ui-xaml/blob/master/dev/Materials/Acrylic/AcrylicBrushFactory.h | Github Open Source | Open Source | MIT | 2,022 | microsoft-ui-xaml | ZachT1711 | C | Code | 87 | 350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#pragma once
#include "AcrylicBrush.h"
class AcrylicBrushFactory
: public winrt::factory_implementation::AcrylicBrushT<AcrylicBrushFactory, AcrylicBrush, winrt... | 4,816 |
https://github.com/peqpez/prefalll135/blob/master/prefalll135OF/Mill.cpp | Github Open Source | Open Source | CC-BY-4.0 | null | prefalll135 | peqpez | C++ | Code | 73 | 508 | #include "ofMain.h"
#include "Mill.h"
void Mill::init(float mx, float my, string mpath){
x=mx;
y=my;
path=mpath;
millImg.loadImage(path);
millImg.draw(x,y);
active=false;
vel=0.3;
rot=0;
width=millImg.getWidth();
height=millImg.getHeight();
scale=1.6;
n=4.0;
valPre... | 24,184 |
https://github.com/apple/swift/blob/master/test/IRGen/Inputs/ResilientBaseClasses.swift | Github Open Source | Open Source | Apache-2.0, Swift-exception | 2,023 | swift | apple | Swift | Code | 4 | 9 | open class ResilientBase {}
| 48,006 |
https://github.com/PriestsHsiung/Open-IM-Server/blob/master/src/rpc/friend/friend/delete_friend.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | Open-IM-Server | PriestsHsiung | Go | Code | 92 | 411 | package friend
import (
"Open_IM/src/common/config"
"Open_IM/src/common/db/mysql_model/im_mysql_model"
"Open_IM/src/common/log"
pbFriend "Open_IM/src/proto/friend"
"Open_IM/src/utils"
"context"
)
func (s *friendServer) DeleteFriend(ctx context.Context, req *pbFriend.DeleteFriendReq) (*pbFriend.CommonResp, error... | 5,302 |
https://github.com/tomtix/penguins/blob/master/d3v/model.c | Github Open Source | Open Source | Apache-2.0 | null | penguins | tomtix | C | Code | 819 | 2,830 | /**
* @file model.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stddef.h>
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <utils/vec.h>
#include <server/path.h>
#include <d3v/model.h>
#define LINE_SIZE 128
/**
* Description d'un vertex.
*/
struct vertex {
... | 49,480 |
https://github.com/mandalornl/duo-cms/blob/master/src/Duo/SeoBundle/DuoSeoBundle.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,020 | duo-cms | mandalornl | PHP | Code | 10 | 43 | <?php
namespace Duo\SeoBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DuoSeoBundle extends Bundle {}
| 31,746 |
https://github.com/freebsd/freebsd-ports/blob/master/devel/py-setuptools_scm/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,023 | freebsd-ports | freebsd | Makefile | Code | 130 | 687 | PORTNAME= setuptools_scm
PORTVERSION= 6.4.2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Setuptools plugin to manage your versions by scm tags
WWW= https://github.com/pypa/setuptools_scm
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_... | 21,150 |
https://github.com/kmatthews812/relisten-ios/blob/master/Shared/View Controllers/Tabs/RecentlyPlayedTabViewController.swift | Github Open Source | Open Source | MIT | 2,022 | relisten-ios | kmatthews812 | Swift | Code | 258 | 692 | //
// RecentTabViewController.swift
// RelistenShared
//
// Created by Alec Gorge on 3/25/19.
// Copyright © 2019 Alec Gorge. All rights reserved.
//
import Foundation
import AsyncDisplayKit
import RealmSwift
class RecentlyPlayedTabViewController: NewShowListRealmViewController<RecentlyPlayedTrack> {
public ... | 51,274 |
https://github.com/karunmatharu/Android-4.4-Pay-by-Data/blob/master/external/oprofile/module/x86/op_apic.c | Github Open Source | Open Source | MIT, GPL-2.0-only | 2,017 | Android-4.4-Pay-by-Data | karunmatharu | C | Code | 753 | 2,421 | /**
* @file op_apic.c
*
* APIC setup etc. routines
*
* @remark Copyright 2002 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
* @author Dave Jones
* @author Graydon Hoare
*/
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/config.h>
#include <asm... | 52,449 |
https://github.com/ljqian1990/ljqian/blob/master/webrtc_sampleapp/lib/Srvc/Service.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | ljqian | ljqian1990 | PHP | Code | 325 | 682 | <?php
namespace Att\Api\Srvc;
/*
* Copyright 2014 AT&T
*
* 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... | 47,100 |
https://github.com/tmdgusya/effective-typescript/blob/master/ch06/50/03.ts | Github Open Source | Open Source | MIT | null | effective-typescript | tmdgusya | TypeScript | Code | 31 | 61 | function double<T extends number|string>(x: T): T;
function double(x: any) { return x + x; }
const num = double(12); // Type is 12
const str = double('x'); // Type is "x"
| 51,890 |
https://github.com/krishna412/spot-tagging-bot-for-digital-assets/blob/master/tests/unit/test_bot_dao.py | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,021 | spot-tagging-bot-for-digital-assets | krishna412 | Python | Code | 254 | 1,384 | import time
import pytest
from sam_spot_bot_create_job.bot_dao import BotDao
from .my_ut_config import create_env
@pytest.fixture
def init_env():
create_env()
dao = BotDao()
yield
print("UT clean up.")
time.sleep(1)
dao.delete_index()
def test_default_bots_was_there(init_env):
dao = B... | 34,593 |
https://github.com/bugsnag/bugsnag-js/blob/master/packages/plugin-strip-project-root/strip-project-root.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | bugsnag-js | bugsnag | JavaScript | Code | 49 | 174 | const normalizePath = require('@bugsnag/core/lib/path-normalizer')
module.exports = {
load: client => client.addOnError(event => {
if (!client._config.projectRoot) return
const projectRoot = normalizePath(client._config.projectRoot)
const allFrames = event.errors.reduce((accum, er) => accum.concat(er.sta... | 2,106 |
https://github.com/Neeraj123Singh/Email-Marketing/blob/master/config/seeder.php | Github Open Source | Open Source | MIT | 2,021 | Email-Marketing | Neeraj123Singh | PHP | Code | 62 | 237 | <?php
/**
* seeder.php
*
* @since 27 Aug, 2020
* @copyright Grorapid @ 2020
* @author Manish Sahani <rec.manish.sahani@gmail.com>
*/
use App\Models\Audience;
use App\Models\Services\Campaign;
use App\Models\Type;
return [
'types' => [
[
Type::SCHEMA_NAME => Campaign::SERVICE_NAME... | 51,135 |
https://github.com/klausw/looper/blob/master/loops/25.js | Github Open Source | Open Source | MIT | 2,019 | looper | klausw | JavaScript | Code | 460 | 1,581 | import THREE from '../third_party/three.js';
import {renderer, getCamera} from '../modules/three.js';
import getLemniscatePoint from '../modules/lemniscate.js';
import Maf from '../modules/maf.js';
const canvas = renderer.domElement;
const camera = getCamera();
const scene = new THREE.Scene();
const group = new THREE.... | 15,201 |
https://github.com/zhouhang4200/fadan/blob/master/database/migrations/2018_04_16_144705_create_businessman_contact_templates_table.php | Github Open Source | Open Source | MIT | null | fadan | zhouhang4200 | PHP | Code | 61 | 290 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBusinessmanContactTemplatesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::cre... | 10,221 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.