blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b166e8296305e864603f028ebf63c6bda478b8d | 29afbde1e2d5497f5ab023a99ea37b0c59e6bb09 | /account.py | 2d8fbecf1c7a0c04c45cc2f5973564350dab040d | [
"MIT"
] | permissive | kahenya-anita/Password-Manager | 5358fc048ba90d0827e4ff8c7f54919107c5aa95 | b3e7683e61e55574b846dfe49bf5d4016085261c | refs/heads/master | 2022-12-15T08:04:08.350058 | 2020-09-08T19:42:48 | 2020-09-08T19:42:48 | 293,597,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | class Account:
"""
Class that generates new instances of account credentials to be stored.
"""
def __init__(self, acc_ty, acc_uname, acc_pass,acc_cpass):
self.acc_ty = acc_ty
self.acc_uname = acc_uname
self.acc_pass = acc_pass
self.acc_cpass = acc_cpass | [
"anitakahenya1@gmail.com"
] | anitakahenya1@gmail.com |
190a34c32f2143584b72b2952a836e21c114f6f4 | 77f653c518f7aa5b629c0be0f04fed7bb621dab8 | /mpfmc/widgets/ellipse.py | ace625aeec2c22cbc24f035af05fda1c2450445c | [
"MIT"
] | permissive | vgrillot/mpf-mc | a0ac4f718d59e16cd4e879e55b90b2ab969ebce0 | 5fca7c9996bd3d5902efb5e8d0dfcc342ebb9591 | refs/heads/dev | 2020-06-28T06:05:28.195069 | 2016-12-09T19:34:13 | 2016-12-09T19:34:13 | 74,505,476 | 0 | 0 | null | 2016-11-22T19:19:44 | 2016-11-22T19:19:44 | null | UTF-8 | Python | false | false | 1,277 | py | from kivy.graphics.vertex_instructions import Ellipse as KivyEllipse
from kivy.graphics.context_instructions import Color
from kivy.uix.widget import Widget
from mpfmc.core.utils import set_position
from mpfmc.uix.widget import MpfWidget
class Ellipse(MpfWidget, Widget):
widget_type_name = 'Ellipse'
def on... | [
"brian@missionpinball.com"
] | brian@missionpinball.com |
0c7eec0547235e14bf55f83a4b075fc350d17c43 | 7d90c98d26983536a95d8e0229e7ecca72cd6d23 | /QT/pyqt5test.py | 745289d995484ac6056f4c95179b1580ad3bd0a6 | [
"MIT"
] | permissive | ValRCS/RCS_Python_11 | 105f9f83eff7400331e03ccff91ce9f40ae5fa8d | 157c8e08aaf9849341cadb50077fe65dead536fa | refs/heads/master | 2020-09-24T05:44:01.495126 | 2019-12-23T13:05:28 | 2019-12-23T13:05:28 | 225,677,747 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from PyQt5.QtWidgets import QApplication, QLabel
if __name__ == "__main__":
app = QApplication([])
label = QLabel('Hello World!')
label.show()
app.exec_()
| [
"valdis.s.coding@gmail.com"
] | valdis.s.coding@gmail.com |
5b69b00e6d7c9733829ec849a35a6ff45307cd7e | 4f0192ccd0b29b4b28428daa9813010cd70f49a3 | /news/migrations/0012_auto_20140519_1403.py | e932b1cdda0cd08cc1a9fb78ce15718c48f0dfde | [] | no_license | nbedi/appletini | 03c2a7286cb5775a63e17c41c3ccd2af48f0b90a | dd1f34f0fa3948fa808979e35844b6d58d46c0ea | refs/heads/master | 2016-08-05T00:08:35.461725 | 2015-03-08T06:02:56 | 2015-03-08T06:02:56 | 31,575,783 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('news', '0011_auto_20140519_1251'),
]
operations = [
migrations.AddField(
model_name='article',
name='altern... | [
"omniaura5@gmail.com"
] | omniaura5@gmail.com |
2a1727e32bb79dd70cae15805943ce49d0ace23b | cfb705f3727ff2f53288269ae37bd2cb6687951d | /share/scripts/make_cutflow_ttbar_sfdf_py | 709f0d0e2f3d43e9e7967b5d302b58143b14d30b | [] | no_license | alessio94/di-Higgs-analysis | 395934df01190998057f7c81775209c5d32f906e | 79c793cc819df7c8511c45f3efe6bdd10fd966bf | refs/heads/master | 2023-02-17T05:44:59.997960 | 2023-02-13T18:02:42 | 2023-02-13T18:02:42 | 224,252,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,635 | #!/usr/bin/env python
from __future__ import division, print_function # division with two integers gives float, print is a function
import argparse
import logging
import math
import os
import sys
from CAFbbll.latexfile import LaTeXFile
from CAFbbll.pdg_rounding import pdgRound
def asimov_sig(s, b, sigma_b):
s... | [
"alessiopizzini@gmail.com"
] | alessiopizzini@gmail.com | |
54d5972dcbd6878409598f53cf6a966affaf568b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /H2EyqacEnijCozCWs_17.py | a6e212b35e1bfb6adb6b318d2c03d7bf3872cef5 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | """
Write a function that returns the first `n` vowels of a string.
### Examples
first_n_vowels("sharpening skills", 3) ➞ "aei"
first_n_vowels("major league", 5) ➞ "aoeau"
first_n_vowels("hostess", 5) ➞ "invalid"
### Notes
* Return `"invalid"` if the `n` exceeds the number of vowels in a ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
22551b5c6e6c8c73a701c71b06568a67ec55f8be | d1aa9dc649209d2172c01f19f5121261fb5d6e9e | /Spider/Scrapy_project/spider/homecrawl/homecrawl/items.py | c13b8256669e32032fa0a148c4980f26f615ae7b | [] | no_license | Alexanderklau/Amusing_python | 484e97806bc45ecbe0220f899723fa091a0f088b | 9ce288eac7eeabb0e21f62936b6eb5ac2a0c934e | refs/heads/master | 2021-12-27T03:33:37.535288 | 2021-12-20T08:00:11 | 2021-12-20T08:00:11 | 107,672,208 | 45 | 11 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class HomecrawlItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name = scrapy.Field()
type = scr... | [
"429095816@qq.com"
] | 429095816@qq.com |
e9edd4ed3e5fc0dc447e24161812cd6c6b003ca2 | 88a5fdb313f13ab9bda0271244dc62ab472d6133 | /app/email.py | 0695d9c0adcf336c6c92285413b1a0a4106bdec7 | [] | no_license | TonyKioko/Watchlist | 2c588bd4bc2e82d012fd856deb17e2c09deb8d0a | 69989833744011a3b78332d115bc0d26dd5c7059 | refs/heads/master | 2020-03-27T08:57:04.604507 | 2018-09-05T12:02:08 | 2018-09-05T12:02:08 | 146,300,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from flask_mail import Message
from flask import render_template
from . import mail
def mail_message(subject,template,to,**kwargs):
sender_email = 'tonykioko384@gmail.com'
email = Message(subject, sender=sender_email, recipients=[to])
email.body= render_template(template + ".txt",**kwargs)
email.html ... | [
"tonykioko384@gmail.com"
] | tonykioko384@gmail.com |
7aeb3457c7ada2b00c7c36c1b7affd0ae9db9ec3 | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/models_20201030114245.py | 38e8ccda4729de5cad118fc6b00fd21e706dde97 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django.db import models
from django_extensions.db.fields import AutoSlugField
from modelcluster.models import ClusterableModel
# Create your models here.
class Menu(ClusterableModel):
title = models.CharField(max_length=100)
slug = AutoSlugField(
populate_from='title',
editable=True,... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
699c4ebe2c41aced27d87044a6a04d986fe3e1d5 | f0e190ae8eff009ca2243551f06c84b56ab27b46 | /q31.py | 6daf6aea0248fcdb160d465e69063cf71f8c0dc4 | [] | no_license | VinayHaryan/Array | 7d042c57619cc1a89bef0eff1a019d66b5a6203c | c19d36054b5d0b39a29673966e14a3b6329da9da | refs/heads/main | 2023-05-29T23:41:07.612633 | 2021-06-17T08:38:17 | 2021-06-17T08:38:17 | 377,736,580 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | '''
LONGEST CONSECUTIVE SUBSEQUENCE
given an array of integers. find the length of the longest sub-sequence
such that elements in the subsequence are consecutive integers, the
consecutive numbers can be in any order
Input: arr[] = {1, 9, 3, 10, 4, 20, 2}
Output: 4
Explanation:
The subsequence 1, 3, 4, 2 i... | [
"noreply@github.com"
] | VinayHaryan.noreply@github.com |
127a37e78d7ba0ad78f84b45cbc5cb162a773b88 | 3d4cd68400eb5429282b23bf6a1b7226851b731a | /spddo/subs/actions/filter_services.py | d549120d129c7de4b4c827552f0a17d3460504ff | [] | no_license | blueshed/spddo-chat | 2dee16478e9a30ed0196d76d450e0772147aa208 | d7ba492162ba95c0d2b8ed78370366eb96e39c3a | refs/heads/master | 2021-01-17T11:29:48.959086 | 2016-05-21T18:33:08 | 2016-05-21T18:33:08 | 43,005,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from spddo.subs import model
from blueshed.micro.orm.orm_utils import serialize
def filter_services(context: 'micro_context', term='', offset=0, limit=10, id=None):
with context.session as session:
if id is not None:
service = session.query(model.Service).get(id)
result = serialize... | [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
6def215cabd9d1362eff7a7e4ade0e64f32a3bc7 | 83e1c4c893a901ee0b0872e867b32bddca4822e4 | /backend/apps/about/migrations/0001_initial.py | d2bf1333854490b65d8a96abec2fae0fe93caa4a | [] | no_license | alexmon1989/mit | 56f0d2d6f6386c6f28b4c02b979174281e60de3b | 730f67978c8dd204041334bb9595e10151f24ff7 | refs/heads/master | 2021-01-24T12:42:02.553501 | 2018-04-24T08:32:04 | 2018-04-24T08:32:04 | 123,147,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | # Generated by Django 2.0.3 on 2018-03-10 10:11
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('theater', '0003_personplayrole_text'),
]
operations = [
migrations.CreateModel(
... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
a963a0f53ac344e26fd1e3e90c2515a0fadc793b | 98067be8930cf795da7b35275cdf86787656cca5 | /src/main_ae.py | 3b9f0f68f20d158bb01b38bf8b8ebfbab0728cc2 | [] | no_license | akshay-sharma1995/let_it_flow | e9821b93a9f29f32267cd35a5491cba8ecca65e7 | 7ef2f9151eef9d940a332f07be79d8f5db973a34 | refs/heads/master | 2022-11-19T00:46:06.283215 | 2020-07-16T22:40:21 | 2020-07-16T22:40:21 | 246,896,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,407 | py | import os, sys
import pdb
import argparse
import torch
from losses import *
from generator import *
from discriminator import *
from autoencoder import *
import pdb
from utils import *
from torch.utils.data import dataloader
from torchvision.transforms import transforms
from datetime import datetime
from DataLoader imp... | [
"akshay.iitkbkn@gmail.com"
] | akshay.iitkbkn@gmail.com |
9dbbdca06d2e8016d9b6d3e8fcf3843b49fabe6f | 14421a12c4e80395567e676394d369fd9619bd32 | /Scripts/PythonBeginnerLvl/132_lotto.py | 2eb3a5b4cb6d232f348a71c0726c3269ef0cdd9d | [] | no_license | jawor92/Python-Udemy-Mobilo | 7b331e8197233c3116e43e0b3c1110b9b878762e | 8098508835121a1536c2753bc4eedbf17163c93d | refs/heads/master | 2020-12-09T21:39:09.366604 | 2020-01-12T19:31:09 | 2020-01-12T19:31:09 | 233,423,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 19 21:32:57 2019
@author: Mateusz.Jaworski
"""
import random
numbers=[]
while len(numbers) < 6:
number = random.randint(1,49)
if number in numbers:
print('Eliminated:', number)
continue
numbers.append(number)
print('Lotto... | [
"jaworski92@gmail.com"
] | jaworski92@gmail.com |
4c216ad426aa578c6e09f2262f8cb8977eb7f22a | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/app/tests/wildfire_one/test_util.py | 0dd6b744cab86e42b615338a5f73c75c64d9cd7d | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 1,490 | py | from typing import Optional
from app.wildfire_one.util import is_station_valid
def build_station(status: str, lat: Optional[int], long: Optional[int]):
return {
"latitude": lat,
"longitude": long,
"stationStatus": {
"id": status,
}
}
def test_valid_active_station(... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
b3efb930b8b13d207775632b9a2f910da59ca59d | a14607ea73a7171844cd4df029b28407bd5d2062 | /oi_old.py | 66d94822dd2ac6e47d7fee825eeb7bc635876da7 | [] | no_license | CtrlZ-FRC4096/Robot-2019-WIP | a30bde9d56fecfedf4c1e09349cd3ed9ff392b99 | 84e84245909179365b4f4a7fea2bb55cbdb28068 | refs/heads/master | 2020-04-26T18:13:36.196445 | 2019-03-04T22:46:11 | 2019-03-04T22:46:11 | 173,738,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,323 | py | """
Ctrl-Z FRC Team 4096
FIRST Robotics Competition 2019
Code for robot "----"
contact@team4096.org
"""
import wpilib
### IMPORTS ###
# Subsystems
# Commands
import commands.drivetrain
import commands.hatch
import commands.cargo
import commands.climber
# Controls
from customcontroller.xbox_command_controller impo... | [
"adam.pletcher@gmail.com"
] | adam.pletcher@gmail.com |
085ce0c130edc6df02620b735a562abb1e726c0e | 2a0cb97bf3fd843c1f77d0632088b0e4aad3e3e4 | /hack/create_dependabot.py | a83f04de5bfd735dd9d957fcc6fec56208b397a1 | [
"Apache-2.0"
] | permissive | kubeflow/arena | ad01e24cc29d8408f322070798adeb880d09d89b | 46093aec39cf20122dfa53a47d62c02338cd9d7d | refs/heads/master | 2023-09-01T03:57:30.417791 | 2023-08-30T03:53:09 | 2023-08-30T03:53:09 | 142,853,225 | 587 | 173 | Apache-2.0 | 2023-09-07T12:44:51 | 2018-07-30T09:19:04 | Go | UTF-8 | Python | false | false | 3,559 | py | import yaml
import collections
from pathlib import Path
dependabot = {}
dependabot['version'] = 2
dependabot['updates'] = []
ignored_folders = ['node_modules', 'dist', '.git', 'deprecated']
def get_owners(path):
while not Path(path/'OWNERS').is_file():
path = path.parent.absolute()
with open(path/'OWN... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
552be2ba9cc6e91a3ce988fb05e190392dbc92ea | 396d4d9b26c14803ab7c9e1e514cc23555b31023 | /restframeworkproject/app01/migrations/0007_auto_20191129_2246.py | cc9b6c2d1dc364fc5f39ab61bcec24faf59a4b91 | [] | no_license | mbg17/superlist | 85c5085c94ec22429cb66460701ed335337595c2 | c8375fdefba19952dbaf1a119260ba207d3f3ce3 | refs/heads/master | 2022-12-17T19:42:54.010514 | 2020-01-17T04:49:32 | 2020-01-17T04:49:32 | 163,076,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.2 on 2019-11-29 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0006_auto_20191129_2240'),
]
operations = [
migrations.AlterField(
model_name='author',
name='b... | [
"18917963668@163.com"
] | 18917963668@163.com |
86a84b441cd47c458343d62cf5c4d40319a0720c | 79d1c0e68bbacdcf85026565291b587fa8b42b25 | /tramp/tests/test_channels.py | c05d4f7fb31a7daa1f7b6050b717add88ddf5f9b | [
"MIT"
] | permissive | sphinxteam/tramp | 2a041c6f0b1b2e290abea8e2013869459fca88a2 | 0a9aa60e01fbe62846f869be4c76d47ac9c2274e | refs/heads/master | 2023-06-22T07:25:05.947412 | 2023-02-14T14:02:33 | 2023-02-14T14:02:33 | 161,622,843 | 35 | 7 | null | 2020-05-08T10:53:16 | 2018-12-13T10:30:03 | Python | UTF-8 | Python | false | false | 5,122 | py | import unittest
from tramp.channels import (
AbsChannel, SgnChannel, ReluChannel, LeakyReluChannel, HardTanhChannel
)
import numpy as np
def empirical_second_moment(tau_z, channel):
"""
Estimate second_moment by sampling.
"""
noise = np.random.standard_normal(size=1000 * 1000)
Z = np.sqrt(tau_... | [
"antoine.baker59@gmail.com"
] | antoine.baker59@gmail.com |
19965bbaff8922af4fc7eedb039711e9ee06f657 | 7ec4b82f5ccb57e075a4262ef598308b260bbdf2 | /Selection Sort.py | f067b4df60b4950f3a6ee31723f6d7ff500a560d | [] | no_license | avigupta10/DataStructures | 86f56b2afdec2a73ef332bad53675d91b10c34f7 | 1535169d22b7a2250404af00ab77c2195a68bf7d | refs/heads/master | 2023-08-15T17:46:49.678967 | 2021-10-14T15:12:36 | 2021-10-14T15:12:36 | 377,767,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | def selectionSort(arr: list):
for i in range(len(arr)):
minimum = i
for j in range(i, len(arr)):
if arr[j] < arr[minimum]:
minimum = j
arr[minimum], arr[i] = arr[i], arr[minimum]
return arr
print(selectionSort([9, 1, 5, 3, 7, 4, 2, 8, 6]))
| [
"41137189+Avihwr@users.noreply.github.com"
] | 41137189+Avihwr@users.noreply.github.com |
3ee219e3e35bd9d585a8c1495833611b9eafd9a5 | 1c5181d849085f3c56fccd583dce08a476d48575 | /sa/profiles/Huawei/VRP3/get_inventory.py | 95d0180006127c5bbf72610350520aeb1e275fcc | [
"BSD-3-Clause"
] | permissive | fantmas2/noc | fec42b276473f8f1e5b7bd06abd4a7eb31440e7b | d43c14f02266b5a4e1fca2db3296cef612d63374 | refs/heads/microservices | 2021-08-29T17:03:34.512406 | 2017-12-11T06:48:00 | 2017-12-11T06:48:00 | 113,280,875 | 0 | 0 | null | 2017-12-11T06:48:01 | 2017-12-06T06:59:51 | Python | UTF-8 | Python | false | false | 1,443 | py | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Huawei.VRP3.get_inventory
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ------------------------------------------------------... | [
"dmitryluhtionov@gmail.com"
] | dmitryluhtionov@gmail.com |
a7431e1568dbd214081220b5fde03ace42b7082d | 3bd0df7e73d7ed1ecb78da2929d59c5e09043379 | /hackerrank/contests/30_days_of_code/if-else.py | 48b4efe7a6dc26f51fc6e6870d0d3b2a0e06d232 | [
"MIT"
] | permissive | spradeepv/dive-into-python | 89fb33794494b0da0639636e4901a5a72dc9e9a2 | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | refs/heads/master | 2021-01-21T04:27:51.287637 | 2017-09-18T10:32:35 | 2017-09-18T10:32:35 | 40,643,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | """
Problem Statement
Welcome to Day 3! Check out a review of if-else statements here, or just
jump right into the problem.
Using "if-else" you can perform decision making in your code. See the
flowchart below (taken from wikipedia):
332px-If-Then-Else-diagram.svg.png
This problem will test your knowledge on "if-el... | [
"psathasi@brocade.com"
] | psathasi@brocade.com |
8a248525561c965b634a8856e7a16441fabd2cee | a622e8b295d799b7b9125e2b15243b8bdae1dc09 | /1909/190917/solving/solving.py | edc407a12d73614b62021edc50c69c0a73df8020 | [] | no_license | otterji/algorithms | 3a36c04bacc22c46f1ee220b3b129cda876db797 | ebd0ade0cd1de8e489d015aa0b2833afeab3898e | refs/heads/master | 2020-11-26T02:48:13.299848 | 2020-04-11T12:09:41 | 2020-04-11T12:09:41 | 228,942,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # 완전검색으로 푸는데 가지치기 할 수 있는지 찾아보기
def perm(k, temp=100):
global max
if k == n:
if temp > max:
max = temp
else:
for i in range(k, n):
arr[k], arr[i] = arr[i], arr[k]
if temp * data[k][arr[k]] > max: # 가지치기
perm(k+1, temp*data[k][arr[k]])
... | [
"rkdudwl@naver.com"
] | rkdudwl@naver.com |
dfce9bf5a2f9343eb7f629a71e32c8d6c5655d6d | 7b361fb51c83fb1988046b62d7a0af93b4bd8a30 | /fudge/gnd/productData/distributions/unspecified.py | c698cd8883664efb1ed76cf1fa9cb64727dda430 | [
"BSD-3-Clause"
] | permissive | paulromano/fudge | 162ab067bb1b1dd1329ca0923de944b5fcfb44a8 | 6348d506de8306138ca654aa66f4fb81b790e7da | refs/heads/master | 2020-04-10T14:57:42.138711 | 2016-05-13T02:07:05 | 2016-05-13T02:07:05 | 32,029,193 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,456 | py | # <<BEGIN-copyright>>
# Copyright (c) 2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
# Written by the LLNL Nuclear Data and Theory group
# (email: mattoon1@llnl.gov)
# LLNL-CODE-683960.
# All rights reserved.
#
# This file is part of the FUDGE package... | [
"paul.k.romano@gmail.com"
] | paul.k.romano@gmail.com |
31cd34d04b4cfd482913ed20fa62e1ed16380eff | 5905f7e26ed7db059fe88c2a3b56a0fd0f2a4cc3 | /setup.py | f9f29049c10b2767690201468447f2b967def6ea | [] | no_license | kumar303/mozpay-py | 3bdff9849b92fe264b3c766b95ea6cf3254437ee | 06fa505e7d06044cd3034643bfb92aa6dbc21df2 | refs/heads/master | 2021-01-15T19:44:49.890881 | 2013-03-07T07:00:17 | 2013-03-07T07:00:17 | 33,013,687 | 0 | 0 | null | 2015-03-27T23:23:20 | 2015-03-27T23:23:20 | Python | UTF-8 | Python | false | false | 713 | py | import os
from setuptools import setup, find_packages
setup(name='mozpay',
version='2.0.0',
description="Make web payments with Mozilla's navigator.mozPay().",
long_description='',
author='Kumar McMillan',
author_email='kumar.mcmillan@gmail.com',
license='MPL 2.0 (Mozilla Public L... | [
"kumar.mcmillan@gmail.com"
] | kumar.mcmillan@gmail.com |
c86afe1f859c9bb6f4da3e6f16a4f01ef4a33bf5 | 1a584b2de77ae88a92ac19e209961c83786c55a1 | /ogenie/models.py | 8ed4776d8663243fbf0ac0487aaef21b7926ca16 | [] | no_license | JarvisPandey/Django-rest-framework-implementation | 370eee60bcd08da237f61c78495452ae0a5ced52 | a2c822d64d4c3602385256527c5cc0c10993eba1 | refs/heads/master | 2021-04-20T04:05:13.630198 | 2020-03-24T08:38:32 | 2020-03-24T08:38:32 | 249,653,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.db import models
# Create your models here.
class query(models.Model):
quer=models.CharField(max_length=100)
def __str__(self):
return self.quer
| [
"you@example.com"
] | you@example.com |
ba9a1366c1cff54f3df3f575013c104e696df7e6 | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /tests/ea/fitness_normalizer/fixtures/multiply.py | eef13e4867eba7cf0bc3c06d62096b43f42058ec | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | import pytest
import stk
from ..case_data import CaseData
def _get_case_data_1() -> CaseData:
topology_graph = stk.polymer.Linear(
building_blocks=(
stk.BuildingBlock('BrCCBr', [stk.BromoFactory()]),
),
repeating_unit='A',
num_repeating_units=2,
)
return CaseDa... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
3a52c27b1f1236d27343a89b88dcbcab170a290e | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /simulation/statistics/continuous_statistic_tracker.py | 437dd46d81da07016d66798ae550c9209ba1a414 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import sims4.log
import statistics.base_statistic_tracker
logger = sims4.log.Logger('Statistic')
class ContinuousStatisticTracker(statistics.base_statistic_tracker.BaseStatisticTracker):
__qualname__ = 'ContinuousStatisticTracker'
def get_decay_time(self, stat_type, threshold):
stat = self.get_statist... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
4695d5e9848fbde6c5d03152a4faaecc60ce638d | e05e2d26e38ce80530e3458ce3c8e02f16e5cbe6 | /lineupSolver/lhs_utils.py | ebc56dbafb01fbb66ff087b4bebc10509363e83b | [] | no_license | jegutman/hearthstone_decks | 96acca7e040cb9b89253a867217655ce8cdf2756 | 95d4563c46618a9efccc10dbb34094258ec5bce7 | refs/heads/master | 2020-12-25T08:16:29.892068 | 2019-09-12T05:28:16 | 2019-09-12T05:28:16 | 102,289,609 | 3 | 0 | null | 2018-07-06T22:35:17 | 2017-09-03T19:40:44 | Python | UTF-8 | Python | false | false | 6,406 | py | from shared_utils import *
import nashpy
# some assumptions on formating
# whatever deck a player is forced to play should be listed first (for 3v2 and 2v2 scenarios, irrelevant otherwise)
# branching calcs
# 16 x ban phase
# assume order doesn't matter
# branch on both possible results
def win_rate(decks_a, decks_b,... | [
"jegutman@gmail.com"
] | jegutman@gmail.com |
c7d53e2657af2816302676cc5daed17a5a984180 | 9d64a438cdfe4f3feb54f2f0dc7431139c4b9fb9 | /rapid7_insightidr/unit_test/test_list_investigations.py | 05ad852c0e285ce7cf5feeaeefeb53e6183b7de2 | [
"MIT"
] | permissive | PhilippBehmer/insightconnect-plugins | 5ad86faaccc86f2f4ed98f7e5d518e74dddb7b91 | 9195ddffc575bbca758180473d2eb392e7db517c | refs/heads/master | 2021-07-25T02:13:08.184301 | 2021-01-19T22:51:35 | 2021-01-19T22:51:35 | 239,746,770 | 0 | 0 | MIT | 2020-02-11T11:34:52 | 2020-02-11T11:34:51 | null | UTF-8 | Python | false | false | 2,734 | py | import sys
import os
sys.path.append(os.path.abspath('../'))
from unittest import TestCase
from komand_rapid7_insightidr.connection.connection import Connection
from komand_rapid7_insightidr.actions.list_investigations import ListInvestigations
import json
import logging
class TestListInvestigations(TestCase):
d... | [
"noreply@github.com"
] | PhilippBehmer.noreply@github.com |
04c9ce30897f0abf5c96da08953af8d6ef209af4 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4083/codes/1601_2426.py | f4f53b1656e0fdd237171b2b6779e71b3d0b3838 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | t = float(input("Digite o tempo: "))
v = float(input("Digite a velocidade: "))
d = v*t
q = d/12
print(round(d, 1))
print(round(q, 1))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
0c9f7c1161df9fb9456876c8bda65277efb479a1 | b3c41b86b7a7b3fdb1380b91591276346227ef6f | /iv3/account/views.py | 00b3e38f31a82aad99768f2e40238cc88c153fe3 | [] | no_license | yeremiaChris/iasolv3 | bf839ecaeca07c3c1e2007d895ee7da9a960bc62 | 0e4bf51a549423e5631fde4fb04c03fc99d856c1 | refs/heads/master | 2022-11-13T03:34:56.570545 | 2020-06-29T09:10:53 | 2020-06-29T09:10:53 | 275,780,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,'account/home.html')
def mahasiswa(request):
return render(request,'account/mahasiswa.html') | [
"yeremia997@gmail.com"
] | yeremia997@gmail.com |
984096870f839d2a642315ecd9c7c330442dce57 | 4d3999e06a63989cd4dc7fe928940e0ca533cbd4 | /swagger_client/models/body78.py | 28dc76d0c458d9083fd66be8f3d60faced7b981f | [] | no_license | ribaguifi/orchestra-client-python | c8f1c4b9760c2df173222bb5bcaf73b231d2b4bb | a211f7f6c0353f4476176c6c2fed11a2be553db8 | refs/heads/main | 2023-06-03T00:28:57.108274 | 2021-06-22T12:22:28 | 2021-06-22T12:22:28 | 379,258,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Body78(ob... | [
"santiago@ribaguifi.com"
] | santiago@ribaguifi.com |
3e5d71c13e48dc98c425b1accf6efed214a2f32c | a523d2b0748304da34a5a3ddf1399f278793d265 | /model/notification.py | b0efdb0e8beb994554be6b76b15c6a7b25467915 | [] | no_license | phamdinhkhanh/order | 5e5e6edff4673f8caa60c360b8a758f6e217ebd6 | 2006b1fc082b5b97e567c713fec010737f8260c9 | refs/heads/master | 2021-01-25T11:15:47.331002 | 2017-06-10T06:57:15 | 2017-06-10T06:57:15 | 93,921,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from mongoengine import *
import mlab
class Notification(Document):
message_title = StringField()
message_body = StringField()
datetime = StringField()
def get_json(self):
return mlab.item2json(self)
| [
"phamdinhkhanh.tkt53.neu@gmail.com"
] | phamdinhkhanh.tkt53.neu@gmail.com |
d8bf3046166de101b86514538cebf814deb51dcc | da934e0010380fdc6894063540f61b0ebc2c9ded | /vendor/Twisted-10.0.0/doc/core/howto/listings/pb/pb2server.py | 85fcc79e2b77dabcdd8d8edb922347bac6ef380e | [
"MIT",
"Apache-2.0"
] | permissive | bopopescu/cc-2 | ed4f1dfe3c98f476ff619058d99855a16272d36b | 37444fb16b36743c439b0d6c3cac2347e0cc0a94 | refs/heads/master | 2022-11-23T03:57:12.255817 | 2014-10-02T06:10:46 | 2014-10-02T06:10:46 | 282,512,589 | 0 | 0 | Apache-2.0 | 2020-07-25T19:36:05 | 2020-07-25T19:36:05 | null | UTF-8 | Python | false | false | 880 | py | #!/usr/bin/env python
# Copyright (c) 2009 Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.spread import pb
from twisted.internet import reactor
class Two(pb.Referenceable):
def remote_print(self, arg):
print "two.print was given", arg
class One(pb.Root):
def __init__(se... | [
"anotherjesse@gmail.com"
] | anotherjesse@gmail.com |
cfca39234b4d4f36c986a8831fa266c8e2486845 | d0fe1112743cc36b2089b695fb7c527a3b8bb9f7 | /Asset/Elements/BuildingElement.py | 74dc1b1058884f2841a90c5811c6075544e340c9 | [
"MIT"
] | permissive | vd1371/GIAMS | bfff465c69f02a5dd1a2544bfe7170087a8e181d | cf8b7cb028b6cc6cd7facd6f45dd288067e9ff65 | refs/heads/master | 2023-04-14T07:09:00.801898 | 2022-08-01T01:16:06 | 2022-08-01T01:16:06 | 278,012,609 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import numpy as np
from .BaseElement import *
class BuildingElement(BaseElement):
def __init__(self, **params):
super().__init__(**params)
| [
"vd1371@gmail.com"
] | vd1371@gmail.com |
362c7bba7e7e6642a0fd5f05056678fe2e45aa8c | 10fc6db9c04d6c631faf65db4836b41dca999da8 | /facturacion/migrations/0031_auto_20180909_1812.py | 23ee841530601f5ae594a4f1971478d2d611d624 | [] | no_license | franksotogithub/FacturacionElectronica | b8273f98d37a0b035365c44b5446d78063e39d89 | afe9f2599f6076782a96829e288168baabfa3afb | refs/heads/master | 2022-12-09T18:37:42.857071 | 2018-11-05T08:00:45 | 2018-11-05T08:00:45 | 137,080,807 | 3 | 5 | null | 2022-12-08T02:55:52 | 2018-06-12T14:07:31 | Python | UTF-8 | Python | false | false | 927 | py | # Generated by Django 2.0.6 on 2018-09-09 23:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('facturacion', '0030_auto_20180909_1730'),
]
operations = [
migrations.AlterField(
model_name='r... | [
"franksoto2012@gmail.com"
] | franksoto2012@gmail.com |
93ae027542b3c2720d0dbcc8ffe8756b86cc44a2 | f090c3e0faa70cf0ef7c4be99cb894630bce2842 | /scripts/test_dacs.py | 1c19f581a8c62fa3523a12d8e4f101c62b0f3c99 | [] | no_license | HaeffnerLab/resonator | 157d1dc455209da9b7de077157bda53b4883c8b7 | 7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71 | refs/heads/master | 2021-01-09T20:48:03.587634 | 2016-09-22T18:40:17 | 2016-09-22T18:40:17 | 6,715,345 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | # configuration
setVolts = [-2.46, 5.83]
compVolts = [None, None]
allowedDeviation = .1
iterations = 50
channel = '18'
# script
from time import sleep
import labrad
from random import random
cxn = labrad.connect()
cxncam = labrad.connect('192.168.169.30')
dacserver = cxn.dac_server
dmmserver = cxncam.keithley_2100_dmm
... | [
"soenkeamoeller@gmail.com"
] | soenkeamoeller@gmail.com |
33e6acc0e9c37b0e687a7dc130c12e1fa11f07e8 | 2e123406f6349bf240cc22b732a3b6e12c4410fa | /api/migrations/0001_initial.py | d53ae7b697a959537da42808b375b76fd8b4018b | [] | no_license | kamal0072/api | 7f69cc40cb3c07a06600c5fcdb4c12e284f387d3 | 954d976b8844a745b414ae0bfd1843479a81d116 | refs/heads/master | 2023-06-24T11:30:53.097557 | 2021-07-22T05:15:16 | 2021-07-22T05:15:16 | 348,071,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Generated by Django 3.1.6 on 2021-02-04 01:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"hasan.kamaal0072@gmail.com"
] | hasan.kamaal0072@gmail.com |
655d0dc08c8907433156e341186b54635ac1885a | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/framebuf_simpletest.py | 416cda0438dcb9b047effd5426ff21d1dcb702ba | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import adafruit_framebuf
print("framebuf test will draw to the REPL")
WIDTH = 32
HEIGHT = 8
buffer = bytearray(round(WIDTH * HEIGHT / 8))
fb = adafruit_framebuf.FrameBuffer(
buffer, WIDTH, HEIGHT, buf_forma... | [
"ians.moyes@gmail.com"
] | ians.moyes@gmail.com |
f2b85151dabdc7cec6705ef38b7edde2904f0899 | 7d8a4d58fc4c5a73ce8c85e513253a86d6290d3b | /plugin.video.sports/resources/nba/main.py | 8ce9703af713d2bf0252edea9fdf4701b8ee92a6 | [] | no_license | bopopescu/icon | cda26d4463d264b7e2080da51f29d84cc48dfb81 | e385a6225dd11b7fea5a11215d655cf5006bb018 | refs/heads/master | 2022-01-12T19:00:04.951604 | 2019-07-10T05:35:44 | 2019-07-10T05:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | from urlparse import parse_qsl
import xbmcplugin
import xbmcaddon
import xbmcgui
import time
import sys
import ast
import os
import api as nba_api
import scoreboard
import playbyplay
import teamstats
import standings
import boxscore
import replays
_handle = int(sys.argv[1])
addon_id = 'plugin.video.sports'
addon = xb... | [
"kodi15887@gmail.com"
] | kodi15887@gmail.com |
cdeab76b89a3c65bb79399a8bf6e5346fe673a52 | d9cf9fe278d73e72cfeb4cf092644828e55369d2 | /blogproject/blog/feeds.py | e406e3e5df0b34b30bf2e5cf96852ccd87086f67 | [] | no_license | legend-zl/django-blog-project | ba09dcf21dfa46668e946bcca9e78da6bc118f86 | aadc89c0b599e203e43e8f0a138d144c0728e86a | refs/heads/master | 2022-12-08T14:54:17.143233 | 2020-07-27T03:28:52 | 2020-07-27T03:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Atom1Feed
from constance import config
from .models import Post
class AllPostsRssFeed(Feed):
title = config.LOGO
link = "/"
description = "{}最新文章".format(config.LOGO)
def items(self):
return Post.objects.... | [
"zmrenwu@163.com"
] | zmrenwu@163.com |
c8ea86caa6741e5bc0351d8455473937e50fb7a9 | 48fdf78ba92a45b610f384795c9518ce5fe8f6b8 | /Shoes Manufacturing/mod_dat_experiement.py | e0f76291b18d8203b5eb9a09eebf6f291c03b300 | [] | no_license | jerryhan88/python_projects | d10e9b9cba187d4e7ce6f156825162e01c3bfacc | a2ecd41c3ced688b0a13abb583c7d793c3bd6e0e | refs/heads/master | 2021-01-24T06:35:50.610690 | 2015-08-14T01:32:36 | 2015-08-14T01:32:36 | 40,641,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | from __future__ import division
from subprocess import call, CREATE_NEW_CONSOLE
from time import time, localtime
def opl_run(mod, dat):
MOD_FILE = 'Models collection/' + mod
DAT_FILE = 'Data collection/' + dat
SOL_FILE = 'Shoes Manufacturing.sol'
st = time()
rv = call(['oplrun',... | [
"jerryhan88@gmail.com"
] | jerryhan88@gmail.com |
e826c7f1b1e7f7c80fe49a218547eacf76290263 | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/onewire/__init__.py | 70a0a5fc856f175e6ba8b00f5d2be17c22fc061f | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 1,277 | py | """The 1-Wire component."""
import logging
from pyownet import protocol
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from .const import DOMAIN, PLATFORMS
from .onewirehub import CannotConnect, OneWireHub
_L... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
e1d48a64076782a527fc2ec405140c79c3d60776 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/aiplatform/v1beta1/aiplatform-v1beta1-py/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_classification.py | 70afa83c40840d2a0c473f079b4285ccdd958c2f | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
20a732730a25d3aa59d75ce5670d07542d00f803 | f52997ac7e1b41f34018c3a0028ced8638072b2b | /src/peoplefinder/forms/search.py | 186868718c14452b380bf04b48bb2ee199b1b679 | [
"MIT"
] | permissive | uktrade/digital-workspace-v2 | 49fae1fca819b625c6f6949fb5ce51b89fbcab96 | 7e328d0d55c9aa73be61f476823a743d96e792d0 | refs/heads/main | 2023-09-03T12:03:47.016608 | 2023-09-01T12:07:55 | 2023-09-01T12:07:55 | 232,302,840 | 6 | 0 | MIT | 2023-09-13T15:50:24 | 2020-01-07T10:41:18 | Python | UTF-8 | Python | false | false | 489 | py | from django import forms
TEAMS_FILTER = "teams"
PEOPLE_FILTER = "people"
SEARCH_FILTERS = [
(TEAMS_FILTER, "Teams"),
(PEOPLE_FILTER, "People"),
]
class SearchForm(forms.Form):
query = forms.CharField(required=False, empty_value=None)
filters = forms.MultipleChoiceField(
choices=SEARCH_FILTER... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
24e632afd02b2b8dc396ea1fa9e229d14a7ce775 | 58232a2a6d6279cafbda432b07f1178f95cbce85 | /datastructure/goodrich/stack/reversefile.py | 43fdacf04ec3de714be24240a5259774e3282c14 | [] | no_license | saisai/tutorial | 862cf800305b89f7be1855fa052bd3dc1d90eef8 | 05a6e74841cf418fc794dfbbfe35c0d28b860211 | refs/heads/master | 2022-02-19T15:05:51.936863 | 2020-10-31T05:18:22 | 2020-10-31T05:18:22 | 238,120,169 | 0 | 0 | null | 2022-02-10T21:28:51 | 2020-02-04T04:07:46 | HTML | UTF-8 | Python | false | false | 616 | py |
from arraystack import ArrayStack
def reverse_file(filename):
"""
Overwrite given file with its contents line-by-line reversed.
"""
S = ArrayStack()
original = open(filename)
for line in original:
S.push(line.rstrip('\n')) # we will re-insert newlines when writing
original.close()
... | [
"sai@gmail.com"
] | sai@gmail.com |
c48dee76672bffb781664e8e02f6e60b1bc4b1f0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/280/105460/submittedfiles/testes.py | ec67193118d9adcea8b7b13d24b6672d68678cdc | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """
from minha_bib import solicitaSimboloDoHumano
from minha_bib import sorteioPrimeiraJogada
from minha_bib import jogadaComputador
from minha_bib import validaJogada
from minha_bib import jogadaHumana
from minha_bib import mostraTabuleiro
from minha_bib import verificaVencedor
from minha_bib import verificave... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
dd4bc05c5ee6bc99543bbc77befbd5c113e67ada | 62e544e03260a4675d3f6d66320989dc633a92bc | /src/vergilius/components/port_allocator.py | 74e21d6f6ef7cee2a2137d2798a31ea451422b32 | [] | no_license | gridl/vergilius | 67250ceb1a23a910ccf4277fcd935894889b77a9 | fec176eb94d64151cddbc345e6df91879fd1c461 | refs/heads/master | 2020-12-03T01:56:59.808407 | 2017-01-26T10:48:08 | 2017-01-26T10:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from vergilius.config import PROXY_PORTS
allocated = set()
def allocate():
min_port = PROXY_PORTS[0]
max_port = PROXY_PORTS[1]
while min_port < max_port:
if min_port not in allocated:
allocated.add(min_port)
return min_port
min_port += 1
raise Exception('Fail... | [
"noreply@github.com"
] | gridl.noreply@github.com |
c64c6eb7d08436285d19e6e95c2fadee7aaabf92 | 52890db415951ae7f2bd014b7cdd716fa31cfa44 | /movie_kg/movie_kg/question_answering.py | 3d28265184caf9315914813f5213a893fd4ded94 | [] | no_license | aimaze/movie_knowledge_graph_app | dc3aa1f89a7e9d696b2755846196239970589626 | d7fa8d224ad89d70002d9ce06ec1dd005bcf61bb | refs/heads/master | 2023-02-18T05:10:02.596221 | 2021-01-18T07:47:07 | 2021-01-18T07:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,960 | py | # -*- coding:utf-8 -*-
import torch
import torch.nn.functional as F
from django.shortcuts import render
from util.pre_load import segment, neo4jconn, model_dict, name_dict, category_dict
model, words, classes, index_classes = model_dict
model.eval()
actor_name_dict, movie_name_dict = name_dict[0], name_dict[1]
def q... | [
"2229029156@qq.com"
] | 2229029156@qq.com |
dcde05dcaadd7776416666731f5d1cf4017c8ba8 | b914ee0f23ddafa487e5cb35c35c3d41517a47a8 | /Ornek21_8.py | 2ec49c27746a9487b45c69fbd77e6f4ed290f5c4 | [] | no_license | suacalis/VeriBilimiPython | 0dc45402b09936c82cecca9d6447873d24d1b241 | 85dbfa98ccf1a6a4e8916d134dc1ad41f99535ad | refs/heads/main | 2023-08-24T17:03:48.627831 | 2021-09-28T07:28:21 | 2021-09-28T07:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | '''
Örnek 21.8. (Transpoze):
Bir matrisin satırları ile sütunlarını yer değiştiren programı yazınız.
'''
import numpy as np
A=[[0, 2, 3, 4],
[5, 0, 6, 7],
[8, 9, 0, 1]]
#Önce liste diziye dönüştürülür
d = np.array(A)
#Sonra transpozesi alınır
print("Transpozesi:\n",d.T) | [
"noreply@github.com"
] | suacalis.noreply@github.com |
f75c6cbd4bfca8f77bc113ea88d499d6e13194e3 | 70bee1e4e770398ae7ad9323bd9ea06f279e2796 | /test/test_shared_app_embedded_embed_request.py | 37e402a8a27cc4ec2cc876a72b1d31e5f5525877 | [] | no_license | hi-artem/twistlock-py | c84b420b1e582b3c4cf3631eb72dac6d659d4746 | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | refs/heads/main | 2023-07-18T07:57:57.705014 | 2021-08-22T04:36:33 | 2021-08-22T04:36:33 | 398,637,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_impor... | [
"aakatev@virtru.com"
] | aakatev@virtru.com |
9b3e49cde9bdaada3a2e801af0dd1e576ed8a6d6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /WxkFoXTLYiAq57uDq_20.py | ef740c16b6e7f75af158cd00657d9e0b8c3de1a3 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py |
def find_and_remove(dct):
for k1, v1 in dct.items():
temp_dict = {}
for k2, v2 in v1.items():
if v2.isdigit(): temp_dict[k2] = int(v2)
dct[k1] = temp_dict
return dct
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c25738ea05e75d18a527fda8cfaaaefba69bc8cf | 0d802c797e9c4ddf90d0069a7df40b7121ef1e9c | /website/forms.py | d93a7093e18e030ac30f1cd9e451bbf6ba025b0b | [] | no_license | minrivertea/secrettea | 841e441f6e74ba1d72f5e6c28ad69489a03600af | ef037d97717643f83ff02e1e96a53c8ec1b49677 | refs/heads/master | 2016-09-06T08:13:10.648839 | 2013-01-18T13:08:05 | 2013-01-18T13:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,757 | py | from django import forms
from django.conf import settings
from django.forms import ModelForm
from django.contrib.auth.models import User
from website.models import *
NUMBER_CHOICES = (
('1', u"1"),
('2', u"2"),
('3', u"3"),
('4', u"4"),
('5', u"5"),
('6', u"6"),
('7', u"7"),
('8... | [
"chris@minrivertea.com"
] | chris@minrivertea.com |
80e744e5f78f3e37e351db5bf707e8df175a1c2c | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2103. Rings and Rods/2103.py | 1500c6794caa1910138495d08ec4a70f24a06034 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 265 | py | class Solution:
def countPoints(self, rings: str) -> int:
colors = [0] * 10
for c, num in zip(rings[::2], rings[1::2]):
color = 1 if c == 'R' else 2 if c == 'G' else 4
colors[int(num)] |= color
return sum(color == 7 for color in colors)
| [
"me@pengyuc.com"
] | me@pengyuc.com |
374c8256528f353af60124d93d310a1684ffb6a4 | 1c0afb772ac34627f08f398fb6427bf762fe4035 | /automate_the_boring_stuff/regular_expression/is_phone_no.py | 48592acccb1253284d376d65ff15aaa3e7832281 | [] | no_license | Akhileshbhagat1/All-prectice-of-python | 3d270a2ec02afc1510e3363b7c677d3ba00065bd | 02251c6bdc0da7f8346d5f1450691a8c96d6f87a | refs/heads/master | 2020-12-27T15:47:54.046748 | 2020-02-10T01:16:46 | 2020-02-10T01:16:46 | 237,957,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # def is_phone_number(text):
# if len(text) != 12:
# return text + ' is not a phone no'
# for i in range(0, 3):
# if not text[i].isdecimal():
# return text + ' is not a phone no'
# if text[3] != '-':
# return text + ' is not a phone no'
# for i in range(4, 7):
# ... | [
"akhileshkrbhagat666@gmail.com"
] | akhileshkrbhagat666@gmail.com |
e03bf13b8c5a4e8a74ea129e34e0b1c85bbfd913 | d83d8a1f53c7efe56b687fed45649b6efd019178 | /reagent/test/net_builder/test_synthetic_reward_net_builder.py | c630f998d6183521b78a95992ec8531edc500a28 | [
"BSD-3-Clause"
] | permissive | t-triobox/ReAgent | 7bfaf7bf4c9fe1324124db55f53567932c27eb1b | 02244c5c98f40647d6301736787bb98a88ab0f96 | refs/heads/master | 2023-05-04T04:37:39.665441 | 2021-05-06T03:48:24 | 2021-05-06T03:49:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import unittest
import torch
from reagent.core import types as rlt
from reagent.core.fb_checker import IS_FB_ENVIRONMENT
from reagent.core.parameters import NormalizationData, NormalizationParameters
from reagent.net_builde... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cf38931a33a741359f7e0c6c08ada7d6a098d11a | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/SunlightLabs/Congress/Committee/GetList.py | 65201ed62b4e9c98c2dcb6e64d93b74b9731fdd3 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GetList
# Returns current committees, subcommittees, and their membership.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# ... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
69d48c6d4da40de9773d5f249e18917bcc6bceba | d2faa1d8a0ae0e7b019969cf26fd2b699ccf0bdd | /test/test_query_builder.py | cf83c961fce85b8cccc8e7153322ea6894688d3e | [
"MIT"
] | permissive | snorrwe/lollygag | 4958b166b10fdf9ad4757c6b852d83fb33cf58dd | 4af4b475f49070f2a3c8b32eaf78520e77acf259 | refs/heads/master | 2020-03-21T04:15:30.651925 | 2018-06-30T14:05:26 | 2018-06-30T14:05:26 | 101,331,608 | 2 | 2 | MIT | 2018-06-21T00:18:01 | 2017-08-24T19:40:22 | Python | UTF-8 | Python | false | false | 1,335 | py | from lollygag.query_builder import QueryBuilder
def test_can_build_name_query():
qb = QueryBuilder().name('div')
assert qb.raw_query == {'name': 'div'}
def test_can_build_chained_query():
qb = QueryBuilder().name('foo')._and().attribute('bar', 'b.*')
assert qb.raw_query == {
'and': ({
... | [
"littlesnorrboy@gmail.com"
] | littlesnorrboy@gmail.com |
164ddae8f215136695aa8bb0d8840d7e63c144fc | 9ac205e4d8f111608d1abbcfa78b5b6598c17955 | /941.有效的山脉数组.py | 3e0310b3a3578a7abcebc94507aca8d961cf9341 | [] | no_license | oceanbei333/leetcode | 41ff0666da41750f7d3c82db53ec6f7f27125d3e | 5d29bcf7ea1a9e489a92bc36d2158456de25829e | refs/heads/main | 2023-03-16T18:17:25.232522 | 2021-02-28T04:56:40 | 2021-02-28T04:56:40 | 319,561,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | #
# @lc app=leetcode.cn id=941 lang=python3
#
# [941] 有效的山脉数组
#
# @lc code=start
from typing import List
class Solution:
def validMountainArray(self, A: List[int]) -> bool:
if len(A) <3:
return False
aset = set()
for index in range(len(A)):
if not index:
... | [
"root@DESKTOP-2T4F83G.localdomain"
] | root@DESKTOP-2T4F83G.localdomain |
ad6b0228c60385557747de9bf076d1434cce662f | 762db71e9bb66ab5821bd91eff7e0fa813f795a0 | /code/python/echomesh/util/Debounce_test.py | 166528939fd309fec3f2f927e969ba95278fb2d2 | [
"MIT"
] | permissive | huochaip/echomesh | 0954d5bca14d58c0d762a5d3db4e6dcd246bf765 | be668971a687b141660fd2e5635d2fd598992a01 | refs/heads/master | 2020-06-17T20:21:47.216434 | 2016-08-16T16:49:56 | 2016-08-16T16:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.util import Debounce
from echomesh.util.TestCase import TestCase
class DebounceTest(TestCase):
def setUp(self):
self.states = [0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0]
self._state = None
... | [
"tom@swirly.com"
] | tom@swirly.com |
c43b8aab700a37fa661f984bb71ded4d79c6164f | 58cfad962e57b935e7782bb214a2008d689751d6 | /xero_python/payrolluk/models/timesheet_line.py | 9ab789e9b3b276efb4bfd88adcb7e482e986e841 | [
"MIT"
] | permissive | XeroAPI/xero-python | ce43c060c216a42efd5f47159987468deb0e4622 | 07efa3bfc87a3bd08ba217dd2b642f6a3515ddff | refs/heads/master | 2023-07-21T04:01:27.461727 | 2023-07-11T02:35:44 | 2023-07-11T02:35:44 | 240,158,613 | 109 | 42 | MIT | 2023-07-11T02:35:45 | 2020-02-13T02:17:05 | Python | UTF-8 | Python | false | false | 5,970 | py | # coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class TimesheetLine(BaseModel):
"""NOTE: This clas... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
3d2947b4dab05ef27d96dbdbd03de7c821780752 | c77a40408bc40dc88c466c99ab0f3522e6897b6a | /Python_fundamentals/Dictionaries/softuni_parking.py | 1f140852c5bf5394eb5c20cefe4d7af6ed402db3 | [] | no_license | vbukovska/SoftUni | 3fe566d8e9959d390a61a4845381831929f7d6a3 | 9efd0101ae496290313a7d3b9773fd5111c5c9df | refs/heads/main | 2023-03-09T17:47:20.642393 | 2020-12-12T22:14:27 | 2021-02-16T22:14:37 | 328,805,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | class Parking:
def __init__(self):
self.parking_register = {}
def registered(self, user):
is_registered = False
if user in self.parking_register:
is_registered = True
return is_registered
def register(self, data):
username = data[0]
license_plate... | [
"vbukovska@yahoo.com"
] | vbukovska@yahoo.com |
bff828e1e25e7983444a36d8d8b4262ad942c4ff | 88b667f671beb285e567f7648e92247d644a3abd | /sharpy/plans/acts/terran/terran_unit.py | 0344232331dc5f6196a0bc1916e865a5d7026ff3 | [
"MIT"
] | permissive | august-k/sharpy-paul | e7fbd6ac181d7e81e1f60eb34016063227590a64 | 6f4462208842db6dd32b30d5c1ebf90e79e975a0 | refs/heads/master | 2022-07-17T15:40:31.603339 | 2021-02-26T02:56:34 | 2021-02-26T02:56:34 | 257,317,358 | 1 | 1 | MIT | 2022-06-22T02:07:06 | 2020-04-20T15:05:13 | Python | UTF-8 | Python | false | false | 833 | py | from sharpy.plans.acts import ActUnit
from sc2 import UnitTypeId
from sc2.dicts.unit_trained_from import UNIT_TRAINED_FROM
class TerranUnit(ActUnit):
def __init__(self, unit_type: UnitTypeId, to_count: int = 9999, priority: bool = False, only_once: bool = False):
production_units: set = UNIT_TRAINED_FROM.... | [
"august.kaplan@gmail.com"
] | august.kaplan@gmail.com |
89e51a4de1ec09d88575b0dd2aeb060adf5209a0 | 8b02aa6153389210b7aa0c202ad08b947beba09d | /whisky/server.py | 617e9a1f9ddbeb8fb69ec50c7e1cc92986c1bcac | [
"MIT"
] | permissive | lishulongVI/mokitou | c4d0d554e194b19ad297129efba21201a6eef275 | 96c5af6f86b2786ffda203f023b4a5f11015853f | refs/heads/master | 2021-04-12T09:41:49.868936 | 2018-05-08T04:46:10 | 2018-05-08T04:46:10 | 126,662,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
"""
@contact: lishulong.never@gmail.com
@time: 2018/4/2 上午10:03
"""
from tornado.ioloop import IOLoop
from tornado.httpserver import HTTPServer
from whisky.application import APP
from whisky.config.settings import options
if __name__ == '__main__':
app = APP()
http_server = HTTPServer(... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
9ffd5a83216ea99709308d316931f8ac939ee8a0 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/notification/mattermost.py | d53522eac12b7f3101c2cb99a9c36964eb1656a1 | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 4,764 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Benjamin Jolivot <bjolivot@gmail.com>
# Inspired by slack module :
# # (c) 2017, Steve Pletcher <steve@steve-pletcher.com>
# # (c) 2016, René Moser <mail@renemoser.net>
# # (c) 2015, Stefan Berggren <nsg@nsg.cc>
# # (c) 2014, Ramon de la Fuente <ramon@delafuente.... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
4c6ff827ec35d35a800462674e3f1e3f3ba9af68 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/numenta_nupic/nupic-master/examples/swarm/test_db.py | 2ac14d6cab8299f6af29b2b99c524396099bfe6e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,720 | py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | [
"659338505@qq.com"
] | 659338505@qq.com |
283ca9d4c1c79b1d5fa33b3819a08029324abc4c | 6f31a15cb73175084f2c4485d3dea0b8975b2ec9 | /egs/hub4_english/s5/local/lm/merge_word_counts.py | 85e15d8dc07d0c139b9d097ebe0303799f19947a | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | Idlak/idlak | c7cd5e6c0b02918cda85dbb2fb5c7333a789c304 | 4be6f7d951ba0d707a84a2cf8cbfc36689b85a3c | refs/heads/master | 2021-11-23T13:28:43.709163 | 2021-11-01T15:51:46 | 2021-11-01T15:51:46 | 127,285,931 | 65 | 26 | NOASSERTION | 2021-11-01T15:51:47 | 2018-03-29T12:06:52 | Shell | UTF-8 | Python | false | false | 766 | py | #! /usr/bin/env python
# Copyright 2016 Vimal Manohar
# Apache 2.0.
"""This script merges pocolm word_counts and write a new word_counts file.
A min-count argument is required to only write counts that are above the
specified minimum count.
"""
from __future__ import print_function
import sys
def main():
if... | [
"dpovey@gmail.com"
] | dpovey@gmail.com |
d4be2929f26e7a5dd03847d7d656333fd52f099e | 4c8152b5abdefa8fe44cb4a423985b18a3175542 | /Books/wxpython-28-application-development-cookbook/1780_Code/1780_08_Code/05/renderer.py | b4891e0b81e710cd6972a1906b41183d753c8540 | [] | no_license | mcmoralesr/Learning.Python | c5ed943a1e4eed774c1b626c52c450b48c1062b6 | 8ea6222d260989c6973d9a0cc494ff659a78ade6 | refs/heads/master | 2020-06-28T04:22:53.970613 | 2015-02-12T10:23:28 | 2015-02-12T10:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | # Chapter 8: Drawing to the Screen, Using Device Contexts
# Recipe 5: Drawing with RendererNative
#
import wx
#---- Recipe Code ----#
class DropArrowButton(wx.PyControl):
def __init__(self, parent, id=wx.ID_ANY,
label="", pos=wx.DefaultPosition,
size=wx.DefaultSize, style=0,
... | [
"sonhuytran@gmail.com"
] | sonhuytran@gmail.com |
519dde6faee355b440c1b8d87b01a27c37dc5d59 | fdab0c18eab28477d0980723c5ac5b4ba10c506f | /shelf/simpypatch1.py | f8f2de002fda49aba904a11f8d12f0c680dd8f43 | [
"MIT"
] | permissive | MIT-Informatics/PreservationSimulation | 58b53595841c39e1fe00a05241be43ed0bcf6430 | 38c6641a25108022ce8f225a352f566ad007b0f3 | refs/heads/master | 2021-08-25T10:35:46.066554 | 2021-08-24T20:17:13 | 2021-08-24T20:17:13 | 17,369,426 | 9 | 0 | NOASSERTION | 2021-03-20T02:55:37 | 2014-03-03T15:03:30 | R | UTF-8 | Python | false | false | 1,326 | py |
# simpypatch1.py
#
# Instrument the step() method a little more to get useful information
# out of errors in the events. The "raise exc" line fails 100% of the
# time without revealing anything about the problem; all we get is
# "not enough arguments for format string."
def step(self):
"""Process the next ... | [
"landau@ricksoft.com"
] | landau@ricksoft.com |
c7d2b38f5108cd6e5b38fbe70d4d7707e495b076 | dc49abe61b92ccb1bf3f9bc84df7305869b02dba | /newapp/models.py | 758e8ee6bcaeae842d48ac2f8741b52899de443d | [] | no_license | aryan29/BookUploadWebsite | 834f660d771b69f1652517b1e4afade9fef3ee36 | af677edd10e606771048c92aae76bc3098e7af5d | refs/heads/master | 2022-12-10T10:50:22.102974 | 2019-12-13T19:55:39 | 2019-12-13T19:55:39 | 226,653,800 | 2 | 0 | null | 2022-12-08T07:00:39 | 2019-12-08T11:03:29 | Python | UTF-8 | Python | false | false | 324 | py | from django.db import models
# Create your models here.
class Books(models.Model):
title=models.CharField(max_length=50)
author=models.CharField(max_length=50)
description=models.TextField(null=True,blank=True)
pdf=models.FileField(upload_to="books/pdfs/")
def funtion(self):
return self.tit... | [
"nk28agra@gmail.com"
] | nk28agra@gmail.com |
c18419e04606c223c6468d0f3a2fad86aea71057 | 8b34c74113df415011e4705322a503277a9643b6 | /app/posts/models.py | cff67d87bee4fefab599cc9a77e1fb91e5a17b5a | [] | no_license | eqfwcev123/Instagram | b5d87ac1d5de1ef292be41125c0601b2121d9d77 | cd09365363782f4d14aff9fd1480ebbfced09606 | refs/heads/master | 2020-12-07T20:50:53.168032 | 2020-01-09T10:04:06 | 2020-01-09T10:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | from django.db import models
from members.models import User
class Post(models.Model):
"""
인스타그램의 포스트
"""
author = models.ForeignKey(User, on_delete=models.CASCADE)
content = models.TextField(blank=True)
like_users = models.ManyToManyField(
User, through='PostLike', related_name='like... | [
"dev@lhy.kr"
] | dev@lhy.kr |
7e35e043e504d471fcfd166b07e463872b51b459 | 5ecef527333a08d2861c82a39937d2921e009164 | /codes/async_demos/movie_delay.py | c62baaecf05b0981d9058a9aeb6a708ec9580cb5 | [] | no_license | furuiyang0715/spider_notes | d40707a34406838d6503569193fc0f6ce38c5c7d | 35c9062a4fccc72602fe5539e35db199e792f62e | refs/heads/master | 2023-02-25T12:15:19.658274 | 2023-02-09T03:17:35 | 2023-02-09T03:17:35 | 238,825,153 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | '''循环访问一个有延迟的网站 '''
import requests
import logging
import time
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s: %(message)s')
TOTAL_NUMBER = 100
BASE_URL = 'https://static4.scrape.center/detail/{id}'
start_time = time.time()
for id in range(1, TOTAL_NUMBER + 1):
url = BASE_URL.format(... | [
"furuiyang0715@gmail.com"
] | furuiyang0715@gmail.com |
b8afdc4e500f7851954550ce663cad9ead71f4fc | b2cf0ec61188f48eddd60a4d0773e499f804835c | /eval/etc_characterization.py | 21c8052f3dc6d9eb79bc8a6cadcb88b2d19f494a | [
"MIT"
] | permissive | glic3rinu/basefs | dd36975760aab48e7543051f0ad622ec7cf9bd22 | c972d8f3ee3d6b27816455a23edaf757eb802733 | refs/heads/master | 2021-01-17T14:45:55.520531 | 2018-01-11T13:17:23 | 2018-01-11T13:17:23 | 45,201,919 | 3 | 0 | MIT | 2020-09-04T00:20:54 | 2015-10-29T18:12:09 | JavaScript | UTF-8 | Python | false | false | 2,856 | py | #!/usr/bin/python
import time
import sys
import os
import zlib
import lzma
import bsdiff4
import json
import math
import matplotlib.pyplot as plt
basepath = sys.argv[1] if len(sys.argv) == 2 else '/etc'
def compress(method):
start = time.time()
messages = []
times = []
for path, dirs, files in os.wa... | [
"glicerinu@gmail.com"
] | glicerinu@gmail.com |
20d30ecdbe34ec6c50e6c8d605bcd6f89be0e765 | 4366ae34f1d091f7ed55ddfaa4abeb276a40bbd1 | /LeetCode/759 Employee Free Time.py | 463fbab997e1aefc9a423ec38239501ab4a9451a | [
"MIT"
] | permissive | firefeifei/CodePool | d52b3f28ab9f9daab7591da4c86e467e863bc085 | c82a0a5f8d5e027c614612de7f396d28e8511155 | refs/heads/master | 2023-07-10T03:32:04.357861 | 2021-08-18T13:08:42 | 2021-08-18T13:08:42 | 414,436,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,451 | py | #!/usr/bin/python3
"""
We are given a list schedule of employees, which represents the working time for
each employee.
Each employee has a list of non-overlapping Intervals, and these intervals are
in sorted order.
Return the list of finite intervals representing common, positive-length free
time for all employees, a... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
df76e60eb1bfcedcfc6f058052fbbb2c775c1299 | 7d9030094153bf363ba5690607bf496b0bb76009 | /script/socket_module/lib.py | a8ec10a389100d9b78362e750f71c577fec00c10 | [] | no_license | stan12138/archive | 2773c309e59458000fb1eac44c6d3fc073bfc511 | 54478dc286712948913e3c9ca126015a8bb24bc8 | refs/heads/master | 2020-12-02T18:15:39.609495 | 2020-02-24T13:19:29 | 2020-02-24T13:19:29 | 96,503,611 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,976 | py | """
固定通信协议:
2B ----> header length little byteorder unsigned
---------- header encoding: utf-8
CL:123;CT:image; 分号分割的键值对形式,结尾不包含分号, 至少包含一个CL
---------- body 长度由header的CL(content length)指定
自定义
"""
"""
考虑重新设计一下异常继承
设计一个NeedClose的异常,然后让所有应该导致关闭的异常都继承这个
这样就比较容易捕捉需要关闭socket的异常了
"""
import time
__all__ = [... | [
"ihnyi@qq.com"
] | ihnyi@qq.com |
c19f28987e475e5e215319114e1bacad062326ba | b509ef07d752e987f4cb84d1abd4c3a98488a6c7 | /resources/lib/streamlink/plugins/itvplayer.py | cab7b002265bb8331580b49db137ec2d30f875dc | [
"BSD-2-Clause"
] | permissive | Twilight0/script.module.streamlink.base | d91245d1a43d6b3191b62a6eb4b1cf70598ed23e | c1e4628715a81806586b10323b8cb01424bbb6fc | refs/heads/master | 2021-01-21T04:32:41.658823 | 2020-09-07T20:56:29 | 2020-09-07T20:56:29 | 101,915,967 | 6 | 4 | BSD-2-Clause | 2018-01-14T15:20:47 | 2017-08-30T18:31:47 | Python | UTF-8 | Python | false | false | 4,127 | py | import json
import logging
import re
from streamlink.compat import urljoin
from streamlink.plugin import Plugin
from streamlink.plugin.api import useragents, validate
from streamlink.plugin.api.utils import itertags
from streamlink.stream import HLSStream, RTMPStream
log = logging.getLogger(__name__)
class ITVPlaye... | [
"twilight@freemail.gr"
] | twilight@freemail.gr |
590ea86aa8544e8557d476a1ac733478f7d61c63 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s973714993.py | 0d9a73178a4f5fe43923d7528d9bb216d82596dd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | #!python3
LI = lambda: list(map(int, input().split()))
# input
N, M = LI()
A = [input() for _ in range(N)]
B = [input() for _ in range(M)]
def solve():
n = N - M + 1
b = "".join(B)
for i in range(n):
for j in range(n):
a = ""
for k in range(M):
a += A[i + ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
104fb685b9b3fbee95c5dc2e0ae44307e268e96e | afb8a16ef981766c2fdbc95b5bd963f963affce6 | /tests/plugins/afk/test_misc.py | 00519433399f46e174795340ccf1f9b279cb7f7c | [] | no_license | ptitbigorneau/BigBrotherBot-For-UrT43 | 3c27a0e147be4946ea672c4fad254e5334e7af7a | 7606156bb704a781d21a8a9b95119b995ea2db50 | refs/heads/master | 2021-01-10T23:54:25.277248 | 2019-05-16T06:19:19 | 2019-05-16T06:19:19 | 70,788,589 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | # -*- coding: utf-8 -*-
# ################################################################### #
# #
# BigBrotherBot(B3) (www.bigbrotherbot.net) #
# Copyright (C) 2005 Michael "ThorN" Thornton #
# ... | [
"ptitbigorneau@ptitbigorneau.fr"
] | ptitbigorneau@ptitbigorneau.fr |
d9adc9aee632c20ad9fa2b5a2da6b56203f9ffb8 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/364 Nested List Weight Sum II.py | c89e60bdb1dc7be7093979875a309a9cd518b65b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,954 | py | """
Premium Question
"""
__author__ 'Daniel'
"""
This is the interface that allows for creating nested lists.
You should not implement it, or speculate about its implementation
"""
c_ NestedInteger(o..
___ - , value_ N..
"""
If value is not specified, initializes an empty list.
Otherwise... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
353d27bc68a0cc6a3cef65cbf71da87ce9e94af4 | 3ce32d497cd9522ad64e535d3b71f2c23cc22274 | /config/model.py | 56e07e4b673d37b0b7dc94bf039a51592b6d6926 | [] | no_license | erikperillo/v_a_p_o_r_n_e_t | 98cb1c9d9c7885978c213f9bb866dc1ea44c6d7b | 94f4726650bdf1b8d35e393eae6127da826f2097 | refs/heads/master | 2021-01-22T02:17:21.937402 | 2017-05-31T21:28:22 | 2017-05-31T21:28:22 | 92,346,045 | 0 | 1 | null | 2017-05-31T21:28:23 | 2017-05-24T23:45:46 | Python | UTF-8 | Python | false | false | 6,222 | py | import pickle
import lasagne
import theano
from lasagne.layers import Conv2DLayer as ConvLayer
from lasagne.layers import MaxPool2DLayer as PoolLayer
from lasagne.layers import ConcatLayer
from lasagne.layers import DenseLayer
from lasagne.layers import DropoutLayer
from lasagne.layers import NonlinearityLayer
from las... | [
"erik.perillo@gmail.com"
] | erik.perillo@gmail.com |
2fc2af41527c47ce1f687d572087a6725c458839 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02947/s605865492.py | a94523e122584ade730985eacdedf6f4408fb358 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(inpu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6a590c4f1c918cdd5a5ac5aa7b2311f3a09fcec6 | e4f2aba6cb66ac33c5fc439374e8ef39d0bb0e4a | /Week-7-Dictionaries/Dictionary-part2/iterating-dict.py | 5cbc1fa8a6eb6f9f9d1936202d52817c29d0ba4b | [] | no_license | AChen24562/Python-QCC | 573f5b545239aa24b8047c74539ca6b3e997faa0 | 1da01b76e209eb9b0d08f0f205d635bc2a149dfd | refs/heads/master | 2023-02-06T23:18:41.850377 | 2020-12-28T12:59:29 | 2020-12-28T12:59:29 | 289,614,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | student_info = {'name': "John Smith",
'GPA': 3.456,
'Age': 20}
for keys, values in student_info.items():
print(keys, "\t", values)
print()
student_info.update({"GPA": 4.0})
print()
for keys, values in student_info.items():
print(keys, "\t", values)
print()
student_info['Majo... | [
"54772925+AChen24562@users.noreply.github.com"
] | 54772925+AChen24562@users.noreply.github.com |
8e8fe3cc4f8dd8f85821ea61f51522c15a3f12f4 | 43c8166dd5fc5fd3aa2ff33614386d101b46f61b | /python/lsst/meas/extensions/convolved/__init__.py | 59394fc719f3b49cad78cd5a8b49ab7c9c60dde3 | [] | no_license | lsst/meas_extensions_convolved | 37e82665cd1eae2fd6d8589edadde4f2b1f29476 | 42fff21dfb88e9ac1772aa792458ec200baa4b58 | refs/heads/main | 2023-08-17T10:52:03.426047 | 2023-07-10T00:19:16 | 2023-07-10T00:19:16 | 68,046,770 | 2 | 20 | null | 2023-04-14T17:00:04 | 2016-09-12T20:53:10 | Python | UTF-8 | Python | false | false | 898 | py | #
# LSST Data Management System
# Copyright 2008-2016 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# 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 ... | [
"price@astro.princeton.edu"
] | price@astro.princeton.edu |
f9b0fa51d18a10d12abe6cf6f5b36399f711f5d8 | 63b79eb44cf682ece74be1fc866f7651837db448 | /test/test_game_official.py | 9dcdf77f9bff807fab0a3f2e568d45866148d1d5 | [] | no_license | bclark86/powerplay-py | c8cc4df8acd9ada91299706b7a7113ab9c963645 | 584d754629936a93d95157356ff806a5c68438dc | refs/heads/main | 2023-07-19T04:23:16.510338 | 2021-09-02T13:17:12 | 2021-09-02T13:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | # coding: utf-8
"""
NHL API
Documenting the publicly accessible portions of the NHL API. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import powerplay
from powerplay.models... | [
"saiem.gilani@gmail.com"
] | saiem.gilani@gmail.com |
4d7ebb0995983b41ddafeee4d033ee5094d03b77 | 396d79ee00cf1a0bbc255907c9f49a5c0287fb48 | /eCommerce/settings.py | cca5f77ea8f60904ff5392b0656f03b1edae01c4 | [] | no_license | perennialAutodidact/eCommercePrototype | 8117a7bba35183bd6b26703c4fb05cdd7ef69fff | 95e3a401a8eba94a5960e1d8e0b306e77dbb1513 | refs/heads/master | 2023-08-08T02:29:59.560725 | 2020-03-05T04:51:43 | 2020-03-05T04:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | """
Django settings for eCommerce project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"keegood8@gmail.com"
] | keegood8@gmail.com |
39eed8e6793e4e98f6d742696f6a21067ddbc5af | 0a60838dd0b234d4f24006fa20571f21004b728b | /4.3/proj_4310_locators.py | 68eb04e26f5314031b811d742c4f034ff0bbe16b | [] | no_license | Telelichko/Stepik_automatic_testing | 0a3496d4b5a10838b3772585cd61ed64deb5b5e9 | 2aac3f29f225b14c6ba3ede15271732cca4be809 | refs/heads/master | 2021-06-17T03:32:07.352120 | 2019-07-29T18:07:46 | 2019-07-29T18:07:46 | 198,405,862 | 0 | 0 | null | 2021-04-20T18:23:14 | 2019-07-23T10:15:35 | Python | UTF-8 | Python | false | false | 1,051 | py | from selenium.webdriver.common.by import By
class BasePageLocators(object):
LOGIN_LINK = (By.CSS_SELECTOR, "#login_link")
LOGIN_LINK_INVALID = (By.CSS_SELECTOR, "#login_link_inc")
class CartPageLocators(object):
BASKET_EMPTY_MSG = (By.CSS_SELECTOR, ".content #content_inner>p")
BASKET_PRODUCT_MSG = (... | [
"teleleichko@yandex.ru"
] | teleleichko@yandex.ru |
c9419c12a5a2b58cc3258952dbbc3f488068a8bc | 65e076e4fcc00a67faa0932b3f3a3d3a3a11e2aa | /sdk/python/pulumi_google_native/storage/v1/get_default_object_access_control.py | d7e320a4685f1c49586280a85d55cce7db4466c4 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | TheJaySmith-Google/pulumi-google-native | 816babe5c7316724e02d5b8b9d789df00262bb8e | 566c295a39fe8c3dd16e4a7894ff6de72423e5da | refs/heads/master | 2023-06-05T06:45:19.979837 | 2021-06-23T11:42:27 | 2021-06-23T11:42:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,824 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | TheJaySmith-Google.noreply@github.com |
33369f2041de58f20c39526e4e0e08a7c1f52a5c | 40bc99acbaf871f5a419b3031286f312e093a7ad | /easy/reverse_a_linked_list.py | 1c7e6bef039efce2bf7985474b270d1de956d503 | [] | no_license | jriall/leetcode | 6a8ab6b38e3f0b88fae7801ed05a6642b2583345 | 0ab43db81ff021515a9dc9dda194afc201e6c549 | refs/heads/main | 2023-07-02T05:57:38.735019 | 2021-08-01T20:03:23 | 2021-08-01T20:03:23 | 367,851,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Reverse a Linked List
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
prev = None
curr = head
while curr is not None:
next = curr.next
... | [
"jamesrariall@gmail.com"
] | jamesrariall@gmail.com |
2eae28c7fa08bb51acf12f123731a6ab546119a2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02678/s414292281.py | 97d83db94f93e164a8cc7ac0b09f9c74f8fae318 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from collections import deque
import sys
def bfs(graph, N, start):
visited = [0] * N
visited[start] = 1
que = deque([start])
while que:
node = que.popleft()
for n in graph[node]:
if not visited[n]:
visited[n] = node + 1
que.append(n)
return... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9c7d4712b7e24c23aea9d1643566d35934238f43 | d42cc3dd0c16f76a20ef587d644ae1667f346bcf | /reto3Innovaccion/settings.py | 8e4bb952139f655b9e4a9ad1ba8dc7a55716f297 | [] | no_license | JordiEspinozaMendoza/reto3InnovaccionTextTranslater | cbaeca8ba6aa316e2c9c704e8513d38530234ec0 | 87d49016e2cbb759d50039175405d17bd98af55e | refs/heads/master | 2023-03-12T04:09:54.917699 | 2021-03-02T21:07:52 | 2021-03-02T21:07:52 | 343,864,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | """
Django settings for reto3Innovaccion project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
imp... | [
"jordi8101@gmail.com"
] | jordi8101@gmail.com |
d0df4a156936b9bd93c3756c1e3b2bd145a542e4 | b84b66f071050213a18ea6824fae443271f7d166 | /1428_Leftmost_Column_with_at_Least_a_One_2.py | e074b8915a59dc4d9b94b267aebda4a4821a9b12 | [] | no_license | oveis/LeetCode | c4c400196de0cae4cd963384c7cb4826aa11e078 | 9ea466f1ebfd976b60dfa2ff2e8b0b2e5c99a9b3 | refs/heads/master | 2021-06-26T04:32:16.373204 | 2021-01-02T08:13:09 | 2021-01-02T08:13:09 | 192,046,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # """
# This is BinaryMatrix's API interface.
# You should not implement it, or speculate about its implementation
# """
#class BinaryMatrix(object):
# def get(self, row: int, col: int) -> int:
# def dimensions(self) -> list[]:
class Solution:
def leftMostColumnWithOne(self, binaryMatrix: 'BinaryMatrix') -> ... | [
"jinil@nyu.edu"
] | jinil@nyu.edu |
74b2428e8eaf11ec4bd404e4d49bb838a7e87703 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_two_20180630113126.py | 40ff7f505d9be75cca90239c4fd0381a77a08849 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 4,881 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import random
import numpy as np
import graph_tool.all as gt
from... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
6ca77baf8f0c103b52c8ffce4bdf0e0d90e2622e | 8107f81c7dc8dac7c53952926ebab057f116a8f3 | /blog/api/serializers.py | 9a1b7d666a5fc463af751d2f41d08bf6de62d394 | [] | no_license | EliasOPrado/blog-tutorial-rest-api | 8d230ee571bd1c480cb07a9473bfe148f34b6f9b | 73ba382f70d55112d736392d9c28e25a906b2bd4 | refs/heads/master | 2023-04-28T02:58:07.024498 | 2021-05-19T02:23:47 | 2021-05-19T02:23:47 | 368,720,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from rest_framework import serializers
from blog.models import Article
class ArticleSerializer(serializers.ModelSerializer):
""" serializer for Article model """
class Meta:
model = Article
fields = ['id','title','body','date','thumb']
| [
"eliaspradoprofessional@outlook.com"
] | eliaspradoprofessional@outlook.com |
04566c887a246b2ef2dc1a2b71d0dca3901ff7c5 | 19c198a6b7c39d5d5bf617071ff4e04da00bc37c | /algorithms/183_wood_cut.py | 98863b7589b37569e11783869ed7e55edfb0525e | [
"MIT"
] | permissive | corenel/lintcode | 3bed15e023468ab748f81bdad0f57288c90a10e7 | e985cc8541ad26352a4ae2c8c8e4a572a5368e43 | refs/heads/master | 2020-04-24T04:11:16.034144 | 2019-03-30T05:33:48 | 2019-03-30T05:33:48 | 171,694,555 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | """
Wood Cut
--------
Given n pieces of wood with length L[i] (integer array). Cut them into
small pieces to guarantee you could have equal or more than k pieces with
the same length. What is the longest length you can get from the n pieces
of wood? Given L & k, return the maximum length of the small pieces.
Note:
... | [
"xxdsox@gmail.com"
] | xxdsox@gmail.com |
522714e4caa5103a9795f009fa1463294845d0b4 | 560c5d8226d74969c3fb467efd1d26178562e15c | /blog_api/users/migrations/0015_auto_20210721_1901.py | 6a16d81fa6aa8e0015c2325fbfb9492b488a6acf | [
"MIT"
] | permissive | beasyx0/blog_api | 17f47fb1537d4b7e53822bbff507740363d909cc | 8d984ee3f9b2b7ea35a847013743f236a1a67fdb | refs/heads/main | 2023-06-30T02:08:40.190270 | 2021-08-04T02:09:53 | 2021-08-04T02:09:53 | 358,662,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # Generated by Django 3.1.13 on 2021-07-21 23:01
import blog_api.users.model_validators
import datetime
import django.contrib.auth.validators
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('users', '0014_auto_202107... | [
"b_easyx@protonmail.com"
] | b_easyx@protonmail.com |
63aeb60af75c6b0ad2bcf0476ced2e0c679c5996 | a8144d1075a4ec9b767c08b8cb5902c28ec15d20 | /test/unit/__init__.py | 0124c217a985827d24c25fc8e4539aa87155b0ba | [
"Apache-2.0"
] | permissive | awslabs/secrets-helper | bda018af3f1ff6ff9f230a406bfdc0aa03123406 | b34507a723a315e71315bf3bbadd93c9a62dca2d | refs/heads/master | 2023-03-17T17:02:41.357777 | 2020-06-09T22:39:18 | 2020-06-09T22:39:18 | 216,888,049 | 19 | 4 | Apache-2.0 | 2020-06-09T22:39:20 | 2019-10-22T18:56:47 | Python | UTF-8 | Python | false | false | 619 | py | # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | [
"noreply@github.com"
] | awslabs.noreply@github.com |
4427ca4be9ca42e35508d34f7bbc05ec21621486 | 4d1423898d94d199d565984cedf1da9dbc0614a2 | /tools/lint.py | c9cd691e1cea4b4aaa4e8491b1ef2d3d152bbbf8 | [] | no_license | axw/juju-docs | ad3511945dcdfbfd67a8710e591788e3fcac9168 | 67181dd49e7c144c51250dba459a8b100cea8b16 | refs/heads/master | 2021-01-16T21:36:38.797773 | 2015-05-05T14:58:20 | 2015-05-05T14:58:20 | 18,169,423 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | #!/usr/bin/python
import os
import re
import sys
import glob
from launchpadlib.launchpad import Launchpad
def color(status):
c = {'triaged': '\033[93m', 'new': '\033[91m', 'fix committed': '\033[92m',
'fix released': '\033[94m', 'esc': '\033[0m'}
return '%s%s%s' % (c[status.lower()], status, c['es... | [
"marco@ceppi.net"
] | marco@ceppi.net |
bcb02549ab4436d53558a77aff0d73cde1b9c142 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/interaction/interaction_event/tests/test__parse_token.py | 0310da49c53856353cc099dcfbe63e7f3d1f86b3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 398 | py | import vampytest
from ..fields import parse_token
def test__parse_token():
"""
Tests whether ``parse_token`` works as intended.
"""
for input_data, expected_output in (
({}, ''),
({'token': None}, ''),
({'token': ''}, ''),
({'token': 'a'}, 'a'),
):
output =... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
3f9d506adca3b8c79912718797db576cb56cbb2e | 567ecf4ea5afbd7eb3003f7e14e00c7b9289b9c6 | /ax/modelbridge/dispatch_utils.py | 367a015c37a4b83233b473aab3b949ff94bcc0e1 | [
"MIT"
] | permissive | danielrjiang/Ax | f55ef168a59381b5a03c6d51bc394f6c72ed0f39 | 43014b28683b3037b5c7307869cb9b75ca31ffb6 | refs/heads/master | 2023-03-31T12:19:47.118558 | 2019-12-02T16:47:39 | 2019-12-02T16:49:36 | 225,493,047 | 0 | 0 | MIT | 2019-12-03T00:09:52 | 2019-12-03T00:09:51 | null | UTF-8 | Python | false | false | 7,473 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import logging
from math import ceil
from typing import Optional, Tuple, Type, cast
from ax.core.parameter import ChoiceParameter, ParameterType, RangeParameter
from ax.core.search_space import SearchSpace
from ax.modelbrid... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.