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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e64b04bed60680e2acb04477bef4c8a503e4a2f3 | 3d39974209f890080456c5f9e60397c505540c64 | /0x0A-python-inheritance/5-main.py | df9dd05cb9641b418d71e98f33974e3e81993285 | [] | no_license | salmenz/holbertonschool-higher_level_programming | 293ca44674833b587f1a3aec13896caec4e61ab6 | 23792f8539db48c8f8200a6cdaf9268d0cb7d4e6 | refs/heads/master | 2020-09-28T11:42:51.264437 | 2020-05-13T22:56:39 | 2020-05-13T22:56:39 | 226,771,568 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/python3
BaseGeometry = __import__('5-base_geometry').BaseGeometry
bg = BaseGeometry()
print(bg)
print(dir(bg))
print(dir(BaseGeometry))
| [
"salmen.zooro@gmail.com"
] | salmen.zooro@gmail.com |
64c4c0966c54ffac9c7ef815fc3a30c92146fa0e | a606893da1e354c7c617d0c9247b23118be2813a | /动态规划/19.py | 5b823571231090602205c302b2258b4f90e32ff4 | [] | no_license | lindo-zy/leetcode | 4ce6cb9ded7eeea0a6953b6d8152b5a9657965da | f4277c11e620ddd748c2a2f3d9f5f05ee58e5716 | refs/heads/master | 2023-07-22T06:19:00.589026 | 2023-07-16T12:35:14 | 2023-07-16T12:35:14 | 229,958,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
class Solution:
def isMatch(self, s: str, p: str) -> bool:
# m = len(s)
# n = len(p)
# dp = [[0 for i in range(m)] for i in range(n)]
# for i in range(m):
# for j in range(n):
# if s[i] == p[j]:
# ... | [
"492201845@qq.com"
] | 492201845@qq.com |
0788118cd4a51e1d9bc511a7549dacc367f4f878 | 9ef711e031cc7a10a554fb933bb661292afbdd41 | /media_handlers.py | aa4811d5bac3f3410bf742912d39e2c5161bfd7c | [] | no_license | woodenphone/tumblrsagi | 72ba3873e8177bab6b60ec42d69fee1c0f5a7f65 | 0b261f56701351182d5a261ab2a1861c1664eb4c | refs/heads/master | 2021-01-20T07:47:34.121464 | 2015-12-28T11:17:08 | 2015-12-28T11:17:08 | 33,968,492 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 45,476 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: User
#
# Created: 05/03/2015
# Copyright: (c) User 2015
# Licence: <your licence>
#-------------------------------------------------------------------------------
# Libraries
im... | [
"j1459.j1459@gmail.com"
] | j1459.j1459@gmail.com |
9affb7daf8c9cbd553358fe630f1221b9be2311b | cb181d1bd709faff629203c057809615ef4cf02e | /chembl_extras/management/commands/generate_ora2pg_conf.py | 75c1685a4614bc20938312e5beac34024625a3b1 | [
"Apache-2.0"
] | permissive | chembl/chembl_extras | 78361e3e65c00a166aaf793fac2cdf105a021af0 | ed4f4782d77b10f76984a7fbe18642cdb015c2de | refs/heads/master | 2021-01-25T08:54:18.946778 | 2017-05-10T12:42:22 | 2017-05-10T12:42:22 | 27,765,269 | 0 | 1 | null | 2015-03-03T13:20:24 | 2014-12-09T12:20:49 | Python | UTF-8 | Python | false | false | 4,784 | py | __author__ = 'mnowotka'
import os
from django.core.management.base import BaseCommand
from optparse import make_option
from django.db import DEFAULT_DB_ALIAS
from django.conf import settings
from django import db
from django.db import connections
from collections import OrderedDict
from django.core.serializers import ... | [
"mnowotka@ebi.ac.uk"
] | mnowotka@ebi.ac.uk |
233541efecb6c96e50e2995c89b653c1a25dc2b0 | d2f6e0da6eabd19c00ac6fadb077d891659afd49 | /nlstruct/core/text.py | c0ea364a58801929033d1c333d666a9c4e3a677f | [
"MIT"
] | permissive | xtannier/nlstruct | a159a0340dac542ff2f2ffb62d1c6c1ad29a84f9 | c19f765f13f13f22cb95465e292caa5f56ead39d | refs/heads/master | 2021-02-14T23:24:30.410705 | 2020-03-04T09:18:46 | 2020-03-04T09:18:46 | 244,844,528 | 0 | 0 | MIT | 2020-03-04T08:18:39 | 2020-03-04T08:18:38 | null | UTF-8 | Python | false | false | 25,634 | py | import re
from itertools import repeat
import numpy as np
import pandas as pd
from tqdm import tqdm
from nlstruct.core.cache import cached
from nlstruct.core.pandas import make_merged_names_map, merge_with_spans, make_id_from_merged, flatten
def make_tag_scheme(length, entity, scheme='bio'):
if scheme == "bio":... | [
"perceval.wajsburt@gmail.com"
] | perceval.wajsburt@gmail.com |
8ff509e1d54882e1f374b3f4cf168afc0af9d237 | e2ae5c6d1d3ff9c512d526b1b4d7d7b64d50e87d | /py/day07_1.py | 9fb763fa4478e8eca3a622575cc7278524b4272d | [] | no_license | wfeng1991/learnpy | 59ed66d0abc2947c2f73c0bfe3901ef45ba5eb56 | e5b018493bbd12edcdcd0434f35d9c358106d391 | refs/heads/master | 2021-01-23T07:35:08.376547 | 2018-09-28T02:16:31 | 2018-09-28T02:16:31 | 86,430,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | with open('day01.py','r',encoding='utf-8') as f:
for line in f.readlines():
print(line.strip()) | [
"jkwangfeng@qq.com"
] | jkwangfeng@qq.com |
1f73255d352061d5d5de367ce1cde91ab143216a | 373035950bdc8956cc0b74675aea2d1857263129 | /spar_python/query_generation/generators/keyword_query_generator_test.py | 1a3ad343f9a5a7f147d582faaaeaa4e2f1435ce0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limkokholefork/SPARTA | 5d122cd2e920775d61a5404688aabbafa164f22e | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | refs/heads/master | 2021-11-11T21:09:38.366985 | 2017-06-02T16:21:48 | 2017-06-02T16:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,503 | py | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: ATLH
# Description: Tests for equality_query_generator
#
# Modifications:
# Date Name Modification
# ---- ---- ... | [
"mitchelljd@ll.mit.edu"
] | mitchelljd@ll.mit.edu |
32015bbff11b11145a125a55d2a4a1aa07262ac3 | f9b30e3406d23569c5b6dd4a778454683a72744b | /editor/views/timeline.py | a959317d8333fd9cf176e1430b9df22b9978ac13 | [
"CC-BY-SA-3.0",
"Apache-2.0"
] | permissive | numbas/editor | 65b0644f28192180b83ab18a9ed09886b4c0ce6b | c11a5ae11f013d63114535a8f0b0f3ec635c8bd5 | refs/heads/master | 2023-08-17T07:34:00.283142 | 2023-08-16T13:44:54 | 2023-08-16T13:44:54 | 3,493,021 | 65 | 83 | Apache-2.0 | 2023-07-19T08:27:36 | 2012-02-20T11:20:15 | JavaScript | UTF-8 | Python | false | false | 2,253 | py | import json
from editor.views.generic import user_json, stamp_json, comment_json
from editor.models import TimelineItem
from django.views import generic
from django import http
from django.urls import reverse
event_json_views = {
'stamp': stamp_json,
'comment': comment_json,
}
def event_json(event, viewed_by)... | [
"christianperfect@gmail.com"
] | christianperfect@gmail.com |
926176b80e39090a452bfcef204049145d25a362 | 68f757e7be32235c73e316888ee65a41c48ecd4e | /python_book(이것이 코딩테스트다)/조합문제 예시 p486.py | 3e5176b472357fc8ad7125c6f28c9d12695f6b86 | [] | no_license | leejongcheal/algorithm_python | b346fcdbe9b1fdee33f689477f983a63cf1557dc | f5d9bc468cab8de07b9853c97c3db983e6965d8f | refs/heads/master | 2022-03-05T20:16:21.437936 | 2022-03-03T01:28:36 | 2022-03-03T01:28:36 | 246,039,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | """조합 문제 예시
L개의 비번갯수와 C개의 알파벳 입력받음
최소 모음 1개이상자음 2개이상으로 정렬순으로 L개의 암호를 가진것을 알파벳순으로 출력
combinations의 기본
- 반환값 : 특정 주소를 가지는 조합타입 [(),(),()..]식으로 반환
- 원소값 : 튜플형식을 가짐
반환값에 대해서 리스트형으로 형변환과 원소값도 리스트로 형변환 하는게 편하다.
문자열에대한 조합 사용 예시
2개로 나누어서 풀었는데 그냥 다 뽑은 다음에 모음과 자음 갯수를 검사해서 출력하는식으로 푸는게 훨씬 편했을듯
"""
import sys, itertools
input = ... | [
"aksndk123@naver.com"
] | aksndk123@naver.com |
8f482032abe72bd653d2038e495eca19f4fa7f93 | 89207f4e5c5a8fd955adf775a553c32359a0cae8 | /test.py | 84b1107cbbfbcc2f81877535be972409c2ed3e10 | [
"BSD-4-Clause"
] | permissive | ikbear/seven-cow | 065161f811c465f0ce1579471bf9a0ba4fc1105d | 4a6fc7392b2feddf67d7f338794758bdc19379a9 | refs/heads/master | 2021-01-16T17:50:41.438442 | 2013-06-27T09:25:16 | 2013-06-27T09:25:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | import os
from sevencow import Cow
class Test(object):
def setUp(self):
ACCESS_KEY = os.environ['QINIU_ACCESS_KEY']
SECRET_KEY = os.environ['QINIU_SECRET_KEY']
bucket = os.environ['QINIU_BUCKET']
cow = Cow(ACCESS_KEY, SECRET_KEY)
self.b = cow.get_bucket(bucket)
fo... | [
"yueyoum@gmail.com"
] | yueyoum@gmail.com |
6d55581dd396e230a5242ff86445353b15be276c | 4f86b275ff73f9d2d308f4e290fd8aa0bf8fec87 | /pretraining/ensemble_pretrain.py | 24d30ac2f5736c4478b77deeac89f9b00b4aabd5 | [
"MIT"
] | permissive | fagan2888/Adv-SS-Pretraining | b663b289e1deeccd73a881da0121da5590cc3041 | 4ffbebea582f858ec6165f082f52ded1fc9b817d | refs/heads/master | 2022-11-15T00:08:19.101407 | 2020-07-04T19:01:29 | 2020-07-04T19:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,056 | py | '''
ensmeble pretrain with penalty (penalty is try to magnify the gradients of input image by different self-supervised task)
'''
import argparse
import os
import pdb
import time
import torch
import random
import pickle
import numpy as np
import torch.nn as nn
import torch.backends.cudnn as cudnn
i... | [
"wiwjp619@gmail.com"
] | wiwjp619@gmail.com |
41a41fbbd319825b3648367519e4f9dd507552ae | 27aa2aa55c4c03b032b62c462e98385e011ec923 | /5_5_1_Hash_Functions.py | 9d0b25bfbc81006f485cc366cbc720e19fc89387 | [] | no_license | huiyanglu/DataStructures | bb08f07ded680f5c02d7264123b7b48cab41a223 | 76c6dee95c747729a19b7f910c9f344d25e4bab0 | refs/heads/master | 2020-04-02T04:49:23.676385 | 2019-08-13T15:37:23 | 2019-08-13T15:37:23 | 154,036,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | """
create hash functions for character-based items such as strings.
"""
def hash(astring,tablesize):
sum = 0
for pos in range(len(astring)):
sum = sum + ord(astring[pos])
return sum % tablesize
"""
When using this hash function, anagrams will always be given the same hash value.
To remedy this, w... | [
"luchocoice@gmail.com"
] | luchocoice@gmail.com |
8fa00d7a6d2ce243aade814d74998d95242efa9e | 18e2f67599b45b98c14931a8287a15b963250c83 | /23_mtPool.py | fe2e58291b7370c831f0b2aec7e444b631bd39c9 | [] | no_license | uuboyscy/eb102-python | 77ffb9a79a05d8371a5f38463c60ce579cbd9b39 | ec0e32cb1b383b9ad0c0eb68696a15569bf6037d | refs/heads/master | 2022-09-09T05:16:31.749893 | 2020-05-18T03:47:17 | 2020-05-18T03:47:17 | 262,553,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # from multiprocessing import Pool
# import multiprocessing as mp
from multiprocessing.dummy import Pool
import time
import os
def longTimeTask(i):
print('task: {}, PID: {}'.format(i, os.getpid()))
time.sleep(5)
result = 10 ** 30
print('result: ', result)
return result
if __name__ == '__main__':
... | [
"aegis12321@gmail.com"
] | aegis12321@gmail.com |
7640217d7fd2224f15bf1ff4162e57fc5c85ecec | 06b78441aa1cd9330fd20b29f5b083554022860c | /cpp_call_python_numpy/algo.py | 047713d95a260832b9e1e1dbf0f32818b02a2945 | [] | no_license | asdlei99/pybind11_cpp_python | e67ac9f1814efb0d4da87c9da744796270483591 | 0f509816258146b1e554b9913f5a611872b50876 | refs/heads/master | 2021-09-26T20:15:04.503022 | 2018-11-02T01:15:17 | 2018-11-02T01:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import numpy as np
def det(a):
return np.linalg.det(a)
def inv(a):
return np.linalg.inv(a) | [
"dfzspzq@163.com"
] | dfzspzq@163.com |
85e4609531f380ca3101cd87f99fb0acd6f0d120 | 7463a66dfa00572f4e4d8ef4349309531f0105ae | /TrainerDL/Utils/PytorchToCaffe/Caffe/caffe_lmdb.py | b4d538d0ba5c54137d4889ea9bdce54292bb09a6 | [
"MIT"
] | permissive | fx19940824/DetectionModel | f2e380fd21f4b31a17fd175a6dea1067b8f0d5cc | edc0d2f9eea481d2bc6f3abb2f222b59fdc25538 | refs/heads/master | 2022-12-20T19:58:32.224829 | 2019-05-30T01:16:05 | 2019-05-30T01:16:05 | 188,800,679 | 2 | 0 | null | 2022-11-22T02:39:23 | 2019-05-27T08:13:38 | Python | UTF-8 | Python | false | false | 1,005 | py | import lmdb
from Utils.PytorchToCaffe.Caffe import caffe_pb2 as pb2
import numpy as np
class Read_Caffe_LMDB():
def __init__(self,path,dtype=np.uint8):
self.env=lmdb.open(path, readonly=True)
self.dtype=dtype
self.txn=self.env.begin()
self.cursor=self.txn.cursor()
@staticmetho... | [
"you@example.com"
] | you@example.com |
4001aed2525fab6e77d25b475686406794abbccd | 5004bd99b73653d6288122f38f5a58b4550ac55c | /setup.py | 9df34b00cc918fa68ec26797d512db67fdea0c2f | [] | no_license | BrancoLab/Fiberphotometry | 78e2abb2149360393e4d718af908a6ee1351949e | d4440c1a6d343bd0d55f43f70a2f59bffa19c7c8 | refs/heads/master | 2023-01-01T09:37:02.908497 | 2020-10-28T15:46:07 | 2020-10-28T15:46:07 | 222,673,325 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from setuptools import setup, find_namespace_packages
requirements = [
"numpy",
"pandas",
"moviepy",
"tqdm",
"python-opencv",
"matplotlib",
"seaborn",
"sklearn",
"scipy",
"psychopy",
"pypylon",
"fancylog"
]
setup(
name="fiberphotometry",
version="0.0.0.1",
author_email="federicoclaudi@protonmail.com",
... | [
"federicoclaudi@protonmail.com"
] | federicoclaudi@protonmail.com |
eb50e7b8c14f42d9fcd0d1cde2a5ef4b1a278281 | c8f4731bf85003b7d9f5a908723d15a33415eea5 | /caffe2/python/layers/pairwise_dot_product.py | 1c6820c9f9ee001e34dd652a4739c342bd27d27f | [
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | ChengduoZhao/caffe2 | 5c90fd66374f7f00b1330831e23dc9915da5028c | 7811796ac91f5457208cb20bcfc55de2d39d21ba | refs/heads/master | 2021-01-01T17:11:43.297274 | 2017-07-27T04:52:18 | 2017-07-27T05:08:00 | 98,018,932 | 0 | 1 | null | 2017-07-22T08:44:58 | 2017-07-22T08:44:58 | null | UTF-8 | Python | false | false | 2,244 | py | ## @package dot_product
# Module caffe2.python.layers.dot_product
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import schema
from caffe2.python.layers.layers import (
ModelLayer,
)
class Pai... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
43c48db2124ce6475b7e25ca5a6994119a4adfc0 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/705. Design HashSet/solution1.py | 2911a94a76a9164618872d1ff81eb7f0dd2f38a2 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | class MyHashSet:
def __init__(self):
"""
Initialize your data structure here.
"""
self.base = 2003
self.nums = [[] for _ in range(self.base + 1)]
def hash(self, val: int) -> int:
return val % self.base
def add(self, val: int) -> None:
key = self.has... | [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
823d20f448832d54b724475aa2a27e940270962e | e3fc83e77e218f7b8df4b14b0753fd65afd4b923 | /downloaded_kernels/loan_data/parsed_kernels/kernel_145.py | 0662aad9202d5179619ffc67e902f318905da38c | [
"MIT"
] | permissive | jupste/wranglesearch | 982684fdaa7914af59758880fdc3a4ff3346477f | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | refs/heads/master | 2023-06-18T04:46:34.474046 | 2021-07-15T23:43:24 | 2021-07-15T23:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py |
# coding: utf-8
# In[ ]:
# This Python 3 environment comes with many helpful analytics libraries installed
# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python
# For example, here's several helpful packages to load in
import numpy as np # linear algebra
import pandas as pd # ... | [
"jcamsan@mit.edu"
] | jcamsan@mit.edu |
9ac994c39d47d97dd0950a832edcabe60b69ed4a | d6a4c07d020c6b32baaf4756ad6d86a7056743b7 | /beta/diy/checkcookie.py | 3a336387bae2fec392c530ab2959305aadebc556 | [] | no_license | qiuxiucai/JD_Diy | c3b1c4b24051bd689ce235b11a00f21bc2da90ef | 78d06ec5e500b61be984742e7c6b0585346c8e59 | refs/heads/master | 2023-08-03T06:53:58.981090 | 2021-09-11T07:09:44 | 2021-09-11T07:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,403 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
import os
import re
import sys
import time
from asyncio import exceptions
import requests
from telethon import events
from .. import chat_id, jdbot, logger
from ..bot.utils import V4, QL, _ConfigFile, myck, _Auth
from ..diy.utils import QL8, ql_token, re... | [
"chiupam@126.com"
] | chiupam@126.com |
a9a19434ebb517c7a921ab19b578cb91f3b4122c | 842e3cd1266d18752a3baf2b90232ed4ce41eb4f | /grako/_config.py | 03667f3d52c03b56dfbf518acb6fd9cceeda8d79 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | apalala/grako | 2786d85eef9799bf614c46c92f19ff183a435d46 | efb373d89e6805930e661758c2cff2b26da4658a | refs/heads/master | 2020-12-25T17:37:05.353167 | 2017-05-02T02:53:11 | 2017-05-02T02:53:11 | 65,163,853 | 16 | 6 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2017 by Juancarlo Añez
# Copyright (C) 2012-2016 by Juancarlo Añez and Thomas Bragg
__toolname__ = 'Grako'
__version__ = '3.22.1'
| [
"apalala@gmail.com"
] | apalala@gmail.com |
2b230404d0e84a18fc16f8ce7256f407c6c35f18 | 2c9eadb22d2de54ac06c6731664ed65276fd7062 | /pipeline/contrib/periodic_task/tasks.py | f7bd50ffbcc0f37ed5abc9245031aeceea715a5d | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | TencentBlueKing/bk-nodeman | 34bba9b217d84bb4dad27e735c29361a5c62789b | 72d2104783443bff26c752c5bd934a013b302b6d | refs/heads/v2.4.x | 2023-08-19T01:27:58.805715 | 2023-08-10T02:59:31 | 2023-08-10T02:59:31 | 385,203,367 | 54 | 49 | MIT | 2023-09-14T06:51:33 | 2021-07-12T10:05:11 | Python | UTF-8 | Python | false | false | 3,327 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"durantzhang@tencent.com"
] | durantzhang@tencent.com |
aea944b0b2ea135e01e165057d5e429f2000308a | 6b78bd7f62f7f407bf11d877cc4d91e7db3b62fe | /csc/python/Intro-Python-I/src/13_file_io.py | 0bf87c9f36afd02ad1c53557568a38d023ac4bce | [] | no_license | PascalUlor/code-challenges | b85efacd4bc5999a0748d1fa1e84f503be09dc94 | 6488d0a6d2729bd50b106573f16488479fd6e264 | refs/heads/master | 2023-03-03T17:50:18.413127 | 2023-02-21T13:10:02 | 2023-02-21T13:10:02 | 212,979,719 | 1 | 0 | null | 2023-02-15T22:59:13 | 2019-10-05T10:14:29 | Python | UTF-8 | Python | false | false | 1,198 | py | """
Python makes performing file I/O simple. Take a look
at how to read and write to files here:
https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files
"""
import os
cwd = os.getcwd() # Get the current working directory (cwd)
files = os.listdir(cwd) # Get all the files in that directory
pri... | [
"pascalulor@yahoo.com"
] | pascalulor@yahoo.com |
29058817ee9d433c087476175de412e5db922af4 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/rituals_perfume_genie/test_config_flow.py | 3582f49598cb373ccfa3c0a6a1533dd8f2b49cc5 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 3,789 | py | """Test the Rituals Perfume Genie config flow."""
from http import HTTPStatus
from unittest.mock import AsyncMock, MagicMock, patch
from aiohttp import ClientResponseError
from pyrituals import AuthenticationException
from homeassistant import config_entries
from homeassistant.components.rituals_perfume_genie.const i... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
9788a113b67bc1688dfc6029b4307f0c4f4a0ae5 | d0758e0ca004226cec8ad8b26c9565c98534a8b8 | /10-iot/A08_Timers/main.py | fb8ca3b0af0f866b91b8576dbba52d491a05c9ca | [] | no_license | pythoncanarias/eoi | 334d64a96afc76ac1fa10282378f291b6d8c94b3 | 349367254f85e3e4273cede067ca950913a1332c | refs/heads/master | 2023-07-06T08:00:11.366345 | 2023-06-30T15:19:33 | 2023-06-30T15:19:33 | 222,742,870 | 26 | 19 | null | 2023-06-25T16:03:46 | 2019-11-19T16:41:25 | Jupyter Notebook | UTF-8 | Python | false | false | 552 | py | from machine import Timer
import utime
# Creado por Daniel Alvarez (danidask@gmail.com) para curso de Python de EOI (eoi.es)
tim1 = Timer(-1) # -1 para timer virtual (basado en RTOS)
tim1.init(period=2500, mode=Timer.ONE_SHOT, callback=lambda x:print("#### esto solo se ejecuta una vez"))
tim2 = Timer(-1)
tim... | [
"euribates@gmail.com"
] | euribates@gmail.com |
2c0df1c54b9524d5226128cc8385117b79d65e35 | 59ac85afd2c2bc45ad8d3576412abdb3b3e97ca4 | /abc/abstract_class.py | 273493371254c038b25a14e4193a641b79ec7abe | [] | no_license | xaneon/NetworkAutomation | 1833bd22b4a573a7ec1e2266bc44abf9b7bdbf11 | 2560194047b93442ea4f8d822e2b20c77256d5c9 | refs/heads/master | 2020-06-12T09:23:28.770655 | 2019-07-18T15:11:16 | 2019-07-18T15:11:16 | 194,256,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from abc import ABC, abstractmethod
class abstrakteKlasse(ABC):
def __init__(self, wert):
self.wert = wert
super().__init__()
@abstractmethod
def methode(self):
print("Implementation einer Methode")
class unterKlasse(abstrakteKlasse):
def methode(self):
super().methode... | [
"bonne.habekost@gmail.com"
] | bonne.habekost@gmail.com |
c2a0329c735e5460445333113559810b77c9c3aa | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/plus-one.py | efcbb3b165edecd501ea0840a8ea5cf5c2953ed2 | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | class Solution:
# @param {int[]} digits a number represented as an array of digits
# @return {int[]} the result
def plusOne(self, digits):
accum = 0
for i in range(len(digits) - 1, -1, -1):
s = digits[i] + 1
digits[i] = s % 10
accum = s / 10
if... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
5ed5bcc26e2db118fd1170a5b9a0f5080180348d | c90ddd0930894c565197b739cd76140a7151fffd | /HLTrigger/Configuration/python/HLT_75e33/modules/hltEle5WP70HgcalIsoL1SeededFilter_cfi.py | 70dd91b6f62ac3f26070f6991491084c7c0cb402 | [
"Apache-2.0"
] | permissive | p2l1pfp/cmssw | 9cc6b111ff1935e49f86ec3da9f9b84fb13bbcdf | 9f0a3a22fe451c25114134c30ac1f5c1261f3183 | refs/heads/L1PF_12_5_X | 2023-08-17T00:38:15.374760 | 2023-06-13T12:55:57 | 2023-06-13T12:55:57 | 127,881,751 | 6 | 1 | Apache-2.0 | 2023-09-05T13:54:59 | 2018-04-03T09:10:17 | C++ | UTF-8 | Python | false | false | 1,256 | py | import FWCore.ParameterSet.Config as cms
hltEle5WP70HgcalIsoL1SeededFilter = cms.EDFilter("HLTEgammaGenericQuadraticEtaFilter",
absEtaLowEdges = cms.vdouble(0.0, 1.0, 1.479, 2.0),
candTag = cms.InputTag("hltEle5WP70EcalIsoL1SeededFilter"),
doRhoCorrection = cms.bool(False),
effectiveAreas = cms.vdouble... | [
"Thiago.Tomei@cern.ch"
] | Thiago.Tomei@cern.ch |
5a7432cbb3e846fadc8f16d7b566fed820309247 | 950b22416bc371d14b24c3310ce088cbbcde0eb3 | /apps/leadb/creditfields.py | 7253a03c77ad350e24b7a29357244f403c349d31 | [] | no_license | CrabbyPete/brightmap | 3aa6ac2637ea6e2b47287565fe0699912c70eb3d | dad5447af5eefb9500d020e1421725c6c30fa92d | refs/heads/master | 2020-05-25T18:15:14.167931 | 2017-03-14T13:41:45 | 2017-03-14T13:41:45 | 5,615,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,978 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import date
from calendar import monthrange
from django import forms
from django.conf import settings
from django.utils.translation import ugettext as _
from creditcard import verify_credit_card
class CreditCardField(forms.CharField):
"""
Form fiel... | [
"pete.douma@gmail.com"
] | pete.douma@gmail.com |
80dfa8532967766e18e04183fad7d4cc19314823 | bee77315d08def61c1155930285211ef3d8d7654 | /nevergrad/functions/topology_optimization/core.py | 9e1854a0ddb44d1eb2798e9cbd41db0f372b7d58 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | facebookresearch/nevergrad | d2da592c1bf3b7c398392b3d39217a3753a4912c | daddb18184bf64ba9082ecc55a56e07429a23103 | refs/heads/main | 2023-09-04T10:53:42.903505 | 2023-08-30T17:10:37 | 2023-08-30T17:10:37 | 158,468,845 | 3,526 | 367 | MIT | 2023-09-11T13:37:36 | 2018-11-21T00:33:17 | Python | UTF-8 | Python | false | false | 1,891 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Based on a discussion at Dagstuhl's seminar on Computational Intelligence in Games with:
# - Dan Ashlock
# - Chiara Sironi
# - Guenter Ru... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
2fc4dba57667c84709b6c1d9ee331d86b4c34248 | d0a3d3ea055152b141c24f7cebf06892599e4d73 | /autoTest/day8/04下载文件.py | 2af4fad086557cbc9534686ac920cbe969f949f0 | [] | no_license | limiyou/Pyproject | bffe0bc880509a9e525f03568bf9898ed7af80a3 | 2c5cd25a5a5123eb61fdcb846ad5f7bd3bf145d1 | refs/heads/master | 2023-06-28T20:56:28.793740 | 2021-08-09T02:30:52 | 2021-08-09T02:30:52 | 393,281,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import requests
url = 'https://img1.bitautoimg.com/bitauto/2013/01/23/854be0a2-ef1c-440a-926d-94e1e5051e18.jpg'
resp = requests.get(url)
with open('bmw.jpg', 'wb') as f: # wb: write in bytes
f.write(resp.content) # resp.content 返回值是 bytes
# 思考: 如果下载的是一个4G的电影,该怎么办?
# 方案: 流式下载
def downloader(url,file... | [
"756093055@qq.com"
] | 756093055@qq.com |
aedddbffc558e1e94a49de45294167bd85b9fc3a | 11514265e06c7326d376650400a28bfec667f8d6 | /lifelines/tests/test_statistics.py | 215130716ab6ce4b418ada393907d100b4b1e8e3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | fengyinyang/lifelines | dcd6a5f7e5e7cccf4fc9a4919d87eee6d6c03b0e | 4d951e24e45de533adf61c4e7d12c905f122ae6b | refs/heads/master | 2021-01-19T21:29:06.641207 | 2015-01-25T17:51:02 | 2015-01-25T17:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,642 | py | from __future__ import print_function
import numpy.testing as npt
from scipy.stats import beta
from ..statistics import *
from ..datasets import load_waltons, load_g3
def test_unequal_intensity_with_random_data():
data1 = np.random.exponential(5, size=(2000, 1))
data2 = np.random.exponential(1, size=(2000, ... | [
"cam.davidson.pilon@gmail.com"
] | cam.davidson.pilon@gmail.com |
822710023d76c16500ca567e9991d10f2b0fce79 | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/menu_app/contex_processors_20201231155232.py | 7aace4fd34e5ea6472e59cc9ad99a79d80cd0f09 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | from .models import ItemsCategory
def | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
daf8cceeed559d801a3e10a745bbed4113b7efa7 | 16e9bf428f5117954c8386afd1cd6114a1db2de8 | /doc/examples-django/pytilsex/__init__.py | 756da7bc26940ceb17d9c03ed3bbafcab18b36e4 | [
"MIT"
] | permissive | last-partizan/pytils | ec0330ff6c9ae5d957619ddee91f2515adfb2b85 | 61dc896cd33c3dc3b121f94668527b0e69fcc194 | refs/heads/master | 2023-07-08T12:57:05.142844 | 2023-06-27T06:51:10 | 2023-06-27T06:51:10 | 580,679 | 79 | 30 | MIT | 2023-07-05T23:27:48 | 2010-03-26T13:42:22 | Python | UTF-8 | Python | false | false | 44 | py | """
Example of usage pytils with Django
"""
| [
"devnull@localhost"
] | devnull@localhost |
f28b58a328699f18011079b840097f1c5daa3783 | 97b827ddf260dfc8a2725e66359e3625af84b7d1 | /test/ssm_document_generator_test/utils/test_result.py | 61e1ca571d9792a374abe9662683696a1ad805cf | [
"Apache-2.0"
] | permissive | ken2190/aws-systems-manager-document-generator | eeea79dbae67c0b12f0d50a8412de3e8293a0037 | 2c041fd52342d95da4535fe3236e43933cc6e08d | refs/heads/master | 2023-03-16T03:15:07.034439 | 2018-05-12T16:56:57 | 2018-11-04T12:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import pytest
from ssm_document_generator.command.result_status import ResultStatus
from ssm_document_generator.command.result import Result
@pytest.mark.parametrize('test_input', [
[],
[1, 2],
{'foo': 'bar'}
])
def test_success(test_input):
assert Result.success(test_input) == {'status': ResultStatu... | [
"sitalov@amazon.com"
] | sitalov@amazon.com |
1973184e8e2d2fdc08da62087eeff140f306cc81 | 2a32ba95aa3b5da7b7376f7a7a4df5bc932c6b90 | /Dynamic Programming/PickupCoin.py | b8b4ba20c81b4dfbd81f64f6a38f4cd2baaed874 | [] | no_license | maruichen2004/EPI | 33cb4f1860ca294c9aba460ac7f22e25c2c9b210 | 2379e83536bdbeaa7f21ceeb8f1e369a90f434a0 | refs/heads/master | 2016-09-06T03:32:04.412640 | 2014-11-23T05:29:59 | 2014-11-23T05:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | class Solution:
# Time: O(n^2)
# Space: O(n^2)
def pickupCoin(self, C):
T = [[-1 for i in range(len(C))] for j in range(len(C))]
return self.pickupCoinHelper(C, 0, len(C) - 1, T)
def pickupCoinHelper(self, C, a, b, T):
if a > b: return 0
if T[a][b] == -1:
T[a][b] = max(min(... | [
"ruichenma@RUICHENs-MacBook-Pro.local"
] | ruichenma@RUICHENs-MacBook-Pro.local |
f18d406c55e6b102eeb675204f764d108a626194 | d857f5868d87043b61a005394ff7dbe50f76f53c | /pero/backends/json/export.py | c528c570e0c34425918f20df131ac0f839cf45e4 | [
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-commercial-license",
"AGPL-3.0-or-later",
"MIT"
] | permissive | xxao/pero | 54ac4724863faf43eb5868a77373adcfea34c0dd | d59b1bc056f3037b7b7ab635b6deb41120612965 | refs/heads/master | 2023-03-08T18:15:23.106519 | 2022-08-04T13:56:15 | 2022-08-04T13:56:15 | 187,512,526 | 31 | 3 | MIT | 2023-03-08T06:29:44 | 2019-05-19T18:19:23 | Python | UTF-8 | Python | false | false | 1,421 | py | # Created byMartin.cz
# Copyright (c) Martin Strohalm. All rights reserved.
from ... enums import *
from . canvas import JsonCanvas
def export(graphics, path, width=None, height=None, **options):
"""
Saves given graphics as JSON dump into specified file.
Args:
graphics: pero.Graphics
... | [
"github@bymartin.cz"
] | github@bymartin.cz |
7f16fc2499693b5b91a5ffd9693c183710708666 | cc26a1bbae6af3dec61fd27e44484e01da21d36e | /Scientific Expedition/YAML. Simple Dict/mission.py | c2fdba111285c7f644957f12036ae5c371af82f1 | [] | no_license | ofisser86/py-check-io | 6bacef0783987e49f3bf28b9bea74e59e4ebb184 | 70469deea240f03199072f2dd28d6819815a2624 | refs/heads/master | 2023-02-02T09:32:53.934629 | 2020-12-16T13:44:51 | 2020-12-16T13:44:51 | 309,277,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | def yaml(a):
# your code here
if len(a) > 1:
print({k.split(':')[0]: k.split(':')[1] for k in a.split(',')})
return 0
if __name__ == '__main__':
print("Example:")
print(yaml("""name: Alex Fox,
age: 12
class: 12b"""))
# These "asserts" are used for self-checking and not for an auto-t... | [
"ofisser86@gmail.com"
] | ofisser86@gmail.com |
14405a386a8935c30692341adba5ee958e13efe5 | 177338a720f904f63926da055364cc0e2c0a850c | /spark/pyspark(by Leaderman git)/1.2.0/examples/sql/spark_sql_udf.py | 43e12d4f6b4b0a25882e01dd61896c1c57c31697 | [
"Apache-2.0"
] | permissive | xuefenga616/mygit | 60ef7bf7201603e13d4621cf7a39dea8ec92e0b7 | be3b8003fcc900ce7ca6616a9ddebb0edcbc1407 | refs/heads/master | 2020-09-13T11:50:55.448041 | 2017-08-27T10:59:00 | 2017-08-27T10:59:00 | 67,042,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | from pyspark import SparkConf, SparkContext
from pyspark.sql import HiveContext, StructType, StructField, StringType, IntegerType, ArrayType, FloatType, MapType
conf = SparkConf().setAppName("spark_sql_udf")
sc = SparkContext(conf=conf)
hc = HiveContext(sc)
source = sc.parallelize([("value",)])
schema = StructType... | [
"xuefeng_11@qq.com"
] | xuefeng_11@qq.com |
62aa33b6d48c86ecc35dc3f1d54d26916c6e3d3d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2783/60767/254054.py | cf5a7c151b7d8e43fc1c81f463a2cc082961d494 | [] | 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 | 948 | py | def getWinner(scores):
dic = {}
for i in range(len(scores)):
if(scores[i][0] not in dic):
dic[scores[i][0]] = int(scores[i][1])
else:
dic[scores[i][0]] += int(scores[i][1])
temp = max(dic.values())
#print("te",temp)
res = []
for i in dic.keys():
if... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0522f1067dafa89bae00c169c67ad9b03a7206ac | 66cab93c26cc252f412860778131b208c6f120be | /bin/supervisord | 223e3eb1ed4aa5dda5a3377f8d1f756e9b634e3b | [] | no_license | marcogarzini/Zodiac | 3332733f6ae8d64924557ff022f44c835aeac0a9 | 06e8ad0c709189dc65a26fb7d6c17a9ee2bc9112 | refs/heads/master | 2016-09-11T03:18:12.805299 | 2014-01-17T12:50:03 | 2014-01-17T12:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | #!/usr/bin/python2.7
import sys
sys.path[0:0] = [
'/home/user1/newproject/eggs/supervisor-3.0-py2.7.egg',
'/home/user1/newproject/eggs/meld3-0.6.10-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages',
]
import supervisor.supervisord
if __name__ == '__main__':
sys.exit(supervisor.supervisord.main())
| [
"user1@user1-VirtualBox.(none)"
] | user1@user1-VirtualBox.(none) | |
7dd4922bab790648e68d11e5d8b1b94521794f2f | 098361c611ddd688adb9df74d277f8b5d45a5229 | /.history/polls/views_20200213232747.py | 1db6df062816d87e2363de7b596780615c21d095 | [] | no_license | SamirIngley/django-documentation | 1ac5ba903891f44e08c2fdb6f9d41bfcc836cce6 | 57e4b1aeab7a4f892fe89a0741ce7831d5c0f2d9 | refs/heads/master | 2020-12-22T00:42:30.258237 | 2020-02-14T18:42:34 | 2020-02-14T18:42:34 | 236,615,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | from django.shortcuts import render, get_object_or_404
# Create your views here.
from django.http import HttpResponse, HttpResponse
from datetime import datetime
from .models import Question, Choice
from django.views import Views, generic
from django.urls import reverse
def index(request):
latest_question_list =... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
53f8cbb4537f29c1f92cc63466c292b5a8ac36e6 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/pubsublite/v1/pubsublite-v1-py/google/cloud/pubsublite_v1/types/subscriber.py | 5865f8e246c0d435faa1e4b8cf44e5a24d57844a | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,942 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
24ce3a0a5d44460e58071c55aa0d938906e466da | ffd6d6c768d5c6cb05539200809d7163a922dadb | /common/callbacks.py | cefd9e13d49a5fdd60d978fdb1a930c30c03650f | [
"MIT"
] | permissive | danilojodas/keras-YOLOv3-model-set | 95001092835e2ec37ae3b56e4a14ec68aad1349f | da6d1af57bcea139d548843f0488cf61ab00f965 | refs/heads/master | 2023-01-07T04:36:50.381877 | 2020-11-07T13:14:17 | 2020-11-07T13:14:17 | 285,853,247 | 0 | 0 | MIT | 2020-08-07T14:49:05 | 2020-08-07T14:49:05 | null | UTF-8 | Python | false | false | 4,731 | py | #!/usr/bin/python3
# -*- coding=utf-8 -*-
"""custom model callbacks."""
import os, sys, random, tempfile
import numpy as np
from tensorflow_model_optimization.sparsity import keras as sparsity
#from tensorflow.keras.models import Model
from tensorflow.keras.callbacks import Callback
sys.path.append(os.path.join(os.pat... | [
"david8862@gmail.com"
] | david8862@gmail.com |
d4ddc55bfbfb111820fbda1228542338ab805acb | aa9297175621fcd499cad5a0373aaad15f33cde8 | /py-collections.py | cbcb56c1a3d7a5f9613740de433e1f5e6bfdca54 | [] | no_license | eflipe/python-exercises | a64e88affe8f9deb34e8aa29a23a68c25e7ba08a | b7a429f57a5e4c5dda7c77db5721ca66a401d0a3 | refs/heads/master | 2023-04-26T19:19:28.674350 | 2022-07-19T20:53:09 | 2022-07-19T20:53:09 | 192,589,885 | 0 | 0 | null | 2023-04-21T21:23:14 | 2019-06-18T18:06:14 | HTML | UTF-8 | Python | false | false | 5,026 | py | # https://stackabuse.com/introduction-to-pythons-collections-module/
"""
The Counter() function in collections module takes an iterable or a mapping as the argument and returns a Dictionary. In this dictionary, a key is an element in the iterable or the mapping and value is the number of times that element exists in th... | [
"felipecabaleiro@gmail.com"
] | felipecabaleiro@gmail.com |
5d8cc59c1a7ae986669847eb53261c941778a28b | 9ac793d32e70775bb119aaddeb832624e3cf9281 | /consoverriding3.py | 38d3f451eea5f6b0f68c2b227290384171731b84 | [] | no_license | prabhatpal77/Adv-python-polymorphism | 9368311732e1bca9b54e099489c255e3498fbb9b | d68375e4816a746a1ffbffa6d179c50227267feb | refs/heads/master | 2020-07-29T00:41:08.162385 | 2019-09-19T16:35:32 | 2019-09-19T16:35:32 | 209,601,547 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Another example of constructor overriding with many numbers of parameters.
class X:
def __init__(self, a, b):
self.a=a
self.b=b
def m1(self):
print("in m1 of x")
class Y(X):
def __init__(self, a, b, c, d):
self.c=c
self.d=d
super().__init__(a, b)
def m2(... | [
"noreply@github.com"
] | prabhatpal77.noreply@github.com |
da94aa64917275137dfd2fdb5015db5f9092a981 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/sql/v20190601preview/get_server_azure_ad_administrator.py | 743b19d247ce4c7b2f71ff70258a688a41cedc55 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 5,515 | 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 |
a72edceb59308bb2035e3b8a9861fd7127704974 | 8a85773fee5a531c56586ba602fe6be7305cc9da | /cvise/utils/testing.py | 9806a9ed9e66f579129ab4719590a6f8c88f0e4f | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | swills/cvise | 636518cc660a9ef4b66944956dbada4007ebf3e0 | 1cf156fd5d83ecb4b344ed1252cd657a4291898c | refs/heads/master | 2022-04-23T23:10:43.747386 | 2020-04-28T13:09:07 | 2020-04-28T13:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,974 | py | import asyncio
import difflib
import filecmp
import importlib.util
import logging
import math
import multiprocessing
import os
import os.path
import platform
import shutil
import signal
import subprocess
import sys
import tempfile
import weakref
import concurrent.futures
from concurrent.futures import wait, FIRST_COMP... | [
"mliska@suse.cz"
] | mliska@suse.cz |
a18fef765fc554ae4c9d605b3638485f2b1e8c69 | cb4be2d145c529192cad597ebf6bba8aed0ec12e | /2014-x64/prefs/00_important/mec_shelf_loader/shelves/00_Trash/tool_box.py | 83cb83b1ecfec00fff4898263675f516c7b8d0dc | [] | no_license | mclavan/Work-Maya-Folder | 63e791fdbd6f8ac1f4fda2d46015cd98df38825c | c56dbdb85a7b1a87ef6dd35296c56e0057254617 | refs/heads/master | 2020-05-20T07:21:15.891179 | 2014-10-17T14:28:45 | 2014-10-17T14:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | '''
Aaron Stoll
tool_box.py
Description:
Need:
padding
# renaming
primming
hierarchy
How to run:
import tool_box
reload(tool_box)
'''
import pymel.core as pm
print 'Tool Box Open'
def padding_tool():
'''
This tool creates a world pad on the selected joint system.
Select the root and run the function.
impo... | [
"mclavan@gmail.com"
] | mclavan@gmail.com |
df486c199b4d2a366b87a245a6ce53f17114dbd2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/451/usersdata/299/103697/submittedfiles/chuva.py | b06f047fa906f5a3f5fe8b2fcce848502a635410 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
piscina=[]
n=int(input(''))
for i in range(0,n,1):
piscina.append(int(input('')))
for j in range(0,n,1):
print(piscina[j]) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cce4d23da8b4f3b32837659e90b9a0ddf0bed8b1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2242/60683/253412.py | 2f040f3ab7a6e8a658e96759124645a212c8c803 | [] | 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 | 541 | py | nums1 = [int(x) for x in input().split(',')] # 左xia 右shang
nums2 = [int(x) for x in input().split(',')]
LD1 = [nums1[0], nums1[1]]
RU1 = [nums1[2], nums1[3]]
LU1 = [nums1[0], nums1[3]]
RD1 = [nums1[2], nums1[1]]
LD2 = [nums2[0], nums2[1]]
RU2 = [nums2[2], nums2[3]]
LU2 = [nums2[0], nums2[3]]
RD2 = [nums2[2], nums2[1]]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e582688e7c9713c302008796c709b4b68e79b9d7 | 63b741505720be2eb792123b9a3fc92f6c46cd44 | /website/members/management/commands/generate_member_invoices.py | 61821383d5e38f6f96ecba23cc3c6fca1cb52023 | [
"MIT"
] | permissive | matuu/asoc_members | d62286958b1a20468f26ad13eeb44a0df50d18c8 | bc6691a4595bcdf16f7b23cad43b671d7f682f9a | refs/heads/master | 2020-04-26T16:25:04.457732 | 2019-06-06T18:20:35 | 2019-06-06T18:20:35 | 173,677,417 | 0 | 0 | null | 2019-03-04T05:08:21 | 2019-03-04T05:08:21 | null | UTF-8 | Python | false | false | 6,520 | py | import datetime
import os
from django.conf import settings
from django.core.mail import EmailMessage
from django.core.management.base import BaseCommand
from django.db.models import Max
from members import logic
from members.models import Quota, Person, Payment
from . import _afip, _gdrive
INVOICES_FROM = '2018-08-... | [
"facundo@taniquetil.com.ar"
] | facundo@taniquetil.com.ar |
8ae23a04e6eec0115c0ae6e38256d5509c74f998 | b677894966f2ae2d0585a31f163a362e41a3eae0 | /ns3/pybindgen-0.17.0.post57+nga6376f2/pybindgen/wrapper_registry.py | bdc14d6ac952d89e250a76ed9939be7aa9048499 | [
"LGPL-2.1-only",
"Apache-2.0"
] | permissive | cyliustack/clusim | 667a9eef2e1ea8dad1511fd405f3191d150a04a8 | cbedcf671ba19fded26e4776c0e068f81f068dfd | refs/heads/master | 2022-10-06T20:14:43.052930 | 2022-10-01T19:42:19 | 2022-10-01T19:42:19 | 99,692,344 | 7 | 3 | Apache-2.0 | 2018-07-04T10:09:24 | 2017-08-08T12:51:33 | Python | UTF-8 | Python | false | false | 6,020 | py | """
The class that generates code to keep track of existing python
wrappers for a given root class.
"""
from pybindgen.typehandlers.base import NotSupportedError
class WrapperRegistry(object):
"""
Abstract base class for wrapepr registries.
"""
def __init__(self, base_name):
self.base_name =... | [
"you@example.com"
] | you@example.com |
03841070e82a129c51ebb5ef005d98fdd3c7e41b | 395f974e62eafed74572efebcd91d62966e61639 | /examples/microjson/mutants/CRP_Num_mutant_1486201265.py | 987d1d86794af9676d65b4c24822bd577ba072ed | [
"Apache-2.0"
] | permissive | agroce/tstl | ad386d027f0f5ff750eab19a722a4b119ed39211 | 8d43ef7fa49534868e6cdf1697863748260405c7 | refs/heads/master | 2023-08-08T19:14:52.020314 | 2023-07-26T17:51:36 | 2023-07-26T17:51:36 | 32,408,285 | 106 | 33 | NOASSERTION | 2021-01-26T19:05:17 | 2015-03-17T17:14:04 | Python | UTF-8 | Python | false | false | 8,311 | py | import math
import StringIO
import types
__pychecker__ = 'no-returnvalues'
WS = set([' ', '\t', '\r', '\n', '\x08', '\x0c'])
DIGITS = set([str(i) for i in range(0, 10)])
NUMSTART = DIGITS.union(['.', '-', '+'])
NUMCHARS = NUMSTART.union(['e', 'E'])
ESC_MAP = {'n': '\n', 't': '\t', 'r': '\r', 'b': '\x08', 'f': '\x0c'}
R... | [
"agroce@gmail.com"
] | agroce@gmail.com |
83fe14706882b8b5d03fdc1c032b99ae615ac633 | 479d3414e914f144fff20ee71872472ac84ca410 | /codespace/python/telegram/ext/_picklepersistence.py | 928cb89682da1df468583cfe402e6bf06d3f0474 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | tzpBingo/github-trending | 0fa4e0e08743f0683f68fd54d74eec466bc525e0 | 505014e84bdea7e2732296821028df20c0305390 | refs/heads/master | 2023-07-24T13:29:47.393940 | 2023-07-19T09:39:29 | 2023-07-19T09:39:29 | 102,687,887 | 49 | 20 | MIT | 2023-05-22T21:33:53 | 2017-09-07T03:39:42 | Python | UTF-8 | Python | false | false | 23,031 | py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2023
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | [
"tzpbingo@gmail.com"
] | tzpbingo@gmail.com |
3e1f7559168e88b158942eb7a493718ec6108d87 | 4738129b25fceb5c8fdc83eebdd7621e41910230 | /python-leetcode/sw_33.01.py | 90bf5c1dc1e32fce0d32f105daf9235e85cbdda4 | [
"MIT"
] | permissive | MDGSF/JustCoding | 43aa20773b9c8325e6ba632e9941d235e9e285aa | 2faa46323df991a12014021b49d568387a882233 | refs/heads/master | 2023-07-21T19:07:15.899019 | 2023-07-09T07:29:59 | 2023-07-09T07:29:59 | 201,714,062 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Solution:
def verifyPostorder(self, postorder: List[int]) -> bool:
def recursion(startIdx, endIdx):
if startIdx >= endIdx: return True
curIdx = startIdx
while postorder[curIdx] < postorder[endIdx]:
curIdx += 1
rightStartIdx = curIdx
while postorder[curIdx] > postorder[e... | [
"1342042894@qq.com"
] | 1342042894@qq.com |
808f8f09efe32f810767f9476fbdf06034b93364 | 86ed811106eecf7aa3a15cf98537ef274b811ad7 | /headmasters/migrations/0014_auto_20200118_1239.py | 2dcabb7931d416505d44d26ddcea2f581734728f | [] | no_license | SaifulAbir/Django-MIS | 934ad39beff62f0e1cbe9377738b780122989662 | d680a0a64211bc9cd7748364454c52b16398ea5c | refs/heads/master | 2022-10-19T11:57:46.087577 | 2020-02-03T10:10:08 | 2020-02-03T10:10:08 | 271,542,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # Generated by Django 2.2.4 on 2020-01-18 12:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('headmasters', '0013_auto_20200115_0835'),
]
operations = [
migrations.AlterField(
model_name='headmasterprofile',
na... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
197156f1e6919a6fb85941c1f4078a1094cdc623 | f3350367b97ba9d281be925ba520009a853fc0a3 | /icarus/service/interface/icarus_server.py | 7874dd52247cdd0b4554bee89d7f2cc229a393e6 | [] | no_license | f599gtb/PenguPilot | 2f841e780661fde0399fd2ea11193896362f71ef | 7ef485124e5f5b14c257fba915cd43aec8111f35 | refs/heads/master | 2021-01-22T09:16:47.066058 | 2014-08-15T14:46:32 | 2014-08-15T14:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | """
___________________________________________________
| _____ _____ _ _ _ |
| | __ \ | __ (_) | | | |
| | |__) |__ _ __ __ _ _ _| |__) || | ___ | |_ |
| | ___/ _ \ '_ \ / _` | | | | ___/ | |/ _ \| __| |
| | | | __/ | | | (_| | |_| | | | | |... | [
"tobias.simon@tu-ilmenau.de"
] | tobias.simon@tu-ilmenau.de |
85cc20ccd31be48833728d53b3066357e385f2c0 | e42b56be9ac649b55a59f4d7373dbc55775d1c33 | /eps_client/eps_client/urls.py | 0655375ac88500b6ed3c0f2d90a4c5ce3003fcb4 | [] | no_license | danielcb29/Rest_Example | 4f026f1ee8ddb5888f4f889a36fffe6ac4550273 | 9a5fd672edf3f4ea446c837d185aa540c2fecaff | refs/heads/master | 2022-11-27T23:02:05.467380 | 2016-10-10T01:17:21 | 2016-10-10T01:17:21 | 69,994,884 | 0 | 0 | null | 2022-11-22T00:39:33 | 2016-10-04T18:39:17 | CSS | UTF-8 | Python | false | false | 766 | py | """eps_client URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"danielc.web@gmail.com"
] | danielc.web@gmail.com |
a1380cf0b07a79d6ea3eec8e515d0dd844e61560 | f66021ddd1a79f2d43c5b00a56e15ce13a9abfb2 | /jbkxnoltmn_dev_1766/urls.py | 8c33ce9bcb4fd1b67b9e4e28b751f3b7120e5cf5 | [] | no_license | crowdbotics-apps/jbkxnoltmn-dev-1766 | 28db8f66d7f012f7273855a3e7c25becb06a5321 | e43e4d2761cae06d51f53af0102edfc868618fbd | refs/heads/master | 2022-04-06T05:51:42.505572 | 2020-03-01T19:42:42 | 2020-03-01T19:42:42 | 244,212,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | """jbkxnoltmn_dev_1766 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')... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
35a44548cde679b353b2ecfd460fbadd70c4f068 | d9b286e3ed4038651f8a93ddad8fc7369b8e22ad | /reviewboard/webapi/tests/test_screenshot_comment.py | 5362bcbc71c12d3eef9cb5242c2424f6ee47f5fc | [
"MIT"
] | permissive | harrifeng/reviewboard | 6456b1ba2fa953bdc83cb16681731bcef10430ee | f560679be34ab547ef0a4fbca959e244d6bf5a75 | refs/heads/master | 2016-10-16T14:05:54.102611 | 2013-09-06T21:23:30 | 2013-09-11T09:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | from djblets.testing.decorators import add_fixtures
from djblets.webapi.errors import PERMISSION_DENIED
from reviewboard.reviews.models import ScreenshotComment
from reviewboard.webapi.tests.base import BaseWebAPITestCase
from reviewboard.webapi.tests.mimetypes import screenshot_comment_list_mimetype
from reviewboard.... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
ff97443bc42e9a21c435f0a5d1bea777d082d66d | 1aa12d5735fb239c8be8f8a44881eb05908d6e4f | /deunionreserve/settings.py | a794f4a7c468667a858aed43da6fc8aa1c20a2f0 | [] | no_license | Justprince234/bank-api | 218f14d15e3e76f5f0b1c5c1142f7d5417cc6e03 | a2fa7d478c6ab88fc2369caaacbc407b5411da0d | refs/heads/master | 2023-06-23T11:00:51.124883 | 2021-07-13T13:04:36 | 2021-07-13T13:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,631 | py | """
Django settings for deunionreserve project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from ... | [
"princewilljackson@ymail.com"
] | princewilljackson@ymail.com |
ea7d9fa0c40854eead9518afad3701d2d8eeb5b2 | 32b5beff459a4e130c3b231e32d717bed4178a1c | /src/bench/bench_python/plot_benchmark.py | 4d0b590b602e3ac198077fd5613b194a6a9db094 | [
"MIT"
] | permissive | constantinpape/z5 | 9deb76fe52a1335dac7ef49e85c40cf7efbb8887 | bd5cb52782a9cabf534ea77ba0823f207c8eccb8 | refs/heads/master | 2023-07-06T15:58:13.279554 | 2023-07-04T07:26:21 | 2023-07-04T07:26:21 | 101,700,504 | 94 | 28 | MIT | 2023-07-04T07:26:23 | 2017-08-29T00:31:10 | C++ | UTF-8 | Python | false | false | 1,482 | py | import argparse
import json
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
sns.set_theme(style='whitegrid')
def plot_benchmark(path, chunk_key='25_125_125', skip=[]):
with open(path) as f:
results = json.load(f)
data = []
for format_ in ('h5', 'n5', ... | [
"c.pape@gmx.net"
] | c.pape@gmx.net |
73e0fa7025c6612d5ef02836a41198b625ae0f24 | 6c2a41b67027f95cc9525a813455b07cdf49c5d7 | /projects/models.py | 7278428ef0ce110f669ab440107ddbcf21ef929c | [
"MIT"
] | permissive | wilbrone/Awards | 3c1ce7ec3ca3003ff9787529a903c55c02ea42ae | c4c87ca5d700a12dc8d23e2d6092ac59adada4af | refs/heads/master | 2022-12-21T22:12:39.474327 | 2020-02-23T10:46:27 | 2020-02-23T10:46:27 | 240,668,985 | 0 | 0 | MIT | 2022-09-23T22:36:18 | 2020-02-15T08:19:22 | Python | UTF-8 | Python | false | false | 3,092 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.db.models.signals import post_save
from django.dispatch import receiver
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, related... | [
"wilbroneokoth@gmail.com"
] | wilbroneokoth@gmail.com |
3dfc9792128a7b662720ee5edda3d0b79bbc1671 | a2d83ad6126403703e85ecd3e627ef402e1fb6cf | /setup.py | 938f01e6cd380f0b81fc8141100e9881357bc040 | [] | no_license | argriffing/fiedlerology | 5e0042f6e4b77be40208a29910978ee1e9a9846a | 255cf1889fd9ac8619891ef8a10de813390247bd | refs/heads/master | 2020-05-17T05:24:33.832399 | 2014-05-10T01:39:36 | 2014-05-10T01:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/env python
"""Implementations of algorithms related to the work of Miroslav Fiedler.
"""
DOCLINES = __doc__.split('\n')
# This setup script is written according to
# http://docs.python.org/2/distutils/setupscript.html
#
# It is meant to be installed through github using pip.
from distutils.core import se... | [
"argriffi@ncsu.edu"
] | argriffi@ncsu.edu |
ec5fe9f24592abc674e2160d3674ec1936d8432f | d007f8d6c318c3d66e76d99715edf324c9fe0294 | /recipes/luci_config.py | a0181931f1a2c7a0f24a5d32e0f34026fc861b60 | [
"BSD-3-Clause"
] | permissive | nirvus/infra-recipes | c0f9e5facca7ad1907d639eb8819a59dc8f3584e | a5dc52f47405dcce56fb43a3e8ac80a2fbd56717 | refs/heads/master | 2020-04-07T23:15:01.809232 | 2018-11-06T02:30:12 | 2018-11-06T17:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,266 | py | # Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Recipe for testing LUCI configs."""
import difflib
from recipe_engine.recipe_api import Property
DEPS = [
'infra/jiri',
'recipe_engine/buildbucket... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
fcfff712894869114932d6c0f9818c7e944cbc3f | 7966fa31437cc8a539621a5a0642ce24c1c9de50 | /PycharmProjects/leetcode/knapsack/474一和零.py | fe2c8b5eb5ad4dc876881797206d48967091368e | [] | no_license | crystal30/DataStructure | 4f938508f4c60af9c5f8ec5520d5acedbe2dc90e | c55b0cfd2967a2221c27ed738e8de15034775945 | refs/heads/master | 2021-06-25T17:49:03.048853 | 2021-01-22T00:37:04 | 2021-01-22T00:37:04 | 192,374,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # coding:utf-8
class Solution:
def __init__(self):
self.memo = None
def findMaxForm(self, strs, m, n):
len_strs = len(strs)
if len_strs == 0:
return 0
self.memo = [[[-1 for _ in range(n+1)] for _ in range(m+1)] for _ in range(len_strs)]
return max(0, self.fi... | [
"zhao_crystal@126.com"
] | zhao_crystal@126.com |
88eb693481debe9f05c43f4a10cdaf4512efe676 | 7e8060ad317fe7d87fcbb1c756461cea8a067d08 | /stepik/python67/03_07_03.py | 0018a5ff2748b096d66fa7b893cd682c0b0bcb5b | [
"Unlicense"
] | permissive | ornichola/learning-new | f9b8f2d210f36f2c05a14e7cca56d32495e60778 | abb6e74f9f8794a0d3b897618207d4be0b0ff3e1 | refs/heads/master | 2023-05-25T19:18:42.931439 | 2023-04-17T17:22:57 | 2023-04-17T17:22:57 | 115,291,570 | 4 | 25 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | # [STEPIK]
# Программирование на Python https://stepik.org/67
# 03_07_03 Задачи по материалам недели
'''
Простейшая система проверки орфографии основана на использовании списка известных слов. Каждое слово в проверяемом тексте ищется в этом списке и, если такое слово не найдено, оно помечается, как ошибочное.
Напишем... | [
"1502708+ornichola@users.noreply.github.com"
] | 1502708+ornichola@users.noreply.github.com |
1a2118f38e648268356c5aefae975be5046dbd2a | f53117f4bc68c174bf8e769e146c68f5e20cb8f5 | /msppg/msp-imudisplay.py | 428a8b73f3ab50dc09221428aad3c894c09749e0 | [] | no_license | zidane1980slab/MSPPG | ac9324127626f07f56bc7473f92a46ec6b176dfb | 085fac6316b747a957823295876c7735c3c1a9e3 | refs/heads/master | 2021-01-14T08:46:08.967107 | 2015-07-21T02:18:58 | 2015-07-21T02:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,711 | py | #!/usr/bin/env python
'''
imudisplay.py - graphical demo of MSPPG Attitude messages
Copyright (C) Alec Singer and Simon D. Levy 2015
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either vers... | [
"simon.d.levy@gmail.com"
] | simon.d.levy@gmail.com |
1c23d8ec01374a07d729a7c0bff7960fefe9bc10 | 9e2ab7f4903d9124b4aa826616c9935e2c8c4b8a | /python/ccxt/async_support/hollaex.py | 1c9f2a55e650b7c85fd519cf847b31614f933064 | [
"MIT"
] | permissive | jknight/ccxt | fc7a0f44014bbe63dd9289c8cc053e82574fc4c2 | 02cdef0247435a6c6557faad8a1793d3da67c085 | refs/heads/master | 2022-11-23T03:38:08.400200 | 2020-06-10T19:02:18 | 2020-06-10T19:02:18 | 270,738,340 | 1 | 0 | MIT | 2020-06-08T16:19:13 | 2020-06-08T16:19:12 | null | UTF-8 | Python | false | false | 43,498 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.base.errors import AuthenticationError
from ccxt.base.errors import Argumen... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
af42b85e3f471e7e97d28b7be17f4a38e423e2dd | 37adb80efb9b75e507440af38e116207b65039ec | /backend/green_rice_27742/wsgi.py | 6b1b876222d02962b56137e0681369fb77328ada | [] | no_license | crowdbotics-apps/green-rice-27742 | c39ba932d25992eef96da74c57bcf5a479014727 | f9c8cfc358c287ac7d32c983c523b463e5f5a1da | refs/heads/master | 2023-05-25T18:47:07.307988 | 2021-06-04T23:47:41 | 2021-06-04T23:47:41 | 373,982,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for green_rice_27742 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ddba473a2d93e43e7b7d79629b3f73dc5b86a764 | 4f7962d02254ab6e5cf692648c933394ff41c79d | /component_sdk/python/tests/google/dataflow/test__launch_python.py | 246816dd10677750ebd91c1fc5a39a72f081beb4 | [
"Apache-2.0"
] | permissive | yebrahim/pipelines | 5414131f5ab176aa7607114e3a0d23db73f5c8c8 | 77df6c2438f4cf6b81c97ecf4dac9fdbac0e3132 | refs/heads/master | 2020-04-08T13:23:50.628537 | 2019-03-01T18:35:47 | 2019-03-01T18:35:47 | 159,389,183 | 1 | 0 | Apache-2.0 | 2018-11-27T19:37:57 | 2018-11-27T19:37:56 | null | UTF-8 | Python | false | false | 2,989 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
bdafe21d3f847430f8a82c37360c237512b69a8c | 83cf642504313b6ef6527dda52158a6698c24efe | /scripts/addons/fd_scripting_tools/autocompletion/suggestions/dynamic/_bpy_fake/__private__/blenddatalinestyles.py | da6be1867caf90383dcdbf8a7278bc00bf432072 | [] | no_license | PyrokinesisStudio/Fluid-Designer-Scripts | a4c40b871e8d27b0d76a8025c804d5a41d09128f | 23f6fca7123df545f0c91bf4617f4de7d9c12e6b | refs/heads/master | 2021-06-07T15:11:27.144473 | 2016-11-08T03:02:37 | 2016-11-08T03:02:37 | 113,630,627 | 1 | 0 | null | 2017-12-09T00:55:58 | 2017-12-09T00:55:58 | null | UTF-8 | Python | false | false | 1,137 | py | from . struct import Struct
from . freestylelinestyle import FreestyleLineStyle
from . bpy_struct import bpy_struct
import mathutils
class BlendDataLineStyles(bpy_struct):
@property
def rna_type(self):
'''(Struct) RNA type definition'''
return Struct()
@property
def is_updated(self):
... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
da52ce6e0f2e6dbc30ed36da552d9228c8915f07 | d635abe4bcdb62818c12f00fa3664d4147ecbf8d | /bert/train/utils/stateload.py | dcae7ee45b2a1639bd0b4d8997cb5c6cdcb920df | [] | no_license | mbilab/protein_understanding | e82badd8657a9f115d4a617112e00d9d69f19471 | 56a3f17f0557c57d3c25786d128d608629aecd69 | refs/heads/master | 2020-07-08T14:38:27.318254 | 2019-12-18T09:46:02 | 2019-12-18T09:46:02 | 203,119,288 | 0 | 0 | null | 2019-08-19T07:18:15 | 2019-08-19T07:18:14 | null | UTF-8 | Python | false | false | 766 | py | def stateLoading(model, pretrained_path):
# Since issue: KeyError: 'unexpected key ...'
# See https://discuss.pytorch.org/t/solved-keyerror-unexpected-key-module-encoder-embedding-weight-in-state-dict/1686/3
# Build a new dict that contains no prefix 'module.', the length of the prefix is 7
# original s... | [
"ztex030640417@gmail.com"
] | ztex030640417@gmail.com |
439c1fd1483a411f8f2aa19a035764258d8b0f1f | 0a8a4bfd6b4ffcfb7c99119c83cb3abe17c4a8f6 | /examples/frontend_example.py | 14824c9662fd5ca82359b8f6b574ba602715a9d3 | [
"Apache-2.0",
"MIT"
] | permissive | google/openhtf | 58c06e07508f9bb2079070a5ac03898fc68c1778 | 3a9a24987b2b34782fca55a8df8d007167dbb19a | refs/heads/master | 2023-08-23T12:12:54.917649 | 2023-07-27T01:51:17 | 2023-07-27T01:51:43 | 41,519,483 | 471 | 253 | Apache-2.0 | 2023-09-12T00:47:42 | 2015-08-28T01:14:17 | Python | UTF-8 | Python | false | false | 1,431 | py | # Copyright 2018 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 agre... | [
"noreply@github.com"
] | google.noreply@github.com |
9f2a2c5e001af876451e73bc546f946af0eb6ed8 | 226e962457f3f9d271bdc0ec7cb999d45dd2ab92 | /plugins/admin.py | 2cd117d0f1eb608f3a981430e86f4d6694ebbb58 | [
"Apache-2.0"
] | permissive | Web5design/saxo | 5109ed2a9c48b2c6e4a2afd6edfe2e28b8279b0f | 1cf079d13be63557626ebf8163c65c16bd4856c8 | refs/heads/master | 2021-01-20T16:30:36.401591 | 2014-01-26T22:23:28 | 2014-01-26T22:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # http://inamidst.com/saxo/
# Created by Sean B. Palmer
import saxo
@saxo.command("join", owner=True)
def join(irc):
if irc.arg.startswith("#"):
irc.client("join", irc.arg)
irc.say("Joining %s" % irc.arg)
@saxo.command("leave", owner=True)
def leave(irc):
if irc.arg.startswith("#"):
i... | [
"sean@miscoranda.com"
] | sean@miscoranda.com |
7d962129b3321a9da84f6675f947b37340d162dd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02999/s943040694.py | 66fd8c56fa53d42dca418e7b5c8d0ddc8788e6c2 | [] | 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 | 74 | py | x,a=map(int,input().split())
if(x<a):
print("0")
if(x>=a):
print("10") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ad0ce10579942c717769e5eb6262652d640dfcfa | 3943378e160590751b195c58f5a817125e487686 | /findit/engine/ocr.py | 16990307cb26dfec42b936e006ab54d51c5f9c17 | [
"MIT"
] | permissive | uzstudio/findit | 475d101e295aeb2c92df9f80dae78e88bc327a27 | e3bb233b559f1882209fe95734a933bb82f71c80 | refs/heads/master | 2023-01-29T13:06:02.313593 | 2020-12-06T16:02:53 | 2020-12-06T16:02:53 | 319,051,716 | 0 | 0 | MIT | 2020-12-06T14:24:31 | 2020-12-06T14:24:31 | null | UTF-8 | Python | false | false | 3,530 | py | import numpy as np
import warnings
import typing
from findit.logger import logger
from findit.engine.base import FindItEngine, FindItEngineResponse
try:
import findtext
except ImportError:
logger.debug("findtext should be installed if you want to use OCR engine")
class OCREngine(FindItEngine):
""" OCR e... | [
"178894043@qq.com"
] | 178894043@qq.com |
da49861f0b8aa3629fdd2930c370bbadcbb763d3 | de382219afb2a5e5a8d0dae18d16d08d0f8a48dc | /5zHGkepVqta7IBfS/bd7K98McTkaI3RFS.py | bd226e6265077aad77101f4c44508aaedbc4979a | [] | no_license | urlib/OEV04H | 1d862dfef7ec693bf31dd50e5c05b0bcefed423a | 9f97b73481c3b6a0769ee4e3f07fbe4229be2b13 | refs/heads/master | 2021-05-19T18:12:13.600901 | 2020-04-15T03:21:34 | 2020-04-15T03:21:34 | 252,057,207 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,958 | py | 𧏀具⇬𩹊🐣烤𭁈৵𣳋㺧𡴚𬙍𭬁𨈧谴炕𒅔ȧ𭀼𣑠⦙𘠘𡀀쐝吱𢍝𣝵𐊈𠶲䫰𦓑珃㳨㕊𥃂쁒橢𭵥𨲶𑌫𨤰ꡉནऱẇ뱪𧝍ᛔ𣻺𭇬𝘆݂𮧌𐡰𦳗𠙬𠖫讶𠝛𢜑𦐘𗛭𨑯𣑓𘢋𨴳왔𤟳鷘律ꍀ𠞐愫𧕷𗮤紭𥄚⟿𥴟𩭒𠧴𦆥톴록茇ᶳ𑖈𤨴𠲅ണ杼㮬𧍒턹𭒱𫯨ꊋ𗩱땅헙蹐冉𬄁⅟𝛵𭡫𤶹ゼ璢𡯒ꮶ𨊙𐅞ދὈ狪𫻭𣅮䲀𥓠쪳🛴𡾋絉🙎ݢ𥰯༮䱱𪣽𠔁ꩄ𭟀ꘀ𠁴𭆉𑌣팇ꌦ𬞿𨁗鼏葲𝅁𩺳𣻚𬁐娽캂𭤫◸ᖎ謖鯱𡌳賛𬑲㚼𢾑ᜎ熻𫁷檗𥵷𡡻𝠄𒎒z𗐑㾉𤋆㻏⨗𣸏𠥥汅𑒖𞥁胾𑱰𑋲𫾫鑭㒕𫫐㈖𧮵쏳𗮁𠴒𧗺𡰈𠌗𦋛鋞תּ苾嵒쫺♟𑪔𧄲𪓤𫄀ﵳ퍉... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
d19dc2f371b1a4f5f4558649314377073d2df972 | 40454f9a92ecbfc382d8bb611743bad4ecb76017 | /service/log_handler.py | 0d2507a5ad64cc8afdc55d03fbf6baac0d1e7018 | [
"Apache-2.0"
] | permissive | ibm-devops/devops-workshop-2020 | cd83135edb5c7ec2adb4647d4b4997b9ff11fc46 | 33fec8ef8cb7e16548b4eb3381b441acbdce0e47 | refs/heads/master | 2023-09-06T08:45:35.184681 | 2021-11-23T21:46:49 | 2021-11-23T21:46:49 | 305,249,605 | 0 | 0 | Apache-2.0 | 2020-10-19T21:40:57 | 2020-10-19T03:11:30 | Python | UTF-8 | Python | false | false | 710 | py | import logging
from . import app
############################################################
# set up logging for Flask applications
############################################################
if __name__ != "__main__":
gunicorn_logger = logging.getLogger("gunicorn.error")
app.logger.handlers = gunicorn_logg... | [
"johnnyroy@johnrofrano.com"
] | johnnyroy@johnrofrano.com |
a31328a17ae927b249e052e1bdc2fca3299ef970 | c2be187155aabf59a4c0d3f5065bc26239c0b827 | /special_crawler/extract_att_data.py | 4560042f5c90fb46a850df746ac322db6d859754 | [] | no_license | dankCodeNugs/tmtext | 1d6c54f79399bfa5e6f3905c0f72ba0be59d8d0d | 8e2d834775f440def7f57294674b8109b46ee191 | refs/heads/master | 2023-03-16T08:49:38.456929 | 2016-12-20T19:45:54 | 2016-12-20T19:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,035 | py | #!/usr/bin/python
import re
import HTMLParser
import json
import requests
from lxml import html, etree
from extract_data import Scraper
class ATTScraper(Scraper):
##########################################
############### PREP
##########################################
INVALID_URL_MESSAGE = "Expec... | [
"life.long.learner127@outlook.com"
] | life.long.learner127@outlook.com |
1795fb529d885939637490ca274f1a05e3817c80 | b44a984ac8cfd183e218d56e1ec5d0d3e72d20fd | /Binary Search/二分答案/617. Maximum Average Subarray II/binary_search_prefix_sum.py | 8b867e3902d4d255a55a878fcda65c14538f88da | [] | no_license | atomextranova/leetcode-python | 61381949f2e78805dfdd0fb221f8497b94b7f12b | 5fce59e6b9c4079b49e2cfb2a6d2a61a0d729c56 | refs/heads/master | 2021-07-15T20:32:12.592607 | 2020-09-21T00:10:27 | 2020-09-21T00:10:27 | 207,622,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | class Solution:
"""
@param nums: an array with positive and negative numbers
@param k: an integer
@return: the maximum average
"""
def maxAverage(self, nums, k):
# write your code here
if not nums:
return 0
start, end = min(nums), max(nums)
# binary s... | [
"atomextranova@gmail.com"
] | atomextranova@gmail.com |
847cfce4f2586b32847784c08399cc36f2c1c6a0 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/odd_20200715173523.py | dce675361390068076286f115c10581f4c208933 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | def odd(A):
# return the value that doesn't have a pair
# a dictionary to keep track of the number of times
# an element has been repeated
newDict = {}
for i in A:
if i in newDict:
newDict[i] +=1
else:
newDict[i] = 1
odd([9,3,9,3,9,7,9]) ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
43ccfcb76efbc913bf2c01360150033452d7793c | 25a27b6e7ad3f7ef90e7b70d7393fcf4b7cc16b0 | /Pandas_Stats.py | b8a04e49bdb8d45ba1ff49fda54cb3a967501103 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Bhaney44/Patent-Valuation | aeef15892fa81be314799ad48d8669d6ad3f3bc6 | 57af26f9ec60c85cbf6217358b70520a7b916189 | refs/heads/master | 2021-03-05T19:19:31.799981 | 2020-09-29T05:41:16 | 2020-09-29T05:41:16 | 246,145,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import pandas as pd
from pandas import DataFrame
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
df = pd.read_csv('Lite_Coin_12_Mos.csv')
print(df.head())
print(df.tail())
print(df.index)
print(df.columns)
print("-----")
print(df.describe())
#print mediuan
print('median')
print(df.median()... | [
"noreply@github.com"
] | Bhaney44.noreply@github.com |
c830c87b455a42a5749d5bbef3033ab9ffb56f2f | 3d792bcf31843a8329f6c9774a8a58a8c49a8a70 | /0x06-python-classes/0-square.py | 3bb5016e742b9094a78be3e986028bbc8b6a28f5 | [] | no_license | theurikenneth/alx-higher_level_programming | a6accbe016bdc62ee3f0e849c8e2c847247fb4d9 | 289a08cffa1bcbecab4550b6fed21296cf88fe66 | refs/heads/main | 2023-08-28T08:53:32.676778 | 2021-10-21T06:00:47 | 2021-10-21T06:00:47 | 361,642,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | #!/usr/bin/python3
"""Defines the square class"""
class Square:
"""Square class. Contains nothing"""
| [
"theurikenneth@gmail.com"
] | theurikenneth@gmail.com |
67286f42c0f5c3196b3760aedd6bbfecb99ed3a6 | 26dcf8e0457156a8bde936d56a59e1099893f8c6 | /tests/test_init.py | 55608b06b9def4bb420070c424c03c56bf5aa666 | [
"MIT"
] | permissive | SilenceWinter/MicroTokenizer | fc4212fb9a324e93e707edbe130b518bd782d07a | 0b617f4b107743f6c7c473a9fac9408d21c56931 | refs/heads/master | 2020-03-29T04:31:23.050836 | 2018-09-18T16:40:28 | 2018-09-18T16:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
import MicroTokenizer
@pytest.mark.parametrize("input_text", pytest.helpers.tokenizer_test_cases())
def test_DAG(input_text):
result = MicroTokenizer.cut_by_DAG(input_text)
pytest.helpers.assert_token_equals(result, input_text)
@pytest.mark.para... | [
"u1mail2me@gmail.com"
] | u1mail2me@gmail.com |
9f4d4ded1ac98901226e2e651b5c2a77055979bd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/175/usersdata/267/96307/submittedfiles/lista1.py | 0d27230ca436ca13864d21627d406bd3d0fc5b36 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # -*- coding: utf-8 -*-
n=int(input('Tamanho da lista: '))
a=[]
par=[]
impar=[]
somaPar=0
contPar=0
somaImpar=0
contImpar=0
for i in range(0,n,1):
elem=int(input('Digite o elemento: '))
a.append(elem)
for i in range(0,len(a),1):
if a[i]%2==0:
somaPar=somaPar+a[i]
contPar=contPar+1
else:... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bb9a5e375a56114623e45ce385c30a820fc1ac0a | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/PyOpenGL-2.0.2.01/OpenGL/__init__.py | 6efde92c2a11e6c461d897cf6ad1f636d7cff488 | [] | no_license | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
def __set_attributes():
global __date__, __version__, __build__
import string, os.path
__date__ = string.join(string.split('$Date: 2004/11/14 23:33:24 $')[1:3], ' ')
filename = os.path.join(o... | [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
d8853cd5771461c6c01d5fc0487103ad116de00a | 0cd2333e007e28e390e5f0ed203f60a066585464 | /python/temba_expressions/gen/ExcellentLexer.py | 39aec5620f3789f7f279c8d4c8cf75250ca20478 | [
"BSD-3-Clause"
] | permissive | rapidpro/expressions | 1215f64ec523cbde6ca358c5173dc4f409f86f3b | b03d91ec58fc328960bce90ecb5fa49dcf467627 | refs/heads/master | 2022-05-30T06:13:14.613925 | 2019-03-25T16:51:30 | 2019-03-25T16:51:30 | 43,113,391 | 3 | 6 | BSD-3-Clause | 2022-05-20T20:51:35 | 2015-09-25T06:24:59 | Java | UTF-8 | Python | false | false | 15,373 | py | # Generated from Excellent.g4 by ANTLR 4.7
# encoding: utf-8
from __future__ import print_function
from antlr4 import *
from io import StringIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write(u"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2")
buf.write(u"\30\u00aa\b\1\4\2\t... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
c1d33748b6659265d0d0e48b25c94af00752e8c9 | a7104434e0ddb4575ef0a6cd467bac6620570de8 | /hunter111.py | 4726dd46eef032be4a152c39cdce18b129aae670 | [] | no_license | GauthamAjayKannan/GUVI-1 | 7b276eef3195bec9671eec8bb6bcc588cb5c970e | fafabab93df55abcc399f6e2664286ed511fd683 | refs/heads/master | 2020-06-25T07:38:08.465414 | 2019-05-17T11:24:53 | 2019-05-17T11:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n = int(input())
sum = 0
x = [ [int(e) for e in input().split()] for i in range(n)]
for i in range(n):
sum += x[i][(n-1)-i]
print(sum)
| [
"noreply@github.com"
] | GauthamAjayKannan.noreply@github.com |
98f3200707f50fb960acc5eef201747d0b5dfb8a | 351e2a5ab1a658dcfa6e760fcfb80671d4d95984 | /ferrua/models/purchase.py | 8ab59d7972cfc8498c3c4c4064f223afe5a4145d | [] | no_license | eneldoserrata/marcos_community_addons | 02462b006b6c4ece3cfca914bf11d72d9fbd2a0a | dfd1f4254c6a59725b32e240f1d654b360c9d7e1 | refs/heads/master | 2021-10-11T01:02:08.807210 | 2017-03-09T08:35:54 | 2017-03-09T08:35:54 | 45,713,685 | 4 | 12 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
import openerp.addons.decimal_precision as dp
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
@api.one
def _cal_msi(self):
if self.is_roll_order:
exact = 0
master = 0
lam = 0
... | [
"eneldoserrata@gmail.com"
] | eneldoserrata@gmail.com |
14aa6d7fea39d00ecd9884e761e2c35165614022 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Return_Fan_Status.py | 672937506a4f0ced76a2b9ed9e98dedc286475e7 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Fan_Status import Fan_Status
class Return_Fan_Status(Fan_Status):
rdf_type = Namespace('https://brickschema.... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
c6f531b07cc9ab53de8e28529b78d4cb2a3ae124 | c3e34335fde6c8bec8d86f2c5651a7df55759406 | /test.py | 4d359a733dae1a5488f91b8e6f793c487b3a29ae | [
"MIT"
] | permissive | fancybian/ner-crf2 | a2ea23dfc0cf528ff103bf35d6f70b6a70fdad5f | e4f4fe973057ee5f6ffcc87c8dddc502c981b9bf | refs/heads/master | 2021-05-14T00:24:14.683097 | 2018-01-07T05:26:06 | 2018-01-07T05:26:06 | 116,538,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,576 | py | # -*- coding: utf-8 -*-
"""
Script to test a trained CRF model.
train.py must be used before this to train the CRF.
This file must be called with the same identifier that was used during training.
Example usage:
python test.py --identifier="my_experiment" --mycorpus
python test.py --identifier="my_experiment" ... | [
"kontakt@ajung.name"
] | kontakt@ajung.name |
5f3eb96b3c84ea9d92c2b90fdd6150f799ed0b11 | 38514eac965860d01633c0121c51e580f2b45554 | /python/taichi/image/__init__.py | d716a480d16a35fed7bc0e063dae8efa98f9bc97 | [
"MIT"
] | permissive | willFederer/taichi | e5befcd8d4760fb2b071ab09b05cf2c9d4975b6e | 59b37adf83fba5a06583dcf6b9bf2a74a985fe3e | refs/heads/master | 2021-01-25T01:21:49.369480 | 2017-06-01T04:33:49 | 2017-06-01T04:33:49 | 94,750,494 | 1 | 0 | null | 2017-06-19T07:47:59 | 2017-06-19T07:47:59 | null | UTF-8 | Python | false | false | 17 | py | from hdr import * | [
"iterator.advance@gmail.com"
] | iterator.advance@gmail.com |
bb64d0fbc08d3ddcc68c3f4237687110590e6a79 | de96be8237ee349bee3659adb34bf12e73334f85 | /google/domains.py | 543129b75f1341041bb9899956ece3bb035dc2a3 | [] | no_license | hezhen/spider-course-4 | f79e44d6ab1001dbb80bb98ef78e9ecd41b75461 | 02e2f65c5625e02d301e920560918f10769f2d6e | refs/heads/master | 2020-03-12T19:03:32.874875 | 2018-10-05T08:42:57 | 2018-10-05T08:42:57 | 130,776,197 | 43 | 33 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import re
from lxml import etree
f = open('List of Google domains - Wikipedia.htm', 'rb+')
html = f.read()
f.close()
tree = etree.HTML(html)
google_links = []
external_links = tree.xpath('//td/span/a[@class="external text"]')
for external_link in external_links:
link_str = external_link.attrib['href']
if l... | [
"hezhen112058@pwrd.com"
] | hezhen112058@pwrd.com |
57583ef833feb7fed1f2a1302277c5c6f0a9010c | 6e6785851f2d149faa25f907995a167b4b9a2330 | /app.py | 4cab0948530d82f4776386da0b97b2334f0122d3 | [] | no_license | b1naryth1ef/catify | 5456929dff5ec2d4e525be5f45e54581455d60d1 | 6b43b17894d8d331be36b6136a4f35023b351416 | refs/heads/master | 2020-04-26T15:52:41.036896 | 2013-05-08T07:55:50 | 2013-05-08T07:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | from flask import Flask, render_template, send_file, request
from StringIO import StringIO
import os, sys, time, base64
import Image
from face_detect import catify
app = Flask(__name__)
app.secret_key = "change_me"
@app.route('/')
def routeRoot():
return render_template("index.html")
@app.route("/catify", metho... | [
"b1naryth1ef@gmail.com"
] | b1naryth1ef@gmail.com |
8af551e427cc06435e45752c8d1c0fe5586808de | 846a7668ac964632bdb6db639ab381be11c13b77 | /android/tools/test/connectivity/acts/tests/google/bt/car_bt/BtCarPairedConnectDisconnectTest.py | 6a695d6f7fb1d7314d170dfe6d5d9c0e1b554119 | [] | no_license | BPI-SINOVOIP/BPI-A64-Android8 | f2900965e96fd6f2a28ced68af668a858b15ebe1 | 744c72c133b9bf5d2e9efe0ab33e01e6e51d5743 | refs/heads/master | 2023-05-21T08:02:23.364495 | 2020-07-15T11:27:51 | 2020-07-15T11:27:51 | 143,945,191 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,208 | py | #/usr/bin/env python3.4
#
# Copyright (C) 2016 The Android Open Source Project
#
# 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 requir... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
5128534db0c281779b7258ce43806ef7569a716f | c22b9c7c4a854ed985e777bcbecd18870439b334 | /hardway/print.py | 1206e22d567c83747e1a692a7553958fbbbdc237 | [
"BSD-3-Clause"
] | permissive | pezy/python_test | ceb35a8a63ca8ebe26ffa5c72ace664718c7b328 | b019a0d9f267b5071c37fc85c9acaf27e9146625 | refs/heads/master | 2021-01-19T01:09:20.820202 | 2016-07-30T08:35:15 | 2016-07-30T08:35:15 | 18,096,404 | 0 | 2 | null | null | null | null | WINDOWS-1252 | Python | false | false | 334 | py | # -- coding: utf-8 --
print "Hello, World!"
print "Hello Again"
print "I like typing this"
print "This is fun"
print 'Yet! Printing.'
print "I'd much rather you 'not'."
print 'I "said" do not touch this.'
print "ÖÐÎÄ£¡"
# this is comment
# you can print one line by ','
print "test just one line,","also one line,","ye... | [
"urbancpz@gmail.com"
] | urbancpz@gmail.com |
d7b93c89b2e2a0584c469b21d001ed6aeca48808 | e0219f54839b1d19a2509d1320d2640c8fe9bb79 | /zinnia/sitemaps.py | 128a7a1fe160bfbf74fce522eadd2d57ece876dc | [] | no_license | alsoicode/django-blog-zinnia | 9648bd53e079e9ae1a8a0b64e5ef58821bb54cc2 | 6f015e0944ca60ea0e9cd7c1c2434666f5c544b5 | refs/heads/master | 2021-01-17T08:33:34.814990 | 2010-05-11T17:40:08 | 2010-05-11T17:40:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | """Sitemaps for Zinnia"""
from django.contrib.sitemaps import Sitemap
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from tagging.models import Tag
from tagging.models import TaggedItem
from zinnia.models import Entry
from zinnia.models import Category
from zinnia.managers im... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
eaa874e35cb8e52f4390453e8611fca1b9c5ce04 | 52a00bbbe9cb90e46a913e9ef5facb04d25cf8b7 | /todolist/tasks/models.py | 1fbec0968940b51982867f96c8a02c37a1be2c5e | [] | no_license | agbin/todoList | 9852378487e6d80bf6bf944f357d6b6824a4c694 | 3a5fee7d38c3f55c2f2432d5a47fc619cf2cfce0 | refs/heads/master | 2020-03-18T17:30:02.649979 | 2018-09-30T15:13:32 | 2018-09-30T15:13:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from django.db import models
from colorfield.fields import ColorField
class Category(models.Model):
name = models.CharField(
verbose_name="Name",
max_length=120
)
color = ColorField(default='#FF0000')
class Meta:
verbose_name = "Category"
verbose_name_plural = "Categori... | [
"agnieszka.bin@gmail.com"
] | agnieszka.bin@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.