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/Gabriel4256/rv6-benchmark-backup/blob/master/kernel-rs/src/arch/arm/asm.rs | Github Open Source | Open Source | MIT-0 | 2,022 | rv6-benchmark-backup | Gabriel4256 | Rust | Code | 537 | 1,385 | //! ARM instructions.
// Dead code is allowed in this file because not all components are used in the kernel.
#![allow(dead_code)]
const DIS_INT: usize = 0x80;
/// Enable device interrupts (IRQ).
///
/// # Safety
///
/// Interrupt handlers must be set properly.
#[inline]
pub unsafe fn intr_on() {
unsafe {
... | 41,416 |
https://github.com/ekristen/aws-nuke/blob/master/resources/iam-service-specific-credentials_mock_test.go | Github Open Source | Open Source | MIT | 2,021 | aws-nuke | ekristen | Go | Code | 52 | 375 | package resources
import (
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/golang/mock/gomock"
"github.com/rebuy-de/aws-nuke/mocks/mock_iamiface"
"github.com/stretchr/testify/assert"
)
func Test_Mock_IAMServiceSpecificCredential_Remove(t *testing.T) {
a := assert.... | 22,653 |
https://github.com/seewindcn/pycocos2d/blob/master/pkg/eventlet-0.12.1/eventlet/api.py | Github Open Source | Open Source | MIT | 2,013 | pycocos2d | seewindcn | Python | Code | 617 | 1,943 | import errno
import sys
import socket
import string
import linecache
import inspect
import warnings
from eventlet.support import greenlets as greenlet, BaseException
from eventlet import hubs
from eventlet import greenthread
from eventlet import debug
from eventlet import Timeout
__all__ = [
'call_after', 'exc_af... | 11,588 |
https://github.com/STEM-Alliance/RobotCode/blob/master/reuse/src/main/java/org/wfrobotics/reuse/math/HerdAngle.java | Github Open Source | Open Source | MIT | 2,019 | RobotCode | STEM-Alliance | Java | Code | 99 | 293 | package org.wfrobotics.reuse.math;
public class HerdAngle implements WrappedAngle
{
private final double angle;
public HerdAngle(double angle)
{
double a = angle;
a = (((a + 180) % 360) + 360) % 360 - 180; // -180 to 180
if (a == -0)
{
a = 0;
}
... | 41,424 |
https://github.com/geekyfox/antiblog/blob/master/README.rdoc | Github Open Source | Open Source | MIT | 2,021 | antiblog | geekyfox | RDoc | Code | 76 | 179 | == The Antiblog
This is the source code for my own very personal
{Antiblog}[https://antiblog.geekyfox.net].
General concept of what "antiblog" is all about is explained in
{this essay}[http://antiblog.geekyfox.net/meta/about],
and previous implementation of this idea (in Haskell)
can be found {here}[https://github.co... | 16,171 |
https://github.com/lingshanng/tp/blob/master/src/main/java/seedu/address/ui/LessonCard.java | Github Open Source | Open Source | MIT | null | tp | lingshanng | Java | Code | 135 | 486 | package seedu.address.ui;
import java.util.Comparator;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.model.lesson.Lesson;
public class LessonCard extends UiPart<Region> {
p... | 33,799 |
https://github.com/zbolo-wd/nexi_payment/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | nexi_payment | zbolo-wd | Ignore List | Code | 12 | 111 | .dart_tool/package_config.json
.idea/.gitignore
.idea/modules.xml
.idea/nexi_payment.iml
.idea/vcs.xml
.idea/codeStyles/Project.xml
.idea/libraries/Dart_SDK.xml
.idea/libraries/Flutter_Plugins.xml
.idea/
.dart_tool/package_config_subset
.dart_tool/version
.packages | 439 |
https://github.com/praging/country-levels/blob/master/scripts/fips_download_csv.sh | Github Open Source | Open Source | CC0-1.0, MIT | null | country-levels | praging | Shell | Code | 31 | 189 | #!/usr/bin/env bash
set -e
cd "${BASH_SOURCE%/*}/" || exit
cd ../data
mkdir -p fips
wget https://www2.census.gov/programs-surveys/popest/geographies/2018/all-geocodes-v2018.xlsx -O fips/fips.xlsx
wget https://www2.census.gov/programs-surveys/popest/datasets/2010-2019/counties/totals/co-est2019-alldata.csv -O fips/pop... | 5,809 |
https://github.com/Septharoth/EndlessClient/blob/master/EOLib/Net/PacketFamily.cs | Github Open Source | Open Source | MIT | 2,022 | EndlessClient | Septharoth | C# | Code | 161 | 503 | namespace EOLib.Net
{
public enum PacketFamily : byte
{
Internal = 0,
Connection = (byte)1,
Account = (byte)2,
Character = (byte)3,
Login = (byte)4,
Welcome = (byte)5,
Walk = (byte)6,
Face = (byte)7,
Chair = (byte)8,
Emote = (byte)... | 41,778 |
https://github.com/mekoidigret/CampusKid/blob/master/resources/ts/app.ts | Github Open Source | Open Source | MIT | null | CampusKid | mekoidigret | TypeScript | Code | 32 | 75 | import "./bootstrap";
import Vue from "vue";
import router from "./router";
import store from "./store";
import App from "./App.vue";
const app = new Vue({
router,
store,
el: "#app",
render: h => h(App)
});
| 35,946 |
https://github.com/polivbr/pulumi-azure-native/blob/master/sdk/python/pulumi_azure_native/maintenance/v20210401preview/_inputs.py | Github Open Source | Open Source | Apache-2.0 | null | pulumi-azure-native | polivbr | Python | Code | 971 | 3,967 | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 5,163 |
https://github.com/stephenmusangeya/FusionLink/blob/master/src/Mocks/SophisDotNetToolkit/sophis/market_data/SSMYieldPoint.cs | Github Open Source | Open Source | MIT | 2,019 | FusionLink | stephenmusangeya | C# | Code | 95 | 234 | // Copyright (c) RXD Solutions. All rights reserved.
// FusionLink is licensed under the MIT license. See LICENSE.txt for details.
using System;
namespace sophis.market_data
{
public class SSMYieldPoint : IDisposable
{
public CSMInfoSup fInfoPtr { get; set; }
public double fYield { get; se... | 14,195 |
https://github.com/ninjayoto/kotlintest/blob/master/kotlintest-core/src/main/kotlin/io/kotlintest/extensions/DiscoveryExtension.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | kotlintest | ninjayoto | Kotlin | Code | 103 | 202 | package io.kotlintest.extensions
import io.kotlintest.Description
import io.kotlintest.Spec
/**
* Allows interception of the discovery phase of KotlinTest.
*
* That is, after [Spec] classes have been discovered, but before
* execution begins.
*
* This gives the possibility of filtering the specs seen by
* the ... | 16,788 |
https://github.com/bevacqua/ponymark/blob/master/src/Editor.js | Github Open Source | Open Source | MIT | 2,020 | ponymark | bevacqua | JavaScript | Code | 273 | 797 | 'use strict';
var emitter = require('contra/emitter');
var ui = require('./ui');
var util = require('./util');
var position = require('./position');
var PanelCollection = require('./PanelCollection');
var UndoManager = require('./UndoManager');
var UIManager = require('./UIManager');
var CommandManager = require('./Co... | 29,934 |
https://github.com/androidmalin/EffectiveJava/blob/master/patterns_structural/bridge_patterns/src/main/java/com/example/bridge/pattern/common2/DetailBehaviorA.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | EffectiveJava | androidmalin | Java | Code | 27 | 95 | package com.example.bridge.pattern.common2;
public class DetailBehaviorA extends AbstractBehavior {
@Override
public void operation1() {
System.out.println("op-1 from DetailBehaviorA");
}
@Override
public void operation2() {
System.out.println("op-2 from DetailBehaviorA");
}
... | 20,716 |
https://github.com/cesartputra/bncc/blob/master/resources/views/guest_view/home.blade.php | Github Open Source | Open Source | MIT | 2,019 | bncc | cesartputra | Blade | Code | 12 | 64 | @extends("guest_view/layout")
@section("judul","Home")
@section("content")
Ini Halaman Home<br>
Halo {{$namanya}} <br>
Luasnya {{$luasnya}}
@endsection | 46,529 |
https://github.com/DioCahyaRa/absensi/blob/master/application/views/Admin/Data_jabatan_v.php | Github Open Source | Open Source | MIT | null | absensi | DioCahyaRa | PHP | Code | 353 | 1,691 | <?php echo $this->session->flashdata('msg');?>
<?php
if(isset($_SESSION['msg'])){
unset($_SESSION['msg']);
}
?>
<article class="content item-editor-page">
<div class="title... | 11,064 |
https://github.com/teamleadercrm/ui/blob/master/src/components/overviewPage/OverviewPageHeader.tsx | Github Open Source | Open Source | MIT | 2,023 | ui | teamleadercrm | TSX | Code | 77 | 240 | import React, { ReactNode } from 'react';
import { GenericComponent } from '../../@types/types';
import Box from '../box';
import { BoxProps } from '../box/Box';
import Container from '../container';
import { Heading1 } from '../typography';
export interface OverviewPageHeaderProps extends Omit<BoxProps, 'children'> {... | 33,237 |
https://github.com/OnPositive/aml/blob/master/org.aml.raml2java/src/main/java/org/aml/raml2java/BasicAnnotationProcessingConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | aml | OnPositive | Java | Code | 158 | 697 | package org.aml.raml2java;
import java.util.HashSet;
import org.aml.java.mapping.implementsExisting;
import org.aml.java.mapping.skipAnnotation;
import org.aml.typesystem.AbstractType;
public class BasicAnnotationProcessingConfig implements IAnnotationProcessingConfig{
protected HashSet<String>namespacesToSkipDefi... | 14,689 |
https://github.com/faustfizz/rnal/blob/master/android/settings.gradle | Github Open Source | Open Source | MIT | 2,021 | rnal | faustfizz | Gradle | Code | 5 | 17 | rootProject.name = 'rnal'
include ':app'
| 46,427 |
https://github.com/ziadhany/vulnerablecode/blob/master/vulnerabilities/importers/ubuntu.py | Github Open Source | Open Source | Apache-2.0 | null | vulnerablecode | ziadhany | Python | Code | 180 | 590 | #
# Copyright (c) nexB Inc. and others. All rights reserved.
# VulnerableCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/vulnerablecode for support or download.
# See https://aboutcode.org for mor... | 10,653 |
https://github.com/scalajs-io/phaser/blob/master/src/main/scala/io/scalajs/dom/html/phaser/component/Destroy.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | phaser | scalajs-io | Scala | Code | 215 | 428 | package io.scalajs.dom.html.phaser.component
import scala.scalajs.js
/**
* The Destroy component is responsible for destroying a Game Object.
* @see http://phaser.io/docs/2.6.2/Phaser.Component.Destroy.html
*/
@js.native
//@JSGlobal("Phaser.Component.Destroy")
trait Destroy extends js.Object {
//////////////... | 16,017 |
https://github.com/pulumi/pulumi-aws/blob/master/sdk/java/src/main/java/com/pulumi/aws/elasticsearch/inputs/DomainAdvancedSecurityOptionsMasterUserOptionsArgs.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, MPL-2.0 | 2,023 | pulumi-aws | pulumi | Java | Code | 550 | 1,502 | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.elasticsearch.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
im... | 4,849 |
https://github.com/Txucishvili/export/blob/master/src/assets/sass/_partails/components/notifications/_notification-box.scss | Github Open Source | Open Source | MIT | null | export | Txucishvili | SCSS | Code | 204 | 769 | .notification_box {
@include flex;
@include align-items(center);
width: 100%;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
font-size: 15px;
&.-done {
padding: 8px 14px;
background-color: $oc-green-3;
border: 1px solid $oc-green-6;
color: $oc-white;
}
&.-da... | 30,185 |
https://github.com/GMedian/archerysec/blob/master/osintscan/urls.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | archerysec | GMedian | Python | Code | 110 | 415 | # _
# /\ | |
# / \ _ __ ___| |__ ___ _ __ _ _
# / /\ \ | '__/ __| '_ \ / _ \ '__| | | |
# / ____ \| | | (__| | | | __/ | | |_| |
# /_/ \_\_| \___|_| |_|\___|_| \__, |
# __/ |
# |___/
# Copyright (C) 20... | 325 |
https://github.com/lishen2/ProgrammableLED/blob/master/software/src/break_light.c | Github Open Source | Open Source | MIT | 2,021 | ProgrammableLED | lishen2 | C | Code | 572 | 2,436 | #include <stdlib.h>
#include "stm32f10x.h"
#include "utils.h"
#include "break_light.h"
#include "xl345.h"
#include "led.h"
#include "app_intf.h"
#include "acc_sensor.h"
#include "power.h"
enum BKL_Status{
BKL_STATUS_CONSTANTSPEED,
BKL_STATUS_DECELERATION,
};
#define BKL_TIMER TIM3
#define BKL_TIM_RCC... | 13,280 |
https://github.com/arturek/ILSpy/blob/master/ILSpy/LoadedAssembly.cs | Github Open Source | Open Source | MIT | 2,021 | ILSpy | arturek | C# | Code | 664 | 1,896 | // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | 32,020 |
https://github.com/King0987654/windows2000/blob/master/private/ntos/ps/psquota.c | Github Open Source | Open Source | MIT | 2,022 | windows2000 | King0987654 | C | Code | 1,243 | 4,442 | /*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
psquota.c
Abstract:
This module implements the quota mechanism for NT
Author:
Mark Lucovsky (markl) 18-Sep-1989
Revision History:
--*/
#include "psp.h"
PEPROCESS_QUOTA_BLOCK
PsChargeSharedPoolQuota(
IN PEPROCESS Process,
IN SIZE_... | 30,345 |
https://github.com/Mburiah/Android-IP/blob/master/app/src/main/java/com/example/rickmorty/network/RickandmortyApi.java | Github Open Source | Open Source | MIT | 2,020 | Android-IP | Mburiah | Java | Code | 18 | 86 | package com.example.rickmorty.network;
import com.example.rickmorty.models.characters.Response;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface RickandmortyApi {
@GET("character")
Call<Response> getInformation();
}
| 12,350 |
https://github.com/Iamsdt/PSSD/blob/master/app/src/main/java/com/iamsdt/pssd/utils/Constants.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | PSSD | Iamsdt | Kotlin | Code | 218 | 662 | /*
* Developed By Shudipto Trafder
* on 8/17/18 12:39 PM
* Copyright (c) 2018 Shudipto Trafder.
*/
package com.iamsdt.pssd.utils
import android.os.Environment
class Constants {
companion object {
const val DB_NAME = "SS.db"
const val PrivacyPolices = "https://docs.google.com/document/d/1dJO... | 37,123 |
https://github.com/galudino/gof-designpatterns-cpp/blob/master/src/1_structural_patterns/facade/stack_machine_code_generator.h | Github Open Source | Open Source | MIT | 2,022 | gof-designpatterns-cpp | galudino | C | Code | 14 | 68 | #ifndef STACK_MACHINE_CODE_GENERATOR_H
#define STACK_MACHINE_CODE_GENERATOR_H
class stack_machine_code_generator : public code_generator {};
#endif /* STACK_MACHINE_CODE_GENERATOR_H */
| 7,196 |
https://github.com/jeonggyukim/pyathena/blob/master/pyathena/tigress_ncr/hst.py | Github Open Source | Open Source | MIT | 2,023 | pyathena | jeonggyukim | Python | Code | 1,334 | 7,327 | # read_hst.py
import os
import os.path as osp
import glob
import xarray as xr
import numpy as np
import pandas as pd
from scipy import integrate
import matplotlib.pyplot as plt
import astropy.units as au
import astropy.constants as ac
from ..io.read_hst import read_hst
from ..load_sim import LoadSim
class Hst:
... | 4,166 |
https://github.com/Andrealr10/gestor/blob/master/application/models/NotificacionModel.php | Github Open Source | Open Source | MIT | 2,019 | gestor | Andrealr10 | PHP | Code | 122 | 721 | <?php
class NotificacionModel extends CI_Model
{
function __construct()
{
$this->tabla = "solicitud";
$this->id = "id_solicitud";
}
public function getAll()
{
// return $this->db->get($this->tabla)->result();
$this->db->select('solicitud.*,usuario.username, tipo_so... | 3,531 |
https://github.com/ldv2001/PrintPrince/blob/master/PrintPrince/PrintPrince/Models/Configuration.cs | Github Open Source | Open Source | MIT, MS-PL | 2,019 | PrintPrince | ldv2001 | C# | Code | 131 | 253 | namespace PrintPrince.Models
{
/// <summary>
/// The model for a configuration.
/// </summary>
/// <remarks>
/// Configurations in Cirrato are settings bound to drivers that can be applied to queues.
/// </remarks>
public class Configuration
{
/// <summary>
/// The name ... | 12,349 |
https://github.com/Chofito/redux-commons/blob/master/src/orderById.ts | Github Open Source | Open Source | MIT | 2,022 | redux-commons | Chofito | TypeScript | Code | 161 | 411 | import { IdType } from './types';
type OrderByIdConfigurationType = {
fetched?: Array<string>;
replaced?: Array<string>;
idKey?: string;
orderKey?: string;
};
type OrderByIdActionType = {
type: string;
payload: {
order?: Array<IdType>;
};
};
const orderById = (configuration: OrderByIdConfigurationT... | 44,170 |
https://github.com/Souqalmal/kongfig/blob/master/test/apis.js | Github Open Source | Open Source | MIT | null | kongfig | Souqalmal | JavaScript | Code | 369 | 1,248 | import expect from 'expect.js';
import {apis, plugins} from '../src/core.js';
import {
noop,
createApi,
removeApi,
updateApi,
addApiPlugin,
removeApiPlugin,
updateApiPlugin
} from '../src/actions.js';
describe("apis", () => {
it("should add new api", () => {
var actual = apis([{... | 41,957 |
https://github.com/sameer79/streamline/blob/master/streams/common/src/main/java/com/hortonworks/streamline/streams/common/event/tree/EventInformationTreeNode.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | streamline | sameer79 | Java | Code | 153 | 353 | /**
* Copyright 2017 Hortonworks.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or ... | 35,354 |
https://github.com/Ubivator/simple-crawler-java-/blob/master/src/main/java/com/soulgalore/crawler/guice/ExecutorServiceProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | simple-crawler-java- | Ubivator | Java | Code | 198 | 472 | /******************************************************
* Web crawler
*
*
* Copyright (C) 2012 by Peter Hedenskog (http://peterhedenskog.com)
*
******************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in c... | 28,893 |
https://github.com/microsoft/fhir-server/blob/master/src/Microsoft.Health.Fhir.SqlServer/Features/Search/ContinuationToken.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,023 | fhir-server | microsoft | C# | Code | 281 | 736 | // -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// ------------------------------------------------------------... | 7,260 |
https://github.com/canonn-science/CanonnApi/blob/master/CanonnApi.Backend/CanonnApi.Web/Services/RemoteApis/IEdsmService.cs | Github Open Source | Open Source | MIT | 2,017 | CanonnApi | canonn-science | C# | Code | 33 | 136 | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CanonnApi.Web.DatabaseModels;
namespace CanonnApi.Web.Services.RemoteApis
{
public interface IEdsmService
{
Task<IEnumerable<(DatabaseModels.System System, bool Updated, string ErrorMessage)>> FetchSystemIds(IEnumerable<DatabaseMod... | 50,106 |
https://github.com/monome/aleph/blob/master/modules/analyser/params.c | Github Open Source | Open Source | Unlicense | 2,018 | aleph | monome | C | Code | 152 | 881 | #include <string.h>
#include "module.h"
#include "params.h"
extern void fill_param_desc(ParamDesc* desc) {
strcpy(desc[eParam_linAttack].label, "linAttack");
desc[eParam_linAttack].type = eParamTypeFix;
desc[eParam_linAttack].min = FR32_MAX / 48 / 1000;
desc[eParam_linAttack].max = FR32_MAX / 48;
desc[ePar... | 40,585 |
https://github.com/whigg/matlab-image-class/blob/master/src/@Image/write.m | Github Open Source | Open Source | BSD-2-Clause | 2,019 | matlab-image-class | whigg | MATLAB | Code | 90 | 210 | function write(this, filename, varargin)
%WRITE Write image into specified file
%
% output = write(input)
%
% Example
% % read a color image and write a new image
% img = Image.read('peppers.png');
% img2 = flip(img, 1);
% write(img2, 'colorImage.tif');
%
% See also
% Image/read
%
% ------
% Au... | 37,578 |
https://github.com/teresalazar13/FAWOS/blob/master/code/randomresampling/random_undersamplor.py | Github Open Source | Open Source | CC-BY-4.0 | null | FAWOS | teresalazar13 | Python | Code | 323 | 1,529 | import itertools
import numpy as np
import pandas as pd
from typing import List
import random
from code.models.dataset import Dataset
from code.models.SensitiveClass import SensitiveClass
class DatapointsToUndersampleRU:
def __init__(self, n_times_to_undersample: int, df: pd.DataFrame) -> None:
self.n_ti... | 23,735 |
https://github.com/koushikr/ranger-1/blob/master/ranger-zk-client/src/main/java/io/appform/ranger/client/zk/ShardedRangerZKHubClient.java | Github Open Source | Open Source | Apache-2.0 | null | ranger-1 | koushikr | Java | Code | 168 | 646 | /*
* Copyright 2015 Flipkart Internet Pvt. Ltd.
*
* 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 o... | 1,306 |
https://github.com/georgiangelov2000/React-Js-Development/blob/master/Fundamentals Project HOOKS,ROUTES,API/9.restfull-api-users/src/Components/Users.js | Github Open Source | Open Source | MIT | null | React-Js-Development | georgiangelov2000 | JavaScript | Code | 46 | 186 | import React from "react";
const Users = ({ users }) => {
return (
<div>
<div>
<center>
<h1>Contact List</h1>
</center>
{users.map((user, index) => (
<div key={index}>
<div className="card-body">
<h5 className="card-title">{user.name}</h... | 1,320 |
https://github.com/CyberCookie/siegel/blob/master/client_core/ui/children.tsx | Github Open Source | Open Source | MIT | 2,020 | siegel | CyberCookie | TypeScript | Code | 41 | 101 | import React from 'react'
import type { ComponentAttributes } from './ui_utils'
type ThemeWithChildren = {
children: string
}
function addChildren(componentRootProps: ComponentAttributes, theme: ThemeWithChildren) {
if (componentRootProps.children) {
return <div className={ theme.children } childre... | 237 |
https://github.com/gobeam/truthy-react-frontend/blob/master/app/containers/EmailTemplate/index.js | Github Open Source | Open Source | MIT | 2,022 | truthy-react-frontend | gobeam | JavaScript | Code | 349 | 1,299 | /**
*
* EmailTemplate
*
*/
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useInjectSaga } from 'utils/injectSaga';
import { useInjectReducer } from 'utils/injectReducer';
import reducer from 'containers/EmailTemplate/reducer';
import { createStr... | 46,033 |
https://github.com/dKatechev/vividus/blob/master/vividus-plugin-mobile-app/src/main/java/org/vividus/bdd/mobileapp/steps/DeviceSteps.java | Github Open Source | Open Source | Apache-2.0 | null | vividus | dKatechev | Java | Code | 197 | 506 | /*
* Copyright 2019-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 20,290 |
https://github.com/igorski/zMVC/blob/master/example/Gruntfile.js | Github Open Source | Open Source | MIT | null | zMVC | igorski | JavaScript | Code | 179 | 503 | module.exports = function( grunt )
{
grunt.initConfig(
{
// copies resource files to temporary dist folder
copy : {
dev : {
files : [
{
expand : true,
cwd : "resources/",
sr... | 33,969 |
https://github.com/martindilling/spires/blob/master/src/Irc/Client.php | Github Open Source | Open Source | MIT | 2,016 | spires | martindilling | PHP | Code | 331 | 1,225 | <?php
declare(strict_types=1);
namespace Spires\Irc;
use Spires\Contracts\Core\Core;
use Spires\Core\Dispatcher;
use Spires\Irc\Message\Inbound\RawMessage;
class Client
{
/**
* @var Core
*/
private $core;
/**
* @var Connection
*/
private $connection;
/**
* @var User
... | 25,100 |
https://github.com/fi1a/collection/blob/master/tests/DataType/MapArrayObjectTest.php | Github Open Source | Open Source | MIT | 2,023 | collection | fi1a | PHP | Code | 2,105 | 7,501 | <?php
declare(strict_types=1);
namespace Fi1a\Unit\Collection\DataType;
use Fi1a\Collection\DataType\Exception\OutOfBoundsException;
use Fi1a\Collection\DataType\MapArrayObject;
use Fi1a\Collection\DataType\MapArrayObjectInterface;
use Fi1a\Collection\Exception\InvalidArgumentException;
use PHPUnit\Framework\TestCas... | 13,645 |
https://github.com/vitorthomaz/store-prototype/blob/master/src/store/reducers/shopping.js | Github Open Source | Open Source | MIT | null | store-prototype | vitorthomaz | JavaScript | Code | 72 | 199 | import { ADD_TO_CART, REMOVE_FROM_CART } from '../actions/shopping';
export const initialState = [];
const remove = (cart, id) => {
const index = cart.findIndex(elem => elem.id === id);
if (index === -1) return cart;
const newState = [...cart];
newState.splice(index, 1);
return newState;
};
const reducer ... | 21,156 |
https://github.com/harfol/harthb/blob/master/dao/src/main/java/org/thingsboard/server/dao/sql/attributes/PsqlAttributesInsertRepository.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,020 | harthb | harfol | Java | Code | 18 | 93 | package org.thingsboard.server.dao.sql.attributes;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import org.thingsboard.server.dao.util.PsqlDao;
@PsqlDao
@Repository
@Transactional
public class PsqlAttributesInsertRepository extends AttributeKvInser... | 22,346 |
https://github.com/RobertBonagura/blog/blob/master/src/components/welcome.js | Github Open Source | Open Source | MIT | null | blog | RobertBonagura | JavaScript | Code | 36 | 124 | import React from "react"
import welcomeStyles from "./styles/welcome.module.css"
export default ( props ) => (
<div className={ welcomeStyles.container }>
<div className={ welcomeStyles.photoContainer }>
<div className={ welcomeStyles.text }>
<h3>Hello, welcome to</h3>
<h1>{props.title}</h... | 38,390 |
https://github.com/jmartindelasierra/meteostatR/blob/master/man/climate_normals.Rd | Github Open Source | Open Source | MIT | 2,021 | meteostatR | jmartindelasierra | R | Code | 43 | 131 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/climate_normals.R
\name{climate_normals}
\alias{climate_normals}
\title{Climate normals}
\usage{
climate_normals(station)
}
\arguments{
\item{station}{String. The weather station ID.}
}
\value{
Average monthly weather.
}
\description{
Climate... | 34,527 |
https://github.com/DariaKarpovich/basic-js/blob/master/src/hanoi-tower.js | Github Open Source | Open Source | MIT | null | basic-js | DariaKarpovich | JavaScript | Code | 30 | 86 | import { NotImplementedError } from '../extensions/index.js';
export default function calculateHanoi(disksNumber, turnsSpeed) {
let turns = Math.pow(2,disksNumber) - 1;
let seconds = Math.trunc(turns/turnsSpeed * 60 * 60);
return {turns, seconds};
}
| 50,077 |
https://github.com/cozy/editor-core/blob/master/examples/5-full-page-minimal.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | editor-core | cozy | TSX | Code | 102 | 309 | import styled from 'styled-components';
import React from 'react';
import { borderRadius } from '@atlaskit/theme/constants';
import {
akEditorCodeBackground,
akEditorCodeBlockPadding,
akEditorCodeFontFamily,
} from '@atlaskit/editor-shared-styles';
import Editor from './../src/editor';
export const Wrapper: an... | 23,213 |
https://github.com/zLulus/NotePractice/blob/master/MAUI/Maui.Demo/Maui.Demo/Pages/Layouts/FlexLayoutPage.xaml.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | NotePractice | zLulus | C# | Code | 15 | 48 | namespace Maui.Demo.Pages.Layouts;
public partial class FlexLayoutPage : ContentPage
{
public FlexLayoutPage()
{
InitializeComponent();
}
} | 39,292 |
https://github.com/codingbooo/FishDaily/blob/master/fishdaily/app/src/main/java/codingbo/fishdaily/data/source/local/DailyLocalDataSource.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | FishDaily | codingbooo | Java | Code | 329 | 1,356 | package codingbo.fishdaily.data.source.local;
import android.content.Context;
import android.support.annotation.NonNull;
import java.util.List;
import codingbo.fishdaily.App;
import codingbo.fishdaily.data.dao.DailyDao;
import codingbo.fishdaily.data.dao.TagDao;
import codingbo.fishdaily.data.dao.TaskDao;
import cod... | 32,347 |
https://github.com/mcgowanb/client-side-scripting-202-2/blob/master/js/script-p3.js | Github Open Source | Open Source | MIT | 2,017 | client-side-scripting-202-2 | mcgowanb | JavaScript | Code | 800 | 2,461 | var startDate, endDate;
var formatString = "MMMM Do YYYY HH:mm";
var currentWeatherURL = "http://api.openweathermap.org/data/2.5/weather?id=2961423&APPID=8c6860362c19a97e94d507247ba0e59a&units=metric";
var historicWeatherURL = "http://api.openweathermap.org/data/2.5/forecast?id=2961423&APPID=8c6860362c19a97e94d507247ba... | 34,963 |
https://github.com/Killeroo/RainbowWorm/blob/master/Program.cs | Github Open Source | Open Source | Unlicense | null | RainbowWorm | Killeroo | C# | Code | 151 | 443 | using System;
using System.Threading;
namespace RainbowWorm
{
class MainClass
{
public const String DEFAULT_TEXT = "-++###########++-";
public static ConsoleColor defaultColor = Console.ForegroundColor;
public static void Main(string[] args)
{
string wormTxt = DEFA... | 49,209 |
https://github.com/planlodge/ChowNow-Theme-Wordpress/blob/master/tests/data/wpcom-themes/chaostheory/functions.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | ChowNow-Theme-Wordpress | planlodge | PHP | Code | 1,907 | 6,240 | <?php
$themecolors = array(
'bg' => '1B1B1B',
'border' => '0A0A0A',
'text' => 'DDDDDD',
'link' => '6DCFF6'
);
$content_width = 510; // pixels
// And thus begins the Sandbox guts! Registers our default
// options, specifically loads the 2c-1.css file as default skin
function sandbox_get_option($name) {
$defaults ... | 19,337 |
https://github.com/OKhomiakova/thesis/blob/master/pages/admin/admin_add_user.php | Github Open Source | Open Source | MIT | 2,019 | thesis | OKhomiakova | PHP | Code | 187 | 1,078 | <?php
include ("../../logic/check_admin.php");
include ("../../logic/add_data_user.php");
?>
<!DOCTYPE html>
<html lang="ru">
<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>Новый по... | 19,435 |
https://github.com/VIchenlei/client-V1/blob/master/src/main/sass/page-main.sass | Github Open Source | Open Source | MIT | null | client-V1 | VIchenlei | Sass | Code | 71 | 236 | @import '../../sass/defs'
.page-main
position: absolute
width: 100%
height: 100%
display: flex
flex-flow: column nowrap
// flex: auto
background: url("/img/ratebg.png") no-repeat cover
@media screen and (max-width: $width-medium) and (orientation: landscape)
overflow: hidden
... | 23,488 |
https://github.com/derbirch/hexo-theme-inside/blob/master/lib/renderer/markdown/plugins/tree.js | Github Open Source | Open Source | MIT | null | hexo-theme-inside | derbirch | JavaScript | Code | 132 | 365 | const container = require('markdown-it-container');
const Token = require('markdown-it/lib/token');
const { parsePipe } = require('../../../utils');
module.exports = [container, 'tree', {
render(tokens, idx, options, env, slf) {
const meta = parsePipe('|' + tokens[idx].info.trim().slice(4));
const { styles }... | 2,787 |
https://github.com/chillerlan/php-qrcode/blob/master/tests/Data/ECITest.php | Github Open Source | Open Source | Apache-2.0, MIT, LicenseRef-scancode-warranty-disclaimer, CC-BY-4.0 | 2,023 | php-qrcode | chillerlan | PHP | Code | 432 | 1,634 | <?php
/**
* ECITest.php
*
* @created 12.03.2023
* @author smiley <smiley@chillerlan.net>
* @copyright 2023 smiley
* @license MIT
*/
namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\QROptions;
use chillerlan\QRCode\Common\{BitBuffer, ECICharset, Mode};
use chillerlan\QRCode\Data\{B... | 22,326 |
https://github.com/CCDirectLink/crosscode-map-editor-tool/blob/master/webapp/src/app/components/map-fs-tree-view/map-fs-tree-view.component.ts | Github Open Source | Open Source | MIT | 2,020 | crosscode-map-editor-tool | CCDirectLink | TypeScript | Code | 191 | 684 | import { Component, OnInit, OnDestroy, Input } from '@angular/core';
import { MapFileSystemService } from '../../shared/map-filesystem/map-filesystem.service';
import { MatSidenav, MatTreeNestedDataSource } from '@angular/material';
import { Subscription } from 'rxjs';
import { FileTreeNode } from './treeNode.model';
... | 26,935 |
https://github.com/yandgong307/SNP_calling_pipeline/blob/master/mutationCountsTable/makeGeneCounts_parallel.py | Github Open Source | Open Source | MIT | 2,019 | SNP_calling_pipeline | yandgong307 | Python | Code | 566 | 1,739 | #////////////////////////////////////////////////////////////////////
#////////////////////////////////////////////////////////////////////
<<<<<<< HEAD
# script: makeGeneCounts_parallel.py
# author: Lincoln
=======
# script: makeGeneCounts.py
# author: Lincoln
>>>>>>> b6191860c404154094b8aa86beae91fa7578464d
# date: ... | 32,128 |
https://github.com/rstacruz/flowloop/blob/master/web/js/store/settings_reducer.js | Github Open Source | Open Source | MIT | 2,021 | flowloop | rstacruz | JavaScript | Code | 261 | 573 | import buildReducer from 'build-reducer'
import put from '101/put'
import del from '101/del'
import Settings from '../selectors/settings'
/**
* Settings reducer
*/
export default buildReducer({
'init': (state) => {
return put(state, {
'settings': {}
})
},
'settings:update': updateSettings,
'... | 2,254 |
https://github.com/bosley/vtitan/blob/master/src/titan.hpp | Github Open Source | Open Source | MIT | null | vtitan | bosley | C++ | Code | 138 | 479 | #ifndef TITAN_HPP
#define TITAN_HPP
#include "exec/env.hpp"
#include "exec/exec.hpp"
#include "lang/tokens.hpp"
#include "lang/parser.hpp"
#include <string>
#include <vector>
namespace titan {
class titan : public exec_cb_if {
public:
titan();
~titan();
void set_analyze(bool analyze) { _analyze = analyze; }
... | 48,969 |
https://github.com/chenUT/spookystuff/blob/master/test-install.sh | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,015 | spookystuff | chenUT | Shell | Code | 9 | 48 | #!/usr/bin/env bash
MAVEN_OPTS="-Xmx3g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m" mvn clean install -q | 6,874 |
https://github.com/fisfat/newurban/blob/master/resources/views/articles/search.blade.php | Github Open Source | Open Source | MIT | null | newurban | fisfat | PHP | Code | 45 | 241 | @extends('layouts.app')
@section('content')
@if(isset($results))
<div class="card">
<div class="card-header">
<h3 class="text-center">SEARCH RESULTS</h3>
</div>
<div class="card-body">
<ul class="list-group list-unstyled text-center">
@... | 23,317 |
https://github.com/LIbanezDev/fakebook/blob/master/chat/src/app.module.ts | Github Open Source | Open Source | MIT | null | fakebook | LIbanezDev | TypeScript | Code | 43 | 116 | import { Module } from '@nestjs/common';
import { EmailModule } from './modules/email/email.module';
import { ConfigModule } from '@nestjs/config';
import { globalConfig } from './config/global.config';
@Module({
imports: [
EmailModule,
ConfigModule.forRoot({
cache: true,
isGlobal: true,
lo... | 38,024 |
https://github.com/uvsmtid/turbo-banyan/blob/master/turbo-banyan-student-service/src/test/java/com/spectsys/banyan/utils/JsonUtilsTest.java | Github Open Source | Open Source | MIT | null | turbo-banyan | uvsmtid | Java | Code | 75 | 340 | package com.spectsys.banyan.utils;
import com.spectsys.banyan.entity.StudentEntity;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import static com.spectsys.banyan.utils.TestData.STUDENT_1;
import static org.junit.jupiter.api.Assertions.assertEquals;
@Slf4j
public class JsonUtilsTest {
@Test
publ... | 1,127 |
https://github.com/Kyrie-Zhao/BNN-PYNQ/blob/master/bnn/src/training/augmentors.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | BNN-PYNQ | Kyrie-Zhao | Python | Code | 459 | 1,205 | #BSD 3-Clause License
#=======
#
#Copyright (c) 2018, Xilinx Inc.
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notice... | 36,708 |
https://github.com/luyouli/ZHSan/blob/master/WorldOfTheThreeKingdoms/GameObjects/ArchitectureDetail/EventEffect/EventEffectKindPack/EventEffect1230.cs | Github Open Source | Open Source | MS-PL | 2,021 | ZHSan | luyouli | C# | Code | 34 | 121 | using GameObjects;
using System;
using System.Runtime.Serialization;namespace GameObjects.ArchitectureDetail.EventEffect
{
[DataContract]public class EventEffect1230 : EventEffectKind
{
public override void ApplyEffectKind(Architecture a, Event e)
{
while (a.Facilities.Count > 0)... | 10,420 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/devel/2010/03/7561.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 639 | 2,386 | <?
$subject_val = "Re: [OMPI devel] Adding error/verbose messages to the TCP BTL";
include("../../include/msg-header.inc");
?>
<!-- received="Sun Mar 7 14:13:28 2010" -->
<!-- isoreceived="20100307191328" -->
<!-- sent="Sun, 7 Mar 2010 14:13:19 -0500" -->
<!-- isosent="20100307191319" -->
<!-- name="George Bosilca" --... | 42,766 |
https://github.com/athiththan11/RepoDeWS/blob/master/src/main/java/com/athiththan/soap/devservice/model/Repo.java | Github Open Source | Open Source | MIT | null | RepoDeWS | athiththan11 | Java | Code | 204 | 669 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.08.02 at 10:50:3... | 19,763 |
https://github.com/StriveMath/codemedium-editor/blob/master/src/css/quasar.variables.sass | Github Open Source | Open Source | Unlicense | 2,021 | codemedium-editor | StriveMath | Sass | Code | 154 | 725 | // Quasar Sass (& SCSS) Variables
// @see https://coolors.co/1e1e3f-fad000-ff628c-3ad900-9effff-8ef9f3-ffffff-cbf3f0-2ec4b6-756d54
// Blocks
$block-red: #ff628c
$block-orange: #FF9D00
$block-yellow: #fad000
$block-green: #2ca300
$block-teal: #2EC4B6
$block-blue: #5D37F0
// Theme
$tertiary: #6a63a1
$bg-main: #2d2b55
$... | 21,603 |
https://github.com/remore/gemstat/blob/master/lib/gemstat/cache/gemfiles/r/rtrace:0.0.2/Gemfile | Github Open Source | Open Source | MIT | 2,015 | gemstat | remore | Ruby | Code | 2 | 8 | gem 'geocoder'
| 12,751 |
https://github.com/mellinoe/corefx/blob/master/src/System.Linq.Expressions/tests/Catalog/ReflectionExtensions.cs | Github Open Source | Open Source | MIT | 2,017 | corefx | mellinoe | C# | Code | 51 | 135 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Reflection;
namespace System.Linq.Expressions.Tests
{
static class ReflectionExtensions
{
public static ConstructorInfo GetDeclaredConstr... | 48,105 |
https://github.com/cityjoy/NetCoreFrame.Admin/blob/master/CoreFrame.Web/Areas/Base_SysManage/Controllers/Base_MenuController.cs | Github Open Source | Open Source | MIT | 2,019 | NetCoreFrame.Admin | cityjoy | C# | Code | 218 | 916 | using CoreFrame.Business.Base_SysManage;
using CoreFrame.Entity.MenuManage;
using CoreFrame.Util;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Linq;
namespace CoreFrame.Web
{
[Area("Base_SysManage")]
public class Base_MenuController : BaseMvcController
{
private IBase_MenuBusiness _bas... | 24,449 |
https://github.com/jaysonsantos/python-binary-memcached/blob/master/bmemcached/client/mixin.py | Github Open Source | Open Source | MIT | 2,022 | python-binary-memcached | jaysonsantos | Python | Code | 484 | 1,472 | import six
from bmemcached.client.constants import PICKLE_PROTOCOL, SOCKET_TIMEOUT
from bmemcached.compat import pickle
from bmemcached.protocol import Protocol
class ClientMixin(object):
""" Client mixin with basic commands.
:param servers: A list of servers with ip[:port] or unix socket.
:type servers... | 25,411 |
https://github.com/mehdisellami/dropShippingdeploy/blob/master/wp-content/plugins/facebook-for-woocommerce/includes/Products.php | Github Open Source | Open Source | Apache-2.0 | null | dropShippingdeploy | mehdisellami | PHP | Code | 1,677 | 4,289 | <?php
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @package FacebookCommerce
*/
namespace SkyVerge\WooCommerce\Facebook;
use WC_Facebook_Product;
defined(... | 7,099 |
https://github.com/dityafaizal/niagahoster/blob/master/resources/js/components/module/ModuleList.vue | Github Open Source | Open Source | MIT | null | niagahoster | dityafaizal | Vue | Code | 54 | 220 | <template>
<div class="module__list">
<div class="module__list--title">
<h1>Modul Lengkap untuk Menjalankan Aplikasi Anda.</h1>
</div>
<div class="module__list--list">
<ul>
<li v-for="(data, i) in listModules.modules" :key="i">{{data.module}}</li>
</ul>
</div>
<div class=... | 21,794 |
https://github.com/BT-OpenSource/bt-openlink-java/blob/master/openlink-core/src/main/java/com/bt/openlink/type/CallFeatureDeviceKey.java | Github Open Source | Open Source | MIT | 2,019 | bt-openlink-java | BT-OpenSource | Java | Code | 160 | 512 | package com.bt.openlink.type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
public final class CallFeatureDeviceKey extends CallFeature {
private static final long serialVersionUID = -1837276539059039203L;
@Nonnull private final List<DeviceK... | 28,297 |
https://github.com/acaria/ajras/blob/master/Resources/config.plist | Github Open Source | Open Source | MIT | 2,016 | ajras | acaria | XML Property List | Code | 63 | 510 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Gameplay</key>
<dict>
<key>Rules</key>
<dict>
<key>SpecialInterval</key>
<string>15</string>
<key>MovesInterval</key>
<integer... | 9,723 |
https://github.com/hardykay/lara-for-tp/blob/master/tests/Features/ArtisanTest.php | Github Open Source | Open Source | MIT | 2,019 | lara-for-tp | hardykay | PHP | Code | 68 | 360 | <?php
namespace Larafortp\Tests\Features;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
use Larafortp\Tests\TestCase;
class ArtisanTest extends TestCase
{
public function testMakeModel()
{
$this->artisan('make:model Test');
$this->assertFileExists(base_path('app/Test.php'... | 43,973 |
https://github.com/weisenzcharles/weinode/blob/master/Java/learning-notes/base-example/src/main/java/org/charles/learning/base/thread/concurrent/CounterThread.java | Github Open Source | Open Source | Apache-2.0 | null | weinode | weisenzcharles | Java | Code | 102 | 257 | package org.charles.learning.thread.concurrent;
import java.util.concurrent.locks.ReentrantLock;
public class CounterThread extends Thread {
private String name;
public CounterThread(String name) {
this.name = name;
}
public void run() {
Counter.add();
System.out.println(this... | 6,580 |
https://github.com/xxxmpsxxx/IqOptionApiDotNet/blob/master/src/IqOptionApiDotNet/Wss/IqOptionWebSocketClient.GetInitializationData.cs | Github Open Source | Open Source | MIT | 2,021 | IqOptionApiDotNet | xxxmpsxxx | C# | Code | 30 | 130 | using System.Threading.Tasks;
using IqOptionApiDotNet.Models;
using IqOptionApiDotNet.Ws.Request;
namespace IqOptionApiDotNet.Ws
{
public partial class IqOptionWebSocketClient
{
#region [GetInitializationData]
public Task<InitializationData> GetInitializationDataAsync(string requestId)
... | 1,412 |
https://github.com/Greator/playground_internal/blob/master/web/app/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/video/add-video-thumbnail.php | Github Open Source | Open Source | MIT | null | playground_internal | Greator | PHP | Code | 300 | 1,936 | <?php
/**
* BuddyBoss - Add/Edit Video Thumbnail
*
* @package BuddyBoss\Core
*
* @since BuddyBoss 1.7.0
*/
?>
<div class="bp-video-thumbnail-uploader <?php echo bb_video_is_ffmpeg_installed() ? 'generating_thumb ' : 'no_ffmpeg'; ?>" style="display: none;">
<transition name="modal">
<div class="modal-mask bb-w... | 15,369 |
https://github.com/superfinserv/insurace/blob/master/resources/views/pos/webview/other/maintainance.blade.php | Github Open Source | Open Source | MIT | null | insurace | superfinserv | PHP | Code | 537 | 2,306 | @extends('webview.layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-12 px-0">
<div class="list-group list-group-flush ">
<a class="list-group-item border-top active text-dark" href="notification-deta... | 19,789 |
https://github.com/luoyuan800/NeverEnd/blob/master/src/cn/luo/yuan/maze/client/display/dialog/GoodsDialog.java | Github Open Source | Open Source | BSD-3-Clause | 2,017 | NeverEnd | luoyuan800 | Java | Code | 67 | 327 | package cn.luo.yuan.maze.client.display.dialog;
import android.widget.ListView;
import cn.luo.yuan.maze.R;
import cn.luo.yuan.maze.client.display.adapter.GoodsAdapter;
import cn.luo.yuan.maze.client.service.NeverEnd;
import cn.luo.yuan.maze.client.utils.Resource;
import cn.luo.yuan.maze.model.goods.Goods;
import java... | 17,044 |
https://github.com/bahrus/be-vigilant/blob/master/be-vigilant.ts | Github Open Source | Open Source | MIT | null | be-vigilant | bahrus | TypeScript | Code | 286 | 1,230 | import {define, BeDecoratedProps } from 'be-decorated/be-decorated.js';
import {BeVigilantActions, BeVigilantProps, BeVigilantVirtualProps} from './types';
import {register} from 'be-hive/register.js';
export class BeVigilantController implements BeVigilantActions{
#target: Element | undefined;
#mutationObser... | 14,945 |
https://github.com/fasttakerbg/Final_Project_Second/blob/master/public/scripts/controller.js | Github Open Source | Open Source | MIT | 2,017 | Final_Project_Second | fasttakerbg | JavaScript | Code | 149 | 489 | import { dataService } from 'dataService'
import { handlebarsHandler } from 'handlebarsHandler'
class Controller {
getHome() {
const promises = [
dataService.carouselContent(),
dataService.countryInfo(),
dataService.recentPosts(),
dataService.displayMedia(),
... | 1,064 |
https://github.com/revsys/django-test-plus/blob/master/test_project/test_app/tests/test_pytest.py | Github Open Source | Open Source | BSD-2-Clause | 2,023 | django-test-plus | revsys | Python | Code | 46 | 198 | import pytest
from test_plus.compat import DRF
def test_something(tp):
response = tp.get("view-200")
assert response.status_code == 200
@pytest.mark.skipif(DRF is False, reason="DRF is not installed.")
def test_api(tp_api):
response = tp_api.post("view-json", extra={"format": "json"})
assert respon... | 39,209 |
https://github.com/Acidburn0zzz/ui/blob/master/app/components/pipeline-event-row/component.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | ui | Acidburn0zzz | JavaScript | Code | 57 | 174 | import Component from '@ember/component';
import { computed, get } from '@ember/object';
export default Component.extend({
tagName: 'tr',
classNameBindings: ['highlighted'],
highlighted: computed('selectedEvent', 'event.id', {
get() {
return get(this, 'selectedEvent') === get(this, 'event.id');
}
... | 16,360 |
https://github.com/SamCao1991/hicma/blob/master/scripts/test.sh | Github Open Source | Open Source | BSD-3-Clause | 2,022 | hicma | SamCao1991 | Shell | Code | 179 | 661 | #!/bin/bash -le
module purge
if [ "$HOSTNAME" == "thana" ]; then
. ./scripts/power8.modules
else
. ./scripts/modules-ecrc.sh
. ./scripts/modules-ecrc-mpi.sh
fi
module list
set -x
# TEST
PRE=""
factor=1
debug=0
mpi=0
if [ $# -ne 5 ]; then
echo "Usage: factor[1,2,4...] debug[d,-] mpi[m,-] nthreads problem"
... | 25,140 |
https://github.com/lmc-eu/matej-client-php5/blob/master/tests/unit/RequestBuilder/CampaignRequestBuilderTest.php | Github Open Source | Open Source | MIT | 2,018 | matej-client-php5 | lmc-eu | PHP | Code | 228 | 1,301 | <?php
namespace Lmc\Matej\RequestBuilder;
use Fig\Http\Message\RequestMethodInterface;
use Lmc\Matej\Exception\DomainException;
use Lmc\Matej\Exception\LogicException;
use Lmc\Matej\Http\RequestManager;
use Lmc\Matej\Model\Command\Sorting;
use Lmc\Matej\Model\Command\UserRecommendation;
use Lmc\Matej\Model\Request;
u... | 820 |
https://github.com/pedrograngeiro/Webcrasping-E-sports-Wiki/blob/master/extrairdados/cblol_week5.py | Github Open Source | Open Source | MIT | null | Webcrasping-E-sports-Wiki | pedrograngeiro | Python | Code | 148 | 585 | import requests
from bs4 import BeautifulSoup
import csv
cont = 0
i = 0
j = 0
mediabaron = 0
mediabaronfinal = 0
source = requests.get('https://lol.gamepedia.com/CBLOL/2021_Season/Split_1/Scoreboards/Week_5').text
soup = BeautifulSoup(source, 'html.parser')
barons = soup.find_all('div', "sb-footer-item sb-footer-it... | 31,959 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.