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/biologic/stylus/blob/master/src/han.inl | Github Open Source | Open Source | Apache-2.0 | null | stylus | biologic | C++ | Code | 842 | 2,295 | /*******************************************************************************
* \file han.inl
* \brief Stylus Han and helper classes inline methods
*
* Stylus, Copyright 2006-2009 Biologic Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | 6,723 |
https://github.com/pderakhshanfar/EMSE-BBC-experiment/blob/master/results/JacksonCore-19/com.fasterxml.jackson.core.json.ReaderBasedJsonParser/BBC-F0-opt-70/tests/6/com/fasterxml/jackson/core/json/ReaderBasedJsonParser_ESTest.java | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | EMSE-BBC-experiment | pderakhshanfar | Java | Code | 20,000 | 71,721 | /* * This file was automatically generated by EvoSuite * Thu Oct 14 04:35:15 GMT 2021 */ package com.fasterxml.jackson.core.json; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import com.fasterxml.jac... | 47,045 |
https://github.com/LegolasVzla/pgplsql-useful-examples/blob/master/tree-postgis-queries/temporal_schema/functions/udf_spots_nearby_by_filter_place_name.sql | Github Open Source | Open Source | MIT | 2,020 | pgplsql-useful-examples | LegolasVzla | PLpgSQL | Code | 612 | 2,380 | -- DROP FUNCTION public.udf_spots_nearby_by_filter_place_name(integer, double precision, double precision,varchar,integer,integer);
CREATE OR REPLACE FUNCTION public.udf_spots_nearby_by_filter_place_name(
param_user_id integer,
param_lat double precision,
param_long double precision,
param_place_name va... | 42,271 |
https://github.com/Janasek/pi-hole-pl/blob/master/html/admin/settings.php | Github Open Source | Open Source | MIT | null | pi-hole-pl | Janasek | PHP | Code | 5,174 | 19,749 | <?php /*
* Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/p... | 21,389 |
https://github.com/Emmanuel312/testaws/blob/master/src/room/room.controller.ts | Github Open Source | Open Source | MIT | null | testaws | Emmanuel312 | TypeScript | Code | 53 | 187 | import {
Controller,
Post,
Body,
UsePipes,
ValidationPipe,
Get,
} from '@nestjs/common';
import { RoomService } from './room.service';
import { CreateTaskDto } from './dto/create-room.dto';
@Controller('room')
export class RoomController {
constructor(private roomService: RoomService) {}
@Post()
@Us... | 29,897 |
https://github.com/Yanrishatum/UGif/blob/master/UGif/UGifShared.cs | Github Open Source | Open Source | MIT | 2,022 | UGif | Yanrishatum | C# | Code | 336 | 1,128 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEditor;
using UnityEngine;
using ugiflib;
using System.IO;
namespace UGif
{
class UGifShared
{
static UGifShared()
{
settings = new UGifSettings();
if (EditorPrefs.GetInt(UGifSettings.VERSION_KEY,... | 54,297 |
https://github.com/devsahm/laravel-double-database/blob/master/resources/views/admheader.blade.php | Github Open Source | Open Source | MIT | 2,020 | laravel-double-database | devsahm | PHP | Code | 247 | 1,326 | <header class="header">
<div class="logo-container">
<a href="../index.html" class="logo">
<img src="/assets/images/logo.png" height="35" alt="Porto Admin" />
</a>
<div class="visible-xs toggle-sidebar-left" data-toggle-class="sidebar-left-opened" data-target="html" data-fire-event="sidebar-lef... | 36,532 |
https://github.com/noeleo25/vuejs-popover/blob/master/dev/serve.vue | Github Open Source | Open Source | MIT | null | vuejs-popover | noeleo25 | Vue | Code | 27 | 97 | <script>
import Vue from 'vue';
import VuePopover from '@/vue-popover.vue';
export default Vue.extend({
name: 'ServeDev',
components: {
VuePopover
}
});
</script>
<template>
<div id="app">
<vue-popover />
</div>
</template>
| 26,302 |
https://github.com/benzcpu/QRCode/blob/master/application/helpers/project_helper.php | Github Open Source | Open Source | MIT | null | QRCode | benzcpu | PHP | Code | 92 | 398 | <?php
function tokenkeyUploadFile(){
return 'Jqs23Ax';
}
function return_false($message){
return $message=array('status'=>401,'message'=>$message);
}
function return_true($message){
return $message=array('status'=>200,'message'=>$message);
}
function isset_not_empty(&$value, $default = null)
{
try {
return isset(... | 17,016 |
https://github.com/abhi007tyagi/JavaExperiments/blob/master/JavaExperiments/src/tyagiabhinav/clrs/QueueUsingStack.java | Github Open Source | Open Source | MIT | 2,022 | JavaExperiments | abhi007tyagi | Java | Code | 202 | 922 | /**
*
*/
package tyagiabhinav.clrs;
/**
* @author abhinavtyagi
*
*/
public class QueueUsingStack {
private static Stack S;
QueueUsingStack(int s) {
S = new Stack(s);
}
public static void enqueue(int n) {
if (S.isFull()) {
System.out.println("Queue is full !!");
} else {
S.push(n);
}
}
pub... | 4,278 |
https://github.com/chen0040/winform-d3-data-visualizer/blob/master/winform-3d-visualizer/JSBinding.cs | Github Open Source | Open Source | MIT | 2,018 | winform-d3-data-visualizer | chen0040 | C# | Code | 40 | 113 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace winform_3d_visualizer
{
public class JSBinding
{
public string temp = "";
public string getTemp()
{
return temp;
}
public void set... | 42,579 |
https://github.com/eugeneko/rbfx/blob/master/Source/Urho3D/Particles/ParticleGraphPin.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | rbfx | eugeneko | C++ | Code | 382 | 1,014 | //
// Copyright (c) 2021 the rbfx project.
//
// 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, p... | 10,405 |
https://github.com/gstvds/tindev/blob/master/frontend/src/index.js | Github Open Source | Open Source | MIT | 2,020 | tindev | gstvds | JavaScript | Code | 41 | 78 | import React from 'react'; // Importa a biblioteca do react
import ReactDOM from 'react-dom'; // Lib que coloca o react no ambiente. No browser é a react-dom
// DOM é a árvore de elementos
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
| 28,673 |
https://github.com/ToucanToco/vue-query-builder/blob/master/src/components/constants.ts | Github Open Source | Open Source | BSD-3-Clause | 2,019 | vue-query-builder | ToucanToco | TypeScript | Code | 676 | 1,880 | import { PipelineStepName } from '@/lib/steps';
export type ButtonDef = Readonly<{
icon: string;
label: string;
category: string;
enable: boolean;
featureFlag?: string;
}>;
export type ActionCategories = {
add: ActionCategory[];
compute: ActionCategory[];
filter: ActionCategory[];
text: ActionCatego... | 38,987 |
https://github.com/emerson-roots/conversion-thymeleaf-to-angular-project/blob/master/src/app/config/error.fields.ts | Github Open Source | Open Source | MIT | 2,021 | conversion-thymeleaf-to-angular-project | emerson-roots | TypeScript | Code | 14 | 41 |
export interface ErrorFields{
timestamp: number;
error: string;
errors: string[];
message: string;
status: number;
}
| 36,366 |
https://github.com/jz314/gatk/blob/master/src/main/java/org/broadinstitute/hellbender/tools/spark/sv/FindBreakpointEvidenceSpark.java | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,017 | gatk | jz314 | Java | Code | 3,031 | 10,216 | package org.broadinstitute.hellbender.tools.spark.sv;
import com.google.common.annotations.VisibleForTesting;
import htsjdk.samtools.*;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.spark.HashPartitioner;
import org.apache.spark.api.java.JavaRDD;
import org.apach... | 3,081 |
https://github.com/dellavalentina/fp-jsonwebtoken/blob/master/src/fp.jwt.header.pas | Github Open Source | Open Source | MIT | 2,021 | fp-jsonwebtoken | dellavalentina | Pascal | Code | 56 | 177 | unit fp.jwt.header;
interface
uses
Classes, SysUtils;
type
TJWTAlg = (HS256, JWTAlgNone);
TJWTHeader = class
private
Ftyp: string;
Falg: TJWTAlg;
public
constructor Create();
destructor Destroy(); override;
property typ: string read Ftyp write Ftyp;
property alg: TJWTAlg read... | 20,424 |
https://github.com/jayahir/groktls/blob/master/src/main/java/org/archie/groktls/impl/filter/ItemFilterBuilderImpl.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,014 | groktls | jayahir | Java | Code | 231 | 650 | /**
* Copyright 2013 Tim Whittington
*
* Licensed under the The Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 5,523 |
https://github.com/lboynton/terraform-provider-opslevel/blob/master/opslevel/resource_opslevel_service_tool.go | Github Open Source | Open Source | MIT | 2,021 | terraform-provider-opslevel | lboynton | Go | Code | 514 | 1,612 | package opslevel
import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/opslevel/opslevel-go"
)
func resourceServiceTool() *schema.Resource {
return &schema.Resource{
Description: "Manages a service tool",
Create: ... | 43,640 |
https://github.com/zolotov/bifurcan/blob/master/src/io/lacuna/bifurcan/durable/codecs/Rebase.java | Github Open Source | Open Source | MIT | 2,022 | bifurcan | zolotov | Java | Code | 238 | 951 | package io.lacuna.bifurcan.durable.codecs;
import io.lacuna.bifurcan.*;
import io.lacuna.bifurcan.IDurableCollection.Fingerprint;
import io.lacuna.bifurcan.durable.BlockPrefix;
import io.lacuna.bifurcan.durable.ChunkSort;
import io.lacuna.bifurcan.durable.Fingerprints;
import io.lacuna.bifurcan.durable.io.DurableBuffe... | 17,750 |
https://github.com/jb11/mage/blob/master/Mage.Sets/src/mage/cards/v/VoidStalker.java | Github Open Source | Open Source | MIT | null | mage | jb11 | Java | Code | 246 | 941 | package mage.cards.v;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abili... | 29,867 |
https://github.com/bgroenks96/AutoMoL/blob/master/core/src/main/java/edu/osu/cse/groenkeb/utils/Types.java | Github Open Source | Open Source | MIT | 2,018 | AutoMoL | bgroenks96 | Java | Code | 31 | 114 | package edu.osu.cse.groenkeb.utils;
import java.util.function.Predicate;
public final class Types
{
public static <T> boolean safeMatch(Class<T> type, Object obj, Predicate<T> matchPredicate)
{
if (!type.isInstance(obj)) return false;
return matchPredicate.test(type.cast(obj));
}
private Types()
{}... | 16,701 |
https://github.com/otcshare/chromium-src/blob/master/weblayer/browser/http_auth_handler_impl.cc | Github Open Source | Open Source | BSD-3-Clause | 2,020 | chromium-src | otcshare | C++ | Code | 108 | 498 | // Copyright 2020 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.
#include "weblayer/browser/http_auth_handler_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
... | 34,737 |
https://github.com/khanhbui96/myidea/blob/master/app/components/Pays.js | Github Open Source | Open Source | MIT | null | myidea | khanhbui96 | JavaScript | Code | 568 | 2,372 | import React,{useEffect} from 'react';
import { withStyles, makeStyles } from '@material-ui/core/styles';
import {KeyboardBackspace} from '@material-ui/icons';
import {Link} from 'react-router-dom';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '... | 16,343 |
https://github.com/vany152/VM5/blob/master/doc/doxygen/html/dir_443f2147b8bdda0a9880c1bca57b896e.js | Github Open Source | Open Source | MIT | null | VM5 | vany152 | JavaScript | Code | 10 | 74 | var dir_443f2147b8bdda0a9880c1bca57b896e =
[
[ "CMakeCCompilerId.c", "_c_make_c_compiler_id_8c.html", "_c_make_c_compiler_id_8c" ]
]; | 4,896 |
https://github.com/NrgXnat/xnat-reboot/blob/master/src/main/java/org/nrg/xnat/configuration/DicomImportConfig.java | Github Open Source | Open Source | BSD-2-Clause-Views, BSD-2-Clause | 2,017 | xnat-reboot | NrgXnat | Java | Code | 157 | 735 | /*
* web: org.nrg.xnat.configuration.DicomImportConfig
* XNAT http://www.xnat.org
* Copyright (c) 2005-2017, Washington University School of Medicine and Howard Hughes Medical Institute
* All Rights Reserved
*
* Released under the Simplified BSD.
*/
package org.nrg.xnat.configuration;
import org.nrg.dcm.DicomF... | 15,040 |
https://github.com/cwichel/mcu_libs/blob/master/docu/html/lis3dh__defs_8h_structlis3dh__reg__ctrl4__t.js | Github Open Source | Open Source | MIT | null | mcu_libs | cwichel | JavaScript | Code | 35 | 293 | var lis3dh__defs_8h_structlis3dh__reg__ctrl4__t =
[
[ "SIM", "lis3dh__defs_8h.html#a2fb351c888c6b67d7e5eb4b997dc5df0", null ],
[ "ST", "lis3dh__defs_8h.html#ad5c3dc85af2af3b18b104b36e5107db8", null ],
[ "HR", "lis3dh__defs_8h.html#a7e9c921bbf1e0d03b633572e12ca7be1", null ],
[ "FS", "lis3dh__defs_8h.html... | 47,840 |
https://github.com/Evaneos/pulumi-mongodbatlas/blob/master/sdk/nodejs/getCustomDbRoles.ts | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | pulumi-mongodbatlas | Evaneos | TypeScript | Code | 282 | 664 | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "./utilities";
/**
* `mongodbatlas_custom_db_roles` describe all Custom DB Ro... | 45,713 |
https://github.com/liveblocks/liveblocks/blob/master/packages/liveblocks/src/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | liveblocks | liveblocks | TypeScript | Code | 35 | 64 | export { LiveObject } from "./LiveObject";
export { LiveMap } from "./LiveMap";
export { LiveList } from "./LiveList";
export type { Others, Presence, Room, Client, User } from "./types";
export { createClient } from "./client";
| 41,803 |
https://github.com/liweitianux/DeltaPorts/blob/master/ports/graphics/blender/dragonfly/patch-source_blender_blenloader_intern_readfile.h | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | 2,022 | DeltaPorts | liweitianux | C | Code | 44 | 172 | --- source/blender/blenloader/intern/readfile.h.orig 2020-02-11 14:26:31 UTC
+++ source/blender/blenloader/intern/readfile.h
@@ -53,7 +53,8 @@ enum eFileDataFlag {
# pragma GCC poison off_t
#endif
-#if defined(_MSC_VER) || defined(__APPLE__) || defined(__HAIKU__) || defined(__NetBSD__)
+#if defined(_MSC_VER) || de... | 42,326 |
https://github.com/ariessolutions/trustplastic/blob/master/app/Models/UserTypeString.php | Github Open Source | Open Source | MIT | null | trustplastic | ariessolutions | PHP | Code | 45 | 131 | <?php
namespace App\Models;
class UserTypeString
{
public function getType($val)
{
$resp = '';
switch ($val) {
case 1:
$resp = 'Administrator';
break;
case 2:
$resp = 'Manager';
break;
case 3:
... | 52,969 |
https://github.com/tedriese/OpenSocialCatpic/blob/master/trunk/Tests/Catpic.Data.Tests/EFMessageRepositoryTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,013 | OpenSocialCatpic | tedriese | C# | Code | 272 | 920 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="EFMessageRepositoryTests.cs" company="Catpic Software">
// Licensed under Apache License 2.0
// </copyright>
// <summary>
//
// </summary>
// --------------------------------... | 46,382 |
https://github.com/endojs/endo/blob/master/packages/test262-runner/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-263.js | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, LicenseRef-scancode-ecma-no-patent | 2,023 | endo | endojs | JavaScript | Code | 98 | 232 | // Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.7-6-a-263
description: >
Object.defineProperties - 'O' is an Array, 'P' is an array index
named property, test the length property of 'O' is not changed if
... | 36,634 |
https://github.com/softarts/oj/blob/master/ojjava/src/main/java/com/zhourui/leetcode/Lc0004_median2sortedarr.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | oj | softarts | Java | Code | 221 | 1,294 | package com.zhourui.leetcode;
import com.zhourui.codech.BaseSolution;
import static java.lang.Integer.max;
import static java.lang.Integer.min;
//[1,3],[2]->2
//[1,2],[3,4] -> (2+3)/2 = 2.5
// exp O(log(m+n))
// 这个还是画图比较直观
// A | B
// A[0],[1]....[m1-1] | A[m1],[m1+1].... | 47,703 |
https://github.com/Moony4012/DefendCore/blob/master/Assets/Scripts/Asteroid.cs | Github Open Source | Open Source | MIT | null | DefendCore | Moony4012 | C# | Code | 43 | 219 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Bullets))]
public class Asteroid : Enemy
{
void Start()
{
base.Start();
_startTime = Time.time;
GameObject target = GameObject.FindObjectOfType<Planet>().Core;
GetComponent... | 29,077 |
https://github.com/kaasikgert/Deribit-options-visualizer/blob/master/src/size.js | Github Open Source | Open Source | MIT | 2,020 | Deribit-options-visualizer | kaasikgert | JavaScript | Code | 62 | 206 | "use strict";
class Size {
constructor() {
this.bottom = 25;
this.center = 50;
this.pnlMargin = 20;
this.leftWidthMultiplier = 0.5;
}
update() {
let chartSize = document.getElementById('chart').getBoundingClientRect();
this.totalWidth = Math.floor(chartSize.... | 23,406 |
https://github.com/allikena/WISDEM/blob/master/wisdem/rotorse/rotor_structure.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | WISDEM | allikena | Python | Code | 5,667 | 20,286 | import numpy as np
import wisdem.ccblade._bem as _bem
import wisdem.commonse.utilities as util
import wisdem.pyframe3dd.pyframe3dd as pyframe3dd
from openmdao.api import Group, ExplicitComponent
from wisdem.rotorse import RPM2RS, RS2RPM
from wisdem.commonse import gravity
from wisdem.commonse.csystem import DirectionVe... | 11,105 |
https://github.com/sudopark/CoolLayout/blob/master/Example/CoolLayout/Deco.swift | Github Open Source | Open Source | MIT | 2,020 | CoolLayout | sudopark | Swift | Code | 81 | 236 | //
// Deco.swift
// CoolLayout_Example
//
// Created by sudo.park on 20/10/2019.
// Copyright © 2019 CocoaPods. All rights reserved.
//
import UIKit
enum Deco {
enum Label {
static let headLine: (UILabel) -> Void = {
$0.textColor = UIColor.black
$0.font = UIFont.boldSyste... | 12,668 |
https://github.com/lily-white/lingdang/blob/master/packages/material-ui-icons/lib/FormatColorTextSharp.js | Github Open Source | Open Source | MIT | 2,021 | lingdang | lily-white | JavaScript | Code | 27 | 161 | import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2 20h20v4H2v-4zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5L5.49 17zm4.42-5.61 2.03-5.79h.12l2.03 5.79H9.91z"
}), 'FormatColorTextSharp'); | 44,405 |
https://github.com/vchelaru/FlatRedBall/blob/master/Engines/FlatRedBallXNA/FlatRedBall/Math/Geometry/CapsulePolygon.cs | Github Open Source | Open Source | MIT | 2,023 | FlatRedBall | vchelaru | C# | Code | 721 | 1,989 | using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace FlatRedBall.Math.Geometry
{
public class CapsulePolygon : Polygon, IScalable
{
bool mSupressPointsRecalculation;
Point[] mPoints;
float mWidth;
public... | 39,099 |
https://github.com/hrach/kdyby-elasticsearch/blob/master/src/Kdyby/ElasticSearch/Diagnostics/Panel.php | Github Open Source | Open Source | BSD-3-Clause | null | kdyby-elasticsearch | hrach | PHP | Code | 604 | 2,166 | <?php
/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka (filip@prochazka.su)
*
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/
namespace Kdyby\ElasticSearch\Diagnostics;
use Elasti... | 3,621 |
https://github.com/google/wuffs/blob/master/script/print-lzw-example.go | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,023 | wuffs | google | Go | Code | 1,146 | 2,863 | // Copyright 2018 The Wuffs 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 20,949 |
https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/dup/tidy.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | csv2rdf4lod-automation | timrdf | Shell | Code | 457 | 1,467 | #!/bin/bash
# <!DOCTYPE html SYSTEM "/Users/lebot/afrl/information_management/m4rker/model_integration/xutil/xhtml-dtd/xhtml1-transitional.dtd">
input_extension="html"
output_extension="tidy"
replace_extension="false"
usage_message="usage: `basename $0` [-w] [-od path/to/output/to] some.html [another.html ...]"
if [... | 16,898 |
https://github.com/ibbaa/keepitup/blob/master/keepitupmain/src/androidTest/java/net/ibbaa/keepitup/ui/sync/LogEntryUIBroadcastReceiverTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | keepitup | ibbaa | Java | Code | 229 | 894 | /*
* Copyright (c) 2022. Alwin Ibba
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 44,256 |
https://github.com/raddrick/Snap_Receipts/blob/master/db/migrate/20150225032523_add_category_and_comments_to_receipts.rb | Github Open Source | Open Source | MIT | 2,015 | Snap_Receipts | raddrick | Ruby | Code | 16 | 53 | class AddCategoryAndCommentsToReceipts < ActiveRecord::Migration
def change
add_column :receipts, :category, :string
add_column :receipts, :comment, :string
end
end
| 20,904 |
https://github.com/todorkrastev/softuni-software-engineering/blob/master/ReactJS/L01_IntroToReactAndJSX/DemoCode/plain-react/src/script.js | Github Open Source | Open Source | MIT | null | softuni-software-engineering | todorkrastev | JavaScript | Code | 63 | 197 | let rootElement = document.getElementById("root");
/*
let reactElement = React.createElement(
'header',
{ className: 'header'},
React.createElement('h1', { className: 'header__main' }, 'Hello React'),
React.createElement('h2', { className: 'header__secondary' }, 'The best framework in the world!')
);
*... | 50,024 |
https://github.com/alexvarga8/mydota2/blob/master/my-dota-2-Develop/My Dota 2/Controller/MainVC.swift | Github Open Source | Open Source | MIT | null | mydota2 | alexvarga8 | Swift | Code | 117 | 357 | //
// ViewController.swift
// My Dota 2
//
// Created by Alexandru Varga on 14/10/2019.
// Copyright © 2019 Alexandru Varga. All rights reserved.
//
import UIKit
class MainVC: UIViewController, UIViewControllerTransitioningDelegate {
@IBOutlet var startButton: CustomButton!
let transition =... | 29,445 |
https://github.com/chenshuo/bazel/blob/master/src/tools/android/java/com/google/devtools/build/android/desugar/CoreLibraryInvocationRewriter.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | bazel | chenshuo | Java | Code | 390 | 1,052 | // Copyright 2018 The Bazel 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 appl... | 44,019 |
https://github.com/mil-oss/emp3-web/blob/master/devguide/js/ui/coe3ui.themeManager.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-other-permissive, CC0-1.0, WTFPL, MIT, CC-BY-4.0, BSD-3-Clause, BSD-2-Clause, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference | 2,017 | emp3-web | mil-oss | JavaScript | Code | 188 | 626 | var coe3ui = coe3ui || {};
coe3ui.themeManager = (function() {
var themeChangeCallbacks = []; //{};
var themes = {
dark: {
FONT_COLOR: "#FFFFFF",
FONT_COLOR_REVERSE: "#000000",
BG_STATUS_BAR: "#000000",
BG_APP_BAR: "#212121",
BG: "#303030",
... | 33,137 |
https://github.com/Jeffersoncharlles/chat_onlinerealtime/blob/master/php/data.php | Github Open Source | Open Source | MIT | null | chat_onlinerealtime | Jeffersoncharlles | PHP | Code | 154 | 610 | <?php
$data = $sql->fetchAll(PDO::FETCH_ASSOC);
?>
<?php foreach($data as $user): ?>
<a class="users-list-link" href="chat.php?user_id=<?=$user['unique_id'];?>">
<div class="users-list-content">
<img src="./assets/img/<?=$user['avatar'];?>" alt="" >
<div class="use... | 41,417 |
https://github.com/aiwantaozi/steve/blob/master/pkg/resources/schema.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | steve | aiwantaozi | Go | Code | 84 | 611 | package resources
import (
"context"
"github.com/rancher/steve/pkg/summarycache"
"github.com/rancher/apiserver/pkg/store/apiroot"
"github.com/rancher/apiserver/pkg/subscribe"
"github.com/rancher/apiserver/pkg/types"
"github.com/rancher/steve/pkg/accesscontrol"
"github.com/rancher/steve/pkg/client"
"github.co... | 8,612 |
https://github.com/Class2/react-native-bookkeeping/blob/master/AccountBook/src/component/chart/Header.js | Github Open Source | Open Source | MIT | 2,018 | react-native-bookkeeping | Class2 | JavaScript | Code | 96 | 272 | // Default
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Platform, StyleSheet, Text, View, TouchableOpacity } from 'react-native';
// Common
import { Segmentcontrol } from '../../common/index';
// Utils
import { ScreenWidth, ScreenHeight, StreamColor } from '../../utils/index';
... | 15,584 |
https://github.com/ahoarau/m3meka/blob/master/python/m3/trajectory.py | Github Open Source | Open Source | MIT | 2,015 | m3meka | ahoarau | Python | Code | 745 | 2,799 | #M3 -- Meka Robotics Robot Components
#Copyright (c) 2010 Meka Robotics
#Author: edsinger@mekabot.com (Aaron Edsinger)
#M3 is free software: you can redistribute it and/or modify
#it under the terms of the GNU Lesser General Public License as published by
#the Free Software Foundation, either version 3 of the License,... | 12,263 |
https://github.com/khorozhansky/AdvancedPlugin/blob/master/AdvancedPlugin/Utils/JsonHelper.cs | Github Open Source | Open Source | MIT | 2,018 | AdvancedPlugin | khorozhansky | C# | Code | 126 | 396 | namespace AdvancedPlugin.Utils
{
using System.IO;
using System.Runtime.Serialization.Json;
using System.Text;
/// <summary>
/// Simple JSON Helper
/// <remarks>
/// Fits for "manually decorated" classes only
/// </remarks>
/// </summary>
public static class JsonHelper
{
/// <summary>
//... | 13,092 |
https://github.com/alexgoussev/maja_gitlab/blob/master/SuperBuild/patches/OTB/otb-Modules_Wrapper_SWIG_src_otbApplication.i-all.diff | Github Open Source | Open Source | Apache-2.0 | 2,021 | maja_gitlab | alexgoussev | null | Spoken | 113 | 543 | diff -burN OTB-7.0.0.orig/Modules/Wrappers/SWIG/src/otbApplication.i OTB-7.0.0/Modules/Wrappers/SWIG/src/otbApplication.i
--- OTB-7.0.0.orig/Modules/Wrappers/SWIG/src/otbApplication.i 2020-03-10 11:26:16.121865197 +0100
+++ OTB-7.0.0/Modules/Wrappers/SWIG/src/otbApplication.i 2020-03-10 15:01:12.090184960 +0100
@@ -647... | 43,790 |
https://github.com/FHomewood/ScientificComputing/blob/master/ExamPrep/Shit Comp/Python Code/PythonShit(UpToRoots)/Barycentricinterpolate.py | Github Open Source | Open Source | IJG | null | ScientificComputing | FHomewood | Python | Code | 119 | 267 | #barycentric interpolate (example assesment 1 Q3 part a)
from scipy import interpolate
from scipy.interpolate import barycentric_interpolate as bi
import numpy as np
#when you are given an array of x and corresponding y values you can use them to estimate a value y value at a value of x you have not been given (let t... | 37,135 |
https://github.com/keirlawson/fs2/blob/master/io/src/main/scala/fs2/io/udp/Packet.scala | Github Open Source | Open Source | MIT | null | fs2 | keirlawson | Scala | Code | 50 | 97 | package fs2
package io
package udp
import java.net.InetSocketAddress
/**
* A single packet to send to the specified remote address or received from the specified address.
*
* @param remote remote party to send/receive packet to/from
* @param bytes data to send/receive
*/
final case class Packet(remote: Inet... | 46,916 |
https://github.com/r00bal/Gatsby-portfolio-starter/blob/master/src/components/page.js | Github Open Source | Open Source | MIT | null | Gatsby-portfolio-starter | r00bal | JavaScript | Code | 454 | 1,485 | import React, { Component } from 'react'
import { Link, graphql } from 'gatsby'
import styled from 'styled-components'
import Img from 'gatsby-image'
import { groupBy } from '../utils/func.js'
// Static query
//cqn be used anywhere, doesn't accept variable, can't use context
// Page query
// Must be used on pages
// ... | 7,671 |
https://github.com/Lenscorpx/GOF_DesignPatterns_Fun/blob/master/CommandPattern/MainForm.Designer.cs | Github Open Source | Open Source | CC0-1.0 | null | GOF_DesignPatterns_Fun | Lenscorpx | C# | Code | 684 | 4,107 | namespace CommandPattern
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <... | 34,414 |
https://github.com/tychen81/Bssom.Net/blob/master/Bssom.Serializer.Test/Array3CodeGenResolverTest.cs | Github Open Source | Open Source | MIT | 2,020 | Bssom.Net | tychen81 | C# | Code | 468 | 1,861 | using Bssom.Serializer.BssMap;
using Bssom.Serializer.BssomBuffer;
using Bssom.Serializer.Internal;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.CompilerServices;
using Bssom.Serializer.Resolvers;
using Bssom.Serializer.Binary;
usi... | 25,654 |
https://github.com/aweary/swc/blob/master/crates/swc_ecma_transforms_base/tests/resolver/minifier/11/output.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | swc | aweary | JavaScript | Code | 5 | 20 | var NaN__1 = 5;
console.log(NaN.toString());
| 17,707 |
https://github.com/tx23/oneflow/blob/master/oneflow/python/test/modules/test_gather.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | oneflow | tx23 | Python | Code | 381 | 1,195 | """
Copyright 2020 The OneFlow 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 or agr... | 11,646 |
https://github.com/minhtranin/automationXample/blob/master/utils/locator.js | Github Open Source | Open Source | MIT | 2,021 | automationXample | minhtranin | JavaScript | Code | 10 | 43 | module.exports = {
searchInputSelectorId: 'lst-ib',
searchButtonSelectorName: 'btnK',
resultConfirmationId: 'resultStats'
}; | 38,509 |
https://github.com/bogzgithub/simpleapplication/blob/master/application/modules/home/views/update_profile_pic_v.php | Github Open Source | Open Source | MIT | null | simpleapplication | bogzgithub | PHP | Code | 20 | 108 |
<div id="img_append">
</div>
<form id="change_profile_form">
<input type="file" name="profile_pic_file" accept="image/*">
<br/>
<button type="button" class='btn btn-primary' id="btnSubmit">Submit</button>
<br/>
<span class="color-red" id="errorMsgProfile"></span>
</form>
| 34,261 |
https://github.com/YuanYuLin/libiopcdao/blob/master/test/ops_cfg/platform.c | Github Open Source | Open Source | MIT | 2,020 | libiopcdao | YuanYuLin | C | Code | 671 | 3,186 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
#include <string.h>
#include "iopcops_cfg_bdb_platform.h"
static void loadall()
{
GET_INSTANCE(cfg_platform, bdb)->loadall();
}
static uint8_t is_host(uint8_t idx_cfg)
{
uint8_t result = 0;
result = GET_INSTANCE(cfg_platfo... | 19,122 |
https://github.com/lucasbsimao/autoNEAT/blob/master/src/carlearndriveenn/Simulator.java | Github Open Source | Open Source | MIT | 2,017 | autoNEAT | lucasbsimao | Java | Code | 278 | 623 | /*
* The MIT License
*
* Copyright 2016 Lucas Borsatto Simão.
*
* 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, ... | 10,386 |
https://github.com/miko3k/hardcode/blob/master/hardcode/src/main/java/org/deletethis/hardcode/objects/NodeFactory.java | Github Open Source | Open Source | MIT | null | hardcode | miko3k | Java | Code | 18 | 75 | package org.deletethis.hardcode.objects;
import org.deletethis.hardcode.HardcodeConfiguration;
import java.util.Optional;
public interface NodeFactory {
Optional<NodeDefinition> createNode(Object object, HardcodeConfiguration configuration);
int getOrdering();
}
| 37,333 |
https://github.com/flyhero/flyapi2.x/blob/master/flyapi-controller/flyapi-admin/src/main/webapp/WEB-INF/view/detail_project.jsp | Github Open Source | Open Source | Apache-2.0 | 2,018 | flyapi2.x | flyhero | null | Spoken | 535 | 3,056 | <%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta... | 28,710 |
https://github.com/jiejie-dev/formily-editor/blob/master/packages/formily-schema-editor/src/panels/TreePanel/index.stories.tsx | Github Open Source | Open Source | MIT | 2,021 | formily-editor | jiejie-dev | TSX | Code | 28 | 59 | import React from 'react'
import { TreePanel } from './index'
export default { title: 'TreePanel' }
export const Demo = () => (
<div>
<TreePanel />
</div>
)
| 11,508 |
https://github.com/BBN-E/serif/blob/master/src/Generic/edt/MentionGroups/mergers/CombinedP1RankingMerger.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | serif | BBN-E | C++ | Code | 1,288 | 5,660 | // Copyright (c) 2012 by Raytheon BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "Generic/edt/MentionGroups/mergers/CombinedP1RankingMerger.h"
#include "Generic/common/ParamReader.h"
#include "Generic/common/SessionLogger.h"
#include "Generic/common/WordConstants.h"... | 53,666 |
https://github.com/krizzdewizz/ngoy/blob/master/ngoy/src/main/java/ngoy/core/internal/TemplateRender.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ngoy | krizzdewizz | Java | Code | 12 | 32 | package ngoy.core.internal;
public interface TemplateRender {
void render(Ctx ctx) throws RenderException;
}
| 35,196 |
https://github.com/RobRendell/gTove/blob/master/src/redux/serviceWorkerReducer.ts | Github Open Source | Open Source | MIT | 2,022 | gTove | RobRendell | TypeScript | Code | 109 | 442 | // =========================== Action types and generators
export enum ServiceWorkerReducerActionTypes {
SERVICE_WORKER_SET_REGISTRATION = 'service-worker-set-registration',
SERVICE_WORKER_SET_UPDATE = 'service-worker-set-update'
}
export interface ServiceWorkerSetRegistrationActionType {
type: ServiceWor... | 24,327 |
https://github.com/davideclark/pluralsight-course-using-react-hooks/blob/master/06-Adding-Authentication-Login-With-Hooks-Support/_experimental/M5-End-Of_Module/ss2.js | Github Open Source | Open Source | MIT | 2,020 | pluralsight-course-using-react-hooks | davideclark | JavaScript | Code | 176 | 616 | const express = require("express");
const next = require("next");
var passport = require("passport");
var Strategy = require("passport-local").Strategy;
const dev = process.env.NODE_ENV !== "production";
const app = next({ dev });
const handle = app.getRequestHandler();
passport.use(
new Strategy(function(username... | 47,214 |
https://github.com/matheusdoedev/southern-cars/blob/master/web/src/contexts/CarsContextProvider.js | Github Open Source | Open Source | MIT | null | southern-cars | matheusdoedev | JavaScript | Code | 77 | 291 | import React, { createContext, useReducer } from "react";
import carDataReducer from "../reducers/carDataReducer";
import usePostCars from "../hooks/usePostCars";
import usePutCars from "../hooks/usePutCars";
import useDeleteCars from "../hooks/useDeleteCars";
import useGetCar from "../hooks/useGetCar";
import useGet... | 34,693 |
https://github.com/kammerdienerb/flang/blob/master/runtime/flang/ftni64bitsup.c | Github Open Source | Open Source | Apache-2.0 | 2,019 | flang | kammerdienerb | C | Code | 1,686 | 4,209 | /*
* Copyright (c) 1994-2018, NVIDIA CORPORATION. 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 ... | 31,594 |
https://github.com/ndefrancesco/imagej-legacy/blob/master/src/main/java/net/imagej/legacy/plugin/LegacyInitializer.java | Github Open Source | Open Source | BSD-2-Clause | 2,023 | imagej-legacy | ndefrancesco | Java | Code | 391 | 903 | /*
* #%L
* ImageJ2 software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2023 ImageJ2 developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of... | 4,245 |
https://github.com/grongierisc/ccda-hl7-fhir-appointment/blob/master/src/HS/FHIR/DTL/Util/API/Transform/SDA3ToFHIR.cls | Github Open Source | Open Source | MIT | 2,020 | ccda-hl7-fhir-appointment | grongierisc | null | Spoken | 2,257 | 5,614 | Class HS.FHIR.DTL.Util.API.Transform.SDA3ToFHIR Extends %RegisteredObject
{
/// Contains the FHIR Bundle generated during the transformation. If transforming
/// individual SDA classes, it contain the FHIR representation of those classes and
/// can be continuously appended to. If transforming a Container,
/// will b... | 33,359 |
https://github.com/wanpisces/rmsq-admin-vue/blob/master/src/utils/menuTool.js | Github Open Source | Open Source | MIT | 2,021 | rmsq-admin-vue | wanpisces | JavaScript | Code | 1,608 | 5,532 | import Layout from "@/views/layout/Layout";
// import store from '@/store'
const _import = require("@/router/_import_" + process.env.NODE_ENV);
/**
* 1活动报名一级菜单模板 active父类 activeChildren子类,组装之后将子类添加到父类的children中
*/
const active = {
path: "/active",
component: Layout,
redirect: "/active/activeList",
n... | 48,520 |
https://github.com/amozie/amozie/blob/master/studzie/scrapy_tutor/hello/hello/spiders/hello_crawl.py | Github Open Source | Open Source | Apache-2.0 | null | amozie | amozie | Python | Code | 67 | 302 | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from hello.items import HelloItem
class HelloCrawlSpider(CrawlSpider):
name = 'hello_crawl'
allowed_domains = ['www.abuquant.com']
start_urls = ['http://www.abuquant.com/artic... | 38,476 |
https://github.com/tessi/Am-I-Alive/blob/master/Procfile | Github Open Source | Open Source | MIT | 2,011 | Am-I-Alive | tessi | null | Spoken | 12 | 29 | web: bundle exec ruby web.rb -p $PORT
worker: bundle exec ruby am_i_alive.rb | 39,880 |
https://github.com/jmrsemite/svt/blob/master/system/opengateway/libraries/semite/test/manual/threedsecureoperations-checkenrollment.php | Github Open Source | Open Source | Unlicense | null | svt | jmrsemite | PHP | Code | 145 | 741 | <?php
require(__DIR__ . '/../semite_autoload.php');
try
{
$client = new Semite_Client(Semite_Client::ENV_TEST);
$operation = new Semite_ThreeDSecureOperations_CheckEnrollment;
$operation->setMember('7CF13CE63', '2FF9618E-A98E-5DDD-8BCB-DF4C6ABD46A7');
$operation->setCountryCode('SRB');
$operation->setCa... | 47,502 |
https://github.com/MrHongping/zealot/blob/master/app/views/releases/body/_activity.html.slim | Github Open Source | Open Source | MIT | 2,021 | zealot | MrHongping | null | Spoken | 109 | 528 | ruby:
releases = @release.channel.recently_releases
- if releases.size > 0
.card
.card-header
h3.card-title
i.fas.fa-history
| 最近 10 次上传
.card-tools
button.btn.btn-tool data-card-widget="collapse"
i.fas.fa-minus
.card-body
.timeline
- releases.ea... | 19,308 |
https://github.com/seven332/rhino-android/blob/master/src/org/mozilla/javascript/ast/ForInLoop.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | rhino-android | seven332 | Java | Code | 523 | 1,396 | /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.javascript.as... | 10,443 |
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/sale/lang/en/lib/delivery/restrictions/bymaxsize.php | Github Open Source | Open Source | MIT | 2,022 | bitrixdock | Evil1991 | PHP | Code | 23 | 97 | <?
$MESS["SALE_DLVR_RSTR_BY_MAXSIZE_NAME"] = "by max. overall dimension";
$MESS["SALE_DLVR_RSTR_BY_MAXSIZE_DESCRIPT"] = "Restrict delivery service to specified maximum overall dimension";
$MESS["SALE_DLVR_RSTR_BY_MAXSIZE_SIZE"] = "Overall dimension (mm)";
?> | 17,246 |
https://github.com/apache/sirona/blob/master/server/store/cassandra/src/main/java/org/apache/sirona/cassandra/collector/pathtracking/CassandraPathTrackingDataStore.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sirona | apache | Java | Code | 1,289 | 4,282 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 23,784 |
https://github.com/leonanluppi/jade4j/blob/master/src/main/java/de/neuland/jade4j/filter/JsFilter.java | Github Open Source | Open Source | MIT | null | jade4j | leonanluppi | Java | Code | 28 | 86 | package de.neuland.jade4j.filter;
import java.util.Map;
public class JsFilter extends CachingFilter {
@Override
protected String convert(String source, Map<String, Object> attributes) {
return "<script type=\"text/javascript\">" + source + "</script>";
}
}
| 42,726 |
https://github.com/nariakiiwatani/ofxSimpleOsc/blob/master/example/src/ofApp.cpp | Github Open Source | Open Source | MIT | 2,019 | ofxSimpleOsc | nariakiiwatani | C++ | Code | 257 | 887 | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofLogToConsole();
ofSetVerticalSync(true);
ofSetFrameRate(60);
color = ofColor(255, 0, 0);
background_color = ofColor(0);
point = ofPoint(0, 0);
w = 100.0;
h = 100.0;
osc_receiver.setup(7777, [&](const ... | 3,265 |
https://github.com/MAREINC/mare/blob/master/src/components/children/child.model.js | Github Open Source | Open Source | MIT | null | mare | MAREINC | JavaScript | Code | 10,693 | 29,180 | require( '../change histories/child-history.model' );
const keystone = require( 'keystone' ),
async = require( 'async' ),
_ = require( 'underscore' ),
Types = keystone.Field.Types,
ChangeHistoryMiddleware = require( '../change histories/change-history.controllers' ),
ChildServic... | 27,224 |
https://github.com/ScriptedAlchemy/storybook/blob/master/examples/angular-cli/src/stories/component-with-di/di.component.stories.ts | Github Open Source | Open Source | MIT | 2,020 | storybook | ScriptedAlchemy | TypeScript | Code | 69 | 199 | import { withKnobs, text } from '@storybook/addon-knobs';
import { DiComponent } from './di.component';
export default {
title: 'Custom/Dependencies',
};
export const InputsAndInjectDependencies = () => ({
component: DiComponent,
props: {
title: 'Component dependencies',
},
});
InputsAndInjectDependencie... | 36,076 |
https://github.com/mcollovati/vaadin-vertx-samples/blob/master/example-app/example-app-widgetset/src/main/resources/com/github/mcollovati/vaadin/exampleapp/samples/attribute_extension_connector.js | Github Open Source | Open Source | MIT | 2,020 | vaadin-vertx-samples | mcollovati | JavaScript | Code | 52 | 154 | window.com_github_mcollovati_vaadin_exampleapp_samples_AttributeExtension = function() {
this.onStateChange = function() {
var element = this.getElement(this.getParentId());
if (element) {
var attributes = this.getState().attributes;
for (var attr in attributes) {
... | 51,725 |
https://github.com/adnang/pulumi-azure/blob/master/sdk/dotnet/Network/Inputs/NetworkWatcherFlowLogTrafficAnalyticsGetArgs.cs | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | pulumi-azure | adnang | C# | Code | 174 | 431 | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
names... | 53,773 |
https://github.com/rainorangelemon/BouncerGame/blob/master/Level.java | Github Open Source | Open Source | MIT | 2,018 | BouncerGame | rainorangelemon | Java | Code | 38 | 173 | public class Level {
private int[][] a = new int[6][8];
double panel_x=0;
double panel_y=0;
public void buildBrick(int layer, String bricks){
if(layer>=6){
}else{
for(int i = 0; i<bricks.length();i++){
char item=bricks.charAt(i);
if((item-'1'>=0)&&('3'-item>=0)){
a[layer][i]=item-'0';
}... | 51,287 |
https://github.com/AlohaChina/or-tools/blob/master/ortools/math_opt/cpp/math_opt.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | or-tools | AlohaChina | C | Code | 1,727 | 4,266 | // Copyright 2010-2021 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 30,338 |
https://github.com/labra/utils/blob/master/modules/utils/src/test/scala/es/weso/converter/ConverterTest.scala | Github Open Source | Open Source | MIT | null | utils | labra | Scala | Code | 120 | 502 | package es.weso.converter
import org.scalatest.funspec._
import org.scalatest.matchers.should._
import scala.util.Try
class ConverterTest extends AnyFunSpec with Matchers with Converter {
describe(s"Converter") {
it(s"Should convert strings to ints") {
def cnvStr(str: String): Result[Int] = {
Tr... | 27,841 |
https://github.com/7h3kk1d/lambda/blob/master/src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/FoldRightTest.java | Github Open Source | Open Source | MIT | 2,018 | lambda | 7h3kk1d | Java | Code | 75 | 366 | package com.jnape.palatable.lambda.functions.builtin.fn3;
import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.traitor.annotations.TestTraits;
import com.jnape.palatable.traitor.runners.Traits;
import org.junit.Test;
import org.junit.runner.RunWith;
import testsupport.traits.EmptyIterableSupport... | 29,498 |
https://github.com/LynRodWS/oauth-2.0-sdk-with-openid-connect-extensions/blob/master/src/main/java/com/nimbusds/oauth2/sdk/token/Token.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,020 | oauth-2.0-sdk-with-openid-connect-extensions | LynRodWS | Java | Code | 275 | 652 | package com.nimbusds.oauth2.sdk.token;
import java.util.Set;
import net.minidev.json.JSONObject;
import com.nimbusds.oauth2.sdk.id.Identifier;
/**
* The base abstract class for access and refresh tokens. Concrete extending
* classes should be immutable.
*
* <p>Related specifications:
*
* <ul>
* <li>OA... | 695 |
https://github.com/nocai/java/blob/master/javaweb/src/test/java/T.java | Github Open Source | Open Source | Apache-2.0 | null | java | nocai | Java | Code | 19 | 46 | /**
* Created by liujun on 16/10/27.
*/
public class T {
public void t() {
System.out.println("t");
}
}
| 8,371 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/banking_set2/GROUPE SOCIETE GENERALE SA/source/ind/paymentcode/paymenturl/exception/InvalidSchemeException.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Java | Code | 19 | 53 | package ind.paymentcode.paymenturl.exception;
public class InvalidSchemeException
extends InvalidPaymentUrlException
{
private static final long serialVersionUID = 1L;
public InvalidSchemeException() {}
}
| 15,627 |
https://github.com/PPotoczek/Projekt-Dron-Podwodny/blob/master/ProjektDron1/cmake-build-debug/CMakeFiles/ProjektDron.dir/DependInfo.cmake | Github Open Source | Open Source | MIT | null | Projekt-Dron-Podwodny | PPotoczek | CMake | Code | 71 | 787 | # The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/riveri/Pulpit/ProjektDron1/Bryla.cpp" "/home/riveri/Pulpit/ProjektDron1/cmake-build-debug/CMakeFiles/ProjektDron.... | 18,106 |
https://github.com/BME-MIT-IET/iet-hf2021-undefined-team/blob/master/src/rlog.c | Github Open Source | Open Source | BSD-2-Clause | 2,021 | iet-hf2021-undefined-team | BME-MIT-IET | C | Code | 27 | 82 | #include "rlog.h"
#include <stdio.h>
void RLog(const char *format, ...)
{
va_list arglist;
va_start( arglist, format );
#if DEBUG
vprintf( format, arglist );
#endif
va_end( arglist );
}
| 37,561 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.