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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6094e58198120626f12f5aa95fe32e016cc64ba5 | 20ed6e74d227e097a924e050bc82682381739fc7 | /src/tx/functional/list.py | 45c2627a517eeef89d294e0f38dfc335f6b719e2 | [
"MIT"
] | permissive | RENCI/tx-functional | c341f38293a889e125824822c47b0d1f1f3f87fb | 45427ab06b7d029940e250a5f189997a8111d3f0 | refs/heads/master | 2022-12-11T11:53:34.830442 | 2020-09-05T17:56:40 | 2020-09-05T17:56:40 | 264,998,389 | 1 | 1 | null | 2020-05-18T17:14:53 | 2020-05-18T16:32:09 | Python | UTF-8 | Python | false | false | 717 | py | from .traversable import Traversable
from typing import Generic, TypeVar, Callable, Any, List
from .functor import Functor
from .applicative import Applicative
from .utils import foldl, foldr, Arrow
S = TypeVar("S")
T = TypeVar("T")
def rec(ma: List[S], b: T, f: Callable[[S, T], T]) -> T:
return foldr(f, b, ma... | [
"[email protected]"
] | |
2a15671d6f800b0ed904eda1e0736d12f02e3e02 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/39/usersdata/120/13433/submittedfiles/dec2bin.py | 9a40134fda961c27492e0c85f0f6f823e4b3bc9e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # -*- coding: utf-8 -*-
from __future__ import division
d=input('digite um numero na base decimal:')
cont=0
k=d
while k>0:
k=k//2
cont+=1
n=cont
i=0
soma=0
r=d
while i<=(n-1):
r=d%2
d=d//d
b=r*(10**i)
i+=1
soma=soma+b
print soma | [
"[email protected]"
] | |
1b8ca6d4285b1bf2ba6e8ef64cd2e7b25a83d932 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/idlelib/idle_test/test_pathbrowser.py | c74b4f69f1a9d7f33751f283cef5ff88fc8318bc | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 652 | py | # 2015.11.10 21:36:26 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/idlelib/idle_test/test_pathbrowser.py
import unittest
import idlelib.PathBrowser as PathBrowser
class PathBrowserTest(unittest.TestCase):
def test_DirBrowserTreeItem(self):
d = PathBrowser.DirBrowserTreeItem('')
... | [
"[email protected]"
] | |
ff60581243148821c05ad3c7d119f8f54162d2c1 | fafb10ff1b5ec8dcd3c131649afa9baa80159770 | /password.py | b873790aaf3464f365923513fb67ba9dd5799129 | [
"MIT"
] | permissive | pombredanne/webkit-vuln-finder | 94f182fb7a40e8f35cce6ed08598a97435d3bad7 | 5da9e457b5bfd3715d1d97811cf21750dc9b1082 | refs/heads/master | 2021-04-28T18:07:43.793971 | 2017-10-21T02:24:35 | 2017-10-21T02:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | username = "thatOneGuy"
password = "correcthorsebatterystaple"
| [
"[email protected]"
] | |
44d907b9a568613000577d7c233cfdfa14a4213a | 032117bbf248a76abd25fcc2355bc8ade84fa76a | /django/theproject2/pro3/app3/views.py | be4a8ac1bbf617042c03024c19496ce33a98df2b | [] | no_license | shefaligoel136/python_summer_training | ba8f28f6af008584b4239c73d466e4e9d35b4b01 | 0b97fea050342fe4ed95b18c5f7ed885a6c8ca23 | refs/heads/master | 2022-11-13T07:22:32.855717 | 2020-07-06T08:33:19 | 2020-07-06T08:33:19 | 277,480,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from django.shortcuts import render
def home(request):
return render(request,'temphtml.html')
def solve1(request):
val1 = float(request.POST['num1'])
val2 = float(request.POST['num2'])
op = request.POST['op']
if(op=='+'):
ans = val1+val2
return render(request,'temphtml.html',{'res':ans})
elif(op=='-'):
a... | [
"[email protected]"
] | |
99aadc30ade96f7a2b39bb1935c8d592ccd03ed7 | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_policy_v1beta1_id_range.py | 6e5e62b8e765d805b6eb01144abad5213e8a04c2 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,030 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"[email protected]"
] | |
17e41741acf2c53e5af3b84136bdd4fb2cea28cd | ed6b358cfaf9bc61dab608b117c2cf0abcf90854 | /xichuangzhu/controllers/user.py | 5cf56bb8f0920a95c7c74bd335ae0e05c71f22c6 | [] | no_license | wallaceyuan/xichuangzhu | faa8fdec2a670661165d351ac3311126c8fc91e3 | ec45aa8b3f4b1e6b9b70537e270be89e97034c99 | refs/heads/master | 2021-01-20T21:34:45.949361 | 2014-05-23T07:29:50 | 2014-05-23T07:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | # coding: utf-8
from __future__ import division
from flask import render_template, Blueprint, g
from ..models import User, CollectWork, CollectWorkImage, Work, WorkImage, WorkReview
from ..utils import check_is_me
from ..permissions import user_permission
bp = Blueprint('user', __name__)
@bp.route('/<user_... | [
"[email protected]"
] | |
31a4fa2f4e3d61e550041ea39e8c9d96f5eb0e47 | 860c16b6f4eb612f2f62a4ff073ad4b930eaa38a | /planscore/districts.py | 3968cb6d5de2eba3e2111de19d64cc011017ffb9 | [] | no_license | johndpope/PlanScore | d1f0c93e8e11e8ed7486a0932653c23b17c5eaaa | a0c62a4f75d577ee21c297199ce974cc8ec8167a | refs/heads/master | 2021-01-25T04:15:17.529051 | 2017-06-03T03:06:56 | 2017-06-03T03:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,508 | py | import collections, json, io, gzip, statistics, time, base64, posixpath, pickle
from osgeo import ogr
import boto3, botocore.exceptions
from . import prepare_state, score, data
ogr.UseExceptions()
FUNCTION_NAME = 'PlanScore-RunDistrict'
class Partial:
''' Partially-calculated district sums, used by consume_tiles... | [
"[email protected]"
] | |
2175a66e56fec5a6b38b8d8c9b58684e11ae83a5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02721/s005838488.py | 67b4f1efce6fc3f21eede2e8af273a37d4a09818 | [] | 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 | 344 | py | n , k , c = map(int,input().split())
s = input()
L = []
R = []
i = 0
j = n-1
while i<n and len(L)<k :
if s[i] == "o" :
L.append(i)
i += c
i += 1
while j>-1 and len(R)<k :
if s[j] == "o" :
R.append(j)
j -= c
j -= 1
R.reverse()
for x in range(k):
if R[x] == L[x... | [
"[email protected]"
] | |
6528f2aef6ccb83cf7c93281d60781f7bd740da3 | 4912cbd47c19c58d142e6833911d70f5ea037357 | /question_bank/length-of-last-word/length-of-last-word.py | 802c71d7fdb456bf98226e268e3f524641dbadf5 | [
"Apache-2.0"
] | permissive | yatengLG/leetcode-python | a09a17cd9e60cafd9ff8ca9c068f5b70719c436f | 5d48aecb578c86d69835368fad3d9cc21961c226 | refs/heads/master | 2023-07-13T16:10:01.920716 | 2021-09-06T02:51:46 | 2021-09-06T02:51:46 | 286,969,109 | 13 | 6 | null | 2021-02-16T10:19:44 | 2020-08-12T09:13:02 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# @Author : LG
"""
执行用时:32 ms, 在所有 Python3 提交中击败了96.39% 的用户
内存消耗:13.3 MB, 在所有 Python3 提交中击败了73.72% 的用户
解题思路:
见代码注释
"""
class Solution:
def lengthOfLastWord(self, s: str) -> int:
s = s.rstrip(' ') # 去除右侧空格
words = s.split(' ') # 以空格划开单词
return len(words[-1]... | [
"[email protected]"
] | |
3e99bde13b9275c37392065bcce7d9a4fb67e948 | 3de2a746243ad1cb000994a06a0f9699db9a901f | /agc016a.py | 049fcd1810826d416cc69758d1fa09b721e56213 | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py |
def main():
buf = input()
s = buf
characters = []
for i in s:
if not i in characters:
characters.append(i)
min_iter_count = 999
for i in characters:
iter_count = 0
t = s
while True:
flag = False
new_t = ""
... | [
"[email protected]"
] | |
171430aa6e72848779736e903cf664b836f0d045 | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/Parsley-1.1-py2.7.egg/terml/test/test_terml.py | efb9991a475a1bc684728f0d8bc302bd17366807 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 6,108 | py | from twisted.trial import unittest
from ometa.runtime import ParseError
from terml.nodes import Tag, Term, coerceToTerm, TermMaker
from terml.parser import TermLParser, character, parseTerm
class TermMakerTests(unittest.TestCase):
def test_make(self):
m = TermMaker()
t1 = m.Foo(1, 'a', m.Baz())
... | [
"[email protected]"
] | |
90fb3d0f41e8ef893dcba8eb07565e63eab33256 | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/include_cache/=+home=+abel=+proyectos=+django=+ventas=+ventas=+settings.py | 8daa573333992dd219d46614e2d6841793e10cab | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | [{'word': 'ALLOWED_HOSTS', 'menu': '[I]', 'kind': 'v', 'abbr': 'ALLOWED_HOSTS = []'}, {'word': 'BASE_DIR', 'menu': '[I]', 'kind': 'v', 'abbr': 'BASE_DIR = os.path.dirname(os.path.dirname(__file__))'}, {'word': 'DATABASES', 'menu': '[I]', 'kind': 'v', 'abbr': 'DATABASES = {'}, {'word': 'DEBUG', 'menu': '[I]', 'kind': 'v... | [
"[email protected]"
] | |
e843c39e8e4989e30428e9ca261411b48af05bc5 | c0450361aa707635f5bf70eff21c1235d7e60cfa | /Lessons by HoudyHo/lesson (32).py | c992dd1dcb5591096afb4678ee5bf2a1ecc56285 | [] | no_license | zarkaltair/Learn-python | f48810b86e9832f4c364c345d1fa8624f9ced683 | dd6114b5bd6cc30eff328002521041dd2be2c3c5 | refs/heads/master | 2020-04-10T05:48:51.052751 | 2019-01-23T18:48:34 | 2019-01-23T18:48:34 | 160,837,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Class
class Cat:
def __init__(self, color, legs):
self.color = color
self.legs = legs
felix = Cat('ginger', 4)
print(felix.color)
rover = Cat('dog-colored', 4)
stumpy = Cat('brown', 3)
class Student:
def __init__(self, name):
self.name = name
test = Student('Bob')
print(test.name)
class Dog:
def __init__(s... | [
"[email protected]"
] | |
3e7b548f6b5cdbd48c47d9c85724e93cbb569120 | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /graphics/line/4/richard-zhan/main.py | 543aa01f31e1d50c82c08b4e4ca0d48c0b406554 | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from display import *
from draw import *
screen = new_screen()
color = [ 0, 255, 0 ]
matrix = []
#octant I
# add_edge(matrix, 0, 0, 0, XRES - 1, YRES - 75, 0 )
# add_edge(matrix, 0, 0, 0, XRES - 75, YRES - 1, 0 )
# add_edge(matrix, 0, YRES - 1, 0, XRES - 1, 75, 0 )
# add_edge(matrix, 0, YRES - 1, 0, XRES - 75, 0, 0 ... | [
"[email protected]"
] | |
08388f40f96262e48a825ed8578c70f7e147a701 | 66fe4dbcb81ceb688fa557c9a05a92779bd4e263 | /config/config.py | 97c447221012cfb133c0e71153480f5577f69a13 | [] | no_license | AdamEECS/sc | 5d3e98d697dd891dfdbae910d0167a0ce1082f19 | 387930acb7af4c04b39415e923639cad458fda09 | refs/heads/master | 2021-01-01T06:28:18.465633 | 2018-08-16T07:56:35 | 2018-08-16T07:56:35 | 97,430,842 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from pymongo import *
import os
config_dict = dict(
USER_AVATAR_DIR='static/user_avatar/',
PRODUCT_PIC_DIR='static/product_pic/',
UPLOAD_FILE_DIR='static/files/',
PRODUCT_PIC_EXT='png',
CDN_URL='http://opguqe876.bkt.clouddn.com/',
CDN_USER_AVATAR_DIR='/user_avatar/',
CDN_PRODUCT_PIC_DIR='/p... | [
"[email protected]"
] | |
beb5886b6bb03f8e0149d52f247c773ab8efa39e | 0789766b3f242835f3c4e03e573f4d2fa3ebbc5a | /my_nas/dataset/imagenet_downsample.py | c2d73f91310cc798966575e69aef00dd70867fed | [] | no_license | Anonymous-1112/anonymous | 05900a2a5feba3a48ad76847a22a8c3a3f35b2e1 | d86ec6b35b681c9220150c68bb5eb10af26f5629 | refs/heads/master | 2023-07-01T19:49:57.400134 | 2021-08-08T15:29:12 | 2021-08-08T15:36:56 | 393,964,141 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,872 | py | # -*- coding: utf-8 -*-
import os
import pickle
from PIL import Image
import numpy as np
from torchvision import transforms
from torchvision.datasets import vision
from my_nas.utils.torch_utils import Cutout
from my_nas.dataset.base import BaseDataset
class ImageNetDownsampleDataset(vision.VisionDataset):
train_... | [
"[email protected]"
] | |
54cdd7f5ce0fc2040583d0605b91c1bddb75daee | 68e0a967f52fd86e82f80dc4fd9198449f8f1030 | /doc/.src/book/scripts.py | 09eacba33e843d93599017499cf00bfdf3b8d05a | [] | no_license | htphuc/fdm-book | 4ac32a30506a83fd1ae35c2fe1934d194ea11686 | 07b15f987374b3e91d21ab14c06cfc0a79634936 | refs/heads/master | 2021-01-17T20:59:48.188917 | 2016-04-25T21:06:12 | 2016-04-25T21:06:12 | 57,400,233 | 1 | 0 | null | 2016-04-29T17:01:53 | 2016-04-29T17:01:52 | null | UTF-8 | Python | false | false | 5,340 | py | import sys, re, os, shutil, glob
chapters = "vib wave diffu trunc staggered softeng2 formulas advec".split()
chaptersdir = 'chapters'
ignored_files = '*.o *.so *.a *.pyc *.bak *.swp *~ .*~ *.old tmp* temp* .#* \\#* *.log *.dvi *.aux *.blg *.idx *.nav *.out *.toc *.snm *.vrb *.cproject *.project .DS_Store Trash'.split... | [
"[email protected]"
] | |
9569e88a4594523c588bf67478cf3e69e5fa07d3 | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /Tree/5176_이진탐색.py | 1d5de72b6fe0d9ddc3f43d237019f001829c7471 | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | T = int(input())
for tc in range(1, T+1):
N = int(input())
V = [0] * (N+1)
L = [0] * (N+1)
R = [0] * (N+1)
# 이진트리 구현
i = 1
while (i << 1) < N+1:
L[i] = i << 1
if (i << 1) + 1 < N+1:
R[i] = (i << 1) + 1
i += 1
| [
"[email protected]"
] | |
b92ace36f8eaa5fa5bd1a781ed1656742c2db3c5 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1111/17140.py | 524cee2fdd156023f681b4bf34cde15944c9a1c3 | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from collections import deque
from heapq import heappop, heappush
def rcal():
global y
ls = []
mx = 0
for i in range(x):
su = len(bd[i])
cnt = 0
for j in range(1,101):
if bd[i].count(j):
heappush(ls,[bd[i].count(j),j])
cnt += bd[i].c... | [
"[email protected]"
] | |
efa5c09e00baf175a267323493146e4a079511df | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/sctjas002/question4.py | e4b18527ed1d0802f17d9b728e65f1ab2eec2bbd | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import math
(fx)=input('Enter a function f(x):\n')
for y in range (10,-11,-1):
for x in range (-10,11):
if y==round((eval((fx)))):
print('o',end='')
elif y==0 and x==0:
print('+',end='')
elif y==0:
print('-',end='')
elif x==0:
print... | [
"[email protected]"
] | |
db99a7fae497a54bcf8582832888bcb9835fca74 | 30d1902232eb9ddb84fdf5404a3a1dfd6232406a | /wxpython/test/sxn.spec | 9fb6f075ebf9e03cbe029bbde4b5335d0aaab5e1 | [] | no_license | sxnys/mypython | c3a768b054077ed97ff1e2fac31cb93f0765deb3 | de48cd883ad2de3320cb0c6b46b451ebb2311ac7 | refs/heads/master | 2022-11-07T15:11:48.936412 | 2019-04-14T12:04:30 | 2019-04-14T12:04:30 | 119,686,106 | 0 | 1 | null | 2022-10-31T05:13:00 | 2018-01-31T12:46:06 | Python | UTF-8 | Python | false | false | 835 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['sxn.py'],
pathex=['F:\\Python\\wxpython\\test'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redire... | [
"[email protected]"
] | |
80d512046627f21ec6e5b8db3615ee5f70869009 | f3d40fcd992b38132ff9634d2b76988a99cefb3b | /pycoinnet/util/BlockChainStore.py | 86653b8c71a73bfe27c1a3f2bfbd1b35acc4ec52 | [
"MIT"
] | permissive | richardkiss/pycoinnet | b9b999dbf0401722e4550c5926197881e5b13102 | 57a7f439f0b4c9102cd25f95c0b7e4db00fe2f5b | refs/heads/master | 2022-04-27T19:15:39.098602 | 2021-12-25T23:26:24 | 2021-12-25T23:26:24 | 16,194,216 | 117 | 56 | MIT | 2021-12-25T23:26:24 | 2014-01-24T03:43:42 | Python | UTF-8 | Python | false | false | 2,040 | py | import logging
import os
class FakeHeader:
def __init__(self, h, previous_block_hash):
self.h = h
self.previous_block_hash = previous_block_hash
self.difficulty = 1
def hash(self):
return self.h
def __repr__(self):
return "%s (parent %s)" % (self.h, self.previous_... | [
"[email protected]"
] | |
308b6b16a55851f143ffb7afe1ce0b0fa3f85bf3 | e254c72d3fd11306c8625c5d8ad8ac394eabc6c6 | /06.scrapy/AppleDailySearchMongo/AppleDailySearch/settings.py | 68673e439c56176af474067092b73ea14f949c88 | [] | no_license | Edward83528/crawlerToMachinLearningAndBot | 87c7ea92779b949ad5015612a4e70275becab480 | 82818137b517f4c5a856535f83a8cb8b211da8aa | refs/heads/master | 2022-11-06T19:41:20.473933 | 2020-07-04T14:01:07 | 2020-07-04T14:01:07 | 268,072,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | # -*- coding: utf-8 -*-
# Scrapy settings for AppleDailySearch 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/... | [
"[email protected]"
] | |
4b05388caf49263247f5a9216da4d2033fdccc11 | c7f353cc14439fc47d351bd29258c9453cf16f32 | /h2o-py/tests/testdir_munging/pyunit_ischaracter_isnumeric.py | aa42b41611f89e9681ba6234c5bba7e04441ba66 | [
"Apache-2.0"
] | permissive | tamseo/h2o-3 | a131f40a0cd7f0c52d359b06b300f87d627cfd83 | cc59fa0d97325796c5a57085661cea7b34fa81e9 | refs/heads/master | 2020-12-11T09:27:54.589687 | 2015-10-19T21:56:12 | 2015-10-19T21:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import sys
sys.path.insert(1, "../../")
import h2o, tests
import random
def pyunit_ischaracter_isnumeric():
iris = h2o.import_file(tests.locate("smalldata/iris/iris.csv"))
assert iris[0].isnumeric(), "Expected the first column of iris to be numeric"
assert not iris[0].ischaracter(), "Expected the first co... | [
"[email protected]"
] | |
8dfe9a9df3bccbd5d817c8705b15fc06fd4569ce | ae06af824e864fab8d33f695ddb612e7867ab92f | /dashboard/dashboard/pinpoint/models/quest/read_value.py | be0fda52522ba5143cfe3a50720310b2db79bc77 | [
"BSD-3-Clause"
] | permissive | takingmynetback/catapult | 49402759c34dd07e424b47f4c9ec824dd1744526 | f718fb12b8cfd16b07509674747abf56cf330ac8 | refs/heads/master | 2020-03-10T18:46:57.367789 | 2018-04-13T14:20:21 | 2018-04-13T15:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,183 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
from dashboard.common import histogram_helpers
from dashboard.pinpoint.models.quest import execution
from dashboard.pinpoint.models.quest import... | [
"[email protected]"
] | |
00ee6e8b2941d6e3cd3d1713cf36490b5754624e | 28cab1ef484a5796fc9b0897043e918f9a28e650 | /account/urls/user.py | caca4ac46ecc06a22eb78a92276ad522c397c750 | [] | no_license | bxxfighting/dalangshen | 12cb58d2078804327dbf7a01be0fc2a0d27f4495 | e174147b8778c188941d5fd0f5e33de65afc8b00 | refs/heads/main | 2023-01-15T08:07:57.429342 | 2020-11-16T03:49:34 | 2020-11-16T03:49:34 | 313,184,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.urls import path
from account.apis import user as user_api
urlpatterns = [
path('user/login/', user_api.LoginApi.as_view()),
path('user/logout/', user_api.LogoutApi.as_view()),
path('user/', user_api.UserApi.as_view()),
path('user/current/', user_api.CurrentUserApi.as_view()),
path('u... | [
"[email protected]"
] | |
8b4246df4e9e8bb970c0809d972016ef7188b9f1 | b8d7c4e3476aae5c3bba7ffa28311f84fda5af9e | /main/apps/cart/views.py | 0c406e7f828ea18dc57dda560f00ccd7024a78e5 | [] | no_license | zhongzhiqiang/hotel-api | 1744b8ecb63c4626f7a90f6f04f073aab052b312 | 25703713d0e8ab2314e07e983b98506a3551e762 | refs/heads/master | 2020-03-26T08:53:06.776003 | 2019-01-20T09:23:39 | 2019-01-20T09:23:39 | 144,724,134 | 0 | 0 | null | 2018-10-12T13:29:20 | 2018-08-14T13:28:51 | Python | UTF-8 | Python | false | false | 2,081 | py | # coding:utf-8
# Time : 2018/10/15 下午10:47
# Author : Zhongzq
# Site :
# File : views.py
# Software: PyCharm
from __future__ import unicode_literals
from rest_framework import mixins, viewsets, status
from rest_framework.response import Response
from rest_framework.decorators import list_route
from main.ap... | [
"[email protected]"
] | |
de499b1d1ee6eebeb74c84cbf98ec9a1e9bfa0ad | 84bd24e7aba23c7775f52d51c754f14601e28b61 | /cars/migrations/0015_auto_20201222_0911.py | 53cd0970e12348b27aef4a29fb5a55ef15ccf7ed | [] | no_license | hamzaumar8/sandvet | c0ad473e8f2f97d1c5bf5104e034e731ac0a0add | 7f02d24f1b50cd4f64beff618b6d9c508b7a42d4 | refs/heads/master | 2023-02-18T01:28:25.252360 | 2021-01-18T19:26:39 | 2021-01-18T19:26:39 | 310,844,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Generated by Django 3.0.6 on 2020-12-22 01:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cars', '0014_auto_20201222_0911'),
]
operations = [
migrations.AlterField(
model_name='schoolim... | [
"[email protected]"
] | |
1cd7f7fe2262f547b545bce5583d232fd3056bcb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/prepositions/_beside.py | 412a30036868081724ff1297f7950ab0b9365210 | [
"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 | 425 | py |
#calss header
class _BESIDE():
def __init__(self,):
self.name = "BESIDE"
self.definitions = [u'at the side of, next to: ', u'compared to another person or thing: ', u'to be in no way connected to the subject that is being discussed: ']
self.parents = []
self.childen = []
self.properties = []
self.jsond... | [
"[email protected]"
] | |
a807a1a843bf88cf36512e099d3aaca3261e2f3e | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/main_20171106232335.py | 96c596fc3fcc185c546af76e74da5916cad83166 | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | # DADSA - Assignment 1
# Reece Benson
import random
from classes import Menu as Menu
from classes import Handler as Handler
class App():
# Define the variables we will be using
debug = True
handler = None
# Define all of the properties we will need to use
def __init__(self):
# Load our ha... | [
"[email protected]"
] | |
9bac4c8027b6b8102d2288a4ae7b4d617d5fded3 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/LongLivedChi0ToMuQQ_MSquark_1500_MChi_494_TuneZ2Star_8TeV_pythia6_cff.py | 969c146bfb5a013812585e4739862cc042491409 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 2,634 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
source = cms.Source("EmptySource")
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosit... | [
"[email protected]"
] | |
e64c699df93ca5619fa36bd10f267b0786259b19 | b6b28e1588050597366907223bfcb71464d76734 | /lr/minibatch_sgd/data_process/read_data.py | 8f8d526e7b6cb9a6d1cef6757b7a8cac94cc8fb5 | [
"MIT"
] | permissive | DiracSea/project-sxl | ea8af63643a2547493c32c83dc297180c072bd01 | f458bec818d55f80a5eda461316a22d843fef753 | refs/heads/master | 2020-03-10T04:08:42.466142 | 2018-05-20T05:03:13 | 2018-05-20T05:03:13 | 129,184,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | import numpy as np
import random
from .db import *
from .tool.combine import first_stack
from .tool.sperate import split_num
#all array
def read_rand_data(batchsize,table,db):#yield batch
rand = conn_rand(db,table,'112.74.45.185',3306,'root','opal123456!@#')###
counter = 0
size = 0
train_num, valid... | [
"[email protected]"
] | |
61b7547ed5510ee1d2ee0d78be17f4572f61d01e | 1d717c797e93b451f7da7c810a0fb4075b1050d5 | /src/preprocessors/naive_preprocessor.py | 246a888db14a6870701bf64b6726d191337ee985 | [] | no_license | jessie0624/nlp-task | 32338b08051a3ea192db2bf74c9c969bdff1f6ad | aaeeed86341356d9fd061664f6f7bccf2ac353d0 | refs/heads/master | 2023-01-24T12:06:13.323646 | 2020-12-10T08:38:23 | 2020-12-10T08:38:23 | 292,151,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | '''
@description: 最简单的预处理
'''
import pandas as pd
from tqdm import tqdm
from src.base import BasePreprocessor, units
from src.preprocessors import apply_on_df_columns
from src.tools.build_unit import build_vocab_unit, chain_transform
tqdm.pandas()
class NaivePreprocessor(BasePreprocessor):
"""Define Naive prepr... | [
"[email protected]"
] | |
0f88316bf11c35e936d8f86e044b31b12973dbe9 | 43f0c93802ef62c03388006cdae18c62de4d3295 | /setup.py | 524d362968902bc8a4e648bf8419ebe2c4b0c37a | [
"MIT"
] | permissive | pombredanne/qtstyles | e05f67f4d0f58284ae5b5c50909f23090f5bf278 | de962879e36be305572b0c5fb5c4ddcfeda5afe0 | refs/heads/master | 2020-04-27T00:58:55.044676 | 2018-10-20T05:19:33 | 2018-10-20T05:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from setuptools import setup, find_packages
setup(name="qtstyles",
version="0.0.2",
install_requires=[
"QtPy>=1.4.1"
],
description="A collection of Qt style sheets and helpful classes for applying them.",
long_description=open("README.md").read(),
# https://setuptools.... | [
"[email protected]"
] | |
cb448cc57982cd1d11cc353decfa6f00bac6d2d2 | 35e6605da2d105158d4ce3aa8230f650ba965651 | /v7/meta_template/meta_template.py | b1eb9b573778b911af44b802b56501e7968fc974 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later"
] | permissive | getnikola/plugins | 8a24d00d9ca17ef075c49925d9945b059eeed849 | 9de663884ba5f15153d37e527ade6f55e42661a3 | refs/heads/master | 2023-08-29T23:38:25.184763 | 2023-08-06T12:58:33 | 2023-08-06T12:58:33 | 13,049,233 | 62 | 104 | MIT | 2023-08-06T12:55:44 | 2013-09-23T22:50:59 | Python | UTF-8 | Python | false | false | 2,442 | py | # -*- coding: utf-8 -*-
# Copyright © 2016 Manuel Kaufmann
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, mod... | [
"[email protected]"
] | |
dff2c4c6b24ea68093845fe8c8cc96b6c0b00eb6 | 4f7962d02254ab6e5cf692648c933394ff41c79d | /component_sdk/python/tests/google/bigquery/test__query.py | 06d91a42747f7c24d3454014f3d87a395c35ebae | [
"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,545 | py | # 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 the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIE... | [
"[email protected]"
] | |
7ca9ac0a216728a647c1da58e0b311e1690ce6e1 | 922a4f63f71e8833ecb240387d675ddfddf13845 | /PythonProgrammingAssignmentsII/Q20.py | 042c6100010d3493d297cb3fed73f20a55511bfb | [] | no_license | asmitbhantana/Insight-Workshop | 0ed9e6de49dc15f0447166227f404f108ffaad2e | 54f9ce92fe47a01b08440d20aa850dfc97fa0423 | refs/heads/master | 2022-11-19T19:14:56.557014 | 2020-07-24T07:32:12 | 2020-07-24T07:32:12 | 275,709,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | """
20. Write a Python class to find the three elements that sum to zero
from a list of n real numbers.
Input array : [-25, -10, -7, -3, 2, 4, 8, 10]
Output : [[-10, 2, 8], [-7, -3, 10]]
"""
if __name__ == '__main__':
usr_list = [-25, -10, -7, -3, 2, 4, 8, 10]
required_result = 0
usr_list.sort()
require... | [
"[email protected]"
] | |
99cd86f3d8ff4704dcb4b37bf6424a04ccda5c61 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/4c0889e8fcee6c8be9fef33887480747c227725d-<cmd_build>-bug.py | 435761d91c7ec686f1c2a16c517b74393ddf97ed | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | def cmd_build(self):
result = dict(changed=False, actions=[])
if (not self.check_mode):
for service in self.project.get_services(self.services, include_deps=False):
if service.can_be_built():
self.log(('Building image for service %s' % service.name))
old_image... | [
"[email protected]"
] | |
b38b46fd26f5a49bcaa3e1b5de0b4f3f25a2e70a | d272b041f84bbd18fd65a48b42e0158ef6cceb20 | /catch/datasets/gyrovirus_gyv7-sf.py | 5cf9a7265da81fb03c45e238b7ce53b151c9e6c3 | [
"MIT"
] | permissive | jahanshah/catch | bbffeadd4113251cc2b2ec9893e3d014608896ce | 2fedca15f921116f580de8b2ae7ac9972932e59e | refs/heads/master | 2023-02-19T13:30:13.677960 | 2021-01-26T03:41:10 | 2021-01-26T03:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """Dataset with 'Gyrovirus GyV7-SF' sequences.
A dataset with 1 'Gyrovirus GyV7-SF' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
ds = GenomesDatasetSingleChrom(__name__, __file__, __spec__)
ds.add_fasta_path("data/g... | [
"[email protected]"
] | |
72c1be6bcfb8580304d1dc0d10de7f18699c9b28 | ec19603130dddeb4b8298ee020965030d66edc81 | /src/networkService/servicos/informacao/informacaoQt.py | 19fd21829654effa14a3be1fdce01111d7712a16 | [] | no_license | tassio/NetworkService | 9a5f08c0e3b92cbe34fc99c36e80f57fcbd258f0 | f800d48d8af94bf8d927fd440eab7a1c40296066 | refs/heads/master | 2016-09-09T23:33:14.584056 | 2012-12-13T15:06:24 | 2012-12-13T15:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #-*- coding: utf-8 -*-
from PyQt4.QtNetwork import QNetworkCacheMetaData, QHostAddress
from PyQt4.QtGui import QColor, QBrush, QCursor, QFont, QIcon, QImage, QKeySequence, QListWidgetItem, QMatrix, \
QPainterPath, QPen, QPicture, QPixmap, QPolygon, QPolygonF, QQuaternion, QRegion, QSizePolicy, QStandardItem, \... | [
"[email protected]"
] | |
129863d00cccb8a19b5adbe2d12eaf8deed86c74 | bebe65ae5ea5d15eca9a388ddf86ca5b352762a6 | /bin/bubbles | 5b12642f3e732cd6140f54e107df357d82c1eebb | [
"MIT",
"LicenseRef-scancode-saas-mit"
] | permissive | biswapanda/bubbles | f65aa11b129cf272be1205ef1fd8f885b215216d | 6c6bd7b378e53bc0edcbbb35c2211922e1cb2100 | refs/heads/master | 2021-01-17T19:16:58.100977 | 2013-12-08T21:31:21 | 2013-12-08T21:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,839 | #! /usr/bin/env python3
#
"""
Bubbles command line tool
For more information run: bubbles --help
Paths:
* /etc/bubbles:~/.bubbles:.bubbles
Config:
* config.ini
Author: Stefan Urbanek <[email protected]>
"""
import argparse
import json
import sys
import configparser
import os.path
import argparse... | [
"[email protected]"
] | ||
bc370ab02f4412d3115dff750ed79fd6ada8e58e | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch096/wiColorJ/Add2Loss/Sob_k25_s001_EroM_Mae_s001/pyr_Tcrop255_p20_j15/pyr_4s/L8/step10_a.py | 6e74bc48fa90b826fdfd8e45ba9c7b2b91a824a4 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270,666 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"[email protected]"
] | |
5a1ad840edc1d0ca68d0087d4ec58a1799c74647 | 6843258fe430c67ffa01e909d1650df390369d93 | /errata_tool/__init__.py | d0efa742971710c04b6bc0d10dfd7c1f99727682 | [
"MIT"
] | permissive | ralphbean/errata-tool | 86df0c5a5bdd65d62e01653f003ac2ecf3e2f092 | d7f999a34ef2780e5218b071a4cd99b35b8702de | refs/heads/master | 2021-05-15T05:34:04.761851 | 2017-11-18T03:59:38 | 2017-12-14T21:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from .exception import ErrataException
from .connector import ErrataConnector
from .erratum import Erratum
__all__ = ['ErrataException', 'ErrataConnector', 'Erratum']
__version__ = '1.9.0'
| [
"[email protected]"
] | |
735cbb7dfb9b821b50fe2b7be81fe9770ca3d8d1 | ef16d4d796588cbf0d5cb0f84727812e7866f92e | /myvenv/bin/symilar | e547e7e0d4da4224aa8441aff9d3b4c6c945a143 | [] | no_license | shortnd/django_blog | 5b24f4c40cd79181a946de6f7edecc9490279839 | aaa8c92e3281924b2e2ece54338899c0879ee7b2 | refs/heads/master | 2020-05-03T17:19:54.363860 | 2019-03-31T21:04:23 | 2019-03-31T21:04:23 | 178,742,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/kortr/code/python/djangogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"[email protected]"
] | ||
066a1c5df73dd3d29347781664c88fc58a2ca994 | 019c78e21f861b6a56800877082a9c155dd8fb5f | /niveau-02/chapitre-4-fonctions/02-deux-codes-secrets-obligatoire.py | f63d0032b5d7f7e7b581e0a0a96d1af4008a9cd2 | [] | no_license | donnerc/oci-prog-exos | 0c0bd50a93896826251e343baa9836e6d09fc9fd | de5da49fb8a3df56ef12c4f9ea284d476e999434 | refs/heads/master | 2021-01-23T13:16:59.304820 | 2015-01-13T15:57:22 | 2015-01-13T15:57:22 | 13,173,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
##################################
# fichier 02-deux-codes-secrets-obligatoire.py
# nom de l'exercice : Deux codes secrets
# url : http://www.france-ioi.org/algo/task.php?idChapter=509&idTask=0&sTab=task&iOrder=3
# type : obligatoire
#
# Chapitre : chapitre-4-fonctions
#
# Compétence développée :
#
# auteur :
######... | [
"[email protected]"
] | |
a538af6a464fa56591c72692d25ab74aa2ef4463 | 7857b4f02001c3e0ac0317fa501a4bacc8ea335b | /logic_tutorial.py | 20c0ea7cc1dc5ceb8e4405692f0ade77a4859382 | [
"MIT"
] | permissive | twtrubiks/leetcode-python | 65a2035fe2c9e4a65b09f5d65df7b24be385d6fc | e46b32f6de4c0711ef44b7f2a482dc59657aa5e5 | refs/heads/master | 2022-01-12T01:34:50.628413 | 2022-01-10T06:30:21 | 2022-01-10T06:30:21 | 55,111,802 | 25 | 18 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
def trunk_1(arr_1, size_1):
result_1 = []
while arr:
pop_data = [arr_1.pop(0) for _ in range(size_1)]
result_1.append(pop_data)
return result_1
def trunk_2(arr_2, size_2):
arrs = []
while len(arr_2) > size_2:
pice = arr_2[:size_2]
arrs.append(pice)
arr_2 = ... | [
"[email protected]"
] | |
8a3de5ed32f6755687dc77858aa6898715c57094 | 4cca59f941adce8a2d71c00c0be5c06857f88dcc | /snisi_epidemiology/migrations/0002_auto_20141008_1439.py | 4dd9a51d66cf927b3667f0698d7d55c83299de1f | [
"MIT"
] | permissive | brahimmade/snisi | 7e4ce8e35150f601dd7b800bc422edec2d13063d | b4d0292b3314023ec9c984b776eaa63a0a0a266f | refs/heads/master | 2023-05-07T19:04:04.895987 | 2017-12-29T18:58:22 | 2017-12-29T18:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,137 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('snisi_epidemiology', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='aggepidemiologyr',
... | [
"[email protected]"
] | |
af30001153143516bb60447c5a6baee10e8ce452 | 8d3713030d02e34eb37b149d0bc2a8fd25fec7f7 | /problem111.py | d028894946ae341863fed4e2ca6ad0ba8893cf7f | [] | no_license | GlenHaber/euler | cd3a34550a0c6189a17fbc26991393ee6a4ab8d6 | cb3259f375c1f21af7daf79ab19532518765bbc8 | refs/heads/master | 2021-01-19T13:06:52.579227 | 2017-06-09T21:07:33 | 2017-06-09T21:07:33 | 100,825,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | """
Primes with runs
Considering 4-digit primes containing repeated digits it is clear that they cannot all be the same: 1111 is divisible by
11, 2222 is divisible by 22, and so on. But there are nine 4-digit primes containing three ones:
1117, 1151, 1171, 1181, 1511, 1811, 2111, 4111, 8111
We shall say that M(n... | [
"[email protected]"
] | |
cbb1fc6301940401b020a676152a2dd636acf9ef | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0074_auto_20210227_1830.py | 129e1c19b1364390a394fc2a8aa7265a96484ea8 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.7 on 2021-02-27 18:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0073_auto_20210227_1819'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"[email protected]"
] | |
f03af2a7915d3835033777ee323af7c7ddf60627 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03049/s862641058.py | d26e8c01dc0350e1428c4fbcbbbc4791d8acc382 | [] | 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 | 233 | py | n,*s=open(0).read().split()
a=0;b=0;ba=0;ans=0
for s_i in s:
b+=(s_i[0]=='B')*(not s_i[-1]=='A')
a+=(not s_i[0]=='B')*(s_i[-1]=='A')
ba+=(s_i[0]=='B')*(s_i[-1]=='A')
ans+=s_i.count('AB')
print(ans+ba+min(a,b)-(ba>0)*(a+b==0)) | [
"[email protected]"
] | |
ccadf51ea06ea13387ab2c4085caaed98e426aaf | 525f5ba86e1476d5f0dc396e225d544beb43cd3b | /nomenklatura/query/builder.py | 65e44f59be0c769551f83140ad62fed9b1e909cb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | he0x/nomenklatura | bb47cd9103b03893832b4bda4bd69cba80473976 | b2e0a989de7aa4a08a63e22982c4904b255dc04a | refs/heads/master | 2021-01-15T08:18:29.257815 | 2015-03-28T20:15:52 | 2015-03-28T20:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,177 | py | from sqlalchemy.orm import aliased
from nomenklatura.core import db, url_for
from nomenklatura.schema import attributes
from nomenklatura.model.statement import Statement
from nomenklatura.model.context import Context
# from nomenklatura.model.type import Type
class QueryBuilder(object):
def __init__(self, data... | [
"[email protected]"
] | |
8358602e69b3372bacd7a45ddadd7849c1ccf792 | 650b3dd4cc74f32db78f7d99cef9907aec78a222 | /dialogs/Report/fPettyCashReport_data.py | d224b848def8260b8a4ae4863468aef52b0886ab | [] | no_license | mech4/PKTrx | 29b871ab587434e7c208175c248f48d9b6c80a17 | cf01bc5be8837d632974786d2419c58b94a0381d | refs/heads/master | 2020-03-29T19:55:07.331831 | 2012-09-18T20:22:52 | 2012-09-18T20:22:52 | 6,289,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
import sys
def CetakData(config,parameters,returns):
ret = returns.CreateValues(
['IsErr', 0],
['ErrMessage','']
)
try:
except:
ret.IsErr = 1
ret.ErrMessage = str(sys.exc_info()[1])
| [
"[email protected]"
] | |
e82dcd7e2c42de6224abe59e0b0800eb2ca85e3e | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/export_asset_response.py | 105871097c009b0aa7c5f4c4354c87308f05e410 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,344 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExportAssetResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the val... | [
"[email protected]"
] | |
4ec02b40b4eaef9cd000b9f4fed6b0c691c3f47d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21454.py | 45e7d2122ab9b2a6b0f3906d21dcb18297aff031 | [] | 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 | 159 | py | # Updating collections from collections
db.Coll2.find().forEach(function(c2){
db.Coll1.update({isbn:c2.isbn},{$set: {category:c2.category}},{multi:true})
});
| [
"[email protected]"
] | |
151f8401dd23cc073bf7bb3fbb5cbf94fb035bc6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_greyhounds.py | b30dc2d9386d20b4a85bd14ebe73422e2417bc96 | [
"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 | 259 | py |
from xai.brain.wordbase.nouns._greyhound import _GREYHOUND
#calss header
class _GREYHOUNDS(_GREYHOUND, ):
def __init__(self,):
_GREYHOUND.__init__(self)
self.name = "GREYHOUNDS"
self.specie = 'nouns'
self.basic = "greyhound"
self.jsondata = {}
| [
"[email protected]"
] | |
dfabfbb7eef76a04289682868648631a818c208c | 198ac210d70c865367fb73fb3c8f99b06cdd91d0 | /tests/integration/steam_simulator.py | 82382ec24aaef6653b83a506c43439f19fc0d0c8 | [
"BSD-3-Clause"
] | permissive | gutomaia/steamer-py | 0f2bc6a81bfab6986470b03b370ccf53941432ff | 7175fb1d79fe6ffc0c31b3e74f62805629e457b2 | refs/heads/master | 2021-01-10T19:30:50.429652 | 2013-04-29T13:38:30 | 2013-04-29T13:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import threading
from time import sleep
import web
import requests
urls = (
'/id/(\w+)/stats/(\w+)', 'game_page'
)
class game_page(object):
def GET(self, user, game):
f = open('fixtures/%s-%s.xml' % (user, game))
xml = f.read()
f.close()
web.header('Content-Length', len(xml))... | [
"[email protected]"
] | |
6d72629e2166ef7142a7423e4d47ebcc5b93f571 | 869b8c7a526ebfbe6b55832ce9f081cd0218a4f5 | /onconet/models/spatial_transformers/factory.py | 0ad65b9657f472eb0d7eaebe27c8ff71d8b3ee59 | [
"MIT"
] | permissive | yala/Mirai | 54d1ab1496d35c05553cfe1c255e7c3012462ce4 | 12bace8fd6ce9c5bb129fd0d30a46a00a2f7b054 | refs/heads/master | 2023-04-29T11:12:28.853712 | 2023-02-24T21:28:20 | 2023-02-24T21:28:20 | 315,745,008 | 66 | 23 | MIT | 2022-02-07T20:49:05 | 2020-11-24T20:29:22 | Python | UTF-8 | Python | false | false | 688 | py | SPATIAL_TRANSFORMER_REGISTRY = {}
NO_SPATIAL_TRANSFORMER_ERR = 'Pool {} not in SPATIAL_TRANSFORMER! Available spatial transformers are {}'
def RegisterSpatialTransformer(st_name):
"""Registers a pool."""
def decorator(f):
SPATIAL_TRANSFORMER_REGISTRY[st_name] = f
return f
return decorato... | [
"[email protected]"
] | |
0331644aa9c6ce4d3b15eb5d286fa083f49458af | 4723d9818d8b52bcfa2315a59ceb4acf1731b761 | /pysgg/engine/inference.py | 7b71c8bd65ef28cc62751bb7f02222daf39f8a96 | [
"MIT",
"Python-2.0"
] | permissive | rafa-cxg/PySGG | fe8b34157438d73e7a91a846a3428f411a9b2535 | 5b758cd811e81cd47781fb4028011a012d91fcff | refs/heads/main | 2023-08-30T09:22:04.937170 | 2021-10-29T02:31:41 | 2021-10-29T02:31:41 | 425,873,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,090 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import logging
import os
import torch
from tqdm import tqdm
from pysgg.config import cfg
from pysgg.data.datasets.evaluation import evaluate
from .bbox_aug import im_detect_bbox_aug
from ..utils.comm import all_gather
from ..utils.comm import is_... | [
"[email protected]"
] | |
c8db93ac8b84069eaa3db4066fd55c60f660c841 | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/gluon/contrib/generics.py | abaa95f64160cec56f5ab445a32e92a16a8ff4fd | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 2,528 | py | # fix response
import os
from gluon import current, HTTP
from gluon.html import markmin_serializer, TAG, HTML, BODY, UL, XML, H1
from gluon.contrib.fpdf import FPDF, HTMLMixin
from gluon.sanitizer import sanitize
from gluon.contrib.markmin.markmin2latex import markmin2latex
from gluon.contrib.markmin.markmin2pdf impor... | [
"[email protected]"
] | |
b3b956cf8f2482a45cd555f202e06a02b98b7d41 | 5f61724fc5cad3f82094a681c853cc9f0337f050 | /test/test_section.py | 41d67a7de2c3641cf36ab6ae71a3a5eccb98bd42 | [
"Apache-2.0"
] | permissive | barseghyanartur/odfdo | 2cecbbbb33f23d5ed0ba80cb9208a8e7857b93a0 | e628a9e9daa40319a777d216ec7ebca4057b3344 | refs/heads/master | 2022-11-17T15:43:15.662484 | 2020-06-27T00:41:38 | 2020-06-28T22:53:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | #!/usr/bin/env python
# Copyright 2018 Jérôme Dumonteil
# Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend.
#
# 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.apach... | [
"[email protected]"
] | |
df94816cf1d341645c00813001ccbbdc695412c4 | a363b1ad911b8c989e578b5a4a412c1dd615cc39 | /toontown/building/ToonInteriorColors.py | 56f103d58606c8a93f75fab6679a53c759bd7641 | [
"Apache-2.0"
] | permissive | OSToontown/Project-Altis-Alpha | 2999e944c44e0409cb19e277da61807bfa871e86 | 3a542b5d19784e9c4a5b893e88617e5280b213dd | refs/heads/master | 2023-06-26T12:12:35.073103 | 2021-07-24T17:20:43 | 2021-07-24T17:20:43 | 248,406,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | from toontown.toonbase.ToontownGlobals import *
wainscottingBase = [Vec4(0.8, 0.5, 0.3, 1.0), Vec4(0.699, 0.586, 0.473, 1.0), Vec4(0.473, 0.699, 0.488, 1.0)]
wallpaperBase = [Vec4(1.0, 1.0, 0.7, 1.0),
Vec4(0.8, 1.0, 0.7, 1.0),
Vec4(0.4, 0.5, 0.4, 1.0),
Vec4(0.5, 0.7, 0.6, 1.0)]
wallpaperBorderBase = [Vec4(1.0, 1.0,... | [
"[email protected]"
] | |
13e109703253a9f3a1da4c8dd08d3e4292e6bbd9 | cfb76fefdf3d991ca516d10ee04afda061fd9b7f | /tests/test_pcolormesh.py | 5363db32fb91669dcb3d1c11edbb4d67b15e1858 | [
"MIT"
] | permissive | chebee7i/prettyplotlib | 77d7fd3941877d694b4237850cfa75605a2954d7 | 68841f0156e29eec4fc76c53407e67206287b861 | refs/heads/master | 2021-01-20T23:11:57.745272 | 2013-10-06T20:04:12 | 2013-10-06T20:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | __author__ = 'olga'
from matplotlib.testing.decorators import image_comparison
import prettyplotlib as ppl
from prettyplotlib import plt
import numpy as np
import os
import string
from prettyplotlib import brewer2mpl
from matplotlib.colors import LogNorm
@image_comparison(baseline_images=['pcolormesh'], extensions=['... | [
"[email protected]"
] | |
a32e00000f109f3f2e8079952c3278071e27cf0f | 00c7bd96f1afab807746f1f7f013d4aadc5f6a6e | /sakura/common/types.py | 32cb4d9e52fd22a39835c2c8c60f49825f3f0bb7 | [] | no_license | sakura-team/sakura | 350ae27bdf5c3e7c338c04ec33fb50f4cdc7bfb4 | 306bfe82ffd6b204b0b574bb7f75b35712a3202f | refs/heads/master | 2021-06-02T01:30:14.294572 | 2021-03-04T10:16:44 | 2021-03-04T10:16:44 | 61,307,818 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import numpy as np
from sakura.common.errors import APIRequestError
# Strings whose length is known to be lower than NUMPY_EMBEDDED_STR_MAX_LEN
# will be encoded directly in numpy arrays.
# Others will be saved as an object pointer in numpy arrays.
NUMPY_EMBEDDED_STR_MAX_LEN = 16
SAKURA_INTEGER_TYPES = ('int8', 'int16... | [
"[email protected]"
] | |
614462b6940c9c08b08c24650c5683c4986c8d17 | 42d58b23f446a48907d965794a2ae1dc4ad751ab | /347. Top K Frequent Elements.py | 4d70eebffd7020a5f6c65cb4f2b11935dad21ace | [] | no_license | AsadullahFarooqi/LeetCode | fabec1cad1781d0300cec2931545b92dd1390900 | aecc4efe8e0561aa4dd8a8b7f755c19982c6c2ef | refs/heads/master | 2022-11-03T08:01:47.656348 | 2022-10-11T06:19:56 | 2022-10-11T06:19:56 | 187,672,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """
Given a non-empty array of integers, return the k most frequent elements.
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1,2]
Example 2:
Input: nums = [1], k = 1
Output: [1]
Note:
You may assume k is always valid, 1 ≤ k ≤ number of unique elements.
Your algorithm's time complexit... | [
"[email protected]"
] | |
5980dfe80dbe7976918aa72251a6196f00d24561 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/329/88113/submittedfiles/exe11.py | fcae8958e71f64e9a6bacbbd05f96f381947b027 | [] | 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 | 479 | py | # -*- coding: utf-8 -*-
n = int(input("digite um numero com 8 algarismos: "))
soma = 0
while n < 100000000:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d' % soma)
while n > 999999999:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d... | [
"[email protected]"
] | |
38df09d7f8f9529aecc3adc8d1a17a4cdafadc24 | 25e7d840203e705c6a68aed079cc9844954b9536 | /torch/_dynamo/variables/builtin.py | 111d5415c77602d9e98273b3bb9af90d2ad46f9e | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yf225/pytorch | 874892cd9d0f7bb748e469cfca23a3f503ea4265 | 39590d06c563d830d02b9f94611ab01f07133c97 | refs/heads/main | 2023-07-24T06:17:16.324006 | 2023-04-24T18:22:54 | 2023-04-24T18:22:59 | 113,096,813 | 1 | 3 | NOASSERTION | 2023-08-29T18:46:16 | 2017-12-04T21:25:08 | Python | UTF-8 | Python | false | false | 48,433 | py | import functools
import inspect
import itertools
import logging
import math
import operator
import types
from typing import Dict, List
import torch
from torch import sym_float, sym_int
from .. import config, variables
from ..allowed_functions import is_allowed
from ..exc import unimplemented, Unsupported, UserError, ... | [
"[email protected]"
] | |
5300271b0b676978f2319aff708095962e6f6c52 | 49cc32d5859e9002cb4b94ade25d72f5f4fe1612 | /CLASE5_PYTHON_UMAKER/codigo5.py | 52b8bdabb03966ebe2a3f86723ba2f2f85b85de5 | [] | no_license | jorgepdsML/DIGITAL-IMAGE-PROCESSING-PYTHON | c8441215b4cf9e912dad1885a82058c1b0bbb872 | 781c8c6d583aebda6381a301cdc33ad4d09f20c5 | refs/heads/master | 2021-06-26T00:06:44.344201 | 2021-01-21T17:41:36 | 2021-01-21T17:41:36 | 194,336,928 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class point():
def __init__(self,a,b):
self.x=a
self.y=b
def coordenada(self):
print(self.x,self.y)
def __add__(self, other):
x=self.x+other.x
y=self.y+other.y
return (x,y)
def __call__(self,*args):
suma=0
for val in args:
... | [
"[email protected]"
] | |
242923c5197a8ee760b120a5605b8afca943eab0 | f99cca94f74c69bc518e298c14140534e18eabd3 | /OrcLib/Test/TestNet.py | 07cd62a60036cd81afff87edaf6b1fcf167c81cd | [] | no_license | pubselenium/OrcTestToolsKit | d6d838d9937d2c4d86941e317cb3ff096b58e52d | f3ccbbceaed4f4996f6907a2f4880c2fd3f82bbb | refs/heads/master | 2021-04-29T05:15:53.240714 | 2016-12-30T09:42:53 | 2016-12-30T09:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | import unittest
from OrcLib.LibTest import OrcTest
from OrcLib import init_log
from OrcLib.LibNet import OrcParameter
class TestOrcParameter(unittest.TestCase):
def test_send_para(self):
"""
Test get exist option
"""
OrcTest.test_print_begin()
init_log()
_para_01... | [
"[email protected]"
] | |
396b07af836678cbf34f87d2c44a64e0513292ea | 98cd5ddf45a73aea64bbfac0c0104829d7231b81 | /T - Image + Hexagon/main.py | 4a4ad6510a74b8e54b6218bb846ee6c486774044 | [] | no_license | atheis4/ETC_Modes_Extra | 42508d523cfe632a3335e29f6e1e40af91df231b | d0ce221562105382a7a73cc6d280f4ad0eabf6f3 | refs/heads/master | 2022-04-04T11:15:07.335910 | 2020-01-03T20:27:32 | 2020-01-03T20:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | import os
import pygame
import time
import random
import glob
import pygame.gfxdraw
images = []
image_index = 0
image_x=100
image_y=100
image_size_x=100
image_size_y=100
border_x = 1
border_y = 1
square_start_x = 1
square_start_y = 1
square_end_x = 1
square_end_y = 1
square_size = 50
trigger = False
def set... | [
"[email protected]"
] | |
968a736930a6730a0b2049734b9b83b6de0fac28 | 9a0e25591deef948bd5957ac79131bc01594b0bb | /users/urls/urls.py | 5dcecf097a0cfcdd74dcdd19e0bb389c5cd3a355 | [] | no_license | ursusma/HiCommunity | ad31342d6f5ee0bc28899dc1cb199fbe1085e554 | 81e2340264cce983b889dacdb01bbeeb2cb67f21 | refs/heads/master | 2021-07-25T10:58:04.239531 | 2017-10-26T14:17:05 | 2017-10-26T14:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | # coding=utf-8
from django.conf.urls import url
from users import views
urlpatterns = [
]
| [
"[email protected]"
] | |
a971057d036c9e02983eea09d044b3cc1531cccc | 526bf18a8695862067c817f432ab197ceb645f39 | /migrations/versions/9e01343b62ef_cars_added_fields.py | 4721e5e3683b75236d82cd6644df0c3fd3d99c76 | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | """cars added fields
Revision ID: 9e01343b62ef
Revises: 172fb3a90b3b
Create Date: 2020-10-19 07:41:26.893114
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9e01343b62ef'
down_revision = '172fb3a90b3b'
branch_labels = None
depends_on = None
def upgrade():
... | [
"[email protected]"
] | |
9d3fb5e9f0d13d0dac39ac54ebcd262cccdd485c | 5219ea9d40a5e6187fc047d0e463ecca47654f72 | /project_name/urls.py | baecf57ddd274ae81eaeab21df6fd7ecd4c440b1 | [] | no_license | wo0dyn/django-project-template | b5bb7ffec3a0ecd90df34fc60b6c13422e7f9de1 | 68a0eec61a09486b662cbdf72b13cd5c7b476810 | refs/heads/master | 2021-01-17T07:24:24.012032 | 2013-06-07T08:22:49 | 2013-06-07T08:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse, HttpResponsePermanentRedirect
from ratelimitbackend import admin
admin.autodiscover()... | [
"[email protected]"
] | |
d308e86366cb8b7a3aace35c26d3ce733fd7b08a | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day08-接口-网络/self/网络编程/06-模拟ssh-加上报头/服务端.py | c4da2e73dc660420a2babf440c3e5581b3ee967d | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | ####建立连接
import socket
import struct
import subprocess
phone=socket.socket(socket.AF_INET,socket.SOCK_STREAM)###tcp
phone.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) ###复用
phone.bind(('127.0.0.1',8080))
phone.listen(5)
print('server start...')
while True: ###连接循环
conn,client_addr=phone.accept()
print(... | [
"[email protected]"
] | |
0de2e57e651606fa39a419b990f8d4e0e9f98820 | afd74aa3e8c847d557828115f48f60f696fdfe95 | /C38/validate_getattribute.py | 9e557d5b18eea803ad61c04b81201237089827d8 | [
"MIT"
] | permissive | BetTom/learningpython | f1b957607f92b4acf66aba1d22090f519824822a | 47e78041e519ecd2e00de1b32f6416b56ce2616c | refs/heads/master | 2021-10-11T09:45:40.608420 | 2019-01-24T09:44:05 | 2019-01-24T09:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | class CardHolder(object):
acctlen = 8
retireage = 59.5
def __init__(self, acct, name, age, addr):
self.acct = acct
self.name = name
self.age = age
self.addr = addr
def __getattribute__(self, name):
superget = object.__getattribute__
if name == 'acct':
... | [
"[email protected]"
] | |
9f2a946202864a07e3ec0b8b972e50a4b51e4222 | 1803b6d5b6cd28f6719c2584f28d581811526d26 | /p57_longerthan_specified.py | 81fde2b4965d7b30b5967916920792216a7137a5 | [] | no_license | augustedupin123/python_practice | 0ee2ebd30810f8df82d9e26b8d52328d052e1a5e | 5ba1f9e4598d1eaa7f5f6f36efb5f96ca4be18a0 | refs/heads/master | 2022-12-08T06:15:48.808986 | 2020-08-31T19:16:15 | 2020-08-31T19:16:15 | 266,285,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #Write a python program to find the list of words that are longer
#than n from a given list of words.
def list_of_words(l,n):
listreq = []
l1 = l.split()
for i in l1:
if len(i)>n:
listreq.append(i)
return listreq
a = input('enter the list')
n1 = int(input('enter n'))
print (list_of... | [
"[email protected]"
] | |
82f465c11b316b7121d832c85659e050bd9a19b4 | 978c9a1dd27a30b32eceed7f1518a26292695891 | /python/2021/codewars/calculateinversions.py | 513e292b0b59d1a782154f9bfaeb3538c3fe3baa | [] | no_license | detcitty/100DaysOfCode | 4da3407bdc4170f9d042f49e6c94a8469f8808f5 | a3d989ea56491f89ece5191d5246166ca01d2602 | refs/heads/master | 2023-08-09T04:45:51.842305 | 2023-07-21T17:02:08 | 2023-07-21T17:02:08 | 178,976,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # https://www.codewars.com/kata/537529f42993de0e0b00181f/train/python
from itertools import combinations
def count_inversions(array):
locations = []
for count, value in enumerate(array):
idx = value - 1
diff = idx - count
locations.append(diff)
list_combos = list(combinations(array... | [
"[email protected]"
] | |
eb96d7ba59e15da0b0f51e76d65639b8b35c5cc1 | 1d277498f96998cbbdc475db17191b7d6dc371ab | /rap/management/commands/play.py | 24ebadfb8155bc29f96f1cdd8ee0b3cd3017fe27 | [] | no_license | everythingability/rap | cfaccfbac75b7ff2522fc9bc7debb0fd3eec3559 | 44e550f1ca0ef68c1277d9904bd546c52d51a3e5 | refs/heads/master | 2022-12-09T07:52:27.961493 | 2020-03-18T19:11:23 | 2020-03-18T19:11:23 | 248,318,782 | 0 | 0 | null | 2022-12-08T03:50:01 | 2020-03-18T19:02:14 | Python | UTF-8 | Python | false | false | 2,544 | py | from django.core.management.base import BaseCommand, CommandError
from rap.models import Project, GTRCategory, HECategory, HEResearchArea, Person, Organisation
import os, sys
import csv, json
cats =["Archaeological Theory",
"Archaeology Of Human Origins",
"Archaeology of Literate Soc.",
"Architecture HTP",
"Environmen... | [
"="
] | = |
958fc768494ec3c7056fc6c7e6555e4a4a2b2dd8 | 34a633e2d60c5adf0e9f420bcc9587ac66b6766b | /kats/tests/models/test_stlf_model.py | ffe21a735545d553826036ca2afecdb1086247f7 | [
"MIT"
] | permissive | kpbMarques/Kats | 5cdd7ac61e23218cb5588ef775ca194224abe739 | 259fdf8f80f628b44f9ee8881f112b1e9fd7a85f | refs/heads/master | 2023-07-02T15:55:30.915358 | 2021-08-10T19:47:44 | 2021-08-10T19:49:02 | 394,783,804 | 1 | 0 | MIT | 2021-08-10T21:19:45 | 2021-08-10T21:19:45 | null | UTF-8 | Python | false | false | 2,529 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import unittest
from unittest import TestCase
import pkgutil
import io
import pandas as pd
from kats.consts import TimeSeriesData
fro... | [
"[email protected]"
] | |
0ecab6beb8846f90119b772c94a608c39ed4b8ea | f0417264adb22d064b0b83b5a24ae33208c0a62b | /H2TauTau/scripts/harvest_old.py | e4891de4db0866345f1c6c3f5b38d618c20264e6 | [] | no_license | cbernet/cmgtools-lite | 6ae1a0bfc45ff03b14195ab0f05b353ffde9cd2e | 359209cd4f982cd1b9d8e3cb366de32b7b46113d | refs/heads/htt_9_4_11_cand1_v1 | 2021-01-18T15:56:14.845371 | 2019-10-24T14:00:32 | 2019-10-24T14:00:32 | 86,693,438 | 1 | 0 | null | 2019-06-07T09:04:05 | 2017-03-30T11:09:21 | Python | UTF-8 | Python | false | false | 382 | py | #!/usr/bin/env python
from CMGTools.H2TauTau.harvest.harvest_old import harvest, get_options
if __name__ == '__main__':
options, args = get_options()
src = args[0]
harvest(src,
subdir_pattern=options.subdir_pattern,
tgz_pattern=options.tgz_pattern,
apply_ff=options.... | [
"[email protected]"
] | |
489a78e8ffb4d1cf110c0af54cad92b01c4d83b7 | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /9. Generic Trees/take input Tree .py | 035d0395b6c16a2194ca74782181cd193b973a60 | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py |
class TreeNode:
def __init__(self,data):
self.data = data
self.children = list()
def printTreeDetailed(root):
if root is None:
return
print(root.data,end=':')
for child in root.children:
if child != None:
print(child.data,end=',')
print(... | [
"[email protected]"
] | |
bbbb98922649b61e90795c6fd283613ad91677fd | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayTransferThirdpartyBillCreateResponse.py | 5eec748f112c295bae2984605e0dddffe8587281 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,301 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayTransferThirdpartyBillCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayTransferThirdpartyBillCreateResponse, self).__init__()
self._order_id = No... | [
"[email protected]"
] | |
db8858d3d0b03c9346f4b028be2f3a4fc6c900e7 | 37db56765276c0835a2c7e3955c412ce204836c1 | /1732.py | a3221be6890f5768a8a8d1a01f9b713a2f3c54bd | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | class Solution:
def largestAltitude(self, gain: List[int]) -> int:
curHeight = 0
maxHeight = 0
for g in gain:
curHeight += g
maxHeight = max(maxHeight, curHeight)
return maxHeight | [
"[email protected]"
] | |
4c2f052e47f331249f8d010f61215fab0048cba4 | 4f2f71beee2fb016550598996e100ce176100dcb | /python/etl/etl.py | 9bbd5ca4f54b1b3e9ae65cbba66894797f2bf174 | [] | no_license | charles-wangkai/exercism | d2723bd160573b2d3ee9051ff63972e5be900d87 | c283a5078e3d0f05ff3d86b2c208ae086d3896a4 | refs/heads/master | 2023-05-11T13:11:23.776323 | 2023-04-30T17:40:56 | 2023-04-30T17:40:56 | 102,832,444 | 2 | 4 | null | 2020-03-14T15:49:13 | 2017-09-08T07:31:36 | C++ | UTF-8 | Python | false | false | 151 | py | def transform(legacy_data):
return {letter.lower(): score
for score, letters in legacy_data.items()
for letter in letters}
| [
"[email protected]"
] | |
69c092950f4db463506ab6a6d11d94f52f9e0535 | c5f7019c52cd91a3d9505943b9d866539f2fb0bc | /synapse/models/transport.py | 189fc28633f8945726bba6d076022c1b92bc10b3 | [
"Apache-2.0"
] | permissive | vertexproject/synapse | ce31699fcb10cb2c870d448915f4d4524247e2d0 | 1808dff78921b4bfdb451a12ee5d03427a5295b9 | refs/heads/master | 2023-09-03T23:48:26.584015 | 2023-08-31T20:34:35 | 2023-08-31T20:34:35 | 37,228,107 | 307 | 63 | Apache-2.0 | 2023-09-14T21:53:32 | 2015-06-10T23:29:41 | Python | UTF-8 | Python | false | false | 15,787 | py | import synapse.lib.module as s_module
class TransportModule(s_module.CoreModule):
def getModelDefs(self):
modl = {
'types': (
('transport:direction', ('hugenum', {'modulo': 360}), {
'doc': 'A direction measured in degrees with 0.0 being true North.'}),
... | [
"[email protected]"
] | |
cc5b182b31c15e0834f851a86264418069dace1b | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/refinement/tst_occupancy_selections.py | 00e45d369bbd20f50d9ca7e271fc4920cf51cc44 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 67,722 | py | from __future__ import absolute_import, division, print_function
from mmtbx.monomer_library import pdb_interpretation
from mmtbx.refinement.occupancies import occupancy_selections
from mmtbx.command_line import fmodel
import mmtbx.model
from iotbx import file_reader
import iotbx.pdb
import iotbx.phil
from libtbx.test_u... | [
"[email protected]"
] | |
35488866c24bd360ea370d1014afbe7e4ed4e555 | b33d1d4b74d375a2050baf80cda5b8571aff7462 | /s14/day01/homework2.py | 1a595d08faafbc21bfeba3287a464e606179d299 | [] | no_license | sunwang33/code | e979e1b11209200fba07a99d926d76f09c83b514 | 377f3e919555bf0f02ef56c9395d57992c84fcfd | refs/heads/master | 2021-01-16T18:10:08.358744 | 2018-01-01T02:58:43 | 2018-01-01T02:58:43 | 100,045,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Author:Sun Wang
menu = {
'北京':{
'海淀':{
'五道口':{
'soho':{},
'网易':{},
'google':{}
},
'中关村':{
'爱奇艺':{},
'汽车之家':{},
'youku':{},
},
'上地':{
'... | [
"[email protected]"
] | |
783c3f96c270a8323efbe58ab9ad72e3ffc8e029 | 1c6a7125c8ea024050045fb18a685daadcfbcb0f | /codeforces/random/B_Equal_Candies.py | 5666b59c9804f96384bfdd8bf152e6b93b45323e | [] | no_license | HurayraIIT/competitive-programming | 0e2f40cf1cae76129eac0cd8402b62165a6c29e4 | 3b9bc3066c70284cddab0f3e39ffc3e9cd59225f | refs/heads/master | 2022-12-10T18:33:10.405727 | 2022-12-06T13:15:15 | 2022-12-06T13:15:15 | 236,779,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # Abu Hurayra
import sys
from collections import defaultdict
# import threading
# threading.stack_size(2**27)
# sys.setrecursionlimit(2**21)
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(sys.stdin.readline())
def ria(): return list(map(int, sys.stdin.readline().split()))
def ws(s): sys.stdout.wri... | [
"[email protected]"
] | |
24eab0073b819cc196e8f7657f4052507436ad3f | 007f7d8c93725457bc5692715587227d6c8acc0c | /blender/.blender/scripts/renameobjectbyblock.py | eeea815c650127d2b64e7c557b1b425a00e90a67 | [
"GPL-2.0-only",
"PSF-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Nicoeevee/sketchfab_download | cf1c72ab45a88bebb0e08d7fb984fa01a3be97fa | a81ad3a2053e715608e657fd62c9dc1194ffe290 | refs/heads/master | 2023-04-21T08:05:28.322657 | 2021-05-13T18:01:30 | 2021-05-13T18:01:30 | 354,547,290 | 0 | 0 | Apache-2.0 | 2021-05-14T12:04:21 | 2021-04-04T13:13:28 | Python | UTF-8 | Python | false | false | 4,863 | py | #!BPY
""" Registration info for Blender menus: <- these words are ignored
Name: 'Object Name Editor'
Blender: 232
Group: 'Object'
Tip: 'GUI to select and rename objects.'
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blend... | [
"[email protected]"
] | |
72cd4e6fde17b03b12738b441ec9e9f9e86204b8 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_REPO/MICROSOFT/computervision-recipes/utils_cv/detection/references/utils.py | b477c887d61384e3e724535c9061f46326984030 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"Apache-2.0",
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 10,311 | py | from __future__ import print_function
from collections import defaultdict, deque
import datetime
import pickle
import time
import torch
import torch.distributed as dist
import errno
import os
class SmoothedValue(object):
"""Track a series of values and provide access to smoothed values over a
window or the... | [
"[email protected]"
] | |
960540a6f9a5e5fdc7c3bb222cfbfd59bf548e8d | bf2d010229aece071359662f4fef44e48ba57951 | /dynamic_range_time_step_plot.py | ce67b22b30e65b9b6c4f46b93df1df6ec14a9916 | [] | no_license | Osrip/CriticalEvolution | b97398f74e2fc5b54c9ab92765b08ce3bf97257e | f77cae8acc626cb4c6d64d5a44fdf00310309c2e | refs/heads/master | 2021-06-24T03:44:03.283017 | 2021-04-03T13:09:42 | 2021-04-03T13:09:42 | 215,332,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,728 | py | import os
import numpy as np
from automatic_plot_helper import load_isings_specific_path
from automatic_plot_helper import attribute_from_isings
from automatic_plot_helper import all_folders_in_dir_with
import copy
import pandas as pd
import glob
import pickle
from run_combi import RunCombi
import matplotlib.pylab as p... | [
"[email protected]"
] | |
a69e06de247ad3631563edfd5c4b3257cf2749ed | 7c8bff784568691c516833ac81afc967857d24e2 | /jacc/migrations/0019_entrytype_identifier.py | effb3d0f203ab8c4e4ea27554b71aa4fcc456877 | [
"MIT"
] | permissive | kajala/django-jacc | b71f2c3df1321b9bb31e1e648895931b735949a6 | 4acb8ca2d32b11fd5afa3b5316b13be223b20ec6 | refs/heads/develop | 2023-08-18T14:12:38.196880 | 2023-08-11T15:18:57 | 2023-08-11T15:18:57 | 121,229,896 | 11 | 5 | MIT | 2021-07-12T15:02:36 | 2018-02-12T10:02:20 | Python | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.1.2 on 2018-10-18 15:36
from django.db import migrations, models
from django.db.models import F
def migr_code_to_identifier_0019_entrytype_identifier(apps, schema):
EntryType = apps.get_model("jacc", "EntryType")
EntryType.objects.all().update(identifier=F("code"))
class Migration(m... | [
"[email protected]"
] | |
e01a13130ccc128e63bdb0486285772b63f84edf | a155780658a6d2c9b4e4adfaf822ba465f8f6be8 | /controller/jellyfish-mods/jf_phoneme.py | 9a4988ea5646229664603c154277d4e59983d701 | [] | no_license | stcybrdgs/NLP-Matching | e77ab6c63281d6d859f9a68be31c8913be20d9e6 | 6b4725e68eb4233844273d3a96b0f36b14ce8e80 | refs/heads/master | 2020-05-25T18:21:55.009741 | 2019-06-13T07:15:47 | 2019-06-13T07:15:47 | 187,928,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 31 19:15:42 2019
@author: Stacy
jellyfish modules for use with the controller program
"""
import jellyfish
def soundex():
tokens = ['Ball Bearing',
'bll brng',
'Centrifugal',
'centrifigal',
'PUmp',
... | [
"[email protected]"
] | |
632789f2b0dcf3c03c1d6fd2e945bda51a359db3 | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/cx_Oracle/MessageProperties.py | 641ade26f658f4b7e5bbfa26034ba4823d3e2d0f | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # encoding: utf-8
# module cx_Oracle
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\cx_Oracle.cp37-win_amd64.pyd
# by generator 1.146
# no doc
# imports
import datetime as __datetime
from .object import object
class MessageProperties(object):
# no doc
def __init__(self, *args... | [
"[email protected]"
] | |
c8eaaea75b6e51740f05c80b5ee3c3dfc6fa2213 | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/pyproto/components/data_reduction_proxy/proto/client_config_pb2.py | d1f0ee35068d28902cf5e4a9b884c2deee8f29be | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 23,912 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: client_config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as ... | [
"[email protected]"
] | |
12358f25a48a53f1851f8ac5027fdd19a6973bab | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/daapi/view/lobby/crewoperations/__init__.py | bd54d7b315bf7025de933b9384553c691e7e1edd | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,734 | py | # 2016.05.01 15:21:39 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/crewOperations/__init__.py
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework... | [
"[email protected]"
] | |
0e536a419c8eaf8064d4388c6bd6fbf237af1039 | ae7884af1ec3965b7c0eec22edad6b74f78b7ba6 | /client/full/src/UDSWindow.py | 86e5b3b9b59538fda5013a6802deb4d95ceee0e4 | [] | no_license | glyptodon/openuds | f4eefa319a3ead827dad999d24e5ee3854d1345d | 3908c875d30ec332490fc8c049bb537e10f10d08 | refs/heads/master | 2021-07-12T20:58:49.281242 | 2021-03-05T22:42:55 | 2021-03-05T22:42:55 | 62,921,174 | 0 | 1 | null | 2016-07-08T22:33:44 | 2016-07-08T22:33:44 | null | UTF-8 | Python | false | false | 4,671 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UDSWindow.ui'
#
# Created: Mon Apr 27 21:41:43 2015
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attr... | [
"[email protected]"
] | |
7b9bd540581484c8680a1ae63384c40888b2f12c | 7b4820948845f55274b211d676ab8a6253a6298b | /addons/plugin.video.icefilms/resources/lib/resolvers.py | 36e1264a0b0330c1387add5a845b2d5bbb7ed891 | [] | no_license | bopopescu/mw | 524c57d4b859751e298b907a12e44e9711ef72a6 | 5ef2acea0fb4150578e53201463c6bc5da37be20 | refs/heads/master | 2021-05-30T19:33:11.750160 | 2016-01-11T05:28:46 | 2016-01-11T05:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,586 | py | import xbmc,xbmcgui
import os
import urllib, urllib2
import cookielib
import re
import jsunpack
''' Use addon.common library for http calls '''
from addon.common.net import Net
from addon.common.addon import Addon
net = Net()
addon = Addon('plugin.video.icefilms')
datapath = addon.get_profile()
cookie... | [
"[email protected]"
] | |
14c05659bfcf17e4fd5989ae12e8a8272b62a798 | dfe0798a322dca6b90e10743936c500e618ff078 | /Sample_Project/env/lib/python3.8/site-packages/sipconfig.py | 1dd5c9bc7e2d6bcd641e27dea9ab88bf6031ba90 | [
"Python-2.0"
] | permissive | SenthilKumar009/Udemy-MLandDS-CompleteMastery | 7d0ff9d2ffa688ba35de5667441eafc443f9792a | ca5e867134ad2bbf03d158d78b34905390ab58b2 | refs/heads/master | 2022-11-21T16:01:51.416001 | 2020-06-16T03:15:48 | 2020-06-16T03:15:48 | 270,206,193 | 1 | 1 | null | 2022-11-16T05:57:51 | 2020-06-07T05:44:20 | Jupyter Notebook | UTF-8 | Python | false | false | 97,321 | py | # This module is intended to be used by the build/installation scripts of
# extension modules created with SIP. It provides information about file
# locations, version numbers etc., and provides some classes and functions.
#
# Copyright (c) 2018 Riverbank Computing Limited <[email protected]>
#
# This file i... | [
"[email protected]"
] | |
eb7705bd6b9d8e6677c1899be7ba4d2bdc3f42a1 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/models_20201114185225.py | 1f3117e89b2e0690542e5f302aea450246571448 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | from django.db import models
import re
class UserManager(models.Manager):
def basic_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_name'] = "First name must b... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.