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
a6002b838c345fcf81971450b2d2349ee5589150
d6ff55dd9e2c9992b2db4c613cd5b8f18a6f5be1
/takeyourmeds/reminders/reminders_messages/views.py
c86f499691792b07c8052e2975178dbf97b957e0
[ "MIT" ]
permissive
RickIsWright/takeyourmeds-web
f2f8d6da7e2ad1adfe67cbebe0a20bc7c08f45eb
edf24188f26948902cfb69793b4d5aa3cf8b6dea
refs/heads/master
2023-05-08T20:34:58.640415
2016-02-07T10:50:55
2016-02-07T10:50:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,373
py
import datetime from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from .enums import StateEnum from .models import Message @csrf_exempt @require_POST def status_callback(reques...
[ "chris@chris-lamb.co.uk" ]
chris@chris-lamb.co.uk
84d64df5377f89c6129e1845a08475f98bba9834
e8199f1d424592affe19b50fd96a02815067d1b1
/Trees/114. Flatten Binary Tree to Linked List.py
c0b48b6ebddd9397ba740c2c767d12c38017c08f
[]
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
324
py
class Solution: def flatten(self, root) -> None: if not root: return self.flatten(root.left) self.flatten(root.right) tmp = root.right root.right = root.left root.left = None while root.right: root = root.right root.right = ...
[ "srajsonu02@gmail.com" ]
srajsonu02@gmail.com
e62f5aed9913a6893e12bc1c232e29e82e090b74
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/model/list_project_tags_response.py
a613ada4478b95c5198278565770aa8e70e54d72
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,055
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListProjectTagsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
eb686b7fd91f8a800ac24739cab4e201a963a750
4b94ea665c5423e6097b65ccaa6045bc0c84879f
/service_catalog/models/tower_server.py
cb7061a987ecc37859b758485b3bbb51c018e682
[ "Apache-2.0" ]
permissive
jeffkight/squest
65051af133584f02b76b9b3476a2e1edae7a3e85
fb5568af7aa174d34dfe1f24b4a2508d321e44ac
refs/heads/master
2023-04-26T17:41:00.642466
2021-05-19T16:24:28
2021-05-19T16:33:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
from django.db import models from towerlib import Tower class TowerServer(models.Model): name = models.CharField(max_length=100) host = models.CharField(max_length=200, unique=True) token = models.CharField(max_length=200) secure = models.BooleanField(default=True) ssl_verify = models.BooleanField...
[ "nico.marcq@gmail.com" ]
nico.marcq@gmail.com
bca88e88c8f3f3c0e45b8e2d5553a78f53445208
caaf56727714f8c03be38710bc7d0434c3ec5b11
/homeassistant/components/nexia/entity.py
7820ebb62165395095f1cd0c4e67e852db799e77
[ "Apache-2.0" ]
permissive
tchellomello/home-assistant
c8db86880619d7467901fd145f27e0f2f1a79acc
ed4ab403deaed9e8c95e0db728477fcb012bf4fa
refs/heads/dev
2023-01-27T23:48:17.550374
2020-09-18T01:18:55
2020-09-18T01:18:55
62,690,461
8
1
Apache-2.0
2023-01-13T06:02:03
2016-07-06T04:13:49
Python
UTF-8
Python
false
false
3,157
py
"""The nexia integration base entity.""" from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.update_coordinator import CoordinatorEntity from .const import ( ATTRIBUTION, DOMAIN, MANUFACTURER, SIGNAL_THERMOST...
[ "noreply@github.com" ]
tchellomello.noreply@github.com
babd17417d73f4e425c109124c145c5c4a8c31cf
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/StudentProblem/10.21.11.16/7/1569574648.py
22b71b371b1aff43c1caf4bf9829301a2e09cc0f
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
import functools import typing import string import random import pytest ## Lösung Teil 1. def divisors(n: int) -> list: m = n + 1 for i, j in range(m): if i % j == 0: list.append(i) ###################################################################### ## Lösung Teil 2. (Te...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
add59155a5083acfc89ed306683adfa443936eb5
4dd811c2595a990cb21327afe7a2dfd54ba9b52f
/Open-CV_Basics/contour_V2.py
2496a3a89b30c938309ed899350f63146a740774
[]
no_license
mitesh55/Deep-Learning
40842af8b8f1ea3c041fa4de2e76d068f554c1a4
0a7c0305edb027acfaad38e7abe52808260cede9
refs/heads/master
2023-07-25T14:31:14.285489
2021-09-09T13:46:31
2021-09-09T13:46:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,269
py
import cv2 import matplotlib.pyplot as plt import numpy as np #let's start with contours image = cv2.imread('Contour.png') imageCopy = image.copy() gray = cv2.cvtColor(image ,cv2.COLOR_BGR2GRAY) #find all the contours contours , hierarchy = cv2.findContours(gray , cv2.RETR_LIST , cv2.CHAIN_APPROX_SIMPLE) print("N...
[ "pavankuchalapk@gmail.com" ]
pavankuchalapk@gmail.com
434401c549c15b2c22271538e4d76c0fd5d89c2b
05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd
/.history/fh/update_readme_20200816200808.py
aeb869169550907d44f3df820a1c8087ca39b324
[]
no_license
cod-lab/try
906b55dd76e77dbb052603f0a1c03ab433e2d4d1
3bc7e4ca482459a65b37dda12f24c0e3c71e88b6
refs/heads/master
2021-11-02T15:18:24.058888
2020-10-07T07:21:15
2020-10-07T07:21:15
245,672,870
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
# f=open('a.md','r') # print(f.name) # print(f.) # f.close() print("\n") # Method 1 : Context Manager with open('a.md','r') as f: # print("len f:", len(f)) for i,line in enumerate(f): if 37<i<43: # for i in range(38,43): print(i+1, line, end='') print("type of line: ",t...
[ "arihant806@gmail.com" ]
arihant806@gmail.com
5f67093d42f2b9712d3d49d5a939b99bd9d7919a
2b23e732ae616f6a3c07866906e14a1e3883a693
/Numpy Practice/Array and scalars/scalars.py
0b4cb92726368f2786aa36663be58a1912b3f5ed
[]
no_license
JitenKumar/Data-Analysis-Visualization-With-Python
7d045e49b16ad30fb5e2b558a3e4f69457bf4697
d53d3738c10efc6882757692215d381321ee20a3
refs/heads/master
2020-03-18T12:28:40.146060
2018-05-28T18:28:12
2018-05-28T18:28:12
134,728,583
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
import numpy as np array1 = np.array([1,2,4,3453],[1,3446,4]) print(array1) print(array1 * array1) print(array1 - array1) print(1/ array1)
[ "jitenderpalsra@gmail.com" ]
jitenderpalsra@gmail.com
e7e17ccfa54df98c658a78e4da139d1dc07cb7d3
373035950bdc8956cc0b74675aea2d1857263129
/scripts-config/ta3/remote-runner-scripts/arg_config.py
fe22b61b9a74acb99479f21cd220e13114d12c54
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
limkokholefork/SPARTA
5d122cd2e920775d61a5404688aabbafa164f22e
6eeb28b2dd147088b6e851876b36eeba3e700f16
refs/heads/master
2021-11-11T21:09:38.366985
2017-06-02T16:21:48
2017-06-02T16:21:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,187
py
# ***************************************************************** # Copyright 2013 MIT Lincoln Laboratory # Project: SPAR # Authors: ni24039 # Description: Config file to be used with remote_runner.py # # Modifications: # Date Name Modification # ---- ...
[ "mitchelljd@ll.mit.edu" ]
mitchelljd@ll.mit.edu
3cef2a2f60b5ef01b713815a030a54fce72004bd
21b632797ed6257b13574c341cdd14e6534728a9
/ryu/app/simple_switch_lacp_13.py
ffba55722414cd3014fe4341e006bccac1ed15e4
[ "Apache-2.0" ]
permissive
MrCocoaCat/ryu
0473f04e2a840e027e9002f8a6af81745eaf7094
9e9571991a73380099b7ba7c6f37e0e587080a6a
refs/heads/master
2021-06-19T18:09:52.833590
2020-05-12T08:17:21
2020-05-12T08:17:21
163,072,555
0
0
null
null
null
null
UTF-8
Python
false
false
3,983
py
# Copyright (C) 2016 Nippon Telegraph and Telephone Corporation. # # 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 ...
[ "MrCocoaCat@aliyun.com" ]
MrCocoaCat@aliyun.com
df4d48c6073d9ddfee702a38b9ce6af2ca95a9be
896b5a6aab6cb6c1e3ee2e59aad0128226471871
/weblayer/PRESUBMIT.py
5ba183d5d99fafd020961cdb80a583d28e5935cd
[ "BSD-3-Clause" ]
permissive
bkueppers/chromium
86f09d32b7cb418f431b3b01a00ffe018e24de32
d160b8b58d58120a9b2331671d0bda228d469482
refs/heads/master
2023-03-14T10:41:52.563439
2019-11-08T13:33:40
2019-11-08T13:33:40
219,389,734
0
0
BSD-3-Clause
2019-11-04T01:05:37
2019-11-04T01:05:37
null
UTF-8
Python
false
false
2,484
py
# Copyright 2019 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. """Presubmit tests for weblayer. Runs various style checks before upload. """ import re WEBLAYER_VERSION_PATH = ( 'weblayer/browser/java/org/chromium/w...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
b9bd49e00b68e4bc266f6679db1a0924ddabe70b
9140ba97a4ff6e9ef9f4e49d67ab238b669a3597
/register/views.py
ce4dc74c1ed39b4c84b73fc40f5d5f9c41734f83
[]
no_license
poojapauskar/foodromeoproject-api
877ada5d72db0ac364e735a1ad7af0f46ad02bcc
2007ed7ae12a3f5d1d227faaccaf7e6bd93f760d
refs/heads/master
2021-01-21T13:30:31.838067
2016-05-09T06:41:10
2016-05-09T06:41:10
54,105,875
0
0
null
null
null
null
UTF-8
Python
false
false
4,708
py
from register.models import Register from register.serializers import RegisterSerializer from rest_framework import generics import random from random import randint class StatusCode(object): OK = 200 NOT_FOUND = 404 # add more status code according to your need import json from django.http import HttpRes...
[ "git.poojapauskar@gmail.com" ]
git.poojapauskar@gmail.com
2b00aad1ef824b5cba38e65d566d93dc45ae6ab3
53abcba37ef0fd69bd90453b175f936edcca842c
/Uber/8.py
f537178aa43efd112098a6c9f0a9295f5a9c857f
[]
no_license
cloi1994/session1
44db8fa6d523d4f8ffe6046969f395e8bbde9e40
9a79fd854e9842050da07f9c9b0ce5cadc94be89
refs/heads/master
2020-03-09T05:15:51.510027
2018-06-13T04:41:43
2018-06-13T04:41:43
128,608,752
0
1
null
null
null
null
UTF-8
Python
false
false
629
py
class Solution(object): def myAtoi(self, s): """ :type str: str :rtype: int """ if not s: return 0 s = s.replace(" ", "") if s[0].isalpha(): return 0 ans = 0 sign = 1 if s[0] == '-': ...
[ "noreply@github.com" ]
cloi1994.noreply@github.com
0c480fcde577bb9d3095be66a2a5181bfad6dda9
4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422
/_0617_Merge_Two_Binary_Trees.py
4d60139bc71d75a360ee7d1fc0b0c79c5ec5c300
[]
no_license
mingweihe/leetcode
a2cfee0e004627b817a3c0321bb9c74128f8c1a7
edff905f63ab95cdd40447b27a9c449c9cefec37
refs/heads/master
2021-06-19T07:46:46.897952
2021-05-02T05:13:17
2021-05-02T05:13:17
205,740,338
3
0
null
null
null
null
UTF-8
Python
false
false
539
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def mergeTrees(self, t1, t2): """ :type t1: TreeNode :type t2: TreeNode :rtype: TreeNode "...
[ "10962421@qq.com" ]
10962421@qq.com
d6fa8c447ecd43e49cd350a3dc8823d77552f944
bcc4fdd2882291c392b553761b0d398dfd786b8f
/Functions.Templates/Templates-v2/CosmosDbTrigger-Python/function_app.py
46798ed9e2444961a5045260c5a3062f341813c3
[ "MIT" ]
permissive
Azure/azure-functions-templates
d462182def66ef0d80bf878c23c8234ab64c5831
aa21e49fe96441ce1e3e07e9325feac5c0d92bb3
refs/heads/dev
2023-08-28T14:18:56.244381
2023-08-25T22:36:10
2023-08-25T22:36:10
52,470,131
264
156
MIT
2023-09-14T16:15:37
2016-02-24T19:53:25
C#
UTF-8
Python
false
false
377
py
import azure.functions as func import logging app = func.FunctionApp() @app.cosmos_db_trigger(arg_name="azcosmosdb", container_name="$(CONTAINER_NAME_INPUT)", database_name="$(DB_NAME_INPUT)", connection="$(CONNECTION_STRING_INPUT)") def $(FUNCTION_NAME_INPUT)(azcosmosdb: func.Documen...
[ "noreply@github.com" ]
Azure.noreply@github.com
82810559840be07c5da1a6071c2c380f60b58cea
0e99d2efff685a66869d5a7cd4a68de8955f498c
/newoffer/suning/lab1.py
08a457dde4b899c6105e160f319cbf8bfb0485b4
[]
no_license
supercp3/code_leetcode
f303109c70ccdd0baa711cf606d402158b212525
1dc6260e229a012111ec4d5e60071c2458ce5002
refs/heads/master
2020-03-26T11:33:28.741405
2018-10-15T02:18:24
2018-10-15T02:18:24
144,848,743
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
import sys class Tree: def __init__(self,val,left=None,right=None): self.val=val self.left=left self.right=right class Solution: #非递归方式实现前序遍历 def preOrder(self,root): if not root: return [] stack=[] vallist=[] outputlist=[] while root is not None or len(stack)!=0: if root is not None: val...
[ "13281099@bjtu.edu.cn" ]
13281099@bjtu.edu.cn
0c35213774dbd23f49ea1ba7431bcc7ad7dd97c7
926621c29eb55046f9f59750db09bdb24ed3078e
/lib/googlecloudsdk/third_party/apis/dataproc/v1/__init__.py
095dc4c02f9ac6029206e546e6166984b09379f5
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/SDK
525d9b29fb2e901aa79697c9dcdf5ddd852859ab
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
refs/heads/master
2022-11-22T18:24:13.464605
2016-05-18T16:53:30
2016-05-18T16:53:30
282,322,505
0
0
NOASSERTION
2020-07-24T21:52:25
2020-07-24T21:52:24
null
UTF-8
Python
false
false
376
py
"""Common imports for generated dataproc client library.""" # pylint:disable=wildcard-import import pkgutil from googlecloudsdk.third_party.apitools.base.py import * from googlecloudsdk.third_party.apis.dataproc.v1.dataproc_v1_client import * from googlecloudsdk.third_party.apis.dataproc.v1.dataproc_v1_messages impor...
[ "richarddewalhalla@gmail.com" ]
richarddewalhalla@gmail.com
d21b3fb24785b53ed1bc671b6763bc5903a78dad
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_shrivels.py
00eeb99420423720d1b02d8b00448f4f115e226c
[ "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 _SHRIVELS(): def __init__(self,): self.name = "SHRIVELS" self.definitions = shrivel self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['shrivel']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e415d03e37a2ad73851371010023bd62642188fa
b08d42933ac06045905d7c005ca9c114ed3aecc0
/src/coefSubset/evaluate/ranks/tenth/rank_1efn_S.py
50231db57e8bfee2b95790432af4d32474320c59
[]
no_license
TanemuraKiyoto/PPI-native-detection-via-LR
d148d53f5eb60a4dda5318b371a3048e3f662725
897e7188b0da94e87126a4acc0c9a6ff44a64574
refs/heads/master
2022-12-05T11:59:01.014309
2020-08-10T00:41:17
2020-08-10T00:41:17
225,272,083
1
0
null
null
null
null
UTF-8
Python
false
false
3,204
py
# 9 July 2019 # Kiyoto Aramis Tanemura # Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess...
[ "tanemur1@msu.edu" ]
tanemur1@msu.edu
1c15a36efd9cb73b2bd04e796c0a860e39753c4e
7b00c3a416fff53e472a8ebb4e5ff710cbad4e5f
/interpreter/parser.py
f6d3044296c95de91cae043dcf7779dddc0f950e
[ "MIT", "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
hthompson6/Sous
8700ac52096273d279f6a3415d089a8bc0d4420f
79dd10078773a59625037a47e1c2e849e32cf75e
refs/heads/master
2020-03-19T04:50:10.530596
2018-06-02T23:23:06
2018-06-02T23:23:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,189
py
# Copyright (c) 2018 Hunter Thompson # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, di...
[ "thompson.grey.hunter@gmail.com" ]
thompson.grey.hunter@gmail.com
ea2af8f1b461e8f96bcd8bd4c778ccfbb9e30cf4
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py
ba330d5a4006df31f4be7606be380043e45a5d56
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
6,249
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
ab59111a97a5ad62860fa5487921405e0a3e743d
ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0
/02_algorithm/sw_expert_academy/code_problem/all_problem/4047.py
e3cefbc6d9833e6af40370d78a06e70694cf51ae
[]
no_license
wally-wally/TIL
93fc1d0e3bc7d030341ed54155294c68c48b4c7d
936783bc86f563646c0398c24e2fcaa707f0ed23
refs/heads/master
2023-04-28T08:59:48.235747
2023-04-12T12:06:52
2023-04-12T12:06:52
195,918,111
40
7
null
2020-09-29T16:20:46
2019-07-09T02:31:02
Python
UTF-8
Python
false
false
1,204
py
import sys sys.stdin = open('sample_input.txt', 'r') def card_count(x, y): global card_kind, card_set, card_num card_set[x][int(card_num)-1] += 1 if card_set[x][int(card_num)-1] >= 2: print('#{} ERROR'.format(y + 1)) return 1 card_kind, card_num = elem, '' T = int(input()) for a in ran...
[ "wallys0213@gmail.com" ]
wallys0213@gmail.com
045ff32ed004db574df9188ef7e597240ba6e2df
fc1e9aceafe96b69a7e50f5d56f5bdec55b0f13e
/images/migrations/0006_auto_20180507_1730.py
9ef7f80df3850c4e4eb5b24fc5accd0373c36ee1
[ "MIT" ]
permissive
markmurimi/Gallery-app
c6f8085f6f8ba65616980abaf4cde1967b7b4417
7f167a497775fe6c508f80046bc1b86874675c7d
refs/heads/master
2020-03-15T12:56:34.179920
2018-05-09T14:55:51
2018-05-09T14:55:51
132,155,094
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-07 14:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('images', '0005_remove_post_tags'), ] operations = [ ...
[ "murimimg180@gmail.com" ]
murimimg180@gmail.com
d89e07cc305d11ca79c8805eaa418bd79f19e003
63a676f3ae166d89054c13fba67ad9b6e3134c54
/django_stuff/first_project/first_app/views.py
7784424d7b7077df6d0bbc44fdcad5fdac1c263e
[]
no_license
Rabbi50/django_bootcamp
917b9435e1c766b5590260a59da3b041c2cfb147
912c9ac9c6dc88d6b6d18a724b0265e91858ee66
refs/heads/master
2022-12-16T09:53:57.569656
2019-12-29T18:09:12
2019-12-29T18:09:12
226,795,049
0
0
null
2022-12-08T03:21:58
2019-12-09T05:52:22
Python
UTF-8
Python
false
false
418
py
from django.shortcuts import render from django.http import HttpResponse from first_app.models import Topic,WebPage,AccessRecord # Create your views here. def index(request): webpage_list=AccessRecord.objects.order_by('date') date_dict={'access_record':webpage_list} # my_dict={'inset_me':'Hello i am comi...
[ "jasrabbi50@gmail.com" ]
jasrabbi50@gmail.com
7692f7723e1dd805bb16a39a812731df9736cebb
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/__init__.py
b41e620d04ac82f368c0a16c525c6722c1f777f1
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
756
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" ]
scbedd.noreply@github.com
baa37bc63151072fd6ab77cf7c167941449b6d13
b6e59e2097e30347bb831ac17f52bf5a50f23c4f
/misc/utils.py
c9eb3637aa479305352c0b3357272027fd9b6008
[ "MIT" ]
permissive
ramonpereira/pyplanners
8dc32f5670cec9ee1452f6ec7191cf95efe42905
73209a5a9d1ce6936d80b52bd4f3e146a355760b
refs/heads/master
2020-04-07T15:14:25.529743
2017-10-24T23:33:04
2017-10-24T23:33:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
from inspect import currentframe, getargvalues, getargspec, getfile from numerical import * from functions import * from io import * from generators import * from objects import * import importlib import abc #https://docs.python.org/2/glossary.html#term-generator SEPARATOR = '\n'+85*'-'+'\n' # NOTE - frame = inspect...
[ "caelan@mit.edu" ]
caelan@mit.edu
224a769a743cd42c842828056094fb4470bbaf78
b7ddcba90214e32407f66321f2df62d405828461
/cms/tinymce/compressor.py
d12e444b501dc86ec28f040f4a55615b1447d3a9
[]
no_license
bart3k1/CMS
62e6c1696ae4d60478206b63772babb9bbb1ba1c
2849903cb9d12fd514aef574c6a5a4eaa776b853
refs/heads/master
2022-08-16T15:54:08.408722
2020-03-05T18:01:58
2020-03-05T18:01:58
127,267,720
0
0
null
2022-06-27T16:10:37
2018-03-29T09:18:41
TSQL
UTF-8
Python
false
false
5,241
py
""" Based on "TinyMCE Compressor PHP" from MoxieCode. http://tinymce.moxiecode.com/ Copyright (c) 2008 Jason Davies Licensed under the terms of the MIT License (see LICENSE.txt) """ import json import os import re from datetime import datetime import tinymce.settings from django.conf import settings from django.cor...
[ "bart3k1@gmail.com" ]
bart3k1@gmail.com
cfd5599af1194de14dc87510ec8936eb301fcb54
6f8041080c5896f7ccf38759c5e03719aa7e0ef7
/project/urls.py
b3c31c448c06dd0a2da07b5ebcdbf9d2ef03bb0e
[]
no_license
cnkyrpsgl/recipe
5258ec3885e0ebe4703e4b30c5b18541e285a466
3b1da89ce3619cafee7688037da35dcecd0bca90
refs/heads/master
2020-06-04T09:24:55.768529
2019-06-14T15:21:24
2019-06-14T15:21:24
191,824,847
0
0
null
null
null
null
UTF-8
Python
false
false
1,059
py
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "cenkay.arapsagolu@gmail.com" ]
cenkay.arapsagolu@gmail.com
5052c3800c8b8cc06007bed9af95f9de818ca78f
ac41c81ba8597cbca0d2189cda993b74bc7fe2bb
/plot.py
91881d45289329313daced0ebfb69c7e25a932b3
[]
no_license
jsg921019/label_smoothing
2ed38618d734ae9834bc33c1b328269c97a5af44
afabc638bd755082e8956345f707c3cdc2597f65
refs/heads/main
2023-08-28T04:19:17.535494
2021-10-21T22:29:19
2021-10-21T22:29:19
405,281,003
2
0
null
null
null
null
UTF-8
Python
false
false
4,016
py
import os import copy import argparse import numpy as np import matplotlib.pyplot as plt import torch from torch.utils.data import DataLoader import torchvision.transforms as transforms from torchvision.models import AlexNet from torchvision.datasets import CIFAR10 parser = argparse.ArgumentParser(description='Plot d...
[ "jsg921019@gmail.com" ]
jsg921019@gmail.com
8f7ab8bb24e05c54bd2b593592c57817e130f6e0
95f9a365cce91c584fd615ca403215f36aa3fc57
/lesson_7_new/leroy_pars/spiders/leroymerlin.py
5381a527ee77930f09c1b8fdeec1500038093569
[]
no_license
AShipkov/Methods-for-data-from-the-Internet
7cc39cf9a1eac82205dba26fa9c05bdfc85589d9
aa915da40c2afcfdae80c92f54fd3316ed6a13b5
refs/heads/master
2022-11-26T17:08:02.170474
2020-08-11T18:06:35
2020-08-11T18:06:35
280,082,278
0
0
null
2020-08-11T18:06:39
2020-07-16T07:15:58
Python
UTF-8
Python
false
false
1,209
py
import scrapy import scrapy from scrapy.http import HtmlResponse from scrapy.loader import ItemLoader from leroy_pars.items import Leroy_parsItem class LeroymerlinSpider(scrapy.Spider): name = 'leroymerlin' allowed_domains = ['leroymerlin.ru'] def __init__(self, search): super().__init__() ...
[ "shipkov2007@ya.ru" ]
shipkov2007@ya.ru
23f0a5b1c830acd508c6d38617e0e2c8e9f6c83c
0326f06f68fb0d919f8467f4744dfd60a654836a
/eggs/Django-1.6.5-py2.7.egg/django/contrib/sessions/serializers.py
0ded8502434733fde4e8c2648fe134d4c602df90
[]
no_license
ethirajit/onlinepos
67de6023241339ae08c3b88a9e7b62b837ec17a3
186ba6585d0b29f96a5c210462764515cccb3b47
refs/heads/master
2021-01-17T13:23:36.490727
2014-07-01T10:30:17
2014-07-01T10:30:17
34,388,218
1
0
null
null
null
null
UTF-8
Python
false
false
507
py
from django.core.signing import JSONSerializer as BaseJSONSerializer try: from django.utils.six.moves import cPickle as pickle except ImportError: import pickle class PickleSerializer(object): """ Simple wrapper around pickle to be used in signing.dumps and signing.loads. """ d...
[ "root@server.onlinepos.co.in" ]
root@server.onlinepos.co.in
8bdfa7763c1f7dea7a5a524664582b26f1032154
9481772b5eefeaae71d8d2d668dda611735ab5a7
/braindecode/online/dummy_ui_server.py
4f159137325ef03edbe2c379b89e432c50f86b73
[]
no_license
Mahelita/braindevel
f8cd77803e0860764dee5822dd00fc8a2c8c3a6c
21f58aa74fdd2a3b03830c950b7ab14d44979045
refs/heads/master
2020-03-23T15:03:13.140736
2017-09-11T14:42:06
2017-09-11T14:42:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
import gevent.server import signal def handle(socket, address): print ("new connection") # using a makefile because we want to use readline() socket_file = socket.makefile() while True: i_sample = socket_file.readline() preds = socket_file.readline() print i_sample print...
[ "robintibor@gmail.com" ]
robintibor@gmail.com
921396e2c499a33277b130c998781aa2b3939dca
f4e9721bd529541f2402472f201bb6fde66fea53
/trailing zeroes.py
ccc47c47fa113b1f63571096cff21a9bdd62b88f
[]
no_license
wimpywarlord/hacker_earth_and_hacker_rank_solutions
23d973778bceca5a395dd98b0b7252db49d02366
1277ba97e2744a7dab62f1e1319aac77f8ec6a28
refs/heads/master
2021-07-01T19:48:07.501021
2019-12-28T05:55:39
2019-12-28T05:55:39
172,307,339
10
3
null
2020-10-01T06:43:03
2019-02-24T07:08:29
Python
UTF-8
Python
false
false
220
py
n=int(input()) fact=1 for i in range(1,n+1): fact*=i print(fact) count=0 num=[] while fact>0: y=fact%10 num.append(y) fact//=10 print(num) for i in num: if i!=0: break count+=1 print(count)
[ "wimpywarlord@gmail.com" ]
wimpywarlord@gmail.com
afd642a8c815e027b36a2ac9ceca8be953180e13
619a80cd7160fc42ce8203255c6420bf9e22dc19
/app.py
0adecaa40968aefb1a88783b2fc98f32829704e5
[ "BSD-3-Clause" ]
permissive
andersosthus/LazyBlacksmith
c8a6615afed42d9de90575a52c0ee0e89f5f7f60
d1689dba0052dcaac9de10598c1e91e620869852
refs/heads/master
2021-01-23T07:43:56.137153
2017-03-09T23:50:05
2017-03-09T23:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
# -*- encoding: utf-8 -*- import config import logging from lazyblacksmith.app import create_app app = create_app(config) if __name__ == '__main__': formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') console = logging.StreamHandler() console.setLevel(loggin...
[ "anakhon@gmail.com" ]
anakhon@gmail.com
5cf7411ded7b5dcab29660807618ce57dfbaf889
07542e367da9b9d106e00c5764d2c3639cf4958e
/classification/training/update/WindowClassificationTrainUpdateAnalysisModelListVisualize.py
fda442f4d16d01ff50c1d847bbb0003eb2d26e6a
[ "Apache-2.0" ]
permissive
iamavailable/Monk_Gui
6991308f237ee13c5bb619e766bedbe2c388e43a
5d768240a9244629da2f68f6194d91c98e1b0ccb
refs/heads/master
2023-01-02T12:35:53.898469
2020-10-22T10:29:07
2020-10-22T10:29:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
import os import sys import json from PIL import Image from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtGui import * class WindowClassificationTrainUpdateAnalysisModelListVisualize(QtWidgets.QWidget): backward_model_param = QtCore.pyqtSignal(); backward_analyse = QtCore.pyqtSig...
[ "abhishek4273@gmail.com" ]
abhishek4273@gmail.com
2a2a7fab392691ad141fac7ea0228cd9abb2beab
3524cd098502204a7bca7c2a2dc7757f50d324d8
/authenticate/forms.py
ce97b4729d27e12d7c8877113ab166c9daeab0ff
[]
no_license
dm1tro69/John_Elder_auth
91594a4c960b7d955d559f1a128210625e87c58a
c5e20afbae3600083866b6b7cb013f51e38e2751
refs/heads/master
2020-11-29T14:06:48.055281
2019-12-26T19:57:22
2019-12-26T19:57:22
230,132,149
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.models import User class EditProfileForm(UserChangeForm): password = forms.EmailField(label='', widget=forms.TextInput(attrs={'type': 'hidden'})) class Meta: model = User f...
[ "dimolg22@gmail.com" ]
dimolg22@gmail.com
d7d33f599dc291b15dbc5bfaed6d9c9df268358d
c2f4afee3ec4faef7231da2e48c8fef3d309b3e3
/org/netsetos/python/String_Tasks/first_non_hash.py
9557d647a2991efdaca5cfcd4d91d9cc00d6a28e
[]
no_license
tanu312000/pyChapter
a723f99754ff2b21e694a9da3cb2c6ca0cd10fce
2fd28aefcbfaf0f6c34db90fdf0d77f9aea142ce
refs/heads/master
2020-05-03T15:51:34.334806
2019-03-31T16:17:45
2019-03-31T16:17:45
178,712,059
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
def first_non_repeating(str): n=len(str) for i in range(0,n): count=1 for j in range(0,n): if(str[i]==str[j]): count=count+1 if(count==2): print(str[i]) break str="SARTHAK" p=first_non_repeating(str) print(p)
[ "tanurocks90@gmail.com" ]
tanurocks90@gmail.com
16ef2e50c075663384a8d6a44082ac09cf7827ad
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-140_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_3/run_cfg.py
79d6c5b5ebda54c86474a1006cdba57a2a9043b3
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/VBF_HToTauTau_M-140_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
32637808d13e39b529be631a6f05a7b3aad5a081
3db2fcd1a34ae7b22225029587369f49424457dd
/classifier_alignment/test_simulator.py
7ca5c84abe3b1facf186ef78b7ef14dd80c87880
[]
no_license
pombredanne/realigner
7f0fdfdf42f757fead45cdeb5ea2901c4965e944
b0c32cace20dd720c7609f009d86846d9ecb750f
refs/heads/master
2021-01-18T03:57:30.977009
2014-05-06T09:35:46
2014-05-06T09:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,240
py
#!/usr/bin/python from alignment import Fasta from classifier_alignment.AnnotationConfig import Annotations from tools.file_wrapper import Open import json import os import random import sys import track from classifier_alignment.simulator import * P_START_GENE = 0.01 P_STOP_GENE = 0.01 P_START_DELETE = 0.01 P_STOP_DE...
[ "mhozza@gmail.com" ]
mhozza@gmail.com
8a5a3795eafcb5780fc6e69a9795ed0466e687f6
afa59644777f5cd8ae59d0b4b29f91c45d1264a9
/web_chat/urls.py
c1f8e0b2dcef9f9e4f359d39e8ef138c834254a4
[ "Apache-2.0" ]
permissive
yezimai/oldboyProject
aa76beca46be29e164f65b45dda35924d8fa5bbb
889eebc2e6158b07ac0964b25eb01df743ad0117
refs/heads/master
2021-05-13T17:52:45.623762
2018-01-09T16:03:56
2018-01-09T16:03:57
116,824,907
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
"""oldboyProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/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') Cl...
[ "41815224@qq.com" ]
41815224@qq.com
6c5cad32452e5af7b0acdef23e6ad9b4fb0db1ef
06200840fb159fcb30775fcf053dcdc54a53ed6c
/milksets/seeds/seeds.py
1c20e2b9d978d2cefa4759e073bc6bcba0db3547
[ "MIT" ]
permissive
luispedro/milksets
936c3ab1be48e7c2fcfef1c96f1c0506b7a03e13
84fc8cba4d4a87acf573ce562cd065b0ee37fadd
refs/heads/master
2020-04-16T09:29:54.355230
2015-03-18T17:20:40
2015-03-18T17:20:40
394,729
8
4
null
null
null
null
UTF-8
Python
false
false
2,576
py
# -*- coding: utf-8 -*- # Copyright (C) 2012, Luis Pedro Coelho <luis@luispedro.org> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the ...
[ "luis@luispedro.org" ]
luis@luispedro.org
451e401a87b9f6da9415c5da86f0ec15a4ba4c57
1dbc955c3d717476fa75a48cc87a05e2eceb0002
/daily_challenges/merge_two_lists.py
e9da11979e8f8e04f9950a6a677b80ceff4a60fa
[]
no_license
gregorysimpson13/leetcode
e68eaee2ba38a1edff119eda1ccdeacc0c400d26
ae88b9f9979a5643497cb2dfeb90d19a1bcdb137
refs/heads/master
2023-03-31T23:58:58.940234
2021-04-11T14:37:31
2021-04-11T14:37:31
258,632,884
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# Runtime: O(n); beats 91.67% # Space: O(1) class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: dummy = ListNode(); node = dummy while l1 and l2: if l1.val < l2.val: node.next, l1 = l1, l1.next else: node.next, l2 = l2, l2.next node = ...
[ "gregorysimpson13@gmail.com" ]
gregorysimpson13@gmail.com
12f9704a22c0030bd9d3de600224bee0149ba740
505f1c36d931d4388a0a4f8c57fbd8bd9ab4d821
/ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/gui/BeadDesignDesigner.py
01953da0f43ff4fa81649da28a39c21b093b56eb
[ "MIT" ]
permissive
mikebourbeauart/perler-printer
9e43a51b82cb9b08d35c81e680ea7ef2624fda2e
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
refs/heads/master
2022-12-01T18:46:37.632443
2020-05-04T00:41:11
2020-05-04T00:41:11
98,070,537
0
1
MIT
2022-11-22T05:58:34
2017-07-23T02:49:35
Python
UTF-8
Python
false
false
680
py
"""Subclass of Designer, which is generated by wxFormBuilder.""" import wx import beadgui # Implementing Designer class BeadDesignDesigner( beadgui.Designer ): def __init__( self, parent ): beadgui.Designer.__init__( self, parent ) # Handlers for Designer events. def onGenerate( self, event ): # TODO: Implem...
[ "borbs727@gmail.com" ]
borbs727@gmail.com
fd6c1aed9ec2bae63b58209b2b31577252f7d687
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-125_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467487/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_2/run_cfg.py
ccc76fd5d757844555f7d822aea28d28b5a0adf8
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-125_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467487/HTT_24Jul_newTES_manzoni_Up_...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
d5079851f208d0e4515d0bcb2767a6517585deab
1e177ebdcb470f738c058606ac0f86a36085f661
/BlockHeat41/coldStart03.py
8a73d964096b40a88330d5c5ff78071f81df5640
[]
no_license
robingreig/raspi-git
5cbdd295c1048a0571aa2c2f8576438269439f07
7373bf94557d7a88c8f343362ba64f9cd19c8ce7
refs/heads/master
2023-08-31T03:16:17.286700
2023-08-26T11:54:23
2023-08-26T11:54:23
16,873,881
2
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
#!/usr/bin/env python3 import time import datetime as dt import os # if debug > 0 then outputs will be turned OFF debug = 0 # outside temp stored in file by blockheat program running every 10 mins f = open("/home/robin/outsideTemp", 'r') lines1 = f.readlines() f.close() lines2 = float(lines1[0]) if debug > 0: pr...
[ "robin.greig@calalta.com" ]
robin.greig@calalta.com
0fd4d2a9c455e6f7e2152c9a99c0e76d250b7ab7
370f334038da2c6b37ba1d60d71e35db2ea61df8
/2019/day12/part1.py
5855bdaffd68749e2dfb2bf1c817a029e3c3d669
[ "MIT" ]
permissive
fourjr/advent-of-code
94ff31ab06af20401db2153954770bc2e0eb7960
4204f936acacd6566a74d07353259f468966d538
refs/heads/master
2023-04-03T16:06:25.473834
2023-03-31T16:14:16
2023-03-31T16:14:16
159,935,359
0
1
null
null
null
null
UTF-8
Python
false
false
2,166
py
from dataclasses import dataclass, field with open('input.txt') as f: inp = f.read().splitlines() @dataclass class Coordinates: x: int = 0 y: int = 0 z: int = 0 @dataclass class Moon: position: Coordinates velocity: Coordinates = field(default_factory=Coordinates) def apply_gravity(self...
[ "28086837+fourjr@users.noreply.github.com" ]
28086837+fourjr@users.noreply.github.com
6645b7165fcf9af30c2a8d51e9f757db369891ef
b501a5eae1018c1c26caa96793c6ee17865ebb2d
/Mathematics/math/math_isclose.py
ada6e0ff230f6ec9d228a40940b3013e77b3fbb0
[]
no_license
jincurry/standard_Library_Learn
12b02f9e86d31ca574bb6863aefc95d63cc558fc
6c7197f12747456e0f1f3efd09667682a2d1a567
refs/heads/master
2022-10-26T07:28:36.545847
2018-05-04T12:54:50
2018-05-04T12:54:50
125,447,397
0
1
null
2022-10-02T17:21:50
2018-03-16T01:32:50
Python
UTF-8
Python
false
false
608
py
import math INPUTS = [ (1000, 900, 0.1), (100, 90, 0.1), (10, 9, 0.1), (1, 0.9, 0.1), (0.1, 0.09, 0.1), ] print('{:^8} {:^8} {:^8} {:^8} {:^8} {:^8}'.format( 'a', 'b', 'rel_tol', 'abs(a-b)', 'tolerance', 'close') ) print('{:-^8} {:-^8} {:-^8} {:-^8} {:-^8} {:-^8}'.format( '-', '-', '-', '-...
[ "jintao422516@gmail.com" ]
jintao422516@gmail.com
2af3d30ab7952fb3b667c402629bb6083d31d3a3
ee96dd041c00b7db4e6a2d401603db638be83ecd
/build_NN_classification.py
8724ec820877cd9346b3b3cf8fd3d27edc00dcd2
[]
no_license
huqinwei/tensorflow_demo
b8711b239638370b8190bdfe9d472633b55ca21a
3b38e4a7e5770cfe607174b7b75b46f26e34b48b
refs/heads/master
2020-03-29T02:10:51.441802
2019-03-05T07:23:54
2019-03-05T07:23:54
149,423,901
3
3
null
null
null
null
UTF-8
Python
false
false
2,223
py
#import add_layer import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data',one_hot=True) def add_layer(inputs, in_size, out_size, n_layer, activation_function=None): layer_name = 'layer%s' % n_layer with tf.name_scope(layer_...
[ "qw072117@foxmail.com" ]
qw072117@foxmail.com
21a8c8342612bd3b7458dbde9285992c3ed7430b
4ee5e68bc23fb87a6362147fbe39da9a7da6a75f
/supra/templatetags/filters.py
057c6e4e615a907fbea352adaf0c3631b62288df
[]
no_license
luismoralesp/supra
0e835bbd8c582c347549938b194d89716e8121ed
c28a8ec3bfd09e91cfbb0a97caee768b924c8e5e
refs/heads/test
2020-04-06T07:03:37.674998
2016-10-28T19:04:05
2016-10-28T19:04:05
45,873,850
8
3
null
2016-02-25T03:37:48
2015-11-09T23:27:41
Python
UTF-8
Python
false
false
283
py
from django import template import json register = template.Library() @register.filter def get_type(value): return type(value).__name__ #end def @register.filter def strip(dic): stri = json.dumps(dic) if len(stri) > 53: stri = stri[:50] + "..." #end if return stri #end def
[ "luismiguel.mopa@gmail.com" ]
luismiguel.mopa@gmail.com
61ef75f1d48b5f63edbac404380693192963773d
9951134436c1f98e3048caec9727fd33b6c57da1
/New_stock_iterate.py
fa4b415f3984a6c91b3e37d94ab5af8ddd2e8ff9
[]
no_license
buhijs/Udemy
0bd33deb95cb3e212a948a3ebe5337756702e408
906bfc6cae849706009b172f1a424b53dc958118
refs/heads/master
2021-05-30T21:18:01.233869
2016-04-14T12:59:14
2016-04-14T12:59:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
__author__ = 'lyndsay.beaver' stockList = ["ALR", "BTS", "CRK"] priceList = [10, 20, 30] numStocks = len(stockList) def listStocks(): for i in range(numStocks): print("The stock is {} and it's price is {}".format(stockList[i], priceList[i])) changePrices(priceList) def changePrices(pri...
[ "lrbeaver@gmail.com" ]
lrbeaver@gmail.com
64db0f593b6c14847cbf89ee2b73e28ec2b00cba
32997e6a8607358765254ea81d2f867269ae2b35
/01-algorithm-design-and-techniques/5_dynamic_programming/placing_parentheses.py
b1a78d984626fb7c3988af4ea4818d5d2bb989c8
[ "MIT" ]
permissive
aman-singh7/training.computerscience.algorithms-datastructures
0ace578ebcec13c5293b4d4dccdaa7634788604d
a4e1d1973b091589690fd2efc5dcb3c1a4df6c4c
refs/heads/master
2023-06-09T12:27:55.569254
2021-06-29T20:16:37
2021-06-29T20:16:37
401,133,325
1
0
MIT
2021-08-29T20:12:50
2021-08-29T20:12:49
null
UTF-8
Python
false
false
2,001
py
def evalt(a, b, op): if op == '+': return a + b elif op == '-': return a - b elif op == '*': return a * b else: assert False def get_maximum_value(dataset): D = [] op = [] for i in range(len(dataset)): if i % 2 == 0: D.append(int(da...
[ "mamid1706@hotmail.fr" ]
mamid1706@hotmail.fr
502477a4e0edcc05db5f0f5251d85d7836b889a3
ee4db47ccecd23559b3b6f3fce1822c9e5982a56
/Machine Learning/RecursiveTreeBuild.py
163e4da49ba3fbd9d26ab9d27499332c5392538e
[]
no_license
meoclark/Data-Science-DropBox
d51e5da75569626affc89fdcca1975bed15422fd
5f365cedc8d0a780abeb4e595cd0d90113a75d9d
refs/heads/master
2022-10-30T08:43:22.502408
2020-06-16T19:45:05
2020-06-16T19:45:05
265,558,242
0
1
null
null
null
null
UTF-8
Python
false
false
1,339
py
from tree import * car_data = [['med', 'low', '3', '4', 'med', 'med'], ['med', 'vhigh', '4', 'more', 'small', 'high'], ['high', 'med', '3', '2', 'med', 'low'], ['med', 'low', '4', '4', 'med', 'low'], ['med', 'low', '5more', '2', 'big', 'med'], ['med', 'med', '2', 'more', 'big', 'high'], ['med', 'med', '2', 'more', 'me...
[ "oluchukwuegbo@gmail.com" ]
oluchukwuegbo@gmail.com
69b6a59b11956fb42d05d33a988cd428f2e0450c
f09dc121f213f2881df3572288b7ee5b39246d73
/aliyun-python-sdk-sddp/aliyunsdksddp/request/v20190103/ModifyRuleRequest.py
5b55af75e7b290d917a5b0f766d261f402ebe205
[ "Apache-2.0" ]
permissive
hetw/aliyun-openapi-python-sdk
2f31378ad6be0896fb8090423f607e9c7d3ae774
7443eacee9fbbaa93c7975c6dbec92d3c364c577
refs/heads/master
2023-01-19T22:42:36.214770
2020-12-04T10:55:14
2020-12-04T10:55:14
318,689,093
1
0
NOASSERTION
2020-12-05T03:03:03
2020-12-05T03:03:03
null
UTF-8
Python
false
false
2,387
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may ...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
744f5b286ec4b2c4a600f5e1080b3bc897f0bcdb
d0f6474efe0372966d6469a194449fab0c405450
/nextstrain/cli/__init__.py
ebe57f3ec63c3b9cefbb2ae6a2278a3505cffc3a
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
ttung/cli
5323b866c8b4392d1d456bc2f936619fce15abd3
799f1e8cffeb580a4178cca3576369c031ee97da
refs/heads/master
2022-07-20T10:35:00.362131
2020-05-19T19:13:55
2020-05-19T19:16:37
265,400,087
0
0
MIT
2020-05-20T00:11:26
2020-05-20T00:11:25
null
UTF-8
Python
false
false
2,162
py
""" Nextstrain command-line tool """ import sys import argparse from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, RawDescriptionHelpFormatter from types import SimpleNamespace from .argparse import register_commands, register_default_command from .command import build, view, deploy, remot...
[ "tsibley@fredhutch.org" ]
tsibley@fredhutch.org
2f62b0f9e7462fc48a8c3bb3121616478a93a383
b48efb658fe8db0568142149ef1a71df882e9328
/_unittests/ut_ipythonhelper/test_ipythonhelper.py
3b52ebcaba1a2a70e4253cd1352a42da7adf2aa6
[]
no_license
ped4747/pyquickhelper
c76547ee74866bd5090e5e431c20c8788c331db4
a682f545ae1c33599b1fe21e623965c4e1043f8d
refs/heads/master
2021-01-22T04:28:11.222844
2014-12-09T18:20:32
2014-12-09T18:20:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
""" @brief test log(time=2s) """ import sys, os, unittest, re try : import src except ImportError : path = os.path.normpath(os.path.abspath( os.path.join( os.path.split(__file__)[0], "..", ".."))) if path not in sys.path : sys.path.append (path) import src from src.pyquickhelper import AutoComp...
[ "xavier.dupre@gmail.com" ]
xavier.dupre@gmail.com
ebfb5cb12cc58679ddcbb8367d48caa94a8d039e
a64b8fc6c9e81d433878009249fe9c9a109a602c
/sa/profiles/Eltex/MES/get_metrics.py
b0edfc256941a35f09eadd7e97286d65fd08a9fc
[ "BSD-3-Clause" ]
permissive
ewwwcha/noc
d1de6fe1d556e0f14a0dd31c600844cf43c96728
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
refs/heads/master
2020-07-29T10:10:30.862660
2019-09-20T07:54:52
2019-09-20T07:54:52
209,755,887
1
0
NOASSERTION
2019-09-20T09:36:22
2019-09-20T09:36:22
null
UTF-8
Python
false
false
494
py
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Eltex.MES.get_metrics # ---------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------...
[ "aversanta@gmail.com" ]
aversanta@gmail.com
3dcc4de9bc3dbfbb1fb1d138ca14e8ac2d8e1185
66e6360325b781ed0791868765f1fd8a6303726f
/TB2009/WorkDirectory/5215 Shower Cluster/Clustering_108533.py
35234a68ee0cd2199e2e07aee60354a4abdafb1d
[]
no_license
alintulu/FHead2011PhysicsProject
c969639b212d569198d8fce2f424ce866dcfa881
2568633d349810574354ad61b0abab24a40e510e
refs/heads/master
2022-04-28T14:19:30.534282
2020-04-23T17:17:32
2020-04-23T17:17:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,753
py
import FWCore.ParameterSet.Config as cms process = cms.Process("Clustering") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("HcalTBSource", fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108533.root"), streams = cms.untracked.vstring('Chunk6...
[ "yichen@positron01.hep.caltech.edu" ]
yichen@positron01.hep.caltech.edu
0393653b9a1a13e7813717400b57724b668f6fdf
b50ed116481285025f8d8179397ec5b6e5b1471b
/setup.py
b53cc1b40c9ec8db1b70a569322d61c9f8ac81ef
[ "MIT" ]
permissive
dannguyen/csvmedkit
97b2103dedd2c06c68086f5cb36aa1919e29b61d
d7e01210bc2d1cf55edfee79d2c742c73d426a50
refs/heads/main
2023-02-02T20:12:58.720677
2020-12-24T00:21:56
2020-12-24T00:21:56
300,771,409
3
0
null
null
null
null
UTF-8
Python
false
false
2,450
py
#!/usr/bin/env python import os import sys from setuptools import setup HERE_PATH = os.path.abspath(os.path.dirname(__file__)) ABOUT = {} with open(os.path.join(HERE_PATH, "csvmedkit", "__about__.py"), "r") as f: exec(f.read(), ABOUT) with open("README.rst", "r") as f: README = f.read() install_requires = [...
[ "dansonguyen@gmail.com" ]
dansonguyen@gmail.com
89f3427eae1e65abf7426e232dfbcbcded54d17e
05bccf429f42877e29a8e454ce837f94af4e2b57
/dog/ext/monitoring/abalbots.py
a0166fc53eb4acb1c197f7e62177c3fd0b836fa0
[ "MIT" ]
permissive
lun-4/dogbot
599b87a817ce6f479966421bc63cf51d37638ca6
d11b00882fae5763d775f10bdaf107a0d7b2c96c
refs/heads/master
2021-06-20T16:02:11.651312
2017-07-27T19:33:37
2017-07-27T19:33:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,524
py
""" bots.discord.pw reporting for Dogbot. """ import logging from dog import Cog logger = logging.getLogger(__name__) def Abalbots(Cog): def __init__(self, bot): super().__init__(bot) self.reporting_interval = 60 * 10 self.reporting_task = bot.loop.create_task(self.report()) def __u...
[ "cheesy.fried.bacon@gmail.com" ]
cheesy.fried.bacon@gmail.com
c788d7bb860941601a440e2c16d2a898909c2fbc
0dcf78e319956f2cb2327c5cb47bd6d65e59a51b
/Python3/Array/ContainerWithMostWater/TwoPointer2_011.py
b8b1b9cea0d235dbee78a99774355591781bdd9e
[]
no_license
daviddwlee84/LeetCode
70edd09a64a6f61492aa06d927e1ec3ab6a8fbc6
da1774fd07b7326e66d9478b3d2619e0499ac2b7
refs/heads/master
2023-05-11T03:16:32.568625
2023-05-08T05:11:57
2023-05-09T05:11:57
134,676,851
14
4
null
2018-05-29T14:50:22
2018-05-24T07:18:31
Python
UTF-8
Python
false
false
948
py
from typing import List class Solution: def maxArea(self, height: List[int]) -> int: """ https://leetcode.com/problems/container-with-most-water/discuss/6100/Simple-and-clear-proofexplanation https://leetcode.com/problems/container-with-most-water/discuss/1069570/Python-2-Pointers-solution...
[ "daviddwlee84@gmail.com" ]
daviddwlee84@gmail.com
8e14429861b08ec17fc66d3811935f63d1462738
ae67b9d90db114c1e15ce63ee0d27942d999a83b
/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py
85c9e4d4ae28462fff783a4710c7c7f73598f020
[ "Apache-2.0" ]
permissive
Birds-Awesome-Org/alexa-apis-for-python
ecb2e351b5cb1b341dda5c3ebc38927fa6d66a93
d22c1712cb53a442b72f830f53d97ef66075750b
refs/heads/master
2022-12-30T04:37:51.214040
2020-10-09T21:41:03
2020-10-09T21:41:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,005
py
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
[ "ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com" ]
ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com
9c57eff0b1b90178bbe6823152f3fe492af6b0ed
35ffeb303a9a14dab74e49882160a480d62d83e1
/aoc/day_02_pt2.py
eee9d5f7e3ec7fb6f92e0e7aab953671e0d0e0f3
[]
no_license
fbidu/aoc-2020
a8fea2e26d1c9c01f2b580f668d5893b4f116e63
44fed66314d803cbb52191dc3e1a032d63cf5f0d
refs/heads/main
2023-04-07T14:26:51.826217
2023-03-28T17:55:53
2023-03-28T17:55:53
317,533,642
1
0
null
2021-01-28T11:20:50
2020-12-01T12:26:37
Python
UTF-8
Python
false
false
1,883
py
""" Day 02 - Given a list of passwords like ``` 1-3 a: abcde 1-3 b: cdefg 2-9 c: ccccccccc . . . x-y char: password ``` - Returns how many of them are valid A valid password is: - Has `char` at EITHER position `x-1` OR `y-1` - That is `1-3 a: abcde` is valid because `a` is in char ...
[ "felipe@felipevr.com" ]
felipe@felipevr.com
653ec766bca7edf105c483e3453d4c1bd03e2271
43ceea54c8b02ad28292dd72fd57ee32329d6595
/TestEnron.py
a1a9836ac39d8c9bf72e5175f9d740cc316eda5c
[]
no_license
HeYuanjiao/MLDF
5a91759e1e6ab4161667cf8994350feb8cc2a9e4
fc498d3fee99fe549c76d1087ceaf72e59e6c524
refs/heads/main
2023-01-28T17:17:44.046035
2020-12-09T03:09:21
2020-12-09T03:09:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,447
py
# -*- coding=utf-8 -*- import csv import numpy as np from sklearn.utils import shuffle from learner.cascade import Cascade from learner.measure import * # 随机排列实例数,将实例划分为训练集和测试集 def shuffle_index(num_samples): # a = range(0, 502),502是实例数 a = range(0, num_samples) # 利用shuffle函数将序列a中的元素重新随机排列 a = shuf...
[ "15097686925@163.com" ]
15097686925@163.com
edf216cf0a8e8f4f5dc73287e1c571cf3225d426
9b695bda060d67d3b9d00e566daa7c6dacf6b806
/Chapter 38 Classes/38_2_Bound_unbound_and_static_methods.py
61e2e5bcfb6b41fbd9b6d3421f8488ee2578a013
[]
no_license
erauner12/python-for-professionals
cc6409348e27d894e2cde8e75c14a5d57aa3f852
d50a14806cd0ad0727ed28facb8423bf714c4383
refs/heads/main
2023-08-05T03:49:18.890747
2021-09-22T23:53:19
2021-09-22T23:53:19
406,197,352
0
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
import inspect class A(object): def f(self, x): return 2 * x print(A.f) print(inspect.isfunction(A.f)) # True print(inspect.ismethod(A.f)) # False print(A.f(1, 7)) # Out : 14 a = A() print(A.f(a, 20)) # Out: 40 a = A() print(a.f) # <bound method A.f of <__main__.A object at ...>> print(a.f is a.f)...
[ "erauner@medallia.com" ]
erauner@medallia.com
95401a208e85c00b0c4519afca50543237ab22a6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_flab.py
6d1e9d7646f7098ee30ab0ff599f434e7b0908b7
[ "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
313
py
#calss header class _FLAB(): def __init__(self,): self.name = "FLAB" self.definitions = [u"soft, loose flesh on someone's body: "] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
8d2238fd33fe5f1aede11eefb952cc8bb0d717ca
8be083e9fbf15606201217d6c4b87c929e418065
/trunk/build/dependencies.py
135b53e7963783b34f8bc1dbfd60275835535532
[ "Apache-2.0" ]
permissive
BGCX067/faint-graphics-editor-svn-to-git
430768d441f3e9b353fbc128e132f7406ee48c0e
dad252f820d29ab336bcfa57138625dae6dfed60
refs/heads/master
2021-01-13T00:56:26.685520
2015-12-28T14:22:44
2015-12-28T14:22:44
48,752,914
1
1
null
null
null
null
UTF-8
Python
false
false
3,338
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2014 Lukas Kemmer # # 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 # # Unl...
[ "you@example.com" ]
you@example.com
01bdb13b8cd56e0277a2c5d93a87183adc3bd6c6
caa6dced49f2d03d4fed4c0e9c6f09d0d374e7ce
/Python/15657.py
0cfc7a6e9c4e8803a4ccf30ddcf6d6069828a3c8
[]
no_license
hooong/baekjoon
72e70cea5769467609150416be6f075f9d4c136a
541f67859de0871ecfa134f8e5c6a8f399d17a1e
refs/heads/master
2022-04-06T09:21:26.761766
2022-03-02T12:57:21
2022-03-02T12:57:21
180,535,683
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
# 15657번 N과 M (8) import sys # printS def printS(s): for i in s: print(i, end=' ') print() # dfs def dfs(cur, cnt, s): global arr, n if cnt == m: printS(s) return for i in range(cur, n): s.append(arr[i]) dfs(i, cnt+1, s) s.pop() # main n, m = map(...
[ "tjrwns0529@gmail.com" ]
tjrwns0529@gmail.com
5b362c67ac7d3d2992114954d0f450f5cb679a15
e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7
/flask_api/venv/lib/python3.7/site-packages/vsts/task_agent/v4_1/models/azure_subscription_query_result.py
4ebfad9ff9a2df06462ffbba86a993c478dfb19f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
u-blavins/secret_sasquatch_society
c36993c738ab29a6a4879bfbeb78a5803f4f2a57
0214eadcdfa9b40254e331a6617c50b422212f4c
refs/heads/master
2020-08-14T00:39:52.948272
2020-01-22T13:54:58
2020-01-22T13:54:58
215,058,646
1
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
[ "usama.blavins1@gmail.com" ]
usama.blavins1@gmail.com
dc7b4234417b4f328be6debd9d5c2191c8e165ff
39b0d9c6df77671f540c619aff170441f953202a
/PYTHON LIBRARY/SUB_1/functools_lru_cache.py
285397a8f7f0e5598257d78b8e4a0319ede5f20c
[]
no_license
yeboahd24/Python201
e7d65333f343d9978efff6bf86ce0447d3a40d70
484e66a52d4e706b8478473347732e23998c93c5
refs/heads/main
2023-02-06T10:24:25.429718
2020-12-26T01:08:04
2020-12-26T01:08:04
306,487,550
2
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
#!usr/bin/env/python3 # The lru_cache() decorator wraps a function in a “least recently used” cache. Arguments to # the function are used to build a hash key, which is then mapped to the result. Subsequent # calls with the same arguments will fetch the value from the cache instead of calling the # function. The...
[ "noreply@github.com" ]
yeboahd24.noreply@github.com
5eebf01189a74dd5e2e83fd2153cfd3133b4fb10
24f2696aab87f1632705a7c8b2d3b866e26aa3ee
/product_array_except_self_238.py
49f524714ed803ae251420e8f3626e3850cdae71
[]
no_license
adiggo/leetcode_py
44a77a0b029f4d92bd0d8e24cad21ceea52e7794
4aa3a3a0da8b911e140446352debb9b567b6d78b
refs/heads/master
2020-04-06T07:05:21.770518
2016-07-01T16:00:40
2016-07-01T16:00:40
30,397,276
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
class Solution(object): def productExceptSelf(self, nums): """ :type nums: List[int] :rtype: List[int] """ helper1 = [1] * len(nums) helper2 = [1] * len(nums) for i in xrange(1, len(nums)): helper1[i] = nums[i - 1] * helper1[i - 1] for j i...
[ "adiggo@gmail.com" ]
adiggo@gmail.com
14c85b88fb9533979537167aa4569a09a1e6bf74
74f902dedade999b9b6d9567c87f80d5975d6813
/day2/tuples.py
ca44b2b3351f2aefa8f9842677bf09823a2c34f9
[ "MIT" ]
permissive
britneh/CS35_IntroPython_GP
ed315daad2b06eeef9ec7d1040e3c5a874dbaf0d
e0a3441766973a833341b3f1f16f33d6c9f5c0d3
refs/heads/main
2022-12-05T09:29:54.053705
2020-09-02T21:13:19
2020-09-02T21:13:19
291,771,959
0
0
MIT
2020-09-02T21:12:59
2020-08-31T16:48:36
null
UTF-8
Python
false
false
161
py
l1 = [1, 3, 5, 7, 9] # list mutable (read write) t1 = (1, 3, 5, 7, 9) # tuple imutable (read only) def f(x): x.append(29) f(l1) print(l1) f(t1) print(t1)
[ "tomtarpeydev@gmail.com" ]
tomtarpeydev@gmail.com
573634b81d90dfc1247320dcaf317ec636e8aa10
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/gui/scaleform/framework/managers/textmanager.py
ceb73a75fefd838e111c64767d74bf99d3f318fa
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,092
py
# 2015.11.18 11:55:27 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/framework/managers/TextManager.py from debug_utils import LOG_ERROR from gui.Scaleform.framework.entities.abstract.TextManagerMeta import TextManagerMeta from gui.Scaleform.genConsts.TEXT_MANAGER_STYLES import TEXT_MANAG...
[ "info@webium.sk" ]
info@webium.sk
e277aaaa7153abbbce1d4bf5b9680ab6ffaec947
34a043e6961639657e36e7ac9fd459ad5b1f6de1
/openpathsampling/experimental/simstore/test_custom_json.py
84d5858ed3fc2690d2f37875129014def11c313e
[ "MIT" ]
permissive
dwhswenson/openpathsampling
edaddc91e443e7ffc518e3a06c99fc920ad9d053
3d02df4ccdeb6d62030a28e371a6b4ea9aaee5fe
refs/heads/master
2023-02-04T12:31:17.381582
2023-01-30T21:17:01
2023-01-30T21:17:01
23,991,437
3
1
MIT
2022-08-12T17:48:04
2014-09-13T10:15:43
Python
UTF-8
Python
false
false
4,275
py
from .custom_json import * import json import pytest import numpy as np from numpy import testing as npt from . import test_utils class TestJSONSerializerDeserializer(object): def test_add_codec(self): # without bytes codec, can't serialize numpy serialization = JSONSerializerDeserializer([numpy_...
[ "dwhs@hyperblazer.net" ]
dwhs@hyperblazer.net
11ee6d575b465139a25da977604528df4b86f995
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/139/usersdata/237/61913/submittedfiles/diagonaldominante.py
00c769a428617b962e36722463af9d2a38182937
[]
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
300
py
# -*- coding: utf-8 -*- import numpy as np a=int(input("Digite o numero de linhas: ")) b=int(input("Digite o numero de colunas: ")) n=np.zeros((a,b)) for i in range(0,n.shape[0],1): for j in range(0,n.shape[1],1): n[i,j]=float(input("Digite o termo: ")) for i in range(0,shape[0],1):
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8c76e72e25df0c80cd16d788bd40107a3341a2f6
6ae5400d117613ec162c41ed297915bad2936c24
/Chapter09/flip_image.py
179d06a803d00cae9a60ee59502adf439081b590
[ "MIT" ]
permissive
PacktPublishing/Automate-it
83390b81a299a08cd01871c5f389758d4720a486
203bcf984ae61049e880d420ab77a50332f8d6f9
refs/heads/master
2022-11-01T23:08:40.033898
2022-10-31T06:46:33
2022-10-31T06:46:33
80,894,455
30
21
null
null
null
null
UTF-8
Python
false
false
335
py
from PIL import Image #Get the image object img = Image.open('sunset.jpg') #Rotate the image by 180 deg img.rotate(180).save('sunset180deg.jpg') #Flip the images horizontally and vertically img.transpose(Image.FLIP_LEFT_RIGHT).save('sunset_horizontal_flip.png') img.transpose(Image.FLIP_TOP_BOTTOM).save('sunset_verti...
[ "noreply@github.com" ]
PacktPublishing.noreply@github.com
a34446385faf4891261d8eed7a2c1d18b95e45fe
5873213f0615c13d26c389d8e6aff0291e639d51
/migrations/versions/1d067cc24a5a_add_track_id_in_invitation.py
697953b4bf3ce4cfb56eae23d68a7eae75a57664
[ "MIT" ]
permissive
conferency/conf-panda
15d9645d5834b78ea27560c58d15a0fe628749ab
d69094174e880b771cd1a5cad981f65374008359
refs/heads/master
2020-05-18T16:03:56.716017
2019-05-18T04:03:55
2019-05-18T04:03:55
184,514,509
0
2
MIT
2019-05-18T04:03:57
2019-05-02T03:14:46
JavaScript
UTF-8
Python
false
false
933
py
"""add track_id in invitation Revision ID: 1d067cc24a5a Revises: 4c4af1936ba4 Create Date: 2016-08-02 17:42:13.459631 """ # revision identifiers, used by Alembic. revision = '1d067cc24a5a' down_revision = '4c4af1936ba4' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated ...
[ "harryjwang@gmail.com" ]
harryjwang@gmail.com
41cc0fd22a2dd5f4544423c7d5e5d3736e31e8b9
9099ed0407521ac40b88f3b92872307f66c57bf9
/codes/py/test_ws/test_ws_server.py
ab474cbdebac6c13b384a84bd1eea74c8c7a0d65
[]
no_license
jiluhu/dirtysalt.github.io
0cea3f52d2c4adf2bbf5c23b74f4cb1070025816
c026f2969c784827fac702b34b07a9268b70b62a
refs/heads/master
2020-08-31T09:32:05.273168
2019-10-29T01:53:45
2019-10-29T01:53:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,729
py
#!/usr/bin/env python # coding:utf-8 # Copyright (C) dirlt import asyncio import logging import time from autobahn.asyncio.websocket import WebSocketServerFactory, WebSocketServerProtocol from redis_queue import RedisQueue # # 这个地方似乎有bug, 如果使用uvloop的话,整个代码会hang住 # import uvloop # # asyncio.set_event_loop_policy(uvlo...
[ "dirtysalt1987@gmail.com" ]
dirtysalt1987@gmail.com
9a3662c1bc6ec6e4f634b89a058657cab892da26
d2e69d4d3d1e11a87f5a377e4a423422fe0a7058
/pandas_code/essential_functionalty/indexing_selection_and_filtering.py
81501debdcb7dca972d99a3dd422ebe4bcdeec75
[]
no_license
oJacker/_python
6f30dd4a60c1593d27c00ac485163fc0ba77dd8c
8086d0cd78e156abfff9819a56384149dd431c56
refs/heads/master
2021-05-06T03:13:29.167281
2018-02-01T09:41:42
2018-02-01T09:41:42
114,827,084
1
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
# -*- coding: utf-8 -*- ''' • Series索引(obj[...])的工作方式类似于NumPy数组的索引,只不过Series的 索引值不只是整数。 • 利用标签的切片运算与普通的Python切片运算不同,其末端是包含的 (inclusive)。 • 对DataFrame进行索引其实就是获取一个或多个列 • 为了在DataFrame的行上进行标签索引,引入了专门的索引字段ix ''' import numpy as np from pandas import Series, DataFrame print('Series的索引,默认数字索引可以工作。') obj = Series(np.arange...
[ "623657285@qq.com" ]
623657285@qq.com
5bb6e469ebd7235391d2aab65a0d6343bcab59a4
c06d18ac5b87b3b82fc486454c422b119d6c1ee9
/src/preprocess/text/sogou.py
30ae24bd466ca6fff2531855c09348c7a9a164c0
[]
no_license
tangermi/nlp
b3a4c9612e6049463bf12bc9abb7aff06a084ace
aa36b8b20e8c91807be73a252ff7799789514302
refs/heads/master
2022-12-09T12:33:15.009413
2020-04-03T04:03:24
2020-04-03T04:03:24
252,056,010
0
0
null
2022-12-08T07:26:55
2020-04-01T02:55:05
Jupyter Notebook
UTF-8
Python
false
false
2,982
py
# -*- coding:utf-8 -*- from ..base import Base import os import pandas as pd import random ''' # sogou新闻mini数据集 http://www.sogou.com/labs/resource/cs.php 读取文件夹树的txt文件 输出为csv格式的文件 In: 我要吃饭了 Out: ['我', '要', '吃饭', '了'] ''' # 数据预处理 class Sogou(Base): def __init__(self, dic_config={}, dic_engine={}): self.dic...
[ "n10057862@qut.edu.au" ]
n10057862@qut.edu.au
e0b751fc59d2240ee869ee7941511ebd560f22ca
997f4d09a04e163fd749c69b0a65614da6faada6
/Product_Info.py
80c8476eac68934fef1ab2e1c858dc68c7716dd5
[]
no_license
viralsir/ECDemo
410f442536dd418c144e51b0839dddb710880af5
53ba8f27dade0b5b80cd098f8c3f1a9b8cedacdc
refs/heads/master
2023-03-21T07:57:55.158407
2021-03-23T12:54:59
2021-03-23T12:54:59
350,690,317
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
from util_lib import is_nagetive class Product: id=0 name="" qty=0 rate=0 price=0 def setProduct(self): self.id=is_nagetive(int(input("Enter Product Id :")),title="Id :") self.name=input("Enter Product Name :") self.qty=is_nagetive(int(input("Enter Product Qty :")),titl...
[ "viralsir2018@gmail.com" ]
viralsir2018@gmail.com
fe0ca77ec8a4eeac17ef18c28e3792ad07980656
1770b125d1684c09091d8694b0295de16102990f
/cltk/utils/file_operations.py
e0540566a6feaec3a0f2db8727f62062ca3e17f2
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
coderbhupendra/cltk
79410ec7eec9727c99c08dc83b4b5f43a0fe36de
7f6ab523d157fb874c42928e2cdfb0c6ddf4e4b5
refs/heads/master
2021-01-22T16:13:24.844596
2016-04-16T21:01:28
2016-04-16T21:01:28
52,906,095
1
0
null
2016-04-16T23:14:15
2016-03-01T20:05:00
Python
UTF-8
Python
false
false
895
py
"""Miscellaneous file operations used by various parts of the CLTK.""" __author__ = 'Kyle P. Johnson <kyle@kyle-p-johnson.com>' __license__ = 'MIT License. See LICENSE.' from cltk.utils.cltk_logger import logger import pickle def open_pickle(path: str): """Open a pickle and return loaded pickle object. :typ...
[ "kyle@kyle-p-johnson.com" ]
kyle@kyle-p-johnson.com
2d012fd08bf234e4fcecc8c1240aa00d6ca7546d
4331b28f22a2efb12d462ae2a8270a9f666b0df1
/.history/dvdstore/webapp/views_20190913182252.py
cb42187fff617202e0416046cd182fd43957dac1
[]
no_license
ZiyaadLakay/csc312.group.project
ba772a905e0841b17478eae7e14e43d8b078a95d
9cdd9068b5e24980c59a53595a5d513c2e738a5e
refs/heads/master
2020-07-26T23:30:22.542450
2019-09-16T11:46:41
2019-09-16T11:46:41
200,703,160
0
0
null
2019-08-05T17:52:37
2019-08-05T17:52:37
null
UTF-8
Python
false
false
6,179
py
from django.shortcuts import render from .models import DVD, Transaction, Customer from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator from django.db.models import Q from django.contrib.auth.models import User, auth from django.shortcuts import render, redirect from django.contrib import messages fr...
[ "uzairjoneswolf@gmail.com" ]
uzairjoneswolf@gmail.com
ec182f5612596a7039c0908019cab024ef85b5b8
7c16a9f999f966060c064ae5bd4bddaf8f4e1dd0
/time_pallindrome.py
28d1eb6ad0da5ecc4682074559829912b8fe91bc
[]
no_license
sbd2309/Adv.Python
fd5ed698b14c75484903006da7753a155cf11b47
f7ef906cd78114643ffaaaaca6d4cb0ccfb34f62
refs/heads/master
2021-10-25T01:48:29.420102
2021-10-17T06:20:11
2021-10-17T06:20:11
232,631,577
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
def time_pallindrome(n): x = 0 s1 = '' s2 = '' for i in n: if i == ':': x = 1 elif x == 0: s1 = s1 + i elif x == 1: s2 = s2 + i n2 = int(s2) while True: xy = str(n2) yx = xy[::-1] if s1 == yx: print(n...
[ "noreply@github.com" ]
sbd2309.noreply@github.com
f9746b84c22258991234cf314ab1ee76520e56cb
a3d1e8a67ed43e1bea59180cc51c49f25a961a49
/scripts/lib/python/ld/edseg/exp/paula_export.py
0477c0f5b5c5b754c865dc56f15353ab46931e54
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
WladimirSidorenko/TextNormalization
38b076d88a2de40dae72dc8b4096e354b774f2f4
ac645fb41260b86491b17fbc50e5ea3300dc28b7
refs/heads/master
2020-04-14T16:48:42.541883
2019-09-29T23:38:28
2019-09-29T23:38:28
163,962,092
1
0
null
null
null
null
UTF-8
Python
false
false
2,914
py
#!/usr/bin/env python # -*- coding: utf-8 -*- class PaulaExporter(object): '''EDSeg PAULA (Potsdamer Austauschformat für linguistische Annotation) exporter ''' EDSEG = 'edseg' SDS = 'sds' EDS = 'eds' EDS_FEATS = ('type', 'parent') def __init__(self, project, path=None): self.p...
[ "wlsidorenko@gmail.com" ]
wlsidorenko@gmail.com
c658e2a34100833982bf9ec68969972ef4a33de2
2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac
/Python/Core/Lib/new.py
c1ccf4e5e3837ce0f1ac30066a7c459f5021be4d
[]
no_license
FingerLeakers/DanderSpritz_docs
f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364
d96b6a71c039b329f9f81544f645857c75360e7f
refs/heads/master
2021-01-25T13:05:51.732149
2018-03-08T01:22:49
2018-03-08T01:22:49
123,527,268
2
0
null
2018-03-02T03:48:31
2018-03-02T03:48:30
null
UTF-8
Python
false
false
805
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20) # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] # Embedded file name: new.py """Create new objects of various types. Deprecated. This module is no longer required except for backward...
[ "francisck@protonmail.ch" ]
francisck@protonmail.ch
22b8133b627fb154a59167a3606b30dba808f8ff
7196fa6e5bef1c2714dc49bb25eb11cfd531c07d
/setup.py
4fe5e05474b981cd135b64e479da89895ab20934
[ "MIT" ]
permissive
dinarior/daft
0da226bc951195c6c1c92b8cdff87bc303793f60
c982155f5fc27d1da1617ebf8a687af388cd0efa
refs/heads/master
2020-05-09T13:40:50.913111
2019-04-16T12:42:16
2019-04-16T12:42:16
181,163,124
2
2
MIT
2019-07-02T06:06:11
2019-04-13T11:49:00
Python
UTF-8
Python
false
false
1,246
py
#!/usr/bin/env python try: from setuptools import setup, Extension setup, Extension except ImportError: from distutils.core import setup from distutils.extension import Extension setup, Extension import os import re import sys if sys.argv[-1] == "publish": os.system("python setup.py sdist up...
[ "danfm@nyu.edu" ]
danfm@nyu.edu
c1858d8a5334c24b9fa6802424d3e36b8b1618bc
cf5b54b2c84437d9e72575589812b88921d4430c
/server/message/route.py
3fa6446bb680b052142382440f5499ae04a5073f
[]
no_license
hw233/gameserver3
90fc3b8b8e8f809b7c3197fc97145fb264166b93
d86ef3b3313ef51df5ba01bc700877827b0a81cd
refs/heads/master
2022-01-13T07:40:38.211070
2019-05-11T02:15:14
2019-05-11T02:15:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,903
py
#coding: utf-8 from message.base import * import random class SimpleRoute: def __init__(self): self.cache = {} def get_any_service(self,server,header): '''随机发给任一服务''' if header.route >= 0: return header.route ids = self.cache.get(header.comma...
[ "87399497@qq.com" ]
87399497@qq.com
dd1b2907c83b59b45f29cd3e2ced242096ff6fab
14d4c64c2a926c013fa40d42c73318c44fb3c4e8
/scripts/dirichlet_3d_triangle_plot.py
e612d899597d49377839e90e16bd005ffc738914
[ "MIT" ]
permissive
qiuhuachuan/pyprobml
7e70a733cbae42ddaef12563594b50833a02b9bf
8c83f8d565b8979f4757764d1bb3bd284c238a32
refs/heads/master
2023-07-11T22:01:33.473460
2021-08-16T03:06:30
2021-08-16T03:06:30
332,373,785
0
0
MIT
2021-05-18T07:24:25
2021-01-24T05:23:57
null
UTF-8
Python
false
false
1,802
py
import numpy as np import matplotlib.pyplot as plt import pyprobml_utils as pml import scipy.spatial import matplotlib.tri as mtri from matplotlib.patches import FancyArrowPatch from mpl_toolkits.mplot3d import proj3d #This class comes from http://stackoverflow.com/questions/22867620/putting-arrowheads-on-vectors-in-m...
[ "murphyk@gmail.com" ]
murphyk@gmail.com
513280a0bf114c9875c8169c50851985dfbd6ab5
a39fbe6568e2df509d3889b4b43aab27c5ad04aa
/__unported__/project_cost_plan_sale/wizard/__init__.py
006580d522bcd3b04d2d3cc58a09e152ebd363d9
[]
no_license
OpusVL/odoo-project-management
796793d1fa7558ad2b676748b23d5c0311c42aa2
97ac8dbfddee85d06a4ae284c04afbed5349d82e
refs/heads/8.0
2021-01-13T02:26:26.700928
2015-08-24T12:32:29
2015-08-24T12:32:29
24,458,491
6
14
null
2015-08-23T06:19:58
2014-09-25T13:12:36
Python
UTF-8
Python
false
false
1,104
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2011 Eficent (<http://www.eficent.com/>) # Jordi Ballester Alomar <jordi.ballester@eficent.com> # # This program is free software: you can redistribute it and/or modify # it und...
[ "jordi.ballester@eficent.com" ]
jordi.ballester@eficent.com
85bca0f366f5e8d13ce2ae4dd91010eed0762f51
130a98632d2ab4c171503b79e455b7aa27a1dda4
/models/official/vision/detection/modeling/base_model.py
e9dd5c6d11c801f8d7c9b296c6b4ae8d749d46fe
[ "MIT", "Apache-2.0" ]
permissive
aboerzel/German_License_Plate_Recognition
d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787
6fc53292b1d3ce3c0340ce724c2c11c77e663d27
refs/heads/master
2023-01-30T18:08:37.339542
2023-01-07T07:41:36
2023-01-07T07:41:36
245,586,430
34
12
MIT
2023-01-07T07:41:37
2020-03-07T07:16:51
Python
UTF-8
Python
false
false
4,631
py
# Copyright 2019 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...
[ "andreas.boerzel@gmx.de" ]
andreas.boerzel@gmx.de
c5c7f1387c04c1dcf82c8fca038f2a525e9e0f32
616d502a84d123a06cf847141b0e553f5db66f3b
/scripts/hmmer3/extract_hits_from_hmm_output.py
36c656b5591a343a7a986ab1a8c74662e092cc98
[ "MIT" ]
permissive
wangpanqiao/MAVR
a95b225484a80fdea490c0ad909a32b7ebfef3bb
c1f86a408ca2e369b2fac874240190bc08994d7b
refs/heads/master
2020-05-23T11:52:08.964020
2019-05-10T08:21:26
2019-05-10T08:21:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,152
py
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import os import sys import argparse from multiprocessing import Pool from Bio import SearchIO from RouToolPa.Tools.LinuxTools import CGAS from RouToolPa.Routines import FileRoutines # make_list_of_path_to_files, split_filename, check_path, save_mkdir def make_li...
[ "mahajrod@gmail.com" ]
mahajrod@gmail.com
74e546fb390f9ac11660ae33d81aa7781da0a00d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_displayed.py
a9bca61a20de2d55bacd0b3a1bdb3ccdc1662730
[ "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
247
py
from xai.brain.wordbase.verbs._display import _DISPLAY #calss header class _DISPLAYED(_DISPLAY, ): def __init__(self,): _DISPLAY.__init__(self) self.name = "DISPLAYED" self.specie = 'verbs' self.basic = "display" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
aa218e7a99f15018fdfc44e6ac4d289c6d715c49
4f2f71beee2fb016550598996e100ce176100dcb
/python/dominoes/dominoes.py
7a9f528e9cbca8856438a259a7fb79280b681eaf
[]
no_license
charles-wangkai/exercism
d2723bd160573b2d3ee9051ff63972e5be900d87
c283a5078e3d0f05ff3d86b2c208ae086d3896a4
refs/heads/master
2023-05-11T13:11:23.776323
2023-04-30T17:40:56
2023-04-30T17:40:56
102,832,444
2
4
null
2020-03-14T15:49:13
2017-09-08T07:31:36
C++
UTF-8
Python
false
false
727
py
import itertools def can_chain(dominoes): if not dominoes: return [] for permutation in itertools.permutations(dominoes): solution = check(permutation) if solution is not None: return solution return None def check(permutation): last_prev, prev = permutation[0] ...
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
1cab58bc78a9b65958cbd4c9fe897f7e4d7e85ba
ec53949dafa4b6ad675d679b05ed7c83fef2c69a
/DataStructuresAndAlgo/Graphs/Prims.py
93d5e2128cbcc2ea050a6b0ca10ae33a99821214
[]
no_license
tpotjj/Python
9a5a20a53cd7a6ec14386c1db8ce155e0fc9ab8a
ca73c116ada4d05c0c565508163557744c86fc76
refs/heads/master
2023-07-11T16:37:10.039522
2021-08-14T11:17:55
2021-08-14T11:17:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
import sys class Graph: def __init__(self, vertexNum, edges, nodes): self.edges = edges self.nodes = nodes self.vertexNum = vertexNum self.MST = [] def printSolution(self): print("Edge : Weight") for s, d, w in self.MST: print("%s - %s: %s" % (s,...
[ "joris97jansen@gmail.com" ]
joris97jansen@gmail.com
3fa1007bbaf5e3c8fa066101231c98c47a3b3e13
6015cb9ca97544e145556a64d8984cb2d763baf9
/scripts/addons/uv_toolkit/operators/unwrap_selected.py
c6f538ec58c880b859dd5d72f8d9d1e541a25698
[ "MIT" ]
permissive
belzecue/blender-custom_config
97b02e5cc2af60ee2c344fe98ba48aabab87570d
04b671bf373f54356a8bf21dd5045eab1e7e0563
refs/heads/master
2022-12-04T17:20:35.490089
2020-08-24T17:11:00
2020-08-24T17:11:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,069
py
import bpy from bpy.props import BoolProperty class UnwrapSelected(bpy.types.Operator): bl_idname = "uv.toolkit_unwrap_selected" bl_label = "Unwrap Selected (UVToolkit)" bl_description = "Unwrap selected" bl_options = {'REGISTER', 'UNDO'} update_seams: BoolProperty(name="Update seams", default=Tr...
[ "tilapiatsu@hotmail.fr" ]
tilapiatsu@hotmail.fr
c06eecabeec08e3522e78f9fa9c089509e0556f2
abf3ea33a5fa7457d1cd735310700df9c784d1ae
/CST100/Chapter_4/Chapter_4/Ch_4_Solutions/Ch_4_Projects/4.4/arrays.py
005cf635a5c03d3e8dd00b8ec4ca4baa73865477
[]
no_license
hieugomeister/ASU
57b8a2f604a27ce339675f40d3b042ccf57efb86
3e9254cebeaeb1c57ae912d6e5a02af7531128e8
refs/heads/master
2020-12-30T16:59:17.801581
2017-05-12T22:44:44
2017-05-12T22:44:44
91,046,525
0
1
null
null
null
null
UTF-8
Python
false
false
4,229
py
""" File: arrays.py Project 4.4 Adds methods insert and remove to insert or remove an item at a given position in the array. An Array is a restricted list whose clients can use only [], len, iter, and str. To instantiate, use <variable> = array(<capacity>, <optional fill value>) The fill value is None by default. ...
[ "hieupham45@gmail.com" ]
hieupham45@gmail.com
62ebbdcb052e719e3f4d425a3c45a1963e8338de
bcca2caf10c223c143d276e1ce84457ca97bb9f8
/courses/api/permissions.py
91c019daf07f3a898f44d5b69f8775686d72132b
[]
no_license
sadakchap/e-learning
40d3a78c80dd705206f49e9a4070bc06b5020184
8e78d9cfe2443646d314ecc4b7554e16396ed526
refs/heads/master
2022-12-10T06:35:30.589661
2021-03-19T00:34:57
2021-03-19T00:34:57
192,658,464
0
2
null
2022-12-08T05:49:19
2019-06-19T04:29:37
Python
UTF-8
Python
false
false
210
py
from rest_framework.permissions import BasePermission class IsEnrolled(BasePermission): def has_object_permission(self, request, view, obj): return obj.students.filter(id=request.user.id).exists()
[ "aliceprerna@gmail.com" ]
aliceprerna@gmail.com
dfd90361b45ad4b6db3ff30a994e304127794772
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/eSxvC27HnDtM6MCCb_5.py
93804ad681efbdde9d5d52315522b54f74f6d717
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
""" You are given a `base` (int), a list of `values` (list), and a `num` (int) to be converted. You are to use the values to translate the number into the base. Return `False` if there aren't enough/too little values in the value list (it should have the same length as the `base`). The values in value list starts w...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
781048fd9551104132e5c8d912930134933692d4
de8ac44e9c6e14d0205fd1b73dd23bab2655761b
/confuse/main.py
5432360b4caf41df31eaeb088863aed70584395c
[ "MIT" ]
permissive
kyokley/confuse
8dabb52f83347f045f0bfe06e4d227a86da43f23
507e85894d380faa715983aa131cedeef60993c9
refs/heads/master
2021-01-10T08:05:22.853975
2017-08-12T23:43:11
2017-08-12T23:43:11
45,745,776
1
0
null
2017-01-12T02:08:39
2015-11-07T17:07:09
Python
UTF-8
Python
false
false
1,846
py
import re import polib import sys from .alphabet import confusablesDict NAMED_SUB_STR_REGEX = r'%(\S+)[sdiouxXeEfFgGcr]' UNNAMED_SUB_STR_REGEX = r'%[sdiouxXeEfFgGcr]' FORMATTER_REGEX = r'{\S?}' HTML_TAG_REGEX = r'''</?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)/?>''' regexes = [NAMED_SUB_STR_REGEX, ...
[ "kyokley2@gmail.com" ]
kyokley2@gmail.com