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/apache/airavata/blob/master/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java | Github Open Source | Open Source | Apache-2.0, Plexus, BSD-3-Clause, LicenseRef-scancode-jdom, BSD-2-Clause | 2,023 | airavata | apache | Java | Code | 1,730 | 7,035 | /**
* 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... | 13,138 |
https://github.com/SiyuanQi/intentMARL/blob/master/src/python/simengine.py | Github Open Source | Open Source | MIT | 2,021 | intentMARL | SiyuanQi | Python | Code | 541 | 2,095 | """
Created on Aug 20, 2017
@author: Siyuan Qi
Description of the file.
"""
try:
import vrep
except ImportError:
print ('--------------------------------------------------------------')
print ('"vrep.py" could not be imported. This means very probably that')
print ('either "vrep.py" or the remoteApi... | 4,024 |
https://github.com/GMAO-SI-Team/jedi-stack/blob/master/buildscripts/libs/NCEPlibs/src/w3emc/v2.2.0/src/w3ai41.f | Github Open Source | Open Source | Apache-2.0 | 2,021 | jedi-stack | GMAO-SI-Team | null | Spoken | 474 | 1,279 | SUBROUTINE W3AI41(KFLD,KOUT,KLEN,KNUM,KOFF)
C$$$ SUBPROGRAM DOCUMENTATION BLOCK ***
C . . . .
C SUBPROGRAM: W3AI41 CONSTANT SIZE BINARY STRING UNPACKER
C PRGMMR: ALLARD, R. ORG: W342 DATE: 80-04-01
C
C ABSTRACT: UNPACK CONSE... | 33,228 |
https://github.com/robotfan4/ompl/blob/master/src/ompl/geometric/planners/est/EST.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ompl | robotfan4 | C | Code | 806 | 1,718 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | 36,299 |
https://github.com/allisonsierra/cyclonedx-rust-cargo/blob/master/cyclonedx-bom/src/models/composition.rs | Github Open Source | Open Source | Apache-2.0 | null | cyclonedx-rust-cargo | allisonsierra | Rust | Code | 224 | 658 | /*
* This file is part of CycloneDX Rust Cargo.
*
* 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 l... | 11,118 |
https://github.com/iootclab/openjdk/blob/master/openjdk11/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage006.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | openjdk | iootclab | Java | Code | 517 | 1,119 | /*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 28,643 |
https://github.com/JetBrains/intellij-community/blob/master/java/java-analysis-impl/src/com/siyeh/ig/packaging/DisjointPackageInspection.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Java | Code | 354 | 1,200 | /*
* Copyright 2006-2011 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 34,116 |
https://github.com/Mashashi/mapreduceintro/blob/master/test5/TaggedJoiningGroupingComparator.java | Github Open Source | Open Source | MIT | null | mapreduceintro | Mashashi | Java | Code | 47 | 231 | package solutions.assignment5;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;
public class TaggedJoiningGroupingComparator extends WritableComparator {
public TaggedJoiningGroupingComparator() {
super(TaggedKey.class,true);
}
@Override
@Suppr... | 15,048 |
https://github.com/Deftwun/ZombieCopter/blob/master/core/src/com/deftwun/zombiecopter/components/HelicopterComponent.java | Github Open Source | Open Source | MIT | 2,022 | ZombieCopter | Deftwun | Java | Code | 45 | 165 | package com.deftwun.zombiecopter.components;
import com.badlogic.ashley.core.Component;
import com.badlogic.gdx.utils.Pool.Poolable;
public class HelicopterComponent extends Component implements Poolable{
public float verticalPower,
lateralPower,
topSpeed,
maxAltitude;
//public Vector2 vector = new V... | 40,698 |
https://github.com/huyphuctt/amts/blob/master/resources/sass/border.scss | Github Open Source | Open Source | MIT | 2,023 | amts | huyphuctt | SCSS | Code | 124 | 469 | .border {
border: 1px solid #dee2e6 !important;
}
.border-top {
border-top: 1px solid #dee2e6 !important;
}
.border-right {
border-right: 1px solid #dee2e6 !important;
}
.border-bottom {
border-bottom: 1px solid #dee2e6 !important;
}
.border-left {
border-left: 1px solid ... | 22,042 |
https://github.com/smmckay/quex-mirror/blob/master/quex/engine/state_machine/TEST/test-StateInfo-has_trigger.py | Github Open Source | Open Source | MIT | null | quex-mirror | smmckay | Python | Code | 89 | 340 | #! /usr/bin/env python
import sys
import os
sys.path.insert(0, os.environ["QUEX_PATH"])
import quex.input.regular_expression.engine as core
if "--hwut-info" in sys.argv:
print "Trigger Set Check: Has Trigger "
sys.exit(0)
def test(TestString, StartCharacterList):
print "______________________________... | 28,739 |
https://github.com/Loksu/vtr-verilog-to-routing/blob/master/libs/EXTERNAL/libtatum/libtatum/tatum/TimingReporter.hpp | Github Open Source | Open Source | MIT | null | vtr-verilog-to-routing | Loksu | C++ | Code | 471 | 2,087 | #ifndef TATUM_TIMING_REPORTER_HPP
#define TATUM_TIMING_REPORTER_HPP
#include <iosfwd>
#include "tatum/TimingGraphFwd.hpp"
#include "tatum/TimingConstraintsFwd.hpp"
#include "tatum/timing_analyzers.hpp"
#include "tatum/TimingGraphNameResolver.hpp"
#include "tatum/report/TimingPath.hpp"
#include "tatum/report/TimingPath... | 45,470 |
https://github.com/akozlik/brigadehub/blob/master/controllers/checkin/getCheckin.js | Github Open Source | Open Source | DOC | 2,016 | brigadehub | akozlik | JavaScript | Code | 49 | 186 | const defaultSkills = require('../../config/defaultSkills.json')
const defaultLocations = require('../../config/defaultLocations.json')
const defaultReferredBy = require('../../config/defaultReferredBy.json')
// TODO(therebelrobot): Move these into manage checkin page
module.exports = function getCheckin (req, res, ne... | 24,155 |
https://github.com/secure-software-engineering/secucheck/blob/master/de.fraunhofer.iem.secucheck.InternalFluentTQL/src/main/java/de/fraunhofer/iem/secucheck/InternalFluentTQL/dsl/TaintFlowQueryImpl.java | Github Open Source | Open Source | MIT | 2,021 | secucheck | secure-software-engineering | Java | Code | 272 | 1,005 | package de.fraunhofer.iem.secucheck.InternalFluentTQL.dsl;
import de.fraunhofer.iem.secucheck.InternalFluentTQL.dsl.CONSTANTS.LOCATION;
import de.fraunhofer.iem.secucheck.InternalFluentTQL.fluentInterface.Query.TaintFlowQuery;
import de.fraunhofer.iem.secucheck.InternalFluentTQL.fluentInterface.TaintFlowPackage.FlowPa... | 11,009 |
https://github.com/JetBrains/android/blob/master/lint/tests/testData/lint/addSuperCallSuppress.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | android | JetBrains | Kotlin | Code | 40 | 115 | @file:Suppress("unused")
package p1.p2
import android.support.annotation.CallSuper
class SuperTest {
open class Parent() {
@CallSuper open fun bar(arg: String) { }
}
class Child : Parent() {
override fun <error descr="Overriding method should call `super.bar`">bar<caret></error>(arg: Str... | 39,556 |
https://github.com/aanno/xmlresolver/blob/master/src/test/java/org/xmlresolver/DataTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | xmlresolver | aanno | Java | Code | 7,314 | 35,536 | package org.xmlresolver;
import org.junit.Before;
import org.junit.Test;
import java.net.URI;
import java.util.Collections;
import static org.junit.Assert.assertNotNull;
public class DataTest {
public static XMLResolverConfiguration config = null;
public static CatalogManager manager = null;
@Before
... | 54,070 |
https://github.com/MassivDash/gozdowski/blob/master/partials/site-nav.hbs | Github Open Source | Open Source | MIT | null | gozdowski | MassivDash | null | Spoken | 73 | 412 | <nav class="site-nav">
<div class="site-nav-holder">
<div class="site-nav-brand">
<h1 class="site-title">
{{#if @site.logo}}
<img class="site-logo" src="{{img_url @site.logo size="l"}}" alt="{{@site.title}}" />
{{else}}
{{@sit... | 13,518 |
https://github.com/monaca/incubator-cordova-weinre/blob/master/weinre.web/modules/weinre/client/DOMTemplates.coffee | Github Open Source | Open Source | Apache-2.0 | 2,022 | incubator-cordova-weinre | monaca | CoffeeScript | Code | 290 | 654 |
#---------------------------------------------------------------------------------
# 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 ... | 1,627 |
https://github.com/haampie/DLA-Future/blob/master/test/unit/test_matrix.cpp | Github Open Source | Open Source | BSD-3-Clause | null | DLA-Future | haampie | C++ | Code | 3,771 | 13,852 | //
// Distributed Linear Algebra with Future (DLAF)
//
// Copyright (c) 2018-2019, ETH Zurich
// All rights reserved.
//
// Please, refer to the LICENSE file in the root directory.
// SPDX-License-Identifier: BSD-3-Clause
//
#include "dlaf/matrix.h"
#include "dlaf/matrix/copy.h"
#include <vector>
#include "gtest/gtes... | 20,976 |
https://github.com/BicanMarianValeriu/wecodeart-framework/blob/master/inc/core/class-core.php | Github Open Source | Open Source | MIT | 2,022 | wecodeart-framework | BicanMarianValeriu | PHP | Code | 478 | 1,497 | <?php
/**
* WeCodeArt Framework.
*
* WARNING: This file is part of the core WeCodeArt Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package WeCodeArt Framework
* @subpackage Core
* @copyright Copyright (c) 2021, WeCodeArt Framework... | 43,916 |
https://github.com/stephenh/bindgen/blob/master/examples/src/main/java/org/bindgen/example/Parents.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | bindgen | stephenh | Java | Code | 70 | 196 | package org.bindgen.example;
import org.bindgen.Bindable;
public class Parents {
@Bindable
public static class Foo {
public String bar;
public String getBaz() {
return "baz";
}
public String toString() {
return "foo";
}
}
@Bindable
public static class FooChild {
public Foo foo;
public St... | 50,849 |
https://github.com/xbrianh/terra-notebook-utils/blob/master/tests/test_costs.py | Github Open Source | Open Source | MIT | 2,022 | terra-notebook-utils | xbrianh | Python | Code | 54 | 222 | #!/usr/bin/env python
import os
import sys
import unittest
pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # noqa
sys.path.insert(0, pkg_root) # noqa
from tests import config
from terra_notebook_utils import costs
class TestTerraNotebookUtilsCosts(unittest.TestCase):
def test_costs_e... | 11,463 |
https://github.com/heng-star/java-project-template/blob/master/lvmoney-frame-base/lvmoney-frame-base-core/src/main/java/com/lvmoney/frame/base/core/util/YmlUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | java-project-template | heng-star | Java | Code | 239 | 922 | package com.lvmoney.frame.base.core.util;/**
* 描述:
* 包名:com.lvmoney.frame.base.core.util
* 版本信息: 版本1.0
* 日期:2020/6/15
* Copyright XXXXXX科技有限公司
*/
import cn.hutool.core.convert.Convert;
import cn.hutool.core.text.StrSpliter;
import cn.hutool.core.util.StrUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... | 2,830 |
https://github.com/barajas123/go-lib-rabbit/blob/master/main.go | Github Open Source | Open Source | MIT | null | go-lib-rabbit | barajas123 | Go | Code | 30 | 133 | package main
import (
"github.com/barajas123/go-lib-rabbit/rabbit"
"github.com/sirupsen/logrus"
"os"
)
func main() {
p := rabbit.NewRabbitWithFanout("raw")
m := os.Args
err := p.PublishMessage(m[1])
if err != nil {
logrus.Errorf(err.Error())
return
}
logrus.Info("Success")
}
| 1,392 |
https://github.com/dburdick/react-f7-starterkit/blob/master/app/scripts/main.js | Github Open Source | Open Source | MIT | 2,015 | react-f7-starterkit | dburdick | JavaScript | Code | 41 | 141 | import React from 'react';
import Router from 'react-router';
import routes from './routes';
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
Rout... | 50,227 |
https://github.com/pherval/dashboard/blob/master/test/factories/NavItem.ts | Github Open Source | Open Source | MIT | null | dashboard | pherval | TypeScript | Code | 49 | 125 | import { Factory } from "fishery";
import casual from "casual";
import { BsEmojiDizzy as Icon } from "react-icons/bs";
import { IconType } from "react-icons";
type NavItem = {
title: string;
to: string;
Icon: IconType;
};
export default Factory.define<NavItem>(() => {
return {
title: casual.title,
to:... | 5,152 |
https://github.com/kylemellander/ember-data-test-id/blob/master/tests/dummy/app/templates/iterating.hbs | Github Open Source | Open Source | MIT | null | ember-data-test-id | kylemellander | null | Spoken | 27 | 108 | <h1>Adding index</h1>
{{#each model as |cereal index|}}
{{cereal}}: {{data-test dataTestSuffix=index}}<br />
{{/each}}
<h1>Adding dasherized version of value</h1>
{{#each model as |cereal index|}}
{{cereal}}: {{data-test dataTestSuffix=cereal}}<br />
{{/each}}
| 35,251 |
https://github.com/skyland31/PHP_Codeigniter/blob/master/application/views/activity/content.php | Github Open Source | Open Source | MIT | null | PHP_Codeigniter | skyland31 | PHP | Code | 120 | 630 | <div class="container">
<h3>บันทึกกิจกรรม</h3><br>
<?php
echo change_date_format('1992-01-19');
?>
<div class="row">
<div class="col-md-12">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="ชื่อกิจกรรม" aria-label="Recipient's username ... | 5,914 |
https://github.com/dengue8830/react-native-saas-seed/blob/master/src/models/errores.ts | Github Open Source | Open Source | MIT | null | react-native-saas-seed | dengue8830 | TypeScript | Code | 253 | 473 | /**
* Errores posibles en la app. Tanto de logica de negocio como runtime.
* El objetivo es poder tratarlo de forma limpia e uniforme al estilo
* switch(error.message) { case Errores.Desconocido: ... };
* y que sirva para cualquier error posible, red, custom, etc.
*/
export enum Errores {
/** Usado en parseo de ... | 52,840 |
https://github.com/lordxer0/pruebagestion/blob/master/resources/views/resourcesxuser/historical.blade.php | Github Open Source | Open Source | MIT | null | pruebagestion | lordxer0 | PHP | Code | 132 | 623 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div id="alert">
@include('flash-message')
</div>
<div id='list'>
<div class="row">
<di... | 3,576 |
https://github.com/a-menshchikov/phan/blob/master/tests/plugin_test/src/137_negated_empty_if_statement.php | Github Open Source | Open Source | BSD-3-Clause, 0BSD, Apache-2.0, MIT | 2,022 | phan | a-menshchikov | PHP | Code | 25 | 47 | <?php
if (!rand(0,1)) {
} else {
}
// As a matter of code style, phan allows empty `else`, but not an empty `elseif/else if`
| 17,882 |
https://github.com/dantin/cub/blob/master/auth/scram.go | Github Open Source | Open Source | BSD-3-Clause | 2,020 | cub | dantin | Go | Code | 921 | 3,147 | package auth
import (
"bytes"
"context"
"crypto/hmac"
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
"encoding/base64"
"fmt"
"hash"
"strings"
"github.com/dantin/cubit/model"
"github.com/dantin/cubit/storage/repository"
"github.com/dantin/cubit/stream"
"github.com/dantin/cubit/transport"
utilrand "github... | 9,984 |
https://github.com/jeffdinotoriverbed/neo4j-java-driver/blob/master/driver/src/test/java/org/neo4j/driver/internal/async/outbound/ChunkAwareByteBufOutputTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | neo4j-java-driver | jeffdinotoriverbed | Java | Code | 1,336 | 4,170 | /*
* Copyright (c) 2002-2019 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... | 31,138 |
https://github.com/laboratoriobridge/bold/blob/master/src/components/Paper/Paper.stories.tsx | Github Open Source | Open Source | MIT | 2,022 | bold | laboratoriobridge | TypeScript | Code | 52 | 136 | import React from 'react'
import { Heading } from '../Heading'
import { Text } from '../Text'
import { Paper } from './Paper'
export default {
title: 'Components/Paper',
}
export const Default = () => (
<Paper elevation={20} style={{ marginBottom: '2rem', marginTop: '0.5rem', padding: '1rem' }}>
<Heading le... | 50,865 |
https://github.com/mapattacker/cheatsheets/blob/master/web development/php_basics.php | Github Open Source | Open Source | MIT | 2,021 | cheatsheets | mapattacker | PHP | Code | 1,207 | 3,173 | <?php
// basics
phpinfo() //give php version, configuration, etc.
// string multiple lines, use backticks
// however, only for strings, variables will not show up
`This is
a multi-line
sentence.
`
?>
<!-- Database Access & Query -->
<?php
// access mysql database access parameters
// config f... | 46,554 |
https://github.com/yiqinglin/daily-active-questions/blob/master/src/client/app/composers/queries/withUser.js | Github Open Source | Open Source | MIT | null | daily-active-questions | yiqinglin | JavaScript | Code | 50 | 133 | // @flow
import { graphql, compose } from 'react-apollo';
import gql from 'graphql-tag';
const QUERY = gql`
query user {
user {
id
avatar
displayName
registeredAt
}
}`;
const mapDataToProps = result => ({
user: result.data.user,
isFetching: result.data.loading
});
const withUser = graphql(QUERY... | 8,147 |
https://github.com/elix22/IogramSource/blob/master/Components/Scene_GetGlobalVar.cpp | Github Open Source | Open Source | MIT | 2,022 | IogramSource | elix22 | C++ | Code | 286 | 704 | //
// Copyright (c) 2016 - 2017 Mesh Consultants Inc.
// 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, ... | 8,558 |
https://github.com/AStuive/Nbackmodel/blob/master/src/src/actr/tasks/driving/Simulator.java | Github Open Source | Open Source | MIT | 2,021 | Nbackmodel | AStuive | Java | Code | 71 | 215 | package actr.tasks.driving;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
/**
* The visual simulator as a JPanel.
*
* @author Dario Salvucci
*/
public class Simulator extends JPanel
{
Simulation sim = null;
public Simulator ()
{
super ();
setOpaque (true);
setBackground ... | 46,576 |
https://github.com/jiayaoO3O/leetcode/blob/master/Solution0169.cs | Github Open Source | Open Source | MIT | 2,021 | leetcode | jiayaoO3O | C# | Code | 61 | 220 | using System.Collections.Generic;
namespace leetcode
{
class Solution0169
{
//169.求众数
//https://leetcode-cn.com/problems/majority-element/
public int MajorityElement(int[] nums)
{
// Array.Sort(nums);
// return nums[nums.Length / 2];
Dictionar... | 40,090 |
https://github.com/mikalv/blake2-1/blob/master/src/tb/tb_blake2_core.v | Github Open Source | Open Source | BSD-2-Clause | 2,016 | blake2-1 | mikalv | Verilog | Code | 806 | 3,408 | //======================================================================
//
// tb_blake2_core.v
// ----------------
// Testbench for the Blake2 core.
//
//
// Author: Joachim Strömbergson
// Copyright (c) 2014, Secworks Sweden AB
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or
/... | 19,225 |
https://github.com/HorizonRobotics/alf/blob/master/alf/algorithms/rl_algorithm_test.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | alf | HorizonRobotics | Python | Code | 597 | 2,618 | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 52,409 |
https://github.com/defisaver/defisaver-v3-contracts/blob/master/contracts/interfaces/curve/IFeeDistributor.sol | Github Open Source | Open Source | MIT | 2,022 | defisaver-v3-contracts | defisaver | Solidity | Code | 18 | 54 | // SPDX-License-Identifier: MIT
pragma solidity =0.8.10;
pragma experimental ABIEncoderV2;
interface IFeeDistributor {
function claim(address) external returns (uint256);
} | 25,196 |
https://github.com/rustem-nasyrov/training-center/blob/master/src/styles/components/_social-list.scss | Github Open Source | Open Source | Unlicense | 2,019 | training-center | rustem-nasyrov | SCSS | Code | 129 | 531 | .social-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-flow: row wrap;
justify-content: flex-end;
align-content: center;
align-items: center;
height: auto;
width: 100%;
&__item {
flex: 0 0 41px;
margin-left: 20px;
}
&__link {
... | 25,471 |
https://github.com/minhhao1996/minhhao/blob/master/resources/views/admin/catalog/recCatalog.blade.php | Github Open Source | Open Source | MIT | null | minhhao | minhhao1996 | PHP | Code | 216 | 1,102 | @extends('admin.layout')
@section('content')
<section class="content-header">
<h1><i class="glyphicon glyphicon-cd"></i> Thùng rác danh mục sản phẩm</h1>
<div class="breadcrumb">
<a class="btn btn-primary btn-sm" href="admin/category" role="button">
<span class="glyphicon glyphicon-remove do... | 4,052 |
https://github.com/alipay/antchain-openapi-prod-sdk/blob/master/riskplus/composer/src/Models/RiskLabelFilterConfigInfo.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | antchain-openapi-prod-sdk | alipay | PHP | Code | 385 | 1,586 | <?php
// This file is auto-generated, don't edit it. Thanks.
namespace AntChain\RISKPLUS\Models;
use AlibabaCloud\Tea\Model;
class RiskLabelFilterConfigInfo extends Model
{
// 创建时间
/**
* @example 2018-10-10T10:10:00Z
*
* @var string
*/
public $gmtCreate;
// 修改时间
/**
* @... | 40,836 |
https://github.com/rafamel/kpo/blob/master/src/helpers/prefix.ts | Github Open Source | Open Source | MIT | null | kpo | rafamel | TypeScript | Code | 169 | 371 | import { TypeGuard } from 'type-core';
import { into } from 'pipettes';
import { Context } from '../definitions';
import { style } from '../utils/style';
import { stringifyPrintRoute } from './stringify';
export function getPrefix(
extra: null | string,
target: 'print' | 'exec',
context: Context
): string {
re... | 4,116 |
https://github.com/RTradeLtd/ca-certificates/blob/master/examples/bootstrap-client/client.go | Github Open Source | Open Source | Apache-2.0 | null | ca-certificates | RTradeLtd | Go | Code | 89 | 321 | package main
import (
"context"
"fmt"
"io/ioutil"
"os"
"time"
"github.com/RTradeLtd/ca-certificates/ca"
)
func main() {
if len(os.Args) != 2 {
fmt.Fprintf(os.Stderr, "Usage: %s <token>\n", os.Args[0])
os.Exit(1)
}
token := os.Args[1]
// make sure to cancel the renew goroutine
ctx, cancel := context.... | 13,319 |
https://github.com/suqiang19920518/ShareSDKDemo1/blob/master/ShareSDK-master/shareLibrary/src/main/java/com/xyzlf/share/library/util/ChannelUtil.java | Github Open Source | Open Source | MIT, Apache-2.0 | 2,017 | ShareSDKDemo1 | suqiang19920518 | Java | Code | 161 | 551 | package com.xyzlf.share.library.util;
import android.content.Context;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import com.xyzlf.share.library.interfaces.ShareConstant;
/**
* @author: sq
* @date: 2017/9/13
* @corporation: 深圳市思迪信息技术股份有限公司
* @description: 分享渠道工具类
*/
public class Cha... | 53,863 |
https://github.com/spoter/spoter-mods/blob/master/mod_muteSoundHotKey/source/mod_muteSoundHotKey.py | Github Open Source | Open Source | WTFPL | 2,023 | spoter-mods | spoter | Python | Code | 452 | 1,989 | # -*- coding: utf-8 -*-
# noinspection PyUnresolvedReferences
from gui.mods.mod_mods_gui import g_gui, inject
import BigWorld
import Keys
from Avatar import PlayerAvatar
from account_helpers.settings_core import settings_constants
from gui import InputHandler
from helpers import getLanguageCode
class _Config(objec... | 48,765 |
https://github.com/lanzhu259X/mywork/blob/master/message/message-api/src/main/java/com/lanzhu/mywork/message/vo/request/BatchMessageArg.java | Github Open Source | Open Source | Apache-2.0 | null | mywork | lanzhu259X | Java | Code | 60 | 229 | package com.lanzhu.mywork.message.vo.request;
import com.lanzhu.mywork.master.commons.ToString;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
/**
* description:
*
* @author lanzhu2... | 46,325 |
https://github.com/patricktelnoni/dashboardci/blob/master/application/views/hasil_mahasiswa.php | Github Open Source | Open Source | MIT | null | dashboardci | patricktelnoni | PHP | Code | 3 | 15 | <?php
print_r($kirim);
?>
| 25,169 |
https://github.com/bauna/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/components/checkbox/checkbox.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,012 | tapestry5-jquery | bauna | JavaScript | Code | 23 | 75 | (function( $ ) {
T5.extendInitializers(function(){
function init(specs) {
$("#" + specs.id).checkbox();
}
return {
checkbox : init
}
});
}) ( jQuery ); | 47,689 |
https://github.com/spectralmind/sonarflow-ios/blob/master/sonarflow/sonarflow/src/SFSpotifyDiscoveredArtist.h | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | sonarflow-ios | spectralmind | Objective-C | Code | 19 | 102 | #import "SFAbstractDiscoveredArtist.h"
@class SFSpotifySearchFactory;
@class SFSpotifyPlayer;
@interface SFSpotifyDiscoveredArtist : SFAbstractDiscoveredArtist
-(id)initWithKey:(RootKey *)theKey name:(NSString *)theName searchFactory:(SFSpotifySearchFactory *)theSearchFactory player:(SFSpotifyPlayer *)thePlayer;
@e... | 39,371 |
https://github.com/loypt/leetcode/blob/master/N0699-Falling-Squares/solution1.cpp | Github Open Source | Open Source | CC0-1.0 | null | leetcode | loypt | C++ | Code | 116 | 303 | class Solution {
public:
vector<int> fallingSquares(vector<vector<int>>& positions) {
int n = positions.size();
vector<int> ret(n);
map<int, int> heightMap;
heightMap[0] = 0;
for (int i = 0; i < n; i++) {
int size = positions[i][1];
int left = position... | 6,573 |
https://github.com/higidi/t3ExtCLI/blob/master/tests/bootstrap.php | Github Open Source | Open Source | MIT | null | t3ExtCLI | higidi | PHP | Code | 52 | 159 | <?php
/*
* This file is part of the Higidi/T3ExtCLI package.
*
* (c) Daniel Hürtgen <daniel@higidi.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
error_reporting(E_ALL);
if (function_exists('date_default_timezone_set') && f... | 31,995 |
https://github.com/bestetc/batchflow/blob/master/batchflow/models/tf/deeplab.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | batchflow | bestetc | Python | Code | 584 | 2,038 | """
Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, Hartwig Adam.
"`Encoder-Decoder with Atrous Separable
Convolution for Semantic Image Segmentation
<https://arxiv.org/abs/1802.02611>`_"
"""
from . import EncoderDecoder, Xception, MobileNet
from .layers import aspp
class DeepLab(EncoderDecoder):
... | 41,695 |
https://github.com/Lumenela/NSDate-Additions/blob/master/Example/Pods/Target Support Files/NSDate-Additions/NSDate-Additions-dummy.m | Github Open Source | Open Source | MIT | 2,016 | NSDate-Additions | Lumenela | Objective-C | Code | 10 | 48 | #import <Foundation/Foundation.h>
@interface PodsDummy_NSDate_Additions : NSObject
@end
@implementation PodsDummy_NSDate_Additions
@end
| 5,915 |
https://github.com/COMU/zemberek-nlp/blob/master/core/src/main/java/zemberek/core/hash/ByteArrayLoader.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | zemberek-nlp | COMU | Java | Code | 177 | 448 | package zemberek.core.hash;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
public class ByteArrayLoader {
byte[] data;
public ByteArrayLoader(byte[] data) {
this.data = data;
}
public DataInputStream getDataInputStream() {
return new DataInputStream... | 21,225 |
https://github.com/Rohit484/Distribution/blob/master/t/typescript/src/main/scala/typings/typescript/mod/getJSDocTypeParameterTags.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 108 | 244 | package typings.typescript.mod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@JSImport("typescript", "getJSDocTypeParameterTags")
@js.native
object getJSDocTypeParameterTags extends js.Object {
/**
* Gets th... | 17,612 |
https://github.com/prashed/Slideshow/blob/master/webpack.dll.config.js | Github Open Source | Open Source | MIT | 2,022 | Slideshow | prashed | JavaScript | Code | 57 | 205 | const path = require('path');
const webpack = require('webpack');
const pkg = require('./package.json');
const deps = Object.keys(pkg.dependencies);
deps.push('react-dom');
module.exports = {
mode: 'production',
entry: {
vendor: deps
},
output: {
path: path.join(__dirname, 'demo'),
filename: '[name... | 36,648 |
https://github.com/mixspa/mixspa-react/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,020 | mixspa-react | mixspa | JavaScript | Code | 16 | 37 | export createApp from './createApp';
export AppLink from './AppLink';
export AppLoader from './AppLoader';
export AppContainer from './AppContainer';
| 43,184 |
https://github.com/genuineaffairs/TableCharm_PHP/blob/master/application/modules/Communityad/Model/DbTable/Targets.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | TableCharm_PHP | genuineaffairs | PHP | Code | 97 | 312 | <?php
/**
* SocialEngine
*
* @category Application_Extensions
* @package Communityad
* @copyright Copyright 2009-2011 BigStep Technologies Pvt. Ltd.
* @license http://www.socialengineaddons.com/license/
* @version $Id: Targets.php 2011-02-16 9:40:21Z SocialEngineAddOns $
* @author SocialEngine... | 6,098 |
https://github.com/tekod/AccentPHP/blob/master/AccentCore/Test/Test__CrashReporter.php | Github Open Source | Open Source | MIT | 2,022 | AccentPHP | tekod | PHP | Code | 636 | 2,444 | <?php namespace Accent\AccentCore\Test;
/**
* Testing Accent\Debug\CrashReporter
*
* Tag: [TestModelForward] // allowing test-forward calls
*/
use Accent\Test\AccentTestCase;
use Accent\AccentCore\Debug\CrashReporter;
class Test__CrashReporter extends AccentTestCase {
// title describing this test
con... | 8,808 |
https://github.com/ivanrk/Rideshare/blob/master/Rideshare.Web/Controllers/TravelsController.cs | Github Open Source | Open Source | MIT | null | Rideshare | ivanrk | C# | Code | 577 | 1,944 | namespace Rideshare.Web.Controllers
{
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Rideshare.Data.Models;
using Rideshare.Services;
using Rideshare.Services.Models.Users;
us... | 30,091 |
https://github.com/AjitSutar7276/demo/blob/master/src/app/views/master/machine-master/machine-master.service.ts | Github Open Source | Open Source | MIT | null | demo | AjitSutar7276 | TypeScript | Code | 159 | 563 | import { Injectable } from '@angular/core';
import { Headers,Http,HttpModule} from '@angular/http';
import { HttpClient,HttpHeaders} from '@angular/common/http';
import { config} from '../../../common/ServerConfig';
import { Observable} from 'rxjs';
import { map,retry} from 'rxjs/operators';
import { identifierModuleUr... | 40,154 |
https://github.com/NARUTOne-note/ADP/blob/master/algorithm/edges/test.js | Github Open Source | Open Source | BSD-3-Clause | null | ADP | NARUTOne-note | JavaScript | Code | 374 | 1,205 | /**
* 查询触发节点全链路
* @param {*} links 关系元数据
* @param {*} node 触发节点
*/
function getFullLinkNodes (links, node) {
if (!links || !links.length || !node) return [];
const smap = {};
const tmap = {};
links.forEach((k, index) => {
const {source, target} = k;
if (smap[source]) {
smap[source].push(inde... | 49,626 |
https://github.com/rodrimati1992/abi_stable_crates/blob/master/abi_stable_shared/src/const_utils.rs | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | abi_stable_crates | rodrimati1992 | Rust | Code | 33 | 101 | /// Gets a u64 where the lowest `bit_count` bits are ones and the rest are zeroes.
pub const fn low_bit_mask_u64(bit_count: u32) -> u64 {
let (n, overflowed) = 1u64.overflowing_shl(bit_count);
n.wrapping_sub(1).wrapping_sub(overflowed as u64)
}
| 44,007 |
https://github.com/Thiaguz/tysk-task-manager/blob/master/client/src/components/Task/style.scss | Github Open Source | Open Source | MIT | 2,021 | tysk-task-manager | Thiaguz | SCSS | Code | 51 | 168 | @import '~/index.scss';
.Task {
cursor: default;
.Actions {
display: inline-flex;
button {
color: inherit;
background: none;
border: none;
outline: none;
cursor: pointer;
margin: 0;
padding: 0;
mar... | 566 |
https://github.com/jcrl3/SicopBI/blob/master/Ejemplos/Xcode/UITableView-KeyBoard-master/UITableView+KeyBoard/RootViewController.m | Github Open Source | Open Source | MIT | 2,015 | SicopBI | jcrl3 | Objective-C | Code | 445 | 1,300 | //
// RootViewController.m
// UITableView+KeyBoard
//
// Created by Jorge Mendoza on 11/19/11.
// Copyright 2011 Code Fuel All rights reserved.
// http://www.codefuel.me
// Tw: @jorgevmendoza
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this soft... | 35,613 |
https://github.com/mrvoorhe/redox-extensions/blob/master/RedoxExtensions/Core.Utilities/ACUtilities.cs | Github Open Source | Open Source | MIT | 2,017 | redox-extensions | mrvoorhe | C# | Code | 99 | 333 | using Decal.Filters;
using RedoxExtensions.VirindiInterop;
using RedoxExtensions.Wrapper.Diagnostics;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace RedoxExtensions.Core.Utilities
{
public static class ACUtilities
{
public static void ProcessArbit... | 24,135 |
https://github.com/adriansb3105/destinos-turisticos-euclides-bayes/blob/master/resources/views/partials/menu.blade.php | Github Open Source | Open Source | MIT | null | destinos-turisticos-euclides-bayes | adriansb3105 | PHP | Code | 205 | 892 | <!-- Vertical navbar -->
<div class="vertical-nav bg-white" id="sidebar">
<div class="py-4 px-3 mb-4 bg-light">
<div class="media d-flex align-items-center">
<div class="media-body">
<h4 class="m-0">
<a href="/" class="nav-link green-font text-bold">
Destinos Turísticos
... | 50,445 |
https://github.com/paullewallencom/spring-978-1-8471-9402-2/blob/master/_src/two/maven/ChapterTwo/src/main/java/org/springaop/chapter/two/pointcut/DynamicPointcutTargetExample.java | Github Open Source | Open Source | Apache-2.0 | null | spring-978-1-8471-9402-2 | paullewallencom | Java | Code | 25 | 83 | package org.springaop.chapter.two.pointcut;
public class DynamicPointcutTargetExample {
public void setSpot(String spot) {
this.spot = spot;
}
public void printSpot() {
System.out.println(spot);
}
private String spot;
}
| 51,905 |
https://github.com/ItsLastDay/KotlinFuzzer/blob/master/fuzzer/src/test/resources/compilerTestData/writeFlags/innerClass/visibility/private.kt | Github Open Source | Open Source | MIT | 2,022 | KotlinFuzzer | ItsLastDay | Kotlin | Code | 21 | 62 | class Foo {
private inner class MyClass() {
}
}
// TESTED_OBJECT_KIND: innerClass
// TESTED_OBJECTS: Foo, MyClass
// FLAGS: ACC_FINAL, ACC_PRIVATE
| 12,610 |
https://github.com/1106207638/gongsi/blob/master/node_modules/@antv/data-set/src/transform/hierarchy/compact-box.ts | Github Open Source | Open Source | MIT | 2,022 | gongsi | 1106207638 | TypeScript | Code | 64 | 215 | import hierarchy from '@antv/hierarchy';
import { DataSet } from '../../data-set';
import { View } from '../../view';
const DEFAULT_OPTIONS = {};
function transform(dataView: View, options) {
const root = dataView.root;
options = Object.assign({}, DEFAULT_OPTIONS, options);
if (dataView.dataType !== DataSet.CO... | 28,356 |
https://github.com/jigs-bot/E-commerce-GYMNNEDS-/blob/master/web/adminorder.jsp | Github Open Source | Open Source | Unlicense | null | E-commerce-GYMNNEDS- | jigs-bot | null | Spoken | 81 | 493 |
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<center><h1>ORDER STATUS</h1></center>
<%@include file="connection.jsp" %>
<%@p... | 49,190 |
https://github.com/hiennnguyennn/prjoject3-nestjs/blob/master/views/partials/admin_header.hbs | Github Open Source | Open Source | MIT | null | prjoject3-nestjs | hiennnguyennn | null | Spoken | 23 | 148 | <div class="header-admin">
<img src="https://avatar-redirect.appspot.com/google/106985616779575625930?size=400">
<p class=" dropdown-toggle" id="dropdownProfile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
</p>
<div class="dropdown-menu" aria-labelledby="dropdownProfile">
... | 21,413 |
https://github.com/DuCorey/bokeh/blob/master/bokehjs/src/coffee/core/property_mixins.coffee | Github Open Source | Open Source | BSD-3-Clause | 2,020 | bokeh | DuCorey | CoffeeScript | Code | 170 | 541 | import * as p from "./properties"
import {extend} from "./util/object"
_gen_mixin = (mixin, prefix) ->
result = {}
prefix ?= ""
for name, type of mixin
result[prefix+name] = type
return result
_line_mixin =
line_color: [ p.ColorSpec, 'black' ]
line_width: [ p.NumberSpec, 1 ]
l... | 24,821 |
https://github.com/violetbp/NausicaaMod/blob/master/src/main/java/mooklabs/nausicaamod/keysticksetc/KeepForestPopulated.java | Github Open Source | Open Source | WTFPL, MIT | 2,015 | NausicaaMod | violetbp | Java | Code | 30 | 128 | package mooklabs.nausicaamod.keysticksetc;
import mooklabs.mookcore.Unused;
import net.minecraft.client.Minecraft;
@Unused
public class KeepForestPopulated extends MooklabTickHandler {
public KeepForestPopulated(Minecraft mc) {
super(mc);
}
@Override
void tickEnd() {
}
@Override
void tickStart() {
... | 13,449 |
https://github.com/EsriJapan/ejpyconv-py/blob/master/EJPyConv/script/PtToPoly.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | ejpyconv-py | EsriJapan | Python | Code | 578 | 2,791 | # coding:utf-8
"""
Tool name : ポイントをポリゴンへ変換
Source : PtToPoly.py
Author : Esri Japan Corporation
Created : 2018/12/14
Updated :
"""
class AlreadyExistError(Exception):
pass
import arcpy
import sys
import os
from itertools import groupby
# フィーチャクラスの作成と属性情報コピーの準備
def create_fieldinfo(in_pt_fc, out_pt_... | 25,741 |
https://github.com/Swap-in/backend_swapin/blob/master/swap_in/clothes/models/categories.py | Github Open Source | Open Source | MIT | 2,020 | backend_swapin | Swap-in | Python | Code | 16 | 54 | # Django
from django.db import models
class category(models.Model):
"""Category Model."""
description = models.CharField(
max_length=500,
null=False
)
| 27,653 |
https://github.com/Thejuse/scooterquotes/blob/master/scss/structure/footer.scss | Github Open Source | Open Source | MIT | 2,020 | scooterquotes | Thejuse | SCSS | Code | 41 | 143 | /*
* Footer stylings
*/
.footer{
padding: 20px 0;
.help{
nav{
text-align: right;
ul{
margin: 0;
padding: 0;
li{
display: inline-block;
margin: 0 10px;
a{
... | 43,227 |
https://github.com/cwickham3/azure-powershell/blob/master/src/ResourceManager/Common/Commands.ResourceManager.Common/RPRegistrationDelegatingHandler.cs | Github Open Source | Open Source | MIT | 2,018 | azure-powershell | cwickham3 | C# | Code | 373 | 1,139 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | 10,684 |
https://github.com/capturemathan/Amrita-Intranet-ExamPaper-Renderer/blob/master/IntranetExam.py | Github Open Source | Open Source | MIT | 2,019 | Amrita-Intranet-ExamPaper-Renderer | capturemathan | Python | Code | 265 | 1,588 | import os
import webbrowser
import time
import random
import requests
from bs4 import BeautifulSoup
from prettytable import PrettyTable
from time import sleep
cont = 1
print("Welcome to Qp Bank !")
sleep(1)
print("Crafted with love by Mathan.S")
sleep(1)
print("Ensure your connectivity to Amrita Wifi for smooth exper... | 47,691 |
https://github.com/aQuaYi/Design-Pattern-in-Go/blob/master/DesignPatterns/mediator/remote.go | Github Open Source | Open Source | MIT | 2,022 | Design-Pattern-in-Go | aQuaYi | Go | Code | 91 | 286 | package main
// implements mediator
type remote struct {
c *computer
o *oven
f *fan
r *refrigerator
}
func newRemote() *remote {
return &remote{}
}
func (r *remote) config() (*computer, *oven, *fan) {
c := newComputer()
c.setMediator(r)
r.c = c
o := newOven()
o.setMediator(r)
r.o = o
f := newFan()
f.set... | 49,678 |
https://github.com/boyanzhang36/COMP90082-MS/blob/master/tool-api/src/main/java/com/staxrt/tutorial/controller/DoctorController.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | COMP90082-MS | boyanzhang36 | Java | Code | 341 | 1,140 | /*
*
* Copyright (c) 2018-2020 Givantha Kalansuriya, This source is a part of
* Staxrt - sample application source code.
* http://staxrt.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy o... | 1,775 |
https://github.com/Request404/API-GKPT/blob/master/bdap_system_back_end/bdap_user_operate/src/main/java/com/bdap/user/system/entity/UserForecastName.java | Github Open Source | Open Source | CC0-1.0 | 2,021 | API-GKPT | Request404 | Java | Code | 107 | 485 | package com.bdap.user.system.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.bdap.common.utils.group.CreateValidGroup;
import com.bdap.common.utils.group.Update... | 36,625 |
https://github.com/Adalab/modulo-2-evaluacion-final-Emma-cebada/blob/master/src/js/03favorites.js | Github Open Source | Open Source | MIT | null | modulo-2-evaluacion-final-Emma-cebada | Adalab | JavaScript | Code | 200 | 613 | "use strict";
// listen event
// un/check a favorite tv show
const favoritesTvShows = function (ev) {
const clicked = parseInt(ev.currentTarget.id);
const indexFav = resultFav.indexOf(clicked);
const isFav = indexFav !== -1;
if (isFav === false) {
for (let i = 0; i < shows.length; i++) {
if (clicked ... | 33,231 |
https://github.com/maaaaakoto35/UniFood/blob/master/Application/resources/views/post.blade.php | Github Open Source | Open Source | MIT | 2,021 | UniFood | maaaaakoto35 | Blade | Code | 203 | 1,132 | <!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>口コミ投稿</title>
<link rel="stylesheet" href="css/post.css">
</head>
<body>
<div class="wrapper">
... | 49,405 |
https://github.com/TDycores-Project/TDycore/blob/master/src/tdytimers.c | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,022 | TDycore | TDycores-Project | C | Code | 570 | 2,184 | #include <tdytimers.h>
#include <private/tdycoreimpl.h>
#include <private/tdympfaoimpl.h>
#include <private/tdymeshimpl.h>
// Timers registry (maps timer names to PetscLogEvents).
khash_t(TDY_TIMER_MAP)* TDY_TIMERS = NULL;
// Profiling stages registry (maps stage names to PetscLogStages).
khash_t(TDY_PROFILING_STAGE_... | 48,941 |
https://github.com/FazliMolaJan/ToggleImageButton/blob/master/toggleimagebutton/src/main/java/net/colindodd/toggleimagebutton/ToggleImageButton.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | ToggleImageButton | FazliMolaJan | Java | Code | 205 | 755 | package net.colindodd.toggleimagebutton;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.ToggleButton;
public class ToggleImageButton ... | 4,476 |
https://github.com/reapit/foundations/blob/master/packages/app-builder-backend/src/resolvers/__mocks__/mock-property-images.ts | Github Open Source | Open Source | MIT | 2,023 | foundations | reapit | TypeScript | Code | 145 | 1,013 | export const mockPropertyImages = {
_embedded: [
{
id: 'MKT220015_01.png',
created: '2022-04-22T14:20:42.000Z',
modified: '2022-04-22T14:20:42.000Z',
type: 'photograph',
caption: 'Living room',
url: 'https://test.assets.reapit.net/sbox/live/pictures/MKT/22/MKT220015_01.png',
... | 6,074 |
https://github.com/blusno1/chromium-1/blob/master/ios/chrome/browser/ui/ntp/recent_tabs/views/signed_in_sync_off_view.mm | Github Open Source | Open Source | BSD-3-Clause | 2,018 | chromium-1 | blusno1 | Objective-C++ | Code | 237 | 1,085 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/ui/ntp/recent_tabs/views/signed_in_sync_off_view.h"
#include "base/logging.h"
#import "ios/chrome/browser/ui/fancy_ui/primary... | 8,475 |
https://github.com/psubnwell/data-discretizer/blob/master/data_discretizer/recognize.py | Github Open Source | Open Source | MIT | 2,018 | data-discretizer | psubnwell | Python | Code | 182 | 970 | import re
import json
from .regexkit import RegexKit
from . import convert
from . import standardize
from . import discretize
def recognize_date(text):
num = r'[\d零〇一二三四五六七八九十同]'
regex_pattern = r'(({0}+年)?{0}+月[份]?({0}+日)?({0}+时)?({0}+分)?许?)'.format(num)
res_iter = re.finditer(regex_pattern, text)
res... | 53,691 |
https://github.com/GravitywellUK/packages/blob/master/packages/backend/aws/__tests__/cognito/create-cognito-admin-user.test.ts | Github Open Source | Open Source | MIT | 2,020 | packages | GravitywellUK | TypeScript | Code | 215 | 999 | import { CognitoIdentityServiceProvider } from "aws-sdk";
import { createCognitoAdminUser } from "../../src/cognito/create-cognito-admin-user";
import {
adminAddUserToGroupPromise,
adminCreateUserPromise,
listGroupsPromise
} from "../../__mocks__/cognito.mock";
jest.mock("aws-sdk");
beforeEach(() => {
jest.c... | 28,878 |
https://github.com/tanujsinghal24/Lab_codes-COC3930-/blob/master/prims.cpp | Github Open Source | Open Source | MIT | 2,021 | Lab_codes-COC3930- | tanujsinghal24 | C++ | Code | 157 | 940 | #include<iostream>
using namespace std;
class graph{
public:
int mat[100][100],marked[100][100],visited[100];
int v,e,n,x,mi,mj;
void initialize_graph(){
x=0;
for(int i=0;i<n;i++){
visited[i]=0;
for(int j=0;j<n;j++){
mat[i][j]=0;
marked[i][j]=0;
}
}
}
void create_egde(int start,int end,int w... | 11,494 |
https://github.com/cc4dogman/workflow/blob/master/src/main/java/com/nirmata/workflow/queue/zookeeper/ZooKeeperQueueConsumer.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | workflow | cc4dogman | Java | Code | 269 | 879 | /**
* Copyright 2014 Nirmata, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 38,547 |
https://github.com/chevah/txacme/blob/master/src/txacme/testing.py | Github Open Source | Open Source | MIT | 2,021 | txacme | chevah | Python | Code | 654 | 2,558 | """
Utilities for testing with txacme.
"""
from collections import OrderedDict
from datetime import timedelta
from uuid import uuid4
import attr
from acme import challenges, messages
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes... | 35,103 |
https://github.com/openplans/streetscore/blob/master/street_score/project/migrations/0005_auto__add_field_rating_place1__add_field_rating_place2.py | Github Open Source | Open Source | MIT | 2,019 | streetscore | openplans | Python | Code | 194 | 1,003 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Rating.place1'
db.add_column('project_rating', 'place1', self.gf('django.db.models.fields.... | 22,519 |
https://github.com/heng66/Design-Pattern/blob/master/Builder Pattern/Builder Pattern/Builder/AudiBuilder.m | Github Open Source | Open Source | MIT | 2,019 | Design-Pattern | heng66 | Objective-C | Code | 68 | 211 | //
// AudiBuilder.m
// Builder Pattern
//
// Created by chenqg on 2019/11/1.
// Copyright © 2019 chenqg. All rights reserved.
//
#import "AudiBuilder.h"
@implementation AudiBuilder
- (instancetype)init{
if (self = [super init]) {
_car = [[Car alloc] init];
}
return self;
}
- (void)build... | 45,434 |
https://github.com/trasherdk/typescript-todo-or-die-plugin/blob/master/src/after_date.test.ts | Github Open Source | Open Source | MIT | 2,022 | typescript-todo-or-die-plugin | trasherdk | TypeScript | Code | 49 | 146 | import { after_date } from "./after_date";
const mockOptions = {
after_date: {
warn: "4d",
},
};
test("after_date works", () => {
const date = "2021-08-01";
const res = after_date(date, mockOptions);
expect(res.error).toBe(true);
});
test("after_date works without options", () => {
const date = "202... | 44,103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.