language
stringclasses
15 values
src_encoding
stringclasses
34 values
length_bytes
int64
6
7.85M
score
float64
1.5
5.69
int_score
int64
2
5
detected_licenses
listlengths
0
160
license_type
stringclasses
2 values
text
stringlengths
9
7.85M
Java
UTF-8
2,602
2.484375
2
[]
no_license
package interfaceRoot; import javafx.scene.control.Button; import javafx.scene.control.ColorPicker; import javafx.scene.control.Label; import javafx.scene.control.ScrollPane; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; public interface ArgumentsSettings extends Root { Button reset = new Butt...
PHP
UTF-8
15,258
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Luracast\Restler { /** * Class that implements spl_autoload facilities and multiple * conventions support. * Supports composer libraries and 100% PSR-0 compliant. * In addition we enable namespace prefixing and class aliases. * * @category Framework * @package Restler * @subpackage helper ...
C
UTF-8
287
3.0625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#include <stdio.h> #include <stdlib.h> int *new_int_array(int n) { int *v; v = malloc(n * sizeof(int)); return v; } int main(void) { int *p, *q; p = new_int_array(10); /* Do stuff */ q = new_int_array(10); /* Do more stuff */ /* No deallocation! */ return 0; }
TypeScript
UTF-8
961
2.578125
3
[]
no_license
import { Currency } from '../../../shared/models/currency'; import { localeMonths } from '../../../shared/enum/locale'; export class OrdersSummary { aggregated: Array<AggregatedOrders>; thisMonth: PeriodSummary; today: PeriodSummary; currency: Currency; constructor(orderSummaryResponse) { this.aggregate...
C
SHIFT_JIS
7,635
2.921875
3
[]
no_license
/// <summary> /// Application`Sheets܂ł (Books܂ł͌•ʂɎgpȂSheetsɂ܂Ƃ߂Ďdl) /// </summary> public class ESheets : IDisposable { public Application App { get; set; } = null; public Workbooks Books { get; set; } = null; public Workbook Book { get; set; ...
Go
UTF-8
3,879
2.546875
3
[ "MIT" ]
permissive
package message import ( "fmt" "github.com/gobwas/ws" "github.com/redis-developer/basic-redis-chat-demo-go/rediscli" "io" "log" "net" "sync" ) type ( DataType string ) const ( DataTypeSys DataType = "sys" DataTypeReady DataType = "ready" DataTypeError DataType = "error" Da...
Python
UTF-8
309
3.640625
4
[]
no_license
def word2chars(word): text = "" is_start = True for c in word: if c == " ": is_start = True text = text[:-2] + " " else: if not is_start: text += "#" text += c + "# " is_start = False return text[:-2]
Java
UTF-8
7,702
2.5
2
[]
no_license
package sample.GUI; import java.io.IOException; import java.net.URL; import java.util.ResourceBundle; import java.util.concurrent.TimeUnit; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import java...
C++
UTF-8
1,178
2.953125
3
[]
no_license
#include <iostream> #include <sstream> #include <fstream> #include <vector> #include <string> #define min(A,B) A<B ? A : B using namespace std; int minCoins(int coins[], int m, int V) { int table[V+1]; table[0] = 0; for (int i=1; i<=V; i++) table[i] = INT_MAX; for (int i...
C
GB18030
1,247
3.25
3
[]
no_license
#include<stdio.h> #include<stdlib.h> int main(void) { int seed ; int i,digit,count; count = 0; while (count < 10) { scanf("%d",&seed);//ͨпԷseedֵͬʱõֳִҲͬ srand(seed); int count_1 = 0; int count_2 = 0; int count_3 = 0; int count_4 = 0; int count_5 = 0; int count_6 = 0; int count_7 = 0; int...
Python
UTF-8
535
3.375
3
[]
no_license
file = open('C:/Users/russi/Downloads/Names.txt', 'r') names = file.readline().split(',') names.sort() alphabet = 'abcdefghijklmnopqrstuvwxyz' alph = {} for i in range(len(alphabet)): alph[alphabet[i]] = i + 1 def countLetters(w): sum = 0 for i in w.capitalize()[1:len(w)-1]: ...
Shell
UTF-8
527
3.609375
4
[ "WTFPL" ]
permissive
#!/usr/bin/env bash mkdir -p test-output readonly supported_tsc_versions=(5.0) exit_code=0 for v in ${supported_tsc_versions[*]}; do echo "================= TESTING VERSION $v =======================" git checkout .. npm i --save-dev typescript@$v ./node_modules/.bin/tsc --version npm run link:se...
Markdown
UTF-8
511
2.890625
3
[]
no_license
# DND_Random_Loot_Generator A random loot generator for DND using simple switch cases and random numbers [Version 1.1.2] Ever wanted the authentic RPG experience of looting a room and gaining a 2 ton pack of knick-knacks and broomsticks. Whether you wanted it or not, now you can, thanks to the Random Loot Generator!...
Python
UTF-8
952
2.828125
3
[]
no_license
# This script merges categories. Going through Annotations folder (input path) # and merging neutrophil_low and high as same class, also removing bg class import xml.etree.ElementTree as ET import sys import glob import os from pathlib import Path if (len(sys.argv) == 0): print("Please input hte annotation fol...
JavaScript
UTF-8
208
2.859375
3
[]
no_license
#!/usr/bin/node // prints a square" let sizeOfSqr = parseInt(process.argv[2]); if (!sizeOfSqr) { console.log('Missing size'); } for (let i = 0; i < sizeOfSqr; i++) { console.log('X'.repeat(sizeOfSqr)); }
Java
UTF-8
3,312
2.015625
2
[]
no_license
package com.example.banlieueservice.usuario; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; impor...
PHP
UTF-8
2,610
2.828125
3
[]
no_license
<?php /** * @author OnTheGo Systems */ namespace OTGS\PhpUnit\Mocks\Classes; use OTGS\PhpUnit\Mocks\Classes\WP_Http\Request; use OTGS\PhpUnit\Mocks\Classes\WP_Http\Response; class WP_Http { /** @var \PHPUnit\Framework\MockObject\MockObject|WP_Http */ private $http; private $methodName; /** @var Request */ pri...
Markdown
UTF-8
1,085
2.546875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
## C # Table of Contents <!-- MarkdownTOC depth=4 --> - [Apps](#apps) - [Books](#books) - [Community](#community) - [Courses](#courses) - [Events](#events) - [Licenses](#licenses) - [Readings](#readings) - [Surveys](#surveys) - [Tutorials](#tutorials) - [Videos](#videos) <!-- /MarkdownTOC --> 1....
C++
ISO-8859-1
863
3.734375
4
[ "MIT" ]
permissive
/* 13- Escreva um programa que leia dois nmeros inteiros A e B quaisquer indicando se A mltiplo de B ou se B mltiplo de A. */ #include<stdio.h> #include<locale.h> int main() { setlocale(LC_ALL,""); int a, b, resto; char resp; do { printf("Entre com um nmero: "); scanf("%i", &a); ...
Swift
UTF-8
162
2.921875
3
[]
no_license
import Foundation public struct UserWithAvatar { public let avatarUrl: URL public init(avatarUrl: URL) { self.avatarUrl = avatarUrl } }
Java
UTF-8
1,277
3.265625
3
[]
no_license
package com.roshan.leetcode; import java.util.*; public class P403FrogJump { public boolean canCross(int[] stones) { Map<Integer , Set<Integer>> indexToSteps = new HashMap<>(); for(int s:stones) indexToSteps.put(s , new HashSet<>()); indexToSteps.put(0 , new HashSet<>()); indexT...
PHP
UTF-8
1,077
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @author Sync */ namespace console\controllers\actions\tdmigrate; use console\controllers\actions\tdmigrate\TdMigrateAction; class GenArtAction extends TdMigrateAction { public function run() { $odbc = $this->connect(); $f = $this->openFileToWrite(); $data = odbc_exec($odbc, "SELE...
Java
UTF-8
1,528
3.53125
4
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package practica1; public class Fraccion{ int numerador; int denominador; Fraccion(int numerador, int denominador){ ...
Python
UTF-8
1,546
2.671875
3
[]
no_license
import subprocess print subprocess.__file__ output_lines = subprocess.check_output('tasklist', shell=True).split('\n') pids = [line.split()[1] for line in output_lines if 'firefox.exe' in line] for pid in pids: subprocess.call('taskkill /f /pid ' + pid) # top 3 processes # total memory consumed # Ve...
Java
UTF-8
329
2.796875
3
[]
no_license
package LabAssessment; import java.util.Scanner; public class Program1 { public static void main(String [] args) { int n,a=0,b=3; Scanner s=new Scanner(System.in); System.out.println("Enter number of elements: "); n=s.nextInt(); for(int i=0;i<n;i++) { System.out.print(" "+a); a=a+b; b=b+2; ...
Python
UTF-8
1,424
3.375
3
[]
no_license
import utility import binascii # Decode single-byte XOR cipher # ciphertext should be a hex-encoded string # key should be a single character def decodeXOR(ciphertext, key): btext = [ord(binascii.unhexlify(ciphertext[i: i+2])) for i in range(0, len(ciphertext), 2)] bkey = bytearray(key) plaintext = '' for i in ran...
JavaScript
UTF-8
1,160
2.546875
3
[]
no_license
/* TAG ENUMS In tags, the following values may be used to represent the following: Coding: 1 Web design: 2 3D printing: 3 Hardware: 4 Miscellaneous: 5 */ /* OPTION ENUMS For each option, a corresponding element must be placed in availoptions at the same position. Options are written out in the order represe...
Markdown
UTF-8
1,526
2.734375
3
[]
no_license
# aula-gama-node ## Pré-requisitos - `npm install` antes de rodar - `nodemon` instalado global com `sudo npm i -g nodemon` ou opção local abaixo - `json-server` instalado global caso queira utilizar a persistência em REST ## Como rodar a API ```shell node server.js ``` ou utilizando o `nodemon`: ```shell # globa...
C#
UTF-8
1,262
2.515625
3
[]
no_license
using HRCode.Core.Common; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace AliDaYuSMS.Controllers { public class ValuesController : ApiController { /// <summary> /// http://localhost:62358/api/Values/Se...
Java
UTF-8
128
1.773438
2
[]
no_license
package wu.leizi.Content; public class contentFactory { public static HBContent createHBC() { return new HBContent(); } }
C
UTF-8
4,277
2.65625
3
[]
no_license
#ifndef ___UTIL_H___ #define ___UTIL_H___ static inline uint64_t __attribute__((always_inline)) check_equal(uint64_t a, uint64_t b) { uint64_t ret; uint8_t v; // TODO: Write assembly here! // Hint: use sete asm volatile("cmp %[a], %[b];" "sete %[c];" : [c] "=r" (v) ...
C#
UTF-8
3,184
3.03125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConsoleApplication1 { class Program { const string FILENAME = @"c:\temp\test.txt"; static void Main(string[] args) { ...
C++
UTF-8
3,101
2.515625
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
/* * Copyright (c) 2013 Battelle Memorial Institute * Licensed under modified BSD License. A copy of this license can be found * in the LICENSE file in the top level directory of this distribution. */ // ------------------------------------------------------------- /** * @file task_test.cpp * @autho...
Java
UTF-8
1,207
4.375
4
[]
no_license
package ex06array; /* 문제3) 홀수/짝수 구분하여 배열채우기 파일명 : QuFillArray.java 길이가 10인 배열을 선언한후 총 10개의 정수를 입력받아 순서대로 저장한다. (첫번째배열) 그리고 순서대로 저장된 숫자들을 홀수는 배열의 앞에서 부터 채워나가고 짝수는 배열의 끝에서부터 채워나간다.(두번째배열) 출력예시) 총 10개의 정수를 입력하시오. 1 2 3 4 5 6 7 8 9 10 순서대로입력된결과: 1 2 3 4 5 6 7 8 9 10 홀수/짝수 구분입력결과 : 1 3 5 7 9 10 8 6 4 2 */ p...
Python
UTF-8
3,188
2.875
3
[]
no_license
# -*- coding: utf-8 -*- from Layer import RNNSgdLayer, SoftmaxLayer from Layer.Function.function import Sigmoid import numpy as np __author__ = 'yixuanhe' class RNN: def __init__(self, output_num, hidden_num, input_num, backoff=4): self.output_num = output_num self.hidden_num = hidden_num ...
JavaScript
UTF-8
1,436
2.890625
3
[ "MIT" ]
permissive
/* should be a stream managing backpressure */ class EventQueue { constructor (options) { this.options = options || {} this.backlog = [] this.stored = [] } attachResponse (res) { this._res = res res.writeHead(200, { 'content-type': 'text/event-stream', 'Access-Control-Allow-Origin...
Java
UTF-8
506
2.21875
2
[]
no_license
package day03_comments_escape_sequence; public class CommentsExamples { public static void main(String[] args) { // This statement prints 'Hello Worl' to the console // System.out.println("Hello World"); // System.out.println (bye world); /* open multi line Line 1 Li...
Python
UTF-8
233
3.9375
4
[]
no_license
a = input("enter a number=") try: if (int(a) > 0): print(a + " is positive") elif (int(a) < 0): print(a + " is negative") else: print("the given number is " + a) except: print("invalid entry")
C
UTF-8
2,759
2.515625
3
[ "BSD-2-Clause" ]
permissive
/* libtinynotify -- session interface * (c) 2011 Michał Górny * 2-clause BSD-licensed */ #pragma once #ifndef _TINYNOTIFY_ERROR_H #define _TINYNOTIFY_ERROR_H /** * SECTION: NotifyError * @short_description: API to deal with libtinynotify errors * @include: tinynotify.h * * All actual error handling in libtiny...
C
UTF-8
764
2.8125
3
[]
no_license
#ifndef _PROCESS_CONTROL_H_ #define _PROCESS_CONTROL_H_ #include <sys/types.h> /* define a structure called "Process", containing its name(char array), ready time, execution time, process id, and two file descriptors used by pipes */ typedef struct{ char name[32]; int ready_time; int exec_time; pid_...
Rust
UTF-8
8,113
3.15625
3
[]
no_license
#[macro_use] extern crate lazy_static; use rustpython_parser::ast; use rustpython_parser::parser; pub struct Python {} pub struct Rust {} pub struct Dragoman<T, U>(T, U); #[derive(PartialEq)] pub struct PhantomTuple<A, B>(A, std::marker::PhantomData<B>); lazy_static! { static ref IDENTIFIER_MAP: std::collection...
Shell
UTF-8
325
2.703125
3
[]
no_license
#!/bin/sh { echo Script is executed as user `whoami` on `uname -a` router_pw=$(cat /etc/config/.glbcfg | sed -e '1,/@system/d' | sed -e '/@/,$d' | grep -E '^password=' | cut -c 10-) echo Router Password \(Webinterface\): $router_pw echo WIFI Passwords: cat /etc/config/.glbcfg | grep ssnpskASCIIkey } > /tmp/ping_result ...
C#
UTF-8
2,586
3.296875
3
[]
no_license
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Poker; namespace TDD { [TestClass] public class CardTest { [TestMethod] public void TestingCardToStringShouldNotReturnNull() { var card = new Card(new CardFace(), new CardSuit()); Asser...
Python
UTF-8
642
4.09375
4
[]
no_license
# # Lendo arquivos com funções do Python # def leituraArquivo(): arquivo = open("NovoArquivo.txt", "r") #R significa LER/read arquivo. if(arquivo.mode == "r"): conteudo = arquivo.read() #Méotod read lê todo o conteudo do arquivo e atribui a variavel conteudo. print(conteudo) arquivo.close() #leituraArq...
Java
UTF-8
1,607
2.421875
2
[]
no_license
package com.example.dangineering.myapplication.presentation.adapter; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.dangineering.myapplication.R; import com.example.dangineering.myapplication.presentation.r...
C
UTF-8
921
2.90625
3
[]
no_license
/* ** hs_new_int.c for in /home/antoine ** ** Made by antoine ** Login <antoine@epitech.net> ** ** Started on Sat Apr 2 10:50:48 2016 antoine ** Last update Sat Apr 2 10:50:48 2016 antoine */ #include "../include/egc.h" t_hs hs_new_from_int(long n) { return (hs_new_from_int_base(n, 10)); } t_hs hs_new_...
Markdown
UTF-8
1,010
3.625
4
[ "MIT" ]
permissive
## 题目 **309. 最佳买卖股票时机含冷冻期** >中等 https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/ ## 解法:动态规划 ### 思路 每次 sell卖出 之后要等一天才能继续交易(跟122的动态规划解法类似) 状态转移方程: `dp[i][0] = max(dp[i-1][0], dp[i-1][1] + prices[i])` `dp[i][1] = max(dp[i-1][1], dp[i-2][0] - prices[i])` 第 i 天选择买入的时候,要从 i-2 的状态转移,而不是 i-1 ...
Java
UTF-8
1,028
2.546875
3
[]
no_license
package com.divergentsl.cmsjspservlet.service; import java.util.List; import com.divergentsl.cmsjspservlet.dao.PatientDao; import com.divergentsl.cmsjspservlet.dao.PatientDaoImpl; import com.divergentsl.cmsjspservlet.entity.Patient; public class PatientServiceImpl implements PatientService { private PatientDao pat...
Python
UTF-8
10,705
2.953125
3
[]
no_license
import numpy as np from math import atan2, pi, sqrt from matplotlib import patches from bisect import bisect_left def roundIfClose(r): n = round(r) if abs(r-n) < 0.0001: return n return r def splitIntoPolygonAndArcs(points, center, radiusSq): """ Breaks the circle down into ar...
C#
UTF-8
2,639
2.578125
3
[ "MIT" ]
permissive
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using ATM.Classes.Boundary; using NSubstitute; using NUnit.Framework; using NUnit.Framework.Internal; namespace ATM.Integration.Test { [TestFixture] public class StepOne { ...
C
UTF-8
458
2.703125
3
[]
no_license
#include <avr/io.h> #include <util/delay.h> #define LED PC4 #define LED_PORT PORTC #define LED_DDR DDRC #define BV(x) (1 << x) #define setBit(P, B) P |= BV(B) #define clearBit(P, B) P &= ~BV(B) #define toggleBit(P, B) P ^= BV(B) int main() { setBit(LED_DDR, LED); ...
Java
UTF-8
3,067
3.578125
4
[]
no_license
package replit02_Statements; import java.util.Scanner; public class TipCalculator { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String isSplit = scan.next(); int numberOfPeople = scan.nextInt(); double checkAmount = scan.nextDouble(); ...
Markdown
UTF-8
1,454
3.453125
3
[]
no_license
import { Meta } from '@storybook/addon-docs'; <Meta title="Styling" /> # Styling ## BEM `.[block]__[element]--[modifier]` **Examples** ```css .leftright__grid {} .leftright__grid--reverse {} .leftright__container {} .leftright__container--rounded {} ``` ## SASS * To set a variable: `$self: &` * To target a variabl...
Ruby
UTF-8
1,975
2.765625
3
[ "MIT" ]
permissive
RSpec.describe Patterns::Service do after { Object.send(:remove_const, :DoSomething) if defined?(DoSomething) } describe '.call' do it 'returns instance of service object' do DoSomething = Class.new(Patterns::Service) do def call; end end expect(DoSomething.call).to be_kind_of(DoSome...
Python
UTF-8
1,682
3.4375
3
[]
no_license
#!/usr/bin/env python class Solution(object): debug = True def mySqrt(self, x): """ :type x: int :rtype: int """ #x> root^2 sq = x upper_bound = sq/4+1 lower_bound = 0 root = (upper_bound+1)/2 self.prt("x %d, root %d, upper %d", (x,...
TypeScript
UTF-8
4,328
3.359375
3
[]
no_license
import { CoreValue } from "@shared/models/CoreValueTypes"; import CoreValuesQuestion from "@shared/models/CoreValuesQuestion"; import { QuestionType } from "@shared/models/Questions"; export interface ResponseValidation { isValid: boolean, message?: string, } export default class CoreValuesQuestionResponse { ...
Markdown
UTF-8
683
2.625
3
[]
no_license
# Linux Command Cheat Sheet Will be appended to as more useful commands come up. If in doubt, just use ```man``` and the command name to bring up the documentation ```cp``` - copy ```rm``` - remove ```cd``` - change directory ```echo``` - print equivalent ```cat``` - concatenate. can also be used to read a file...
Shell
UTF-8
4,078
2.828125
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh # First boot scripts # Early (before network) printf '%s\n' \ '#!/usr/bin/env bash' \ 'set -euxo pipefail' \ "export PATH='/usr/bin:/usr/sbin:/bi...
C++
UTF-8
565
3.1875
3
[]
no_license
#include <fstream> using namespace std; ifstream fin("numere18.in"); ofstream fout("numere18.out"); int main() { int C, n; fin >> C >> n; if (C == 1) { int t1 = (n - 1) * n / 2 + 1; int sum = 0; for (int i = 0; i < n; i++) { sum += t1; t1++; ...
Java
UTF-8
443
2.890625
3
[]
no_license
package ua.artcode.week4.day1; import java.util.Date; /** * Created by admin on 01.11.2014. */ public class TestEquals { public static void main(String[] args) { Date d = new Date(); Airplane a1 = new Airplane(123,"An", 300000, d); Airplane a2 = new Airplane(123,"An", 300000, d); ...
PHP
UTF-8
3,351
3.28125
3
[]
no_license
<?php // Session session_start(); // Variables $stitle = 'Brandon Nguyen - CTS2857C'; $ptitle = 'Assignment 7'; $header = 'CTS2857C'; $footer = '2016 &copy; Brandon Nguyen'; // Object Vehicle with four properties class Vehicle { // Properties private $Type, $Engine, $Seat, $Direction; // Construc...
JavaScript
UTF-8
5,371
2.828125
3
[ "MIT" ]
permissive
/* eslint-env omega/api */ const ONLY_ONE_SESSION_PER_USER = process.env.ONLY_ONE_SESSION_PER_USER==='true'; //***************************** // API Functions // /** * @apiDefineGroup (Account) /api/account * Functionality to log a user in and out, find out information about the logged in user, * their acco...
Shell
UTF-8
1,085
2.9375
3
[]
no_license
#TCGA.TRIMER.ASSIGN.sh #123014 #$@ = TCGA.maf, file.out, fasta.file, phastcon.file #fasta.file as in human_g1k_v37.fasta #phastcon.file as in 112714.CHRM.FILTERED.EXONS.100 ########Pre-process TCGA.maf############### Rscript TCGA.PRE.PROCESS.R $1 printf "\n" #######Assign trimers to each position##### echo "Assigning...
PHP
UTF-8
787
2.84375
3
[]
no_license
<?php namespace Micro\Form\Element; use Micro\Form\Element; class Datepicker extends Element { protected $format = 'Y-m-d'; public function render() { $tmp = ''; $name = $this->getFullyName(); $value = ''; try { if ($this->value) { $date = ...
Python
UTF-8
348
4.5
4
[]
no_license
# User Input num = float(input("Enter a positive number (negative to quit): ")) # Initialize Total total = 0.0 # Loops through number until a negative number is entered. while num > 0: total = num + total num = float(input("Enter a positive number (negative to quit): ")) # Print answer. print("To...
Java
UTF-8
1,026
2.375
2
[]
no_license
package edu.cmu.cs.crystal.tac; import edu.cmu.cs.crystal.Crystal; import edu.cmu.cs.crystal.flow.LatticeElement; import edu.cmu.cs.crystal.tac.eclipse.CompilationUnitTACs; /** * This class implements a standard flow analysis over 3-address code instructions ( {@link TACInstruction}). Implement {@link ITACTransfe...
Markdown
UTF-8
8,074
2.796875
3
[ "MIT" ]
permissive
<p align="center"> <a href="https://github.com/zerostwo/sicauer" rel="nofollow"> <img src="https://zzmath.top/static/favicon.ico" alt="CodyHouse logo" width="80" height="80" data-canonical-src="https://zerostwo.github.io/favicon.png" style="max-width:100%;"> </a> </p> 基于Python的Web应用开发,冲鸭:grin:! --- [![](https:...
C
UTF-8
2,785
2.546875
3
[]
no_license
/* ================ Affichage.h ============================================ ** ELE-400 MÉTHODOLOGIE DE DESIGN EN GÉNIE ÉLECTRIQUE ** HIVER 2015 ** Ecole de Technologie Supérieure ** ======================================================================== TEAM: PopeyeFcuSolutions ** ========================...
C++
UTF-8
2,113
2.71875
3
[]
no_license
/* DueTimer.h - DueTimer header file, definition of methods and attributes... For instructions, go to https://github.com/ivanseidel/DueTimer Created by Ivan Seidel Gomes, March, 2013. Modified by Philipp Klaus, June 2013. Released into the public domain. */ #ifdef __arm__ #ifndef DueTimer_h #define DueTimer...
Swift
UTF-8
1,331
2.796875
3
[ "MIT" ]
permissive
public struct Task: TaskRepresentable, Hashable { var identifier: String var name: String var initialDelay: TimeInterval var backoffPolicyDelay: TimeInterval var tag: String? var existingWorkPolicy: ExistingWorkPolicy? var constraints: [Constraints]? var backoffPolicy: BackoffPolicy? ...
Java
UTF-8
3,641
2.015625
2
[]
no_license
package com.twanl.realtimesupport.events; import com.twanl.realtimesupport.RealTimeSupport; import com.twanl.realtimesupport.lib.Lib; import com.twanl.realtimesupport.menu.Tickets_UI; import com.twanl.realtimesupport.util.Strings; import com.twanl.realtimesupport.util.UpdateChecker; import org.bukkit.entity.Player; im...
C++
UTF-8
725
3.421875
3
[]
no_license
#include <iostream> using namespace std; int n, t, f, x; int neededTime, remainingTime; void input(){ cin >> n >> t >> f >> x; } void init(){ t -= 1; n -= f; neededTime = n*x; remainingTime = t*60; } void reviewStrategy(){ if(neededTime == remainingTime) { cout << "EXACT!" << en...
C++
UTF-8
1,030
3.578125
4
[]
no_license
/* Problem: Permutations II Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2], [1,2,1], and [2,1,1]. Solution: Permutations Time Complexity: O(n*2^n) Space Complexity: O(2^n) where n is the numb...
TypeScript
UTF-8
845
3.3125
3
[ "MIT" ]
permissive
function formatDate(date: Date | undefined): string { if (date === undefined) { return ''; } const months = ["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"]; if (date === null) { return ''; } let strings = date.toString().substring(0, 10).sp...
Java
UTF-8
935
3.25
3
[]
no_license
package com.practice.drishticon.narvar; public class MaximumSumSubArray { public static void main(String args[]){ int[] arr = new int[]{-5,-4,-2,-9,-3,-4}; int i=0,j=1,sum=arr[i],actualSum=Integer.MIN_VALUE; while(i<arr.length-1){ if(j==arr.length){ i++; j=i+1; sum=arr[i]; }else{ ...
Rust
UTF-8
5,332
2.53125
3
[ "MIT" ]
permissive
use crate::audio_settings::AudioSettings; use rodio::{Decoder, OutputStream, Sink, Source, DeviceTrait}; use std::fs::File; use std::io::BufReader; use std::sync::mpsc::{Receiver, Sender}; use std::sync::{mpsc, Arc, Mutex}; use std::thread; use std::time::{Duration, SystemTime}; use rodio::cpal::traits::HostTrait; #...
Markdown
UTF-8
11,753
3.09375
3
[ "Apache-2.0" ]
permissive
--- title: Точечная нотация last_updated: Oct 8, 2019 sidebar: mydoc_sidebar permalink: dot-notation.html folder: like-developer --- В предыдущем разделе [Доступ и вывод на страницу определенного значения JSON](access-print-value.html) мы получили доступ и вывели на страницу определенное значение из ответа JSON. Здесь...
Java
UTF-8
412
2.046875
2
[]
no_license
package com.cityexplore.ciplore.repositories; import com.cityexplore.ciplore.domain.Property; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @Repository public interface PropertyRepository extends CrudRepository<Property, Long> { Property findByProper...
Python
UTF-8
8,360
3.703125
4
[]
no_license
from random import randint ##### # Instructions and Keywords Displays ##### def display_instructions(): Instructions = """ This is a program to aid in the tracking of initiative in Pathfinder. \n You will be asked for the number of combatants. This is all Players and NPCs, at the start of ...
C#
UTF-8
3,782
2.515625
3
[]
no_license
/* GameManager.cs * By: Liam Binford * Date: 2/4/20 * Description: This script weaves together many elements and scripts of the game */ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class GameManager : MonoBehaviour { //declare variab...
Java
UTF-8
25,011
1.5625
2
[ "MIT" ]
permissive
package com.half.wowsca.ui; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import androidx.appcompat.app.AlertDialog; import androidx.appcom...
Java
UTF-8
550
1.976563
2
[]
no_license
package com.nerv.sai.modelo.local.administracion; import com.nerv.sai.modelo.entidad.Perfil; import java.util.List; import javax.ejb.Local; /** * * @author santosdx */ @Local public interface PerfilFacadeLocal { void create(Perfil perfil); public Integer createAndGetKey(Perfil perfil); void edit...
C++
UTF-8
1,142
2.5625
3
[]
no_license
#include "PCH.h" #include "ui/UITableView.h" namespace cs { UITableView::UITableView(const std::string& name, UITableViewInitFunc& func) : UIElement(name), initFunc(func) { this->setVertexColor(ColorB::Clear); } void UITableView::init() { this->children.clear(); if (this->initFunc) this->initFunc(t...
Python
UTF-8
2,732
2.828125
3
[]
no_license
import numpy as np import sys ####Read train data#### f= open(sys.argv[1]) data = np.loadtxt(f) train = data[:,1:] trainlabels = data[:,0] onearray = np.ones((train.shape[0], 1)) train = np.append(train, onearray, axis = 1) ##read test data## f=open(sys.argv[2]) data = np.loadtxt(f) test = data[:,1:] testlabels = dat...
Markdown
UTF-8
1,102
3.40625
3
[]
no_license
# `12` Implementing the function Now that the test is ready, we have to implement the function that is going to comply with that test. The function has to be implemented in app.js because it is a part of our application, not of our tests. Place the following code at the **beginning** of your app.js: ```js // decla...
Java
UTF-8
597
2.0625
2
[]
no_license
package com.ps.dsconfig.runner; import com.ps.dsconfig.config.ConfigurationHolder; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public class ConfigRunner implements CommandLineRunner { ...
Markdown
UTF-8
5,102
2.71875
3
[ "Apache-2.0" ]
permissive
## Docker Registry UI [![Go Report Card](https://goreportcard.com/badge/github.com/quiq/docker-registry-ui)](https://goreportcard.com/report/github.com/quiq/docker-registry-ui) ### Overview * Web UI for Docker Registry * Browse namespaces, repositories and tags * Display image details by layers * Display sub-images ...
Java
UTF-8
567
2.046875
2
[]
no_license
/** * */ package com.ziroom.mytesla.system.datasource; import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; /** * 配置读取数据库的数据源 * @author liuys * 2015年8月11日 */ public class DynamicDataSource extends AbstractRoutingDataSource { /* (non-Javadoc) * @see org.springframework.jdbc.datasourc...
Rust
UTF-8
11,782
3.8125
4
[]
no_license
#![no_std] extern crate void; use error::{ErrorKind, Error}; pub mod error; pub type Result<T> = core::result::Result<T, Error>; pub trait Read { /// Pull some bytes from this source into the specified buffer, returning /// how many bytes were read. /// /// This function does not provide any guarantee...
JavaScript
UTF-8
1,075
2.703125
3
[]
no_license
import React, { useState, useEffect } from 'react' import Axios from 'axios' const Terceiro = () => { const [repos, setRepos] = useState([]) useEffect(()=> { const fetchData = async () =>{ const response = await Axios.get('https://api.github.com/users/simaraconceicao/repos') co...
Markdown
UTF-8
4,286
2.546875
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: "fixed ステートメント (C# リファレンス)" ms.date: 07/20/2015 ms.prod: .net ms.technology: devlang-csharp ms.topic: article f1_keywords: - fixed_CSharpKeyword - fixed helpviewer_keywords: fixed keyword [C#] ms.assetid: 7ea6db08-ad49-4a7a-b934-d8c4acad1c3a caps.latest.revision: "24" author: BillWagner ms.author...
Markdown
UTF-8
2,169
2.703125
3
[]
no_license
--- layout: content permalink: /add_repository --- # **Organization Repository Application** {:style="text-align: center;"} --- ## **Application Process** Applying to add your Repository to the Organization is easy: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**1.** Input your name &nbsp;&nbsp;&...
Markdown
UTF-8
4,284
2.546875
3
[]
no_license
--- copyright: years: 2014, 2019 lastupdated: "2018-05-11" keywords: subcollection: Db2onCloud --- <!-- Attribute definitions --> {:external: target="_blank" .external} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:tip: .tip} {:important: .important} {:note: .note} {:deprecated: .depre...
C++
UTF-8
2,972
3.015625
3
[]
no_license
// =============== BEGIN ASSESSMENT HEADER ================ /// @file assn6/main.cpp /// @brief Assignment/Lab 8 for CS 12 Fall, 2014 /// /// @author Jorge Gonzalez [jgonz096@gmail.com] /// @date 11/22/14 /// /// @par Enrollment Notes /// Lecture Section: 001 /// @par /// Lab Section: 022 /// @par /// TA...
Markdown
UTF-8
1,210
2.515625
3
[ "MIT" ]
permissive
# band-concerts-theme WordPress theme built to display data entered using the [band-concerts](https://github.com/freaktechnik/band-concerts) plugin. The plugin is required for the theme to work properly. ## Features - Dynamic view of next events on the start site - Responsive design (big point these days) - Three wi...
Java
UTF-8
10,534
2.0625
2
[]
no_license
/* * Created by DSL Platform * v1.7.6207.41740 */ package Inheritance; public class Employee implements java.lang.Cloneable, java.io.Serializable, org.revenj.patterns.AggregateRoot { public Employee() { this.ID = 0; this.StartedWorking = java.time.LocalDate.now(); this.URI = jav...
Python
UTF-8
2,240
3.5
4
[ "BSD-2-Clause" ]
permissive
# coding: utf8 """ Команда Brainfuck Описание команды > перейти к следующей ячейке < перейти к предыдущей ячейке + увеличить значение в текущей ячейке на 1 (+) - уменьшить значение в текущей ячейке на 1 п напечатать значение из текущей ячейки (.) , ввести извне значение и сох...
JavaScript
UTF-8
3,985
2.546875
3
[ "MIT" ]
permissive
'use strict'; /** * Action: StageRemove * - Removes a stage. * * Options: * - stage (String) the name of the new stage */ module.exports = function(S) { const path = require('path'), SUtils = S.utils, SError = require(S.getServerlessPath('Error')), SCli = require(S.getS...
Python
UTF-8
266
3.5625
4
[]
no_license
#!/usr/bin/python while True: try: x = int(input(" 请输入 一个数字:")) except ValueError as err: print("Oop ,输入的{0}不是一个数字,Try agin".format(err)) else: print("您的输入是{0}", str(x)) break
Java
UTF-8
2,901
2.140625
2
[ "Apache-2.0" ]
permissive
package com.commercetools.pspadapter.tenant; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import org.springframework.validation.annotation.Validated; import javax.validation.Valid; import javax.validation.constraints.NotNull; ...