blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
beba7761e3c9f91219f06b74b9cbab4211c96b1e
4148260054c2cf4605dacb8bdef3605c82eca470
/temboo/Library/YouTube/GetVideoData.py
251023437876e0043e127d825dfedaf39bd70dca
[]
no_license
wimsy/actuarize-web
0f23d5f00afe3d36d430621cdb497d2e64998416
5f43af3019da6fb08cafeec9ff0a89df5196b864
refs/heads/master
2021-03-12T19:38:21.887681
2012-12-19T01:13:50
2012-12-19T01:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,892
py
# -*- coding: utf-8 -*- ############################################################################### # # GetVideoData # Retrieve information about a single video using its ID. # # Python version 2.6 # ############################################################################### from temboo.core.choreography impo...
87b1dfad526d13c87d36c656f69dc17a42896b7a
966280ab617298a3ced79bc60189b301c795067a
/Arrays/849_Maximize_Distance_to_Closest_Person.py
a0995f69ead8954fb648b5097c491a25f7386fab
[]
no_license
Rishabhh/LeetCode-Solutions
c0382e5ba5b77832322c992418f697f42213620f
2536744423ee9dc7da30e739eb0bca521c216f00
refs/heads/master
2020-06-10T02:37:42.103289
2019-05-29T06:38:02
2019-05-29T06:38:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
class Solution: def maxDistToClosest(self, seats): """ :type seats: List[int] :rtype: int """ temp = [] MIN_ = -sys.maxsize MAX_ = sys.maxsize left_closest, right_closest = -1, -1 for ii, seat in enumerate(seats): if seat == 1: ...
c945d1ab3b59d516b883b0730daa41751640c90e
95fcf7ebe0fa31d93a5792ec2970096840be2fa0
/synthesize_forcing.py
52c7e92d9cc3cc5c9b704f2dfc79ab793e35eef9
[]
no_license
alphaparrot/rossby-blocking
d40036ff46a590cff115bca5cd65dae20b3872ca
a04beb0ff406f92002cd572387bc1ab23ccf5c48
refs/heads/master
2020-03-20T02:28:15.805933
2018-07-10T21:29:32
2018-07-10T21:29:32
137,114,260
0
0
null
2018-06-15T20:32:15
2018-06-12T18:48:57
Jupyter Notebook
UTF-8
Python
false
false
2,663
py
import numpy as np import matplotlib.pyplot as plt # Block Shape: (time, xwidth, twidth, phase, (xcoord,tcoord)) (the last only for onsets) if __name__=="__main__": nblocks = np.zeros((5,10,5,20)) starts = np.zeros((5,10,5,20,2),dtype=object) avgdelays = np.zeros((5,10,5,20)) stddelays = np.zeros((5,1...
52261d342e614435f55e2603a9afba68ca74ec2a
9f760efe9f29e1a6275897491a26717066009366
/raet/test/test_resend.py
fff4d770daf03816762c6fd548e94c28b5f7eca8
[ "Apache-2.0" ]
permissive
KennethWilke/raet
ba2e79dfcbd831bff8e34d9d69f9c4490c233d03
9e0aa33e1c75c9ff4c3843094c62806a22ea98bc
refs/heads/master
2020-12-26T03:33:14.493683
2014-04-25T00:56:41
2014-04-25T00:56:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,454
py
# -*- coding: utf-8 -*- ''' Tests to try out stacking. Potentially ephemeral ''' # pylint: skip-file import os import time from ioflo.base.odicting import odict from ioflo.base.aiding import Timer, StoreTimer from ioflo.base import storing from ioflo.base.consoling import getConsole console = getConsole() from s...
8bc4198785572801be0e33bd3d272e583af48ee1
1f5dc6ce24fdf4557456e3cd6775142338043d9c
/active_reward_learning/envs/reward_model_mean_wrapper.py
35a2121067a6bf1dea06a214f4b3b56acc0f21ba
[ "MIT" ]
permissive
david-lindner/idrl
7c747211fc38e0478b26d254206ddef70d3dac64
54cfad330b0598ad4f6621796f2411644e50a6ba
refs/heads/main
2023-09-02T11:20:23.120737
2021-11-16T17:31:33
2021-11-16T17:31:33
421,450,567
13
0
null
null
null
null
UTF-8
Python
false
false
2,208
py
from types import SimpleNamespace from typing import Dict, Tuple, Union import gym import numpy as np class RewardModelMeanWrapper(gym.RewardWrapper): def __init__(self, env: gym.Env, reward_model, debug=False, normalize=False): self.reward_model = reward_model self.debug = debug self.nor...
98635d4fc5f53515fc9a84f85e75df945ff982b5
9d0d3b7de45213b285856b85c0045166524826aa
/pymorphy2/tokenizers.py
57806fb35350349c44c49a7111887a34b1e6c623
[]
no_license
albedium/pymorphy2
b9b41eacef6c3d12464a513f76e71e64ece125ee
174662e229535cba7ae06360d14d41c943175b3a
refs/heads/master
2021-01-14T11:49:19.806721
2015-05-02T21:06:20
2015-05-02T21:06:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
# -*- coding: utf-8 -*- import re GROUPING_SPACE_REGEX = re.compile('([^\w_-]|[+])', re.UNICODE) def simple_word_tokenize(text, _split=GROUPING_SPACE_REGEX.split): """ Split text into tokens. Don't split by a hyphen. """ return [t for t in _split(text) if t and not t.isspace()]
9e364fe7c9378298374f78d0f5533f5be9285466
ecab049c0784e61b05fd9c76320cc7b330a63a73
/Adversarial Games/connect4.py
95224c8b6814908093c5bdfca9641f0cfa79dc41
[]
no_license
Praj390/CPSC6420_Artificial_Intelligence
50ea2440c3e46b1baed3a6d0706e70b41eb61255
8257a50fab73a909a9791521bf097a7a11291e2f
refs/heads/main
2023-01-29T18:53:32.057094
2020-12-12T15:26:53
2020-12-12T15:26:53
306,147,373
0
0
null
null
null
null
UTF-8
Python
false
false
14,476
py
# connect4.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to Clemson University and the authors. # # Authors: Pei Xu (pei...
9970bdc6d139a4de2ffe6edfe933ebe791804b02
08024f21c1319d54ea3e524edf08e614eb0960bc
/old code/DoubanClient/douban_top250_demoV2.py
f8981b23e5671add044a5d515fc708ec6da8dc8e
[]
no_license
beforeuwait/webCrawl
08dd5375da93f511672d746c64ef42cf5b25449c
dc30ed7ef00f077894cfc0c2555f9dddb22c3537
refs/heads/master
2020-06-23T02:16:40.828657
2017-06-15T02:59:05
2017-06-15T02:59:05
74,671,539
0
1
null
null
null
null
UTF-8
Python
false
false
2,672
py
# -*- coding:utf8 -*- import requests from lxml import etree import pymongo class DoubanClient(): def __init__(self): object.__init__(self) self.url = 'http://movie.douban.com/top250' self.headers = { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,...
57c88811564948b7722125c6c0d4fb97522586aa
7c964cd93343ac704ac3d9c82c977a0cd0a672e7
/listing/migrations/0001_initial.py
de9a37a83efcd5555bca0d1c47a762b2a37abb1c
[]
no_license
praekelt/jmbo-listing
be32bd43225ccf6de2c530e46c54dcac6b3c6a46
91a9e369a67cccef38d125e16272e01187c0ef1c
refs/heads/master
2020-04-19T10:31:51.345676
2017-08-30T12:20:30
2017-08-30T12:20:30
66,532,006
0
0
null
null
null
null
UTF-8
Python
false
false
5,099
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-08-25 07:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('jmbo', '0003_auto_20160530_1247'), ...
339abc4f028a0a65d15b39f546ab2a0fa4beafd3
58e5e46b7e213e55f0f6e2a003b0a4ecfb261673
/filtered_contenttypes/fields.py
9bf1d2a7db8be61de7e3fa94d65a104ae86a4352
[ "MIT" ]
permissive
pombredanne/djorm-ext-filtered-contenttypes
3b334d89c08c74b898b8e27ae82581cbbd59013d
ad15e35d0242259182d72db8ae61455b2bc833fa
refs/heads/master
2021-01-17T22:59:42.608934
2014-10-26T09:02:37
2014-10-26T09:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,677
py
# -*- encoding: utf-8 -*- from django.contrib.contenttypes.fields import GenericForeignKey from django.db.models import Lookup from django.contrib.contenttypes.models import ContentType from django.db.models.lookups import RegisterLookupMixin from django.db.models.query import QuerySet from django.utils.itercompat imp...
ff6af04706daacf32c78ad33e94466af43186202
61cb083d5d3c70d3ea1c66e4bae341c20c8e38b4
/accounts/migrations/0007_auto_20190827_0050.py
89703acd856462b1ddf5729e73c3da0661535cb8
[]
no_license
Fabricourt/villacare
1c60aab2f76096d1ae4b773508fe6eb437763555
983e512eace01b4dee23c98cc54fcb7fdbd90987
refs/heads/master
2022-11-28T11:15:18.530739
2019-09-05T03:30:03
2019-09-05T03:30:03
205,774,903
0
0
null
2022-11-22T03:16:03
2019-09-02T04:09:48
CSS
UTF-8
Python
false
false
1,017
py
# Generated by Django 2.1.5 on 2019-08-26 21:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_auto_20190827_0035'), ] operations = [ migrations.RenameField( model_name='account', old_name='tota...
3b57edfe545881fccfea9a871d223f56cffa25bd
0263e511b29dde94d833bec1e5a2a95b8c29f8b0
/TIMBER/Utilities/TrigTester.py
dc4383688da44e30736433d761ac15ba56d772b0
[]
no_license
jialin-guo1/TIMBER
f4907466e39281385c153be5372d266543908a0d
448b6063234632ef0239e4cd42c15a98ab497501
refs/heads/master
2023-01-08T18:03:54.917039
2020-11-05T14:22:32
2020-11-05T14:22:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,272
py
##################################################################################################### # Name: TrigTester.py # # Author: Lucas Corcodilos # # Date: 1/2/20...
3659bd20dff05e3843f0e513a207c6e3ef09f4c6
e26a5d55a219da7a5fb2e691a7fe2adb1683543d
/tensortrade/features/feature_pipeline.py
e158740f1584f1ea90839b7c4e01681617605b4d
[ "Apache-2.0" ]
permissive
MildlyOffensive/tensortrade
e02dbcbec07597292de91eaa375b8af9ae305194
9fe223c1ff0d58428e9e88d4d287570e24ee1ae4
refs/heads/master
2022-04-06T21:48:35.380231
2019-10-24T18:17:02
2019-10-24T18:17:02
282,754,798
1
1
Apache-2.0
2020-07-27T00:05:44
2020-07-27T00:05:43
null
UTF-8
Python
false
false
3,842
py
# Copyright 2019 The TensorTrade Authors. # # 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...
1f48ce3aa62ece3db3e57b1134cb2ab81a563424
1c655b13e159ec064968d74297fb3e994a1fa3f7
/0x00-python_variable_annotations/main/100-main.py
3163850ec41e7e25a085e95403fb340a6a58ad05
[]
no_license
Faith-qa/alx-backend-python
886672663a8206afa47ce877331deef97802512c
1eb5ad2cbc2d2bfa4dc911901417797d160d3645
refs/heads/master
2023-08-16T07:21:55.127802
2021-09-21T09:50:49
2021-09-21T09:50:49
388,657,895
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
#!/usr/bin/env python3 safe_first_element = __import__('100-safe_first_element').safe_first_element print(safe_first_element.__annotations__)
a943d4d0152eac60671d88862ad057df96206c55
9c63f6d39a6085674ab42d1488476d0299f39ec9
/Python/LC_Minesweeper.py
7fce4305e14c974fcd536afc78f77ee3cbc38f62
[]
no_license
vijayjag-repo/LeetCode
2237e3117e7e902f5ac5c02bfb5fbe45af7242d4
0a5f47e272f6ba31e3f0ff4d78bf6e3f4063c789
refs/heads/master
2022-11-14T17:46:10.847858
2022-11-08T10:28:30
2022-11-08T10:28:30
163,639,628
1
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
class Solution(object): def updateBoard(self, board, click): """ :type board: List[List[str]] :type click: List[int] :rtype: List[List[str]] Approach: You're given click, which corresponds to a particular coordinate within the board. If this ...
6c32e35bd711b0391725f3959ab4d3aa654ee111
7117862ecbccf811b8c9f476d328c0c91db15b48
/Config/local_settings.py
6e9e9080547256775543884280c4888d7dfb2d77
[]
no_license
turamant/Profile
330e968ffe797fd7759269a3c804b82388a5838e
a7c32f22b11e93f1264aaa9d7b72aaf497acff65
refs/heads/main
2023-04-08T15:50:40.052101
2021-04-26T19:50:55
2021-04-26T19:50:55
361,712,435
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
# SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'django-insecure-gy^s)i8g=3i46ypvnrk-j_x+@s4^y&1*fd%$-2$dnc=#4(vxek' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['*']
ec22a156d3c9287499019a6a37d7ad52401e6b2f
cb4902406f4271394c352bfc49ac4a0e8931d5dc
/backend/home/migrations/0002_load_initial_data.py
3c22b9d08248db69bd7856d4286b1ed72cc5dd2c
[]
no_license
crowdbotics-apps/yourtb-21307
492e2eec85e8a562d71f67a7c99ed64ba915ce5e
ce93c74f6bb21bceca6abdca6bb4c4e46bd5e7cb
refs/heads/master
2022-12-29T23:02:15.003469
2020-10-09T19:27:13
2020-10-09T19:27:13
302,735,020
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Yourtb" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ho...
f4342daeb939ca4561554ef1dbb83de6b0ace017
f6c6085c34ac6e1b494ff039cd0173b47cc9c6c4
/byceps/services/user_badge/transfer/models.py
42e439d39bb717540a0ec59220198242e23a10c4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
FakoorCo/byceps
971042f598a12c00465b0c3a714f4ac7dbdc9d5b
11290b154b83f5ac3a9530fb6cd752b3d7a3989b
refs/heads/main
2023-01-23T18:53:59.930267
2020-11-30T01:09:20
2020-11-30T01:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
""" byceps.services.user_badge.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2020 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from dataclasses import dataclass from datetime import datetime from typing import NewType from uuid import UUID from ....typ...
348940e392a4bfa8cbd62fb6a434869f9e9f56d9
feba0822906bc306aacd1ba07254f9d85f7195db
/week 5/MoneyChange.py
391778b6abe4d8c365e88c4d8f9df1e2c14a983f
[]
no_license
Pratyaksh7/Algorithmic-Toolbox
0d535d652a5619c8d1c1e8b602ab8b1cf4e12eb7
2153a37426a510e9232d3b3cdd01a2d624eee83f
refs/heads/master
2022-12-03T21:57:53.699507
2020-08-24T07:49:59
2020-08-24T07:49:59
281,179,714
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
# using python3 def minCoins(n, Coins): maxCoin = max(Coins) dic = {1: 1, 2: 2, 3: 1, 4: 1} if n > 4: if n % maxCoin == 0: print(n // 4) elif n % maxCoin == 1 or n % maxCoin == 2 or n % maxCoin == 3: print((n // 4) + 1) else: print(dic[n]) n = int(input(...
d8ac7dbd544e75aa6e93408cab924c49ff306ac1
d491c11dc87a955c95a4e14a2feea19fe1fa859e
/python/Arcade/Python/P15FeebackReview.py
77f7ef9557afa7896637dc067567d08a73208df9
[]
no_license
Vagacoder/Codesignal
0f6ea791b25716cad7c46ab7df73679fb18a9882
87eaf44555603dd5b8cf221fbcbae5421ae20727
refs/heads/master
2023-07-16T04:18:44.780821
2021-08-15T18:41:16
2021-08-15T18:41:16
294,745,195
1
0
null
null
null
null
UTF-8
Python
false
false
2,975
py
# # * Python 15, Feedback Review # * Easy # * You've launched a revolutionary service not long ago, and were busy improving # * it for the last couple of months. When you finally decided that the service # * is perfect, you remembered that you created a feedbacks page long time ago, # * which you never checked out ...
147027e78c585ffbc62132cb0116bc6522c71e71
8a5669848a675c367e6a58d57dd25f15bf8bb2a5
/examples/classification/01_functional_style_metric.py
5a90f22f4be00cb4891772d18054d28865e4af4d
[ "GPL-1.0-or-later", "GPL-3.0-only" ]
permissive
thieu1995/permetrics
a6c74150e6f03d2e62ad762dc7fe1fa7d03c5d84
85b0f3a750bdebc5ade0422e6be7343d90d3cb98
refs/heads/master
2023-08-17T14:00:03.705206
2023-08-12T15:23:53
2023-08-12T15:23:53
280,617,738
30
8
Apache-2.0
2022-06-27T04:03:30
2020-07-18T08:47:17
Python
UTF-8
Python
false
false
1,692
py
#!/usr/bin/env python # Created by "Thieu" at 11:36, 25/03/2022 ----------% # Email: [email protected] % # Github: https://github.com/thieu1995 % ...
8bfae8d09d2c6cb4ff1a5cce566dad3e7cbe52ed
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/259_v2/test_reverse_complement.py
8306e1e9cc6d840d6832bd8d3e4d29db696d1bb5
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
7,946
py
# _______ p__ # # _______ ? # # # Table copied from # # http://arep.med.harvard.edu/labgc/adnan/projects/Utilities/revcomp.html # # Note that this table is different from the simple table in the template # # This table includes additional rules which are used in more advanced # # reverse complement generators. Please e...
1098a789c29b45f0d9d74b610f2bd525c611d6ba
e70b678712a355a0b51632728c7781b0bdcf29f4
/Algorithms/Python/House-Robber-III.py
a74ac277aba3199f40ac9f6b7b313a6b34906408
[]
no_license
keyi/Leetcode_Solutions
b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af
69e4e969b435ff2796bd7c4b5dad9284a853ab54
refs/heads/master
2020-05-21T23:36:20.450053
2018-11-11T03:45:28
2018-11-11T03:45:28
33,714,612
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def rob(self, root): """ :type root: TreeNode :rtype: int """ def dfs(node): ...
372a51ab5a1ba04386d600954a4b8dfd5297b211
e61e725d9a962837e2b56f84e3934b0fb52dd0b1
/eoxserver/backends/middleware.py
fcd2756c0adad6b32c04637ceb2a4f2e2ccd6006
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
ESA-VirES/eoxserver
719731172c2e5778186a4b144a201f602c07ce7e
d7b65adf9317538b267d5cbb1281acb72bc0de2c
refs/heads/master
2021-01-21T20:06:22.164030
2014-10-14T12:21:13
2014-10-14T12:21:13
25,151,203
1
0
null
2014-12-04T09:46:54
2014-10-13T09:00:54
Python
UTF-8
Python
false
false
2,089
py
#------------------------------------------------------------------------------- # $Id$ # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <[email protected]> # #------------------------------------------------------------------------------- # Copyright (C) 2013 EOX IT Services GmbH # # Per...
451fca20992f85b6ab2bdff565ff25314a62df06
5a72f4ad3dee9c93e907e5db6ae073a0f6173557
/web/actions/log_handler.py
8eb2c9e92525a051d778d3ec66e77de9aa6b3fba
[ "Apache-2.0" ]
permissive
avikowy/machinaris
170117fa8857942d90b33b15a727674924da1d66
23eead3c30e5d4a75b13c142638c61bcd0af4bfe
refs/heads/main
2023-06-17T15:54:08.795622
2021-07-16T04:19:37
2021-07-16T04:19:37
386,497,979
0
0
Apache-2.0
2021-07-16T03:35:17
2021-07-16T03:35:17
null
UTF-8
Python
false
false
822
py
# # Actions around access to logs on distributed workers. # import datetime import os import psutil import re import signal import shutil import socket import time import traceback import yaml from flask import Flask, jsonify, abort, request, flash from web import app, db, utils def get_log_lines(worker, log_type, ...
1e748bcd33d6fe1bf140ccdb45cb963a56a7eaaa
55c552b03a07dcfa2d621b198aa8664d6ba76b9a
/Algorithm/BOJ/13300_방 배정_b2/13300.py
1f760d8e2112fd870232bb7889e148e0582076d3
[]
no_license
LastCow9000/Algorithms
5874f1523202c10864bdd8bb26960953e80bb5c0
738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71
refs/heads/master
2023-08-31T12:18:45.533380
2021-11-07T13:24:32
2021-11-07T13:24:32
338,107,899
0
1
null
null
null
null
UTF-8
Python
false
false
723
py
# boj 13300 방 배정 b2 # https://www.acmicpc.net/problem/13300 import math N, K = map(int, input().split()) count_studentMen = [0] * 7 # 6학년까지 ex. 1학년은 1번인덱스를 사용 count_studentWomen = [0] * 7 res = 0 for i in range(N): S, Y = map(int, input().split()) # S성별 Y학년 if S == 0: # 여자라면 count_studentWomen[Y] +...
36e25d40975cb3f2bbb9ca251092b2dcf81d78b0
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/298/68638/submittedfiles/testes.py
7bb6c9f0c7507804399fccf4e2c1e9aca7ac8f50
[]
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
1,370
py
print('Sejam a, b e c os coeficientes de uma equação do segundo grau') a = float(input('Digite a: ')) b = float(input('Digite b: ')) c = float(input('Digite c: ')) delta = (b**2 - 4*a*c) if (delta>=0): raizdelta = float((delta)**(1/2)) else: raizdelta = float((-(delta)**(1/2))*float(j)) x1 = float(-b/2 + raizde...
ff33b0745544823f2ef412e0af480151dc88739a
8ef477149fdd8cd8c0ad88f160e2b8a445550a1e
/ebay_message_mgnt_v13/models/sale.py
640d56cdf61c3f2595d74646f9d71dd5e8ca8e3f
[]
no_license
cokotracy/ebay_connector_v13
97f3e23ba951f14457514b71b408b389a7c16dc7
3c08603875d464e5bee818091fa704f5f7192499
refs/heads/master
2022-07-19T21:15:23.065880
2020-05-20T15:20:23
2020-05-20T15:20:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,814
py
from odoo import api, fields, models, _ import time import datetime # from odoo import SUPERUSER_ID, api import logging logger = logging.getLogger('sale') class sale_shop(models.Model): _inherit = "sale.shop" last_ebay_messages_import = fields.Datetime('Last Ebay Messages Import') def i...
[ "https://[email protected]" ]
6e3dfb3631b760423c667b2beb46878bf90acc3d
79d9637df98bc89387963fc0173f375a690f8922
/coffee-time-challenges/01-two-bases/main.py
edbf0a927a8c53a494d1f2bc839ea9be5f6798ff
[]
no_license
schickling/challenges
979248b916a24d232dd8adce89355b9eaf767b34
1af54711f0530a46395ccb18eb51fc25bf385f22
refs/heads/master
2020-04-06T04:00:37.007054
2014-11-06T22:50:33
2014-11-06T22:50:33
21,869,648
2
3
null
2014-08-06T21:44:20
2014-07-15T17:46:46
Python
UTF-8
Python
false
false
369
py
#!/usr/bin/env python3 from itertools import combinations_with_replacement def check(x, y, z): return x*100+y*10+z == x+y*9+z*9**2 def main(): retults = [] for x, y, z in combinations_with_replacement(list(range(10)), 3): if check(x, y, z): retults.append((x, y, z)) return retul...
05dfe07de9ba0591de1500ea636fa068095f821c
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/ZAYqnMhmqT5K3JWu8_23.py
c5aa2fd02e9faf3824d7d3e58878054a3bc3506e
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
def calculate_fuel(n): if n * 10 <100: return 100 else: return n * 10
8c475f1e44e2c48ce766a5e3e2fdc0acbf79ef4b
50b9e93fb40e368c73d8d22680171f22e0200c65
/tuesday-api/first-meet-jwt.py
a45f78edc5bc526f05c65977e80d5700d79089cc
[]
no_license
bopopescu/python-cgi-monitor
cd87a2a07a41547a19222dd7bef7190eec221ed1
c79e81e129a5f1da3bffae6d69ec8ba2c0e2a8a6
refs/heads/master
2022-11-19T23:44:39.484833
2019-01-22T11:36:55
2019-01-22T11:36:55
281,807,428
0
0
null
2020-07-22T23:55:00
2020-07-22T23:54:59
null
UTF-8
Python
false
false
2,432
py
from datetime import datetime, timedelta import jwt JWT_SECRET = 'secret' JWT_ALGORITHM = 'HS256' JWT_ISS = 'http://192.168.254.31' JWT_AUD = 'http://192.168.254.31' JWT_EXP_DELTA_SECONDS = 60 def encode_jwt(user): JWT_IAT=JWT_NBF = datetime.utcnow() playload = { 'user_iid': user, 'iss': JWT_...
f4cd681d7022d51d6c996a82e8b22f278d3d8f88
34548104ae25886505a681971a7a55e11046a213
/facenet/train_softmax.py
67fb73713b8236a209cc17fad3e3b13c1fead756
[]
no_license
classnalytic/classnalytic-ML
37b5b20c9ad57dab7a3d3128bc42bcb4d21dea15
e78e87883978e7c415f03931136e40346da6cabc
refs/heads/master
2020-03-22T19:44:10.523444
2019-02-08T14:05:45
2019-02-08T14:05:45
140,547,359
2
1
null
null
null
null
UTF-8
Python
false
false
32,919
py
"""Training a face recognizer with TensorFlow using softmax cross entropy loss""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import os.path import time import sys import random import tensorflow as tf import numpy as np im...
1a604200841cdb5e426f73eaa13a5b46d175c696
e85e846960750dd498431ac8412d9967646ff98d
/cms/urls/admin.py
a20ef9f30b42d704db803611f070617109c8e0d0
[]
no_license
onosaburo/clublink_django
19368b4a59b3aed3632883ceffe3326bfc7a61a6
d2f6024b6224ea7f47595481b3382b8d0670584f
refs/heads/master
2022-03-30T05:30:12.288354
2020-01-27T18:09:11
2020-01-27T18:09:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
from django.conf.urls import include, url urlpatterns = [ url(r'^club-sites/', include('clublink.cms.modules.club_sites.urls')), url(r'^corp-site/', include('clublink.cms.modules.corp_site.urls')), url(r'^assets/', include('clublink.cms.modules.assets.urls')), url(r'^users/', include('clublink.cms.mod...
d52c94cca0b3de9681b5b345b45606a67bb54bd9
329664fce59d25d6e88c125c1105bc6b4989a3b8
/_exercice_version_prof.py
6fa3252521c4ec7bf995ba41442cfd66c1597a72
[]
no_license
INF1007-2021A/2021a-c01-ch6-supp-3-exercices-LucasBouchard1
a8e7d13d8c582ebc44fe10f4be5e98ab65609bcb
f46ea10010a823cad46bbc93dba8d7691568d330
refs/heads/master
2023-08-13T20:49:54.742681
2021-09-30T18:05:38
2021-09-30T18:05:38
410,077,221
0
0
null
null
null
null
UTF-8
Python
false
false
4,700
py
#!/usr/bin/env python # -*- coding: utf-8 -*- def check_brackets(text, brackets): # TODO: Associer les ouvrantes et fermantes (à l'aide d'un dict) opening_brackets = dict(zip(brackets[0::2], brackets[1::2])) # Ouvrants à fermants closing_brackets = dict(zip(brackets[1::2], brackets[0::2])) # Fermants à ouvrants ...
[ "66690702+github-classroom[bot]@users.noreply.github.com" ]
66690702+github-classroom[bot]@users.noreply.github.com
ad894d4f56aba4cac738231d9e972e40bc62b0a9
3d7e1a506d65c23c84b7430fa46623cb98de8c64
/moreifelse.py
d00d9e4937067bacab561253371fcb13cdce1fc3
[]
no_license
crakama/UdacityIntrotoComputerScience
cb6ac8a9084f078eaf245a52adc43541c35dc3f4
416b82b85ff70c48eabae6bb9d7b43354a158d9a
refs/heads/master
2021-01-09T20:39:15.974791
2016-07-18T20:59:09
2016-07-18T20:59:09
60,571,882
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
# Define a procedure, is_friend, that takes # a string as its input, and returns a # Boolean indicating if the input string # is the name of a friend. Assume # I am friends with everyone whose name # starts with either 'D' or 'N', but no one # else. You do not need to check for # lower case 'd' or 'n def is_friend(str...
8231022b260cc49ceca99cdc566df4b0860f21eb
fb468eee3a5a6467d299373c9632802f903c2ea8
/CIL/rastersystem.py
852c637a35a6a47c79a18a505dbba2b8e199b57a
[]
no_license
fish2000/cython-imaging
ebcd51789692de756fd8cd1030636364d1c248ba
a3f0d1784275a3d4e3ad509b77c7563856be96d4
refs/heads/master
2021-01-20T11:23:00.414850
2012-07-14T20:17:29
2012-07-14T20:17:29
4,513,759
1
1
null
null
null
null
UTF-8
Python
false
false
16,504
py
#!/usr/bin/env python # # NB: see warning regarding matrix row/column ordering in raytracer.cpp file header # # The matrix is stored in sparse format. # For each row we have an (index,value) pair. import numpy as np from os.path import isdir, join, basename, dirname, abspath, splitext from os import getcwd, chdir fr...
97ee66ff1a3f90a62d9c62d68d7867612770f666
eee6dd18897d3118f41cb5e6f93f830e06fbfe2f
/venv/lib/python3.6/site-packages/sklearn/gaussian_process/tests/test_kernels.py
291458c12d1df9af9acbc79e933cb0ac4a84c03a
[]
no_license
georgeosodo/ml
2148ecd192ce3d9750951715c9f2bfe041df056a
48fba92263e9295e9e14697ec00dca35c94d0af0
refs/heads/master
2020-03-14T11:39:58.475364
2018-04-30T13:13:01
2018-04-30T13:13:01
131,595,044
0
0
null
null
null
null
UTF-8
Python
false
false
12,539
py
"""Testing for kernels for Gaussian processes.""" # Author: Jan Hendrik Metzen <[email protected]> # License: BSD 3 clause from sklearn.externals.funcsigs import signature import numpy as np from sklearn.gaussian_process.kernels import _approx_fprime from sklearn.metrics.pairwise \ import PAIRWISE_K...
2090d13db2c206218556a5ebdfd8c9f99b604499
d0ddcccea697ddcb3aad37c51e11f57a5fc6573c
/tests/test_data/recursive_hello.py
a492ccaec19505a36f3f0177320bd88dd6a487c6
[ "MIT" ]
permissive
kiok46/webkivy
0c0d8fcd1b1e596ec45833501e92d659159f5b1c
8f3522e61cd5951f825f5f1eef5482aa1bc436a5
refs/heads/master
2021-01-22T01:38:04.007487
2016-03-13T06:46:11
2016-03-13T06:46:11
53,776,897
1
0
null
2016-03-13T09:23:20
2016-03-13T09:23:19
null
UTF-8
Python
false
false
74
py
from subfolder.subtest import subhello def hello(): return subhello()
ece46492b31fb46f106f1115a52f482853cf4f21
b167407960a3b69b16752590def1a62b297a4b0c
/tools/project-creator/Python2.6.6/Lib/bsddb/test/test_get_none.py
9c08a61b1e86fd2f0f11cfd0919ea35f308fe7de
[ "MIT" ]
permissive
xcode1986/nineck.ca
543d1be2066e88a7db3745b483f61daedf5f378a
637dfec24407d220bb745beacebea4a375bfd78f
refs/heads/master
2020-04-15T14:48:08.551821
2019-01-15T07:36:06
2019-01-15T07:36:06
164,768,581
1
1
MIT
2019-01-15T08:30:27
2019-01-09T02:09:21
C++
UTF-8
Python
false
false
2,330
py
""" TestCases for checking set_get_returns_none. """ import os, string import unittest from test_all import db, verbose, get_new_database_path #---------------------------------------------------------------------- class GetReturnsNoneTestCase(unittest.TestCase): def setUp(self): self.fil...
59d056538621fac227eb382e34ac693ad942fe9a
5189a2e2e1fbf04edb2e212652b268361bc54de6
/dephell/commands/jail_show.py
0dea75396705ef81137ac8537f6baff5868bde42
[ "MIT" ]
permissive
Brishen/dephell
50f74a4d9c94fc81c3ae5bc3b8472b4d89e23fd7
1a09de4b9204466b4c9b833fd880542fb6b73d52
refs/heads/master
2021-03-30T09:19:05.518468
2020-03-17T17:54:22
2020-03-17T17:54:22
248,037,267
0
0
MIT
2020-03-17T17:53:53
2020-03-17T17:53:52
null
UTF-8
Python
false
false
2,249
py
# built-in from argparse import ArgumentParser from pathlib import Path # external from dephell_venvs import VEnvs from packaging.utils import canonicalize_name # app from ..actions import format_size, get_path_size, make_json from ..config import builders from ..converters import InstalledConverter from .base import...
5f761522ce7ca247bfbcbff7daf927ba4f28a87b
bf902add6952d7f7decdb2296bb136eea55bf441
/YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106013212.py
68f68f8e2ac4d0205b1ba8899014a62bf1fab713
[ "MIT" ]
permissive
jphacks/D_2003
c78fb2b4d05739dbd60eb9224845eb78579afa6f
60a5684d549862e85bdf758069518702d9925a48
refs/heads/master
2023-01-08T16:17:54.977088
2020-11-07T06:41:33
2020-11-07T06:41:33
304,576,949
1
4
null
null
null
null
UTF-8
Python
false
false
16,516
py
from __future__ import division import time import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import cv2 from util import * from darknet import Darknet from preprocess import prep_image, inp_to_image import pandas as pd import random import argparse import pickle as pkl import r...
b62c2124b3745f705af3028c3d40ff02d6de01eb
a6f8aae8f552a06b82fe018246e8dcd65c27e632
/pr064/pr064.py
118db0003bd02932d1a6e1bd3e0df29b4e8e386a
[]
no_license
P4SSER8Y/ProjectEuler
2339ee7676f15866ceb38cad35e21ead0dad57e9
15d1b681e22133fc562a08b4e8e41e582ca8e625
refs/heads/master
2021-06-01T09:22:11.165235
2016-05-06T14:02:40
2016-05-06T14:02:40
46,722,844
1
0
null
null
null
null
UTF-8
Python
false
false
916
py
from math import sqrt, floor from itertools import count def get(n): def gcd(a, b): if b == 0: return a return gcd(b, a%b) if n == (int(sqrt(n)))**2: return 0 an = lambda k, c, d: int(floor(((k*sqrt(n)-c)/d))) pn = lambda k, c, d: [d*k, -d*(...
ecac4bdb1c8034948e2a47fc06bb722bf9c7a990
c1960138a37d9b87bbc6ebd225ec54e09ede4a33
/adafruit-circuitpython-bundle-py-20210402/lib/adafruit_mcp230xx/digital_inout.py
877d588cc07250f952b5661bf7a59f8ccf8b843d
[]
no_license
apalileo/ACCD_PHCR_SP21
76d0e27c4203a2e90270cb2d84a75169f5db5240
37923f70f4c5536b18f0353470bedab200c67bad
refs/heads/main
2023-04-07T00:01:35.922061
2021-04-15T18:02:22
2021-04-15T18:02:22
332,101,844
0
0
null
null
null
null
UTF-8
Python
false
false
5,166
py
# SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries # SPDX-FileCopyrightText: 2019 Carter Nelson # # SPDX-License-Identifier: MIT """ `digital_inout` ==================================================== Digital input/output of the MCP230xx. * Author(s): Tony DiCola """ import digitalio __version__ =...
3effc29166723a048756a4a499fd6f88ece2cb63
aba00d6272765b71397cd3eba105fc79b3a346e0
/Digisig/digsigvenv/lib/python3.6/site-packages/ufl/algorithms/formtransformations.py
1d4fe6041eeb9b87781c111e6617b423b24ab219
[]
no_license
JosteinGj/School
a2c7cc090571b867637003fe6c647898ba9d8d24
3b5f29846e443b97f042241237dbda3208b20831
refs/heads/master
2023-05-02T11:07:29.517669
2021-04-26T09:04:57
2021-04-26T09:04:57
295,340,194
3
1
null
null
null
null
UTF-8
Python
false
false
16,674
py
# -*- coding: utf-8 -*- """This module defines utilities for transforming complete Forms into new related Forms.""" # Copyright (C) 2008-2016 Martin Sandve Alnæs # # This file is part of UFL. # # UFL is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License a...
751478a95c3542713d69302bb04e829266b80014
67b62f49ff89982ef62ce5d5c68bc7655ededcee
/chap6/basic_evaluator.py
7fd1b1bcb0e15607838e88ad314e8711d2e2c8e8
[]
no_license
planset/stone-py
0614737e59a14745019754c453f9b49e44f125cf
467617e201a3f4028f2fb23b2bc6ce3aaa371125
refs/heads/master
2016-09-06T18:36:49.564450
2012-12-31T12:57:06
2012-12-31T12:57:06
6,389,161
1
0
null
null
null
null
UTF-8
Python
false
false
4,955
py
# -*- coding: utf-8 -*- from stone.util import reviser, super from stone.myast import ast, literal, expression, statement from stone import exception #class BasicEvaluator(object): # def __init__(self): # pass TRUE = 1 FALSE = 0 @reviser class ASTreeEx(ast.ASTree): def eval(self, env): raise N...
8de737368f805d8d9c748a04dc6b26df83141c3e
f55623e3aea5b8ae3d2c37bcfa8a853150a0b376
/a10_horizon/_enabled_hooks/_91000_a10admin_panel.py
bbfda541cbf0467babfe76f4b091824b63db24dd
[ "Apache-2.0" ]
permissive
isaaczurn/a10-horizon
0fab288d321516de72ea276d54b415a1c2e4d7d6
a96f9e95dfcda619f08a19a9057b061bdba12487
refs/heads/development
2020-12-26T04:49:33.131115
2016-08-11T16:47:09
2016-08-11T16:47:09
64,965,205
1
0
null
2016-08-04T20:31:28
2016-08-04T20:31:28
null
UTF-8
Python
false
false
846
py
# Copyright (C) 2016, A10 Networks Inc. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
7151eacc02e7268941d808551b82a302f388b83a
a24d889cc6fd5cd3fc180bcf5cf7dcd688eb691a
/yggdrasil/metaschema/properties/__init__.py
e26481182221d47dd0902bcc594398be467a91c2
[ "BSD-3-Clause" ]
permissive
ghanashyamchalla/yggdrasil
f5346bad5d1f4ed8a53e7b570c19eefb58a8a921
7b59439276eacb66f1f6ea4177d3a85cc061eed5
refs/heads/master
2022-04-20T06:08:49.110242
2020-04-15T02:44:51
2020-04-15T02:44:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,579
py
import os import glob import importlib from collections import OrderedDict _metaschema_properties = OrderedDict() def register_metaschema_property(prop_class): r"""Register a schema property. Args: prop_class (class): Class to be registered. Raises: ValueError: If a property class has ...
d8263e73a475526bf1e265cb8fa6a400a8694500
33b7a63d0866f9aabfdfdc342236191bebd1c1e6
/django_learning/django_03_url介绍/path_converter_demo/path_converter_demo/settings.py
cb32c9dcd3e6eb052f719db998531d3478ac4df0
[]
no_license
leolvcl/leo_python
21f61bb898f8c755d1ff405f90864887e18a317e
5be0d897eeee34d50d835707112fb610de69b4c8
refs/heads/master
2020-08-02T21:00:01.808704
2019-12-06T17:04:59
2019-12-06T17:04:59
211,505,290
0
0
null
null
null
null
UTF-8
Python
false
false
3,292
py
""" Django settings for path_converter_demo project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settin...
11783965c99a7fec6aa8653159a599e25ce3ebfa
491d2fd36f2ca26975b3eb302a3d5600415bf7c4
/central/multi_node_utils.py
8fbeb6444b67d9aab6cdff45669e13032d27f208
[]
no_license
kmanchella-habana/Model-References
9fa42654d57a867d82f417e9fff668946f9105f6
460d3b23ce75f30561e8f725ebcb21298897d163
refs/heads/master
2023-08-28T17:42:48.866251
2021-09-18T21:38:04
2021-09-18T21:38:04
411,371,667
0
0
null
2021-09-28T17:08:13
2021-09-28T17:08:13
null
UTF-8
Python
false
false
6,092
py
############################################################################### # Copyright (C) 2020-2021 Habana Labs, Ltd. an Intel Company ############################################################################### """Utilities for multi-card and scaleout training""" import os import socket import subprocess im...
f871cb804836e1732c5ccb6ac5804e5a11670af4
64a1a418c6e0794dcf7be5605f1e254f2beaa65d
/tutorial/ch1/qt5_2.py
fc15b92cc431579a59972a827e95fbdeb97dd546
[]
no_license
notmikeb/python_desk
792c93f68b69dcd8c24384883421166771d40c15
1685d6e9e0c8b4d8201625ce58fa2420bc1b930e
refs/heads/master
2021-01-20T09:36:46.832716
2016-02-03T13:51:20
2016-02-03T13:51:20
40,387,601
0
0
null
null
null
null
UTF-8
Python
false
false
496
py
""" ZetCode pyQT5 tutorial """ import sys from PyQt5.QtWidgets import QApplication, QWidget from PyQt5.QtGui import QIcon class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setGeometry(300,300, 300, 220) self.setWindowTitle('Icon') self.setWindo...
e99a6cd94845610e54407e4cd435907ff9efacc5
cb25407fc1480f771391bb09e36dad123ec9fca2
/zeta/ccore.py
ae1284a066b89b51957c83e4cab38fb7716f9b45
[]
no_license
prataprc/zeta
f68925c9dfbf70331eae59ff5cf173956d249696
9c3bc88c56c67d0fff5c0790d768ad6cac79642f
refs/heads/master
2021-01-20T01:51:20.194893
2017-04-25T08:07:41
2017-04-25T08:07:41
89,334,343
0
1
null
null
null
null
UTF-8
Python
false
false
8,435
py
# -*- coding: utf-8 -*- """Everything can be a component. Component : * The ComponentMeta acts as the metaclass for all the Component derived classes. * Components with 'abstract' attribute set to True will not be registered for interface. * Components can only have no-argument initializers,...
42827266ae0abe6cf4bb9c8f2a439f58df2b3e9a
8781d392b65ccf7ebad7332de07eddea3349f55c
/examples/vtk-structured-2d-curved.py
e322305c0b6b03fe6e91706abff7bb1edf09c799
[ "MIT" ]
permissive
mattwala/pyvisfile
95006fb7771cb7b51264543344fcbb1da0504432
41c908e1530d73a2af83fa9436751cb46c0f922a
refs/heads/master
2022-11-11T11:19:15.474390
2020-06-23T05:14:31
2020-06-23T05:14:31
276,822,466
0
0
MIT
2020-07-03T06:14:45
2020-07-03T06:14:44
null
UTF-8
Python
false
false
482
py
from __future__ import absolute_import from pyvisfile.vtk import write_structured_grid import numpy as np angle_mesh = np.mgrid[1:2:10j, 0:2*np.pi:20j] r = angle_mesh[0, np.newaxis] phi = angle_mesh[1, np.newaxis] mesh = np.vstack(( r*np.cos(phi), r*np.sin(phi), )) from pytools.obj_array import make_obj...
12d2b319e45161b64b8c5e2a24a13222bf797dc1
43e900f11e2b230cdc0b2e48007d40294fefd87a
/Facebook/1763.longest-nice-substring.py
6c10cfdaef09b7133bf7adcc369d6f99c980d0c9
[]
no_license
DarkAlexWang/leetcode
02f2ed993688c34d3ce8f95d81b3e36a53ca002f
89142297559af20cf990a8e40975811b4be36955
refs/heads/master
2023-01-07T13:01:19.598427
2022-12-28T19:00:19
2022-12-28T19:00:19
232,729,581
3
1
null
null
null
null
UTF-8
Python
false
false
539
py
# # @lc app=leetcode id=1763 lang=python3 # # [1763] Longest Nice Substring # # @lc code=start class Solution: def longestNiceSubstring(self, s: str) -> str: if len(s) < 2: return "" chars = set(list(s)) for i in range(len(s)): if not (s[i].lower() in chars and s[i]...
d045c1f2d9bbf9c9ae7d90b60a3d2acae0704637
acd41dc7e684eb2e58b6bef2b3e86950b8064945
/res/packages/scripts/scripts/client/gui/miniclient/tech_tree/pointcuts.py
fb5d3bd3f860d356b28b23a159f21b25c9372f1e
[]
no_license
webiumsk/WoT-0.9.18.0
e07acd08b33bfe7c73c910f5cb2a054a58a9beea
89979c1ad547f1a1bbb2189f5ee3b10685e9a216
refs/heads/master
2021-01-20T09:37:10.323406
2017-05-04T13:51:43
2017-05-04T13:51:43
90,268,530
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,103
py
# 2017.05.04 15:21:52 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/miniclient/tech_tree/pointcuts.py import aspects from helpers import aop class OnTechTreePopulate(aop.Pointcut): def __init__(self): aop.Pointcut.__init__(self, 'gui.Scaleform.daapi.view.lobby.techtree.TechTree', 'Te...
5573c985cf87f71b6dc605b266b0413315c3457f
15e818aada2b18047fa895690bc1c2afda6d7273
/analysis/control/optimize.py
84bb77fa593651b7c63536c6d78e82f883a5d0b6
[ "Apache-2.0" ]
permissive
ghomsy/makani
4ee34c4248fb0ac355f65aaed35718b1f5eabecf
818ae8b7119b200a28af6b3669a3045f30e0dc64
refs/heads/master
2023-01-11T18:46:21.939471
2020-11-10T00:23:31
2020-11-10T00:23:31
301,863,147
0
0
Apache-2.0
2020-11-10T00:23:32
2020-10-06T21:51:21
null
UTF-8
Python
false
false
3,865
py
# Copyright 2020 Makani Technologies 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...
87d64712d998d3b868640d48f892d7e959c074cc
87dae6d55c66df1d40d6881272009319a1600cb3
/PROGRAMACION I SEGUNDO CUATRIMESTE TP1 EJ 1.py
fdb33f593f6082dcfbe9ff1eb7b7f96ae7012bcd
[]
no_license
abaldeg/EjerciciosPython
92a30a82c05ec75aa7f313c8a6fa0dd052a8db11
c8a3238587ebf6b10dbff32516c81bf00bb01630
refs/heads/master
2021-07-09T07:46:11.584855
2020-11-09T11:51:50
2020-11-09T11:51:50
210,438,930
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
""" Desarrollar una función que reciba tres números positivos y devuelva el mayor de los tres, sólo si éste es único (mayor estricto). En caso de no existir el mayor estricto devolver -1. No utilizar operadores lógicos (and, or, not). Desarrollar también un programa para ingresar los tres valores, invocar a la función ...
9de584dc3b0a4e354a76f9b19a508aacad68619d
d79ec3cb3e59778d2b4a17846434ef2d027d5f98
/polls/migrations/0001_initial.py
d025fcfa894499c76821c28ea2673060914a4cd2
[]
no_license
Marlysson/PollsApp
df08a9eae257f947f93ffa4130aec26186a087a8
57b1477ecc3732444123dbfa996a7287dc5d7052
refs/heads/master
2020-12-02T10:13:55.554610
2017-11-11T14:50:21
2017-11-11T14:50:21
96,703,281
1
0
null
null
null
null
UTF-8
Python
false
false
700
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-06 19:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
8e10a71488576fd11c908c3ed8dcc5e6ab0dfff5
8c9d5bc245b343d9a36882d6d1c850ce6a86442d
/dbdaora/geospatial/_tests/datastore/conftest.py
3fa3329a173ddadfe0ab7827399e84af9c563b7e
[ "MIT" ]
permissive
dutradda/dbdaora
1089fa9c80a93c38357818680327b24d48ac8b64
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
refs/heads/master
2021-07-04T10:06:59.596720
2020-12-05T12:24:45
2020-12-05T12:24:45
205,046,848
23
1
null
null
null
null
UTF-8
Python
false
false
446
py
import pytest from dbdaora import DatastoreGeoSpatialRepository, KindKeyDatastoreDataSource @pytest.fixture def fallback_data_source(): return KindKeyDatastoreDataSource() @pytest.fixture def fake_repository_cls(fake_entity_cls): class FakeGeoSpatialRepository(DatastoreGeoSpatialRepository): name =...
f5c61dfd6024796264c0b50d239d70e492c8e49e
e83e8a3b7ef31b36b2c590b37bf2d1df1487fe5a
/tests/test_docs/test_query.py
a7d055d10b61f98b14ac194e3ebf9d696b3d26ff
[ "MIT" ]
permissive
duilio/django-ninja
19d66eae1b3b01f9910f3ea0f569ed6d3a561707
8dac3c981bcf431322d32acd34c8179564a3698d
refs/heads/master
2023-01-21T07:17:02.544071
2020-11-25T10:48:30
2020-11-25T10:48:30
316,243,580
0
0
MIT
2020-11-26T13:56:19
2020-11-26T13:45:12
null
UTF-8
Python
false
false
3,259
py
from unittest.mock import patch from ninja import NinjaAPI from client import NinjaClient def test_examples(): api = NinjaAPI() with patch("builtins.api", api, create=True): import docs.src.tutorial.query.code01 import docs.src.tutorial.query.code02 import docs.src.tutorial.query.cod...
edcc63746e71ca4f277f371dacf3b89403bc4ebd
3ee1bb0d0acfa5c412b37365a4564f0df1c093fb
/lotte/31_eff_cnn.py
8635f32148d2aa946e79fef91e3e007516f0af09
[]
no_license
moileehyeji/Study
3a20bf0d74e1faec7a2a5981c1c7e7861c08c073
188843c6415a4c546fdf6648400d072359d1a22b
refs/heads/main
2023-04-18T02:30:15.810749
2021-05-04T08:43:53
2021-05-04T08:43:53
324,901,835
3
0
null
null
null
null
UTF-8
Python
false
false
3,598
py
import numpy as np import pandas as pd import tensorflow as tf from keras.preprocessing.image import ImageDataGenerator from numpy import expand_dims from keras import Sequential from keras.callbacks import EarlyStopping, ModelCheckpoint, ReduceLROnPlateau from keras.optimizers import Adam,SGD from sklearn.mode...
e3960fbac34d0ef3d8fa9bce7b4dbdacb6e98791
1b68ecd64590474d212547bf4356544ae1f183c9
/logic_from_site.py
f1c1a5784830e4603f8b535aa654224bf268066d
[]
no_license
wnd2da/rss2
833f7b08c5bdb7a8378d655367ca51d4d6c06cf0
2bf4f579e5c53eb200c0eeab886376b772587668
refs/heads/master
2022-11-16T03:12:24.609871
2020-07-15T08:33:16
2020-07-15T08:33:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,376
py
# -*- coding: utf-8 -*- ######################################################### # python import traceback import re import logging from time import sleep import urllib import urllib2 import os # third-party import requests from lxml import html from xml.sax.saxutils import escape, unescape # sjva 공용...
75f8a59901744e93a6796e12fb712f2638bec6b5
90f52d0348aa0f82dc1f9013faeb7041c8f04cf8
/wxPython3.0 Docs and Demos/samples/ide/activegrid/tool/IDE.py
caf2b4ca67dbd70a3cd483490938890dd0c1e187
[]
no_license
resource-jason-org/python-wxPythonTool
93a25ad93c768ca8b69ba783543cddf7deaf396b
fab6ec3155e6c1ae08ea30a23310006a32d08c36
refs/heads/master
2021-06-15T10:58:35.924543
2017-04-14T03:39:27
2017-04-14T03:39:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
368,697
py
#---------------------------------------------------------------------------- # Name: IDE.py # Purpose: IDE using Python extensions to the wxWindows docview framework # # Author: Peter Yared # # Created: 5/15/03 # Copyright: (c) 2003-2005 ActiveGrid, Inc. # CVS-ID: $Id$ # Licen...
da2e3218485d698bc9cf720d1e8e480446b29cbd
66160ae77aed90e1e8eb32708ec251d098f94255
/Python/Python Basics/.history/ClassBasics_20200618233336.py
6b9928a122b44674bd19a1876ed2a74030d5567c
[]
no_license
sarthikg/cheat-sheets
8cf60825bb510d38b57c48da06d41bfef9698c46
027ec9d607e5643eed2aa46e06eab3602fc3072c
refs/heads/master
2022-12-23T18:57:31.574682
2020-09-21T00:28:24
2020-09-21T00:28:24
297,188,205
1
0
null
null
null
null
UTF-8
Python
false
false
25
py
# Defining a Class class
3150e892a3d4da245621a1bb195d4cbfa8821d0b
ba09a6cc089e408e2a865810b0e365d004712ce8
/Calculator/calculator.py
b858bb30a91766785f55b12d25b67dfc1136b2cd
[]
no_license
ephreal/Silliness
5459977e1bca44cde4639f8bf83bd8a976b2ee63
bce290f86f818ad926613e84a07e5d354a112c4b
refs/heads/master
2021-06-05T02:41:42.467732
2020-02-20T16:31:35
2020-02-20T16:31:35
133,086,053
0
0
null
null
null
null
UTF-8
Python
false
false
6,289
py
import tkinter as tk from decimal import Decimal from tkinter import ttk class Calculator(ttk.Frame): def __init__(self, master=tk.Tk()): super().__init__(master) self.master = master self.master.title("tKalculator") self.operator = None self.prev_num = 0 self.completed_calculation = False self.grid()...
3a239988545f0c87767b909a0dfbec058597d3dd
f9033131dc4d66ede2c5c22fcaa4a0be5b682152
/Sorting/Tasks/eolymp(5089).py
21668b326d3a8cfd9412a0d740ab1941e4accc97
[]
no_license
Invalid-coder/Data-Structures-and-algorithms
9bd755ce3d4eb11e605480db53302096c9874364
42c6eb8656e85b76f1c0043dcddc9c526ae12ba1
refs/heads/main
2023-04-29T08:40:34.661184
2021-05-19T10:57:37
2021-05-19T10:57:37
301,458,981
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
#https://www.e-olymp.com/uk/submissions/7293961 def greater(a, b): i = 0 j = 0 while i < len(a) and j < len(b): if ord(a[i]) > ord(b[j]): return a elif ord(a[i]) < ord(b[j]): return b else: i += 1 j += 1 if i == len(a) and j < le...
2e81ee7aa1523d07e3ba18b0d2a4a114cea43f3b
2a9bd67c955044294b3d07fa5367d2fbe7734a45
/virtual/bin/easy_install
34f4dd578c2c0695ec69cfc54a86276d7d5d7ab2
[ "MIT" ]
permissive
KadogoKenya/BloggerCenter
86e455b9f470ede9cc0775353dc6a8a6a2c747fa
90776004316a88d40f56aaa8d44004f31553c48c
refs/heads/master
2022-12-22T03:20:02.834430
2020-10-01T07:58:50
2020-10-01T07:58:50
298,762,799
0
0
null
2020-10-01T07:58:52
2020-09-26T07:37:45
Python
UTF-8
Python
false
false
270
#!/home/kate/Desktop/PYTHON/blogCenter/virtual/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
1d2ff22060d90ac5eebb0f152bd66b24eb89a21d
4d66a2b4f40e7169b00871e7f75202fd38201d98
/linkie/tests/run_tests.py
5bdd879b985b69fb0642864bdeba2dbaff39bfcc
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uccser/linkie
e90d97d9d22c9a1d1eb95d87eb59f3079e4da2ce
f062762c42c812f18374a064ba2ac80d9146b7d5
refs/heads/master
2023-03-23T10:56:12.508180
2020-06-08T00:07:33
2020-06-08T00:07:33
124,695,953
2
0
MIT
2021-03-25T21:38:39
2018-03-10T20:28:47
Python
UTF-8
Python
false
false
3,251
py
import os import unittest from subprocess import run from linkie import Linkie class LinkieTestSuite(unittest.TestCase): def __init__(self, *args, **kwargs): unittest.TestCase.__init__(self, *args, **kwargs) self.default_working_directory = os.getcwd() def setUp(self): os.chdir(self.d...
91ed8fe756697243b39c0671ce9ffe931e906c4a
7ec38beb6f041319916390ee92876678412b30f7
/src/leecode/explore/queue_stack/01.Design Circular Queue.py
3b4c90c483baf7a706bf6efc41b4e3e9939b2ee3
[]
no_license
hopensic/LearnPython
3570e212a1931d4dad65b64ecdd24414daf51c73
f735b5d865789843f06a623a4006f8883d6d1ae0
refs/heads/master
2022-02-18T23:11:30.663902
2022-02-12T17:51:56
2022-02-12T17:51:56
218,924,551
0
0
null
null
null
null
UTF-8
Python
false
false
2,471
py
class MyCircularQueue: def __init__(self, k: int): self.queuesize = k self.lst = [None] * k self.head = -1 self.tail = -1 """ Initialize your data structure here. Set the size of the queue to be k. """ def enQueue(self, value: int) -> bool: """ ...
18b8e0edad42cc713cfad35c0c03af6cd4ec0305
e2cd117b1060d445d0c6825b4761dc8d9d261a59
/2020/algorithm/앨리스코딩/6. 0 이동시키기.py
6476493c4bdbd3ab90e1098ac3ac28208bbf5509
[]
no_license
winterash2/TIL
856fc55f076a6aadff60e6949a3ce44534e24eda
9b8e93e4eacce2644a9a564e3b118bb00c3f4132
refs/heads/master
2023-06-12T23:58:00.192688
2021-07-04T14:20:30
2021-07-04T14:20:30
288,957,710
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
# 0 이동시키기 # 여러개의 0과 양의 정수들이 섞여 있는 배열이 주어졌다고 합시다. 이 배열에서 0들은 전부 뒤로 빼내고, 나머지 숫자들의 순서는 그대로 유지한 배열을 반환하는 함수를 만들어 봅시다. # 예를 들어서, [0, 8, 0, 37, 4, 5, 0, 50, 0, 34, 0, 0] 가 입력으로 주어졌을 경우 [8, 37, 4, 5, 50, 34, 0, 0, 0, 0, 0, 0] 을 반환하면 됩니다. # 이 문제는 공간 복잡도를 고려하면서 풀어 보도록 합시다. 공간 복잡도 O(1)으로 이 문제를 풀 수 있을까요? # def moveZerosToEnd(nu...
61ecce1e44b4d35a64266562120e27f0ca389441
7b5c1352e1a4fb8352161cc135bfd1225a633828
/2017-cvr-tencent-final/src/data_process/shuffle.py
7e0c621d4a5903ba07e6d2e8d4dffff21d9be4f3
[]
no_license
zgcgreat/2017-cvr-tencent
b7f54ae8df55fbb30f2430f695a148844982aa3a
fe79d0756bbf862d45e63e35b7c28da8396bcbda
refs/heads/master
2021-04-03T08:32:33.651705
2018-07-17T08:36:53
2018-07-17T08:36:53
124,724,199
6
3
null
null
null
null
UTF-8
Python
false
false
559
py
# _*_ coding: utf-8 _*_ ''' 打乱数据集顺序 ''' import random import time start = time.time() print('shuffling dataset...') input = open('../../data/traincp.csv', 'r') output = open('../../data/train_data/train.csv', 'w') lines = input.readlines() outlines = [] output.write(lines.pop(0)) # pop()方法, 传递的是待删除元素的index whil...
4d33eb0ee9a1b6f8917d7d2ffbe3b0a8693c4976
07bd6d166bfe69f62559d51476ac724c380f932b
/devel/lib/python2.7/dist-packages/webots_demo/srv/_motor_set_control_pid.py
cc26f674b3a03915318d6b15b213af63468ca3be
[]
no_license
Dangko/webots_differential_car
0efa45e1d729a14839e6e318da64c7f8398edd17
188fe93c2fb8d2e681b617df78b93dcdf52e09a9
refs/heads/master
2023-06-02T16:40:58.472884
2021-06-14T09:19:58
2021-06-14T09:19:58
376,771,194
1
0
null
null
null
null
UTF-8
Python
false
false
8,158
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from webots_demo/motor_set_control_pidRequest.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class motor_set_control_pidRequest(genpy.Message): _md5sum =...
3bd486d899d983a5806e09c4acf7cbbd5d851437
c3760e71f4024a9610bdde03de84a0c406601e63
/baiTapVN2.py
a4123564c7dfa336d2714212fc79c931f3b2bea1
[]
no_license
thuongtran1210/Buoi3
3abe6040b15f48cf04bb39da10b5588254d7514f
f62fbf75ff0a0de89acfd122a0a70be44162468a
refs/heads/master
2022-12-28T22:26:21.288946
2020-10-04T16:43:23
2020-10-04T16:43:23
301,168,792
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
# ----Bài 02: Viết hàm # def reverse_string(str) # trả lại chuỗi đảo ngược của chuỗi str # -------------------------------------------------------------- def reverse_string(str): return str[::-1] str=input("Nhập số nghịch đảo: ") print(f"Sau khi nghịch đảo: {reverse_string(str)}")
f5db65735ebada9140b63f4d29e2e61a85008ae1
ce55c319f5a78b69fefc63595d433864a2e531b5
/前后端分离-vue-DRF/houfen_DRF-projects/14day/zhuce_denglu/util/throttle.py
e3aab6ab4c5ccccbd9b04f6a13ac2cc5b000a29b
[]
no_license
Suijng/1809_data
a072c875e8746190e3b715e53f1afe3323f4666b
45f8a57089f5c30ccc1a3cddb03b76dc95355417
refs/heads/master
2022-12-21T12:38:30.458291
2019-09-27T01:14:41
2019-09-27T01:14:41
211,207,071
0
0
null
2022-11-22T03:16:18
2019-09-27T00:55:21
HTML
UTF-8
Python
false
false
2,077
py
from rest_framework.throttling import SimpleRateThrottle import time class MyScopedRateThrottle(SimpleRateThrottle): scope = 'unlogin' def get_cache_key(self, request, view): """ Should return a unique cache-key which can be used for throttling. Must be overridden. May return...
e2ee0e7695e88092fc028728b0f13572aeebd631
5b771c11e8967038025376c6ec31962ca90748dd
/insurance/insurance_reminder/urls.py
f00b885bb1c629961284a04ee7869785729b4efd
[]
no_license
AsemAntar/Django_Projects
7135eca3b4bcb656fc88e0838483c97d7f1746e1
4141c2c7e91845eec307f6dd6c69199302eabb16
refs/heads/master
2022-12-10T06:32:35.787504
2020-05-26T14:43:01
2020-05-26T14:43:01
216,863,494
0
0
null
2022-12-05T13:31:53
2019-10-22T16:47:28
Python
UTF-8
Python
false
false
222
py
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('guest_registeration.urls')), path('users/', include('users.urls')), ]
dfece195db40ed9971ed5c97d130ee352f56a42f
7cca7ed981242788687db90d8f3a108bbcf4c6f9
/pretrain_CNN_fix_parameter_DQN/pretrain_env.py
595cbcee11364c4d917fb8941b8da2fce8d8ac1a
[]
no_license
Ryanshuai/robot_round_catch
7204e1cf9927672257d542afc7a00bd710f5e243
1175fb3df0ae7ec395b85dfbfbcbb60a79878024
refs/heads/master
2021-09-09T23:08:59.680793
2018-03-20T06:32:51
2018-03-20T06:32:51
94,294,080
0
0
null
null
null
null
UTF-8
Python
false
false
7,212
py
""" This part of code is the environment. Using Tensorflow to build the neural network. """ import numpy as np import tensorflow as tf import pygame from random import uniform FPS = 90 SCREEN_WHIDTH = 672 SCREEN_HEIGHT = 672 # init the game pygame.init() FPSCLOCK = pygame.time.Clock() screen = pygame.display.set_mod...
f96b6f6fb6ba491017ce77ff995c18a718e4bf44
d2e8ad203a37b534a113d4f0d4dd51d9aeae382a
/django-koldar-utils/django_koldar_utils/django_toolbox/conf/DictSettingMergerAppConf.py
82a1709767e65cb47e03e5e6f5f95f2f0dbda8dc
[ "MIT" ]
permissive
Koldar/django-koldar-common-apps
40e24a7aae78973fa28ca411e2a32cb4b2f4dbbf
06e6bb103d22f1f6522e97c05ff8931413c69f19
refs/heads/main
2023-08-17T11:44:34.631914
2021-10-08T12:40:40
2021-10-08T12:40:40
372,714,560
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
from appconf import AppConf class DictSettingMergerAppConf(AppConf): """ A derived class of AppConf that automatically merge the configurations from settings.py and the default ones. In the settings you should have: .. ::code-block:: python APPCONF_PREFIX = { "SETTINGS...
85d08bd8390cacd47b28abaea8585359bc9b16a8
d0d3d2b68c7ae9c6b374bf9cc574bb9571076d5e
/models/model_selection.py
a895a9ddcf5a3cc5fddf1da42389f67e5b9bfd99
[]
no_license
gustafholst/hitmusicnet
f5fda86fef9c3c4684b97d432d4f2403e05b6458
eb3c43845e5cedde0c19f907cbaf9d7d71530beb
refs/heads/master
2023-03-20T11:03:56.730327
2020-01-27T16:01:22
2020-01-27T16:01:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,272
py
def select_model(model_val=1): model_args = {} if model_val == 1: model_args = {'model_name': 'model_1_A', 'model_dir': 'saved_models', 'model_subDir': 'feature_compressed', 'input_dim': 97, 'output_dim': 1, 'optimizer': 'adadelta', 'metr...
[ "=" ]
=
0fba8a6c3f9302d8cd7becf379dc74a91b648a1d
c00724308e01332418f539d9a1bedca09696a253
/setup.py
5dd977999e08b6a1a2de1dfef1be84c049522d99
[ "MIT" ]
permissive
felipecolen/pycep-correios
f8b53efc939e48ef71caedcf1136d941d18d4d89
7c6c734c4bd3205bdca2f9b1bf4463045a96c8ef
refs/heads/master
2021-01-22T08:28:18.083461
2016-07-31T20:10:47
2016-07-31T20:10:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,091
py
# -*- coding: utf-8 -*- # ############################################################################# # The MIT License (MIT) # # Copyright (c) 2016 Michell Stuttgart # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software")...
edb2a540151d4958fb9579f831a30f731284d00c
bde9a6e8a2aee89572dac4872b8263e42c13a142
/gestalt/estimator_wrappers/wrap_r_ranger.py
1a9202cf794666f79f719d6e7aa1ad2e5c8ce4f8
[ "MIT" ]
permissive
chrinide/gestalt
b1ee66971007139b6e39b5c3dbd43a562bf5caee
f8f24d1fa879851ba989b244f71b348e995e221c
refs/heads/master
2021-01-20T08:07:18.877738
2017-05-01T06:08:26
2017-05-01T06:08:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,696
py
# import sklearn BaseEstimator etc to use import pandas as pd from rpy2 import robjects as ro from rpy2.robjects import pandas2ri from rpy2.robjects.packages import importr from sklearn.base import BaseEstimator from sklearn.base import ClassifierMixin # Activate R objects. pandas2ri.activate() R = ro.r # import the ...
bb2e33eeedda684e9759329e952ae418c9db3e73
b035385c986cadf0dba9dea565800d4e47a7adaa
/tests/test_numba.py
19e72db682b11b991e839248ce5f755d6cbbf3ae
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RahulNagraj444/fluids
74f3abf23384b76aab95b8be60f5d1adaebc8518
36afa5a16c0dbf22bf0541bd06d1cce68a1f7266
refs/heads/master
2022-10-03T10:57:36.492863
2020-06-07T16:56:37
2020-06-07T16:56:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,579
py
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2020 Caleb Bell <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
4257890a7490b2def67115c1e7771a15801e77b2
ae652aec76faffce67e85922d73a7977df95b3b6
/util.py
e7527c2069a3f57700ad3025738fe7bf868ece28
[]
no_license
wwq0327/note
e75964e0539a9efce0889b7774f78da0bcdff7fb
f893e851cb85b974bfbf5917a7fa5845b2f20eac
refs/heads/master
2020-05-18T07:57:33.446712
2011-11-13T13:40:07
2011-11-13T13:40:07
2,765,724
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ util ~~~~~~~~~~~~~~~~~~~~ :date: 2011-10-17 """ def lines(file): '''在文本的最后一行加入一个空行''' for line in file: yield line yield '\n' def blocks(file): '''收集遇到的所有行,直接遇到一个空行,然后返回已经收集到的行。 那些返回的行就是一个代码块 ''' block = [] ...
425a35d7f2a14880501a7ed5d0ae0c3945f95335
1ca1799ce0abe12e37cf2893af2dd6fcf784317c
/env/bin/easy_install-3.6
134cb8672b89aa373c27aab0a51561c722a4558d
[]
no_license
anubishere/projekt_eita15
93c542e8c10ada5bc469c8e5cdca48506405f872
d1bc9b3e11917d6aaf942a95bb2bbdd370e91c45
refs/heads/master
2021-02-16T05:36:26.032675
2020-03-04T18:10:56
2020-03-04T18:10:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
286
6
#!/home/victor/skola/kurser/digitala_system/projekt_eita15/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
4d8a89ad46d29396654cfe3031188c065de896cd
781b9a4a1098f3ac339f97eb1a622924bcc5914d
/Exercices/S1_04_AlgorithmesDichotomiques/TP05c.py
f1d7d9d939d0575e3055f1da3e04e0ed8b98dfbb
[]
no_license
xpessoles/Informatique
24d4d05e871f0ac66b112eee6c51cfa6c78aea05
e8fb053c3da847bd0a1a565902b56d45e1e3887c
refs/heads/main
2023-08-30T21:10:56.788526
2023-08-30T20:17:38
2023-08-30T20:17:38
375,464,331
2
0
null
null
null
null
UTF-8
Python
false
false
4,235
py
##### TP 5 ##### Recherche dans une liste triée. ## I.1 ## Q1 # g=0, d=8 # m=4, L[m]=11 et 5 < 11, on pose g=0, d=3 # m=2, L[m]=5. On a trouvé x0 # g=0, d=8 # m=4, L[m]=8 et 8<11, on pose g=5, d=8 # m=6, L[m]=13 et 11<13, on pose g=5, d=5 # m=5, L[m]=10 et 10<11, on pose g=6, d=5. On s'arrête. ## Q2 def dichoto...
f73d54fdd4af870903d5e22391dbe348021ff86f
ffc1ab091d54635c96cd4ed6098c4bf388222f02
/nipype/nipype-master/nipype/interfaces/afni/tests/test_auto_Qwarp.py
2848fe97f8622750e68d5cf9d3e43276808c0a92
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bharathlakshman/brainintensive
fc7833078bb6ad9574e015004f2b3905c85b699e
eec8a91cbec29ba27d620984394d3ee21d0db58f
refs/heads/master
2021-01-01T19:04:25.724906
2017-07-28T01:48:28
2017-07-28T01:48:28
98,499,935
1
2
null
null
null
null
UTF-8
Python
false
false
3,792
py
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..preprocess import Qwarp def test_Qwarp_inputs(): input_map = dict(Qfinal=dict(argstr='-Qfinal', ), Qonly=dict(argstr='-Qonly', ), allsave=dict(argstr='-allsave', xor=['nopadWARP', 'duplo', 'plu...
6ef29292a7e42861fa5c76bb43f7c074044b2706
2850d9adba96bc4e73185de5d6adebf363a5c534
/tce/tcloud/clb/InquiryLBPrice.py
8d39cc90ea056cc0f7f42b894868a5e5193ddabb
[ "Apache-2.0" ]
permissive
FatAnker/tencentcloud-sdk-python
d8f757b12ad336e78a06b68a789ecc3c86d1d331
d6f75a41dc7053cb51f9091f4d41b8cb7a837559
refs/heads/master
2020-04-30T22:34:16.740484
2019-04-28T11:14:11
2019-04-28T11:14:11
177,122,691
0
1
null
2019-03-22T10:46:01
2019-03-22T10:46:01
null
UTF-8
Python
false
false
1,376
py
# -*- coding: utf8 -*- from QcloudApi.qcloudapi import QcloudApi from tce.tcloud.utils.config import global_config # 设置需要加载的模块 module = 'lb' # 对应接口的接口名,请参考wiki文档上对应接口的接口名 action = 'InquiryLBPrice' region = global_config.get('regions') params = global_config.get(region) secretId = params['secretId'] secretKey = params...
becdb112bb47e331e0ba9f6b5eb175b7e8f43035
3c6b36eb1f4f9760c52903f6d0ec4a501f948c90
/osp/test/citations/utils/test_get_text.py
663abb8fd5fc80e075106a2ff9727effea40b0c3
[ "Apache-2.0" ]
permissive
davidmcclure/open-syllabus-project
38444249af845013e3f281a7a713dca83159c56e
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
refs/heads/master
2021-06-30T21:47:07.636558
2021-06-27T15:15:35
2021-06-27T15:15:35
50,152,020
220
14
Apache-2.0
2021-06-27T15:11:15
2016-01-22T02:29:57
Python
UTF-8
Python
false
false
501
py
import pytest from osp.citations.utils import get_text from bs4 import BeautifulSoup @pytest.mark.parametrize('tag,text', [ ('<tag>Article Title</tag>', 'Article Title'), # Strip whitespace. ('<tag> Article Title </tag>', 'Article Title'), # Empty text -> None. ('<tag></tag>', None), (...
32273e37f6ed947cad8183262e2fbe2b5511c0bf
e42c337b179ea9e85c41c992d1440dbdd10e4bdb
/solution/leetcode/120.py
18bddd5d74b8a75dc62e353f0e5eb862930701c7
[]
no_license
harshraj22/problem_solving
7733a43e2dcbf507257e61732430d5c0fc1b4cb9
2c7d1ed486ae59126244168a446d74ae4fdadbc6
refs/heads/master
2023-05-26T12:58:40.098378
2023-05-12T17:53:11
2023-05-12T17:53:11
193,202,408
20
5
null
2022-08-03T16:40:45
2019-06-22T06:58:09
C++
UTF-8
Python
false
false
501
py
# https://leetcode.com/problems/triangle/ class Solution: from math import inf def minimumTotal(self, triangle: List[List[int]]) -> int: # create a copy dp = [[inf for _ in row] for row in triangle] dp[0][0] = triangle[0][0] for i, row in enumerate(dp[:-1]): for j, cell in enumerate(row): try: ...
495ce2f9cfe10accb714b8a7ae55e59dcd8e762c
eec105101d7a82d0551503100a3bd9a1a2af3b3c
/Assignments/a5_public/code/char_decoder.py
180d88968e8b831c9cb4d68b2702a7a64917d69a
[]
no_license
ethanenguyen/Stanford-CS224n-NLP
807c36cf67f8aade5b1ca7bfd5878ac354e96bbb
181c659dbb0e0a1a1c3865a336fd74c8ebc5633e
refs/heads/master
2022-03-28T04:16:01.236240
2020-01-14T13:52:21
2020-01-14T13:52:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,318
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS224N 2018-19: Homework 5 """ import torch import torch.nn as nn class CharDecoder(nn.Module): def __init__(self, hidden_size, char_embedding_size=50, target_vocab=None): """ Init Character Decoder. @param hidden_size (int): Hidden size of the ...
8308f1bda2732b3dd68b53bd9a2e8a06d873fe8c
9ba55397d0d8cad9a40260fc23860d2097a615f9
/fitter/unimodal.py
3150fdb0e8d4e7b808f833b263b694e9e52219c2
[]
no_license
wombaugh/modefit
32bf927ade786a38309d925e88bde765f3025ab6
855cafa799db9fbea724347d0bb9db0d101a6452
refs/heads/master
2020-06-20T04:38:32.010125
2016-11-27T10:47:45
2016-11-27T10:47:45
74,881,429
0
0
null
2016-11-27T10:41:51
2016-11-27T10:41:51
null
UTF-8
Python
false
false
15,666
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module based on virtualfitter to fit bimodal distributions. Does not have to be a step """ import numpy as np from scipy import stats import matplotlib.pyplot as mpl # - local dependencies from astrobject.utils.tools import kwargs_update from .baseobj...
7ba7298644ea801b42016afbaa37ceaaefd61d96
f642c054451aa3c87bb18fa63037eea0e6358bda
/my_django_app/cache/views.py
5860e516f6bed9a965ced0893aa975acc095d93b
[]
no_license
devendraprasad1984/python
30f3a539e92be13d893246ad28a42907457a38d5
0f1badabba07fbe7f5f792b7e543c0748eecd6c7
refs/heads/master
2023-07-21T08:22:45.193077
2021-08-27T15:09:28
2021-08-27T15:09:28
254,812,552
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
# from django.shortcuts import render # Create your views here. def get_mod1(req): return 'cache1'
bb5554675b64f4e7bfbfe07ba6ff2472ec4f1c0e
ac0c96ad280ac43de9c06ba21a1cbe2b1679b2f9
/minidump/streams/HandleOperationListStream.py
3e3e7422e7caf3d7beec41f6aea2c8b0d753690a
[ "MIT" ]
permissive
mkorman90/minidump
5cfc9e7119f68e91e77e0039b7c364d46b769e39
749e6da56d0ea414450c287caa4ecfb292197b59
refs/heads/master
2020-05-09T23:39:29.089331
2018-06-17T14:51:30
2018-06-17T14:51:30
181,508,823
3
0
MIT
2019-04-15T14:53:20
2019-04-15T14:53:20
null
UTF-8
Python
false
false
668
py
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # class MINIDUMP_HANDLE_OPERATION_LIST: def __init__(self): self.SizeOfHeader = None self.SizeOfEntry = None self.NumberOfEntries = None self.Reserved = None def parse(dir, buff): mhds = MINIDUMP_HANDLE_OPERATION_LIST() mhds.SizeOfHeader = int....
c3418c0bc14439f3a396442041af6a15d8b775f9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03096/s362138423.py
0610f35f78b278535f070e6f3b9519ef3b0d4fe8
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
MOD = 10**9+7 N = int(input()) C = [] C.append(int(input())) for i in range(N-1): c = int(input()) if c == C[-1]: continue C.append(c) #print(C) N = len(C) lis = [[0] for i in range(max(C)+1)] for i in range(N): lis[C[i]].append(i+1) for i in range(len(lis)): lis[i].append(MOD) def binary_s...
88cc90c811bf40584e981843c0665460c3140aad
3ae288daabf10b5f3dd5f09bb7bb974a6caacdaf
/processimage/cropimage/urls.py
24083c8f8536913662bc82f1876b785f6dd67890
[ "MIT" ]
permissive
singh1114/image-processor
62ab01f9b87b6deda5debb010feeb4c74135c39b
a2b6e8fcb64b1449859a06775b2d7b3a0205e952
refs/heads/master
2022-12-13T21:44:56.316988
2019-02-04T06:13:05
2019-02-04T06:13:05
167,675,243
0
0
MIT
2022-12-08T01:35:03
2019-01-26T10:12:44
Python
UTF-8
Python
false
false
483
py
from django.urls import path from cropimage.views import ( ImageUploadView, ShowMainImagesView, ShowCroppedImagesView ) app_name = 'cropimage' urlpatterns = [ path('upload_image/', ImageUploadView.as_admin_view(), name='upload'), path('show_main_images/', ShowMainImagesView.as_admin_vie...
13eb9d5df7bd1b66c602bda0c55492a22a3cfd1b
0f946e4bbad3a44339e75893fbd185ae1fb25f67
/lesson13/utils.py
1444b0df757759af65c486ab2bbd1f438df459bd
[]
no_license
kirigaikabuto/distancelesson2
e53dda7d8a07ea5c4ec2e7a39a47619b533a5df8
24cf61d34334fa2d6a736a81d4bc75170db2a2ad
refs/heads/master
2022-07-03T07:16:47.588461
2020-05-13T13:50:54
2020-05-13T13:50:54
254,647,334
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
def create_student(line): parts=line.split(",") name = parts[0] age = int(parts[1]) marks_str = parts[2] marks_str_arr = marks_str.split(" ") marks_int_arr = [int(i) for i in marks_str_arr] d={} d['name']=name d['age']=age d['marks']=marks_int_arr return d def print_arr(arr):...
1a46c8d568402db84e611a414452edb434b00e39
8982f5d9072aa9a2c7fb9466144b07760551a94e
/data/data_process.py
21ff0c5fa4521ab1108d8895d591b5fc7458814e
[]
no_license
qw1085209368/SSLDPCA-IL-FaultDetection
965442eac03ad996a28127c9d5513780b2738b17
b68aa835cc127fc00ef29100908e8261ddc76998
refs/heads/master
2023-05-08T02:48:23.299522
2021-06-03T03:16:16
2021-06-03T03:16:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,244
py
#!/usr/bin/env python # @Time : 2021/3/2 15:44 # @Author : wb # @File : data_process.py ''' 数据处理页面,将数据处理成需要的格式 ''' import h5py import pandas as pd import numpy as np import os import scipy.io as scio import matplotlib.pyplot as plt from PIL import Image from matplotlib import image from pyts.image import Grami...
5474853aa0063918f02b655556ab3268ea02e12a
edb699b1a63c3412e5a8788e32b26690c707ce2e
/rdconf.py
1c57f37d1fefcab9072488d13dec9db4abe06cb2
[ "MIT" ]
permissive
dkoes/rdkit-scripts
518fe55058524ddd3a4f5ad4f0dd3d125a73f01a
71cf2ccc4b26eb1541cc63690f40aa24b195fe8d
refs/heads/master
2022-07-14T19:04:18.760183
2022-07-01T12:39:32
2022-07-01T12:39:32
72,130,300
48
32
MIT
2019-04-15T18:46:27
2016-10-27T17:09:14
Python
UTF-8
Python
false
false
6,117
py
#!/usr/bin/python3 import sys,string,argparse from rdkit.Chem import AllChem as Chem from optparse import OptionParser import os, gzip '''Given a smiles file, generate 3D conformers in output sdf. Energy minimizes and filters conformers to meet energy window and rms constraints. Some time ago I compared this to al...
e7e80f2adc30dd1979a333284f8ab5df5124745d
f533840d313af1a7be73c63f42d211c8c337aa92
/ginga/misc/plugins/Pipeline.py
afdf9d3cf9f4577d8f65613dfaf14277eb8a0831
[ "BSD-3-Clause" ]
permissive
godber/ginga
2d0b5c73fa168ad33bbf7dbe0c5fd2e1b0e54900
acb32ed422aa604681c63c5a9494ffb0ad96cf2e
refs/heads/master
2021-01-22T18:28:04.235890
2014-11-20T01:09:51
2014-11-20T01:09:51
27,312,287
0
0
null
null
null
null
UTF-8
Python
false
false
10,032
py
# # Pipeline.py -- Simple data reduction pipeline plugin for Ginga FITS viewer # # Eric Jeschke ([email protected]) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from __future__ import print_function i...
db508cd4bcd3fa891bbd1f0067a4bb8269d2f093
3378bf2ebcd3cd794b26b74f033932cb0c6a6590
/tuframework/network_architecture/cotr/DeTrans/ops/functions/ms_deform_attn_func.py
ce8862f5fc39e40bd00747c8d9c65fcffb6118b3
[ "Apache-2.0" ]
permissive
Magnety/tuFramework
d3d81f0663edbffbdd9b45138cbca82ffb78f03e
b31cb34d476ef306b52da955021f93c91c14ddf4
refs/heads/master
2023-05-01T04:36:04.873112
2021-05-18T01:07:54
2021-05-18T01:07:54
361,652,585
0
0
null
null
null
null
UTF-8
Python
false
false
1,271
py
import torch import torch.nn.functional as F from torch.autograd import Function from torch.autograd.function import once_differentiable def ms_deform_attn_core_pytorch_3D(value, value_spatial_shapes, sampling_locations, attention_weights): N_, S_, M_, D_ = value.shape _, Lq_, M_, L_, P_, _ = sampling_location...
ef258bb106bc53bf5ed4c1a06b980d66154f5206
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_Class783.py
22d75780c4d05107a506bcec34d8229140243599
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,189
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=20 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode def make_circuit(n: int, input_qubit): c = cirq.Ci...
59e7efd7c9f67741580d7402f2235895e4b25a95
eff638e128276c5d7de4fca5b0acde312e9a8a8d
/single line if-else.py
846752636af516206408659f87bedf230522f61b
[]
no_license
Sahil4UI/Python_Jan_12-1_Regular2021
81e274ef2129fe43da8fbea172c055861dcda4d2
8e78457c2215d6bc652b14957d73423aecdd5c41
refs/heads/main
2023-03-04T09:22:48.582757
2021-02-18T07:26:47
2021-02-18T07:26:47
334,865,411
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
x = int(input("Enter Number : ")) res = "Even" if x%2==0 else"Odd" print(res)