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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db75fe7c8c874f31cb4f81cf4169470d68c8a848 | efe3c9ad40200e6a4cc54ade2867e455687eb11b | /games/migrations/0008_auto_20180331_2134.py | 3d437be4fabb2fe3d4a517cd5225dc4bec5a3e20 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | andrewhstead/stream-three-project | bec3b70b354b812d1a875ee4e305377038fe179b | 60e5f946455f12019a266b8231737435702ff95e | refs/heads/master | 2023-06-23T17:53:09.379297 | 2023-06-13T16:09:22 | 2023-06-13T16:09:22 | 126,410,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-31 20:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('games', '0007_auto_20180331_2132'),
]
operations ... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
0b5aa09befc5d6623bbda3bceae433a27773e85b | 154f24699c63858703b4538afc0213594f08b0b6 | /scripts/make_csv.py | 25e613e9b21cdb2dd288b978acb42fd68ac8a778 | [] | no_license | inpho/loc-ucsd | 225f936d2ba88df057ea5f82f60053141686a80e | a9c7e7fded841bd0376f944b102f151260ae5e44 | refs/heads/master | 2020-05-30T03:53:19.006317 | 2014-03-03T23:45:55 | 2014-03-03T23:45:55 | 8,609,923 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | import csv
import json
htrc1314 = []
htrc86 = []
htrc6 = []
volumes6=["uc2.ark+=13960=t5w66bs1h",
"uc2.ark+=13960=t6057f659",
"uc2.ark+=13960=t74t6gs0m",
"uc2.ark+=13960=t0ht2h954",
"uc2.ark+=13960=t05x26n0d",
"uc2.ark+=13960=t5p84550z"]
with open('htrc86.json') as jsonfile:
data = json.load(jsonfile)
volumes... | [
"jaimie.murdock@gmail.com"
] | jaimie.murdock@gmail.com |
7810e6d0ddb5c42ab6ac22acf76b020cae5fbfe5 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /hackerrank/stacks_and_queues/minMaxRiddle.py | 1213aa229e6ad165d187dd216a80db0c7da76999 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the riddle function below.
def riddle(arr):
size = 1
mxwindows = []
# size variation from 1 to s
while size <= len(arr):
windows = []
# looping the given array for a specfic size windows
... | [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
94e38d57514d665ad47c7511ea77607377e6c50f | 9962f123178e8ecd13ab806957c759092f8e4dea | /runner | 4ca1228feec61ade89bed3167b63eae599d86ff9 | [] | no_license | mrcleanspleen/Otto | b1a40af241459a00d5b9c43fc3d94401940cd835 | ca5662bd57a672f76eb52b9138892ec6658a9aa2 | refs/heads/master | 2021-01-01T17:40:48.157654 | 2017-08-06T22:52:54 | 2017-08-06T22:52:54 | 98,131,827 | 0 | 0 | null | 2017-07-23T23:34:27 | 2017-07-23T23:34:27 | null | UTF-8 | Python | false | false | 308 | #!/usr/bin/env python3
import os, sys
if len(sys.argv) > 1:
message = ' '.join(sys.argv[1:])
else:
message = input('message > ')
os.system("cd ~/go/src/Otto;go run main.go \"{}|~|{}|~|{}|~|{}\"".format(message,"someone","iMessage;+;chat508017006480766416","/Users/Peter/go/src/Otto/settings.json"))
| [
"peter.a.stenger@gmail.com"
] | peter.a.stenger@gmail.com | |
1686c97446c59e59d5ac28c92c003dd5acb9e0d9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_0/Python/jessethegame/jam.py | 1d7b96443962d2c3ac3bc0d727483d6e97400d75 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import sys
def run(func):
with open(sys.argv[1]) as handle:
count = int(handle.readline())
for x in range(count):
yield func(handle)
def output(data):
return '\n'.join('Case #{}: {}'.format(*pair) for pair in enumerate(data, start=1))
def test(func):
print output(run(func))
d... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
f3fd5b33b3f748d30f2c5d9c8263f923560685a8 | 728e9c50fa2c1d71f1c3b40185646ef9fcafa632 | /Tests/Crawl.py | 26775c3c89265e86b899d60d2fe24ab1de8ee8c2 | [] | no_license | ChethanaSR/Python_SDK | 7d9d8bc16ae092f695cf79c43d8d5b12e37ba193 | 524b17a70c91c58a591fe9a70f81e3f8b513546e | refs/heads/master | 2020-07-28T00:46:35.691339 | 2019-09-18T08:39:36 | 2019-09-18T08:39:36 | 209,258,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | import os
import openpyxl
import time
import dicttoxml
from datetime import datetime
from xmldiff import main
import pandas
import csv
import xml.etree.ElementTree as et
from dateutil.parser import parse
def xml_csv_comp_filter_for_timepoint():
#csv_file = "C:\\Users\\rchethana\\Documents\\SDK_Automation\\XML-Te... | [
"rchethana@shravas.com"
] | rchethana@shravas.com |
c45bf780b6a96b8e03e6aa3578470e50da49f78a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03062/s756793407.py | 4429176fdd3b72784590ffe51d12a6c3b81dbeca | [] | 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 | 381 | py | N = int(input())
A = list(map(int,input().split()))
minus_cnt = 0
abs_sum = 0
min_abs_val = 1000000000
for i in range(N):
val = A[i]
abs_val = abs(val)
abs_sum += abs_val
if abs_val < min_abs_val:
min_abs_val = abs_val
if val < 0:
minus_cnt += 1
B_max_sum = abs_sum
if minus_cnt % 2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c7469e01212ca09d05235f188a78d379f4e444ea | 14a77f28e43f078a0737b2dbaf682210739ba6c0 | /decisions/factories/event.py | 85bb70e33993b14609466b85a83255812030ddd6 | [] | no_license | tuomas777/paatos | f58e15ee6c5c7bd87d6e015f6bf9eae020aba77b | 79fe20768f6dd6c7ed8bae22eaf20961bbba8fa7 | refs/heads/master | 2020-04-05T22:43:21.254187 | 2016-11-22T07:40:58 | 2016-11-22T07:40:58 | 68,003,356 | 0 | 0 | null | 2016-11-24T14:01:26 | 2016-09-12T11:30:31 | Python | UTF-8 | Python | false | false | 315 | py | import factory
from faker import Faker
from decisions.models import Event
fake = Faker()
fake.seed(7)
class EventFactory(factory.django.DjangoModelFactory):
class Meta:
model = Event
name = fake.text(max_nb_chars=20)
description = fake.paragraph(nb_sentences=5)
start_date = fake.date()
| [
"tuomas.haapala@anders.fi"
] | tuomas.haapala@anders.fi |
f7c1891ca323b5da4d72a7b2ea564c4f7f9cb834 | 6a44e772dfdec969f5e2af430f0bf3a35eb73c4e | /src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_name.py | a1f3796d70a9efdf4d82846aaa69862e31effa9d | [
"MIT"
] | permissive | lurumad/autorest | ecc4b1de223e4b4cdd226a3cf922a6940dbddd34 | fef0c4c9e7fdb5c851bdb095d5a2ff93572d452e | refs/heads/master | 2021-01-12T11:07:39.298341 | 2016-11-04T03:12:08 | 2016-11-04T03:12:08 | 72,835,570 | 1 | 0 | null | 2016-11-04T09:58:50 | 2016-11-04T09:58:50 | null | UTF-8 | Python | false | false | 1,088 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"noreply@github.com"
] | lurumad.noreply@github.com |
a9055249ac9757566ae617d69563511b808fd3eb | 8e2404c7bcfd28329bed789839192b2c4e85ea1b | /Hackerrank/QueuesUsingTwoStacks.py | 9b00afd7b1e775d9d4a9da9534e24dd79876baf2 | [] | no_license | Pabitra-26/Problem-Solved | 408bd51bbffc69f8c5e1def92797c2e6f027f91d | c27de1dd6c4ad14444fa5ee911a16186c200a7f9 | refs/heads/master | 2023-07-30T16:51:28.062349 | 2021-09-27T06:06:54 | 2021-09-27T06:06:54 | 269,935,039 | 2 | 0 | null | 2021-09-27T06:06:55 | 2020-06-06T09:39:33 | Python | UTF-8 | Python | false | false | 1,000 | py | # Problem name: Queues using two stacks
# Description: A queue is an abstract data type that maintains the order in which elements were added to it, allowing the oldest elements to be removed from the front and new elements to be added to the rear. This is called a First-In-First-Out (FIFO) data structure because the ... | [
"noreply@github.com"
] | Pabitra-26.noreply@github.com |
1a1e4043f7335ec73f9c0f3e8eae6e2840b83d9e | 9af2ae16b962c5dbed8497df9513f4f39dc4a3c4 | /muke_class/chp2/a5_keras_dnn.py | 6b2757395bffe590dce2acc95d0470020230563b | [] | no_license | Freshield/LEARN_Tensorflow2 | 4170d2158c2e73485fcc7828b09ea96834efe838 | e2e139525aeac504949929330ef4b58cf91816c6 | refs/heads/master | 2021-07-04T05:38:47.709291 | 2020-11-02T09:18:19 | 2020-11-02T09:18:19 | 194,585,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | #coding=utf-8
"""
@Author: Freshield
@License: (C) Copyright 2018, BEIJING LINKING MEDICAL TECHNOLOGY CO., LTD.
@Contact: yangyufresh@163.com
@File: a5_keras_dnn.py
@Time: 2019-04-07 15:17
@Last_update: 2019-04-07 15:17
@Desc: None
@==============================================@
@ _____ _ _ _ ... | [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
32507525464d06c8ae7fcde041d434d4c05239d5 | 2154d0221e29a86850a1b83e4302f6e3e3f7fa5d | /mock_example/MySQLdb_fun.py | b9a062f6ef8f96908705df3b76dba64e7143ce26 | [] | no_license | aaqqxx/simple_for_life | 3b8805c6791da6a3a7f42c069dc1ee7d2b8d3649 | 9ad6d61a56216d04250cd89aeaeda63c11942d0a | refs/heads/master | 2020-04-04T09:18:59.396540 | 2015-04-28T11:22:55 | 2015-04-28T11:22:55 | 20,906,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | __author__ = 'XingHua'
import MySQLdb
def Foo():
conn = MySQLdb.connect(host='localhost',
user='root', passwd='abc123', db='test')
cursor = conn.cursor()
cursor.execute('SELECT * FROM people')
id, name = cursor.fetchone()
print id, name
if __name__ == '__main__':
... | [
"aaqqxx1910@gmail.com"
] | aaqqxx1910@gmail.com |
7a362af386f8e7f440301bda660837fbb6449fd7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04000/s468061454.py | c59bfc6f1c8081389083fc960c22dd4c3ba08cda | [] | 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 | 573 | py | import sys
input=sys.stdin.readline
h,w,n = map(int, input().split())
l=[list(map(int,input().split())) for i in range(n)]
from collections import defaultdict
d = defaultdict(int)
for tmp in l:
y=tmp[0]-1
x=tmp[1]-1
for i in [-1,0,1]:
for j in [-1,0,1]:
if 1<=x+i<w-1 and 1<=y+j <h-1:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
050fdaa4b74799a5ef129833fa9542b5f9cd5b3f | 479ad544171d18a4da1bd109a44fa5c42e075a17 | /fantom_util/fantom_util/graph_tools/named_entity_merging.py | 4906e466e823da456fda67718befeee0e58b34ec | [] | no_license | kth-social-robotics/fantombot | c329a7ec716dff4e74ad2420c46239705d285647 | 1fef1bc98a6aab2a6534e74f7d464b758162fe87 | refs/heads/master | 2020-06-03T00:29:36.239228 | 2019-08-27T13:41:51 | 2019-08-27T13:41:51 | 191,361,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # want to look through utterances of the children of this node, match them with movies in named entity model and
# merge those that are in there and don't have any children
from fantom_util.database import db_session
from fantom_util.database.models import Node
from fantom_util.feature_extraction.named_entities import... | [
"pjjonell@kth.se"
] | pjjonell@kth.se |
5738a33d087f1c4d0d34dd5308dddb244d93680c | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/1000~2999/1764_듣보잡.py | 5de8248dba6fbb77fcee6925ba8bf1bb62089cef | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | N, M = map(int, input().split())
arr = []
arr2 = []
for i in range(N):
arr.append(input())
for i in range(M):
arr2.append(input())
a = list(set(arr) & set(arr2))
a.sort()
print(len(a))
for i in a:
print(i) | [
"gusdn3477@naver.com"
] | gusdn3477@naver.com |
482c535cae406f32ff74169addb0665a8ded5130 | 1c6866a37fddb455d5dd9a9db100415cd83b2429 | /sanic官方教程/请求数据/1-query_string.py | ea1c30bdd144eb58accc93598360f7fde417f8ef | [] | no_license | zb14755456464/sanic | e860bc140eab8725aa1410096edecd511163121d | 66462923b367c52edab15df6f33705b215f75174 | refs/heads/master | 2021-01-24T08:12:36.021336 | 2019-05-21T12:41:30 | 2019-05-21T12:41:30 | 122,973,882 | 0 | 1 | null | 2019-05-21T12:39:57 | 2018-02-26T13:29:12 | Python | UTF-8 | Python | false | false | 455 | py | from sanic.response import json
from sanic import Sanic
app = Sanic(__name__)
@app.route("/query_string")
def query_string(request):
# http://127.0.0.1:8000/query_string/?a=1&b=2&a=2
# {"args":{"a":["1","2"],"b":["2"]},"url":"http:\/\/0.0.0.0:8000\/query_string\/?a=1&b=2","query_string":"a=1&b=2"}
retu... | [
"1273844671@qq.com"
] | 1273844671@qq.com |
f3beb823bc4165ce7b933f2a83ac81d6221ac32d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/Smetterleen/qual1.py | 654f790f055710cb8fefb7ee19fcf863c683bdcd | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 891 | py | '''
Created on Apr 9, 2016
@author: joep
'''
import os
ds_type = 'large'
BASE = os.path.dirname(os.path.realpath(__file__))
inf = open(os.path.join(BASE, 'A-large.in'.format(ds_type)), 'r')
outf = open(os.path.join(BASE, '{}.out'.format(ds_type)), 'w+')
cases = int(inf.readline())
for case in range(cases):
n =... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
61c1eed9e08a33eaff443e4f2b977508ffb9b5d3 | f47ec2cffc71196679bb165d4c7d6de3b6884e33 | /src/pretalx/submission/forms/tag.py | 183749f9de658767e5f72ff6820a9051bcd32ec1 | [
"Apache-2.0"
] | permissive | toshywoshy/pretalx | 874bed725df48db47f118ff021340d0d34eca98a | 14619a4cb7d46df1434c8835abbac6f155c37626 | refs/heads/master | 2023-01-08T11:16:44.992557 | 2021-11-02T12:24:30 | 2021-11-02T12:24:30 | 179,450,372 | 0 | 0 | NOASSERTION | 2023-01-06T22:04:49 | 2019-04-04T08:00:38 | Python | UTF-8 | Python | false | false | 933 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
from i18nfield.forms import I18nModelForm
from pretalx.common.mixins.forms import I18nHelpText, ReadOnlyFlag
from pretalx.submission.models import Tag
class TagForm(ReadOnlyFlag, I18nHelpText, I18nModelForm):
def __init__(self, *arg... | [
"r@rixx.de"
] | r@rixx.de |
cfb3ff4f069ff67a31f55f2ba1d579cd20f195c9 | 1cf380b819a399c3f58a7ad13f5daeb5659cead3 | /wrf_management/real.py | 72fdb321a3d7e8e409ac03baf1527db36cdaafb4 | [] | no_license | daliagachc/wrf_management | dd88cf5d6279457f4e2b414acfa0d0cbaaad3873 | 4ee88c668ed0252e68713aa756b74344ecada615 | refs/heads/master | 2021-06-13T09:39:08.477315 | 2021-04-09T14:43:21 | 2021-04-09T14:43:21 | 171,271,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | # project name: wrf_management
# created by diego aliaga daliaga_at_chacaltaya.edu.bo
import glob
import os
import pathlib
from collections import OrderedDict
import wrf_management.project_global_constants as gc
import sqlite3 as sq
import pandas as pd
import wrf_management.run_utilities as ru
import f90nml
def skim... | [
"diego.aliaga@helsinki.fi"
] | diego.aliaga@helsinki.fi |
8d938e45ee0ced99172d7b4a614d66203d5bb8f6 | 933ed73cdf117fc6c88c1ebba7a17b82807a16e8 | /docs/02.AI_ML/code-1905/day06/demo09_cv.py | c74d27eecf9adec52575b547693ae52533582b4a | [
"Apache-2.0"
] | permissive | wan230114/PythonNote | c4fff80f6f3849ed0b0346526d3c6197a4867d2c | f4989a44c03efdcea3f7aa3484e3470e7fd983eb | refs/heads/master | 2023-01-28T14:51:07.304066 | 2023-01-12T18:38:16 | 2023-01-12T18:38:16 | 242,367,069 | 5 | 6 | Apache-2.0 | 2021-01-05T23:35:10 | 2020-02-22T15:45:01 | JavaScript | UTF-8 | Python | false | false | 395 | py | """
demo09_cv.py 词袋模型
"""
import nltk.tokenize as tk
import sklearn.feature_extraction.text as ft
doc = 'The brown dog is running. ' \
'The black dog is in the black room. ' \
'Running in the room is forbidden.'
# 对doc按照句子进行拆分
sents = tk.sent_tokenize(doc)
# 构建词袋模型
cv = ft.CountVectorizer()
bow = cv.fit_... | [
"1170101471@qq.com"
] | 1170101471@qq.com |
648086fac69850c8b63b8de728580fbc618e210f | 6061ebee9fbce8eb5b48ed7ccd2aecb196156598 | /modulo03-estruturascondicionais/exercicios/exercicio11.py | 19004de489822a3a78156123ac1ad86c8d4f0533 | [] | no_license | DarioCampagnaCoutinho/logica-programacao-python | fdc64871849bea5f5bbf2c342db5fda15778110b | b494bb6ef226c89f4bcfc66f964987046aba692d | refs/heads/master | 2023-02-24T11:45:29.551278 | 2021-01-26T22:02:49 | 2021-01-26T22:02:49 | 271,899,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | horas = int(input('Horas:'))
if horas >= 0 and horas <= 11:
print('Bom Dia')
elif horas >= 12 and horas <= 17:
print("Boa Tarde")
elif horas >= 18 and horas <= 23:
print("Boa Noite")
else:
print("Digite Novamente")
| [
"campagnacoutinho67@gmail.com"
] | campagnacoutinho67@gmail.com |
939bf81f702844980e7c9e5256af2fa6085d426a | 2c7b6ceffd09dae72d18a573a82d3a4c1d105e06 | /EXAMPLES/defaultdict_fruitnames.py | 14e449c1024ce3c9c3eee0cfc15d25f4b4c44901 | [] | no_license | feleHaile/20180813JPL | c23144a2139bc256e86a81a4402dc6ace0bb2791 | 09af77d98a9eeea193760aacff52b21fac8fc920 | refs/heads/master | 2020-05-15T22:31:14.922844 | 2018-08-16T21:59:40 | 2018-08-16T21:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | #!/usr/bin/env python
#
from collections import defaultdict
from pprint import pprint
fruits = ["pomegranate","cherry","apricot","date","apple","lemon","kiwi",
"orange","lime","watermelon","guava","papaya","fig","pear","banana",
"tamarind","persimmon","elderberry","peach","blueberry","lychee",
"grape" ]
fruits_by_fi... | [
"jstrickler@gmail.com"
] | jstrickler@gmail.com |
f897bc4ebb70621584bc23fe028dcaa3e6e152ec | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_6695.py | 6799ccfe76a1aae3be3037e8f110140980d21e5d | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | # What is the proper way to track indexes in python?
for index, entry in enumerate(longList):
if entry == 'foo':
print index
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0a7c1810b71bc1d74a6427857b8fba73dcd596f5 | e9ed8174f0e2f52f858f0dd8b9206eb57388ece2 | /JssProject/JssProject/asgi.py | 54480fbeb22c73b1ed8de2d0c993cab07e905d18 | [] | no_license | Tedhoon/JasoseolProject | bb061dc1ed0cf0a0842a2c046c4434ccb80263a5 | 9500edabb35242f2974443a8b0fa43e5e3435484 | refs/heads/master | 2022-11-11T03:40:04.564877 | 2020-06-28T07:02:28 | 2020-06-28T07:02:28 | 275,432,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
ASGI config for JssProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefau... | [
"gt0305@likelion.org"
] | gt0305@likelion.org |
62f6fefadf2e85580056e2d9ccbd8b06d40759b8 | 0203e5a6d7beb1e0f83113dac4c167b171756f24 | /lib/spdk-19.10/test/json_config/clear_config.py | 5328e6dc19c40496c6295697584810b4c20d3e50 | [
"BSD-3-Clause"
] | permissive | Wonchul08Lee/poseidonos | eaafe277fc56a0f5b5fcca3b70acc9bfe5d5d1ae | 6fe410cdf88f3243ad9210f763c2b5a2f7e8b46a | refs/heads/main | 2023-03-30T13:41:09.660647 | 2021-04-08T06:43:26 | 2021-04-08T06:43:26 | 355,819,746 | 0 | 0 | BSD-3-Clause | 2021-04-08T08:17:27 | 2021-04-08T08:17:26 | null | UTF-8 | Python | false | false | 7,593 | py | #!/usr/bin/env python3
import os
import sys
import argparse
import logging
sys.path.append(os.path.join(os.path.dirname(__file__), "../../scripts"))
import rpc # noqa
from rpc.client import print_dict, JSONRPCException # noqa
def get_bdev_name_key(bdev):
bdev_name_key = 'name'
if 'method' in bdev and bdev... | [
"poseidonos@samsung.net"
] | poseidonos@samsung.net |
a38336c56207fb0e1d51bcc216cb54f334e4f6c4 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/35ca52050200eb7a7d7dee4ba4da4e4a6c9da1320007_populate_computer.py | 35ca52050200eb7a7d7dee4ba4da4e4a6c9da132 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def initial_data(apps, schema_editor):
SC = apps.get_model('ship', 'ShipComputer')
SC(name='None', beamattack=0).save()
SC(name='Electronic', beamattack=25).save()
SC(name='Optronic', beamattack=50).save(... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
463f2b8c0b5c8c46db28eb503109fe4db542aa86 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/dossiers2/custom/helpers.py | f05bfc017fe3b9514391e58a82f275ee50d3af3d | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,786 | py | # 2017.05.04 15:28:51 Střední Evropa (letní čas)
# Embedded file name: scripts/common/dossiers2/custom/helpers.py
from dossiers2.custom.records import RECORDS, RECORD_INDICES
from dossiers2.custom.cache import getCache
def getTankExpertRequirements(vehTypeFrags, nationID = -1):
cache = getCache()
killedVehType... | [
"info@webium.sk"
] | info@webium.sk |
cd04e4a74fe6f82b608519b7387f62b22d627744 | b643abbcfb5dc46a2d311f179f740cbe44f6a922 | /manage.py | 420d5ab4bec8ad6485ebd9ef3286367cc3685146 | [] | no_license | safwanvk/productivity | e7126d2ce77649e80ada365ab4616baa91b289ec | 141598632da0acd6c47ff34446ccbef9f7b980ac | refs/heads/main | 2023-03-10T19:06:57.589215 | 2021-03-01T14:41:24 | 2021-03-01T14:41:24 | 342,141,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProductivityApp.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
7c22ed802147373cbca2af023716a1833bc12ada | 1adf769cf9234f9b6c619f808d2723b99451d679 | /rusentrel/classic_cv/ctx/ian_ef.py | 63e565c7b73f84faf7767733f0cbdada3e14c82b | [
"MIT"
] | permissive | DAVMARROS/attitude-extraction-with-attention-and-ds | 4e85fa154ead0cd9499aaedf5d752ac565f37b92 | fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d | refs/heads/master | 2023-02-09T04:56:24.090380 | 2020-12-30T10:09:34 | 2020-12-30T10:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('../../../')
from rusentrel.classic.ctx.ian_ef import run_testing_ian_ef
from rusentrel.classic_cv.common import CV_COUNT, \
classic_cv_common_callback_modification_func, \
CV_NAME_PREFIX
if __name__ == "__main__":
run_testing_ian_ef(
... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
aa37bb217f03cac2488f3606a6f1a5a26f41559f | 3d37f595a8aaaa7c5723ddbd6758ecac5147dce2 | /maximum-subarray/maximum-subarray.py | bf5f661dd48593b947036ae83c3e2e79e0d320f9 | [] | no_license | baggy2797/Leetcode | ec218b155ebb972cd793253f25c3e18117216703 | 469c1541579401768f7a1da55d504a9e8656b21e | refs/heads/main | 2023-06-24T17:03:42.708935 | 2021-07-16T22:31:24 | 2021-07-16T22:31:24 | 342,979,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | class Solution:
def maxSubArray(self, nums: List[int]) -> int:
globalMax = nums[0]
currMax = nums[0]
for i in range(1,len(nums)):
currMax = max(currMax+nums[i],nums[i])
globalMax = max(globalMax,currMax)
return globalMax | [
"bhagwataditya226@gmail.com"
] | bhagwataditya226@gmail.com |
d2303bbedd1e575b6704b5320400a954d0ca9015 | a5718006e28b394633c4e84e75e7941cb4c11a08 | /TD 1 probleme 55 Arthur Lambert.py | 16a3dfdd20ce6ec98cfeb59b80e0126829370564 | [] | no_license | mines-nancy-tcss5ac-2018/td1-ArthurLambert1 | ab883b105e7a5341524032a5bf89c866861f5dd4 | 4e65a396b52e2fe5a7452d78ca0f739260beb854 | refs/heads/master | 2020-03-31T00:16:09.032475 | 2018-10-05T20:41:03 | 2018-10-05T20:41:03 | 151,733,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | def nombreMiroir(x): #Retourne le nombre à l'envers
chaine = str(x)
chaineRenversee = ''
for elt in chaine:
chaineRenversee = elt + chaineRenversee
return int(chaineRenversee)
def testPalindrome(x): #Teste si un nombre est palindrome ou non
return x == nombreMiroir(x)
def tes... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
594c3f8d10249ae15900bb0604641c8dd1f64ec3 | 933a4f98b3ab1df987bce525d20ca904b225140f | /scripts/slave/recipe_modules/buildbucket/tests/put.py | cd433ecae9b207c24dc57c1e52b530ea49713fe2 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-build | 3881c489b4d9be2f113da755487808b3593f8156 | f8e42c70146c1b668421ee6358dc550a955770a3 | refs/heads/master | 2020-12-30T12:32:15.685191 | 2017-05-17T06:58:18 | 2017-05-17T06:58:18 | 91,419,271 | 0 | 2 | NOASSERTION | 2020-07-22T09:27:35 | 2017-05-16T05:52:45 | Python | UTF-8 | Python | false | false | 1,518 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'buildbucket',
'service_account',
'recipe_engine/properties',
]
def RunSteps(api):
example_bucket = 'master.user.username'
build_... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
6a927d7f4c1bd6bbb8a99700a2b23ada0d6bd2ab | 91ff6fdf7b2ccc58869d6ad41842f230644952c1 | /requirements/venky_task/important/textwrap.py | 11f82c6c9c166647506b48126e9b1c74f97a3d77 | [] | no_license | KONASANI-0143/Dev | dd4564f54117f54ccfa003d1fcec4220e6cbe1f9 | 23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e | refs/heads/master | 2023-08-14T15:59:59.012414 | 2021-10-13T14:54:49 | 2021-10-13T15:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import textwrap
sample_text = '''
Python is a widely used high-level, general-purpose, interpreted,
dynamic programming language. Its design philosophy emphasizes
code readability, and its syntax allows programmers to express
concepts in fewer lines of code than possible in languages such
as C++ or Java.
''... | [
"harinadhareddypython@gmail.com"
] | harinadhareddypython@gmail.com |
37c0f4f4f38905db494572485aff0acda8d01ef6 | 21a15af3e5b38d1cb10a107c2b66b0f712b49753 | /final_project/combine_pred/clean_mgdb.py | 3c242cf452a390a095112304c7c42cb3ecf45c4a | [
"MIT"
] | permissive | dbirman/cs375 | 00793f07730e9d606e6c83125d1d16ad337f1a1c | 7aeac1ed57eff74cbecb3e1091b01f00d34629a8 | refs/heads/master | 2021-05-08T06:28:28.505935 | 2017-12-15T02:19:27 | 2017-12-15T02:19:27 | 106,620,325 | 0 | 2 | MIT | 2017-12-13T02:47:25 | 2017-10-11T23:33:22 | Jupyter Notebook | UTF-8 | Python | false | false | 2,111 | py | from __future__ import division, print_function, absolute_import
import os, sys
import numpy as np
import cPickle
import json
import copy
import argparse
import pymongo as pm
import gridfs
def get_parser():
parser = argparse.ArgumentParser(description='The script to delete the models saved in mongodb')
parse... | [
"ianeisenberg90@gmail.com"
] | ianeisenberg90@gmail.com |
3c10902f7900b2106e7a058e821f3ff2c015af73 | d0b52237c314fbae746a3922205c7f3c22c99498 | /server/runserver.py | bc997c42cae9f2a2a678909f3e02796ebcc9a5f0 | [] | no_license | kallebefelipe/spotify-albums | 5a7e9db6729351477e89ff5bdb7d7a10fd310393 | 44b16225a950f9a1580ede8c317af688b6d73dec | refs/heads/master | 2022-12-10T16:45:43.685587 | 2019-10-30T00:54:49 | 2019-10-30T00:54:49 | 217,175,675 | 0 | 0 | null | 2022-12-10T06:37:08 | 2019-10-24T00:08:25 | JavaScript | UTF-8 | Python | false | false | 618 | py | from flask import request, Flask
import requests
import json
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
@app.route('/token', methods=['GET'])
def login():
if request.method == 'GET':
url = "https://accounts.spotify.com/api/token"
payload = {
'grant_type': "client_cre... | [
"kallebefelipe@gmail.com"
] | kallebefelipe@gmail.com |
35d34c6d612853fb568231e774c9d4634b8cd4de | 025f930f0d342d116604a185103d13826d7ac360 | /GenericApiViews2/api/views.py | a61030fbcd532dfad511ff531fd4e9a4cc35ca15 | [] | no_license | moinakmalkhan/Learn-Django-Rest-Framework | 196c30591ed43ef7722cb22dea600a5ddcc0b8cf | de2ce66779525647d582998450a47558b70376f9 | refs/heads/master | 2023-09-03T08:51:50.346047 | 2021-11-14T15:48:23 | 2021-11-14T15:48:23 | 426,378,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | from .serializers import StudentSerializer
from .models import Student
from rest_framework.generics import ListAPIView, CreateAPIView, RetrieveAPIView, UpdateAPIView, DestroyAPIView, ListCreateAPIView, RetrieveDestroyAPIView, RetrieveUpdateAPIView, RetrieveUpdateDestroyAPIView
class StudentList(ListAPIView):
query... | [
"moinakmalkhan@gmail.com"
] | moinakmalkhan@gmail.com |
61979b816a8ccba14cde24e7256aaea343707468 | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/kratos/python/test/test_update_login_flow_with_totp_method.py | 1a1c70aa5b19aa111a665097c39a43f3b7ef81ef | [
"Apache-2.0"
] | permissive | ory/sdk | fcc212166a92de9d27b2dc8ff587dcd6919e53a0 | 7184e13464948d68964f9b605834e56e402ec78a | refs/heads/master | 2023-09-01T10:04:39.547228 | 2023-08-31T08:46:23 | 2023-08-31T08:46:23 | 230,928,630 | 130 | 85 | Apache-2.0 | 2023-08-14T11:09:31 | 2019-12-30T14:21:17 | C# | UTF-8 | Python | false | false | 1,061 | py | """
Ory Identities API
This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more. # noqa: E501
The version of the OpenAPI document... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
50d95be7ef2ce5d4a134ccc436ebc29970f1a7f8 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/__init___parts/AreaTag.py | 332d52a8e52d3635319402c9944936eaa97a724a | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 1,410 | py | class AreaTag(SpatialElementTag,IDisposable):
""" Provides access to the area topology in Autodesk Revit. """
def Dispose(self):
""" Dispose(self: Element,A_0: bool) """
pass
def getBoundingBox(self,*args):
""" getBoundingBox(self: Element,view: View) -> BoundingBoxXYZ """
pass
def ReleaseUnmanagedR... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
ec944233f08b6b31e0c6a20e89a857540fba1341 | 504efba4ab5ba1721ab3388144b16fa5f24833e7 | /05_Chroma_Scan_NoSC/02_04/simulation_parameters.py | 3e62fc436c63071f23e47fade4bde02984f16c0f | [
"MIT"
] | permissive | HaroonRafique/PS_Transfer | b568fe41c98357877c3bc63b2ca89f8724439da0 | 59ed8a0978ba4699f34c9f7a2500e0026759a2b6 | refs/heads/master | 2023-05-25T21:13:36.586605 | 2020-07-10T07:41:40 | 2020-07-10T07:41:40 | 213,405,455 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | import numpy as np
parameters = {}
dps = [-2.5E-3, -2E-3, -1.5E-3, -1E-3, -0.5E-3, 0, 0.5E-3, 1E-3, 1.5E-3, 2E-3, 2.5E-3]
parameters['dpp_rms'] = dps[3]
parameters['x_offset'] = 0.#50E-6 # 50 micron orbit offset to begin oscillation
parameters['n_macroparticles'] = int(5E4) # int(5E5)
# Include machine (PS), t... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
46e9e80b3ef30dbb6efd906e9158852e265a5b91 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_4811_test.py | 2bbaf2d77f1cba7d0e6a4e8ea3c6a6fc24a2c090 | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 7,408 | py | #coding:utf-8
"""
ID: issue-5109
ISSUE: 5109
TITLE: Make user names behave according to SQL identifiers rules
DESCRIPTION:
JIRA: CORE-4811
FBTEST: bugs.core_4811
"""
import pytest
from firebird.qa import *
substitutions = [('set echo.*', ''), ('Use CONNECT or CREATE DATABASE.*', ''),... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
efeb6964d4ee7986f15a1bfc4dc59835f24a8359 | af9268e1ead8cdb491868c14a2240d9e44fb3b56 | /last-minute-env/lib/python2.7/site-packages/django/core/management/sql.py | 5cc7aaf4f51755cba6b812d95cb2f39c8ea9b876 | [] | no_license | frosqh/Cousinade2017 | d5154c24c93ca8089eeba26b53c594e92cb6bd82 | c34d5707af02402bf2bb7405eddc91297da399ff | refs/heads/master | 2021-01-20T07:57:34.586476 | 2017-10-22T18:42:45 | 2017-10-22T18:42:45 | 90,074,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from __future__ import unicode_literals
from django.apps import apps
from django.db import models
def sql_flush(style, connection, only_django=False, reset_sequences=True, allow_cascade=False):
"""
Returns a list of the SQL statements used to flush the database.
If only_django is True, then on... | [
"frosqh@gmail.com"
] | frosqh@gmail.com |
35239d3462f35f0aad5fdfef0333f99b1a39b0e5 | 473d3edf1cc1fda57f7da875c16dc93a4ebbdb23 | /blog/migrations/0001_initial.py | 56ca95d90d3ca7a5f27d1d98cd9b39041a7ceb8e | [] | no_license | nelliejellie/blog | df9a61bc40f8589252591528ed238b8010a17e53 | b629c8d3e2dd20b64c960f6f1f6f8bc7c62f95a4 | refs/heads/master | 2022-06-24T01:35:21.104705 | 2020-05-08T20:07:13 | 2020-05-08T20:07:13 | 261,609,317 | 0 | 0 | null | 2020-05-08T20:07:14 | 2020-05-05T23:57:54 | JavaScript | UTF-8 | Python | false | false | 1,365 | py | # Generated by Django 3.0.2 on 2020-04-29 09:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"emekaewelike@gmail.com"
] | emekaewelike@gmail.com |
06e39ae81eeb08e88f62ee72fdeb30b8088d12d1 | 4d8f7abf3ec6ff049815663f1c3c0f85926caab9 | /SF2D/Compute_renorm_HT_4tops.py | cbe5a6bbc3a44497c365ea653ac9440806ccf4c5 | [] | no_license | daniel-sunyou-li/ChargedHiggs | 07e160d92ae628ed950a1e13e9bbe41aabfa69d1 | 282139b9cee9788a2fc6c536c86cc4731e4f7de7 | refs/heads/master | 2023-08-06T06:27:44.969889 | 2021-08-06T14:42:00 | 2021-08-06T14:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | import ROOT
import sys
import numpy
import argparse
import array
from ROOT import TFile, TTree
parser = argparse.ArgumentParser(description="compute the renormalization factors for charged Higgs analysis")
parser.add_argument("-f", "--file", default="", help="The path to the analysis tree")
parser.add_argument("-l", ... | [
"jingyu.luo@cern.ch"
] | jingyu.luo@cern.ch |
c78eff018f1221cf0e9bbbe56bc0e7d2cb566ff7 | fca3644a3ab3c83bba33fb7a9a3bd94538a4dd5c | /drive/web/front/forms.py | a046ffe6bf4ba9cdacc31105def77467977003e6 | [] | no_license | enixdark/pyra-structures | 1a8327cf7de5c7b6ab552900e43d83001011cf15 | fb8df7bdbc7a256381d42c501bf55c54ebf7dae6 | refs/heads/master | 2023-01-22T01:39:38.648567 | 2020-10-02T07:25:52 | 2020-10-02T07:25:52 | 98,119,242 | 0 | 0 | null | 2023-01-12T13:10:39 | 2017-07-23T19:05:22 | CSS | UTF-8 | Python | false | false | 5,104 | py | from marshmallow import (
fields,
pre_load,
Schema,
validate,
validates,
validates_schema,
ValidationError,
)
import re
from drive.utils.email_address import EmailAddress
from drive.utils.i18n import _
from datetime import date
def IsText(field):
def text_validator(value)... | [
"cqshinn92@gmail.com"
] | cqshinn92@gmail.com |
17d1add048a7e5db1e09574e9d1fe27e3d3112e2 | 548fbb3bf6648e76e711ee398148cae9ee10a0d2 | /running_sum_array.py | 14687c688612f9dc8f01a1f9715982cc4b68a444 | [] | no_license | KonstantinSKY/LeetCode | 34cce8eda7182aa6a1616b3471b0cfe9310fe1d4 | 1570122134b962412b0530c3850eb37f1c8c585e | refs/heads/master | 2023-04-16T17:03:23.753146 | 2023-04-03T18:16:21 | 2023-04-03T18:16:21 | 310,714,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | """ """
import time
from typing import List
class Solution:
def runningSum(self, nums: List[int]) -> List[int]:
for i in range(1, len(nums)):
nums[i] += nums[i-1]
return nums
if __name__ == "__main__":
start_time = time.time()
print(Solution().runningSum([1, 2, 3, 4]))
pri... | [
"sky012877@gmail.com"
] | sky012877@gmail.com |
544d0d079ce7d07e8a91f5a310818a244f1b8764 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5744014401732608_1/Python/izubr/gcj.py | fd75bd5e4d6cbfd5653b75455e59fbedb1601060 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py |
def form_result(possibility, matrix, case):
if possibility == "POSSIBLE":
print "Case #%s: %s" % (case + 1, possibility)
print matrix.rstrip()
else:
print "Case #%s: %s" % (case + 1, possibility)
t = int(raw_input(""))
for case in range(t):
b, m = raw_input("").split(" ")
b,... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
0664ffff7d89af5ac8e3b22e1e91030ca4ea3943 | 547695aff7b19ec2fe3f6b6ab7447d7b65c89322 | /FlaskWebProject1/test/myapi/commons/apispec.py | c346f60a6453fb5111bffe93ad7447311ce92cce | [] | no_license | yuchanmo/FlaskWebProject1 | d914454fd71f226e83cf909268ae297e2edbf6db | ae862f950146ceb6638e2b1a25beb2ad8c1207d9 | refs/heads/master | 2023-01-24T01:03:23.167143 | 2019-08-21T15:06:51 | 2019-08-21T15:06:51 | 203,608,914 | 0 | 0 | null | 2022-12-27T15:34:13 | 2019-08-21T15:06:56 | Python | UTF-8 | Python | false | false | 2,391 | py | from flask import jsonify, render_template, Blueprint
from apispec import APISpec
from apispec.exceptions import APISpecError
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec_webframeworks.flask import FlaskPlugin
class FlaskRestfulPlugin(FlaskPlugin):
"""Small plugin override to handle flask-re... | [
"mojjijji@gmail.com"
] | mojjijji@gmail.com |
52fedae218df70fb543cf1dd2cd22af4b39b6488 | 3f53e38076713ab49fd03a54c7c9d3e21de5eb14 | /Pyrado/pyrado/tasks/predefined.py | 50d88df14b227c763e6a5a33ef902b36a254c00d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | arlene-kuehn/SimuRLacra | 4510473789d1c8927c8d5969a9606238523d5dd7 | 15901f70f0538bce19acdda2a0018984f67cc0fe | refs/heads/master | 2023-01-28T13:10:05.607575 | 2020-12-04T14:47:01 | 2020-12-04T14:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,810 | py | # Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
# Technical University of Darmstadt.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source ... | [
"fabio.muratore@famura.net"
] | fabio.muratore@famura.net |
4c85ede7212f8220b8d5663534c28dcba7c46309 | 639b371a36aa7bc346375fb0c63fe4357a7fa928 | /isnobal/lib.py | d320666b29d383f6ff407741928bf5e110c31b16 | [] | no_license | rogerlew/isnobal | baf9dccc19a8c898d6c5eb5c6554e61c0c42b541 | 887e02cb6361e8f35f3cbcb2aaeba35b62a65d67 | refs/heads/master | 2016-09-05T21:47:37.365412 | 2015-01-09T18:03:02 | 2015-01-09T18:03:02 | 28,944,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py |
import os
import shutil
import time
def clean(path, isdir=None):
"""
cleans the path
if path is a file it is removed, if path is a
directory the directory tree is removed and the
root directory is recreated
Parameters
----------
path : string
path to be cleaned
isdir : b... | [
"rogerlew@gmail.com"
] | rogerlew@gmail.com |
f430f08749ef992d69507cf068f4f2d1e99c4b86 | dc7c62f22e5b7da4691d2bdf9a1da2f3ba9edd75 | /sketch_181106c/stack.py | e0a7adc48f20d65c672224ee5626dd4d30872a45 | [] | no_license | xiaohaiguicc/CS5001 | 563c17637f06f0074ccb743db4f0bdd2a326f978 | 51698ba8bfc2201639e6f4d358e0fc531780d2fc | refs/heads/master | 2020-04-06T17:32:55.046301 | 2018-12-20T23:53:05 | 2018-12-20T23:53:05 | 157,664,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | class Stack:
def _init_(self):
self.content = []
def push(self, item):
self.content.append(item)
def pop(self):
if len(self.content) > 0:
return self.content.pop()
| [
"xiaohaiguicc@gmail.com"
] | xiaohaiguicc@gmail.com |
86988fc60904cf6ad10ea91b11b7a4d5313cdc80 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_121/ch118_2020_09_30_02_00_29_265968.py | 81e75271029f2a468b29c741aee70ec9ceea4b9c | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import math
def reflexao_total_interna(n1, n2, θ2):
θ1=math.degrees(math.asin(math.sin(θ2)*n2/n1))
if sin(θ1)>1:
resultado=True
else:
resultado=False
return resultado | [
"you@example.com"
] | you@example.com |
bf540d38a0dea62068f14ad5ec55fae7d96a6b0e | d6d20681f41102df3feb2b438ef80569bd73730f | /.history/Uge5-pandas/handinExercises_20200311123505.py | f29264f126048debd63967bdff8beb92c1762646 | [] | no_license | MukHansen/pythonAfleveringer | d0ad2629da5ba2b6011c9e92212949e385443789 | 4107c3c378f757733961812dd124efc99623ff2e | refs/heads/master | 2020-12-22T13:27:19.135138 | 2020-05-22T11:35:52 | 2020-05-22T11:35:52 | 236,796,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,354 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
dataA = pd.read_csv('https://api.statbank.dk/v1/data/FOLK1A/CSV?delimiter=Semicolon&Tid=2008K1%2C2020K1&CIVILSTAND=G%2CF', delimiter=';')
dataB1 = pd.read_csv('https://api.statbank.dk/v1/data/FOLK1A/CSV?delimiter=Semicolon&OMR%C3%85DE=*&CIVILSTAND=... | [
"cph-mh752@cphbusiness.dk"
] | cph-mh752@cphbusiness.dk |
39ef6807088c40eb988f2dd2e8540cb782c446cf | 62dc63713e8c8ce8622c70117595bae857618107 | /BlackFlyCameraClass.py | 152951b5f96ad3d211963330218e880700e8a66b | [] | no_license | LiamDroog/BaldrControlSuite | ad7544d5e92b5e27537e7f20c7cf3ddc78b36769 | 2ca76c4c97c334b6bd5924b00cbcb8e6f687f495 | refs/heads/master | 2023-07-04T07:57:46.115829 | 2021-08-03T17:36:49 | 2021-08-03T17:36:49 | 371,804,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | import os
import matplotlib.pyplot as plt
import numpy as np
import time
from SimpleFLIR import Camera, GetBFSCameras
class CameraNotConnected(Exception):
pass
class ListCameras:
def __init__(self):
self.camlist = GetBFSCameras().getCameras()
def get(self):
return self.camlist
class ... | [
"droog@ualberta.ca"
] | droog@ualberta.ca |
1802e16b7d00226435e6164b100705ff00463f91 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/interactions/utils/destruction_liability.py | 3cfd2f7aae1a2fe038831b0aeb4ff3d4fc657c5b | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\utils\destruction_liability.py
# Compiled at: 2020-06-20 03:55:42
# Size of source mod ... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
cada85a3a534bd5162de90bc54c1f74691921397 | 215fd5c4f9893d9f38e4e48199ea16d7d6ef9430 | /2.Binary_Search/2.10_62_Search_In_Rotated_Sorted_Array.py | f96b0cbc87e0ec031279dc7c1b691c17e7d12dcc | [] | no_license | fztest/Classified | fd01622c097ca21b2e20285b06997ff0e9792dd1 | b046d94657c0d04f3803ca15437dfe9a6f6f3252 | refs/heads/master | 2020-03-25T06:34:07.885108 | 2017-05-04T17:22:36 | 2017-05-04T17:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | """
Description
_____________
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no duplicate exists in the array.
Example
______... | [
"cdzengpeiyun@gmail.com"
] | cdzengpeiyun@gmail.com |
56a0f90fa491c88e80bdabddde8c0dfdbfd2f47c | 5ea53027a9353f70e6a54f1211521bacbd5a46e2 | /src/goodtoknow/views.py | e1565eb86038e94fe2ef8761b992c07db748e1b8 | [] | no_license | Covee/Pillme_django | 380d4f696e503ed4f9278c44770d1840f66ec10b | 7d00581af09ae2ebe6610600083b11ab7ed29540 | refs/heads/master | 2022-12-16T05:50:49.685119 | 2018-07-25T11:22:58 | 2018-07-25T11:22:58 | 135,764,707 | 0 | 0 | null | 2022-11-22T02:30:45 | 2018-06-01T21:24:26 | Python | UTF-8 | Python | false | false | 1,242 | py | from django.shortcuts import render, get_object_or_404
from hitcount.views import HitCountDetailView
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST
from django.http import HttpResponse
from django.views.generic import DetailView, ListView
from .models ... | [
"uniqtop91@gmail.com"
] | uniqtop91@gmail.com |
299de9361c771a3ef2f202cfcdc387d919e1fb73 | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/thirdparty/pythonpkgs/networkx/networkx_1.9.1/lib/python2.7/site-packages/networkx/algorithms/tests/test_euler.py | c9936ea9a316115e662048c757e53837be943115 | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | #! python
# run with nose: nosetests -v test_euler.py
from nose.tools import *
import networkx as nx
from networkx import is_eulerian,eulerian_circuit
class TestEuler:
def test_is_eulerian(self):
assert_true(is_eulerian(nx.complete_graph(5)))
assert_true(is_eulerian(nx.complete_graph(7)))
... | [
"409511038@qq.com"
] | 409511038@qq.com |
a293bd444aa2724b6df8d537890f9990a47b15c1 | 139af68b78734a6bc53bd942ffa05476baf3d71d | /Python Fundamentals 2020 - 2021/MID - Exams/01. Counter Strike.py | 2d8040229eed4fc397fcd553deec104baade8d55 | [] | no_license | MiroVatov/Python-SoftUni | 7fe3fc0a3928848c5317fb120f789c773bfc117e | 0d0d6f116281b4de8c413d254386e27d992d047b | refs/heads/main | 2023-08-24T09:44:31.261137 | 2021-10-18T14:04:03 | 2021-10-18T14:04:03 | 317,510,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | battles_won = 0
initial_energy = int(input())
while True:
distance = input()
if distance == "End of battle":
print(f"Won battles: {battles_won}. Energy left: {initial_energy}")
break
energy = int(distance)
if initial_energy < energy:
print(f"Not enough energy! Game... | [
"noreply@github.com"
] | MiroVatov.noreply@github.com |
a7a9b0d01df39a7334dbb96bcabf78d7796a7cde | 3e1f833a1362fde69ea5deb5636b6600c3734a54 | /beutifullmatrix.py | d598c31e05a02807cf2b5e7c441112a5ce392476 | [] | no_license | pawan-1997/portfolio | 75549baf691189ec4230e6b8e3b5d6a2061f170f | 955a4daa312b11d45b91347cfc19d82142ee5906 | refs/heads/main | 2022-12-28T20:23:52.233594 | 2020-10-03T16:21:50 | 2020-10-03T16:21:50 | 300,917,042 | 0 | 1 | null | 2020-10-03T16:21:52 | 2020-10-03T15:48:06 | JavaScript | UTF-8 | Python | false | false | 1,136 | py | matrix = []
for i in range(5):
m = input()
matrix.append(m)
index_i = 1
pos_i = 0
pos_y = 0
for i in matrix:
if("1" in i):
pos_i = index_i
# print(pos_i)
# print(i.find("1"))
pos_y = i.find("1")
# print(pos_y)
index_i = index_i + 1
# print(pos... | [
"rcashok0@gmail.com"
] | rcashok0@gmail.com |
eabf5a12f02c113b17e02b3868d4257e2b22e4d9 | 9e271a3bc1bf388d82bc5a01d275d910c00f315c | /user/migrations/0016_history.py | db099076f07e14f65b384b61c7664c39e3115ac3 | [
"MIT"
] | permissive | kthaisociety/website | 36f11b704f9c38414e0999b55db4513444b53f9e | 4c4efb8a93218ae128d203b15c4340f90fe9f6a6 | refs/heads/master | 2023-08-09T19:44:16.968356 | 2023-05-20T20:33:05 | 2023-05-20T20:33:05 | 218,593,606 | 2 | 3 | MIT | 2023-05-20T20:33:06 | 2019-10-30T18:17:10 | Python | UTF-8 | Python | false | false | 998 | py | # Generated by Django 2.2.18 on 2021-03-28 21:49
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [("user", "0015_user_slack_picture_hash")]
operations = [
migrations.CreateModel(
name="History",
fields=[
... | [
"oriol.closa@est.fib.upc.edu"
] | oriol.closa@est.fib.upc.edu |
b683462d7673efeb1ba027e98d544e1841f91e03 | 5b70fbd53b534306c146ffb98a0f99d2343a948f | /src/Python/Problem74.py | 341431d1b4675c9eded21d48205b99cf477cd670 | [] | no_license | aniruddhamurali/Project-Euler | 1f4ff3aa1e9c4efbc2a85026821e19a28b5edf90 | 408b3098fbc98ff3954679602c0468ddb56ea0ac | refs/heads/master | 2020-03-20T23:07:22.178103 | 2018-07-27T01:40:46 | 2018-07-27T01:40:46 | 137,830,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | import math
import time
def digitFactorialSum(n):
total = 0
for digit in str(n):
total += math.factorial(int(digit))
return total
def main():
start = time.time()
count = 0
for i in range(0,1000000):
chain = set()
n = i
while i not in chain:
... | [
"aniruddha.murali@gmail.com"
] | aniruddha.murali@gmail.com |
bc4f9b46cbfb936585c30642734af6d52f04b823 | 7cf00f09f9a46175a08993196da0db7b3a48a992 | /arrays/is_monotonic.py | 90fc581517fcf3a0346b47cf67b74f76d3070754 | [] | no_license | newsteinking/algorithms3 | 4fdde66f2f40ce53346752173493265391307ccd | c090674898d97fc2564ac688dc2347a5d0c33dfb | refs/heads/master | 2022-04-21T10:02:47.091503 | 2020-04-21T06:32:07 | 2020-04-21T06:32:07 | 257,497,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | '''
An array is monotonic if it is either monotone increasing or monotone decreasing.
An array A is monotone increasing if for all i <= j, A[i] <= A[j]. An array A is monotone
decreasing if for all i <= j, A[i] >= A[j].
Return true if and only if the given array A is monotonic.
Example 1:
Input: [1,2,2,3]
Out... | [
"newstein33@gmail.com"
] | newstein33@gmail.com |
c8d40e1b41a5aa6ba1ecbbad3fd6ded3ce1e72cb | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_natreghis_001/debug-convert-dates.py | 01dd4897c756affd40535d0c2248df0dd5aaf371 | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | from openpyxl import load_workbook
import re
filename = 'aalh_iit_natreghis_001.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 31
maximumcol = 31
minimumrow = 7
maximumrow = 194
iterationrow = 7
targetcol = 31
for row in ws.iter_rows(min_row=minimumrow, min_col=minimumco... | [
"noreply@github.com"
] | johndewees.noreply@github.com |
d8dcc43724528dd231ed378820c811ee17da5ad7 | 67325192c1e528a39d457f11e61b480d68826708 | /__main__.py | 82f897e592bf6b74763104fad108b9230f332b9a | [
"MIT"
] | permissive | vashistaarav1611/mcpython-a-minecraft-clone-in-python | 5851b377b54fd2b28c106112c7b18f397b71ab50 | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | refs/heads/master | 2023-02-01T22:48:51.787106 | 2020-12-21T15:02:25 | 2020-12-21T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | print("MCPYTHON ModLoader")
import sys, os, globals as G
dir = sys.argv[1] if len(sys.argv) > 1 else "./"
G.local = dir
sys.argv.append(os.path.dirname(os.path.realpath(__file__)))
import ModLoader
ModLoader.load(dir)
| [
"baulukas1301@googlemail.com"
] | baulukas1301@googlemail.com |
60b231062ee9be5296c037658e8fe6e337909004 | 43bac293a3ee710140f3869937ef4b37345bac2a | /ex37.py | f6dfdccbd4c692a1335b88844333df307e5eb468 | [] | no_license | DikranHachikyan/python-PLDA-20191011 | 4e176f7eaa65627a4670acd75f470016bfed4f8e | 80cc4740039fcc473cdf436499b0c602a9ab48e0 | refs/heads/master | 2020-08-11T15:54:02.413645 | 2019-11-05T09:39:17 | 2019-11-05T09:39:17 | 214,591,265 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/home/wizard/anaconda3/bin/python
# import time
from time import time,sleep
def foo(sleep_time=0.3):
'''Function foo sleeps sleep_time seconds'''
sleep(sleep_time)
def measure(func):
def wrapper(*args,**kwargs):
t = time()
func(*args,**kwargs)
print(f'{func.__name__} : {time() ... | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
c39386cd8e78c8663735bc64da95f42972ef91f9 | 1033906372e48d2f53b907848b86dec2eab635f4 | /old/midify.py | dc63760c0b5b28e1d2f23765396f8c3eee5b2a8c | [] | no_license | csv/ddpy | b0a29fbc094f728b8cbfafa4d5a301c7a35006c8 | 2c1fccdff907f0504b5f514cfd67199a2e77514e | refs/heads/master | 2016-09-05T17:44:25.506356 | 2013-11-08T18:57:25 | 2013-11-08T18:57:25 | 12,258,676 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | from midiutil.MidiFileGenerator import MidiFileGenerator, MidiTrack
from midiutil.Scales import *
from math import ceil
from random import sample
import json
from defaults import note_lookup, root_lookup
def note_to_midi(n):
if isinstance(n, basestring):
return note_lookup[n]
elif isinstance(n, int):
retur... | [
"brianabelson@gmail.com"
] | brianabelson@gmail.com |
803e427fe7e8e3ed41280faf81f3782e5db35337 | f0a624fc75db12a105e096391d354d5847a7afa5 | /day08/demo03.py | 4998c37c3149e7644e42bac91846e763e07c3c91 | [] | no_license | Linkin-1995/test_code1 | e50399e929bdf23ac7b82f54dd9ff63a64223d6a | 7d0b41516751538a967aa5d42161195ac49fc842 | refs/heads/master | 2022-12-06T18:47:06.858474 | 2020-08-21T10:40:31 | 2020-08-21T10:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | """
函数 - 功能
参数: 用法 向 做法 传递的信息
制作
def 函数名称(变量1,变量2):
函数体
使用
函数名(数据1,数据2)
练习:exercise01~03
"""
# 做法
# 形式参数:表面的数据(真实数据的代表)
def attack(count):
for __ in range(count):
print("摆拳")
print("临门一脚")
print("勾拳")
# 实际参数:具有真实数据(客观... | [
"1105377455@qq.com"
] | 1105377455@qq.com |
49ac1ff9278d3e2219128273a10b912b104b6472 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/algorithms-master/algorithms/backtrack/letter_combination.py | 5bece7303612a8a562505e1618ed24a503bc5002 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 791 | py | """
Given a digit string, return all possible letter
combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below:
2: "abc"
3: "def"
4: "ghi"
5: "jkl"
6: "mno"
7: "pqrs"
8: "tuv"
9: "wxyz"
Input:Digit string "23"
Output: ["ad", "ae", "af", "bd", "be",... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
a70fa1ef04a8545a6a13b33878d492afa39584b7 | 5b3bd326998606188b45a7870852643eda024a97 | /utils/dataset_util_test.py | 7b293e9d4759ba5e20c82eb256f1963d613d98af | [] | no_license | KuznetsovIllya/clearml_od_toy | 31556d0726d15a054c1c18317c361d97801381a4 | 92f15f04a023d4e0e165a250fddc3129144913d0 | refs/heads/main | 2023-04-11T05:55:56.248478 | 2021-04-14T15:59:40 | 2021-04-14T15:59:40 | 357,827,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5b987aa43023f49104601b5e44e6096dd219539d07712d377a93b0716555ebfc
size 1416
| [
"illia.kuznietsov@modern-expo.com"
] | illia.kuznietsov@modern-expo.com |
ad84bdb8f2de5e3741f4d7ffefeadb7518f4c055 | 48894ae68f0234e263d325470178d67ab313c73e | /sa/profiles/Dell/Powerconnect55xx/get_config.py | cb916fc0aa0de2175f60138f19dba501f00cb408 | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 671 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Dell.Powerconnect55xx.get_config
##----------------------------------------------------------------------
## Copyright (C) 2007-2013 The NOC Project
## See LICENSE for details
##------------------------------------------... | [
"dmitryluhtionov@gmail.com"
] | dmitryluhtionov@gmail.com |
e0060a932e35c03b8ddfa5590407f24a3b89b43b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/compareVersions_20200909132443.py | e3af193a67a236c06299befe3c97f2948195dae3 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | def compare(version1,version2):
# split where there are ,
# then loop through both of them
# if v1 > v2 return 1
# if v1 < v2 return -1
# otherwise return 0
v1 = version1.split(".")
v2 = version2.split(".")
v1 = [int(i) for i in v1]
v2= [int(i) for i in v2]
if len(v1) > l... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ddfca99d193430dadb415a4fc865f00805199317 | 464850ba426263b17084fc71363ca14b8278b15e | /08.py | 44f4c2b9d406b330216766b8bf809b7a7f07f5da | [] | no_license | eng-arvind/python | 8442c30ec10f979f913b354458b4f910539d8728 | 249f5f35f245a3f1742b10310de37ca6c6023af2 | refs/heads/master | 2020-12-23T06:40:16.911269 | 2020-02-02T18:42:01 | 2020-02-02T18:42:01 | 237,069,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | def pat(n):
k = 1
for i in range(n):
for j in range(i + 1):
print(k, end=" ")
k += 1
print()
pat(5)
| [
"noreply@github.com"
] | eng-arvind.noreply@github.com |
54f0a4e994fa3dc317186e28957003463120f74a | fc2b8c646223acd17819d631ce57146cd1725456 | /collect_dataset/main_collect.py | 9482d6222d69a652ec7a04fa6d5909b487bf616f | [] | no_license | peachman05/RGB_action_recognition | bd4ac4a60097ac70795b0a9cbdf6d332cd85d764 | 21b47f1d1c0f1712d0dc22bb57c52db3c31b47ed | refs/heads/master | 2020-08-31T13:35:38.699161 | 2020-04-12T09:11:45 | 2020-04-12T09:11:45 | 218,701,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from collect_dataset import run_collect
# Define
run_time = 60 # second
action_select = 3 # 0=dribble, 1=shoot, 2=pass, 3=stand
path_dataset = 'F:\\Master Project\\Dataset\\BasketBall-RGB\\' # folder path
show_FPS = False
action_list = ['dribble','shoot','pass','stand']
action = action_list[action_select]
path_save ... | [
"you@example.com"
] | you@example.com |
ab25a0d7423a94f6e815e35c92274f70bf90ad71 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2887/60717/245850.py | ee87114ecb204b742c07e205a3999ba39009bdb5 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | n=int(input())
fLive=0
fDead=0
sLive=0
sDead=0
for i in range(0,n):
list2=input().split()
for j in range(0,3):
list2[j]=int(list2[j])
if list2[0]==1:
fLive+=list2[1]
fDead+=list2[2]
else:
sLive+=list2[1]
sDead+=list2[2]
if fLive>=fDead:
print('LIVE')
else:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f7c6f5795fda746e447912d435cc4d8d0ee17c71 | fa8dc42cfcf99de58f76807accc5c3566ddae6e4 | /tests/test_verify.py | 408a92f3380584be91aae4234fe172385484b523 | [
"MIT"
] | permissive | thusoy/porridge | 1124cc99cd77f672e6fec5e3d87396c72938a944 | f332b67f29bcbc19b7bb7da2f68ad3af35a9cd4d | refs/heads/master | 2021-01-23T03:53:04.352136 | 2018-05-17T16:28:41 | 2018-05-17T16:28:41 | 86,129,217 | 19 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | # coding: utf-8
from __future__ import unicode_literals
import pytest
from hypothesis import given, assume
from hypothesis.strategies import integers, text
from porridge import Porridge, MissingKeyError, EncodedPasswordError
from porridge.utils import ensure_bytes
@pytest.mark.parametrize('test_password', (
"p... | [
"git@thusoy.com"
] | git@thusoy.com |
59763f5bcd4fd02e277f6764e628fd7a08f72889 | a0e63dcefb114d024b2c56ae00a3525caebb8f31 | /shutit_threads.py | 2a0b1cf8198e5f85307393d8ec3630162227bfa6 | [
"MIT"
] | permissive | andrzejsydor/shutit | 2eec3d66c3a3f973ee93e64b87c313fda9f5ea3b | 5f3fbb7236b7c18806c4156910de4425591c197a | refs/heads/master | 2020-03-22T13:54:22.854701 | 2018-07-07T13:32:37 | 2018-07-07T13:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,330 | py | import curtsies
from curtsies.events import PasteEvent
from curtsies.input import Input
import itertools
import time
import threading
import traceback
import sys
import os
# There are two threads running in ShutIt. The 'main' one, which drives the
# automation, and the 'watcher' one, which manages either the different... | [
"ian.miell@gmail.com"
] | ian.miell@gmail.com |
1820e9bea144a350bba9d060cb30654b92aefb91 | 1f1048624ee8d71101ae1127c9aa9c9dc81b857f | /tests/test_bug_fixes.py | bb5c7e5d42f69d5ddf7e161a607b0a2909c18b24 | [
"BSD-3-Clause"
] | permissive | netpastor/pyexcel | 434983a942de4d70549bcec578854d3da241c576 | 0c126b9e4c650c6735665c79e616546149f2b717 | refs/heads/master | 2021-01-19T10:40:19.107503 | 2017-04-10T07:04:50 | 2017-04-10T15:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,968 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from textwrap import dedent
import pyexcel as pe
from datetime import datetime
from _compact import StringIO, OrderedDict
from nose.tools import eq_
def test_bug_01():
"""
if first row of csv is shorter than the rest of the rows,
the csv will be tr... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
69869813ffb36d5a2c382d673696ec7c7fd2fbe9 | 084e35c598426b1137f9cd502e1b5e7f09cdf034 | /leetcode_weekly_competition/226周赛/1.py | 09da9b65e006ed6ec0c0456861c0ba4c9e9e6cf0 | [] | no_license | sakurasakura1996/Leetcode | 3a941dadd198ee2f54b69057ae3bbed99941974c | 78f239959af98dd3bd987fb17a3544010e54ae34 | refs/heads/master | 2021-09-11T05:07:44.987616 | 2021-09-07T05:39:34 | 2021-09-07T05:39:34 | 240,848,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | class Solution:
def countBalls(self, lowLimit: int, highLimit: int) -> int:
ans = [0] * 46
for i in range(lowLimit, highLimit+1):
tmp = 0
cur = i
while cur:
tmp += int(cur%10)
cur = int(cur/10)
ans[tmp] += 1
retu... | [
"2470375551@qq.com"
] | 2470375551@qq.com |
491e8253f9d4c90d5822a1fc62bb284b383d4408 | cc595296b60913bfd6e718c60aaa68d9a5008781 | /profiler/weather_plot.py | 74168fba17d23322089332a6a9ef6e24b4c0039b | [] | no_license | JBlaschke/divelite | f04e24afe1b160702a95878586210d9739141222 | e9a54c67ab8c201003783e50da3a9a46acf24507 | refs/heads/master | 2021-05-21T05:40:25.118724 | 2020-10-11T01:02:56 | 2020-10-11T01:02:56 | 252,570,721 | 0 | 0 | null | 2020-04-02T21:41:56 | 2020-04-02T21:41:55 | null | UTF-8 | Python | false | false | 939 | py | import sys
import numpy as np
import matplotlib.pyplot as plt
log_fname = sys.argv[1]
size = int(sys.argv[2])
data = {}
with open(log_fname) as f:
for line in f:
cols = line.split()
if len(cols) == 2:
rank = int(cols[0])
ts = float(cols[1])
if rank not in data:
... | [
"monarin@gmail.com"
] | monarin@gmail.com |
ba0e2b9495f7c37519b04935cc2e4a99f79786e5 | 4fc1c45a7e570cc1204d4b5f21150f0771d34ea5 | /quan_table/read_data/read_data_test.py | 7f8abcee5c4e3a5e9366bbd3813bec0c96321901 | [] | no_license | CN1Ember/feathernet_mine | 77d29576e4ecb4f85626b94e6ff5884216af3098 | ac0351f59a1ed30abecd1088a46c7af01afa29d5 | refs/heads/main | 2023-05-28T17:19:06.624448 | 2021-06-17T04:39:09 | 2021-06-17T04:39:09 | 374,603,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | from PIL import Image
import numpy as np
import os
from torch.utils.data import Dataset
import math
import cv2
import torchvision
import torch
import random
class CASIA(Dataset):
def __init__(self,data_flag = None, transform=None, phase_train=True, data_dir=None,phase_test=False,add_mask = True):
... | [
"chenguo@gpu017.scut-smil.cn"
] | chenguo@gpu017.scut-smil.cn |
9415639e3ab0499619b3e5d066463c3db20866ca | 2a07f85d91050192f5eaa8d5c72fc2e0fbdfb015 | /bmi/pages.py | 32dfdd5024793394903a3fd024d64f2e7af4104a | [] | no_license | chapkovski/hse-otree-workshop | b95c9e18fc49908a820f15666dc56ffce9e39c49 | 6a83b6b3543c3079408f50c7c3e5a22179862446 | refs/heads/master | 2020-04-20T08:37:27.161917 | 2019-02-01T19:22:22 | 2019-02-01T19:22:22 | 168,744,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from otree.api import Currency as c, currency_range
from ._builtin import Page, WaitPage
from .models import Constants
class Input(Page):
form_model = 'player'
form_fields = ['height', 'weight']
class ResultsWaitPage(WaitPage):
def is_displayed(self):
# if this is interpersonal treatment (in oth... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
acec31ec61ba2685785c55fce5948b4cca5d910f | 7e326ba379d8e46fbf597938c1efcb99afb0d7e8 | /server/models.py | 6aaa295aa567f34255d38ca1326ffb51cf140983 | [] | no_license | obulpathi/miner | 393f532e3901bbb3885155d6c8ff3ea363634e50 | 53e8221d6545cb9da2f166bfa771eceb11f730f6 | refs/heads/master | 2020-04-16T01:14:37.607057 | 2014-06-14T01:02:37 | 2014-06-14T01:02:37 | 12,418,001 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"obulpathi@gmail.com"
] | obulpathi@gmail.com |
4aa9a980e8e71317eb2171d8d36ed74801927c53 | ef7f73ffe943eb6b2a4456d374de3fd49bc5d3bb | /src/kvt/augmentation/__init__.py | 88afc26d0a9e31864017394769d435a987ab2b6a | [
"BSD-2-Clause"
] | permissive | Ynakatsuka/birdclef-2021 | 11acf0a7c2a6463e574df7a058fbf8cc6ab782b6 | d7cf7b39e3164a75547ee50cc9a29bd5ed4c29bd | refs/heads/main | 2023-05-12T01:00:24.612945 | 2021-06-02T01:37:16 | 2021-06-02T01:37:16 | 358,929,160 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from .audio import (
CosineVolume,
LowFrequencyMask,
OneOf,
PinkNoise,
RandomVolume,
SpecifiedNoise,
SpeedTuning,
StretchAudio,
TimeShift,
or_mixup,
)
from .augmix import RandomAugMix
from .autoaugment import ImageNetPolicy
from .block_fade import BlockFade
from .grid_mask import... | [
"nk.tsssa@gmail.com"
] | nk.tsssa@gmail.com |
fb945c11cc4e07aba01f67c2de8cdc6fd748421c | 186f694b65b43cd56e746ce8538e4f1edad6129e | /1on1/Two_Pointer/lint-386.py | 7a6611cdb2072bd584bf7e854b88dde5e704967e | [] | no_license | zionhjs/algorithm_repo | 287486e0173e68cfa9e535490004c952192a54db | 26b4a770d5335abd738ae26c68d91f6af7b13749 | refs/heads/master | 2022-12-17T15:59:17.932490 | 2020-09-23T04:12:38 | 2020-09-23T04:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | class Solution:
"""
@param s: A string
@param k: An integer
@return: An integer
"""
def lengthOfLongestSubstringKDistinct(self, s, k):
if not s or k == 0:
return 0
alpha_counts = [0 for _ in range(256)]
count = 0
max_len = 0
i, j = 0, 0
... | [
"hjszion@gmail.com"
] | hjszion@gmail.com |
d3f66cfc2fc33594b799867d55558df1743f6729 | 892a46487e056458270a774cda5b1b6752f25a84 | /1/run.py | e9e81aaa3f3325d052c1eee58ca189292dc8fdf7 | [] | no_license | taojy123/MyPhones | 249a980ccff475cf844ae858dae514ca967cc39e | 93291080dd7dc6c22054aa3d5a24a15ca1532912 | refs/heads/master | 2020-12-24T14:00:46.372187 | 2015-09-28T05:07:24 | 2015-09-28T05:07:24 | 22,827,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,439 | py |
#!/usr/bin/env python
import os
import sys
import webbrowser
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myphones.settings")
#these pertain to your application
import myphones.wsgi
import myphones.urls
import myphones.settings
import myphones.models
import myphones.views
import django.contrib.auth
import django.... | [
"taojy123@163.com"
] | taojy123@163.com |
b4bd715fdfbb95ac52bb29757e9e40e5b5bcfe71 | d57996fd2c6f92fdb457e8a35f6eb03a54dcf147 | /code_window/ScreenGeometry.py | d04fcc0d6da4137a249e55da885c47d80a1c34a9 | [] | no_license | ActonMartin/UI | 43aab17874d0e24bc35989b847bbe6d54c825e31 | 025d181dd6557822c28cd49af84ab9ffd3a0f274 | refs/heads/master | 2020-12-10T22:30:22.910870 | 2020-01-14T01:30:04 | 2020-01-14T01:30:04 | 233,730,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | import sys
from PyQt5.QtWidgets import QApplication,QMainWindow,QWidget,QPushButton
def onclick_button():
print('1')
print("widget.x()= %d" % widget.x())
print("widget.y()=%d" % widget.y())
print('widget.width()=%d' % widget.width())
print('widget.height()=%d' % widget.height())
print('2')
... | [
"wszcla@outlook.com"
] | wszcla@outlook.com |
cf95ac327ce7cd47aa6c9d323ed27a1f6cb0762e | 0c36a11f1a8659b7691f3f612030b63e40e65869 | /chan/html_净值曲线_opt.py | 6bea437aae3389736500f304f7902ecba6388317 | [] | no_license | webclinic017/joinquantNew | 93af36b540b20cc1cb27f97b2ede11f88ec1f9e2 | 0cbadfeba4d0629471773304f6541981957965e9 | refs/heads/master | 2023-01-12T00:42:19.419870 | 2020-11-16T09:19:53 | 2020-11-16T09:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,332 | py | # -*- coding: utf-8 -*-
# @Time : 2020/6/30 10:15
# @Author : zhangfang
import pandas as pd
# import html5lib
from trading_future.future_singleton import Future
from backtest_func import yearsharpRatio, maxRetrace, annROR, annROR_signal
import matplotlib.pyplot as plt
import numpy as np
def PowerSetsRecursive(ite... | [
"519518384@qq.com"
] | 519518384@qq.com |
9b108dc93dae3c185f5fd4ad4d94489c27095057 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_MovingAverage_Seasonal_DayOfWeek_MLP.py | b2da5c3d66196e8f7a7296e7bbcc4ee517c2f8a1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 164 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['MovingAverage'] , ['Seasonal_DayOfWeek'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
0029fb3267463c9804af961f0c25a555fe4d1786 | fc29ccdcf9983a54ae2bbcba3c994a77282ae52e | /Leetcode_By_Topic/dp_2seq-583.py | 044a5edc5199781c6b697036ab50df590e614417 | [] | no_license | linnndachen/coding-practice | d0267b197d9789ab4bcfc9eec5fb09b14c24f882 | 5e77c3d7a0632882d16dd064f0aad2667237ef37 | refs/heads/master | 2023-09-03T19:26:25.545006 | 2021-10-16T16:29:50 | 2021-10-16T16:29:50 | 299,794,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py |
class Solution:
"""
def minDistance(self, word1: str, word2: str) -> int:
m, n = len(word1), len(word2)
dp = [[0] * (n+1) for _ in range(m+1)]
# edges
for i in range(1, m+1):
dp[i][0] = i
for j in range(1, n+1):
dp[0][j] = j
for ... | [
"lchen.msc2019@ivey.ca"
] | lchen.msc2019@ivey.ca |
dcddd89959f1064a7904ec4071f2b74a51df8bab | ad212b92beac17c4d061848c1dcd443d02a168c8 | /python/0454_4sum_II/counters.py | 397e23695a0aeceb0cf68e0a3664427ecddf74b0 | [] | no_license | 21eleven/leetcode-solutions | 5ec97e4391c8ebaa77f4404a1155f3ef464953b3 | 35c91e6f5f5ed348186b8641e6fc49c825322d32 | refs/heads/master | 2023-03-03T10:22:41.726612 | 2021-02-13T21:02:13 | 2021-02-13T21:02:13 | 260,374,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | """
454. 4Sum II
Medium
Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.
To make problem a bit easier, all A, B, C, D have same length of N where 0 ≤ N ≤ 500. All integers are in the range of -228 to 228 - 1 and the result is gu... | [
"noahlidell@gmail.com"
] | noahlidell@gmail.com |
44e5ad078fcf91fcaff4eac2ee6a76bff6f9f15f | 960f2de01a49c822e6e4afd9595bf60d75f7dacc | /fbpagespam.py | 9277c724f17a9799dca6b7ee27df9efc0c0fd4bc | [] | no_license | 2020saurav/random-scripts | adbf5461e4f98d51a02cf2ee3992bdb82c77dc86 | b339c47765a9e18f86565ea9639f5ff6a7691f46 | refs/heads/master | 2021-01-23T14:05:29.907049 | 2014-11-11T20:33:22 | 2014-11-11T20:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import requests
import time
import urllib2
import json
# Replace line 6 with actual token and put spam comment in line 16
TOKEN = 'put-your-access-token-here'
def get_posts():
url = 'https://graph.facebook.com/v2.2/891971000853462/posts?access_token='+ TOKEN
page = urllib2.urlopen(url)
page = page.read()
page = jso... | [
"2020saurav@gmail.com"
] | 2020saurav@gmail.com |
1081b155b8d6b430076939dd4c8bec7a57c484c7 | 33b5ef4f67e9c36d45990506e6f9f39d573ce730 | /folders/python/instagram/63def.py | 23caa9ce83278630e81abd66b2d763746fdb6fc7 | [] | no_license | dineshkumarkummara/my-basic-programs-in-java-and-python | 54f271e891e8d9dbdf479a9617e9355cbd0819e9 | b8a4cf455f4a057e382f7dda7581fad5b2f1e616 | refs/heads/master | 2022-12-12T06:02:55.558763 | 2020-08-19T12:14:39 | 2020-08-19T12:14:39 | 283,415,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | #Creating a function in Python. Use the "def" keyword,
# give a function a name and list its arguments.
def greet(name):
print("hello my name is " +name+ "")
greet("sai")
greet("manu")
#sai and manu are arguments
#greet is a function name | [
"dk944176@gmail.com"
] | dk944176@gmail.com |
25e5547093fa72a5ff91fdf5c2545ec79a793127 | e5d059896640e25a57f29f5ec972c114f8ef5866 | /src/scs_analysis/socket_receiver.py | 68d886c62b7ddd4423cc75d222d28250d1d07be7 | [
"MIT"
] | permissive | tonybushido/scs_analysis | 10add7b13cee29e1445ea18240bdb08e3bc908a4 | 1121be19c83b0d616772da42ea90623d6f6573c4 | refs/heads/master | 2021-01-03T03:11:31.474595 | 2020-02-11T14:27:32 | 2020-02-11T14:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | #!/usr/bin/env python3
"""
Created on 18 Aug 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
source repo: scs_analysis
DESCRIPTION
The socket_receiver utility is used to accept data via a Unix socket, with data sourced from the same host, or
another host on the same local area network. A socket_send... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
559053148361b7bb8b316ba9e69c87eb3b307856 | 08eea46f91eb71972b66cc34a620df2a2d15e6a7 | /Advanced/Theano/Course/MaxPool.py | fa657097f96c4f937a1bd0ac9f0b3d0150916605 | [] | no_license | jsa4000/Getting-Started-Python | ab2f1ce51c78ce870560ab466c8408c9f81717e5 | 8f7f107a93bb7578a00d531123ee7f5db61d807e | refs/heads/master | 2021-01-11T14:19:18.123093 | 2019-01-12T07:47:51 | 2019-01-12T07:47:51 | 81,347,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import theano
import theano.tensor as T
from theano.tensor.signal import downsample
import numpy
# Now what the Max Pooling algorithm does in a matrix.
input = T.dtensor4('input')
maxpool_shape = (2, 2)
pool_out = downsample.max_pool_2d(input, maxpool_shape, ignore_border=True)
f = theano.function([input],pool_out)
... | [
"jsa4000@gmail.com"
] | jsa4000@gmail.com |
bb3c3f608d70d420e3a814c30207c034df5c72ea | 508321d683975b2339e5292202f3b7a51bfbe22d | /Userset.vim/ftplugin/python/CompletePack/PySide2/QtGui/QMatrix4x4.py | 3a5014bf558cdafbdfc83ec79abdb7af136dd07e | [] | no_license | cundesi/vimSetSa | 4947d97bcfe89e27fd2727423112bb37aac402e2 | 0d3f9e5724b471ab21aa1199cc3b4676e30f8aab | refs/heads/master | 2020-03-28T05:54:44.721896 | 2018-08-31T07:23:41 | 2018-08-31T07:23:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | # encoding: utf-8
# module PySide2.QtGui
# from C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import Shiboken as __Shiboken
class QMatrix4x4(__Shiboken.Object):
# no doc
def column(s... | [
"noreply@github.com"
] | cundesi.noreply@github.com |
2b94ca5f26c8983462ef53b76ee77557a6b751e3 | 32904d4841d104143ba0f41cc3aeb749e470f546 | /backend/django/api/urls.py | 6e5dd09bbd5b11925232aa849f7d72ba6e996239 | [] | no_license | aurthurm/dispatrace-api-vuejs | 20ec5deee015e69bce7a64dc2d89ccae8941b800 | 56d122318af27ff64755fc515345974631d3026f | refs/heads/master | 2023-01-23T23:03:15.438339 | 2020-10-20T22:09:29 | 2020-10-20T22:09:29 | 219,028,985 | 0 | 1 | null | 2022-12-22T18:31:38 | 2019-11-01T17:08:35 | Vue | UTF-8 | Python | false | false | 877 | py | from django.urls import path, include
import api.accounts.routes, api.notices.routes, api.memos.routes
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView
)
from .views import ExtraTokenObtainPairView, get_user_data
app_name = 'api'
urlpatterns ... | [
"aurthurmusendame@gmail.com"
] | aurthurmusendame@gmail.com |
093c22edc372fda95f2e5cdb6c60b226b694b071 | 7c81f9ea4c77007435781cc7fab991df50747c53 | /setup.py | d581e3ec5308d8ee33e528dbc682836b3c7dc998 | [
"MIT"
] | permissive | ArutyunovG/netron | dc259584f552e1ef2808cc7a0fc552d6681076c4 | 07f842e26d3618005ea75a23dd41313ddcfc28d0 | refs/heads/master | 2022-06-11T17:52:08.567397 | 2020-05-02T03:53:23 | 2020-05-02T03:53:23 | 260,730,924 | 0 | 0 | MIT | 2020-05-02T16:42:28 | 2020-05-02T16:42:27 | null | UTF-8 | Python | false | false | 6,872 | py | #!/usr/bin/env python
import distutils
import io
import json
import os
import setuptools
import setuptools.command.build_py
import distutils.command.build
node_dependencies = [
( 'netron', [
'node_modules/d3/dist/d3.min.js',
'node_modules/dagre/dist/dagre.min.js',
'node_modules/marked/mar... | [
"lutzroeder@users.noreply.github.com"
] | lutzroeder@users.noreply.github.com |
e321495336794031ffac05cf2c6817555903bab5 | 5410700e83210d003f1ffbdb75499062008df0d6 | /Day-2/ndarray-6.py | 965e6ad37da413d65901a3423f451ab63c239b05 | [] | no_license | lilyandcy/python3 | 81182c35ab8b61fb86f67f7796e057936adf3ab7 | 11ef4ace7aa1f875491163d036935dd76d8b89e0 | refs/heads/master | 2021-06-14T18:41:42.089534 | 2019-10-22T00:24:30 | 2019-10-22T00:24:30 | 144,527,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import numpy as np
a = np.array([0, 1, 2, 3, 4])
print(a)
print(a[1:3])
print(a[:3])
print(a[1:])
print(a[1:-1])
print(a[::2])
print(a[1:4:2])
print(a[::-1]) | [
"myyan_yan@msn.com"
] | myyan_yan@msn.com |
b2b0207764e1be3090b747924840f7fb6775ecbc | c2242e8ce873f68efaf5c813820543a495e0d2e5 | /project/attendance_system/student/.~c9_invoke_it09KR.py | 399e07d384fbdfacabf746a0c0e08588b04df4a2 | [] | no_license | BUBTAMS/Attendance_system | 7d5471dd699ee3f976051687274d721d8b519e90 | f831b29a7083da570f7eccc9ed0bb19b10023fbb | refs/heads/master | 2022-03-25T22:10:11.989744 | 2019-12-15T10:18:41 | 2019-12-15T10:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.db import models
from django.forms import ModelForm
from .models import studentprofile
attributes=('student_id','image','mobile_number','parents_number','department','semester','dob','address','roll_no','batch','Class')
class ... | [
"ranjaneabhishek.com"
] | ranjaneabhishek.com |
1899ab60d5f330bf69ce6a789f5aa04f754a4d41 | 9fab87766e5e4535db9d2a4f2bb9737d1c842ca9 | /python/test.py | 700fe0a846bbfbcfc8294bf961a98ca6e3aa8a0d | [
"Apache-2.0"
] | permissive | lavizhao/StumbleUponEvergreen | f10ac075b7b582d68385ae3d8017615d501632c0 | 85658c4efeeacbb2beae3ad74f7ad176053e4a55 | refs/heads/master | 2016-09-05T13:57:26.138467 | 2014-06-11T13:34:44 | 2014-06-11T13:34:44 | 20,257,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #coding: utf-8
from read_conf import config
import csv
import numpy as np
from sklearn.preprocessing import Imputer
dp = config("../conf/dp.conf")
f = open(dp["raw_train"])
imp = Imputer(missing_values='NaN', strategy='mean', axis=0)
reader = csv.reader(f,delimiter='\t')
a = 0
train = []
for line in reader :
... | [
"zhaoximo@hotmail.com"
] | zhaoximo@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.