blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d40e869f2b04ff13ec20b0d8c6cbfb53f0b139f5 | 39d43f50b90b2ab0a27d71980e042a8edfa34618 | /day2.py | 5a7e1ff04a2d27ca88d4767745d4f3737653a33c | [] | no_license | PetraVidnerova/AdventOfCode2016 | 0d035191db2182628f11696a365fdbc012f40b6c | e244cee55b69eeec186e3146ef5d50623b434404 | refs/heads/master | 2020-06-11T21:17:19.142507 | 2016-12-24T13:46:30 | 2016-12-24T13:46:30 | 75,622,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | buttons = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
x, y = 1, 1
code = []
def down():
global x
if x < 2:
x += 1
def up():
global x
if x > 0:
x -= 1
def left():
global y
if y > 0:
y -= 1
def right():
global y
if y < 2:
y += 1
with open("input2.txt") a... | [
"petra.vidnerova@gmail.com"
] | petra.vidnerova@gmail.com |
67cca335149027caf40bf3b242075c47e1f12001 | e4ac210f28ba23c2ec42e367ccb19117ffb6a3c2 | /diverta2019/A_Consecutive_Integers/Project_Python3/A_Consecutive_Integers.py | b1cddc14559898d55148825982f10f835e2e1f49 | [] | no_license | NobuyukiInoue/AtCoder | 267cabdd08ba051e61c725a6ac003d9c8d5f3e5e | 12c9882a2e2511826d29033cfb9e60e068ba56ac | refs/heads/master | 2021-07-24T00:55:21.971783 | 2020-05-07T08:22:57 | 2020-05-07T08:22:57 | 165,416,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | import sys
def main():
N,K = map(int,input().split())
print(N - K + 1)
if __name__ == "__main__":
main()
| [
"gx3n-inue@asahi-net.or.jp"
] | gx3n-inue@asahi-net.or.jp |
e5226076f7c90cede11b1a74a25f8f2e82d7e851 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_366/ch13_2019_02_24_14_14_48_320675.py | 6aa1083f145f5a5060b19e88451de6b1f75ce329 | [] | 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 | 121 | py | def calcula_posicao(t, s0, v):
s = s0 + v*t
return s
a = 10
b = 10
c = 10
d = calcula_posicao(a, b, c);
print(d); | [
"you@example.com"
] | you@example.com |
76d4e6c0d50f142319d57a17cfe084c2e8b8365d | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.ssm.MaintenanceWindowTask.run-command-tasks-python/__main__.py | 44f44305c14465d32f60bbfa5675e91cd5aea73d | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import pulumi
import pulumi_aws as aws
example = aws.ssm.MaintenanceWindowTask("example",
max_concurrency=2,
max_errors=1,
priority=1,
service_role_arn=aws_iam_role["example"]["arn"],
targets=[{
"key": "InstanceIds",
"values": [aws_instance["example"]["id"]],
}],
task_arn="A... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
3dd88eeac31ac5bbd6f38266a6559dbfc5920c84 | 1996b0e9252362d91c809c4e7f95e7075f13816b | /src/memn2nmovie.py | 2d320ba80332af97fbb5e328c128b810935dd14b | [] | no_license | scheeloong/MovieQA_benchmark | 846c63d8a361bd4f630e31e3120772bc4965f999 | fb3e1b8fe9ddc6084b3c93206e7dfaed5ad42149 | refs/heads/master | 2020-05-30T08:41:44.764034 | 2017-05-03T05:30:19 | 2017-05-03T05:30:19 | 70,122,910 | 1 | 1 | null | 2016-10-06T04:33:34 | 2016-10-06T04:33:34 | null | UTF-8 | Python | false | false | 243 | py | # Ignored nice class design etc. due to time constraints
# This file is End to End Memory Networks Applied to MovieQA
# TODO: Copy paste from main.py to here
class MemN2N(object):
def __init__(self):
w2vLoader = Word2vecLoader()
| [
"scheeloong@gmail.com"
] | scheeloong@gmail.com |
572b6c66999864f7df8c5d30fa33fead2dc9462d | b819632a899cc4919c4efb097b87009a9d07d209 | /scripts/gen_instances.py | 077825684547c78c756d6f6310e3970a7c50d546 | [] | no_license | NuthanChandra/ctools | bb2570786d9b1a584c5b08800f48b02ed8664480 | bcb967c53375104e32b32c8f0d2b3ca25ed69e49 | refs/heads/master | 2022-11-28T04:25:30.092129 | 2020-04-14T12:38:27 | 2020-04-14T12:38:27 | 255,604,269 | 1 | 1 | null | 2020-07-23T16:29:45 | 2020-04-14T12:34:11 | Python | UTF-8 | Python | false | false | 10,482 | py | #!/usr/bin/python3
import yaml
import os
import ipaddress
import random
import sys
if len(sys.argv) != 3:
print('Incorrect usage')
print('Usage : ./gen_instances.py input.yaml templates.yaml')
exit()
# Open file all.yml
stream = open('all.yml', 'w')
# Read test specific config file
#test_stream = open(... | [
"nuthanc@juniper.net"
] | nuthanc@juniper.net |
15929ce97ffb1b90a1fe28ad9f041a54e79214e6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03543/s183858938.py | 30717f174807df5d49f58ebced4747d04076ac8b | [] | 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 | 199 | py | N=str(input())
x=0
ans="No"
for i in range(10):
if N.count(str(i))>=3:
if int(N[1])==i and int(N[2])==i:
ans="Yes"
break
else:
break
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
57928d64e4a89649157401c68c8a352e555c7048 | 6b6f376eac78ca349053440135be4e119cc7fdc1 | /Week4/Problem2.py | d9f5d1f06321bd7f27d7f3a4364c8d7f726991de | [
"MIT"
] | permissive | Sid2697/MIT-6.00.1x | cba465a8f277ddf7c4d7c0a3a9ef52a0fd7a3bdd | 70514740701890d008e42af2b8662c57f762760b | refs/heads/master | 2021-05-03T21:26:36.175571 | 2018-05-09T00:48:29 | 2018-05-09T00:48:29 | 120,383,500 | 3 | 0 | MIT | 2018-02-13T04:10:51 | 2018-02-06T01:15:02 | Python | UTF-8 | Python | false | false | 623 | py | def updateHand(hand, word):
"""
Assumes that 'hand' has all the letters in word.
In other words, this assumes that however many times
a letter appears in 'word', 'hand' has at least as
many of that letter in it.
Updates the hand: uses up the letters in the given word
and returns the new ha... | [
"noreply@github.com"
] | Sid2697.noreply@github.com |
2d11ff7cbf7c1adac79963ea6d88c227338e0900 | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2016/10/special-education-20161020/graphic_config.py | 4ca86bba2ed7ee22d81574611020eda1f104df72 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1XP4wcxRUFDyRAPyya3SjjnMPGWtb4rx-OqmIJKIwx28'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
4c50c768d0ff505edf858a78bf97de2fa5231d6e | 539af892f18d9a63f1d6966a15a100f004a5a908 | /452-find-min-arrow-shots.py | 9dff559916d97f00ef77da3434b0cb27955ce89f | [] | no_license | woofan/leetcode | 5f0e7cfbcd9d0fddd7b25c7a96896e6a24ccbd15 | 4a13026b6e04a71d5da56c7c35ac58877b27f69b | refs/heads/master | 2022-12-05T17:27:00.979915 | 2022-11-09T08:58:01 | 2022-11-09T08:58:01 | 226,093,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Solution:
def findMinArrowShots(self, points: List[List[int]]) -> int:
points = sorted(points)
res = 0
while len(points) > 0:
p = points.pop(0)
start = p[0]
end = p[1]
while len(points) > 0:
if points[0][0] <= end:
... | [
"495464616@qq.com"
] | 495464616@qq.com |
efbfcedecdc031b9d85db40d6472048025504ece | a59ec95fddc064ea9a554ad41e4ac8e82376701a | /xadmin/demo_app/shop/migrations/0013_comment.py | 7a593d13b1640ee20c0a2d941db309ba485ca86b | [
"BSD-3-Clause"
] | permissive | Nicholas86/PythonDemos | 449c08713c7c03633719a4ae7287b127783d7574 | 4f06639cc65a5e10cc993335d3d34e2d60aac983 | refs/heads/master | 2021-01-22T21:07:11.457179 | 2017-08-18T06:40:44 | 2017-08-18T06:40:44 | 100,681,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-15 02:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0012_auto_20170715_1009'),
]
operations = [
... | [
"970649831@qq.com"
] | 970649831@qq.com |
129492f9d331213c198f8d40fc7bc7f83bc60a01 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02414/s141179785.py | c8a1fd1e2971e66323cfb06c5bb9fb6c7c5c649e | [] | 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 | 437 | py | def main():
N, M, L = map(int, input().split())
A = tuple(tuple(map(int, input().split())) for _ in range(N))
B = tuple(tuple(map(int, input().split())) for _ in range(M))
cell = 0
row = []
for n in range(N):
for l in range(L):
for m in range(M):
cell += A[n]... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0919b61c83da7425d54e7e7d2e18e30b565427da | 0adb19e463ec27dda57b7f551b2d49e229053b8c | /courses_live/database.py | 5b48cdd17c052a2816aaa148a3f6c552a71cf6d2 | [] | no_license | alam-mahtab/FastapiCD | c8d36852a674583bba088eee8b1cb98a24acbea1 | 7206179408a9ae67ba485a4620d14b470009153d | refs/heads/main | 2023-02-25T05:56:35.685081 | 2021-02-03T16:16:26 | 2021-02-03T16:16:26 | 335,682,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # from sqlalchemy import create_engine
# from sqlalchemy.ext.declarative import declarative_base
# from sqlalchemy.orm import sessionmaker
# import os
# SQLALCHEMY_DATABASE_URL = "sqlite:///./allcourse.db"
# #SQLALCHEMY_DATABASE_URL = "postgresql://postgres:1234@127.0.0.1/allcourse"
# # Heroku Connection
# #SQLALCHEM... | [
"67095487+alam-mahtab@users.noreply.github.com"
] | 67095487+alam-mahtab@users.noreply.github.com |
28e9221ccc8be0802b6f2e408d301a27d244cbe7 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/detect-cycles-in-2d-grid/389881182.py | b11772143bf58fe33c51a892c14a15b1b8d5c91c | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # title: detect-cycles-in-2d-grid
# detail: https://leetcode.com/submissions/detail/389881182/
# datetime: Wed Sep 2 17:11:56 2020
# runtime: 2912 ms
# memory: 246.8 MB
class Solution:
def containsCycle(self, grid: List[List[str]]) -> bool:
m = len(grid)
n = len(grid[0])
visited = {}
... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
c14297373836466a96af2e84ab57c2a3aedb8764 | 6e44b766bb5e1c6e82ae3e7404c2a750db7eaa68 | /users/forms.py | 9c623ac110125da1dc5f067fc27eb06b53970646 | [] | no_license | momentum-team-3/omega-squadron-special-assignment-kim-izis-sloan_habbits | 0eb6df6fa0b33b5d4626a4752504639dfce70cf1 | 9b2b7da91c942fb9b6b62dec7a71daa4602b0f69 | refs/heads/main | 2022-12-07T09:55:05.477810 | 2020-09-02T20:05:59 | 2020-09-02T20:05:59 | 292,384,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import django.contrib.auth as dj_auth
from .models import User
class UserCreationForm(dj_auth.forms.UserCreationForm):
class Meta(dj_auth.forms.UserCreationForm.Meta):
model = User
fields = dj_auth.forms.UserCreationForm.Meta.fields
class UserChangeForm(dj_auth.forms.UserChangeForm):
... | [
"william.r.jukes@gmail.com"
] | william.r.jukes@gmail.com |
f930d03bf7f5d771549145dfd235d0401ee5d755 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/Dot1xMGMT-MIB.py | 875a6a08a20b2d9b3ab5379d370e42ce44bc1515 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 2,951 | py | #
# PySNMP MIB module Dot1xMGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Dot1xMGMT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:43:45 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
44b908397ca99bfb5cdd5691a36b5d051280e4c1 | 0163461fd9b21aed0eeb5c3365e8a82732a179f9 | /TWroot_Maker.py~ | 538fbc58d73ea49cb16d6f1ca0db4e93250b8b24 | [] | no_license | lcorcodilos/BStar13TeVOld | 8669808b8ab4b6969b844e8c4fa72fd32f6453c1 | a40b35782b8402f9e43b73a2ceb01c0da7194bf3 | refs/heads/master | 2021-09-28T18:08:34.352895 | 2018-11-19T03:21:38 | 2018-11-19T03:21:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,066 | #! /usr/bin/env python
###################################################################
## ##
## Name: TWrate.py ##
## Author: Kevin Nash ##
## Date: 6/5/2012 ##
## Purpose: This program creates eta binned tags and probes ##
## as a function of Pt for data and MC for use with... | [
"lac352@scarletmail.rutgers.edu"
] | lac352@scarletmail.rutgers.edu | |
795f82576a56dfd8685d3b9faea8cd50dfe613ae | f5ffd566166948c4202eb1e66bef44cf55a70033 | /test/test_single_facility_transaction.py | 31dfa07c8f69541a02b494283ffcee8b63862f33 | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
b31ec25c68eec53f465f0f9906a3f0a5e7521cfa | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /XPnTdP9eDkwqAQeWq_21.py | c32e4992166787b4d82dd517643dd2582db73323 | [] | 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 | 63 | py |
def assign_person_to_job(pl, jl):
return dict(zip(pl, jl))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e125f54f110d2790af538154066a033e3d9b5814 | f695d727b723d894e5ec29e10619cfd680512288 | /container.py | 4b3735bb1f74692564a7eebdb170b2f044c69529 | [
"MIT"
] | permissive | HardPlant/community_crawler_collections | eec01b2388aa8f561d64dc0391c179b9ac14ee0a | 46255d080ed9e283a5f1b9cd99b803576165d5d3 | refs/heads/master | 2020-04-05T07:34:09.209006 | 2018-11-09T01:24:54 | 2018-11-09T01:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import docker
import atexit
class Docker_Container(object):
"""docstring for Redis."""
def __init__(self, name):
super(Docker_Container, self).__init__()
self.client = docker.from_env()
self.container = self.client.containers.run(name, detach="True")
atexit.register(self.termina... | [
"abc7988se@naver.com"
] | abc7988se@naver.com |
bc1919ad3d746cc35243c6fe0bb823ca616e3803 | 2ae72b892555cccbd0f131d12085eee835bc82e7 | /customer/urls.py | db9fe7d88a5fbbcb22fcfac101e67b9c003480c6 | [] | no_license | Abdulrahimch/ref-cd-chlg | da13644ed856e0e7f14cbc30f0a065856f6077ba | b836c86592359e90552fe4edc7d9a2cb6134be2f | refs/heads/master | 2023-02-06T06:38:22.231671 | 2021-01-03T08:51:10 | 2021-01-03T08:51:10 | 326,363,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.urls import path
from . import views
app_name = 'customer'
urlpatterns = [
path('create/', views.CreateCustomerView.as_view(), name='create'),
path('list/', views.ListCustomerView.as_view(), name='list'),
path('get/<str:TC>/', views.CustomerDetailView.as_view(), name='get'),
path('delete/<... | [
"abooodch101@gmail.com"
] | abooodch101@gmail.com |
4bfa21e0f1e9c120c13cf7c4fab1ea4d50055ae5 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/uhd_restpy/testplatform/sessions/ixnetwork/statistics/view/drilldown/drilldown.py | 8b510324d58f739fe9f643b60c5d6c241049dca1 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,248 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
4b2bb099223a76faedd63d704cd5bd5354e9b99b | 7f66c9818b2a22e6dbfa832a6bb4f9f21fbd15da | /semester_1/fp/assignment_03-04/src/tests/test_repository.py | ff63b62f75160ae6208abb9d10335ccea1ad1b88 | [] | no_license | caprapaul/assignments | cc3992833d4f23f74286c1800ac38dc2d9a874da | 206b049700d8a3e03b52e57960cd44f85c415fe8 | refs/heads/master | 2023-05-24T03:46:42.858147 | 2022-05-03T16:26:58 | 2022-05-03T16:26:58 | 248,552,522 | 0 | 0 | null | 2023-05-09T01:49:04 | 2020-03-19T16:31:37 | C | UTF-8 | Python | false | false | 1,190 | py | from repository import Repository
def test_add_item():
repo = Repository()
repo.add_item(1)
assert repo.get_items() == [1]
def test_get_items():
repo = Repository()
repo.add_item(0)
repo.add_item(1)
assert repo.get_item(lambda item: item == 1) == 1
repo.add_item(1)
assert repo... | [
"c.paulica@gmail.com"
] | c.paulica@gmail.com |
599156acc238daaf020faae0473da9caecfb6781 | 8f909180c687606371eabad11c5e5ecc25e65887 | /exercicios/ex031.py | 4fdbade8ce6e235bf2e8799016c13e123ab1b6aa | [] | no_license | lfbessegato/Treinamento_Python_CVideo | caffb1625f7e0317000f8e429d8ee0b80712085f | a003f362ba95787e90ffc7f2d1ace466032c943a | refs/heads/master | 2020-08-17T15:37:51.426094 | 2019-11-17T00:00:05 | 2019-11-17T00:00:05 | 215,683,846 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | print('Exercício: 031 - Custo da Viagem')
viagem=float(input('Qual é a distancia de sua viagem? '))
print('Você está prestes a começar uma viagem de {} Km'.format(viagem))
preco = viagem * 0.50 if viagem <=200 else viagem * 0.45
''''if (viagem <= 200):
preco = viagem*0.50
else:
preco = viagem*0.45'''
print('E ... | [
"lfrbessegato@gmail.com"
] | lfrbessegato@gmail.com |
9c8ffa48d458569a96f4cc6e503854853d5abefc | 1817aca734cda258cbbfd9e13fbf040d76824621 | /aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyRouterInterfaceAttributeRequest.py | e408f950bf68b3c6dda69c62affc2797b1f9da4c | [
"Apache-2.0"
] | permissive | sdk-team/aliyun-openapi-python-sdk | 4bd770718e70e31f19e1e322727c27ba74d9fb80 | 996cb07bfcf010fe3ab65daa73d26df2f3b6e97f | refs/heads/master | 2022-08-04T13:11:56.729215 | 2022-07-25T10:01:10 | 2022-07-25T10:01:10 | 183,356,741 | 0 | 0 | null | 2019-04-25T04:33:24 | 2019-04-25T04:33:24 | null | UTF-8 | Python | false | false | 3,504 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
0fda826f82d97f7885853dc84b77041f2e5180b7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_055/ch11_2020_03_04_14_18_21_191870.py | f9b1e6006e420f16db87ac45f648856090281012 | [] | 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 | 96 | py | def distancia_euclidiana(x1,y1,x2,y2):
dXY = ((x2-x1)**2 + (y2-y1)**2)**(1/2)
return dXY | [
"you@example.com"
] | you@example.com |
2e9ab45a10e1f79830c9988e95cb1a190306f4e2 | cd99fe697ce43e30a64df9cc1df9470d1b0712ab | /forge/blade/systems/skill.py | 70b0c8cee058c76c15450e7075980bc13375c0d8 | [
"MIT"
] | permissive | openai/neural-mmo | ecde7382aa06123b9951cd78712e5eb1497204aa | 38fd0310bc784de9b86e5144d0e78f4d31005e6b | refs/heads/v1.0 | 2023-08-05T02:48:18.988444 | 2019-09-13T23:46:13 | 2019-09-13T23:46:13 | 173,154,826 | 1,607 | 203 | MIT | 2023-07-21T13:04:40 | 2019-02-28T17:17:24 | Python | UTF-8 | Python | false | false | 2,314 | py | import abc
import numpy as np
from forge.blade.systems import experience
class Skills:
def __init__(self):
self.melee = Melee()
self.ranged = Ranged()
self.defense = Defense()
self.constitution = Constitution()
self.fishing = Fishing()
self.mining = Mining()
... | [
"sealsuarez@gmail.com"
] | sealsuarez@gmail.com |
b5eca1d8d9d9dc82548e77fa40ebc4aa07bb36ca | b47a619f6ccd0f76ccce989e62d0c963a1c14ab4 | /Python/1D Backtrack and DFS/Combination Sum.py | e3472ebadf648a31e2011fbab102f7d01ce2ae04 | [] | no_license | GreatTwang/lccc_solution | 0799d19097549ef3c9beeebf6dc9960db9f9eb54 | e75899634f45b0d60f8b3cb854ab9e503d676a57 | refs/heads/master | 2020-07-07T02:45:18.984502 | 2019-10-09T04:53:35 | 2019-10-09T04:53:35 | 203,219,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
if not candidates:
return []
candidates.sort()
res=[]
self.dfs(0,candidates,target,res,[])
return res
def dfs(self,i,candidates,target,res,temp):
if target... | [
"tianwang@bu.edu"
] | tianwang@bu.edu |
96bacd12750d1c2e357dfedf087f8e4334a74b44 | 3b1dd399441ce0d66fb859251c8fa396359922a2 | /migrations/versions/bb4da1a4e13b_.py | 6c78351c61d2fc751a2d149671e637cf2848ff7c | [] | no_license | manimanis/fyyur-fsnd | 6f639e7ecd6f1829d6e7446ea46c5cf296c65ad6 | 6279dc5a6a1388abd727aa2f9674be357aca8d0d | refs/heads/master | 2021-05-23T00:48:29.297836 | 2020-05-15T14:23:51 | 2020-05-15T14:23:51 | 253,160,772 | 0 | 0 | null | 2020-04-05T05:32:09 | 2020-04-05T05:14:55 | Python | UTF-8 | Python | false | false | 7,041 | py | """empty message
Revision ID: bb4da1a4e13b
Revises:
Create Date: 2020-04-04 11:40:15.811075
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bb4da1a4e13b'
down_revision = None
branch_labels = None
depends_on = None
def insert_venues(venues):
data = [
... | [
"manimohamed@gmail.com"
] | manimohamed@gmail.com |
8af67ef705f963d59ebf2b9b8833ff59191357d3 | 09ba5ae2edc51f3fd812b9205188b1b01e6bea77 | /src/CPMel/api/__init__.py | d79e34a53b7969f2e7c6bdc1c7609b09e39f2de0 | [] | no_license | cpcgskill/Maya_tools | c6a43ad20eab3b97e82c9dfe40a1745b6098e5c4 | 93f9e66e5dc3bb51f33df0615415a56a60613ff1 | refs/heads/main | 2023-02-26T16:20:52.959050 | 2021-01-28T06:12:18 | 2021-01-28T06:12:18 | 325,512,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | #!/usr/bin/python
# -*-coding:utf-8 -*-
u"""
:创建时间: 2020/5/18 23:57
:作者: 苍之幻灵
:我的主页: https://cpcgskill.com
:QQ: 2921251087
:爱发电: https://afdian.net/@Phantom_of_the_Cang
:aboutcg: https://www.aboutcg.org/teacher/54335
:bilibili: https://space.bilibili.com/351598127
* 本模块提供了对Maya Api数组的封装让其可以顺利的融入Python循环机制中
>>> imp... | [
"www.cpcgskill.com"
] | www.cpcgskill.com |
509dd80f518d090b7b652da61e73dcb7c9fc8dca | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/django/conf/locale/ml/formats.py | 54d24901e6fa14e6f09609683090da298237acb6 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b2bd9fcce7b1f8745dbdb613aff6d4899152416c8fa4ddb2e5eabf87acf271e4
size 1620
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
6a13ba1c4378ad9c1a644e13f55f0f8fa63eee47 | 786de89be635eb21295070a6a3452f3a7fe6712c | /HDF5Explorer/tags/V00-00-16/src/PlotsForCorrelations.py | dbfd672d0ea5167084eb1d8721ba72af631f4ac9 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,844 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module PlotsForCorrelations...
#
#------------------------------------------------------------------------
"""Plots for correlations.
This software was developed for the SIT project.... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
8d0595a69fed497469b9a7581a1c390883ebddf2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03724/s238839540.py | 588198e5f05411363362d729c7924243903adf88 | [] | 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 | 210 | py | N,M = map(int,input().split())
lis = [0] * N
for i in range(M):
a,b = map(int,input().split())
lis[a-1] += 1
lis[b-1] += 1
ans = 'YES'
for i in lis:
if i % 2 == 1:
ans = 'NO'
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b7c784c633d196e2539ce3c7e2669d5ee6f91817 | 0987f31e64bcacb41ba3a1e20054d7b8ac0d7346 | /practice/C_ABC/abc101_c/abc101_c.py | 0806869cc35c5539020db52ae914a214e00b2475 | [] | no_license | masakiaota/kyoupuro | 81ae52ab3014fb2b1e10472994afa4caa9ea463b | 74915a40ac157f89fe400e3f98e9bf3c10012cd7 | refs/heads/master | 2021-06-27T04:13:52.152582 | 2020-09-20T03:21:17 | 2020-09-20T03:21:17 | 147,049,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # https://atcoder.jp/contests/abc101/tasks/arc099_a
import sys
read = sys.stdin.readline
ra = range
enu = enumerate
def read_ints():
return list(map(int, read().split()))
N, K = read_ints()
if N == K:
print(1)
exit()
A = read_ints()
K -= 1
i = A.index(1)
# 怒りの全探索
ans = 0
for j in range(0, N - 1, K):... | [
"aotamasakimail@gmail.com"
] | aotamasakimail@gmail.com |
1726e4efb58a6d72ef82806bdfe1ea0b454835b5 | 208d90e62d59f680db0ba76513cf2409b8521263 | /labm8/internal/flags_parsers.py | 651fd038ff96c9750f90f1917b59035e57d15915 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ChrisCummins/photolib | 930b7c1dfb6bb2a04592b1e01e8ce41f15304ef2 | a0592482317ef8c27676efe1c43452af5cd65106 | refs/heads/master | 2020-07-09T14:25:10.582105 | 2019-08-23T19:04:48 | 2019-08-23T19:04:48 | 122,436,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | """Implementations of custom flag types for absl.flags."""
import pathlib
from typing import Callable
from absl import flags as absl_flags
class PathParser(absl_flags.ArgumentParser):
"""Parser of path values."""
def __init__(self,
must_exist: bool = True,
exist_ok: bool = True,
... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
9c22b324a597165492839134097ebe70b6a34ad9 | 34530f74092ac04334d3d18879f3c59c3354f4f8 | /0x0F-python-object_relational_mapping/5-filter_cities.py | 7375a1ab7d02c67a8c898ed74ff540402f0d1cb9 | [] | no_license | MarySerna/holbertonschool-higher_level_programming | 9f37df91d7da703a31c461ca07703947ed090322 | f7ed79a660690d412b7a8298ac9c658962d07c7a | refs/heads/master | 2021-01-08T23:53:29.528920 | 2020-05-15T04:15:25 | 2020-05-15T04:15:25 | 242,180,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/python3
"""
Script that takes in the name of a state as an argument and lists
all cities of that state, using the database hbtn_0e_4_usa
"""
import MySQLdb
from sys import argv
if __name__ == "__main__":
st_name = argv[4]
db = MySQLdb.connect(host="localhost", port=3306, user=argv[1],
... | [
"mary.serna.8903@gmail.com"
] | mary.serna.8903@gmail.com |
245edb926997dc67121b55ecb8626b03314d3bc5 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/unused_FSettlementSTP.py | e2a9ea2fe87025be305e93d73d23da089661e071 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,957 | py | """ Settlement:1.2.2.hotfix23 """
"""----------------------------------------------------------------------------
MODULE
FSettlementSTP - Module including STP functions.
(c) Copyright 2001 by Front Capital Systems AB. All rights reserved.
DESCRIPTION
STP
-------------------------------------------------... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
992fcc1ec190e855d6f74afb3c979b4b9c6e4430 | 02f565644b729c496bb4d802dfc6cb3a5db68ff1 | /problems/longest_substring_with_at_most_two_distinct_characters.py | 62b81d8293655f48094719e81e73901fb4d906c6 | [] | no_license | saubhik/leetcode | 99a854ad87272eb82b16f22408ee7314ba0db099 | 221f0cb3105e4ccaec40cd1d37b9d7d5e218c731 | refs/heads/master | 2023-04-27T03:11:03.565056 | 2021-05-17T07:55:22 | 2021-05-17T07:55:22 | 275,324,914 | 3 | 1 | null | 2020-10-03T07:06:17 | 2020-06-27T07:48:37 | Python | UTF-8 | Python | false | false | 797 | py | from collections import defaultdict
class Solution:
# Sliding Window.
# Time Complexity: O(n).
# Space Complexity: O(1).
def lengthOfLongestSubstringTwoDistinct(self, s: str) -> int:
max_length = 0
left = right = 0
chars = defaultdict(int) # Mapping from char to right most ind... | [
"saubhik.mukherjee@gmail.com"
] | saubhik.mukherjee@gmail.com |
8a01341a378fc7dba9f8b9c4d5ac5114eab11163 | 7c0a458023750d66e529c5073dc9ebd270ebfdf5 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/storage/tasks/delete_object_task.py | 86ac71d54ed90fb0bbc8931437f34ac0d6ea40ca | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | rravi-sift/google-cloud-sdk | ecbf48d182941413628a80f958aab808d5b82d2c | db4ff41a6a3512346586a9ce49dbbafc4de097d0 | refs/heads/master | 2023-02-16T10:08:31.208785 | 2021-01-12T00:00:00 | 2021-01-12T16:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. 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 requir... | [
"gcloud@google.com"
] | gcloud@google.com |
a89ac94dbbf69892bc9f56d6fdae71b849a5f329 | a12808d0249efc5293efea0920d9d2a6d2c8385b | /Python/hello_world_to_display.py | 2b6f84ab345854414779f09c420a21e7906997d2 | [] | no_license | RandyG3/MyProjects | 3e437fbf7cdc6f371f0fd8f88dd55438a606cf11 | af181cf2fd25a15c2dd5b50706bda133a847f063 | refs/heads/master | 2021-01-26T06:35:29.130872 | 2020-02-26T20:16:54 | 2020-02-26T20:16:54 | 243,345,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Sample code for executable
import tkinter as tk
root = tk.Tk()
canvas1 = tk.Canvas(root, width=300, height=300)
canvas1.pack()
def hello():
label1 = tk.Label(root, text='Hello World!', fg='green', font=('helvetica', 12, 'bold'))
canvas1.create_window(150, 200, window=label1)
button1 = tk.Button(text='Cl... | [
"40631249+RandyG3@users.noreply.github.com"
] | 40631249+RandyG3@users.noreply.github.com |
88506ed39b9399c13418e0f6a0a7051565affff3 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-recommendations-ai/samples/generated_samples/recommendationengine_v1beta1_generated_prediction_api_key_registry_delete_prediction_api_key_registration_sync.py | 3139642c92cc479afac91602946c9cf3937bb6f3 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,035 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
59d82b3ca0d410960cfc1c8d6d78a97143352649 | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.4/tests/modeltests/many_to_one_null/tests.py | 1e302ecada9125659a8857e4b03bb757d656a8d8 | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 4,494 | py | from __future__ import with_statement, absolute_import
from django.test import TestCase
from .models import Reporter, Article
class ManyToOneNullTests(TestCase):
def setUp(self):
# Create a Reporter.
self.r = Reporter(name='John Smith')
self.r.save()
# Create an Article.
... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
78aa5bb808b1c08a5f689be120d37782fdb859a7 | a22904cfe0baf266826bef59f6a98ccdcd970d07 | /tensor2tensor/models/research/next_frame_sv2p.py | 57b5e8246e2daf578134ca91dd7ac2beba1370eb | [
"Apache-2.0"
] | permissive | Adaydl/tensor2tensor | 0e805e2974aad5d34a332df4c0bd8fc003f5ffc6 | e99ae9135e214875f83df70f1c366c8a86736bb9 | refs/heads/master | 2020-03-25T01:18:21.207415 | 2018-08-02T02:00:27 | 2018-08-02T02:00:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,018 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
083caf7b2b6b1a98a732af441789e2c4a476f0f2 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/Dongola/common/account_invoice_confirmation/__openerp__.py | 40a0baaf84f1d03ec55852d43210ae33ddcf10e4 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
{
"name" : "Account Invo... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
00d64283a2fa225f1b497fa43d72dabcf452f6dc | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/utilities/logic/include.py | 076a3428989f2c5f3fd6100c76f270a2f1dbea02 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 2,650 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
5765852bccb937364673dea2a4281c2dd73b618e | ea18faef9936158ed80b6bd3c3e4721523aad82e | /multiprocessingdemo/map_test01.py | 7da4ea2e2145b4b72c16bae3edf1a117977ab8aa | [] | no_license | zidanewenqsh/my_api_02 | 537dbf63bcd698726bfbc996dae87cb16fa0a63f | 23054c852d5bb2b3e17c3a25eba42be9676ce57c | refs/heads/master | 2021-06-23T16:02:14.895543 | 2021-05-16T13:23:08 | 2021-05-16T13:23:08 | 224,233,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | #!/e/Soft/anaconda3/python2
# -*- coding: utf-8 -*- #
# ------------------------------------------------------------------
# @File Name: apply_test01.py
# @Author: wen
# @Version: ver0_1
# @Created: 2021/4/23 9:51
# @Description: Main Function: xxx
# @Note: xxx
# F... | [
"zidanewenqsh@163.com"
] | zidanewenqsh@163.com |
07132d31c0779f89387f7b9558fb8d39e2a19763 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnlyra.py | 42b6e8fe2134240a8eced1adebdd93200a89548e | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 259 | py | ii = [('RogePAV2.py', 2), ('RogePAV.py', 1), ('LeakWTI2.py', 2), ('LeakWTI3.py', 3), ('WilkJMC2.py', 2), ('KirbWPW2.py', 1), ('LeakWTI4.py', 1), ('LeakWTI.py', 1), ('CoolWHM3.py', 3), ('BabbCRD.py', 3), ('BellCHM.py', 1), ('SomeMMH.py', 1), ('JacoWHI.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7636e78c5514981a34d965c0968a2f91d5a42c9d | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/CortexAttackSurfaceManagement/Scripts/RemediationPathRuleEvaluation/RemediationPathRuleEvaluation.py | 8b76b32b9a1540a84d275c96c78e87b254f224e7 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 7,445 | py | import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
"""
Script for evaluating and finding a remediation path rule that matches for
a given alert
"""
import traceback
from typing import Any
# should match IncidentSeverity in CommonServerPython
SEVERITY_MAP = {
"unknown": 0,
... | [
"noreply@github.com"
] | demisto.noreply@github.com |
afe17f71e8c2b5f65e3eb6a4ec5ccb9471ffb4dd | 525bdfe2c7d33c901598a501c145df94a3e162b0 | /subject5_trees/search_tree.py | 26e49e4a62a085defde74362730b2b35ca86f1f2 | [] | no_license | davendiy/ads_course2 | f0a52108f1cab8619b2e6e2c6c4383a1a4615c15 | e44bf2b535b34bc31fb323c20901a77b0b3072f2 | refs/heads/master | 2020-04-06T09:37:12.983564 | 2019-05-09T10:28:22 | 2019-05-09T10:28:22 | 157,349,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,788 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
# by David Zashkol
# 2 course, comp math
# Taras Shevchenko National University of Kyiv
# email: davendiy@gmail.com
from subject5_trees.binary_tree import BinaryTree
class SearchTree(BinaryTree):
""" Клас - Бінарне дерево пошуку.
Реалізує структуру даних, у я... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
dc5b2827b569482d40aee19aebb042038d2a9374 | de33d07019f4be4439de4f07585a0906215ef562 | /剑指 Offer 09. 用两个栈实现队列.py | a4b18b8312e8718787af3be3435ec2cdcfc9d7f9 | [] | no_license | Qinpeng96/leetcode | defbf7873fc07ed42fd34bb0c3e3282ff41ed266 | e1dfd95c5bf09ffcd42934c1aca21a10337c3e7e | refs/heads/master | 2021-07-13T10:53:32.109431 | 2020-08-19T09:33:36 | 2020-08-19T09:33:36 | 196,947,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | """
[剑指 Offer 09. 用两个栈实现队列](https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/)
用两个栈实现一个队列。队列的声明如下,请实现它的两个函数 appendTail 和 deleteHead ,分别完成在队列尾部插入整数和在队列头部删除整数的功能。(若队列中没有元素,deleteHead 操作返回 -1 )
示例 1:
输入:
["CQueue","appendTail","deleteHead","deleteHead"]
[[],[3],[],[]]
输出:[null,null,3,-1]
示例 2:
... | [
"Qinpeng96@users.noreply.github.com"
] | Qinpeng96@users.noreply.github.com |
04c7fc9ce263dcbc40aa2b33ed673be954e1ec22 | 41f02a4c376a69a7b4277611008feaa23d1c0577 | /__main__.py | 97420acc148da7fb7f679eab29c6852f376c9340 | [] | no_license | testestzxcv/crawlerTest | cf334b2e369e6a7948b99dc4ce439daa0318820a | 454cfc7d5327869d763cb18a1280e65ef8a3481a | refs/heads/master | 2020-03-20T20:02:44.645732 | 2018-06-17T15:59:19 | 2018-06-17T15:59:19 | 137,667,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import collection.crawler as crawler
if __name__ == '__main__':
items = [
{
# jtbc 뉴스
'pagename': 'jtbcnews',
'since': '2018-05-01',
'until': '2018-05-30'
},
{ # 대한민국 청와대
'pagename': 'TheBlueHouseKR',
'since': '2018-0... | [
"illuillu55@hotmail.com"
] | illuillu55@hotmail.com |
d267bdedd5dcd5216f6084e72162374698e9fa3c | ce6739d9e76f16d1cbdfbb3292cdabac62d23ee1 | /mod_3/lesson_9/ex_2_mro.py | 94fd775652f58b9221ff922b8592bc0e9aa8d545 | [] | no_license | adrbed/python_poczatek | 1a863c0dc40c2315ced8985cf0b31d1b84e3f940 | 134626ccbe2255b0a28183e7d5d212db12c7deb4 | refs/heads/master | 2023-02-10T15:06:51.888544 | 2021-01-09T18:23:56 | 2021-01-09T18:23:56 | 328,218,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | class Grandparent:
def say_hello(self):
print("Grandpa says Hello!")
class ParentOne(Grandparent):
def say_hello(self):
print("ParentOne says Hello!")
class ParentTwo(Grandparent):
def say_hello(self):
print("ParentTwo says Hello!")
class Child(ParentOne, ParentTwo):
pas... | [
"adrianbednarczyk1@gmail.com"
] | adrianbednarczyk1@gmail.com |
ffb6e242f67b29ec48964060ea038247d1a96760 | 350e5c95f6db632b363cca80623e859886045961 | /tests/test_middleware.py | 07fe3698b883c229c3b3d9edb0205702e0fd5b9c | [
"MIT"
] | permissive | BeeMyDesk/prerender-python-starlette | b7c2ed9410975d08c33ceaded4b6c6f5d2282587 | 0fbbf142c57ebd5c1c6d0271ca8ddea19906edf0 | refs/heads/master | 2021-02-27T18:36:42.516267 | 2020-04-04T08:25:03 | 2020-04-04T08:25:03 | 245,627,127 | 16 | 0 | MIT | 2020-07-21T05:07:56 | 2020-03-07T12:16:34 | Python | UTF-8 | Python | false | false | 8,799 | py | import asyncio
import pytest
from base64 import b64encode
from typing import Awaitable, Callable, List, Optional
import respx
from starlette.applications import Starlette
from starlette.middleware import Middleware
from starlette.requests import Request
from starlette.responses import HTMLResponse
from starlette.routi... | [
"fvoron@gmail.com"
] | fvoron@gmail.com |
4e34a51aa65d771cbba5bd7304ee6613c9078496 | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/form/nglview_NGLWidget/merge.py | b8338dfdc6ff1fab23ea9ce9722725dcc501fc47 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 981 | py | from molsysmt._private.exceptions import NotImplementedMethodError
from molsysmt._private.digestion import digest
from molsysmt._private.variables import is_all
@digest(form='nglview.NGLWidget')
def merge(items, atom_indices='all', structure_indices='all'):
from . import to_molsysmt_MolSys
from ..molsysmt_Mol... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
4dd6f1b96373db2c8e51c5f14abce2fb5957140a | 849eabf71a971cbf03902274cfba48dfe97126f8 | /bin/terminology.py | 1a74c0efdf419694e46cd14eaaab1955587849bb | [
"MIT"
] | permissive | angrycaptain19/python-patterns | 97865aa0484014906bdff07e5338faf0878ee1d3 | 7bd887d83f1081f5f00f199988736e452c2fea74 | refs/heads/master | 2023-03-15T10:12:43.428244 | 2021-01-05T14:27:20 | 2021-01-05T14:27:20 | 344,442,157 | 0 | 0 | null | 2021-03-04T10:55:13 | 2021-03-04T10:54:30 | null | UTF-8 | Python | false | false | 1,719 | py | #!/usr/bin/env python3
"""Count the frequency of various phrases, given the path to the Python PEPs.
In Python PEPs, the opposite of “subclass” is almost always “base class” — just remember that the builtin is named super(), not base()! Stats:
216 base class
0 child class
10 derived class
12 parent class
372 ... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
c115e17a85ead4bae7ee8b193807a9e1c84d7ad9 | fa80cfbdf17ba50869e55fd4e3a97ba0d04e32c0 | /ema_workbench/examples/prim_constrained.py | a71aeada795a7ba6a4248e653ff49ba7ced4585a | [] | no_license | TuringSigning/EMAworkbench | cfb0d89db01734ef7679813b936d523b166a5930 | 37303be772526f55caac86f260e1856d57846ed5 | refs/heads/master | 2023-08-02T22:57:10.536120 | 2021-09-28T08:11:14 | 2021-09-28T08:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | '''
a short example on how to use the constrained prim function.
for more details see Kwakkel (2019) A generalized many‐objective optimization
approach for scenario discovery, doi: https://doi.org/10.1002/ffo2.8
'''
import matplotlib.pyplot as plt
import pandas as pd
from ema_workbench.analysis import prim
from ema_... | [
"j.h.kwakkel@tudelft.nl"
] | j.h.kwakkel@tudelft.nl |
820c8aa8f38abf79bfbb80073d6a6ab41a499410 | 959a7b17884aa9af1d38d9c6b0afe2045a9be5d2 | /Arrays/Duplicate Zeros.py | 72931527f252b4444eda46967bcf04a6eb3f9dec | [] | no_license | dumavit/leetcode | a1c998f4c56411b061995d939093b03f7aae366b | 866689f564125ca4152dc1b6b3d268991d7ec89a | refs/heads/master | 2022-02-07T20:44:17.388121 | 2022-01-31T21:02:28 | 2022-01-31T21:02:28 | 252,981,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | class Solution:
def duplicateZeros(self, arr: List[int]) -> None:
shifted_nums = []
for idx, num in enumerate(arr):
shifted_nums.append(num)
if num == 0:
shifted_nums.append(num)
arr[idx] = shifted_nums[idx]
| [
"vitalii.duma@corva.ai"
] | vitalii.duma@corva.ai |
c65d29244e87df236e7e8d0a79ba087f6c6fd804 | cf7b0ab779e273c3a553fa7e6ca4e98c524ec8f9 | /Buildings/migrations/0001_initial.py | 62238982390d69c8a203ad934f19f65a10ef632c | [] | no_license | zenmeder/JKDatabaseSystem | 369a40172420eb1f783467b5884e6e94f6fa9a71 | 146a552e549c9a1ef131bb475ecf5e8947696a6c | refs/heads/master | 2020-03-19T09:12:41.774587 | 2018-06-12T03:04:56 | 2018-06-12T03:04:56 | 136,268,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-06-06 07:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Models... | [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
eaa333a0934f55b04455e258ad624547031f15ba | 3facdefca75155161d8a1a1c7ddfaf10f3f2c6fe | /venv/Lib/site-packages/eikon/__init__.py | c6c4fa77ddf4b068f1512d7edf45e56cb7891c7a | [
"Apache-2.0"
] | permissive | suppureme/FisherEmbeddingFinal | b0b171c4757e456046224dcdcc3418889dcaccfc | 0d07f09931658c838988c987cd6d8db5376ff715 | refs/heads/master | 2023-07-06T19:47:26.755177 | 2021-08-10T06:04:47 | 2021-08-10T06:04:47 | 394,538,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # coding: utf-8
__version__ = '1.1.12'
"""
Eikon Data API for Python allows your Python applications to access Refinitiv data directly from Eikon.
Its usage requires:
- An App Key (you can create it wit App Key Generator in Eikon Desktop)
- Eikon Desktop or Refinitiv Workspace application runni... | [
"asahu99@gmail.com"
] | asahu99@gmail.com |
703cec87c08178efa91df80e2786aa1b14327691 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/saurabhmathur96_Neural-Chatbot/Neural-Chatbot-master/chatbot.py | ceab9388c04348415a393da55fc6b5a43a62dc90 | [] | 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 | 3,287 | py | from keras.models import Sequential
from keras.layers import Embedding, Dense, LSTM, GRU, Bidirectional, RepeatVector, TimeDistributed, Activation, BatchNormalization
from keras.optimizers import SGD, Adam
from keras.callbacks import LearningRateScheduler, ModelCheckpoint
import numpy as np
class Chatbot(object):
... | [
"659338505@qq.com"
] | 659338505@qq.com |
5c7e53176563a920481110a3f7067e56536ab633 | 27c1d23ecb9ea965a3ae46ed21120537ce1d473b | /sa/profiles/Eltex/MES5448/get_metrics.py | 69ccc6e7a68d232a6ebb91311d77c5fd6ccd16ba | [
"BSD-3-Clause"
] | permissive | Mr-Method/noc | 0a0d83696a7e03519feeafca18b251c6a3690c1e | bd2a2375177c25c79d5808f05fcca7d7d6be34a1 | refs/heads/master | 2023-03-17T18:28:12.837982 | 2021-03-09T14:09:51 | 2021-03-09T14:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | # ----------------------------------------------------------------------
# Eltex.MES5448.get_metrics
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# NO... | [
"sysfar@gmail.com"
] | sysfar@gmail.com |
c4adeef44d6cca045dcce4cc8a8f62bcf5284296 | 31cf77b4c0342c6148b35ae2613d5e2501d5e755 | /src/encoded/tests/fixtures/ontology.py | 15ddfe48c163d19bd682754643d039b6a519129f | [
"MIT"
] | permissive | ENCODE-DCC/encoded | 096de8a6d60c959a783cc9517f1d60bd6c21b71f | 80e05610c79b46d0890228555bb03e436b2fef11 | refs/heads/dev | 2023-08-08T15:45:07.493187 | 2023-08-03T20:01:24 | 2023-08-03T20:01:24 | 7,045,549 | 110 | 69 | MIT | 2023-09-12T23:59:45 | 2012-12-07T00:52:21 | JavaScript | UTF-8 | Python | false | false | 997 | py | import pytest
@pytest.fixture
def ontology():
ontology = {
'UBERON:0002469': {
'part_of': [
'UBERON:0001043',
'UBERON:0001096',
'UBERON:1111111'
]
},
'UBERON:1111111': {
'part_of': []
},
'UB... | [
"noreply@github.com"
] | ENCODE-DCC.noreply@github.com |
2d1dd0ebd431813e8ae9bc4e965fdcd7c8261786 | 2113236879feefd2d3c37bde111d8c4648ae4d01 | /pyraf-2.1.7/lib/pyraf/cgeneric.py | 8795cdb205e8d6db763b673ec99b679ea27df1f2 | [
"BSD-2-Clause"
] | permissive | ih64/XRB-phot | 0921a062727c88d08cc8fc3b19b6aedd9afc8ca8 | d3bfb30925b0bc57ca141a496cdea88aa80277b5 | refs/heads/master | 2021-01-10T20:15:18.800266 | 2015-08-10T14:02:48 | 2015-08-10T14:02:48 | 39,283,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | """cgeneric.py: Context-sensitive scanner class
Maintains a stack of instances of John Aycock's generic.py scanner
class and allows context-sensitive switches between them.
Self.current is a stack (list) of integers, with the last value
pointing to the current scanner to use; by default it is initialized
to zero. Th... | [
"imran.hasan@yale.edu"
] | imran.hasan@yale.edu |
ee59fc5c498f7918aa55c938b533a64db6ddc5d0 | 9b4596a19813123eb520ad77bcb7a78b9005d94f | /stacks_queues/rain_water_trapped.py | ce1af383e77adc13080bcffad6919e5dccd0fb6a | [] | no_license | ssinghaldev/interview_bit | b36dcba9483712fcbcc4f15e66408d0a178661ee | f188726f22a900791d7891628d824d1bc9bcc1e1 | refs/heads/master | 2020-04-01T12:51:56.494213 | 2019-10-29T17:30:31 | 2019-10-29T17:30:31 | 153,227,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | from collections import deque
def dq_insert(dq, num, idx):
len_dq = len(dq)
stack = []
while dq:
if num > dq[0][0]:
dq.clear()
break
stack.append(dq.popleft())
dq.appendleft((num,idx))
while stack:
dq.appendleft(stack.pop())
c... | [
"sbmsgl1129@gmail.com"
] | sbmsgl1129@gmail.com |
50f4255f8eee72d71dc61893ef9ef69a7eae564c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc074/B/4878742.py | 23d6f464713186da5029b02f6c2e028bf5730984 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | N = int(input())
K = int(input())
X = list(map(int, input().split()))
ans = 0
for x in X:
ans += 2*min(x, abs(K-x))
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
b804826cc98a88ae3f0ba2e76481cdcff751c50c | 34578a08451dc124f02fbba92a219da3347059cd | /sql/views.py | 003dd0a74a43992b2e1db16eb7a8feb6faf9eeed | [] | no_license | gwjczwy/CTF-Exercises | b35d938b30adbc56c1b6f45dc36cea1421c702fb | c2d5c47f5047b1601564453e270ce50aad7f56fc | refs/heads/master | 2020-05-25T23:51:26.190350 | 2019-05-22T13:18:59 | 2019-05-22T13:18:59 | 188,042,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from json import dumps
import pymysql
from sql.models import Check
from time import time
from random import randint
# Create your views here.
def index(requests):
return render(requests,'s... | [
"zwy053@163.com"
] | zwy053@163.com |
80c25a8cddcf01cb72d705dad13a28d1ff81ef19 | 922e923bdab099efa7161f5806ed262ba5cc84c4 | /apps/users/migrations/0007_auto_20180125_2248.py | 8a949226eafdec7a452ba8183e32f15f6bf75d21 | [
"MIT"
] | permissive | iamjdcollins/districtwebsite | eadd45a7bf49a43e6497f68a361329f93c41f117 | 89e2aea47ca3d221665bc23586a4374421be5800 | refs/heads/master | 2021-07-05T19:06:12.458608 | 2019-02-20T17:10:10 | 2019-02-20T17:10:10 | 109,855,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-26 05:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20180131_1434'),
]
operations = [
migrations.AlterField(... | [
"jd@iamjdcollins.com"
] | jd@iamjdcollins.com |
7943dd4faa6d70342d9dfbb4d5b90ea3977e11ed | fe6f6d11dde2a3205ae9758c7d4eb1f824b84102 | /venv/lib/python2.7/site-packages/logilab/common/test/unittest_ureports_text.py | 25a21948cceaeb4be511a2e55cb9f892ba8b65a5 | [
"MIT"
] | permissive | mutaihillary/mycalculator | ebf12a5ac90cb97c268b05606c675d64e7ccf8a6 | 55685dd7c968861f18ae0701129f5af2bc682d67 | refs/heads/master | 2023-01-10T14:56:11.780045 | 2016-09-20T12:30:21 | 2016-09-20T12:30:21 | 68,580,251 | 0 | 0 | MIT | 2022-12-26T20:15:21 | 2016-09-19T07:27:48 | Python | UTF-8 | Python | false | false | 2,456 | py | # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | [
"mutaihillary@yahoo.com"
] | mutaihillary@yahoo.com |
17146cff8dc8022e9b2e51bc04035d144b85ba6d | 50a6b7996eafc77dae8e85c5a415d461634f25a7 | /get_deck.py | 338c86e60e03089eac6120edd632c14d46e7fb5a | [] | no_license | nosnosnosnos/shadowverse | 7bdd582e0abad2c268e9f8ee0023a118c41e7f9a | 88fdd922b86e2f8df20922452e4ecb1e4986a2c5 | refs/heads/master | 2021-07-08T08:56:59.843248 | 2017-10-08T11:36:25 | 2017-10-08T11:36:25 | 106,166,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | from requests_oauthlib import OAuth1Session
import json
import io
import sys
import pickle
import os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
api_key = "********************"
api_secret = "********************"
access_token = "********************"
access_secret = "********************"
twit... | [
"you@example.com"
] | you@example.com |
bf5260180000ab1b52ef5abc541ecc5471a1ec1d | 6280780d3395e037bf9715e2df74a8b269fb17c2 | /posts/migrations/0009_auto_20210128_1047.py | 28065dba74c02a30b4c8023b85e5fb85da808911 | [] | no_license | zerobubus/foodgram-project | 3958f045e9dcc0b3a13abb3f310effe09ebadbb9 | eba01ab68bd70166d158f1569c8908a1a4397533 | refs/heads/master | 2023-03-02T17:45:56.705085 | 2021-02-15T13:59:29 | 2021-02-15T13:59:29 | 330,332,268 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # Generated by Django 2.2 on 2021-01-28 10:47
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0008_remove_ingredient_amount'),
]
operations = [
migrations.CreateModel(
name='Amount',... | [
"spb.etr@yandex.ru"
] | spb.etr@yandex.ru |
4d04f1b5908bd06c38311d907c80cc0183bf6eed | 38c10c01007624cd2056884f25e0d6ab85442194 | /build/android/bb_run_sharded_steps.py | 1775dc19bbd891dc42940ff11aa98350c23cc290 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 1,434 | py | #!/usr/bin/env python
#
# Copyright (c) 2012 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.
"""DEPRECATED!
TODO(bulach): remove me once all other repositories reference
'test_runner.py perf' directly.
"""
import optparse... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
a12c3f95f50764378dc8738b6e46c0991d361345 | d0d1c3daa36fb29285679b6e2cd144d221842e92 | /commands/raxmon-alarms-update | dad0de4158f7923e7a795531dce46177ab33ed82 | [] | no_license | rphillips/rackspace-monitoring-cli | 45c944e564e69863c02e94838dd799abed9f846f | 94bfe514b32bb76ed26cc9c0a582514e3b879001 | refs/heads/master | 2021-01-16T21:35:59.077834 | 2012-01-12T03:54:25 | 2012-01-12T03:54:44 | 3,277,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Licen... | [
"tomaz@tomaz.me"
] | tomaz@tomaz.me | |
9efc365882401ebeebbed407aecc73ad9d3c4d36 | 564bb8953ad74f25bb81831c6280e98a5e8ca75a | /Twitter/settings/production.py | ff78245c5698b55f94ddd32e65d3702e296b974a | [] | no_license | MohamedHany2002/my-twitter | 600c083c10c006074dd1aa55d112291c731f8bc4 | 5f7048c3fd00a894b7c5de580954747e6421b77d | refs/heads/master | 2022-07-03T09:12:34.741192 | 2020-05-12T15:29:41 | 2020-05-12T15:29:41 | 263,376,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | """
Django settings for Twitter project.
Generated by 'django-admin startproject' using Django 3.0.3.
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
#... | [
"goldenhany94@gmail.com"
] | goldenhany94@gmail.com |
752ccdf06b375d5b6bceb36f7f27c1c67df98e3f | 7ad7ab82a8f14bd24779185b9e902dc7588684c0 | /day13.py | b7e9872c0897a27bd4ce0857b1c9db933272f6db | [] | no_license | osbornetunde/100daysOfPython | 7fa45483dba722368dc6bbd07b1c983b63effae2 | c63d8be4528aa3149c31d2213ca539cdca214a7b | refs/heads/master | 2020-03-19T10:33:17.472371 | 2018-08-08T16:53:05 | 2018-08-08T16:53:05 | 136,381,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Write a program that accepts a sentence and calculate the number of letters and digits.
# Suppose the following input is supplied to the program:
# hello world! 123
# Then, the output should be:
# LETTERS 10
# DIGITS 3
letters = []
Digit = []
for x in input("Enter string and integers: "):
if x.isdigit():
Digi... | [
"osbornetunde@gmail.com"
] | osbornetunde@gmail.com |
f338aa220267796b277374095a5c1a5581a285e5 | 60715c9ea4c66d861708531def532814eab781fd | /python-programming-workshop/regular_expression/floating_point_number.py | 9600bcb0065182be73ffbe65a067340cdf5b3316 | [] | no_license | bala4rtraining/python_programming | 6ce64d035ef04486f5dc9572cb0975dd322fcb3e | 99a5e6cf38448f5a01b310d5f7fa95493139b631 | refs/heads/master | 2023-09-03T00:10:26.272124 | 2021-11-01T08:20:52 | 2021-11-01T08:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py |
import re
# r'^[+-]?[0-9]*\.[0-9]+$'
for _ in range(int(input())):
print(bool(re.match(r'^[+-]?[0-9]*\.[0-9]+$',input())))
| [
"karthikkannan@gmail.com"
] | karthikkannan@gmail.com |
804383a8a1bbe2a98f907c353b746cbb89496fdc | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L32/32-IY_MD_NVT_rerun/set_6.py | 10a0a85d7f3bb26b44fa7856dc94c72f71b14af0 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L32/MD_NVT_rerun/ti_one-step/32_IY/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_6.in'
temp_pbs = filesdir + 'temp_6.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
07b4bac30853bf8a72349452407cc51f64767a5b | 18ad97292b34a679b8dea8a85090541c5bbf6174 | /skener.py | 120e201db09eb1b83bad682f9fc188dda9f14574 | [] | no_license | Jyotirm0y/kattis | b941044e39dc36d169450480fc33fd33bd2e0f8e | 2b9c1819ba29419bbea3db2e8ad7851155abbb3a | refs/heads/master | 2023-05-31T21:11:38.350044 | 2021-06-12T08:21:47 | 2021-06-12T08:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | l = input().split()
r = int(l[0])
c = int(l[1])
zr = int(l[2])
zc = int(l[3])
for i in range(r):
s = input()
line = ""
for j in range(c):
for y in range(zc):
line += s[j]
for x in range(zr):
print(line) | [
"ainunnajib@gmail.com"
] | ainunnajib@gmail.com |
4b70b3b14c9548b374ff3d20ae19796f509c22ac | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/venv/lib/python3.6/site-packages/pip/_internal/req/req_install.py | 91e96554bdc40a591e4db9a3cac2793f23f54660 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,014 | py | from __future__ import absolute_import
import io
import logging
import os
import re
import shutil
import sys
import sysconfig
import traceback
import zipfile
from distutils.util import change_root
from email.parser import FeedParser # type: ignore
from pip._internal import wheel
from pip._internal.build_env import N... | [
"jornadaciti@ug4c08.windows.cin.ufpe.br"
] | jornadaciti@ug4c08.windows.cin.ufpe.br |
84e61c6db81e593a17c992b178401fbb107ee29f | d40fbefbd5db39f1c3fb97f17ed54cb7b6f230e0 | /process/datadog_checks/process/__init__.py | e44eb9307ee1fdbc8f317c83d0b00fe565879ea5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | slightilusion/integrations-core | 47a170d791e809f3a69c34e2426436a6c944c322 | 8f89e7ba35e6d27c9c1b36b9784b7454d845ba01 | refs/heads/master | 2020-05-20T18:34:41.716618 | 2019-05-08T21:51:17 | 2019-05-08T21:51:17 | 185,708,851 | 2 | 0 | BSD-3-Clause | 2019-05-09T02:05:19 | 2019-05-09T02:05:18 | null | UTF-8 | Python | false | false | 219 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from .__about__ import __version__
from .process import ProcessCheck
__all__ = ['__version__', 'ProcessCheck']
| [
"noreply@github.com"
] | slightilusion.noreply@github.com |
97e8de12fba02df942b257a1ae14fe3c7d4a79c2 | c99b699501d963ae56ee9300aba3da91a6e06445 | /Rojas/dobles/ejercicio08.py | 76a140fb2139d5ba17c45bd269b13d80972fe731 | [] | no_license | erick1984linares/t06linares-rojas | b82cf3c2de1d7119866cdc569888d3ee534bb45d | 501cee5e40087ff9761b5d765134cdcc762a0a03 | refs/heads/master | 2020-09-11T18:49:27.461264 | 2019-11-23T16:06:48 | 2019-11-23T16:06:48 | 222,157,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | import os
#CALUCLADORA DEL TRABAJO SOBRE UN OBJETO
#Input
masa=float(os.sys.argv[1])
aceleracion=float(os.sys.argv[2])
distancia=float(os.sys.argv[3])
#Processing
fuerza=(masa*aceleracion)
trabajo=(fuerza*distancia)
#verificador
trabajo_alto=(trabajo > 5000)
#Output
print(" ... | [
"ylinares@unprg.edu.pe"
] | ylinares@unprg.edu.pe |
4f130f1f97b74daca165411e40aa3f0aa89f2bdb | 8c6b3db518687e6c36c98f4809db0cdc50537d47 | /AutoWorkup/SEMTools/brains/classify.py | 5be4ad9ddfe1ff765f815a8962ced1737b5837fc | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | fvpolpeta/BRAINSTools | 007030739a8ad97763b015395acf93967ba783ca | e30e0c2763afb6b859daec8ba0280a2e4c4a9f6e | refs/heads/master | 2020-12-26T11:35:57.931289 | 2015-04-26T19:01:39 | 2015-04-26T19:01:44 | 34,921,003 | 1 | 1 | null | 2015-05-01T19:50:08 | 2015-05-01T19:50:07 | null | UTF-8 | Python | false | false | 2,306 | py | # -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
i... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
2c58dbe483117a8cbc374bc2ed248588e086b24e | 17939372537b437dd52ee8426785108039df651c | /geo/__init__.py | e113c816793cced3cf644116ae0fdba5b44bed2d | [] | no_license | Madrich-routes/routes_laboratory | d091abd2267c9765e5a7c66a80c87c94e95e6189 | 27c447c9fe8e36c5ae4596ab4cdf38cac8fca6ef | refs/heads/master | 2023-06-04T12:02:08.973183 | 2020-10-31T17:22:14 | 2020-10-31T17:22:14 | 295,661,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | """
В этом модуле будет все, что касается координат, их преобразования, хранения и так далее.
Различные геометрические преобразования тоже находятся здесь.
"""
| [
"yampolskiydv@gmail.com"
] | yampolskiydv@gmail.com |
6fc578b6aedd6c9a247a848cb2ea539ae1ef2967 | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/H2TauTau/python/histograms/histogramSkim_cff.py | 86478d180ceff02f0c32ef1627823e181f21ecd1 | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 261 | py | import FWCore.ParameterSet.Config as cms
from CMGTools.Common.histograms.diTauLorentzVector_cfi import *
tauMuHistogramSkim = diTauLorentzVector.clone( inputCollection='cmgTauMuCorPreSel')
histogramSkimSequence = cms.Sequence(
tauMuHistogramSkim
)
| [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
ee1a5033ee91e707a3c9f11f08211b466a338ef8 | 68c1cb7e2e7b7bb4174951c817a36b16cf1e9f83 | /pytype/tests/py3/test_calls.py | ba2a189d01d7a46a8685fcf032cdc6667c169f00 | [
"Apache-2.0",
"MIT"
] | permissive | priyansh19/pytype | f28f439943859f61e3ce5ff51d8a56a925ae5cb8 | 44b1f6f7cddccb326abac4c21b4f26688369764e | refs/heads/master | 2020-06-19T07:11:11.508597 | 2019-07-11T18:34:08 | 2019-07-11T18:34:08 | 196,610,656 | 2 | 0 | NOASSERTION | 2019-07-12T16:23:13 | 2019-07-12T16:23:13 | null | UTF-8 | Python | false | false | 588 | py | """Tests for python3 function call features."""
from pytype.tests import test_base
class TestCalls(test_base.TargetPython3FeatureTest):
"""Tests for checking function calls."""
def testStarStarArgsWithKwOnly(self):
"""Args defined as kwonly should be removed from **kwargs."""
self.Check("""
def f(... | [
"rechen@google.com"
] | rechen@google.com |
0404867fcdac08234202d5993f529cdd5dd87daa | 2ac7a7c90cc7162cfbb1dc4caab8145328e04835 | /json_err_start.py | b66f4b88cdabcf971fbbc7b555243fd27d11e53a | [] | no_license | liberbell/data1 | 2c48e29d8aea781c20e50f4a55ab4246e1164be0 | a0b9a84fa423bdd626ee427e01825e85633c74c8 | refs/heads/master | 2020-03-27T06:58:22.589272 | 2018-09-02T03:22:55 | 2018-09-02T03:22:55 | 146,152,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # Process JSON data returned from a server
# use the JSON module
import json
from json import JSONDecodeError
def main():
# define a string of JSON code
jsonStr = '''{
"sandwich" : "Reuben",
"toasted" : true,
"toppings" : [
"Thousand Island Dressing",
... | [
"liberbell@gmail.com"
] | liberbell@gmail.com |
a6186df771c6fecd1b68da787652075cc2bae29a | de3fe8840a7b3eedf4684cb408c859cb0e7a418b | /user/migrations/0030_booking_user.py | dcd74568f4b0fce3d67d703ab4633eb9e09391c9 | [] | no_license | jabykuniyil/fadeeto | e849f4d75516488ddd2ca024af784852935b3afd | 45910ab16fd53891a618810738e542c2dfc2ff98 | refs/heads/main | 2023-03-22T05:00:03.269688 | 2021-03-09T09:36:00 | 2021-03-09T09:36:00 | 337,984,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Generated by Django 3.1.5 on 2021-02-12 11:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user', '0029_remove_booking_user'),
]
operations = [
migrations.AddField(
model_name='booking',... | [
"mohdjabiran112@gmail.com"
] | mohdjabiran112@gmail.com |
245bf95f9f644ad141c429a9e38506bbe37f9edf | eb201015fe1230249818aa747d37a16e7e791aa2 | /utils/fileList_AnalysisNtuples2017.py | 9e44c65de0cbd9309db9832fe25387a93608f7d4 | [] | no_license | dnoonan08/Coffea_TTGamma | 3ba6d07a1c5647eb7db901d5a1f3fd5d79a686d0 | bc0dcb92018d1c7e5d42432f59ba8ff8d709672b | refs/heads/master | 2020-06-21T13:47:05.149680 | 2019-10-20T01:21:22 | 2019-10-20T01:21:22 | 197,471,035 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | year = 2017
eosDir ="root://cmseos.fnal.gov//store/user/lpctop/TTGamma_FullRun2/AnalysisNtuples/%i/"%year
fileset2017 = {
"TTGamma2l_2017":[eosDir+"TTGamma_Dilepton_%i_AnalysisNtuple.root"%year],
"TTGamma1l_2017":[eosDir+"TTGamma_SingleLept_%i_AnalysisNtuple.root"%year],
"TTGamma0l_2017":[eosDir+"TTGamma_Ha... | [
"dnoonan@cern.ch"
] | dnoonan@cern.ch |
01c8cd65a6576ad456bb33e8afe5eeab480d3742 | e982c42888da91e957aef4a67e339135918d25ec | /venv/Lib/site-packages/sqlalchemy/orm/persistence.py | 1b071e4965d435bd38a2523772060af06b70ad60 | [] | no_license | nikhil9856/kisan | c88f890d88e96dd718bd9cfaef41f3d40eb7b72d | 556e57427a2b9a91fcc4a44ca25706c49e790d73 | refs/heads/master | 2020-03-15T01:59:09.825264 | 2018-05-03T18:08:02 | 2018-05-03T18:08:02 | 131,904,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,121 | py | # orm/persistence.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""private module containing functions used to emit INSERT, UPDATE
and DE... | [
"kumar.nikhil110@gmail.com"
] | kumar.nikhil110@gmail.com |
daffd6fc34dad81696fb96d0d1c04e4f98209c9e | 1c962341f3b580f2be0529a2d5804d49804470f6 | /judge_1028.py | 4f594f681b00c4359f5010172ed15570d5bb7018 | [] | no_license | andersonmarquees/-uri_python | 7bc14b50198bd238f9594b37a86553ecfb277f76 | 379518cd17433725d6a859526de356162b26aa40 | refs/heads/master | 2020-05-05T09:08:51.483638 | 2019-04-14T16:42:24 | 2019-04-14T16:42:24 | 179,892,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | def calc_mdc(number1, number2):
if number1 >= number2:
aux = number1 % number2
if aux == 0:
return print(number2)
return calc_mdc(number2, aux)
else:
aux = number2 % number1
if aux == 0:
return print(number1)
return calc_mdc(number1, aux... | [
"anderson_fisico@yahoo.com.br"
] | anderson_fisico@yahoo.com.br |
904cdc0c99af26015a21dec6910fd9c637df2e38 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/madratman/permute_items.py | 8723eab9030e3d2694784afbda565466cda4bde0 | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django import template
import random
register = template.Library()
class Permutator(template.Node):
def __init__(self, context_var):
self.context_var = context_var
def render(self, context):
return self.context_var
def permute_items(parser, token):
items = token.contents[13:].split(... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
f1ea7f009fd1bb263b1fe39b1c4948dcd8d9b843 | e9c7f991c319efe0b1831e8e8360e13c3e177555 | /Python_do_zero_Guanabara/03_Utilizando Módulos/desafio/25_desafio.py | 7bac03d2d6d7551d2e901072f472af8aba291786 | [
"MIT"
] | permissive | HenriqueSOliver/Projetos_Python | a3c4cabc61442221da968df55a463d9ad5865fcc | f18c5a343ad1b746a12bd372298b2debe9bc65ec | refs/heads/main | 2023-06-05T03:11:42.879988 | 2021-06-17T22:26:03 | 2021-06-17T22:26:03 | 327,629,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #Crie um programa que leia o nome de uma pessoa e diga se ela tem “SILVA” no nome.
n = str(input('Qual é o seu nome? ')).strip().upper()
print(f'Seu nome tem Silva? {"SILVA" in n}') | [
"HenriqueSOliver85@gmail.com"
] | HenriqueSOliver85@gmail.com |
de670f8a0edc1c21c94c9a7b11cefc6dce209b77 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_150/ch45_2020_04_13_01_20_47_180704.py | 7c523efb3f65d988bf0a6f2e85e1f61fdd4acdf0 | [] | 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 | 368 | py | lista_numero = []
numero = int(input('Digite um número inteiro positivo. Se for negativo, ou zero, você para a sequência: '))
while numero > 0:
lista_numero.append(numero)
numero = int(input('Digite um número inteiro positivo. Se for negativo, ou zero, você para a sequência: '))
i = len(lista_numero)
while i >... | [
"you@example.com"
] | you@example.com |
4d7cabff9e7883d7dd2e303cc16cbb4d25815337 | 04a85a1bf65e1872c2fa215a93860864f92e75e3 | /tests/unit/TestRequestSigner.py | a7e32cb510e2e081c1235314861ae1c6d5bbcb67 | [
"Apache-2.0"
] | permissive | liosha2007/temporary-groupdocs-python3-sdk | 2307efbed084227caef289ff82b45af00ded5a0c | 2d3fa227bd5d02f5ff144baa786fca9ff8741dc6 | refs/heads/master | 2021-01-10T08:44:54.661856 | 2013-03-05T16:44:18 | 2013-03-05T16:44:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,580 | py | #!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
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... | [
"aleksey.permyakov@groupdocs.com"
] | aleksey.permyakov@groupdocs.com |
29bfc7a6957802ec9c99e960b561bd2c357f2739 | 1bd720ee20a035b5c31748f057b08ea69aeb1966 | /79/euler.py | 2303f709e46cb967e5a8da3de80ef2aee0fb856a | [] | no_license | GINK03/project-euler-solvers | 2bd39903640c838ae99a9912b4a74ba44d81fb87 | b5642ce3a62d97a1bc2cd6ea26498c3a6ce89ddc | refs/heads/master | 2021-09-07T08:46:45.007667 | 2018-02-20T15:20:35 | 2018-02-20T15:20:35 | 25,633,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import itertools, sys, os, math
Keys = '''319
680
180
690
129
620
762
689
762
318
368
710
720
710
629
168
160
689
716
731
736
729
316
729
729
710
769
290
719
680
318
389
162
289
162
718
729
319
790
680
890
362
319
760
316
729
380
319
728
716'''
import collections
maybe = []
for key in Keys.split('\n'):
maybe.append... | [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
ac64aa18620f42b517a30f4c097cf18fb2646c9d | 95241b729cb1f6990a74c5f3f6a5505c6eb1a896 | /lesson2/les2_task1.py | 3a76579a89642f76e9fe5bdd5d1b6eb9b33f9304 | [] | no_license | FedorPolyakov/begginer_python_gu | d1e8402d5ce9109e3feafb2976931b0ff45c3b57 | 26b5db3e5c1fbf1edcecb1c3e240131ec8be69ae | refs/heads/main | 2023-03-08T13:30:11.092045 | 2021-01-30T14:32:56 | 2021-01-30T14:32:56 | 331,977,733 | 0 | 0 | null | 2021-02-19T16:40:50 | 2021-01-22T14:58:25 | Python | UTF-8 | Python | false | false | 658 | py | '''
Создать список и заполнить его элементами различных типов данных.
Реализовать скрипт проверки типа данных каждого элемента.
Использовать функцию type() для проверки типа.
Элементы списка можно не запрашивать у пользователя, а указать явно, в программе.
'''
lst = [4221, False, 5.33, '5.33', {1:'1', 2:'2', 3:[1,2,3]}... | [
"pismo.na.pochtu@gmail.com"
] | pismo.na.pochtu@gmail.com |
6b4494ce8c60188b9141326125be0cf186dd36fa | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/001_SOLID_design_principles/_exercises/_templates/isp/ISP/GeneralInterface/ILibraryItem.py | a74d57adc0c98db17db21703e85262dd43834eb0 | [] | 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 | 206 | py | # c_ ILibraryItem
#
# ?p..
# ___ author __ ?
# r_ N...
#
# ??.?
# ___ author authorName: ?
# r_ N...
#
# ?p..
# ___ library_id __ ?
# r_ N...
#
# ??.?
# ___ library_id libraryId ?
# r_ N...
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
609185e3d6cd6730d3f97c809651f5f520affaec | 6571b77f6e6f37d6df91a9cf0c34297a2bee1eb9 | /site-packages/celery/fixups/django.py | c1ae62e21ba7a187a1ebc44ae6d842a76d935c26 | [
"Apache-2.0"
] | permissive | suntao789/Aclsm | ec02a04bb3ba14a1ea6a6c82a325da59d192d0f7 | 2202201c8279391386a4569e69f93d90eca5b96a | refs/heads/master | 2020-04-01T22:39:02.140836 | 2018-10-19T03:49:14 | 2018-10-19T03:49:14 | 153,719,890 | 0 | 0 | Apache-2.0 | 2018-10-19T03:11:46 | 2018-10-19T03:11:46 | null | UTF-8 | Python | false | false | 8,692 | py | from __future__ import absolute_import
import io
import os
import sys
import warnings
from kombu.utils import cached_property, symbol_by_name
from datetime import datetime
from importlib import import_module
from celery import signals
from celery.exceptions import FixupWarning
__all__ = ['DjangoFixup', 'fixup']
E... | [
"suntao789@huawei.com"
] | suntao789@huawei.com |
64d1dffe77c94d50cd84d7c7bece2e4cfddb51dc | 6d38bb749360f41b6693e6e21eeb38cc1b235a33 | /jad-score_52pct/model_v1_vgg_score_0p5.py | eb13600584dba0b535f1786f29656e2bc34788bf | [] | no_license | SSOC18/deepcognition.ai-soda-bottle | 960713a51114b95913472a78f8ef3168fb447eae | c843c56c984df3fe42de723ac1c948e9286abbd1 | refs/heads/master | 2020-03-23T14:13:40.179876 | 2018-07-24T12:24:29 | 2018-07-24T12:24:29 | 141,664,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | import keras
from keras.layers.normalization import BatchNormalization
from keras.layers.convolutional import Convolution2D
from keras.layers.pooling import MaxPooling2D
from keras.layers.core import Dense
from keras.layers.core import Dropout
from keras.applications.vgg16 import VGG16
from keras.layers.core import Fla... | [
"shadiakiki1986@gmail.com"
] | shadiakiki1986@gmail.com |
03c8236ad6e310044f7e4e55374667c87390b649 | 36dab87be1e2824ed77f78ffdd5a4f3133d42879 | /app/server/app/association.py | 35ca460f1c99e247c6a34c22ec53581ef73a3b78 | [
"MIT"
] | permissive | tboudreaux/albrook | 51182c703ba51ad7bea2fffe7e7f9a547182327d | 574f7beb9febc75c8d5de85c813bd572650b4b0d | refs/heads/master | 2023-08-03T06:26:58.894192 | 2022-12-24T19:54:16 | 2022-12-24T19:54:16 | 164,450,682 | 11 | 1 | MIT | 2023-07-20T19:30:17 | 2019-01-07T15:14:54 | Python | UTF-8 | Python | false | false | 956 | py | from app import db
class associationTables:
AuthorBook = db.Table('AuthorBook',
db.Column('bookID', db.Integer, db.ForeignKey('book.id')),
db.Column('authorID', db.Integer, db.ForeignKey('author.id'))
)
NarratorBook = db.Table('NarratorBook',
db.Column('bookID', db.Integer, db.Fore... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
01d7d1d6830f4cd7a0b1d724d5b41c6df23edcc9 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/dn6/Z-102.py | 4a276e93b7cecc4abba857e49066941cdce4207f | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,717 | py | #prejšnja domača naloga
def unikati(s):
seznamNov = []
for e in s:
if e not in seznamNov:
seznamNov.append(e)
return seznamNov
def avtor(tvit):
return tvit.split(':')[0]
def izloci_besedo(beseda):
for i in range(len(beseda)):
if beseda[i].isalnum():
start = ... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.