hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7fd11f8d27f57b26a83bf076b156471ed7a8e947 | 2,310 | php | PHP | src/Controller/Printer/PrintController.php | Georges-Ngandeu/crowdfunding_demo | ca012806252a42c0b8dc30a1b77185dfacb3b12b | [
"MIT"
] | null | null | null | src/Controller/Printer/PrintController.php | Georges-Ngandeu/crowdfunding_demo | ca012806252a42c0b8dc30a1b77185dfacb3b12b | [
"MIT"
] | null | null | null | src/Controller/Printer/PrintController.php | Georges-Ngandeu/crowdfunding_demo | ca012806252a42c0b8dc30a1b77185dfacb3b12b | [
"MIT"
] | null | null | null | <?php
namespace App\Controller\Printer;
use App\Manager\SubscriberProjectManager;
use App\Services\PdfService;
use App\Services\SubscriptionService;
use App\Services\Tools\FileService;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Cont... | 32.083333 | 162 | 0.609091 |
ae3fc09b1124808fbdd0a86cff1901729746e713 | 209 | cs | C# | Hollow Knight/TextMesh Pro/TextMesh Pro/Plugins/TMPro/TMP_InputValidator.cs | nickc01/ViridianCore | ff098c9313996618a843b96ff9c4a0cb777ddc76 | [
"MIT"
] | 4 | 2020-06-29T08:37:25.000Z | 2022-02-14T13:47:42.000Z | Hollow Knight/TextMesh Pro/TextMesh Pro/Plugins/TMPro/TMP_InputValidator.cs | nickc01/ViridianCore | ff098c9313996618a843b96ff9c4a0cb777ddc76 | [
"MIT"
] | 2 | 2021-09-23T21:07:05.000Z | 2022-03-28T21:09:07.000Z | Hollow Knight/TextMesh Pro/TextMesh Pro/Plugins/TMPro/TMP_InputValidator.cs | nickc01/ViridianCore | ff098c9313996618a843b96ff9c4a0cb777ddc76 | [
"MIT"
] | 2 | 2021-05-12T07:29:28.000Z | 2022-02-14T11:43:39.000Z | using System;
using UnityEngine;
namespace TMPro
{
[Serializable]
public abstract class TMP_InputValidator : ScriptableObject
{
public abstract char Validate(ref string text, ref int pos, char ch);
}
}
| 17.416667 | 71 | 0.76555 |
7d91f7168931c812b84423ebf0646f32655925d9 | 941 | css | CSS | src/css/myreset.css | Eventidec/licaibao-responsive | 432bef40517a708205bd3829a5fab06a401305dc | [
"MIT"
] | 33 | 2017-06-01T01:08:18.000Z | 2021-11-07T20:25:47.000Z | src/css/myreset.css | Eventidec/licaibao-responsive | 432bef40517a708205bd3829a5fab06a401305dc | [
"MIT"
] | null | null | null | src/css/myreset.css | Eventidec/licaibao-responsive | 432bef40517a708205bd3829a5fab06a401305dc | [
"MIT"
] | 15 | 2017-07-09T08:32:08.000Z | 2020-06-17T00:40:38.000Z | /**
* 作品:myreset.css
* 维护:白小明
* 更新:2017年5月15日
* 理念:清除和重置是紧密不可分的
* 特色:适应中文,基于最新主流浏览器
*/
/* 清除内外边距 */
@charset "utf-8";
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
pre,dl, dt, dd, ul, ol, li,
fieldset, lengend, button, input, textarea,
th, td { margin: 0; padding: 0; }
/* 重置格式元素 */
ul, ol { list-style: no... | 20.456522 | 92 | 0.608927 |
14f375999fe96c26375856989d8e76cb840d0846 | 866 | swift | Swift | RetricaImglyKit/Classes/Frontend/Stores/ImageInfoRecord.swift | venticake/RetricaImglyKit-iOS | c7f8778bccc7a3a058ffe1ee5c0eb8b75de406b4 | [
"MIT"
] | 3 | 2017-02-27T00:38:52.000Z | 2021-03-23T14:07:34.000Z | RetricaImglyKit/Classes/Frontend/Stores/ImageInfoRecord.swift | venticake/RetricaImglyKit-iOS | c7f8778bccc7a3a058ffe1ee5c0eb8b75de406b4 | [
"MIT"
] | null | null | null | RetricaImglyKit/Classes/Frontend/Stores/ImageInfoRecord.swift | venticake/RetricaImglyKit-iOS | c7f8778bccc7a3a058ffe1ee5c0eb8b75de406b4 | [
"MIT"
] | 1 | 2017-03-15T19:19:47.000Z | 2017-03-15T19:19:47.000Z | // This file is part of the PhotoEditor Software Development Kit.
// Copyright (C) 2016 9elements GmbH <contact@9elements.com>
// All rights reserved.
// Redistribution and use in source and binary forms, without
// modification, are permitted provided that the following license agreement
// is approved and a leg... | 37.652174 | 77 | 0.732102 |
c6c8c8dcd80f2e314fd23333e1e5192e5dc8d599 | 201 | rb | Ruby | vendor/bundle/gems/after_commit_action-1.1.0/spec/models/another_model.rb | happycreator/sample_app | a06f4070ec8cb93609f663ec11ec6eabe8b56f04 | [
"RSA-MD"
] | 26 | 2015-01-18T13:13:04.000Z | 2021-12-31T01:44:13.000Z | vendor/bundle/gems/after_commit_action-1.1.0/spec/models/another_model.rb | happycreator/sample_app | a06f4070ec8cb93609f663ec11ec6eabe8b56f04 | [
"RSA-MD"
] | 11 | 2020-07-02T06:10:05.000Z | 2022-02-19T03:38:23.000Z | vendor/bundle/ruby/2.7.0/gems/after_commit_action-1.1.0/spec/models/another_model.rb | morinakakoki/environment-sample_app | 4ffcd99fde97706f751bd2a83a7f215492edfea6 | [
"RSA-MD"
] | 4 | 2015-03-16T17:46:35.000Z | 2020-01-18T21:50:52.000Z | class AnotherModel < ActiveRecord::Base
include AfterCommitAction
belongs_to :tester
after_save :increment_tester_counter
def increment_tester_counter
tester.increment_counter
end
end
| 16.75 | 39 | 0.810945 |
eaa3f0599a90324c779254eb9d80f04597541f18 | 99 | rb | Ruby | spec/factories/feedback_form_response.rb | kojole/WikiEduDashboard | 7870e0dcdcdef4294f6d9ffb03ff5a14c74465b7 | [
"MIT"
] | 359 | 2015-01-30T03:39:20.000Z | 2022-03-27T10:27:22.000Z | spec/factories/feedback_form_response.rb | kojole/WikiEduDashboard | 7870e0dcdcdef4294f6d9ffb03ff5a14c74465b7 | [
"MIT"
] | 3,140 | 2015-01-13T06:25:43.000Z | 2022-03-31T22:02:11.000Z | spec/factories/feedback_form_response.rb | kojole/WikiEduDashboard | 7870e0dcdcdef4294f6d9ffb03ff5a14c74465b7 | [
"MIT"
] | 596 | 2015-01-24T06:18:15.000Z | 2022-03-31T21:28:32.000Z | # frozen_string_literal: true
FactoryBot.define do
factory :feedback_form_response do
end
end
| 14.142857 | 36 | 0.808081 |
a140af4e160ec9c39cc57e96627c4f3251c55152 | 12,586 | ts | TypeScript | packages/server/test/routes-api/entities/post-root.ts | AlendoStudio/api.auction.chvcm.ru | c6ceeb6784620ed8a5dbbd3f51b1c1905d6d4c0a | [
"MIT"
] | 2 | 2019-01-16T17:33:18.000Z | 2021-02-08T09:23:00.000Z | packages/server/test/routes-api/entities/post-root.ts | AlendoStudio/api.auction.chvcm.ru | c6ceeb6784620ed8a5dbbd3f51b1c1905d6d4c0a | [
"MIT"
] | 65 | 2018-07-30T08:29:45.000Z | 2019-06-15T09:13:51.000Z | packages/server/test/routes-api/entities/post-root.ts | AlendoStudio/api.auction.chvcm.ru | c6ceeb6784620ed8a5dbbd3f51b1c1905d6d4c0a | [
"MIT"
] | 1 | 2019-01-16T17:33:19.000Z | 2019-01-16T17:33:19.000Z | import {prepareApi} from "../../common";
import {expect} from "chai";
import * as sinon from "sinon";
import * as supertest from "supertest";
import waitForExpect from "wait-for-expect";
import {
ApiCodes,
Bcrypt,
Const,
EmailNotifications,
Entity,
Env,
Jwt,
Web,
} from "../../../src";
describe("POST... | 31.230769 | 80 | 0.571905 |
0c825f1cfb4de15b100d5a31ae89eff4dfc2ad44 | 4,617 | swift | Swift | Travel-IT/Hot Posts/HotPostsListVC.swift | iamank1t/travel-it-iOS | d4b0a3620cd834d1b9ea67cbc9ac8e530a454ef9 | [
"MIT"
] | 6 | 2018-03-22T20:03:27.000Z | 2020-07-10T22:23:49.000Z | Travel-IT/Hot Posts/HotPostsListVC.swift | iamank1t/travel-it-iOS | d4b0a3620cd834d1b9ea67cbc9ac8e530a454ef9 | [
"MIT"
] | 2 | 2018-03-28T15:25:06.000Z | 2018-04-25T10:14:03.000Z | Travel-IT/Hot Posts/HotPostsListVC.swift | iamank1t/travel-it-iOS | d4b0a3620cd834d1b9ea67cbc9ac8e530a454ef9 | [
"MIT"
] | 6 | 2018-03-22T20:03:34.000Z | 2019-10-24T12:47:04.000Z | //
// HotPostsListVC.swift
// Travel-IT
//
// Created by Ankit Singh on 23/03/18.
// Copyright © 2018 Ankit Singh. All rights reserved.
//
import UIKit
import SwiftyJSON
import NVActivityIndicatorView
class HotPostsListVC: UIViewController, UITableViewDataSource, UITableViewDelegate {
@IBOutlet var hotTravelp... | 41.594595 | 223 | 0.610136 |
c973421d9a33d35b665d31326a1c19e0c3ff7e94 | 1,760 | ts | TypeScript | packages/actor-query-operation-ask/lib/ActorQueryOperationAsk.ts | rubensworks/comunica | 8cddee42ff8a3a8debf9f64659add25054ca167a | [
"MIT"
] | null | null | null | packages/actor-query-operation-ask/lib/ActorQueryOperationAsk.ts | rubensworks/comunica | 8cddee42ff8a3a8debf9f64659add25054ca167a | [
"MIT"
] | null | null | null | packages/actor-query-operation-ask/lib/ActorQueryOperationAsk.ts | rubensworks/comunica | 8cddee42ff8a3a8debf9f64659add25054ca167a | [
"MIT"
] | null | null | null | import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';
import { ActorQueryOperation, ActorQueryOperationTypedMediated } from '@comunica/bus-query-operation';
import type { IActorTest } from '@comunica/core';
import type {
IActionContext,
IQueryOperationResult,
IQueryOperationR... | 39.111111 | 110 | 0.721591 |
ef68d0b898b5da9b231204075a0ba5ba6c194195 | 256 | h | C | singdemo/singdemo/SimpleView/ImagCode/QJCCodeSmallView.h | Qiaojuncheng/Repository | 6220cfc278f3ecf1110e572c845b53951446648d | [
"MIT"
] | null | null | null | singdemo/singdemo/SimpleView/ImagCode/QJCCodeSmallView.h | Qiaojuncheng/Repository | 6220cfc278f3ecf1110e572c845b53951446648d | [
"MIT"
] | null | null | null | singdemo/singdemo/SimpleView/ImagCode/QJCCodeSmallView.h | Qiaojuncheng/Repository | 6220cfc278f3ecf1110e572c845b53951446648d | [
"MIT"
] | null | null | null | //
// QJCCodeView.h
// singdemo
//
// Created by MYMAc on 2018/7/18.
// Copyright © 2018年 ShangYu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface QJCCodeSmallView : UIView
@property (copy ,nonatomic) NSString * CodeStr;// 图形验证码显示的文字
@end
| 18.285714 | 60 | 0.695313 |
9c1d37423e616355aaa823e78c857a7a60a42c48 | 6,724 | rs | Rust | src/game.rs | Ryan1729/aspect-aspic | 2acbc621a288b61e5568c3c1442a46fe891e3dc5 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/game.rs | Ryan1729/aspect-aspic | 2acbc621a288b61e5568c3c1442a46fe891e3dc5 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/game.rs | Ryan1729/aspect-aspic | 2acbc621a288b61e5568c3c1442a46fe891e3dc5 | [
"Apache-2.0",
"MIT"
] | null | null | null | use common::*;
impl GameState {
fn isSelectrix(&self, id: usize) -> bool {
self.entities[id].contains(Component::Player | Component::IntraCellPosition)
&& self.player_types[id] == PlayerType::Selectrix
}
fn isAvatar(&self, id: usize) -> bool {
self.entities[id].contains(Compone... | 36.743169 | 100 | 0.53257 |
1a6dbd5a8610afa3435ceeab6b14a5c24b2a373c | 2,967 | py | Python | notebooks/GentoxicityPrediction.py | patlewig/genetox | 881b6fea72f6974a701e0c50b26dde2829027606 | [
"MIT"
] | 1 | 2021-11-15T14:17:35.000Z | 2021-11-15T14:17:35.000Z | notebooks/GentoxicityPrediction.py | patlewig/genetox | 881b6fea72f6974a701e0c50b26dde2829027606 | [
"MIT"
] | null | null | null | notebooks/GentoxicityPrediction.py | patlewig/genetox | 881b6fea72f6974a701e0c50b26dde2829027606 | [
"MIT"
] | 1 | 2021-11-15T14:17:53.000Z | 2021-11-15T14:17:53.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 11 00:17:40 2020
@author: ppradeep
#######################################################################################################
This script analyses implements an ensemble model to predict genotoxicity for a test chemical
Inputs: Prediction from EPA TE... | 40.094595 | 104 | 0.389619 |
e77fa822c8ff49c2a42b93b479012e06551e29a8 | 2,196 | php | PHP | tests/QueryTest.php | larryli/IPv4 | 8f2321786405664113baea071036bcef19f9089d | [
"MIT"
] | 15 | 2015-10-15T14:02:32.000Z | 2020-09-09T10:18:36.000Z | tests/QueryTest.php | larryli/IPv4 | 8f2321786405664113baea071036bcef19f9089d | [
"MIT"
] | null | null | null | tests/QueryTest.php | larryli/IPv4 | 8f2321786405664113baea071036bcef19f9089d | [
"MIT"
] | 6 | 2016-09-01T12:58:11.000Z | 2020-08-02T05:40:50.000Z | <?php
/**
* QueryTest.php
*
* Author: Larry Li <larryli@qq.com>
*/
namespace larryli\ipv4\tests;
use larryli\ipv4\BaidumapQuery;
use larryli\ipv4\ChinaQuery;
use larryli\ipv4\FreeipipQuery;
use larryli\ipv4\FullQuery;
use larryli\ipv4\MiniQuery;
use larryli\ipv4\MonipdbQuery;
use larryli\ipv4\QqwryQuery;
use larr... | 27.797468 | 100 | 0.616576 |
664b866a09852857fed83506538c063694d71de2 | 1,503 | py | Python | Medium/1791.FindCenterofStarGraph.py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 39 | 2020-07-04T11:15:13.000Z | 2022-02-04T22:33:42.000Z | Medium/1791.FindCenterofStarGraph.py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 1 | 2020-07-15T11:53:37.000Z | 2020-07-15T11:53:37.000Z | Medium/1791.FindCenterofStarGraph.py | YuriSpiridonov/LeetCode | 2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781 | [
"MIT"
] | 20 | 2020-07-14T19:12:53.000Z | 2022-03-02T06:28:17.000Z | '''
There is an undirected star graph consisting of n nodes
labeled from 1 to n. A star graph is a graph where there
is one center node and exactly n - 1 edges that connect
the center node with every other node.
You are given a 2D integer array edges where each
edges[i] = [ui, vi] indicates... | 31.978723 | 101 | 0.586161 |
7f9ff81237f1df86aaba8432997104bb6dcd43ae | 866 | kt | Kotlin | app/src/test/java/org/dhis2/usescases/map/PointViewModelTest.kt | nancyespinoza/dhis2-android-capture-app | caba60d4267bfd8f1cc509f28f6244e71de37920 | [
"BSD-3-Clause"
] | 1 | 2020-08-24T09:29:02.000Z | 2020-08-24T09:29:02.000Z | app/src/test/java/org/dhis2/usescases/map/PointViewModelTest.kt | ankitbansal25/dhis2-android-capture-app | a09f5d22e37f3efcd7946a2bcd42141020cfb043 | [
"BSD-3-Clause"
] | 4 | 2021-06-08T22:01:34.000Z | 2022-03-12T00:41:28.000Z | app/src/test/java/org/dhis2/usescases/map/PointViewModelTest.kt | ankitbansal25/dhis2-android-capture-app | a09f5d22e37f3efcd7946a2bcd42141020cfb043 | [
"BSD-3-Clause"
] | null | null | null | package org.dhis2.usescases.map
import com.mapbox.geojson.Point
import org.dhis2.usescases.map.point.PointViewModel
import org.junit.Before
import org.junit.Test
class PointViewModelTest {
private lateinit var pointViewModel: PointViewModel
@Before
fun setup() {
pointViewModel = PointViewModel()... | 25.470588 | 86 | 0.662818 |
ddd66de2ae937c66f7fbe082dcaf70f733148734 | 2,099 | java | Java | programmers/42579/Solution2.java | pparkddo/ps | 7164c694403c2087a7b4b16a64f521ae327e328f | [
"MIT"
] | 1 | 2021-04-02T09:37:11.000Z | 2021-04-02T09:37:11.000Z | programmers/42579/Solution2.java | pparkddo/ps | 7164c694403c2087a7b4b16a64f521ae327e328f | [
"MIT"
] | null | null | null | programmers/42579/Solution2.java | pparkddo/ps | 7164c694403c2087a7b4b16a64f521ae327e328f | [
"MIT"
] | null | null | null | import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.stream.Collectors;
class Music implements Comparable<Music> {
int id;
int play;
String genre;
Music(int id, int play, S... | 29.56338 | 114 | 0.515484 |
e386fbf84a26cb20958483210d4bfd144b1dbfb3 | 190 | rb | Ruby | db/migrate/20140203175128_create_prodvideos.rb | i5okie/redress_old | f8091c5a95fafc94b6cb7120d77a4f4dd9f327b9 | [
"MIT"
] | 1 | 2015-03-07T02:29:58.000Z | 2015-03-07T02:29:58.000Z | db/migrate/20140203175128_create_prodvideos.rb | i5okie/redress_old | f8091c5a95fafc94b6cb7120d77a4f4dd9f327b9 | [
"MIT"
] | null | null | null | db/migrate/20140203175128_create_prodvideos.rb | i5okie/redress_old | f8091c5a95fafc94b6cb7120d77a4f4dd9f327b9 | [
"MIT"
] | null | null | null | class CreateProdvideos < ActiveRecord::Migration
def change
create_table :prodvideos do |t|
t.integer :product_id
t.integer :video_id
t.timestamps
end
end
end
| 17.272727 | 48 | 0.684211 |
5d4caf277b27ba63bbb807483211bf2ceba71b87 | 1,990 | cpp | C++ | src/fireball.cpp | alohamora/legend-of-zelda | 63b764ab27a171af1f809dcd8aa8e85b2c06accc | [
"MIT"
] | null | null | null | src/fireball.cpp | alohamora/legend-of-zelda | 63b764ab27a171af1f809dcd8aa8e85b2c06accc | [
"MIT"
] | null | null | null | src/fireball.cpp | alohamora/legend-of-zelda | 63b764ab27a171af1f809dcd8aa8e85b2c06accc | [
"MIT"
] | null | null | null | #include"main.h"
#include"fireball.h"
Fireball::Fireball(color_t color){
position = glm::vec3(0,-1,0);
speed = 0.8;
speed_up = 0;
acc_y = 0;
static const GLfloat vertex_buffer_data[] = {
-0.5,-0.5,-0.5, // triangle 1 : begin
-0.5,-0.5, 0.5,
-0.5, 0.5, 0.5, // triangle 1 : en... | 24.875 | 90 | 0.443216 |
7f6bd5ba63d7a3f1c512a93f753c3c509c4082c5 | 979 | php | PHP | examples/example.php | davidloubere/imap-mail-scraper | 2691761a699e0aa50d9cfb442e740645a51cdd4e | [
"MIT"
] | 4 | 2017-10-29T08:54:43.000Z | 2020-12-31T06:33:16.000Z | examples/example.php | davidloubere/imap-mail-scraper | 2691761a699e0aa50d9cfb442e740645a51cdd4e | [
"MIT"
] | null | null | null | examples/example.php | davidloubere/imap-mail-scraper | 2691761a699e0aa50d9cfb442e740645a51cdd4e | [
"MIT"
] | null | null | null | <?php
$loader = require_once __DIR__.'/../vendor/autoload.php';
use ImapMailScraper\Imap\MailStorage;
use ImapMailScraper\Parse\Parser;
use ImapMailScraper\Scraper;
$data = [];
$followRedirects = true;
$criteria = 'SINCE "30 Jun 2017" BEFORE "01 Jul 2017"';
$mailStorage = new MailStorage([
'host' => 'mail.exam... | 22.767442 | 64 | 0.579162 |
ef4e88b3cfac57caa4a234fc66535b31d61c47ec | 953 | php | PHP | routes/web.php | hasan-molla/employeems | ad90f64ba80343653aaa1709ea901a18c6dd6f0b | [
"MIT"
] | null | null | null | routes/web.php | hasan-molla/employeems | ad90f64ba80343653aaa1709ea901a18c6dd6f0b | [
"MIT"
] | null | null | null | routes/web.php | hasan-molla/employeems | ad90f64ba80343653aaa1709ea901a18c6dd6f0b | [
"MIT"
] | null | null | null | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Frontend\HomepageController;
use App\Http\Controllers\Backend\UserController;
use App\Http\Controllers\Backend\CountryController;
use App\Http\Controllers\Backend\StateController;
use App\Http\Controllers\Backend\CityController;
use App\Http\Controll... | 35.296296 | 89 | 0.656873 |
1a7ad68cb77fc8fb804472ea0460efbedc032830 | 642 | py | Python | saleor/api/allocate/urls.py | glosoftgroup/KahawaHardware | 893e94246583addf41c3bb0d58d2ce6bcd233c4f | [
"BSD-3-Clause"
] | null | null | null | saleor/api/allocate/urls.py | glosoftgroup/KahawaHardware | 893e94246583addf41c3bb0d58d2ce6bcd233c4f | [
"BSD-3-Clause"
] | null | null | null | saleor/api/allocate/urls.py | glosoftgroup/KahawaHardware | 893e94246583addf41c3bb0d58d2ce6bcd233c4f | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from .views import (
AllocateAgentListAPIView,
AllocateCreateAPIView,
AllocateListAPIView,
AllocateUpdateAPIView,
)
urlpatterns = [
url(r'^$', AllocateListAPIView.as_view(), name='list-allocate'),
url(r'^search/$', AllocateListAPIView.as_view(), name='sear... | 27.913043 | 77 | 0.658879 |
c38cfa18cbeeb3f4fbb1e8948057f8b92702fe77 | 316 | cs | C# | Jabba/Framework/Genetics/UnconstrainedTree64Factory.cs | EnderPi/FlemishGiant | 24c55d1e462c92cd8c624ac73a1e0f4621e9208b | [
"MIT"
] | null | null | null | Jabba/Framework/Genetics/UnconstrainedTree64Factory.cs | EnderPi/FlemishGiant | 24c55d1e462c92cd8c624ac73a1e0f4621e9208b | [
"MIT"
] | null | null | null | Jabba/Framework/Genetics/UnconstrainedTree64Factory.cs | EnderPi/FlemishGiant | 24c55d1e462c92cd8c624ac73a1e0f4621e9208b | [
"MIT"
] | null | null | null | using EnderPi.Genetics.Tree64Rng;
using EnderPi.Random;
namespace EnderPi.Genetics
{
public class UnconstrainedTree64Factory : IGeneticSpecimenFactory
{
public IGeneticSpecimen CreateGeneticSpecimen(RandomNumberGenerator rng)
{
return new Tree64RngSpecimen();
}
}
}
| 22.571429 | 80 | 0.708861 |
7d912520f5bc50dd39d611675f6bd302d3bc9bd5 | 82 | css | CSS | __tests__/fixtures/files/main.css | CountJr/project-lvl3-s14 | d3bc12d7cec38170ddf7287d6a2adedfed8ccc0b | [
"MIT"
] | null | null | null | __tests__/fixtures/files/main.css | CountJr/project-lvl3-s14 | d3bc12d7cec38170ddf7287d6a2adedfed8ccc0b | [
"MIT"
] | null | null | null | __tests__/fixtures/files/main.css | CountJr/project-lvl3-s14 | d3bc12d7cec38170ddf7287d6a2adedfed8ccc0b | [
"MIT"
] | null | null | null | h5,h6,.h5,.h6 {
font-weight:bold !important
}ul,ol{
padding-left:2rem
}
| 13.666667 | 31 | 0.609756 |
05a568d6f3679b8d20ee93fb1c972db8d485e224 | 7,495 | py | Python | pre_cam.py | hong-chen/ARISE-video | 1fda520b989e2f4f101daa2bf9c6c083941e38af | [
"MIT"
] | null | null | null | pre_cam.py | hong-chen/ARISE-video | 1fda520b989e2f4f101daa2bf9c6c083941e38af | [
"MIT"
] | null | null | null | pre_cam.py | hong-chen/ARISE-video | 1fda520b989e2f4f101daa2bf9c6c083941e38af | [
"MIT"
] | null | null | null | import os
import numpy as np
import glob
import datetime
from PIL import Image
from pytesseract import image_to_string
from scipy import stats
def AVI2PNG(fname_avi, fdir_out_png, fps=2, verbose=False):
if os.path.isdir(fdir_out_png):
if verbose:
print('Warning [AVI2PNG]: %s already exists!' %... | 37.475 | 114 | 0.589326 |
05e5cba33788aeffc62a51c8a7effb5dc8ee4270 | 4,679 | py | Python | datakit_github/commands/integrate.py | associatedpress/datakit-github | 8a76f10987b372d9492f878e869ecff39983dc73 | [
"ISC"
] | 9 | 2019-09-16T19:20:30.000Z | 2022-03-03T07:12:03.000Z | datakit_github/commands/integrate.py | associatedpress/datakit-github | 8a76f10987b372d9492f878e869ecff39983dc73 | [
"ISC"
] | 24 | 2019-07-17T18:16:11.000Z | 2022-01-20T17:49:00.000Z | datakit_github/commands/integrate.py | associatedpress/datakit-github | 8a76f10987b372d9492f878e869ecff39983dc73 | [
"ISC"
] | 3 | 2019-07-26T15:59:47.000Z | 2019-09-17T17:26:38.000Z | # -*- coding: utf-8 -*-
from cliff.command import Command
from github.GithubException import GithubException
from datakit_github.github_api import GithubApi
from datakit_github.repository import Repository
from datakit_github.project_mixin import ProjectMixin
def ask(question):
return input(question)
class Inte... | 44.561905 | 98 | 0.576405 |
f968dc4c27d26462396784d60e1939167323d106 | 364 | lua | Lua | rojtertibia/data/actions/scripts/oramond/oramond_teleport.lua | nneesshh/ot_about | a2fd7acb9a0b229593304a2f7119993227bbdf15 | [
"MIT"
] | null | null | null | rojtertibia/data/actions/scripts/oramond/oramond_teleport.lua | nneesshh/ot_about | a2fd7acb9a0b229593304a2f7119993227bbdf15 | [
"MIT"
] | null | null | null | rojtertibia/data/actions/scripts/oramond/oramond_teleport.lua | nneesshh/ot_about | a2fd7acb9a0b229593304a2f7119993227bbdf15 | [
"MIT"
] | 2 | 2019-12-11T04:13:15.000Z | 2020-02-15T14:42:13.000Z | local upFloorIds = {23668}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if isInArray(upFloorIds, item.itemid) then
fromPosition.y = fromPosition.y + 1
fromPosition.z = fromPosition.z - 2
else
fromPosition.x = fromPosition.x + 1
fromPosition.z = fromPosition.z + 2
end
player:telep... | 28 | 72 | 0.755495 |
7b60ac651ffc86c97e3a1f7c2353697f8fca1ad3 | 172 | rb | Ruby | db/migrate/20111106162141_add_phoneable_to_phone.rb | amooma/GS5 | acef44a7f28df0274b52a77f3a1d4c9f418d3c63 | [
"MIT"
] | 14 | 2015-01-07T10:20:22.000Z | 2020-02-19T13:35:26.000Z | db/migrate/20111106162141_add_phoneable_to_phone.rb | tpizzle/GS5 | acef44a7f28df0274b52a77f3a1d4c9f418d3c63 | [
"MIT"
] | 3 | 2015-07-22T04:35:10.000Z | 2021-02-20T14:07:27.000Z | db/migrate/20111106162141_add_phoneable_to_phone.rb | tpizzle/GS5 | acef44a7f28df0274b52a77f3a1d4c9f418d3c63 | [
"MIT"
] | 20 | 2015-04-08T07:23:21.000Z | 2021-09-11T09:05:38.000Z | class AddPhoneableToPhone < ActiveRecord::Migration
def change
add_column :phones, :phoneable_type, :string
add_column :phones, :phoneable_id, :integer
end
end
| 24.571429 | 51 | 0.761628 |
5501ba5db2eb0314a7195e56fd3824f859469614 | 237 | sql | SQL | db/CodingTaskDB/dbo/Tables/Optimization_Goal.sql | RyanLiu99/CodingTask | 3ba567cd32002679c21c3c26a2cc0792925ff9dd | [
"MIT"
] | null | null | null | db/CodingTaskDB/dbo/Tables/Optimization_Goal.sql | RyanLiu99/CodingTask | 3ba567cd32002679c21c3c26a2cc0792925ff9dd | [
"MIT"
] | null | null | null | db/CodingTaskDB/dbo/Tables/Optimization_Goal.sql | RyanLiu99/CodingTask | 3ba567cd32002679c21c3c26a2cc0792925ff9dd | [
"MIT"
] | null | null | null | CREATE TABLE [dbo].[optimization_goal] (
[optimization_goal_id] TINYINT NOT NULL,
[optimization_goal] NVARCHAR (50) NOT NULL,
CONSTRAINT [PK_optimization_goal] PRIMARY KEY CLUSTERED ([optimization_goal_id] ASC)
);
| 33.857143 | 88 | 0.721519 |
07690cc6b36f329b3277df920c67ec369e700d79 | 858 | css | CSS | web/css/user.css | mrisviz/EduSystem | 891ca14a967902acbaa4a8a89350b05d93571e37 | [
"BSD-3-Clause"
] | null | null | null | web/css/user.css | mrisviz/EduSystem | 891ca14a967902acbaa4a8a89350b05d93571e37 | [
"BSD-3-Clause"
] | null | null | null | web/css/user.css | mrisviz/EduSystem | 891ca14a967902acbaa4a8a89350b05d93571e37 | [
"BSD-3-Clause"
] | null | null | null | /* $Id: user.css,v 1.4 2006/12/30 07:45:31 dries Exp $ */
#permissions td.module {
font-weight: bold;
}
#permissions td.permission {
padding-left: 1.5em;
}
#access-rules .access-type, #access-rules .rule-type {
margin-right: 1em;
float: left;
}
#access-rules .access-type .form-item, #access-rules .rule-type .f... | 17.16 | 76 | 0.644522 |
797f7ee60d7fc45e33a53bf500c1dfaada93c678 | 806 | rb | Ruby | spec/lib/xing_api/company/update/comment_spec.rb | xing/xing_api | db40c4de849b5fd6d0c1c1c664c002196ae0f7da | [
"MIT"
] | 14 | 2015-02-22T19:51:49.000Z | 2020-08-20T13:18:33.000Z | spec/lib/xing_api/company/update/comment_spec.rb | xing/xing_api | db40c4de849b5fd6d0c1c1c664c002196ae0f7da | [
"MIT"
] | 14 | 2015-01-07T22:21:48.000Z | 2018-08-14T19:47:41.000Z | spec/lib/xing_api/company/update/comment_spec.rb | xing/xing_api | db40c4de849b5fd6d0c1c1c664c002196ae0f7da | [
"MIT"
] | 14 | 2015-01-07T10:16:01.000Z | 2021-06-26T05:11:58.000Z | describe XingApi::Company::Update::Comment do
describe '.list' do
it_behaves_like 'a Xing API call'
it 'invokes the correct API call' do
expect_request(:get, '/v1/companies/updates/some_id/comments', {})
described_class.list('some_id')
end
end
describe '.create' do
it_behaves_like '... | 25.1875 | 92 | 0.682382 |
4b8a47336a92fb6730f54729b3fdbcfed2b8417b | 4,662 | rs | Rust | src/shader.rs | hoangpq/minigame-rust | 27111236568c30b8acb419aa861dc3d87998ecff | [
"MIT"
] | 1 | 2019-04-21T12:35:57.000Z | 2019-04-21T12:35:57.000Z | src/shader.rs | hoangpq/minigame-rust | 27111236568c30b8acb419aa861dc3d87998ecff | [
"MIT"
] | null | null | null | src/shader.rs | hoangpq/minigame-rust | 27111236568c30b8acb419aa861dc3d87998ecff | [
"MIT"
] | null | null | null | use engine::gl::types::*;
use engine::gl as gl;
use std::ffi::CString;
use std::ptr;
use std::str;
enum Type {
Vertex,
Fragment,
}
#[cfg(any(target_os="android", target_os="ios"))]
fn precision() -> String {
String::from("precision mediump float;\n")
}
#[cfg(not(any(target_os="android", target_os="ios"))... | 31.08 | 98 | 0.515015 |
5d25f9e6385c74bdabefe803b6ae3097b8fb9946 | 2,543 | sql | SQL | sql_files/setUp_tables/chapters.sql | YeonwooSung/DB_Implementation | f2b34952982ec4f2729fbc2bee394b73d0ee8d44 | [
"Apache-2.0"
] | null | null | null | sql_files/setUp_tables/chapters.sql | YeonwooSung/DB_Implementation | f2b34952982ec4f2729fbc2bee394b73d0ee8d44 | [
"Apache-2.0"
] | null | null | null | sql_files/setUp_tables/chapters.sql | YeonwooSung/DB_Implementation | f2b34952982ec4f2729fbc2bee394b73d0ee8d44 | [
"Apache-2.0"
] | null | null | null | -- Insert sample data for audiobook chapters
INSERT INTO chapter SET ISBN = '978-0393957242', number = 1, title = "Part I: A Voyage to Lilliput", start = "00:00:00";
INSERT INTO chapter SET ISBN = '978-0393957242', number = 2, title = "Part II: A Voyage to Brobdingnag", start = "01:40:07";
INSERT INTO chapter SET IS... | 57.795455 | 167 | 0.684624 |
ff5ff5b92e277867f0dafddc28fdde3023cdf3a1 | 3,486 | py | Python | python/src/shipping_allocation/envs/inventory_generators.py | jotaporras/ts_mcfrl | c8c77a8fbd58e80e926e6705320ca8bc1979efdd | [
"MIT"
] | null | null | null | python/src/shipping_allocation/envs/inventory_generators.py | jotaporras/ts_mcfrl | c8c77a8fbd58e80e926e6705320ca8bc1979efdd | [
"MIT"
] | 5 | 2020-09-26T01:26:21.000Z | 2022-02-10T02:45:51.000Z | python/src/shipping_allocation/envs/inventory_generators.py | jotaporras/ts_mcfrl | c8c77a8fbd58e80e926e6705320ca8bc1979efdd | [
"MIT"
] | null | null | null | from abc import ABC
from typing import List
import numpy as np
from network import physical_network
from experiment_utils.Order import Order
class InventoryGenerator(ABC):
# Generates new inventory and distributes it somehow to keep the network balanced for the selected locations.
# Returns a numpy array of... | 42.512195 | 120 | 0.662651 |
6aa9a1f26b1be38f6bfd14433e94bc9e325688d0 | 280 | kt | Kotlin | src/main/kotlin/me/melijn/melijnbot/internals/utils/message/MessageBuilder.kt | iocaeaniqa/Melijn | e9845bb9c3b50e08713d9c049780d3a2790daf55 | [
"MIT"
] | 87 | 2019-01-09T12:19:50.000Z | 2022-03-30T18:59:21.000Z | src/main/kotlin/me/melijn/melijnbot/internals/utils/message/MessageBuilder.kt | iocaeaniqa/Melijn | e9845bb9c3b50e08713d9c049780d3a2790daf55 | [
"MIT"
] | 51 | 2018-07-27T14:52:29.000Z | 2022-02-15T17:41:36.000Z | src/main/kotlin/me/melijn/melijnbot/internals/utils/message/MessageBuilder.kt | iocaeaniqa/Melijn | e9845bb9c3b50e08713d9c049780d3a2790daf55 | [
"MIT"
] | 31 | 2018-06-16T12:01:49.000Z | 2022-03-19T23:30:11.000Z | package me.melijn.melijnbot.internals.utils.message
import me.melijn.melijnbot.internals.models.ModularMessage
class MessageBuilder {
var content: ModularMessage? = null
var splitter: MessageSplitter = MessageSplitter.Default
var pagination: Pagination? = null
} | 21.538462 | 59 | 0.782143 |
f25c99bb74073bea592d59dcbdbcf8d3e241bb4e | 1,853 | dart | Dart | lib/feature_news/presentation/ui/details/widgets/read_more.dart | suzan-1515/Samachar-Hub | 8e65809d0be74d625a4d946b417e968a5a04e0b0 | [
"Apache-2.0"
] | 3 | 2020-07-07T05:26:51.000Z | 2020-11-06T05:05:21.000Z | lib/feature_news/presentation/ui/details/widgets/read_more.dart | r3pairmen/NepalHub | 8e65809d0be74d625a4d946b417e968a5a04e0b0 | [
"Apache-2.0"
] | null | null | null | lib/feature_news/presentation/ui/details/widgets/read_more.dart | r3pairmen/NepalHub | 8e65809d0be74d625a4d946b417e968a5a04e0b0 | [
"Apache-2.0"
] | 4 | 2020-11-07T06:43:52.000Z | 2022-02-08T13:12:49.000Z | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:samachar_hub/core/utils/link_utils.dart';
import 'package:samachar_hub/core/widgets/webview_widget.dart';
import 'package:samachar_hub/feature_main/pr... | 37.816327 | 91 | 0.662169 |
0357ebc67b345b3931933c016b896c149d0dc4f1 | 1,128 | rb | Ruby | spec/jobs/sync_case_comments_spec.rb | discourse/discourse-salesforce | d1c961551ef40535d508b27c19195d93b4d1f2fc | [
"MIT"
] | null | null | null | spec/jobs/sync_case_comments_spec.rb | discourse/discourse-salesforce | d1c961551ef40535d508b27c19195d93b4d1f2fc | [
"MIT"
] | 1 | 2022-03-04T04:50:42.000Z | 2022-03-04T04:50:42.000Z | spec/jobs/sync_case_comments_spec.rb | discourse/discourse-salesforce | d1c961551ef40535d508b27c19195d93b4d1f2fc | [
"MIT"
] | null | null | null | # frozen_string_literal: true
require 'rails_helper'
require_relative '../spec_helper'
RSpec.describe Jobs::SyncCaseComments do
include_context "spec helper"
fab!(:topic) { Fabricate(:topic) }
fab!(:salesforce_case) { Fabricate(:salesforce_case, topic: topic) }
fab!(:post) { Fabricate(:post, topic: topic) }
... | 33.176471 | 73 | 0.731383 |
ed30fd4b907a8da818ded8419683ec4e1c094040 | 1,402 | cpp | C++ | src/evl/core/read_buffer.cpp | EventVisionLibrary/evl | 57496ae11b07aa55e42a59b1766c7db83aea095a | [
"BSD-3-Clause"
] | 19 | 2018-06-01T09:06:38.000Z | 2021-07-19T08:52:22.000Z | src/evl/core/read_buffer.cpp | EventVisionLibrary/evl | 57496ae11b07aa55e42a59b1766c7db83aea095a | [
"BSD-3-Clause"
] | 26 | 2018-06-16T09:27:23.000Z | 2019-07-09T05:52:27.000Z | src/evl/core/read_buffer.cpp | EventVisionLibrary/evl | 57496ae11b07aa55e42a59b1766c7db83aea095a | [
"BSD-3-Clause"
] | 6 | 2018-06-03T06:49:29.000Z | 2021-07-01T09:25:14.000Z | // Copyright 2018 Event Vision Library.
#include "read_buffer.hpp"
#include "unistd.h" // for sleep function
#include <mutex>
#include <vector>
#include "common.hpp"
#include "shutdown.hpp"
#include "types.hpp"
std::mutex mtx;
namespace evl {
std::vector<EventTuple> readBufferOnLifetime(EventBuffer *buffer,
... | 25.035714 | 77 | 0.575606 |
23c7f5592c835ca38b9489e97a9c11b2866142a7 | 1,407 | js | JavaScript | src/components/Card.js | Adherentman/simple-forum | 07587fdc9943d84075396b16cadf216396452232 | [
"MIT"
] | 1 | 2018-03-03T03:52:31.000Z | 2018-03-03T03:52:31.000Z | src/components/Card.js | Adherentman/simple-forum | 07587fdc9943d84075396b16cadf216396452232 | [
"MIT"
] | null | null | null | src/components/Card.js | Adherentman/simple-forum | 07587fdc9943d84075396b16cadf216396452232 | [
"MIT"
] | null | null | null | import React from 'react';
import { Card } from 'antd';
import { graphql } from 'react-apollo';
import { gql } from 'apollo-boost';
//import * as Immutable from 'immutable';
//import { bindActionCreators } from 'redux';
//import { connect } from 'react-redux';
// import { bookActions, BookActions } from '../actions/bo... | 24.258621 | 80 | 0.574982 |
d58168d507b61d163c2b1bccfb16fa7b3651e4a7 | 3,526 | sql | SQL | Tienda_create_2018-05-12_12_04.sql | vgalindoc/CTIC_VGalindo | f61f28ca74aab63878ec480307a8c2a0b0fd4155 | [
"Apache-2.0"
] | null | null | null | Tienda_create_2018-05-12_12_04.sql | vgalindoc/CTIC_VGalindo | f61f28ca74aab63878ec480307a8c2a0b0fd4155 | [
"Apache-2.0"
] | null | null | null | Tienda_create_2018-05-12_12_04.sql | vgalindoc/CTIC_VGalindo | f61f28ca74aab63878ec480307a8c2a0b0fd4155 | [
"Apache-2.0"
] | null | null | null | -- Created by Vertabelo (http://vertabelo.com)
-- Last modification date: 2018-05-12 16:33:07.959
-- tables
-- Table: Carrito
CREATE TABLE Carrito (
ID_Carrito int NOT NULL,
DNI int NOT NULL,
ID_Item int NOT NULL,
CONSTRAINT Carrito_pk PRIMARY KEY (ID_Carrito)
);
-- Table: Carrito_MetCompra
CREATE... | 27.333333 | 79 | 0.736812 |
b7821edad4ad56382773a6d0d9dadda5c8d50830 | 356 | swift | Swift | validation-test/compiler_crashers_fixed/02064-swift-diagnosticengine-diagnose.swift | ghostbar/swift-lang.deb | b1a887edd9178a0049a0ef839c4419142781f7a0 | [
"Apache-2.0"
] | 10 | 2015-12-25T02:19:46.000Z | 2021-11-14T15:37:57.000Z | validation-test/compiler_crashers_fixed/02064-swift-diagnosticengine-diagnose.swift | ghostbar/swift-lang.deb | b1a887edd9178a0049a0ef839c4419142781f7a0 | [
"Apache-2.0"
] | 2 | 2016-02-01T08:51:00.000Z | 2017-04-07T09:04:30.000Z | validation-test/compiler_crashers_fixed/02064-swift-diagnosticengine-diagnose.swift | ghostbar/swift-lang.deb | b1a887edd9178a0049a0ef839c4419142781f7a0 | [
"Apache-2.0"
] | 3 | 2016-04-02T15:05:27.000Z | 2019-08-19T15:25:02.000Z | // RUN: not %target-swift-frontend %s -parse
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
func g<T {
case c() {
var b = d: AnyObject, object2: BooleanType)) -> Int {
return { self[])
}
}
}(c
prot... | 20.941176 | 87 | 0.69382 |
e845fa1c6c70e2ae131f143b128a6129389786b1 | 1,046 | cs | C# | Day2_Operators/Day2_Operators/Solution.cs | alexmacniven/hackerrank | f5aa9ce911610d329c3a42d91ce3104504827be1 | [
"MIT"
] | null | null | null | Day2_Operators/Day2_Operators/Solution.cs | alexmacniven/hackerrank | f5aa9ce911610d329c3a42d91ce3104504827be1 | [
"MIT"
] | 2 | 2019-07-22T21:43:17.000Z | 2019-07-22T21:46:34.000Z | Day2_Operators/Day2_Operators/Solution.cs | alexmacniven/hackerrank | f5aa9ce911610d329c3a42d91ce3104504827be1 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Text;
namespace Day2_Operators
{
class Solution
{
static void Solve(double meal_cost, int tip_percent, int tax_percent)
{
// Calculate tip_percent value as double
double tip_value;
tip_value = meal... | 26.15 | 85 | 0.60325 |
0da9864e46189942890528dac624dad563d5e5d1 | 4,082 | cs | C# | src/TestAppWithTUI/ConsoleTest.cs | makarovsl/Nlog.Repeated | 7cc5b2ac4a2ef30d8b829e30165657dac81a4ea2 | [
"BSD-3-Clause"
] | null | null | null | src/TestAppWithTUI/ConsoleTest.cs | makarovsl/Nlog.Repeated | 7cc5b2ac4a2ef30d8b829e30165657dac81a4ea2 | [
"BSD-3-Clause"
] | null | null | null | src/TestAppWithTUI/ConsoleTest.cs | makarovsl/Nlog.Repeated | 7cc5b2ac4a2ef30d8b829e30165657dac81a4ea2 | [
"BSD-3-Clause"
] | null | null | null | // Licensed under the BSD license
// See the LICENSE file in the project root for more information
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using FakeSyslogServer;
using Microsoft.Extensions.Configuration;
namespace Tes... | 31.890625 | 140 | 0.55463 |
041249e8360e805b3879e9ac3e612954b1c12ed3 | 1,043 | cpp | C++ | fontcharacter.cpp | zheka20012/OMSIFontCreator | 237515473720ca663f87aadbf1eed7950164d0c1 | [
"Unlicense"
] | 2 | 2021-12-19T18:57:45.000Z | 2021-12-21T12:50:50.000Z | fontcharacter.cpp | zheka20012/OMSIFontCreator | 237515473720ca663f87aadbf1eed7950164d0c1 | [
"Unlicense"
] | 1 | 2022-03-07T11:24:39.000Z | 2022-03-07T11:24:39.000Z | fontcharacter.cpp | zheka20012/OMSIFontCreator | 237515473720ca663f87aadbf1eed7950164d0c1 | [
"Unlicense"
] | null | null | null | #include "fontcharacter.h"
FontCharacter::~FontCharacter(){
}
FontCharacter::FontCharacter(const QChar letter)
{
Letter = letter;
LeftPixel = RightPixel = 0;
TopPixel = 0;
}
FontCharacter::FontCharacter(QTextStream &inStream)
{
Letter = inStream.readLine().at(0);
LeftPixel = inStream.readLine().... | 21.729167 | 103 | 0.683605 |
2d729a4fb672f316362382bcff4e0c7a4bd62513 | 837 | cpp | C++ | cpp/A0560/main.cpp | Modnars/LeetCode | 1c91fe9598418e6ed72233260f9cd8d5737fe216 | [
"Apache-2.0"
] | 2 | 2021-11-26T14:06:13.000Z | 2021-11-26T14:34:34.000Z | cpp/A0560/main.cpp | Modnars/LeetCode | 1c91fe9598418e6ed72233260f9cd8d5737fe216 | [
"Apache-2.0"
] | 2 | 2021-11-26T14:06:49.000Z | 2021-11-28T11:28:49.000Z | cpp/A0560/main.cpp | Modnars/LeetCode | 1c91fe9598418e6ed72233260f9cd8d5737fe216 | [
"Apache-2.0"
] | null | null | null | // URL : https://leetcode-cn.com/problems/subarray-sum-equals-k/
// Author : Modnar
// Date : 2020/05/15
#include <bits/stdc++.h>
/* ************************* */
// Thanks: LeetCode(@leetcode.cn)
// Solution: https://leetcode-cn.com/problems/subarray-sum-equals-k/solution/he-wei-kde-zi-shu-zu-by-leetcode-soluti... | 25.363636 | 119 | 0.51135 |
f47967fc2074f4256ab0acf986407844834e9c6c | 608 | ts | TypeScript | NotifyTodaysReleases/constants.ts | yudai-nkt/sbotify | 76aeb846faff1b67941fbc9eaff6854d5ea993cc | [
"MIT"
] | null | null | null | NotifyTodaysReleases/constants.ts | yudai-nkt/sbotify | 76aeb846faff1b67941fbc9eaff6854d5ea993cc | [
"MIT"
] | null | null | null | NotifyTodaysReleases/constants.ts | yudai-nkt/sbotify | 76aeb846faff1b67941fbc9eaff6854d5ea993cc | [
"MIT"
] | 1 | 2021-03-09T17:11:17.000Z | 2021-03-09T17:11:17.000Z | /**
* An array of artist names who are unlikey to release new materials (mainly because
* they already disbanded) to reduce the number of API calls.
*/
export const EXCLUDES = [
"CYBER",
"SIAM SHAME",
"There For Tomorrow",
"Artificial Language",
"Children Of Bodom",
"Breakdown of Sanity",
"Uchu Conbini... | 20.266667 | 84 | 0.662829 |
028e5ec97bbaec3a476e32481d2a4f6b93c99e52 | 5,701 | cpp | C++ | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Initialization of runaway source terms.
*/
#include "DREAM/Equations/Fluid/TritiumRateTerm.hpp"
#include "DREAM/Equations/Fluid/HottailRateTermHighZ.hpp"
#include "DREAM/Equations/Fluid/ExternalAvalancheTerm.hpp"
#include "DREAM/Equations/RunawaySourceTerm.hpp"
#include "DREAM/IO.hpp"
#include "DREAM/Settings/... | 50.008772 | 208 | 0.6776 |
88664b689a8f48c7707d58d99caed4d3603c7c7e | 23,425 | cs | C# | test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/ApiBehaviorApplicationModelProviderTest.cs | poke/aspnet_Mvc | d40c60d15ba3f9e0fd4854a5f23651148161bc36 | [
"Apache-2.0"
] | 3 | 2021-06-23T03:26:45.000Z | 2021-06-26T12:43:01.000Z | test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/ApiBehaviorApplicationModelProviderTest.cs | poke/aspnet_Mvc | d40c60d15ba3f9e0fd4854a5f23651148161bc36 | [
"Apache-2.0"
] | null | null | null | test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/ApiBehaviorApplicationModelProviderTest.cs | poke/aspnet_Mvc | d40c60d15ba3f9e0fd4854a5f23651148161bc36 | [
"Apache-2.0"
] | 1 | 2020-12-23T17:33:15.000Z | 2020-12-23T17:33:15.000Z | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.... | 37.360447 | 196 | 0.625571 |
9fe71933a149f99aec3489200c0cb1189fbfb29a | 5,172 | py | Python | sinkhorn_knopp.py | kkahatapitiya/Numpy-OT | f4698580b4e84e5bd4c2fdd828d086ac7f088295 | [
"MIT"
] | 3 | 2021-04-27T17:08:11.000Z | 2021-04-29T15:28:20.000Z | sinkhorn_knopp.py | kumarak93/numpy_ot | f4698580b4e84e5bd4c2fdd828d086ac7f088295 | [
"MIT"
] | null | null | null | sinkhorn_knopp.py | kumarak93/numpy_ot | f4698580b4e84e5bd4c2fdd828d086ac7f088295 | [
"MIT"
] | 1 | 2021-06-03T17:12:04.000Z | 2021-06-03T17:12:04.000Z | import numpy as np
### from https://github.com/rflamary/POT/blob/master/ot/bregman.py ###
def sinkhorn_knopp(a, b, M, reg, numItermax=1000,
stopThr=1e-9, verbose=False, log=False, **kwargs):
r"""
Solve the entropic regularization optimal transport problem and return the OT matrix
The fun... | 32.942675 | 153 | 0.53983 |
3d47160c5a6ea5f9a15effd32adc0b04574bbc9a | 359 | kt | Kotlin | SpringScanSDK/src/main/java/com/springscan/sdk/internal/apis/login/LoginResponse.kt | SpringRole/springscan-android-sdk | 58f9731d210ac697d06425cd0dc68f6306f5c1ba | [
"DOC",
"Apache-2.0"
] | null | null | null | SpringScanSDK/src/main/java/com/springscan/sdk/internal/apis/login/LoginResponse.kt | SpringRole/springscan-android-sdk | 58f9731d210ac697d06425cd0dc68f6306f5c1ba | [
"DOC",
"Apache-2.0"
] | null | null | null | SpringScanSDK/src/main/java/com/springscan/sdk/internal/apis/login/LoginResponse.kt | SpringRole/springscan-android-sdk | 58f9731d210ac697d06425cd0dc68f6306f5c1ba | [
"DOC",
"Apache-2.0"
] | null | null | null | package com.springscan.sdk.internal.apis.login
import com.google.gson.annotations.SerializedName
data class LoginResponse(
@SerializedName("token")
val token: String?,
@SerializedName("userId")
val userID: String?,
@SerializedName("user_name")
val userName: String?,
@SerializedName("compan... | 25.642857 | 49 | 0.724234 |
7f615a018cc436f22ac1aa764f6a0b8e98871ea1 | 1,560 | php | PHP | .devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/ajax.php | axelVO/tourComperator | 578e93668fcd49746371e5cf335beb30146ce013 | [
"MIT"
] | 3,946 | 2016-10-11T09:51:29.000Z | 2022-03-31T10:52:27.000Z | .devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/ajax.php | axelVO/tourComperator | 578e93668fcd49746371e5cf335beb30146ce013 | [
"MIT"
] | 626 | 2016-10-24T12:27:49.000Z | 2022-03-31T11:55:09.000Z | .devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/ajax.php | axelVO/tourComperator | 578e93668fcd49746371e5cf335beb30146ce013 | [
"MIT"
] | 720 | 2016-10-24T14:16:11.000Z | 2022-03-31T03:28:54.000Z | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Generic AJAX endpoint for getting information about database
*
* @package PhpMyAdmin
*/
use PhpMyAdmin\Response;
use PhpMyAdmin\Util;
use PhpMyAdmin\Core;
$_GET['ajax_request'] = 'true';
require_once 'libraries/common.inc.php';
$response = Response::getInsta... | 30 | 106 | 0.598077 |
daf49751a618cb6881224f8cecd4ad5f99504995 | 19,305 | sql | SQL | schema.sql | txstate-etc/dosgato | ef39777c055ac0bd145ecff05ba027f22555924e | [
"MIT"
] | null | null | null | schema.sql | txstate-etc/dosgato | ef39777c055ac0bd145ecff05ba027f22555924e | [
"MIT"
] | null | null | null | schema.sql | txstate-etc/dosgato | ef39777c055ac0bd145ecff05ba027f22555924e | [
"MIT"
] | null | null | null | -- -----------------------------------------------------
-- Table `users`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `users` (
`id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,
`login` VARCHAR(255) CHARACTER SET 'ascii' COLLATE 'ascii_general_ci' NOT NULL,
`name` VARCHAR(25... | 33.284483 | 101 | 0.596633 |
e2701fdd5d2b0e319751fc97a7dbc7f64e849b48 | 4,228 | js | JavaScript | src/Customization.js | M-ZubairAhmed/FabricOn | 459fe14167278be51ce6284cee06fc32a5367aad | [
"MIT"
] | null | null | null | src/Customization.js | M-ZubairAhmed/FabricOn | 459fe14167278be51ce6284cee06fc32a5367aad | [
"MIT"
] | null | null | null | src/Customization.js | M-ZubairAhmed/FabricOn | 459fe14167278be51ce6284cee06fc32a5367aad | [
"MIT"
] | null | null | null | import React from 'react';
import {
Col,
Button,
Panel,
FormGroup,
FormControl,
Image,
Modal,
} from 'react-bootstrap';
import cloudinary from 'cloudinary';
import { cloudinaryConfig } from './secret';
import Canva from './Canva';
import { stickerDesigns } from './mock';
let imageCustomized = '';
export... | 27.454545 | 79 | 0.487938 |
a9687195ed2fe70725b9e1d1f214ee30d7ac77e3 | 1,133 | sql | SQL | proj/gatilho3_verifica.sql | mbcsm/BDAD | 6026f1a7ea935488046e89f69e0d4f9e4d267b46 | [
"MIT"
] | null | null | null | proj/gatilho3_verifica.sql | mbcsm/BDAD | 6026f1a7ea935488046e89f69e0d4f9e4d267b46 | [
"MIT"
] | null | null | null | proj/gatilho3_verifica.sql | mbcsm/BDAD | 6026f1a7ea935488046e89f69e0d4f9e4d267b46 | [
"MIT"
] | 1 | 2021-10-05T15:10:05.000Z | 2021-10-05T15:10:05.000Z | PRAGMA foreign_keys=ON;
SELECT * FROM JOGO;
INSERT INTO CLUBE (Nome,Regiao) VALUES ('Porto','Porto');
INSERT INTO CLUBE (Nome,Regiao) VALUES ('Benfica','Lisboa');
INSERT INTO CAMPO (idClube, Localidade, Relvado) VALUES (1, 'Porto', 'Natural');
INSERT INTO Escalao (FaixaEtaria, Sexo) VALUES ('18-35', 'M');
... | 34.333333 | 147 | 0.683142 |
76fab896fd6f206c6a174487419b0e12e36ef65d | 524 | dart | Dart | tests/language_2/mixin/mixin_test.dart | omerlevran46/sdk | b1955d63ad678b651b09db3dd286136c4463f36b | [
"BSD-3-Clause"
] | 8,969 | 2015-05-16T16:49:24.000Z | 2022-03-31T19:54:40.000Z | tests/language_2/mixin/mixin_test.dart | omerlevran46/sdk | b1955d63ad678b651b09db3dd286136c4463f36b | [
"BSD-3-Clause"
] | 30,202 | 2015-05-17T02:27:45.000Z | 2022-03-31T22:54:46.000Z | tests/language_2/mixin/mixin_test.dart | omerlevran46/sdk | b1955d63ad678b651b09db3dd286136c4463f36b | [
"BSD-3-Clause"
] | 1,619 | 2015-05-16T21:36:42.000Z | 2022-03-29T20:36:59.000Z | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
import "package:expect/expect.dart";
class M1 {
foo() => 42;
}
class M2 = Object wi... | 19.407407 | 77 | 0.65458 |
43558f9ef81fd1eec600acae8c78e0328f437fe9 | 471 | tsx | TypeScript | client/pages/orders/[id].tsx | NightClover-code/modern-ecommerce | 4202c66eb034d06d99db2461c707034338ed2d5f | [
"MIT"
] | null | null | null | client/pages/orders/[id].tsx | NightClover-code/modern-ecommerce | 4202c66eb034d06d99db2461c707034338ed2d5f | [
"MIT"
] | null | null | null | client/pages/orders/[id].tsx | NightClover-code/modern-ecommerce | 4202c66eb034d06d99db2461c707034338ed2d5f | [
"MIT"
] | null | null | null | import { NextPage } from 'next';
import { useRouter } from 'next/router';
import Order from '../../components/Order';
import SEO from '../../components/SEO';
import { homeConfig } from '../../utils';
const OrderPage: NextPage = () => {
const router = useRouter();
const { id } = router.query;
return (
<>
... | 22.428571 | 43 | 0.579618 |
a11fe996927e4778a4f962b4ca2376994158ad7f | 1,507 | ts | TypeScript | src/commands/Images/meme.ts | Skillz4Killz/Bot | 860648aa65250b1e8488ceb5a78af0e6fa79d9dc | [
"Apache-2.0"
] | 2 | 2021-08-22T13:29:46.000Z | 2022-02-12T04:45:11.000Z | src/commands/Images/meme.ts | Skillz4Killz/Bot | 860648aa65250b1e8488ceb5a78af0e6fa79d9dc | [
"Apache-2.0"
] | null | null | null | src/commands/Images/meme.ts | Skillz4Killz/Bot | 860648aa65250b1e8488ceb5a78af0e6fa79d9dc | [
"Apache-2.0"
] | 3 | 2020-11-13T14:26:16.000Z | 2021-09-19T12:12:12.000Z | import { Command, CommandOptions } from "@sapphire/framework";
import { Message, TextChannel } from "discord.js";
import { randomSubredditItem } from "@utils/util";
import { ApplyOptions } from "@sapphire/decorators";
import { PreConditions } from "@lib/types/Types";
@ApplyOptions<CommandOptions>({
description: "c... | 53.821429 | 309 | 0.709356 |
9a4cff5d6c2c747dbde1892845cd9c252d3994fe | 1,522 | swift | Swift | boostify-client/boostify-client/View Controllers/WebModalViewController.swift | srowhani/boostify | 7da2aae0ce393aac673da17f415a31373a06ed5f | [
"MIT"
] | 5 | 2018-06-20T11:15:32.000Z | 2020-06-15T17:05:18.000Z | boostify-client/boostify-client/View Controllers/WebModalViewController.swift | srowhani/boostify | 7da2aae0ce393aac673da17f415a31373a06ed5f | [
"MIT"
] | 2 | 2018-06-17T18:44:30.000Z | 2018-08-21T20:04:57.000Z | boostify-client/boostify-client/View Controllers/WebModalViewController.swift | srowhani/boostify | 7da2aae0ce393aac673da17f415a31373a06ed5f | [
"MIT"
] | 1 | 2018-06-18T18:20:53.000Z | 2018-06-18T18:20:53.000Z | //
// WebModalViewController.swift
// boostify-client
//
// Created by Mat Schmid on 2018-06-17.
// Copyright © 2018 Mat Schmid. All rights reserved.
//
import UIKit
import WebKit
protocol WebModalDelegate: class {
func didReceiveInstagramAccessToken(token: String)
}
class WebModalViewController: UIViewControll... | 26.241379 | 113 | 0.747043 |
e27f215f0144f327680725dc7ebf5012f5638a05 | 3,464 | py | Python | logic2_analyzers/PCA9571/pd.py | martonmiklos/sigrokdecoders_to_logic2_analyzers | 9dd9b9a610c17e6ae525829c9112d11a80d016e7 | [
"MIT"
] | 5 | 2020-04-15T20:45:06.000Z | 2020-05-31T02:45:21.000Z | logic2_analyzers/PCA9571/pd.py | martonmiklos/sigrokdecoders_to_logic2_analyzers | 9dd9b9a610c17e6ae525829c9112d11a80d016e7 | [
"MIT"
] | 1 | 2020-07-15T09:23:05.000Z | 2020-07-15T10:04:48.000Z | logic2_analyzers/PCA9571/pd.py | martonmiklos/sigrokdecoders_to_logic2_analyzers | 9dd9b9a610c17e6ae525829c9112d11a80d016e7 | [
"MIT"
] | 1 | 2020-04-20T18:49:36.000Z | 2020-04-20T18:49:36.000Z | ##
## This file is part of the libsigrokdecode project.
##
## Copyright (C) 2019 Mickael Bosch <mickael.bosch@linux.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of... | 33.631068 | 77 | 0.560335 |
237f3b6e5178258696da01910b1c18d511d4da60 | 822 | js | JavaScript | app/api/v1/domain/county.js | 5calls/civilservices-api | fdcf2e2e7ff04b0815036d32e355666ab53d66d8 | [
"MIT"
] | 51 | 2016-12-25T02:04:45.000Z | 2022-01-11T02:41:54.000Z | app/api/v1/domain/county.js | CivilServiceUSA/api | ead7da0d0971cc248f2784514f91442cab48a105 | [
"MIT"
] | 45 | 2017-01-08T00:07:48.000Z | 2020-07-21T07:02:27.000Z | app/api/v1/domain/county.js | 5calls/civilservices-api | fdcf2e2e7ff04b0815036d32e355666ab53d66d8 | [
"MIT"
] | 13 | 2017-03-07T16:25:42.000Z | 2021-03-29T19:51:40.000Z | /**
* @module domain/county
* @version 1.0.0
* @author Peter Schmalfeldt <me@peterschmalfeldt.com>
*/
var _ = require('lodash');
/**
* Geolocation
* @type {object}
*/
module.exports = {
/**
* Prepare For API Output
* @param {object} data - Data to be processed for API Output
* @return {object}
*/... | 18.681818 | 67 | 0.594891 |
20dcba74bf2e8503fd50436b2fd50dcb78e910ef | 2,632 | py | Python | app/utils/analyze.py | codingjerk/ztd.blunders-web | 38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83 | [
"MIT"
] | null | null | null | app/utils/analyze.py | codingjerk/ztd.blunders-web | 38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83 | [
"MIT"
] | null | null | null | app/utils/analyze.py | codingjerk/ztd.blunders-web | 38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83 | [
"MIT"
] | null | null | null | import chess
import chess.uci
class Engine:
def __init__(self, path):
self.engine = chess.uci.popen_engine(path)
self.engine.uci()
self.engine.isready()
self.handler = chess.uci.InfoHandler()
self.engine.info_handlers.append(self.handler)
self.board = chess.Board()... | 26.059406 | 100 | 0.583207 |
b744560f65f71bfb7ba61c6f1aefb2db38f6752f | 4,586 | dart | Dart | lib/utils/widgets/notification.dart | higorlapa/pangolin_desktop | e02a9a502bd84cab49e63792439bdffb19cdfe9c | [
"Apache-2.0"
] | 3 | 2020-07-16T19:14:19.000Z | 2020-07-22T16:14:42.000Z | lib/utils/widgets/notification.dart | lohnn/pangolin-desktop | 244a86f1af9a6036eb69fe8c80cc6f2341d41a05 | [
"Apache-2.0"
] | 1 | 2021-03-18T20:05:42.000Z | 2021-03-18T20:05:42.000Z | lib/utils/widgets/notification.dart | lohnn/pangolin-desktop | 244a86f1af9a6036eb69fe8c80cc6f2341d41a05 | [
"Apache-2.0"
] | 1 | 2020-07-22T10:14:22.000Z | 2020-07-22T10:14:22.000Z | /*
Copyright 2019 The dahliaOS Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 40.584071 | 78 | 0.328173 |
a36cdb5c03373ee0381eaff2b268f003bd9fa317 | 435 | ts | TypeScript | packages/nger-provider-typescript/lib/index.ts | meepobrother/nger | 2642f8f707dea1fa4ea13909695eb64efcd76a4e | [
"MIT"
] | 61 | 2019-04-22T13:40:45.000Z | 2021-04-11T15:08:55.000Z | packages/nger-provider-typescript/lib/index.ts | meepobrother/nger | 2642f8f707dea1fa4ea13909695eb64efcd76a4e | [
"MIT"
] | 2 | 2019-04-24T13:29:00.000Z | 2021-04-07T09:49:20.000Z | packages/nger-provider-typescript/lib/index.ts | meepobrother/nger | 2642f8f707dea1fa4ea13909695eb64efcd76a4e | [
"MIT"
] | 16 | 2019-04-23T11:19:09.000Z | 2020-08-19T13:24:52.000Z | import { NgerCompilerTypescript } from 'nger-compiler';
import { StaticProvider } from 'nger-di';
import { NgerBabel } from './babel'
const staticProvider: StaticProvider[] = [{
provide: NgerBabel,
useClass: NgerBabel,
deps: [NgerCompilerTypescript]
}, {
provide: NgerCompilerTypescript,
useClass: Ng... | 29 | 55 | 0.728736 |
d495cd39f8ffa9d98c3883e989974ac23c3d3f38 | 1,769 | lua | Lua | entities.lua | sky-makes/cartridge-tilt | ecd382a7011cb331c3d12d5a69426053e31278d6 | [
"MIT"
] | 1 | 2020-08-17T19:13:23.000Z | 2020-08-17T19:13:23.000Z | entities.lua | WillWare/cartridge-tilt | ecd382a7011cb331c3d12d5a69426053e31278d6 | [
"MIT"
] | null | null | null | entities.lua | WillWare/cartridge-tilt | ecd382a7011cb331c3d12d5a69426053e31278d6 | [
"MIT"
] | null | null | null | --[[
entities.lua
Provides a list of constants identifying various entities in Mari0; the names were
lifted directly from 1.6 and indexed by hand.
]]
REMOVE = 1
MUSHROOM = 2
ONEUP = 3
STAR = 4
MANYCOINS = 5
GOOMBA = 6
KOOPA = 7
SPAWN = 8
GOOMBAHALF = 9
KOOPAHALF = 10
FLAG = 11
KOOPARED = 12
KOOPAREDHALF = 13
VINE ... | 16.37963 | 83 | 0.751837 |
60396fc29e74a4736d020d6588410af51c43ab6a | 65 | dart | Dart | lib/settings/settings.dart | githubmonkey/sliderpuzzle_flutter | da7271bc6bb66c6662baed224278ff59664e3ce5 | [
"MIT"
] | null | null | null | lib/settings/settings.dart | githubmonkey/sliderpuzzle_flutter | da7271bc6bb66c6662baed224278ff59664e3ce5 | [
"MIT"
] | 1 | 2022-03-30T16:05:47.000Z | 2022-03-30T16:05:47.000Z | lib/settings/settings.dart | githubmonkey/sliderpuzzle_flutter | da7271bc6bb66c6662baed224278ff59664e3ce5 | [
"MIT"
] | null | null | null | export 'bloc/settings_bloc.dart';
export 'widgets/widgets.dart';
| 21.666667 | 33 | 0.784615 |
e0380f5fac018566086d0f07f438aefbf23f2f6e | 4,837 | h | C | scanner/rdesktop-fork-bd6aa6acddf0ba640a49834807872f4cc0d0a773/rdesktop.h | wisdark/CVE-2019-0708 | b86362fe1e1797aa0a426f65cd5d0af8b07191bc | [
"Apache-2.0"
] | 1,253 | 2019-05-22T00:49:08.000Z | 2021-12-01T08:40:31.000Z | rdesktop-fork-bd6aa6acddf0ba640a49834807872f4cc0d0a773/rdesktop.h | ilyaglow/CVE-2019-0708 | de63d738543f208a4818659ff2ab8c72d723e73f | [
"Apache-2.0"
] | 19 | 2019-05-22T02:43:16.000Z | 2021-02-11T10:43:53.000Z | rdesktop-fork-bd6aa6acddf0ba640a49834807872f4cc0d0a773/rdesktop.h | ilyaglow/CVE-2019-0708 | de63d738543f208a4818659ff2ab8c72d723e73f | [
"Apache-2.0"
] | 425 | 2019-05-22T02:14:27.000Z | 2021-12-18T22:18:04.000Z | /*
rdesktop: A Remote Desktop Protocol client.
Master include file
Copyright (C) Matthew Chapman 1999-2008
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Li... | 22.086758 | 72 | 0.736614 |
a5d50597fa2bdfb700f8d6f9da199db7f4109d35 | 3,543 | sql | SQL | sql/egg_shop_attachments.sql | PH-C/duapp | b6c2515e12eb23f1e188f6b0779266ea561b2327 | [
"MIT"
] | 2 | 2019-06-22T04:56:33.000Z | 2019-12-31T09:57:58.000Z | sql/egg_shop_attachments.sql | PH-C/duapp | b6c2515e12eb23f1e188f6b0779266ea561b2327 | [
"MIT"
] | null | null | null | sql/egg_shop_attachments.sql | PH-C/duapp | b6c2515e12eb23f1e188f6b0779266ea561b2327 | [
"MIT"
] | null | null | null | -- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: egg_shop
-- ------------------------------------------------------
-- Server version 8.0.14
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*... | 62.157895 | 1,456 | 0.738357 |
ef518fd81f845809b024eebde359e4d2ad5fd5dc | 4,740 | c | C | ext/pg_binary_encoder.c | sergey-alekseev/ruby-pg | 44300258355e9b221dd53bb27e450ee594e1f57d | [
"Ruby"
] | null | null | null | ext/pg_binary_encoder.c | sergey-alekseev/ruby-pg | 44300258355e9b221dd53bb27e450ee594e1f57d | [
"Ruby"
] | null | null | null | ext/pg_binary_encoder.c | sergey-alekseev/ruby-pg | 44300258355e9b221dd53bb27e450ee594e1f57d | [
"Ruby"
] | null | null | null | /*
* pg_column_map.c - PG::ColumnMap class extension
* $Id$
*
*/
#include "pg.h"
#include "pg_util.h"
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
VALUE rb_mPG_BinaryEncoder;
/*
* Document-class: PG::BinaryEncoder::Boolean < PG::SimpleEncoder
*
* This is the encoder class for the PostgreSQL boolean ty... | 28.902439 | 104 | 0.72827 |
18ede2613d80b12f6b2b556f3b62d6cf9bd3b47a | 1,986 | rs | Rust | src/archived/p0329_longest_increasing_path_in_a_matrix.rs | gozssky/leetcode-rust | cdfd5e73d9c89c4241c3ba3d91504fa3cf0fdf55 | [
"MIT"
] | 1 | 2021-01-02T06:42:29.000Z | 2021-01-02T06:42:29.000Z | src/archived/p0329_longest_increasing_path_in_a_matrix.rs | gozssky/leetcode-rust | cdfd5e73d9c89c4241c3ba3d91504fa3cf0fdf55 | [
"MIT"
] | null | null | null | src/archived/p0329_longest_increasing_path_in_a_matrix.rs | gozssky/leetcode-rust | cdfd5e73d9c89c4241c3ba3d91504fa3cf0fdf55 | [
"MIT"
] | 1 | 2021-04-25T01:01:00.000Z | 2021-04-25T01:01:00.000Z | #![allow(dead_code)]
pub struct Solution;
impl Solution {
fn dfs(x: usize, y: usize, f: &mut Vec<Vec<i32>>, matrix: &Vec<Vec<i32>>) -> i32 {
if f[x][y] > 0 {
return f[x][y];
}
let m = f.len();
let n = f[0].len();
let mut ans = 0;
if x > 0 && matrix[x - 1]... | 27.971831 | 97 | 0.388721 |
5dd72157657a7f90b29c9333a51eb5164b604f4c | 2,612 | cpp | C++ | modules/core/src/named_output_pipe.cpp | tizenorg/platform.framework.web.wrt-commons | 5835a89c8b013c00b828fecf04f423adc9e5d561 | [
"Apache-2.0"
] | null | null | null | modules/core/src/named_output_pipe.cpp | tizenorg/platform.framework.web.wrt-commons | 5835a89c8b013c00b828fecf04f423adc9e5d561 | [
"Apache-2.0"
] | null | null | null | modules/core/src/named_output_pipe.cpp | tizenorg/platform.framework.web.wrt-commons | 5835a89c8b013c00b828fecf04f423adc9e5d561 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011 Samsung Electronics Co., Ltd 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
... | 25.607843 | 97 | 0.667305 |
8d91f91a9b9dd848b4c34aa0f144818769b7363a | 903 | swift | Swift | RescueLink/Models/LocationManager.swift | security-union/armore-ios | 55ef53de10b71780d67cab48e7d62e28f35baf09 | [
"Apache-2.0"
] | 3 | 2021-04-06T02:37:38.000Z | 2021-12-10T08:33:42.000Z | RescueLink/Models/LocationManager.swift | security-union/armore-ios | 55ef53de10b71780d67cab48e7d62e28f35baf09 | [
"Apache-2.0"
] | null | null | null | RescueLink/Models/LocationManager.swift | security-union/armore-ios | 55ef53de10b71780d67cab48e7d62e28f35baf09 | [
"Apache-2.0"
] | null | null | null | //
// LocationManager.swift
// Armore
//
// Created by Dario Talarico on 6/2/20.
// Copyright © 2020 Security Union. All rights reserved.
//
import Foundation
import CoreLocation
protocol LocationManager {
func startForegroundTracking(_ delegate: CLLocationManagerDelegate?,
up... | 34.730769 | 78 | 0.662237 |
38c740270b80251b8266f303cdffc31234f025bf | 4,605 | php | PHP | tests/PlaygroundGameTest/Mapper/PrizeCategoryTest.php | gregorybesson/PlaygroundGame | c4b36577f3fc0ea9fb7496c0eb81d05425b0341e | [
"MIT"
] | null | null | null | tests/PlaygroundGameTest/Mapper/PrizeCategoryTest.php | gregorybesson/PlaygroundGame | c4b36577f3fc0ea9fb7496c0eb81d05425b0341e | [
"MIT"
] | 22 | 2015-02-01T13:06:53.000Z | 2017-02-13T16:39:29.000Z | tests/PlaygroundGameTest/Mapper/PrizeCategoryTest.php | gregorybesson/PlaygroundGame | c4b36577f3fc0ea9fb7496c0eb81d05425b0341e | [
"MIT"
] | 1 | 2015-11-24T22:11:27.000Z | 2015-11-24T22:11:27.000Z | <?php
namespace PlaygroundGameTest\Mapper;
use \PlaygroundGame\Entity\PrizeCategory as PrizeCategoryEntity;
use PlaygroundGameTest\Bootstrap;
class PrizeCategoryTest extends \PHPUnit\Framework\TestCase
{
protected $traceError = true;
protected function setUp(): void
{
$this->sm = Bootstrap::getS... | 37.745902 | 106 | 0.599131 |
a140c572dd3a56c1e53326270f1111fa18debd1e | 3,803 | cpp | C++ | src/Backend_SDL2/Filesystem.cpp | GabrielRavier/CuckySonic | 52152460ac39fc96fdb2fcbe9da85b8067f414d3 | [
"MIT"
] | null | null | null | src/Backend_SDL2/Filesystem.cpp | GabrielRavier/CuckySonic | 52152460ac39fc96fdb2fcbe9da85b8067f414d3 | [
"MIT"
] | 1 | 2019-10-21T00:01:43.000Z | 2019-10-21T00:01:43.000Z | src/Backend_SDL2/Filesystem.cpp | GabrielRavier/CuckySonic | 52152460ac39fc96fdb2fcbe9da85b8067f414d3 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <string.h>
#include "../Filesystem.h"
#include "../GameConstants.h"
#include "../Log.h"
#include "../Error.h"
char *gBasePath;
char *gPrefPath;
//File handle functions
BACKEND_FILE *OpenFile(const char *path, const char *mode) { return SDL_RWFromFile(path, mode); }
void CloseFile(BACKEND... | 33.069565 | 123 | 0.717065 |
6af8927356e6ba5a28952d46aed4a79fdeb8e668 | 270 | h | C | build/base/gen/include/config/embox/arch/clock.h | clinlfoundation/EMBOX | 00d39726d5ce6fb617ec583c110e29ec25de0c49 | [
"BSD-2-Clause"
] | 2 | 2020-03-27T11:39:06.000Z | 2020-10-10T01:41:10.000Z | build/base/gen/include/config/embox/arch/clock.h | clinlfoundation/EMBOX | 00d39726d5ce6fb617ec583c110e29ec25de0c49 | [
"BSD-2-Clause"
] | null | null | null | build/base/gen/include/config/embox/arch/clock.h | clinlfoundation/EMBOX | 00d39726d5ce6fb617ec583c110e29ec25de0c49 | [
"BSD-2-Clause"
] | 1 | 2020-03-30T09:59:35.000Z | 2020-03-30T09:59:35.000Z | /* Generated by GNU Make 4.2.1. Do not edit. */
#ifndef __CONFIG__embox__arch__clock__H_
#define __CONFIG__embox__arch__clock__H_
// This is a base type of embox.driver.clock.pit
#include <config/embox/driver/clock/pit.h>
#endif /* __CONFIG__embox__arch__clock__H_ */
| 30 | 48 | 0.785185 |
4d16f7e7e51499b3cf94f13ff0af9f3a062f0ce9 | 1,757 | sql | SQL | db/views/api_questions_tree_view/20160202174508.sql | unepwcmc/ORS | 6934c8e6b26a6d0cb585f5e8f342e7db73e9d914 | [
"BSD-3-Clause"
] | 3 | 2016-12-08T09:21:55.000Z | 2019-06-29T16:03:47.000Z | db/views/api_questions_tree_view/20160202174508.sql | unepwcmc/ORS | 6934c8e6b26a6d0cb585f5e8f342e7db73e9d914 | [
"BSD-3-Clause"
] | 26 | 2016-09-22T08:24:45.000Z | 2022-02-26T01:23:32.000Z | db/views/api_questions_tree_view/20160202174508.sql | unepwcmc/ORS | 6934c8e6b26a6d0cb585f5e8f342e7db73e9d914 | [
"BSD-3-Clause"
] | null | null | null | -- DROP VIEW api_questions_tree_view;
CREATE OR REPLACE VIEW api_questions_tree_view AS
WITH mao_options AS (
SELECT mao.multi_answer_id,
mao.language,
array_agg(mao.option_text ORDER BY mao.sort_index) AS options
FROM api_multi_answer_options_view mao
GROUP BY ma... | 35.857143 | 153 | 0.710871 |
c5583ee46994e768555085c1698676982d9a1e41 | 2,260 | css | CSS | assets/css/improved-sr-only.css | mandrasch/not-a-real-screenreader-pptr | 3bad7e54d667b43f6517fa3b1640500e11745417 | [
"CC0-1.0"
] | 3 | 2021-08-02T02:25:04.000Z | 2021-08-02T15:26:01.000Z | assets/css/improved-sr-only.css | mandrasch/not-a-real-screenreader | 3bad7e54d667b43f6517fa3b1640500e11745417 | [
"CC0-1.0"
] | null | null | null | assets/css/improved-sr-only.css | mandrasch/not-a-real-screenreader | 3bad7e54d667b43f6517fa3b1640500e11745417 | [
"CC0-1.0"
] | null | null | null | /* https://gist.github.com/ffoodd/000b59f431e3e64e4ce1a24d5bb36034 */
/*
Improved screen reader only CSS class
@author Gaël Poupard
@note Based on Yahoo!'s technique
@author Thierry Koblentz
@see https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html
* 1.
@note `clip` is ... | 34.769231 | 96 | 0.729646 |
939260dfa05604d2b59cb207ec8502592dfcea15 | 240 | cs | C# | Source/VulkaNetGenerator/GenStructs/GenEventCreateInfo.cs | Zulkir/VulkaNet | ef5a899a5c4db576be15ee9c50ee9218e7ea4a38 | [
"MIT"
] | 3 | 2016-07-24T07:24:36.000Z | 2017-11-20T17:35:02.000Z | Source/VulkaNetGenerator/GenStructs/GenEventCreateInfo.cs | Zulkir/VulkaNet | ef5a899a5c4db576be15ee9c50ee9218e7ea4a38 | [
"MIT"
] | null | null | null | Source/VulkaNetGenerator/GenStructs/GenEventCreateInfo.cs | Zulkir/VulkaNet | ef5a899a5c4db576be15ee9c50ee9218e7ea4a38 | [
"MIT"
] | null | null | null | using VulkaNetGenerator.Dummies;
namespace VulkaNetGenerator.GenStructs
{
public unsafe struct GenEventCreateInfo
{
public VkStructureType sType;
public void* pNext;
public VkEventCreateFlags flags;
}
} | 21.818182 | 43 | 0.7125 |
af9ffa2afa6f222eae7f47b0d9c40faec1abf95b | 763 | py | Python | app/adaptation/strategies/__init__.py | ManCla/TRAPP | 415dd302de0cf573584b57b6718cfed64380d353 | [
"MIT"
] | null | null | null | app/adaptation/strategies/__init__.py | ManCla/TRAPP | 415dd302de0cf573584b57b6718cfed64380d353 | [
"MIT"
] | null | null | null | app/adaptation/strategies/__init__.py | ManCla/TRAPP | 415dd302de0cf573584b57b6718cfed64380d353 | [
"MIT"
] | null | null | null | import app.Config as Config
from app.adaptation.strategies.AvoidOverloadedStreets import AvoidOverLoadedStreets
from app.adaptation.strategies.LoadBalancing import LoadBalancing
from app.adaptation.strategies.TunePlanningResolution import TunePlanningResolution
from app.adaptation.strategies.NoAdaptation import NoAdapt... | 47.6875 | 83 | 0.812582 |
5ba146e02a3d5a9129e4d180476e6d8005ff120e | 4,463 | css | CSS | css/style.css | RVCC-IDMX/about-me-Lori-A | ac30201649995e13c3f44a30e31ff8af4e8622d3 | [
"W3C"
] | null | null | null | css/style.css | RVCC-IDMX/about-me-Lori-A | ac30201649995e13c3f44a30e31ff8af4e8622d3 | [
"W3C"
] | null | null | null | css/style.css | RVCC-IDMX/about-me-Lori-A | ac30201649995e13c3f44a30e31ff8af4e8622d3 | [
"W3C"
] | null | null | null | body{
background-color: #FFE378;
background-image: linear-gradient( #FFE378,#3DB1E0,#5CFFE6, grey);
}
header{
border: solid;
text-align: center;
background-image: url(/img/cherryblossoms.png);
background-size: auto;
}
header img {
margin-top:2em;
}
h1{
font-family: "Bungee Inline";... | 15.604895 | 70 | 0.580103 |
9ff1cb297c75f3c505517d969fa7ab0021da547b | 651 | py | Python | Auto.py | sidhantp1906/Automation-with-python | c79f55aa662ce14621f9ecbb6be8c6a021ed6930 | [
"MIT"
] | null | null | null | Auto.py | sidhantp1906/Automation-with-python | c79f55aa662ce14621f9ecbb6be8c6a021ed6930 | [
"MIT"
] | null | null | null | Auto.py | sidhantp1906/Automation-with-python | c79f55aa662ce14621f9ecbb6be8c6a021ed6930 | [
"MIT"
] | null | null | null | import openpyxl as xl
from openpyxl.chart import BarChart,Reference
wb = xl.load_workbook('transactions.xlsx')
sheet = wb['Sheet1']
cell = sheet['a1']
cell = sheet.cell(2, 1)
print(cell.value)
print(sheet.max_row)
for row in range(2,sheet.max_row + 1):
cell = sheet.cell(row,3)
corrected_value = ce... | 25.038462 | 87 | 0.695853 |
6aded719cdcaf302049aa8eb060075bb113a2bae | 3,449 | h | C | Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamerInputComponent.h | denfrost/UE5MainStreaming | b16e03a9bf01987d390f066f500bcff4b75ea790 | [
"MIT"
] | 2 | 2021-11-26T13:33:32.000Z | 2021-12-31T08:52:21.000Z | Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamerInputComponent.h | denfrost/UE5MainStreaming | b16e03a9bf01987d390f066f500bcff4b75ea790 | [
"MIT"
] | null | null | null | Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamerInputComponent.h | denfrost/UE5MainStreaming | b16e03a9bf01987d390f066f500bcff4b75ea790 | [
"MIT"
] | 1 | 2021-10-11T10:05:52.000Z | 2021-10-11T10:05:52.000Z | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/ActorComponent.h"
#include "PixelStreamerInputComponent.generated.h"
class IPixelStreamingModule;
/**
* This component may be attached to an actor to allow UI interactions to be
* handled as the delegate will be notified about th... | 41.059524 | 131 | 0.756451 |
eb82d6f2734f9120c4e7cf409f9a5656ecf2046c | 306 | css | CSS | public/css/forms.css | nicolevest/invato | edad89a29130627be505dc69446f7c30fa4facc7 | [
"MIT"
] | null | null | null | public/css/forms.css | nicolevest/invato | edad89a29130627be505dc69446f7c30fa4facc7 | [
"MIT"
] | null | null | null | public/css/forms.css | nicolevest/invato | edad89a29130627be505dc69446f7c30fa4facc7 | [
"MIT"
] | null | null | null | .formulario{
display: block;
background-color: rgba(91, 4, 5,70%);
margin-top:2em;
text-align: center;
}
/* h2{
position: fixed;
} */
.campo{
margin-top: 1em;
margin-bottom: 1em;
color: #FFF;
}
label{
color: #FFF;
font-weight: bolder;
}
.titulo{
color: #FFF;
font-weight: bolder;
}
| 13.304348 | 39 | 0.614379 |
2ca95ab3cfeb727ffc2b331f8f059890d45e5faf | 1,214 | py | Python | tests/resources/test_sns_topic_policy.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 23 | 2018-06-28T10:45:01.000Z | 2021-05-07T11:12:39.000Z | tests/resources/test_sns_topic_policy.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 27 | 2019-03-09T08:33:22.000Z | 2022-03-03T14:59:11.000Z | tests/resources/test_sns_topic_policy.py | donatoaz/pycfmodel | 1586e290b67d2347493dd4a77d2b0c8ee6c0936b | [
"Apache-2.0"
] | 7 | 2019-03-09T02:18:18.000Z | 2021-07-22T20:33:09.000Z | import pytest
from pycfmodel.model.resources.sns_topic_policy import SNSTopicPolicy
from pycfmodel.model.utils import OptionallyNamedPolicyDocument
@pytest.fixture()
def sns_topic_policy():
return SNSTopicPolicy(
**{
"Type": "AWS::SNS::TopicPolicy",
"Properties": {
... | 31.128205 | 108 | 0.551895 |
d68666c2533ec945af0d4b7765e27e775268cb70 | 3,494 | dart | Dart | packages/conduit/tool/generated_test_runner.dart | anycode/conduit | f3baca4b1d4f2f24e542d7e12859d6ab6d6ffcb3 | [
"BSD-2-Clause"
] | null | null | null | packages/conduit/tool/generated_test_runner.dart | anycode/conduit | f3baca4b1d4f2f24e542d7e12859d6ab6d6ffcb3 | [
"BSD-2-Clause"
] | null | null | null | packages/conduit/tool/generated_test_runner.dart | anycode/conduit | f3baca4b1d4f2f24e542d7e12859d6ab6d6ffcb3 | [
"BSD-2-Clause"
] | null | null | null | import 'dart:async';
import 'dart:io';
import 'package:conduit_runtime/runtime.dart';
Future main(List<String> args) async {
final conduitDir = Directory.current.uri;
final blacklist = [
(String s) => s.contains('test/command/'),
(String s) => s.contains('/compilation_errors/'),
(String s) => s.contai... | 32.962264 | 96 | 0.618489 |
f46fc0a1cf684d0f183ea51a7ec271a118445b3a | 395 | ts | TypeScript | example/example.ts | ZachBray/stylus-to-typescript-converter | 6a75be4514ccb447edf1cf01445d9edbc2495497 | [
"MIT"
] | null | null | null | example/example.ts | ZachBray/stylus-to-typescript-converter | 6a75be4514ccb447edf1cf01445d9edbc2495497 | [
"MIT"
] | null | null | null | example/example.ts | ZachBray/stylus-to-typescript-converter | 6a75be4514ccb447edf1cf01445d9edbc2495497 | [
"MIT"
] | null | null | null | // This file was generated by stsc. Please do not edit by hand.
export const aFg = '#fff';
export const bBg = 'rgba(119, 134, 153, 0.59)';
export const aClass = {
fontFamily: 'Roboto',
fontSize: '14px',
fontWeight: '500',
lineHeight: '2.57',
color: aFg
};
export const bClass = {
fontFamily: 'Roboto',
f... | 19.75 | 63 | 0.637975 |
fa5493a80a3e558b8cf6d9dfb4f48e75ae6b7dca | 3,429 | rb | Ruby | spec/requests/carto/builder/datasets_controller_spec.rb | yuyf-fsd/cartodb | c19d6fd3bd0e26106dd8dd931e6570619dd629e7 | [
"BSD-3-Clause"
] | null | null | null | spec/requests/carto/builder/datasets_controller_spec.rb | yuyf-fsd/cartodb | c19d6fd3bd0e26106dd8dd931e6570619dd629e7 | [
"BSD-3-Clause"
] | 1 | 2020-04-27T00:59:05.000Z | 2020-04-27T00:59:05.000Z | spec/requests/carto/builder/datasets_controller_spec.rb | techonomics69/cartodb | d9f16023ecc8956810b3afe86cc1203817076ab3 | [
"BSD-3-Clause"
] | 1 | 2020-01-12T22:05:33.000Z | 2020-01-12T22:05:33.000Z | require_relative '../../../spec_helper'
describe Carto::Builder::DatasetsController do
include Warden::Test::Helpers
describe '#show' do
before(:all) do
CartoDB::UserModule::DBService.any_instance.stubs(:enable_remote_db_user).returns(true)
bypass_named_maps
@user = FactoryGirl.build(:valid_... | 30.891892 | 113 | 0.696996 |
8d58409b0004cbdd81a3379fa999dc68fe85a9a4 | 8,392 | rs | Rust | examples/server/service/snapshot.rs | PatrickNicholas/sdcons | 69e5790cbf54f2006bdb79a3da8b1af9d52fd249 | [
"Apache-2.0"
] | 3 | 2021-07-24T14:51:21.000Z | 2021-11-08T00:30:39.000Z | examples/server/service/snapshot.rs | w41ter-l/sdcons | 69e5790cbf54f2006bdb79a3da8b1af9d52fd249 | [
"Apache-2.0"
] | null | null | null | examples/server/service/snapshot.rs | w41ter-l/sdcons | 69e5790cbf54f2006bdb79a3da8b1af9d52fd249 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The sdcons Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 33.975709 | 97 | 0.555172 |
c3cddf43cf7f740e36caa60fabda5528814acb5f | 1,055 | cshtml | C# | Plugins/MVC/Aspose.MVC.ExportContentToImages/ExportContentToImages/Views/Shared/AsposeContentToImage.cshtml | Web-Dev-Collaborative/Aspose.Words-for-.NET | bf62ae46d38c0514485f47e9a0e6d295dcf818f1 | [
"MIT"
] | 310 | 2016-04-18T06:50:54.000Z | 2022-03-29T13:24:09.000Z | Plugins/MVC/Aspose.MVC.ExportContentToImages/ExportContentToImages/Views/Shared/AsposeContentToImage.cshtml | xinqinglhj/Aspose.Words-for-.NET | d9e31afc957f1240d93d55735482131ea92161fc | [
"MIT"
] | 34 | 2016-04-15T16:39:43.000Z | 2022-01-04T18:13:20.000Z | Plugins/MVC/Aspose.MVC.ExportContentToImages/ExportContentToImages/Views/Shared/AsposeContentToImage.cshtml | xinqinglhj/Aspose.Words-for-.NET | d9e31afc957f1240d93d55735482131ea92161fc | [
"MIT"
] | 149 | 2016-04-08T03:30:01.000Z | 2022-03-27T14:55:25.000Z |
<style>
.setDiv {
display: flex;
}
</style>
<div class="setDiv">
<select id="AsposeContentExportImagesTypes" class="form-control">
<option value="">Select an Export Format</option>
<option value="JPEG">JPEG Image format (*.jpeg)</option>
<option value="PNG">PNG Image forma... | 21.979167 | 98 | 0.565877 |
3ef93cded39bf7a9a6fca0ba6e0b30b094ddbb64 | 2,318 | swift | Swift | Example/AwesomeBubbles/ViewController.swift | chaucyzhang/AwesomeBubbles | db7b3753a72101923faf7a4134813960b396f41a | [
"MIT"
] | null | null | null | Example/AwesomeBubbles/ViewController.swift | chaucyzhang/AwesomeBubbles | db7b3753a72101923faf7a4134813960b396f41a | [
"MIT"
] | null | null | null | Example/AwesomeBubbles/ViewController.swift | chaucyzhang/AwesomeBubbles | db7b3753a72101923faf7a4134813960b396f41a | [
"MIT"
] | null | null | null | //
// ViewController.swift
// AwesomeBubbles
//
// Created by chaucyzhang@gmail.com on 09/26/2017.
// Copyright (c) 2017 chaucyzhang@gmail.com. All rights reserved.
//
import UIKit
import AwesomeBubbles
class ViewController: UIViewController, AwesomeBubbleContainerViewDelegate, AwesomeBubbleContainerViewDataSourc... | 32.647887 | 158 | 0.653581 |
da52d595a22c0ab9f4692d653c5129fe3762c38c | 1,641 | php | PHP | app/User.php | cx783/topics | 29d1b37dd51264d3c5b439e3bcede3862d6fe8c1 | [
"MIT"
] | null | null | null | app/User.php | cx783/topics | 29d1b37dd51264d3c5b439e3bcede3862d6fe8c1 | [
"MIT"
] | 3 | 2021-03-09T20:07:04.000Z | 2022-02-18T12:45:36.000Z | app/User.php | cx783/topics | 29d1b37dd51264d3c5b439e3bcede3862d6fe8c1 | [
"MIT"
] | null | null | null | <?php
namespace App;
use App\Topic;
use App\Concern\HasTopics;
use Laravel\Passport\HasApiTokens;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Silber\Bouncer\Database\HasRolesAndAbilities;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authen... | 23.782609 | 87 | 0.575868 |
685cacae88d955a75232648195f9c9e10cf5dea5 | 2,473 | php | PHP | views/user/_form.php | agusedyc/letter-sig | 303e39b4df11d08db4f7ccfc7dcc99026cf79120 | [
"BSD-3-Clause"
] | null | null | null | views/user/_form.php | agusedyc/letter-sig | 303e39b4df11d08db4f7ccfc7dcc99026cf79120 | [
"BSD-3-Clause"
] | null | null | null | views/user/_form.php | agusedyc/letter-sig | 303e39b4df11d08db4f7ccfc7dcc99026cf79120 | [
"BSD-3-Clause"
] | null | null | null | <?php
use kartik\switchinput\SwitchInput;
use kartik\widgets\Select2;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\User */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="user-form">
<div class="panel panel-default">
<div class="panel-b... | 33.418919 | 158 | 0.451274 |
87b0a134ab1365055680d5f39264c539df98d2d3 | 2,450 | swift | Swift | TempiBeatDetection/TempiUtilities.swift | jasonmarkperez/TempiBeatDetection | c5e747155f67626135919c51701184e75d5caa52 | [
"MIT"
] | 36 | 2017-06-09T09:42:59.000Z | 2022-02-16T21:35:51.000Z | TempiBeatDetection/TempiUtilities.swift | jasonmarkperez/TempiBeatDetection | c5e747155f67626135919c51701184e75d5caa52 | [
"MIT"
] | null | null | null | TempiBeatDetection/TempiUtilities.swift | jasonmarkperez/TempiBeatDetection | c5e747155f67626135919c51701184e75d5caa52 | [
"MIT"
] | 13 | 2017-05-16T15:18:51.000Z | 2021-12-23T14:43:56.000Z | //
// TempiUtilities.swift
// TempiBeatDetection
//
// Created by John Scalo on 1/8/16.
// Copyright © 2016 John Scalo. See accompanying License.txt for terms.
import Foundation
import Accelerate
func tempi_dispatch_delay(delay:Double, closure:()->()) {
dispatch_after(
dispatch_time(
DISPA... | 25.789474 | 72 | 0.550204 |
1a7faeacd83f1f044393b1b8c323eea332a2a1ec | 2,328 | py | Python | modern-infrastructure-wednesday/2020-05-06/gcp-py-functions/funcs.py | nimbinatus/pulumitv | 19477611afde5d00d90838956d3a7b1cc7c1f705 | [
"Apache-2.0"
] | 13 | 2020-05-09T17:37:06.000Z | 2022-01-09T06:26:19.000Z | modern-infrastructure-wednesday/2020-05-06/gcp-py-functions/funcs.py | nimbinatus/pulumitv | 19477611afde5d00d90838956d3a7b1cc7c1f705 | [
"Apache-2.0"
] | 28 | 2020-04-24T05:51:39.000Z | 2022-03-31T13:31:38.000Z | modern-infrastructure-wednesday/2020-05-06/gcp-py-functions/funcs.py | nimbinatus/pulumitv | 19477611afde5d00d90838956d3a7b1cc7c1f705 | [
"Apache-2.0"
] | 10 | 2020-03-24T19:29:52.000Z | 2021-06-18T11:01:21.000Z |
import time
import os
import pulumi
from pulumi_gcp import storage
from pulumi_gcp import cloudfunctions
# Disable rule for that module-level exports be ALL_CAPS, for legibility.
# pylint: disable=C0103
# File path to where the Cloud Function's source code is located.
PATH_TO_SOURCE_CODE = "./functions"
# Get valu... | 31.890411 | 87 | 0.746134 |
7ab9697636197813ce80085f0b34e83bcaa0200c | 7,233 | cs | C# | src/FubuCore.Testing/Binding/Values/DictionaryValueSourceTester.cs | DovetailSoftware/fubucore | 6ea269b9edf2e58ff3ec207f6936bf6a163f4a8b | [
"Apache-2.0"
] | null | null | null | src/FubuCore.Testing/Binding/Values/DictionaryValueSourceTester.cs | DovetailSoftware/fubucore | 6ea269b9edf2e58ff3ec207f6936bf6a163f4a8b | [
"Apache-2.0"
] | 1 | 2020-07-01T22:22:13.000Z | 2020-11-11T18:18:59.000Z | src/FubuCore.Testing/Binding/Values/DictionaryValueSourceTester.cs | DovetailSoftware/fubucore | 6ea269b9edf2e58ff3ec207f6936bf6a163f4a8b | [
"Apache-2.0"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Linq;
using FubuCore.Binding;
using FubuCore.Binding.Values;
using FubuCore.Configuration;
using Moq;
using NUnit.Framework;
namespace FubuCore.Testing.Binding.Values
{
[TestFixture]
public class ValueSourceLoaderTester
{
[T... | 32.877273 | 121 | 0.533665 |
f447f73ce8edbcb34ca56ace49f4d7c1a901e5ac | 2,272 | ts | TypeScript | src/routes/spaces.ts | ianleon/production-saas | f9f14ebf7af4dc35b5116c9c37519a761d319473 | [
"MIT"
] | null | null | null | src/routes/spaces.ts | ianleon/production-saas | f9f14ebf7af4dc35b5116c9c37519a761d319473 | [
"MIT"
] | null | null | null | src/routes/spaces.ts | ianleon/production-saas | f9f14ebf7af4dc35b5116c9c37519a761d319473 | [
"MIT"
] | null | null | null | import { compose } from 'worktop';
import * as Space from 'lib/models/space';
import * as User from 'lib/models/user';
import * as utils from 'lib/utils';
/**
* GET /spaces
* @requires Authentication
*/
export const list = compose(
User.authenticate,
async function (req, context) {
const IDs = await Space.list(... | 24.170213 | 70 | 0.671655 |
6b232a78835d71cf5bea3b09d97895d2bf22b521 | 1,061 | kt | Kotlin | android/src/main/kotlin/com/usercentrics/sdk/flutter/bridge/SaveOptOutForCCPABridge.kt | Usercentrics/usercentrics-flutter-sdk | ee756905c5a029bd9d1d7c06fdd0726c1ad0e20a | [
"Apache-2.0"
] | 1 | 2022-01-21T11:00:49.000Z | 2022-01-21T11:00:49.000Z | android/src/main/kotlin/com/usercentrics/sdk/flutter/bridge/SaveOptOutForCCPABridge.kt | Usercentrics/usercentrics-flutter-sdk | ee756905c5a029bd9d1d7c06fdd0726c1ad0e20a | [
"Apache-2.0"
] | 1 | 2021-10-29T18:26:00.000Z | 2021-11-04T13:07:55.000Z | android/src/main/kotlin/com/usercentrics/sdk/flutter/bridge/SaveOptOutForCCPABridge.kt | Usercentrics/usercentrics-flutter-sdk | ee756905c5a029bd9d1d7c06fdd0726c1ad0e20a | [
"Apache-2.0"
] | 1 | 2022-01-19T18:21:26.000Z | 2022-01-19T18:21:26.000Z | package com.usercentrics.sdk.flutter.bridge
import com.usercentrics.sdk.flutter.api.FlutterMethodCall
import com.usercentrics.sdk.flutter.api.FlutterResult
import com.usercentrics.sdk.flutter.api.UsercentricsProxy
import com.usercentrics.sdk.flutter.api.UsercentricsProxySingleton
import com.usercentrics.sdk.flutter.se... | 39.296296 | 91 | 0.756833 |
0af712883ae99c2d8586e434ac6402b53a74319c | 4,364 | cs | C# | LivelogsPlayerStatParser/Menu.cs | Paymh/LivelogsPlayerStatParser | 52b4bbed005793c75e426d8188bb5732c66ddc56 | [
"MIT"
] | null | null | null | LivelogsPlayerStatParser/Menu.cs | Paymh/LivelogsPlayerStatParser | 52b4bbed005793c75e426d8188bb5732c66ddc56 | [
"MIT"
] | null | null | null | LivelogsPlayerStatParser/Menu.cs | Paymh/LivelogsPlayerStatParser | 52b4bbed005793c75e426d8188bb5732c66ddc56 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
namespace LivelogsPlayerStatParser
{
public partial class Menu : Form
{
public Menu()
{
... | 34.09375 | 106 | 0.542621 |
2fe5e3ddcd011b63788bbf021557d32814aaffb8 | 6,389 | py | Python | de_course_downloader.py | vedangnaik/depp-utils | 134f40c331e2a9c722d6d99888dcafe7bfe32f93 | [
"MIT"
] | null | null | null | de_course_downloader.py | vedangnaik/depp-utils | 134f40c331e2a9c722d6d99888dcafe7bfe32f93 | [
"MIT"
] | null | null | null | de_course_downloader.py | vedangnaik/depp-utils | 134f40c331e2a9c722d6d99888dcafe7bfe32f93 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import requests
from pathlib import Path
import json
import argparse
import sys
import re
from constants import allCoursesRe, allProgramsRe, prerequisiteRe
getCourseInfoGETHeader = {
"Host": "degreeexplorer.utoronto.ca",
"Connection": "keep-alive",
"sec-ch-ua": '" Not;A Brand";v="9... | 46.977941 | 255 | 0.668023 |
1a6812ef082046267361e612312abbd6008a8ca1 | 301 | cs | C# | InBusinessForTests/Data/Managers/Facade/ICustomerManager.cs | thor1824/Test_ReadyApi_Jenkins | 46d93ea03bfd866a5bc5943e73f416be0a4e27b7 | [
"Apache-2.0"
] | null | null | null | InBusinessForTests/Data/Managers/Facade/ICustomerManager.cs | thor1824/Test_ReadyApi_Jenkins | 46d93ea03bfd866a5bc5943e73f416be0a4e27b7 | [
"Apache-2.0"
] | null | null | null | InBusinessForTests/Data/Managers/Facade/ICustomerManager.cs | thor1824/Test_ReadyApi_Jenkins | 46d93ea03bfd866a5bc5943e73f416be0a4e27b7 | [
"Apache-2.0"
] | null | null | null | using System.Threading.Tasks;
using InBusinessForTests.Data.Model;
namespace InBusinessForTests.Data.Managers.Facade
{
public interface ICustomerManager
{
Task<BusinessResponse<Customer>> DeleteAsync(int id);
Task<BusinessResponse<Customer>> CreateAsync(string name);
}
} | 27.363636 | 66 | 0.750831 |
a385a303f41ae47ca92a93a3c0adea97c826ac8d | 1,350 | tsx | TypeScript | src/uniprotkb/components/protein-data-views/__tests__/UniProtEvidenceTag.spec.tsx | ebi-uniprot/uniprot-website | 2adc2d8529ef9d5459e567ee6bacd03817e617a5 | [
"MIT"
] | null | null | null | src/uniprotkb/components/protein-data-views/__tests__/UniProtEvidenceTag.spec.tsx | ebi-uniprot/uniprot-website | 2adc2d8529ef9d5459e567ee6bacd03817e617a5 | [
"MIT"
] | 152 | 2018-11-07T15:44:50.000Z | 2022-03-25T16:33:10.000Z | src/uniprotkb/components/protein-data-views/__tests__/UniProtEvidenceTag.spec.tsx | ebi-uniprot/uniprot-website | 2adc2d8529ef9d5459e567ee6bacd03817e617a5 | [
"MIT"
] | 2 | 2019-08-23T18:17:53.000Z | 2021-11-10T13:35:13.000Z | import customRender from '../../../../shared/__test-helpers__/customRender';
import UniProtKBEvidenceTag from '../UniProtKBEvidenceTag';
import { Evidence } from '../../../types/modelTypes';
describe('UniProtKBEvidenceTag components', () => {
test('should render automatic annotation', () => {
const evidences: ... | 25.471698 | 76 | 0.577037 |
4cdf2f68940022bc418529909c08b2c4c4ee0f1c | 1,513 | py | Python | lib/python/treadmill/cli/scheduler/apps.py | drienyov/treadmill | ce21537cd9a2fdb0567ac2aa3de1afcb2f6861de | [
"Apache-2.0"
] | 2 | 2017-10-31T18:48:20.000Z | 2018-03-04T20:35:20.000Z | lib/python/treadmill/cli/scheduler/apps.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | null | null | null | lib/python/treadmill/cli/scheduler/apps.py | bretttegart/treadmill | 812109e31c503a6eddaee2d3f2e1faf2833b6aaf | [
"Apache-2.0"
] | null | null | null | """Show apps report."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import click
import pandas as pd
from treadmill import cli
from treadmill.cli.scheduler import fetch_report, print_report
from treadmill import... | 30.877551 | 75 | 0.631196 |