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/slroberts/random-color-palette-generator/blob/master/src/components/CopiedMessage.js | Github Open Source | Open Source | MIT | null | random-color-palette-generator | slroberts | JavaScript | Code | 50 | 147 | import React from 'react';
const CopiedMessage = ({ isCopied }) => {
return (
<div
className='md:w-4/12 w-full flex justify-center px-8 py-3 text-base text-center rounded-full text-white bg-black md:py-4 md:text-sm m-auto mb-28 transition duration-1000 ease-in-out'
style={{ position: 'relative', marg... | 11,137 |
https://github.com/helcim/magento-2/blob/master/Helcim/HelcimAPI/Observer/DataAssignObserver.php | Github Open Source | Open Source | MIT | null | magento-2 | helcim | PHP | Code | 79 | 409 | <?php
/**
* Copyright © 2017 Helcim Inc. All rights reserved.
*/
namespace Helcim\HelcimAPI\Observer;
use Magento\Framework\Event\Observer;
use Magento\Payment\Observer\AbstractDataAssignObserver;
use Magento\Quote\Api\Data\PaymentInterface;
class DataAssignObserver extends AbstractDataAssignObserver
{
/**
... | 45,739 |
https://github.com/AbdouTlili/onos-e2-em/blob/master/servicemodels/e2sm_kpm_v2_go/unit_tests/ARP_test.go | Github Open Source | Open Source | Apache-2.0 | null | onos-e2-em | AbdouTlili | Go | Code | 284 | 1,283 | // SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
//
// SPDX-License-Identifier: Apache-2.0
package kpmv2
import (
"encoding/hex"
e2smkpmv2 "github.com/onosproject/onos-e2-sm/servicemodels/e2sm_kpm_v2_go/v2/e2sm-kpm-v2-go"
"github.com/onosproject/onos-lib-go/pkg/asn1/aper... | 24,682 |
https://github.com/sipank/Buckshot/blob/master/example/calculator/calculator.dart | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,012 | Buckshot | sipank | Dart | Code | 128 | 374 | #import('dart:html');
#import('dart:math');
#import('../../buckshot.dart');
#import('package:DartNet-Event-Model/events.dart');
#source('common/i_calculator.dart');
#source('common/output_changed_event_args.dart');
#source('views/main.dart');
#source('views/standard_calc.dart');
#source('views/extended_calc.dart');
#s... | 9,016 |
https://github.com/aleksey-hariton/redguide-rails/blob/master/app/services/create_admin_service.rb | Github Open Source | Open Source | BSD-3-Clause | 2,017 | redguide-rails | aleksey-hariton | Ruby | Code | 38 | 208 | class CreateAdminService
def call
User.find_or_create_by!(email: Rails.application.secrets.admin_email,
name: Rails.application.secrets.admin_name) do |user|
user.password = Rails.application.secrets.admin_password
user.password_confirmation = Rails.application.secrets.admi... | 46,188 |
https://github.com/andres-montanez/Magallanes/blob/master/tests/Command/BuiltIn/DeployCommandMiscTasksTest.php | Github Open Source | Open Source | MIT | 2,022 | Magallanes | andres-montanez | PHP | Code | 696 | 2,765 | <?php
/*
* This file is part of the Magallanes package.
*
* (c) Andrés Montañez <andres@andresmontanez.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mage\Tests\Command\BuiltIn;
use Mage\Command\BuiltIn\DeployComm... | 44,337 |
https://github.com/microsoft/MixedReality-Sharing/blob/master/libs/VersionedStorage-cpp/src/HeaderBlock.cpp | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | MixedReality-Sharing | microsoft | C++ | Code | 3,349 | 11,082 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "src/pch.h"
#include "src/HeaderBlock.h"
#include "src/IndexBlock.h"
#include "src/KeyVersionBlock.h"
#include "src/StateBlock.h"
#include "src/SubkeyVersionBlock.h"
#include <Microsoft/MixedReality/Sharing/Common/Platform.h>
#inclu... | 28,230 |
https://github.com/jianqili/llvm-semantics/blob/master/tests/c-semantics-tests/gcc-torture/loop-ivopts-1.opt.ll | Github Open Source | Open Source | MIT | 2,015 | llvm-semantics | jianqili | LLVM | Code | 279 | 813 | ; ModuleID = '/home/david/src/c-semantics/tests/gcc-torture/loop-ivopts-1.c'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo.tmp = internal unnamed_add... | 39,889 |
https://github.com/pj2/game-engine/blob/master/Font.h | Github Open Source | Open Source | MIT | null | game-engine | pj2 | C | Code | 44 | 139 | /* Font.h
Author: Joshua Prendergast */
#ifndef FONT_H
#define FONT_H
#include <SDL2/SDL_ttf.h>
#include <string>
namespace sight {
class Font {
public:
Font(const std::string &fontName, int ptSize);
~Font();
TTF_Font *getSDLFont();
private:
TTF_Font *font;
int size; // In points (1/72 inch)
};
... | 44,430 |
https://github.com/nemOoO-wang/MMLive/blob/master/SDKFrameworks/NOSSDK/Http/NOSHttpManager.h | Github Open Source | Open Source | MIT | 2,020 | MMLive | nemOoO-wang | C | Code | 69 | 272 | //
// HttpManager.h
// NOSSDK
//
// Created by hzzhenghuabin on 2015/1/12.
// Copyright (c) 2015年 NetEase. All rights reserved.
//
#import <Foundation/Foundation.h>
@class NOSResponseInfo;
typedef void (^NOSInternalProgressBlock)(long long totalBytesWritten, long long totalBytesExpectedToWrite);
typedef void (^N... | 7,159 |
https://github.com/seekyouth/ExcelReport/blob/master/src/ExcelReport/Accumulations/RowIndexAccumulation.cs | Github Open Source | Open Source | MIT | 2,019 | ExcelReport | seekyouth | C# | Code | 21 | 61 | namespace ExcelReport.Accumulations
{
public class RowIndexAccumulation : Accumulation
{
public int GetCurrentRowIndex(int sourceRowIndex)
{
return Value + sourceRowIndex;
}
}
} | 49,552 |
https://github.com/mymagadsl/Mariculture/blob/master/src/main/java/mariculture/plugins/hungryfish/fish/HungryFishEnder.java | Github Open Source | Open Source | MIT | 2,014 | Mariculture | mymagadsl | Java | Code | 113 | 545 | package mariculture.plugins.hungryfish.fish;
import mariculture.core.helpers.BlockHelper;
import mariculture.core.util.Rand;
import mariculture.fishery.fish.FishEnder;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class HungryFi... | 7,226 |
https://github.com/Dieptranivsr/Ros_Diep/blob/master/melodic/share/gennodejs/ros/actionlib/msg/TestRequestGoal.js | Github Open Source | Open Source | MIT | null | Ros_Diep | Dieptranivsr | JavaScript | Code | 730 | 2,326 | // Auto-generated. Do not edit!
// (in-package actionlib.msg)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _getByteL... | 47,624 |
https://github.com/PacktPublishing/Learning-Go-Data-Structures-and-Algorithms/blob/master/section4/workers/workerpool.go | Github Open Source | Open Source | MIT | 2,022 | Learning-Go-Data-Structures-and-Algorithms | PacktPublishing | Go | Code | 89 | 246 | package main
import (
"fmt"
"math/rand"
"time"
)
func echoWorker(in, out chan int) {
for {
n := <-in
time.Sleep(
time.Duration(rand.Intn(3000)) * time.Millisecond,
)
out <- n
}
}
func produce(ch chan<- int) {
i := 0
for {
fmt.Printf("-> Send job: %d\n", i)
ch <- i
i++
}
}
func main() {
i... | 21,211 |
https://github.com/Roenbaeck/sisula/blob/master/metadata/SQL Server 2005/01_CreateMetadataSchema.sql | Github Open Source | Open Source | MIT | 2,021 | sisula | Roenbaeck | SQL | Code | 26 | 47 | -- create schema if it does not exist
IF NOT EXISTS (SELECT 1 FROM sys.schemas WHERE name = 'metadata')
BEGIN
EXEC( 'CREATE SCHEMA metadata' );
END
| 2,818 |
https://github.com/Jazz-hash/Bookmarks-Gatsby/blob/master/functions/bookmarks/index.js | Github Open Source | Open Source | RSA-MD | null | Bookmarks-Gatsby | Jazz-hash | JavaScript | Code | 79 | 266 | var faunadb = require("faunadb"),
q = faunadb.query
var client = new faunadb.Client({ secret: process.env.FAUNADB_SECRET })
async function run() {
try {
// const results = await client.query(
// q.Update(q.Ref(q.Collection("todos"), "280170789352768005"), {
// data: {
// done: true,
... | 5,710 |
https://github.com/kalufinnle/unity-renderer/blob/master/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/SceneBoundariesController/Tests/SceneBoundariesCheckerTests_DebugMode.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | unity-renderer | kalufinnle | C# | Code | 288 | 1,408 | using System.Collections;
using DCL;
using DCL.Components;
using DCL.Controllers;
using DCL.Helpers;
using Newtonsoft.Json;
using UnityEngine;
using UnityEngine.TestTools;
namespace SceneBoundariesCheckerTests
{
public class SceneBoundariesCheckerTests_DebugMode : IntegrationTestSuite_Legacy
{
protecte... | 36,500 |
https://github.com/nownabe/dailytoggl/blob/master/pixela.go | Github Open Source | Open Source | MIT | 2,021 | dailytoggl | nownabe | Go | Code | 233 | 764 | package dailytoggl
import (
"fmt"
"io/ioutil"
"net/http"
"strings"
"time"
)
const pixelaBaseURL = "https://pixe.la/v1/users"
// PixelaClient defines pixela client's behaviors.
type PixelaClient interface {
getGraph() ([]byte, error)
graphURL() string
update(time.Time, int64) error
}
type pixelaClient struct... | 46,946 |
https://github.com/rizalgowandy/gotalk/blob/master/examples/websocket-chat/server.go | Github Open Source | Open Source | MIT | 2,022 | gotalk | rizalgowandy | Go | Code | 596 | 1,912 | // Multi-room chat app implemented in gotalk
package main
import (
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math/rand"
"net/http"
"os"
"os/signal"
"sync"
"syscall"
"time"
"github.com/rsms/gotalk"
)
type Room struct {
Name string `json:"name"`
mu sync.RWMutex
messages []*Message... | 12,829 |
https://github.com/Halleck45/stage1/blob/master/web/js/demo.js | Github Open Source | Open Source | MIT | 2,014 | stage1 | Halleck45 | JavaScript | Code | 379 | 1,583 | function demo_websocket_listen(websocketChannel) {
console.log('listening for demo build on channel "' + websocketChannel + '"');
var primus = Primus.connect('http://' + document.location.hostname + ':8090/', {
privatePattern: /(project|user)\.\d+/,
auth_url: websocket_auth_url,
});
v... | 7,283 |
https://github.com/lingxiaoyang/Rodan/blob/master/rodan/serializers/workflowjobgroupcoordinateset.py | Github Open Source | Open Source | MIT | 2,019 | Rodan | lingxiaoyang | Python | Code | 35 | 150 | from rodan.models.workflowjobgroupcoordinateset import WorkflowJobGroupCoordinateSet
from rest_framework import serializers
from rodan.serializers import TransparentField
class WorkflowJobGroupCoordinateSetSerializer(serializers.HyperlinkedModelSerializer):
data = TransparentField(required=False)
class Meta:
... | 12,845 |
https://github.com/escandihub/Sare-API/blob/master/app/Http/Controllers/DocumentController.php | Github Open Source | Open Source | MIT | 2,022 | Sare-API | escandihub | PHP | Code | 257 | 1,021 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Documento;
use App\Models\Enlace;
use Validator, Redirect, Response, File;
use App\Http\Requests\DocumentRequest;
use Illuminate\Support\Str;
use App\Http\Controllers\Traits\helper;
use Illuminate\Support\Facades\Auth;
class DocumentC... | 51,720 |
https://github.com/matheusnoronha/Sistema-Gerenciador-De-Consultas/blob/master/database/factories/PessoaFactory.php | Github Open Source | Open Source | MIT | null | Sistema-Gerenciador-De-Consultas | matheusnoronha | PHP | Code | 102 | 390 | <?php
namespace Database\Factories;
use App\Models\Pessoa;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Hash;
use Faker\Factory as Faker;
class PessoaFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
*... | 36,179 |
https://github.com/m760622/DuckUI/blob/master/Source/D_Enums/D_Enums.swift | Github Open Source | Open Source | MIT | null | DuckUI | m760622 | Swift | Code | 73 | 177 | //
// D_Enums.swift
// DuckUI
//
// Created by Alex Nagy on 11/06/2019.
//
import Foundation
public enum D_ViewSafeArea {
case top, leading, trailing, bottom, vertical, horizontal, all, none
}
public enum D_DividerType {
case extraSmall, small, normal, medium, large, extraLarge
}
public enum D_LineType {... | 21,219 |
https://github.com/henceforth1984/maskgan-seq2seq/blob/master/scripts/preprocessing/preprocess_vocalization.sh | Github Open Source | Open Source | MIT | 2,019 | maskgan-seq2seq | henceforth1984 | Shell | Code | 8 | 66 | #!/usr/bin/env bash
python3 preprocess.py --input_file='../../data/raw/he-pron-wiktionary.txt' --output_dir='../../data/interim/vocalization/' --source_lang='he' --target_lang='voc' | 45,810 |
https://github.com/educational-resources-and-services/bibletags-widget/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | bibletags-widget | educational-resources-and-services | JavaScript | Code | 763 | 2,266 | import React from 'react'
// import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider'
import { determineUILanguageId, setUpI18n } from './utils/i18n.js'
// import styled from 'styled-components'
import { setUp, ready, updateHeight, report } from './utils/postMessage.js'
import { getOrigLangAndLXXVersion... | 25,922 |
https://github.com/vkkunev/rideit/blob/master/graphql/types/Community.js | Github Open Source | Open Source | MIT | null | rideit | vkkunev | JavaScript | Code | 40 | 112 | const gql = require('graphql-tag');
const CommunityType = gql`
type Community {
id: ID!
name: String!
description: String!
},
type Query {
getCommunities: [Community]
getCommunity(communityID: ID!): Community
},
type Mutation {
createCommunity(name: String!, description: String!): Com... | 16,343 |
https://github.com/kknet/hermes/blob/master/hermes-main/src/main/java/com/jlfex/hermes/main/InvestController.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | hermes | kknet | Java | Code | 1,342 | 5,772 | package com.jlfex.hermes.main;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import ... | 4,629 |
https://github.com/CKPalk/PA-POC-Video-Contoller/blob/master/app/containers/routes/Routes.js | Github Open Source | Open Source | MIT | null | PA-POC-Video-Contoller | CKPalk | JavaScript | Code | 101 | 286 | import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { Router, Route } from '../../router'
import { AppLayout, SigninLayout } from '../../layouts'
import {
Login,
Validate,
History,
Settings,
ProfileBuilder
} from '..'
@connect(
state => ({ authenticated: !!state.$$userStat... | 39,580 |
https://github.com/yanyitec/Itec.Flows/blob/master/Itec.Flows1/States/ICascadeReadOnlyState.cs | Github Open Source | Open Source | MIT | null | Itec.Flows | yanyitec | C# | Code | 31 | 99 | using System;
using System.Collections.Generic;
using System.Text;
namespace Itec.Flows
{
public interface ICascadeReadOnlyState:IReadOnlyState
{
ICascadeReadOnlyState Super { get; }
T Overall<T>(string key);
string OverallString(string key);
object Overall(string key, Type obj... | 40,684 |
https://github.com/shield-9/k8s-coral-accelerators/blob/master/cmd/coral_edgetpu/coral_edgetpu.go | Github Open Source | Open Source | Apache-2.0 | null | k8s-coral-accelerators | shield-9 | Go | Code | 102 | 430 | package main
import (
"flag"
"fmt"
"os"
"os/signal"
"syscall"
"time"
edgetpumanager "github.com/CyberAgent/sia-ake-accelerators/pkg/edgetpu/coral"
"github.com/golang/glog"
)
const (
pluginSocketPrefix = "coral-edgetpu"
devDirectory = "/dev"
)
var (
pluginMountPath = flag.String("plugin-directory", ... | 22,814 |
https://github.com/mld-cih/chrome_deps/blob/master/chrome/browser/media_gallery/win/recursive_mtp_device_object_enumerator.h | Github Open Source | Open Source | BSD-3-Clause | 2,013 | chrome_deps | mld-cih | C++ | Code | 234 | 845 | // Copyright (c) 2013 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.
#ifndef CHROME_BROWSER_MEDIA_GALLERY_WIN_RECURSIVE_MTP_DEVICE_OBJECT_ENUMERATOR_H_
#define CHROME_BROWSER_MEDIA_GALLERY_WIN_RECURSIVE_MTP_DEVICE_OBJEC... | 33,410 |
https://github.com/CartoDB/cartodb/blob/master/lib/assets/javascripts/builder/components/form-components/editors/datetime/datetime.js | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, BSD-3-Clause | 2,023 | cartodb | CartoDB | JavaScript | Code | 235 | 1,000 | var Backbone = require('backbone');
var EditorHelpers = require('builder/components/form-components/helpers/editor');
var moment = require('moment');
var DatetimeDialogModel = require('./datetime-dialog-model');
var DatetimeDialogView = require('./datetime-dialog-view');
var template = require('./datetime.tpl');
var ... | 18,642 |
https://github.com/larso0/terse/blob/master/AST/List.h | Github Open Source | Open Source | MIT | null | terse | larso0 | C | Code | 25 | 85 | #ifndef TERSE_LIST_H
#define TERSE_LIST_H
#include "Expression.h"
#include <memory>
#include <vector>
namespace Terse {
class List : public Expression {
public:
std::vector<std::shared_ptr<Expression>> list;
};
}
#endif
| 34,055 |
https://github.com/DynamoRIO/drk/blob/master/suite/tests/client-interface/events.dll.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | drk | DynamoRIO | C | Code | 1,441 | 6,406 | /* **********************************************************
* Copyright (c) 2008-2009 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | 51,982 |
https://github.com/realmgic/aerospike-client-rest/blob/master/src/main/java/com/aerospike/restclient/util/HeaderHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | aerospike-client-rest | realmgic | Java | Code | 195 | 444 | /*
* Copyright 2020 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance wi... | 23,692 |
https://github.com/gcampbell391/ruby-project-alt-guidelines-atlanta-web-021720/blob/master/bin/run.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,020 | ruby-project-alt-guidelines-atlanta-web-021720 | gcampbell391 | Ruby | Code | 1,278 | 4,222 | require_relative '../config/environment'
require "tty-prompt"
require 'colorize'
####Allows a user to log-in to an account (Works!)
def login
2.times do
puts ""
end
puts " ` `
--sN+ +Ns--
-/:NNsN+ +NsNN:/-... | 39,949 |
https://github.com/Build-Week-WeightLiftingJournal/Backend/blob/master/api/routes/workout/workout_route.test.js | Github Open Source | Open Source | MIT | null | Backend | Build-Week-WeightLiftingJournal | JavaScript | Code | 114 | 416 | const server = require('../../server');
const db = require("../../../database/dbConfig")
const request = require("supertest")
describe("workouts", () => {
describe('TESTING ENVIRONMENT', () => {
it('should set env to testing', () => {
expect(process.env.DB_ENV).toBe('testing');
});
... | 26,627 |
https://github.com/indisc/comscout/blob/master/public/bootstrap/less/source.less | Github Open Source | Open Source | MIT, CC-BY-3.0 | 2,015 | comscout | indisc | Less | Code | 14 | 86 | @padding-all:15em;
@font-first: 'Lato';
@font-900italic-weight: 900;
@font-700-weight: 700;
@font-400-weight: 400;
@font-300-weight:300;
@font-h3: 2em;
@font-p: 1em;
| 32,967 |
https://github.com/highduck/ekx/blob/master/packages/scenex/src/ek/scenex/text/Font.cpp | Github Open Source | Open Source | 0BSD | 2,022 | ekx | highduck | C++ | Code | 269 | 951 | #include "Font.hpp"
#include <ek/canvas.h>
#include "FontImplBase.hpp"
namespace ek {
Font::Font(FontImplBase* impl_) :
impl{impl_} {
}
Font::~Font() {
delete impl;
}
void Font::draw(const char* text,
float size,
vec2_t position,
color_t color,
... | 29,661 |
https://github.com/Enache-Ionut/Resume-AspDotNetCore/blob/master/Resume/Resume/Views/Shared/_FooterPartial.cshtml | Github Open Source | Open Source | MIT | null | Resume-AspDotNetCore | Enache-Ionut | C# | Code | 49 | 283 | <footer class="border-top footer text-muted">
<div class="container text-white footer-container">
<a class="link-hover text-white social-media-margin" href="https://www.linkedin.com/in/ionut-enache-stoian-21341b180/" target="_blank" rel="noopener noreferrer">
<i class="fa fa-linkedin-square" style="font-s... | 15,323 |
https://github.com/RyanTech/v1.70-----/blob/master/IceBox/CDFoodDataController.m | Github Open Source | Open Source | MIT | 2,014 | v1.70----- | RyanTech | Objective-C | Code | 1,359 | 5,116 | //
// CDFoodDataController.m
// IceBox
//
// Created by shane li on 5/4/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "CDFoodDataController.h"
#import "CDFood.h"
#import "Tools.h"
@implementation CDFoodDataController
{
NSUserDefaults *userDefaults;
NSMutableArray * shoppingD... | 46,734 |
https://github.com/skidanovilya/todoer/blob/master/app/Models/Task.php | Github Open Source | Open Source | MIT | 2,020 | todoer | skidanovilya | PHP | Code | 189 | 686 | <?php
namespace TorjaPHP\Models;
use TorjaPHP\Core\Model;
use TorjaPHP\Components\Validator;
class Task extends Model {
public function sanitizePage($page) {
$validator = new Validator();
return $validator->sanitize($page, function($v) {
return filter_var($v, FILTER_SANITIZE_NUMBER... | 5,230 |
https://github.com/randyrants/multifilez/blob/master/MultiFilez/MultiFilez.clw | Github Open Source | Open Source | MS-PL | 2,020 | multifilez | randyrants | null | Spoken | 160 | 1,708 | ; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CMultiFilezDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "MultiFilez.h"
ClassCount=2
Class1=CMultiFilezApp
Class2=CMultiFilezDlg
ResourceCount=11
Resource2=IDR_MAINFRAME
Resource3=IDR_LV... | 9,725 |
https://github.com/JeroMiya/androidmono/blob/master/MonoJavaBridge/android/generated/java/util/regex/MatchResult.cs | Github Open Source | Open Source | MIT | 2,015 | androidmono | JeroMiya | C# | Code | 179 | 1,168 | namespace java.util.regex
{
[global::MonoJavaBridge.JavaInterface(typeof(global::java.util.regex.MatchResult_))]
public partial interface MatchResult : global::MonoJavaBridge.IJavaObject
{
global::java.lang.String group();
global::java.lang.String group(int arg0);
int start();
int start(int arg0);
int en... | 3,263 |
https://github.com/aleksandraprohorova/java-junior/blob/master/src/main/java/com/acme/edu/messages/StringMessage.java | Github Open Source | Open Source | OML | null | java-junior | aleksandraprohorova | Java | Code | 152 | 382 | package com.acme.edu.messages;
import com.acme.edu.common.Message;
public class StringMessage implements Message {
private String value;
private int counter;
public StringMessage(String value) {
this(value, 1);
}
public StringMessage(String value, int counter) {
this.value = value... | 24,075 |
https://github.com/buefy/buefy/blob/master/src/components/message/__snapshots__/Message.spec.js.snap | Github Open Source | Open Source | MIT | 2,023 | buefy | buefy | null | Spoken | 19 | 71 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`BMessage render correctly 1`] = `
<article class="message" name="fade">
<!---->
<!---->
<!---->
</article>
`;
| 40,456 |
https://github.com/Dporn/dporn-gmd/blob/master/src/main/java/co/dporn/gmd/servlet/mongodb/MongoDpornCo.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | dporn-gmd | Dporn | Java | Code | 1,170 | 4,806 | package co.dporn.gmd.servlet.mongodb;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.logging.Level;
import java.util.log... | 47,832 |
https://github.com/enriqueescobar-askida/Kinito.Python/blob/master/Section19_Observer/DependenciesObserver/Person.py | Github Open Source | Open Source | MIT | 2,020 | Kinito.Python | enriqueescobar-askida | Python | Code | 68 | 251 | from Section19_Observer.DependenciesObserver.PropertyObservable import PropertyObservable
class Person(PropertyObservable):
def __init__(self, age=0):
super().__init__()
self._age = age
@property
def can_vote(self):
return self._age >= 18
@property
def age(self):
return self._age
# @age... | 7,822 |
https://github.com/giancosta86/Rayon/blob/master/src/test/java/info/gianlucacosta/rayon/morphology/EndingTest.java | Github Open Source | Open Source | Apache-2.0 | null | Rayon | giancosta86 | Java | Code | 492 | 1,874 | /*^
===========================================================================
Rayon
===========================================================================
Copyright (C) 2018 Gianluca Costa
===========================================================================
Licensed under the Apache License, V... | 42,509 |
https://github.com/slimane-deb/sh-ng/blob/master/projects/custom-form/src/lib/formModel/dataFormType.ts | Github Open Source | Open Source | MIT | null | sh-ng | slimane-deb | TypeScript | Code | 9 | 24 |
export interface DataFormType {
libelle: string;
selected: boolean;
}
| 31,305 |
https://github.com/hanqunfeng/springbootchapter/blob/master/chapter56/src/main/java/com/example/csv/demo/CsvColumnOrderOnWriteHelper.java | Github Open Source | Open Source | MIT | 2,022 | springbootchapter | hanqunfeng | Java | Code | 136 | 523 | package com.example.csv.demo;
import com.opencsv.bean.CsvBindAndSplitByName;
import com.opencsv.bean.CsvBindByName;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
/**
* <h1>按表头写csv时的表头排序工具类</h1>
* Created by hanqf on 2021/10/19 17:37.
*
* @CsvBindByName
* @CsvBindAndSplitByName
... | 10,159 |
https://github.com/Arthas0310/QuantResearch/blob/master/dash/index.py | Github Open Source | Open Source | MIT | 2,021 | QuantResearch | Arthas0310 | Python | Code | 81 | 294 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import dash_table as dt
import logging
from app import app
from futures import commodity_futures_app
from misc import misc_data_app
app... | 26,112 |
https://github.com/6paklata/emerald-wallet/blob/master/packages/ui/src/components/accounts/Balance/index.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,020 | emerald-wallet | 6paklata | TypeScript | Code | 4 | 10 | export {default} from './Balance';
| 31,920 |
https://github.com/acidicMercury8/xray-1.6/blob/master/src/xrGame/game_cl_capture_the_artefact_captions_manager.cpp | Github Open Source | Open Source | Linux-OpenIB | 2,022 | xray-1.6 | acidicMercury8 | C++ | Code | 435 | 2,351 | #include "StdAfx.h"
#include "string_table.h"
#include "Level.h"
#include "ui/TeamInfo.h"
#include "game_cl_capture_the_artefact.h"
#include "game_cl_capture_the_artefact_captions_manager.h"
#include "actor.h"
CTAGameClCaptionsManager::CTAGameClCaptionsManager()
{
parent_game_ui = NULL;
parent_game_object = NUL... | 33,752 |
https://github.com/Olimpian/libgdx/blob/master/NES Bomberman/src/suvitruf/classic/bomberman/screens/CustomArrowsScreen.java | Github Open Source | Open Source | BSD-3-Clause | 2,014 | libgdx | Olimpian | Java | Code | 1,158 | 5,836 | /*******************************************************************************
* Copyright (c) [2013], [Apanasik Andrey]
* http://suvitruf.ru/
* https://github.com/Suvitruf/libgdx/tree/master/NES%20Bomberman
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modificat... | 45,871 |
https://github.com/Liuqian0501/elements-of-programming-interview/blob/master/10-heap/10.2-Sort-an-increasing-decreasing-array/C++/C++/sortKvector.h | Github Open Source | Open Source | MIT | 2,017 | elements-of-programming-interview | Liuqian0501 | C++ | Code | 181 | 588 | //
// sortKvector.cpp
// C++
//
// Created by Qian Liu on 8/12/17.
// Copyright © 2017 qianliu. All rights reserved.
//
#ifndef sortKvectors_h_
#define sortKvectors_h_
#include <vector>
#include <cassert>
#include <queue>
using std::vector;
using std::equal;
using std::greater;
using std::priority_queue;
names... | 25,317 |
https://github.com/iamhandre/potato-state-machine/blob/master/src/PotatoStateMachine/Interfaces/IPotatoAction.cs | Github Open Source | Open Source | MIT | null | potato-state-machine | iamhandre | C# | Code | 13 | 45 | namespace PotatoStateMachine.Interfaces
{
using System.Threading.Tasks;
public interface IPotatoAction
{
Task ExecuteAsync();
}
} | 52,112 |
https://github.com/fuck2ky/YgoMaster/blob/master/YgoMaster/Sim/CpuContest.cs | Github Open Source | Open Source | MIT | 2,022 | YgoMaster | fuck2ky | C# | Code | 1,377 | 4,509 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Diagnostics;
// TODO:
// - Add a matchmaking system. Currently it picks opponents at random which probably doesn't produce great rank distri... | 25,565 |
https://github.com/Fakiu2020/APFL/blob/master/src/app/views/shared/modal-delete/modal-delete.component.ts | Github Open Source | Open Source | MIT | null | APFL | Fakiu2020 | TypeScript | Code | 66 | 225 | import { Component, OnInit } from '@angular/core';
import { BsModalRef } from 'ngx-bootstrap/modal';
import { Subject } from 'rxjs';
@Component({
selector: 'app-modal-delete',
templateUrl: './modal-delete.component.html',
styleUrls: ['./modal-delete.component.scss']
})
export class ModalDeleteComponent implement... | 4,039 |
https://github.com/thedemodev/tutorbook/blob/master/src/app/packages/schedule/index.js | Github Open Source | Open Source | MIT | 2,020 | tutorbook | thedemodev | JavaScript | Code | 1,862 | 5,428 | import {
MDCRipple
} from '@material/ripple/index';
import {
MDCTopAppBar
} from '@material/top-app-bar/index';
import $ from 'jquery';
import to from 'await-to-js';
const SearchHeader = require('@tutorbook/search').header;
const Card = require('@tutorbook/card');
const Data = require('@tutorbook/data');
cons... | 37,710 |
https://github.com/pi-engine/pi/blob/master/usr/module/user/asset/admin/role.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pi | pi-engine | JavaScript | Code | 286 | 989 | angular.module('user')
.config(['$routeProvider', 'piProvider', 'config',
function ($routeProvider, piProvider, config) {
//Get template url
function tpl(name) {
return config.assetRoot + name + '.html';
}
$routeProvider.when('/:role/users', ... | 22,959 |
https://github.com/DavidBarke/QWUtils/blob/master/man/script_paths.Rd | Github Open Source | Open Source | MIT | 2,020 | QWUtils | DavidBarke | R | Code | 96 | 247 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/script_paths.R
\name{script_paths}
\alias{script_paths}
\title{Get paths of R scripts}
\usage{
script_paths(directory, recursive = TRUE, full.names = TRUE,
ending = ".*[.](r|R|s|S|q)([.](lnk|LNK))*$")
}
\arguments{
\item{directory}{A path t... | 19,501 |
https://github.com/ligana/Ensemble-om-SpringBoot/blob/master/src/main/java/com/dcits/ensemble/om/repository/tables/GlProdMappingRepository.java | Github Open Source | Open Source | MIT | 2,019 | Ensemble-om-SpringBoot | ligana | Java | Code | 21 | 139 | package com.dcits.ensemble.om.repository.tables;
import com.dcits.ensemble.om.model.dbmodel.tables.GlProdMapping;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.util.List;
public interface GlProdMappingRepository exte... | 10,821 |
https://github.com/EndPointCorp/lg_ros_nodes/blob/master/lg_offliner/test/online/test_when_online.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | lg_ros_nodes | EndPointCorp | Python | Code | 159 | 513 | #!/usr/bin/env python3
"""
lg offliner online scenarios ...
starting roslaunch for development:
roslaunch --screen lg_offliner/test/online/test_when_online.test
could do:
py.test -s -v lg_offliner/test/online/test_when_online.py
running tests manually:
rostest lg_offliner/test/online/test_when_online... | 45,289 |
https://github.com/Normsmiway/FATCA/blob/master/Fatca/Fatca.Core/Models/PoolBalance.cs | Github Open Source | Open Source | MIT | null | FATCA | Normsmiway | C# | Code | 45 | 144 | namespace Fatca.Core.Models
{
/*
Licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
*/
using System.Xml.Serialization;
[XmlRoot(ElementName = "PoolBalance", Namespace = "urn:oecd:ties:fatca:v2")]
public class PoolBalance
{
[XmlAttribute(AttributeNam... | 25,587 |
https://github.com/ngyewch/go-simple-oauth2-middleware/blob/master/github-org-authorizer.go | Github Open Source | Open Source | MIT | 2,021 | go-simple-oauth2-middleware | ngyewch | Go | Code | 124 | 399 | package go_simple_oauth2_middleware
import (
"github.com/markbates/goth"
)
type GithubOrgAuthorizer struct {
orgEntries []*githubOrgEntry
}
type githubOrgEntry struct {
name string
authorities []string
}
func NewGithubOrgAuthorizer() *GithubOrgAuthorizer {
return &GithubOrgAuthorizer{
orgEntries: make... | 38,912 |
https://github.com/sillywiz/lara-shop/blob/master/public/src/coffee/serv/controllers.coffee | Github Open Source | Open Source | MIT | null | lara-shop | sillywiz | CoffeeScript | Code | 93 | 332 | class Register
constructor: ($scope,$sanitize,$location,Authenticate,Registration,Flash) ->
$scope.alerts = [];
$scope.closeAlert = (index) ->
$scope.alerts.splice(index, 1)
return
$scope.login = () ->
Authenticate.save {
'username': $sanitize $scope.username
'password':... | 15,012 |
https://github.com/Nicklahara252729/2016-laravel-cart/blob/master/app/Events/Event.php | Github Open Source | Open Source | MIT, Unlicense | null | 2016-laravel-cart | Nicklahara252729 | PHP | Code | 9 | 24 | <?php
namespace fooCart\Events;
abstract class Event
{
//
}
| 24,551 |
https://github.com/NervanaSystems/ngraph-python/blob/master/ngraph/transformers/hetrtransform.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | ngraph-python | NervanaSystems | Python | Code | 1,188 | 3,551 | # ******************************************************************************
# Copyright 2017-2018 Intel 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... | 21,800 |
https://github.com/Arvtesh/UnityFx.Async/blob/master/src/UnityFx.Async/Implementation/Callbacks/SingleContextCallbackCollection.cs | Github Open Source | Open Source | MIT | 2,022 | UnityFx.Async | Arvtesh | C# | Code | 434 | 1,506 | // Copyright (c) 2018-2020 Alexander Bogarsukov.
// Licensed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace UnityFx.Async
{
/// <summary>
/// A single-threaded imple... | 24,565 |
https://github.com/jaswindersingh2/RNAcmap2/blob/master/predictions/plmc/rnacmap2/PKB76.st | Github Open Source | Open Source | MIT | 2,022 | RNAcmap2 | jaswindersingh2 | null | Spoken | 207 | 749 | #Name: PKB76
#Length: 89
#PageNumber: 3
#Warning: Structure contains linked PK-segments of same sizes 1 and 1. Using PK brackets for the more 5' segment
GGGUCGGCAUGGCAUCUCCACCUCCUCGCGGUCCGACCUGGGCAUCCGAAGGAGGACGCACGUCCACUCGGAUGGCUAAGGGAGAGCCA
......(.......).............(......)............((.....)...)...[{.(.]})....... | 51,368 |
https://github.com/ggaaooppeenngg/milvus/blob/master/core/unittest/scheduler/test_resource_factory.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | milvus | ggaaooppeenngg | C++ | Code | 133 | 332 | // Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 3,417 |
https://github.com/lmazuel/azure-sdk-for-python/blob/master/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account.py | Github Open Source | Open Source | MIT | 2,018 | azure-sdk-for-python | lmazuel | Python | Code | 735 | 2,510 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 29,901 |
https://github.com/greasepigm/AUnluac/blob/master/unluac-hgcode/test/src/once04.lua | Github Open Source | Open Source | MIT | 2,018 | AUnluac | greasepigm | Lua | Code | 30 | 71 |
for i = 1, 10 do
local t = false
repeat
t = f3(i)
if f4() then
break
else
f1()
end
f2()
until true
if t then
break
end
end
| 51,547 |
https://github.com/mathieu/pmml4s/blob/master/src/main/scala/org/pmml4s/model/NearestNeighborModel.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | pmml4s | mathieu | Scala | Code | 2,077 | 4,963 | /*
* Copyright (c) 2017-2019 AutoDeploy AI
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 15,164 |
https://github.com/opencollective/colour/blob/master/colour/appearance/tests/test_llab.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | colour | opencollective | Python | Code | 451 | 1,793 | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.appearance.llab` module.
"""
from __future__ import division, unicode_literals
from colour.utilities.array import tstack
import numpy as np
try:
from unittest import mock
except ImportError: # pragma: no cover
import mock... | 12,313 |
https://github.com/schlingding/GeospatialKit/blob/master/GeospatialKitExample/Workflow/Display/DrawingViewWrapper.swift | Github Open Source | Open Source | BSD-3-Clause | 2,021 | GeospatialKit | schlingding | Swift | Code | 467 | 1,246 | import UIKit
import GeospatialSwift
import GeospatialKit
class DrawingViewWrapper: UIView {
var geoJsonObject: GeoJsonObject?
var geospatialCocoa: GeospatialCocoa!
var drawingRenderModel: DrawingRenderModel!
override func awakeFromNib() {
addGestureRecognizer(UIPinchGestureRecognizer(targe... | 25,043 |
https://github.com/seandenigris/ApplicationSecurity/blob/master/repository/ApplicationSecurityTest.package/ASDeployCheckPointTest.class/instance/testRepository.st | Github Open Source | Open Source | MIT | 2,019 | ApplicationSecurity | seandenigris | null | Spoken | 18 | 40 | testing
testRepository
self assert: (self checkPoint repository isKindOf: ASRepository).
self assert: (self checkPoint repository checkPoint == self checkPoint) | 13,583 |
https://github.com/swagger-api/swagger-inflector/blob/master/src/test/java/io/swagger/oas/test/client/ApiClient.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | swagger-inflector | swagger-api | Java | Code | 1,836 | 4,864 | /*
* Copyright 2017 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 51,117 |
https://github.com/przemekwa/ProgramingStudy/blob/master/ProgramingStudy/Study/LanguageStudy/Inheritance.cs | Github Open Source | Open Source | MIT | null | ProgramingStudy | przemekwa | C# | Code | 74 | 247 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProgramingStudy.Study.LanguageStudy
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/// <summary>
/// TODO: Update summary.
... | 31,388 |
https://github.com/Sebi1006/se-ws17-minesweeper/blob/master/src/main/scala/de/htwg/se/minesweeper/util/Command.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | se-ws17-minesweeper | Sebi1006 | Scala | Code | 15 | 51 | package de.htwg.se.minesweeper.util
trait Command {
def doStep(): Unit
def undoStep(): Unit
def redoStep(): Unit
}
| 42,360 |
https://github.com/Kimbarona/Marketplace/blob/master/app/Http/Controllers/UserController.php | Github Open Source | Open Source | MIT | 2,020 | Marketplace | Kimbarona | PHP | Code | 342 | 1,050 | <?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Support\Facades\Hash;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Http\Request;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
... | 36,661 |
https://github.com/Confocus/CNNSAutoInspect/blob/master/v2/GenExcel.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | CNNSAutoInspect | Confocus | Python | Code | 239 | 1,075 | #coding=utf-8
import xlrd
import xlwt
import pickle
import xlutils
from xlutils.copy import copy
import openpyxl
from openpyxl.styles import Border, Side, Font
from collections import namedtuple
#import pandas
#import struct
#from xlwt import *
#f = open("D:\demo1.xlsx", 'w') 创建Excel文件不要用open,而应该使用包xlwt下的API
#f.clos... | 25,182 |
https://github.com/fakhirsh/3DShaderDemo/blob/master/Source/FEngine/StateManager/State.h | Github Open Source | Open Source | MIT | 2,016 | 3DShaderDemo | fakhirsh | C | Code | 133 | 368 | //
// State.h
// WordGame
//
// Created by Fakhir Shaheen on 01/11/2014.
// Copyright (c) 2014 Fakhir Shaheen. All rights reserved.
//
#ifndef __WordGame__State__
#define __WordGame__State__
#include "../Common.h"
namespace Fakhir
{
typedef std::vector<class ScreenElement *> ScreenElementList;
clas... | 36,868 |
https://github.com/Angelyn/QRSim-ababujo/blob/master/sim/enviroment/gps/GPSSpaceSegmentGM.m | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,017 | QRSim-ababujo | Angelyn | MATLAB | Code | 555 | 2,206 | classdef GPSSpaceSegmentGM < GPSSpaceSegment
% Class that simulates the correlate noise affecting the GPS pseudorange.
% The running assumption is that all the receivers are (approximately) geographically
% co-located so that pseudorange measurements to the same satellite vehicle obtained
% by different... | 14,678 |
https://github.com/dk25021999/sanskrit/blob/master/dcs/data/conllu/files/Mahābhārata/Mahābhārata-1280-MBh, 9, 62-9166.conllu | Github Open Source | Open Source | CC-BY-4.0 | 2,020 | sanskrit | dk25021999 | null | Spoken | 17,422 | 55,514 | ## text: Mahābhārata
## text_id: 154
## chapter: MBh, 9, 62
## chapter_id: 9166
# text_line: janamejaya uvāca
# text_line_id: 268365
# text_line_counter: 1
# text_line_subcounter: 1
1 janamejaya janamejaya _ NC Case=Nom|Number=1|Gender=Masc _ _ _ _ 87482 _ _
2 uvāca vac _ V Tense=Perf|Mood=Ind|Person=3|Number=Sing _ _... | 39,805 |
https://github.com/mmorejon/microservices-docker-go-mongodb/blob/master/modules/website/cue.mod/gen/k8s.io/api/networking/v1/well_known_annotations_go_gen.cue | Github Open Source | Open Source | Apache-2.0 | 2,023 | microservices-docker-go-mongodb | mmorejon | null | Spoken | 60 | 126 | // Code generated by cue get go. DO NOT EDIT.
//cue:generate cue get go k8s.io/api/networking/v1
package v1
// AnnotationIsDefaultIngressClass can be used to indicate that an
// IngressClass should be considered default. When a single IngressClass
// resource has this annotation set to true, new Ingress resources wi... | 23,686 |
https://github.com/AlexanderLevenskikh/network-forensics/blob/master/analyst-app/server/src/Controllers/UserController.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | network-forensics | AlexanderLevenskikh | TypeScript | Code | 106 | 381 | import { Body, Controller, Delete, Get, Post, Query, UseFilters, UseGuards } from '@nestjs/common';
import { AuthExceptionFilter } from '../Filters/AuthExceptionsFilter';
import { AuthenticatedGuard } from '../Services/Guards/AuthenticatedGuard';
import { UserService } from '../Services/User/UserService';
import { Curr... | 46,177 |
https://github.com/predatorpc/esalat/blob/master/components/WBasketDeliveryFree.php | Github Open Source | Open Source | BSD-3-Clause | 2,017 | esalat | predatorpc | PHP | Code | 182 | 915 | <?php
namespace app\components;
use yii\base\Widget;
use yii\bootstrap\Progress;
use app\modules\common\models\ModFunctions;
use app\modules\actions\models\ActionsPresentSave;
class WBasketDeliveryFree extends Widget{
const PRESENT_KEY = 1;
public function run(){
/*
$deltaMobey = \Yii::$app->basket->... | 29,572 |
https://github.com/cindyhanae/cindy-hanae/blob/master/js/script.js | Github Open Source | Open Source | MIT | null | cindy-hanae | cindyhanae | JavaScript | Code | 93 | 426 | const bars = document.querySelector('.js-bars')
const menuMobile = document.querySelector('.js-menu-mobile')
const menuItem = document.querySelectorAll('.js-menu-mobile ul li a')
const contatoMenuMobile = document.querySelectorAll('.js-contato-menu a')
const body = document.querySelector('body')
function openMenu(){
... | 8,562 |
https://github.com/NameIsBad/Zoey.Quartz/blob/master/src/Zoey.Quartz.Web/Views/Home/Index.cshtml | Github Open Source | Open Source | MIT | 2,021 | Zoey.Quartz | NameIsBad | C# | Code | 130 | 616 | @{
ViewData["Title"] = "Home Page";
Layout = null;
}
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<link href="~/iView/iview.css" rel="stylesheet" />
<link rel="stylesheet" href="//unpkg.com/iview/dist/styles/iview.css">
<link href="... | 46,421 |
https://github.com/fairywhyte/beauty-review-aggregator/blob/master/resources/views/results.blade.php | Github Open Source | Open Source | MIT | 2,018 | beauty-review-aggregator | fairywhyte | Blade | Code | 561 | 2,944 | <title> Results Page | La Ravelle </title>
@extends('layout')
@section('content')
@php
if (!isset ($criteria)){
$criteria=[];
}
//preparing all the brands and their number of products
$brands = [];
$brands_count = [];
foreach($products as $product){
if(!isset($brands_count[$product->brand_id])){
$b... | 5,393 |
https://github.com/matescharnitzky/deep-learning-from-scratch/blob/master/mate_scratch/joelnet/layers.py | Github Open Source | Open Source | MIT | null | deep-learning-from-scratch | matescharnitzky | Python | Code | 350 | 1,068 |
import numpy as np
from numpy import ndarray
from typing import Dict, Callable
from joelnet.utils import sigmoid, sigmoid_prime, tanh, tanh_prime, relu, relu_prime
class Layer:
"""
Base class for layers. Each layer should have a forward a backward pass.
"""
def __init__(self) -> None:
sel... | 16,143 |
https://github.com/plaidml/plaidml/blob/master/plaidml/op/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | plaidml | plaidml | Python | Code | 634 | 2,296 | # Copyright 2019 Intel Corporation.
import enum
import logging
import six
import plaidml.edsl as edsl
from plaidml.ffi import ffi, ffi_call, lib
logger = logging.getLogger(__name__)
class AutoDimMode(enum.IntEnum):
MATCH = 0
FILL = -1
class AutoGroupMode(enum.IntEnum):
UNGROUPED = 0 # Group size ex... | 11,536 |
https://github.com/electronhead/whendo/blob/master/whendo/api/router/servers.py | Github Open Source | Open Source | MIT | 2,022 | whendo | electronhead | Python | Code | 416 | 1,838 | from fastapi import APIRouter, status, Depends
from whendo.core.util import KeyTagMode
from whendo.api.shared import return_success, raised_exception, get_dispatcher
from whendo.core.resolver import resolve_server, resolve_rez, resolve_action
router = APIRouter(prefix="/servers", tags=["Servers"])
@router.get("", st... | 14,973 |
https://github.com/FreyaFreed/mordheim/blob/master/Assembly-CSharp/Pathfinding/ABPath.cs | Github Open Source | Open Source | CC0-1.0 | 2,020 | mordheim | FreyaFreed | C# | Code | 1,262 | 5,484 | using System;
using System.Text;
using UnityEngine;
namespace Pathfinding
{
public class ABPath : global::Pathfinding.Path
{
protected virtual bool hasEndPoint
{
get
{
return true;
}
}
public static global::Pathfinding.ABPath Construct(global::UnityEngine.Vector3 start, global::UnityEngine.Vec... | 17,371 |
https://github.com/pinheirolucas/spidey/blob/master/static/js/character/services/characters_factory.js | Github Open Source | Open Source | MIT | null | spidey | pinheirolucas | JavaScript | Code | 133 | 662 | (function() {
"use strict";
angular
.module("spidey.character")
.factory("CharactersFactory", [
"$timeout",
"ObservableFactory",
"SpideyProxyService",
"SpinnerMediator",
CharactersFactory
]);
function CharactersFactory($ti... | 10,315 |
https://github.com/wojtek-t/test-infra/blob/master/jenkins/test-history/gen_html_test.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | test-infra | wojtek-t | Python | Code | 405 | 1,363 | #!/usr/bin/env python
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | 20,369 |
https://github.com/captain58/embed_platform/blob/master/platform/mcu/GD32F30x/Drivers/GD32F30x_usbfs_library/device/core/Include/usbd_enum.h | Github Open Source | Open Source | Apache-2.0 | null | embed_platform | captain58 | C | Code | 561 | 1,366 | /*!
\file usbd_enum.h
\brief USB enumeration definitions
\version 2020-08-01, V3.0.0, firmware for GD32F30x
*/
/*
Copyright (c) 2020, GigaDevice Semiconductor Inc.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following cond... | 14,525 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.