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/wenfan919/blog-front/blob/master/src/common/model/user/UserGender.js
Github Open Source
Open Source
MIT
2,021
blog-front
wenfan919
JavaScript
Code
63
210
let UserGender = { UNKNOWN: 'UNKNOWN', MALE: 'MALE', FEMALE: 'FEMALE' } let UserGenderMap = { UNKNOWN: { name: '保密', value: 'UNKNOWN', style: 'success' }, MALE: { name: '男', value: 'MALE', style: 'info' }, FEMALE: { name: '女', value: 'FEMALE', style: 'primary' } } ...
29,463
https://github.com/mariomace20/taller-construccion-sistemas-2020-0/blob/master/src/app/seguridad/services/usuario-perfil.service.ts
Github Open Source
Open Source
MIT
null
taller-construccion-sistemas-2020-0
mariomace20
TypeScript
Code
96
408
import { HttpService } from '../../shared'; import { Injectable, Injector, Inject } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { SEC_CONTEXT_PATH } from '../../shared/utils'; import { Observable } from 'rxjs'; import { UsuarioPerfil } from '../models'; @Injectable({ providedIn: '...
41,163
https://github.com/josdirksen/arrow/blob/master/modules/effects/arrow-effects-data/src/main/kotlin/arrow/effects/typeclasses/suspended/prelude.kt
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, MIT
2,019
arrow
josdirksen
Kotlin
Code
14
48
package arrow.effects.typeclasses.suspended import arrow.core.Either typealias SProc<A> = suspend ((Either<Throwable, A>) -> Unit) -> Unit
36,612
https://github.com/horimislime/safari-markdown-linker/blob/master/Makefile
Github Open Source
Open Source
MIT
2,022
safari-markdown-linker
horimislime
Makefile
Code
26
83
release: agvtool new-version -all `git rev-list --all --count` agvtool new-marketing-version ${VERSION} git add URLLinker/Info.plist SafariExtension/Info.plist git commit -m "Bump version" git push gh release create v${VERSION}
5,381
https://github.com/pderakhshanfar/EMSE-BBC-experiment/blob/master/results/JacksonDatabind-103/com.fasterxml.jackson.databind.util.ClassUtil/BBC-F0-opt-50/tests/25/com/fasterxml/jackson/databind/util/ClassUtil_ESTest.java
Github Open Source
Open Source
CC-BY-4.0, MIT
2,022
EMSE-BBC-experiment
pderakhshanfar
Java
Code
6,916
26,292
/* * This file was automatically generated by EvoSuite * Sun Oct 24 05:56:51 GMT 2021 */ package com.fasterxml.jackson.databind.util; 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.fast...
38,428
https://github.com/nicolasbqx/Arduino-Thermistor-Lcd-et-Led/blob/master/Temperature_screen_led.ino
Github Open Source
Open Source
MIT
2,017
Arduino-Thermistor-Lcd-et-Led
nicolasbqx
null
Spoken
677
1,881
// Les librairies #include <LiquidCrystal_I2C.h> #include <Wire.h> #include <avr/pgmspace.h> // Définition des pins et des variables int thermistorPin = A0; const int redPin = 9; const int greenPin = 10; const int bluePin = 11; const int redPotPin = 0; const int greenPotPin = 1; const int bluePotPin = 2; int cur...
15,702
https://github.com/Azure/avocado/blob/master/src/git.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,023
avocado
Azure
TypeScript
Code
203
442
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. import * as childProcess from './child-process' import * as stringMap from '@ts-common/string-map' export type GenericCommand = stringMap.StringMap<readonly string[]...
6,131
https://github.com/tyzlmjj/Tools/blob/master/Android/DrawableUtils.java
Github Open Source
Open Source
Apache-2.0
2,022
Tools
tyzlmjj
Java
Code
260
968
import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.PixelFormat; import android.graphics.drawable.Drawable; import android.support.annotation.DrawableRes; import android.support.annotation.NonNull; import android.suppor...
22,974
https://github.com/wonderful666/marx-10.1.0/blob/master/kernel/drivers/huawei_platform/power/hardware_ic/buck_boost/tps63810/Makefile
Github Open Source
Open Source
MIT
null
marx-10.1.0
wonderful666
Makefile
Code
3
25
obj-$(CONFIG_BUCKBOOST_TPS63810) += tps63810.o
10,202
https://github.com/jhjacoz96/sigo_frontend/blob/master/src/components/base/MaterialWizard.vue
Github Open Source
Open Source
RSA-MD
null
sigo_frontend
jhjacoz96
Vue
Code
195
865
<template> <base-material-card :icon="icon" color="secondary" class="v-card--wizard" elevation="12" max-width="900" > <template v-slot:after-heading> <div class="font-weight-light card-title mt-2"> {{ title }} </div> </template> <v-tabs ref="tabs" v-m...
12,706
https://github.com/bsstahl/PPTail/blob/master/PrehensilePonyTail/PPTail.Output.FileSystem.Test/Repository_Ctor_Should.cs
Github Open Source
Open Source
MIT
2,021
PPTail
bsstahl
C#
Code
186
869
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; using TestHelperExtensions; using Microsoft.Extensions.DependencyInjection; using PPTail.Exceptions; using PPTail.Interfaces; using Moq; using PPTail.Entities; namespace PPTail.Output.FileSystem.Test { [S...
52,843
https://github.com/sheerockoff/bitrix-ci/blob/master/files/bitrix/modules/main/install/components/bitrix/menu/lang/ru/component.php
Github Open Source
Open Source
Unlicense
2,023
bitrix-ci
sheerockoff
PHP
Code
96
545
<? $MESS["MAIN_MENU_EDIT"] = "Редактировать пункты меню"; $MESS["MAIN_MENU_ADD"] = "Добавить пункты меню"; $MESS["MAIN_MENU_ADD_NEW"] = "Создать меню в текущем разделе"; $MESS["MAIN_MENU_TOP_PANEL_BUTTON_TEXT"] = "Меню"; $MESS["MAIN_MENU_TOP_PANEL_BUTTON_ALT"] = "Редактировать пункты меню"; $MESS["MAIN_MENU_TOP_PANEL_B...
37,753
https://github.com/Femil32/Portfolio_v2/blob/master/src/pages/Home.jsx
Github Open Source
Open Source
MIT
null
Portfolio_v2
Femil32
null
Spoken
277
1,122
import anime from "animejs"; import React, { useEffect } from "react"; import Navbar from "../components/Navbar"; import Social from "../components/Social"; import ScrollGif from "../assets/img/scroll.gif"; function Home() { useEffect(() => { anime({ targets: [ ".main_intro div...
41,588
https://github.com/DavidWells/analytics/blob/master/packages/analytics-core/src/modules/queue.js
Github Open Source
Open Source
MIT
2,023
analytics
DavidWells
JavaScript
Code
124
262
import EVENTS from '../events' /* TODO figure out if this should live in state... Queue could be in mermory as well. But also needs to be persisted to storage */ const initialState = { actions: [], } export default function queueReducer(state = initialState, action) { const { type, payload } = action switch (t...
17,971
https://github.com/DrHesperus/ProgressivePeripherals/blob/master/src/main/java/site/siredvin/progressiveperipherals/common/setup/Items.java
Github Open Source
Open Source
Apache-2.0
null
ProgressivePeripherals
DrHesperus
Java
Code
379
1,874
package site.siredvin.progressiveperipherals.common.setup; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.Enchantments; import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.item.*; import net.minecraftforge.fml.RegistryObject; import site.siredvin.progressiveperipheral...
50,839
https://github.com/ken0x0a/react-native-reanimated-slider/blob/master/husky.config.js
Github Open Source
Open Source
MIT
2,020
react-native-reanimated-slider
ken0x0a
JavaScript
Code
21
112
/** * https://github.com/typicode/husky * https://github.com/sudo-suhas/lint-staged-multi-pkg * https://github.com/okonet/lint-staged */ module.exports = { hooks: { 'pre-commit': 'lint-staged', 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', }, }
1,266
https://github.com/Mantano/mno_shared_dart/blob/master/lib/src/util/image_size.dart
Github Open Source
Open Source
BSD-3-Clause
null
mno_shared_dart
Mantano
Dart
Code
216
439
// Copyright (c) 2021 Mantano. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. class ImageSize { final double width; final double height; /// Creates a [ImageSize] with the given [width] and [height]. const ImageSize(this.width, this...
53,105
https://github.com/kailbert/gatsby-netlify/blob/master/src/components/About/AboutPage.js
Github Open Source
Open Source
MIT
null
gatsby-netlify
kailbert
JavaScript
Code
105
504
import React, { Component } from 'react' import Img from 'gatsby-image' import Link from 'gatsby-link' import './about.styl' import TextDisplace from '../TextDisplace' export default class AboutPage extends Component { render() { const {text} = this.props; return ( <div className="about" id="about" na...
27,721
https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveOptions.java
Github Open Source
Open Source
BSD-3-Clause, OFL-1.1, ISC, MIT, Apache-2.0
2,023
flink
apache
Java
Code
1,322
3,647
/* * 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 ...
22,133
https://github.com/han/scrapple/blob/master/scrapple.rb
Github Open Source
Open Source
MIT, CC-BY-4.0, CC-BY-3.0, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,012
scrapple
han
Ruby
Code
362
1,143
# encoding: UTF-8 MULT = Hash.new(1).merge({ '.' => 1, 'D' => 2, 'T' => 3 }) LETTER_VALUES = Hash.new(0).merge({ a: 1, b: 4, c: 5, d: 2, e: 1, f: 4, g: 3, h: 4, i: 2, j: 4, k: 3, l: 3, m: 3, n: 1, o: 1, p: 4, q: 10, r: 2, s: 2, t: 2, u: 2, v: 4, w: 5, x: 8, y: 8, z: 5 }) @word_set = {} def read(f) Fil...
8,828
https://github.com/serso/common/blob/master/collections-tree/src/test/java/org/solovyev/common/collections/tree/PrefixTreeNodeTest.java
Github Open Source
Open Source
Apache-2.0
2,019
common
serso
Java
Code
194
553
/* * Copyright 2013 serso aka se.solovyev * * 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 a...
54,061
https://github.com/tjamet/goterm2/blob/master/zzz_clients.go
Github Open Source
Open Source
BSD-3-Clause
2,021
goterm2
tjamet
Go
Code
2,196
7,010
// Code generated by generate/main.go. DO NOT EDIT. // source: api/api.proto package iterm2 import ( "errors" "github.com/tjamet/goterm2/api" ) func (I *ITerm2) Activate(r *api.ActivateRequest) (*api.ActivateResponse, error) { m := &api.ClientOriginatedMessage{ Id: I.NewID(), Submessage: &api.ClientOriginated...
52,422
https://github.com/LastRitter/imx-atf/blob/master/plat/socionext/synquacer/platform.mk
Github Open Source
Open Source
BSD-3-Clause
2,019
imx-atf
LastRitter
Makefile
Code
117
727
# # Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # override RESET_TO_BL31 := 1 override ENABLE_PLAT_COMPAT := 0 override MULTI_CONSOLE_API := 1 override PROGRAMMABLE_RESET_ADDRESS := 1 override USE_COHERENT_MEM := 1 override SEPARATE_CODE_AND_ROD...
23,026
https://github.com/unmrds/cc-python/blob/master/tutorials/bird_eggs/eggs.py
Github Open Source
Open Source
Apache-2.0
2,023
cc-python
unmrds
Python
Code
185
641
#!/usr/bin/env python import csv # create an empty list that will be filled with the rows of data from the CSV as dictionaries csv_content = [] # open and loop through each line of the csv file to populate our data file with open('aaj1945_DataS1_Egg_shape_by_species_v2.csv') as csv_file: csv_reader = csv.DictRea...
42,872
https://github.com/sreya-kata/vital-site/blob/master/src/components/what-we-do/history/history.js
Github Open Source
Open Source
MIT
null
vital-site
sreya-kata
JavaScript
Code
52
175
import React from "react" import { H2 } from "../../../constants/typography" import { HistoryContainer, Title, ImageContainer, RegularImage, MobileImage, } from "./history-styles" const History = ({ title, timeline, mobileTimeline }) => { return ( <HistoryContainer> <Title> <H2>{title}</H...
107
https://github.com/pachopascolat/rede/blob/master/views/campania/_formLance.php
Github Open Source
Open Source
BSD-3-Clause
null
rede
pachopascolat
PHP
Code
461
1,853
<div class="form-group" id="add-lance"> <?php use kartik\grid\GridView; use kartik\builder\TabularForm; use yii\data\ArrayDataProvider; use yii\helpers\Html; use yii\widgets\Pjax; $dataProvider = new ArrayDataProvider([ 'allModels' => $row, 'pagination' => [ 'pageSize' => -1 ] ]); echo TabularForm:...
3,036
https://github.com/robertoattanasio/laravel-fashion-shop/blob/master/resources/views/partials/footer.blade.php
Github Open Source
Open Source
MIT
null
laravel-fashion-shop
robertoattanasio
PHP
Code
20
93
<footer> <p>Deposito presso l'agenzia dell'entrate: Charlottenburg Berlin, HRB 158855 B <p>Imposta sull'entrata: DE 260543043</p> <p>Partita IVA: 37/132/45004</p> <p class="zalando">Zalando.it</p> </footer>
40,535
https://github.com/dangel101/ovirt-engine/blob/master/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/tab/gluster/GlusterVolumeSnapshotActionPanelPresenterWidget.java
Github Open Source
Open Source
Apache-2.0
2,018
ovirt-engine
dangel101
Java
Code
121
744
package org.ovirt.engine.ui.webadmin.section.main.presenter.tab.gluster; import javax.inject.Inject; import org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeSnapshotEntity; import org.ovirt.engine.ui.common.presenter.DetailActionPanelPresenterWidget; import org.ovirt.engine.ui.common.uicommon.model....
43,554
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileScanRDD.scala
Github Open Source
Open Source
BSD-3-Clause, CC0-1.0, CDDL-1.1, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, EPL-2.0, CDDL-1.0, MIT, LGPL-2.0-or-later, Python-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-free-unknown, EPL-1.0, Classpath-exception-2.0, GCC-exception-3.1, CC-B...
2,023
spark
apache
Scala
Code
1,314
3,336
/* * 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 ...
40,767
https://github.com/connojd/bsl/blob/master/include/bsl/details/invoke_impl.hpp
Github Open Source
Open Source
MIT
null
bsl
connojd
C++
Code
475
873
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
23,337
https://github.com/ijemmao/nkowaokwu_twitter/blob/master/src/constants/WordClass.js
Github Open Source
Open Source
MIT
2,021
nkowaokwu_twitter
ijemmao
JavaScript
Code
143
480
export default { ADJ: { value: 'ADJ', label: 'Adjective', }, ADV: { value: 'ADV', label: 'Adverb', }, AV: { value: 'AV', label: 'Active verb', }, PV: { value: 'PV', label: 'Passive verb', }, CJN: { value: 'CJN', label: 'Conjunction', }, DEM: { value: 'DE...
44,203
https://github.com/Hero2200/Linux-Programming/blob/master/8-MySQL/Makefile
Github Open Source
Open Source
Apache-2.0
null
Linux-Programming
Hero2200
Makefile
Code
15
66
flag=-lmysqlclient -I/usr/include/mysql -L/usr/lib/mysql target=$1 default: #gcc 1-mysql.c -o 1-mysql $(flag) gcc $(target) -o 1 $(flag)
54,054
https://github.com/klubidorka/Java-MIPT-fall2021/blob/master/Sem-04/src/main/java/abstract_factory/icons/Icon.java
Github Open Source
Open Source
Apache-2.0
2,022
Java-MIPT-fall2021
klubidorka
Java
Code
9
22
package abstract_factory.icons; public interface Icon { void render(); }
34,846
https://github.com/Wasabi-B/DesignPartternTest/blob/master/src/com/zoub/decorator_pattern/Fish.java
Github Open Source
Open Source
Apache-2.0
null
DesignPartternTest
Wasabi-B
Java
Code
32
123
package com.zoub.decorator_pattern; /** * 具体装饰角色“鱼儿” * */ public class Fish extends Change { public Fish(TheGreatSage sage) { super(sage); System.out.println("我是鱼"); } @Override public void move() { // super.move(); //代码 System.out.println("Fish Move"); } ...
20,695
https://github.com/gitRaiku/miratope-rs/blob/master/src/polytope/concrete/file/off.rs
Github Open Source
Open Source
MIT
2,022
miratope-rs
gitRaiku
Rust
Code
2,550
7,101
use std::{ collections::HashMap, fs, io, path::Path, str::FromStr, sync::{Arc, Mutex}, }; use super::super::{Concrete, ElementList, Point, Polytope, RankVec, Subelements}; use crate::{ lang::name::{Con, Name}, polytope::{ r#abstract::{ elements::{AbstractBuilder, Subelem...
5,057
https://github.com/fengjixuchui/iOS-Reverse/blob/master/Obfuscator/Source/tools/clang/include/clang/Analysis/AnalysisDiagnostic.h
Github Open Source
Open Source
NCSA, MIT
2,021
iOS-Reverse
fengjixuchui
C++
Code
43
133
//===--- DiagnosticAnalysis.h - Diagnostics for libanalysis -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
38,001
https://github.com/solvep/learn_/blob/master/qm/react/react-router-family/src/index3.js
Github Open Source
Open Source
Apache-2.0
2,020
learn_
solvep
JavaScript
Code
73
326
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, Link,Switch} from 'react-router-dom'; function AmbiguousExample(){ return( <Router> <div> <ul> <li> <Link to="/about" >about</Link> </li> <li> <...
41,279
https://github.com/dragonXinLi/platform/blob/master/platform-hbase/pom.xml
Github Open Source
Open Source
Apache-2.0
2,020
platform
dragonXinLi
null
Spoken
99
913
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>platform</artifactId> ...
12,107
https://github.com/rodrigo-magalhaes/clinic-pet/blob/master/pet-clinic-data/src/main/java/com/spring/petclinic/services/PetTypeService.java
Github Open Source
Open Source
Apache-1.1
null
clinic-pet
rodrigo-magalhaes
Java
Code
12
49
package com.spring.petclinic.services; import com.spring.petclinic.model.PetType; public interface PetTypeService extends CrudService<PetType, Long> { }
20,890
https://github.com/uzh/signal-collect/blob/master/src/test/scala/com/signalcollect/LatencySpec.scala
Github Open Source
Open Source
Apache-2.0
2,016
signal-collect
uzh
Scala
Code
209
503
/* * @author Philip Stutz * * Copyright 2014 University of Zurich * * 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 * * U...
24,434
https://github.com/RajP7Jowa/zschool_ms/blob/master/application/views/backend/admin/navigation.php
Github Open Source
Open Source
MIT
2,020
zschool_ms
RajP7Jowa
PHP
Code
972
3,944
<!-- start: sidebar --> <aside id="sidebar-left" class="sidebar-left"> <div class="sidebar-header"> <div class="sidebar-title"> Navigation </div> <div class="sidebar-toggle hidden-xs" data-toggle-class="sidebar-left-collapsed" data-target="html" data-fire-event="sidebar-left-toggle"> <i class="fa fa-bars"...
36,206
https://github.com/stevenpack/packfinance/blob/master/src/sources/gdax/GdaxTickerSource.ts
Github Open Source
Open Source
Apache-2.0
null
packfinance
stevenpack
TypeScript
Code
48
143
import {GdaxApi} from "./GdaxApi"; import {Ticker} from "../../types/Ticker"; import {ISource} from "../Interfaces"; /** * Source of tickers from GDAX. */ export class GdaxTickerSource implements ISource<Ticker[]> { constructor(private api: GdaxApi) { } public async getData(opts): Promise<Ticker[]> { ...
14,943
https://github.com/song940/semiver/blob/master/test/index.js
Github Open Source
Open Source
MIT
2,021
semiver
song940
JavaScript
Code
145
826
const assert = require('assert'); const semver = require('..'); // A === B assert.equal(semver('0.0.0', '0.0.0'), 0); //=> 0 assert.equal(semver('1.2.3', '1.2.3'), 0); //=> 0 // A > B assert.equal(semver('2.1.0', '1.9.0'), 1); //=> 1 assert.equal(semver('1.9.1', '1.9.0'), 1); //=> 1 assert.equal(semver('10.0.0', '1.0...
5,727
https://github.com/hueyy/open-attestation-cli/blob/master/src/commands/verify.ts
Github Open Source
Open Source
Apache-2.0
2,022
open-attestation-cli
hueyy
TypeScript
Code
262
669
import { Argv } from "yargs"; import signale from "signale"; import { VerifyCommand } from "./command-types"; import { isValid, openAttestationVerifiers, openAttestationDidIdentityProof, verificationBuilder, } from "@govtechsg/oa-verify"; import { readOpenAttestationFile } from "../implementations/utils/disk"; ...
1,862
https://github.com/maxtorete/ssshsync/blob/master/ssshsync
Github Open Source
Open Source
Apache-2.0
2,013
ssshsync
maxtorete
Shell
Code
661
2,333
#!/bin/bash # Juan F "maxtorete" Fernández at SpartUp echo "" #This is the usage of this command BASE_NAME=`basename $0` LOAD_FIXTURES=false USAGE="$BASE_NAME [arguments] Arguments: -n <name> Project name -t <tag> Git tag to be deployed -g <url> Git host url -p <protocol> Git protocol -u <username> Git username -U <...
27,083
https://github.com/tiborsimon/dotfiles/blob/master/configs/lemon-modules/config/lemon-modules-scheduler.service
Github Open Source
Open Source
MIT
2,019
dotfiles
tiborsimon
null
Spoken
8
42
[Unit] Description=Lemon modules scheduler service. [Service] Type=oneshot ExecStart=%h/.local/bin/lemon-modules-scheduler
36,994
https://github.com/Naaatan/android-nay-ktex/blob/master/ktex/src/main/java/nay/lib/ktex/Uri.kt
Github Open Source
Open Source
Apache-2.0
null
android-nay-ktex
Naaatan
Kotlin
Code
79
242
/* * Created by Naaatan on 2021/09/04 17:52 * Copyright (c) 2021 . All rights reserved. * Last modified 2021/09/04 17:52 */ package nay.lib.ktex import android.content.Context import android.net.Uri import android.provider.MediaStore import java.io.File fun Uri.getName(context: Context): String? { return whe...
6,924
https://github.com/seregant/cockroach-test/blob/master/structs/structs.go
Github Open Source
Open Source
MIT
2,019
cockroach-test
seregant
Go
Code
140
568
package structs import "time" var prefix = "krywn_" type Pegawai struct { IDPegawai string `gorm:"primary_key:yes;column:pegawai_id"` Nama string `gorm:"column:pegawai_nama"` Alamat string `gorm:"column:pegawai_alamat"` Username string `gorm:"column:pegawai_username"` Password string `gorm:"column:peg...
23,549
https://github.com/SolineMP/hotelann-cien/blob/master/public/js/script.js
Github Open Source
Open Source
MIT
2,020
hotelann-cien
SolineMP
JavaScript
Code
144
481
const searchSW = document.querySelector('#search'); if (searchSW) { document.querySelector("#searchButton").addEventListener("click", () => { let planet = document.querySelector("#searchPlanet").value fetch(`https://swapi.co/api/planets/${planet}/`) .then ((response) => { respo...
52,915
https://github.com/cosailer/trivial_code/blob/master/stream/Makefile
Github Open Source
Open Source
MIT
null
trivial_code
cosailer
Makefile
Code
20
55
CC = gcc CFLAGS = -O3 all: stream stream: stream.c $(CC) $(CFLAGS) stream.c -o stream clean: rm -f stream stream*.o
40,060
https://github.com/naeioi/octoon/blob/master/contrib/Baikal/RadeonRays/Anvil/src/wrappers/pipeline_layout.cpp
Github Open Source
Open Source
MIT
2,021
octoon
naeioi
C++
Code
673
2,753
// // Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. // // 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 /...
20,109
https://github.com/PetePete/php-sqlite-odata/blob/master/index.php
Github Open Source
Open Source
MIT
2,023
php-sqlite-odata
PetePete
PHP
Code
240
1,073
<?php error_reporting(E_ALL); ini_set( 'display_errors','1'); require 'Config.class.php'; require 'AltoRouter.php'; require 'Controller.class.php'; if (Config::is_auth_enabled()) { if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="'.Config::get_model_name().' Se...
39,539
https://github.com/Dimawesome/mpa/blob/master/resources/views/admin/login.blade.php
Github Open Source
Open Source
MIT
null
mpa
Dimawesome
PHP
Code
79
381
@extends('app') @section('body_class', 'bg-purple admin-panel') @section('body') <div id="login"> <h3 class="text-center text-white pt-5">{{ trans('app.admin.admin') }}</h3> <div class="container"> <div id="login-row" class="row justify-content-center align-items-center"> ...
23,141
https://github.com/marcphilipp/jfr2ctf/blob/master/src/main/java/de/marcphilipp/jfr2ctf/Cli.java
Github Open Source
Open Source
Apache-2.0
2,020
jfr2ctf
marcphilipp
Java
Code
245
866
package de.marcphilipp.jfr2ctf; import org.jetbrains.annotations.Nullable; import picocli.CommandLine; import picocli.CommandLine.Command; import picocli.CommandLine.Option; import picocli.CommandLine.Parameters; import picocli.CommandLine.PicocliException; import java.io.IOException; import java.nio.file.Path; impor...
47,550
https://github.com/Parrot-Developers/olympe/blob/master/.editorconfig
Github Open Source
Open Source
PSF-2.0, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
olympe
Parrot-Developers
null
Spoken
28
59
# For more information about the properties used in # this file, please see the EditorConfig documentation: # http://editorconfig.org/ [*] indent_style = space indent_size =4 max_line_length = 100
8,970
https://github.com/Vinh-nguyen2196/VinhDATN/blob/master/resources/views/page/chitiet-sanpham.blade.php
Github Open Source
Open Source
MIT
null
VinhDATN
Vinh-nguyen2196
PHP
Code
975
5,334
@extends('master') @section('content') <div class="inner-header"> <div class="container"> <div class="pull-left"> <h5 class="inner-title">Sản Phẩm :{{$sanpham->name}}</h5> </div> <div class="pull-right"> <div class="beta-breadcrumb font-large"> <a href="{{route('trang-chu')}}">Trang chủ</a> /...
29,322
https://github.com/agnaka/CEV-Python-Exercicios/blob/master/Pacote-download/Exercicios/ex086.py
Github Open Source
Open Source
MIT
2,020
CEV-Python-Exercicios
agnaka
Python
Code
95
355
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] for l in range(0,3): for c in range(0, 3): matriz[l][c] = int(input(f'Digite um valor para [{l}, {c}]')) print('-=' * 30) for l in range(0,3): for c in range(0,3): print(f'[{matriz[l][c]:^5}]', end = '') print() print() print('FIM') '''lista = [[], ...
6,999
https://github.com/LouisGaspard/my_sokoban/blob/master/my_sokoban/Makefile
Github Open Source
Open Source
MIT
null
my_sokoban
LouisGaspard
Makefile
Code
91
334
## ## EPITECH PROJECT, 2017 ## sokoban ## File description: ## sokoban ## NAME = my_sokoban CC = gcc RM = rm -f SRCS = ./src/main.c \ ./src/my_sokoban.c \ ./src/utils.c \ ./src/movment.c \ ./src/check.c \ ./src/game_status.c \ ./src/my_free_tab.c \ ./src/my_usage.c OBJS = $(SRCS:.c=.o) LIB = -L...
34,719
https://github.com/adamsoutar/bpm/blob/master/client/lib/log.js
Github Open Source
Open Source
MIT
2,018
bpm
adamsoutar
JavaScript
Code
76
214
const chalk = require('chalk') const path = require('path') const fs = require('fs') const logTypes = { INFO: chalk.blue, WARNING: chalk.yellow, ERROR: chalk.red } function debugLog (type, logStr) { var extraNote = (type === 'ERROR') ? ' - See bpmLog.txt for details' : '' console.log(`[${logTypes[type](type)...
37,384
https://github.com/khangaikhuu-mstars/mstars-exercises/blob/master/anar/async-js/javascript-promise-template/js/promises-breakfast.js
Github Open Source
Open Source
Apache-2.0
null
mstars-exercises
khangaikhuu-mstars
JavaScript
Code
25
69
const isOrderReady = false; const myPromise = new Promise(function(resolve, reject){ if(isOrderReady){ reject("Order canceled. Please reorder.") } else resolve("Hey, your order is ready !") }) console.log(myPromise)
23,987
https://github.com/jonppe/intellij-zig/blob/master/src/main/kotlin/org/zig/psi/ZigLangTokenType.kt
Github Open Source
Open Source
Apache-2.0
2,022
intellij-zig
jonppe
Kotlin
Code
32
139
package org.zig.psi import com.intellij.psi.tree.IElementType import com.intellij.psi.tree.TokenSet import org.zig.ZigLang open class ZigLangTokenType(debugName: String) : IElementType(debugName, ZigLang) { companion object TokenHolder { @JvmField val COMMENTS = TokenSet.create(ZigLangTypes.COMMENT) @J...
44,557
https://github.com/Novemser/LearnJava/blob/master/src/main/java/File/ReadFile.java
Github Open Source
Open Source
Apache-2.0
2,017
LearnJava
Novemser
Java
Code
144
392
package File; import java.io.*; /** * Project: LearnJava * Package: File * Author: Novemser * 2017/3/25 */ public class ReadFile { private static final String filePath = "F:\\Proxy.txt"; public static void main(String[] args) throws IOException { // try (BufferedReader br = new BufferedReader(ne...
29,088
https://github.com/docent666/play-life/blob/master/app/models/com/bulba/canvas/Finite2dCanvas.scala
Github Open Source
Open Source
Apache-2.0
null
play-life
docent666
Scala
Code
110
271
package models.com.bulba.canvas import models.com.bulba.{DeadCell, Cell} import models.com.bulba.stagingstrategy.Life2dStagingStrategy trait Finite2dCanvas[+S <: Seq[Cell], +T <: Seq[S]] extends Canvas[S, T] { protected implicit val strategy = Life2dStagingStrategy def getCell(x: Int, y: Int): Cell = (x, y) ma...
56,084
https://github.com/aboolean/para/blob/master/js/src/models/tools/PenToolModel.js
Github Open Source
Open Source
MIT
null
para
aboolean
JavaScript
Code
382
1,266
/*PenToolModel.js *base model class for all direct manipulation tool models*/ define([ 'underscore', 'backbone', 'models/tools/BaseToolModel', 'models/data/PathNode', 'models/PaperManager', 'utils/analytics' ], function(_, Backbone, BaseToolModel, PathNode, PaperManager,analytics) { //types for ...
8,757
https://github.com/Spindle-Inc/rocketjob_mission_control/blob/master/app/datatables/rocket_job_mission_control/active_processes_datatable.rb
Github Open Source
Open Source
Apache-2.0
2,016
rocketjob_mission_control
Spindle-Inc
Ruby
Code
151
641
module RocketJobMissionControl class ActiveProcessesDatatable delegate :params, :link_to, :job_path, :job_icon, to: :@view delegate :h, to: 'ERB::Util' def initialize(view, processes) @view = view @unfiltered_processes = processes end def as_json(options = {}) { :draw =...
53,802
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/RT_News_com.rt.mobile.english/smali_classes2/com/squareup/okhttp/internal/http/AuthenticatorAdapter.smali
Github Open Source
Open Source
MIT
2,019
AndroidPolicyAutomation
Andreas237
Smali
Code
596
3,520
.class public final Lcom/squareup/okhttp/internal/http/AuthenticatorAdapter; .super Ljava/lang/Object; .source "AuthenticatorAdapter.java" # interfaces .implements Lcom/squareup/okhttp/Authenticator; # static fields .field public static final INSTANCE:Lcom/squareup/okhttp/Authenticator; # direct methods .method st...
30,998
https://github.com/ultraleap/TouchFree/blob/master/TF_Tooling_Web/src/TouchFreeToolingTypes.ts
Github Open Source
Open Source
Apache-2.0
2,022
TouchFree
ultraleap
TypeScript
Code
1,076
2,882
// Class: VersionInfo // This class is used when comparing the <ApiVersion> of the Tooling and the Service. export class VersionInfo { // Group: Variables // Variable: ApiVersion // The current API version of the Tooling. public static readonly ApiVersion: string = "1.1.0"; // Variable: API_HEADER...
43,732
https://github.com/vesaakerman/easy-split-multi-deposit/blob/master/src/test/scala/nl.knaw.dans.easy.multideposit/model/ModelPackageSpec.scala
Github Open Source
Open Source
Apache-2.0
2,019
easy-split-multi-deposit
vesaakerman
Scala
Code
204
419
/** * Copyright (C) 2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl) * * 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...
905
https://github.com/angga759/karen-bot/blob/master/commands/suggest.js
Github Open Source
Open Source
MIT
null
karen-bot
angga759
JavaScript
Code
112
370
const Discord = require('discord.js') const axios = require('axios') module.exports = { name: 'suggest', description: 'Suggest a feature, bug fix or a modification to a command', type: '', alias: ['suggestion', 'idea', 'bug', 'bugfix', 'bug-fix'], args: true, usage: '[suggestion]', example: 'create a web...
15,736
https://github.com/jackyho112/Directional-Graph-Editor/blob/master/js/App.jsx
Github Open Source
Open Source
MIT
null
Directional-Graph-Editor
jackyho112
null
Spoken
38
98
import React from 'react' import { Route } from 'react-router-dom' import Editor from './container_components/Editor/Editor' import './global.scss' const App = () => ( <div className="app"> <Route exact path="" component={props => <Editor {...props} />} /> </div> ) export default App
25,002
https://github.com/pr0crustes/PDFToolHelper/blob/master/src/main/java/me/pr0crustes/frontend/gui/classes/internationalization/SupportedLanguages.java
Github Open Source
Open Source
Apache-2.0
2,019
PDFToolHelper
pr0crustes
Java
Code
91
248
package me.pr0crustes.frontend.gui.classes.internationalization; import java.util.Locale; /** * Enum made of supported languages (has bundle to). */ public enum SupportedLanguages { ENGLISH(new Locale("en", "US")), PORTUGUESE(new Locale("pt", "BR")); /** * Property to hold the locale. */ ...
13,447
https://github.com/eHealth4everyone/owid-grapher/blob/master/database/migrations/2016_07_31_052313_add_coverage_and_timespan_to_variables.php
Github Open Source
Open Source
MIT
2,017
owid-grapher
eHealth4everyone
PHP
Code
67
183
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddCoverageAndTimespanToVariables extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::transaction(function() { DB::statement(...
27,379
https://github.com/jaldhar/The-Girl-Who-Played-With-The-Dragons-Nest/blob/master/src/tile.cc
Github Open Source
Open Source
BSD-3-Clause
2,021
The-Girl-Who-Played-With-The-Dragons-Nest
jaldhar
C++
Code
153
553
#include "tile.h" struct Tile::TileImpl { TileImpl(); ~TileImpl()=default; bool passable_; bool seen_; TERRAIN terrain_; bool visible_; }; Tile::Tile() : impl_ { new Tile::TileImpl() } { } Tile::~Tile() { } bool Tile::passable() const { return impl_->passable_; } void Tile::se...
11,207
https://github.com/kitayazilim/cekmekoylalebahcesi/blob/master/_includes/layouts/base.njk
Github Open Source
Open Source
MIT
2,021
cekmekoylalebahcesi
kitayazilim
null
Spoken
763
3,004
<!DOCTYPE html> <html lang="tr"> <head> <meta charset="utf-8"> <!--[if IE]> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="{{metadata.description }}"> <meta n...
7,758
https://github.com/lcnbala/gocd-plugins/blob/master/check_mk-plugin/src/com/tw/go/task/check_mk/TaskExecutorFactory.java
Github Open Source
Open Source
Apache-2.0
2,016
gocd-plugins
lcnbala
Java
Code
50
193
package com.tw.go.task.check_mk; import com.thoughtworks.go.plugin.api.task.JobConsoleLogger; import com.tw.go.plugin.common.Context; import java.util.Map; public class TaskExecutorFactory { public static CheckMkTaskExecutor Create(JobConsoleLogger console, Context context, Map config) throws JobNotSupportedExce...
11,596
https://github.com/tmds/Tmds.LTTng/blob/master/src/Tmds.DotnetTrace.Tool/CountHistogram.cs
Github Open Source
Open Source
MIT
2,020
Tmds.LTTng
tmds
C#
Code
108
304
using System; using System.Collections.Generic; namespace Tmds.DotnetTrace.Tool { class CountHistogram<T> { public KeyValuePair<T, int>[] Data { get; private set; } = Array.Empty<KeyValuePair<T, int>>(); public void Add(T value) { var data = Data; for (int i = 0...
2,328
https://github.com/MJPiero/vue-vuex-webpack/blob/master/src/main.js
Github Open Source
Open Source
MIT
2,022
vue-vuex-webpack
MJPiero
JavaScript
Code
48
150
import Vue from 'vue'; import router from 'router'; import iView from 'iview'; import './sass/analysdk-theme/dist/iview.css'; import App from './App.vue'; import store from 'store'; Vue.use(iView); router.afterEach((to, from, next) => { iView.LoadingBar.finish(); window.scrollTo(0, 0); }); const app = new ...
3,817
https://github.com/EricForgy/julia/blob/master/src/flisp/Makefile
Github Open Source
Open Source
Zlib
2,016
julia
EricForgy
Makefile
Code
305
1,512
JULIAHOME := $(abspath ../..) BUILDDIR := . include $(JULIAHOME)/Make.inc JCFLAGS += $(CFLAGS) JCXXFLAGS += $(CXXFLAGS) JCPPFLAGS += $(CPPFLAGS) JLDFLAGS += $(LDFLAGS) NAME := flisp EXENAME := $(NAME) LIBTARGET := lib$(NAME) SRCS := flisp.c builtins.c string.c equalhash.c table.c iostream.c \ julia_extension...
39,880
https://github.com/FlorianKromer/9-square-puzzle/blob/master/src/run/Main.java
Github Open Source
Open Source
Apache-2.0
null
9-square-puzzle
FlorianKromer
Java
Code
287
801
package run; import java.io.File; import java.util.Scanner; import model.Pool; import model.PoolSizeException; public class Main { public static void main(String[] args) { // System.out // .println("" // + // // "______ _ _____ _ _ " // + "\n" // + "|...
14,071
https://github.com/RangerV107/WindowWrap/blob/master/OpenControls.Wpf.Utilities/ValueConverters/EnumToVisibilityConverter.cs
Github Open Source
Open Source
MIT
2,021
WindowWrap
RangerV107
C#
Code
51
164
using System; using System.Windows.Data; namespace OpenControls.Wpf.Utilities.ValueConverters { public class EnumToVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value...
42,318
https://github.com/tangrams/differ/blob/master/server.js
Github Open Source
Open Source
MIT
2,020
differ
tangrams
JavaScript
Code
239
736
// Modules // var http = require("http"); // http server var fs = require('fs'); // filesystem. var url = require('url'); // utility for URLs var formidable = require('formidable'); // uploading files; // Settings // var WWW_ROOT = "./"; var HTTP_PORT = 8080; // WEB SERVER // var server = http.createSer...
22,613
https://github.com/mpatric/lurgee/blob/master/reversi/src/net/lurgee/reversi/ReversiMove.java
Github Open Source
Open Source
MIT
2,013
lurgee
mpatric
Java
Code
180
427
/* * @(#)ReversiMove.java 2005/11/02 * * Part of the reversi common module that uses the strategy game framework. * Copyright (c) Michael Patricios, lurgee.net. * */ package net.lurgee.reversi; import net.lurgee.sgf.Move; /** * Reversi move. This is simply a position on the board described by its x and y coo...
36,544
https://github.com/isxoq/lms_texnomart/blob/master/backend/modules/billing/views/offline-payments/index.php
Github Open Source
Open Source
BSD-3-Clause
2,021
lms_texnomart
isxoq
PHP
Code
110
448
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; use backend\modules\billing\models\OfflinePayments; /* @var $this yii\web\View */ /* @var $searchModel backend\modules\billing\models\search\OfflinePaymentsSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = "Offline ...
46,105
https://github.com/CSStudio/CodeRobot/blob/master/sources/CS.CodeRobot/CS.CodeRobot.Generator/Generators/CodeFile.cs
Github Open Source
Open Source
Apache-2.0
2,017
CodeRobot
CSStudio
C#
Code
89
321
using CS.Extension; namespace CS.CodeRobot.Generators { /// <summary> /// 由模板生成而来的代码文件名称信息 /// </summary> public class CodeFile { /// <summary> /// 子目录 /// </summary> public string Sub { get; set; } /// <summary> /// 代码文件名称 /// </summary> ...
47,491
https://github.com/Spontz/Phoenix/blob/master/Engine/src/core/renderer/ParticleMesh.cpp
Github Open Source
Open Source
MIT
2,021
Phoenix
Spontz
C++
Code
158
685
// ParticleMesh.cpp // Spontz Demogroup #include "main.h" #include "core/renderer/ParticleMesh.h" namespace Phoenix { ParticleMesh::ParticleMesh() : m_numParticles(0), m_memUsed(0), m_particles(nullptr), m_VertexArray(nullptr) { } ParticleMesh::~ParticleMesh() { shutdown(); } bool ParticleMesh::...
50,972
https://github.com/alvinhenrick/spring-xd/blob/master/spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/TapDefinitionTests.java
Github Open Source
Open Source
Apache-2.0
2,013
spring-xd
alvinhenrick
Java
Code
311
988
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
20,841
https://github.com/jdkoren/sqlite-parser/blob/master/src/test/resources/view.test_15.sql
Github Open Source
Open Source
MIT
2,022
sqlite-parser
jdkoren
SQL
Code
19
38
-- view.test -- -- execsql { -- EXPLAIN SELECT * FROM v5; -- } EXPLAIN SELECT * FROM v5;
12,482
https://github.com/bonitoo-io/influxdata-platform-java/blob/master/client/src/generated/java/com/influxdb/client/domain/TagRule.java
Github Open Source
Open Source
MIT
2,019
influxdata-platform-java
bonitoo-io
Java
Code
440
1,325
/* * InfluxDB OSS API Service * The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * htt...
46,765
https://github.com/orderbird/aserializer/blob/master/aserializer/mongoengine/collection.py
Github Open Source
Open Source
MIT
null
aserializer
orderbird
Python
Code
118
412
# -*- coding: utf-8 -*- from aserializer.collection.base import CollectionSerializer class MongoEngineCollectionSerializer(CollectionSerializer): def metadata(self, objects): total_count = objects.count() _metadata = dict() _metadata[self._meta.offset_key] = self._offset or 0 _me...
41,478
https://github.com/navikt/veilarbportefolje/blob/master/src/main/resources/db/postgres/V1_05__add_kafka_repository.sql
Github Open Source
Open Source
MIT
2,023
veilarbportefolje
navikt
SQL
Code
91
318
CREATE TYPE KAFKA_MESSAGE_TYPE AS enum ('PRODUCED','CONSUMED'); CREATE TABLE FEILET_KAFKA_MELDING ( ID BIGINT NOT NULL PRIMARY KEY, TOPIC VARCHAR(100) NOT NULL, KEY VARCHAR(40) NOT NULL, PAYLOAD ...
24,082
https://github.com/logigator/logigator-editor/blob/master/src/app/models/rendering/graphics/led-matrix-graphics.ts
Github Open Source
Open Source
MIT
2,020
logigator-editor
logigator
TypeScript
Code
847
3,040
import * as PIXI from 'pixi.js'; import {ComponentUpdatable, LGraphics} from './l-graphics'; import {Element} from '../../element'; import {getStaticDI} from '../../get-di'; import {ThemingService} from '../../../services/theming/theming.service'; import {ElementType, isElementType} from '../../element-types/element-ty...
6,339
https://github.com/se-rosemann/fruehlingszwiebel/blob/master/fruehlingszwiebel-demo/src/main/java/de/god/fruehlingszwiebeldemo/webservices_spring/CarController.java
Github Open Source
Open Source
MIT
2,018
fruehlingszwiebel
se-rosemann
Java
Code
206
783
package de.god.fruehlingszwiebeldemo.webservices_spring; import de.god.fruehlingszwiebeldemo.api.car.CarReadModel; import de.god.fruehlingszwiebeldemo.api.car.CarService; import de.god.fruehlingszwiebeldemo.api.car.CarWriteModel; import de.god.fruehlingszwiebeldemo.domain.car.Car; import de.god.fruehlingszwiebeldemo.d...
29,005
https://github.com/Kolyall/Android-ReactiveLocation/blob/master/android-reactive-location/src/main/java/pl/charmas/android/reactivelocation2/ReactiveLocationProviderConfiguration.kt
Github Open Source
Open Source
Apache-2.0
null
Android-ReactiveLocation
Kolyall
Kotlin
Code
185
461
package pl.charmas.android.reactivelocation2 import android.os.Handler /** * Configuration for location provider. Pleas use builder to create an instance. */ class ReactiveLocationProviderConfiguration private constructor(builder: Builder) { val customCallbackHandler: Handler? = builder.customCallbackHandler ...
16,918
https://github.com/c-demone/tackle-box/blob/master/tests/cli/test_cli.py
Github Open Source
Open Source
BSD-3-Clause
2,021
tackle-box
c-demone
Python
Code
1,031
3,866
"""Collection of tests around cookiecutter's command-line interface.""" import os import sys import pytest FAKE_REPO = 'fake-repo-pre' @pytest.fixture def make_fake_project_dir(request): """Create a fake project to be overwritten in the according tests.""" if not os.path.isdir('fake-project'): os.m...
51,665
https://github.com/ganxiaohui2/shell-sh/blob/master/kvm/virsh-console-centos7.sh
Github Open Source
Open Source
MIT
2,022
shell-sh
ganxiaohui2
Shell
Code
19
95
#!/bin/bash # # CentOS 7下设置使用virsh console登录KVM客户机 # 引入外部文件 source ../common/util.sh # 检查root用户 util::check_root systemctl enable serial-getty@ttyS0.service systemctl start serial-getty@ttyS0.service
18,311
https://github.com/otcshare/chromium-src/blob/master/components/games/core/DEPS
Github Open Source
Open Source
BSD-3-Clause
2,020
chromium-src
otcshare
Python
Code
7
38
include_rules = [ "+components/keyed_service/core", "+components/prefs", "+third_party/protobuf", ]
36,604
https://github.com/Burreli1/Early-Bound/blob/master/AlbanianXrm.ForrestSerializer/EntitySelection.cs
Github Open Source
Open Source
MIT
2,020
Early-Bound
Burreli1
C#
Code
64
154
using System.Collections.Generic; namespace AlbanianXrm { public class EntitySelection { public EntitySelection(string logicalName) { LogicalName = logicalName; SelectedAttributes = new HashSet<string>(); SelectedRelationships = new HashSet<string>(); ...
31,239
https://github.com/CognitiveDisson/AmimonoCheck/blob/master/Pods/YandexMobileAds/dynamic/YandexMobileAds.framework/Headers/YMANativeAdImage.h
Github Open Source
Open Source
Apache-2.0
null
AmimonoCheck
CognitiveDisson
C
Code
107
236
/* * YMANativeAdImage.h * * This file is a part of the Yandex Advertising Network. * * Version for iOS © 2016 YANDEX * * You may not use this file except in compliance with the License. * You may obtain a copy of the License at https://legal.yandex.com/partner_ch/ */ #import <UIKit/UIKit.h> NS_ASSUME_NONNUL...
39,525
https://github.com/mefarazath/identity-event-handler-account-lock/blob/master/components/org.wso2.carbon.identity.account.lock/src/main/java/org/wso2/carbon/identity/account/lock/internal/IdentityAccountLockServiceComponent.java
Github Open Source
Open Source
Apache-2.0
2,016
identity-event-handler-account-lock
mefarazath
Java
Code
221
814
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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 * * Unles...
19,203
https://github.com/zyan0/FBGEMM/blob/master/fbgemm_gpu/include/fbgemm_gpu/fbgemm_cuda_utils.cuh
Github Open Source
Open Source
BSD-3-Clause
null
FBGEMM
zyan0
null
Spoken
2,627
9,325
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <ATen/ATen.h> #include <ATen/AccumulateType.h> #include <cuda.h> #include <cuda_r...
7,482