blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ebaa610d6c8eb57c44c39600b076754a616c11b1 | 2ce46e0e82fca0c69228e56e38f33bbb198f9f04 | /homework/homework_pageobject_pytest_siye/PageObjects/tender_page.py | 536bf0d6128bbae18aad74d9189795e558e4f593 | [] | no_license | seesun1/LemonClass | 157ad65e0818bd76e4edafcc7e0889b89109d961 | 39fc70d467079ed8e9a229f03858160bf8d37926 | refs/heads/master | 2021-09-15T08:04:00.517038 | 2017-12-25T14:26:30 | 2017-12-25T14:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
# @Time : 2017/12/4 0:01
# @Author : SiYe
# @PROJECT_NAME : LemonClass
# @File : project_page.py
# @Software: PyCharm
#-------------------------------------------------------------------------------
from selenium.webdriver.support.wait import WebDriverWait
from se... | [
"1076168822@qq.com"
] | 1076168822@qq.com |
87ece04732cb2acc1a56a4842377caf258f57fdf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_securely.py | 354e1a50d4dc2383607cb4a3d91f2d7302d29de2 | [
"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 | 545 | py |
#calss header
class _SECURELY():
def __init__(self,):
self.name = "SECURELY"
self.definitions = [u'in a way that avoids someone or something being harmed by any risk, danger, or threat: ', u'positioned or fastened firmly and correctly and therefore not likely to move, fall, or break: ']
self.parents = []
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9137b4b1bc0d434921790dbb3b1ea233760b6e87 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /4_set/6300. 最小公共值-集合交集.py | aa23a024dc580e11d35f90f6d3c465c7f728a010 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from typing import List
# 给你两个整数数组 nums1 和 nums2 ,它们已经按非降序排序,
# 请你返回两个数组的 最小公共整数 。
# 如果两个数组 nums1 和 nums2 没有公共整数,请你返回 -1 。
class Solution:
def getCommon(self, nums1: List[int], nums2: List[int]) -> int:
"""数组已经排序"""
i, j = 0, 0
while i < len(nums1) and j < len(nums2):
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
b41b6d17177d2576edcafb7c2692ea634c2d003b | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day28上--算法/算法6_重复范围.py | e72fd01cd5d72606f8d44868a30549fcced23ef7 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,648 | py | #_*_coding:utf-8_*_
'''
经典语句:程序就是算法加数据结构。
算法(Algorithm):一个计算机的计算过程,用来解决问题的方法
'''
'''
给定一个升序列表和一个整数,返回该整数在列表中的下标范围。
例如:列表[1,2,3,3,3,4,4,5],若查找3,则返回(2,4);若查找1,则返回(0,0)。
思路:
因为是有序,所以可以用二分查找找到3,
找到3后,定义左右两个指针,左指针左移,看是不是3,是就继续左移,直到不是就退出。
右指针同理,最后返回左右两指针,就得到了范围。
注意,指针不能越界
'''
def bin_serach_sum(olist,v):
#初始化指针
low=... | [
"sgq523@163.com"
] | sgq523@163.com |
e91387930f5567e18777387742ee3e9d0dab5e2f | 080a6b7be74dc2d2fac61e0bb60a5402533294de | /week5/lines-to-list.py | 18865f91e5129c888d0af875ca2d0827de409e87 | [] | no_license | rosmoke/DCU-Projects | cfec4c59ba00beb68d174cf869952b7a88e5c1dc | 1478f476e1d81756d00a206b8f5bfcd0a1094649 | refs/heads/master | 2021-01-20T17:03:59.642966 | 2016-06-23T15:06:46 | 2016-06-23T15:06:46 | 61,814,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | lines = []
i = 1
while i == 1:
input = raw_input()
if input != "end":
lines.append(input)
else:
i = 0
print lines | [
"danielasofiei@yahoo.ie"
] | danielasofiei@yahoo.ie |
d8b39a1c516d2f5c17f94296c319054c25bd24e2 | 871690900c8da2456ca2818565b5e8c34818658e | /boj/silver/14501.py | 3000b1c08b7c01ae991fcf0d109895fc4640310b | [] | no_license | kobeomseok95/codingTest | 40d692132e6aeeee32ee53ea5d4b7af8f2b2a5b2 | d628d72d9d0c1aef2b3fa63bfa9a1b50d47aaf29 | refs/heads/master | 2023-04-16T09:48:14.916659 | 2021-05-01T11:35:42 | 2021-05-01T11:35:42 | 311,012,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from sys import stdin
READ = lambda : stdin.readline().strip()
n = int(READ())
t, p = [], []
dp = [0] * (n + 1)
for _ in range(n):
ti, pi = map(int, READ().split())
t.append(ti)
p.append(pi)
max_val = 0
for i in range(n-1, -1, -1):
time = t[i] + i
if time <= n:
dp[i] = max(p[i] + dp[time],... | [
"37062337+kobeomseok95@users.noreply.github.com"
] | 37062337+kobeomseok95@users.noreply.github.com |
8cd065138546caa19d8dfb80cad98bd36cc575af | 1f4505ed66f4fd68c6d1edf18ecff58362742fad | /algorithm/TwoPointer/18_4Sum.py | 97632d69454427fc6ac5b7ebff3128538fed3770 | [
"MIT"
] | permissive | nishitpatel01/Data-Science-Toolbox | 0d9b63a365698cc4a423abd5881cde8f6bf672be | 80dc1310d103c9481feff8792426c550ddcc0a36 | refs/heads/master | 2020-05-19T08:26:40.319321 | 2019-05-04T05:58:48 | 2019-05-04T05:58:48 | 184,921,541 | 1 | 1 | MIT | 2019-05-04T16:53:21 | 2019-05-04T16:53:20 | null | UTF-8 | Python | false | false | 2,264 | py | class Solution:
# combination of two fixed number, reducing the rest of the problem to 2-sum
def fourSumPart1(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[List[int]]
"""
nums.sort()
print(nums)
N = 4
ans = [... | [
"shawlu@github.com"
] | shawlu@github.com |
1b86c9cfdddd0628d6c56e3cdd522b0b23889b15 | 62c10b93d7c80df17b6a38f53300d697dea04b00 | /cryptoparty/mixins.py | 340e284535616cc7a9f6b33b5f4eea158cae7b93 | [] | no_license | cryptopartydk/cryptoparty.dk | bf2512330b2776c70c71b677df2a6ee36cba48d8 | 49d5fa04ed253c771d5c72f395a9819fec4d8fe6 | refs/heads/master | 2021-01-17T07:05:31.314722 | 2016-05-15T10:48:18 | 2016-05-15T10:48:18 | 28,929,476 | 1 | 1 | null | 2016-04-22T09:26:20 | 2015-01-07T19:14:05 | JavaScript | UTF-8 | Python | false | false | 284 | py | from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
class LoginRequiredMixin:
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
return super().dispatch(request, *args, **kwargs) | [
"valberg@orn.li"
] | valberg@orn.li |
f14980ac0bf82ecaf233ca9e8cad6c3dbb13e8b6 | f8b9e5de8823ff810ec445b6fa6d0e34f7b6319f | /Django/PracticeExam2_project/apps/Dashboard_app/models.py | 27d48bb144c743729cd67c2f88ef043234207b43 | [] | no_license | amalfushi/Python | 6c042443a8aeae15fc96a41a692abdbea05db863 | 067c2cef722457e884833f77baf9f44f45a4a165 | refs/heads/master | 2021-01-24T04:08:21.278071 | 2018-02-26T06:25:59 | 2018-02-26T06:25:59 | 122,923,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from ..LoginReg3_app.models import User
# Create your models here.
class CommentManager(models.Manager):
def createComment(self, postData):
tempComment = self.create(
comment_text = postData['newComment... | [
"dustin.p.schroeder@gmail.com"
] | dustin.p.schroeder@gmail.com |
9a2147565b1ba65de24b5cc99f64ed5f4e1fa0ee | e6871ff61d28e5e2acf201b459da29c20a8d3dca | /setup.py | 79685d9e4a85ba9dad9f06f7069a611467159ac2 | [
"Apache-2.0"
] | permissive | csams/squerly | 9d2f38b23cae4034308806f1ebdcc99a0208d868 | 62e416dfc8b418d1cc361b59f401accc8c111b52 | refs/heads/master | 2022-11-29T09:32:48.019336 | 2020-08-12T22:17:06 | 2020-08-12T22:17:06 | 261,189,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
runtime = set([
"pyyaml",
])
develop = set([
"coverage",
"flake8",
"pytest",
"pytest-cov",
"setuptools",
"twine",
"wheel",
])
docs = set([
"Sphinx",
"sphinx_rtd_theme",
])... | [
"csams@redhat.com"
] | csams@redhat.com |
c79b0645329cf6d9eb5b20d1430672e0d0dc2f1d | e51742f3b8026d6ae44761445689ac47f1f2e495 | /plot_two_file_groups.py | 57eed9c40f8b30805a5ecb90effe559dc0679f8d | [] | no_license | igridchyn/neuro-analysis | a2979692ea6a2c99dc0991bc371125f0ec6edb5d | c0b1bb6abc9b34328aa515ce4a9098f3cbc9f05a | refs/heads/main | 2023-06-26T09:48:46.250806 | 2021-07-29T09:34:53 | 2021-07-29T09:34:53 | 390,671,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | #!/usr/bin/env python
# plot data from two groups of files (obtained by find through given
from matplotlib import pyplot as plt
from sys import argv
import subprocess
import numpy as np
from math import sqrt
import os
from scipy.stats import ttest_ind
if len(argv) < 2:
print '(1)<wildcard 1> (2)<wildcard 2>'
wc1 ... | [
"igor.gridchin@gmail.com"
] | igor.gridchin@gmail.com |
f8337cceff2742fc8e0488c9ed9833cc0cb05521 | a36eb4685fd050c8e1ecb4a333470724bd76df60 | /Leetcode/Jul20/050720/AntPlank/test.py | c4254221c68a019d0bd254ce37bb1ae5ea5e8bcb | [] | no_license | phibzy/Contests | c9cff976909234cfafc51db9d9dde01c26123168 | 24aac4c81f34916945be03ed0b7c916dae4dbbb4 | refs/heads/master | 2023-01-20T06:23:06.837937 | 2020-11-30T06:54:58 | 2020-11-30T06:54:58 | 265,750,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!/usr/bin/python3
"""
Test Cases:
"""
import unittest
from antPlank import Solution
class testPlank(unittest.TestCase):
a = Solution()
def testAllRight(self):
self.assertEqual(self.a.getLastMoment(7, [], [0,1,2,3,4,5,6,7]), 7)
def testAllLeft(self):
self.assertEqual(self.a.getLa... | [
"phibzy@gmail.com"
] | phibzy@gmail.com |
fbb4ce7292b75c77504d3408177443a56cbf6a6f | 7c4878b4881d79dd4daa3291e9c498e0706a7603 | /lesson15/index/task1.py | 7ec8ad71cd52424fb426eb3959d9f4db69b6d38c | [
"MIT"
] | permissive | zainllw0w/skillbox | 4cbdbb44762439c1aa1793a07683d7620500ddd7 | 896287b6f7f5612cf589094131fd1a12b0b192ba | refs/heads/main | 2023-04-27T16:07:16.613359 | 2021-05-20T14:12:11 | 2021-05-20T14:12:11 | 329,755,030 | 0 | 0 | null | 2021-05-20T14:06:42 | 2021-01-14T23:01:15 | Python | UTF-8 | Python | false | false | 471 | py | nums_list = []
N = int(input('Кол-во чисел в списке: '))
for _ in range(N):
num = int(input('Очередное число: '))
nums_list.append(num)
maximum = nums_list[1]
minimum = nums_list[1]
for i in nums_list:
if maximum < i:
maximum = i
if minimum > i:
minimum = i
print('Максимальное ... | [
"77465388+zainllw0w@users.noreply.github.com"
] | 77465388+zainllw0w@users.noreply.github.com |
0f98315c678f4277a75f80aaeafbe5e930da2a88 | 4d65ecebf65391df2f43ca55d70d8c2d9684ccfd | /lightning_modules/GNN/Models/interaction_multistep_gnn.py | 3123f5036360eaf2629a464f635c7b172218a0ce | [] | no_license | murnanedaniel/end-to-end | bd23ac75cae7796cde58658e9e0451835d46e11b | c455d5208b616ae1ac0312f60f827a6c92d233d1 | refs/heads/master | 2023-06-20T10:15:03.602547 | 2021-07-21T23:05:20 | 2021-07-21T23:05:20 | 285,630,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,526 | py | import sys
import pytorch_lightning as pl
from pytorch_lightning import LightningModule
from pytorch_lightning.callbacks import Callback
import torch.nn as nn
from torch.nn import Linear
import torch.nn.functional as F
import torch
from torch_scatter import scatter_add
from torch_geometric.nn.conv import Mes... | [
"murnanedaniel@hotmail.com"
] | murnanedaniel@hotmail.com |
459f40f5198fa6e892d8a8fa7a96f60e4f6eff43 | a707312fc63fdf0b1b719d8d593695de082cad7f | /betterRest_jira_example/__init__.py | 875da41c9e3be43e1c5860b292e19e04e70a3fc2 | [] | no_license | fdev31/bugrest | e75f7c1f387ead4636f56994bfbdbb5afca24368 | 2713712b8ae2b2d9b3b5a8b43c8c5e302da6271a | refs/heads/master | 2023-02-08T19:48:55.702820 | 2023-01-27T19:02:51 | 2023-01-27T19:02:51 | 83,884,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | __all__ = ["commands"]
class CFG:
@classmethod
def asDict(kls):
return {}
jira_plugin = {}
def init(env, opts):
# must be loaded after the jira plugin !!
jira_plugin["mod"] = env["plugins"]["jira"]
jira_plugin["cfg"] = env["plugins"]["jira"].CFG
def get_jira_object():
return jira... | [
"fdev31@gmail.com"
] | fdev31@gmail.com |
26e63d280008291df5eaf2259ca0e1f0bf42c840 | 1792af43b0d3e3896dd4b8269ab152a899a88113 | /deadshot/config/__init__.py | d0e5d37c1b86712706cb10ddb91ec0ecaa757f3a | [] | no_license | wax8280/deadshot | 3c2066014971140032b7762c7f5314dfa2f0647b | a3154f83124b1171c920154d85bb39edbf17a4ea | refs/heads/master | 2021-01-21T06:38:37.071994 | 2017-03-24T08:28:12 | 2017-03-24T08:28:12 | 83,261,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # !/usr/bin/env python
# coding: utf-8
import yaml
config = yaml.load(open('./deadshot/config.yml', 'r'))
| [
"wax8280@163.com"
] | wax8280@163.com |
17db822015120732281d4104084abc3c1655202b | e1f5cf7055e54f24f4bea5b1232f337fcbcae63c | /operators/solution/operators_even_odd.py | f3f801e876e0c2dfea17daa14392451f26302dde | [
"MIT"
] | permissive | revirevy/book-python | fcd64d44840b68e528422de785383f9d4a81fb98 | 9da7bfd43117f33530e708e889c26152dc8c7a25 | refs/heads/master | 2020-04-01T05:13:50.394724 | 2018-10-13T14:58:19 | 2018-10-13T14:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | number = input('Podaj liczbę: ')
if int(number) % 2 == 0:
print('Even')
else:
print('Odd')
| [
"matt@astrotech.io"
] | matt@astrotech.io |
88181d49242a84e85aa17f9e8c5e203a41cbf39f | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /products/migrations/0001_initial.py | 8c3c7cb80e517b9df5e5a887ea84aba26a843734 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # Generated by Django 3.2 on 2021-09-02 12:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('merchants', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='C... | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
5e76891c6fd61b4b76cbc83b35b90119affe864e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_188/ch43_2019_04_16_13_18_38_414865.py | 9d7a9dc016757aa22b66c02a79763c38cff18db9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | def sequencia_collatz(n):
contador = -1
while n!= 1:
if n % 2 == 0:
n /= 2
else:
n = (3*n) + 1
contador += 1
return contador
numero = 1000
maior = 0
while numero > 0:
teste = sequencia_collatz(numero)
if teste > maior:
maior = teste
re... | [
"you@example.com"
] | you@example.com |
b85823bf3f7b7fc4e483208651b3b7da6c0b3437 | 981532f898e67ce17507fe9d9ae081384df3bf5f | /datacommons/test/stat_vars_test.py | b4f409d295cc304e47f1c7ce564ae793eb17937a | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | tjann/api-python | cdeb5b8335dcaa1ad8638ed51217cda769376d11 | e44151c9c35c7fcc4bc2e688d36e0a46980fd86f | refs/heads/master | 2021-01-07T00:23:34.901376 | 2020-11-14T00:06:13 | 2020-11-14T00:06:13 | 241,524,474 | 0 | 0 | Apache-2.0 | 2020-02-19T03:33:17 | 2020-02-19T03:33:17 | null | UTF-8 | Python | false | false | 12,877 | py | # Copyright 2020 Google 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 writing, ... | [
"noreply@github.com"
] | tjann.noreply@github.com |
eeaca050f85a8469d941da81394dbfc600b85fc2 | 1b42b04a27c33bfa704f4f108c9986cd558d7545 | /external_libs/pyzmq-14.5.0/python3/ucs4/32bit/zmq/tests/test_pair.py | 48473f08b608acc7577818b210bc9c2b80ae0831 | [] | no_license | Nandan307/trex_stl_lib | addbe9e42cc69a84fba59b385b108f4f22165534 | 8b3a204308475bff79a6bb7dd1419bbf18c10ffd | refs/heads/master | 2021-01-25T00:33:17.552192 | 2018-02-28T14:41:56 | 2018-02-28T14:41:56 | 123,301,115 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
import zmq
from zmq.tests import BaseZMQTestCase, have_gevent, GreenTest
x = b' '
class TestPair(BaseZMQTestCase):
def test_basic(self):
s1, s2 = self.create_bound_pair(zmq.PAIR, zmq.PAIR)
msg1 = b'me... | [
"nakulkar@nakulkar.bos.csb"
] | nakulkar@nakulkar.bos.csb |
225d3c41f8775d4f67ace94f237c4f9fb1b3dee2 | 15097e3428df1193b25d8476f49b3f98e9d31e2a | /funs/pass_by_ref.py | 3921c27fdb913da28f256b3c07cfbc8363f91dc9 | [] | no_license | srikanthpragada/PYTHON_28_JAN_2019_DEMO | 4c19d5116726d7e2b254a50aabe56ccfc0864c3c | 12cba58f76029ec035e2a7c7a6c075528597714b | refs/heads/master | 2020-04-20T04:24:13.066635 | 2019-03-01T02:28:04 | 2019-03-01T02:28:04 | 168,626,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py |
def prepend(lst,value):
lst.insert(0,value)
nums = [1,2,3]
prepend(nums,0)
print(nums)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
5072ea5d23fdff3d70a3bb7c00566d5eafeb2462 | d552a3c92155d82ad146cd99ea9b8b4a3b65eab7 | /openstack/tests/unit/accelerator/v2/test_device.py | 22b17b336ec7b59cf89ffb03febaf3e54fa4d5c5 | [
"Apache-2.0"
] | permissive | jlyheden/openstacksdk | 600201d4fbf23fd8a4fa9a53b398b29811446051 | 7e0dcaaa4a69b17b97e746ce8de104689c60becc | refs/heads/master | 2022-11-30T19:15:16.113961 | 2020-06-07T18:02:22 | 2020-06-07T18:02:23 | 270,694,856 | 0 | 0 | Apache-2.0 | 2020-06-08T14:15:36 | 2020-06-08T14:15:35 | null | UTF-8 | Python | false | false | 2,029 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
3165e50dd296edb0a5d28b024e1c4e2ee1969e43 | 7a2d2cfbe99a13920e55e462bd40627e34d18f23 | /openbb_terminal/cryptocurrency/overview/sdk_helpers.py | ccec6062d9340aec34117974ad16ac948ae80aba | [
"MIT"
] | permissive | conrad-strughold/GamestonkTerminal | b9ada627929dbc1be379f19c69b34e24764efcff | c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e | refs/heads/main | 2023-06-24T02:59:45.096493 | 2023-05-16T15:15:20 | 2023-05-16T15:15:20 | 342,313,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | """Crypto OV SDK Helper Functions."""
__docformat__ = "numpy"
import pandas as pd
from openbb_terminal.cryptocurrency.dataframe_helpers import (
lambda_long_number_format_with_type_check,
)
from openbb_terminal.cryptocurrency.overview import coinpaprika_model, pycoingecko_model
def globe(source: str = "CoinGeck... | [
"noreply@github.com"
] | conrad-strughold.noreply@github.com |
4fd5872538497ddefc32a9afbb191cc29aaefc25 | 9cbacb28ae219c3b16e0ba0e5fc9e14a7f36e4c6 | /paper-code/tensorflow_src/models/task/task_chatter.py | 3c8bc4ac778984da4cb57f12b2ce7f7af574b9f4 | [
"Apache-2.0"
] | permissive | hquzhuguofeng/nlp-paper-1 | 7be27a30d304d789d9f6b45bef0803ff90e31aa2 | e710574c95b671e848f4e3b6ad1d275a4adbf1fb | refs/heads/master | 2023-08-27T07:47:54.575198 | 2021-10-22T12:28:22 | 2021-10-22T12:28:22 | 420,844,157 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | import os
import sys
import time
import tensorflow as tf
import model.model as task
from common.kb import load_kb
sys.path.append(sys.path[0][:-10])
from model.chatter import Chatter
import common.data_utils as _data
from common.common import CmdParser
import config.get_config as _config
from common.pre_treat import p... | [
"1210212670@qq.com"
] | 1210212670@qq.com |
f1905277edc4ede3808ba32c2600771cc11cb93f | 210691d0d62955bb1cb45e4221718418545c37f8 | /t/test_wc.py | 12001d56bf64f7578b338f0d5b81beb4c5fabe16 | [] | no_license | szabgab/pytools | d0445e1fc612592beb5706cb7af617ed2fb56df8 | c0cd51768a1a728b55c7d78fbba35c2aeda53d7c | refs/heads/master | 2021-01-18T18:25:15.914492 | 2012-11-15T07:51:26 | 2012-11-15T07:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import unittest
#import sys
#sys.path.append('bin')
#import wc
class TestWC(unittest.TestCase):
def setUp(self):
pass
# create temporary file
def test_wc(self):
self.assertTrue(True)
if __name__ == '__main__':
unittest.main() | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
23b4f421a0a3dfcf6dd0e936f4b47bf527924735 | cf74841051a2ea1d11a6765fa76d64a1caad9293 | /mysite/settings.py | 7e6e00aa76b52ef0affa6a33b9c1eab72b1cfd8e | [] | no_license | kattosai/my-first-blog | 6e8e39e5300632c66418c45265eb34aa4263f9e3 | b18c6149711b4ab512d2686be6576bf37820e810 | refs/heads/master | 2020-05-05T11:12:00.849690 | 2019-04-08T13:27:33 | 2019-04-08T13:27:33 | 179,979,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"you@example.com"
] | you@example.com |
354ddae4632496cd952b20b64e8f1d9a1e94981c | 86fe84197c897c4b12be6d574fa90beaa5c155fb | /great_number_project/urls.py | ad4c62a5c195eed01adb03dcce59b4f596129a45 | [] | no_license | raqueloropeza/CodingDojo_Django_GreatNumberGame | 225c60f5c15fefe49e1387380c76291181fccff6 | 6924b0470fab0e2d9d1894375f4410bb7a03b287 | refs/heads/master | 2023-05-18T17:51:32.122339 | 2021-05-31T18:34:13 | 2021-05-31T18:34:13 | 372,594,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """great_number_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"rockuzaki@gmail.com"
] | rockuzaki@gmail.com |
9f1b7837d52566b3b15773c7c481b18f2e0285b7 | ad7329edb9f527e605270c7a6b83686d995e3774 | /util.py | 53dd5f09f25c8b0124f53acc043157883280eb46 | [
"MIT"
] | permissive | Khoross/mtgatracker | 2f2202f2b1540224c08be9fe5a05a0de9ae5dadb | 6b71eae13b03fadcaad59f4e1f4f4983872c45c7 | refs/heads/master | 2020-04-01T17:47:04.510562 | 2018-10-14T23:55:47 | 2018-10-14T23:55:47 | 153,450,040 | 0 | 0 | NOASSERTION | 2018-10-17T12:04:57 | 2018-10-17T12:04:57 | null | UTF-8 | Python | false | false | 9,350 | py | """ util.py
generally stuff that is useful but just hasn't quite found a home elswhere in the project yet. Anything here is subject
to being moved at random! """
import json
import os
import sys
import time
from tailer import Tailer
import app.models.set as set
from mtga.set_data import all_mtga_cards
depth = {"dep... | [
"hawkins.spencer@gmail.com"
] | hawkins.spencer@gmail.com |
8fef98c2654ba9af7518648c1307f2dfd67c0ac1 | 8246092010e656920e7199f889f9cbf54b83a729 | /pycoin/symbols/ric.py | 0cb5179b08fc317c81336784f54f585757c5fe15 | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 319 | py | from pycoin.networks.bitcoinish import create_bitcoinish_network
network = create_bitcoinish_network(
symbol="RIC", network_name="Riecoin", subnet_name="mainnet",
wif_prefix_hex="80", address_prefix_hex="3c", pay_to_script_prefix_hex="05",
bip32_prv_prefix_hex="0488ade4", bip32_pub_prefix_hex="0488b21e")
| [
"him@richardkiss.com"
] | him@richardkiss.com |
d689b65e58f4d60db8f65090a8b0e8b0bdbffa84 | 8546c0e45ea7a10e07d4e5f9f8123026ecb0e54e | /backend/ancient_art_29276/urls.py | 93c0e60acd785ae79a01048668d4100015d480b4 | [] | no_license | crowdbotics-apps/ancient-art-29276 | a799ab4abbbe0ab2583c661552d7095f25650413 | e31537524839e28b1ed44ebddffe9ac95e47c582 | refs/heads/master | 2023-07-03T16:46:51.569667 | 2021-07-29T23:15:17 | 2021-07-29T23:15:17 | 390,872,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | """ancient_art_29276 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bdbf206496a0420317ec6c60a8d1a7b1c3577906 | 12cfd1678317f40ca778b8c65d7323637c8c358d | /2018腾讯广告算法大赛/team1_lgb&nffm/src/014_CV_cvr_select_p.py | 7582b0de170d96bf099fdfb6df27df2bb75f6f8b | [] | no_license | moonlight1776/competitions | e73d0ce358d2b5662b801820fd2f6434f2af4e2e | a372a2051a2a1580feb280ce6842a785459cf8d1 | refs/heads/master | 2022-03-21T09:31:20.276644 | 2019-11-09T05:37:46 | 2019-11-09T05:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | ##筛选特征
col_new = ['cvr_of_aid_and_onehot7',
'cvr_of_age_and_onehot7',
'cvr_of_consumptionAbility_and_onehot1',
'cvr_of_aid_and_onehot3', 'cvr_of_advertiserId_and_onehot3',
'cvr_of_advertiserId_and_onehot1', 'cvr_of_gender_and_onehot2',
'cvr_of_campaignId_and_onehot7', 'cvr_... | [
"327643958@qq.com"
] | 327643958@qq.com |
e934a0bdc018a0da5a8ea763e93fcfd986997a79 | 0d2d3058feddb9be205427a142e0320821a0ca9c | /myapp/urls.py | 42aae4734d65f266b9c79707e4e90aa112ccaba2 | [] | no_license | Emad-ahmed/Leading_university_website | 76085d93df2f24940b9a2023873add6d26c044f3 | db12faca90041c606972a7eccf8fb62701b26a88 | refs/heads/main | 2023-06-06T21:10:54.051778 | 2021-07-07T03:42:56 | 2021-07-07T03:42:56 | 383,501,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from myapp.views.faculty import eng
from django.urls import path
from myapp.views import HomeView, shownotice, shownews, LoginView, SignupView, user_logout, EmailView, bba, cse, eng, StudentView
from django.contrib.auth import views as auth_views
from .forms import MyPasswordResetForm, MySetPasswordForm, MyPasswordChan... | [
"amadahmed1234678@gmail.com"
] | amadahmed1234678@gmail.com |
ea9cf5a73ecf15898db5b9d376aa74ae41b4575a | 812f9822ddbfc986f4f230a9e6814f22c7c50e2f | /branching/nested.py | baba8661b3a2dfe6f2a4379b635ee0c8de297c89 | [] | no_license | devopsvj/PythonAndMe | 31b4aa9bade1431d6f13917122dc12bf6a118da6 | 0b1362023960b7c77c79856d4bdef0a58fec1446 | refs/heads/master | 2023-07-25T23:06:39.081191 | 2019-01-15T09:50:08 | 2019-01-15T09:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #Program for if statements
#Author:K.Vani
#Date:16.12.1018
#Batch :Devops December 2018
print "Example for if satement"
print "----------------------"
x=input("Enter the Value for x:")
y=input("Enter the value for y:")
z=input("Enter the Value for z:")
a=input("Enter the value for a:")
"""if x>y and x>z and x>a :
p... | [
"vani_kani@hotmail.com"
] | vani_kani@hotmail.com |
8e05f8316c34e11f625d1119368230bc445d4dac | 6e99c57261bcc5ba1f31bffc6ee1d854a00cdd56 | /examples/anon-bucket-sort/bootstrap.py | f447c9c9c8a419ea35d419379552bf8f0ced50c9 | [
"MIT"
] | permissive | chrisseto/Still | 5a0249b8eb28956b2be5538d07fb8091e3c54c49 | 3e4df26b824227472e5f487905779deafc76b4dd | refs/heads/master | 2021-01-10T13:43:33.098299 | 2015-10-12T05:22:24 | 2015-10-12T05:22:24 | 43,833,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import os
import json
import asyncio
from wdim import client
from wdim.client.permissions import Permissions
from wdim.orm import Storable
from wdim.orm import exceptions
from wdim.orm.database import MongoLayer
from wdim.orm.database import EmbeddedElasticSearchLayer
cards_loc = os.path.join(os.path.split(__file__)... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
f2c07af575636924d36d2f3874cd92e1c7c7d55f | 8b8da03245af2d7dd3513bf4ba9a1cf9f4923275 | /bingads/v12/bulk/entities/bulk_account.py | 37f2eefd971a7145b4193bbb6a6a02f5e9f27f37 | [
"MIT"
] | permissive | dev0505/BingAds-Python-SDK | 42233f4c41209da99ad3e5c494babdd2e13ead69 | ec8e98f5ff1f472b2ca5801c4dc230039c5b83f9 | refs/heads/master | 2020-05-07T19:34:50.000451 | 2019-03-21T05:04:22 | 2019-03-21T05:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | from bingads.v12.internal.bulk.string_table import _StringTable
from bingads.v12.internal.bulk.entities.single_record_bulk_entity import _SingleRecordBulkEntity
from bingads.v12.internal.bulk.mappings import _SimpleBulkMapping
from bingads.v12.internal.extensions import *
class BulkAccount(_SingleRecordBulkEntity):
... | [
"qitia@microsoft.com"
] | qitia@microsoft.com |
2965fe1e208f712e3e99e3ebf5778e835be9fd11 | 910c97ce255f39af7ef949664b4346e8cb5d6a0e | /monitorcenter/monitor/mirror/disk.py | b149464a149accec9348522008b7e46f181d867e | [] | no_license | sun3shines/manager_monitor | f3742a4fde95b456f51d0a18feb78f3d4048c560 | f49d741203d8476f2249a49d90fecc86143ac622 | refs/heads/master | 2021-01-17T06:47:14.375088 | 2016-04-29T06:43:05 | 2016-04-29T06:43:05 | 57,361,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # -*- coding: utf-8 -*-
from managerlib.db.table.dynamic.stat_disk import Disk,insert_disk,update_disk
from managerlib.db.table.dynamic.stat_disk import hid2attrs as DISKhid2attrs
from monitorcenter.monitor.mirror.base import MirrorBase
class MirrorDisk(MirrorBase):
def __init__(self,db,hid):
super(Mirror... | [
"sun__shines@163.com"
] | sun__shines@163.com |
c928d652311163cd67c3071a7f3513d7ce86b16b | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /nlp/cloze_test/glm/pytorch/GLMForMultiTokenCloze/base/train/event/log.py | ca169d8b4fe1aecee27cdc806aa66540ed65822d | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 5,275 | py | import copy
import inspect
import os
import os.path as ospath
from typing import Tuple, Union, Iterable
from torch import Tensor
from torch.cuda.amp import GradScaler
from torch.optim import Optimizer
from config.config_manager import get_properties_from_config
from utils.logging import PerfLogger, LogEvent, PerfLogL... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
3048a911894df5b04b0c4d54932f486ff3601d6e | 6bc42771a987b503df1866ad3fb8cf3126805806 | /examples/plot_transforms.py | 760cabe6244bdbc69117042c21ae3f85915a1207 | [
"Apache-2.0"
] | permissive | anchandm/fooof | 82c479ebd08e154cb1a3feedf60804ede81a76cb | dcc93b14c4a6987ce7e394696af3221dd2a7bbd6 | refs/heads/master | 2020-05-02T07:51:03.064334 | 2019-03-20T03:06:19 | 2019-03-20T03:06:19 | 177,828,211 | 1 | 0 | Apache-2.0 | 2019-03-26T16:30:30 | 2019-03-26T16:30:29 | null | UTF-8 | Python | false | false | 1,265 | py | """
Transforming Power Spectra
==========================
Apply transformations to power spectra.
"""
###################################################################################################
# Imports
from fooof.synth.gen import gen_power_spectrum
from fooof.synth.transform import rotate_spectrum
from fo... | [
"tdonoghue@ucsd.edu"
] | tdonoghue@ucsd.edu |
7e98137ff59ad45092492d5017693683fffe0cc2 | 0e51815b524229c7562572f10d178eb446cb7715 | /project18/app18/apps.py | 2929b85d78d69c8157c514f030b31065a05443dd | [] | no_license | Eswar0407/Django-10Am | 4d38cc795d7233bf5b6d1792755b018584a7c627 | c668b96dd69c72daba09bc944134302073827fae | refs/heads/master | 2023-07-16T23:52:52.820204 | 2021-09-05T17:57:14 | 2021-09-05T17:57:14 | 374,605,139 | 0 | 0 | null | 2021-06-13T16:20:40 | 2021-06-07T09:16:52 | Python | UTF-8 | Python | false | false | 142 | py | from django.apps import AppConfig
class App18Config(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app18'
| [
"eswarbablu@gmail.com"
] | eswarbablu@gmail.com |
f8ddf2cb07624eabe3a281e2d346f7452b28d233 | 80831d77ef6fc3b485be80501b73ccb30ce5e444 | /networkapi/api_equipment/tests/sanity/test_equipment_get.py | 56e5f87ba6ac8d169743fd61137b14ced95d0430 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | globocom/GloboNetworkAPI | e2fdf5a9e6070359e90801bf3e45c2d499f199c5 | eb27e1d977a1c4bb1fee8fb51b8d8050c64696d9 | refs/heads/master | 2023-06-25T21:34:04.923940 | 2023-05-29T12:07:20 | 2023-05-29T12:07:20 | 22,734,387 | 86 | 74 | Apache-2.0 | 2023-05-29T12:07:21 | 2014-08-07T19:47:43 | Python | UTF-8 | Python | false | false | 1,317 | py | # -*- coding: utf-8 -*-
import logging
from django.test.client import Client
from networkapi.test.test_case import NetworkApiTestCase
log = logging.getLogger(__name__)
class EquipmentGetTestCase(NetworkApiTestCase):
fixtures = [
'networkapi/system/fixtures/initial_variables.json',
'networkapi/... | [
"ederson.brilhante@corp.globo.com"
] | ederson.brilhante@corp.globo.com |
891121b9606027367e79edf296778c24e1863184 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Difference/trend_ConstantTrend/cycle_12/ar_12/test_artificial_1024_Difference_ConstantTrend_12_12_20.py | 255ad8d8fc80ccb9aa8b7a9077af1162adb8c95e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 12, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
8fd7c7fbc4db895dd99bf109747f0a5520c29529 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/toolkit/model/get_operation_record_request_wrapper.py | f0b1b8bbae25a9c946d4538a75ea6047957018a8 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,608 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
53aa879f095b39f36320336ad01e799973484d25 | 2d0bada349646b801a69c542407279cc7bc25013 | /docsrc/source/doxygen/pydoc/execute_async.py | 782a192a068fbb6bb04256d4ec4f587d475fa660 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 472 | py |
"""!
@brief Executes the runner. This is a blocking function.
@param inputs : List[vart.TensorBuffer], A list of vart.TensorBuffer containing the input data for inference.
@param outputs : List[vart.TensorBuffer], A list of vart.TensorBuffer which will be filled with output data.
@return ... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
7a88d8fa4488ba5fa2c2b4c39da14e4c4686d172 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2796/60692/251559.py | a8bf87a7e07b8477d2a22079daf8e9c61c1ab118 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | nums = int(input())
list1 = input().split(" ")
list1 = [int(i) for i in list1]
def isPower(num):
low = -num
high = num
while low < high:
mid = (low + high) // 2
if mid ** 2 < num:
low = mid + 1
elif mid ** 2 > num:
high = mid - 1
else:
r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d690476d5c1f08c02cc4bbdc52aee63f034af167 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /airflow/providers/vertica/operators/vertica.py | 50463a7771ececc01a00331495f8974e4a7ac3e7 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 2,050 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
7bb26aa80818a9ed70dcae325f932f5178923f9a | 2a4ad073755ff447926e44b7c2e0b56b5ded37d2 | /NowCoder/36S_两个链表的第一个公共结点.py | 52164b5ccc6a09928f661889ab429d8a262f6a87 | [] | no_license | wcb2213/Learning_notes | 3a9b3fdb7df5c6844a9031db8dd7e9dd858e093c | d481e1754c15c91557027bee872f4d97da3c0fca | refs/heads/master | 2021-07-06T15:54:56.199655 | 2020-09-04T14:05:50 | 2020-09-04T14:05:50 | 174,832,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env/ python
# -*- coding:utf-8 -*-
# Created by: Vanish
# Created on: 2019/3/22
# 24ms
# 输入两个链表,找出它们的第一个公共结点。
# 公共节点具有相同的地址
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def FindFirstCommonNode(self, pHead1, pHead2):
# write cod... | [
"wcb2213@163.com"
] | wcb2213@163.com |
a111d6668265a5b441e1c1cef192578655aa1dc5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_999.py | c6ccb75a3445f789e1b54569ddab2f820db51ace | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | # How to bind a TextField to an IBOutlet()?
setStringValue_
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
d2e724651959af6b3b9bbfed7c6ca532e920040d | c9d5ca04f42226d3c6b10f2318aebacfb43cfda7 | /tests/test_algebra/test_vector.py | 3ff9a7d064ee6f944d468e6db8a6a538ef3349e5 | [
"MIT"
] | permissive | ioztelli/ezdxf | cfb81deb7b666fa4e0ed32f1b0753fbe5faa57ee | 59605dc34c44fe4ad3a8162d6520a3b4776582b4 | refs/heads/master | 2020-04-21T18:37:37.022364 | 2018-11-28T12:56:19 | 2018-11-28T12:56:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,141 | py | import sys
import pytest
import math
from ezdxf.algebra.vector import Vector, is_close
PY3 = sys.version_info.major > 2
def test_init_no_params():
v = Vector()
assert v == (0, 0, 0)
assert v == Vector()
def test_init_one_param():
v = Vector((2, 3))
assert v == (2, 3) # z is 0.
v = Vector((... | [
"mozman@gmx.at"
] | mozman@gmx.at |
26d60373ba20e7c396d6b3c3eb3d41e21eca9b0c | 284f4f56aed56573eb5516aa67c99bf41e595522 | /Leetcode/Queue & Stack/p1337.py | d64c819ab7d4db49c53ed975f32e633aa2a8b4c6 | [] | no_license | rohangoli/PythonAdvanced | 537a05eff9ec305a6ec32fa2d0962a64976cd097 | 6448a5f0d82c7e951b5e476638e15a3c34966cd9 | refs/heads/develop | 2023-07-20T04:33:50.764104 | 2023-07-14T04:04:18 | 2023-07-14T04:04:18 | 126,811,520 | 0 | 0 | null | 2022-06-10T23:07:10 | 2018-03-26T10:20:16 | Jupyter Notebook | UTF-8 | Python | false | false | 4,649 | py | ## Design Circular Queue
# Example 1:
# Input
# ["MyCircularQueue", "enQueue", "enQueue", "enQueue", "enQueue", "Rear", "isFull", "deQueue", "enQueue", "Rear"]
# [[3], [1], [2], [3], [4], [], [], [], [4], []]
# Output
# [null, true, true, true, false, 3, true, true, true, 4]
# Explanation
# MyCircularQueue myCircular... | [
"rohanr27@gmail.com"
] | rohanr27@gmail.com |
f23f1f92ebec803ab3cfd711f847c4a7e60f5e61 | cf652cb90f9d6b22b5943e7d025af631214a904d | /contrib/build-wine/deterministic.spec | 01dff8d60d15b6e08d3e971bbaa7ad2890eb9531 | [
"MIT"
] | permissive | ddude1/TestLite | 02919c68013d2ede9195d618d94260b842a5e292 | 3f3c00e4ef03dd9b23b99b02f9a8895da8d65aef | refs/heads/master | 2022-12-11T12:22:25.029101 | 2018-06-13T14:11:51 | 2018-06-13T14:11:51 | 136,489,568 | 0 | 0 | MIT | 2022-09-23T21:47:03 | 2018-06-07T14:31:31 | Python | UTF-8 | Python | false | false | 3,262 | spec | # -*- mode: python -*-
import sys
for i, x in enumerate(sys.argv):
if x == '--name':
cmdline_name = sys.argv[i+1]
break
else:
raise BaseException('no name')
hiddenimports = [
'lib',
'lib.base_wizard',
'lib.plot',
'lib.qrscanner',
'lib.websockets',
'gui.qt',
'mnemo... | [
"32743542+ddude1@users.noreply.github.com"
] | 32743542+ddude1@users.noreply.github.com |
67478ebc3d95f581efd04b7e8f9785e8c7356d45 | 7afcf3cf0f55ecc255aabdda3b90c44528f53b50 | /Crawler/ai/ai/ai/items.py | ed1681a61ab48cf04819544016e5a09308405564 | [] | no_license | entscheidsuche/scraper | 368c6ac8fd14e15116c26f936f32d2ed0acac2ae | b9fafd3f1c2600a78471d4e4c466250ab11a8f33 | refs/heads/master | 2023-04-05T22:09:20.270314 | 2021-04-18T19:29:24 | 2021-04-18T19:29:24 | 264,894,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | 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 AiItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name = scrapy.Field()
link = scrapy.Fiel... | [
"joern@erbguth.net"
] | joern@erbguth.net |
354f84a91bfa9fb50948ba4a5b0b9fca0a5a2e8d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/784.py | c996bf19a378d7bdffef6baad4ca8a6bd272cf74 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py |
f = file('cipher')
string_mapping = []
char_mapping = {}
x = int(f.readline())
for i in range(x):
string_mapping.append([f.readline()])
for i in range(x):
string_mapping[i].append(f.readline())
for i in range(x):
for j in range(len(string_mapping[i][0])):
x1 = string_mapping[i][0][j]
x2 ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
55e705dfe0e11bc045a55ecd85bc6dc9f54a1d2b | 455cab19b8c1b7fa43d97e93137834431ab479b1 | /hw0/1a.py | d88e062b989e94269b9eb3674a8829010c0dbae4 | [] | no_license | janeon/hsieh-stat339 | f5c731503d17798be4bd18e33601e9060c7d5b88 | 8927e45da48b2a867e10cd94ac138b76c0767843 | refs/heads/master | 2021-01-03T04:30:39.101070 | 2020-02-12T04:04:58 | 2020-02-12T04:04:58 | 239,923,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.arange(10)
y = np.floor(x)
plt.xlabel('x axis')
plt.ylabel('y axis')
print(type(plt.step(x, y)))
plt.show()
| [
"jhsieh@oberlin.edu"
] | jhsieh@oberlin.edu |
fcd8f4b935de79b3970106ec58f17b968edefb80 | a46897f8610749db614e53208c39b2f0308011b3 | /usage_report.py | 391c50d21343498a8efc1599eae83b780b32f90b | [] | no_license | seidelj/uprogram-math | 4bd269c2a2fe4218529f4369555cbd51e04b4363 | 4a73ec6db1de48624046abe321d483f094e6ee1c | refs/heads/master | 2021-01-19T03:25:19.077484 | 2016-10-15T01:15:47 | 2016-10-15T01:15:47 | 52,285,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import website.wsgi
from request.models import Request
from mathtutor.models import Student
import csv
csvFile = open("access.csv", 'w')
writer = csv.writer(csvFile, csv.excel)
columns = [f.name for f in Request._meta.get_fields()]
writer.writerow(columns)
for r in Request.objects.all():
if r.user_id:
row ... | [
"seidel.jp@gmail.com"
] | seidel.jp@gmail.com |
d5e9ddbf4cd946d176d9f9410b47c88c0bc6f578 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/feature/vt/gui/task/ForceApplyMarkupItemTask.pyi | a0d1f4c08ef41ab1d8ca046c6f84079e18d142a4 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | pyi | import ghidra.feature.vt.gui.task
import ghidra.util.task
import java.lang
class ForceApplyMarkupItemTask(ghidra.feature.vt.gui.task.ApplyMarkupItemTask):
def __init__(self, __a0: ghidra.feature.vt.api.main.VTSession, __a1: java.util.Collection, __a2: ghidra.framework.options.ToolOptions): ...
def addT... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
a3e82a1f2efc481e4336c6020234f9bf90f84a93 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/809.py | 4bae6be20deb773c0675bd27ac9141f4cb83b3b5 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class Solution(object):
def expressiveWords(self, S, words):
def RLE(S):
return zip(*[(k, len(list(grp)))
for k, grp in itertools.groupby(S)])
R, count = RLE(S)
ans = 0
for word in words:
R2, count2 = RLE(word)
if R2 != R:... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
566430d6408c4043b198fd0bf8b7b62bdb08e899 | 665add8c434df0445294931aac7098e8a0fa605b | /ver1/ch10/echoClient.py | 2d9a1570d99f6a3819cc5cd98efcebde98e3e02a | [] | no_license | swkim01/RaspberryPiWithIOT | f43cef567ca48f2ce9deec0cba87fa801dcbcbe2 | d4b5c9aeb09490429a551f357d3c83ab04deed82 | refs/heads/master | 2023-04-14T20:04:33.924243 | 2023-04-12T05:15:32 | 2023-04-12T05:15:32 | 48,477,439 | 4 | 14 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import socket
import sys
HOST, PORT = "<arduino ip>", 7
data = " ".join(sys.argv[1:])
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
sock.connect((HOST, PORT))
sock.sendall(data + '\n')
received = sock.recv(1024)
finally:
sock.close()
print "Sent: {}".format(data)
print "Received: {... | [
"swkim01@gmail.com"
] | swkim01@gmail.com |
c4dae2d58da8f29eacf1744564d8c1d490614f4b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1484496_0/Python/zifmia/equalsums.py | 070fef3e61ff34fceaa4a7e4767191dd421f5cee | [] | 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,104 | py | # google code jam 2012 round 1b
# equal sums
import itertools
def numlist(s, n, v):
answer =""
for i in range(n):
if (1<<i & v):
answer += " " + str(s[i])
return answer[1:] + "\n"
f = open("c:\\users\\James\\Downloads\\C-small-attempt0.in", "r")
#f = open("equ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
290788da9c02368ec2297cca7a6283e7fc5b95a1 | 9f6e256b96f20fb4f9e13c42066b49d43d22f47f | /docs/extensions/details.py | 231d1c55eabc4bda563a504930f732a7da5cf3f3 | [
"MIT"
] | permissive | bijij/Donphan | 4daa75fee451e6b911e4e24f2c14c27b56102ee3 | c583332d290473c19a8cdd9f7c14cf17a7d17de1 | refs/heads/master | 2023-08-16T21:32:35.382536 | 2023-08-13T11:52:15 | 2023-08-13T11:52:15 | 188,970,855 | 19 | 3 | NOASSERTION | 2022-12-22T15:23:47 | 2019-05-28T06:49:48 | Python | UTF-8 | Python | false | false | 1,708 | py | from docutils.parsers.rst import Directive
from docutils.parsers.rst import states, directives
from docutils.parsers.rst.roles import set_classes
from docutils import nodes
class details(nodes.General, nodes.Element):
pass
class summary(nodes.General, nodes.Element):
pass
def visit_details_node(self, node... | [
"josh.ja.butt@gmail.com"
] | josh.ja.butt@gmail.com |
17dd1dfa08c75cbef333ad95c13333ffad288d3b | 325bee18d3a8b5de183118d02c480e562f6acba8 | /HongKong/HCK_l/build/lib/HCK_l/settings.py | 5039699bcf1b52e9bf5fae7767ce72cd5c06eca0 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 4,260 | py | # -*- coding: utf-8 -*-
# Scrapy settings for ChinaSpider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/la... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
976b6f40f74fe705396ec1586f10765ac82dc20a | ec9590c45c34d3314869cb65712143cbeb70372d | /samples/use_management_resource.py | fc631a1b88bbdf7009690ee8ee7897acf69bed66 | [
"MIT"
] | permissive | areed1192/sigma-azure-management | 522cee4d858ad7dfbcd8277ddfa15c89ccc0b74f | 65edeac081e9e2b1ba85d2aa262e73e5f89ae5ca | refs/heads/master | 2022-12-18T07:54:27.659804 | 2020-09-20T23:22:42 | 2020-09-20T23:22:42 | 288,521,057 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | from pprint import pprint
from configparser import ConfigParser
from azure.mgmt.resource import ResourceManagementClient
from azure.common.credentials import ServicePrincipalCredentials
# These are only imported for Type Hinting and Intellisense.
from azure.mgmt.resource.resources.models import ResourceGroup
from azu... | [
"alexreed1192@gmail.com"
] | alexreed1192@gmail.com |
3ee38e56dbc5fd7ee935ef1c4b6bc3eb7c3e8d41 | 9296896cb6cdc68a27052a36a8fbed48aaf7fac9 | /aanim/state.py | e178a422403d16b8489fc71fbf9a50269a72a687 | [] | no_license | francolq/algo2 | 28da0cdb35a8d6c32121dc6a4b9747eb4c4a7171 | ea4940b7d42cf9ae29a57bcc238e475b9427621c | refs/heads/master | 2022-07-14T03:55:35.473395 | 2020-05-13T01:02:41 | 2020-05-13T01:02:41 | 263,446,665 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | from manimlib.imports import *
from aanim.code import code_text
class State(VGroup):
def __init__(self, vars_values):
VGroup.__init__(self)
self.var_dict = var_dict = {}
for i, (name, value) in enumerate(vars_values):
# values to the right
#var = algorithms.code(... | [
"francolq@famaf.unc.edu.ar"
] | francolq@famaf.unc.edu.ar |
8b3538ad3cfd11dfb423b95da253abaf6ea09ee2 | e7272e2e1e2da1e60dee1e4dad7154d339a83a9d | /migrations/versions/31888642621b_.py | e731df004f6c06b046a4ae8901b23a7f1051b43f | [] | no_license | Shumpei-Kikuta/rental_app | 2cdfbb349293b798697c11b3a71b4d199272760d | e2c1cf4cfe467a8dd3b9aa692fb13ccdc15cac83 | refs/heads/master | 2020-03-22T22:57:11.677838 | 2018-09-19T13:13:16 | 2018-09-19T13:13:16 | 140,780,864 | 0 | 0 | null | 2018-07-26T03:45:04 | 2018-07-13T01:22:07 | HTML | UTF-8 | Python | false | false | 1,209 | py | """empty message
Revision ID: 31888642621b
Revises: e1adc6885ee7
Create Date: 2018-07-01 16:59:23.157768
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '31888642621b'
down_revision = 'e1adc6885ee7'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"shunpei-kikuta775@g.ecc.u-tokyo.ac.jp"
] | shunpei-kikuta775@g.ecc.u-tokyo.ac.jp |
b5f782d0e836f8b937f8807e14096b0de58bfc9d | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /data/HIRun2017XeXe/HIMinimumBias8_XeXeRun2017_13Dec2017_v1/crabConfig.py | a76697fdc398c13f30d11cc6b40845df50ba5548 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_('General')
config.General.requestName = 'HIMinimumBias8_XeXeRun2017_13Dec2017_v1'
config.General.transferLogs = False
config.section_('JobType')
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = 'runForestAOD_XeXe_... | [
"tatark@mit.edu"
] | tatark@mit.edu |
12871556a0e36bbd57a48656d63a5f2ddf1e7148 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02971/s422675559.py | 7dd04b9ba5d06549a8b4edc20b71a6777dca8037 | [] | 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 | 319 | py | N = int(input())
A = []
dicA = {}
for i in range(N):
tmp = int(input())
dicA[tmp] = dicA.get(tmp, 0) + 1
A.append(tmp)
sortA = sorted(dicA.items(), key=lambda x: x[0], reverse=True)
for ai in A:
if ai != sortA[0][0] or sortA[0][1] != 1:
print(sortA[0][0])
else:
print(sortA[1][0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7eaf49d148aa58027caa28f31e6e76f17a0ff2b6 | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /backspaceCompare_844.py | f6c3023e89203770ef31770cbe358b34b2512ed7 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
stack1 = []
stack2 = []
for ele in S:
if ele is not '#':
stack1.append(ele)
elif ele is '#' and len(stack1) != 0:
stack1.pop()
for ele in T:
... | [
"yadavallisasank@gmail.com"
] | yadavallisasank@gmail.com |
dad411bffc16500070001c574f41de71acd9b11e | 52243c4a05a296e7c042663b5942faa47eb66aee | /server_cherrypy/api_active_learning.py | 97ca910b59a5b7f5e5c030ac4f496a49c7460aa1 | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | import cherrypy, json, pymongo, sys, os
from os.path import abspath
from jinja2 import Environment, FileSystemLoader
from mongoURI import mongoURI
sys.path.append(os.path.dirname(os.path.dirname(os.getcwd())))
from pesquisas.common.active_learning_logreg import active_learning_logreg
env = Environment(loader=FileSyst... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
0b122455553b1d5c0614d0183858f920694f6dc5 | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch30/ch30_20.py | f11c7b32c43ba44bccbacd5ec9de108cb47809c9 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # ch30_20.py
import threading
class MyThread(threading.Thread): # 這是threading.Thread的子類別
def __init__(self):
threading.Thread.__init__(self) # 建立執行緒
def run(self): # 定義執行緒的工作
print(threading.Thread.getName(self))
print("Happy Python")
... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
1e862a1482bac70c31b292f846c297325b4e6e92 | fa124fdbf36327bf8e74bbc7f00ce448c1e7939a | /src/com/rwanda/mch/exception/unknown_record_error.py | 4081f209728b76a9337837f854d44302c81d785f | [] | no_license | pivotaccess2007/mch | 039f17cdb16b434c0a25504cc81b7db81e5da988 | 523d1cd706296744e17e85683b5dbedbc05dd9e6 | refs/heads/master | 2020-03-30T16:33:44.451275 | 2018-10-03T13:23:00 | 2018-10-03T13:23:00 | 151,414,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
##
##
## @author UWANTWALI ZIGAMA Didier
## d.zigama@pivotaccess.com/zigdidier@gmail.com
##
__author__="Zigama Didier"
__date__ ="$Nov 22, 2017 1:29:30 PM$"
class UnknownRecordError(Exception):
def __init__(self, params):
self.params = params
| [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
62540dacf49d9e7a0fb31b7bb00b4dcf170529e0 | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Library/simulation/adaptive_clock_speed.py | 482b71de05bca52f5016f06ad1ea611dacb76b72 | [
"CC-BY-4.0"
] | permissive | NeonOcean/Environment | e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d | ca658cf66e8fd6866c22a4a0136d415705b36d26 | refs/heads/master | 2022-12-03T13:17:00.100440 | 2021-01-09T23:26:55 | 2021-01-09T23:26:55 | 178,096,522 | 1 | 1 | CC-BY-4.0 | 2022-11-22T20:24:59 | 2019-03-28T00:38:17 | Python | UTF-8 | Python | false | false | 6,643 | py | from sims4.tuning.tunable import TunableTuple, Tunable, TunableEnumEntry, OptionalTunable
import clock
import clock_telemetry_helper
import services
import sims4.log
logger = sims4.log.Logger('AdaptiveClockSpeed', default_owner='trevor')
with sims4.reload.protected(globals()):
first_tick_above_threshold = None
... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
04f8aae44c3d7323abaffd9ce2d0d4b45fc70ea6 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/polusage5min.py | 2e9231c5855b38f91a1336da0ef00fc2d7d19682 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 20,533 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
d1cb31e3e17e1f1df6732515909cc08bde3cae71 | 624561e652e2879f34eb82c017e9ccaaa6d05eb2 | /kaggregate/decorators.py | 17deff00beebaa83508adff50758509ac06dd465 | [
"BSD-2-Clause"
] | permissive | kaleidos/django-kaggregate | 2a4b3fc61710f91e7494a24f5e0f5df0c3816844 | 99483657f1e0c9753a74190d23b96518de69dda7 | refs/heads/master | 2021-01-01T05:49:17.085576 | 2012-04-15T21:02:17 | 2012-04-15T21:02:17 | 3,824,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # -*- coding: utf-8 -*-
import functools
def as_map_reduce(key):
def _wrapper(method):
method._kaggregator_mode = 'map-reduce'
method._kaggregator_key = key
return method
return _wrapper
def as_django_aggregator(key):
def _wrapper(method):
method._kaggregator_mode = 'djang... | [
"niwi@niwi.be"
] | niwi@niwi.be |
75419ffc09accdf0f019f59d0aa96a351eae269c | 4e808ecca7a94a70a63c59b4c91a15cd61bada6e | /natuurpunt_imp_members/__openerp__.py | 221b109ac4860426ef44dae4d8e49d5516107f55 | [] | no_license | smart-solution/natuurpunt-crm | 79b98cfc8c69027dc82afa3779b65616141e6779 | 0bd247e78c01e79ec54b90c0d0bcaca38742f04d | refs/heads/master | 2021-05-22T05:43:42.913854 | 2020-12-02T08:06:05 | 2020-12-02T08:06:05 | 39,186,027 | 0 | 0 | null | 2020-12-02T08:06:06 | 2015-07-16T08:36:27 | Python | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
##############################################################################
#
#
##############################################################################
{
"name" : "natuurpunt_imp_members",
"version" : "1.0",
"author" : "SmartSolution",
... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
c3cb985f31bdc8125c74e56602410d093f515f33 | 8da9c672aeb0a006344a452a817163b9e46c2a1c | /code/check_order_events.py | 575df372212a7e5f66c1553d172a06440926f1dd | [] | no_license | tuandnvn/ttk | 2d200218645dc84df8aebb236381191da1177a8d | 72b57f34f194bbb3049a6f3c879580b8a5755c7f | refs/heads/master | 2021-04-07T07:25:04.780157 | 2018-03-15T00:39:14 | 2018-03-15T00:39:14 | 125,291,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | from library.relation import get_standard
from library.classifier.classifier_ordering_loader import ClassifierRuleDictionary as crd
from docmodel.xml_parser import Parser
from docmodel.xml_parser import XmlDocElement, XmlDocument
from nltk.corpus import wordnet as wn
def check_event_pair_in_doc(file):
xmldoc = Par... | [
"tuandn@brandeis.edu"
] | tuandn@brandeis.edu |
9b511b109badfe42c94de954f51dacc59cae4098 | 73e407516c4241ddffd568b31d16e1e66de811ee | /apps/users/migrations/0002_auto_20180130_2131.py | 2ab46f7428a5a0e9584ba090e16c657746265399 | [] | no_license | lannyMa/mxonline | 0eed4a974bf2972c7a1ca71a90e50a6fd35f06a1 | 98b08fb14e51cd3b46b7139650141ee11ca65c0c | refs/heads/master | 2021-05-09T08:33:22.011712 | 2018-02-07T13:47:16 | 2018-02-07T13:47:16 | 119,395,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 2.0 on 2018-01-30 21:31
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='emailverifyrecord',
name=... | [
"iher@foxmail.com"
] | iher@foxmail.com |
fdd84a307f4c9c33968065e4f6dc85b44b78a86c | 43f01f6538335e335177de2267c888906a7dbf1c | /shop/migrations/0001_initial.py | 307ac1bb8944508e2a7fe7a223c769aad13e661d | [] | no_license | Chiefautoparts/equipmentRental | bb5f2b0db1588a9372e96cc20b7e8bcfd8fb73c9 | bba249af27bbbc67e8e5d50c7169dcb801a4b314 | refs/heads/master | 2020-02-20T06:57:57.201816 | 2018-03-23T03:08:11 | 2018-03-23T03:08:11 | 126,425,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(aut... | [
"chiefautoparts@outlook.com"
] | chiefautoparts@outlook.com |
2e6a4295cb536526c49bdfa7f37aa6c5d929331e | f0e40f956405d4f5535ec14202580b4b6a192d35 | /i3/py3status/wifi.py | 525c7589403d3e53dcb2401958ea71a2f02827cf | [] | no_license | devmarcstorm/dotfiles | aa63ac7b41fb4be3d5be61cf988a59e99fe8649d | 74fbecf6c6c11ee31e5145ddf9c2f1d8ab77b156 | refs/heads/master | 2020-09-13T08:43:30.540463 | 2019-10-02T18:11:08 | 2019-10-02T18:11:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | # -*- coding: utf-8 -*-
"""
Display wifi information and onclick notifications with more info
@author rixx
"""
import fcntl
import socket
import struct
import subprocess
from time import time
class Py3status:
# available configuration parameters
cache_timeout = 60
ssid_cmd = 'netctl-auto current'
h... | [
"r@rixx.de"
] | r@rixx.de |
834bf43617c4670f1c534f430f9945cfbefff3a9 | 47722a7d90ba237bb7eb87bd0066ac5701c6cdf4 | /src/pymon.py | cc005866e0dd050182b44ed3b3318897c47872d7 | [] | no_license | didw/openapi_w | 3b28cb2ac6bae5ea79d6eb5111871010ebf3a636 | 21ed07800ff0dcb1f53d1415f252842f734abcae | refs/heads/master | 2021-09-04T13:23:01.071611 | 2018-01-19T05:19:34 | 2018-01-19T05:19:34 | 112,623,369 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,060 | py | import sys
from PyQt5.QtCore import Qt, QTimer, QTime
from PyQt5 import uic
from PyQt5.QtWidgets import *
import test_kiwoom
import pandas as pd
import time
import datetime
import webreader
MARKET_KOSPI = 0
MARKET_KOSDAK = 10
class PyMon:
def __init__(self):
self.kiwoom = test_kiwoom.Kiwoom()
s... | [
"yangjy0113@gmail.com"
] | yangjy0113@gmail.com |
3250ab59d21e71dd2ef3507ab8740cb05530a3c9 | c48b05e48fa4bc114b57033bfba378d7b23e4edb | /lib/listeners/http.py | eb43d2d2e2c4eb66f3dfcf37c5ebe99a46994ef7 | [
"MIT"
] | permissive | swagkarna/invader | 39f14ed42c176caaf62b7c418e091ce426d87cfb | 3e4adf56e089bdd16f6950419db7a31428bce352 | refs/heads/master | 2020-09-25T06:24:42.066772 | 2019-12-04T17:41:37 | 2019-12-04T17:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,448 | py | import logging
import base64
import sys
import random
import os
import ssl
import time
import copy
import json
import sys
from pydispatch import dispatcher
from flask import Flask, request, make_response, send_from_directory
# Invader imports
from lib.common import helpers
from lib.common import agents
from lib.common ... | [
"noreply@github.com"
] | swagkarna.noreply@github.com |
d03422b7d92716ff0306c439bdb206c762480b5a | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1201-1300/1299/1299_Python_1.py | 1eb51ea5b0a0337c27da4b1396473de3c50fbd56 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from typing import List
class Solution:
def replaceElements(self, arr: List[int]) -> List[int]:
now = -1
for i in range(len(arr) - 1, -1, -1):
arr[i], now = now, max(now, arr[i])
return arr
if __name__ == "__main__":
print(Solution().replaceElements([17, 18, 5, 4, 6, 1]))... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
e4f24df03b5d5fa748b26f3ab1243563f738fa05 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/prope.py | fbadb92cdd06669ddf67db4b61b7be9f9c72bc7d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 161 | py | ii = [('BentJDO2.py', 1), ('LeakWTI2.py', 2), ('LeakWTI3.py', 2), ('GellWPT.py', 1), ('SoutRD2.py', 1), ('FitzRNS.py', 1), ('RoscTTI.py', 1), ('SadlMLP2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
c4525512f529cd7c447e0ef3b92e8347f00d33c9 | 2ed82968a60f7b2ef7ca70ff000e2098a853de75 | /recipe budget mybank billing/Mybank/bank/models.py | 304661edc24824287e3573b8a08d67f2f98460a1 | [] | no_license | mariachacko93/DjangoProjectsFull | 9d4fd79b51166fe10d322757dbba96feb68fdde1 | 5c4dbd142a553b761e660e237a40572d610b97cc | refs/heads/master | 2023-02-28T01:57:25.578004 | 2021-02-04T10:05:34 | 2021-02-04T10:05:34 | 335,884,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
# Create your models here.
class createAccount(models.Model):
personname=models.CharField(max_length=120)
accno=models.IntegerField()
acctype=models.CharField(max_length=120)
balance=models.IntegerField(default=3000)
mpin=models.IntegerField()
def __str__(self):
... | [
"mariachacko93@gmail.com"
] | mariachacko93@gmail.com |
ae23442f004fb33ad4c2e966166e53c39ebf7cfe | d47b9cf613fa78abdf40fa1ecb5d243c8864c104 | /eventsfinder/ajax.py | df97adbbebdf8784019f6ee5576d46164d46f2e1 | [
"BSD-2-Clause"
] | permissive | nikolas-k/eventsfinder | 6e5c4149aca14e85497eb1747abbe38157d1c5f2 | c2e4b46609ff8456062a4dd140d230f8c92144c1 | refs/heads/master | 2021-01-12T21:05:26.685780 | 2014-01-04T17:04:16 | 2014-01-04T17:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | from django.views.decorators.http import require_POST
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
import json
from eventsfinder.models import Event, Attendee, Staff
from django.contrib.auth.models import User
@login_required
@require_POST
def attend_event(request):
... | [
"axsauze@gmail.com"
] | axsauze@gmail.com |
fd631383090680e884041d338cb06134d89ae326 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /runway/cfngin/hooks/docker/image/_push.py | 946ecc07d129f4e81c63b48852c59654f673bf46 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 4,739 | py | """Docker image push hook.
Replicates the functionality of the ``docker image push`` CLI command.
.. rubric:: Hook Path
``runway.cfngin.hooks.docker.image.push``
.. rubric:: Args
ecr_repo (Optional[Dict[str, Optional[str]]])
Information describing an ECR repository. This is used to construct the repository URL... | [
"noreply@github.com"
] | troyready.noreply@github.com |
df5e4860e9dc15d7a39ae92743dc942bc415802c | e6195dde6db1113597d404978a581e6a66f6af45 | /EduRnd100D2/A.py | 5c30429153c1dfde094a8e4d57c9a90d905dac55 | [] | no_license | chasecolford/Codeforces | e6e43dc1721f9e05b7f593a6fd66776ecc4fa8ce | 5995622411861d6e2f1fcdb14f15db3602aa571f | refs/heads/main | 2023-02-03T17:25:31.865386 | 2020-12-23T17:12:49 | 2020-12-23T17:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import itertools as iter
import collections as col
import hashlib as hash
import math
import json
import re
import os
import sys
def main():
lines = [x.strip() for x in sys.stdin.readlines()]
lines = lines[1:]
for line in lines:
line = [int(x) for x in line.split()]
summy = sum(line)
... | [
"56804717+ChaseSinify@users.noreply.github.com"
] | 56804717+ChaseSinify@users.noreply.github.com |
bf7e5a5d46d8733e22a7858ada1043dbf8979474 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_compute_server_config_ref.py | 06d779505eab02f1b3867d64f9db950ef7538e5c | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,949 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
40e466ac3e749b0a8d69c51f57018cd80b9918f9 | 12362aa3c315e2b72ed29193ee24e3fd7f1a57db | /LeetCode/0329-Longest Increasing Path in a Matrix/main.py | 57544dc82de4a956de4547a7fa5b61540c75074e | [] | no_license | PRKKILLER/Algorithm_Practice | f2f4662352516965777605ccf116dd7945c4b94a | 73654b6567fdb282af84a868608929be234075c5 | refs/heads/master | 2023-07-03T23:24:15.081892 | 2021-08-09T03:55:12 | 2021-08-09T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | """
Given an integer matrix, find the length of the longest increasing path.
From each cell, you can either move to four directions: left, right, up or down.
You may NOT move diagonally or move outside of the boundary (i.e. wrap-around is not allowed).
Example 1:
Input: nums =
[
[9,9,4],
[6,6,8],
[2,1,1]
]... | [
"dw6000@163.com"
] | dw6000@163.com |
5efdcb3014711ca88ac71738a02d79f27e0f0f8a | 4cd84151bb3bec1dd4160e6b6220ec1a84dcc5ba | /classes.py | 89b6e4115d94e67e75fad8d0dc2364a9d71e3dba | [] | no_license | conroy-group/yfsps | b0246044b5ad47fa6635f201c460b535bce241b2 | bee3a2f5cd0c554f7eed8e1240152cea27f03ee1 | refs/heads/master | 2020-04-11T13:59:19.166167 | 2018-12-14T20:49:38 | 2018-12-14T20:49:38 | 161,837,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py |
class SSPGen(object):
def __init__(self):
pass
class CSPGen(object):
def __init__(self, wave, ssp_fluxes, ssp_grid):
self.ssp_ages, self.ssp_feh, self.ssp_afe = ssp_grid
self.wave = wave
self.eline_wavelength = None
self.ssp_fluxes = ssp_fluxes # Nssp x Nwave
... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
bbc45ec7a148319470784f7f0b57cb0df56a3b49 | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /docs/tests/test_utils_benchmark.py | dbfa979ef34b9756e7e72364f14161d8b0e593a5 | [
"Apache-2.0"
] | permissive | xadupre/sklearn-onnx | 646e8a158cdded725064964494f0f8a760630aa8 | b05e4864cedbf4f2a9e6c003781d1db8b53264ac | refs/heads/master | 2023-09-01T15:58:38.112315 | 2022-12-21T01:59:45 | 2022-12-21T01:59:45 | 382,323,831 | 0 | 2 | Apache-2.0 | 2023-01-04T13:41:33 | 2021-07-02T11:22:00 | Python | UTF-8 | Python | false | false | 774 | py | # SPDX-License-Identifier: Apache-2.0
"""
@brief test log(time=3s)
"""
import unittest
import numpy
from skl2onnx.tutorial import measure_time
class TestMeasureTime(unittest.TestCase):
def test_vector_count(self):
def fct():
X = numpy.ones((1000, 5))
return X
res = ... | [
"noreply@github.com"
] | xadupre.noreply@github.com |
b808d6a898bf57319977f7481a13e14f20b16780 | d193a2472c232306149d69c04ebfaba910c31077 | /PythonZTM/oop_cs_employee_variables.py | a29d6e9a7fb16dab709b33add178b5a6d0158a13 | [] | no_license | eloghin/Python-courses | d244a3f3bfcaef9d924dc1049ffd94de2d30e01e | 3f2ad34136623c2abce01e4a88b09b8869d26163 | refs/heads/main | 2023-03-28T14:28:34.869866 | 2021-03-29T06:42:18 | 2021-03-29T06:42:18 | 310,083,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # class setup with __init__
class Employee:
# class variables/attributes:
raise_amount = 1.04
num_of_employees = 0
def __init__(self, first_name, last_name, pay):
# instance variables/attributes:
self.first_name = first_name
self.last_name = last_name
self.pay = pay
self.email = first_name + '.' + last_n... | [
"contact@elenaloghin.ro"
] | contact@elenaloghin.ro |
2efe04ee76ebd819253e8b50b20680a8bff8cd84 | a10b92034d6486f9c54f163bf6837ef4587763df | /scripts/export_test_splits.py | 401a881843f99c068520724f49ade5a533aeee06 | [
"MIT"
] | permissive | eghbalhosseini/lm_perplexity | a05732c63bbd35d92bc6302123b6d3bd255d541f | 24c5a04beb2f073b2230c7c7420bd1ec7776f513 | refs/heads/main | 2023-03-19T14:43:43.748853 | 2021-03-05T23:48:37 | 2021-03-05T23:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import argparse
from collections import Counter
from tqdm import auto as tqdm_lib
import requests
import os
import json
import gzip
from best_download import download_file
from lm_dataformat import Reader, Archive
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--output_dir', requir... | [
"email@jasonphang.com"
] | email@jasonphang.com |
52403d92ecaa7c1c162d2ddc03f5222753769846 | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/appstore/__init__.py | ae0e3b8b88ece0f7fd57ef6c59aa1396b7618360 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 27 | py | __author__ = 'spencertank'
| [
"npellegrino@dimagi.com"
] | npellegrino@dimagi.com |
6391dbd8c4ab32148400220889975652d6ea970d | 625c7fa3222232443e91300d62b62d25fcfe491a | /main/model/word.py | f35ed0030a15f87284f584a8fa5d0de4dffef793 | [
"MIT"
] | permissive | sotheara-leang/xFlask | 0a8d28fa2cdab393d71c5ff18a84331c0fb12ddc | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | refs/heads/master | 2021-01-02T06:37:21.752339 | 2020-06-20T02:45:34 | 2020-06-20T02:45:34 | 239,531,603 | 2 | 0 | MIT | 2020-06-20T02:46:30 | 2020-02-10T14:29:16 | Python | UTF-8 | Python | false | false | 332 | py | from xflask.sqlalchemy import Column, relationship
from xflask.sqlalchemy import Integer, String
from xflask.sqlalchemy.model import Model
class Word(Model):
id = Column(Integer, primary_key=True)
word = Column(String(50))
docs = relationship('Document', secondary='document_word',... | [
"leangsotheara@gmail.com"
] | leangsotheara@gmail.com |
f98346a9bf8bda678e0cbe846b50fb44d613b3a1 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119210020.py | b40656585cb8c5777a070050814bed7b54279237 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,460 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
383579a1a998e718b8ec4fcb34eba1949b834581 | a3a6eeb340735664c863952bf3c1e3070e61d987 | /_py2tmp/optimize_ir3.py | 1b6e1328465ef2cdec681edf63b338e65bdf8ab8 | [
"Apache-2.0"
] | permissive | DalavanCloud/tmppy | dab593789d6e1ae6a3b25db6c4b41ce4fcfb378c | cdde676ba9d5011b7d2a46a9852e5986b90edbbc | refs/heads/master | 2020-03-27T19:55:42.295263 | 2018-09-01T18:13:21 | 2018-09-01T18:13:21 | 147,021,787 | 1 | 0 | Apache-2.0 | 2018-09-01T18:14:23 | 2018-09-01T18:14:23 | null | UTF-8 | Python | false | false | 5,556 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
11b84a96b1e989f59c01cb1e50ed26fc75a1c892 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_106/ch31_2020_07_24_03_09_48_007984.py | fb32201e90e5bcb5dc7c5110dabfc9441b413c77 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def eh_primo(n):
if n < 2:
return False
elif n==2:
return True
elif n%2==0:
return False
else:
i=3
while i<n:
if n%i==0:
return False
i+=2
return True | [
"you@example.com"
] | you@example.com |
24185aaff4d8922350b8b8c20f96cf7eade2e680 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/network/onyx/onyx.py | d537e048b9865db661965f5e99f57ce572658931 | [
"MIT",
"GPL-3.0-only",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 7,437 | py | # -*- coding: utf-8 -*-
#
# (c) 2017, Ansible by Red Hat, inc
#
# This file is part of Ansible by Red Hat
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at y... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
ef07b5aa404c70cfcf44089a893e251228f9d1a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02790/s844160864.py | 72f2331d3fcb8e205405d05f9b9e2f5a8234122e | [] | 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 | 110 | py | a,b = input().split()
if a > b:
tmp = a
a = b
b = tmp
for i in range(int(b)):
print(a,end='')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
65c0df7301baf3fd49612d23b32c78370d56e16b | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-quant-data-provider/pandas_quant_data_provider_test/data_provider/test__yfinance.py | db5f9723526185060aab01287a8f9d6fb8168d82 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from unittest import TestCase
from datetime import datetime
import pandas as pd
import pandas_quant_data_provider as dp
class TestYFinance(TestCase):
def test_simple_download(self):
df = dp.fetch("APPS")
self.assertGreater(len(df), 1)
self.assertNotIsInstance(df.columns, pd.MultiIndex)... | [
"kic@kic.kic"
] | kic@kic.kic |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.