blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
7d0eac6bc6769a63f609d726e612586ed47b6af8
e1ae535d8613aae44e8f9eaa4daf50c1e63665b7
/multimedia/south_migrations/0026_auto__chg_field_remotestorage_media.py
e4f8b05c6dae4836b6317150e40ea7eda035d2ed
[]
no_license
teury/django-multimedia
48b8fba9abc101286990b1306d85967bd197f08e
4ddd5e6d9f4f680e2f4f68cc3616ced8f0fc2a43
refs/heads/master
2021-01-16T20:50:24.573686
2015-04-23T21:22:38
2015-04-23T21:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,388
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'RemoteStorage.media' db.alter_column(u'multimedia_remo...
[ "jason.bittel@gmail.com" ]
jason.bittel@gmail.com
c6ecf3c59e8d315c1650c67532864af71b386c05
4e8b37ca121be19cd3b4e73a6592be2659d8134c
/backend/Techfesia2019/accounts/migrations/0005_auto_20190701_1708.py
a7113d24504a420a0d91b930fb768ac3673981f3
[ "MIT" ]
permissive
masterashu/Techfesia2019
365b9b8dc1cb0bc6b613c72632e8b7a2a2a70905
8fd82c4867c8d870b82a936fc0f9e80f11ae03e7
refs/heads/backend-event-registrations
2020-06-10T20:58:40.850415
2019-07-27T23:00:21
2019-07-27T23:00:21
193,744,800
1
1
MIT
2019-06-29T17:12:31
2019-06-25T16:29:12
Python
UTF-8
Python
false
false
466
py
# Generated by Django 2.2.2 on 2019-07-01 11:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_auto_20190701_0956'), ] operations = [ migrations.AlterField( model_name='institute', name='name', ...
[ "masterashu@live.in" ]
masterashu@live.in
a9d2eeab18066cbc76789aba31dd51329d4f3780
9f0b9a8fe27336b8a231a33c6f693ed019a61b6e
/blacklinetest.py
f6eb1fa445e64a1ab1daa8cf7cc3bd44fcadc93b
[]
no_license
Duong-NVH/tool-set
e2647cf74fa085eab42fe3f19c852634629e956e
e7c5f7f4522e75eefe74e808a07ecf6575c4ebf5
refs/heads/main
2023-06-15T07:37:30.783287
2021-07-09T15:58:12
2021-07-09T15:58:12
382,987,402
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
import cv2 import numpy as np img = cv2.imread('blacklinetest.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) edges = cv2.Canny(gray, 50, 150, apertureSize=3) lines = cv2.HoughLines(edges, 1, np.pi/180, 500) for rho, theta in lines[0]: a = np.cos(theta) b = np.sin(theta) x0 = a*rho y0 = b*rho x1 ...
[ "you@example.com" ]
you@example.com
d7aab2532f25c287a63c8bd8d282163103684f29
d7567ee75e48bd7872a1c332d471ff3ce7433cb9
/checkout/urls.py
233bfb99df176d4ab47c4bae44affd20f8155e9c
[]
no_license
sarahbarron/ecommerce
30cd0ff26afa5ec9031165b63ecde8c0f7f6086f
aba5370fd731e7ec9e677041504f6c3457b0d405
refs/heads/master
2020-03-17T21:10:56.385918
2020-01-17T18:35:28
2020-01-17T18:35:28
133,947,336
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.conf.urls import url from .views import checkout urlpatterns = [ url(r'^$', checkout, name='checkout'), ]
[ "sarahflavin@yahoo.com" ]
sarahflavin@yahoo.com
ab932c024897c581d9bb5dd95eef2ee759d421c2
bac5ecb5eef06dfe76b9b7bff80faee7485c67dd
/.history/django_vuejs_tutorial/django_vuejs/dataiku/models_20200829125121.py
c7e0a2d229648bf8a2326333ab23d5a72731658d
[]
no_license
MChrys/dataiku
fb1e48401d544cbcc5a80a0a27668dc9d2d196e5
6091b24f565224260a89246e29c0a1cbb72f58ed
refs/heads/master
2022-12-16T11:06:13.896643
2020-09-12T19:03:51
2020-09-12T19:03:51
293,287,620
0
0
null
null
null
null
UTF-8
Python
false
false
5,147
py
from django.db import models from django.utils import timezone class Task(models.Model): ''' All task that could be apply to a specific account ''' name = models.CharField(max_length=60, primary_key=True) description = models.CharField(max_length=510, null=True, blank=True) supertask = models.F...
[ "cbeltran@umanis.com" ]
cbeltran@umanis.com
18b985fd2a25b161ab12d7f4f4e09fc83c30cc2e
3b21cbe5320137a3d8f7da40558294081211f63f
/Chapter04/AutoencMnist.py
daebd29ec15d7b88a838e6b5aa4a4d8016f69927
[ "MIT" ]
permissive
Evelynatrocks/Python-Machine-Learning-Cookbook-Second-Edition
d06812bba0a32a9bd6e5e8d788769a07d28084cd
99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f
refs/heads/master
2023-04-06T20:23:05.384943
2021-01-18T12:06:36
2021-01-18T12:06:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,181
py
from keras.datasets import mnist (XTrain, YTrain), (XTest, YTest) = mnist.load_data() print('XTrain shape = ',XTrain.shape) print('XTest shape = ',XTest.shape) print('YTrain shape = ',YTrain.shape) print('YTest shape = ',YTest.shape) import numpy as np print('YTrain values = ',np.unique(YTrain)) print('YTest values ...
[ "joecasillas001@gmail.com" ]
joecasillas001@gmail.com
be0eb741b4aaaad5085131454dec219bdd1c93dd
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Anscombe/trend_LinearTrend/cycle_30/ar_/test_artificial_1024_Anscombe_LinearTrend_30__100.py
70d9b6daa1932fc44ee8f23227fa9317aea8fd0d
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
268
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
e333c381e106259eee7a3f4e11f26674dd3a3594
30a8b69bd2e0a3f3c2c1c88fb3bd8a28e6fc4cd0
/Part1/auth_foursquare.py
dc09d963b40958ce2c5e3b9030a232e3dd9ca643
[]
no_license
llord1/Mining-Georeferenced-Data
d49108f443922f02b90431ad7a9626ea17fd0554
c71f2e151ccfc4a1a9c07b5fcf4e95b7f7ba70e9
refs/heads/master
2021-05-30T13:27:57.663015
2015-12-29T09:10:08
2015-12-29T09:10:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
#!/usr/bin/env python import foursquare from foursquare_accounts import accounts app = accounts["tutorial"] client = foursquare.Foursquare(client_id=app["client_id"], client_secret=app["client_secret"]) client.set_access_token(app["access_token"])
[ "bgoncalves@gmail.com" ]
bgoncalves@gmail.com
c35024eb1eed9b0da1bdde17899977fd5b9b5c96
0201ac814d825cac1030dfe1ccdb7ef1657c205b
/__init__.py
a403709aa7de47dca868813496d90679f83afbc3
[ "BSD-3-Clause" ]
permissive
karttur/geoimagine03-timeseries
c99be449dccaab767d470cfaa2b71d9dae339fba
aa8e1642fd4a8bc196ad6fce9f90b80066d54dac
refs/heads/main
2023-08-22T14:12:50.791746
2021-10-20T10:54:37
2021-10-20T10:54:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
""" timeseries ========================================== Package belonging to Karttur´s GeoImagine Framework. Author ------ Thomas Gumbricht (thomas.gumbricht@karttur.com) """ from .version import __version__, VERSION, metadataD from .timeseries import ProcessTimeSeries from .numbautil import TimeSeriesNumba #from ...
[ "thomas.gumbricht@gmail.com" ]
thomas.gumbricht@gmail.com
0eb944d3d4b625dd58953dcd5ad39efa5bcaeaa1
9c14bd53c8629262b1310962c1663a3c503ba3a0
/projects/golem/tests/project/add_directory_to_pages.py
7b7d283d6d17e02f6e630f4b7d7aad6a000fea95
[]
no_license
ShubhamAnand/golem-demo
b083d44b5d2d5db79eae96aa5bb1f3307272d64b
a40ced5500b3bfdb54351393eeb8ccba19a50564
refs/heads/master
2021-07-16T00:44:57.663282
2017-10-22T22:56:25
2017-10-22T22:56:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
description = 'Verify that the user can add a directory in the pages section by appending \'\\\' at the end' pages = ['login', 'index', 'project'] def setup(data): navigate(data.env.url) login.do_login('admin', 'admin') index.create_access_project('test') def test(data): ...
[ "feo.luciano@gmail.com" ]
feo.luciano@gmail.com
4034bde7a9e06c5d7487997a7acb9e10b85cca2b
0f1001169c4f229c253a6f1dc1c9aff51c797cca
/docs/markdown_to_html.py
ffacda661ea31a8286a001a77d5178f08b9a1fd3
[ "Apache-2.0" ]
permissive
alencon/dash-bootstrap-components
f40e360787c96a1d9f7827cf042872b2f9cffcac
4f39856c13f66730512c57ed6dc0a819e8629293
refs/heads/master
2023-01-22T13:07:05.880865
2020-12-03T21:25:50
2020-12-03T21:25:50
318,998,227
1
0
Apache-2.0
2020-12-06T09:42:13
2020-12-06T09:42:13
null
UTF-8
Python
false
false
1,541
py
from pathlib import Path import markdown from markdown.extensions.fenced_code import FencedBlockPreprocessor # highlightJS expects the class "language-*" but markdown default is "*" FencedBlockPreprocessor.LANG_TAG = ' class="language-%s"' CONTENT = Path(__file__).parent / "content" DEST = Path(__file__).parent / "t...
[ "tomcbegley@gmail.com" ]
tomcbegley@gmail.com
2400de35f3a6c6902ae173e097d54b31040a551a
2cbf3aaad62f4922d827af658fb5dbb7ac651bef
/teledusite/teledu/models/conceptAttribute.py
fc12d964e90614a6ff7813077017d177a3c7fecb
[]
no_license
tctimmeh/teledu
0266240aa864cd2eed75857e66eaeb8270f44c1a
04135ffb04f397f29152ca48f868a957b18d504a
refs/heads/master
2021-01-23T08:52:32.817693
2013-10-29T01:34:41
2013-10-29T01:34:41
2,566,893
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
from django.db import models from concept import Concept from attribute import Attribute class ConceptAttribute(Attribute): concept = models.ForeignKey(Concept, related_name = 'attributes') class Meta: app_label = 'teledu' unique_together = (('concept', 'name')) def __unicode__(self): return '%s - ...
[ "tctimmeh@gmail.com" ]
tctimmeh@gmail.com
a45dacabb65a8b878d1cb07374fde8bc5ac07d6d
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/7_graph/bfs求无权图的最短路径/广义的bfs/488. 祖玛游戏-bfs剪枝.py
12413155d1f8a0da0d66c30102d92f4f104f18a7
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
2,038
py
# 1 <= board.length <= 16 # 1 <= hand.length <= 5 from collections import deque from functools import lru_cache import re # 为什么使用广度优先搜索? # 因为只需要找出需要回合数最少的方案,因此使用广度优先搜索可以得到可以消除桌面上所有球的方案时就直接返回结果,而不需要继续遍历更多需要回合数更多的方案。 class Solution: def findMinStep(self, board: str, hand: str) -> int: """请你按上述操作步...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
c560a98412f1f79c8b28518349b9281f419d3cd1
5f313d8fce26a8ecfff8817ff566b7e1810fcba7
/timethings.py
4d68c2cbbbfce64ba5da5943421cca52b094884d
[]
no_license
luispedro/mahotas-paper
cd2769a264149cac74ce8c694ca4f02e3f4a6c93
698f2a8640feba4e285318e2cd866db3705ec2c3
refs/heads/master
2020-03-30T16:26:20.362126
2013-08-26T09:03:17
2013-08-26T09:03:17
4,877,058
1
0
null
null
null
null
UTF-8
Python
false
false
3,733
py
import skimage.morphology import skimage.filter import skimage.feature import numpy as np import timeit import mahotas import cv2 from os import path luispedro_image = path.join( path.dirname(mahotas.__file__), 'demos', 'data', 'luispedro.jpg') f = mahotas.imread(luisped...
[ "luis@luispedro.org" ]
luis@luispedro.org
32a624033c4fcd4b0dab2f56ea427738fac85532
0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a
/python3/16_Web_Services/k_Projects/b_twitter/twitter_scrapping.py
e22fe2652cae147f89fc3a8955b3336f6f812e4b
[]
no_license
udhayprakash/PythonMaterial
3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156
e72f44e147141ebc9bf9ec126b70a5fcdbfbd076
refs/heads/develop
2023-07-08T21:07:33.154577
2023-07-03T10:53:25
2023-07-03T10:53:25
73,196,374
8
5
null
2023-05-26T09:59:17
2016-11-08T14:55:51
Jupyter Notebook
UTF-8
Python
false
false
2,215
py
#!/usr/bin/python """ Purpose: Twitter data scrapping """ import tweepy class TwitterLogin: def __init__(self): consumer_key = "xxxxxxxxxxxxxxxxxxxxx" consumer_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" access_token = "00000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
6ebf11b3f019ebe0338ba4e09bbe5dcd2b7fbd4f
ec4e153f3bf1b335bc1b31b85e6f9db4a6c4faa9
/wd_extractor/Document.py
6ed52824a553446bd88f07562c5ca97fb6fb3529
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
DuaneNielsen/wd_extractor
7936ac29ae97972cfe74973108aaad1efa5054b6
128a189bacd0cd2d7f1fa598202b9c4e55f48e2f
refs/heads/master
2021-01-19T14:13:42.441554
2017-09-19T02:16:08
2017-09-19T02:16:08
100,887,646
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
from .Graminator import Graminator class Document: def __init__(self, corpus, path, grams): self.corpus = corpus self.grams = grams self.graminator = None self.path = path self.tokens = corpus.tokenizer.tokens(self) def getText(self): if self.path is not None...
[ "duane.nielsen.rocks@gmail.com" ]
duane.nielsen.rocks@gmail.com
12eca4b3e8ae4bf6f27c07a03bbc58a313b36f5f
d668209e9951d249020765c011a836f193004c01
/tools/pnnx/tests/test_torch_fft_irfft.py
8f92dd551a1f5c2f0b5ff9c8894b75b1b122d362
[ "BSD-3-Clause", "Zlib", "BSD-2-Clause" ]
permissive
Tencent/ncnn
d8371746c00439304c279041647362a723330a79
14b000d2b739bd0f169a9ccfeb042da06fa0a84a
refs/heads/master
2023-08-31T14:04:36.635201
2023-08-31T04:19:23
2023-08-31T04:19:23
95,879,426
18,818
4,491
NOASSERTION
2023-09-14T15:44:56
2017-06-30T10:55:37
C++
UTF-8
Python
false
false
1,804
py
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the...
[ "noreply@github.com" ]
Tencent.noreply@github.com
fff29da02d95309713cc9a0f7a86f69832ba5220
83a506a501561602ad3b259341225ddfbddab160
/GameServer/matchGames/Match_PK_DouDiZhu/redis_instance.py
3fe50de16f52f543bb74fc19e6b8dcc7b80828c3
[]
no_license
daxingyou/SouYouJi_Game
9dc5f02eb28b910efb229653a8d0bffe425a7911
7311a994c9aba15b7234331709975ebc37e8453d
refs/heads/master
2023-03-28T01:36:48.955107
2020-04-05T01:24:17
2020-04-05T01:24:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
# -*- coding:utf-8 -*- # !/bin/python """ Author: Pipo Date: $Date$ Revision: $Revision$ Description: Redis """ import redis from configs import CONFIGS redisdb = None def getInst(dbNum=CONFIGS['redis']['db']): global redisdb redisdb = redis.ConnectionPool( host=CONFIGS['redis'][...
[ "ronnyzh@yeah.net" ]
ronnyzh@yeah.net
95e9f1d292ccffad970294b2b502147429f71198
23b5337bf410415b7b150e3ad60cafc1578a0441
/07-User-Authentication/01-Flask-Login/myproject/__init__.py
54b954d72924a39c7987de9eda326bbc04bd3512
[]
no_license
VerdantFox/flask_course
b8de13ad312c14229f0c3bc2af70e8609a3b00fb
47b167b54bc580734fa69fc1a2d7e724adfb9610
refs/heads/master
2021-09-10T05:01:47.385859
2020-02-24T21:07:05
2020-02-24T21:07:05
241,973,705
0
0
null
2021-09-08T01:40:59
2020-02-20T19:40:42
Python
UTF-8
Python
false
false
761
py
import os from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager # Create a login manager object login_manager = LoginManager() app = Flask(__name__) # Often people will also separate these into a separate config.py file app.config["SEC...
[ "verdantfoxx@gmail.com" ]
verdantfoxx@gmail.com
51f55bc16f6ed44f56ff1aebecc74e8ef660f3e9
222b17dacb95640499ebd484697ead32e83b9ac1
/find_defining_class.py
3bf7302beb99684035cd35f6b235fee80a90520b
[]
no_license
cicekozkan/python-examples
08330ef0fb1678cace17716ac2f490a3c5b95dd2
01b0e654c884946f8353995333a6946062c9c158
refs/heads/master
2021-01-14T14:06:37.585963
2014-12-26T07:55:13
2014-12-26T07:55:13
25,510,316
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
# -*- coding: utf-8 -*- """ Created on Mon Nov 17 11:46:43 2014 @author: ocicek """ def find_defining_class(obj, meth_name): """takes an object and a method name (as a string) and returns the class that provides the definition of the method""" for ty in type(obj).mro(): if meth_name in ty.__dict_...
[ "cicekozkan@gmail.com" ]
cicekozkan@gmail.com
663f935d7eb0b3d622d212ba615d6a7387719c88
c4cb90afb658a822c4ab867eec979227c0a25a6d
/testdemo/settings.py
752c0a3676d4faf49f9a97caa9ee3abc5b89683d
[]
no_license
Contraz/demosys-py-test
81afb3dd801c0deb6046ddb0e7836de61182a36f
2aa760cb94ea34e3fb610ca8c43f1549ba9b53de
refs/heads/master
2021-01-19T16:58:33.608630
2018-07-13T07:59:34
2018-07-13T07:59:34
88,294,443
1
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
import os PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) DEBUG = False SCREENSHOT_PATH = os.path.join(PROJECT_DIR, 'screenshots') # Profile: any, core, compat OPENGL = { "version": (3, 3), } WINDOW = { "size": (1280, 720), "vsync": True, "resizable": True, "fullscreen": False, "ti...
[ "eforselv@gmail.com" ]
eforselv@gmail.com
f1ef29d00b9e612458bdb8429ac6cc2833dcfeb1
cd58faaffc84a4b1194fa55206ecce3458289edb
/setup.py
00f05e0c3c24ac0059253c0b709c8ccd9fd0b61a
[ "MIT" ]
permissive
danieleteti/revelation
89327833d896c7350d41a7983d4781d980134a79
de4f8221e6c78aca174600dd333b0f9a5f62baa2
refs/heads/master
2020-03-21T08:10:47.420032
2018-07-17T18:05:17
2018-07-17T18:05:17
138,326,204
0
0
MIT
2018-06-22T16:43:33
2018-06-22T16:43:33
null
UTF-8
Python
false
false
2,222
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """revelation setup file""" import os import re from setuptools import find_packages, setup PACKAGE = "revelation" REQUIREMENTS = [ "Jinja2==2.10", "Werkzeug==0.14.1", "click==6.7", "gevent-websocket==0.10.1", "gevent==1.3.4", "watchdog==0.8.3", ]...
[ "humrochagf@gmail.com" ]
humrochagf@gmail.com
5fb0d6de6e07ff397e5a483f3a634518532a6424
427cb811a465677542172b59f5e5f102e3cafb1a
/python/print/printContent.py
6a213db972abd85fe761285d5c7b5bbb5ae57cdd
[]
no_license
IzaakWN/CodeSnippets
1ecc8cc97f18f77a2fbe980f322242c04dacfb89
07ad94d9126ea72c1a8ee5b7b2af176c064c8854
refs/heads/master
2023-07-26T21:57:10.660979
2023-07-20T20:35:59
2023-07-20T20:35:59
116,404,943
18
4
null
null
null
null
UTF-8
Python
false
false
4,361
py
# https://docs.python.org/2/library/optparse.html # http://www.macworld.com/article/1132219/software-utilities/termfoldercomp.html # https://automatetheboringstuff.com/chapter7/ # TODO: function to replace patterns https://docs.python.org/2/library/re.html # TODO: add month and year to fileName # TODO .bundle import o...
[ "iwn_@hotmail.com" ]
iwn_@hotmail.com
376d6b0ccb6509c96d3c340f24977524379fc444
45de3aa97525713e3a452c18dcabe61ac9cf0877
/src/secondaires/diligence/fonctions/diligences.py
0c9dd2f3eb7a0ab9f84de366ec3c7a1105448876
[ "BSD-3-Clause" ]
permissive
stormi/tsunami
95a6da188eadea3620c70f7028f32806ee2ec0d1
bdc853229834b52b2ee8ed54a3161a1a3133d926
refs/heads/master
2020-12-26T04:27:13.578652
2015-11-17T21:32:38
2015-11-17T21:32:38
25,606,146
0
0
null
null
null
null
UTF-8
Python
false
false
3,016
py
# -*-coding:Utf-8 -* # Copyright (c) 2014 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # lis...
[ "vincent.legoff.srs@gmail.com" ]
vincent.legoff.srs@gmail.com
8fc69ea6d952ef1e4cfc879a40a170fe9c897d6c
d9fd9c6329461235f140393f1e934362d0f645df
/Unidad 2/Módulo 6/Sección 4/eje_09.py
e3cf1510314a26331adc0b550e3c13291c3325ad
[ "MIT" ]
permissive
angelxehg/utzac-python
e6b5ee988d1d76c549ab0fa49717eb042fa7d91f
fb88bcc661518bb35c08a102a67c20d0659f71db
refs/heads/main
2022-12-02T11:16:27.134741
2020-08-14T19:38:33
2020-08-14T19:38:33
265,944,612
0
0
MIT
2020-08-07T21:23:53
2020-05-21T20:25:24
Python
UTF-8
Python
false
false
375
py
class MiClase: pass obj = MiClase() obj.a = 1 obj.b = 2 obj.i = 3 obj.ireal = 3.5 obj.entero = 4 obj.z = 5 def incIntsI(obj): for name in obj.__dict__.keys(): if name.startswith('i'): val = getattr(obj, name) if isinstance(val, int): setattr(obj, name, val + 1) ...
[ "50889225+angelxehg@users.noreply.github.com" ]
50889225+angelxehg@users.noreply.github.com
bb936e36f73b3022e5fc4ff938b2e48d6d89e8c1
4273f162abb12ef1939271c2aabee9547ac6afee
/studio_usd_pipe/test/ver.py
e3d449cb801732082a041c7c123caf699f61c94a
[]
no_license
xiyuhao/subins_tutorials
2717c47aac0adde099432e5dfd231606bf45a266
acbe4fe16483397e9b0f8e240ca23bdca652b92d
refs/heads/master
2023-07-28T13:42:41.445399
2021-09-12T11:02:37
2021-09-12T11:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
input_data = { "exe": [ "KONSOLE_EXE", "/venture/source_code/subins_tutorials/studio_usd_pipe/bin/build-in/konsole/main.sh" ], "name": [ "APPLICATION_NAME", "konsole2.10.5" ], "version": [ "KONSOLE_VERSION", "konsole2.10.5" ], "path": [ ...
[ "subing85@gmail.com" ]
subing85@gmail.com
4229eb3d57d5f03b46b944d86271693266461296
e73a2ff9458effe038ebabfe9db6cdaf0c5bc473
/order_food_online_project/order_food_online/urls.py
c5771206f24064f500d0c904aa8232d203cf5dcb
[ "MIT" ]
permissive
MaksNech/django_order_food_ingredients
fcad5668b92b90776715d39e3f241577cf4364fa
3578e36570ce99b25136942320fbcd7df956d435
refs/heads/master
2020-04-20T21:20:38.496108
2019-04-06T15:17:29
2019-04-06T15:17:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
"""order_food_online URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
[ "nechypurenko.shag@gmail.com" ]
nechypurenko.shag@gmail.com
820c2bd2006c8b43d126a6d5226df4dd461d5814
b6ef959b538e4bffec92998a553175248bd72a77
/06-Machine_Learning/brain.py
1376cf1f411443947b708acf7499cd6bdf52de49
[ "MIT" ]
permissive
suzynakayama/udemy-python-dev
9e384e3683a300f07c14d2a5862003038a4b169c
fbb35d00f94296da1281e6042a4efe506f79dddb
refs/heads/main
2023-02-10T11:50:47.650049
2021-01-07T22:46:52
2021-01-07T22:46:52
307,135,927
2
0
null
null
null
null
UTF-8
Python
false
false
530
py
import os from imageai.Classification import ImageClassification # get current directory execution_path = os.getcwd() prediction = ImageClassification() prediction.setModelTypeAsMobileNetV2() prediction.setModelPath(os.path.join(execution_path, "mobilenet_v2.h5")) prediction.loadModel() predictions, probabilities = ...
[ "suzy.nakayama@gmail.com" ]
suzy.nakayama@gmail.com
a433ae84fb074b61840e19b067915bc4fc1b848c
490ffe1023a601760ae7288e86723f0c6e366bba
/kolla-docker/patching/zun_compute_api/provideraccount.py
a338bd5fd861592d8f7f624b5913d613b42fd69c
[]
no_license
bopopescu/Cloud-User-Management
89696a5ea5d2f95191327fbeab6c3e400bbfb2b8
390988bf4915a276c7bf8d96b62c3051c17d9e6e
refs/heads/master
2022-11-19T10:09:36.662906
2018-11-07T20:28:31
2018-11-07T20:28:31
281,786,345
0
0
null
2020-07-22T21:26:07
2020-07-22T21:26:06
null
UTF-8
Python
false
false
1,679
py
def provideraccount_update(self, context, container, *args): if direct_action: return self.manager.provideraccount_update(context, container, *args) else: return self.rpcapi.provideraccount_update(context, container, *args) def provideraccount_show(self, context, contai...
[ "Mr.Qinlichao@hotmail.com" ]
Mr.Qinlichao@hotmail.com
87dcdc1f187f0619115ef51295c60468005bd5f3
dcce56815dca2b18039e392053376636505ce672
/dumpscripts/itertools_filterfalse.py
4db9836daa58ad384b41f161c27d4886ab93f22c
[]
no_license
robertopauletto/PyMOTW-it_3.0
28ff05d8aeccd61ade7d4107a971d9d2576fb579
c725df4a2aa2e799a969e90c64898f08b7eaad7d
refs/heads/master
2021-01-20T18:51:30.512327
2020-01-09T19:30:14
2020-01-09T19:30:14
63,536,756
4
1
null
null
null
null
UTF-8
Python
false
false
208
py
# itertools_filterfalse.py from itertools import * def check_item(x): print('Verifica:', x) return x < 1 for i in filterfalse(check_item, [-1, 0, 1, 2, -2]): print('Trattengo:', i)
[ "roberto.pauletto@gmail.com" ]
roberto.pauletto@gmail.com
747ca14a18296d4beabd473f554d3da345152774
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/sok2_20180606104430.py
e3d724e0922456fec8afc2db0669485e5ed3545c
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
1,247
py
row1 = [0,0,0,0,0,0,0,0,0] row2 = [0,0,0,5,0,6,0,0,0] row3 = [0,0,1,0,0,0,0,3,0] row4 = [0,9,5,0,0,0,2,0,0] row5 = [0,0,0,0,0,1,6,0,7] row6 = [1,0,6,0,0,9,0,0,5] row7 = [7,0,0,8,0,3,9,0,0] row8 = [0,3,8,9,0,0,0,2,0] row9 = [0,5,0,0,2,0,7,0,0] print(row1) print(row2) print(row3) print("") print(row4) print(ro...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
92f3ee7e26c3ee1406bd8042cee27fc0d7f8f4c2
d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189
/tags/pygccxml_dev_1.0.0/unittests/plain_c_tester.py
c26b2581fbaca21e9f350c66801aeb71c9acd90f
[ "BSL-1.0" ]
permissive
gatoatigrado/pyplusplusclone
30af9065fb6ac3dcce527c79ed5151aade6a742f
a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede
refs/heads/master
2016-09-05T23:32:08.595261
2010-05-16T10:53:45
2010-05-16T10:53:45
700,369
4
2
null
null
null
null
UTF-8
Python
false
false
1,430
py
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import unittest import autoconfig import parser_test_case from pygccxml import utils from pygccxml import parser fr...
[ "roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76" ]
roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76
1c1722d15f2ee8dde90347013662ca30cd87c6a3
0269037acc7785a58f8786c60be8ccea8ef3f6f3
/indico/modules/attachments/models/folders_test.py
71309414a40429ae60741e7457815421438a6ce8
[ "MIT" ]
permissive
bebusl/cbnu_indico
1ffa7042a1f706da953214b39827cbdbb1387cce
60b37c2bf54cd7f17092b2a9ad21311762729601
refs/heads/master
2023-01-18T22:22:09.655751
2020-12-02T09:04:06
2020-12-02T09:04:06
281,068,896
0
0
MIT
2020-07-20T09:09:44
2020-07-20T09:09:43
null
UTF-8
Python
false
false
1,890
py
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from indico.modules.attachments import AttachmentFolder def tes...
[ "adrian.moennich@cern.ch" ]
adrian.moennich@cern.ch
977da3579e8f87f1655e64f2de8938f2c1adc395
1207d50126d4d59966573927c5eadd94db6aeb59
/svggen/library/Rectangle.py
cb7e78caee0de5d274f55684375712ff71248bc0
[]
no_license
christianwarloe/robotBuilder
aee03c189972f1d305c6e13d106b362b5d26d187
3f8fbc267ac7b9bbae534d1208278541a7b5eaa5
refs/heads/master
2021-06-13T02:42:24.834816
2017-04-07T01:01:52
2017-04-07T01:01:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
from svggen.api.FoldedComponent import FoldedComponent from svggen.api.composables.graph.Face import Rectangle as Rect from svggen.api.composables.GraphComposable import Graph from svggen.api.ports.EdgePort import EdgePort from svggen.api.ports.FacePort import FacePort class Rectangle(FoldedComponent): _test_param...
[ "christian.warloe@gmail.com" ]
christian.warloe@gmail.com
96eaba8baa60786fa762b5a9ed86e115dfb96fb2
b5ba12d4dcb240ba6069964380f6a3aede79f448
/mixins/simulation.py
7ccaefcd9da8089d5c296d7cfa10fab98b594edc
[]
no_license
70-6C-65-61-73-75-72-65h/erp
9e1a6f20a15d16794043f583022b1e04a9435b20
0e088c767d0d0c0e5515be703ed71252d55b70d9
refs/heads/master
2022-03-27T21:12:52.305257
2019-12-17T15:41:59
2019-12-17T15:41:59
224,333,874
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
# from datetime import datetime # # from string to datetime: time.strptime # # from datetime to string: time.strftime # def today(): # # simulational date_today: # def datetime_date_today(): # """ only date returned """ # month, day, year = today() # datetime_str = f'{month}/{day}/{year}' # datetim...
[ "max.ulshin.max@istat.com.ua" ]
max.ulshin.max@istat.com.ua
bc5ad557d4f626a81e3b4e15f4bf084bb239d1a7
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_detail_request.py
310a07633cd81850d55c262f5845bd24add26eb3
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,328
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowAssetDetailRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
5d5b5c72b46a23b4384971602e86d7719b885892
b8bde9a346685e1428a8284f7ffb14f15e35fb78
/deploy/pinax.fcgi
43f92ff0c8e98da7b3b5d94b6afd6d72456e3420
[]
no_license
bhaugen/pinax-groups-experiments
9302762c8e7379f067385a7280ef9af4dc4c5e8f
d520ccbfdb8228e10b6e547df6f64106caa6f0ec
refs/heads/master
2020-04-05T22:49:04.750605
2009-11-13T19:36:20
2009-11-13T19:36:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
535
fcgi
# pinax.fcgi is configured to live in projects/pinax_groups/deploy. import os import sys from os.path import abspath, dirname, join from site import addsitedir sys.path.insert(0, abspath(join(dirname(__file__), "../../"))) from django.conf import settings os.environ["DJANGO_SETTINGS_MODULE"] = "pinax_groups.setting...
[ "bob.haugen@gmail.com" ]
bob.haugen@gmail.com
5756338cb6fc8c1265dcba6437dce7333023f4e4
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/System/Windows/Forms/__init___parts/RichTextBoxSelectionTypes.py
9924fd6d966d8eeaba9fa14927670259ceddad2d
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
1,054
py
class RichTextBoxSelectionTypes(Enum,IComparable,IFormattable,IConvertible): """ Specifies the type of selection in a System.Windows.Forms.RichTextBox control. enum (flags) RichTextBoxSelectionTypes,values: Empty (0),MultiChar (4),MultiObject (8),Object (2),Text (1) """ def __eq__(self,*args): """ x.__eq__(y...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com
9091f98df3dff4ab938bd0ab9d306ef2b2ca9621
f6f15809ac70089ef4cfb1ade40e2dc58d239f81
/test/functional/data/invalid_txs.py
1f19ffe59a0e3a5e593440e7030364022a6315d2
[ "MIT" ]
permissive
lamyaim/bitgesell
fcc96f6765d3907ce923f411a1b2c6c4de9d55d6
64c24348f1ba8788fbffaf663b3df38d9b49a5d1
refs/heads/master
2023-04-30T08:16:40.735496
2020-12-10T05:23:08
2020-12-10T05:23:08
369,859,996
1
0
MIT
2021-05-22T16:50:56
2021-05-22T16:48:32
null
UTF-8
Python
false
false
7,089
py
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Templates for constructing various sorts of invalid transactions. These templates (or an iterator ove...
[ "wuemma@protonmail.com" ]
wuemma@protonmail.com
0fee4123dd316b974c3fdd92e1ace45e6046c0e7
1f40a08ee85ef6f78384e6f6f53bcf3f86b8c44b
/shorten/app/views.py
fec1ecdf840fbfdd7d0588f916a668b2701fdb4d
[]
no_license
infsolution/EncurtUrl
bff4543fb17f3c2a6853c64abc24d307abcd04bf
0f6d8aa23a2498a8bf5575797db9a5a8eb855403
refs/heads/master
2020-05-14T09:31:39.265337
2019-09-28T17:44:25
2019-09-28T17:44:25
181,741,563
0
0
null
null
null
null
UTF-8
Python
false
false
5,523
py
from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, InvalidPage from django.shortcuts import render, redirect from django.http import JsonResponse from rest_framework import generics from .models import * from...
[ "clsinfsolution@gmail.com" ]
clsinfsolution@gmail.com
ce8203a37a0d73246f63399116e942a387aa6b19
38eb57300418e6f10433630437388f779ce50e09
/rbac_permission/rbac/servers/permission.py
4fc6af516966b9eb74fc2a0ed9e12b36cfe54973
[]
no_license
SelfShadows/Django-Flask
f37839f763133f0d62bffad3128171c426a1c038
13e32d1c8aac1532b43323e1891c423fe78f2813
refs/heads/master
2021-01-04T12:31:18.018508
2020-02-14T16:29:27
2020-02-14T16:29:27
240,550,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,633
py
def init_session(request, user): # 在session中注册用户 ID request.session["user_id"] = user.pk # 方法1 # # 查询当前用户登陆的所有权限 distinct(去重) # permission = user.roles.all().values("permissions__url").distinct() # permission_list = [] # for item in permission: # permission_list.append(item["perm...
[ "870670791@qq.com" ]
870670791@qq.com
7609d8654867171cc043ee30d5b4edc4ba5d48f2
ed8db15dad4236ada32c0355e032dc996266a271
/Advance_Python/8. Inheritance/4. ConstructorOverriding.py
207ba7b1ce97664ee242397920676842b2750dc9
[]
no_license
mukund1985/Python-Tutotrial
a01e0c3ea77690c23c6f30ba1a157c450e5a53ed
bfcf0c81029ce2bee4aa855d90661df25cc94ef9
refs/heads/master
2021-05-21T15:41:18.018660
2020-11-04T02:20:30
2020-11-04T02:20:30
309,857,690
1
0
null
2020-11-04T02:14:37
2020-11-04T02:11:38
Python
UTF-8
Python
false
false
468
py
# Constructor Overriding class Father: # Parent Class def __init__(self): self.money = 1000 print("Father Class Constructor") def show(self): print("Father Class Instance Method") class Son(Father): # Child Class def __init__(self): self.money = 5000 self.car = 'BMW' print("...
[ "mukund.pandey@gmail.com" ]
mukund.pandey@gmail.com
bacf596e1202013a98cc40f7d2940d69b8a2e216
afa0d5a97925273f7fb0befef697d36020df5787
/packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1_generated_alloy_db_admin_get_cluster_sync.py
eb296f332c1d78fa23a91559a1674b1100657a4a
[ "Apache-2.0" ]
permissive
scooter4j/google-cloud-python
dc7ae1ba6a33a62a40b617b806ec8ed723046b8b
36b1cf08092d5c07c5971bb46edda7a9928166b1
refs/heads/master
2023-04-14T18:36:48.643436
2023-04-06T13:19:26
2023-04-06T13:19:26
188,338,673
0
0
null
2019-05-24T02:27:15
2019-05-24T02:27:14
null
UTF-8
Python
false
false
1,805
py
# -*- coding: utf-8 -*- # Copyright 2022 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...
[ "noreply@github.com" ]
scooter4j.noreply@github.com
ba83ffc60ad253aed46ec0172ef01d949a01742e
57ddab24ba7860f8878c689f9fa22b0779d60157
/categorias/iniciante/uri1051.py
cb688fa9eb809d54eefeb058ecb54ada5c421f65
[]
no_license
matheusfelipeog/uri-judge
ba1d32e50ad7239b331ad0e1181a1bffc6e61b41
0232be52da78fd67261c6d6a74eff3267d423afd
refs/heads/master
2021-07-03T02:32:13.395829
2021-01-29T18:32:35
2021-01-29T18:32:35
215,845,427
2
0
null
null
null
null
UTF-8
Python
false
false
488
py
# -*- coding: utf-8 -*- salario = float(input()) if 0.0 <= salario <= 2000.00: print('Isento') elif 2000.01 <= salario <= 3000.00: imposto = ((salario - 2000) * 0.08) print('R$ {:.2f}'.format(imposto)) elif 3000.01 <= salario <= 4500.00: imposto = (1000 * 0.08) + ((salario - 3000) * 0.18) pri...
[ "50463866+matheusfelipeog@users.noreply.github.com" ]
50463866+matheusfelipeog@users.noreply.github.com
dba98931ab1055fbc8aa7f09f7f007a014124723
687928e5bc8d5cf68d543005bb24c862460edcfc
/nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.py
465c32d9a481652819921910b414eaf9319e4bd3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
mbs91/nitro
c6c81665d6abd04de8b9f09554e5e8e541f4a2b8
be74e1e177f5c205c16126bc9b023f2348788409
refs/heads/master
2021-05-29T19:24:04.520762
2015-06-26T02:03:09
2015-06-26T02:03:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,123
py
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "bensassimaha@gmail.com" ]
bensassimaha@gmail.com
568adf917a33a914cba15a49c8c76eec78d9e70c
8fa8ded3772dd7a124c1bbb91fc109ed2b63574b
/mycelium/apps/data_import/ajax_backends.py
1db6a810c321f46ba03880b7a3f42cb1ee69194c
[]
no_license
skoczen/mycelium
3642b0f5e5ea03d609a3e499c7ad68092101dce0
da0f169163f4dc93e2dc2b0d934abf4f18c18af0
refs/heads/master
2020-04-10T09:21:46.893254
2014-05-20T02:27:06
2014-05-20T02:27:06
2,114,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,301
py
from ajaxuploader.backends.s3 import S3UploadBackend from django.core.files.storage import default_storage from spreadsheets.spreadsheet import SpreadsheetAbstraction import time class DataImportUploadBackend(S3UploadBackend): def update_filename(self, request, filename): return "import/%s/%s.%s" % (reques...
[ "steven@quantumimagery.com" ]
steven@quantumimagery.com
53d7a1c756ba1e532f3b3fc6092768370b3a8b40
8eac548c15cdabeb662c9af2ca67994f92c255ee
/词性标注&词性提取/Word_Marking_test.py
75c73dfd2590d58fbea3ac14a141dd71b9fe05c0
[]
no_license
yaolinxia/Chinese-word-segmentation
f7de7317509dc7ed53bb40e5a1367206bd36abc1
42d619ec838fe2f8c98822b15c69c640972b984e
refs/heads/master
2021-07-06T19:52:58.916128
2019-04-15T14:08:54
2019-04-15T14:08:54
117,522,537
2
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ #1.先分好词,存在一个字符数组里面 #2.遍历字符数组,进行词性标注 import sys import glob import os import xml.dom.minidom import jieba import jieba.posseg as pseg #遍历某个文件夹下所有xml文件,path为存放xml的文件夹路径 #词性标注 def WorkMark(path): #textCut=jieba.cut(text,cut_all=False) #词性标注 with open(path, encodin...
[ "18860976931@163.com" ]
18860976931@163.com
9c12bac03eea6ed28261ea89f8c3810743a52f26
2ca88d41f1bb5042338faec50b2af11931db0bdd
/src/gluonts/nursery/tsbench/src/cli/analysis/__init__.py
b939423a365224aa385b570ac9ecec6deacdf291
[ "Apache-2.0" ]
permissive
canerturkmen/gluon-ts
2f2d46f9b01f5ee07a51a11e822b1c72c2475caa
57ae07f571ff123eac04af077870c1f216f99d5c
refs/heads/master
2022-09-10T23:30:26.162245
2022-04-20T12:44:01
2022-04-20T12:44:01
192,873,578
1
2
Apache-2.0
2020-08-04T16:58:48
2019-06-20T07:43:07
Python
UTF-8
Python
false
false
848
py
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
[ "noreply@github.com" ]
canerturkmen.noreply@github.com
94ef7ad99668a3d0c890a8be2fd256bf28ab9194
1b8530ef1c108e098edfa3755e96824b31d4a2ad
/scripts/fixup_recommender_v1beta1_keywords.py
c0fe44525fc4175047ea2372ca698f42c4445c7e
[ "Apache-2.0" ]
permissive
renovate-bot/python-recommender
4b3d0b9e0332eab0f71bd044a6832b67fe6827fa
d0ff05f566d2a7bfe6c9f403252a833fe4bb776b
refs/heads/master
2023-06-08T00:27:33.316110
2021-08-18T13:40:32
2021-08-18T13:40:32
239,139,952
0
0
Apache-2.0
2020-02-08T13:52:09
2020-02-08T13:52:08
null
UTF-8
Python
false
false
6,468
py
#! /usr/bin/env python3 # -*- 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 requi...
[ "noreply@github.com" ]
renovate-bot.noreply@github.com
ebbfa4ce3921743a2cac5d388e06a808086b00de
71cc62fe3fec8441794a725b7ce3037dc2723107
/ifreewallpapers/apps/profile/views/profileviews.py
71d4bc4644c89e4257d2ab7d6120ca761ceb5375
[]
no_license
tooxie/django-ifreewallpapers
bda676dc5a6c45329ad6763862fe696b3e0c354b
75d8f41a4c6aec5c1091203823c824c4223674a6
refs/heads/master
2020-05-21T12:50:36.907948
2011-01-19T04:28:33
2011-01-19T04:28:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
# coding=UTF-8 from profile.models import Profile # from profile import settings as _settings from utils.decorators import render_response to_response = render_response('profile/') # from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User # from django.core.urlresolvers i...
[ "alvaro@mourino.net" ]
alvaro@mourino.net
742c4ddf5eaa9d24d8ab85cf042455635e024227
ff692d927c95f7337339599d523f986f720449f5
/plugins/init.py
692fec3901386220bb48bf4cea4ae5a20c1c2897
[]
no_license
mwesterhof/pyjeeves
de567966636954aed7d88a5d51e74df85feeaba3
46b35f56056603330f7636a745e13fa045c884f1
refs/heads/master
2022-12-16T11:11:06.276555
2019-08-09T09:10:21
2019-08-09T09:10:21
296,265,384
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
import os from plugin import BasePlugin class Plugin(BasePlugin): ''' Initialize an HQ in the current directory ''' def run_command(self, args): print('creating jeeves headquarters in {0}'.format(os.getcwd())) os.makedirs('.jeeves')
[ "m.westerhof@lukkien.com" ]
m.westerhof@lukkien.com
eeb6eb58ee42c5bc5f72743af750f3d566f3361e
aaa204ad7f134b526593c785eaa739bff9fc4d2a
/tests/providers/amazon/aws/hooks/test_glacier.py
4ed3f6aaa2e24f18b4e5a28d34007275140c31de
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
cfei18/incubator-airflow
913b40efa3d9f1fdfc5e299ce2693492c9a92dd4
ffb2078eb5546420864229cdc6ee361f89cab7bd
refs/heads/master
2022-09-28T14:44:04.250367
2022-09-19T16:50:23
2022-09-19T16:50:23
88,665,367
0
1
Apache-2.0
2021-02-05T16:29:42
2017-04-18T20:00:03
Python
UTF-8
Python
false
false
5,075
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
cfei18.noreply@github.com
59655e6a2e6c1bf1df975866337b053b89e1ae57
111866dd2150170e90e3717df008aa703d7ef30c
/filemanager/domain/__init__.py
7f428c6590b0064d5266fb7018c0cdcc07f789b4
[]
no_license
arXiv/arxiv-filemanager
106c572a6551445a2109c279ce086b7c96a0bcd5
dfb71a40125324b1c1f4eb865c84cd9d2e512e6c
refs/heads/develop
2023-04-18T09:45:35.338067
2020-03-09T14:59:19
2020-03-09T14:59:19
113,456,994
5
6
null
2022-12-08T05:50:07
2017-12-07T13:55:34
PostScript
UTF-8
Python
false
false
388
py
"""Core concepts and constraints of the file manager service.""" from .uploads import UserFile, Workspace, IChecker, SourceLog, SourceType, \ IStorageAdapter, SourcePackage, ICheckableWorkspace, Readiness, \ Status, LockState from .file_type import FileType from .uploads import ICheckingStrategy from .error im...
[ "brp53@cornell.edu" ]
brp53@cornell.edu
7adeb154143a4cfd6b5b6ee2b93edaf9c86afaa2
b526aecc3aeb35c0931339ede80397f8f1561fbc
/src/dascasi/__init__.py
b262c04aa7f3b2df6609d02475bf132c1456c87d
[ "Apache-2.0" ]
permissive
space-physics/dascasi
30e021976529dfc4072ea96181db8d9d1921a07c
4d72aa91e471a495566044c3fc387344dd12461f
refs/heads/main
2023-04-17T09:24:22.325605
2023-03-21T02:18:44
2023-03-21T02:30:15
51,016,067
1
1
null
null
null
null
UTF-8
Python
false
false
768
py
# Copyright 2023 SciVision, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
[ "scivision@users.noreply.github.com" ]
scivision@users.noreply.github.com
e726984d4019bc6974ee4b2702b243d18c0669f7
73758dde83d1a1823c103e1a4ba71e7c95168f71
/nsd2006/devops/day02/local_mail.py
3533d97f07484696810b548f9f0931ac688dde15
[]
no_license
tonggh220/md_5_nsd_notes
07ffdee7c23963a7a461f2a2340143b0e97bd9e1
a58a021ad4c7fbdf7df327424dc518f4044c5116
refs/heads/master
2023-07-02T01:34:38.798929
2021-05-12T08:48:40
2021-05-12T08:48:40
393,885,415
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from email.mime.text import MIMEText from email.header import Header import smtplib # 准备邮件, plain表示纯文本 message = MIMEText("python local email test.\n", 'plain', 'utf8') # 正文 message['From'] = Header('root', 'utf8') message['To'] = Header('zhangsan', 'utf8') message['Subject'] = Header('py test', 'utf8') # 发送邮件 smtp ...
[ "zhangzg@tedu.cn" ]
zhangzg@tedu.cn
aacc2ade3e3b635267e0895250241964852a07f3
51b20543e5ed606636bcde9fba329e5fa948de2e
/communityprofiles/census/remote_file.py
2bab92682c5bab5ea49d416570d119d3a9aaa99d
[ "MIT" ]
permissive
216software/Profiles
b821112225e8522b7b558cab87ae1c12c68c653b
651da880a3d4295243205bdae4de88504edc91de
refs/heads/dev
2023-03-16T04:49:01.389186
2023-03-09T17:04:04
2023-03-09T17:04:04
59,139,518
3
0
null
2016-05-18T18:02:53
2016-05-18T18:02:53
null
UTF-8
Python
false
false
3,612
py
# for RemoteFileObject from os import SEEK_SET, SEEK_CUR, SEEK_END from time import time from datetime import timedelta from urlparse import urlparse, urljoin from cStringIO import StringIO from httplib import HTTPConnection from urllib import urlopen from zipfile import ZipFile from itertools import izip class Remot...
[ "asmedrano@gmail.com" ]
asmedrano@gmail.com
7058f2f37989ff337436d6ecf89c51ed574d82ee
7f33c02743fbfd18726ffef08924f528354372dd
/Python_Projects/python3_selfstudy/priklady_z_knihy/k04/digit_names.py
1167be7a4ec6d9440194cb8be9928866a345010e
[]
no_license
zabojnikp/study
a524eb9c2265a73e1db0b5f0e76b359c123a397b
43424bfc6641cd8fa13ab119ce283fb460b4ffc1
refs/heads/master
2020-04-06T14:21:55.786353
2018-11-27T22:10:48
2018-11-27T22:10:48
157,538,244
0
0
null
2018-11-27T22:10:49
2018-11-14T11:24:20
Python
UTF-8
Python
false
false
1,390
py
#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) an...
[ "zabojnikova.petra@gmail.com" ]
zabojnikova.petra@gmail.com
8b20ab0b23ca75e102d3f7c1bd8017bf3ac1b485
22dcbf9595c28279b681caac26e43113ce75de5c
/automl/cloud-client/import_dataset_test.py
35d23edc7e8fc745ed598a895c037a49b9cc7f90
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
jerry-enebeli/python-docs-samples
2e61672e9819405733c94ef824ba0b0f92b3e930
0d78724126ce25dd6203cfd2ee3467b88e5c27b9
refs/heads/master
2022-12-12T18:05:16.899492
2020-09-01T22:35:40
2020-09-01T22:35:40
292,189,370
1
0
Apache-2.0
2020-09-02T05:39:23
2020-09-02T05:39:22
null
UTF-8
Python
false
false
1,497
py
# 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 agreed to in writing, s...
[ "noreply@github.com" ]
jerry-enebeli.noreply@github.com
e658bf448865024182e1f4fcc107da7498d979d6
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_sponging.py
3002cc59058a485eaef0fe654fc8482c1eaff6ca
[ "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
224
py
#calss header class _SPONGING(): def __init__(self,): self.name = "SPONGING" self.definitions = sponge self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sponge']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
eb5007714d3e169fc67ff7de612d97edbdde15ae
ca805265bbc8d9b3f5ccb8dd343524843fc0f776
/scaling/commands/bench_results_processer.py
d94add1e14ef3dfdd535d410b4a504c6f1e7200a
[]
no_license
alenzhao/QIIME-Scaling
8dc7b4b99da404c016e59e48197b8f938df1cf14
29408a3a0ff2a74039f78a04fff831dabb23fa1a
refs/heads/master
2021-01-12T10:46:22.961035
2016-06-18T16:56:48
2016-06-18T16:56:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,825
py
#!/usr/bin/env python from __future__ import division __author__ = "Jose Antonio Navas Molina" __copyright__ = "Copyright 2013, The QIIME Scaling Project" __credits__ = ["Jose Antonio Navas Molina"] __license__ = "BSD" __version__ = "0.0.2-dev" __maintainer__ = "Jose Antonio Navas Molina" __email__ = "josenavasmolina@...
[ "josenavasmolina@gmail.com" ]
josenavasmolina@gmail.com
0d3e7da7d35dc0e85ff5002ba1b008ceca4e07f2
d489eb7998aa09e17ce8d8aef085a65f799e6a02
/lib/modules/powershell/situational_awareness/network/powerview/share_finder.py
b7eb7430bb04ecd40ca90099bbefd0f114040073
[ "MIT" ]
permissive
fengjixuchui/invader
d36078bbef3d740f95930d9896b2d7dd7227474c
68153dafbe25e7bb821c8545952d0cc15ae35a3e
refs/heads/master
2020-07-21T19:45:10.479388
2019-09-26T11:32:38
2019-09-26T11:32:38
206,958,809
2
1
MIT
2019-09-26T11:32:39
2019-09-07T11:32:17
PowerShell
UTF-8
Python
false
false
6,300
py
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Find-DomainShare', 'Author': ['@harmj0y'], 'Description': ('Finds shares on machines in the domain. Part of PowerView.'), 'Background' : True, ...
[ "noreply@github.com" ]
fengjixuchui.noreply@github.com
fa1ad882fd1595df3715ec3227356ed30c4c6017
fc212767c6c838360b62a3dcd8030a1dfcbf62fc
/muddery/utils/quest_handler.py
7d19069f731f83b3001d9318edf55756332a4a5f
[ "BSD-3-Clause" ]
permissive
caibingcheng/muddery
24d6eba76358621736e6a3d66333361239c35472
dcbf55f4e1c18a2c69576fd0edcec4699c1519b9
refs/heads/master
2021-05-19T09:49:19.319735
2020-03-29T03:55:51
2020-03-29T03:55:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,984
py
""" QuestHandler handles a character's quests. """ from django.conf import settings from django.apps import apps from django.core.exceptions import ObjectDoesNotExist from evennia.utils import logger from muddery.utils.builder import build_object from muddery.statements.statement_handler import STATEMENT_HANDLER from ...
[ "luyijun999@gmail.com" ]
luyijun999@gmail.com
96c76ae94d06dfc58e6363603425d800499d1a75
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/ml/azure-ai-ml/azure/ai/ml/identity/_internal/pipeline.py
66a31affbd4140ddaf931c75a2cb7069bbb5a312
[ "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", "HPND", "ODbL-1.0", "GPL-3.0-only", "Z...
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
2,585
py
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from azure.ai.ml._user_agent import USER_AGENT from azure.core.configuration import Configuration from azure.core.pipeline import Pipeline ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
e1a369dc2579d3d7f7b2687df356ca92d408e5ca
6699b8944b71e86725fdc17bb5f9cd69e254b4eb
/leetcode/1448.count-good-nodes-in-binary-tree/solution.py
93c087524ccb57bbc8d3bb206aa6f474859f9b57
[]
no_license
jadesym/interview
6099e663090408f548b4f4b0b17ae90bb60a7d46
5b6eecedfa1c7e496bcfe852e2d3896e993ff16e
refs/heads/main
2023-01-07T21:56:59.063542
2022-12-30T20:13:34
2022-12-30T20:13:34
41,118,644
7
2
null
null
null
null
UTF-8
Python
false
false
794
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def goodNodes(self, root: TreeNode) -> int: startMax = -(10 ** 5) return self.dfs(root, star...
[ "kfu@kfu-mn1.linkedin.biz" ]
kfu@kfu-mn1.linkedin.biz
4c2902a924d3a9a14d643a543c10bb7afec70217
e043f008aaec14e006051c7609748729a78bef90
/tests/test_falconparser.py
e56ce14595d4071e3f0f9eb1c42050f17872770b
[ "MIT" ]
permissive
DamianHeard/webargs
723f38789ae4be61247da2a94ab590e11c808da7
4bba0bb4ca7bef3d0c53fab8f9af632e9653b2ed
refs/heads/dev
2021-01-18T00:25:58.792302
2015-11-09T02:07:52
2015-11-09T02:07:52
45,103,859
0
0
null
2015-10-28T10:05:39
2015-10-28T10:05:39
null
UTF-8
Python
false
false
4,147
py
# -*- coding: utf-8 -*- import json import pytest import falcon import webtest from webargs import fields from webargs.falconparser import parser, use_args, use_kwargs def use_args_hook(args, context_key='args', **kwargs): def hook(req, resp, params): parsed_args = parser.parse(args, req=req, **kwargs) ...
[ "sloria1@gmail.com" ]
sloria1@gmail.com
8e55286d2adba619b99dc413e3201836767bb789
a88a99fb3f754649db06ad86d22b5cb0d2d1e19c
/scholariumat/users/migrations/0005_auto_20181125_1759.py
37e390c09b8e19e06e7d8ed6a47ff1bf93ab1a89
[ "MIT" ]
permissive
valuehack/scholariumat
91ec59647948759d917ce7077d06b0aa9618c807
47c13f3429b95b9ad5ca59b45cf971895260bb5c
refs/heads/master
2022-12-07T22:20:23.967854
2020-04-09T22:05:52
2020-04-09T22:05:52
135,466,121
0
3
MIT
2022-12-06T18:38:22
2018-05-30T15:55:14
JavaScript
UTF-8
Python
false
false
540
py
# Generated by Django 2.0.9 on 2018-11-25 16:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20181120_1929'), ] operations = [ migrations.RenameField( model_name='profile', old_name='name', ...
[ "merlin.buczek@gmail.com" ]
merlin.buczek@gmail.com
a2156bc789a1d722ae16fc02c3016a476e85d470
41a4ef26cf3b4710dfa6fe3f1e88a935bb909654
/utils/logger.py
5a8cecd51025f9a4557d25d6b86232b0ad7b72a8
[]
no_license
little-alexandra/attention_ocr
c6c0846342f947bbb8697f99e02cdd5ce2c276c2
475273573ae02efe1c7c1ba3905939580d26876e
refs/heads/master
2020-11-30T10:01:52.232714
2019-12-18T09:35:08
2019-12-18T09:35:08
230,371,558
1
0
null
2019-12-27T04:13:46
2019-12-27T04:13:45
null
UTF-8
Python
false
false
1,463
py
import logging import time import os from logging import handlers import datetime import tensorflow as tf debug=True def _p(tensor,msg): if (debug): dt = datetime.datetime.now().strftime('TF_DEBUG: %m-%d %H:%M:%S: ') msg = dt + msg return tf.Print(tensor, [tensor], msg,summarize= 100) ...
[ "piginzoo@gmail.com" ]
piginzoo@gmail.com
9e3769ed23384bf504e6dc9a8a92c51ee8651186
d5ad13232e3f1ced55f6956bc4cbda87925c8085
/cc_mcc_seq/coverage/coverage_stat/1_coverage_stat.py
495a50838e4e7cb74a40295b588b592c6c6f5ef4
[]
no_license
arvin580/SIBS
c0ba9a8a41f59cb333517c286f7d80300b9501a2
0cc2378bf62359ec068336ea4de16d081d0f58a4
refs/heads/master
2021-01-23T21:57:35.658443
2015-04-09T23:11:34
2015-04-09T23:11:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
chr=['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY'] for sample in range(3,13) : for ch in chr : inFile=open('../fudan1.coverage') list1=list() for line in ...
[ "sunhanice@gmail.com" ]
sunhanice@gmail.com
2f0c21da46fc0a27a43c211905c51a9b98e78cad
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/resources/types/campaign_criterion_simulation.py
b270fa50fac0d5f5919e4dcac9d75a76b8179a43
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,103
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
f7ca419508798f1929999e5cb30894c192fb6861
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/70/usersdata/164/36211/submittedfiles/impedimento.py
d16709d5193363df8e0a3b6b23963d9cbe92b2b9
[]
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
253
py
# -*- coding: utf-8 -*- import math #COMECE SEU CÓDIGO AQUI L=int(input('Digite a posição de L: ')) R=int(input('Digite a posição de R: ')) D=int(input('Digite a posição de D: ')) if (R>50) and (L<R) and (R>D): print('S') else: print('N')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f1bdea1ca514039345f8ed87d738ee50d65e70be
eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6
/ccpnmr2.4/python/ccp/format/ansig/sequenceIO.py
c11cb240aad4a5e8c13d21ebc8b1168fd7d87865
[]
no_license
edbrooksbank/ccpnmr2.4
cfecb0896dcf8978d796e6327f7e05a3f233a921
f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c
refs/heads/master
2021-06-30T22:29:44.043951
2019-03-20T15:01:09
2019-03-20T15:01:09
176,757,815
0
1
null
2020-07-24T14:40:26
2019-03-20T14:59:23
HTML
UTF-8
Python
false
false
5,597
py
""" ======================COPYRIGHT/LICENSE START========================== sequenceIO.py: I/O for Ansig sequence files Copyright (C) 2005-2009 Wim Vranken (European Bioinformatics Institute) ======================================================================= This library is free software; you can redistribute ...
[ "ejb66@le.ac.uk" ]
ejb66@le.ac.uk
a9dcfe05f4c4e478e4587c722f15febc52961ea1
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_welded.py
9d8c71c76ac244c69252e3e58618cb575c8c845f
[ "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
216
py
#calss header class _WELDED(): def __init__(self,): self.name = "WELDED" self.definitions = weld self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['weld']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
3e436904f0f2dde6f5b4715e4ef0bab9ee10fb76
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/43.py
066bc53d2e703644911d495cf32ef62e7768e710
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
# Time: O((logn)^2) # Space: O(logn) def tidy_numbers(): digits = map(int, list(raw_input().strip())) for i in reversed(xrange(1, len(digits))): if digits[i] == 0 or digits[i] < digits[i-1]: for j in xrange(i, len(digits)): digits[j] = 9 for j in reversed(xrange...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
7e2178bbaea5a74da95f3e91c473d6314be0c123
53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61
/.history/EMR/EMRryzd_1_20190410143150.py
447c8d147b75b36af2f0e17929c25c3b55f8321c
[]
no_license
cyc19950621/python
4add54894dc81187211aa8d45e5115903b69a182
d184b83e73334a37d413306d3694e14a19580cb0
refs/heads/master
2020-04-11T20:39:34.641303
2019-07-02T12:54:49
2019-07-02T12:54:49
162,078,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,494
py
#-*- coding: UTF-8 -*- #本文件用于提取目标目录中的所有txt,并提取关键词所在行到指定目录,并提取关键词新建文件 import time import math import os import sys import os, os.path,shutil import codecs import EMRdef import re emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR')#txt目录提取 zljhs = [] for emrtxt in emrtxts: f = open(emrtxt,'r',errors="ignore")#中文加入e...
[ "1044801968@qq.com" ]
1044801968@qq.com
b3091967ca2295a42f480875d29c9828ca79c371
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
/Leetcode/594. Longest Harmonious Subsequence.py
ce388e0d7f6aef49ca1706ff198232b0568caac0
[]
no_license
xiaohuanlin/Algorithms
bd48caacb08295fc5756acdac609be78e143a760
157cbaeeff74130e5105e58a6b4cdf66403a8a6f
refs/heads/master
2023-08-09T05:18:06.221485
2023-08-08T11:53:15
2023-08-08T11:53:15
131,491,056
1
0
null
null
null
null
UTF-8
Python
false
false
1,487
py
''' We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer array, you need to find the length of its longest harmonious subsequence among all its possible subsequences. Example 1: Input: [1,3,2,2,5,2,3,7] Output: 5 Explanation...
[ "derek.xiao@loftk.us" ]
derek.xiao@loftk.us
f56ec2e37f5245dcb7f44bca1b5244795ec53b15
3185dc605853fdaf942fd06e206225793b198638
/剑指offer/No33_二叉搜索树的后序遍历.py
3f91cd02bac6390558ce1f02fee1723e7f138edf
[]
no_license
fank-cd/books_exercise_code
cb81ee8ec8167a5f5e3bfc58d3c1d6d931ca9286
1e8109adb82f741df1203658d4bf272f09a651b8
refs/heads/master
2021-07-11T01:15:11.980179
2020-06-29T04:01:53
2020-06-29T04:01:53
156,671,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
# 题目:输入一个整数数组,判断该数组是不是某二叉搜索 # 树的后序遍历结果。如果是则返回true,否则返回false。 # 假设输入的数组的任意两个数字都不相同。 # 后续遍历:左右根 # 思路:最后一位是根节点,比根节点小的是左子树,大的是右子树 def verify_sequence_of_BST(sequence): if not isinstance(sequence, list) or len(sequence) == 0: return False root = sequence[-1] # 根节点 for index, element in enumerate(sequ...
[ "2464512446@qq.com" ]
2464512446@qq.com
7b44dc1ca5547e96f889aa391f271ffc1af3a36b
f77b0f2cc709b9670e6b4dc7145a6ea5368585d2
/project/services/__init__.py
db39b8c13a29c94642f59828bc1ba56e2a186ac3
[]
no_license
sgammon/StonerHub
45ccac6bd349200bbc75c494002c3ffeb082dcb8
a81f7fdd2c7118c6cea3c25ef9f53f272d27b0cc
refs/heads/master
2021-01-20T10:54:47.546251
2011-11-07T12:02:20
2011-11-07T12:02:20
2,664,437
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
# -*- coding: utf-8 -*- from apptools import BaseService import protorpc from protorpc import remote from protorpc import messages from protorpc import message_types class RemoteService(BaseService): pass
[ "sgammon@bluestatedigital.com" ]
sgammon@bluestatedigital.com
3081ad286ed7ba0b6f961edb970e6c68a711da17
43c5eafff817c3b130d8b4ec16c992d86208500c
/lino_avanti/lib/tickets/models.py
d831bc25bd9a0efddf3a6883c015383e6dfc9eaa
[ "BSD-2-Clause" ]
permissive
khchine5/avanti
a8b9e9e75ac593a00b11ffa5bd5cfd00f06db6c0
5a5f9d1ddfa20ae0eb8fa33cb906daf78d9568b1
refs/heads/master
2021-01-11T17:29:16.012089
2018-08-23T05:46:52
2018-08-23T05:46:52
79,784,948
0
0
BSD-2-Clause
2018-08-19T12:28:12
2017-01-23T08:28:46
Python
UTF-8
Python
false
false
1,287
py
# -*- coding: UTF-8 -*- # Copyright 2016-2017 Luc Saffre # License: BSD (see file COPYING for details) from lino_xl.lib.tickets.models import * from lino.api import _ Ticket.hide_elements('closed') # class Ticket(Ticket): # class Meta(Ticket.Meta): # app_label = 'tickets' # abstract = dd.is_abstr...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
020682c50ddf142dd210fcb7c0c287518d456cfd
f62fd455e593a7ad203a5c268e23129473d968b6
/python-watcher-1.0.1/watcher/api/controllers/v1/__init__.py
16279551e21185f3c32f42077fb0cddb05a9009b
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
MinbinGong/OpenStack-Ocata
5d17bcd47a46d48ff9e71e2055f667836174242f
8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3
refs/heads/master
2021-06-23T05:24:37.799927
2017-08-14T04:33:05
2017-08-14T04:33:05
99,709,985
0
2
null
2020-07-22T22:06:22
2017-08-08T15:48:44
Python
UTF-8
Python
false
false
7,004
py
# -*- encoding: utf-8 -*- # # 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, soft...
[ "gongwayne@hotmail.com" ]
gongwayne@hotmail.com
bc9c483d2db8d0a17d8feb2d6bf122ae4ee9d04a
3e2addcbdbccf688abfe3c653cc9bc8a57255fbb
/subword/get_vocab.py
7b71bf7f0609c1cf9f676db9398ec067465c9e32
[ "MIT" ]
permissive
Germey/TextSummarization
3ffb01401051642c579d7ce6b169a41fca4b48d2
ffe221eea45838fbc2e12cd30e51fa48cf2ed070
refs/heads/master
2021-04-06T15:00:20.288387
2020-01-29T03:33:53
2020-01-29T03:33:53
124,391,071
1
1
null
2020-09-25T18:50:12
2018-03-08T12:52:25
Python
UTF-8
Python
false
false
320
py
#! /usr/bin/env python from __future__ import print_function import sys from collections import Counter c = Counter() for line in sys.stdin: for word in line.strip().split(' '): if word: c[word] += 1 for key,f in sorted(c.items(), key=lambda x: x[1], reverse=True): print(key+" "+ str(f))
[ "cqc@cuiqingcai.com" ]
cqc@cuiqingcai.com
75e25c09247507829e56bc9b21b111cf87fc5c63
6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8
/algorithms/algorithms-python/leetcode/Question_0050_Pow_x_n.py
e16603e02ca49194c4b65741a35009f0423d53c7
[]
no_license
Lanceolata/code
aae54af632a212c878ce45b11dab919bba55bcb3
f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb
refs/heads/master
2022-09-01T04:26:56.190829
2021-07-29T05:14:40
2021-07-29T05:14:40
87,202,214
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
#!/usr/bin/python # coding: utf-8 class Solution(object): def myPow(self, x, n): """ :type x: float :type n: int :rtype: float """ if n < 0: return 1 / x * 1 / self.myPow(x, -(n + 1)) elif n == 0: return 1.0 elif n == 1: ...
[ "lanceolatayuan@gmail.com" ]
lanceolatayuan@gmail.com
5773aa56ca5ed8607d8fc9025b01c63b5333b19c
199115509359d0849d9debb12db4eced6081dbed
/emotion_chatbot/speechtotext.py
6394875fcb7f550ba787d59f0aea71ef9c1de8ee
[]
no_license
Sapphirine/202005-1-EmotionRecognitionsystem
1ea1df3ddcd43bf5b25e76b534c75778a8d8b921
ca4efb89ed762f16202476d39314051cf12a1b7e
refs/heads/master
2022-08-29T20:00:21.097719
2020-05-16T05:05:11
2020-05-16T05:05:11
264,354,185
0
1
null
null
null
null
UTF-8
Python
false
false
808
py
import speech_recognition as sr import pyaudio import audioop import os import math from os import system import threading def transcribe_audio(): with sr.Microphone() as source: # read the audio data from the default microphone r = sr.Recognizer() #print("Chatbot : Hey! How can I help?") ...
[ "noreply@github.com" ]
Sapphirine.noreply@github.com
e90d3914edcfc23c1e31112856f99c98b766538b
a450d455fc1da6f3a89eebb562cc2fb28784b129
/docs/conf.py
36714ac69f1de680f841bad04edc215e5a835504
[ "MIT" ]
permissive
hawkthorne/bearweb
6c62e0143ab6a19bee6cf340dfec81664f201dcb
1533acd9c7610d9ea01e8413853cca70843b9d63
refs/heads/master
2021-05-28T05:54:55.533462
2014-03-16T23:12:01
2014-03-16T23:12:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,778
py
# -*- coding: utf-8 -*- # # stackmachine documentation build configuration file, created by # sphinx-quickstart on Sun Feb 17 11:46:20 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
[ "kyle@kyleconroy.com" ]
kyle@kyleconroy.com
dfdafec9f08b465c99582efafef3c5f0429c748a
70c10c5eeeb038d87841289f109775a9ec5ddc9b
/Day8/thread_lock.py
ab3ea522b2969168d19431f244cdd1e35f9d5c6c
[]
no_license
chenshuo666/pythonWell
a68fdae5fab891dd235c7656892ac85eaf9163c5
ae4cd795c5cf925830b5f7df8c7668bec5b2904c
refs/heads/master
2022-12-09T21:35:00.343591
2018-09-10T06:04:45
2018-09-10T06:04:45
130,060,002
1
0
null
2022-12-08T00:44:33
2018-04-18T12:38:02
JavaScript
UTF-8
Python
false
false
431
py
#!/usr/bin/python #-*- coding:utf-8 -*- # Author:Sebastian Williams import time import threading lock=threading.RLock() num=0 def run(n): lock.acquire() global num num+=1 lock.release() t_obj=[] for i in range(50): t=threading.Thread(target=run,args=("t-%s"%i,)) t.setDaemon(True) #将当前线程设置成守...
[ "929387146@qq.com" ]
929387146@qq.com
e8f740e26272bafd38b053bb5e8e1737f5b16837
d62863d049c0206bfa744ca4c9e886030bfce1ab
/apps/sw_shop/sw_order/views.py
2eb7cbc57083cb103a5b7c6b5f867553d8a37e5f
[]
no_license
jurgeon018/box
51738b99e640202936ed72357d3c67d2517e589b
50b84a0afa73fab85a00eef54194f3c126d15397
refs/heads/master
2021-07-17T13:37:08.665292
2020-10-15T09:50:33
2020-10-15T09:50:33
232,013,297
0
1
null
2020-03-27T02:16:44
2020-01-06T03:01:34
Python
UTF-8
Python
false
false
937
py
from django.shortcuts import render, redirect from .models import Payment, Order from box.core.sw_currency.models import Currency from django.http import JsonResponse def liqpay_callback(request): try: from box.apps.sw_payment.liqpay.utils import create_liqpay_transaction except: # except RuntimeError: ...
[ "jurgeon018@gmail.com" ]
jurgeon018@gmail.com
4609643ace645f4f97139036b9c90ce0a8d8ba63
a073e730e32b75f5d4e02f6bcf8defcaa9c5da97
/backend/fashion_candy_18064/settings.py
bba67dbee4f4084134baf664a6af612e2792240d
[]
no_license
crowdbotics-apps/fashion-candy-18064
a962d38c9cbc27a90428dda3f962edbb32b5e427
87b8ef7ce8c9e29c8b543cfc5b0a0af8191f52a8
refs/heads/master
2022-10-21T06:00:25.083275
2020-06-13T01:15:59
2020-06-13T01:15:59
271,917,534
0
0
null
null
null
null
UTF-8
Python
false
false
5,884
py
""" Django settings for fashion_candy_18064 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
7b285f649b01ce696d22c4fbd5cb8dae8b8d1286
e63a36870512edb7fd947b809631cf153b028997
/doc/source/conf.py
eed13ab7549cb2d023a203b106150682f25abb0b
[ "Apache-2.0" ]
permissive
titilambert/surveil
632c7e65d10e03c675d78f278822015346f5c47a
8feeb64e40ca2bd95ebd60506074192ecdf627b6
refs/heads/master
2020-05-25T13:36:59.708227
2015-06-29T14:07:07
2015-06-29T14:07:07
38,249,530
1
0
null
2015-06-29T13:38:04
2015-06-29T13:38:03
null
UTF-8
Python
false
false
2,531
py
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
[ "alexandre.viau@savoirfairelinux.com" ]
alexandre.viau@savoirfairelinux.com
d675945d9dcc0f99396a02cefb496fc58d518c2b
edb906c10790abc1eba4047bca557aa173616f10
/business/serializer.py
9c6d69a222cb016743cecfb85d7e3c1b365aab12
[]
no_license
Wakarende/neighbourhood
743d26ee76a79018865a15c523f390c35812b73c
29003acc8f760046a33f1b3313b5a016a007890d
refs/heads/master
2023-05-13T12:43:53.257053
2021-06-08T06:59:09
2021-06-08T06:59:09
373,812,884
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from rest_framework import serializers from .models import BusinessModel from django.db import models class BusinessSerializer(serializers.ModelSerializer): class Meta: model=BusinessModel fields='__all__'
[ "joykirii@gmail.com" ]
joykirii@gmail.com
54916cd6aef8b96949a3900348ef5e689648aa2c
1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5
/Repo/venv/Lib/site-packages/torch/utils/file_baton.py
d474bfb4a810ea042d978407b1239dea9dd3f8b9
[]
no_license
donhatkha/CS2225.CH1501
eebc854864dc6fe72a3650f640787de11d4e82b7
19d4dd3b11f8c9560d0d0a93882298637cacdc80
refs/heads/master
2023-07-19T13:27:17.862158
2021-02-08T07:19:05
2021-02-08T07:19:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,625
py
import os import sys import time if sys.version < '3.3': # Note(jiayq): in Python 2, FileExistsError is not defined and the # error manifests it as OSError. FileExistsError = OSError class FileBaton: '''A primitive, file-based synchronization utility.''' def __init__(self, lock_file...
[ "59596379+khado2359@users.noreply.github.com" ]
59596379+khado2359@users.noreply.github.com
894489a6d159e040d5ca697e4bb1fadf471b887c
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/_pytest/recwarn.py
753bfd18742651b338e79169aab68ed417785218
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
7,173
py
""" recording warnings during test function execution. """ import inspect import py import sys import warnings import pytest @pytest.yield_fixture def recwarn(request): """Return a WarningsRecorder instance that provides these methods: * ``pop(category=None)``: return last warning matching the ...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
b891c1b843660a251c2fc198054adab99dfba8ab
289bc4207b1c3efe3b99ac637d1ddfb88e28a5be
/Section05/debug_example.py
cdd21ee0a121d1d8cc04721135fa4e495be7ebd1
[ "MIT" ]
permissive
PacktPublishing/-Hands-on-Reinforcement-Learning-with-TensorFlow
f5e41ed9e218f721b179e0b1d9aaa3c27957d38a
6de9980db2bfc761524c27606e6495c093ddf516
refs/heads/master
2021-06-20T19:31:45.442884
2021-01-15T08:59:53
2021-01-15T08:59:53
145,985,316
11
3
null
null
null
null
UTF-8
Python
false
false
1,935
py
import numpy as np import tensorflow as tf from tensorflow.python import debug as tf_debug learning_rate = 0.01 num_epochs = 1000 train_X = np.asarray( [3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779, 6.182, 7.59, 2.167, 7.042, 10.791, 5.313, 7.997, 5.654, 9.27, 3.1]) train_Y = np.asarray( [1.7, 2.76, 2.09, 3....
[ "noreply@github.com" ]
PacktPublishing.noreply@github.com
cfc1119d27d112c18ef8a4cf62a55b777689fd7e
57775b4c245723078fd43abc35320cb16f0d4cb6
/Leetcode/hash-table/find-words-that-can-be-formed-by-characters.py
5d7dfafa4509bc65009744a92a838b98562774db
[]
no_license
farhapartex/code-ninja
1757a7292ac4cdcf1386fe31235d315a4895f072
168fdc915a4e3d3e4d6f051c798dee6ee64ea290
refs/heads/master
2020-07-31T16:10:43.329468
2020-06-18T07:00:34
2020-06-18T07:00:34
210,668,245
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
class Solution: def countCharacters(self, words: List[str], chars: str) -> int: n = 0 for word in words: y = chars flag = False for w in word: if w in y: y = y.replace(w,"",1) else: flag = Tru...
[ "farhapartex@gmail.com" ]
farhapartex@gmail.com
755a2aaad8acce2a42387f5c5739b2381f4c4253
8fe6a6790013eed7ca470414c398ea4848e798c4
/src/datasets.py
c9a59f9a12256e6e0655c82d503fc40b155f989a
[ "MIT" ]
permissive
sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data
d7aef30277076561c46d5f8a3d07985e09b9f13c
cb21c4c3e762a0184611b1a1659e7e730ef31932
refs/heads/master
2022-12-02T11:51:59.256715
2020-08-06T16:08:24
2020-08-06T16:08:24
284,756,098
3
0
null
2020-08-06T05:40:31
2020-08-03T16:53:09
Python
UTF-8
Python
false
false
2,345
py
import torch import json import os from torch.utils.data import Dataset, DataLoader from PIL import Image from utils import transform class PascalVOCDataset(Dataset): """ Custom dataset to load PascalVOC data as batches """ def __init__(self, data_folder, split): """ :param data_folder...
[ "sovitrath5@gmail.com" ]
sovitrath5@gmail.com
3c54d18e1ddff0980eaddc81064f2886f30343da
80052e0cbfe0214e4878d28eb52009ff3054fe58
/e2yun_addons/extra-addons/merp_picking_wave/wizard/message_wizard.py
0e5a598da22cd2017115952c6a2839e8fa5675d9
[]
no_license
xAlphaOmega/filelib
b022c86f9035106c24ba806e6ece5ea6e14f0e3a
af4d4b079041f279a74e786c1540ea8df2d6b2ac
refs/heads/master
2021-01-26T06:40:06.218774
2020-02-26T14:25:11
2020-02-26T14:25:11
243,349,887
0
2
null
2020-02-26T19:39:32
2020-02-26T19:39:31
null
UTF-8
Python
false
false
977
py
# Copyright 2019 VentorTech OU # Part of Ventor modules. See LICENSE file for full copyright and licensing details. from odoo import models, fields as oe_fields, api, _ class MessageWizard(models.TransientModel): _name = 'message.wizard' message = oe_fields.Text() @api.model def default_get(self, ...
[ "joytao.zhu@icloud.com" ]
joytao.zhu@icloud.com
8f53dfcc7f2f3305bc737e1491065fa5815c5aa6
660328cb139ce1f90da70dbe640df62bf79bcc61
/infra/src/stages/train_stage_base.py
05241ecd3f6f9cd28a02c5b6c310f1a38a27c433
[ "MIT-0" ]
permissive
cyrilhamidechi/amazon-frauddetector-mlops-multiaccount-cdk
0801f4b844bd9b8e80776748c1056db83c9023fb
379def0a571452b7920a9aaa56bccc2bfb39c523
refs/heads/main
2023-04-23T13:49:37.413348
2021-05-10T18:37:41
2021-05-10T18:37:41
366,139,181
0
0
NOASSERTION
2021-05-10T18:25:59
2021-05-10T18:25:58
null
UTF-8
Python
false
false
2,432
py
# *************************************************************************************** # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * # * # Permission is hereby granted, free of charge, to...
[ "aeg@amazon.com" ]
aeg@amazon.com
d65784b7ec0cdad3d8e2ac0b3c31ebe3e21c263e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_embassy.py
8c0f88ca692520c38a075b1fcc908e831280b60a
[ "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
397
py
#calss header class _EMBASSY(): def __init__(self,): self.name = "EMBASSY" self.definitions = [u'the group of people who represent their country in a foreign country: ', u'the building that these people work in: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.spe...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
57b68e4a74604876334affc613d1d972667cfbe0
c6431cdf572dd10f0f4d45839e6081124b246f90
/code/lc3.py
2ec290d3bc538c94abd8a7e80c92e02c5ff01e14
[]
no_license
bendanwwww/myleetcode
1ec0285ea19a213bc629e0e12fb8748146e26d3d
427846d2ad1578135ef92fd6549235f104f68998
refs/heads/master
2021-09-27T19:36:40.111456
2021-09-24T03:11:32
2021-09-24T03:11:32
232,493,899
2
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
""" 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。 示例 1: 输入: "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。 示例 2: 输入: "bbbbb" 输出: 1 解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。 示例 3: 输入: "pwwkew" 输出: 3 解释: 因为无重复字符的最长子串是 "wke",所以其长度为 3。   请注意,你的答案必须是 子串 的长度,"pwke" 是一个子序列,不是子串。 """ class Solution(object): def lengthOfLongestSubstri...
[ "461806307@qq.com" ]
461806307@qq.com
903a77f4a02718a688e108e05b286348b1c99a65
eef243e450cea7e91bac2f71f0bfd45a00c6f12c
/.history/worker_master_20210128031009.py
16168c2cf8a83eb1dfb82220fd383d845e05ab9a
[]
no_license
hoaf13/nlp-chatbot-lol
910ab2ea3b62d5219901050271fc1a1340e46a2f
18cb64efa9d6b4cafe1015f1cd94f4409271ef56
refs/heads/master
2023-05-08T04:17:19.450718
2021-02-02T02:37:38
2021-02-02T02:37:38
332,535,094
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
import redis red = redis.StrictRedis(host='localhost',port=6379,db=0) queue = list() def str_to_bool(str): if str == b'False': return False if str == b'True': return True return None while True: # check supplier product status is_new = str_to_bool(red.get("new_product_worker1"))...
[ "samartcall@gmail.com" ]
samartcall@gmail.com
509601af0ae5337e7f8b9fc2f49be25dda28dc54
4acc08d2c165b5d88119df6bb4081bcfaca684f7
/PythonPrograms/python_program/multiple_matrix.py
c88486026ddb4fe56be352d8cd4c3a355b0923f6
[]
no_license
xiaotuzixuedaima/PythonProgramDucat
9059648f070db7304f9aaa45657c8d3df75f3cc2
90c6947e6dfa8ebb6c8758735960379a81d88ae3
refs/heads/master
2022-01-16T04:13:17.849130
2019-02-22T15:43:18
2019-02-22T15:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# Python Program to Multiply Two Matrices ???? l = [[1,2,3], [2,3,4], [3,4,5]] m = [[3,4,5], [5,6,7], [6,7,8]] for i in range(3): for j in range(len(l)): sum = 0 for k in range(len(m)): sum=sum + l[i][k] * m[k][j] print(sum,end=" ") print() ''' output == l = [[1,2...
[ "ss7838094755@gmail.com" ]
ss7838094755@gmail.com
83503bae694f4bdf6c82b15e366f28e0066e3537
93e9bbcdd981a6ec08644e76ee914e42709579af
/depth-first-search/323_Number_of_Connected_Components_in_an_Undirected_Graph.py
4009e47f32f8f461cc7dbd9fe5c9d094309c835b
[]
no_license
vsdrun/lc_public
57aa418a8349629494782f1a009c1a8751ffe81d
6350568d16b0f8c49a020f055bb6d72e2705ea56
refs/heads/master
2020-05-31T11:23:28.448602
2019-10-02T21:00:57
2019-10-02T21:00:57
190,259,739
6
0
null
null
null
null
UTF-8
Python
false
false
2,112
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/description/ Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes) write a function to find the number of connected components in an und...
[ "vsdmars@gmail.com" ]
vsdmars@gmail.com