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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9aa576e842ea6270e72021759749caaeed0c17d | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /AtCoder/ABC/151/a.py | c1233a36b04f00b264f640bf84308fe1b5510d20 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 304 | py | import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop
def main():
c = input()
print(chr(ord(c) + 1))
if __name__ == '__main__':
main()
| [
"takecian@gmail.com"
] | takecian@gmail.com |
165afb56267dc7cd06ff76ef3845fd9cfcb28428 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /0201-0300/0230/0230_Python_1.py | 7c016e2186160e9a3cee8d988c24d8091cbfa39d | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from toolkit import TreeNode
from toolkit import build_TreeNode
class Solution:
def kthSmallest(self, root: TreeNode, k: int) -> int:
stack = [root]
while stack:
if node := stack[-1]:
stack.append(node.left)
else:
stack.pop()
... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
d5cfca24696eefcf3836be8d03ec5fbf1732f433 | 7932946fbd09ea709cdb806082de1d1f08500710 | /rec_demo/banking/tests/factories.py | 36fced7324d5b3bee46dfee6378c61de8c0848b7 | [] | no_license | luiscberrocal/rec_demo | f5768756df2c25e3e97df74f5bb034c333fd1b71 | 73aadd361194898ea5d45eedccce8a758d5697ea | refs/heads/master | 2023-03-03T14:41:26.058510 | 2021-02-06T21:24:49 | 2021-02-06T21:24:49 | 326,741,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | from datetime import timedelta
from decimal import Decimal
from django.utils import timezone
from ..forms import AccountForm
from ..models import TransactionType, Account
from ..utils import get_or_create_transaction_types, divide_in_payments_with_dates
from ...core.utils import clean_dict
class AccountFactory(obje... | [
"luis.berrocal.1942@gmail.com"
] | luis.berrocal.1942@gmail.com |
de39d20267e19716619876c13ae6a9e8d1bc6344 | 16516732031deb7f7e074be9fe757897557eee2d | /AtCoder/CODE FESTIVAL 2016 qual B/B - Qualification simulator.py | 26331e7b1bbd9a4645914e27aa3e8cd2b8485e98 | [] | no_license | cale-i/atcoder | 90a04d3228864201cf63c8f8fae62100a19aefa5 | c21232d012191ede866ee4b9b14ba97eaab47ea9 | refs/heads/master | 2021-06-24T13:10:37.006328 | 2021-03-31T11:41:59 | 2021-03-31T11:41:59 | 196,288,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # 2019/12/09
n,a,b=map(int,input().split())
s=input()
cnt=0
cnt_b=0
for i in range(n):
if cnt>=(a+b):
print('No')
continue
else:
if s[i]=='c' or cnt>a+b:
print('No')
continue
else:
if s[i]=='b':
cnt_b+=1
... | [
"calei078029@gmail.com"
] | calei078029@gmail.com |
90958ba5bc5c0548da5e668bd426f69d135c4361 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2020/0306/youngjun.py | 0ba0cecdd10fdc6aee2e95bc5464cd303686f525 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,646 | py | #괄호 변환(프로그래머스)
#10:50~11:10
#11:10~12:36
input="()))((()"
def check_balancing(str):
left_parenthesis_count=0
right_parenthesis_count=0
u=""
v=""
for i in range(0, len(str)):
if str[i]=="(":
left_parenthesis_count+=1
elif str[i]==")":
right... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
71b42802b2f815600531fa657b90704a7262b890 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /Cracking Coding Interviews - Mastering Algorithms/exercise/Section 2 Arrays and Strings/unique-characters.py | 2108807e3c9ce9359b89a28b6cb4033f054aef49 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 489 | py | # Implement an algorithm to determine if a string has all unique characters.
# "abc" -> True
# "" -> True
# "aabc" -> False
# Brute Force - O(n^2)
# Sorting - O(nlogn + n) -> O(nlogn)
# Hashset - O(n)
def unique_characters(word):
visited_chars = set()
for i in range(len(word)):
letter = word[i]
if letter in ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6e68e04d64b61047c8bf621b83064706876bb3bc | cb8d3f99094ea2c663b5e35c5fafdcf9a8a532c7 | /ligo/skymap/io/fits.py | dd3df6f30518d379af9c468c4f619cbe0f4db4f6 | [] | no_license | understars0516/ligo.skymap | 004676b63a30ffcaba449d98f4b628ca5023498c | c4f718ed52131ce5f0f713c2974e84e61c4a12e4 | refs/heads/master | 2022-11-30T03:06:36.000932 | 2020-08-04T06:03:35 | 2020-08-04T06:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,031 | py | #!/usr/bin/env python
#
# Copyright (C) 2013-2020 Leo Singer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | [
"leo.singer@ligo.org"
] | leo.singer@ligo.org |
4f564119a1c7e4d57181ae5abd65b6a366ffb093 | 07ba82fc48603c75aa7ad20f1f474df96c712765 | /experiments/train_wgan_cnn.py | f3a81c9d3f8fda730c8e9b79faee5e2dc797fa78 | [] | no_license | bstriner/text-aae | 8b7b898142c18a2a112388d0c511c5975e493251 | 4591384d558ad0a480d9ed3ccd1df0de07e87a5c | refs/heads/master | 2020-03-26T13:46:42.492094 | 2018-09-22T02:20:21 | 2018-09-22T02:20:21 | 144,956,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | import tensorflow as tf
import text_aae.trainer
from text_aae.gan.losses import wgan_losses
from text_aae.model_gan import make_model_gan_fn
from text_aae.networks.cnn.decoder import make_decoder_cnn_fn
from text_aae.networks.cnn.discriminator_gan import make_discriminator_gan_cnn_fn
from text_aae.text_config import T... | [
"bstriner@gmail.com"
] | bstriner@gmail.com |
5d2c81967308c31f05baaa9749591de9ff2115a3 | 78a98f3e913050245185a4907c15a7a1d0799153 | /ALGEBRA_LINEAL_PYTHON.py | 89ead8a8237fe540d642abad79c8409617454ba1 | [] | no_license | daniela2001-png/DATA_SCIENCE | 54b3055c82d26e5d98d5850114066690b84c0d85 | 6806576491f6b0b0059f606fbce11422fb74738b | refs/heads/master | 2023-01-23T21:33:15.826062 | 2020-11-01T05:17:27 | 2020-11-01T05:17:27 | 282,711,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,787 | py | # -*- coding: utf-8 -*-
"""Copia de CURSO ALGEBRA LINEAL PYTHON.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1holMpxB6lJdpFLtd2dwAbo94_Khkigti
---
# ***ALGEBRA LINEAL EN PYTHON***
---
"""
# un escalar es solo unnúmero hablando matematicamnete... | [
"dmbmora@outlook.com"
] | dmbmora@outlook.com |
1ce8b271797d503080083a77a5ce6b1cb9a6a306 | 670c844e5cfa1cdf11212cc53972ecd8f7a25949 | /python/test/test_MinProductSumOfArray.py | 07babee6a5fe2262c848910a9c01117dba43a040 | [] | no_license | IamConstantine/LeetCodeFiddle | 74d580a0741e40397f1283beadd023f9b9323abd | 5ec509505a394d53517fb005bbeb36745f06596a | refs/heads/master | 2022-05-31T05:25:14.273605 | 2022-05-23T02:46:47 | 2022-05-23T02:46:47 | 100,910,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from unittest import TestCase
from MinProductSumOfArray import minProductSum
class Test(TestCase):
def test_min_product_sum(self):
self.assertEqual(40, minProductSum([5, 3, 4, 2], [4, 2, 2, 5]))
self.assertEqual(65, minProductSum([2, 1, 4, 5, 7], [3, 2, 4, 8, 6]))
| [
"vishalskumar12@gmail.com"
] | vishalskumar12@gmail.com |
0d776c224fbc60d2e94c4dcc5be5184c3ec5c1f3 | ab79f8297105a7d412303a8b33eaa25038f38c0b | /farmasi/vit_pharmacy_wo_hour/wo_machine_hour.py | 69a32deb777f81a3ece47468f2a62e4f8ce0ecc8 | [] | no_license | adahra/addons | 41a23cbea1e35079f7a9864ade3c32851ee2fb09 | c5a5678379649ccdf57a9d55b09b30436428b430 | refs/heads/master | 2022-06-17T21:22:22.306787 | 2020-05-15T10:51:14 | 2020-05-15T10:51:14 | 264,167,002 | 1 | 0 | null | 2020-05-15T10:39:26 | 2020-05-15T10:39:26 | null | UTF-8 | Python | false | false | 1,575 | py | import time
import math
import datetime
import calendar
from openerp.osv import osv, fields
from openerp import api
import os
import csv
import re
""" wo_machine_hour """
class wo_machine_hour(osv.osv):
_name = 'vit_pharmacy_wo_hour.wo_machine_hour'
_description = 'Wo Machine Hour'
_columns = {
... | [
"prog1@381544ba-743e-41a5-bf0d-221725b9d5af"
] | prog1@381544ba-743e-41a5-bf0d-221725b9d5af |
8b8583ba49a425ba4b526a96d6a53f25d3ef26d9 | 77281755e98af299de29928fd08b362759a1ab7c | /0x01-python-if_else_loops_functions/100-print_tebahpla.py | b68eaef84707cc25c3280116ebf7c04168348b97 | [] | no_license | santiagopemo/holbertonschool-higher_level_programming | 6a4067ac698194047d19275e41eeaf1e8880e324 | e1966c1d3a5589708957d4c679a44d0024a63793 | refs/heads/master | 2023-06-13T23:48:15.135752 | 2021-06-29T22:08:10 | 2021-06-29T22:08:10 | 259,416,625 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | #!/usr/bin/python3
for i in range(122, 96, -1):
if i % 2 != 0:
t = i - 32
else:
t = i
print("{}".format(chr(t)), end="")
| [
"santiagopemo@gmail.com"
] | santiagopemo@gmail.com |
432c84cd0927e5e35452114fe0b1f01bf7a1cf10 | 60ed4090ae4b1975538787407c0a835ee65c1356 | /from_cpython/Lib/test/test_stat.py | 9f5f011f54e884b5f4c1b49355c6fb7d24fb00e1 | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | lameiro/pyston | ab28d54ad8221156ff4d6b2c5d8b719d29a58ddc | 838e0ac98d5926ba942224951cd1e8bad5483b5e | refs/heads/master | 2020-04-06T04:40:16.643425 | 2015-06-24T19:30:26 | 2015-06-24T19:30:26 | 19,595,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,713 | py | # expected: fail
import unittest
import os
from test.test_support import TESTFN, run_unittest
import stat
class TestFilemode(unittest.TestCase):
file_flags = {'SF_APPEND', 'SF_ARCHIVED', 'SF_IMMUTABLE', 'SF_NOUNLINK',
'SF_SNAPSHOT', 'UF_APPEND', 'UF_COMPRESSED', 'UF_HIDDEN',
'UF... | [
"daekharel@gmail.com"
] | daekharel@gmail.com |
3a5aa17416fd7cfd9a31183918ea3e8a952f2066 | 6bc9c5b6f06e591bc0826bea441eba216c69c791 | /src/xpose.seodash/xpose/seodash/datacollector.py | def55830ac2f60fd5f11582963cf4e352862589a | [
"MIT"
] | permissive | potzenheimer/xdash | e2d128028472824238e8acf64982cc9e64002eec | 6810c8fb58d88fd2687b183a59aa5d4bf4a12474 | refs/heads/master | 2021-03-12T20:36:16.480446 | 2014-11-06T19:50:50 | 2014-11-06T19:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,160 | py | # -*- coding: utf-8 -*-
"""Module processing data collection for reports"""
import json
import time
from Acquisition import aq_inner
from five import grok
from plone import api
from plone.keyring import django_random
from zope.component import getUtility
from zope.lifecycleevent import modified
from plone.app.conten... | [
"cb@vorwaerts-werbung.de"
] | cb@vorwaerts-werbung.de |
ebf2ce3f489ff03ffeccf076687bb89febadea4b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2355/60670/292593.py | b9f06d7a46287e4d958d9b7e1d886ba10a55c2bd | [] | 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 | 866 | py | def getsum(x):
global sumn,visited,edge,node,n
visited[x]=True
sumn[x]=node[x]
for i in range(0,n):
if edge[x][i]==1 and (not visited[i]):
sumn[x]+=getsum(i)
visited[x]=False
return sumn[x]
n,m=map(int,input().split())
node=[]
edge=[]
cnt=0
while n!=0 and m!=0:
cnt+=1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
82f5dd1f6e920fc01ca4d6229889557f15a4ea49 | 2ca88d41f1bb5042338faec50b2af11931db0bdd | /src/gluonts/nursery/SCott/pts/model/deepar/deepar_network.py | 277a08c0dfce4de4ab758cfc717df54e526a76b2 | [
"Apache-2.0",
"MIT"
] | permissive | canerturkmen/gluon-ts | 2f2d46f9b01f5ee07a51a11e822b1c72c2475caa | 57ae07f571ff123eac04af077870c1f216f99d5c | refs/heads/master | 2022-09-10T23:30:26.162245 | 2022-04-20T12:44:01 | 2022-04-20T12:44:01 | 192,873,578 | 1 | 2 | Apache-2.0 | 2020-08-04T16:58:48 | 2019-06-20T07:43:07 | Python | UTF-8 | Python | false | false | 17,521 | py | from typing import List, Optional, Tuple, Union
import numpy as np
import torch
import torch.nn as nn
from torch.distributions import Distribution
from pts.core.component import validated
from pts.model import weighted_average
from pts.modules import (
DistributionOutput,
MeanScaler,
NOPScaler,
Featur... | [
"noreply@github.com"
] | canerturkmen.noreply@github.com |
9c5cc792228d4303120298664c0996fb7e0568da | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_embellishing.py | 57272fbf229ae92be36993d2e24ffecd5257e598 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py |
from xai.brain.wordbase.verbs._embellish import _EMBELLISH
#calss header
class _EMBELLISHING(_EMBELLISH, ):
def __init__(self,):
_EMBELLISH.__init__(self)
self.name = "EMBELLISHING"
self.specie = 'verbs'
self.basic = "embellish"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
eadbc784f9a39f297917deef32c15b794a40a9b5 | 7ad8581dc9c8aca53ae01441ee2db3acf46e9dbe | /hw3b_2016/plot/plotQ55.py | 53b35bd9af727684be6f3e2f100e41b7dd517176 | [] | no_license | jasonlingo/Machine_Learning-Data_to_Models | 0a8ab2748bb9b9a31455162b9dee877635f57d2f | aa5de9f6ead54449695e46c9a1dfb5dd6a83717a | refs/heads/master | 2021-03-27T13:44:51.445304 | 2016-05-13T04:44:17 | 2016-05-13T04:44:17 | 51,721,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
def main(data, title, filename):
def autolabel(rects):
# attach some text labels
for rect in rects:
height = rect.get_height()
ax.text(rect.get_x() + rect.get_width()/2., 1.05*height,
... | [
"jasonlingo@gmail.com"
] | jasonlingo@gmail.com |
2e08d6d0cfb3128678235dcf10e4bc896b52850b | 70263abbb3c7efabf4039f5861e4d417926c13af | /nova/nova/tests/db/test_db_api.py | 5527d9364df03e54b83d4dc3142a1ae53fd817ca | [
"Apache-2.0"
] | permissive | bopopescu/keystone_hierarchical_projects | 9b272be1e3069a8ad1875103a1b7231257c90d9c | bf5cbb2e1c58dae17e77c2ec32ed171ec3104725 | refs/heads/master | 2022-11-21T04:33:35.089778 | 2014-02-24T19:23:47 | 2014-02-24T19:23:47 | 282,174,859 | 0 | 0 | null | 2020-07-24T09:12:32 | 2020-07-24T09:12:31 | null | UTF-8 | Python | false | false | 320,931 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# encoding=UTF8
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file ... | [
"tellesnobrega@gmail.com"
] | tellesnobrega@gmail.com |
f1a1d888d3ef91b64b5ccb11466db59c90076cc9 | 8dfdff6635ac4ee75d04ea2c1ccbd67e6b49b2db | /config/config.py | d7de1ce48a740621eee0d2eba6485f2a74780c2f | [
"Apache-2.0"
] | permissive | coffeeTeaOne/CookiesPool | 9caa9b4a4254ed6f2ee6e6ba35c85e4e32c77f26 | f5c2d16e6eaad5edabf2feaa671c30d2424ff925 | refs/heads/master | 2020-04-14T10:22:23.712244 | 2019-01-02T02:33:53 | 2019-01-02T02:33:53 | 163,785,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,976 | py | weibo_ID = [{'yavacsopumjcjd-bx40062@yahoo.com':{'SUB':'_2A25xI0geDeRhGeBH61MU9C3KyjWIHXVS7GhWrDV6PUJbkdAKLXGmkW1NQcj2ZZBTNinlhBqeYvWxAkT3X_141Uem'}},
{'hvmzczactozip-ebi123@yahoo.com':{'SUB':'_2A25xI1p3DeRhGeBH61MU9S7MzTSIHXVS7GY_rDV6PUJbkdAKLUSgkW1NQcjwiVgl_BLk6bAxtz7sF_uuMYzUEPSl'}},
{'syle... | [
"499413642@qq.com"
] | 499413642@qq.com |
e5d1f7d5cd6ce474088f5c08b89390e5dab800e1 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/examples/research_projects/jax-projects/wav2vec2/run_wav2vec2_pretrain_flax.py | 2bf1c3b9c138dc06bf89a9b2fbf68a8ad0b60530 | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 25,428 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
90e48cf5e2424252927d0d018a7a380572bc1958 | 36374d94f58f62f5cee1cd6079cda92d7e70b99c | /mrjob_multi_ex.py | f86e06fa2de864052c932754e3d86be850479c71 | [] | no_license | nyghtowl/MRJob_Practice | ee277f4be99b36075340f20cfdcc6987bba8566b | 6fc649ccef4ab7beaae60649456def05e9ff7474 | refs/heads/master | 2020-04-26T17:29:08.247012 | 2014-07-11T06:44:24 | 2014-07-11T06:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | '''
Example code pulled from pythonhosted.org
Run a word file like README to see output of the word that appears most frequently
'''
from mrjob.job import MRJob
import re
WORD_RE = re.compile(r"[\w']+")
class MRMostUsedWord(MRJob):
def mapper_get_words(self, _, line):
# yield each word in the line
... | [
"warrick.melanie@gmail.com"
] | warrick.melanie@gmail.com |
0dc5145e12da4cc696390e8a29d476637dddbeed | 913fb9ec1e709a5140676ba7b2371b1976afca72 | /endoClip/pipeline.runLinkFiltered.py | e78f41ef4c0040feb4f0ead937d4494927df951a | [] | no_license | cgreer/ResearchScripts | 171cfe9555ea06fdeb91084c12d07d1b45a2335c | 1107803bb1459d6b6e1dfb1a89679d2b6fd49062 | refs/heads/master | 2016-09-05T10:43:19.090247 | 2012-04-12T21:38:11 | 2012-04-12T21:38:11 | 1,673,080 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import bioLibCG
import sys
from parRun import parRun
from checkExit import parClean
import subprocess
#fN and Init
oFN = sys.argv[1]
aFN = sys.argv[2] #this is the filtered ONE!
timer = bioLibCG.cgTimer()
timer.start()
#link oRNA to filteredTargets
print 'linking oRNA to filtered targets'
parRun(1, 'LOCAL', '/home... | [
"chrisgreer88@gmail.com"
] | chrisgreer88@gmail.com |
e01d01f67b652f4105f77f96e645e2c4b88b6ae2 | fcf3041051c01d3110b6225f8796dc8c79420dc2 | /SoftLayer/CLI/config/show.py | a3f7119af889919129e2441e754fd7fde4048142 | [
"MIT"
] | permissive | marvelousNinja/softlayer-python | c4d28cb86e6fd832c04b770c24ae46c4f770c3e1 | 6bca8374a3561a113769b2aba3938d19aba071e4 | refs/heads/master | 2020-12-28T19:23:35.807752 | 2014-10-27T17:21:28 | 2014-10-27T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | """Show current CLI configuration."""
# :license: MIT, see LICENSE for more details.
from SoftLayer.CLI import config
from SoftLayer.CLI import environment
import click
@click.command()
@environment.pass_env
def cli(env):
"""Show current configuration."""
settings = config.get_settings_from_client(env.clie... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
1a893e71d36f75b80356370af378f94fb6b3135d | 5063faf298a36466cdb90f1cbd0a4f4e855b5d3b | /pollination_sdk/models/repository_access_policy.py | f91d129360df3eeec6e0ff675dfb74131f40b31e | [] | no_license | pollination/python-sdk | d4eb4efbcbe3a76cc170cf8e71ad5bc6ca6c3011 | e4a94b236534658b150961795256224fe8dd93c2 | refs/heads/master | 2023-08-04T15:19:29.126613 | 2022-03-06T10:43:21 | 2022-03-06T10:51:08 | 224,588,062 | 3 | 1 | null | 2023-09-05T20:52:35 | 2019-11-28T06:48:40 | Python | UTF-8 | Python | false | false | 4,767 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.27.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pollination_sdk.configu... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
c6e7f3b5174c4473de35c41157f690e8cb7a12a4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/298/70527/submittedfiles/testes.py | 1b5c88e6091bd08f1ca46cb1de61d72ed32ce2d2 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | #lista 1, questao 12
h = float(input('Digite sua altura, em metros: '))
sexo = str(input('Digite H se for homem ou M se for mulher: '))
if sexo = H:
peso = float((72.7*h) - 58)
else:
peso = float((62.1*h) - 44.7)
print('Seu peso ideal eh %.2fkg' % peso)
#lista 2, questao 13
n1 = float(input('D... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
73dd6515e53c4da0b20388adf20c4a054862f6a8 | 350d6b7246d6ef8161bdfccfb565b8671cc4d701 | /Find Median from Data Stream.py | 67bc97c9a083c30a017eb10ec6954f09fd23691e | [] | no_license | YihaoGuo2018/leetcode_python_2 | 145d5fbe7711c51752b2ab47a057b37071d2fbf7 | 2065355198fd882ab90bac6041c1d92d1aff5c65 | refs/heads/main | 2023-02-14T14:25:58.457991 | 2021-01-14T15:57:10 | 2021-01-14T15:57:10 | 329,661,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | from heapq import *
class MedianFinder:
def __init__(self):
self.small = [] # the smaller half of the list, max heap (invert min-heap)
self.large = [] # the larger half of the list, min heap
def addNum(self, num):
if len(self.small) == len(self.large):
heappush(self.larg... | [
"yihao_guo@gwmail.gwu.edu"
] | yihao_guo@gwmail.gwu.edu |
2777683eece1bd5ba22589a0c9e6faa2050bd6d9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/u8e.py | 1c8ae4daf7081141eb835436ea72c77cde574405 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
bfd72fe1cb3e92cbb8ba0579d32c807ba346e16d | ea6b3b74c8f1ff9333c5d4b06a0e4dd9bbdb3bba | /venom/rpc/context.py | b6a76888935a7546622f481d2a2ca3c24253e248 | [
"MIT"
] | permissive | sgalkina/venom | d495d296a388afcb25525491bbbe590bfd258a05 | e372ab9002e71ba4e2422aabd02143e4f1247dba | refs/heads/master | 2021-01-23T03:27:17.239289 | 2017-03-24T15:05:56 | 2017-03-24T15:05:56 | 86,077,951 | 0 | 0 | null | 2017-03-24T14:40:46 | 2017-03-24T14:40:46 | null | UTF-8 | Python | false | false | 1,697 | py | import asyncio
from typing import Optional, MutableMapping
from venom.rpc.resolver import Resolver
from weakref import WeakKeyDictionary
class RequestContext(object):
__contexts: MutableMapping[asyncio.Task, 'RequestContext'] = WeakKeyDictionary()
_context_task: asyncio.Task = None
def __init__(self, ve... | [
"lars@lyschoening.de"
] | lars@lyschoening.de |
ed0c48e9afc6ee921fee1cc5ac2bcefb0454875c | 126b1ef3d5e94b96556915680dedddc5e7c6a8d3 | /server/routes/topic.py | fb90feb31bd71827db8310e300d30d44efc68c0c | [
"Apache-2.0"
] | permissive | stevegt/sagefy | 6fa1cb1009d14377e022ad8276faccb59b734a75 | c7c7db5659a0e65af710726905bdd9ed3bce44b2 | refs/heads/master | 2020-12-30T14:12:24.285603 | 2017-05-13T22:03:02 | 2017-05-13T22:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,151 | py | """
Routes for the discussion platform.
Includes topics, posts, proposals, and votes.
"""
# TODO-3 what checks should be moved to models?
# TODO-2 perhaps, these endpoints are too large
# can they be split up while maintaining guarantees?
from framework.routes import get, post, put, abort
from framework.sessio... | [
"heiskr@users.noreply.github.com"
] | heiskr@users.noreply.github.com |
19e6e87dc80aced0f325fef644e9bcd089924da0 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/goodweather/testcase/firstcases/testcase10_015.py | 296b592daf6181ec9ba75985f5f16404193f9aff | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,040 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
86ea7ad763972639175e91765a9fbea0af24d25e | 51f557698b4c400d3492542d769c8a9663481ef1 | /com/abc/geometry/play_shapes.py | f2c4b353733d71fd702a34da9e7b7cdd49b5d56f | [] | no_license | mehulchopradev/ava-python-core | 984941f9cfa202f342f5c0e4cca4a23b2a6c57bf | 0b9e2cc6e3565f5ebee5df3e9b55baeed023e9ed | refs/heads/master | 2020-04-12T01:18:00.440680 | 2019-01-03T03:55:50 | 2019-01-03T03:55:50 | 162,227,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import rectangle
import shape_stats
import square
r = rectangle.Rectangle(5, 3)
shape_stats.ShapeStatistics.calc_stats(r)
s = square.Square(5)
shape_stats.ShapeStatistics.calc_stats(s) | [
"mehul.chopra.dev@gmail.com"
] | mehul.chopra.dev@gmail.com |
faa085c9ec70c565078c7373b926fb71d493fbaf | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_17817.py | 290e9631d5bca729e29da1546338f2fcfc411b01 | [] | 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 | 51 | py | # How to determine the source of an import?
Crypto
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4cd3823a5b26fef93b03be6c49d85e824f30bf91 | 0e215b6cfcb5f5d3aefb6c12e2c91e6687609736 | /novice/09-03/kelompok/olshop/migrations/0001_initial.py | 5380bea423902f829481a655ec1ab2a5f438ec96 | [] | no_license | Idfa001/praxis-academy | e266963db45d5b2c623f51afd9893861db7c357f | 13da3b696b8575f961ea787f21e59e17c802f920 | refs/heads/master | 2023-01-22T15:13:45.497082 | 2020-11-17T13:50:12 | 2020-11-17T13:50:12 | 287,203,217 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,080 | py | # Generated by Django 3.1.2 on 2020-10-15 03:09
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"idfa001@gmail.com"
] | idfa001@gmail.com |
ef2b1ac51c7ddcc2ed86fc34c18b2027ec819430 | 615622849d5e7ffbc4ea9c537edfc0d8fb3a02a4 | /submits/10_54_53_SB2_C_9518.py | f7bda53835f02a577e4b939e53edc5dc34cb0b3f | [] | no_license | lisiynos/train | f714d11e9e71f27472ca3f6fbfd576c849c07c5f | a3b9f9babf9587eabde8d94b76a52f8ae9d5addc | refs/heads/master | 2020-12-13T15:32:29.862614 | 2016-08-29T09:35:00 | 2016-08-29T09:35:00 | 28,248,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | with open('eq.in', 'r') as infile:
a, b, c = map(float, infile.readline().split())
if a + b - c <= 1e-7:
res = 'YES'
else:
res = 'NO'
with open('eq.out', 'w') as outfile:
outfile.write(res) | [
"super.denis@gmail.com"
] | super.denis@gmail.com |
4aa3fe16bb8b5d673f3ade8b237346e3ea778ef5 | 26ecc372f626ed009a2563d798061e94fd9b59ad | /api/word/serializers.py | 7cd428549d18090b7a4e55a7456d10403d36db61 | [] | no_license | shinkeonkim/straw_words_api | 4f530cd0fb0498a28e09c1bf22e68b689fdf1e41 | 14e048ade06c51ccd5189a73c2510a95c25f208d | refs/heads/main | 2023-08-19T20:56:33.175889 | 2021-10-27T11:13:30 | 2021-10-27T11:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | """Word App Serializers"""
from rest_framework.serializers import ModelSerializer
class WordSerializer(ModelSerializer):
"""Serializer definition for Word Model"""
class Meta:
"""Meta definition for WordSerializer."""
fields = [
"content",
"type",
]
| [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
7e6011e6f9c420e1f0d867f5d81aede939d13c3c | b3f361e363952584491e899ded6f06aba844d468 | /scripts/field/undefined.py | 8b4ded4c1aedc40670768fc82e90d0399b7ec24e | [] | no_license | AsuraRevenge/Swordie | b18dd6ad3563f94b0135c797ecb20f44233f5ac3 | c6af25557c9e5fd06a04592371a7d9fa9bdb917b | refs/heads/master | 2020-03-23T04:01:47.777093 | 2018-07-15T14:46:07 | 2018-07-15T14:46:07 | 141,061,559 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | def init():
sm.chat("(Field) Not coded. Poke Sjonnie/Asura/Ergoth on discord. ID: " + str(parentID))
sm.dispose() | [
"tim.blokk@gmail.com"
] | tim.blokk@gmail.com |
b1d94f9f896a083dbf7d8bcdf7ac7283311f12fe | eb1a2e24ecdbe9be8a6aac153fe1980b19dcbe4a | /matrixsum.py | fda9f3594020bfe93a8c8861bd17067bd2bfc3c7 | [] | no_license | sushmithasushi/playerlevel | 1e7363e63bd75deba79b96a659db7736c93ed6a2 | 612ea4483a5c5d7c3c3a8564e0b7ce0df08a686a | refs/heads/master | 2020-06-19T07:03:06.457910 | 2019-07-24T04:28:31 | 2019-07-24T04:28:31 | 196,608,802 | 0 | 0 | null | 2019-07-12T16:08:51 | 2019-07-12T16:08:51 | null | UTF-8 | Python | false | false | 185 | py | num1=int(input())
arr=[list(map(int,input().split(" "))) for i in range(num1)]
i,j=0,len(arr)-1
a,b=1,1
while i<len(arr):
a*=arr[i][i]
b*=arr[i][j]
i+=1
j-=1
print(a+b)
| [
"noreply@github.com"
] | sushmithasushi.noreply@github.com |
9b50bfb30113784f5b0326dc9c51a2b9f313cdc4 | fff54b01b46cef0bbc70a6469c88c01c82af5a57 | /x11/wm/openbox/actions.py | 60627b14566e45979ad1169013c92e0989f28458 | [] | no_license | LimeLinux/Packages | e51deae6c0d1406e31f06caa5aaa7749466bef0b | d492e075d8b051df68b98c315ad0628e33a8fac4 | refs/heads/master | 2021-01-11T12:37:22.150638 | 2018-08-30T18:24:32 | 2018-08-30T18:24:32 | 77,054,292 | 5 | 19 | null | 2018-02-02T17:24:06 | 2016-12-21T13:33:45 | Python | UTF-8 | Python | false | false | 1,156 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
from pisi.actionsapi import shelltools
def setup():
... | [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
10fda81a4b4e943439493d1bce221a023057f1a5 | 5f9e0c226c6f99f04446d60cd21282e7e6b05d2c | /wizardofodds.py | c31ce2746fa4f8d7da7dbdeae60f4c73a7056c42 | [] | no_license | JONNY-ME/my-kattis-solution | 867ac267dbb5faa6f7c2af35b435498a22ae269d | 51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e | refs/heads/main | 2023-06-17T20:04:04.701038 | 2021-07-16T09:35:35 | 2021-07-16T09:35:35 | 386,583,581 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from math import log
l = ['Your wish is granted!', 'You will become a flying monkey!']
a, b = map(int, input().split())
print(l[b < log(a, 2)]) | [
"yohannesmelese4@gmail.com"
] | yohannesmelese4@gmail.com |
2e7f93939f9b2a86c4cfc599bffc890c57a93441 | 2e2a54e30f8c8018fe0d163a5fd4b0d854ef165d | /src/gluonts/dataset/hierarchical.py | 008228f3bc2143cbf4f6980833353f17fe62872c | [
"Apache-2.0"
] | permissive | kashif/gluon-ts | b742021ca0292ca2885b3b079150f24cdf3e6dec | a818f69dc049c1c1d57e09d2ccb8b5f7a0cff656 | refs/heads/master | 2023-09-05T00:00:22.861992 | 2023-08-09T15:47:28 | 2023-08-09T15:47:28 | 222,552,468 | 5 | 0 | null | 2019-11-18T21:56:52 | 2019-11-18T21:56:52 | null | UTF-8 | Python | false | false | 7,596 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | kashif.noreply@github.com |
4f7e21ced51b919983f3b3c29571054c294dcf7f | d9c1646b7608a84416028fbbc08a05b9fd76d11b | /lite/urls.py | c064d0bb62f615586e90f95b9f0b742f347431b4 | [] | no_license | bushitan/emoji_server | b68e7af9ee937203d25faf48bcffbffcedba0b9c | 655dea8bbc7bf97d9b84739b8e4b75fca861f3b4 | refs/heads/master | 2021-04-28T08:11:52.118222 | 2018-11-01T03:48:13 | 2018-11-01T03:48:13 | 122,243,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # -*- coding: utf-8 -*-
from django.conf.urls import url
from lite.views import *
urlpatterns = [
url(r'^user/login/$', Login.as_view()),
url(r'^wx/create/$', WXCreate.as_view()),
url(r'^wx/callback/$', WXCallback.as_view()),
url(r'^image/get_list/$', ImageGetList.as_view()),
url(r'^upload/ge... | [
"373514952@qq.com"
] | 373514952@qq.com |
7f9ee1c1480f4650301123b789feac8afe9fbb34 | af4eb8204923b5848fce3158c6f8a89a480ea1d8 | /script/AGNSS/AGNSS_Test_0153.py | ce748da7c379f3301e5d6f1bfff627ba2156f012 | [] | no_license | wanghaoplus/gatog | 4ab0c77d4f9eb93da136ad3933a68cbf0b5c5bca | 8935e20a426638462cd1cc7bc048a16751287a2f | refs/heads/master | 2022-04-10T21:36:20.395304 | 2020-03-26T10:09:28 | 2020-03-26T10:09:28 | 248,264,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # -*- coding: utf-8 -*-
# @Time : 2020/02/21 22:14
# @Author : wangdelei
# @Site :
# @File : AGNSS_Test_0153.py
# @Software: PyCharm
from aw.LbsTestCase import LbsTestCase
import time
from aw.core.Input import *
import threading
class AGNSS_Test_0153(LbsTestCase):
def __init__(self):
super(AGNS... | [
"418816179@qq.com"
] | 418816179@qq.com |
4750c9e8466dfbe0af35ccee190a6a181aea1c23 | f00699824a8c5def54421ee3cf836ec2cd15d957 | /3/django_1703_day3/django_1703_day3/urls.py | abcc8cf2e6c8c21e3bc546ebc9f4b42499add853 | [] | no_license | ZhiqiWu/student_manage | 9171d78c32d6900b08de9034b9a2f50c9e24d0b8 | da12ebaf4e9d6357cd9f832144ed756a55510433 | refs/heads/master | 2023-03-29T04:56:09.486061 | 2020-01-24T08:11:50 | 2020-01-24T08:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """django_1703_day3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
201427062ba9b2edabfa869dfa7de2101a13d185 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/plugins/attack/db/sqlmap/plugins/dbms/maxdb/fingerprint.py | 6f3c899dfa3c605d47ed6fc9c30141b19d3b5f9e | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.agent import agent
from lib.core.common import Backend
from lib.core.common import Format
from lib.core.data import conf
from lib.core.data import kb
from lib.co... | [
"everping@outlook.com"
] | everping@outlook.com |
6c93bb2a244c1341eda3afab134342f3545ce8d7 | e8199f1d424592affe19b50fd96a02815067d1b1 | /DFS/1123. Lowest Common Ancestor of Deepest Leaves.py | 5f02a37876f9113a990d8269052dbc2968fbdeb7 | [] | no_license | srajsonu/LeetCode-Solutions-Python | 39a809e4c6d555a3a3055ce03d59cfa40b93a287 | 8ec31c8df2885f3da533424ba13060b7d3e3af78 | refs/heads/master | 2023-03-19T10:05:42.578615 | 2021-03-13T17:21:36 | 2021-03-13T17:21:36 | 280,716,200 | 0 | 1 | null | 2020-10-06T09:54:02 | 2020-07-18T18:32:04 | Python | UTF-8 | Python | false | false | 805 | py | class Node:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def dfs(self, root):
if not root:
return None, 0
l1, h1 = self.dfs(root.left)
l2, h2 = self.dfs(root.right)
if h1 < h2:
return l2,... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
a1b949a34ca908572b283dceb52eb0c982581abf | e6cd94778c75f1136f65be92b6f08add0fdd29de | /oscrypto/_osx/util.py | 4c20588d87810790723bad3af9882c27b8046be3 | [
"MIT"
] | permissive | aburan28/oscrypto | 07b06e968ee009c19c4c5816d3d2186f110350aa | 3cfb80f02bb5d8d44e33093009f884edc1b7fe9e | refs/heads/master | 2021-01-18T01:47:15.160841 | 2015-11-11T17:25:18 | 2015-11-11T17:25:18 | 46,083,196 | 1 | 1 | null | 2015-11-12T21:52:29 | 2015-11-12T21:52:28 | null | UTF-8 | Python | false | false | 10,007 | py | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
from .._errors import pretty_message
from .._ffi import buffer_from_bytes, bytes_from_buffer, errno, byte_string_from_buffer, LibraryNotFoundError
from ._common_crypto import CommonCrypto, CommonCryptoConst
fr... | [
"will@wbond.net"
] | will@wbond.net |
0393527d395537186cb377affd76435f6cf61138 | 3327a87cefa2275bd0ba90a500444f3494b14fdf | /bwu/bfs/133-clone-graph.py | 4c9dfdcc3c0be680ea6cebf55de31018bd1635ee | [] | no_license | captainhcg/leetcode-in-py-and-go | e1b56f4228e0d60feff8f36eb3d457052a0c8d61 | 88a822c48ef50187507d0f75ce65ecc39e849839 | refs/heads/master | 2021-06-09T07:27:20.358074 | 2017-01-07T00:23:10 | 2017-01-07T00:23:10 | 61,697,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | # Definition for a undirected graph node
# class UndirectedGraphNode:
# def __init__(self, x):
# self.label = x
# self.neighbors = []
class Solution:
# @param node, a undirected graph node
# @return a undirected graph node
def cloneGraph(self, node):
if not node:
ret... | [
"noreply@github.com"
] | captainhcg.noreply@github.com |
58a370ae8e80e03a08b4ba610f65af0d7bb0a61e | f0581fa08ef790606ca019890a2233f91b1c42a7 | /PythonSrc/Unit2_HW_src/craps.py | cd2f9c5b4ad092105be300320fd4290b1da0a861 | [] | no_license | jaycoskey/IntroToPythonCourse | de758f0dd0a1b541edb2ef4dcc20950a8d8788bb | d1373ec6602584a6791fd48d37ae66ff5f104487 | refs/heads/master | 2023-02-22T16:32:50.533091 | 2021-01-27T08:22:14 | 2021-01-27T08:22:14 | 333,007,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | #!/usr/bin/env python3
from enum import Enum
from random import randint
LOSE = 0
WIN = 1
def get_roll_sum():
"""Returns the sum of the rolls of two six-sided dice."""
faces = 6
n = 2
# Note: randint(a, b) generates a random number x for which a <= x <= b.
# So the possible range includes ... | [
"jay.coskey@gmail.com"
] | jay.coskey@gmail.com |
abfe778647357917f42dab511d4438a3cb2aa0d6 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /quadrule/clenshaw_curtis_set.py | 1bae0cc60e446a8c4379467d2db96c9396390d54 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,922 | py | #! /usr/bin/env python
#
def clenshaw_curtis_compute ( n ):
#*****************************************************************************80
#
## CLENSHAW_CURTIS_SET sets a Clenshaw-Curtis quadrature rule.
#
# Discussion:
#
# The integral:
#
# Integral ( -1 <= X <= 1 ) F(X) dX
#
# The quadrature rule:
#
# ... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
e5c5ef0b82beced0c845747e6989866350a11788 | 1e40a99921a4cfc717145844a47729701c149623 | /sensor/raspberrypi/test.py | 302b29e0e5d37174fc3646a237d64b34bcf1f8e8 | [] | no_license | zhulinyu/air_monitor | 430eab365f935d5f3e5d53eda992857392e0beeb | 4fd403e1b7bfd9c132c2414bc6d64a260cca99ac | refs/heads/master | 2020-12-07T18:31:23.561091 | 2018-05-25T11:42:57 | 2018-05-25T11:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import serial
import time
serial_0 = serial.Serial("/dev/ttyUSB0", 9600)
while True:
waitlen = serial_0.inWaiting()
if waitlen != 0:
recv = serial_0.read(waitlen)
recv_split = recv.split('\n')
for message in recv_split:
message_split = message.split(':')
if len(... | [
"435878393@qq.com"
] | 435878393@qq.com |
549209291c38e23ff55294d939a7cc501755027b | aa0d55b2aa22da0af6545ce0da46d04dbdc3bffc | /cpgames/core/games/tankwar/modules/sprites/foods.py | e67f4ce87423ee5572f378ee2d10ed95c62232e8 | [
"Apache-2.0"
] | permissive | cyanghsieh/Games | 19fdad463cf12cbd503a399ed2700c0dae615714 | 07767df6d181b9eae89ce0a8b883d19afb450cc1 | refs/heads/master | 2023-05-11T11:11:09.777569 | 2023-02-22T14:28:18 | 2023-02-22T14:28:18 | 283,113,319 | 0 | 0 | MIT | 2020-07-28T05:49:13 | 2020-07-28T05:49:12 | null | UTF-8 | Python | false | false | 701 | py | '''
Function:
食物类
Author:
Charles
微信公众号:
Charles的皮卡丘
'''
import pygame
import random
'''食物类. 用于获得奖励'''
class Foods(pygame.sprite.Sprite):
def __init__(self, food_images, screensize, **kwargs):
pygame.sprite.Sprite.__init__(self)
self.name = random.choice(list(food_images.keys()))
... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
25188febd91af1b7547e0c5a39b26e274538a944 | d897cfccafa978c06765004afdc3f0e17f7b0c9f | /A.I/10_Keras/ML/m06_wine.py | 7bf0a7a4fb8e0e064de732d7e35736fec4e6265d | [] | no_license | moonseokho85/TIL | a3a29e6ff5ae9893cfe5f9c3112417f1fb6c5394 | 276efa537998eab0490ab413b3ca4f7ecb69f1ca | refs/heads/master | 2023-01-07T12:11:00.458905 | 2020-05-04T00:23:09 | 2020-05-04T00:23:09 | 230,218,704 | 0 | 1 | null | 2023-01-05T03:49:10 | 2019-12-26T07:39:37 | Jupyter Notebook | UTF-8 | Python | false | false | 887 | py | import pandas as pd
#### Loading Data ####
wine = pd.read_csv('./data/winequality-white.csv', sep=';', encoding='utf-8')
#### Defining data ####
y = wine['quality']
x = wine.drop('quality', axis=1)
print(x.shape)
print(y.shape)
# Split Data to Train and Test
from sklearn.model_selection import train_test_split
x_tr... | [
"mseokho7733@gmail.com"
] | mseokho7733@gmail.com |
87d3738cb5dc8728556f3496f62c661fa4f24d16 | cf7b827958166c8569eb58deb511cc3f07567741 | /in_Python/0693 Binary Number with Alternating Bits.py | b6c7609d6113e06e698c1ad47e7271c161b504d9 | [] | no_license | YangLiyli131/Leetcode2020 | e4e36eb36b1983f73b0e733455b4a7953dfebe6d | 20623defecf65cbc35b194d8b60d8b211816ee4f | refs/heads/master | 2023-08-22T06:00:55.924112 | 2021-09-18T19:04:15 | 2021-09-18T19:04:15 | 251,426,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | class Solution(object):
def hasAlternatingBits(self, n):
"""
:type n: int
:rtype: bool
"""
pre = n % 2
n /= 2
while n != 0:
cur = n % 2
if pre == cur:
return False
n /= 2
pre = cur
... | [
"noreply@github.com"
] | YangLiyli131.noreply@github.com |
da695d2fdffbeaa2d51433f4659ce0933fc82478 | 5085dfd5517c891a1f5f8d99bf698cd4bf3bf419 | /027.py | e60c4afdfa045166c83f4427bcb2c83ff3874e95 | [] | no_license | Lightwing-Ng/100ExamplesForPythonStarter | 01ffd4401fd88a0b997656c8c5f695c49f226557 | 56c493d38a2f1a1c8614350639d1929c474de4af | refs/heads/master | 2020-03-10T22:07:37.340512 | 2018-04-15T13:16:30 | 2018-04-15T13:16:30 | 129,611,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
"""
* @author: Lightwing Ng
* email: rodney_ng@iCloud.com
* created on Apr 14, 2018, 11:14 PM
* Software: PyCharm
* Project Name: Tutorial
题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来。
程序分析:无。
"""
# res = []
# total = 5
# count = total
# while count:
# print("Please type a St... | [
"rodney_ng@icloud.com"
] | rodney_ng@icloud.com |
409ec3ea4fa3919ebc803729a0df858ed63ac24e | 933833285c122fea63e2397717469a9701139e7b | /app/api/users/actions/get_user.py | d2cc7cac53a14976325b07284130bfa85b745205 | [] | no_license | borgishmorg/mis-backend | ea4371b7ae5ebb46b7cd0c9eb26640c47dc67656 | f4dbcbfb8c9af717e54eadab24a1dfee3e537cee | refs/heads/master | 2023-05-31T05:02:18.947337 | 2021-06-11T22:55:01 | 2021-06-11T22:55:01 | 361,906,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from fastapi import Path, Depends, status, HTTPException
from app.dependencies import TokenPayload, token_payload, Permission
from ..controller import UsersController, UserDoesNotExistException
from ..schemas import User
async def get_user(
id: int = Path(...),
token_payload: TokenPayload = Depends(token_payl... | [
"43957407+borgishmorg@users.noreply.github.com"
] | 43957407+borgishmorg@users.noreply.github.com |
b7391e8ebc23a07d09c4e65cccb68b562d6bbc0d | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /job/migrations/0017_merge_20200323_1128.py | e8469a247715acab0e968b4b0079008dc3a27252 | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Generated by Django 3.0.3 on 2020-03-23 11:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('job', '0016_merge_20200323_1126'),
('job', '0016_merge_20200323_0955'),
]
operations = [
]
| [
"rashed@ishraak.com"
] | rashed@ishraak.com |
019ec79c00944356c4b95dfb0a7d87d3b89189c5 | 944401a6292baa2d23b9738898e0b0cb199d0795 | /color_quantization/octree/img_quality_assessment(IQA)/allIQAs/rgb_allIQAs/rgb_quantizer.py | bc759d79e4cc1a69baf325f1dad94c0d63bba30b | [] | no_license | sunnyweilai/Finding-Theme-Color-Palettes | cc84c93ce58abdd1802431c41bd59181d7a4f75b | 4c38b112f5c40b43d6ec126e415b609c7fdc1f39 | refs/heads/master | 2022-12-21T09:41:31.187411 | 2019-04-30T14:50:17 | 2019-04-30T14:50:17 | 184,273,925 | 1 | 0 | null | 2022-12-07T03:46:55 | 2019-04-30T14:09:52 | Python | UTF-8 | Python | false | false | 6,468 | py | # -*- coding: utf8 -*-
"""
Using Octree algorithm to to extract color themes (1-20) from the "sky" image in RGB color space
---- reference:
---- 1. "八叉树颜色量化" written by TwinklingStar,http://www.twinklingstar.cn/2013/491/octree-quantization/
---- 2. "octree_color_quantizer" written by delimitry, https://github.com/delim... | [
"wnn2260@gmail.com"
] | wnn2260@gmail.com |
0faa39b080f6684d68202da9d1437cc82432da29 | 9e923712d5d1b658ef2bcf6060f9dba66ac9a160 | /scripts/mcl.py | dd82057fc6a3b91bafbc2b28adc28e13ed909384 | [] | no_license | Kazuma0716/LectureOfProbabilisticRobotics | 782137084bfab1d45537fb93cb725751a80a029c | becc36f31bb465605db71ded12a06dcbf4f8b1d7 | refs/heads/master | 2020-04-01T23:10:24.176400 | 2018-10-19T05:26:23 | 2018-10-19T05:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,683 | py |
# coding: utf-8
# In[1]:
import sys
sys.path.append('../scripts/')
from robot import *
from scipy.stats import multivariate_normal
import random #追加
# In[2]:
class Particle:
def __init__(self, init_pose, weight):
self.pose = init_pose
self.weight = weight
def motion_update(sel... | [
"ryuichiueda@gmail.com"
] | ryuichiueda@gmail.com |
d4ed487a05c4a364645806e8e7dab0bfef3ab1ad | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/SafeBreach/Integrations/SafeBreach_v2/SafeBreach_v2_test.py | 3e126d7ce950bbe7ab90adf2f78bac69236fded1 | [
"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 | 11,166 | py | import json
import pytest
import demistomock as demisto
from CommonServerPython import *
from SafeBreach_v2 import get_insights_command, get_remediation_data_command, rerun_simulation_command, \
get_safebreach_simulation_command, get_indicators_command, insight_rerun_command, Client
MOCK_URL = "https://safebreach-... | [
"noreply@github.com"
] | demisto.noreply@github.com |
f99a47a95eef9cc2d32d8394420b67c23fd2b17e | 449455c5a108af92def9ce2ee796bbfdff536a97 | /gittarius/pipelines.py | aa762f79ecfbc2a74ead7283565f68329654f883 | [] | no_license | lin13k/gittarius | e18762de2fff2ae36cce498b55ff07b35d56eb88 | 2b6e40e83e7d90f7e2464d26853fba9922651761 | refs/heads/master | 2020-03-23T18:25:48.695815 | 2018-08-05T09:12:17 | 2018-08-05T09:12:17 | 141,908,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class GittariusPipeline(object):
def process_item(self, item, spider):
return item
| [
"lin.13k@gmail.com"
] | lin.13k@gmail.com |
f04d78eccffb0cefd9bb979947f28a103a6170ec | ecf0d106831b9e08578845674a457a166b6e0a14 | /programming_basics/for_loops_LAB/5_character_sequence.py | 89292315cd587a172ed791f110b3f7e4a610283e | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | string = input()
for char in string:
print(char) | [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
b378e1473b5fa90d2b3ebf8821c9693f636e55a4 | 93fb46d19558dfa84a845df246513539a729dfaa | /lgms/students/migrations/0078_auto_20180715_0539.py | e41945dcd6389edddef31cfef835ff192acd4d31 | [] | no_license | bopopescu/beta | d09812a777bbe6f97870e7e4ea7efeacb8969939 | 251abb8631e20562a902f01a783375905ff01802 | refs/heads/master | 2022-11-19T01:33:24.885952 | 2019-01-16T02:54:31 | 2019-01-16T02:54:31 | 282,357,347 | 0 | 0 | null | 2020-07-25T02:46:18 | 2020-07-25T02:46:17 | null | UTF-8 | Python | false | false | 3,440 | py | # Generated by Django 2.0.6 on 2018-07-15 05:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0077_auto_20180715_0536'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='applic... | [
"42force@gmail.com"
] | 42force@gmail.com |
9cf39e9fc1ed4119f31bd1d1bae6dbd3758c13df | 97be97cfc56fb2170b60b91063dbfe5f1449e3c0 | /python/lib/Educational_DP/C.py | e47bf324c55fcf0a261c031ed96e453f38fa3922 | [] | no_license | iWonder118/atcoder | 73d965a0a9ade189733808e47634f2b7776aad4b | 3ab7271e838a2903ff0e07f94015ef13c59577e1 | refs/heads/master | 2022-01-25T10:10:55.007340 | 2021-12-31T14:04:54 | 2021-12-31T14:04:54 | 245,155,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | n = int(input())
plans = [list(map(int, input().split())) for _ in range(n)]
dp = [[0] * 3 for _ in range(n + 1)]
for i in range(n):
dp[i + 1][0] = max(dp[i][1] + plans[i][1], dp[i][2] + plans[i][2])
dp[i + 1][1] = max(dp[i][0] + plans[i][0], dp[i][2] + plans[i][2])
dp[i + 1][2] = max(dp[i][0] + plans[i][0... | [
"52240372+iWonder118@users.noreply.github.com"
] | 52240372+iWonder118@users.noreply.github.com |
499a635fcb2802740fbb92d41afed9c49236bd73 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/3519272/snippet.py | 6f41eff490a4cb46bb495d6f7b3279d67c3db51b | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,698 | py | from telnetlib import Telnet
class RedisLiteClient:
"""
Super lightweight no-frills blocking Redis client that doesn't require any additional dependencies.
This is a microlibrary, designed for easy copy'n'paste into a project, where you don't want to
rely on pip/easy_install/etc.
Usage:
redis = RedisLi... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
281b39f4461ff8db3e1a5960b3c96d9d73e1ada7 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /ACL_PyTorch/contrib/cv/detection/NAS_FPN/mmdetection_coco_preprocess.py | db194cf1defda77b6eeae08e1fb971848453a217 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,720 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f4afd066b6975b3151f6175771fd31368a92917d | 5c931b7e622a1d161beed7775d0484a94bb451bc | /xrt/__init__.py | 8f7097f7fe2691033ba8dea1ba5ded552da8e670 | [
"MIT"
] | permissive | wholden/xrt | 7ccd0117b399350cf2c33ba9a942942f62ff4c1e | 39393c04dde8e8a96880939af778662f960ffd88 | refs/heads/master | 2020-12-24T11:37:40.410246 | 2016-10-14T15:12:12 | 2016-10-14T15:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,237 | py | # -*- coding: utf-8 -*-
u"""Package xrt (XRayTracer) is a python software library for ray tracing and
wave propagation in x-ray regime. It is primarily meant for modeling
synchrotron sources, beamlines and beamline elements. Includes a GUI tool for
creating scripts.
+-------------------+---------------+-----------+
|... | [
"konstantin.klementiev@gmail.com"
] | konstantin.klementiev@gmail.com |
241117e2ebd9fb6f86beca5b2b3376679a1faab5 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-DiscRecording/PyObjCTest/test_drcontentproperties.py | 8ddd334bb71dc7bfcd50d48142fa41ec34f1379e | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,938 | py | from PyObjCTools.TestSupport import *
import DiscRecording
class TestDRContentProperties(TestCase):
def testConstants(self):
self.assertIsInstance(DiscRecording.kDRISOLevel, unicode)
self.assertIsInstance(DiscRecording.kDRVolumeSet, unicode)
self.assertIsInstance(DiscRecording.kDRPublishe... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
36a580bc8949be50a0d63d4cd53dc86f8c7a772d | d7f45fac46598da9825a404d7511df7474237e4a | /ex108/moeda.py | 6e2c648ce140f34eacff22412fd372e4f0a275b7 | [] | no_license | MarceloBCS/Exercicios_Curso_em_video | b4a8cbc8573e1303065c0cf1baad25c47d5a2fd8 | a90fd67d83cf154f3554f962815fb791d3508d0c | refs/heads/master | 2022-12-29T19:15:50.007022 | 2020-10-13T05:09:28 | 2020-10-13T05:09:28 | 303,592,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def metade(valor):
valor = valor/2
return valor
def dobro(valor):
valor *= 2
return valor
def aumentar(valor, fator=0):
valor *= (1+fator/100)
return valor
def reduzir(valor, fator=0):
valor *= (1-fator/100)
return valor
def monetario(valor, currency='R$ '):
return f'{currenc... | [
"63213758+MarceloBCS@users.noreply.github.com"
] | 63213758+MarceloBCS@users.noreply.github.com |
a356f7ab13cf69d366ae4060fe7ac7986896e18f | 428251e19e18273ef2244b28358eb189c67cd966 | /g2base/remoteObjects/ro_config.py | 29cc42b1326da20af9f05c11afc7144c64ad920e | [
"BSD-3-Clause"
] | permissive | naojsoft/g2cam | e590c3bee23b7702e5950b9a1f6b2c73973cdf2a | 51420647c23e0d61fa47c2ad1125cb5ad60b7f67 | refs/heads/master | 2023-09-01T02:44:10.048634 | 2023-08-23T00:42:52 | 2023-08-23T00:42:52 | 40,327,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | #
# Configuration file for remoteObjects
#
# Port for manager service to run on
managerServicePort = 7070
# Port for name service to run on
nameServicePort = 7075
# Beginning of range of ports for remote object services
objectsBasePort = 8000
# Default transport
default_transport = 'xmlrpc'
#default_transpor... | [
"eric@naoj.org"
] | eric@naoj.org |
0483741a04e2498b17ffe86ff32bfffabb0687a4 | 77e303d8353170f4181ab9ff66ac77cb57d46caf | /src/166A.py | 9cf3ef2f712d177b5eb8f06d7e11bd2bc05189f9 | [
"MIT"
] | permissive | viing937/codeforces | 14f689f2e3360939912e927fb830c69f7116b35c | 5bd8c2bec0e48cb2b4830c26849ea7fda447267c | refs/heads/master | 2022-09-25T19:51:03.891702 | 2022-08-15T15:32:54 | 2022-08-15T15:32:54 | 32,905,529 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | # coding: utf-8
n, k = [int(i) for i in input().split()]
teams = []
for i in range(n):
tmp = [int(i) for i in input().split()]
teams.append([tmp[0],50-tmp[1]])
teams.sort(reverse=True)
print(teams.count(teams[k-1]))
| [
"viing937@gmail.com"
] | viing937@gmail.com |
7774a1246a5cd129c81bb72b0629bacf2771195e | 0b00542af38dfb5e6a6855256610ece965abceb5 | /manage.py | cd8eea5d401f2899f744954072aba57765ebedff | [] | no_license | Sasikumar-P/TokenBasedAuthenticationDRF | 172bb1295cf1fe112b03807d1998cff02d9e36b5 | 64c4f39bed69de9e60b74ef0af2b4cafe01bd92e | refs/heads/master | 2021-01-01T05:58:23.783136 | 2017-07-15T14:59:50 | 2017-07-15T14:59:50 | 97,322,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Lock.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"skp.guptha@gmail.com"
] | skp.guptha@gmail.com |
2b305e845d2b609d136fc3728edfef8b3efd1635 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4_neat/16_0_4_KBristow_ProblemD2.py | c2fa090e02088e0803c50d7387cd44aa1490976b | [] | 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 | 1,402 | py | import math
def process_line(line):
line_split = line.split()
initial_length = long(line_split[0])
art_level = long(line_split[1])
guess_limit = long(line_split[2])
guesses_required = initial_length
base_guesses = initial_length
base_positions = range(1, initial_length + 1)
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
148cd7059ac1e57ad8b9a33f2622afed2176f407 | 35fa8925e63f2b0f62ef6bfc1ff4e03cf42bd923 | /tests/models/output/definitions/test_float_output_definition.py | 0a1ac2a6d4d9ad8c1921ece64f98a88431950ea8 | [
"Apache-2.0"
] | permissive | TheLabbingProject/django_analyses | 9e6f8b9bd2a84e8efe6dda6a15de6a3ecdf48ec1 | 5642579660fd09dde4a23bf02ec98a7ec264bceb | refs/heads/master | 2023-02-26T07:53:53.142552 | 2023-02-17T08:12:17 | 2023-02-17T08:12:17 | 225,623,958 | 1 | 2 | Apache-2.0 | 2023-02-17T08:12:18 | 2019-12-03T13:15:29 | Python | UTF-8 | Python | false | false | 1,637 | py | from django.test import TestCase
from django_analyses.models.output.definitions.float_output_definition import \
FloatOutputDefinition
from django_analyses.models.output.definitions.output_definitions import \
OutputDefinitions
from django_analyses.models.output.types.float_output import FloatOutput
from tests.... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
91bd19e0057dac1ea7515142b0202556e669f5ff | f39c2c500873180d953ab9a7b22a4f6df95fb1c3 | /test.py | f977b5cc4dac3698514975d02895fef7d17edeaf | [] | no_license | Jason003/interview | 458516f671d7da0d3585f89b098c5370edcd9f04 | e153306b85c3687b23a332812a0885d25ecce904 | refs/heads/master | 2021-07-15T15:28:07.175276 | 2021-02-05T03:21:59 | 2021-02-05T03:21:59 | 224,898,150 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | def break_word(s, words):
words = set(words)
lengths = set(map(len, words))
def dfs(idx):
if idx == len(s):
return True, ''
for i in range(idx, len(s)):
for length in lengths:
word = s[i: i + length]
if word in words:
... | [
"jiefanli97@gmail.com"
] | jiefanli97@gmail.com |
b69fe2c0b9aac1631488fd2849b01feb09323de1 | b9be3202a4db8875299d4a123b7c1e3c7d282eaf | /tensorflow/contrib/learn/python/learn/graph_actions.py | e08eea9a300d5ef47540dca89d1b63f26453b440 | [
"Apache-2.0"
] | permissive | prafullasd/tensorflow | f25d0eb5997af2500d4bd2f7596d103d7028f048 | 2c55490c6d6d361985dbb0565ab08a648c819949 | refs/heads/master | 2021-01-18T13:31:25.223301 | 2016-06-03T20:27:32 | 2016-06-03T20:27:32 | 60,382,471 | 1 | 0 | null | 2016-06-03T22:58:26 | 2016-06-03T22:58:25 | null | UTF-8 | Python | false | false | 23,282 | py | # Copyright 2016 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9c101b5276c3a3c4f968336df755590c335e4908 | c8e2a119ba67f4933f1ad840a2e9b3a7c1363126 | /itest_project/itest_backend/itest_backend/asgi.py | 8ef8b58855b41295788c23c6578945d87c778fa9 | [] | no_license | harter123/test-dev4 | f14458f74b00a34266a2dcb61b31c7fe7e6f9676 | a6692f26d4bba09386f25be1912ccff0efa0bcbf | refs/heads/main | 2023-06-03T05:17:03.390814 | 2021-06-27T02:50:02 | 2021-06-27T02:50:02 | 337,424,160 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for itest_backend 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"harter@126.com"
] | harter@126.com |
efba7296ea9cbd407b4b17b1649f254e8ab23ac3 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /tkinter/withTtk/framettk.py | 3fb5a766f910d3fd8a5228d0822a822afb97f24f | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 409 | py | """
reference:
http://python.keicode.com/advanced/tkinter-widget-frame.php
"""
import tkinter as tk
from tkinter import ttk
"""
relief='sunken','flat'(default), 'raised','groove','ridge'
"""
def main():
root=tk.Tk()
framettk=ttk.Frame(root,
height=200,width=300,
relief='sunken',
borde... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
b37b65bec80d28bb628214ec38930553875b5523 | 81bc570b5a04e806d48be97fce7b4e42ebb6d116 | /06_ForElse_Range_Break/06_ForElse_Range_Break.py | 1ca9fe78219fa4b9a70829edce30977e2e553f8f | [] | no_license | wildenali/Python3_Basics | 856351d28adb0ef2ad448a47a04ae8243b0a7cd0 | 40d8f3ede6ef7ef2663e808649cd98780a6d5e88 | refs/heads/master | 2022-06-09T06:55:35.961974 | 2022-05-15T09:21:08 | 2022-05-15T09:21:08 | 173,430,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Range
print(range(10, 50, 5)) # ini bukan list, tapi class
for i in range(10, 50, 5): # 5 adalah increment nya
print(i)
# for else
# else untuk for
for i in range(0, 5):
print(i)
else:
print('halow')
# break
for i in range(0, 40):
print(i)
if i is 25: # coba ubah 25 jadi 50
... | [
"wildeeeeen@gmail.com"
] | wildeeeeen@gmail.com |
acac7f2a1abaa13e6f06e48d8fc69c5682cc4cb7 | 4de9557c051d39e4cb25ffbd2b22059f49fe328e | /core/migrations/0001_initial.py | 4e1bb84c50ecfa1275faf4874756635f233e4d89 | [] | no_license | bekbossyn/collection_backend | 90133ffbaaf93eb26487e8df0f5c0af0c9eeb087 | 4b8944affd3397a02f200d2a6e2599e85e75f147 | refs/heads/master | 2022-11-25T01:36:27.278545 | 2019-05-24T16:31:59 | 2019-05-24T16:31:59 | 187,321,156 | 0 | 0 | null | 2022-11-22T03:49:24 | 2019-05-18T06:08:08 | Python | UTF-8 | Python | false | false | 2,704 | py | # Generated by Django 2.2.1 on 2019-05-18 06:06
from django.db import migrations, models
import utils.upload
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Activation',
fields=[
... | [
"bekbossyn.kassymkhan@gmail.com"
] | bekbossyn.kassymkhan@gmail.com |
7a68e6e417ed75b90e0dcef3a9b448009ed1f02f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/transformers/src/transformers/models/resnet/__init__.py | c561729d541bc5844944afca8b43456fae7857d7 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,695 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
a44c4c9673aed28332094c2a4984dff01432c832 | 9110f6b1251e002ee7daf6e2c5c1d7ab5fedfcf8 | /pscheduler-tool-psclock/psclock/merged-results | 242b4e1cfb662f1d4f0a14879a2ca7dc7ad9e392 | [
"Apache-2.0"
] | permissive | perfsonar/pscheduler | 8a62c076ce8a6e4a51042ed294468616885819ad | f6d04c0455e5be4d490df16ec1acb377f9025d9f | refs/heads/master | 2023-08-11T02:12:15.487628 | 2023-07-24T15:16:00 | 2023-07-24T15:16:00 | 49,273,408 | 53 | 41 | Apache-2.0 | 2023-07-24T14:09:18 | 2016-01-08T13:25:33 | Python | UTF-8 | Python | false | false | 633 | #!/usr/bin/env python3
#
# Merge the participant results of a run by this tool into a
# test-standard result.
#
import pscheduler
input = pscheduler.json_load(exit_on_error=True);
# TODO: Validate the input
try:
succeeded = input['results'][0]['succeeded']
except (KeyError, TypeError):
succeeded = False
r... | [
"mfeit@internet2.edu"
] | mfeit@internet2.edu | |
140d916eebb13713de87a027f884f20a88b228e8 | 0400c4a4f601bb16c6aed55f1bacbbe32f44cfd7 | /aiocoap/defaults.py | 6dcbfaee9d01717f273caa68b63f10722af9f958 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jonaslorander/aiocoap | 783ada98e6d8e80c375df63dcdf04a0c034ba207 | 6f35d6c8526c9187a2bc976708aaa6f5c8d6f896 | refs/heads/master | 2023-02-19T03:39:44.984446 | 2021-01-10T13:14:51 | 2021-01-10T13:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | # This file is part of the Python aiocoap library project.
#
# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
# 2013-2014 Christian Amsüss <c.amsuess@energyharvesting.at>
#
# aiocoap is free software, this file is published under the MIT license as
# described in the accompany... | [
"chrysn@fsfe.org"
] | chrysn@fsfe.org |
2ed045a5ac4b86bc6c58eb75bafdecb8b09b86ec | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/apimanagement/v20201201/tag_by_product.py | 53dd7059b7a252b877e5a14763649e687acaa3e2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,304 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
49131c3f5d79c2af0e937fa14dc988600405bde8 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/多项式/生成函数/verify/P2000 拯救世界.py | 1a66661ec3f1388ae7d2bc765a97bd8277062265 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | # https://www.luogu.com.cn/problem/P2000
# 算法学习笔记(16): 生成函数 - Pecco的文章 - 知乎
# https://zhuanlan.zhihu.com/p/106522599
| [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
034b8f3341a54890b6107cff271420c7496204b6 | 653a3d9d66f3d359083cb588fc7c9ece8bb48417 | /test/runtime/operators_test/asin_test.py | 2c9712dca733b68d0643897fc2a9a4e934604746 | [
"Zlib",
"MIT"
] | permissive | leonskim/webdnn | fec510254b15f3dec00f5bed8f498737b372e470 | f97c798c9a659fe953f9dc8c8537b8917e4be7a2 | refs/heads/master | 2020-04-15T18:42:43.632244 | 2019-01-10T10:07:18 | 2019-01-10T10:07:18 | 164,921,764 | 0 | 0 | NOASSERTION | 2019-01-09T19:07:35 | 2019-01-09T19:07:30 | Python | UTF-8 | Python | false | false | 883 | py | import numpy as np
from test.util import generate_kernel_test_case, wrap_template
from webdnn.graph.graph import Graph
from webdnn.graph.operators.asin import Asin
from webdnn.graph.order import OrderNHWC, OrderNCHW
from webdnn.graph.variable import Variable
@wrap_template
def template(x_shape=[2, 3, 4, 5], x_order=... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
fbe07416d2588d83714ac8c480230c6d14dc42bd | c849d062df6abbfb5fd525cd5fa18e7f4fb7d224 | /lib/model/utils/config.py | 8baf19eedce2dc46f945e7137efde4faee97c822 | [] | no_license | qaz734913414/Thundernet_Pytorch | 6cbea17670aa111ccb617cf29fa5a0cacd42c9aa | 09c553eb9035bb11a146ce7f0defc499ae950e70 | refs/heads/master | 2020-09-29T01:22:21.695686 | 2019-12-09T03:07:08 | 2019-12-09T03:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,743 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import os.path as osp
import numpy as np
# `pip install easydict` if you don't have it
from easydict import EasyDict as edict
__C = edict()
# Consumers can get config by:
# from fast_rc... | [
"760997646@qq.com"
] | 760997646@qq.com |
f58347b5d97034f958158403194ae107f4c3a305 | 7aec3f10b07403b542e1c14a30a6e00bb479c3fe | /Codewars/8 kyu/Merge two sorted arrays into one.py | 176b6471768377e191a557a0e0ebeb95b806ad06 | [] | no_license | VictorMinsky/Algorithmic-Tasks | a5871749b377767176ba82308a6a0962e1b3e400 | 03a35b0541fe413eca68f7b5521eaa35d0e611eb | refs/heads/master | 2020-08-02T23:18:06.876712 | 2020-01-16T19:08:49 | 2020-01-16T19:08:49 | 211,541,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | """
You are given two sorted arrays that contain only integers. Your task is to find a way to merge them into a single one, sorted in ascending order. Complete the function mergeArrays(arr1, arr2), where arr1 and arr2 are the original sorted arrays.
You don't need to worry about validation, since arr1 and arr2 must be... | [
"panasyuk.vityu@gmail.com"
] | panasyuk.vityu@gmail.com |
a520194b571b033d670e2b8d3023e7b6a318db01 | 5fef1d6af236b1e89a44345ff162fdceaf4b23d1 | /pythontutorials/books/CrackingCodes/Ch08/PracticeQuestions/Question3.py | aa16f6082c42f27d276ae691b9ac4c086cf537b0 | [
"MIT"
] | permissive | JoseALermaIII/python-tutorials | 994ff2196bf4b4285440f6a3b65012f372867502 | 9d6cb78beec0bb55e27c49da1217317ba4d5f4fc | refs/heads/master | 2022-12-12T13:32:13.075243 | 2018-12-30T06:41:02 | 2018-12-30T06:41:02 | 70,302,096 | 2 | 3 | MIT | 2022-12-08T03:00:28 | 2016-10-08T03:48:55 | Python | UTF-8 | Python | false | false | 1,858 | py | """Chapter 8 Practice Question 3
Draw the complete truth tables for the and, or, and not operators.
"""
def notTruthTable() -> None:
"""Not truth table.
Prints a truth table for the not operator.
Returns:
None. Only prints out a table.
"""
print(" _________________________\n",
... | [
"jose@JoseALerma.com"
] | jose@JoseALerma.com |
ea8c0b620421449c6a48bb7ca8fc6c131ad8f626 | 2071cf1aec8e9762a70b8c932943d8769da7f37a | /python_source/gui/tkinter/tkmenu.py | 3311ece96b264f44bcd4d683e237d5f3ec453fe3 | [] | no_license | rinkeigun/linux_module | 70581a793d1f170ad1a776fd1acf4cda1abecd52 | 94450fb2c6af0fc56f451ae9bf74f7aca248d0a6 | refs/heads/master | 2020-05-21T17:49:15.608902 | 2018-09-18T22:57:40 | 2018-09-18T22:57:40 | 60,572,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from tkinter import *
from tkinter import ttk
def foo():
print('menu1!')
def bar():
print('menu2!')
def baz():
print('help!')
if __name__ == '__main__':
root = Tk()
menubar = Menu(root)
# File Menu
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label='Menu1', comm... | [
"huiqun.lin@gmail.com"
] | huiqun.lin@gmail.com |
2971a8ef20a7ee9dff3bff37fe59f22a113644e4 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /past4/a.py | 4a62f5ffe13a12b0b84657d795a3270fa819ba2b | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | aa = zip(list('ABC'), list(map(int, input().split())))
aa = sorted(aa, key=lambda x: x[1])
print(aa[1][0]) | [
"silphire@gmail.com"
] | silphire@gmail.com |
5168e287ce1a66d290ca6ff02ae86417f29d2ca6 | 83179c14ae81a2ed0733812195747340c9ef0555 | /AtCoder_Ekiden.py | 59fb843abffe8bac5d91b811d991102ee91302b3 | [] | no_license | susami-jpg/atcoder_solved_probrem | 20f90ba2e3238c6857e370ed04a8407271ccc36f | 741a4acd79f637d6794c4dbcc2cad1c601b749fc | refs/heads/master | 2023-07-21T12:38:27.460309 | 2021-08-29T10:26:31 | 2021-08-29T10:26:31 | 375,561,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 8 19:35:10 2021
@author: kazuk
"""
from itertools import permutations
n = int(input())
a = []
for _ in range(n):
a.append(list(map(int, input().split())))
m = int(input())
xy = [[] for _ in range(n)]
for _ in range(m):
x, y = map(int, input().spli... | [
"kazuki_susami@icloud.com"
] | kazuki_susami@icloud.com |
899b3691e149cc341783fa7e1bc9331b1eaf9c75 | cccfb7be281ca89f8682c144eac0d5d5559b2deb | /tools/android/modularization/gn/json_gn_editor.py | dc5adaecb6c3b2409257d8821eceb8d124b50e4c | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"MPL-1.1",
"APSL-2.0",
"MIT",
"Zlib",
"GPL-2.0-only",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | SREERAGI18/chromium | 172b23d07568a4e3873983bf49b37adc92453dd0 | fd8a8914ca0183f0add65ae55f04e287543c7d4a | refs/heads/master | 2023-08-27T17:45:48.928019 | 2021-11-11T22:24:28 | 2021-11-11T22:24:28 | 428,659,250 | 1 | 0 | BSD-3-Clause | 2021-11-16T13:08:14 | 2021-11-16T13:08:14 | null | UTF-8 | Python | false | false | 6,073 | py | # Lint as: python3
# Copyright 2021 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.
'''Helper script to use GN's JSON interface to make changes.'''
from __future__ import annotations
import copy
import json
import os
impo... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
f49ce5f22a7b954ae2ebf8f949ca842a6b4828af | fc29ccdcf9983a54ae2bbcba3c994a77282ae52e | /Leetcode/126-bi-bfs.py | a6a53072d5897f01ef1d52b887d02adc5b5859d8 | [] | 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 | 2,451 | py | class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
if endWord not in wordList:
return []
wordList = set(wordList)
n = len(beginWord)
found, swapped = False, False
start_q, end_q= {beginWord}, {endWord}
... | [
"lchen.msc2019@ivey.ca"
] | lchen.msc2019@ivey.ca |
774c28cbfbf27c1d3a5056078b576032b4f61e6e | cf6a50732d708a3a3db0f297b73cb6f449a00b44 | /Practice3_Strings/print_dash_repeat.py | e92912247064cf37b715920f173179260de4f370 | [] | no_license | subash319/PythonDepth | 9fe3920f4b0a25be02a9abbeeb60976853ab812e | 0de840b7776009e8e4362d059af14afaac6a8879 | refs/heads/master | 2022-11-16T03:03:56.874422 | 2020-07-17T01:19:39 | 2020-07-17T01:19:39 | 266,921,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # 10. Write a statement to print a line that contains 80 dashes.
#
# 11. Write a statement to print 5 blank lines. ('\n' is the newline character)
#
# 12. Write a statement to find reverse of an integer n.
print('-'*80)
print('\n'*5)
name = 123456
print(int(str(name)[::-1])) | [
"subas319@gmail.com"
] | subas319@gmail.com |
77337eb4bd169f984ed2e636e96fa511705aa085 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /unreleased/azure-mgmt-servicebus/azure/mgmt/servicebus/models/topic_resource_paged.py | ca05a049e311f5cf3a647a84e97d36624d0daabb | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 894 | 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.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
7e6959c452b06556b9ee52827707d8669f512294 | 5a7375bdcd7fba344d9d8e424c42e4ff6e58e5cd | /00_algo_prob/1436_숌.py | c969f184960a8d0824a736136e587a1f5367816d | [] | no_license | jhee514/Algorithms | 1d9d9f8bf11b957393ad1a169fa1a61f86d77da5 | 0ebed8f99a63eae2f9122033ab4e13b2b499fb52 | refs/heads/master | 2021-07-21T01:33:22.838431 | 2020-10-28T15:21:19 | 2020-10-28T15:21:19 | 226,996,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | n = int(input())
six = [0]*10000
m = 666
cnt = 0
while cnt < n:
if '666' in str(m):
six[cnt] = m
cnt += 1
m += 1
print(six[n-1])
| [
"514kim@gmail.com"
] | 514kim@gmail.com |
e2bb73722ebe7308a3b7fd4e248e5fc4ea32af4a | 0e35f20cc68c33b97284e1cff3c143563ffa6a9f | /batchapps/job.py | e97a3123b3e733384241e274a4241896f56b8542 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Azure/azure-batch-apps-python | c0dbf36d7520dd9943249469aa990483a11374ae | 10ddf082b992e2d45f18239ccf469d3dbd47d2d6 | refs/heads/master | 2023-09-06T09:09:44.626173 | 2023-03-28T16:48:29 | 2023-03-28T16:48:29 | 25,835,860 | 17 | 9 | NOASSERTION | 2023-03-28T16:48:31 | 2014-10-27T19:41:38 | Python | UTF-8 | Python | false | false | 43,480 | py | #-------------------------------------------------------------------------
# The Azure Batch Apps Python Client
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated docu... | [
"antisch@microsoft.com"
] | antisch@microsoft.com |
459003486b20da034a0295bcb46853352c092adb | 05243216d13fca0db96ffd5b27b264bfe22e6e54 | /example/test/core/material/illumination/phong/unit.py | ca953cd2572017272eed30196050ecd88df96743 | [
"MIT-0"
] | permissive | RaphaelK12/IceRay | 6c843fb1ed4951b721ddf6c4074c6ba03a2a82e4 | fdc013b7afe84127ba8972ca187b89668878e92a | refs/heads/master | 2022-11-24T23:55:10.151494 | 2020-07-16T19:00:22 | 2020-08-04T14:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | import IceRayCpp
def make(
P_light,
P_albedo = IceRayCpp.GraphTypeColorRGB().fill( 0.5 ),
P_specular = IceRayCpp.GraphTypeColorRGB().load( 1.0, 1.0, 1.0 ),
P_shines = IceRayCpp.GraphTypeColorRGB().load( 8, 16, 32 )
):
surface = IceRayCpp.MaterialSurface()
cargo = {}
carg... | [
"dmilos@gmail.com"
] | dmilos@gmail.com |
05bed7ece253d4fa77af88a01eeccbb14f1a5ed8 | b677894966f2ae2d0585a31f163a362e41a3eae0 | /ns3/ns-3.26/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Tools/c.py | e3e766531b33e200404681f66fbb3c4073f7bab5 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"GPL-2.0-only"
] | permissive | cyliustack/clusim | 667a9eef2e1ea8dad1511fd405f3191d150a04a8 | cbedcf671ba19fded26e4776c0e068f81f068dfd | refs/heads/master | 2022-10-06T20:14:43.052930 | 2022-10-01T19:42:19 | 2022-10-01T19:42:19 | 99,692,344 | 7 | 3 | Apache-2.0 | 2018-07-04T10:09:24 | 2017-08-08T12:51:33 | Python | UTF-8 | Python | false | false | 1,145 | py | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
from waflib import TaskGen,Task
from waflib.Tools import c_preproc
from waflib.Tools.ccroot import link_task,stlink_task
@TaskGen.extension('.c')
def c_hook(self,node):
if not self.env.CC and self.e... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.