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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94547a2d5945424fe6d0f40934e69eedc44a5cba | 86a017dd4c8d4d77c511cc598190aaa9dc0ae3e8 | /data structure/mine_tree.py | 50c7743ae9b425ddc25d7aea392e1c7f56c1aff7 | [] | no_license | sungguenja/studying | fd7459eb9faa6488d7b63bf3884a92513daf3c54 | 719f4dfbda211c34de2a0c8cf3b9d3001f29fcec | refs/heads/master | 2023-08-17T13:46:44.343780 | 2023-08-10T11:55:15 | 2023-08-10T11:55:15 | 232,306,053 | 0 | 0 | null | 2022-12-16T10:53:26 | 2020-01-07T11:00:28 | Python | UTF-8 | Python | false | false | 1,713 | py | import mine_node
from collections import deque
def preorder(n):
if n is not None:
print(n.data)
preorder(n.left)
preorder(n.right)
def inorder(n):
if n is not None:
inorder(n.left)
print(n.data)
inorder(n.right)
def postorder(n):
if n is not None:
po... | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
7f08de5fc9d940f912450c7c8a1c200a3d404b56 | 21f38f1a9f6d4edfa3b233697e17d86f30b168ce | /janeway/migrations/0002_add_releases_and_credits.py | 8046d7841d026120c8fed38e386d74af867f80ff | [] | no_license | m100bit/demozoo | 3734d0126a6f0bd9ff98128a4350e40b22cdd8a3 | 93918da57e7cb96a0d2f724e5a876406d3477891 | refs/heads/master | 2023-03-14T05:34:20.323613 | 2023-01-27T23:10:32 | 2023-01-27T23:23:52 | 232,933,218 | 0 | 0 | null | 2020-01-10T00:32:53 | 2020-01-10T00:32:53 | null | UTF-8 | Python | false | false | 2,068 | py | # Generated by Django 1.11.8 on 2019-07-11 16:07
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('janeway', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Credit',
... | [
"matthew@torchbox.com"
] | matthew@torchbox.com |
93cdae512cf458fe26263ccfd8795b2587eed450 | e074be8c042a872c3c97abe6e01ccaad101f0564 | /appr/models/kv/etcd/blob.py | 17855f9cedc685bea9cfb1616fc8beca065f1a7e | [
"Apache-2.0"
] | permissive | quay/appr | 1a8f80a4a3fcaf92403cae3cba27a5fc29aeea8f | 8e3dc3417c3b43eacb6ebe9543155b3586a75146 | refs/heads/master | 2022-07-13T22:59:24.023665 | 2022-07-05T20:54:56 | 2022-07-05T20:54:56 | 233,668,674 | 1 | 2 | Apache-2.0 | 2022-07-05T20:54:56 | 2020-01-13T18:50:19 | Python | UTF-8 | Python | false | false | 238 | py | from __future__ import absolute_import, division, print_function
from appr.models.kv.blob_kv_base import BlobKvBase
from appr.models.kv.etcd.models_index import ModelsIndexEtcd
class Blob(BlobKvBase):
index_class = ModelsIndexEtcd
| [
"2t.antoine@gmail.com"
] | 2t.antoine@gmail.com |
68717c72dc0d4f2c33bd500983a9437f5e933a2b | b05b89e1f6378905bbb62e2a2bf2d4f8e3187932 | /reverseLinkedListRecursive.py | 99ef5fe1734f0dd94fb91ef0d068505c0e4d5a81 | [
"MIT"
] | permissive | anishmo99/Daily-Interview-Pro | c959cd336209132aebad67a409df685e654cfdfc | d8724e8feec558ab1882d22c9ca63b850b767753 | refs/heads/master | 2023-04-10T08:09:46.089227 | 2021-04-27T07:27:38 | 2021-04-27T07:27:38 | 269,157,996 | 1 | 1 | MIT | 2020-06-08T07:09:19 | 2020-06-03T17:57:21 | C++ | UTF-8 | Python | false | false | 471 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
else:
new_head =... | [
"ani10sh@gmail.com"
] | ani10sh@gmail.com |
9e567a091572b54744008d9eb043669ee4cda949 | 2aebde5f6ad67fbfed26427b5463036cc752eee4 | /model/news_crawler/sina_news/sina_news_daily.py | 0176b67554b8f743be47ea51d239af7657f4437d | [] | no_license | L-S-G/duck_prophet | be46d4d8fc63eb9030f55947626ffe056415eb8c | 23decf840d1431f0df1bcc8bd647c1ae01adec4e | refs/heads/master | 2023-02-23T11:51:32.262971 | 2021-01-08T10:25:18 | 2021-01-08T10:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # -*- coding:utf-8 -*-
import sys
from config.news_crawler.sina_news.sina_news_conf import entrance_list
import requests
import re
import Queue
reload(sys)
sys.setdefaultencoding('utf-8')
class SinaNewsDaily():
# 每日抓取新浪新闻文章
pass
| [
"nankaizhl@gmail.com"
] | nankaizhl@gmail.com |
30fc81e3450db9c9effaf08cd8ee119875de164a | f5627a74bb6b8923b639fad71033b18c047cd32e | /telemetry/telemetry/internal/platform/tracing_agent/battor_tracing_agent.py | d973bb13b2066ad7063a3f8a711ebea404827206 | [
"BSD-3-Clause"
] | permissive | fanarm/catapult | 49c02ffede981ef07b13069f5ce7483e17e4c3e8 | 26750ce5fe46882abb4e72dd488a1a08a2352b0f | refs/heads/master | 2021-01-15T13:14:38.301954 | 2016-09-20T10:28:20 | 2016-09-20T10:28:20 | 66,614,707 | 0 | 0 | null | 2016-08-26T03:48:41 | 2016-08-26T03:48:40 | null | UTF-8 | Python | false | false | 3,845 | py | # Copyright 2016 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.
import logging
from battor import battor_error
from battor import battor_wrapper
from catapult_base import cloud_storage
from devil.android import battery_u... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9b7d7ff0fef6c8d28943e6e8b4c7ba57787ce5a9 | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/implementation/백준_웰컴.py | 4ead3ab821977dbf627364ad7c5fb431c2ca1181 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 141 | py | # . . .
# | | _ | _. _ ._ _ _
# |/\|(/.|(_.(_)[ | )(/.
print('. . .')
print('| | _ | _. _ ._ _ _')
print('|/\|(/.|(_.(_)[ | )(/.') | [
"galid1@naver.com"
] | galid1@naver.com |
05a6dc50b44a0fa741f092b8ddad671c62f8a292 | 5ee05e771a97d465048c50a9f9490b8b0eb7c00d | /adminsavingcategory/urls.py | 06811381e6f63dddde32d3c2e9e21b9a74276420 | [] | no_license | ninsgosai/budget | 614bb01ef4a629d3a7e41205e653acadb23984fd | 722ae7f957913422f1b77247cec7d3b06156ad43 | refs/heads/master | 2023-03-26T14:52:30.242868 | 2021-03-21T07:33:49 | 2021-03-21T07:33:49 | 349,928,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.adminsavingcategory, name='adminsavingcategory'),
path('addsavingcategory', views.addsavingcategory, name='addsavingcategory'),
path('delete_saving_category', views.delete_saving_category, name='delete_saving_category'),
pa... | [
"69950933+ninad-goswamy@users.noreply.github.com"
] | 69950933+ninad-goswamy@users.noreply.github.com |
03432933f40125fba98a10caa76b8817f552cba1 | 48a1c21f3b1596acb1e987b73677af65e9f9416a | /packagehashtable.py | 8030cf73f09e9a08a4d646c5ba71761d9687cc63 | [] | no_license | earthafire/c950 | fe982685d91453b157461e2eec385a6b16aeb990 | af1116d6ab834a63c9496fa054385970f33b4c1f | refs/heads/master | 2023-06-04T07:03:18.427522 | 2021-06-21T02:54:07 | 2021-06-21T02:54:07 | 354,667,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | class PackageHashTable:
# big O: O(1)
def __init__(self):
self.current_size = 25
self.filled_slots = 0
self.data = [None] * self.current_size # list of packages
def get_filled_slots(self):
return self.filled_slots
def get_hash(self, value):
return value % self... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
d335e8ebc38e765fc6771cbf64c0c0dfd9c8c353 | b7dd07413c05a13207988535b755b7d28dbc5663 | /Chapter_7/7-3_multiples_10.py | 895c7529af5c2a587ee9e35165d9f19b3504417c | [] | no_license | GrnTeaLatte/AlienInvasion | b671a87cd730c3d4b31a8e8d760d2d02d576cfb3 | d60e8e65adb79e54a1e1c579825827355a7e85ea | refs/heads/main | 2023-02-26T03:55:26.799446 | 2020-11-03T00:42:06 | 2020-11-03T00:42:06 | 336,111,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | number = input("Pick a number from 1 to 100.")
number = int(number)
if number %10 == 0:
print("This number is a multiple of ten.")
else:
print("This number is not a multiple of ten.") | [
"audreyfu14@gmail.com"
] | audreyfu14@gmail.com |
cdc568f6f8b729c0cb3256a847415ecb9daf8769 | 78e60a7d8a67ed76244004e8a3ed573fbf396e41 | /samples/del_admin_role.py | ad52a172a1488dd2d1f632616ef30fbe40844ca8 | [
"MIT"
] | permissive | Crivez/apiclient-python | 837a9f7cc0453ccd3121311adc7920b5fe6b3e33 | 860fc054f546152a101e29b1af388c381075ac47 | refs/heads/master | 2023-06-08T13:24:09.249704 | 2021-06-17T12:16:35 | 2021-06-17T12:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
# Delete the admin role.
ADMIN_ROLE_ID = 10
try:
res = voxapi.del_admin_role(admin_role_id=ADMIN_ROLE_ID)
print(res)
except Voximplant... | [
"andrey@voximplant.com"
] | andrey@voximplant.com |
ca9fd7db7af76cf7e25b5898992310a5733c1001 | 88e06bab1989c81a2dd649bb09b144fa7c958f89 | /leet_simplify_path.py | 4bcdad7a72949aab1ed4bd7e8b422c4511b91450 | [] | no_license | VaibhavD143/Coding | 4499526b22ee4ef13f66c3abcea671c80a8f748a | 5de3bae8891c7d174cbc847a37c3afb00dd28f0e | refs/heads/master | 2023-08-06T21:56:44.934954 | 2021-10-09T18:31:29 | 2021-10-09T18:31:29 | 263,890,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | class Solution:
def simplifyPath(self, path: str) -> str:
ss = []
for s in path.split('/') :
if s and s != '.' :
if s == ".." :
if ss :
ss.pop()
else :
ss.append(s)
return '/' + '/'.jo... | [
"vaibhav.dodiya143vd@gmail.com"
] | vaibhav.dodiya143vd@gmail.com |
7565fccefc1f94b90892e24e8bc4c59ad706f8ce | 601c2b26b115e59002fd0d105daef714aa6803a2 | /Problem68.py | de6e4c370c5364a8f9fd371e752b2672507cabb7 | [] | no_license | madrury/euler | 4be0f28edbfdf5a10de1b3f68336f73dcc73455d | 04ad94fe67af09e48bd795a2cc9f229f7c752397 | refs/heads/master | 2021-01-17T07:40:46.930178 | 2018-01-21T23:49:21 | 2018-01-21T23:49:21 | 15,242,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from itertools import permutations, chain
def magic_3_ring():
S = set([1, 2, 3, 4, 5, 6])
for a_0, a_1, a_2 in permutations(S, 3):
b_0 = b_1 = b_2 = c_0 = c_1 = c_2 = None
s = a_0 + a_1 + a_2
b_1 = a_2
for b_0 in S - set([a_0, a_1, a_2]):
b_2 = c_1 = s - b_1 - b_0
if b_2 in S - set(... | [
"matthew.drury.83@gmail.com"
] | matthew.drury.83@gmail.com |
47eb91749a631a8839cbadb2b1ae5950f56d3da1 | 2834e05cfb56e16fb4a20a46d713ee3e7393a30a | /mzitu_spider.py | 0716848d851bd48611516e87812f40ec2161a5b2 | [] | no_license | jayhebe/Python_Data_Analysis | 29680f1a13ca5756b8fed96c75f7bf4ee432851e | 2bd39ce2688ef7fe4340810529f35799eff7de7a | refs/heads/master | 2020-07-04T16:29:59.470195 | 2020-01-14T15:12:42 | 2020-01-14T15:12:42 | 202,339,479 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | from bs4 import BeautifulSoup
import requests
import os
import time
mzitu_folder_name = "mzitu_images"
mzitu_base_url = "https://www.mzitu.com"
mzitu_headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) \
Chrome/77.0.3865.120 Safari/537.36",
"Request"... | [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
0e042a6a418f78275e29bb9fe263d90fa38a2b3c | cf59d92614a3505aeed9455482ef327572578228 | /venv/lib/python3.6/site-packages/djoser/urls/authtoken.py | 87ed8962570463caffb44de8795bf7e87591014d | [
"MIT"
] | permissive | slarkjm0803/autobets | e1d1a3b00cf94ee90fd1fed7464431677b4f9e11 | f92a5d999acaf5d7c83ca2768a260c2282eabbee | refs/heads/master | 2020-09-23T21:40:46.057648 | 2019-11-29T11:42:37 | 2019-11-29T11:42:37 | 225,591,526 | 1 | 0 | MIT | 2019-12-03T10:22:21 | 2019-12-03T10:22:20 | null | UTF-8 | Python | false | false | 308 | py | from django.conf.urls import url
from djoser import views
urlpatterns = [
url(
r'^token/create/$',
views.TokenCreateView.as_view(),
name='token-create'
),
url(
r'^token/destroy/$',
views.TokenDestroyView.as_view(),
name='token-destroy'
),
]
| [
"mac@macs-MacBook-Pro.local"
] | mac@macs-MacBook-Pro.local |
95205781cf62e93ad3b0b25c8c12a11ba6a87ce3 | 462c56e7454c97e0541588b9be66a4e216ea20fd | /337.house-robber-iii.py | b7df910aa92e9bed203055651ced6ea30bbb2e43 | [] | no_license | LouisYLWang/leetcode_python | d5ac6289e33c5d027f248aa3e7dd66291354941c | 2ecaeed38178819480388b5742bc2ea12009ae16 | refs/heads/master | 2020-05-27T08:38:48.532000 | 2019-12-28T07:08:57 | 2019-12-28T07:08:57 | 188,549,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | #
# @lc app=leetcode id=337 lang=python3
#
# [337] House Robber III
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#
class Solution:
def rob(self, root: TreeNode) -> int:
def rob_sub(root):
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
31356e0d99a19ee522cda865378a49b0ec1c5187 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1623.py | debc4e59f6ac2116d11df4140a57d981a774db94 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=60
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
448d240cac3a1caba7534ece90ad949bfc2df05b | 2342b8737b9ffeb9715158b8ec74a33c7a4947f6 | /koku/providers/test/azure/test_client.py | c77e19be39011df1ea5a3260c8323920ed3ce2e7 | [
"Apache-2.0"
] | permissive | project-koku/koku | 444d8df05da5416c9cee606c42481c99be45f13d | 0416e5216eb1ec4b41c8dd4999adde218b1ab2e1 | refs/heads/main | 2023-08-20T11:30:17.510182 | 2023-08-17T18:27:30 | 2023-08-17T18:27:30 | 126,496,611 | 225 | 94 | Apache-2.0 | 2023-09-14T17:38:08 | 2018-03-23T14:29:23 | Python | UTF-8 | Python | false | false | 5,298 | py | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Test Azure Client Class."""
import random
from unittest.mock import patch
from azure.identity import ClientSecretCredential
from azure.mgmt.costmanagement import CostManagementClient
from azure.mgmt.resource import ResourceManagementClient
from... | [
"noreply@github.com"
] | project-koku.noreply@github.com |
2bd53cdf3cf4e912f272d060d6e07a9650c5bf45 | 7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1 | /src/559.py | f063866e484fd03a1aa4d26b5e7b19a1d8e94cd2 | [] | no_license | ecurtin2/Project-Euler | 71f79ee90a9abd0943421677d78a6c087419e500 | 79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3 | refs/heads/master | 2021-03-19T14:52:57.045443 | 2018-04-12T22:05:37 | 2018-04-12T22:05:37 | 100,059,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | """
An ascent of a column j in a matrix occurs if the value of column j is smaller than the value of column j+1 in all rows.
Let P(k, r, n) be the number of r x n matrices with the following properties:
The rows are permutations of {1, 2, 3, ... , n}.
Numbering the first column as 1, a column ascent occurs at column... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
2970d8227cccf50e65da0dda71c84de76531c099 | e510a82771967d8677ccb77be7d8fe199970ec39 | /setup.py | 94c41706ab048c6d1b4f753918410c242eff4509 | [] | no_license | mbr/ragstoriches | 4c1a7501a05f40aad13aa796105df5ce57beb9b9 | aa11405673dfd307915e38110145cede72892804 | refs/heads/master | 2023-06-06T20:49:07.700820 | 2015-12-23T10:53:40 | 2015-12-23T10:53:40 | 8,688,096 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='ragstoriches',
version='0.4.1dev',
description='Develop highly-concurrent web scrapers, easily.',
... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
847e7826459e7dffae6d5bcde0376c4b7086d6d5 | 186f694b65b43cd56e746ce8538e4f1edad6129e | /1on1/BFS/547-friendcircle.py | 373d30f3c54ec2cd1aa12674be315d70fc5f22f8 | [] | no_license | zionhjs/algorithm_repo | 287486e0173e68cfa9e535490004c952192a54db | 26b4a770d5335abd738ae26c68d91f6af7b13749 | refs/heads/master | 2022-12-17T15:59:17.932490 | 2020-09-23T04:12:38 | 2020-09-23T04:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | class Solution:
def findCircleNum(self, M: List[List[int]]) -> int:
if not M:
return 0
for i in range(len(M)):
for j in range(len(M):
if j > i:
| [
"hjszion@gmail.com"
] | hjszion@gmail.com |
1681cf3956952c3b2add6ceb0f3ae7b5d6d21f62 | dd31ec8f3f979b0339cf686ce9094def03ef003a | /myvenv/Lib/site-packages/pylint/reporters/json.py | be37b21102933ca7fe5d330945a71fcc8280180a | [
"MIT"
] | permissive | rvmoura96/projeto-almoxarifado | 872bb945b4057bdbf108776e2101e9966a23f4de | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | refs/heads/master | 2022-11-11T07:45:33.475443 | 2017-11-21T21:13:19 | 2017-11-21T21:13:19 | 106,044,249 | 1 | 1 | MIT | 2022-10-26T05:02:32 | 2017-10-06T19:48:08 | Python | UTF-8 | Python | false | false | 1,662 | py | # Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""JSON reporter"""
from __future__ import absolute_import, print_function
import cgi
import json
import s... | [
"rvmoura.96@gmail.com"
] | rvmoura.96@gmail.com |
219305932842bb0a951cda0aab9e9783eb969379 | f361126ee099303113b5ed3cc0e838bd01a9e41b | /Semana3/pattern.py | ce21f32f68915c1c4ac487f6d46600d7fa9a86c0 | [] | no_license | ju-c-lopes/Univesp_Algoritmos_II | e1ce5557d342ea75fe929cf7b207e633f9aa89cd | 5d4eec368be91c18f0ae5c17d342e6eb0f1c79be | refs/heads/master | 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def pattern(n):
if n == 0:
print(n, end=' ')
else:
pattern(n-1)
print(n, end=' ')
pattern(n-1)
pattern(3)
| [
"juliano.co.lopes@gmail.com"
] | juliano.co.lopes@gmail.com |
73766be87c861a771f5ae7e6784f2aa71dfca856 | f954729a6941d5309f02865b5313b8524e9e6f53 | /resources/genomes.py | d4d95ae8aa3d7389867fd4d1f1a5fe88474820de | [] | no_license | bnbowman/NoAmpTools | 5f597adec6f49ab8422f443dfdd234b7a9a1dd8d | b59800c675c764ba8b5aee734c3ed79e4ac8e9a5 | refs/heads/master | 2018-12-18T18:58:27.201236 | 2018-09-14T19:33:04 | 2018-09-14T19:34:23 | 107,060,977 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | #! /usr/bin/env python
from collections import defaultdict
import matplotlib.cm as cm
class Genome(object):
def labels(self):
return self._labels
def sizes(self):
return self._sizes
def size(self, key):
return self._sizes[key]
def targets(self):
return self._target... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
7e5a0a4b2e4b83568dafc54541a561cc3404b48e | 04b71cef66a039196a2965dfab0ff56b0793fe32 | /python/run/brian_2_xgb.py | 231a8c822d29764c92ace11f0ede645217b21be4 | [] | no_license | gviejo/Prediction_xgb_head_direction | 69d57b7d7a2f366f2c96a6e6e933d0978592718f | 6fbe724f92c15afcc634c84383f57bbeedff7d24 | refs/heads/master | 2021-11-05T09:10:48.067439 | 2021-11-05T01:15:17 | 2021-11-05T01:15:17 | 93,687,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | import scipy.io
import sys,os
import numpy as np
from matplotlib.pyplot import *
import pandas as pd
import xgboost as xgb
store = pd.HDFStore("../data/spikes_brian.h5")
data = store['data']
store.close()
adn_neuron = [n for n in data.keys() if 'ADn' in n]
pos_neuron = [n for n in data.keys() if 'Pos' in n]
bi... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
d86242cd87dd8323bb6214deb9dacb2b9f552040 | 2b3817fb9e4078e912fe1df2e964a68dcd48d053 | /code/pgms/can-sum.py | 021e88ad56ffd0af0b5efa8652465910059432a6 | [
"MIT"
] | permissive | souradeepta/PythonPractice | 350a130b341efec7b22ebd061c3d89036603587f | fa956ca4b87a0eb92fee21fa78e59757ce665770 | refs/heads/master | 2023-08-08T03:46:01.238861 | 2021-09-23T02:37:13 | 2021-09-23T02:37:13 | 256,668,632 | 1 | 0 | MIT | 2021-09-22T18:54:17 | 2020-04-18T04:22:25 | Python | UTF-8 | Python | false | false | 1,810 | py | from typing import List
def canSumRepeat(target: int, input: List, memo: dict) -> bool:
"""Can the sum of input number lead to the target value
Args:
target (int): target
input (List): list of numbers
Returns:
bool: True or False
"""
if not input:
return None
... | [
"sdb.svnit@gmail.com"
] | sdb.svnit@gmail.com |
3b7dbaa8d490c3da4756ccad3b0ccf36d205d1c9 | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /C_LinkList/Swap/L2_24_Swap_Nodes_in_Pairs.py | 875e98e38bc4183aafaf3c32d8ccd3bd631735f4 | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 526 | py | """ https://leetcode.com/problems/swap-nodes-in-pairs/
from dba: https://leetcode.com/problems/swap-nodes-in-pairs/discuss/984392/Python-O(n)-solution-explained
"""
from header import *
class Solution:
def swapPairs(self, head: Optional[ListNode]) -> Optional[ListNode]:
ans = pre = ListNode(next=head)
... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
ed329fe829585a042a59d6c01959272c9d3ee31e | cdc48931cb3adb62c5e4963e43aeaf3cbc5080c4 | /Scripts/Read_omi_data.py | c977f0e3517d4bf8d1888816d3f96f6023bdb222 | [] | no_license | giovannilopez9808/SEDEMA_2000_2019 | ce8f1955b7d0f760485e2a984f36e72141867a0f | 857be19c0acd9587904107ecd470b94a6a7d93b3 | refs/heads/main | 2023-06-25T10:32:06.536548 | 2021-08-04T19:55:16 | 2021-08-04T19:55:16 | 382,178,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import matplotlib.pyplot as plt
import pandas as pd
def date_format(data):
data["Date"] = data["Datetime"].str[0:4]+"-" + \
data["Datetime"].str[4:6]+"-"+data["Datetime"].str[6:8]
data["Date"] = pd.to_datetime(data["Date"])
data.index = data["Date"]
data = data.drop(["Date", "Datetime... | [
"giovannilopez9808@gmail.com"
] | giovannilopez9808@gmail.com |
7d382bee63d4ab632c33c235b382848e1693243a | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Graph/733.py | 5ae87bd51e724a76ced10a0220dd9ab5401483da | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # 733. Flood Fill
# An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535).
# Given a coordinate (sr, sc) representing the starting pixel (row and column) of the flood fill, and a pixel value newColor, "flood fill" the image.
# To perform a "flood f... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
36c8aa5f1334f81fcdcf3cffaf6fe2f5836d7abe | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.exodusscrapers/lib/exodusscrapers/sources_placenta/en_placenta-1.7.8/ororo.py | da4be034f81d870663f7cf7dbc21eacd06fa0f60 | [
"Beerware"
] | permissive | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
0e4ea3b20b875aa0d0f525b5688b469b1ae1cd07 | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1300-1399/1389.create.target.array.in.given.order.py | fbf27d7eff98adccaa487419a2b2644f45f97e17 | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from typing import List
class Solution:
def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]:
ans = []
for i, x in zip(index, nums):
ans.insert(i, x)
return ans
if __name__ == '__main__':
solver = Solution()
cases = [
([1], [0]),
([0,1,2,3,4], [0,1,2,2,1]),
(... | [
"gyang274@gmail.com"
] | gyang274@gmail.com |
7c7a13988c1414c47d5397c1e6f97e7be4e23afa | 90b95ac525ee731ec5ba7d5da5c9038396ac4c3d | /zoom_data/migrations/0032_auto_20180129_1556.py | 852054a2c4f744955572c6156d903d4e86f2e8a1 | [] | no_license | 5klynna5/zoom_c | 33364146915611917ae0e6e0fd49233370424929 | 59c39eece1dd0ad5e7e210f4f03d8bb64df44b98 | refs/heads/master | 2021-05-12T04:06:39.031130 | 2018-08-04T23:52:19 | 2018-08-04T23:52:19 | 117,153,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('zoom_data', '0031_auto_20180129_1151'),
]
operations = [
migrations.AlterField(
model_name='annual',
... | [
"anderson.kirsten.l@gmail.com"
] | anderson.kirsten.l@gmail.com |
10b42b9c096fb19446e043163c9cfb3ae6a2ed9d | 098f80474295aa024657330b8f0813eca7d015c2 | /UnrealPythonLibrary/PythonLibraries/PythonHelpers.py | 9614830514ae6520ef42d4429675bed7ed05a765 | [] | no_license | sniler/UnrealScript | e4c4387caa6402a61b4bf0ba8952faf598e4464e | a4587d578366551b2470862f18b33c42439c5cdd | refs/heads/master | 2023-04-01T18:45:37.803690 | 2021-04-13T11:25:13 | 2021-04-13T11:25:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # unreal._ObjectBase
# https://api.unrealengine.com/INT/PythonAPI/class/_ObjectBase.html
import unreal
# object_to_cast: obj unreal.Object : The object you want to cast
# object_class: obj unreal.Class : The class you want to cast the object into
def cast(object_to_cast=None, object_class=None):
try:
... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
ff61f9d12ceebe86532e622aaecb819f0c39eb8f | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_573.py | a585295ef01ebf47f30590d98f2feb1f45f6657f | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py |
"""
There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal distance for the squirrel to collect all the nuts and put them under the tree one by one. The squirrel can only take at most one nut at one time and can move in four directions - up, ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
56113bdeea081fbc16893e7fdd670b1aea96fa36 | 4cdd73fe38027d41bda2959f940fc8a2a6c4ca78 | /l10n_ve_islr_report/__openerp__.py | 437bf359edf4cb159557ab769dca6e3d5272dd75 | [] | no_license | adrt271988/l10n_ve | af408fcc0bd2c87475beccd5ec92ee180d35a0d8 | 0a762490f4ee0a4257fb75dc5ea5607dec91d3bd | refs/heads/master | 2020-04-05T14:04:14.374612 | 2016-09-05T22:19:54 | 2016-09-05T22:19:54 | 53,200,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
f49db6663ec0211a03497fae9b0a7d5b4a7ae930 | e5f1befb7c7ca0072747b33086fc6569a6befd01 | /old/videos/02.py | 18f9ca234fd808ffb6c7a2703c07f80bf5cdd3a6 | [] | no_license | nepomnyashchii/TestGit | ae08d8bb1b7d2ab9389a309fd1dc9e24729b019c | c7abf4ab08ee3c2f3ea1fb09a1938bff7a3e0e5c | refs/heads/master | 2020-04-28T23:41:51.053547 | 2020-01-24T12:22:40 | 2020-01-24T12:22:40 | 175,666,093 | 0 | 1 | null | 2019-03-15T13:44:03 | 2019-03-14T17:08:58 | null | UTF-8 | Python | false | false | 472 | py | import random
from random import randint
import math
# from random import *
from math import sqrt
from math import sqrt as my_sqrt
for element in range (10):
print(random.randint(1, 10))
#random object (randint function as method and 1,10 are arguments)
num =10
print(math.sqrt(num))
print(sqrt(num))
... | [
"nepomnyashchii@gmail.com"
] | nepomnyashchii@gmail.com |
abf24deb33aa929ed64e1f57511d697e2db26a85 | e1436eb68e51dcd1becb7e0f8671b51eb4b23ec0 | /desktop/kde/applications/parley/actions.py | 4ecd82fc5604b7c01eeb26036ad05c7448cec256 | [] | no_license | SulinOS/SulinKDE | bef0ebbecafa6082ad7599f377c95573468827fb | 9984e0f40a5a011e59d439a24856bde78deea1c2 | refs/heads/master | 2020-09-16T05:34:20.333558 | 2020-06-10T08:10:53 | 2020-06-10T08:10:53 | 223,669,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import inarytools
from inary.actionsapi import kde
def setup():
kde.configure()
def build():
kde.make()
def install():
kd... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
cf29657646e6dc10ca79da4d4d8f025b52a0bdd1 | 7416056e689dfc94391c4b108652cea02d59a31a | /reservation/migrations/0009_auto_20200128_0154.py | ee59b4e4dcefa53f8ef69cf34200507a3c15f18a | [] | no_license | zshanabek/house-booking-app | 0ea29fb8113671eb164ead8d335a986b850898a1 | cca5225f40b8a055a2db78810258325f2ba7ded1 | refs/heads/master | 2022-11-28T00:20:12.789534 | 2020-08-14T09:16:40 | 2020-08-14T09:16:40 | 225,791,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 2.2.7 on 2020-01-27 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservation', '0008_auto_20200125_2102'),
]
operations = [
migrations.AlterField(
model_name='reservation',
name='ch... | [
"zshanabek@gmail.com"
] | zshanabek@gmail.com |
f662e13a92f620780fa576c53bfe5eaaf4dc40d3 | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /ros_ws/build/baxter_examples/catkin_generated/pkg.develspace.context.pc.py | ce6228515fedb8113370e7fdd69d2285856a9049 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/bill/bill_ros/ros_ws/devel/include".split(';') if "/home/bill/bill_ros/ros_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;xacro;actionlib;sensor_msgs;control_msgs;trajectory_msgs... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
5b7b08cc64f27b668429b60c89c6dfff39a1be47 | 3e2ec14daf3e246334e175719bc38adcf15cee5a | /challenges/graphs/black_shapes.py | 711d0422815e2bd4f14aaa3777a4b3ce9f1aaf6a | [
"CC0-1.0"
] | permissive | lukasmartinelli/sharpen | a616ee981d81efb2c844c5106ce30bd97f36e034 | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | refs/heads/master | 2021-01-20T12:11:25.452306 | 2019-06-08T21:06:12 | 2019-06-08T21:06:12 | 58,558,368 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | import collections
def adjacent_black_fields(matrix, row_idx, col_idx):
adjacent = [(row_idx + 1, col_idx), (row_idx - 1, col_idx),
(row_idx, col_idx + 1), (row_idx, col_idx - 1)]
def is_within_matrix(row_idx, col_idx):
row_count = len(matrix)
col_count = len(matrix[0])
... | [
"me@lukasmartinelli.ch"
] | me@lukasmartinelli.ch |
83f67eb1126eb3952caf34740d621467f28863e0 | 3a19c1b17f553b6d54e5c345d550ca494c3593e1 | /td1-problem22.py | 4130c59d812ac8cfd5ae3a90bfb24b370ea9992d | [] | no_license | mines-nancy-tcss5ac-2018/td1-TomLaville | 95faf73aca9375fe7ba990043e9c371713524eaa | 4967cda4594b7706d8edcdaf99a7945ea90ad8e3 | refs/heads/master | 2020-03-31T00:16:54.328127 | 2018-10-07T19:05:42 | 2018-10-07T19:05:42 | 151,733,523 | 0 | 0 | null | null | null | null | IBM852 | Python | false | false | 876 | py | values = ["\"","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M","N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
def scoreName(nom):
s = 0
for char in nom:
s+= values.index(char)
return s
def solve():
noms = [] ##liste ... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
7acffc09af312c4cf50348b8c11ac1c2f7a9299c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/134/7136/submittedfiles/triangulo.py | ed25ffd7bbcc72ababe8bfa8ba20892f52ef7ec7 | [] | 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 | 260 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input('Digite o valor de a:')
b = input('Digite o valor de b:')
c = input('Digite o valor de c:')
if a>=b>=c and a<(b+c) :
print ('S')
if (a**2)==((b**2)+(c**2)):
print
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
05947191f7a5ddb2a9ff5e8e0385d1616f07bd04 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_job.py | e9a9f325635bdf8571c3b2144867f1b62d2a343b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,080 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
69291f4bb7b082fcb63d8d0a0ab580ce63b63c2a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /GX3pQxvbTJApWYgRJ_22.py | ea51d20994790e177a6d6bdea78c3a0e36e6bd7b | [] | 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,291 | py | """
A Kaprekar Number is a positive integer that is equal to a number formed by
first squaring, then splitting and summing its two lexicographical parts:
* If the quantity of digits of the squared number is even, the left and right parts will have the same length.
* If the quantity of digits of the squared numb... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a56febed6885c0b35f0a30ddce4934f5b6836066 | 53396d12d606bebea71c149aed0150af7b17b6f5 | /array/medium/221-maximal-square-1.py | b3885e1f68c33ae2c1dc19434984e2ec1137c8ff | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """
dp
https://leetcode-cn.com/problems/maximal-square/solution/zui-da-zheng-fang-xing-by-leetcode-solution/
"""
from typing import List
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
if len(matrix) == 0 or len(matrix[0]) == 0:
return 0
maxSide = 0
... | [
"939401399@qq.com"
] | 939401399@qq.com |
33dc808475234978f454c5997f1ea1bd3996a31e | 05ace4491b97699333057e35f7e9225864f7130d | /dygraphsex/urls.py | 689201cc230eb577bc30387699482d5ada5e4179 | [] | no_license | scott858/dajs | b6878123748f563550fa2f5e59b1d5dcd4fdcaa5 | bc6b23d0e24be038e278490e34422d69b06d6543 | refs/heads/master | 2021-01-01T16:12:43.477340 | 2015-09-18T01:04:55 | 2015-09-18T01:04:55 | 41,645,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns(
'',
url(r'^$', views.example_app_view, name='main'),
url(r'^plot/$', views.plot_view, name='plot'),
)
| [
"scott.lee@nucleusscientific.com"
] | scott.lee@nucleusscientific.com |
8de4c818ca766df5a345ae0b90065e5d770de5b1 | bc4656f6f74911f114626538294e0e275105c703 | /tests/dat/test_dar_packet.py | b02d91483b4179221c025a2cbc331f1950d03916 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AdrianCano-01/spsdk | d8679ae58fc67c6369bceff4b31db658d9ad6bc4 | 4a31fb091f95fb035bc66241ee4e02dabb580072 | refs/heads/master | 2023-03-15T00:37:07.419191 | 2021-03-05T16:33:50 | 2021-03-05T16:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2020 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
"""Tests with Debug Authentication Packet (DAR) Packet."""
import os
import pytest
import yaml
from spsdk.dat.dar_packet import DebugAuthenticateResponse
from spsdk.dat import DebugAuthenticationChallenge a... | [
"maria.wisniewska@nxp.com"
] | maria.wisniewska@nxp.com |
ef1d77c3ead5c963da4bda0a6758391542a24536 | 234b581de16f0eebfe3db5281d2920d50e3a3631 | /src/com/dtmilano/android/adb/dumpsys.py | efd9d4962f5cb6e26555547c6475bd84fb789c06 | [
"Apache-2.0"
] | permissive | jili0503/AndroidViewClient | 3d453884d68b508fe4d5d28f5bcea0db0cad6062 | c1c38e6fa53dc09697eadb9c1670d6bef8587ab6 | refs/heads/master | 2020-03-06T21:07:33.744022 | 2018-03-22T04:15:50 | 2018-03-22T04:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | '''
Copyright (C) 2012-2018 Diego Torres Milano
Created on Dec 1, 2012
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... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
1e8d16b806a47a308758f7e5980e7257ffc52afe | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC645.py | 199b710d2450fe19fc854e94ce08adbfb1a3b352 | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | class Solution(object):
def findErrorNums(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
xor = xor0 = xor1 = 0
for num in range(1, len(nums) + 1):
xor ^= num
for num in nums:
xor ^= num
rightmost_bit = xor & -xo... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
70ba21f2461cde284f5558daadde2b7a79b1ce76 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/442.py | 0e9c48707a834d8dbb3976c1a62d17af127fe5a1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 341 | py | """
wordcount
"""
def word_count(text):
"""
Return a dictionary of words and their
word counds
:param text:
:return:
"""
words = {}
text = ' '.join(text.split())
for word in text.split(" "):
if word in words:
words[word] += 1
else:
words[word] ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b16e3e2cc0d11fee303d0c099065faad2ac767bd | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/wtforms/ext/django/templatetags/wtforms.py | 33a60e3feffb231cb81bf5a196b76d008f86ba12 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,878 | py | """
Template tags for easy WTForms access in Django templates.
"""
from __future__ import unicode_literals
import re
from django import template
from django.conf import settings
from django.template import Variable
from ....compat import iteritems
register = template.Library()
class FormFieldNode(template.Node):
... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
6d306b1850726a9a38b7a78a8b1bdffe4758ef5c | b6dd7ffc68957f381ae27b9e2a324f555793f238 | /part-1-basics/ch_10/write_message.py | ac1958c6899a46aaa6a517519f733af594560396 | [] | no_license | lopezjronald/Python-Crash-Course | 0a1100a1888238053f4865f8987cbc023d159d38 | b6add3fc70b0d09b4b5dab9b06a02be2ae94b9da | refs/heads/master | 2022-12-26T21:31:37.286430 | 2020-09-30T04:12:22 | 2020-09-30T04:12:22 | 298,722,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | filename = 'guest.txt'
# with open(filename, 'w') as file_object:
# file_object.write("Guest List\n")
# with open(filename, 'a') as file_object:
# response = True
# while response:
# file_object.write(input("Please enter the name of your guest: "))
# file_object.write('\n')
# conti... | [
"lopez.j.ronald@gmail.com"
] | lopez.j.ronald@gmail.com |
87baa53650db2e62d3ac7b05f529fe8fc7792281 | ec8fef96af2a6b6610d298637f05bcdfe67cba2b | /long_range_compare/multicut_solvers.py | 74311cc71aac426c617f2c912f4507dab3e459ec | [] | no_license | abailoni/longRangeAgglo | 8b98aca75b17d177cb5e408460f95ff20f411aeb | 260b452e106125722ae3824755584ce7bfd5b81c | refs/heads/master | 2021-06-25T14:14:57.150233 | 2020-11-06T11:14:52 | 2020-11-06T11:14:52 | 150,707,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | import time
import numpy as np
import sys
# -------------------
# MULTICUT SOLVERS:
# -------------------
def solve_multicut(graph, edge_costs, p=None, solver_type="exact_solver",
proposal_generator_type='WS',
fusion_moves_kwargs=None,
proposal_gener_WS_kwargs=N... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
d07b700b026672f3fe65d2438f6c08a22556f2df | 34474048ec5c4850623cf0fea993b43de76fada4 | /Tests/unittest/code_gen/tac_o1/local_chars.tac | e00797894280d102fd4d8b3938dc5cdb5c77ad11 | [] | no_license | imsure/C-- | 69a80e152936e31b14319ab16c2317d2cacc9165 | 9991e7135d6ebc8f6f08f46f37b82bfe353ec17f | refs/heads/master | 2021-01-13T02:04:07.295401 | 2015-05-01T01:26:07 | 2015-05-01T01:26:07 | 30,732,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | tac | main:
Enter main 16
x = 'A'
y = 'B'
z = 'C'
Param x
Call print_int 1
_tstr0 = "\n"
Param _tstr0
Call print_string 1
Param y
Call print_int 1
_tstr1 = "\n"
Param _tstr1
Call print_string 1
Param z
Call print_int 1
_tstr2 = "\n"
Param _tstr2
Call print_string 1
Return
| [
"imsure95@gmail.com"
] | imsure95@gmail.com |
7f91b5fa338e5d6f010bd2a91a2b4428dc2e61f6 | c3db4c42360c47471635a97568bfc9c21bc14c06 | /pdfmerge/migrations/0002_auto_20190616_1800.py | 8708c2ce97d9ded4162bf6eb11e98c10d8063689 | [
"MIT"
] | permissive | rupin/pdfmerger | 3ede9aa9f1f374eba9b1ea2c33b6920403a8f4ad | fee19523e88362d215f1a29cdab0d140f4c9385c | refs/heads/master | 2020-04-07T20:37:56.821730 | 2019-07-18T16:58:01 | 2019-07-18T16:58:01 | 158,696,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Generated by Django 2.1.3 on 2019-06-16 12:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pdfmerge', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"rupin.chheda@gmail.com"
] | rupin.chheda@gmail.com |
3d6e519d8173a542b6493ac848758d22a09e11a6 | c513008cacf5592e645e7da3652d90d12a11a988 | /program/niuke-python/Sprial_2.py | 3a59db5855032d2ff2e365c91cdbded357e65f20 | [] | no_license | PiKaChu-R/code-learn | f17cb5ad95d4e8b698320d23e472eb1687576bdc | b94814ac3c72da4c840758569005b7ac6589586a | refs/heads/master | 2020-07-01T02:42:40.235753 | 2019-09-17T13:06:50 | 2019-09-17T13:06:50 | 201,021,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : Sprial_2.py
@Time : 2019/04/22 17:09:47
@Author : R.
@Version : 2.0
@Contact : 827710637@qq.com
@Desc : None
'''
'''
Sprial.py:可实现方法
'''
# here put the import lib
import itertools
def spiral(init):
stat... | [
"827710637@qq.com"
] | 827710637@qq.com |
672a44ccb8cf352f213782f10b1bd23f6a7814e5 | c2e1b17001357f2c13f6b8287e2b6ee0956c955b | /sweetpea/metrics.py | 18f7356dec88fa61c916c2db35377da7329030b3 | [
"MIT"
] | permissive | musslick/sweetpea-py | e0c9fec35c571fbf846808cbdeec58f68c405d4c | b0d9769025022936d57d71a501c9ab5f51b4a4ef | refs/heads/master | 2023-03-21T01:50:51.045650 | 2021-03-24T19:37:18 | 2021-03-24T19:37:18 | 293,494,087 | 1 | 0 | null | 2020-09-07T10:20:12 | 2020-09-07T10:20:12 | null | UTF-8 | Python | false | false | 1,005 | py | import operator as op
from functools import reduce
from math import factorial
from typing import Dict
from sweetpea.blocks import Block
from sweetpea.constraints import ExactlyKInARow, AtMostKInARow
from sweetpea import __generate_cnf
"""
Given a block, this function will collect various metrics pertaining to the b... | [
"drautb@gmail.com"
] | drautb@gmail.com |
1ec71b82893c3f64ed495e2bf6673385d2f01c5a | c7d91529db199322e39e54fe4051a75704ea843e | /chaper01_list/t1.12.py | 52c5131518690d49becba7d34818301aad263a2f | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | #-*- coding=utf-8 -*-
'''
给定一个有序链表,其中每个节点也表示一个有序链表,
实现flatten()函数,该函数将联保扁平化成一个单链表,扁平化后也是有序的链表
'''
class LNode:
def __init__(self,x,right=None,down=None):
self._data=x
self.right=right
self.down=down
class LList:
def __init__(self,data=[]):
self.head=None
if data:
... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
97b3a57cfd6020fc40c236296004864bb838d3b5 | a00f703ac6561ac99066c7220075dd4a420bb3ff | /goiteens/models/post_manager.py | 34947ba95b09a3a68bd37065db233d762cdb45c5 | [] | no_license | volodymyrhusak/goiteens_docker | 9c3e56091218f3e7633dc5d94816959254f5c8ca | 618722fce82e85fe13f8c60ee76216fbf13338a7 | refs/heads/master | 2022-12-22T02:01:43.589833 | 2018-03-14T20:55:26 | 2018-03-14T20:55:26 | 125,272,517 | 0 | 0 | null | 2022-11-04T19:17:52 | 2018-03-14T20:55:58 | Python | UTF-8 | Python | false | false | 1,172 | py | from models.model import PostModel ,UserModel ,CommentsModel
from models.base_manager import SNBaseManager
from models.user_manager import UserManager
class PostManager(SNBaseManager):
def __init__(self):
class_model = PostModel
super(PostManager, self).__init__(class_model)
def get_posts(... | [
"vovatrap@gmail.com"
] | vovatrap@gmail.com |
b6cf62297f6f5a18d8098fd663d50ceed6d2fb6a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mnurolcay/2009/network/chat/gyachi/actions.py | 27982a32850ab05a787bda82f499cce34b776942 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
32de413aeb5cf0e0c6a5e8ba621fb4d62f92ef03 | e872e1136887cd6753ae292939e4656130c8f7d9 | /api/urls.py | f68962bb645e1c84bfe889e90658576f6e1b915b | [
"MIT"
] | permissive | florimondmanca/personal-api | 92e9d3ba8e3b16466ba54f5e9ea0493030e9cf95 | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | refs/heads/master | 2020-03-22T14:48:06.087822 | 2019-11-16T15:31:05 | 2019-11-16T15:31:05 | 140,206,398 | 4 | 1 | MIT | 2019-10-21T19:24:44 | 2018-07-08T22:16:47 | Python | UTF-8 | Python | false | false | 423 | py | """API URLs."""
from django.urls import path
from rest_framework.routers import DefaultRouter
import blog.views
from .views import obtain_auth_token
# Enable view names as 'api:...'
app_name = "api"
router = DefaultRouter()
# Blog endpoints
router.register("posts", blog.views.PostViewSet)
router.register("popular-... | [
"florimond.manca@gmail.com"
] | florimond.manca@gmail.com |
0071f6d25357b403c468cee9f14e317f1172b23f | a0488ed86f297f5f18864bf3f317dbed48b3b00d | /setup.py | 1dafa036d3e90c0bcceec24674af2c2720c35ab2 | [
"MIT"
] | permissive | DamianArado/moya-techblog | 7aefeea5bb74fa410e7cf896a83c0af0f4b0d25c | 4f7d606b22773db40850b742945e83e328c63bb7 | refs/heads/master | 2021-12-22T02:53:40.535675 | 2017-10-09T14:07:59 | 2017-10-09T14:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from setuptools import setuptools
VERSION = "0.1.0"
setup(
name='techblog',
version=VERSION,
description="Blog for Coders and Photographers",
zip_safe=False,
license="MIT",
author="Will McGugan",
author_email="willmcgugan@gmail.com",
url="https://github.com/moyaproject/moya-techblog",
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
1161c88b6f97450eb92ecddc96a9913d4b4cdca6 | 6609c26b4ed72c156104ce282c3cf88c6aac59f6 | /chapter09/example02.py | 65652c91aa68ad1a2e42702ecbcabdda16ed64fc | [
"MIT"
] | permissive | yordanivh/intro_to_cs_w_python | 4ab9dbbc2963b285b22cacb6648d1300fded18ce | eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a | refs/heads/master | 2020-09-06T12:25:23.362118 | 2020-02-14T14:07:07 | 2020-02-14T14:07:07 | 220,423,698 | 0 | 0 | MIT | 2020-02-14T14:07:08 | 2019-11-08T08:41:25 | Python | UTF-8 | Python | false | false | 179 | py | #variable holding the last value of the loop
speed = 2
velocities = [0.0, 9.81, 19.62, 29.43]
for speed in velocities:
print('Metric',speed, 'm/sec')
print('Final:', speed)
| [
"yordan@hashicorp.com"
] | yordan@hashicorp.com |
a193ad9d8cf0b7edb6fea29bdc621f469c12e0ba | 9653d2c933c95f6a7e956751814a38a935fabf14 | /source/code/menu_addFontGuideline.py | c211b008a1cac518efa7bbec3cc9d5b7c1ee2e90 | [
"MIT"
] | permissive | benkiel/guidetool | f98863c72920bbddc9fb355852a42c1e441f02ea | ee6f4fce8f472622ab20a3b09bf4594f5631be25 | refs/heads/main | 2023-06-18T21:39:24.269399 | 2021-07-15T00:41:33 | 2021-07-15T00:41:33 | 387,886,590 | 0 | 0 | MIT | 2021-07-20T18:54:21 | 2021-07-20T18:54:20 | null | UTF-8 | Python | false | false | 690 | py | import AppKit
from fontParts.world import CurrentGlyph
from mojo.UI import getDefault, CurrentGlyphWindow
from guideTool.guess import guessPositionAndAngleFromSelectedPoints
from guideTool.editor import GuidelineEditorController
def run():
glyph = CurrentGlyph()
if glyph is None:
return
font = glyp... | [
"tal@typesupply.com"
] | tal@typesupply.com |
55975b35d008f8b4dddbc1c5c47ae99ff5a4998d | 04e1c60ac7864a0bdcdd41026a2336b1ff699613 | /model/ll.py | f5098ecc5ce3319e31d675292eb699f307ed938b | [] | no_license | jianzhnie/RetinaNet_Pytorch | 00ec318d2e57c6b646f193e4d3a066f9891762b3 | 03679766847757f28bb9410c31ddaf99adf524c8 | refs/heads/master | 2020-09-22T00:09:18.617565 | 2019-11-30T08:27:36 | 2019-11-30T08:27:36 | 224,981,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py |
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
def __init__(self, num_classes):
super(FocalLoss, self).__init__()
self.num_classes = num_classes
def _one_hot_embeding(sel... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
f0ff4f0567586c4dc9dd54b5497b4819f77b2378 | 855416c669f765e4cd0f5a749e82c112641a9e11 | /Interest.blog-1.1/utils/public.py | 9cdb4342017ac3c51968c900609d649d1726535b | [
"MIT"
] | permissive | chenzhenpin/my_flask | a2f63422921d4b73c25a8e093ad09e6a48f8b568 | 0c101b7a1aa01283a0b8e3ef9b7555750ea03ecb | refs/heads/master | 2022-11-28T20:16:35.854225 | 2018-11-27T16:04:29 | 2018-11-27T16:04:29 | 159,362,205 | 0 | 0 | null | 2022-11-22T01:37:36 | 2018-11-27T16:02:52 | CSS | UTF-8 | Python | false | false | 5,254 | py | # -*- coding:utf8 -*-
import requests
import hashlib
import datetime
import random
import upyun
from uuid import uuid4
from log import Syslog
from config import SSO, MYSQL, PLUGINS
from torndb import Connection
from flask import g
#Something public variable
md5 = lambda pwd:hashlib.md5(pwd).hexdigest()
tod... | [
"1595347682@qq.com"
] | 1595347682@qq.com |
2a7d09228483b3b7c912600fea60bd9f300653f9 | 6b10d7a745b70d3b8533ea91b7bf1052e43b7d70 | /Week 4/Admin_page/main/migrations/0002_auto_20180930_2229.py | 9e5cf7c3c18d3c670ba02c13dfc5ff2f2fa3db2a | [] | no_license | Ablay09/BFDjango | 9701f6b1d36d54e6a2b511c57374e47ac0048d0e | c41423f5e86bad107769f518eeca2bfefd524919 | refs/heads/master | 2020-03-27T21:33:55.433951 | 2018-10-12T20:14:12 | 2018-10-12T20:14:12 | 147,101,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Generated by Django 2.1.1 on 2018-09-30 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='created_date',
... | [
"ablay.yedilbayev@gmail.com"
] | ablay.yedilbayev@gmail.com |
1ba7ed3f3e6972ac5d2d780b49ba2a2b641a4ba6 | d89290fd2ecc166287e065784ae290a516ca2cef | /archives/convert_framerates.py | 83c83ead40072e2feef33d6b123b8c9ad4acad3f | [
"MIT"
] | permissive | rec/bbcprc | adc85ca3fd7a7b303c83323c2bdf63d44654112f | d4f4fee5f5c0beaf9c23af6e1655dbb49f3912e3 | refs/heads/main | 2023-02-08T20:18:38.763943 | 2023-01-30T12:47:21 | 2023-01-30T12:51:38 | 130,397,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from . import audio_io
from . import constants
from . import files
from scipy import signal
import json
import numpy as np
import os
ERROR = 'fp.getframerate() != constants.FRAME_RATE: 48000'
def get_framerate_error_files():
for f in sorted(files.with_suffix(constants.METADATA_DIR, '.json')):
if json.loa... | [
"tom@swirly.com"
] | tom@swirly.com |
c07b75d16c6a9d140e590d268b51632f6b7f93bc | c8e44c50bcc77c6ad5d95516dcec8dada7c284bd | /gidgethub/abc.py | 444cf02043c0df46f44a1acc14c6f691ffc35f44 | [
"Apache-2.0"
] | permissive | Lukasa/gidgethub | 495510e276cd34f7b9c37431f3b3b011d02b0795 | 6b3dc032f1fcdf0fbf23dfb061f11588798c1e7e | refs/heads/master | 2021-01-18T16:04:54.012847 | 2017-03-08T00:51:29 | 2017-03-08T00:51:29 | 84,348,121 | 0 | 0 | null | 2017-03-08T17:31:09 | 2017-03-08T17:31:09 | null | UTF-8 | Python | false | false | 4,473 | py | """Provide an abstract base class for easier requests."""
import abc
import datetime
import json
from typing import Any, AsyncIterable, Dict, Mapping, Optional, Tuple
from . import sansio
class GitHubAPI(abc.ABC):
"""Provide an idiomatic API for making calls to GitHub's API."""
def __init__(self, requester... | [
"brett@python.org"
] | brett@python.org |
56b4116fe0ba8840df5f463b6306c8fd733d774a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02804/s286662068.py | 0f0965086da8245027d2dedeb3044d4203c93284 | [] | 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 | 622 | py |
n, k = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
# prepare combs upto 10000
mod = 10**9 + 7
facts = [1] * 100001
for i in range(0, 100000):
facts[i+1] = facts[i] * (i + 1) % mod
ifacts = [1] * 100001
ifacts[100000] = pow(facts[100000], mod - 2, mod)
for i in range(100000, 0, -1):
ifac... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
63508df4d0df451b9d0818de91691ffcd18a74bb | f5a53f0f2770e4d7b3fdace83486452ddcc996e1 | /env3/lib/python3.6/site-packages/django_rq/workers.py | b6f23d91a3623ea4116dcd4691f19e56d13e2a11 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | fireman0865/PingBox | 35e8fc9966b51320d571b63967e352a134022128 | 0f00eaf88b88e9441fffd5173a1501e56c13db03 | refs/heads/master | 2023-01-20T07:55:59.433046 | 2020-03-15T13:36:31 | 2020-03-15T13:36:31 | 247,466,832 | 1 | 0 | Apache-2.0 | 2022-12-26T21:30:32 | 2020-03-15T12:59:16 | Python | UTF-8 | Python | false | false | 1,796 | py | from rq import Worker
from rq.utils import import_attribute
from django.conf import settings
from .jobs import get_job_class
from .queues import get_queues
def get_exception_handlers():
"""
Custom exception handlers could be defined in settings.py:
RQ = {
'EXCEPTION_HANDLERS': ['path.to.handler'... | [
"fireman0865@gmail.com"
] | fireman0865@gmail.com |
67790833485b01272a5d8f7ba10d549f6bc187e6 | b7b8cac59c24c28efb3002f639865121d3b1f3e1 | /hyperion/grid/yt3_wrappers.py | fe04e9f80b875a00a54282dfaeb5b72899b325bd | [
"BSD-2-Clause"
] | permissive | koepferl/hyperion | 51a461f3cde30faa6dc82f63803b659a831273d1 | d43e1d06889e8b649038b85ef6721c64dd269a4e | refs/heads/master | 2020-04-01T19:11:18.373471 | 2015-01-14T13:31:36 | 2015-03-30T15:38:08 | 34,328,089 | 0 | 0 | null | 2015-04-21T13:17:41 | 2015-04-21T13:17:40 | null | UTF-8 | Python | false | false | 6,366 | py | from __future__ import print_function, division
import numpy as np
def almost_equal(a, b):
return a / b < 1. + 1.e-4 and b / a < 1. + 1.e-4
def amr_grid_to_yt_stream(levels, dust_id=0):
# Try and guess the refinement ratio - if it is not constant, then
# we can't use yt
if len(levels) == 0 or len... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
5db77f5c0ccc08e6f16c479642688f934e405b8b | 6757339759559cc741178ed4236b449ff27df221 | /chrZ_make_seq_for_ldhelmet.py | 5833cc08ecd26ce0740ee512fb400e2178dbabf0 | [] | no_license | anandksrao/postdoc | 18095f675cc5d67bc6e6a1b70bdc7dca29ac880d | a09e2d810bc4b562dc0e6de2999c063f5bd59cf8 | refs/heads/master | 2020-04-22T23:28:03.482966 | 2015-09-08T16:40:24 | 2015-09-08T16:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,695 | py | import re
import glob
import sys
import subprocess
import os
import copy
import argparse
import gzip
import time
def get_vcf_var(vcf_file, min_allele):
site_freq = {}
vcf_f = gzip.open(vcf_file, 'r')
for l in vcf_f:
if not re.search('^#', l):
d =... | [
"sonal.singhal1@gmail.com"
] | sonal.singhal1@gmail.com |
40bfd6b2d53f43ebd7039a79a1d0df64f193dd3e | f96636810509786bd7afdfb1580fd276b930ade1 | /client/sendDiagPopup.py | cbc672534de873b006ab10258fe7a3a4006185e6 | [] | no_license | Bharathkumar-nb/SCSI-simulation | 0b0d47fa2bce028e6214bf3e348c4be28cfaa118 | c94041043793deaa1ac4a1298eca9685952ff1eb | refs/heads/master | 2021-01-20T10:29:15.966464 | 2013-05-03T07:39:38 | 2013-05-03T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'send_diagnostic.ui'
#
# Created: Sat Apr 27 09:51:24 2013
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except... | [
"bharathkmr.nb@gmail.com"
] | bharathkmr.nb@gmail.com |
3a23b26701ccfc73af6fef97637eab76dab9b738 | 0a43afbcba776ed8ada0fef5425b1507aa4d51c1 | /smartbook/smartbook/web/migrations/0016_auto__del_ownercompanyname__add_ownercompany.py | b443dac4b4ee2cee94af23d6f41f3b7c34b366fb | [] | no_license | geethusuresh/inventory-systems | c76d6d10429f483499594df8c8f34d780531f18c | fd4211d29042776fa47da92162cbbbe8220090cd | refs/heads/master | 2021-01-02T08:51:31.278578 | 2014-09-28T07:35:54 | 2014-09-28T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'OwnerCompanyName'
db.delete_table(u'web_ownercompanyname')
# Adding model 'OwnerC... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
8b92d801b14bce7463cefb8954677a9b0694325a | 415920616d5efccee4667126c4bb29f91f1d5321 | /blood/donor/urls.py | f4eb33826ecb67e2f4cedf717f45045d210213b2 | [] | no_license | ManogaranArumugam/blood | 6c779b3bfe308a95d52cb730be65b25cb2c3eda6 | bb6ef86bfeaf67ed70eafa97dcb6b6c1da0c9f4f | refs/heads/master | 2020-03-25T22:43:31.004539 | 2018-08-09T12:43:50 | 2018-08-09T12:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.conf.urls import url
from blood.donor.views import DonorRegistrationView
urlpatterns = [
url(r'^$', DonorRegistrationView.as_view(), name='home'),
] | [
"palashpatidar51@gmail.com"
] | palashpatidar51@gmail.com |
6c340cf04b054bb75cdfb63b9fbdf78c10395714 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/pal_statistics/catkin_generated/generate_cached_setup.py | 91044b831264767383d53fe4fda54ceccbaa6122 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
55565979bd9e9ceb8e3a4424587b82a4a4a0688a | b94ab99f9c1f8bbb99afd23e1bfcd2332060b4bd | /library/migrations/0012_auto_20170805_0851.py | 050383e317e1d09ac7e3c45f3c1ea4e50db4dfca | [] | no_license | georgecai904/bookshelf | e54ccae00d4ee48e91ca1564a425ba4586b52d93 | 0002207dc8ca586ce1127d3ea98bb53102d043df | refs/heads/master | 2021-01-02T22:52:26.046535 | 2017-08-05T15:32:13 | 2017-08-05T15:32:13 | 99,409,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-05 08:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('library', '0011_auto_20170805_0850'),
]
operations = [
migrations.AlterFiel... | [
"georgemail608@gmail.com"
] | georgemail608@gmail.com |
542650ec2698610417fd1074ecee715e3a7ecf4e | 55d6de252e61c4b60688ebd8b1f637807acc1e7c | /sale_report/wizard/aged_customer_list.py | 6bee3ea9ef1268815749ad4cfb0996f5175cc12b | [] | no_license | mosadiqit/eerna_erp_uslbd | b707a1d49a4fce7c1543b63e0120e8f9b77b26ce | 73e3994a9e32df7809d244eb6592513162ab7853 | refs/heads/main | 2023-06-30T14:53:04.837197 | 2021-08-04T11:30:46 | 2021-08-04T11:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,133 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DATE_FORMAT
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DATETIME_FORMAT, BytesIO, xlsxwriter, base64
class AgedCustomerReportWizard(models.TransientModel):
_name = 'aged.customer.r... | [
"ibrahimalazhar264@gmail.com"
] | ibrahimalazhar264@gmail.com |
4c0ac46f1d84771dc353dc57195fde968e23467e | 630fe47bb5aa5e49b45ab101d87c2dd2c53d180f | /Bubble_soft_json.py | 4670c4958ea3d09c64e4879c8e4c5913ea0222f9 | [] | no_license | shrivastava-himanshu/Leetcode_practice | 467497a58d82ff3ae2569d5e610dc6f27a1f31d6 | 4c59799947c2b17bfd22ca2a08707ef85e84a913 | refs/heads/main | 2023-06-12T13:14:45.381839 | 2021-07-05T04:09:05 | 2021-07-05T04:09:05 | 367,546,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | def bubble_sort_json(elements,key='name'):
size = len(elements)
for i in range(size-1):
swapped = False
for j in range(size-1-i):
a = elements[j][key]
b = elements[j+1][key]
if a > b:
tmp = elements[j]
elements[j] = elements[j+... | [
"Himanshu.Shrivastava@vce.com"
] | Himanshu.Shrivastava@vce.com |
5b52140b650b1eaf1fa06ca3369752b6bba03eb9 | ef786be9b7c7145d63797cb8c351780059996873 | /watchlist_app/migrations/0001_initial.py | 76d570588a7802ab729017622b43b470dcd0ec1d | [] | no_license | nileshnagarwal/djangorest_course_sarda | 31c27ab625139f632d1121296c981c108301de70 | 933d7b5330d7fda1b17c367d30cb903543eebb02 | refs/heads/main | 2023-07-17T11:49:43.562982 | 2021-08-27T07:19:57 | 2021-08-27T07:19:57 | 394,706,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # Generated by Django 3.2.6 on 2021-08-10 07:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.BigAutoField... | [
"eternalshenron@gmail.com"
] | eternalshenron@gmail.com |
8aa8349d9f1213a364dd5a5713676193303f913c | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_disease_action_a.py | 20a75b8ac4bc4329cb51b260ec5349043fb09d4a | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 463 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/chemistry/shared_medpack_disease_action_a.iff"
result.attr... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
efaeae158142d783d0c4d3c5f624d9fbd08615b8 | 6f151b64427d47571ff8d02a24a98c9cbd8c68a5 | /[leetcode-08]strings-to-integer-atoi.py | 17245f772a1bae021abee1832c545d882e0b4cb2 | [
"MIT"
] | permissive | Menah3m/leetcode-Python | 50c0a0e518274cfa9a5ce939c37c075ce226dd04 | 212cae16ae868e5f031d3aeb8f614c539c1a27f1 | refs/heads/master | 2021-04-02T03:24:35.855185 | 2020-12-15T09:39:03 | 2020-12-15T09:39:03 | 248,238,533 | 0 | 0 | null | 2020-12-15T09:39:05 | 2020-03-18T13:25:55 | Python | UTF-8 | Python | false | false | 2,470 | py | """
请你来实现一个 atoi 函数,使其能将字符串转换成整数。
首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。接下来的转化规则如下:
如果第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字字符组合起来,形成一个有符号整数。
假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成一个整数。
该字符串在有效的整数部分之后也可能会存在多余的字符,那么这些字符可以被忽略,它们对函数不应该造成影响。
注意:假如该字符串中的第一个非空格字符不是一个有效整数字符、字符串为空或字符串仅包含空白字符时,则你的函数不需要进行转换,即无法进行有效转换。
在任何情况下,若函数不能进... | [
"568200065@qq.com"
] | 568200065@qq.com |
d046514180a9e37274ac16c00eabafba5f77c479 | 9a9fb43d866dc8fd829211d2b47328ef1f5ed428 | /PI_ROS_WORKSPACES/ros_catkin_ws/build_isolated/rosboost_cfg/catkin_generated/pkg.develspace.context.pc.py | 72b73d066877678ca5a5c6ee1ed6b3c0bdd104c5 | [] | no_license | droter/auto_mow | 326df42a54676079cac61fe63c40d5d04beb049b | 3742cb2ef78bc06d2771ac4c679e5110909774f8 | refs/heads/master | 2022-05-19T20:18:33.409777 | 2020-04-29T00:42:24 | 2020-04-29T00:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosboost_cfg"
PROJECT_SPACE_DIR = "/h... | [
"joshuatygert@gmail.com"
] | joshuatygert@gmail.com |
26f1f046fbcc3e826fb8fa1f586db82a5eadc742 | aea02d626c10396c2220d5ee642cb9c279e5bc37 | /migrations/versions/34c8e6e836da_email_column.py | d039f076f6691862d68521cdf0df979072f894e7 | [
"MIT"
] | permissive | Derrick-Nyongesa/Blog | 5fb176575865a75a02658bc8622fed3b9e05c919 | aff6b97aac958e6f626c934c57fffba1bb1f845d | refs/heads/main | 2023-04-14T12:21:20.890964 | 2021-04-26T07:07:55 | 2021-04-26T07:07:55 | 360,806,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """email column
Revision ID: 34c8e6e836da
Revises: 4fb50df0a785
Create Date: 2021-04-23 14:54:17.658067
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '34c8e6e836da'
down_revision = '4fb50df0a785'
branch_labels = None
depends_on = None
def upgrade():
# #... | [
"nyongesaderrick@gmail.com"
] | nyongesaderrick@gmail.com |
bd3b3d45311a3acf29007751bcf7d26209d85391 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000492.py | 7a98b03c8016f65306e467ddfb470f008a62508e | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,532 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
843d08c826f8a29b84e9e209cbd7cf14df5aad5d | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /acmicpc/solved/2448_Draw_Stars/solution.py | bd9a9474145925faf28b5b29de95d694d48808eb | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import math
base = [' * ', ' * * ', '*****']
n = input()
def get_k(n):
return int(math.log(n/3., 2))
def concat1(a, b):
return [x[0]+' '+x[1] for x in zip(a, b)]
def concat2(a, b):
return [x[0]+x[1] for x in zip(a, b)]
def nth(i):
if i == 0:
return base
else:
child = nth(... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
d12b330c8a86dae7b2e3ff874faa4a0c84278ccd | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /hm/oop/Tool.py | bc86e8847c84a48bbaf2b70702747c4f2cdd6d05 | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class Tool(object):
count = 0
def __init__(self,name):
self.name = name
Tool.count += 1
# self.count += 1
tool1= Tool('futou')
tool2= Tool('maoie')
tool3= Tool('fuzi')
Tool.count = 99
print(Tool.count)
| [
"it_hjl@163.com"
] | it_hjl@163.com |
a6223c3a60b16697d235aa1eeeb4a1c5dda89b26 | 5c254373f6725107931b68704436c2dbcd39d877 | /data_utils/FS_utils/eval_map.py | ff3f00e38f9b4ccfb4a4a595343df50faa23d6c3 | [
"MIT"
] | permissive | JunLi-Galios/unsup_temp_embed_alternating | 22330346094720ecba2e5af305febe586566b92f | 1b054fd82aadcfe1aa219be17beb77c89efd974e | refs/heads/master | 2023-03-21T04:06:16.044321 | 2021-03-20T06:06:06 | 2021-03-20T06:06:06 | 322,737,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | #!/usr/bin/env python
"""Eval level activity
"""
__author__ = 'Anna Kukleva'
__date__ = 'January 2019'
import os
from ute.utils.arg_pars import opt
import data_utils.FS_utils.update_argpars as fs_utils
fs_utils.update()
actions = ['add_dressing',
'add_oil',
'add_pepper',
'cut',
... | [
"kuklevaanna@gmail.com"
] | kuklevaanna@gmail.com |
07b1dc0344a5647316639af1cc3e0d015e5e107f | 7a5c9962ee40996a9f24f5493c715d5553052cf7 | /jobs/apps.py | 659d18b194f99c3b388bbaea0e799ca23b237f8c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | dymaxionlabs/satlomas-back | da6355d1fc90a2e9d4a7795b4751e3ebe043ffa6 | f4568f6535755fd4a2432ecc661a264872206c6c | refs/heads/master | 2023-07-17T17:07:43.037314 | 2021-08-28T15:54:21 | 2021-08-28T15:54:21 | 262,424,687 | 0 | 0 | null | 2020-05-08T20:42:49 | 2020-05-08T20:42:48 | null | UTF-8 | Python | false | false | 132 | py | from django.apps import AppConfig
class JobsConfig(AppConfig):
name = 'jobs'
def ready(self):
import jobs.signals | [
"munshkr@gmail.com"
] | munshkr@gmail.com |
78befbcc094a1c019b67d6b56a7b35cf4e3d6b6b | a89c739589d0ee29ff6fff1a1508a426dfe4489a | /basics/assert.py | b7872ff4b51952a23919213ac3ad863af939f0fd | [] | no_license | macabdul9/python-learning | 107e3533998e3f373b804d6b59152fc41938604b | f0d5e0e37cbed3d846684be80f0f92e5cbb9ceb5 | refs/heads/master | 2020-04-27T04:31:47.907486 | 2020-03-05T16:48:53 | 2020-03-05T16:48:53 | 174,057,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """
@author : macab (macab@debian)
@file : assert
@created : Sunday Mar 17, 2019 00:28:58 IST
"""
'''
Python provides the assert statement to check if a given logical expression is true or false. Program execution proceeds
only if the expression is true and raises the AssertionError when it is false. The ... | [
"abdulwaheed1513@gmail.com"
] | abdulwaheed1513@gmail.com |
7a6c254cbc7e0b5d94437a6f0cb3061191327052 | 5942e3e75ef7dc22a67b04fb1f12e14658a2093d | /documentation_files/platform.py | d83912b2d5f5be349492150ecc6894802fff344d | [] | no_license | the-factory/kdevelop-python | 9e94d2a4d4906a31a4d2a8a08300766e02d41a59 | 1e91f2cb4c94d9455a2ee22fef13df680aeed1ab | refs/heads/master | 2021-01-18T08:57:16.707711 | 2012-04-09T22:37:47 | 2012-04-09T22:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
""":synopsis: Retrieves as much platform identifying data as possible.
"""
def machine():
"""
Returns the machine type, e.g. ``'i386'``. An empty string is returned if the
value cannot be determined.
"""
pass
def node():
"""
Returns the computer's network na... | [
"svenbrauch@googlemail.com"
] | svenbrauch@googlemail.com |
428bd78c26371e93841a86cf15ea344b9b336399 | 50d39f7a91047c7498714fd68958156320efdf5f | /cwr/grammar/record/writer_territory.py | f2dcc1c3454b7d7ebcad3fc23a15bd1c95df4167 | [
"MIT"
] | permissive | toddrimes/CWR-DataApi | a82784ec198e35ab311bf5576d31eefb9269939c | 4d9f504d9032cf1aa1bd86db6efbe26042c6a6ae | refs/heads/master | 2021-01-24T23:00:57.383927 | 2015-03-13T10:04:29 | 2015-03-13T10:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # -*- coding: utf-8 -*-
from data.accessor import CWRConfiguration
from cwr.grammar.field import table as field_table
from cwr.grammar.field import special as field_special
from cwr.grammar.field import record as field_record
from cwr.grammar.field import society as field_society
from cwr.grammar.field import writer_t... | [
"programming@wandrell.com"
] | programming@wandrell.com |
b4528282c5d0f3c4f595fde399e3016578457b11 | b2ff5ac2ef633e41ecec6ff7baae4b89254bf151 | /Hello_World/src/mainapp/profiles/migrations/0005_auto_20201015_1938.py | aa9304e6331f9e2da41aa37edffbcfac7c8524bf | [] | no_license | r3bunker/Python-Projects | 2bda2be348bc4e0aa530cadbf8c26a7f163bcd3f | e8742a9c5ed92424b5aeee0041e6e2267f26ccc6 | refs/heads/master | 2023-01-04T20:30:50.250655 | 2020-10-29T17:41:14 | 2020-10-29T17:41:14 | 300,012,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Generated by Django 3.1.2 on 2020-10-16 01:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0004_auto_20201015_1913'),
]
operations = [
migrations.AlterField(
model_name='profiles',
name='prefix',... | [
"r3bunker@gmail.com"
] | r3bunker@gmail.com |
c0e8d2a4dd57f7f8365f36b333ff42431805e131 | 6300fcf67d4fcb5387a9f0f7370a8ffe8f4097d9 | /AutoParts/Tests/account_auth/views/sign_out_test.py | 958b55a8fb6505816eee2d92d73bf3c17334b56b | [] | no_license | Borislav-source/Final-Project | e34ac1cbb71e3a32ed490361d3583c2e1e8bfbc9 | 501b258d103c2e1b8947451f4bdf750709d040fd | refs/heads/master | 2023-07-17T15:03:19.390774 | 2021-09-01T14:06:09 | 2021-09-01T14:06:09 | 393,977,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from django.urls import reverse
from Tests.base.tests import AutoPartsTestCase
class SignOutTest(AutoPartsTestCase):
def test_sign_out__if_user_is_logged_out(self):
self.client.force_login(self.user)
self.assertTrue(self.user)
self.client.logout()
self.assertTrue(self.user)
| [
"tsv.borislav@gmail.com"
] | tsv.borislav@gmail.com |
11db259082bfba48cb8bd0c27e64e3d77bc28f6a | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py | 9a1260048babd250a0448eb1540cbf3fbb04e197 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 1,499 | py | # coding: utf-8
"""
openapi 3.0.3 sample spec
sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by: https://openapi-generator.tech
"""
from datetime import date, datetime # noqa: F401
import deci... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
ae132c35f9378954b35796886aca3491386db3b5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/5804612/snippet.py | 365ec99e3c6e1802b17ec70aaac6ebe7524850f5 | [
"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 | 4,333 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import curses
from math import floor
from datetime import datetime as date
from subprocess import Popen as popen
# Globals:
screen = curses.initscr()
last_width = 0
last_height = 0
alarm_hour = 0
alarm_minute = 0
alarm_state = False
alarm = None
glyph = {
'0': ["... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
d3ca685b9c2136a3c1c581a042146b3f9b4be186 | 4a0eb422dea8b3b911d56d4eae54137753cdefb0 | /python-52-weeks/Device_classes/train_netmiko.py | aa215f6fdeb69e540b32f016fa3a73ddec8598dc | [] | no_license | aramidetosin/python-netmon | a52c85bf124c051ec4ffe9a252501520d0f7bb39 | de6f935bfcb8134e769eb2be81c8ebc0abd3df1d | refs/heads/master | 2023-03-27T17:01:56.080756 | 2021-03-28T12:57:45 | 2021-03-28T12:57:45 | 332,056,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import re
from netmiko import Netmiko
junos = {
"hostname": "192.168.1.229",
"username": "admin",
"password": "juniper1",
"device_type": "juniper",
}
connection = Netmiko(
host=junos["hostname"],
username=junos["username"],
password=junos["password"],
device_type=junos["device_type"],
... | [
"aoluwatosin10@gmail.com"
] | aoluwatosin10@gmail.com |
ccad155c93d1dc3713bc931ca59362dda019cbe3 | aaf306b4117027bd66dfdbac80f2147a9b48a455 | /Day66-75/code/example01.py | b1fee7aa04cbe05762d013ada68b220f217fb53c | [] | no_license | xiangsxuan/Python-100-Days | 309da160fc4c85aa9699a0c522525e2b01e0421d | e86dece224b0a77103f6d6b734fecd9eef7dca97 | refs/heads/master | 2020-03-18T19:56:59.744032 | 2018-05-28T15:21:07 | 2018-05-28T15:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | from urllib.error import URLError
from urllib.request import urlopen
import re
import pymysql
import ssl
from pymysql import Error
def decode_page(page_bytes, charsets=('utf-8', )):
page_html = None
for charset in charsets:
try:
page_html = page_bytes.decode(charset)
break
... | [
"jackfrued@126.com"
] | jackfrued@126.com |
2dde9d6b6d7882fd2f8221971f5affeee6735fa2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03072/s635930653.py | 041f13523a4cc93f92b5e54f56ee442444872570 | [] | 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 | 178 | py | n = int(input())
h = list(map(int, input().split()))
max = h[0]
count = 0
for i in h:
if max <= i:
count += 1
max = i
else:
continue
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.