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
e2498c3bf7bb6bc5cb3c855e8debb0ebab026286
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_168/95.py
8dfe2a69a12272a82854b8234769c1ae46bcb16d
[]
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
1,988
py
from sys import stdin, stdout def solve(R, C, mat): """ . period = no arrow ^ caret = up arrow > greater than = right arrow v lowercase v = down arrow < less than = left arrow """ rowTally = [0]*R colTally = [0]*C for r in range(R): for c in range(C): if mat...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cccba4a3c3c68ac7d17083f6f91026c74ccae90d
bf12e13c0ab5ccf2fc32509b02aaae6b6a2e3327
/benchmarks/richards_AOT.py
ed3c97c6c7e4880120a53657731d8761841680bb
[ "MIT", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
HighCWu/tpythonpp
42b56c9eb3c77192cbda36f0e198707bb858fe38
f1c15e1101993e4c9c7529739823b47759ea13f7
refs/heads/master
2023-06-30T16:17:09.409107
2021-03-19T04:16:12
2021-03-19T04:16:12
391,806,131
0
0
null
null
null
null
UTF-8
Python
false
false
7,386
py
# based on a Java version: # Based on original version written in BCPL by Dr Martin Richards # in 1981 at Cambridge University Computer Laboratory, England # and a C++ version derived from a Smalltalk version written by # L Peter Deutsch. # Java version: Copyright (C) 1995 Sun Microsystems, Inc. # Translation fr...
[ "goatman.py@gmail.com" ]
goatman.py@gmail.com
8097db870e799ab5765abe37a3cd5c66098b9a29
8ac3fe3d861a222210912a02effea2110456d052
/django_for_beginners/project_3_mb_app/project_3_mb_app/wsgi.py
694273d02277daaef7beda9ccea67910d0f019e9
[ "MIT" ]
permissive
rednafi/django-unchained
40446960f52f0c905a6ba3e318154ca11a31188b
0f71c8d056699496d4af3ab049f9b2f9d057486b
refs/heads/master
2022-12-10T10:11:52.906880
2020-09-01T17:43:58
2020-09-01T17:43:58
282,356,752
1
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for project_3_mb_app project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
[ "redowan.nafi@gmail.com" ]
redowan.nafi@gmail.com
c75372be898bef2f2b78e0654de40ee572e5b0c6
5b3bf81b22f4eb78a1d9e801b2d1d6a48509a236
/leetcode/1029.py
7c92c896074a20b0d420da645524ea36db209412
[]
no_license
okoks9011/problem_solving
42a0843cfdf58846090dff1a2762b6e02362d068
e86d86bb5e3856fcaaa5e20fe19194871d3981ca
refs/heads/master
2023-01-21T19:06:14.143000
2023-01-08T17:45:16
2023-01-08T17:45:16
141,427,667
1
1
null
null
null
null
UTF-8
Python
false
false
318
py
class Solution: def twoCitySchedCost(self, costs: List[List[int]]) -> int: m = len(costs) n = m // 2 costs.sort(key=lambda c: c[0] - c[1]) result = 0 for c in costs[:n]: result += c[0] for c in costs[n:]: result += c[1] return result
[ "okoks9011@gmail.com" ]
okoks9011@gmail.com
3112c122eb78775c5aff7a7f0d75a685d7133de8
ef1f62cf4e53f856bf763ac0dee73f054518530d
/Week_09/5.Longest_Palindromic_Substring.py
f20d75493465be4876f6af1df68bed6c2e3081c0
[]
no_license
ZHHJemotion/algorithm008-class01
3338af3619d8e1754a62af6a852f517b47298d95
5bb7d2b74110df0b5788b94c69582552d711563a
refs/heads/master
2022-11-12T09:26:24.941738
2020-06-30T15:29:20
2020-06-30T15:29:20
255,102,230
0
0
null
2020-04-12T14:39:17
2020-04-12T14:39:17
null
UTF-8
Python
false
false
1,361
py
# Given a string s, find the longest palindromic substring in s. You may assume # that the maximum length of s is 1000. # # Example 1: # # # Input: "babad" # Output: "bab" # Note: "aba" is also a valid answer. # # # Example 2: # # # Input: "cbbd" # Output: "bb" # # Related Topics String Dynamic Programming # leetc...
[ "zhhjemotion@hotmail.com" ]
zhhjemotion@hotmail.com
0bab8e53db1d047169277c517c29a58eeb03ffaa
10a3708ecf54c7acd302b91e816b6212afc9b4a6
/tests/test_main.py
64f15a0adeffdf15d8e6800e12bac9451ff0e30e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Vizzuality/timvt
4bfa4bcc7918c5d02bae382b9e0c4e13efdd77c3
887a1dc81c55d3f2658ddaabbe113174b45a47b2
refs/heads/master
2023-06-29T00:54:30.896044
2021-07-26T17:06:40
2021-07-26T17:06:40
389,608,019
0
0
MIT
2021-07-26T17:06:41
2021-07-26T11:23:24
null
UTF-8
Python
false
false
239
py
"""Test timvt.main.app.""" def test_health(app): """Test /healthz endpoint.""" response = app.get("/healthz") assert response.status_code == 200 assert response.json() == {"message": "I wear a mask and I wash my hands!"}
[ "vincent.sarago@gmail.com" ]
vincent.sarago@gmail.com
6cc0162440e618521ffa11d341ef9ae24c9e0f58
c69f0b95dd485439dfa56610b0c123b972181cae
/perm/backends.py
bdb41333f83de1b07ebb8049d70130b774d2501d
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pombreda/django-perm
ec6cdf075f54c39fd402befe30bc215792fc3e2e
7141a3095942243684cd336cfaeeb99812e77dd6
refs/heads/master
2021-01-09T05:46:24.311389
2014-05-21T08:16:59
2014-05-21T08:16:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,056
py
from django.utils.translation import ugettext_lazy as _ from django.db.models import Model from .exceptions import PermAppException from .permissions import permissions_manager class ModelPermissionBackend(object): supports_object_permissions = True supports_anonymous_user = True supports_inactive_user ...
[ "dylan@zostera.nl" ]
dylan@zostera.nl
2a113215d8fd82dc5cb93c773b50527c3ecb670a
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/HToSS/LO_HToSSTodddd_MH125_MS40_ctauS0_13TeV.py
787512b6f56f88bf5c9224698486ff90902d0d84
[]
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
1,722
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * from Configuration.Generator.Pythia8PowhegEmissionVetoSettings_cfi import * generator = cms.EDFilter("Pythia8HadronizerFilter", ...
[ "sheffield@physics.rutgers.edu" ]
sheffield@physics.rutgers.edu
1b4cdf8106a5d49679acc14e28e2691b6895d5fc
6ed48bf3c72e61fe53144a3545ab305112c93501
/infra/tools/testjs/test/testjs_test.py
d48e6218bbb2a4a643d6ee1b7d0548b7c49a7653
[ "BSD-3-Clause" ]
permissive
eunchong/infra
ee5f7a9379977de8c814f90dbba3f6adbf06a75c
ce3728559112bfb3e8b32137eada517aec6d22f9
refs/heads/master
2022-11-27T06:26:57.415805
2016-04-08T12:34:36
2016-04-08T12:34:36
55,699,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
# Copyright 2015 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. """Tests for ../testjs.py""" import argparse import unittest import random import mock import contextlib import os from infra.tools.testjs import testjs fro...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
7aa1945e1af5576de5561476842823113d0c1deb
33b844747fe11a32fdc2a746d7f98c331d286756
/454.py
23d22c10cef3a64838d2981e882703a21d9a3047
[]
no_license
michaelhuo/pcp
1f1ccd338e68d53e3cd2e775ac7d3b3a2fe323a4
d506e07f9ce5a5e1506fe88ddf94dc7c54d35bcd
refs/heads/master
2023-02-16T00:32:02.448257
2021-01-18T18:02:00
2021-01-18T18:02:00
290,109,535
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
class Solution: def fourSumCount(self, A: List[int], B: List[int], C: List[int], D: List[int]) -> int: if not A or not B or not C or not D: return 0 A.sort() B.sort() C.sort() D.sort() AB = [i+j for i in A for j in B] CD = [i+j for i in C for j in ...
[ "5288085+michaelhuo@users.noreply.github.com" ]
5288085+michaelhuo@users.noreply.github.com
de7349c5fe952767b84df51272496c545530f5ce
a26b11bd2ee82f6ffbf82525d421ad32e2328c33
/pentest_project/apps.py
1c45b9056f1b24b77beb008ea891487197d20ffb
[]
no_license
Nekmo/pentest-studio
b08804fe19a5c3fb2bc14b90953922a2772623e2
6bac1cf8618437f034bcedc74c41c6079ef95d0b
refs/heads/master
2023-09-06T07:51:55.333412
2023-08-19T21:46:44
2023-08-19T21:46:44
162,857,644
8
0
null
2023-03-04T03:03:04
2018-12-23T02:54:26
JavaScript
UTF-8
Python
false
false
172
py
from django.apps import AppConfig class ProjectsConfig(AppConfig): name = 'pentest_project' def ready(self): from pentest_project import signals # noqa
[ "contacto@nekmo.com" ]
contacto@nekmo.com
44c9e925bfe248186c3763308eac496173bc6788
ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7
/syntactic_mutations/udacity/mutants/mutant8.py
4ec26ac2e87ee995147927a7128110712ebad95a
[]
no_license
dlfaults/mutation_operators_evaluation
ea7f33459ba7bcf7d70092d9db8b40f9b338d516
7d1ff30e901931a46bf8908e9bb05cae3daa5f0f
refs/heads/master
2020-12-27T15:45:07.262012
2020-02-03T12:22:01
2020-02-03T12:22:01
237,955,342
1
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint from keras.layers import Lambda, Conv2D, MaxPooling2D, Dropout, Dense, Flatten from batch_generator import Generator from utils import INPUT_SHAPE, batc...
[ "gunel71@gmail.com" ]
gunel71@gmail.com
eedab756cf34c40f4a29e36e5f9f6a4329822ddf
44064ed79f173ddca96174913910c1610992b7cb
/Second_Processing_app/temboo/Library/OneLogin/Events/CreateEvent.py
079ba3e690ed53ad877f84568560303e9d959953
[]
no_license
dattasaurabh82/Final_thesis
440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5
8edaea62f5987db026adfffb6b52b59b119f6375
refs/heads/master
2021-01-20T22:25:48.999100
2014-10-14T18:58:00
2014-10-14T18:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,294
py
# -*- coding: utf-8 -*- ############################################################################### # # CreateEvent # Creates a new event. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreography from temboo.core.cho...
[ "dattasaurabh82@gmail.com" ]
dattasaurabh82@gmail.com
f497a0be0504ad7b1ef4f0400cde1dfb2af20cde
4b69207838e74c89fa375294a3627da93dd0fa1d
/python/pysoarlib/util/WMNode.py
f98544510bac45a872569f7a2f371a8a4319c2e1
[ "MIT" ]
permissive
amininger/vim-soar-plugin
ad00afe245adb32bdf4b0fb1b199be60bb0eab1d
c1a4cfa8b0e4760470c5619325f522f2f5021c25
refs/heads/master
2021-06-08T16:02:16.405583
2021-05-02T16:04:02
2021-05-02T16:04:02
133,554,667
1
0
null
null
null
null
UTF-8
Python
false
false
4,513
py
import Python_sml_ClientInterface as sml ### Note: Helper class used by extract_wm_graph class WMNode: """ Represents a node in the working memory graph wrapping an Identifier and containing links to child wmes node.id = root_id (Identifier) node.symbol = string (The root_id symbol e.g. O34) ...
[ "mininger@umich.edu" ]
mininger@umich.edu
0d04604b7ac5e80c3263d95f796f0fda1d743bfa
a110805b0e0cf26d1da8e6276ec6883ed4297752
/SOLUCIONES/SOLUCIONES/intermedio I/doc/funciones.py
770d04cc793b6f49d201cd46bee7c2f031484724
[]
no_license
dayes/curso_Python
a1e77725bd8ab4c287589f15e36849817bcb39e8
352b0505a5e3d6f3310893b5c87d1eab31a2a66d
refs/heads/master
2020-03-22T07:37:54.487944
2018-07-13T10:59:40
2018-07-13T10:59:40
139,713,481
0
0
null
2018-07-04T11:40:03
2018-07-04T11:34:55
null
UTF-8
Python
false
false
158
py
""" Esto es una prueba de doc""" def miFun(): """Este es un ejemplo de doc""" return 0 print (help(miFun)) print(__doc__)
[ "david@MacBook-Air-de-David.local" ]
david@MacBook-Air-de-David.local
bf7437e9c50d865354cd79454a2ad6c27e409ce5
11d5306930ce7670d63d216c4cebab416fa98404
/alexandria/sedes.py
293762a6b8e4e2c0f3620e58ac8b77d0ad8cf78b
[ "MIT" ]
permissive
carver/alexandria
fb58ac96ffd1a80c0f67a057086216556695c003
8440b7de69f2a4f828a252d450fe66ace72ecd2b
refs/heads/master
2021-06-14T05:25:10.348460
2020-04-09T16:34:21
2020-04-09T16:34:21
254,472,966
0
0
MIT
2020-04-09T20:34:53
2020-04-09T20:34:52
null
UTF-8
Python
false
false
363
py
from ssz import sedes class ByteList(sedes.List): # type: ignore def __init__(self, max_length: int) -> None: super().__init__(element_sedes=sedes.uint, max_length=max_length) def serialize(self, value: bytes) -> bytes: return value def deserialize(self, value: bytes) -> bytes: ...
[ "pipermerriam@gmail.com" ]
pipermerriam@gmail.com
b9d9d12b75776a9199a9173de4341d8f98a6779b
3b981dfc835d36eb9bb86e4dbb0b1e332285d5cf
/kuaapi/admin.py
9af0c962649a1536b0e087ac96344adfa77afba8
[]
no_license
richraines/nuortenideat
d9ad5ff33e4231c7f9960b9e1a54be16395173a2
033f63575c52ce118f0deba1168afca743de6c26
refs/heads/master
2020-09-01T01:39:39.137935
2016-10-31T14:24:59
2016-10-31T14:24:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
688
py
from django.contrib import admin from django.contrib import admin from .models import ParticipatingMunicipality, KuaInitiative, KuaInitiativeStatus class ParticipatingMunicipalityAdmin(admin.ModelAdmin): list_display = ('municipality', 'created', ) search_fields = ('municipality__code', ...
[ "erno@fns.fi" ]
erno@fns.fi
e564d01e7388ed8f5969eacb8e26e07d0b40aa1b
a3c662a5eda4e269a8c81c99e229879b946a76f6
/.venv/lib/python3.7/site-packages/pylint/test/extensions/data/docstring.py
5410a9bb40a1abdb6d7f5028e765a11648dfaa3b
[ "MIT" ]
permissive
ahmadreza-smdi/ms-shop
0c29da82c58b243507575672bbc94fb6e8068aeb
65ba3f3061e2ac5c63115b08dadfe7d67f645fb6
refs/heads/master
2023-04-27T19:51:34.858182
2019-11-24T20:57:59
2019-11-24T20:57:59
223,616,552
6
2
MIT
2023-04-21T20:51:21
2019-11-23T16:09:03
Python
UTF-8
Python
false
false
811
py
"""Checks of Dosctrings 'docstring-first-line-empty' 'bad-docstring-quotes'""" def check_messages(*messages): """ docstring""" return messages def function2(): """Test Ok""" class FFFF: """ Test Docstring First Line Empty """ def method1(self): ''' Test Triple Singl...
[ "ahmadreza.smdi@gmail.com" ]
ahmadreza.smdi@gmail.com
16c05d184c6bc87bc9d36e51528b7aca0ec65502
f72fa4432e6abb742cbf1c61c580db1ed688a311
/day26/scrapy框架/daili/daili/pipelines.py
1c15694b848f94cf71d67119ecbccff1779b3015
[]
no_license
huningfei/python
7ddc9da14a3e53ad1c98fc48edd1697a6f8fc4f7
9ca1f57f2ef5d77e3bb52d70ac9a241b8cde54d2
refs/heads/master
2022-10-31T18:56:33.894302
2019-01-04T11:06:59
2019-01-04T11:06:59
128,178,516
2
1
null
2022-10-12T19:26:04
2018-04-05T08:25:32
Python
UTF-8
Python
false
false
286
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class DailiPipeline(object): def process_item(self, item, spider): return item
[ "huningfei@126.com" ]
huningfei@126.com
75b36e830e4d2d9d11bbd198191f5bfe029b6231
adde5784379cba18934bc32bd779959ccc8bc94f
/redash/tasks/schedule.py
e8f6f6e241b5436bdd99780c065741d11b259cb6
[ "BSD-2-Clause" ]
permissive
YuanlvCold/mxzz-bi
32292a8cafb4097fcb60e70917849a2f23e5511f
7cae1b80e2f715d0af7ca912d1793668353c4b9e
refs/heads/master
2022-12-02T04:39:06.631341
2020-08-17T06:46:19
2020-08-17T06:46:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,525
py
from __future__ import absolute_import import logging import hashlib import json from datetime import datetime, timedelta from rq.job import Job from rq_scheduler import Scheduler from redash import extensions, settings, rq_redis_connection, statsd_client from redash.tasks import ( sync_user_details, ...
[ "2426548297@qq.com" ]
2426548297@qq.com
aa064d157437c3a44927ba9e0cce4c7feabdaf2e
be365e466711ac6483ec6cfd247cb5f665145b89
/url_shortener/users/apps.py
be902fc4dce4a2a15286ad81d6b6b1a5698ec885
[ "MIT" ]
permissive
triump0870/url_shortener
f2fbd5d7568f621172fccb328968c7c0739d7053
3a603c09a7b8bd399f30883c8553879099f78a94
refs/heads/master
2021-01-06T01:29:24.188513
2020-02-17T19:27:36
2020-02-17T19:27:36
241,190,245
1
0
null
null
null
null
UTF-8
Python
false
false
324
py
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "url_shortener.users" verbose_name = _("Users") def ready(self): try: import url_shortener.users.signals # noqa F401 except ImportError: p...
[ "b4you0870@gmail.com" ]
b4you0870@gmail.com
4994ac3acf737a52f5d42965de713f06fdc38294
6be845bf70a8efaf390da28c811c52b35bf9e475
/windows/Resources/Python/Core/Lib/encodings/mac_turkish.py
696924582b0e618ea61f9e9d0431e6cabee0b08e
[]
no_license
kyeremalprime/ms
228194910bf2ed314d0492bc423cc687144bb459
47eea098ec735b2173ff0d4e5c493cb8f04e705d
refs/heads/master
2020-12-30T15:54:17.843982
2017-05-14T07:32:01
2017-05-14T07:32:01
91,180,709
2
2
null
null
null
null
UTF-8
Python
false
false
1,883
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: mac_turkish.py """ Python Character Mapping Codec mac_turkish generated from 'MAPPINGS/VENDORS/APPLE/TURKISH.TXT' with gencodec.py. """ import codec...
[ "kyeremalprime@gmail.com" ]
kyeremalprime@gmail.com
2d2f005f8e606730f861a41b8f1ab4024ca461af
fcdfe976c9ed60b18def889692a17dc18a8dd6d7
/python/geometry/polygon/plan_spread_spline1.py
7b0cd59f8d1f064478adfe809d9da2e4ca8c64e2
[]
no_license
akihikoy/ay_test
4907470889c9bda11cdc84e8231ef3156fda8bd7
a24dfb720960bfedb94be3b4d147e37616e7f39a
refs/heads/master
2023-09-02T19:24:47.832392
2023-08-27T06:45:20
2023-08-27T06:45:20
181,903,332
6
3
null
null
null
null
UTF-8
Python
false
false
5,489
py
#!/usr/bin/python import sys sys.path.append('..') from splines.cubic_hermite_spline import TCubicHermiteSpline from polygon_point_in_out import * import math import numpy as np import copy #x,y wave pattern generator class TWaveGenerator: def __init__(self,vx=0.1): self.data= [[0.0 ,vx*0.0 , 0.0], ...
[ "info@akihikoy.net" ]
info@akihikoy.net
f89377c0f4f21913e8c14627b65bc29d74c65253
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/11144120.py
e781cf1012d7c6dbdfcb026eb4030ee62195d75a
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11144120.py generated: Fri, 27 Mar 2015 16:10:04 # # Event Type: 11144120 # # ASCII decay Descriptor: [B0 -> (J/psi(1S) -> mu+ mu- {,gamma} {,gamma}) p+ p~-]cc # from Configurables import Generation Generation().EventType = 11144120 Generation().SampleGen...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
943f0da3a075e3d81e38d43e212a3497cfa18521
02035d84092291ff6a691047e7a3709ea03dddd8
/visbrain/objects/tests/test_brain_obj.py
14a5e1042f873a1e24ad7bde7758e90f647fc246
[ "BSD-3-Clause" ]
permissive
abhiishekpal/visbrain
a8abaf9bc4434fcf694158ac6510d9f67925b9a7
824724656a5d890330c086541176a539b004766d
refs/heads/master
2020-03-30T08:17:28.823302
2018-07-04T01:54:59
2018-07-04T01:56:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,993
py
"""Test BrainObj.""" import numpy as np from visbrain.objects import BrainObj, SourceObj from visbrain.objects.tests._testing_objects import _TestObjects from visbrain.io import read_stc, clean_tmp NEEDED_FILES = dict(ANNOT_FILE_1='lh.aparc.annot', ANNOT_FILE_2='rh.PALS_B12_Brodmann.annot', ...
[ "e.combrisson@gmail.com" ]
e.combrisson@gmail.com
258dc7b2a47a47e5e61b09105ca39812b58d3360
dcf9a7aeaddc876530e8f28fd17130f8859feda9
/pymatflow/abinit/post/scripts/post-abinit-scf.py
213833057837cb01c467221155b788270ad180e2
[ "MIT" ]
permissive
DeqiTang/pymatflow
3c6f4a6161a729ad17db21db9533187c04d8f5ac
922722187e2678efbfa280b66be2624b185ecbf5
refs/heads/master
2022-05-25T19:41:19.187034
2022-03-05T03:07:08
2022-03-05T03:07:08
245,462,857
5
1
null
null
null
null
UTF-8
Python
false
false
2,261
py
#!/usr/bin/evn python # _*_ coding: utf-8 _*_ import os import argparse import copy import datetime import subprocess import matplotlib.pyplot as plt from pymatflow.abinit.post.scf import scf_out if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-d", "--dire...
[ "deqi_tang@163.com" ]
deqi_tang@163.com
f9bc741fcec7ef7c64d9b390a8a829888ac15e89
f63028878311f21f73ed21f9bc88a0fd2ba8ba88
/01.python/ch13/ex03.py
98237fe46d86fb534209855450d8e53c6d6a1d98
[]
no_license
nugeat23/workspace
ac12b93b0cb826206138aa2262382b0e6389977b
221344b95daa40c3ba66d27e04cbf9dae3172edc
refs/heads/master
2023-07-14T20:37:32.851769
2021-09-01T08:55:01
2021-09-01T08:55:01
383,780,263
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
# str = '89' str = '89점' try: score = int(str) print(score) a = str[5] except Exception as err: print(err) # except ValueError as err: # print(err) # print('점수의 형식이 잘못되었습니다.') # except IndexError as err: # print(err) # print('첨자 범위를 벗어났습니다.') # except (ValueError, IndexError): # p...
[ "nugeat23@gmail.com" ]
nugeat23@gmail.com
b0a401a93668770021670faba297c212eeed0026
3eb4293c23f78e8da4c157692ba6aa54be4436e6
/Server/routes/api/drawer/draw_doc.py
ed67a5d2d3b0f040a754f2bcd174362c143e19b8
[ "MIT" ]
permissive
DSM-GRAM/Artist-Soongsil
0b1753b5f4887313bfd2c24219815c4115e31024
4ec94190ee878b864489821b210132fc3b8588da
refs/heads/master
2021-07-11T18:19:56.200896
2017-10-17T00:43:26
2017-10-17T00:43:26
106,808,686
0
0
null
2017-10-17T00:43:27
2017-10-13T10:04:47
null
UTF-8
Python
false
false
1,091
py
DRAW = { 'tags': ['Drawer'], 'description': '그리기 시작', 'parameters': [ { 'name': 'shower_id', 'description': '카테고리 선택 시 할당된 shower id', 'in': 'formData', 'type': 'str' } ], 'responses': { '201': { 'description': '그리기 ...
[ "city7310@naver.com" ]
city7310@naver.com
af3047b49e45f83e914d0f01b02f54c6956e0f2d
add3e9d9976aa8463fd453a7c25874afa10f80b7
/login_websites/run_me.py
073cb9b3de2c013d4fb439a275460c0a0b42de04
[]
no_license
buxuele/scrapy_roadmap
88a83ac116f429d6c35105a25949ec501ca231c5
ca42cf7ca1e3eea39244062179af0c52f96cd5e0
refs/heads/master
2023-04-08T08:13:19.309521
2021-03-28T14:34:31
2021-03-28T14:34:31
343,089,859
1
0
null
null
null
null
UTF-8
Python
false
false
245
py
from scrapy import cmdline # cmdline.execute("scrapy crawl jianshu -o jianshu_ret_5W.json".split()) # cmdline.execute("scrapy crawl dou".split()) # cmdline.execute("scrapy crawl pengpai".split()) cmdline.execute("scrapy crawl zhihu".split())
[ "baogexuxuele@163.com" ]
baogexuxuele@163.com
bf23a18103fbc497d52186be9743206416f2b468
b50e64cabfa1b1caae3c96ee70f8c3702b031c7e
/word2vec_ex.py
8271d3061a4ad6941f429ed29f3f125251ee9d93
[]
no_license
chaeonee/Semantic-correlation-based_outliers
78908854bb03b042d653a5cca8dd35d90bad6dfb
76cdff3330b5e4c4ce9e2e35abc5d71b246578d1
refs/heads/main
2023-06-01T15:24:50.834293
2021-06-16T07:47:54
2021-06-16T07:47:54
377,411,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,679
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 1 17:13:52 2018 @author: onee """ # imports needed and set up logging import gzip import gensim import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) data_file = "./cocoapi/coco2017/cocoword...
[ "noreply@github.com" ]
chaeonee.noreply@github.com
691d8eef8f159267257820254e2b82e3f0b0823e
4f56c30f1c8b181120f7d24a4d2417b7507a0692
/manage.py
f2bdbf1504976f14427f6476bb961b84db46ef46
[]
no_license
monicaoyugi/IT-ticketing
8da7a0a8855214f227b5e4ffebe50a4ea8c7d8c5
58cbdeb1ce698d4c3a18497b0fc5eea358d636d3
refs/heads/master
2023-03-25T20:38:41.897677
2021-03-17T13:30:21
2021-03-17T13:30:21
348,715,407
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IT_Ticketing.settings') try: from django.core.management import execute_from_command_line except...
[ "monicaoyugi@gmail.com" ]
monicaoyugi@gmail.com
972bcb5664b7774508567984c8546be23b2c74a1
9758fa6d66df1121ff9e0b4a7da511653bc53cf1
/Food/migrations/0012_auto_20190628_1339.py
55c55d2c4ff51c3691f90bee3c590089c826f9cb
[]
no_license
hdforoozan/Restaurant-project
179fb4138cb92bfd7716671c3b1e8b1949bfbaff
2ab096cbc3ee20557b57ed97bd0d5556c5965e87
refs/heads/master
2020-06-12T08:50:03.067740
2019-09-17T18:48:43
2019-09-17T18:48:43
194,250,030
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
# Generated by Django 2.1 on 2019-06-28 09:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Food', '0011_food_image'), ] operations = [ migrations.AlterField( model_name='food', name='image', field=...
[ "hdforoozan@gmail.com" ]
hdforoozan@gmail.com
39fc8480fe9df0f204c34f434863175728dcb810
eef243e450cea7e91bac2f71f0bfd45a00c6f12c
/.history/app/api_service/views_20210124234745.py
81d505ff56de11027da67e5bcb91fec182f35ae3
[]
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
1,430
py
from flask import jsonify, Blueprint, flash, render_template, request, session, abort, redirect, url_for from flask.views import MethodView import requests import os from app.models import Champion, Conversation from app import app import json api_service = Blueprint('apis', __name__, url_prefix='/apis/') def load_dat...
[ "samartcall@gmail.com" ]
samartcall@gmail.com
a1cede54f3acb5afd26d9c096fb96884d129dccc
bc9883f9a383ff417725248d124cc79ce7f0bc83
/questions/api/permissions.py
2df2931152f1bf56c2f0ee08bda33cd9da454dd4
[]
no_license
Erick-ViBe/QuestionTime
226ffa482c41e4f7fd89419a67e31df9a21f2494
4bccc1a6e7f55c8251e94adf9da96a5b5de85653
refs/heads/master
2023-04-05T14:09:53.510287
2021-03-14T21:03:12
2021-03-14T21:03:12
294,256,755
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
from rest_framework import permissions class IsAuthorOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.author == request.user
[ "erickvb12@gmail.com" ]
erickvb12@gmail.com
a7698c4ec91871c6ebb0b25630cd63930ef0ca92
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2126/60812/260890.py
3d5094642a36be819bd131a003971034322fbd81
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
299
py
nums = sorted(int(i) for i in input().split(',')) t = [] for i in nums: for j in t: if i % j[0] == 0: j.insert(0, i) break else: t.append([i]) num = 0 temp = [] for i in t: if len(i) > num: num = len(i) temp = i print(sorted(temp))
[ "1069583789@qq.com" ]
1069583789@qq.com
3470f6afd2e24304914333aae51c9ded5b06f19f
01ac9e40052a468dd472a296df0003c4e629e2c9
/news_all/spiders_old2/gsnews.py
7a8433448a03290242f71e36eb6660a5159c0fbe
[]
no_license
Pintrue/news_all
b5cee16584ed92e6574edd825b574214df65d917
eb8c32c79bdacd8e2f76b88f27871c3cd0118006
refs/heads/master
2022-03-23T13:34:10.354029
2019-11-22T07:40:50
2019-11-22T07:40:50
223,058,997
2
1
null
null
null
null
UTF-8
Python
false
false
1,496
py
# -*- coding: utf-8 -*- from scrapy.linkextractors import LinkExtractor from scrapy.spiders import Rule from news_all.spider_models import NewsRCSpider class GsnewsSpider(NewsRCSpider): '''甘肃新闻网''' name = 'gsnews' mystart_urls = { 'http://gansu.gscn.com.cn/gsyw/': 1301167, # 甘肃新闻网 甘肃新闻-本网原创 ...
[ "py416@ic.ac.uk" ]
py416@ic.ac.uk
f440022ee267ad6c3be04daf205cb81b743825d9
9411e6835c9056ddf31ee97fd4d22495083d45d8
/爬虫/qichacha/build/lib/qichacha/kdlRandomHandler.py
f920c7a922bdde14797620452b2d67c1866064b3
[]
no_license
XUANXUANXU/7-PracticalTraining
e17eb15149cf50227df7e617285cf5770e9d8903
605fc28f896ee6ae04e3f48bd7b4b5314910a239
refs/heads/master
2020-04-14T11:50:10.829811
2019-01-02T10:01:13
2019-01-02T10:01:13
163,824,062
0
0
null
null
null
null
UTF-8
Python
false
false
2,445
py
import pymysql import random import re,time import requests import threading from requests.exceptions import ProxyError,ConnectionError,SSLError,ReadTimeout,ConnectTimeout test_url = 'https://www.baidu.com/' timeout = 5 class RandomIpHandler: #初始化构造函数 def __init__(self): self.client = pymysql.Connect(...
[ "302738630@qq.com" ]
302738630@qq.com
a3894ae68b886461d11d6ae12739758aef350820
8e69eee9b474587925e22413717eb82e4b024360
/v1.0.0.test/otp/speedchat/SCEmoteTerminal.py
6b5eb18d4f9f999d494adc9d46a84a7be8e12052
[ "MIT" ]
permissive
TTOFFLINE-LEAK/ttoffline
afaef613c36dc3b70514ccee7030ba73c3b5045b
bb0e91704a755d34983e94288d50288e46b68380
refs/heads/master
2020-06-12T15:41:59.411795
2020-04-17T08:22:55
2020-04-17T08:22:55
194,348,185
5
4
null
null
null
null
UTF-8
Python
false
false
3,965
py
from direct.gui.DirectGui import * from SCTerminal import SCTerminal from otp.otpbase.OTPLocalizer import EmoteList, EmoteWhispers from otp.avatar import Emote SCEmoteMsgEvent = 'SCEmoteMsg' SCEmoteNoAccessEvent = 'SCEmoteNoAccess' def decodeSCEmoteWhisperMsg(emoteId, avName): if emoteId >= len(EmoteWhispers): ...
[ "s0mberdemise@protonmail.com" ]
s0mberdemise@protonmail.com
584c2ecf007a99db9cd17c9dd6131ce417bd9a70
b2755ce7a643ae5c55c4b0c8689d09ad51819e6b
/anuvaad-etl/anuvaad-extractor/document-processor/layout-detector/tesseract/src/errors/errors_exception.py
19c0a831b2fb07ee8393f9dd4cc021e494f44068
[ "MIT" ]
permissive
project-anuvaad/anuvaad
96df31170b27467d296cee43440b6dade7b1247c
2bfcf6b9779bf1abd41e1bc42c27007127ddbefb
refs/heads/master
2023-08-17T01:18:25.587918
2023-08-14T09:53:16
2023-08-14T09:53:16
265,545,286
41
39
MIT
2023-09-14T05:58:27
2020-05-20T11:34:37
Jupyter Notebook
UTF-8
Python
false
false
2,162
py
class FormatError(Exception): def __init__(self, code, message): self._code = code self._message = message @property def code(self): return self._code @property def message(self): return self._message def __str__(self): return self.__class__.__name_...
[ "srihari.nagaraj@tarento.com" ]
srihari.nagaraj@tarento.com
b827d70881c3b29b2d1c4d13f1f5a6ee811ae379
e19264962684671eacdb02c4b477e4fa470cdf96
/Programação-Internet/Atividade-4 (Python - Condicionais)/exercicio-6.py
3083d80cbf80738032733e7ef9a7ca27fe181c7d
[]
no_license
cabralltech/Tecnologo-ADS
11041fab9b0e448b6c004a45f714d4404774c32a
f5fbf8683d541ffe8ba1a2cf3d4dab3c9764f249
refs/heads/master
2021-06-22T14:21:03.086059
2017-08-21T00:33:23
2017-08-21T00:33:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
# -*- coding : utf-8 -*- # Decidir se vai ficar em casa ou sair. def ficar_em_casa_ou_sair(valor): if valor > 20: return "Vá ao cinema." return "Fique em casa." assert ficar_em_casa_ou_sair(20) == 'Fique em casa.' assert ficar_em_casa_ou_sair(25) == 'Vá ao cinema.' assert ficar_em_casa_ou_sair(15) == ...
[ "marlysson5@gmail.com" ]
marlysson5@gmail.com
8341c6930b4370045a2972e6095d5ffc4336995e
747febe786dd6b7fd6c63cfe73dbe3023354daa8
/src/the_tale/the_tale/game/map/migrations/0002_auto_20150506_1406.py
3b36cbad46a30cee85c0950aca677a1f6e671489
[ "BSD-3-Clause" ]
permissive
the-tale/the-tale
4e4b8d91dc873a5fb935fe58e9721a877baa6d3f
e8450bd2332344da805b1851e728da5a3e5bf0ef
refs/heads/develop
2023-08-01T13:53:46.835667
2022-12-25T18:04:56
2022-12-25T18:04:56
1,949,167
98
52
BSD-3-Clause
2023-02-15T18:57:33
2011-06-24T18:49:48
Python
UTF-8
Python
false
false
361
py
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('map', '0001_initial'), ] operations = [ migrations.AlterField( model_name='mapinfo', name='created_at', field=models.DateTimeFi...
[ "a.eletsky@gmail.com" ]
a.eletsky@gmail.com
90257fc5e042ac21baf0b40844356956fc7fd4e3
bcabd9b183bc011e1ccf7e367fbed0dcaa03eee6
/1 PYTHON/2 COREY SCHAFER/PART 2/calc.py
00b0197e33337452aa2535beea014159b8c2098a
[]
no_license
rajeshsvv/Lenovo_Back
287fe4da2c696aa248ec57a4c45c4f234f6ca9ed
7e49e38aaf934c65f9992a78404d2b81a4cd0204
refs/heads/master
2022-12-23T16:44:41.488128
2019-08-29T10:00:10
2019-08-29T10:00:10
204,859,914
0
1
null
2022-12-10T11:50:31
2019-08-28T06:05:35
Python
UTF-8
Python
false
false
654
py
# unit testing in python # unit test module is in standard library so there is no need to insatll anythingyou can just say import unittest # to create test case first we need to create test class that inherits from unittest.testcase # floor division in the sense it does not give the remainder def add(x, y): retu...
[ "rajeshsvv01@gmail.com" ]
rajeshsvv01@gmail.com
e73cc2621c2321196fdc0e36b579743d7ad0e1d0
49b9af65a2d229d2c79d1f2677c56fef926aaed4
/codeforces/268B/py/268b.py
d8675caa85faadf7b600ac95fc8a83f5e2e73b9f
[]
no_license
guzhoudiaoke/practice
5a6a0a0e3ab8f5c0922d08bbf0ba5549b5585378
a93cb418530f50c8577251df593624391e92b1a5
refs/heads/master
2020-04-06T07:05:32.965869
2019-10-24T14:55:39
2019-10-24T14:55:39
63,775,090
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
n = int(input()) # each guess make n-i+1 mistakes # the ith guess cost i ret = n for i in range (1, n): ret += i * (n-i) print(ret)
[ "guzhoudiaoke@126.com" ]
guzhoudiaoke@126.com
e1ed6150b69dfd056410276e6a6d2548c0cd7227
7771cb3cf1d879c4ffbf443157f12a226fd2f5be
/SGITruismo/upload/migrations/0003_auto_20191128_2217.py
93ad44ad21bd7be7155eb2b93f73041088a1a8a9
[]
no_license
jamen17/SGIAPI
290295385e5f929073709e8a0d0dd6725baaffd4
8294f6dd32d48ad2fc3834f88be13b7a6316761d
refs/heads/master
2020-09-14T18:38:38.463588
2019-11-29T15:06:29
2019-11-29T15:06:29
223,216,962
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
# Generated by Django 2.2.7 on 2019-11-28 22:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('upload', '0002_remove_file_propietario'), ] operations = [ migrations.AlterField( model_name='file', name='file', ...
[ "jamen17@gmail.com" ]
jamen17@gmail.com
31b3118ce3ce798040355e208eb2c0333a127746
130447dcbb954e1a42ee2645cea55d5e64321a3e
/training/utils.py
5ddffc4068b63d32c7222b576c5c4ab9d8acb346
[ "BSD-3-Clause" ]
permissive
bhaskarkumar1/Voice-Cloning-App
0fff4e169b062555af86cc47d82b297a5db81e60
5b6b6dc4928765e50818f06c610911a3eb6e5efb
refs/heads/main
2023-07-02T07:28:30.090064
2021-07-29T12:47:17
2021-07-29T12:47:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,376
py
import shutil import torch CHECKPOINT_SIZE_MB = 333 BATCH_SIZE_PER_GB = 2.5 LEARNING_RATE_PER_BATCH = 3.125e-5 PUNCTUATION = list("_-!'(),.:;? ") def get_available_memory(): """ Get available GPU memory in GB. Returns ------- int Available GPU memory in GB """ available_memory_gb...
[ "bandrew01@qub.ac.uk" ]
bandrew01@qub.ac.uk
940deae204915aa6493887d54bf29c0b1967dc3b
cd2c85500d420a67c433113cf43a734669134423
/build/v4r_ros_wrappers/object_tracker_srv_definitions/catkin_generated/pkg.installspace.context.pc.py
369b71dbaaf11d8cc43ab37890cb70cbcc3aefe0
[]
no_license
0000duck/youbot_mobile_manipulation_WS
f942974724dd19c9c92e852ccbd056e29d9c6049
0e966211c8d7135dc7cffedbb10b15459398ef8f
refs/heads/master
2020-12-10T11:59:30.700737
2017-07-17T13:49:12
2017-07-17T13:49:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ros/catkin_ws/install/include".split(';') if "/home/ros/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if ...
[ "mohdnaveed96@gmail.com" ]
mohdnaveed96@gmail.com
d273fc5790d0dee3b75685ebe78c52444a9e3242
edc1f1369794a4a1c499c6e9d5fe49a712657611
/algorithms/leetcode_all/157.read-n-characters-given-read4/read-n-characters-given-read4.py
a10c1b9c54699a9c7a11f5490b8caad8878b2b60
[]
no_license
williamsyb/mycookbook
93d4aca1a539b506c8ed2797863de6da8a0ed70f
dd917b6eba48eef42f1086a54880bab6cd1fbf07
refs/heads/master
2023-03-07T04:16:18.384481
2020-11-11T14:36:54
2020-11-11T14:36:54
280,005,004
2
0
null
2023-03-07T02:07:46
2020-07-15T23:34:24
Python
UTF-8
Python
false
false
613
py
# The read4 API is already defined for you. # @param buf, a list of characters # @return an integer # def read4(buf): class Solution(object): def read(self, buf, n): """ :type buf: Destination buffer (List[str]) :type n: Maximum number of characters to read (int) :rtype: The number ...
[ "william_sun1990@hotmail.com" ]
william_sun1990@hotmail.com
dfdcb5e4585ba90ca35e53d4744c9c585dd6c85b
45ca0e2ed9c3f13317b69bb1a80b523b08094000
/pySDC/projects/node_failure/boussinesq_example.py
cc5d78ee1a27236e574de0da9d0d0d2dde987bc7
[ "BSD-2-Clause" ]
permissive
MichaelFlec/pySDC
f325bf351adefb7495f9463c297962a193288a76
209e0015a46f861e3658691b7f8724cb1b36c97e
refs/heads/master
2023-08-18T00:34:38.524816
2021-09-20T12:54:42
2021-09-20T12:54:42
405,362,242
0
0
BSD-2-Clause
2021-09-20T12:54:43
2021-09-11T11:34:26
Python
UTF-8
Python
false
false
5,735
py
import numpy as np import pySDC.projects.node_failure.emulate_hard_faults as ft from pySDC.helpers.stats_helper import filter_stats, sort_stats from pySDC.implementations.collocation_classes.gauss_radau_right import CollGaussRadau_Right from pySDC.implementations.problem_classes.Boussinesq_2D_FD_imex import boussinesq...
[ "r.speck@fz-juelich.de" ]
r.speck@fz-juelich.de
712e154222948614283e63d1afd21ccbaa7e84de
6d4a7f3f069e68a984df61b718e39597370a1131
/main/mpv_seek
574243cc4b24b2a0eaf28838d53fc5635e5fbfb2
[]
no_license
nabiuddin6/scripts-1
d7c32a483c1ed4fcca2df3d68bf29cabf81f69c7
7a36fa22cfc369ccc5038332f95779370b12507c
refs/heads/master
2022-09-01T07:14:31.211758
2020-05-30T19:20:02
2020-05-30T19:20:02
270,788,454
1
0
null
2020-06-08T18:55:19
2020-06-08T18:55:18
null
UTF-8
Python
false
false
1,626
#!/usr/bin/python3 """MPV Helper for Seeking to a Specific Point""" import argparse # noqa: F401 import datetime as dt # noqa: F401 import os # noqa: F401 from pathlib import Path # noqa: F401 import subprocess as sp # noqa: F401 import sys # noqa: F401 from typing import * # noqa: F401 from types import * # ...
[ "bryanbugyi34@gmail.com" ]
bryanbugyi34@gmail.com
5d87c501e3cccd39a8c85ec6cc73fc74adb162b3
881041fab1b4d05f1c5371efed2f9276037eb609
/tasks/primary-commercial-zoning-by-lot/depositor.py
c04c226da8e60c516a9d0ee3469d3ec314664425
[]
no_license
ResidentMario/urban-physiology-nyc-catalog
b568f3b6ee1a887a50c4df23c488f50c92e30625
cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c
refs/heads/master
2021-01-02T22:43:09.073952
2017-08-06T18:27:22
2017-08-06T18:27:22
99,377,500
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
import requests r = requests.get("https://data.cityofnewyork.us/api/geospatial/pwhj-ikym?method=export&format=GeoJSON") with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/primary-commercial-zoning-by-lot/data.geojson", "wb") as f: f.write(r.content) outputs = ["/home/alex/Desktop/urban-physiology-n...
[ "aleksey.bilogur@gmail.com" ]
aleksey.bilogur@gmail.com
624b88870a81bdcb4b900400eb320fc0566419c6
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_5/jrdemm003/question4.py
4dbd0abe67c40d7fdfcc20db539a82e2f03d310d
[]
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
1,145
py
#question 4, assignment 5 #Emma Jordi #15 april 2014 def main(): import math yinc=2/20 #get input function = input("Enter a function f(x):\n") for y in range(-10,11): for x in range(-10,11): #r...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
d769e9e09dc58d5c75811d4db8c3dbfbd43528ef
6ab67facf12280fedf7cc47c61ae91da0bcf7339
/service/yowsup/yowsup/env/test_env_s40.py
38623b63f6180319ab784ba20f156e1409e29feb
[ "GPL-3.0-only", "GPL-3.0-or-later", "MIT" ]
permissive
PuneethReddyHC/whatsapp-rest-webservice
2f035a08a506431c40b9ff0f333953b855f9c461
822dfc46b80e7a26eb553e5a10e723dda5a9f77d
refs/heads/master
2022-09-17T14:31:17.273339
2017-11-27T11:16:43
2017-11-27T11:16:43
278,612,537
0
1
MIT
2020-07-10T11:04:42
2020-07-10T11:04:41
null
UTF-8
Python
false
false
384
py
import unittest from yowsup.env import S40YowsupEnv class S40YowsupEnvTest(unittest.TestCase): def test_tokengen(self): phone = "1234567" S40YowsupEnv._TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1425519315543{phone}" env = S40YowsupEnv() token = env.getToken(phone) ...
[ "svub@x900.svub.net" ]
svub@x900.svub.net
83aee29a829d19494f816092d052e9bc7e2a39fc
0d86bb399a13152cd05e3ba5684e4cb22daeb247
/python-exercise/2-file-and-function/py108_transfer_function.py
0388dfcb1caa73e827ef0d54aeedb514cb7c06f9
[]
no_license
tazbingor/learning-python2.7
abf73f59165e09fb19b5dc270b77324ea00b047e
f08c3bce60799df4f573169fcdb1a908dcb8810f
refs/heads/master
2021-09-06T05:03:59.206563
2018-02-02T15:22:45
2018-02-02T15:22:45
108,609,480
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 17/12/8 下午11:17 # @Author : Aries # @Site : # @File : py108_transfer_function.py # @Software: PyCharm ''' 11–12. 传递函数。 给在这章中描述的testit()函数写一个姊妹函数。 timeit()会带一个函数对象(和参数一起)以及计算出用了多少时间来执行这个函数,而不是测试执行时的错误。 返回下面的状态:函数返回值,消耗的时间。你可以用time.clock()或者time.time(),无论...
[ "852353298@qq.com" ]
852353298@qq.com
09984292247853cfbf3752745f08ba17675ddaa5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_omnibuses.py
f45a75561cfb7054b2991b2c9af1afb1662434e3
[ "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
247
py
from xai.brain.wordbase.nouns._omnibus import _OMNIBUS #calss header class _OMNIBUSES(_OMNIBUS, ): def __init__(self,): _OMNIBUS.__init__(self) self.name = "OMNIBUSES" self.specie = 'nouns' self.basic = "omnibus" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4625273d7e6bd21ce3f4eebb8c43635a69250192
9a9fb43d866dc8fd829211d2b47328ef1f5ed428
/PI_ROS_WORKSPACES/test/build_isolated/actionlib_msgs/catkin_generated/pkg.develspace.context.pc.py
35418bf96535125c4d5b9139fe8d7662c67ace76
[]
no_license
droter/auto_mow
326df42a54676079cac61fe63c40d5d04beb049b
3742cb2ef78bc06d2771ac4c679e5110909774f8
refs/heads/master
2022-05-19T20:18:33.409777
2020-04-29T00:42:24
2020-04-29T00:42:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/pi/test/devel_isolated/actionlib_msgs/include".split(';') if "/home/pi/test/devel_isolated/actionlib_msgs/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs".replace(';', '...
[ "joshuatygert@gmail.com" ]
joshuatygert@gmail.com
aebc55f03133b3213a1591102cf7e0387a693ce6
c5d5f423cac4b09d891283b3f15d9935a466760e
/set1/program3.py
f9d2a68d8759086a85b42a43422f53f0130dafb3
[]
no_license
agrawal-prateek/codecata-hunter
b6e1ef0d442f699e31a4de8af0a059535b6713c3
a96843375871c579c561b9546929014ad7ff609b
refs/heads/master
2021-07-04T17:38:45.086291
2020-08-16T16:50:11
2020-08-16T16:50:11
154,723,315
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
try: n = int(input()) arr = [int(x) for x in input().split()] ans = set() for i in range(len(arr)): if arr[i] == i: ans.add(i) print(0) if not ans.__len__() else print(*ans) except Exception as e: print('Invalid Input')
[ "prateekagrawal89760@gmail.com" ]
prateekagrawal89760@gmail.com
4efba8bf3c2c32141b4a5926a5b8e91894c3c716
efb1c783e1610397af1480953c330f728256d2bd
/taxon_home/views/applications/admin/Customize/Application.py
eb8a9452dbafad14ae452ddee4c1eb8dcf078d82
[]
no_license
nguyennk/BioDIG
ee7529954b73b70e80a55cbda30cf6bcf874d233
c28af9cb83f6be40a005993982db9a22aca4dcfe
refs/heads/master
2021-01-09T06:52:23.163275
2013-05-03T15:47:29
2013-05-03T15:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
''' Application for the Logout Handler of the DOME URL: /logout_handler Author: Andrew Oberlin Date: August 14, 2012 ''' from renderEngine.AdminApplicationBase import AdminApplicationBase from taxon_home.views.pagelets.registered.NavBarPagelet import NavBarPagelet from taxon_home.views.pagelets.admin.Cus...
[ "andyoberlin@gmail.com" ]
andyoberlin@gmail.com
6615bb023af78ee2ffd22efe695c92bec0f1bb76
a23efcef71aee7030a906abc8fdff9b367e8262f
/pyramid_bokehserver/server_backends.py
89c08435cd758e45306a521deeafd8afec809819
[]
no_license
mcdonc/pyramid_bokehserver
8f299180847215a4c877872c987c5e040a6ccc57
d45747af188c09bc6aca322f511ad9861e7b2606
refs/heads/master
2021-01-10T07:27:32.873537
2015-07-01T19:17:54
2015-07-01T19:17:54
36,462,816
3
0
null
null
null
null
UTF-8
Python
false
false
3,209
py
from __future__ import absolute_import, print_function import logging logger = logging.getLogger(__name__) import json import shelve from bokeh.exceptions import DataIntegrityException from bokeh.util.string import encode_utf8, decode_utf8 class AbstractServerModelStorage(object): """Storage class for server si...
[ "chrism@plope.com" ]
chrism@plope.com
0bf6a032f9865f843f77ee5ce25a74fd1838a611
c9a809c5ef2a6b5e7e50da548c182510d203f430
/tests/integration/modules/test_mac_brew.py
c7085d16294e8fee5abb012e08115a54f35e4408
[ "Apache-2.0" ]
permissive
andyyumiao/saltx
676a44c075ce06d5ac62fc13de6dcd750b3d0d74
a05c22a60706b5c4389adbd77581b5cf985763b5
refs/heads/master
2022-02-24T00:51:42.420453
2022-02-09T06:46:40
2022-02-09T06:46:40
231,860,568
1
5
NOASSERTION
2022-02-09T06:46:40
2020-01-05T03:10:15
Python
UTF-8
Python
false
false
6,818
py
# -*- coding: utf-8 -*- ''' :codeauthor: Nicole Thomas <nicole@saltstack.com> ''' # Import Python Libs from __future__ import absolute_import # Import Salt Testing Libs from tests.support.case import ModuleCase from tests.support.unit import skipIf from tests.support.helpers import destructiveTest, skip_if_not_ro...
[ "yumiao3@jd.com" ]
yumiao3@jd.com
322f916f4aad856095b140e0c432697436dc74de
14be9e4cde12392ebc202e69ae87bbbedd2fea64
/CSC148/assignment1/rider.py
ada290ad67dfbdea2ee6638e9089c22030032bf2
[ "LicenseRef-scancode-unknown-license-reference", "GLWTPL" ]
permissive
zijuzhang/Courses
948e9d0288a5f168b0d2dddfdf825b4ef4ef4e1e
71ab333bf34d105a33860fc2857ddd8dfbc8de07
refs/heads/master
2022-01-23T13:31:58.695290
2019-08-07T03:13:09
2019-08-07T03:13:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
""" The rider module contains the Rider class. It also contains constants that represent the status of the rider. === Constants === @type WAITING: str A constant used for the waiting rider status. @type CANCELLED: str A constant used for the cancelled rider status. @type SATISFIED: str A constant used for ...
[ "peiqi1122@gmail.com" ]
peiqi1122@gmail.com
09641252efc2095e47001cb36e03f1a823e97a48
4acd3a014c145509e72c3f91bc6efc83778268b5
/scripts/labtainer-student/bin/imodule
f8a7cdbba1c4342412bad230f0bd9d023664889c
[]
no_license
mfthomps/Labtainers
66375e53f0c8aa8eecfe07fddc70007f16eaeb4f
c7e8682c08178487092dbca26e777cad1638a660
refs/heads/master
2023-08-19T03:24:21.644920
2023-08-08T18:25:12
2023-08-08T18:25:12
129,324,240
235
71
null
2022-12-11T18:35:04
2018-04-13T00:00:18
Python
UTF-8
Python
false
false
5,240
#!/usr/bin/env python3 import os import argparse import subprocess import shutil import LabtainerLogging home = os.getenv('HOME') imodule_path = os.path.join(home, '.local/share/labtainers/imodules.txt') def fixLabtainerDir(): ldir = os.getenv('LABTAINER_DIR') if ldir is None: print('LABTAINER_DIR not ...
[ "mfthomps@nps.edu" ]
mfthomps@nps.edu
6ada12a471dec628d07c037ae10eb975a061215c
4dc4345cca9c5f452bf4b87263505ee6b4e960af
/functions_lab/orders.py
446f16a6087d702c447d6f0991c5a53031e4e678
[]
no_license
ivan-yosifov88/python_fundamentals
88c7eb5167bbe6692b95051d1551496a84893524
1cfe6d18453362fc26be984f6cb871b9d7dec63d
refs/heads/master
2023-03-29T16:46:55.363035
2021-04-07T10:39:44
2021-04-07T10:39:44
341,604,297
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
def order_price(product, quantity): price = None if product == "coffee": price = quantity * 1.50 elif product == "water": price = quantity * 1.00 elif product == "coke": price = quantity * 1.40 elif product == "snacks": price = quantity * 2.00 return price type_...
[ "ivan.yosifov88gmail.com" ]
ivan.yosifov88gmail.com
2a96efd09743ee500d34206b25dc21c326a63484
6f483999d6923445bb1ef6b07158a9e748e5d504
/20161208/fn1.py
d37287349e19f5062f3792f0652430c0a0f5ece0
[]
no_license
SearchOldMan/python_demo
8bec61b46ad188304e3089ef66e7822e35577519
4ecba350a54806cf51896af614f2d1c459793c6f
refs/heads/master
2020-06-14T15:10:02.677325
2017-03-01T08:57:24
2017-03-01T08:57:24
75,167,616
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
#coding=utf-8 def cmpInt(*num): for i in num: if not isinstance(i,int): return 'type not Interge' else: pass a = sorted(num) return 'the max num is %s,the min num is %s'%(a[-1],a[0]) print cmpInt('a',[1,3,4],1,45)
[ "1161938933@qq.com" ]
1161938933@qq.com
1afa2d1191ccf1a6997259594c8679f1dd98294d
5bd1c53fbab45dbd9e02992523fdc5279b642181
/examples/example_distances.py
211b8110f25a55a08a6d972bc3085850db7d2e22
[ "Unlicense" ]
permissive
madeyoga/Machine-Learning-Algorithms
3e192f69bebc3ff3157e22d791a45fd2d5ba81bf
77ef39851de5f4073c3f4bdfd707347dec3eebc3
refs/heads/master
2020-04-12T18:39:34.141364
2019-04-19T06:24:55
2019-04-19T06:24:55
162,686,220
6
2
null
null
null
null
UTF-8
Python
false
false
304
py
from pymla.model.base.distances import euclidean_distance A = [176, 72] B = [154, 85] C = [182, 75] D = [167, 98] E = [158, 65] Q = [160, 78] print(euclidean_distance(A, Q)) print(euclidean_distance(B, Q)) print(euclidean_distance(C, Q)) print(euclidean_distance(D, Q)) print(euclidean_distance(E, Q))
[ "vngla21@gmail.com" ]
vngla21@gmail.com
7770dfe535fa23532bf406472196284dbdd726c4
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/tests/unit/modules/network/aruba/test_aruba_command.py
6de1b7c11eedbb45bb806b0a2b7f7503518bd2b1
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,476
py
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dis...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
f727803c61a1a40efea95935e4ba3aa85f0abef9
0b11a00eaa683dc1d8be07818b3b704124edca59
/scripts/kinect_frame.py
a54b87c882e6e4f69879d616daa027695a2c926c
[ "BSD-2-Clause" ]
permissive
OMARI1988/baxter_pykdl
1a7a98e6c019af3681c811d7a06655b64c3b13e3
d1e77d830a39b038b1d239e0f601b06bba816f1a
refs/heads/master
2020-12-07T05:13:25.946808
2016-03-11T14:57:59
2016-03-11T14:57:59
49,892,153
1
1
null
2017-03-08T14:44:03
2016-01-18T17:15:48
Python
UTF-8
Python
false
false
2,349
py
#!/usr/bin/python import rospy import tf import numpy as np import cv2 global q,xyz,q_calib1,xyz_calib1,rpy xyz = [0.0, 0.0, 0.0] q1 = [0.0, 0.0, 0.0, 1.0] rpy = [0,0,0] xyz_calib1 = [0.272, -0.03600000000000003, 0.23399999999999999] q_calib1 = [-0.62690571, 0.63143915, -0.31687864, 0.32842314] rpy_calib = [2343, ...
[ "omari.1988@gmail.com" ]
omari.1988@gmail.com
6b5de45c4314243a3c4d7be082422f0c0c8ef2c0
5891ffffca901a14df7e5bf6ce9d8f755b21fcc8
/src/accounts/migrations/0004_auto_20170127_0502.py
a77b156f42e99d068923bcb0b6b1ecea64ad3b06
[]
no_license
aminhp93/django_serverup_premium
13d88ea62288b1e8da832e1388a020e0087f1f1d
05e5f62023b17fd6292bb398af933107a7972389
refs/heads/master
2021-01-11T19:03:06.422233
2017-01-28T04:39:21
2017-01-28T04:39:21
79,303,130
1
0
null
null
null
null
UTF-8
Python
false
false
462
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-27 05:02 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_membership'), ] operations = [ migrations.RemoveField( ...
[ "minhpn.org.ec@gmail.com" ]
minhpn.org.ec@gmail.com
55b5e8fc968a1628283c426288af71ae765f78c1
b48b47fcdbf46c43633be8ffaa9ad271892ebb07
/Activities/Activity_11_Solutions/Car_sol.py
fd8d150f3413a7c1f6db69f3d214292e72e59e84
[]
no_license
DavinderSohal/Python
92e878c2648c9507b00fef6ee7d7ae67338219d9
728e77c1e55aaa00a642d76dce5d6cdf56eff788
refs/heads/main
2023-05-12T23:41:46.226139
2021-05-16T16:12:01
2021-05-16T16:12:01
340,810,583
0
0
null
2021-04-20T09:18:00
2021-02-21T03:42:21
Python
UTF-8
Python
false
false
156
py
"""Class representing Car""" class Car: def initialize(self, name): self.name = name """Set name""" car = Car() car.initialize("Ford")
[ "sohal00026@gmail.com" ]
sohal00026@gmail.com
8d8edd1ebcb59267b640206ff5a9d911e03ee8a3
63f0ca44a91c1c4eed7eb2b255b9431c54ad931e
/models/loss/hinge.py
b76ac1b977acc046221586a1e0488f9964a28d3d
[ "Apache-2.0" ]
permissive
jamesoneill12/LayerFusion
e4685e2a54467d6c4dc02022b97af5da2c429aa7
99cba1030ed8c012a453bc7715830fc99fb980dc
refs/heads/main
2023-08-18T04:45:16.662884
2021-09-26T18:12:48
2021-09-26T18:12:48
410,594,160
2
1
null
null
null
null
UTF-8
Python
false
false
271
py
import torch from torch import nn class HingeLoss(nn.Module): def __init__(self): super(HingeLoss, self).__init__() def forward(self, y_pred, y_target): e = torch.max(torch.abs(0.5 - y_pred * y_target), dim=0)/y_target.shape[0] return e
[ "james.oneill@insight-centre.org" ]
james.oneill@insight-centre.org
e2efcaaeef659583b5cb0f5f32557df3f12d219f
a3ad7dfd1b38e7df15b2fe08934fd024408e9c58
/state/migrations/0003_alter_city_options.py
be0bc0e8b735e5a1cbf6491b287568529476d322
[]
no_license
mmrubayet/dumpsterRentalSite
a74d071cebe8fecb24b694a7e0b27baca030463d
aa7e8ae995179cb769ec09ff3894d614ca18ae08
refs/heads/main
2023-07-04T13:40:08.285433
2021-07-27T03:17:40
2021-07-27T03:17:40
383,875,486
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
# Generated by Django 3.2.5 on 2021-07-17 13:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('state', '0002_auto_20210711_0656'), ] operations = [ migrations.AlterModelOptions( name='city', options={'verbose_name_plura...
[ "m.rubayet94@gmail.com" ]
m.rubayet94@gmail.com
a7263040c2cac925769b6fcce9b5f7cdfa8e6671
b50f43c7c8cba1c0f349870596f12d1a333e6f42
/axonius_api_client/tests/tests_api/tests_asset_callbacks/test_callbacks_base.py
38f40c4bd518d6e0d18f840bbd62b94a7bf030af
[ "MIT" ]
permissive
zahediss/axonius_api_client
190ca466e5de52a98af9b527a5d1c132fd8a5020
8321788df279ffb7794f179a4bd8943fe1ac44c4
refs/heads/master
2023-08-01T14:35:17.095559
2021-09-13T21:04:23
2021-09-13T21:04:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
# -*- coding: utf-8 -*- """Test suite for assets.""" import copy import pytest from ...utils import get_rows_exist from .test_callbacks import Callbacks class TestCallbacksBase(Callbacks): @pytest.fixture(params=["api_devices", "api_users"]) def apiobj(self, request): return request.getfixturevalue(...
[ "jimbosan@gmail.com" ]
jimbosan@gmail.com
9a627fa2389ac90fe1a409ee46f64840d9bde7de
54511c722e83e84516a1e100248e73879bb8fca7
/Day_10_MOCKI/explanation/test/test_sample_patch.py
3ab47164965f73aaaded3743ea8a45122f248bfb
[]
no_license
Oleksandr015/Python-podstawy
a453c1e6848019d859c1114836fb996ce497b2d2
9fa910684c6ffa981db64f0ab2e8423714269636
refs/heads/master
2023-06-16T04:03:43.547947
2021-07-13T12:56:53
2021-07-13T12:56:53
282,299,345
0
0
null
null
null
null
UTF-8
Python
false
false
1,467
py
import unittest from unittest.mock import patch, MagicMock from Day_10_MOCKI.explanation.sample_patch import RemovalService class TestRemovalService(unittest.TestCase): @patch('sample_5_mocks.explanation.sample_patch.os') def test_rm(self, mock_os): # instantiate our service reference = Remo...
[ "iskander@kursGit.pl" ]
iskander@kursGit.pl
11147064cf5159f780d484dbbcceb5bc6601303d
6e13bb96879e9fe25e3adfd592aecc182fdc12ab
/plugins/action/network_device_with_snmp_v3_des_info.py
7f42087d3b15e0083a4c2f4df9df3b31cc654327
[ "MIT" ]
permissive
yijxiang/dnacenter-ansible
716419123e49be97fba199fadc0d6c0ae98f7b50
5138e99bf9ee2b2eb64f70f6ab514c146d17ebc8
refs/heads/main
2023-07-08T01:41:14.773304
2021-08-10T17:09:34
2021-08-10T17:09:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,846
py
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase try: from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import ( AnsibleArgSpecValidator, ) except ImportError: ANSIBLE_UTILS_IS_INST...
[ "wastorga@altus.co.cr" ]
wastorga@altus.co.cr
04447b3332fa975b8d367a3e1edaed6469108db5
cc5b4a35e62f23aa31a31ffa603c0cc7423f5745
/venv/Lib/site-packages/PyInstaller/hooks/hook-netCDF4.py
01e4001fd1b1ca9249e70686984c2885b8fb251b
[ "MIT", "GPL-2.0-or-later", "Bootloader-exception" ]
permissive
Lyniat/AutomatedWallpaperChanger
2cc334ce8dbe8c855b9702e24c0b2bf62ea0dc14
76093f4f9bd20d8fdfd497f6dfbe93d22b17feac
refs/heads/master
2023-06-25T18:17:37.625084
2021-07-15T11:44:47
2021-07-15T11:44:47
387,545,342
0
0
MIT
2021-07-19T17:32:04
2021-07-19T17:32:04
null
UTF-8
Python
false
false
613
py
#----------------------------------------------------------------------------- # Copyright (c) 2015-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
[ "martenscheuck@gmail.com" ]
martenscheuck@gmail.com
659b19079e5cdd8d3e4596eb7dc1b7d2ef1208cc
d2a181395347b6b7308cdbd9a411c79775a035c8
/pytorch_lightning/trainer/connectors/env_vars_connector.py
1f1c41c6eb2f0e18366561d801f5ea64a1e8d17d
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
rephrase-ai/pytorch-lightning
d30d552288d1bf6f65a605e5c8893583ecc58862
8bd7b1bdd7d3f723822e78908033cf0a6743713a
refs/heads/master
2023-06-06T11:32:41.765882
2021-06-23T12:09:53
2021-06-23T12:09:53
291,268,679
2
0
Apache-2.0
2020-08-29T12:38:33
2020-08-29T12:38:32
null
UTF-8
Python
false
false
1,676
py
# Copyright The PyTorch Lightning team. # # 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 i...
[ "noreply@github.com" ]
rephrase-ai.noreply@github.com
1b0e93a8c1aa0e434feb04429bad5eed50cc3c47
686a8d0612c5ba6177bc6556d900fbb8ba8f7e9b
/oop/sort_marks_ex.py
f9b5f6717cc30d7778de319f32ff8466c9d122ca
[]
no_license
srikanthpragada/PYTHON_10_DEC_2018_LANGDEMO
8da367e33d94f2e6d407b9caecc24195b17f3d06
23ca8b81e69a4313ae1a36d0a03a37373248caaf
refs/heads/master
2020-04-10T20:28:04.255860
2019-01-05T02:59:51
2019-01-05T02:59:51
161,268,725
0
2
null
null
null
null
UTF-8
Python
false
false
232
py
# Print marks in sorted order marks = [] for i in range(1, 6): try: n = int(input("Enter marks : ")) marks.append(n) except ValueError: print("Invalid number!") for n in sorted(marks): print(n)
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
ec64dbea053ac6ca8950f58fad929831e33817fd
591738c175efc21b6936fd02e29ec6668c9c97ec
/models.py
7be2182c3390051e5e37bbf5dd85a9597b732702
[]
no_license
creimers/simple_slider
7d2cf949afdf47944be123c367984c7d74d12230
f00cc74f610b8aa4829b772a07010df0ee0f4920
refs/heads/master
2016-09-11T09:02:56.242200
2015-03-24T13:12:22
2015-03-24T13:12:22
28,854,606
0
0
null
null
null
null
UTF-8
Python
false
false
1,105
py
from django.db import models from django.utils.encoding import python_2_unicode_compatible from filer.fields.image import FilerImageField from cms.models import CMSPlugin @python_2_unicode_compatible class Slider(CMSPlugin): name = models.CharField(max_length=50) dots = models.BooleanField(default=False) ...
[ "christoph@superservice-international.com" ]
christoph@superservice-international.com
3527f08ade4276b6c56bb8d9c0f9869d9307b486
46201552303331f68418e67231cce5f4688b85e3
/awesome_gans/dragan/dragan_train.py
8492e5b652b8004c616495b2ebd10440ff515064
[ "MIT" ]
permissive
kozistr/Awesome-GANs
6c8d7a62eefe4f60b3b8e4261d073c74f22dd52c
6548b49d8c05459f7b252c17d0959b5825d2fc69
refs/heads/master
2023-07-19T09:37:55.311749
2022-06-25T12:03:10
2022-06-25T12:03:10
92,664,599
820
195
MIT
2021-03-30T01:46:01
2017-05-28T14:00:08
Python
UTF-8
Python
false
false
4,357
py
import time import numpy as np import tensorflow as tf import awesome_gans.dragan.dragan_model as dragan import awesome_gans.image_utils as iu from awesome_gans.datasets import MNISTDataSet as DataSet results = {'output': './gen_img/', 'model': './model/DRAGAN-model.ckpt'} train_step = { 'batch_size': 64, '...
[ "kozistr@gmail.com" ]
kozistr@gmail.com
505bd36558a928b1780ed5b81313b5f056361d91
0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e
/regexlib/2021-5-15/python_re2_test_file/regexlib_1225.py
1c22ccb8779f7f6bcff943d316db2de4f3ed1685
[ "MIT" ]
permissive
agentjacker/ReDoS-Benchmarks
c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
refs/heads/main
2023-05-10T13:57:48.491045
2021-05-21T11:19:39
2021-05-21T11:19:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
# 1225 # ^([a-zA-Z0-9]+)([\._-]?[a-zA-Z0-9]+)*@([a-zA-Z0-9]+)([\._-]?[a-zA-Z0-9]+)*([\.]{1}[a-zA-Z0-9]{2,})+$ # EXPONENT # nums:5 # EXPONENT AttackString:"a"+"0"*32+"!1 __NQ" import re2 as re from time import perf_counter regex = """^([a-zA-Z0-9]+)([\._-]?[a-zA-Z0-9]+)*@([a-zA-Z0-9]+)([\._-]?[a-zA-Z0-9]+)*([\.]{1}[a-...
[ "liyt@ios.ac.cn" ]
liyt@ios.ac.cn
198a5f525873609cf2162a8ec5634de4a2c29c0e
44cbc067afcced7fac7ad7f4584d0d16d66bf5b4
/ansiblemetrics/playbook/num_filters.py
74aeb55f948d05200c4552cd44b2936fd35a3668
[ "Apache-2.0" ]
permissive
ElsevierSoftwareX/SOFTX_2020_231
fb75820e99dbd6f2380146ecf5b8893d69942260
e3ad95ebdc324ae308669d437ec60bd726580102
refs/heads/master
2023-01-18T22:53:04.785576
2020-11-18T11:52:39
2020-11-18T11:52:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
import re from ansiblemetrics.ansible_metric import AnsibleMetric from ansiblemetrics.utils import key_value_list filter_regex = re.compile(r'[^\|]+(\|)[^\|]') class NumFilters(AnsibleMetric): """ This class implements the metric 'Number Of Filters' in an Ansible script. """ def count(self): """ R...
[ "stefano.dallapalma0@gmail.com" ]
stefano.dallapalma0@gmail.com
6a7c42f5a6d31b4e0af18af7c9b263216235c5c7
9e207d04bb5ab7ec04ec19c83862f1afbc24d933
/itkwidgets/_version.py
75b5538f448ecdbf46072749134bcae5c4be3b73
[ "Apache-2.0" ]
permissive
darrent1974/itkwidgets
62a617606b74d0b2a321b3aa02bd051f60d405d5
9b914cbc847a7e9d6fb9024edb81cd8460237722
refs/heads/master
2020-09-08T17:26:22.947926
2019-11-12T11:14:17
2019-11-12T11:14:17
221,195,502
0
0
Apache-2.0
2019-11-12T10:53:17
2019-11-12T10:53:16
null
UTF-8
Python
false
false
294
py
version_info = (0, 23, 0, 'dev', 0) _specifier_ = {'dev': 'dev', 'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''} __version__ = '%s.%s.%s%s'%(version_info[0], version_info[1], version_info[2], '' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4]))
[ "matt.mccormick@kitware.com" ]
matt.mccormick@kitware.com
e18a567dd46af30b052673ce5e08f0af57add366
7882860350c714e6c08368288dab721288b8d9db
/2일차/14번.py
df00a65704f76b790c0f30c1a53b19d20b90ab85
[]
no_license
park-seonju/Algorithm
682fca984813a54b92a3f2ab174e4f05a95921a8
30e5bcb756e9388693624e8880e57bc92bfda969
refs/heads/master
2023-08-11T18:23:49.644259
2021-09-27T10:07:49
2021-09-27T10:07:49
388,741,922
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
dicBase = (('가','깋'), ('나','닣'), ('다','딯'), ('라','맇'), ('마','밓'), ('바','빟'), ('사','싷'), ('아','잏'), ('자','짛'), ('차','칳'), ('카','킿'), ('타','팋'), ('파','핗'), ('하','힣')) inputWord = ['막', '부모님', '비용', '비행기', '원래', '처리', '최초', '꼴', '좀', '들다', '싶다', '수출', '계시다', '다', '뒤', '듣다', '함께', '아이...
[ "cucu9823@naver.com" ]
cucu9823@naver.com
b7392d11918434ff4842aebfe27e26ee278338ed
7864ab2c567f5f3a98e7ab38ff38a3bd7c816fde
/fireplace/cards/cardxml.py
89e69e0959453d27aa72dc3e040152a876ddf732
[]
no_license
gmagogsfm/fireplace
bfa1b57254b673317442518a997c635183bd3e61
f16ee0659310a003d54552d0660ea3eb15c4da3f
refs/heads/master
2021-01-09T09:06:35.035741
2015-02-09T14:30:24
2015-02-09T14:30:24
28,540,192
1
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
import os from xml.etree import ElementTree from fireplace.enums import GameTag, PlayReq class CardXML(object): def __init__(self, xml): self.xml = xml @property def id(self): return self.xml.attrib["CardID"] @property def chooseCards(self): cards = self.xml.findall("ChooseCard") return [tag.attrib["ca...
[ "jerome@leclan.ch" ]
jerome@leclan.ch
0d8ef984ce7ea86387d1180d132d938cf7403a17
3faf4b9fb76145b2326446bc6bc190a5712b3b62
/Algorithms/0069 Sqrt(x).py
f497f2d62b3169bb0db1ed835e9bf8cacdcd6731
[]
no_license
cravo123/LeetCode
b93c18f3e4ca01ea55f4fdebceca76ccf664e55e
4c1288c99f78823c7c3bac0ceedd532e64af1258
refs/heads/master
2021-07-12T11:10:26.987657
2020-06-02T12:24:29
2020-06-02T12:24:29
152,670,206
6
1
null
null
null
null
UTF-8
Python
false
false
277
py
# Solution 1, binary search class Solution: def mySqrt(self, x: int) -> int: i, j = 0, x + 1 while i < j: m = (i + j) // 2 if m * m <= x: i = m + 1 else: j = m return i - 1
[ "cc3630@columbia.edu" ]
cc3630@columbia.edu
9c13a6343b13beab7294fdc91e61d75d0e85aa2c
710f5c2d7147ff2670f496fd28f49959cd0995b7
/modules/Sec 27 - Checking HTmiss tails for data in the event display/listings/CMSSW and AlphaTools modded scripts/EventDisplay/Displayer_QCD_cfg.py
2a96e32c1bb5fc05c7c90ca09469d3716f21b0fd
[]
no_license
eshwen/lab-book
1480e79c99b1ef3d203d9f100cc26b9d7dd7676d
6268de336e876f60166acb0c4a8c36347cf7fba7
refs/heads/master
2023-01-14T15:44:37.569542
2020-11-20T12:43:34
2020-11-20T12:43:34
258,014,389
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
#!/usr/bin/env python from Analyzers.EventDisplay.EventDisplay_cfi import * from Skimmers.DodgyQcdFinder import DodgyQcdFinder from Skimmers.TreeSkimmer import TreeSkimmer #____________________________________________________________________________|| # PSet process.PSet = psetSignal2016 process.P...
[ "eshwen.bhal@bristol.ac.uk" ]
eshwen.bhal@bristol.ac.uk
caf426fb6b3896ab02ef00a1530c8814ea180c7e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_loses.py
0840e4d32556b66b83bf20f2c03d10e140845164
[ "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
214
py
#calss header class _LOSES(): def __init__(self,): self.name = "LOSES" self.definitions = lose self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['lose']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
93b6f62f740fcbfffef22180c6a16d018a08f402
eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e
/atcoder/abc/abc101-200/abc157/c.py
97d8fe428acb79d8525b168173b3661ed78c5255
[]
no_license
reo11/AtCoder
4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9
69c6d67f05cb9190d8fb07204488cd7ce4d0bed2
refs/heads/master
2023-08-28T10:54:50.859288
2023-08-22T18:52:47
2023-08-22T18:52:47
162,085,118
4
0
null
2023-07-01T14:17:28
2018-12-17T06:31:10
Python
UTF-8
Python
false
false
531
py
n, m = map(int, input().split()) ans = ["?" for _ in range(n)] f = True for i in range(m): s, c = map(int, input().split()) if ans[s - 1] != "?": if ans[s - 1] != c: f = False else: ans[s - 1] = c else: ans[s - 1] = c if n >= 2 and ans[0] == 0: f = False ...
[ "reohirao116@gmail.com" ]
reohirao116@gmail.com
ddc5045dd9230e4a43e6c46425dccc2aa7fd3e20
8b9e9de996cedd31561c14238fe655c202692c39
/sort/leetcode_Largest_Number.py
9ee6de93bab9f52c6ca7ce2d617c8ebecac0d724
[]
no_license
monkeylyf/interviewjam
0049bc1d79e6ae88ca6d746b05d07b9e65bc9983
33c623f226981942780751554f0593f2c71cf458
refs/heads/master
2021-07-20T18:25:37.537856
2021-02-19T03:26:16
2021-02-19T03:26:16
6,741,986
59
31
null
null
null
null
UTF-8
Python
false
false
1,840
py
"""leetcode_Largest_Number. leetcode Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result may be very large, so you need to return a string instead of an integer. """ class Solution(o...
[ "laituan1986@gmail.com" ]
laituan1986@gmail.com
31f38fb10ff9c515fced3e082144d14a56b9e51a
3a533d1503f9a1c767ecd3a29885add49fff4f18
/saleor/checkout/tests/test_associate_checkout_with_account.py
10069a85c1a8ea9829612f13ebc9e56f1bd484d8
[ "BSD-3-Clause" ]
permissive
jonserna/saleor
0c1e4297e10e0a0ce530b5296f6b4488f524c145
b7d1b320e096d99567d3fa7bc4780862809d19ac
refs/heads/master
2023-06-25T17:25:17.459739
2023-06-19T14:05:41
2023-06-19T14:05:41
186,167,599
0
0
BSD-3-Clause
2019-12-29T15:46:40
2019-05-11T18:21:31
TypeScript
UTF-8
Python
false
false
3,472
py
import pytest from saleor.channel import MarkAsPaidStrategy from saleor.checkout.complete_checkout import complete_checkout from ...plugins.manager import get_plugins_manager from ..fetch import fetch_checkout_info, fetch_checkout_lines @pytest.mark.django_db @pytest.mark.parametrize( "paid_strategy", [ ...
[ "noreply@github.com" ]
jonserna.noreply@github.com
141fa3e6689914550b1d80f29b77f3383625c906
75ef407d2a62cf54c597874addef32e6a33cd2e2
/shining_present/app/tests/test_views.py
ec5714c0c7d9d9d4a927ff10718512409bc9d52b
[]
no_license
Wishez/portfolio
3bce329e93c052a1f684dd89a4dd8387d3d98d47
6c28d98b92cfbdfe12c3652b6125439d2b20fea2
refs/heads/master
2022-10-29T04:08:08.816862
2022-10-25T16:17:33
2022-10-25T18:26:35
77,537,307
0
0
null
2022-10-25T18:27:45
2016-12-28T14:09:24
HTML
UTF-8
Python
false
false
166
py
from django.test import TestCase from django.urls import reverse from words.models import User import json class WordsApi(TestCase): def setUp(self): pass
[ "shiningfinger@list.ru" ]
shiningfinger@list.ru
e026c5497766b23a902fc28512758abba5bedc51
0f79fd61dc47fcafe22f83151c4cf5f2f013a992
/BOJ/7662.py
c3b3264955579d69721b547e2b77127267ed183c
[]
no_license
sangm1n/problem-solving
670e119f28b0f0e293dbc98fc8a1aea74ea465ab
bc03f8ea9a6a4af5d58f8c45c41e9f6923f55c62
refs/heads/master
2023-04-22T17:56:21.967766
2021-05-05T12:34:01
2021-05-05T12:34:01
282,863,638
0
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
""" author : Lee Sang Min github : https://github.com/sangm1n e-mail : dltkd96als@naver.com title : 이중 우선순위 큐 description : binary tree """ import sys import bisect from collections import deque input = sys.stdin.readline T = int(input()) for _ in range(T): N = int(input()) result = deque() tmp = dict(...
[ "dltkd96als@naver.com" ]
dltkd96als@naver.com
944f91c1b3cd78c4f9f68c83ec19177d21c2d296
2734b77a68f6d7e22e8b823418ad1c59fe1a34af
/opengever/core/upgrades/20170601103050_add_hidden_flag_to_admin_and_org_units/upgrade.py
82c1d396e72dab97ecf65628cfd5c0009c66ff1a
[]
no_license
4teamwork/opengever.core
5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1
a01bec6c00d203c21a1b0449f8d489d0033c02b7
refs/heads/master
2023-08-30T23:11:27.914905
2023-08-25T14:27:15
2023-08-25T14:27:15
9,788,097
19
8
null
2023-09-14T13:28:56
2013-05-01T08:28:16
Python
UTF-8
Python
false
false
1,329
py
from opengever.core.upgrade import SchemaMigration from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy.sql.expression import column from sqlalchemy.sql.expression import table class AddHiddenFlagToAdminAndOrgUnits(SchemaMigration): """Add hidden flag to admin and org units. """ d...
[ "niklaus.johner@4teamwork.ch" ]
niklaus.johner@4teamwork.ch
7ea8482e03c5eade36fb35bdf2fbf45a1262edc1
9a05e1e8c950b091124d805ea70f24d2837b827c
/daydayup/cema_python/threeday/myrandom.py
573b4e0587e70c4448c3d302f58515c7ce60696b
[]
no_license
fanzongpeng/mywork
20676a9fe0e0599461a756ad194e4bd35aad4668
aa6d044bbab3c0288de48888b2cc7dbd7785c91b
refs/heads/master
2022-05-31T06:03:26.826914
2020-04-30T09:50:22
2020-04-30T09:50:22
257,189,615
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
import time import os # 生成的测试报告的名字是根据当前时间和文件名全名的。 report_time = time.strftime('%Y%m%d%H%M%S', time.localtime()) print(report_time+"_"+os.path.basename(__file__)) import random import string # 将序列中的某个随机取出来做为测试数据。序列可以是列表,字符串等 courses = ['python', 'java', 'selenium', 'appium'] random_course = random.choice(courses) pr...
[ "18210023228.com" ]
18210023228.com
aaf2906e9feb94f830ed4364ca9d10eabc5ba37c
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/galeone_dynamic-training-bench/dynamic-training-bench-master/models/interfaces/Classifier.py
1158c78d87dd91fd15cfecb3b9dd1198e850887f
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
1,603
py
#Copyright (C) 2016 Paolo Galeone <nessuno@nerdz.eu> # #This Source Code Form is subject to the terms of the Mozilla Public #License, v. 2.0. If a copy of the MPL was not distributed with this #file, you can obtain one at http://mozilla.org/MPL/2.0/. #Exhibit B is not attached; this software is compatible with the #lic...
[ "659338505@qq.com" ]
659338505@qq.com
423a6dd38b0588fd8027cf1f7bd285b72f3283cf
8a5ccfbd09fdc3eb42e8240c0b7ceaf981f27814
/astropy_stark/astropy_stark/vortexa_rli.py
92839783200f436a3ff34386f055b77f1941328b
[]
no_license
hlabathems/pycecream
97edfd388e32ab12b22765debab31ee8c4929ab4
cd52937c3ff053dede0b02803933ba58789d5ff3
refs/heads/master
2020-06-09T22:46:14.114693
2019-06-19T17:42:24
2019-06-19T17:42:24
193,521,752
0
1
null
2019-06-24T14:30:05
2019-06-24T14:30:04
null
UTF-8
Python
false
false
2,486
py
import vortexa_makefake as vmf import numpy as np #dat ntimes x 2 matrix first column is the driver second is the response def rli(dat): n = len(dat[:,0]) npsi = n dmk = np.mean(dat[:,0]) drive = dat[:,0] #smoothing matrix (see thesis page 123) s = np.zeros((n,npsi)) for ik in range(n): if (ik == 0): s[ik...
[ "david.starkey@vortexa.com" ]
david.starkey@vortexa.com
34264c770d85f40717b542168a87afe11e4de806
28729bdabcb1c83429752bc15b14f2ac1950028f
/firmware/python_modules/ttgo/display.py
cec7ba3b5b7ef2de793eae865ba1176f33d89bf2
[]
no_license
badgeteam/ESP32-platform-firmware
434020769b36df164fd1719b3bcf996851d55294
04282f7fe84ddd0f0c3887fa948da68a9ade8126
refs/heads/master
2023-08-17T07:07:51.048777
2023-08-14T20:53:37
2023-08-14T20:53:37
194,534,857
31
49
null
2023-08-15T21:00:09
2019-06-30T15:59:30
C
UTF-8
Python
false
false
196
py
import framebuf, ssd1306 rawbuffer = bytearray(1024) framebuffer = framebuf.FrameBuffer(rawbuffer, 128, 64, framebuf.MONO_VLSB) framebuffer.fill(0) def write(): ssd1306.write(bytes(rawbuffer))
[ "renze@rnplus.nl" ]
renze@rnplus.nl
46457426cc4092cec5124c9d94f0b6c5bed4816f
177d7066f6a0326ed937a56174d7e2241653929a
/Bit Manipulation/lc342.py
dd9eb4da4e68b3189d6b9a6a91d470909dada499
[]
no_license
jasonusaco/Leetcode-Practice
276bcdb62b28806b3d297338882f4b1eef56cc13
91dc73202eb9952a6064013ef4ed20dfa4137c01
refs/heads/master
2020-07-06T08:29:09.419062
2019-10-10T01:43:03
2019-10-10T01:43:03
202,955,682
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
""" Power of X的万能解法,取余 如果每次将这个数除以x没有余数,直到得到数字1, 那么这个数就是x的若干次幂。 """ class Solution: def isPowerOfFour(self, num): if num: while num % 4 == 0: num /= 4 return num == 1 return False
[ "yangyx@raysdata.com" ]
yangyx@raysdata.com
8cc684f45b74a98529b8ff69e60bbeb09dcfc374
33a50bb13812090a36257078522b798762978c66
/top/api/rest/CrmGroupAppendRequest.py
29f96fdca7079fb9b0b072478260fe71b7454713
[]
no_license
aa3632840/quanlin
52ac862073608cd5b977769c14a7f6dcfb556678
2890d35fa87367d77e295009f2d911d4b9b56761
refs/heads/master
2021-01-10T22:05:14.076949
2014-10-25T02:28:15
2014-10-25T02:28:15
23,178,087
1
0
null
null
null
null
UTF-8
Python
false
false
329
py
''' Created by auto_sdk on 2014-09-08 16:48:02 ''' from top.api.base import RestApi class CrmGroupAppendRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.from_group_id = None self.to_group_id = None def getapiname(self): return 'taobao.crm.group...
[ "262708239@qq.com" ]
262708239@qq.com
93baf278f43051a2a6f0d658c2e09dec5bf62932
f8ffa8ff257266df3de9d20d95b291e393f88434
/Python - advanced/zajecia12/alch/baza_sqla02.py
a999f1f5b033b5c8a434b71097c8f37b70ef8b7b
[]
no_license
janiszewskibartlomiej/Python_Code_Me_Gda
c0583c068ef08b6130398ddf93c3a3d1a843b487
7568de2a9acf80bab1429bb55bafd89daad9b729
refs/heads/master
2020-03-30T05:06:26.757033
2020-03-02T08:53:28
2020-03-02T08:53:28
150,781,356
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
from sqlalchemy.orm import sessionmaker from baza_model import Produkt from sqlalchemy import create_engine if __name__ == '__main__': engine = create_engine('sqlite:///baza.db') DBSession = sessionmaker(bind=engine) session = DBSession() nowy_produkt = Produkt(nazwa='Mleko Świeże 2%', ...
[ "janiszewski.bartlomiej@gmail.com" ]
janiszewski.bartlomiej@gmail.com
a278aa6fd4ed837e85f7ce4606301bc9bbe7f072
49ae5436d6feccc0f2572c1d1e22a980fe0e1e36
/pydl/goddard/misc/__init__.py
b181f27f01981d5dea0b1cf0f031e5765f658fe2
[]
no_license
linan7788626/pydl
4e0f290c75ab78c22f5627e8ad8ea8cb040ba7f9
8ab8d03972990e3645d8d62e53cd66d0780698a2
refs/heads/master
2020-12-28T20:42:19.938393
2014-10-24T20:18:39
2014-10-24T20:18:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ This subpackage corresponds to the misc directory in the Goddard utilities. """ from .cirrange import cirrange from .readcol import readcol
[ "benjamin.weaver@nyu.edu" ]
benjamin.weaver@nyu.edu