blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
a88c325b9283e08c350f9e2d585d2e6bef8876f6 | 92a6b3dfbaa5ee932b7ecebcb5dad66c878163d5 | /tensorflow_all_code/RNN_tf.py | 8eeb0d3d2689379c878b7c8e11d7ec0b218c318c | [] | no_license | Color4/2017_code_updata_to_use | c99e9cf409904531813e69e5106b4650a1863979 | a531d2b61d6984b4101af68bf1e54783d5e0843b | refs/heads/master | 2020-03-31T20:14:34.366303 | 2018-10-08T04:58:10 | 2018-10-08T04:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
# set random seed for comparing the two result calculations
tf.set_random_seed(1)
# this is data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
# hyperparameters
lr = 0.001
training_iters = 100000
batch_size = 128
n_in... | [
"zhangp@origimed.com"
] | zhangp@origimed.com |
4e6fc669eee1d908cb8b58702dd9991fae0ad964 | 857fc21a40aa32d2a57637de1c723e4ab51062ff | /FishCDailyQuestion/ex001-010/Python3_008/008_05.py | 3d4903f05506c73039c6cca6466ba4b87575d105 | [
"MIT"
] | permissive | YorkFish/git_study | efa0149f94623d685e005d58dbaef405ab91d541 | 6e023244daaa22e12b24e632e76a13e5066f2947 | refs/heads/master | 2021-06-21T18:46:50.906441 | 2020-12-25T14:04:04 | 2020-12-25T14:04:04 | 171,432,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/usr/bin/evn python3
# coding:utf-8
from math import sqrt
def is_prime_num(num):
for i in range(2, int(sqrt(num))+1):
if num % i == 0:
return False # 非素数,返回 False
return True # 是素数,返回 True
count = 0
for i in range(100, 201):
if is_prime_num(i):
print(i, end=' ')
c... | [
"18258788231@163.com"
] | 18258788231@163.com |
bf568aeeb84e2762929c38c271b9b41462240c12 | 95c6d7e2c5d3b9068d252214662a6980a53590fa | /python3/91.decode-ways.295655288.ac.py | 180810c9ae3f2ef1969889aaf2ba22eb92ca7b85 | [
"MIT"
] | permissive | Diego-Zulu/leetcode_answers | ec0f944b776c3eb5deb7897565d8609bf879af98 | ad435df1bd95fb2c6e17d2d9ff349282c98ee0f4 | refs/heads/master | 2022-07-13T02:35:51.202284 | 2020-05-17T16:00:34 | 2020-05-17T16:00:34 | 264,072,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | #
# @lc app=leetcode id=91 lang=python3
#
# [91] Decode Ways
#
# https://leetcode.com/problems/decode-ways/description/
#
# algorithms
# Medium (24.05%)
# Likes: 2368
# Dislikes: 2594
# Total Accepted: 372.5K
# Total Submissions: 1.5M
# Testcase Example: '"12"'
#
# A message containing letters from A-Z is being ... | [
"diego_i_zuluaga@outlook.com"
] | diego_i_zuluaga@outlook.com |
94bca3917e46b8385cb1f7c41ec664000db6526a | 8163d8f03aea22cb4fa1e60d809781049fff4bb4 | /authentication/first/urls.py | 61dc1e8b76e2fda024057ad534b7211c76f2c068 | [] | no_license | shubham454/Django-Devlopment | 694b973d31a82d2ded11f95138bd766130d7d3c9 | 43a2c3b98dbe9f582f2394fcfb3beb133c37b145 | refs/heads/master | 2022-12-04T14:34:05.093402 | 2020-08-13T18:35:33 | 2020-08-13T18:35:33 | 287,353,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.urls import path
from first import views
urlpatterns=[
path('register/',views.user_register),
path('empregister/',views.emp_register),
path('login/',views.authenticate_user),
path('emplogin/',views.auth_employee),
]
| [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
73652d720da020085a5a118ddeb2a9f019d3d8e7 | 35bb910c187b6e846e01dc9d955d538515d7a457 | /insta/settings.py | d9979e37e1103ef8cdff1e9ed81c259154673a67 | [
"MIT"
] | permissive | Kihara-tony/Instagram | 26a2703a38348bbc86956f76ffc22e73b6789350 | 467a9aded66480878d5a68df77079eb9dda5fc3a | refs/heads/master | 2022-12-21T14:37:11.804045 | 2019-08-07T10:11:41 | 2019-08-07T10:11:41 | 198,766,540 | 0 | 0 | null | 2022-12-08T05:56:51 | 2019-07-25T05:55:24 | Python | UTF-8 | Python | false | false | 4,648 | py | """
Django settings for insta project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
imp... | [
"tonykiharatonkin@gmail.com"
] | tonykiharatonkin@gmail.com |
5eefc06dcabed4d3f462bff1e48cc9e75c5dea17 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2540/60623/314123.py | 70e32ad367cecf06dc9874bfa2a43185dad75e42 | [] | 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 | 275 | py | a=input().split()
size=int(a[0])
l=[]
for i in range(size):
t=input()
l.append(t)
if l==['1 5 2', '13 14 1', '5 8 3']:
print(6)
elif l==['1 5 2', '13 14 1', '5 8 3', '8 14 2', '14 15 1', '9 12 1', '12 15 2', '4 6 1']:
print(13)
print(a)
else:
print(l) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
fdbda6d04fd02cf877fbe54da06b57634d32d4dc | ca8b840405601e4cde66ec9b98854f829f1bdd5c | /homeschool/notifications/models.py | 350e9ee2b13c95a5545b605b5238046ce510de76 | [
"MIT"
] | permissive | mblayman/homeschool | 5689f02fb4ef30286145d48688bd780f00bc0fd6 | ebc4ae4812d4128e5e79d0885767c8620f7b1c6a | refs/heads/main | 2023-08-07T19:24:48.367045 | 2023-08-03T03:22:00 | 2023-08-03T03:22:00 | 219,647,036 | 219 | 58 | MIT | 2023-09-11T22:39:48 | 2019-11-05T03:10:35 | Python | UTF-8 | Python | false | false | 1,125 | py | from django.conf import settings
from django.db import models
class Announcement(models.Model):
"""For making product announcements"""
class AnnouncementStatus(models.IntegerChoices):
PENDING = 1
ANNOUNCED = 2
status = models.IntegerField(
choices=AnnouncementStatus.choices, defa... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
43f85fe0f5bf275a7d3a3a8d6ddf0c6cc0344536 | 92af0d7e1d0c6b17e80ee249bb133d8e1f1c7852 | /ABC121/B.py | 31e914a4e15b023409ca82797aff7dfcf3094e44 | [] | no_license | ohshige15/AtCoder | 6157089f4672d8497789db02db3bfce334ec0152 | c0d1e979631d9df62e70a2b1066bc670fccae1ec | refs/heads/master | 2020-04-23T03:25:43.325538 | 2019-09-19T11:18:57 | 2019-09-19T11:18:57 | 170,878,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | N, M, C = map(int, input().split())
B = list(map(int, input().split()))
As = [list(map(int, input().split())) for _ in range(N)]
num = 0
for A in As:
s = sum([a * b for a, b in zip(A, B)]) + C
if s > 0:
num += 1
print(num)
| [
"satoshi.o.xxx@gmail.com"
] | satoshi.o.xxx@gmail.com |
a9d1bab3a8f173b71660fa46ef198e658cd2e779 | 0eb599c3bbfa6e5b31516913b88cc9db3a1311ce | /ABC_6q/abc135c.py | 6c541b1523549d5e47917bfe2e2d6882b3cce0a0 | [] | no_license | Linus-MK/AtCoder | 5b84dc88c2d2773d0f97ed18265d303290da7879 | a587e89a9e0c2ab4d36b09176bcc95e901e14326 | refs/heads/master | 2022-11-25T05:37:12.148722 | 2022-11-17T16:04:10 | 2022-11-17T16:04:10 | 169,840,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | n = int(input())
aa = list(map(int, input().split()))
bb = list(map(int, input().split()))
ans = 0
for i in range(n):
t1 = min(aa[i], bb[i])
aa[i] -= t1
bb[i] -= t1
ans += t1
t2 = min(aa[i+1], bb[i])
aa[i+1] -= t2
bb[i] -= t2
ans += t2
print(ans) | [
"13600386+Linus-MK@users.noreply.github.com"
] | 13600386+Linus-MK@users.noreply.github.com |
7754cb3618149b39bbd1c1edd8ea3e5ed1bd50ee | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /Codeforces/CR587/probA.py | 1c79df83bc8b76670a7399151e0f6041c75611af | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | N = int(input())
S = list(input())
k = N//2
ans = 0
T = ''
for i in range(k):
if S[2*i] == S[2*i+1]:
ans += 1
T += 'ab'
else:
T += S[2*i] + S[2*i+1]
print(ans)
print(T) | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
8adccaa959d9bda69938171f8b0fe0efe9a1c79c | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/brennivin/nicenum.py | cbc43e1f64c190fcf3b37e8cc35fa597c43b9801 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,832 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\brennivin\nicenum.py
import math as _math
def format(num, precision):
accpow = _math.floor(_math.log10(precision))
if num < 0:
digits = int(_math.fabs(num / pow(10, accpow) - 0.5))
else:
dig... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
545fd656f87d827ca3c51ee9147fd42fe798d8ac | 8ce645a48278740002a4226fdb7209c214c2b182 | /Internet/Stack+Queues+Heaps/queue.py | 3edbbcb31915f23b570df5afb566bd0a6515f4bd | [] | no_license | mohammedjasam/Coding-Interview-Practice | 52add41c419ef6d985c026c266a047e17b062102 | 485f99dc52c6a90b1ed961f2ec5da4aac6a9e998 | refs/heads/master | 2021-08-19T07:21:09.452228 | 2017-11-25T05:49:23 | 2017-11-25T05:49:23 | 106,201,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | class queue:
q = []
def lenq(self):
return len(self.q)
def enq(self, a):
self.q.append(a)
def deq(self):
if self.lenq() >= 1:
x = self.q[0]
del self.q[0]
return x
else:
print("No more elements")
q = queue()
print(q.lenq(... | [
"mnqnd@mst.edu"
] | mnqnd@mst.edu |
f6a2fe57511ccd88624b4d8fa9fc5b93e14ee86d | 8537ecfe2a23cfee7c9f86e2318501f745078d67 | /Practise_stuff/loops/o_for_loop_with_range.py | 60de1e1223784b9a4d562620b96996b23056ba79 | [] | no_license | oolsson/oo_eclipse | 91d33501d9ed6c6b3c51bb22b635eb75da88e4e1 | 1828866bc4e1f67b279c5a037e4a6a4439ddb090 | refs/heads/master | 2021-01-01T20:17:12.644890 | 2015-11-30T09:49:41 | 2015-11-30T09:49:41 | 23,485,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | '''
Created on Dec 25, 2011
@author: oo
'''
for i in range(-3,3):
if i == -1:
print(i, 'pythons')
elif i < 3:
print(i, 'pyts')
| [
"o.h.olsson@gmail.com"
] | o.h.olsson@gmail.com |
d55e6566299c8b068f8c8e99fffe69de82c6138b | 487a06977d1bebe81ed48ebc9d05b71ae7ecaa2e | /scripts/ClusterMarkerGraphEdgeOrientedReads.py | 93d95b2f81627c0f5687a979e1d758f4ce34a941 | [
"BSD-3-Clause-Open-MPI",
"MIT",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | rlorigro/shasta | c0da406bdb84f3ad77115095f4a151d8b21db2cc | 0a8b4439f5ce2e134a94da3ee6376b41fbf44a1c | refs/heads/master | 2022-05-06T18:21:51.163415 | 2022-04-07T18:53:51 | 2022-04-07T18:53:51 | 157,905,061 | 2 | 2 | MIT | 2018-11-16T18:17:04 | 2018-11-16T18:17:04 | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/python3
import shasta
import GetConfig
import argparse
parser = argparse.ArgumentParser(
description='Cluster the oriented reads of a marker graph edge based on their sequence.')
parser.add_argument('edgeId', type=int)
parser.add_argument('errorRateThreshold', type=float)
arguments = parser.parse_args(... | [
"paoloczi@users.noreply.github.com"
] | paoloczi@users.noreply.github.com |
a474bc65a8ef50fb90d5eb3ed8327d78ce3af361 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /2nx4JCytABfczdYGt_11.py | d83c10a980dbfd2be15ec0ff3414bd288a3c70b2 | [] | 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 | 560 | py |
def conjugate(verb, pronoun):
def get_pronoun(num):
prodict = {1 : "Io",2 : "Tu" ,3 : "Egli" ,4 : "Noi",5 : "Voi",6 : "Essi"}
return prodict.get(num)
def get_suffix(num):
sufdict = {1 : "o",2 : "i" ,3 : "a" ,4 : "iamo",5 : "ate",6 : "ano"}
return sufdict.get(num)
body = verb[:-3]
if body[-1] ==... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
658f30ab74debb8c2cc6b7c653f501c83e52939b | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn12 - krozisca/M-17065-2465.py | d4d1e45dd5aa6adb1ef0f30207adbfcdfaa9956e | [] | 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 | 2,234 | py | def preberi(ime_datoteke):
krozisca = {}
with open(ime_datoteke, 'r') as datoteka:
for index, vrstica in enumerate(datoteka.readlines()):
index += 1
elementi = [int(element) for element in vrstica.strip().split(' ')]
krozisca[index] = elementi
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
21b4bbfcffb75194adb2534b39237ab694677e35 | 4855a73f552c79f9123990a66b4fd29f829cd07d | /JZOffer/JZOffer32_3.py | 33bcca9bfc0927d1063495082b696ebf33aec0d8 | [] | no_license | EmlynQuan/Programming-Python | e2d47de71c4d5981b79bba3b4bf9ac9cf7115484 | 11bbc8aa58b5f16d7cfadd30c7eea241e6dd7bdd | refs/heads/master | 2023-06-24T06:50:27.255834 | 2021-07-29T15:47:50 | 2021-07-29T15:47:50 | 362,500,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # coding=utf-8
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def levelOrder(root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
if root == None:
return []
ret = [[]]
queue = [root]
counter, ne... | [
"2569627904@qq.com"
] | 2569627904@qq.com |
c477c1f39eaf74b3c12478e27e37a07f77f1b5aa | 60a1405cd6343ab55c1c85f20c80e6f771f93dac | /main.py | 69ffa74a3a18eef091da0e74f494f6a1a0e487f6 | [] | no_license | handwriter/pra-pra-chrest | eb27c76c8b6d400322cb3d0b2d1c8224b32b5207 | 7c2a24cd8118c07a8ff429080b05f5957c8f2322 | refs/heads/master | 2021-04-05T00:26:48.458466 | 2020-03-19T13:10:38 | 2020-03-19T13:10:38 | 248,506,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | import pygame
a = input('Первым ходит (x, o): ')
pygame.init()
size = width, height = 600, 800
screen = pygame.display.set_mode(size)
running = True
screen.fill((0, 0, 0))
class Board:
def __init__(self, width, height, rect, pos, first_step):
self.width = width
self.step = first_st... | [
"62296664+handwriter@users.noreply.github.com"
] | 62296664+handwriter@users.noreply.github.com |
4113a3572bd4cdd6d9c8f87caae5ad57c85beffb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2631/60793/277750.py | 68e6abf387470e9d3b3d79c70bb15d0cd520ef57 | [] | 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 | 1,274 | py | def max_nums(ls0: list) -> list:
max_num = -999
result1 = []
for j in range(0, len(ls0)):
if ls0[j] > max_num:
result1 = [j]
max_num = ls0[j]
elif ls0[j] == max_num:
result1.append(j)
return result1
def diff_elem_num(ls1: list, ls2: list) -> int:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d95d2f3fd951afc502cb17966a742defc8909dec | 9a8ac4e1f1990cbd5cb7d76fc6768b26280c124a | /keras/layers/preprocessing/benchmarks/bucketized_column_dense_benchmark.py | 84f7927e18b060cc2d62e5190bdfecddb8509957 | [
"Apache-2.0"
] | permissive | harishsg99/keras | 638123cee88309bdc0da8e297cf63a401db2dd35 | 323567d2ffa766b9a2515d22f04519db1cb047dd | refs/heads/master | 2023-07-15T01:47:44.919895 | 2021-08-24T08:43:39 | 2021-08-24T08:43:39 | 399,004,570 | 0 | 0 | NOASSERTION | 2021-08-23T07:01:27 | 2021-08-23T07:01:05 | null | UTF-8 | Python | false | false | 2,761 | py | # Copyright 2020 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 |
58a027f594699eb8884c95cd67ce81203763ba4f | f4885370e8350411d2bdf6639b2df5cd6f39c77b | /project_name/settings/base.py | e3c0c600d72cc561b51e98a3f6ac1c03942cee08 | [
"MIT"
] | permissive | vituocgia/django-project-template | 1c9b3f8ed6f64a4a2341e7da1fbf7becc8841333 | 31f549b49d9f97725eb2c3496004d4cb27a5722a | refs/heads/master | 2022-12-08T21:10:08.626926 | 2018-04-06T06:44:56 | 2018-04-06T06:44:56 | 128,358,450 | 0 | 0 | MIT | 2022-12-07T23:45:40 | 2018-04-06T06:44:31 | Python | UTF-8 | Python | false | false | 4,926 | py | """
Project main settings file. These settings are common to the project
if you need to override something do it in local.pt
"""
from sys import path
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# PATHS
# Path containing the django project
BASE_DIR = os.path.dirname(os.path.dirna... | [
"dotiendiep@gmail.com"
] | dotiendiep@gmail.com |
58f5886c42506ec024b465f7a61fb89838ec455a | 97181bd72f65cb348a5331858d0e5e6708d1ffd9 | /__main__.py | cf417f63b1ff3534f234316ab6b61f0ea1fb9bd7 | [] | no_license | wangyibin/TDGP | 965adeb1d747b949e4e21080dd99408cdb84ba82 | 0b137d7b5fe4d26dac89e91f43583c69b943b1f8 | refs/heads/master | 2022-10-04T05:40:06.089546 | 2022-09-05T07:20:35 | 2022-09-05T07:20:35 | 187,630,451 | 4 | 5 | null | 2021-04-16T07:13:39 | 2019-05-20T11:49:48 | Python | UTF-8 | Python | false | false | 199 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
TDGP, the libraries of Three Dimension Genome Pipeline.
"""
from .apps.base import dmain
if __name__ == "__main__":
dmain(__file__, 'module')
| [
"738339463@qq.com"
] | 738339463@qq.com |
d73fdb7704ec511b66f7511b66176a6f2206a55c | 809441b9755cb9bdb723f06aa58318e121c659ff | /Alpha/Alpha/hotel.py | 1011912c5f50aaab4e369edad4b98e89c73462a7 | [] | no_license | Jia-Jingnan/AwesomePython | c99898bb2a79ad759cee41412654b46a4da8cca6 | 96f9f0df702086fb37467cf24be955c875be9b34 | refs/heads/main | 2023-06-14T04:40:38.080297 | 2021-07-13T10:07:30 | 2021-07-13T10:07:30 | 377,259,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # coding=UTF-8
# while控制循环
# 语法:while 条件表达式:
# 代码块
# 执行规律:先判断while 后面的条件表达式是否成立
# 如果为true 执行代码块,执行完毕之后,继续判断,如果为true,执行代码块
# 否则不进入代码块
# 条件,空数据为false,非空数据为true
i = 0
sum = 0
while i < 101:
sum += i
i += 1
print(sum)
# while与if搭配使用, break ,contiue
| [
"875480307@qq.com"
] | 875480307@qq.com |
3291380442f55479f6a5b0ec0e118935a7b89738 | da8ed0e5044261998a1e70df99041b09edea872a | /enlp/lexicon/liu.py | 7d7f5642b928edb3ee73a9f378638a1fb7a24417 | [] | no_license | pengyuange/opminreplicability | f18a59828566c942fc61ed4b5f9e375060ce4da1 | 622693f7fb3daa01b1062f2fef61af2b66b64e89 | refs/heads/master | 2021-06-14T20:08:28.161093 | 2017-03-23T08:14:43 | 2017-03-23T08:14:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from os import path
from ..settings import CORPORA_PATH
OPINION_LEXICON_PATH = path.join(CORPORA_PATH, 'lexicon')
class LexiconWord(object):
def __init__(self, string, orientation):
self.string = string
self.orientation = orientation
class OpinionLexic... | [
"edison_marrese@hotmail.com"
] | edison_marrese@hotmail.com |
562b07ce9379c8f49a542f2a30dea5c1db6410bd | c632e6ba36598f34e6336d1cb5e2411c1e571da8 | /r3ndom-67k/grader.py | 05a072289ebf64785cbce548d7383ae2bc35e719 | [] | no_license | adbforlife/easyctf-2017-problems | 0f7e229d884d6d66c3d0ae1226e2e2e1826d4c17 | c19872a88080845fa4c5ac51a45ddaffbf40690b | refs/heads/master | 2021-01-22T23:34:09.525637 | 2017-03-21T03:30:53 | 2017-03-21T03:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | def grade(random, key):
if key.find("double_you_tee_eff?so_mAny_b1ns") != -1:
return True, "Correct!"
return False, "Nope." | [
"failed.down@gmail.com"
] | failed.down@gmail.com |
1e9c05760576656dcc78f08f3609ac6cbf315b07 | 67553d46a257631810f394908013b82c337e0fbd | /goat/chapter05/5.3/local_function_test.py | 9ff50bc021f24988d93e61266964d11d847d7bbe | [] | no_license | bopopescu/goat-python | 3f9d79eb1a9c2733345d699c98d82f91968ca5fa | c139488e2b5286033954df50ae1ca834144446f5 | refs/heads/master | 2022-11-21T11:25:27.921210 | 2020-03-06T01:02:57 | 2020-03-06T01:02:57 | 281,066,748 | 0 | 0 | null | 2020-07-20T09:00:08 | 2020-07-20T09:00:08 | null | UTF-8 | Python | false | false | 761 | py | # coding: utf-8
# 定义函数,该函数会包含局部函数
vdef get_math_func(type, nn) :
# 定义一个计算平方的局部函数
def square(n) : # ①
return n * n
# 定义一个计算立方的局部函数
def cube(n) : # ②
return n * n * n
# 定义一个计算阶乘的局部函数
def factorial(n) : # ③
result = 1
for index in range(2, n + 1) :
r... | [
"34465021+jwfl724168@users.noreply.github.com"
] | 34465021+jwfl724168@users.noreply.github.com |
0d22b2e755379b5a6a7af98abbbd36d0831ba977 | f282599a4e08c16ebf873963cdb9fd967bca9f48 | /Events/Eventos/models/eventos.py | 20d774eddcdefe9beaeeaa071b6bf60c6b4c4c89 | [] | no_license | EventsAPI/API | 1086ae3bf4dc42c9e84f493d1f121ee7ee53f1c2 | e3fb66e9a90e8866d5e4d9ebec2bceba287acba8 | refs/heads/recu | 2021-01-14T02:38:31.995301 | 2020-06-12T04:39:46 | 2020-06-12T04:39:46 | 242,570,820 | 0 | 2 | null | 2020-06-18T01:12:43 | 2020-02-23T18:41:07 | Python | UTF-8 | Python | false | false | 1,016 | py | from django.db import models
class Eventos (models.Model):
ACTIVO = 1
INACTIVO = 3
ESTADO = (
(ACTIVO, 'Evento activo'),
(INACTIVO, 'Evento inactivo')
)
afiche = models.ImageField(
'afiche del evento',
upload_to='eventos/afiche/',
blank=True,
... | [
"luisrijhn09@gmail.com"
] | luisrijhn09@gmail.com |
abfdf93fe2a27fa23b73adeb7d02ce5e2fe48279 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_whitings.py | 6cba1b6244e6149c73b384526922ced8233d744c | [
"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 | 226 | py |
#calss header
class _WHITINGS():
def __init__(self,):
self.name = "WHITINGS"
self.definitions = whiting
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['whiting']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c0bc69057e8397b598dc35e5c1c79950cdb36fe3 | 67be8d282abd8d7abb92f8227a09cb636f4e4cad | /DM_RFGAP_4/From ~2/RFGap.py | d26a17802dd9f29ee5e0be274f1ce778a1cf8d89 | [] | no_license | iABC2XYZ/abc | 3b6b1e9fc7c9a472aa6fc8c0bb71188061fb89e0 | 13386cf2079113127a6f44d53beb9153b252fe9a | refs/heads/master | 2020-12-30T11:03:07.611408 | 2017-12-04T04:42:01 | 2017-12-04T04:42:01 | 98,806,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 31 22:10:38 2017
Author: Peiyong Jiang : jiangpeiyong@impcas.ac.cn
Function:
RFGap
__________________________________________________
K,dE=RFGap()
"""
from InputBeam import qParticle,massMeV,mParticle
from Constants import pi
from BetaG... | [
"jiangpeiyong10@mails.ucas.ac.cn"
] | jiangpeiyong10@mails.ucas.ac.cn |
fa772a5697d61459fa8eba580f300a7cdadf6f8c | f47863b3a595cbe7ec1c02040e7214481e4f078a | /plugins/scan/xuezi_ceping/2378.py | c0ac3aab5fe7d9c800526d9e27d616ccf9f83c87 | [] | no_license | gobiggo/0bscan | fe020b8f6f325292bda2b1fec25e3c49a431f373 | 281cf7c5c2181907e6863adde27bd3977b4a3474 | refs/heads/master | 2020-04-10T20:33:55.008835 | 2018-11-17T10:05:41 | 2018-11-17T10:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!usr/bin/env python
# *-* coding:utf-8 *-*
'''
name: 学子科技诊断测评系统多处未授权访问
author: yichin
refer: http://www.wooyun.org/bugs/wooyun-2010-0138025
description:
http://**.**.**.**/ceping/HouAdmin/GLComUser.aspx
http://**.**.**.**/ceping/HouAdmin/GL_Shitileibie.aspx
http://**.**.**.**/ceping/HouAdmin/GL_PingFen.as... | [
"zer0i3@aliyun.com"
] | zer0i3@aliyun.com |
c1a8d0bc798b077ab5ca202ef635b359ae12f66e | 09a86cc4041a7104f4c57b3e6f83537fa7928f77 | /week2/demo/demo/settings.py | b53744a53c99bd8f07f6a9f696353486182a3171 | [] | no_license | bobur554396/BFDjango2018FALL | 8a13d57e2937942d3f6a0d307ec443da44b368c8 | 7bbbaf6bed38f9b3844e9480991939a546e71a5e | refs/heads/master | 2021-08-20T09:48:28.694021 | 2018-11-19T03:45:17 | 2018-11-19T03:45:17 | 147,153,107 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for demo project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
431a231980ad6609ba0fe68ea6908d3d14aeabc4 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/ilenok/c.py | c354f4f042d63d4762c7bb365b5156f98f9b6f49 | [] | 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 | 753 | py | from math import *
def to_base(s, b):
res = 0L
for c in s:
res = res * b + int(c)
return res
inf = open("c.in", 'r')
outf = open("c.out", 'w')
t = int(inf.readline())
for tc in xrange(0, t):
outf.write("Case #" + str(tc + 1) + ":\n")
n, j = map(int, inf.readline().split())
min_k = 1L
for i in xrange(1... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ba05bd06d916d8e2a71c810c5fd4c457edaf367f | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2017_v9/jetpt1/cuts.py | b81682cc2ee30ba4e5bbbc26778cface347caa93 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,052 | py | # cuts
supercut = ' mll>12 \
&& Lepton_pt[0]>25 \
&& Lepton_pt[1]>20 \
&& (nLepton>=2 && Alt$(Lepton_pt[2],0)<10) \
&& abs(Lepton_eta[0])<2.5 && abs(Lepton_eta[1])<2.5 \
&& ptll>30 \
&& PuppiMET_pt > 20 \
&& (Lepton_pdgId[0]*Lepton_pd... | [
"Susan.Dittmer@cern.ch"
] | Susan.Dittmer@cern.ch |
3c05512991b627cd332b7b6bea7378784c1dc73f | b0dd7779c225971e71ae12c1093dc75ed9889921 | /tools/build/v2/test/core_update_now.py | e067616d55e501c039eb782e5392fd9715514e6b | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | Python | false | false | 3,480 | py | #!/usr/bin/python
# Copyright 2011 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
import os
def basic():
# Basic test
t = BoostBuild.Tester(pass_toolset=0, pass_d0=... | [
"tvaneerd@rim.com"
] | tvaneerd@rim.com |
76cb6528bfd60957c4692b603dc01fa48af3dbe4 | 7490d63c07eaf24a4427dbb9154ad1a3faf97af3 | /experiments/paper/compare_inference.py | abbf9cca19c43435b8116fba88d0e92673792fe2 | [
"MIT"
] | permissive | wesselb/gpcm | 123913cc5e280d85f94437264d07bca98b2e4f7c | 03e176f35947df6966823d0966631b65c6c35632 | refs/heads/master | 2023-03-16T10:14:01.907453 | 2023-03-06T20:50:41 | 2023-03-06T20:50:41 | 231,431,643 | 6 | 1 | MIT | 2023-02-11T00:40:19 | 2020-01-02T17:48:35 | Python | UTF-8 | Python | false | false | 6,158 | py | import time
import lab as B
import matplotlib.pyplot as plt
import numpy as np
import wbml.out as out
from gpcm import GPCM
from gpcm.approx import _fit_mean_field_ca
from stheno import EQ, GP
from varz import minimise_l_bfgs_b
from wbml.experiment import WorkingDirectory
from wbml.plot import tweak, pdfcrop, tex
cl... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
351176faa16660daef4258e91d7540c49e70c6b0 | ec1fad1e16d24f51987acba26c1b4014cbed0e96 | /python/kfserving/kfserving/models/__init__.py | 7a65b966d202c056388eaa51b3848f83891ac062 | [
"Apache-2.0"
] | permissive | Jeffwan/kfserving | 4127b811fd9b778903c0c7572b0bc687e1997efd | 47a6303173dab27b157ca77c72d62b847d099d21 | refs/heads/master | 2020-06-05T03:06:11.606236 | 2019-10-06T01:47:10 | 2019-10-06T01:47:10 | 192,292,123 | 0 | 0 | Apache-2.0 | 2019-06-17T06:59:43 | 2019-06-17T06:59:41 | null | UTF-8 | Python | false | false | 2,510 | py | # Copyright 2019 kubeflow.org.
#
# 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 in writing,... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
94021aaba6947335a295564738b9ffd61a2f53d9 | 62e9fb33329fbefa89287e5bc343cb9c120306a1 | /spinoffs/oryx/oryx/core/primitive.py | b5ba7f1561ee5d70a54297d472cf9c2126b939ff | [
"Apache-2.0"
] | permissive | npfp/probability | 3c103d4b9d7a72d3d16eb79b1e4f648afbaca057 | 3911f4463cdcca6cc118633742430885fb0c88cb | refs/heads/master | 2022-05-01T14:23:40.504258 | 2022-04-07T20:08:45 | 2022-04-07T20:10:58 | 246,853,846 | 0 | 0 | Apache-2.0 | 2020-03-12T14:23:04 | 2020-03-12T14:23:03 | null | UTF-8 | Python | false | false | 8,156 | py | # Copyright 2020 The TensorFlow Probability 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 law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
76112989b1e3ea0102086052f6044fb614dc6d38 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /dp_transfer/train_linear_regression.py | 53e3b1a389643d8eee6b95c6c8019f80e55c946e | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 4,169 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
61144509481279b612118b5ce47f35b3e6ca3861 | ebcea394905df8222c257c8c6c469627a6e48095 | /PyQt5/object_detection/inference/detection_inference_test.py | 1ad6ced22917a6ed7c04c823e25db4b7f33db9ee | [] | no_license | valiok98/Python-Qt5-Tensorflow | 2773cfc2a0e569ed53cf3d90066885f17abe8c6a | e03ccc2884b687a36fbe47f5ff320837be3e217a | refs/heads/master | 2021-09-17T20:41:01.908602 | 2018-03-31T12:42:25 | 2018-03-31T12:42:25 | 103,644,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | # Copyright 2017 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... | [
"valentin1998v@gmail.com"
] | valentin1998v@gmail.com |
1b1a602444416e097bda781c0655907472a963b1 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/sympy-1.0-py27_0/lib/python2.7/site-packages/sympy/polys/tests/test_injections.py | 813496419bd1fae36eeae04c1be430bc1160bec2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,795 | py | """Tests for functions that inject symbols into the global namespace. """
from sympy.polys.rings import vring
from sympy.polys.fields import vfield
from sympy.polys.domains import QQ
from sympy.utilities.pytest import raises
# make r1 with call-depth = 1
def _make_r1():
return vring("r1", QQ)
# make r2 with cal... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
ef29a783d16001fbe2e8226d3186c5b64a230b69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_earshot.py | fe91558435b163a74713c80667be94ffc542a27c | [
"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 | 379 | py |
#calss header
class _EARSHOT():
def __init__(self,):
self.name = "EARSHOT"
self.definitions = [u'the range of distance within which it is possible to be heard or to hear what someone is saying: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
d... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
58f21a740f15d39082a8d7d16e4610aa63ba4cc7 | dfa1a1a263eab3ac8bbcb2a00297da7fc82bccfd | /src/binary-trees/construct-binary-tree-from-inorder-and-postorder-traversal-106.py | 0e1e4a420793a1b075765b7e97f623edfbc1a026 | [] | no_license | monpro/algorithm | 07e79e7a85ca9fe86fac0b3c740de2f2037f5e89 | a330e92191642e2965939a06b050ca84d4ed11a6 | refs/heads/master | 2021-07-01T03:49:59.040611 | 2020-08-25T12:36:54 | 2020-08-25T12:36:54 | 143,118,129 | 102 | 0 | null | 2020-05-31T04:22:46 | 2018-08-01T07:12:45 | Python | UTF-8 | Python | false | false | 593 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def buildTree(self, inorder, postorder):
if len(postorder) == 0 or len(inorder) == 0:
return None
root = TreeNode(postor... | [
"monproshen@gmail.com"
] | monproshen@gmail.com |
a1e42247ce5b1882b708cb4f047f51b1b0cfd949 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02384/s537454197.py | 60b9761d473b2cc18fa631763e5957a821cfd698 | [] | 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 | 455 | py | dice = list(map(int, input().split()))
mask = {
'N': (1, 5, 2, 3, 0, 4),
'R': (0, 2, 4, 1, 3, 5)
}
for i in range(int(input())):
a, b = map(int, input().split())
lim = 0
while dice[0] != a:
dice = [dice[x] for x in mask['N']]
lim += 1
if lim == 4:
dice = [d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5626ebdbbb653bb20f2ad740bd80158fa3825c51 | fec36e7493a78575cd0320bf31c5080649863a06 | /src/factories/token.py | 7cd41ca33d7a0182cec841b70b5aec1ac0d832fc | [] | no_license | teimurjan/eye8-backend | 6f44e830dd17dcac8b23acc3b66b9918357f643b | bf0a4c894a5b3770fada269d8b4d7d72367ab1ba | refs/heads/master | 2023-06-30T01:34:38.358903 | 2021-06-23T10:06:29 | 2021-06-23T10:06:29 | 273,144,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | import datetime
from time import mktime
from src.models.user import User
import jwt
from flask import current_app as app
ACCESS_TOKEN_TYPE = "access"
REFRESH_TOKEN_TYPE = "refresh"
SIGNUP_TOKEN_TYPE = "signup"
class TokenFactory:
@staticmethod
def create(type_, entity: User):
if type_ == ACCESS_TOKEN... | [
"teymurgg321@gmail.com"
] | teymurgg321@gmail.com |
880a15c6116fec6cb78383f8db229c3072312745 | 973ac85842b01e373c48d161bf46c7c7e0e50227 | /Game7/Dinosaur.py | 321631f4d62e36b16b386d5e643cb80eb14f905f | [
"MIT"
] | permissive | splin85/Games | b652a050b905a2922849df21ff1262f8dedba6f1 | 41ebdf73e5523be15830334afc12f013b1d60323 | refs/heads/master | 2020-03-28T12:38:45.987129 | 2018-09-11T10:21:39 | 2018-09-11T10:21:39 | 148,318,954 | 1 | 0 | MIT | 2018-09-11T13:09:02 | 2018-09-11T13:09:02 | null | UTF-8 | Python | false | false | 2,382 | py | # 恐龙类
# 作者: Charles
# 公众号: Charles的皮卡丘
import pygame
# 恐龙类
class Dinosaur(pygame.sprite.Sprite):
def __init__(self, WIDTH=640, HEIGHT=500):
pygame.sprite.Sprite.__init__(self)
self.HEIGHT = HEIGHT
self.WIDTH = WIDTH
# self.imgs = ['./images/dinosaur/wait.png', './images/dinosaur/afraid.png', './images/dinosa... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
4f388f9a9c5c04b2c1787f357d6152b73c4453bd | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_install_software_package.py | 0915141ea5b36d5dea5150ec7cee8e720c8075cf | [
"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 | 3,843 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage CheckPoint Firewall (c) 2019
#
# Ansible 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 op... | [
"sifang@cisco.com"
] | sifang@cisco.com |
7e89a5e217806afe04d4df51de9b49d367f57861 | c6320735f140944d2c282729c008a7cf7cf1e98f | /python/kfserving/test/test_kfservice_client.py | b7b00adb9905b96bd469e641d84e2015db767011 | [
"Apache-2.0"
] | permissive | gipster/kfserving | 66d2dffd8917ba9029ca2e96f199e1f56df6e41b | bbd3da47a708403fb2a203e28955d5454bc2a1d5 | refs/heads/master | 2020-06-10T18:43:57.148347 | 2019-08-19T00:24:03 | 2019-08-19T00:24:03 | 193,709,786 | 0 | 0 | Apache-2.0 | 2019-06-25T13:08:50 | 2019-06-25T13:08:49 | null | UTF-8 | Python | false | false | 2,375 | py | from unittest.mock import patch
from kubernetes import client
from kfserving import V1alpha1ModelSpec
from kfserving import V1alpha1TensorflowSpec
from kfserving import V1alpha1KFServiceSpec
from kfserving import V1alpha1KFService
from kfserving import KFServingClient
KFServing = KFServingClient()
mocked_unit_resul... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
82a7df668eaf63976f33483eb46502591f46c260 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/dynatrace/azure-mgmt-dynatrace/generated_samples/monitors_get_vm_host_payload_minimum_set_gen.py | 39a5661d05d48e768f83902ae1a29e032c2edf70 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,642 | 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 may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9fcd53a0c412aea97e8873c23190c021e703c4a1 | 99b784550a6d306147c022c8d829800b0fbb8c68 | /Part_1_Basics/Chapter_10_Files_Exceptions/exercise10_5.py | 4a2cdd918499a41bde1a4d0d9922b24ad1032df1 | [] | no_license | apuya/python_crash_course | 116d6598f656d8fed0b4184edbce8e996cd0f564 | 0b2e8a6e9849a198cfb251706500a919d6f51fe7 | refs/heads/main | 2023-06-03T22:41:03.203889 | 2021-06-16T04:07:28 | 2021-06-16T04:07:28 | 367,812,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Python Crash Course: A Hands-On, Project-Based Introduction To Programming
#
# Name: Mark Lester Apuya
# Date:
#
# Chapter 10: Files And Exceptions
#
# Exercise 10.5 Programming Poll:
# Write a while loop that asks people why they like programming. Each time someone enters a reason, add their reason to
# a file that... | [
"contact@mapuya.com"
] | contact@mapuya.com |
2989af1f699159e7ede03df5fc8d58c187d937ed | 6208ab5ea0de51e1350c99f59c9ae7538909ded6 | /website/migrations/0013_remove_resource_logo_filename.py | 2c469c5e4c50b595e097b6eb193ee7ac65264376 | [] | no_license | katur/gunsiano | 1bc4f3b262889e963c787a4c1be83d0ace4dad5b | 8c16a2670fbb02360042a40bed4ab9831acaee1e | refs/heads/master | 2020-12-25T17:36:05.242981 | 2016-08-16T23:19:31 | 2016-08-16T23:19:31 | 9,655,637 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-26 16:57
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0012_resource_logo'),
]
operations = [
migrations.RemoveField(
... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
9c541ffb7edbc82eece5d15a9edf4ffe6bb3c9d7 | 645050387b6d65986490045696a23b99484bfb07 | /week-11/mixins/serializers.py | 91fbcf1e2d78e6fbbe912db3aa46fe18c3587f36 | [] | no_license | ViktorBarzin/HackBulgaria-Python | 73fd36299afd3fcbf5601c4a932780252db90001 | 7bae4528ded8ca3a33bb12c2a67123cc621d8b8f | refs/heads/master | 2020-12-25T15:08:23.345972 | 2017-06-07T01:19:36 | 2017-06-07T01:19:36 | 67,701,776 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import json
import xml.etree.ElementTree as ET
class Jsonable(object):
serializable_types = (int, float, str, bool, None, list, tuple)
def to_json(self, indent=4):
data = self.__dict__
result = {'classname': type(self).__name__,
'data': {}}
for k, v in data.items():
... | [
"vbarzin@gmail.com"
] | vbarzin@gmail.com |
bb714875a5dc73f5966de83a6daf249563a1d1ba | d74abd04070f3397dbf08bd224afdc6540dfd2a5 | /word2vec/train_word2vec.py | 88ae5fd990e0cdc2a7219c9cf7be86009b90f9bb | [] | no_license | gombru/insFash | f92a447ffffbe717d1fcd35ae34c1fc1b6db7c6a | c557b4f45f4c63f8503020c83e73ac49465ce851 | refs/heads/master | 2021-08-30T00:58:21.957430 | 2017-12-15T12:55:13 | 2017-12-15T12:55:13 | 113,850,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | from nltk.tokenize import RegexpTokenizer
from stop_words import get_stop_words
import gensim
import string
import glob
import multiprocessing
import json
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
cores = multiprocessing.cpu_count()
finetune = False
if... | [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
0527698f2e6caa528a85711fe3e3393fc45be88c | d315d2f2f206a3071333fad5cdccb10532d5d44e | /LSTM/utils.py | f6aecfbccde49ae16257955299ad7c4ed4062cc6 | [] | no_license | cycle13/RadarEnhancement | 681bac291431b5b6b0a975de625064c5871ae1d0 | 7de4d89d122f2734d60ccdde62cdd8df5a1ecba5 | refs/heads/master | 2023-03-17T10:04:30.762745 | 2019-06-16T06:45:44 | 2019-06-16T06:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | import torch
import numpy as np
import torch.nn.functional as F
from torch.autograd import Variable
from numba import jit
from math import exp
def cal_stat(train, real):
train[train*255.<0.5]=0
real[real*255.<0.5]=0
@jit(nopython=True)
def loop(train, real):
bsize, tsize, _, h, w= train.shape
a=0;... | [
"chrimerss@gmail.com"
] | chrimerss@gmail.com |
53b307e6a1ed4f3071435f052c602170d89b0bad | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /bin/processURR.py | ef348d75630714922f8bdec59273c3fe6c1dbc77 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 5,036 | py | #! /usr/bin/env python3
# <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import numpy
import argparse
from fudge import GNDS_file
from fudge import GNDS_formatVersion as GN... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.