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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf728188f350dcfb861fde2b4dd2a9fe2b780b7a | 1925c535d439d2d47e27ace779f08be0b2a75750 | /leetcode/rectangle_area.py | 8c3af3ca113b7638ae1dc37b4835da44fc8a5356 | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # Find the total area covered by two rectilinear rectangles in a 2D plane.
# Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.
# Rectangle Area
# Example:
# Input: A = -3, B = 0, C = 3, D = 4, E = 0, F = -1, G = 9, H = 2
# Output: 45
# Note:
# Assume that the total ar... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
7082a6b22822ebdd2f698085fa1eb6a634eb5c00 | e61f627e6cb3b9a630d7dc336baf456ed8ba428f | /project/Board/board_app/migrations/0002_schedule.py | aebbaede192071bdb4c81f501ee97908ace4bed3 | [
"MIT"
] | permissive | osamhack2021/AI_PersonalAIAdjutant_Posung | cbae323162085f5040770c23aa628ff116a7635b | bec145406028f1156d5236cc0a43341cde6041e4 | refs/heads/main | 2023-08-12T15:45:20.448636 | 2021-10-11T14:37:21 | 2021-10-11T14:47:15 | 405,977,249 | 0 | 3 | MIT | 2021-10-11T13:58:00 | 2021-09-13T13:06:47 | JavaScript | UTF-8 | Python | false | false | 729 | py | # Generated by Django 3.2.7 on 2021-09-22 22:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('board_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Schedule',
fields=[
('id... | [
"noreply@github.com"
] | osamhack2021.noreply@github.com |
94be781625de4ac865ddbfd04bb7de6bf6725107 | 767c07db1fb131047af3d9b0a065b8fdc8aac9ab | /88-TS/88P_MA_births.py | 930a13240cee79420e789419d60dab7990a1c062 | [] | no_license | DUanalytics/pyAnalytics | e52c5469da30a5f436ec0f3120d9f15fb82fd9b3 | 107a08bebe46ea51afccfeae4a666213bb405d41 | refs/heads/master | 2023-07-08T04:32:54.758902 | 2023-07-03T14:37:04 | 2023-07-03T14:37:04 | 202,094,535 | 394 | 31 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | #Topic: Time Series - Moving Average
#-----------------------------
#libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
url='https://raw.githubusercontent.com/jbrownlee/Datasets/master/daily-total-female-births.csv'
series = pd.read_csv(url, header=0, index_col=0)
print(series.head())
se... | [
"dup1966@gmail.com"
] | dup1966@gmail.com |
cdb8e209c1c858c5c101b29961cacd068d87ad5b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_cmp_int-90.py | 9c715d9ed4e02c56946f4b46ce06dd45b09473e5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | x:int = 42
y:int = 7
print(x == y)
print(x != y)
print(x < y)
print(x <= y)
print(x > y)
$Exp
print(x == x)
print(x != x)
print(x < x)
print(x <= x)
print(x > x)
print(x >= x)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2836d2263d6ca3f5f0295a67d0a36bf4ad8ac011 | fdaba69f8d3ae3e645cb548a31111814b67f88bc | /credit/stat_risk.py | 07df8eec45ebfca263a9a7de3292c6f1d2089b9e | [] | no_license | curryli/pandasFlow | 6c381a06843f353f3449666cc9aee3e3fc2c3620 | 891963e1d9acd8cdd23732180a3fd4b4633bc335 | refs/heads/master | 2020-12-07T15:24:36.500075 | 2018-07-01T09:01:09 | 2018-07-01T09:01:09 | 95,520,789 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,104 | py | # -*- coding: utf-8 -*-
import pandas as pd
from sklearn.metrics import confusion_matrix
from sklearn.ensemble import RandomForestClassifier
from sklearn.utils import shuffle
#from sklearn.cross_validation import train_test_split
from sklearn.cluster import KMeans
from sklearn.datasets import make_blobs
import numpy as... | [
"xurui.lee@msn.com"
] | xurui.lee@msn.com |
45fee38d2c7f9809a6227b290acd16e43e0b8317 | 17e0d1a7c3cae13730a97fe7a34b8aeb58a62f53 | /fjord/feedback/migrations/0010_convert_unknown_to_empty.py | 2225d67432fba8e003504f7ea9b4b9178c3dbb0f | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | mnoorenberghe/fjord | a1bbf1f32ff7e72b0ff01588a24d1c7c50b42548 | 2d2566ee017a745ae8da0008aee8d2d131df4112 | refs/heads/master | 2020-05-29T11:38:10.077042 | 2013-10-25T19:54:50 | 2013-10-25T19:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
# Change "Unknown" to "" in platform, product, channel,
# browser and browser_version columns
for col in ... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
a5156131adad7decdab979fa611b6e0403ce27d9 | a9f4434d3b410886ffc10aa5aede3634692152b6 | /0223/ex3.py | 7138790a4c277682d90779b265d9e28d4c27e0e4 | [] | no_license | parka01/python_ex | d3690dcd8753864c335bf7782553719a072bd01d | a5811487516eb9ef86d5ae93e9060cac267b87ce | refs/heads/main | 2023-03-13T08:35:03.837790 | 2021-02-26T03:40:41 | 2021-02-26T03:40:41 | 339,892,972 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | phone={}
for i in range(5): #단순하게 반복할 때
id=(int(input(str(i+1)+'번째 학생 학번 입력: ')))
pnum=(input(str(i+1)+'번째 학생 전화번호: '))
phone[id]=pnum
print('학생 전화번호부가 완성되었습니다.')
id=int(input('검색을 원하는 학번: '))
if id in phone:
print('입력한 학생의 전화번호: '+phone[id])
#print('입력한 학생의 전화번호: '+phone.setdefault(id))똑같이 검색이 된다... | [
"68191916+parka01@users.noreply.github.com"
] | 68191916+parka01@users.noreply.github.com |
89f290f920acbb04c3c85b613ddb72c56965e3be | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/kusto/latest/get_attached_database_configuration.py | 2815c0552e8da13d186c441c1367177c96c36ec3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,893 | 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
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
f5386dc99f825a47a775ae7baaa85593eca179a2 | 29a47609913b7cec54266f230f19611b60b2080a | /tests/chainer_experimental_tests/training_tests/extensions_tests/test_make_shift.py | 1506a8b1c03a8f151a2452b1a5e0daffe45f277a | [
"MIT"
] | permissive | xiaolonghao/chainercv | ec89ec711eb05f4a9a62c7d535d0c42c49500883 | 1db5572aa4bac6c40fd811c51dd63f1b6ad57dcf | refs/heads/master | 2020-12-05T21:20:49.118214 | 2019-12-24T06:01:34 | 2019-12-24T06:01:34 | 232,251,009 | 1 | 0 | MIT | 2020-01-07T05:41:06 | 2020-01-07T05:41:05 | null | UTF-8 | Python | false | false | 770 | py | import mock
import unittest
from chainer import testing
from chainercv.chainer_experimental.training.extensions import make_shift
@make_shift('x')
def mod5_shift(trainer):
return trainer.updater.iteration % 5
class TestMakeShift(unittest.TestCase):
def test_make_shift(self):
trainer = testing.get_... | [
"Hakuyume@users.noreply.github.com"
] | Hakuyume@users.noreply.github.com |
12fed514604fb473382de638c99a62b290b03041 | c565c07bb931209e8969be4429649155102c517a | /turbulenz_tools/utils/htmlmin.py | e235ed8eb78ff8a96282cb484f161bdf0014f4a0 | [
"MIT"
] | permissive | ajbetteridge/turbulenz_tools | f1f042955b4162f17c5092bc46c7aba4e49223d5 | b78cdc5219b5e76c0b9fff76931f36032eb01258 | refs/heads/master | 2021-01-18T10:26:30.431147 | 2013-07-30T14:32:45 | 2013-07-30T14:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | # Copyright (c) 2010-2011,2013 Turbulenz Limited
import re
import logging
from HTMLParser import HTMLParser
# pylint: disable=W0403
from jsmin import jsmin
# pylint: enable=W0403
LOG = logging.getLogger(__name__)
# pylint: disable=R0904
class HTMLMinifier(HTMLParser):
"""An HTML minifier."""
REMOVE_WHITES... | [
"blakemaltby@turbulenz.biz"
] | blakemaltby@turbulenz.biz |
02adf5a4d0cf6ea1431d9e88376718b89b8dcdf4 | 5a6e91490dafa97f0c52a63eff5a39dd16b7122e | /numpy1.py | fe73cea9e0caa9c3ecf61b4e49391d034f909b92 | [] | no_license | suvimanikandan/PYTHON_PROGRAMS | 968884292ceef502b3f3b6acdea79ce192e933f8 | f4be986232bf1adef05837d67249840965fa50fc | refs/heads/main | 2023-07-15T19:15:06.567198 | 2021-08-24T14:30:08 | 2021-08-24T14:30:08 | 399,495,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import numpy
array = numpy.array([1,2,3,4])
print(array)
#another method specification
import numpy as np
array = np.array([1,2,3,4])
print(array)
from numpy import array
array = array([1,2,3,4,5])
print(array)
import numpy as np
np.random.randint(2,10)
| [
"noreply@github.com"
] | suvimanikandan.noreply@github.com |
1cfd6173fe01c72702743fc09d9fd9c3091f67b3 | 0b229456a654e1f1dedc77595ffc9be28f3b3dec | /connect/migrations/0005_auto_20210408_0120.py | 51060a77a8b84eafc23e7093b53fe92bdaf18950 | [] | no_license | TheOxFromOutOfTheBox/digi-connect | 3913d61ca0253d4580db5dcd75248314d510b6be | afb0814d5b8499e69b52a07f096fd4b213c32d06 | refs/heads/main | 2023-08-15T13:43:48.781991 | 2021-10-03T11:05:01 | 2021-10-03T11:05:01 | 413,049,713 | 0 | 0 | null | 2021-10-03T10:50:06 | 2021-10-03T10:50:05 | null | UTF-8 | Python | false | false | 575 | py | # Generated by Django 3.1.7 on 2021-04-07 19:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('connect', '0004_sectorfield_image'),
]
operations = [
migrations.AlterField(
model_name='genrefield',
name='genre_ty... | [
"shubhpathak07@gmail.com"
] | shubhpathak07@gmail.com |
282ff7bd41ac2049123bb14fdb5cef2fdb1e5620 | 30d02ec6dd309dced011d266ca40bace293fb23e | /20210309/strobogrammatic_number.py | 17ee848b1dd5ffe7fba6f605e26b66803a0c33e3 | [] | no_license | jyeoniii/algorithm | b72f5e9f7fe63098c251bcc1585787ba39ca750c | 7d80e27aec8fbac936911ee78a92c47b00daa3ba | refs/heads/master | 2023-04-15T01:39:41.149528 | 2021-04-22T13:55:58 | 2021-04-22T13:55:58 | 316,533,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/589/week-2-march-8th-march-14th/3664/
class Solution:
def isStrobogrammatic(self, num: str) -> bool:
d = { '0': '0', '1': '1', '6': '9', '8': '8', '9': '6' }
return ''.join(d[c] if c in d else 'x' for c in reversed(num))... | [
"jaykim9438@gmail.com"
] | jaykim9438@gmail.com |
00029c38b0776b9ce1699e0059d615e2a2718324 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/abc/abc035/b.py | 8cd4a8b3f0fa185df70542deddb410cd0806754c | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
S = raw_input()
T = int(raw_input())
x, y, q = 0, 0, 0
for s in S:
if s == "L": x -= 1
if s == "R": x += 1
if s == "U": y += 1
if s == "D": y -= 1
if s == "?": q += 1
x, y = abs(x), abs(y)
if... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
8e1289910e45326ea108cc201589b38ad852f355 | 2603f28e3dc17ae2409554ee6e1cbd315a28b732 | /ABC162/prob_c.py | e382adaf2fdc5a268eb3959f2d4ff1809967e3de | [] | no_license | steinstadt/AtCoder | 69f172280e89f4249e673cae9beab9428e2a4369 | cd6c7f577fcf0cb4c57ff184afdc163f7501acf5 | refs/heads/master | 2020-12-23T12:03:29.124134 | 2020-11-22T10:47:40 | 2020-11-22T10:47:40 | 237,144,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py |
import math
# input
K = int(input())
# initialization
ans = 0
# count
for a in range(1, K+1):
for b in range(1, K+1):
tmp = math.gcd(a, b)
for c in range(1, K+1):
tmp_1 = math.gcd(tmp, c)
ans += tmp_1
# output
print(ans)
| [
"steinstadt@keio.jp"
] | steinstadt@keio.jp |
9264124526e61652bc10705433fe2dea3d87d9d7 | 8f4d7da050401865af3cd3341adb323062ae6447 | /BST.py | aba1c6b86f6700824143e8c899b2cd9d094fb970 | [] | no_license | ankitomss/python_practice | e68c2446f173018c093187b9e5ba31f21f994eac | f46ab3bcafbca4d0209df3aa9114dad52bda76b2 | refs/heads/master | 2021-01-11T05:15:15.369203 | 2016-10-13T03:00:58 | 2016-10-13T03:00:58 | 69,192,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | class BST():
def __init__ (self, rootid):
self.left=None
self.right=None
self.value=rootid
def getLeftChild(self):
return self.left
def getRightChild(self):
return self.right
def setNodeValue(self,val):
self.value=val
def getNodeValue(self):
return self.value
def insertRight(self, newNode):
if ... | [
"v.ankit001@gmail.com"
] | v.ankit001@gmail.com |
364594252977d991c90375ad251b63aa4c88de27 | 1f68b6f9f55afaa7cb32df262f4fe0864472da05 | /leetcode(多线程,DP,贪心,SQL)/二刷DP与贪心LeetCode/贪心/24点游戏/24点游戏.py | 03142848e37175e52e04dc55215bb3d1c7414c95 | [] | no_license | faker-hong/testOne | 7c4496362cb5495c25c640076102fe0704f8552f | 768edc4a5526c8972fec66c6a71a38c0b24a1451 | refs/heads/master | 2022-12-04T14:47:53.614685 | 2020-10-30T03:17:50 | 2020-10-30T03:17:50 | 196,514,862 | 1 | 0 | null | 2022-11-22T02:43:32 | 2019-07-12T05:35:09 | Python | UTF-8 | Python | false | false | 987 | py | from operator import truediv, mul, add, sub
class Solution(object):
def judgePoint24(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if not nums:
return False
if len(nums) == 1:
return abs(nums[0] - 24) < 1e-6
for i in range(... | [
"42666723+hongcheng97@users.noreply.github.com"
] | 42666723+hongcheng97@users.noreply.github.com |
b3b057dba15e6741107322b1890380379675bb1d | b1f2cddce24b2ccd4195ea4b7bb316da34a8aa0a | /doit/exceptions.py | 3e7d5e8d3563aafcf7b1d89c7ccb0c2aab4ab156 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | barleyj/doit | 267038103552e05971f1dea14ecb09d16775d59a | 2411bb11984a1de33a3660b89d9a48530a3714cc | refs/heads/master | 2021-01-17T23:35:50.611235 | 2015-08-05T17:25:34 | 2015-08-05T17:25:34 | 39,857,924 | 0 | 0 | null | 2015-07-28T21:10:17 | 2015-07-28T21:10:17 | null | UTF-8 | Python | false | false | 1,864 | py | """Handle exceptions generated from 'user' code"""
import sys
import traceback
class InvalidCommand(Exception):
"""Invalid command line argument."""
pass
class InvalidDodoFile(Exception):
"""Invalid dodo file"""
pass
class InvalidTask(Exception):
"""Invalid task instance. User error on specifyi... | [
"schettino72@gmail.com"
] | schettino72@gmail.com |
5c73749bdbc1d6d217f103fe516db05470f1e006 | 00475199244d909b0bcdc3fcc9a12c8a0d44b218 | /practice_codes/arp_spoof.py | 18920555cf24acf0b189ca1c405963a727ac6fe0 | [] | no_license | tajirhas9/Learning-Ethical-Hacking | 8bacc8aadd01807d4b4895bf14e317d4e229acd6 | 60ededf2dbee3713c96a9b2d239c28f69af01479 | refs/heads/master | 2020-05-03T17:19:37.241928 | 2019-04-01T21:33:38 | 2019-04-01T21:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | # usage: arp_spoof.py [-h] [-t TARGET] [-g GATEWAY]
#
# optional arguments:
# -h, --help show this help message and exit
# -t TARGET, --target TARGET
# Target IP address
# -g GATEWAY, --gateway GATEWAY
# Router/Gateway IP address
#
import scapy.all as s... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ea06bc13c974b2214710652914e8f05648ff5a98 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02662/s567695323.py | c6906097ba949232c3cad2b22c6186087c635103 | [] | 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 | 292 | py | import sys
import numpy as np
input = lambda: sys.stdin.readline().rstrip()
MOD = 998244353
N, S = map(int, input().split())
A = list(map(int, input().split()))
dp = np.zeros(S + 1, np.int64)
dp[0] = 1
for a in A:
f = 2 * dp
f[a:] += dp[:-a]
f %= MOD
dp = f
print(dp[S])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
064923847bb9353c335f8c115806421b9fbf7503 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /119/119.pascals-triangle-ii.159819408.Wrong-Answer.leetcode.py | 5e8f5f6874b361a5cc2642ce94739bb5d0b70e2b | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | class Solution(object):
def getRow(self, rowIndex):
row = []
for i in range(rowIndex):
row.append(1)
for j in range(i, 0, -1):
row[i] += row[i - 1]
return row
| [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
2a6098fccc985a18bdc11f1521c6906e6f9c4ea4 | e01889b8da9c937bcbbf7fadb1cb27562f48a66d | /cipells/__init__.py | e92df8c2bae4c3794857cfc6841f4eaf27f6f4ea | [] | no_license | TallJimbo/cipells | 49a35160c4ba0ef527dde596040c8483ee49796e | 2a4354c7b1da0bdbda9626caea7df0292a8130ca | refs/heads/master | 2020-03-10T09:36:29.187320 | 2018-07-03T18:37:26 | 2018-07-03T18:37:26 | 129,313,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from ._cipells import (
Real2, Index2,
RealInterval, IndexInterval,
RealBox, IndexBox,
Identity, Translation, Jacobian, Affine,
Image,
Interpolant,
Kernel,
Gaussian,
)
import numpy as np
__all__ = ("Real", "Real2", "Index", "Index2",
"RealInterval", "IndexInterval",
... | [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
a7295265d8a93a7a71adaea576e0b47409cf5e00 | abd375b5370d05f1cca7dc5058831f58acaee1c6 | /farmerpaper/farmerpaper/pipelines.py | 0df958bd79cc188076c8ecb940381da023744076 | [] | no_license | AReallyMan/python_spiders | 28686b0e3eac3e77059446352d4e470c8fe2d3c5 | e065a2110bc79be1b07f5d930ecd2ed72694c903 | refs/heads/master | 2022-05-29T08:44:58.116812 | 2020-04-30T05:42:45 | 2020-04-30T05:42:45 | 260,123,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,930 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
from openpyxl import Workbook
from elasticsearch import Elasticsearch
import elasticsearch.helpers
import redis
from kafka imp... | [
"969114624@qq.com"
] | 969114624@qq.com |
35dffed562da2581937f6013ab84fa8525ba3458 | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /analysis/migrations/0049_auto_20200614_0850.py | 44c340eb4f3c8fd3dbf8af1ac9f375cb39efa770 | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | # Generated by Django 3.0.7 on 2020-06-14 00:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analysis', '0048_auto_20200608_1058'),
]
operations = [
migrations.AddField(
model_name='stockhistorydaily',
name='d... | [
"jie.han@outlook.com"
] | jie.han@outlook.com |
e396128ee31092952245e957ef8182e092417b26 | 6915d6a20d82ecf2a2a3d3cd84ca22dab2491004 | /gjproject/gjapp/admin.py | 6d188f11cfcf1025267fa41e89613bc635c7d203 | [] | no_license | iitian-gopu/django | bb4302d101f4434fb61ab374807e29699a432e42 | 31db982212bbb453cc4c56c7f5cfad9a00cd231d | refs/heads/master | 2023-05-14T07:22:35.176477 | 2021-06-04T04:43:26 | 2021-06-04T04:43:26 | 366,114,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | from django.contrib import admin
from gjapp.models import blorejobs,kolkatajobs,chennaijobs,punejobs
# Register your models here.
class kolkatajobsAdmin(admin.ModelAdmin):
list_display=['date','company','title','eligibility','address','phone'
,'email']
class blorejobsAdmin(admin.ModelAdmin):
list_display=[... | [
"gopalkrishujaiswal2030@gmail.com"
] | gopalkrishujaiswal2030@gmail.com |
a0ec131005c31d9e541e78cf63984a6873018216 | 9766843abfcd5e4b21656e3d080a467196ca7849 | /Instance_Segmentation/Unet/model/models.py | 573a2f3f423d6dfeef0f22192f63aa30879304c5 | [] | no_license | bruce1408/object_detection | aa24fc8c463fc63e4750afc83784cff2001a0d48 | 3b53ad0f875c5b207970d72bc95f1bb812eeb549 | refs/heads/master | 2023-04-03T00:22:15.918286 | 2021-03-30T02:10:48 | 2021-03-30T02:10:48 | 272,322,903 | 1 | 0 | null | 2020-09-01T10:41:13 | 2020-06-15T02:22:09 | Python | UTF-8 | Python | false | false | 3,545 | py | import torch
import torch.nn as nn
# import torch.functional as F
import torch.nn.functional as F
from torchsummary import summary
class DoubleConv(nn.Module):
"""
(convolution => [BN] => ReLU) * 2
两层卷积网络
"""
def __init__(self, in_channels, out_channels):
super().__init__()
self.d... | [
"summer56567@163.com"
] | summer56567@163.com |
c17ba725449328f79aa48053bb8979e033a3a41f | 1958631675a1eda1c2c5a018b636cb1117d90d9e | /0x0F-python-object_relational_mapping/8-model_state_fetch_first.py | 6905551eea30ba9847c9f8a05d6dd4b21b608443 | [] | no_license | Valinor13/holbertonschool-higher_level_programming | f32d6507546584c3af59e3e8ece345af70a698d6 | 5fad6ea9f28f845820b5a893feb20e83ed3fe7b4 | refs/heads/main | 2023-06-05T21:15:29.774676 | 2021-06-27T23:08:54 | 2021-06-27T23:08:54 | 361,808,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!/usr/bin/python3
"""Start link class to table in database"""
import sys
from sqlalchemy.orm import sessionmaker
from model_state import Base, State
from sqlalchemy import create_engine
if __name__ == "__main__":
engine = create_engine(
'mysql+mysqldb://{}:{}@localhost/{}'.format(sys.argv[1],
... | [
"jwcalhoun2@gmail.com"
] | jwcalhoun2@gmail.com |
405dbcec0cf3da270b2c8a3d3afbef32f9c463b9 | e12c5fd9fcdb23f7fe02fcffe57e0940a859838a | /examples/boarding_school/school/admin.py | f519665948892e9320ee0fb25f36997556cee7a2 | [] | no_license | adnanarsahd/django-boardinghouse | a14a8f333da3c77b1fe121d23f856c782c8a3f2c | 8ed97c8c1049511b75aef4f1984e1112ef4f39cc | refs/heads/master | 2020-03-25T20:51:54.839925 | 2017-04-22T14:04:26 | 2017-04-22T14:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.contrib import admin
from .models import School, Student, StaffMember, Subject, Enrolment
admin.site.register(School)
admin.site.register(Student)
admin.site.register(StaffMember)
admin.site.register(Subject)
admin.site.register(Enrolment) | [
"matt@schinckel.net"
] | matt@schinckel.net |
dfe0cc30befc7eb179acc90e42fd723366cf2fd8 | 8572ea6c0fd6ce6683d6abf2db72edca35d2ffb8 | /examples/resnet.py | c10579ce40ff2fa2e4233eaed04cb984805085a7 | [
"MIT"
] | permissive | kyhoolee/Torch-Pruning | ac98dbd1b896331e8f41a1c059503a40a4f2639e | 16952a7ee78a9a75b26c61746fef582fd81bc449 | refs/heads/master | 2022-04-09T16:16:23.572521 | 2020-03-21T16:19:45 | 2020-03-21T16:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, in_planes, planes, stride=1):
super(BasicBlock, self).__init__()
self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
... | [
"2218880241@qq.com"
] | 2218880241@qq.com |
f66fa03af307898bf535eaee737ddf749effe3b2 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/3da49cbaacc24640fca07d6aa81bd2d4caff0dda-<fetch>-fix.py | e0119a728c7881dfbbdf259e1f8b05cc045ebd90 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | def fetch(version):
base = 'http://wheels.scipy.org'
tree = html.parse(base)
root = tree.getroot()
dest = pathlib.Path('dist')
dest.mkdir(exist_ok=True)
files = [x for x in root.xpath('//a/text()') if (x.startswith('pandas-{}'.format(version)) and (not dest.joinpath(x).exists()))]
N = len(fi... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
dd1231b871a712b9fe258919c867b08d0ba727e3 | 5fa91971a552de35422698ad3e371392fd5eb48a | /totolotek/toto.py | 18a7264a5e84209b899095ec40982e59c274a256 | [
"MIT"
] | permissive | koduj-z-klasa/python101 | 64b0bf24da6c7fc29c0d3c5a74ce7975d648b760 | accfca2a8a0f2b9eba884bffe31be6d1e73fb615 | refs/heads/master | 2022-06-06T09:29:01.688553 | 2022-05-22T19:50:09 | 2022-05-22T19:50:09 | 23,770,911 | 45 | 182 | MIT | 2022-03-31T10:40:13 | 2014-09-07T21:01:09 | Python | UTF-8 | Python | false | false | 541 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import random
liczba = random.randint(1, 10)
# print "Wylosowana liczba:", liczba
for i in range(3):
print("Próba ", i + 1)
odp = input("Jaką liczbę od 1 do 10 mam na myśli? ")
# print "Podałeś liczbę: ", odp
if liczba == int(odp):
print("Zgadłe... | [
"xinulsw@gmail.com"
] | xinulsw@gmail.com |
a5c46b262577edeeef0be414e6477138c56d8806 | 113c62582c63ce452b425a8896ef934aa7bd16bb | /search_range.py | 980982e5df47eeaaccdcc66fec0b1f12ba7f4381 | [] | no_license | abhishekgupta5/Algorithms | 390498e0620082ab39148b67345bd8f705c5ea99 | cf54d031b905095373014b350743568e94c36d99 | refs/heads/master | 2021-07-05T06:19:23.720486 | 2018-03-21T21:04:42 | 2018-03-21T23:03:21 | 96,453,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | #!/usr/bin/python3
from bisect import bisect_left, bisect_right
#Question(interviewbit-search): Search for a range of a given number in a list. Return Start and End index. O(logn)
def search_range(A, B):
start = end = -1
l = 0
r = len(A) - 1
while(l<=r):
mid = int((l+r)/2)
# print('mid='... | [
"abhishekmodi2011@gmail.com"
] | abhishekmodi2011@gmail.com |
578a04fe3c4d824214150e4f9191491cb8681f4e | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py | 1d62366a62ac87de03ce64fcaebc01f2b36434c3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,778 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
30ee0e3537ec935eca01c4f6806fab7090b1e1a0 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Amazon/S3/GetBucketWebsite.py | d32dd2a3f646211b5943f07d9b72a6421bfec177 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GetBucketWebsite
# Returns the website configuration and static URL of a bucket if it is setup as a website.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache Licens... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
58c7724683486cd3f1a558e8cff1a1e206c55941 | aaf9411ee1ce4c5522c97e4f294591e4b3d012ea | /examples/FileServerConsumer.py | 99e83b533d369a09e349c5411bbf8f42ba458b69 | [
"MIT"
] | permissive | chris-wood/protoccn | 4a36419a57df9b08a772c154010f26c18c831683 | 8a4f1338c69bf07094dd6c38e19bb146aba4a5d2 | refs/heads/master | 2021-01-21T14:08:07.954708 | 2016-05-23T17:13:44 | 2016-05-23T17:13:44 | 51,483,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import protoccn
from protoccn.Consumer import *
app = CCNConsumer("Chris")
@app.install_sink("ccnx:/producer/get")
def fetch(fname):
return fname
app.register("list", "ccnx:/producer/list/")
def main():
while True:
cmd = raw_input("> ")
params = cmd.split(" ")
if len(params) > 0:
... | [
"christopherwood07@gmail.com"
] | christopherwood07@gmail.com |
10f110259f174fac4c5cd5ea1c42b9d39a8770cb | 0aa2ae6fad86f8d1a8678f93bd80d93dc57358bc | /rnaseq_analysis/move_htseq_files.py | ee20e19c72e53eacf7700d479d42f8fff260f356 | [] | no_license | acvmanzo/code | b2b0da08085af39699f61247c1bf951436da742a | b9318c85d71668cd6f8270d608ba43ca43552ebc | refs/heads/master | 2020-04-09T08:47:33.761758 | 2014-08-26T20:23:42 | 2014-08-26T20:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Moves htseq_files from one folder to another.
import libs.htseqlib as htl
from rnaseq_settings import *
import psycopg2
def batch_move_htseq_files(conn):
fn = "move_htseq_files('{}', '{}')".format(HTSEQ_DIR, HTSEQ_FILE)
htl.batch_fn_thdir(TH_RESDIRPATH, TH_DIR, RES_SAMPLE_GLOB, conn, fn)
conn = psycopg2.co... | [
"acvmanzo@gmail.com"
] | acvmanzo@gmail.com |
579c4293f4ff3dc4b8752d78c3f944dd6d3c80c2 | 0a118477c8b6d1ef79b26310a1d3fb06716743e9 | /motion_planning/3d/ego_transfer.py | 180c0fdcfd1ef3e5b2e724a22580bd5211cbd623 | [
"MIT"
] | permissive | nsgcjdsz/XTDrone | 773ea65421044a895e427cfc68d9e3669210c12a | ebefd6cf943b95998e1b47de6be9052a146d667d | refs/heads/master | 2023-08-25T18:12:48.338686 | 2021-10-23T12:03:47 | 2021-10-23T12:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | import rospy
from geometry_msgs.msg import PoseStamped
import math
from pyquaternion import Quaternion
import tf
import sys
vehicle_type = sys.argv[1]
vehicle_id = sys.argv[2]
local_pose = PoseStamped()
local_pose.header.frame_id = 'world'
quaternion = tf.transformations.quaternion_from_euler(-math.pi/2, 0, -math.pi/2... | [
"robin_shaun@foxmail.com"
] | robin_shaun@foxmail.com |
1246a7f80c9e993aecbd5282b96017761fb0ecf1 | 3a8aa79556e25bf75565cb396522d6f63676f61f | /poll/templatetags/poll_extras.py | df68f927f3c1f681f2c93115f0ae9d52b573b6f9 | [] | no_license | brrbaral/EmpPollSystem | e77fc21ae5c4339e0390c3379b0b813c03684796 | 066759702a5dfc6c1f9f2ccbb8a63c074d3a0872 | refs/heads/master | 2020-08-02T16:46:39.695550 | 2019-09-28T02:57:13 | 2019-09-28T02:57:13 | 211,434,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from poll.models import Question
from django import template
register=template.Library()
# 1)THIS IS FOR DJANGO TEMPLATE FILTER
def upper(value):
return value.upper()
#THE FIRST UPPER IS THE NAME OF FILTER AND SECOND UPPER IS THE NAME OF THE FUCNTION
register.filter('upper',upper)
#2) THIS IS FOR DJANGO TEMPLATE... | [
"brr.baral@gmail.com"
] | brr.baral@gmail.com |
bc9638262cd1e5d77edfd36486d69438d1f8b859 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/op_cmp_int-12.py | 5e09fb96a22e5528e1164bff62dfe2598ea554fc | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | x:int = 42
$TypedVar = 7
print(x == y)
print(x != y)
print(x < y)
print(x <= y)
print(x > y)
print(x >= y)
print(x == x)
print(x != x)
print(x < x)
print(x <= x)
print(x > x)
print(x >= x)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9c117f51a8ce2cc05ee66dd22052b5d0721b26ac | 5930e3a92b6fc7a136ac008901c49042c0bb8a10 | /app/groups/migrations/0002_groupinformation.py | 410a47b9694a36b9d94ab5a647f22bcf3057b87f | [
"BSD-3-Clause"
] | permissive | nikdoof/test-auth | e2c944021a3df4967e5a584f1e534c1438025628 | 6f6acee9c8ab09e84e21fde2da0eff995b7232be | refs/heads/master | 2021-01-18T17:17:28.188641 | 2014-04-10T07:53:14 | 2014-04-10T07:53:14 | 18,625,008 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,402 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
for group in orm['auth.Group'].objects.all():
try:
obj = orm.GroupInformation.objects.get(group=gro... | [
"andy@tensixtyone.com"
] | andy@tensixtyone.com |
8cfd1a39952880535cdc6b5e4b22ef9e4b6d65bd | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/GDS/shamil_v3/purchase_customization/wizard/search_and_inform.py | 36412fc18c9d972fafdb8db81db3f6b2041d1d6e | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
from osv import fields, osv
... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
98f97784b622c2dcf244ee24593239283564698c | 331fca39c99354bb96f9f07a2309c59c34a9fb15 | /lib/python2.6/site-packages/repoze.what_pylons-1.0-py2.6.egg/repoze/what/plugins/__init__.py | 394aedf4cc803b3e022afdbcb930895806540844 | [] | no_license | rudyvallejos/GestionItems | d368a940a63cae9a2e5845cdf50db6b232aa9871 | 1eb56b582f0539c883a4914ad48291941b3c6c38 | refs/heads/master | 2016-09-06T08:37:46.582041 | 2011-07-09T18:39:02 | 2011-07-09T18:39:02 | 1,662,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2009, Gustavo Narea <me@gustavonarea.net>.
# All Rights Reserved.
#
# This software is subject to the provisions of the BSD-like license at
# http://www.repoze.org/LICENSE.txt. A copy of the license... | [
"rudy.vallejos@gmail.com"
] | rudy.vallejos@gmail.com |
e3a08daddc00735e4f12bad7ae4798701560521d | e04dbc32247accf073e3089ed4013427ad182c7c | /ABC137/A/main.py | 821ce434ccf4b3df7b47879566cef939b2ac2fb9 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # from math import factorial,sqrt
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)
# import numpy as np
# import scipy as scp
# 入力の受け取り
a,b = map(int... | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
d09c114c14307c1fe42d4259d207b003f4fff07c | 67b474bbc8142d6e6b48b9e7832ba0f1117e050a | /answer_template.py | 5c96ec7b5f8e6b6b3e6b7f883b516de2163158aa | [] | no_license | TobiahRex/computerScience | 67fe855daf3be603f35a4628749004c86ba318a2 | a96ce964a9ea94e3d89b5acfd3b64b1f2cdbd193 | refs/heads/master | 2023-01-29T16:11:41.958634 | 2022-01-18T21:18:03 | 2022-01-18T21:18:03 | 64,225,020 | 7 | 2 | null | 2023-01-06T01:50:43 | 2016-07-26T13:50:31 | JavaScript | UTF-8 | Python | false | false | 2,071 | py | """
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
---------------------------
Example 1:
Given nums = [1,1,2],
You... | [
"tobiah.rex@gmail.com"
] | tobiah.rex@gmail.com |
7ca07368e6802349723f6b8fc71532edf639c636 | 53eee7eb899cb518983008532257037fb89def13 | /922.sort-array-by-parity-ii.py | 780e3b9a64c7db7ff87c99567119006ae9ea509f | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | #
# @lc app=leetcode id=922 lang=python3
#
# [922] Sort Array By Parity II
#
# https://leetcode.com/problems/sort-array-by-parity-ii/description/
#
# algorithms
# Easy (67.22%)
# Likes: 356
# Dislikes: 36
# Total Accepted: 59.3K
# Total Submissions: 88.2K
# Testcase Example: '[4,2,5,7]'
#
# Given an array A of n... | [
"chenxu@Chens-iMac.local"
] | chenxu@Chens-iMac.local |
1f717b2e3ba0f0259c1e3786f1d4e87d7400ed3c | ced2dc1f67830f70bc8449b864a5ddf9858a6f76 | /CMSSW_9_4_12/src/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM1500_R_0-3.py | 845426fa82063a86978e317658ed7f8ab98c9d6f | [] | no_license | xdlyu/16_MINIAODV3 | 6e1c455a17e8453974b200c05da18a81386936fe | 5f506cb0e3411fe85bc0b86d6f9477ca7d46eea3 | refs/heads/master | 2020-12-13T03:46:54.895084 | 2020-01-17T14:47:22 | 2020-01-17T14:47:22 | 234,304,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M1500_R0-3_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Summer... | [
"XXX@cern.ch"
] | XXX@cern.ch |
53955ee1e40f48797a52904fa094fa7b532af428 | d5d82a166acfa63202d200b5c70364a4acefe673 | /18_go_python/test.py | ac1a07675fd1f237da1334c1675eb208202dffc0 | [] | no_license | NirmalVatsyayan/GoPractice | 8e0e8b3bad27f5fec8a228f296b5b5ae59f6b088 | 9ecfd0170b3a99fad43cde45c723bb3fd74881f0 | refs/heads/master | 2021-01-12T09:12:10.097521 | 2017-05-17T07:12:00 | 2017-05-17T07:12:00 | 76,794,784 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from ctypes import cdll
#load go library
lib = cdll.LoadLibrary('./libadd.so')
print("Loaded go generated SO library")
result = lib.add(2, 3)
print(result)
#go build -buildmode=c-shared -o libadd.so libadd.go
| [
"nirmal.vatsyayan1990@gmail.com"
] | nirmal.vatsyayan1990@gmail.com |
74fbf8d02bf515d276527f0330828668f1c88886 | 6b791247919f7de90c8402abcca64b32edd7a29b | /direct/showbase/AppRunnerGlobal.py | 4797df50702701a91c03a4d98b70d69085ddcc60 | [
"Apache-2.0"
] | permissive | theclashingfritz/Cog-Invasion-Online-Dump | a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36 | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | refs/heads/master | 2021-01-04T06:44:04.295001 | 2020-02-14T05:23:01 | 2020-02-14T05:23:01 | 240,434,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: direct.showbase.AppRunnerGlobal
appRunner = None | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
72e1d7a44a1baa93aa81b6820dd2e8491e9d32a7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_matriarchs.py | 8e5e4b63c6c379d0f7b5d008bf4aaad48de87dfd | [
"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 | 234 | py |
#calss header
class _MATRIARCHS():
def __init__(self,):
self.name = "MATRIARCHS"
self.definitions = matriarch
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['matriarch']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c062e77a4cb341a3404bbb20a54309029e177ef2 | 4b2d47b7ef6558440a97764543234a3c68fe15ca | /bin/sa_ctf_scoreboard/solnlib/packages/splunklib/modularinput/argument.py | fed7bed21d9aa20c7b735f125cdcccfbebcfff15 | [
"CC0-1.0"
] | permissive | splunk/SA-ctf_scoreboard | 13856da2dca8233f75587f0849adb3f3a614a846 | bef2d5cb254b0d6d4699f4f445e6fc914a35ceed | refs/heads/master | 2022-02-12T23:03:20.807665 | 2022-01-27T20:19:28 | 2022-01-27T20:19:28 | 103,070,557 | 113 | 35 | CC0-1.0 | 2020-01-30T18:39:57 | 2017-09-10T23:58:11 | Python | UTF-8 | Python | false | false | 4,166 | py | # Copyright 2011-2015 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"dave.herrald@gmail.com"
] | dave.herrald@gmail.com |
aabaf61a03ebb7d80f4ffe86d782f7832820b2c2 | 6271d93505d70078303d9eaaf62c32a8e6ce3a5d | /apps/receitas/models.py | db0b6803ebb7efc2733b5b212fe876962fec25d9 | [] | no_license | claudimf/alura_receita | 1506d9c8da27675e85a5d318aa2382b4cf95718c | f035c6055528a1617d30eeb6b2daba03fdb2fc5a | refs/heads/main | 2023-03-07T19:49:06.849511 | 2021-02-25T20:15:57 | 2021-02-25T20:15:57 | 340,479,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | from django.db import models
from datetime import datetime
from django.contrib.auth.models import User
class Receita(models.Model):
pessoa = models.ForeignKey(User, on_delete=models.CASCADE)
nome_receita = models.CharField(max_length=200)
ingredientes = models.TextField()
modo_preparo = models.TextFie... | [
"claudi.freitas.prs@synergiaconsultoria.com.br"
] | claudi.freitas.prs@synergiaconsultoria.com.br |
d8fa30ff19af8e2ece7fa1ad0b7a87af8ec7d4b8 | 66fa0bcfe8fcd9e5087caf7e0b42e944ec636fc6 | /information/migrations/0001_initial.py | da26241d0c05e6aab86c940cc14e4c21aa3cb31a | [] | no_license | vintkor/for_prom | 899a7eb70978c1d4d77bf3a958d11423fd1bcda5 | 4b692c192d931e2ffb97dcd36bb7f31b242f848b | refs/heads/master | 2022-12-09T05:49:11.150879 | 2017-08-21T20:37:51 | 2017-08-21T20:37:51 | 99,605,489 | 0 | 0 | null | 2022-12-08T00:41:44 | 2017-08-07T18:02:53 | Python | UTF-8 | Python | false | false | 2,246 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-07 20:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('catalog', '0004_auto_20170807_2156'),
... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
b0b53396c984078dee8fe7684fa9e8f24e774b92 | 950eca9a4b758a2b1c097070aaedb2f208e108e9 | /wage/urls.py | cc99552a6ae98cc94df07997b81d1fb550790068 | [] | no_license | QI-Xiao/wageproject | 62d45a21e269913c90f6773aca0cf4290b9e98df | df8839af5078c347a260e436efef6edd05c06608 | refs/heads/master | 2020-04-24T18:27:30.064354 | 2019-04-11T12:42:39 | 2019-04-11T12:42:39 | 169,017,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | from django.urls import path, re_path
from . import views
app_name = 'wage'
urlpatterns = [
path('', views.index, name='index'),
path(r'calculate/', views.calculate, name='calculate'),
path(r'search/', views.search, name='search'),
path(r'inputorder/', views.inputorder, name='inputorder'),
path(r'... | [
"524290558@qq.com"
] | 524290558@qq.com |
7ce0d8747ea80e04dbddcc5ddb6458479d037680 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_writhed.py | 5cad0073d95e437ad55eb54da9b01f2b6a7ed16b | [
"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 | 222 | py |
#calss header
class _WRITHED():
def __init__(self,):
self.name = "WRITHED"
self.definitions = writhe
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['writhe']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a8654e3d731b0e4c07b49bbcf1dc58649a951651 | 5cb33f0b2f58145ccf9c183b6366af9284227957 | /home/migrations/0071_theclub_videos.py | d45a237755b6ec84feda9051710c79650d5748ac | [] | no_license | joel081112/ArdsProject | a72b3038349d5cf949e55037989644d0f26fab65 | d7867be34cdd199d4c07f4a637b89f5f7305ac36 | refs/heads/main | 2023-04-24T04:55:40.296316 | 2021-04-29T09:30:41 | 2021-04-29T09:30:41 | 336,305,114 | 0 | 0 | null | 2021-04-29T09:30:42 | 2021-02-05T15:06:40 | HTML | UTF-8 | Python | false | false | 960 | py | # Generated by Django 3.1.5 on 2021-04-05 16:10
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.embeds.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0070_auto_20210405_1701'),
]
operations = [
migrations.Ad... | [
"joel081112@icloud.com"
] | joel081112@icloud.com |
61e9b91ac6ea3c89872920cac26e502bde2afd72 | 70f564990215f47b139a777826f211477e9b44f6 | /plan2vec/vae/resnet_vae.py | ba5c564e5f284cff518224cdb27d6463e71f1d12 | [] | no_license | geyang/plan2vec | de87f2d77732c4aacdefd00067ebebacb7cd763f | aeeb50aed3d7da4c266b4ca163e96d4c0747e3c1 | refs/heads/master | 2022-11-16T03:40:42.638239 | 2022-10-28T04:01:29 | 2022-10-28T04:01:29 | 261,273,420 | 65 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,622 | py | from params_proto.neo_proto import ParamsProto
import torch
from torch import nn
from tqdm import tqdm
from env_data.stack_loader import StackLoader
class Args(ParamsProto):
seed = 100
env_id = "CMazeDiscreteImgIdLess-v0"
num_rollouts = 400
obs_keys = "img", "x" # All observations we want to be able... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
1bb9e72eb9f82608324bbcd5de09794f32ec19d6 | 5e32f25d509474e68fd4540e4c2465335f5e0c16 | /blog/views.py | cbfd250b122ea8cae8cc96a4f638fe1e3917dfaf | [] | no_license | b8goal/PIRL-django | 5d740ae22e98f20edf845667bbfbe0eeef4e1275 | 86dde8c1586d0be9eeefcd70082f61c16558c94a | refs/heads/master | 2020-04-25T01:52:20.927768 | 2019-02-28T01:47:07 | 2019-02-28T01:47:07 | 172,420,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,175 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from .models import Post
from .forms import PostForm
from .forms import M1_dataForm
from django.shortcuts import redirect
from .disease_risk import init_risk
from .test import test_model
from django.shortcuts import render
import p... | [
"b8goal@naver.com"
] | b8goal@naver.com |
02d824edfdae28709f9ab06d7aa8fc10dc51c01e | eee647635af1583d9b1150b7cd3195336291e1d2 | /ADP/d.py | 716d62ab5a945f249e174bf859e9698f2c1ad98e | [] | no_license | lilium513/competition_programing | 42f69222290b09b491477b8a2b9c2d4513ebe301 | 45082bf542224b667e753ad357cf145f683fde54 | refs/heads/master | 2020-06-22T03:16:34.510906 | 2019-07-31T18:22:31 | 2019-07-31T18:22:31 | 197,619,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | import math
N,W = list(map(int, input().split(" ")))
items= [list(map(int, input().split(" "))) for _ in range(N)]
dp = [[0 for _ in range(W+1)] for _ in range(N + 1) ]
for w_sum in range(W + 1):
for i in range(N):
w,v = items[i]
if w_sum - w >= 0:
dp[i + 1][w_sum] = dp[i][w_sum - ... | [
"lim.intefx@gmail.com"
] | lim.intefx@gmail.com |
92433731a16e5aac5ad7a913c24a716cce2d18c9 | 7d0b5748ad14b9af551539833ce7a21f5787f498 | /awacs/aws_portal.py | f831f382a8a270683f8927b787774a107ae503c6 | [
"BSD-2-Clause"
] | permissive | teja624/awacs | 6d7c4b8ba83f1139b0b1eae3d40b1d1694c5eaf9 | de513059ef9ea919434bb1b14acf5da061d20d6d | refs/heads/master | 2020-07-26T05:02:36.932167 | 2016-07-08T04:29:42 | 2016-07-08T04:29:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'AWS Billing'
prefix = 'aws-portal'
class Action(BaseAction):
def __init__(self, action=None):
sup = super(Action... | [
"mark@peek.org"
] | mark@peek.org |
64cbfe01fdaa2f7487476adf14bc1b3e4617a1bb | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Forms/__init___parts/ToolStripManager.py | 18da951d0843208bac2be4e58bd2785a2b30d110 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,695 | py | class ToolStripManager(object):
""" Controls System.Windows.Forms.ToolStrip rendering and rafting,and the merging of System.Windows.Forms.MenuStrip,System.Windows.Forms.ToolStripDropDownMenu,and System.Windows.Forms.ToolStripMenuItem objects. This class cannot be inherited. """
@staticmethod
def FindToolStrip(toolSt... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
5a19d3aa8ffa4bbc7db6c53b6551ca62899d2f8d | a1080c28573e1a59ec418ad3b0b0bf18e035dc41 | /Hackerrank/Medium Level Questions/The_Ful_Counting_Sort.py | 304871888a42db73e607f64e5006b51204b0cf38 | [] | no_license | AumkarG/Algorithms-and-Data-Structures | 8c6fc21218897d2361fed1512dc6bb13eabd8842 | 03603ad579564ef213c58edd57cb8753cf8f86ba | refs/heads/master | 2023-03-04T09:48:25.167519 | 2021-02-14T17:16:18 | 2021-02-14T17:16:18 | 330,424,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the countSort function below.
def countSort(arr):
length=len(arr)
count=0
strings = [[] for _ in range(101)]
for i in range(length//2):
j=arr[i]
l=int(j[0])
s=j[1]
strings[l].append('-')
... | [
"aumkaar,g@gmail.com"
] | aumkaar,g@gmail.com |
58b6025ba979099e3e37bed4db66a04987cdaa47 | 11fb8e7154e5b02ad0d6b78c6c74e4c0a5e5302b | /loops.py | af45f0083e6a41dd61ba1e60e4dc7c747dd5243a | [] | no_license | kevindsteeleii/Traversy-Python-CrashCourse | 6c37903e92bbb3becd51f103d5a3210340d3bcbd | 1dd21779ab8ec6456db5f222af2a79fea5855f03 | refs/heads/master | 2020-04-15T01:21:34.667404 | 2019-01-06T03:56:29 | 2019-01-06T03:56:29 | 164,273,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | # A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
people = ['John', 'Paul', 'Ringo', 'George', 'Yoko']
# Simple for loopp
# for person in people:
# print(f'Current person: {person}')
# Break
# for person in people:
# if person == 'Ringo':
#... | [
"github email address"
] | github email address |
45c63decf0a8a40dbe2bebc42279d158849a90a9 | c552cf5ed4714a3b5bdeab7af46092ff465b8c6a | /Python/SW Expert Academy/D2/1926. 간단한 369게임.py | 38d3bafc2b0ab63ca2ed2c3551b9acc6a54e0b28 | [] | no_license | ksb8320/Algorithm | a786c5ab04e28ae9b3d180a77850899328075443 | 74b33f81eefa4cebf0dd8f1c3d65394d2aede372 | refs/heads/master | 2022-12-17T22:49:17.144572 | 2020-09-23T14:45:21 | 2020-09-23T14:45:21 | 253,751,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | # import sys
# sys.stdin=open("input.txt")
n=int(input())
lst=[]
cnt=0
for i in range(1,n+1):
if i<10 and i%3!=0:
lst.append(str(i))
elif i<10 and i%3==0:
i="-"
lst.append(str(i))
elif i>=10:
for j in range(len(str(i))):
if int(str(i)[j])%3!=0 or int(str(i)[j])==... | [
"ksb8320@gmail.com"
] | ksb8320@gmail.com |
81212b57c76474d96ba4e2ce736a2c3d090743bc | cb82ff3240e4367902d8169c60444a6aa019ffb6 | /python2.7/site-packages/twisted/enterprise/util.py | c8cf5ed2f282adaec3bc1cee6cfbaebaa85fa518 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft"
] | permissive | icepaule/sslstrip-hsts-openwrt | 0a8097af96beef4c48fcfa0b858367829b4dffdc | d5a2a18d2ac1cdb9a64fbf47235b87b9ebc24536 | refs/heads/master | 2020-12-31T10:22:04.618312 | 2020-02-07T18:39:08 | 2020-02-07T18:39:08 | 238,998,188 | 0 | 0 | MIT | 2020-02-07T18:35:59 | 2020-02-07T18:35:58 | null | UTF-8 | Python | false | false | 5,108 | py | # -*- test-case-name: twisted.test.test_enterprise -*-
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
import types
NOQUOTE = 1
USEQUOTE = 2
dbTypeMap = {
"bigint": NOQUOTE,
"bool": USEQUOTE,
"boolean": USEQUOTE,
"bytea": USEQUOTE,
"date": USEQUOTE,
"int2": ... | [
"adde88@gmail.com"
] | adde88@gmail.com |
f7eb20a443c6bb305f27019f3e1cf4a247389dd7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02891/s777218558.py | 6fa63260d0d756ec6f01b8a63442e9b59f694dd2 | [] | 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 | 447 | py | if __name__ == '__main__':
s = list(input())
ss = s + s
k = int(input())
if len(set(s)) == 1:
print(len(s) * k // 2)
exit(0)
tmp, tmp2 = 0, 0
for i in range(len(s) - 1):
if s[i] == s[i + 1]:
tmp += 1
s[i + 1] = '-1'
for i in range(len(s) * 2 -... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
965d1cf4f83f1dc7fbe40a4843f9a8d4b68dc292 | df9c3a7dd5eb1245617dd1826706083ada84628d | /apps/wallposts/admin.py | 85df9d82d2c04c5385d0d4c4472761dcc02bc739 | [
"JSON",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | gannetson/sportschooldeopenlucht | ca5cde5dc2e4deb32f865f36cb27faf5d19ebf32 | 0c78e5a95b22a963244112e478119ba60c572141 | refs/heads/master | 2016-09-05T13:25:09.335259 | 2013-10-08T09:10:35 | 2013-10-08T09:10:35 | 13,406,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | from bluebottle.bluebottle_utils.utils import set_author_editor_ip
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from apps.wallposts.models import SystemWallPost
from polymorphic.admin import PolymorphicParentModelAdmin, PolymorphicChildModelAdmin
from sorl.thumbnail.admin.com... | [
"loek@1procentclub.nl"
] | loek@1procentclub.nl |
1bf2ab7126bbce489d01393cab3588acb0557d09 | 5963c12367490ffc01c9905c028d1d5480078dec | /tests/components/panasonic_viera/test_init.py | 0f30e315683299f126e06f97c1e412d51e44c82b | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 7,014 | py | """Test the Panasonic Viera setup process."""
from unittest.mock import patch
from homeassistant.components.panasonic_viera.const import (
ATTR_DEVICE_INFO,
ATTR_UDN,
DEFAULT_NAME,
DOMAIN,
)
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import CONF_HOST, STATE_UNAVA... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
b3424ec5dc1991416949c025142baff47bd5df5e | bff743f3c4caa37681aa83c0fea2af549ac42cb9 | /webs/migrations/0002_emailconfig.py | 90789b955e6790f3304eaf1d490d8475dba14c67 | [
"MIT"
] | permissive | samkayz/loanapp | da446cef163d9bba3fc84568b44447391ce4cf9d | 8f7d062866cddcc3cefbc0df60e91db6e0200a0d | refs/heads/master | 2023-07-17T17:53:50.354171 | 2021-09-05T14:32:00 | 2021-09-05T14:32:00 | 402,932,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | # Generated by Django 3.2.7 on 2021-09-04 19:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='EmailConfig',
fields=[
('id',... | [
"ilemobayosamson@gmail.com"
] | ilemobayosamson@gmail.com |
e5776a742f0d6f2f5c0d201f6f190881683a7b71 | d223f5f893c4173256eb8b94336f02ad2757459d | /HackerRank/Python/itertools_combinations().py | 0098a2405944a7774bb8afbe1cc03dc2ff5e8c1c | [
"MIT"
] | permissive | tanvipenumudy/Competitive-Programming-Solutions | 679c3f426bf0405447da373e27a2d956c6511989 | 9619181d79b7a861bbc80eff8a796866880b95e0 | refs/heads/master | 2023-02-26T14:20:41.213055 | 2021-01-29T07:09:02 | 2021-01-29T07:09:02 | 325,483,258 | 0 | 0 | MIT | 2021-01-29T07:09:03 | 2020-12-30T07:20:35 | null | UTF-8 | Python | false | false | 1,307 | py | # itertools.combinations(iterable, r)
# This tool returns the r length subsequences of elements from the input iterable.
# Combinations are emitted in lexicographic sorted order. So, if the input iterable is
# sorted, the combination tuples will be produced in sorted order.
# Sample Code
# >>> from itertools import ... | [
"aaaanchakure@gmail.com"
] | aaaanchakure@gmail.com |
54a3d181d46f81115a3f44f81cfa1d2c18ef4342 | 1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5 | /Repo/venv/Lib/site-packages/caffe2/python/test/python_protobuf_test.py | 6d76f527351ac5c381eaa737457ef4fa1057e6e7 | [] | no_license | donhatkha/CS2225.CH1501 | eebc854864dc6fe72a3650f640787de11d4e82b7 | 19d4dd3b11f8c9560d0d0a93882298637cacdc80 | refs/heads/master | 2023-07-19T13:27:17.862158 | 2021-02-08T07:19:05 | 2021-02-08T07:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py |
# make sure we use cpp implementation of protobuf
import os
os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "cpp"
# import cpp extension first
from caffe2.python import core
# then import protobuf
from caffe2.proto import caffe2_pb2, metanet_pb2
import unittest
class TestCrossProtoCalls(u... | [
"59596379+khado2359@users.noreply.github.com"
] | 59596379+khado2359@users.noreply.github.com |
c29cbed1709156f9cf73546ecb6aba463c115f63 | a81a1efe1a93d5af0ef3f6403862a1544befd6cf | /HashTable/500_KeyboardRow.py | a58ba2787ee8df82d0c3f43375af3596d81c1495 | [] | no_license | fishleongxhh/LeetCode | 89da4ae3ca1715b1909c350437c0ba79eb2a8349 | d0352fecc61396fc460e1350572189b175a13f61 | refs/heads/master | 2020-04-05T17:14:27.976946 | 2018-12-16T14:10:54 | 2018-12-16T14:10:54 | 157,050,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # -*- coding: utf-8 -*-
# Author: Xu Hanhui
# 此程序用来求解LeetCode500: Keyboard Row问题
dic = {'q':1,'w':1,'e':1,'r':1,'t':1,'y':1,'u':1,'i':1,'o':1,'p':1,'Q':1,'W':1,'E':1,'R':1,'T':1,'Y':1,'U':1,'I':1,'O':1,'P':1,
'a':2,'s':2,'d':2,'f':2,'g':2,'h':2,'j':2,'k':2,'l':2,'A':2,'S':2,'D':2,'F':2,'G':2,'H':2,'J':2,'K':2,... | [
"xhh1120132805@163.com"
] | xhh1120132805@163.com |
beb92fd32ae6e2290fa5efd8cb05624d1aec908c | 5247a6a774e3b961c7f2799830e8879d272173a3 | /ISP/Figures/F11_3_residuals.py | 1c58a3a9ff3fee470f3af1fe5902eba90c215208 | [
"BSD-3-Clause"
] | permissive | sativa/statsintro_python | a738121d94f4c5e1cd580c7985d66df6e343a9d4 | ce042fc86f84bfa8c7b9473e128aa43c2dd3a4bd | refs/heads/master | 2021-01-21T05:55:01.812015 | 2015-12-05T12:55:31 | 2015-12-05T12:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | '''Demo-plot of residuals to a best-fit line '''
# Copyright(c) 2015, Thomas Haslwanter. All rights reserved, under the BSD 3-Clause License
# Import standard packages
import numpy as np
import matplotlib.pyplot as plt
# additional packages
# Import formatting commands if directory "Utilities" is available
import os... | [
"thomas.haslwanter@alumni.ethz.ch"
] | thomas.haslwanter@alumni.ethz.ch |
cc880f3d433271e01aba7aa795cb046c8e8ab8e4 | fb5d3e41d7b921424ed15ec096d0db88b6cac2a8 | /sablekh_back/api/admin.py | ffa55e15f0bfacd9170bf29c3db21f2ee3804298 | [] | no_license | surajbeston/sablekh | 8454acb51ba84cd3124cd617865e95fd723740da | 4a91dd1c1f2c18e5426dd0a35c8d7b95f1ad41ef | refs/heads/master | 2022-12-28T22:24:10.158459 | 2020-10-14T18:29:08 | 2020-10-14T18:29:08 | 283,232,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | from django.contrib import admin
from .models import Library, File, DownloadLot, Like, Visitor, ImplicitData, RestrictedIP, PwResetToken, LibraryGroup, Tag, EmailVerifyToken
admin.site.site_header = 'Sablekh Admin'
admin.site.site_title = 'Sablekh Admin'
admin.site.register(Library)
admin.site.register(Visitor)
admin... | [
"surajbeston@gmail.com"
] | surajbeston@gmail.com |
a9a26dfa604eea32156d2e6d97ae9725a528da62 | a9c893ceea73cd042cae64b06400a2e892334122 | /assignment_answers/A17_deployment.py | bd4eb18db28a9ad2aafb8623a5fb7e596e8965b4 | [] | no_license | DS-17/Intro_to_Python | 77b52ac31b6c6efa84315162e2ab984ab6831980 | fb86c2ac37e49b7c5ea6eac3bd258f5a27f85106 | refs/heads/master | 2022-11-05T06:20:41.609418 | 2020-06-15T14:21:40 | 2020-06-15T14:21:40 | 268,858,967 | 1 | 7 | null | 2020-06-15T14:21:42 | 2020-06-02T16:58:06 | null | UTF-8 | Python | false | false | 705 | py | """ Assignment 17
For this assignment you should design, build and deploy a Python3 package
and answer the following:
1. What is the fundamental difference between a python package and a module?
2. What changes do we need to make in the `setup.py` script in relation to
developing a package vs a module?
"""
# Answe... | [
"webmaster@sharpdesigndigital.com"
] | webmaster@sharpdesigndigital.com |
032ff04a609d5692152d5a39731b50ece574d033 | ab35ef2228a1d1831b1721763e3b2c3106e9e60d | /demo2/demo18.py | fd9d81a5db26bb2cf1bab6beeca14925dc193b1f | [] | no_license | immortalChensm/python | 22b07e8688d6bb0f14eaebdf900759c93b1edd89 | 390a8e9632d5110c90fe4a4e5557d55bfeec992a | refs/heads/master | 2022-09-09T06:59:45.137253 | 2020-06-03T13:37:22 | 2020-06-03T13:37:22 | 269,096,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from collections import Iterable
from collections import Iterator
'''
可迭代对象:作用于for循环的对象list tuple set dict stirng
迭代器:next函数运行之后会得到向一个值,到最后一个没有的时候会抛出StopIteration
可迭代对象:Iterable
迭代器:Iterator
可以迭代的对象有:
1、集合类型 list tuple set string dict
2、generator 生成器和带有yield gererator function
print(isinstance([],Iterable))
print(isi... | [
"1655664358@qq.com"
] | 1655664358@qq.com |
98fef1e6d127f74be4b9af67bebe39411704cfd6 | ed8cdcce521b8cab33c66f716c0886e17f035d21 | /.history/ClientPerformanceMoniter_20191221234500.py | 0dc69263bda7b0a13aed539e34d2a0f183426941 | [] | no_license | deancsdfy/AndroidPerformanceTool_windows | 8ac35729bc651c3af551f090d6788b6ee3f17eb5 | c4906aa9347e8e5eca68dbb7cf2d66a327c70d1f | refs/heads/master | 2020-11-27T20:38:55.014228 | 2020-01-09T15:55:52 | 2020-01-09T15:55:52 | 229,593,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | # coding=utf-8
from signal import signal, SIGTERM, SIGINT
from public import publicfunction as util
from script import get_cpu_mem_info as info
# from script import ShowData
from collections import deque
import time
import datetime
import sys
import queue
import _thread
import xlwt
# sys.path.append(".//public")
# sys.... | [
"denacsdfy@gmail.com"
] | denacsdfy@gmail.com |
50a7a211c75522d57b3bbcef6048b60aa123dc94 | 41608dcb12ce6b16ad70d55bf0f155c1877de3a5 | /test/Poker/test_card.py | fa3c6941f0a60768a25272069922cc107e3353a6 | [] | no_license | frankma/Finance | eb68567e827e9045e1f4f3baaead6757aefb5168 | c6fe293895e1c295b7625f051625ba0b64efada1 | refs/heads/master | 2021-01-17T03:21:14.146946 | 2017-11-25T16:49:39 | 2017-11-25T16:49:39 | 33,056,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import logging
from unittest import TestCase
from src.Poker.Card import Card, Rank, Suit
__author__ = 'frank.ma'
logger = logging.getLogger()
class TestCard(TestCase):
def test_string(self):
print(Card(Rank.ace, Suit.spade))
def test_read_str(self):
for rank in Rank:
for suit ... | [
"guang.y.ma@gmail.com"
] | guang.y.ma@gmail.com |
79b59afd865c5479265bb5f837a5d35c49759490 | d41442e43c621465abac584fa4202e44876c097d | /benchmarks/postprocess.py | 6fb504cb373c091858bd53e28f493951b347f01d | [
"MIT"
] | permissive | It4innovations/hyperqueue | 90904ba415c3bee9b93d470e89c26c4129e2f60d | d7312e96194e2ebb3bef04f7744dc212953c146b | refs/heads/main | 2023-09-04T09:54:22.020632 | 2023-08-07T09:10:20 | 2023-08-08T11:46:13 | 349,152,473 | 171 | 18 | MIT | 2023-09-12T09:55:00 | 2021-03-18T16:57:34 | Rust | UTF-8 | Python | false | false | 2,518 | py | import logging
from pathlib import Path
import typer
from src.postprocessing.monitor import generate_cluster_report
from src.postprocessing.overview import generate_summary_html, generate_summary_text
from src.postprocessing.report import ClusterReport
from src.postprocessing.serve import serve_cluster_report, serve_s... | [
"berykubik@gmail.com"
] | berykubik@gmail.com |
c5e4494e7785deb8dba2c7475840091704490240 | f3f21213e8a50f1ecd838cacf8f7c5a03ec9d322 | /Python/rot13.py | e1a691b8fc8bc5efaea757b1e38c1fbe242f06ff | [] | permissive | Python-aryan/Hacktoberfest2020 | 043a33c3ac1c22d387064767a501c1f68ecdc498 | a6e18c3e9159a03a887e3377ada00480ee191f42 | refs/heads/master | 2023-08-13T11:47:28.822487 | 2021-10-02T01:55:01 | 2021-10-02T01:55:01 | 301,635,313 | 0 | 0 | MIT | 2020-10-06T06:33:30 | 2020-10-06T06:33:29 | null | UTF-8 | Python | false | false | 204 | py | def main():
msg = raw_input("enter your msg: ")
enc = ''
for i in msg:
enc += chr((ord(i) + 13) % 0xff)
print("your encrypted msg: " + enc)
if __name__ == "__main__":
main()
| [
"noreply@github.com"
] | Python-aryan.noreply@github.com |
6450e4dd8888c045536d5a31f0c436518daa40d4 | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/mrc/guwen-binary/mrc_guwen/loss.py | 4ab94bd2cd6c1b8559cefd03d662ac21fa5fd622 | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file loss.py
# \author chenghuige
# \date 2021-01-09 17:51:33.472128
# \Description
# ==================================================================... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
f568109285666892931d0639a987090a30c5592a | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider/crawler/company/recruit_jobtong.py | 7ab7e2bbe123713e6044241dbd33dc1c1e4de0ee | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,416 | py | #!/opt/py-env/bin/python
# -*- coding: utf-8 -*-
import sys, os
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../../util'))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../support'))
import datetime
import random
import json
import lxml.html
import pym... | [
"hush_guo@163.com"
] | hush_guo@163.com |
d90960c188a6a0f6e6cde85f6f4b832fd0f894bd | 761c65da169e1506ee4dc2357d0beea9a4c75447 | /first 3 char.py | c29e8d84f2703d76fd48ced984729ba024390d04 | [] | no_license | abhisek08/Python-data-types-String- | eff59b4089afc5e63e86b9805e999411c40b4d48 | daac406d80c9ea0f2dd133202503c8ea09dd59ba | refs/heads/master | 2022-10-02T09:45:44.226711 | 2020-06-05T02:34:49 | 2020-06-05T02:34:49 | 269,512,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | '''
Write a Python function to get a string made of its first three characters of a specified string.
If the length of the string is less than 3 then return the original string.
Sample function and result :
first_three('ipy') -> ipy
first_three('python') -> pyt
'''
def first_three(str1):
if len(str1)>=3:
... | [
"abhisek.bhunia08@gmail.com"
] | abhisek.bhunia08@gmail.com |
81bdb5a61da30d14efef3815069fb7192ac3aede | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2755486_0/Python/Servy/TaskC.py | 8547ba75217b7e93ef32a743d74e9b8d93cf4d5d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py |
import sys
tests = int(sys.stdin.readline())
def check(wall, w, e, s):
return min(wall[5000 + w*2:5000 + e*2]) < s
def update(wall, w, e, s):
for i in range(w*2, e * 2 + 1):
if wall[5000+i] < s:
wall[5000+i] = s
for t in range(tests):
n = int(sys.stdin.readline())
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
f04c2387451612de98b3d6b070339abdd97bae08 | 042fcd42dacd54e592f0fcfd5d60f11de0309084 | /student/migrations/0047_auto_20190326_2021.py | 4c00c63b78fd3802f991cb65ce2b36c797bcf410 | [] | no_license | akashhingde/Digital-Web-Application-For-Fill-Exam-And-Consession-Form | b1e5be2fab39f347a47246776d5c9cb578c489d2 | 1bcd6ff20d0a2b938c91e1c6c2be24156236a4a3 | refs/heads/master | 2020-09-15T11:38:10.523482 | 2019-11-22T15:53:05 | 2019-11-22T15:53:05 | 223,434,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-03-26 20:21
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0046_auto_20190326... | [
"akashhingde@gmail.com"
] | akashhingde@gmail.com |
eff56fb0a25efce69839b46f2426c6c5aef2173d | c3c40033d77c193da4f1ac53c6547930100b1305 | /wbcplatform/manage.py | e40e2daf1a7b2928217501a20b3086b4c2e744be | [] | no_license | weilixu/wbcusa | 78e99a96adb9de714aa0fb27ce512d79761b70ae | 0cfcb09f43232c54f0e42fb28364dcdc3f61be6f | refs/heads/master | 2023-08-16T14:13:40.713112 | 2021-07-15T23:17:29 | 2021-07-15T23:17:29 | 382,424,169 | 1 | 0 | null | 2021-07-15T23:17:30 | 2021-07-02T17:54:53 | JavaScript | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wbcplatform.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"weilix@alumni.cmu.edu"
] | weilix@alumni.cmu.edu |
ec43659e97d2d6cd3eb9b123bf02cef427708c5a | 2af28d499c4865311d7b350d7b8f96305af05407 | /model-optimizer/extensions/front/tf/matmul_ext.py | 794f78d35e6334cc9a4abcbc981e57122bfb22ef | [
"Apache-2.0"
] | permissive | Dipet/dldt | cfccedac9a4c38457ea49b901c8c645f8805a64b | 549aac9ca210cc5f628a63174daf3e192b8d137e | refs/heads/master | 2021-02-15T11:19:34.938541 | 2020-03-05T15:12:30 | 2020-03-05T15:12:30 | 244,893,475 | 1 | 0 | Apache-2.0 | 2020-03-04T12:22:46 | 2020-03-04T12:22:45 | null | UTF-8 | Python | false | false | 1,552 | py | """
Copyright (c) 2019 Intel 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 by applicable law or agreed to in wri... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
be7f9b066d613a19fd0dffab7714ecbadcb43c93 | 7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0 | /src/igem/neutronics/helium/container/borosilicate-glass-backfill/15cm/5wt/plot_all.in.one_cask.thickness_dose.rate_t4045_bottom.py | 6d7f581e661fa3edbd813faeb5ab5f0e7b25fc7b | [] | no_license | TheDoctorRAB/plot | dd3b5134c91c8fa7032fcc077c5427b26a80e49d | ed6746d511222c03e79f93548fe3ecd4286bf7b1 | refs/heads/master | 2021-07-11T10:21:19.347531 | 2020-07-16T17:13:15 | 2020-07-16T17:13:15 | 20,462,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | ########################################################################
# R.A.Borrelli
# @TheDoctorRAB
# rev.11.March.2015
########################################################################
#
# Plot routine
# All in one file, with no separate control input, lib files
# Plot data is contained in a separate data f... | [
"borrelli@localhost.localdomain"
] | borrelli@localhost.localdomain |
548995c04ddb3fed1d34ef45a3fff123cf711e1b | 98194ec90fcff4bbcb382b97975b8aa77b6e2fdf | /plenum/test/view_change/test_view_not_changed.py | c8214c595413e4b99a920af053d2a688b416c243 | [
"Apache-2.0"
] | permissive | qyynuaa/plenum | 1bf6c1d2c930d183f5ee18325cc70b8e6c49c975 | 0b54b39d2fb8bfbae65798fa62dcceb3e0cf5e0c | refs/heads/master | 2020-07-26T03:40:41.756016 | 2016-10-26T04:39:54 | 2016-10-26T04:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | from typing import Iterable
from plenum.common.looper import Looper
from plenum.common.util import getMaxFailures
from plenum.test.helper import TestNodeSet, getNonPrimaryReplicas, ppDelay, \
checkViewNoForNodes, sendReqsToNodesAndVerifySuffReplies
from plenum.test.helper import TestReplica
nodeCount = 7
F = get... | [
"jason@evernym.us"
] | jason@evernym.us |
48616f318f4d01720e7b3eda55397316249ff56b | e5dd21ac1305257fe163995f951cbbfbf3051fd7 | /Leetcode/480.py | 4adf5b7c629aabe87b221111410cf1daff6e37a3 | [] | no_license | QI1002/exampool | d3d3cdad040e4a861b934122ef12e059f7d6cd01 | 08800f78482f9fd9d6641c3eabc5880e69782f42 | refs/heads/master | 2021-01-02T09:35:15.283632 | 2020-10-13T14:54:25 | 2020-10-13T14:54:25 | 99,178,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py |
#480. Sliding Window Median
class minHeap:
def __init__(self):
self.heap = [-1]
self.userdata = [-1]
def swap(self, i, j):
tmp = self.heap[i]
self.heap[i] = self.heap[j]
self.heap[j] = tmp
tmp = self.userdata[i]
self.userdata[i] = self.userdata[j]
... | [
"alanchang544@gmail.com"
] | alanchang544@gmail.com |
a54e08494aabea9a2a437dd6544d006b047d7ea8 | 82c6dedfe9040b453c22c3f93f1a2c9a922c988b | /SimGal2/__init__.py | efdf04d09e0cdfa1364df6ea53ff274edde1cd56 | [] | no_license | njcuk9999/g_clustering | 8d34439fd78ef7017c0414c932d21cd19fc6551c | 20e6a6ab17c72c5652ae33125f7dabf4131aa8d5 | refs/heads/master | 2021-05-11T16:10:41.382938 | 2018-05-08T22:55:03 | 2018-05-08T22:55:03 | 117,753,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2018-05-08 at 10:52
@author: cook
"""
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from astropy.table import Table
from astropy import units as u
from tqdm import tqdm
import warni... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
e0cb6d81404cdfd4071e0e5392c1a0943cacecab | adb683de2a0b799ad3bf14b1962d757631184d62 | /Training/PrintEntries.py | 1d07325c22db398133c179b4ff607e1efe6ef22c | [] | no_license | psiddire/ZGamma | f2829c44bb11c36d9621ef5cd7bbdf1d610e7b84 | 0002c848946e910187cd41753ece04d2a136e174 | refs/heads/master | 2023-06-13T05:23:35.575395 | 2021-07-08T21:05:27 | 2021-07-08T21:05:27 | 384,248,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import ROOT
import os
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('input_file')
args = parser.parse_args()
f = ROOT.TFile(args.input_file)
t = f.Get("opttree")
print t.Print()
| [
"psiddire@nd.edu"
] | psiddire@nd.edu |
329acf159ee0cd3472076f3f46aebe600daca567 | 636b31e9bef7c82183f288d441f08d448af49f9c | /parlai/mturk/tasks/qa_data_collection/task_config.py | 61b7c69085277d1e055e15830c753a9d5de9db5a | [
"MIT"
] | permissive | ShaojieJiang/tldr | a553051c6b615237212082bbc21b09e9069929af | c878ed10addbae27fa86cc0560f168b14b94cf42 | refs/heads/master | 2023-08-21T23:36:45.148685 | 2020-04-08T15:09:35 | 2020-04-08T15:09:35 | 247,427,860 | 12 | 0 | MIT | 2023-08-11T19:52:22 | 2020-03-15T08:25:21 | Python | UTF-8 | Python | false | false | 2,834 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Dict, Any
task_config: Dict[str, Any] = {}
task_config['frontend_version'] = 1
"""A short and des... | [
"s.jiang@uva.nl"
] | s.jiang@uva.nl |
57da80664d13e15b1fb5d32eab31590ce6c93147 | 50f4d2bb1b1222bcb2eb0122c48a0dd254deddfc | /Baekjoon/15596_SumFunc.py | 8f998fd53fcb90414076b4ad92ad2bb8b9b6ea84 | [] | no_license | yejinee/Algorithm | 9ae1c40382e9dcd868a28d42fe1cc543b790c7f5 | 81d409c4d0ea76cf152a5f334e53a870bc0656a7 | refs/heads/master | 2023-04-13T01:29:44.579635 | 2023-04-05T06:23:26 | 2023-04-05T06:23:26 | 235,014,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
정수 n개가 주어졌을 때, n개의 합을 구하는 함수를 작성하시오.
Python 2, Python 3, PyPy, PyPy3: def solve(a: list) -> int
a: 합을 구해야 하는 정수 n개가 저장되어 있는 리스트
(0 ≤ a[i] ≤ 1,000,000, 1 ≤ n ≤ 3,000,000)
리턴값: a에 포함되어 있는 정수 n개의 합 (정수)
"""
def solve(a):
Lsum=sum(a)
return Lsum
| [
"kimyj9609@gmail.com"
] | kimyj9609@gmail.com |
4d4437f3304cc64a4c88d37cd075067e0f7fbe51 | 48523e13b15451542aa51ece14d2b3c6c4bb1b99 | /Django_apps/school/migrations/0030_auto_20181018_0554.py | 18360bf3025ab1f2d526c24b1bceeed1d331d4b7 | [] | no_license | ss-8y0/SchoolSystem | c7c64695b5ed7979e2d530941f4fbd178d95ca64 | 63298fa495a98c45175904da2820bcfce4a582a4 | refs/heads/master | 2023-03-15T11:07:38.665758 | 2019-05-27T02:52:56 | 2019-05-27T02:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Generated by Django 2.1.1 on 2018-10-18 05:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0029_auto_20181018_0551'),
]
operations = [
migrations.AlterField(
model_name='schoolinfo',
name='main_cam... | [
"414804000@qq.com"
] | 414804000@qq.com |
33e7a9f5f277c2a9a1bb7a13fdff1b21b911a27c | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_Pandas_Numpy/source3.6/tensorflow/python/ops/gen_user_ops.py | 7b2bf588fe92fe38c353706a94e7ac8b3b9be7b2 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,996 | py | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: user_ops.cc
"""
import collections as _collections
from tensorflow.python.eager import execute as _execute
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core ... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
d018835a43a787dea74bc327423715f5b8eddb8e | d93c91e904470b46e04a4eadb8c459f9c245bb5a | /banglore_scrape/propertywala/propertywala/items.py | 67333fc5790b3c33413f19c8e8d0883777f07dfd | [] | no_license | nbourses/scrappers | 3de3cd8a5408349b0ac683846b9b7276156fb08a | cde168a914f83cd491dffe85ea24aa48f5840a08 | refs/heads/master | 2021-03-30T15:38:29.096213 | 2020-03-25T03:23:56 | 2020-03-25T03:23:56 | 63,677,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class PropertywalaItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
carpet_area = scrapy.Field()
u... | [
"karanchudasama1@gmail.com"
] | karanchudasama1@gmail.com |
0ffdcdf75591586d12d96e5d28a2fef8df1bd313 | 60962534e8f0fbbe87732ff38f613a3f5fc5342f | /generateParentheses/main.py | f3b63e588b80cff5d38784a098cb0c2a6fd7a4c9 | [] | no_license | publicbull/leetcode | 4ebde395814e8ed9ce8bc8576d3c15d224ee3722 | 73fb5c1d77002cc24a2ea2db58e679cf2bd1c767 | refs/heads/master | 2020-12-24T15:22:12.457530 | 2013-07-03T22:03:15 | 2013-07-03T22:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | '''
Created on 2013-5-19
@author: Administrator
'''
def generateParentheses(depth, result):
def _generateParentheses(left, right):
if len(path) == depth * 2:
result.append(''.join(path))
if left < depth:
path.append('(')
_generateParentheses(left + 1, right)
... | [
"baiyubin@gmail.com"
] | baiyubin@gmail.com |
df790d934a0d991eec0a6d0b791b2e720dd26b12 | bc9c1e434c1fff2672440e76537f11a0b056d4d5 | /tests/supervisor/workers/worker_respawn.py | 81c4bbe3501bd6547e45048a7bb13185ca18baee | [
"MIT"
] | permissive | yoavsoda/sergeant | b0d6ec9b251c7831e397ac1b3c24cf75c589c6da | 9ab1f67684ea2f2752de9072cb1ffac46769f46f | refs/heads/master | 2023-04-26T17:14:32.674643 | 2021-04-20T16:45:14 | 2021-04-20T16:45:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import sergeant
class Worker(
sergeant.worker.Worker,
):
config = sergeant.config.WorkerConfig(
name='test_worker',
connector=sergeant.config.Connector(
type='redis',
params={
'nodes': [
{
'host': 'localhost',
... | [
"gal@intsights.com"
] | gal@intsights.com |
40a83ee8ecb473ea4373ed1674dddf67a6426f72 | f889d26fec0c4da86c2b857191564e5ee57430a8 | /Python_fundamentals/course_chapters_excercises/functions/EX04_11_Data_Types.py | 330e937d46fb41f06039ad7bd1ec8a874d930216 | [] | no_license | Grigorov999/SoftUni-Python | 4da6ecea760d13d7571723b8faa771b3be0199f6 | cb4f8f352fc48cb1ae8b2efd803265707a37227f | refs/heads/master | 2022-12-13T15:04:05.303204 | 2020-09-11T20:32:29 | 2020-09-11T20:32:29 | 294,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | def data_types(data, n):
result = ""
if data == "int":
result = int(n) * 2
elif data == "real":
result = f"{(float(n) * 1.5):.2f}"
elif data == "string":
result = "$" + n + "$"
print(result)
data_type = input()
input_string = input()
data_types(data_t... | [
"noreply@github.com"
] | Grigorov999.noreply@github.com |
861f74af3c2de1b7889a17400e22617085df29d6 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/layout/shape/line/_width.py | daa14667c7bd2187c23cdc42cd62c7407fe213a0 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 552 | py | import _plotly_utils.basevalidators
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name='width', parent_name='layout.shape.line', **kwargs
):
super(WidthValidator, self).__init__(
plotly_name=plotly_name,
parent_name=pare... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.