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/zhongxinghong/EECS-Volunteer-Reservation-2-Backend/blob/master/tests/unittests/test_02_user.py
Github Open Source
Open Source
MIT
null
EECS-Volunteer-Reservation-2-Backend
zhongxinghong
Python
Code
13
38
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: test_02_user.py # modified: 2019-10-28
7,186
https://github.com/Osiris-Team/AutoPlugClient/blob/master/src/main/java/com/osiris/autoplug/client/Main.java
Github Open Source
Open Source
MIT
null
AutoPlugClient
Osiris-Team
Java
Code
922
3,458
/* * Copyright (c) 2021-2022 Osiris-Team. * All rights reserved. * * This software is copyrighted work, licensed under the terms * of the MIT-License. Consult the "LICENSE" file for details. */ package com.osiris.autoplug.client; import com.osiris.autoplug.client.configs.*; import com.osiris.autoplug.client.co...
40,353
https://github.com/asmasalem25/womanshop.github.io/blob/master/assets/js/faq.js
Github Open Source
Open Source
MIT
null
womanshop.github.io
asmasalem25
JavaScript
Code
42
232
jQuery(document).ready(function ($) { $('.toggle').click(function(e) { e.preventDefault(); let $this = $(this); if ($this.next().hasClass('show')) { $this.next().removeClass('show'); $this.next().slideUp(350); } else { $this.parent().parent().find('li .inner').removeClass('show'); $t...
28,497
https://github.com/bingnuoyuan/cuoheAdminFront/blob/master/src/views/member/edit.vue
Github Open Source
Open Source
MIT
2,021
cuoheAdminFront
bingnuoyuan
Vue
Code
166
720
<template> <div class="add-page"> <el-form ref="news" :model="news" :rules="rules"> <el-form-item label="发布人" required prop="nickName"> <el-input v-model="news.nickName"></el-input> </el-form-item> <el-form-item label="主题" required prop="title"> <el-input v-model="news.tit...
19,696
https://github.com/digideskio/spacedog-server/blob/master/watchdog/src/main/java/io/spacedog/admin/Purge.java
Github Open Source
Open Source
MIT
2,016
spacedog-server
digideskio
Java
Code
95
396
package io.spacedog.admin; import java.util.Iterator; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import io.spacedog.client.SpaceRequest; public class Purge { public String run() { try { int from = 0; int size = 100; int total = 0; do { ...
32,527
https://github.com/forgy/ntripshare-pro/blob/master/NtripShare/MainForm.Designer.cs
Github Open Source
Open Source
Apache-2.0
2,021
ntripshare-pro
forgy
C#
Code
5,497
31,708
namespace NtripShare { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <para...
17,565
https://github.com/dgerod/more-dmps/blob/master/tests/test_scs.py
Github Open Source
Open Source
BSD-2-Clause
2,021
more-dmps
dgerod
Python
Code
59
203
import numpy as np import matplotlib.pyplot as plt from simple_cs import CanonicalSystem time = np.arange(0, np.pi/2, 0.01) num_samples = 10 finalTime = time[-1] increment = finalTime/(num_samples) t = np.zeros([(num_samples)]) s = np.zeros([(num_samples)]) cs = CanonicalSystem(-2) for i in xrange(num_samples):...
22,140
https://github.com/ankurshukla1993/IOT-test/blob/master/coeey/io/reactivex/processors/UnicastProcessor.java
Github Open Source
Open Source
Apache-2.0
2,021
IOT-test
ankurshukla1993
Java
Code
705
2,352
package io.reactivex.processors; import io.reactivex.annotations.CheckReturnValue; import io.reactivex.annotations.Experimental; import io.reactivex.internal.functions.ObjectHelper; import io.reactivex.internal.queue.SpscLinkedArrayQueue; import io.reactivex.internal.subscriptions.BasicIntQueueSubscription; import io....
18,544
https://github.com/ViennaAdvantage/ERP-CMR-DMS/blob/master/ViennaAdvantageWeb/ModelLibrary/ModelAD/MProcessAccess.cs
Github Open Source
Open Source
Apache-2.0
2,022
ERP-CMR-DMS
ViennaAdvantage
C#
Code
155
562
/******************************************************** * Module Name : Process * Purpose : * Class Used : X_AD_Process_Access * Chronological Development * Veena Pandey 07-May-2009 ******************************************************/ using System; using System.Collections.Generic; //usi...
8,012
https://github.com/biproberkay/SdvCodeWebsite/blob/master/SdvCode/SdvCode.Tests/Administration/Services/BlockUserTests.cs
Github Open Source
Open Source
MIT
2,022
SdvCodeWebsite
biproberkay
C#
Code
359
1,324
namespace SdvCode.Tests.Administration.Services { using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.ML.Trainers.FastTree; using Moq; using SdvCode.Areas.Administration.Services.UserPenalties; using SdvCode.Data; using SdvCode.Models.User; using Sy...
33,122
https://github.com/clembu/react-inkml/blob/master/lib/ink.ml
Github Open Source
Open Source
MIT
2,019
react-inkml
clembu
OCaml
Code
9
17
type t = unit let ink_of_file _ = ()
5,775
https://github.com/productinfo/Umbraco.UI/blob/master/packages/uui-dialog/lib/uui-dialog.element.ts
Github Open Source
Open Source
MIT
2,022
Umbraco.UI
productinfo
TypeScript
Code
162
544
import { LitElement, html, css } from 'lit'; /** * @element uui-dialog * @slot for dialog content * @slot actions - for dialog actions * @description - All-round dialog */ export class UUIDialogElement extends LitElement { static styles = [ css` :host { position: relative; display:...
48,633
https://github.com/austinov/gyn/blob/master/backend/handler/handler.go
Github Open Source
Open Source
MIT
null
gyn
austinov
Go
Code
1,028
4,233
package handler import ( "fmt" "net/http" "os" "strconv" "time" "github.com/asaskevich/govalidator" "github.com/austinov/gyn/backend/config" "github.com/austinov/gyn/backend/store" "github.com/austinov/gyn/backend/util" "github.com/nguyenthenguyen/docx" "github.com/pkg/errors" jwt "github.com/dgrijalva/j...
21,834
https://github.com/RT-Thread/rt-thread/blob/master/bsp/nuvoton/libraries/m031/StdDriver/src/nu_pwm.c
Github Open Source
Open Source
Apache-2.0, Zlib, LicenseRef-scancode-proprietary-license, MIT, BSD-3-Clause, X11, BSD-4-Clause-UC, LicenseRef-scancode-unknown-license-reference
2,023
rt-thread
RT-Thread
C
Code
5,671
14,275
/**************************************************************************//** * @file pwm.c * @version V1.00 * $Revision: 4 $ * $Date: 18/04/25 11:43a $ * @brief M031 series PWM driver source file * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton Technology Corp. All rights reserve...
24,083
https://github.com/leaderyangzi/online-chess/blob/master/client/src/user/components/UserAvatar.vue
Github Open Source
Open Source
MIT
2,021
online-chess
leaderyangzi
Vue
Code
186
659
<template> <q-avatar v-ripple v-bind="$attrs" class="user-avatar" :class="{offline, clickable}" :style="{backgroundColor}" @click="onClick" > <img v-if="avatarUrl" :src="avatarUrl" style="object-fit: cover;" > <span v-else class="text-white" > ...
19,545
https://github.com/jaybiedev/leadsperfectCode/blob/master/application/libraries/Repository/Generic.php
Github Open Source
Open Source
MIT
null
leadsperfectCode
jaybiedev
PHP
Code
55
204
<?php namespace Library\Repository; class Generic extends \Library\Repository\RepositoryAbstract { public $model = null; public function getUserAccountXrefs($user_id) { $this->model = 'UserAccountXref'; $this->sql = "SELECT * FROM user_account_xref WHERE...
11,054
https://github.com/justing-bq/amazon-qldb-driver-java/blob/master/src/test/software/amazon/qldb/integrationtests/utils/IntegrationTestBase.java
Github Open Source
Open Source
Apache-2.0
null
amazon-qldb-driver-java
justing-bq
Java
Code
422
1,651
/* * Copyright Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "license...
27,426
https://github.com/aherbert/gdsc-smlm/blob/master/src/test/java/uk/ac/sussex/gdsc/smlm/math3/distribution/fitting/MultivariateGaussianMixtureExpectationMaximizationTest.java
Github Open Source
Open Source
BSL-1.0
2,020
gdsc-smlm
aherbert
Java
Code
3,262
11,094
/*- * #%L * Genome Damage and Stability Centre SMLM ImageJ Plugins * * Software for single molecule localisation microscopy (SMLM) * %% * Copyright (C) 2011 - 2020 Alex Herbert * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
6,697
https://github.com/pathicles/pathicles/blob/master/packages/@pathicles/config/src/presets/old/electric.js
Github Open Source
Open Source
MIT
2,021
pathicles
pathicles
JavaScript
Code
38
131
export default { bufferLength: 4, loop: false, stepWise: false, particleType: 'PROTON ELECTRON PHOTON', bunchShape: 'ROW', particleCount: 3, particleSeparation: 0.1, emitterPosition: [0, 0.05, 0], emitterDirection: [0, 0, 1], gamma: 1.1, particleInteraction: false, electricFieldStrength: 11, c...
4,126
https://github.com/SADPR/Kratos/blob/master/applications/StructuralMechanicsApplication/custom_advanced_constitutive/truss_plasticity_constitutive_law.cpp
Github Open Source
Open Source
BSD-4-Clause
null
Kratos
SADPR
C++
Code
579
2,723
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // license: structural_mechanics_applic...
25,392
https://github.com/wiepvandertoorn/seqan3/blob/master/include/seqan3/search/configuration/hit.hpp
Github Open Source
Open Source
CC-BY-4.0, CC0-1.0
2,020
seqan3
wiepvandertoorn
C++
Code
363
1,040
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
10,534
https://github.com/hoola-dev/mazhandufamilybus.com/blob/master/dbchanges/db-changes.sql
Github Open Source
Open Source
Apache-2.0
null
mazhandufamilybus.com
hoola-dev
SQL
Code
13
28
-- -- Add all database change -- -- -------------------------------------------------------- /*Date: April 25 */
40,155
https://github.com/CordField/cordtables/blob/master/api/src/main/kotlin/com/seedcompany/cordtables/components/tables/common/posts/Types.kt
Github Open Source
Open Source
MIT
2,021
cordtables
CordField
Kotlin
Code
58
154
package com.seedcompany.cordtables.components.tables.common.posts data class Post( var id: String? = null, var thread:String? = null, var content:String?= null, val created_at: String? = null, val created_by: String? = null, val modified_at: String? = null, val m...
37,295
https://github.com/hungnd1/smsbranch/blob/master/protected/views/brandname/update.php
Github Open Source
Open Source
BSD-3-Clause
null
smsbranch
hungnd1
PHP
Code
53
251
<?php /* @var $this BrandnameController */ /* @var $model Brandname */ //$this->breadcrumbs=array( // 'Brandnames'=>array('index'), // $model->brand_id=>array('view','id'=>$model->brand_id), // 'Update', //); // //$this->menu=array( // array('label'=>'List Brandname', 'url'=>array('index')), // array('label'=>'Create ...
50,139
https://github.com/igautron/yvonne-server/blob/master/app/Http/Controllers/CartController.php
Github Open Source
Open Source
MIT
null
yvonne-server
igautron
PHP
Code
100
404
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Cart; class CartController extends Controller { public function addToCart(Request $request) { $cart_arr = [ 'product_id' => 'amount' ]; if (!$request->cart_id) { $cart = Cart::create(['products' => j...
18,451
https://github.com/ericnorris/google-cloud-php/blob/master/BigQueryDataTransfer/src/V1/DataSourceParameter/Type.php
Github Open Source
Open Source
Apache-2.0
null
google-cloud-php
ericnorris
PHP
Code
275
775
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto namespace Google\Cloud\BigQuery\DataTransfer\V1\DataSourceParameter; use UnexpectedValueException; /** * Parameter type. * * Protobuf type <code>google.cloud.bigquery.datatransfer.v1...
5,165
https://github.com/Levvy055/gw2wrapper/blob/master/src/main/java/me/xhsun/guildwars2wrapper/model/v2/Finisher.java
Github Open Source
Open Source
Apache-2.0
2,021
gw2wrapper
Levvy055
Java
Code
45
160
package me.xhsun.guildwars2wrapper.model.v2; import me.xhsun.guildwars2wrapper.model.identifiable.Unlockable; /** * For more info on Finishers API go <a href="https://wiki.guildwars2.com/wiki/API:2/finishers">here</a><br/> * Model class for finisher * * @author xhsun * @since 2017-06-06 */ public class Finisher...
39,117
https://github.com/Mr-TelegramBot/python-tdlib/blob/master/py_tdlib/constructors/message_website_connected.py
Github Open Source
Open Source
MIT
2,020
python-tdlib
Mr-TelegramBot
Python
Code
12
31
from ..factory import Type class messageWebsiteConnected(Type): domain_name = None # type: "string"
36,226
https://github.com/bartwe/slimdx/blob/master/source/directwrite/ClusterMetrics.h
Github Open Source
Open Source
MIT
null
slimdx
bartwe
C
Code
378
752
/* * Copyright (c) 2007-2014 SlimDX Group * * 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, publis...
13,167
https://github.com/Taher-Ghaleb/FlakeFlagger/blob/master/flakiness-predicter/input_data/original_tests/wro4j-wro4j/nonFlakyMethods/ro.isdc.wro.extensions.processor.support.dustjs.TestDustJs-shouldCompileNullContent.java
Github Open Source
Open Source
BSD-3-Clause
2,021
FlakeFlagger
Taher-Ghaleb
Java
Code
9
63
@Test public void shouldCompileNullContent(){ assertEquals("(function(){dust.register(null,body_0);function body_0(chk,ctx){return chk;}return body_0;})();",victim.compile(null,null)); }
33,356
https://github.com/Deftextra/LightsOutPuzzle/blob/master/src/LightsOutPuzzle.MVC/Views/Home/Index.cshtml
Github Open Source
Open Source
MIT
null
LightsOutPuzzle
Deftextra
C#
Code
33
143
@{ ViewData["Title"] = "Home Page"; } <div class="row justify-content-center"> <a class="start-game" asp-controller="Game" asp-action="StartGame"> Start game </a> </div> <style> .start-game { background-color: #1b6ec2; color: white; padding: 1em 1.5em; text-...
8,415
https://github.com/glustful/juwubaios/blob/master/JuWuBaMall/Models/HomeSortModel.h
Github Open Source
Open Source
Apache-2.0
null
juwubaios
glustful
C
Code
65
208
// // HomeSortModel.h // JuWuBaMall // // Created by JWB on 16/4/20. // Copyright © 2016年 JuWuBa. All rights reserved. // #import "FMBean.h" @interface HomeSortModel : FMBean /** * 类型ID */ @property (nonatomic, strong) NSString *typeID; /** * 类型名称 */ @property (nonatomic, strong) NSString *typeName; /** * ...
11,522
https://github.com/RalfBarkow/semweb4j/blob/master/org.semweb4j.rdfreactor.generator/src/main/java/org/ontoware/rdfreactor/generator/CodeGenerator.java
Github Open Source
Open Source
BSD-2-Clause
2,022
semweb4j
RalfBarkow
Java
Code
713
1,978
package org.ontoware.rdfreactor.generator; import java.io.File; import java.io.IOException; import org.ontoware.rdf2go.Reasoning; import org.ontoware.rdf2go.model.Model; import org.ontoware.rdf2go.model.Syntax; import org.ontoware.rdfreactor.generator.java.JModel; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
2,479
https://github.com/geophile/sql-layer/blob/master/fdb-sql-layer-core/src/main/java/com/foundationdb/server/types/TClass.java
Github Open Source
Open Source
MIT
null
sql-layer
geophile
Java
Code
1,456
4,123
/** * The MIT License (MIT) * * Copyright (c) 2009-2015 FoundationDB, LLC * * 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...
37
https://github.com/CleysonPH/django-bookshelf/blob/master/reviews/admin.py
Github Open Source
Open Source
MIT
2,020
django-bookshelf
CleysonPH
Python
Code
19
66
from django.contrib import admin from .models import Review @admin.register(Review) class ReviewAdmin(admin.ModelAdmin): list_display = ('title', 'user', 'book', 'rating', 'created_at', 'modified_at')
3,122
https://github.com/Sanaebadi97/dartdoc/blob/master/testing/test_package_import_export_error/lib/main.dart
Github Open Source
Open Source
BSD-3-Clause
2,018
dartdoc
Sanaebadi97
Dart
Code
13
39
library main; export 'package:test_package_export_error/library2.dart'; /// This is an important class. class BugFreeClass {}
13,544
https://github.com/chandlersong/TestCase/blob/master/lombok-demo/src/test/java/me/study/java/GetSetDemos.java
Github Open Source
Open Source
BSD-3-Clause
null
TestCase
chandlersong
Java
Code
46
163
package me.study.java; import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.junit.Test; public class GetSetDemos { @Test public void testGet() { Entry e = new Entry(); e.setValue("lombok"); e.testHelloWorld(); } } @Slf4j class Entry { ...
3,689
https://github.com/4ntongC/Scientific-Computing-MATH-GA-2043/blob/master/Scientific Computing Projects (Code Parts)/1/Problem_3/Roundoff_Truncation_Tradeoff.py
Github Open Source
Open Source
MIT
null
Scientific-Computing-MATH-GA-2043
4ntongC
Python
Code
197
526
import numpy as np from tabulate import tabulate steps = 300 interval_length = 10**(-10) delta_x = np.arange(1.0, 1.0 + steps) * interval_length result = np.zeros((steps, 10)) """ The indices are: 0. delta x 2. derivative of f (accurate) 4. derivative of f (two point forward approximate) 6. absolute er...
29,931
https://github.com/cupteaa/BaiSi/blob/master/百思不得姐/百思不得姐/Classes/Essence/View/YRHProgressView.h
Github Open Source
Open Source
MIT
2,016
BaiSi
cupteaa
Objective-C
Code
28
97
// // YRHProgressView.h // 百思不得姐 // // Created by 于亚伟 on 2016/11/26. // Copyright © 2016年 itcast. All rights reserved. // #import "DALabeledCircularProgressView.h" @interface YRHProgressView : DALabeledCircularProgressView @end
30,414
https://github.com/matyioe92/SlinkyTyped/blob/master/r/react-bootstrap/src/main/scala/typingsSlinky/reactBootstrap/components/MediaRight.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
matyioe92
Scala
Code
47
277
package typingsSlinky.reactBootstrap.components import typingsSlinky.reactBootstrap.mediaRightMod.MediaRightProps import typingsSlinky.reactBootstrap.mediaRightMod.^ import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal...
22,564
https://github.com/tidymodels/rsample/blob/master/R/tidy.R
Github Open Source
Open Source
MIT
2,023
rsample
tidymodels
R
Code
576
1,665
#' Tidy Resampling Object #' #' The `tidy` function from the \pkg{broom} package can be used on `rset` and #' `rsplit` objects to generate tibbles with which rows are in the analysis and #' assessment sets. #' @param x A `rset` or `rsplit` object #' @param unique_ind Should unique row identifiers be returned? For e...
42,521
https://github.com/INSEAInnovationEdge/Python-projects/blob/master/tic_tac_toe/workshop/test.py
Github Open Source
Open Source
MIT
2,021
Python-projects
INSEAInnovationEdge
Python
Code
83
357
import pygame, sys, os SCREEN_SIZE = (400, 500) SCREEN_COLOR = pygame.Color('#FFFFFF') GAME_FRAMES = {i:pygame.image.load(os.path.join('frames', f'{i}.png')) for i in 'X,O,E,grid,Draw,O to play,X to play,reset,title,X wins,O wins'.split(',')} CASE_WIDTH = 100 pygame.init() pygame.display.set_caption('test') scre...
1,461
https://github.com/mlhartme/metadata/blob/master/src/main/java/net/oneandone/sushi/metadata/Cardinality.java
Github Open Source
Open Source
Apache-2.0
2,017
metadata
mlhartme
Java
Code
211
463
/* * Copyright 1&1 Internet AG, https://github.com/1and1/ * * 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 ap...
1,211
https://github.com/B-STB/TomP2P/blob/master/nat/src/main/java/net/tomp2p/relay/RelayRPC.java
Github Open Source
Open Source
Apache-2.0
null
TomP2P
B-STB
Java
Code
1,499
4,733
package net.tomp2p.relay; import java.io.IOException; import java.net.InetSocketAddress; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SignatureException; import java.security.spec.InvalidKeySpecException; import java.util.Collection; import java.util.Lis...
42,005
https://github.com/sakiila/algorithm/blob/master/src/main/java/me/bob/leetcode/editor/cn/ReverseLinkedList.java
Github Open Source
Open Source
Apache-2.0
null
algorithm
sakiila
Java
Code
180
518
//反转一个单链表。 // // 示例: // // 输入: 1->2->3->4->5->NULL //输出: 5->4->3->2->1->NULL // // 进阶: //你可以迭代或递归地反转链表。你能否用两种方法解决这道题? // Related Topics 链表 // 👍 1424 👎 0 package me.bob.leetcode.editor.cn; /** * 206 反转链表 * 2021-01-05 15:18:34 * 思路:递归 */ public class ReverseLinkedList { public static void main(String[]...
29,273
https://github.com/vrajur/PVIO/blob/master/pvio/src/pvio/forensics.cpp
Github Open Source
Open Source
Apache-2.0
2,022
PVIO
vrajur
C++
Code
173
447
/************************************************************************** * This file is part of PVIO * * Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. 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. * Yo...
44,131
https://github.com/groupystinks/hrmi-dataportal/blob/master/app/components/ChartBars/index.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
hrmi-dataportal
groupystinks
JavaScript
Code
411
1,537
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Box, Text, ResponsiveContext } from 'grommet'; import { intlShape, injectIntl } from 'react-intl'; // import { COLUMNS } from 'containers/App/constants'; // import AnnotateBetter from 'components/AnnotateBet...
5,771
https://github.com/manuel-tokko/jopi.js-1/blob/master/packages/alert/src/Alert.stories.js
Github Open Source
Open Source
MIT
null
jopi.js-1
manuel-tokko
JavaScript
Code
68
141
import React from 'react' import { Alert } from '.' export default { component: Alert, title: 'Design System|Alert', } export const success = () => ( <Alert text="Éxito!!! Pudiste hacer todo lo que querías y te salió pipi cucu!" /> ) export const warning = () => <Alert type="warning" text="Danger Zone!!!!" />...
41,647
https://github.com/luckygopher/mortal/blob/master/storage/cache/a7/a75b2b0829fa34bed198c9048ea42f891afda1a64649b26d364f05f52f006530.php
Github Open Source
Open Source
MIT
2,021
mortal
luckygopher
PHP
Code
299
1,286
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use Twig\Source; use Twig\Template; /* pu...
45,010
https://github.com/rooparsh/Runner/blob/master/data/src/main/java/com/darklabs/data/local/entity/Run.kt
Github Open Source
Open Source
Apache-2.0
null
Runner
rooparsh
Kotlin
Code
67
180
package com.darklabs.data.local.entity import android.graphics.Bitmap import androidx.room.Entity import androidx.room.PrimaryKey /** * Created by Rooparsh Kalia on 31/01/22 */ @Entity(tableName = "run") data class Run( @PrimaryKey(autoGenerate = true) var id: Long = 0L, var img: Bitmap? = null, var...
26,510
https://github.com/ArcherJo/sysu_18SE_DA-AA/blob/master/Lab 07/My Work/main.cpp
Github Open Source
Open Source
MIT
2,020
sysu_18SE_DA-AA
ArcherJo
C++
Code
170
677
#include <iostream> #include <ctime> #define Max_Size 21 using namespace std; class Array{ public: explicit Array(const int *); void swap(int ,int); protected: int* a; int size; int len; }; class heap_sort:Array{ public: explicit heap_sort(int *); int Max(int,int,int); void Max_family...
3,113
https://github.com/curalate/curalate-android-sdk/blob/master/src/main/java/com/curalate/android/ErrorResult.java
Github Open Source
Open Source
MIT
null
curalate-android-sdk
curalate
Java
Code
35
88
// // Copyright (c) 2011-2019 by Curalate, Inc. // package com.curalate.android; public class ErrorResult { private String msg; public String getMsg() { return msg; } public void setMsg(String msg) { this.msg = msg; } }
21,580
https://github.com/VigorBoy/UkeUtilsPlatformtest/blob/master/platformttest/Classes/KLKit/UITableView+KLKit.m
Github Open Source
Open Source
MIT
2,020
UkeUtilsPlatformtest
VigorBoy
Objective-C
Code
517
2,434
// // UITableView+KLKit.m // KLKit // // Created by liqian on 2018/03/22. // Copyright © 2018 liqian. All rights reserved. // #import "UITableView+KLKit.h" #import <objc/runtime.h> const void *kl_numberOfSectionsKey = "com.kaleo.kl_numberOfSectionsKey"; const void *kl_numberOfRowsKey = "com.kaleo.kl_numberOfRowsK...
2
https://github.com/W-Mai/WarpPI/blob/master/core/src/main/java/it/cavallium/warppi/Engine.java
Github Open Source
Open Source
Apache-2.0
2,019
WarpPI
W-Mai
Java
Code
387
1,490
package it.cavallium.warppi; import java.io.IOException; import it.cavallium.warppi.Platform.ConsoleUtils; import it.cavallium.warppi.boot.StartupArguments; import it.cavallium.warppi.device.HardwareDevice; import it.cavallium.warppi.device.HardwareTouchDevice; import it.cavallium.warppi.device.InputManager; import i...
1,529
https://github.com/Sydney-tran/sunsetcalculator/blob/master/node_modules/sunburst.js/src/lib/encoding/base64/browser.js
Github Open Source
Open Source
ISC
2,021
sunsetcalculator
Sydney-tran
JavaScript
Code
63
148
/*! * Sunburst API client library for JavaScript * https://sunsetwx.com * * Copyright (c) 2018, SunsetWx, LLC. * ISC License */ /** * Base64 module for cross-platform encoding. * @private * @module Encoding/Base64/Browser */ const Base64 = { /** * Base64 encode a string value. * @param {string} str...
46,347
https://github.com/rogertalk/roger-api/blob/master/module_api/scripts/run_tests.py
Github Open Source
Open Source
MIT
2,020
roger-api
rogertalk
Python
Code
137
422
# -*- coding: utf-8 -*- # # Run all the tests by running this in a terminal: # python -m scripts.run_tests # # Run one test by running this: # python -m scripts.run_tests test_accounts.Messages.test_message_username # # Increase verbosity by adding "-v". For more info, read the docs: # https://docs.python.org/2/library...
9,220
https://github.com/alldatacenter/alldata/blob/master/dts/airbyte/airbyte-commons/src/test/java/io/airbyte/commons/io/LineGobblerTest.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, MIT, Elastic-2.0
2,023
alldata
alldatacenter
Java
Code
134
688
/* * Copyright (c) 2023 Airbyte, Inc., all rights reserved. */ package io.airbyte.commons.io; import static org.mockito.ArgumentMatchers.*; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import com.google.common.collect.ImmutableMap; import com.google.common.util.concurrent.MoreEx...
10,271
https://github.com/dadoonet/elasticsearch/blob/master/x-pack/plugin/identity-provider/src/test/java/org/elasticsearch/xpack/idp/saml/authn/FailedAuthenticationResponseBuilderTests.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-elastic-license-2018, LicenseRef-scancode-other-permissive, Elastic-2.0
2,020
elasticsearch
dadoonet
Java
Code
192
783
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.idp.saml.authn; import org.elasticsearch.xpa...
20,217
https://github.com/lwh31415/WeChatTimeLineRobot/blob/master/OutPutHeaders/CDNDnsInfo.h
Github Open Source
Open Source
MIT
2,019
WeChatTimeLineRobot
lwh31415
Objective-C
Code
83
285
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import "WXPBGeneratedMessage.h" @class SKBuiltinBuffer_t, NSMutableArray, NSString; @interface CDNDnsInfo : WXPBGeneratedMessage { } @property(retain, nonatomic) NS...
48,861
https://github.com/josephcbaca/react-fullstack-authentication-template/blob/master/client/src/components/navbar.js
Github Open Source
Open Source
Unlicense
null
react-fullstack-authentication-template
josephcbaca
JavaScript
Code
49
165
import React, {useEffect} from "react"; import axios from "axios"; import mojs from "@mojs/core"; function Navbar({ loggedIn }) { function logout() { axios.get("/logout").then(window.location.replace("/")); } return ( <div className="container d-flex"> <h3 className="nav-name">Application</h3> ...
142
https://github.com/clementval/OpenACCV-V/blob/master/Tests/parallel.f90
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,019
OpenACCV-V
clementval
Fortran Free Form
Code
486
1,352
INTEGER FUNCTION test() IMPLICIT NONE INCLUDE "acc_testsuite.fh" INTEGER :: x, i_a, i_b, i_c, i_d, i_e, i_f, i_g, i_h, i_i, & i_j !Iterators INTEGER, PARAMETER :: PRIVATE_LOOPCOUNT = 1024 REAL(8),DIMENSION(PRIVATE_LOOPCOUNT):: a, b, c !Data INTEGER :: e...
34,331
https://github.com/julekgwa/task-manager/blob/master/packages/backend/logger/logger.js
Github Open Source
Open Source
Apache-2.0
null
task-manager
julekgwa
JavaScript
Code
49
158
const bunyan = require('bunyan'); const {formatTime} = require('../utils/utils'); const LOG_LEVEL = process.env.LOG_LEVEL || 'info'; function reqSerializer(req) { return { method: req.method, url: req.url }; } const log = bunyan.createLogger({ name: 'todo-app-logger', serializers: { req: reqSeria...
47,253
https://github.com/rifflearning/jitsi-meet-mobile/blob/master/react/features/riff-platform/reducer/meeting.js
Github Open Source
Open Source
MIT, Apache-2.0
2,021
jitsi-meet-mobile
rifflearning
JavaScript
Code
47
133
import * as actionTypes from '../constants/actionTypes'; export default (state = {}, action) => { switch (action.type) { case actionTypes.MEETING_REQUEST: return { loading: true }; case actionTypes.MEETING_SUCCESS: return { meeting: action.meeting }; case actionTypes.MEETING_FAILURE: ...
46,224
https://github.com/axax/lunuc/blob/master/extensions/cronjob/cronjobUtil.js
Github Open Source
Open Source
MIT
2,021
lunuc
axax
JavaScript
Code
274
858
import GenericResolver from 'api/resolver/generic/genericResolver' import {ObjectId} from 'mongodb' import crypto from 'crypto' import fs from 'fs' import readline from 'readline' import { spawn } from 'child_process' import path from 'path' const cronjobUtil = { runCronJob: async (props, callback) => { ...
35,582
https://github.com/olbeimarton/RCy3/blob/master/man/exportVisualStyles.Rd
Github Open Source
Open Source
MIT
2,018
RCy3
olbeimarton
R
Code
146
342
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Styles.R \name{exportVisualStyles} \alias{exportVisualStyles} \title{Export Visual Styles} \usage{ exportVisualStyles(filename = NULL, type = NULL, styles = NULL, base.url = .defaultBaseUrl) } \arguments{ \item{filename}{(char) Name of the ...
13,075
https://github.com/NCIP/c3pr/blob/master/codebase/projects/web/src/java/edu/duke/cabig/c3pr/web/study/tabs/StudyInvestigatorsTab.java
Github Open Source
Open Source
BSD-3-Clause
2,017
c3pr
NCIP
Java
Code
350
1,688
/******************************************************************************* * Copyright Duke Comprehensive Cancer Center and SemanticBits * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/c3pr/LICENSE.txt for details. ***************************************************...
19,085
https://github.com/6d6a/hms-personmgr/blob/master/src/main/java/ru/majordomo/hms/personmgr/dto/domainTransfer/DomainTransferConfirmation.java
Github Open Source
Open Source
Apache-2.0
null
hms-personmgr
6d6a
Java
Code
47
206
package ru.majordomo.hms.personmgr.dto.domainTransfer; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Pattern; @Data @JsonIgnoreProperties(ignoreU...
49,667
https://github.com/mstover/coinjema/blob/master/test/config1/custom/not_included/BasicContextOriented.setPaths.groovy
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-public-domain
2,010
coinjema
mstover
Groovy
Code
3
11
["exc1","exc2"] as String[]
21,561
https://github.com/masayuki14/hannari-python-3/blob/master/run.sh
Github Open Source
Open Source
MIT
2,018
hannari-python-3
masayuki14
Shell
Code
37
169
# Dockerfile をビルド docker build -t hannary-python-3 . # jupyter notebook をdockerで立ち上げるコマンド docker run -it --rm -v $(pwd)/notebook:/root/notebook -p 80:8888 hannary-python-3 ## docker container 内で実行するコマンド # at /root/notebook # jupyter notebook --ip=0.0.0.0 --allow-root # 気象庁データダウンロード # http://www.data.jma.go.jp/gmd/ri...
13,231
https://github.com/domwillcode/home-assistant/blob/master/homeassistant/components/worldclock/__init__.py
Github Open Source
Open Source
Apache-2.0
2,020
home-assistant
domwillcode
Python
Code
3
8
"""The worldclock component."""
25,974
https://github.com/luoningzhengrou/web/blob/master/app/Http/Controllers/TestController.php
Github Open Source
Open Source
MIT
null
web
luoningzhengrou
PHP
Code
31
79
<?php /** * Created by PhpStorm. * User: Frank.F * Date: 2018/12/21 * Time: 11:33 */ namespace App\Http\Controllers; class TestController extends Controller { public function index(){ echo 'Hello World!'; } }
47,754
https://github.com/arezamoosavi/messenger-app/blob/master/backend/src/apps/chat/urls.py
Github Open Source
Open Source
MIT
null
messenger-app
arezamoosavi
Python
Code
37
197
from django.contrib.auth.views import LogoutView from django.urls import path from . import views app_name = 'chat' urlpatterns = [ path('chat/<int:sender>/<int:receiver>', views.message_view, name='chat'), path('api/messages/<int:sender>/<int:receiver>', views.message_list, name='message-detail'), path('a...
21,909
https://github.com/DeltaFi/Computer-Noise-Controller/blob/master/CharlesLohrExample/frequencies.h
Github Open Source
Open Source
MIT
null
Computer-Noise-Controller
DeltaFi
C
Code
106
358
#define CDIV 857 unsigned short notes[] PROGMEM = { 54, 57, 61, 64, 68, 72, 76, 81, 86, 91, 96, 102, 108, 114, 121, 128, 136, 144, 153, 162, 171, 182, 192, 204, 216, 229, 242, 257, 272, 288, 305, 324, 343, 363, 385, 408, 432, ...
39,329
https://github.com/alexs-mparticle/mparticle-javascript-integration-optimizely/blob/master/test/boilerplate/test-index.js
Github Open Source
Open Source
Apache-2.0
2,018
mparticle-javascript-integration-optimizely
alexs-mparticle
JavaScript
Code
53
166
window.MockHttpServer = require('./mockhttprequest.js'); window.Should = require('should'); var mp = function () { var self = this; this.addForwarder = function (forwarder) { self.forwarder = new forwarder.constructor(); }; this.getCurrentUser = function() { return currentUser(); ...
14,012
https://github.com/VivekMaran27/How-to-install-SimpleScalar-on-Ubuntu/blob/master/build/binutils-2.5.2/gas/testsuite/gas/hppa/more.parse/fixup7bug.s
Github Open Source
Open Source
MIT
null
How-to-install-SimpleScalar-on-Ubuntu
VivekMaran27
GAS
Code
11,626
69,933
.SPACE $PRIVATE$ .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 .SPACE $TEXT$ .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY .IMPORT $global$,DATA .IMPORT $$dyncall,MILLICODE ; gcc_compiled.: .IMPORT xmalloc,CODE .IMPORT _o...
50,618
https://github.com/RonRahaman/nekRS/blob/master/3rd_party/hypre/src/parcsr_mv/HYPRE_parcsr_vector.c
Github Open Source
Open Source
BSD-3-Clause
2,022
nekRS
RonRahaman
C
Code
457
1,862
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
22,467
https://github.com/Nick-Fanelli/FtcRobotController/blob/master/TeamCode/src/main/java/com/bravenatorsrobotics/freightfrenzy/subsystem/AbstractController.java
Github Open Source
Open Source
MIT
null
FtcRobotController
Nick-Fanelli
Java
Code
21
90
package com.bravenatorsrobotics.freightfrenzy.subsystem; import com.bravenatorsrobotics.common.operation.OperationMode; public abstract class AbstractController { protected OperationMode<?> operationMode; public AbstractController(OperationMode<?> operationMode) { this.operationMode = operationMode;...
4,209
https://github.com/predatorpc/esalat/blob/master/modules/actions/models/ActionsAccumulationSearch.php
Github Open Source
Open Source
BSD-3-Clause
2,017
esalat
predatorpc
PHP
Code
199
681
<?php namespace app\modules\actions\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\modules\actions\models\ActionsAccumulation; /** * ActionsAccumulationSearch represents the model behind the search form about `app\modules\actions\models\ActionsAccumulation`. */ class ActionsAccumula...
38,202
https://github.com/Yelp/gh-kit/blob/master/Classes/GHNSObject+Invocation.h
Github Open Source
Open Source
MIT
2,021
gh-kit
Yelp
C
Code
861
1,908
// // GHNSObject+Invocation.h // GHKit // // Created by Gabriel Handford on 1/18/09. // Copyright 2009. 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 witho...
50,125
https://github.com/mbcraft/RegiaPNServer/blob/master/src/resources/views/admin/customers/menu.blade.php
Github Open Source
Open Source
MIT
null
RegiaPNServer
mbcraft
PHP
Code
47
238
<li class="menu-dropdown {{ (Request::is('admin/customers') || Request::is('admin/customers/create') || Request::is('admin/customers/*') ? 'active' : '') }}"> <a href="#"> <?= FA::webApplication_Users(['menu-icon','fa-fw']) ?> <span>{{ lang("customers/menu.root") }}</span> <span class="fa ar...
16,568
https://github.com/j3270/SAMD_Experiments/blob/master/xdk-asf-3.51.0/avr32/services/dsp/dsplib/conception/operators/fixed_point_pow.sci
Github Open Source
Open Source
MIT
null
SAMD_Experiments
j3270
Scilab
Code
37
157
// Fixed point 16-bit cosine and sine clear function res=pow_test(x, y) res = 0; a = y*log(x); res = exp(a); endfunction; e_moy = 0; for nbr=-1:0.1:1, printf("0.0045^%f\t%.11f %.11f\n", nbr, 0.1^nbr, pow_test(0.0045, nbr)); end; printf("Error average: %.11f\n", e_moy/length(-1:0.1:1));
47,840
https://github.com/trustex/phala-miner-deployer/blob/master/templates/rc-script.sh
Github Open Source
Open Source
MIT
2,021
phala-miner-deployer
trustex
Shell
Code
120
419
#!/bin/bash ### BEGIN INIT INFO # Provides: {{service_name}} # Required-Start: $all # Required-Stop: $local_fs $network $named $time $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Description: Phala.network full stack service ### END INIT INFO SUBSYSFILE=/var/lock/subsys/{{ser...
26,124
https://github.com/userdashboard/dashboard/blob/master/src/www/account/signin.js
Github Open Source
Open Source
MIT
2,020
dashboard
userdashboard
JavaScript
Code
266
851
const dashboard = require('../../../index.js') module.exports = { get: renderPage, post: submitForm } function renderPage (req, res, messageTemplate) { const doc = dashboard.HTML.parse(req.html || req.route.html) if (messageTemplate) { dashboard.HTML.renderTemplate(doc, null, messageTemplate, 'message-con...
28,357
https://github.com/henrmont/infinityaion.com.br/blob/master/src/Repository/InventoryRepository.php
Github Open Source
Open Source
MIT
null
infinityaion.com.br
henrmont
PHP
Code
150
525
<?php namespace App\Repository; use App\Entity\Inventory; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Common\Persistence\ManagerRegistry; /** * @method Inventory|null find($id, $lockMode = null, $lockVersion = null) * @method Inventory|null findOneBy(array $criteria, array $...
18,167
https://github.com/mitodl/mitxpro/blob/master/static/js/Router.js
Github Open Source
Open Source
BSD-3-Clause
2,023
mitxpro
mitodl
JavaScript
Code
77
214
import React from "react" import { Route, Router as ReactRouter } from "react-router" import { Provider } from "react-redux" import App from "./containers/App" import withTracker from "./util/withTracker" import ScrollToTop from "./components/ScrollToTop" export default class Root extends React.Component { props: {...
13,615
https://github.com/Dochko0/Programming-Basics-March-2017/blob/master/07.DrawingsLoops/src/com/company/fourth.java
Github Open Source
Open Source
MIT
2,018
Programming-Basics-March-2017
Dochko0
Java
Code
79
187
package com.company; import java.util.Scanner; /** * Created by User on 11.4.2017 г.. */ public class fourth { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); for (int i = 0; i < n; i++) { Syst...
45,125
https://github.com/next-time-space/analligence-chrome-ghost/blob/master/popup.js
Github Open Source
Open Source
Apache-2.0
null
analligence-chrome-ghost
next-time-space
JavaScript
Code
114
342
document.getElementById("save").addEventListener("click", function(e) { var input = document.getElementById('file'); var node = document.getElementById('output'); var host = document.getElementById('host').value; var url = document.getElementById('url').value; var reader = new FileReader(); reader.onload =...
48,092
https://github.com/codexvn/PTA/blob/master/L2-025/L2-025.cpp
Github Open Source
Open Source
MIT
null
PTA
codexvn
C++
Code
155
430
#include <iostream> #include <vector> using namespace std; int main() { std::ios::sync_with_stdio(false); int N, M, from, to; cin >> N >> M; vector<int> *data = new vector<int>[N + 1]; vector<bool> flag; for (int i = 0; i < M; ++i) { cin >> from >> to; data[from].push_back(to);...
13,190
https://github.com/Delcior/linux3/blob/master/vim-8.1.0875/src/vim-basic/testdir/test_put.vim
Github Open Source
Open Source
Vim
2,021
linux3
Delcior
Vim Script
Code
1
11
../../testdir/test_put.vim
30,984
https://github.com/desertwitch/pigallery2/blob/master/src/backend/model/database/sql/enitites/album/AlbumBaseEntity.ts
Github Open Source
Open Source
MIT
2,022
pigallery2
desertwitch
TypeScript
Code
77
256
import {Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, TableInheritance} from 'typeorm'; import {MediaEntity} from '../MediaEntity'; import {columnCharsetCS} from '../EntityUtils'; import {AlbumBaseDTO} from '../../../../../../common/entities/album/AlbumBaseDTO'; @Entity() @TableInheritance({column: {type: ...
417
https://github.com/octet-stream/ponyfiction-js/blob/master/frontend/src/layout/Page.tsx
Github Open Source
Open Source
MIT
2,019
ponyfiction-js
octet-stream
TypeScript
Code
14
35
import {FC} from "react" const PageLayout: FC = ({children}) => <div>{children}</div> export default PageLayout
10,076
https://github.com/jianqili/llvm-semantics/blob/master/tests/regression/c-semantics-tests/gcc-torture/pr40057.opt.ll
Github Open Source
Open Source
MIT
2,015
llvm-semantics
jianqili
LLVM
Code
246
784
; ModuleID = '/home/david/src/c-semantics/tests/gcc-torture/pr40057.c' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" define i32 @foo(i64 %x) nounwind uwta...
36,919
https://github.com/yongjhih/bundletool/blob/master/src/test/java/com/android/tools/build/bundletool/commands/DumpManagerTest.java
Github Open Source
Open Source
Apache-2.0
2,020
bundletool
yongjhih
Java
Code
985
4,757
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
13,621
https://github.com/guangyingzheng/yang/blob/master/network-router/8.9.10/huawei/huawei-sshc-action.yang
Github Open Source
Open Source
Apache-2.0
2,020
yang
guangyingzheng
YANG
Code
635
1,724
/* Copyright (C) 2013-2017 Huawei Technologies Co., Ltd. All rights reserved. */ submodule huawei-sshc-action { belongs-to huawei-sshc { prefix sshc; } import huawei-pub-type { prefix pub-type; } import ietf-inet-types { prefix inet; } import huawei-extension { prefix ext; } include hu...
10,649
https://github.com/dodushka/teamcity-agent-android/blob/master/update-emulator.sh
Github Open Source
Open Source
MIT
2,020
teamcity-agent-android
dodushka
Shell
Code
31
228
#!/bin/bash if [ -n "$EMULATOR_PLATFORM" ]; then export EMULATOR_PACKAGE="system-images;$EMULATOR_PLATFORM;$EMULATOR_VARIANT;$EMULATOR_ABI" export EMULATOR_VARIANT_ABI="$EMULATOR_VARIANT/$EMULATOR_ABI" echo "Updating emulator package $EMULATOR_PACKAGE" $ANDROID_HOME/tools/bin/sdkmanager "emulator" $...
1,400
https://github.com/shaynevanasperen/coinbase-client-websocket/blob/master/src/Coinbase.Client.Websocket/Responses/TradeSide.cs
Github Open Source
Open Source
Apache-2.0
null
coinbase-client-websocket
shaynevanasperen
C#
Code
21
55
namespace Coinbase.Client.Websocket.Responses; /// <summary> /// Trade side - buy or sell /// </summary> public enum TradeSide { Undefined, Buy, Sell }
232
https://github.com/AlexScigalszky/weather/blob/master/frontend/src/app/shared/service/utils.service.ts
Github Open Source
Open Source
Apache-2.0
null
weather
AlexScigalszky
TypeScript
Code
657
1,839
import { Injectable } from '@angular/core'; import { ValidatorFn, AbstractControl, Validators } from '@angular/forms'; @Injectable({ providedIn: 'root', }) export class UtilsService { public sortBy(data: any[], field: string): any[] { return data.sort((a, b) => { if (!a[field] || !b[field]) return -1; ...
8,129
https://github.com/osgirl/ecommerce-framework/blob/master/framework/ecommerce-framework-api/src/main/java/com/sdl/ecommerce/api/model/ProductRef.java
Github Open Source
Open Source
Apache-2.0
2,019
ecommerce-framework
osgirl
Java
Code
59
153
package com.sdl.ecommerce.api.model; /** * ProductRef * * @author nic */ public class ProductRef { private String id; private String name; public ProductRef(Product product) { this.id = product.getId(); this.name = product.getName(); } public ProductRef(String id, String name...
39,409
https://github.com/LiarrDev/ViewPagerPlayerDemo/blob/master/app/src/main/java/io/liarr/viewpagerplayerdemo/MainActivity.kt
Github Open Source
Open Source
Apache-2.0
null
ViewPagerPlayerDemo
LiarrDev
Kotlin
Code
89
354
package io.liarr.viewpagerplayerdemo import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.fragment.app.Fragment import androidx.viewpager2.adapter.FragmentStateAdapter import com.google.android.material.tabs.TabLayoutMediator import io.liarr.viewpagerplayerdemo.databinding.ActivityM...
22,190
https://github.com/PaleoCrafter/CurseSync/blob/master/src/main/java/de/mineformers/cursesync/gui/MainController.java
Github Open Source
Open Source
MIT
2,017
CurseSync
PaleoCrafter
Java
Code
310
1,301
package de.mineformers.cursesync.gui; import com.google.common.base.Joiner; import com.google.inject.Inject; import com.google.inject.name.Named; import de.mineformers.cursesync.sync.CurseAPI; import de.mineformers.cursesync.sync.model.CurseProject; import javafx.geometry.Pos; import javafx.scene.control.Label; import...
43,925