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
7d48674929e67d0b4ff1c26a9fdc2fdda1b32b00
83cf642504313b6ef6527dda52158a6698c24efe
/scripts/addons/remote_debugger.py
50b2e8e90a16e7b474042e3fa8c4903af0829552
[]
no_license
PyrokinesisStudio/Fluid-Designer-Scripts
a4c40b871e8d27b0d76a8025c804d5a41d09128f
23f6fca7123df545f0c91bf4617f4de7d9c12e6b
refs/heads/master
2021-06-07T15:11:27.144473
2016-11-08T03:02:37
2016-11-08T03:02:37
113,630,627
1
0
null
2017-12-09T00:55:58
2017-12-09T00:55:58
null
UTF-8
Python
false
false
2,146
py
bl_info = { 'name' : 'Remote Debugger', 'author' : '', 'version' : (0, 2), 'blender' : (2, 75, 0), 'location' : '', 'category' : 'Development'} import bpy import os.path from bpy.types import AddonPreferences from bpy.props import StringProperty class ...
2dab992e4eb273021e8b75698a6f71b4a65cd9bb
66973fe6468e1b1f9cd7df765819ba0cb89f6ff8
/bin/gitstatus
cdb9115b3dd0b17ae88a8f7b6f75db6f5111949c
[ "MIT" ]
permissive
dsavransky/miscpy
90fee44f245c5eca89897e6536dae702f8836484
2aab0e3d089a678ee7fee18be47f2b16591c150a
refs/heads/main
2022-06-15T21:54:07.285900
2022-05-31T23:25:27
2022-05-31T23:25:27
39,569,507
3
1
null
null
null
null
UTF-8
Python
false
false
1,712
#!/usr/bin/env python import os import subprocess import glob import argparse if __name__ == "__main__": parser = argparse.ArgumentParser( description="Check status on all git repos, fetching (or pulling) from remotes." ) parser.add_argument( "--pull", action="store_true", ...
0b3988687c2fcec1c85d3999fa91dd1ed46daa05
d9a912d066b8a10f2611ed80af8e720522da7a51
/tf.py
54cb79555f0d631b74adee30da18cc24db3adfbc
[]
no_license
Sanny26/information_retrieval
871bba71d1e8d93329e24fc052d738d03241875f
4fb29c9da28fa1937f43c5b36fc470b0420f2ba0
refs/heads/master
2021-08-26T08:39:04.094595
2017-11-22T17:14:51
2017-11-22T17:14:51
111,576,998
0
0
null
null
null
null
UTF-8
Python
false
false
1,603
py
"""Main code for finding TF-IDF scores.""" from collections import Counter from math import log from utils import preprocess_file import os import numpy as np import pickle def get_tf_idf_weights(path): """Get the wieghts for TF.""" doc_no = 0 doc_names = dict() tf_list = dict() # how many term t o...
bac5086f28d452d811d08211fd9648f3fd55c034
41bea39563c74621924d79723f8ba84889958365
/nkamg_pcap/server/antimal/misc/trails/feeds/proxyspy.py
1ac62a432b900d21ea14ee85e56f7891e002c3b8
[ "MIT" ]
permissive
NKQiuKF/pcap_update
abee0c13cb583fddb89eb9e86a487279bdc18f1d
679e3f116367394a5f58eb4f95b5318e80fee331
refs/heads/master
2022-10-21T17:49:30.706480
2019-09-02T09:22:06
2019-09-02T09:22:06
205,816,421
1
0
null
2022-10-06T18:33:32
2019-09-02T08:55:55
JavaScript
UTF-8
Python
false
false
717
py
#!/usr/bin/env python """ Copyright (c) 2014-2016 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ from core.common import retrieve_content __url__ = "https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/proxyspy_1d.ipset" __check__ = "proxyspy_1d" __info__ = "pr...
d00bc0b7e81a3e19920c70b70559eaeea7761f16
42e4cc242a2be105dae0288d02a08fbd95bb476a
/deepspeed/elasticity/constants.py
03cba725fa87d66ef5008c333c05243c149fe043
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
afiaka87/DeepSpeed
a49ca48a410190b631a78c392c25359ed4478577
83ff549aa365d4fee744074ac0a64f27571ecbc8
refs/heads/main
2023-04-14T16:22:37.595209
2021-04-12T09:20:06
2021-04-12T09:20:06
356,466,212
2
0
MIT
2021-04-12T09:20:07
2021-04-10T04:09:31
Python
UTF-8
Python
false
false
2,262
py
""" Copyright 2020 The Microsoft DeepSpeed Team """ ######################################### # Elasticity ######################################### ''' Elasticity Utility in DeepSpeed can be used to create highly elastic jobs compatible with a large number of GPUs. For elastic jobs, DeepSpeed will provide a batch siz...
f8114ec28447eee38a12cf5ac1de1c2782d617a8
b34463870a1754e5f60029a77621c72f32b29a64
/08_cpp-overload-eigen/test.py
1d53e9920cbff02aaa4110da2d6b1f686d5c2d89
[ "MIT" ]
permissive
strint/pybind11_examples
63d59c064a0e9a6d4ddd64413c3955df53a84969
f74b3cda2b9d39728923b9b155920e828b7a29f7
refs/heads/master
2022-12-02T12:56:52.824416
2020-08-13T07:41:10
2020-08-13T07:41:10
285,498,754
0
0
MIT
2020-08-06T07:04:18
2020-08-06T07:04:17
null
UTF-8
Python
false
false
210
py
import numpy as np import example A = np.array([[1,2,1], [2,1,0], [-1,1,2]]) B = 10 print(example.mul(A.astype(np.int ),int (B))) print(example.mul(A.astype(np.float),float(B)))
315603494a810e20704e702766b8df35b57a18c2
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/ACL_PyTorch/contrib/nlp/Rosetta_Resnet34_vd/Rosetta_Resnet34_vd_postprocess.py
6e17c6800c641359f12e3e433a4c33587569cab5
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
2,248
py
# Copyright 2022 Huawei Technologies Co., Ltd # # 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 ...
115cd19c16bf70d8b6fb245210f8ee067431cb67
adb6755eb1a3d91375e6b4e9b8c1afd07f85313b
/venv/Lib/site-packages/pandas/tests/tseries/offsets/test_offsets_properties.py
afb0549a23c3d833a3cad9b8f36e3d974929567b
[]
no_license
Atwinenickson/Socialmediaclassifier-
af54b559569e80004c441fc90dc44b0ee945555d
05c5abbaba8694d9bf95d745ffca75c17ac69621
refs/heads/master
2022-12-15T01:33:18.073259
2019-06-07T15:38:18
2019-06-07T15:38:18
190,616,071
1
0
null
2022-12-08T05:13:29
2019-06-06T16:41:17
Python
UTF-8
Python
false
false
3,941
py
# -*- coding: utf-8 -*- """ Behavioral based tests for offsets and date_range. This file is adapted from https://github.com/pandas-dev/pandas/pull/18761 - which was more ambitious but less idiomatic in its use of Hypothesis. You may wish to consult the previous version for inspiration on further tests, or when trying...
32dbcf217e368ae2de5dac068c7d6e37cadb9bce
6536946f7997b3eccda846505f1e30edd3af99d5
/mycroft_jarbas_utils/hivemind/clients/standalone_voice_client.py
b5c077751ba1fd4724ddc518a4974b33e3151e67
[]
no_license
JarbasAl/ZZZ_mycroft_jarbas_utils
2a6e4d032675fc340c3ccec5eabcf94bacf06460
f05f99a19e88aa7d7d778e30058e759fedacbb25
refs/heads/master
2022-03-24T19:37:56.187643
2019-12-13T02:57:42
2019-12-13T02:57:42
122,380,983
0
1
null
null
null
null
UTF-8
Python
false
false
7,114
py
from twisted.internet import reactor, ssl from autobahn.twisted.websocket import WebSocketClientFactory, \ WebSocketClientProtocol from twisted.internet.protocol import ReconnectingClientFactory from mycroft_jarbas_utils.hivemind.clients.speech.listener import RecognizerLoop from threading import Thread conf = {...
61c7e594c9592fed0407aa4a923ed6db00bd2fae
0e477667e6ce65e0799a5605b8f7f9cd778ff81f
/P2/dino_game.py
2da57b2b18949ee9d6558768c7a7d094a4753f69
[]
no_license
rohitaswchoudhary/py_projects
2e79eb88e8b2d504e9f2c86e5cdedf6ba1470cb9
adde531b1311a1f4e4dd1d5bc57f5f8b743e4f7f
refs/heads/main
2023-04-16T08:40:05.614405
2021-04-29T07:43:21
2021-04-29T07:43:21
337,432,934
2
0
null
null
null
null
UTF-8
Python
false
false
791
py
import pyautogui import time from PIL import Image, ImageGrab def hit(key): pyautogui.keyDown(key) def is_collide(data): for i in range(300,415): for j in range(410,560): if data[i,j]<40: hit("down") return True for i in range(300,415): for j ...
38a04f01a5160d296ff561122a00bddcde966b66
5240574e3e89cfd8393141e08479aac6f314acc8
/L2/helloCont.sh
bfb2b4bdad7774191024f82f87f35458d3afc6a6
[]
no_license
linnil1/2018_LAB_Tutorial
1d1fdce3c37e1881715de0c92ea7ad7a66e49e2f
2d7d9418f29915c828e4f2561709bd731dd0cab8
refs/heads/master
2020-03-23T02:08:03.535006
2018-07-22T06:21:04
2018-07-22T06:21:04
140,957,748
4
0
null
null
null
null
UTF-8
Python
false
false
268
sh
#!/usr/bin/python3 import time import sys num = 0 while True: if num % 3: print("hello -- " + str(num)) sys.stdout.flush() else: print("hello -- " + str(num), file=sys.stderr) sys.stderr.flush() num += 1 time.sleep(0.1)
f4283609b0b15e9b8ea4c1d8aee1778707b75c26
34599a66861f7d95a5740eeb5329ea77014e18d4
/problems_solving/project-euler/pro043_sum_pandigital.py
311f0e0f4f790452348cb363b5436bcaf2be503e
[]
no_license
laolee010126/algorithm-with-python
f0f5f1bc3cbe374ccbb59e10ac639674c44ae743
89ff0c47a6d8b0cd5b31a25bb3981b8e90971f19
refs/heads/master
2022-04-01T17:38:36.199309
2020-01-14T01:54:22
2020-01-14T01:54:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
def get_digit(n, start, length): n = str(n) return n[start-1:start-1+length] def sum_pandigial(): LENGTH = 3 used = [False] * 10 starts = [2, 3, 4, 5, 6, 7, 8] dividers = [2, 3, 5, 7, 11, 13, 17] pandigitals = [] ans = [] def generate_pandigitals(tmp, used, left): nonlocal...
51f9546b94c3bcb4cd440a1de34e1b7e0459997f
4631798b64f2118b7d8e64483a14d7485163358b
/8.6.1_making_pizzas.py
03606d0835e6cdc7d73d325e5776c21e070d9050
[]
no_license
royrowe/python
288680aba27b8c2d46368250b45fb1672427fe6a
dc7cebd56aa1bee7b2afd91e3a2a4b03f1775ba5
refs/heads/master
2020-04-15T20:05:02.587794
2019-01-10T02:53:08
2019-01-10T02:53:08
164,978,105
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
#!/usr/bin/env python ''' @File :8.6.1_making_pizzas.py @Copyright :luoming @Date : @Desc : ''' import pizzaim pizzaim.make_pizza(16, 'pepperoni') pizzaim.make_pizza(12, 'mushrooms', 'green pepers','extra cheese')
[ "your email" ]
your email
4a15925f7f82e3ae829257f3fb188b69d1c18d48
3df98e7d4551220e3b09d122e8d6897ca572d9f3
/basic programs/10.py
f86b5bacd38650a07e43778f169c04f12db69575
[]
no_license
Madhav2108/Python-
2e4bf778348786d8dd082e3e1cdd7acb41d9f559
fdfdf944a96d83352979bc23c3b65aac7bd41d26
refs/heads/master
2023-03-30T21:37:26.326980
2021-03-31T17:40:49
2021-03-31T17:40:49
273,668,175
1
0
null
null
null
null
UTF-8
Python
false
false
181
py
U=int(input("Enter the Units")) if U<100: print("Charges are Rs.1perday") elif U<200: print("Charges are Rs.2perday") else: print("Charges are Rs.4perday")
a94799987815dbae47be87fd753fc0b8e50c3e3e
1d5b2b72d322dd154a8efb547290ad5abb1fd098
/work_dir/autoencoder_test/prepare_nn.py
f10b3551f9bc5475708ae0a016220f1b6df6eaa6
[]
no_license
hxzwd/drafts
6b593b50cae309c02495a8aff28719f7b636962d
478f4a4c399ab0c7c3f8f6e22d13131488716e4d
refs/heads/master
2020-04-28T01:42:58.998610
2019-05-05T17:49:48
2019-05-05T17:49:48
174,868,171
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
from keras.layers import Input, Dense, Flatten, Reshape from keras.models import Model def create_dense_autoencoder(): encoding_dim = 49 input_img = Input(shape = (28, 28, 1)) flat_img = Flatten()(input_img) encoded = Dense(encoding_dim, activation = "relu")(flat_img) input_encoded = Input(shape = (encodi...
[ "=" ]
=
5e28913dc9429bda9278535096ad84a6da40a243
315006dde839c66dab61757f5073466ef63883b6
/imagepy/core/manager/languagemanager.py
1b9b348f99ed51e5ab4b8044a585b22061c156df
[ "BSD-2-Clause" ]
permissive
clickinfinite/imagepy
0777b819e95840a6e41dafc623643e22dfc44adf
5e6425a08ce3a0d9c2ab1b6e749b02cb9362e7f4
refs/heads/master
2021-07-25T20:29:26.767885
2017-11-07T16:33:00
2017-11-07T16:33:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,709
py
import os from ... import root_dir from glob import glob class LanguageManager: plgs = [] langs = {} cur = None filename = os.path.join(root_dir,'data/language/*.dic') @classmethod def set(cls, cur): cls.cur = None if cur=='English' else cls.langs[cur] curfile = open(os.path.jo...
973212974c4e2f21d28c3c8e897643227ad9a0af
3a527d62947ad6d01ebfc8932958636270bc055a
/contact/validations.py
4b8254ea28a6c080b75e8528388aa8b575f5bce0
[]
no_license
Iamprakashkhatri/contactcrud
5bc9209dc104914608c1c9f86604c7bfadbe0fa6
ffd2d18cccde5c7dd9c2dd67382564847c4f6eff
refs/heads/master
2020-09-03T20:03:00.759839
2019-11-06T05:08:32
2019-11-06T05:08:32
219,555,483
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ def validate_domainonly_email(value): if not "[email protected]" in value: raise ValidationError(_("Sorry,the email submitted is invalid")) return value Blacklisted=['abc','new'] def validate_black...
[ "prakash" ]
prakash
4d767e75c1a3e17efffcd6541128012239313ac2
108fc2873b5c07e4ad9515adc16bc8e9fdf7d021
/smorest_sfs/utils/sqla.py
e650ad9a22a4a200e49a5264a8c8d62e89b89d0c
[ "Apache-2.0" ]
permissive
ssfdust/yt-media
4ac5eba6a25830268f42b951e8307bb57e7baeeb
36c3d1977df5851d8df54846f0bc84be2b86e962
refs/heads/master
2021-08-08T09:40:31.241228
2020-05-11T03:11:20
2020-05-11T03:11:20
175,938,603
2
1
null
null
null
null
UTF-8
Python
false
false
1,269
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import namedtuple from typing import List, Optional from flask_sqlalchemy import SQLAlchemy from sqlalchemy import Table, UniqueConstraint, inspect from smorest_sfs.extensions.sqla import Model RelateTableArgs = namedtuple( "RelateTableArgs", ["table...
f8311679b31b7b468a2b34ecffa528474554e3af
e3e5efe47f51f71b28fa6d7d5b2311f25d64b580
/analytics/migrations/0004_auto_20191002_1350.py
189d799a1f81daee8ef86dcdbb73ce505ba25707
[ "BSD-3-Clause" ]
permissive
boxed/analytics
be9169584459434dd2b0099d8ff2ff0755086a95
b1237de9d13ee3509d524d06c561342071090331
refs/heads/master
2023-04-15T01:38:03.702986
2023-03-22T05:38:22
2023-03-22T05:38:22
210,958,980
1
0
BSD-3-Clause
2023-03-22T05:38:24
2019-09-25T23:30:59
Python
UTF-8
Python
false
false
529
py
# Generated by Django 2.2.5 on 2019-10-02 13:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analytics', '0003_auto_20190929_1620'), ] operations = [ migrations.AlterField( model_name='referrers', name='page_u...
3752bd2b4cb84fb188177ba0d85a16a73e44cd8c
8ea6b3429ec95420029a188e898cc63d6acac871
/fnb/views.py
44d1330b9653e6cb948596d5c33847e862a19beb
[]
no_license
chidimo/fnb
131cbbcb44778fae607929e55515907bd15125ba
1ecbed6ce55f7ce368f8909975c2ba28e908d1c3
refs/heads/master
2023-04-10T03:37:40.886743
2021-04-23T18:04:26
2021-04-23T18:04:26
359,479,691
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from django.shortcuts import render from django.contrib.auth.decorators import login_required # @login_required def home(request): template = "home.html" context = {} return render(request, template, context)
6c2bbef21302fc2cebc465ed246a30dbf26672cb
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_datastore_cluster.py
4e635ef511387fe7f9fee40439d8fbc1498d0585
[ "MIT", "GPL-3.0-or-later" ]
permissive
otus-devops-2019-02/yyashkin_infra
06b57807dde26f94f501828c07503d6bf1d70816
0cd0c003884155ac922e3e301305ac202de7028c
refs/heads/master
2020-04-29T02:42:22.056724
2019-05-15T16:24:35
2019-05-15T16:24:35
175,780,718
0
0
MIT
2019-05-15T16:24:36
2019-03-15T08:37:35
HCL
UTF-8
Python
false
false
5,606
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2018, Ansible Project # Copyright (c) 2018, Abhijeet Kasurde <[email protected]> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type...
e40ab14da91a94eef3ca5f0162f555fd7f3063e2
1f689e448d8b510ea6575590cb6920048b4e9aea
/leetcode/237_delete_node_in_a_linked_list.py
18f860fadd7f55ef02c8c54a766f4dd7909583d7
[]
no_license
lijenpan/python
52c6061ff90c611efd039b1858339edbefdb5ad0
7f67045a83bd2592ccc399420194094fb78404b8
refs/heads/master
2020-05-30T10:53:15.634090
2016-12-02T20:50:28
2016-12-02T20:50:28
7,646,477
1
0
null
null
null
null
UTF-8
Python
false
false
706
py
""" Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3, the linked list should become 1 -> 2 -> 4 after calling your function. ============================== I was confus...
6b1995c24faa13aa921aa46b8fc645f211e7c15b
350796fa13c98af7a5a2e8873e5cb74e4f29043c
/redis_test/__init__.py
eb36980e51a8b42aa8c379c220023807fec5d382
[]
no_license
dajun928/Python36
3babdb47124cace844bf8d7b8054c1c6181a0a9f
8974fc9c9c808e10fef02ed4c061bfbac5a0961f
refs/heads/master
2022-12-12T17:47:47.724277
2021-01-10T03:29:45
2021-01-10T03:29:45
174,575,956
0
0
null
2021-06-01T23:57:50
2019-03-08T16:59:19
HTML
UTF-8
Python
false
false
174
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ @version : @file : __init__.py.py @time : 2019/07/13 23:14:22 @func : """ import platform print(platform.python_version())
1b747ea8a43a236bb90f881c0f94541e88f10226
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/time/great_company/person/think_thing/large_person.py
404255285e129d19a24dfea618205b314abd8f64
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
#! /usr/bin/env python def different_point_and_important_person(str_arg): own_life(str_arg) print('small_government') def own_life(str_arg): print(str_arg) if __name__ == '__main__': different_point_and_important_person('tell_high_fact_about_next_government')
773f91abb27727fe00fca57a9a0057b794f7b0a2
26f6313772161851b3b28b32a4f8d255499b3974
/Python/HowManyApplesCanYouPutintotheBasket.py
b7e35d3681a27ba6f75f3b9c535237f76e621a1e
[]
no_license
here0009/LeetCode
693e634a3096d929e5c842c5c5b989fa388e0fcd
f96a2273c6831a8035e1adacfa452f73c599ae16
refs/heads/master
2023-06-30T19:07:23.645941
2021-07-31T03:38:51
2021-07-31T03:38:51
266,287,834
1
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
""" You have some apples, where arr[i] is the weight of the i-th apple. You also have a basket that can carry up to 5000 units of weight. Return the maximum number of apples you can put in the basket. Example 1: Input: arr = [100,200,150,1000] Output: 4 Explanation: All 4 apples can be carried by the basket sinc...
87ba885929017189ab742b8e8999ce8d820bb5f2
987ead1eb0877b9bdea16f3ee50bf19d5fe204bd
/matplotlib/fig_axes_customize_simple.py
86517664a5dd13b23da4617281156274fa684c85
[]
no_license
ZHX1996/project
da62151e32254848a02292a2f9bdb1db17850d67
5a57be55cf173dde7e5a135a9cf1cfbc9a63a158
refs/heads/master
2021-07-15T11:36:02.412231
2020-05-15T08:51:34
2020-05-15T08:51:34
94,512,901
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() rect = fig.patch rect.set_facecolor('lightgoldenrodyellow') ax1 = fig.add_axes([0.1, 0.3, 0.4, 0.4]) rect = ax1.patch rect.set_facecolor('lightslategray') for label in ax1.xaxis.get_ticklabels(): label.set_color('red') label.set_rotation(4...
e6979701b78027a1810a73e1e1afa3b9d8e5a65b
d6a209a45bb14846e47b07a77641de26e073e9fb
/drill14.py
a5fe48baad84fb34879066dbc046251dce45ee47
[]
no_license
fan-bingbing/pyexcercise
ca711212af0f5df07a57d253190f63cf4a0dd887
ddb32bfae1891cda9f0ef0effd43a95a95e1d043
refs/heads/master
2021-03-13T19:49:24.042399
2020-03-17T04:24:21
2020-03-17T04:24:21
246,705,823
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
from sys import argv script, user_name = argv # don't forget how to run this kind of file, pass argv in command line. prompt = '>' # a handy way of changing prompt icon print(f"Hi {user_name}, I'm the {script} script.") print("I'd like to ask you a few questions.") print(f"Do you like me {user_name}?") likes = input(...
c2bb5f0ed30a64641673adc9923cb1f29d84b06d
c30906c50ea0fbcccbf080b89eca84edb9f04673
/DaVinci_scripts/MC/twoBody/KK/job_2016_down.py
766fe4d29a71ab572fa7135bf3f63551a126e3ce
[]
no_license
hpullen/DPhil_B02DKstar_analysis
543661c4c2e978fb7f60a1d81f27bc660710994d
651b3f333d3959e78512fc294afa334e3ea26fd9
refs/heads/master
2023-07-15T17:38:53.009366
2021-08-25T19:40:42
2021-08-25T19:40:42
107,555,335
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
j = Job(name='KK_2016_down', backend=Dirac(), application=DaVinci(version = "v41r3"), splitter=SplitByFiles(filesPerJob = 10, maxFiles = -1) ) j.application.optsfile = '2016_KK.py' BK = BKQuery(path=('//MC/2016/Beam6500GeV-2016-MagDown-Nu1.6-25ns-Pythia8/Sim09b/' 'Tr...
8a0ce920566673a8897bd95bdffab20b9ca62d2e
5496b9682dec06925f3572e64d7f1eb48d78ebe1
/src/visualization/FragmentationKaandorpPartial/FragmentationKaandorpPartial_timeseries.py
e0c5e0fe4cbbd37de19ad52a5dd362f293e1991e
[]
no_license
VictorOnink/Lagrangian-Transport-Scenarios
64bec8b992e2909a05b0258524dbae25f967ea29
586bcecc42d6a7f4f299507da8f0cb29c8d71a2e
refs/heads/master
2023-04-14T12:22:29.309172
2022-07-11T18:46:38
2022-07-11T18:46:38
297,894,637
1
0
null
null
null
null
UTF-8
Python
false
false
4,986
py
import settings import utils import visualization.visualization_utils as vUtils import matplotlib.pyplot as plt import string from datetime import datetime, timedelta class FragmentationKaandorpPartial_timeseries: def __init__(self, scenario, figure_direc, shore_time, lambda_frag, rho, simulation_length, weight, ...
e8c85a198d85379bb175f16c9e3150e47000350b
f03e771eb4c1f300ae819179090efc388bcc6d32
/src/pymine/tile/Tile.py
3547ab54aab3f2536690989bfb2649112dcd016b
[]
no_license
lacthan28/PyMine
d8d2365b0aabefcb056754260f67095dbcbe62ff
e7d4778f01181d45551c02fa0cef151327fa240a
refs/heads/master
2021-01-21T19:50:48.417635
2017-06-30T05:38:46
2017-06-30T05:38:46
92,161,042
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
# -*- coding: utf-8 -*- import inspect from abc import * from pymine.event.Timings import Timings from pymine.level.Level import Level from pymine.level.Position import Position from pymine.nbt.tag.CompoundTag import CompoundTag from spl.stubs.Core import isset, microtime class Tile(metaclass = ABCMeta, Position): ...
bb76168acd060f61720726e831f2a0a94fe00c53
260499100ef43361cbf2815e2c0eb5288755862c
/Intro/07_almostIncreasingSequence.py
873528d2d7f438a47ea824f35b3e78211ab9d83a
[]
no_license
Cheng0639/CodeFights_Python
c4640a3cfb6be89049fd3d0d04702b06071b4e39
6b536b851016510ee79359e33da662de21cb3d3a
refs/heads/master
2021-05-09T09:54:57.762593
2018-07-24T14:53:15
2018-07-24T14:53:15
109,243,927
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
def almostIncreasingSequence(sequence): count_decreasing_sq = 0 for i in range(len(sequence) - 1): if sequence[i + 1] <= sequence[i]: count_decreasing_sq += 1 if (i >= 1) and (sequence[i + 1] <= sequence[i - 1]): if (len(sequence) - 2 > i) and (sequence[i + 2] <= ...
8c754a532e50d2046cfeb41f5c5df7af538ee122
f854ef28002a3931a8d8b8d0b9cc691b8a449db3
/home-assistant/custom_components/browser_mod/binary_sensor.py
16333806a3baa1bbffe7e5797049573fb21ccf12
[ "MIT" ]
permissive
Burningstone91/smart-home-setup
030cdaa13d05fb19a82b28ea455614d3276522ab
c2f34cc8b8243bc6ce620b3f03e3e44ff28150ca
refs/heads/master
2023-02-23T06:25:04.476657
2022-02-26T16:05:02
2022-02-26T16:05:02
239,319,680
421
36
MIT
2023-02-08T01:16:54
2020-02-09T14:39:06
JavaScript
UTF-8
Python
false
false
1,646
py
from datetime import datetime from homeassistant.const import ( STATE_UNAVAILABLE, ATTR_BATTERY_CHARGING, ATTR_BATTERY_LEVEL, STATE_ON, STATE_OFF, ) from homeassistant.components.binary_sensor import DEVICE_CLASS_MOTION from .helpers import setup_platform, BrowserModEntity PLATFORM = "binary_sens...
9d338275db0bb2d0043d091a349c50f9ffa5ffa9
e9c11f173507a06b40523714591cf1c443efcd89
/autoencode_project/vae.py
aea6bebb4650219215bdaca9cac090ed3b326ee3
[]
no_license
IanEisenberg/CBMM
55100773b157981122aa261d70186c42ca04b685
6a1e2eda7308b1334187036ef37983b940b5d186
refs/heads/master
2021-01-19T07:40:30.735971
2017-08-31T01:16:32
2017-08-31T01:16:32
100,642,436
0
2
null
null
null
null
UTF-8
Python
false
false
2,793
py
from keras.layers import Input, Dense, Lambda, Layer from keras.models import Model from keras import backend as K from keras import metrics import numpy as np from os import path import pandas as pd from scipy.stats import norm import seaborn as sns from sklearn.preprocessing import scale # load data data_loc = pat...
3c1cb2eabb7a69bd4c6859d78945c5be3c53996c
15b71fe940708d3c04581bfb012c8d61705d6108
/compiler/src/thryft/compiler/parse_exception.py
18fec9277995932a528ee0f15e5e57fdd1b8d97c
[ "BSD-2-Clause" ]
permissive
adam-singer/thryft
2f426c1751c02f95c4785f499065b28b853df42d
26cfd2148fa408aa5da8ac93bbe7b8722a0dfd8e
refs/heads/master
2021-05-27T00:42:19.358530
2014-07-27T19:09:34
2014-07-27T19:09:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
#------------------------------------------------------------------------------- # Copyright (c) 2013, Minor Gordon # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of s...
78851915cd48b3fa3a3b346632c40c8be0e4232d
51f1a5f544fd00c7449edeb28538dd99d4b5a1c2
/spyderpro/test/insert_scenece_history_data.py
5e97225b102be51df53dd91c6f3390ee4c72f6f0
[]
no_license
LianZS/spyderpro
aab6f7f5c88c87f683f6cdacd19629d11da74009
5e34873cd13950dd3b5dc6341aad144522af0eae
refs/heads/master
2020-05-31T10:38:30.143573
2020-02-16T02:43:43
2020-02-16T02:43:43
190,239,345
8
0
null
null
null
null
UTF-8
Python
false
false
3,005
py
import csv import os import pymysql from threading import Thread, Semaphore user = 'root' password = 'lzs87724158' host = "localhost" port = 3306 scencefilepath = os.getcwd() city_file_path = os.getcwd() database = 'digitalsmart' db = pymysql.connect(host=host, user=user, password=password, database=database, ...
ff9fc9c3b9bbd3652a26b7aa1af092f08760aecf
4a83925d00f26b57db9a77553fbacf30735d1171
/open/core/betterself/tests/views/test_measurement_views.py
9bc05ae6117eed20260d67dd63e7475525afa9ea
[ "MIT" ]
permissive
mmangione/open
581f622a6c2fe465fc7bd5cd0dc43a2a5f098248
5163e47ea6ba6160bf12a3ebe18bc76d078ea62c
refs/heads/master
2021-07-15T09:34:14.355559
2020-10-14T09:08:14
2020-10-14T09:08:14
217,483,795
0
0
MIT
2020-10-14T09:08:16
2019-10-25T08:05:58
Python
UTF-8
Python
false
false
945
py
from django.contrib.auth import get_user_model from test_plus import TestCase from open.core.betterself.constants import BetterSelfResourceConstants from open.core.betterself.factories import MeasurementFactory from open.core.betterself.models.measurement import Measurement from open.core.betterself.tests.mixins.resou...
919842e59adaa424c81909c1e5e0a91ed3666ca8
a6bf211d2b31c2d7fdb927924d77ac00f1fb4d5f
/scripts/chart-total-checks-all.py
ad25b40f96661a760cd0c1901cb00d14c3cd0c9a
[ "MIT" ]
permissive
tzor1234/nics-firearm-background-checks
f96770c4d7e4ac6eed16ad2dff94717f51c8611c
9e752e891124de16c2fd911050f853498c577260
refs/heads/master
2023-09-05T21:42:49.096106
2021-11-01T19:25:43
2021-11-01T19:25:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
#!/usr/bin/env python import sys, os import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import StrMethodFormatter import seaborn as sb sb.set() checks = ( pd.read_csv(sys.stdin) .assign( month_dt = lambda df: pd.to_datetime(df["month"], format = "%Y-%m") )...
29800f47bd874f8ef18582517b30b1a222c6d4f7
aa4aa51465d79e0447cbe22281f0402ca95bdaa2
/python/project/gibbs.py
6332c91e98afb6236718f6b588e65561703cc60e
[]
no_license
zuozuo12/usualProject
2ca06bb7a1ff6f99343f1997053ba8d5a48e00a7
335bcef5d76d6cf0c84dd3209176089b3b07fbba
refs/heads/master
2020-11-27T17:02:33.252884
2019-10-22T06:46:32
2019-10-22T06:46:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
from scipy.stats import norm import matplotlib.pyplot as plt import random import math def gibbs(N=500, thin=10): pi = []; x = 0 y = 0 for i in range(N): for j in range(thin): x = norm.rvs(loc=y, scale=2, size=1, random_state=None) y = norm.rvs(loc=x, scale=3, size=1, ra...
9430c9ef1326c8401d3de54c76f50e4741fbcd27
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_083/ch11_2020_03_18_03_05_56_266683.py
daa8a1dbf71d778dd8294f4e1e22a98e871fce67
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
import math def distancia_euclidiana(x1,x2,y1,y2): return (((x2-x1)**2) + ((y2-y1)**2))**1/2 a=2 b=3 c=4 d=5 e=((3-2)**2) + (5-4)**2 raiz= math.sqrt(e) print(raiz)
327458930aa320ef01199a11641fa16213635e1d
f1fcd165cd8444310ce5d201e481e3982dc28110
/medium/1901/190127/jang.py
c9913b842429b52e94d07f0ea82989fad994fc40
[]
no_license
JoosJuliet/algoStudy
310a71a0fcc8f3c23281544cf3458ed999040176
3fc1e850f9d8b9f290f41fddd59ff403fbfffa05
refs/heads/master
2020-04-20T19:26:25.485875
2019-03-27T22:37:27
2019-03-27T22:37:27
169,049,593
1
0
null
2019-02-04T08:43:07
2019-02-04T08:43:07
null
UTF-8
Python
false
false
592
py
n = int(input()) arr = list(map(int, input().split())) enum_arr = sorted(enumerate(arr, start=1), key=lambda t: t[1]) frm = [] to = [] for i in range(1, len(enum_arr)+1): if enum_arr[i-1][0] != i: frm.append(i) to.append(enum_arr[i-1][0]) cvted = list(range(frm[0], frm[-1]+1)) if len(cvted) % 2 ...
4d51c21e128583698658ed9af9d417243d4275fe
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/raw_scripts/132.230.102.123-10.21.11.29/1569578047.py
23acb9e0de056e6062a2453e8fecf4cce4d3df5d
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
import functools import typing import string import random import pytest # Lösung Teil 1. def list_filter(x, xs): """ x: Int xs: List Diese funktion returnt die werte der liste, welche kleiner als x sind.""" L = [] for i in xs: if i <= x: L.append(i) return L ##########...
10992b85ca307716f9540574e49c699529f6575f
59b18dec434fc54cdaf6fd6c224fea9c783f2043
/MyBlog/comments/migrations/0001_initial.py
a6c7e5dfd249072e98c81326c4d5ee7adbb88c97
[]
no_license
InformationX/MyBlog
00e95f27a78be39338fbaa462b1fa069cdfad3e6
2a5b15535c17b0eee0d1fa9bcebc5f7207dd46db
refs/heads/master
2021-04-10T00:54:09.002419
2019-10-09T11:56:24
2019-10-09T11:56:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,505
py
# Generated by Django 2.1.4 on 2019-06-13 09:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('blog', '0004_auto_20190613_1527'), migrations.swappable_depende...
ea7744864101673132321095636165fa4a0cbc9b
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/dataflow/modeling/model/model_serializer.py
8e578fb7093c3752167b0baac4b745d5530625d1
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
4,831
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
f2febac8f4268f36933396a59726a5d1d8eaee71
31747dd8c61085421d7bd4166f7bd4f9429cf914
/tests/test_visitors/test_ast/test_naming/conftest.py
c365a79530f1db42a9abe5b5ddc0d39fee60ac86
[ "MIT" ]
permissive
edytagarbarz/wemake-python-styleguide
0e9ed4080a13a6727b8e80785e113b8407409352
74b86156d73c2a4fe9c755138f6953fec41fab3b
refs/heads/master
2021-03-03T19:21:54.807089
2020-03-07T23:35:15
2020-03-07T23:35:15
245,981,718
1
1
MIT
2020-03-09T08:31:55
2020-03-09T08:31:54
null
UTF-8
Python
false
false
4,646
py
import pytest from wemake_python_styleguide.compat.constants import PY38 # Imports: import_alias = """ import os as {0} """ from_import_alias = """ from os import path as {0} """ # Function names: function_name = 'def {0}(): ...' method_name = """ class Input(object): def {0}(self): ... """ # Function argum...
e80bab55c48ceccf23ecc4e67e62307d15f29969
929d12e11ed2fb69476b9d07932e38662f0ce6fc
/Queues/Reversing Elements Of Queue.py
468388212a76ab4d1e361cdeb721eb786c208301
[]
no_license
arnabs542/Data-Structures-And-Algorithms
b8f341a31ca18044bf179294fbcb0fac1f835216
ffcc2f8a25520ce37cd1f67e6225281c85141a65
refs/heads/master
2022-12-13T14:09:55.005341
2020-09-13T11:58:58
2020-09-13T11:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,398
py
""" Reversing Elements Of Queue Problem Description Given an array of integers A and an integer B. We need to reverse the order of the first B elements of the array, leaving the other elements in the same relative order. NOTE: You are required to first insert elements into an auxiliary queue then perform Reversal of...
c541305cafe96c7c8667b45be1618611178980d9
23ec357d5df7addf06cb70c10ba9173521c70a9b
/core/migrations/0018_auto_20210621_0048.py
9a7276bde29db5d951039b362455c331c431ca68
[]
no_license
blimp666/d_job
b8e8b93ef6b94e24a38bd94195a779bfff7f3c30
18904ac12af6593bf59b1ba379f722bd69d00863
refs/heads/main
2023-06-07T21:50:34.596128
2021-06-22T11:15:20
2021-06-23T19:36:48
376,893,878
0
0
null
2021-06-15T19:30:46
2021-06-14T16:48:17
Python
UTF-8
Python
false
false
911
py
# Generated by Django 3.2.4 on 2021-06-21 00:48 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0017_auto_20210619_1206'), ] operations = [ migrations.AlterField( model_name='application', ...
f301d8c1426299d986f583448ef5069d417a5f45
30a2f77f5427a3fe89e8d7980a4b67fe7526de2c
/analyze/BHistograms_trigjetht_eta1p7_CSVM_cfg.py
4ae59fa9d3b2fae9f267eb69dbd0e0b841e7c040
[]
no_license
DryRun/QCDAnalysis
7fb145ce05e1a7862ee2185220112a00cb8feb72
adf97713956d7a017189901e858e5c2b4b8339b6
refs/heads/master
2020-04-06T04:23:44.112686
2018-01-08T19:47:01
2018-01-08T19:47:01
55,909,998
0
0
null
null
null
null
UTF-8
Python
false
false
5,788
py
import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing import sys options = VarParsing.VarParsing() options.register('inputFiles', '/uscms/home/dryu/eosdir/BJetPlusX/QCDBEventTree_BJetPlusX_Run2012B_v1_3/160429_121519/0000/QCDBEventTree_567.root', VarParsing.VarParsing.multipli...
b3573574645dab4a14085dbbfc1ceed3c185f247
231f8a898b20e475a5cabff439600de211d825c0
/superlists/urls.py
1b817a2f4121136d79814f362f95857a779149c2
[ "MIT" ]
permissive
thewchan/superlists
f7370b341ce7c37b8cae506eb5bafdd2fb31b07a
af41636b2cdafb45c638e36076b9cdefc5586aad
refs/heads/master
2023-05-26T11:01:24.310480
2021-06-11T21:12:20
2021-06-11T21:12:20
361,209,827
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
3b6cce24b6bf09f2d048fa65cbaea2b432e16d92
4dda597dac544b237cf8f8b04b3c9e662b988a92
/11-1/mydata/applitions/views.py
8f8ffa4a104ff5767a5aa416a9ebb19e76647a2d
[]
no_license
beriuta/history
02ac9414c0475fde59f6a455c23c56235fe3c4bc
026c965f694e84120825069bedf7bfac235318b5
refs/heads/master
2020-04-11T17:24:39.558174
2018-12-16T02:08:18
2018-12-16T02:08:18
161,959,735
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
from django.shortcuts import render from datetime import datetime,timedelta # Create your views here. def t(request): name = '测试' d1 = {'name': '小鬼', 'age': 18, 'hobby': 'eat', 'items': 'hello'} class People: def __init__(self, name, age): self.name = name self.age = age ...
676e52de08ecbf08fbb59988ca58614c255892d8
5b4312ddc24f29538dce0444b7be81e17191c005
/autoware.ai/1.12.0/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_RailCrossingArray.py
c5485493b9388cf7c0c77f72f2f28ac09a8f6105
[ "MIT" ]
permissive
muyangren907/autoware
b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2
5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38
refs/heads/master
2020-09-22T13:08:14.237380
2019-12-03T07:12:49
2019-12-03T07:12:49
225,167,473
0
0
null
null
null
null
UTF-8
Python
false
false
7,277
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from vector_map_msgs/RailCrossingArray.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import vector_map_msgs.msg import std_msgs.msg class RailCrossingArray(genpy.Messag...
00465e54f148270106631a6302c36d295425dfe7
4e678f6967745c3da2a3e8899204e34d99fc3be0
/python-quest-1.py
6e6922acc790a0eff4ffcedd901c28ea8e2f4366
[]
no_license
pratikshah1701/hackerrank
bf689a583b462c0fde697abd536ae0638d14ced9
73fde2a0d9dc063e1c06d42f0572ce01f5dd04b9
refs/heads/master
2021-01-19T18:47:15.278811
2017-04-13T09:16:27
2017-04-13T09:16:27
88,381,516
1
1
null
2017-04-16T00:20:00
2017-04-16T00:20:00
null
UTF-8
Python
false
false
226
py
#!/usr/bin/env python3 def main(): for i in range(1, int(input())): # More than 2 lines will result in 0 score. Do not leave a blank line also print((10 ** i - 1) // 9 * i) if __name__ == '__main__': main()
6b6f314619290d1abeedd0e25f056113994f73bd
4861398f925ae2cc01189577c71c4983fd7d097b
/kakao_().py
88bd003daf8d8bcebc4b1e7d1320be8a73a7a17d
[]
no_license
fightnyy/programmers_algorithm
1c682220aedc078f7a184109f06aa95f673d1d43
5efe26a12661f3d278bfcca66753ccfd10451002
refs/heads/master
2023-05-02T15:53:22.116662
2021-04-27T00:59:30
2021-04-27T00:59:30
328,570,715
0
0
null
null
null
null
UTF-8
Python
false
false
735
py
def solution(p): answer = '' def _is_empty(inputs_e): if inputs_e == "": return "" def _divide(inputs_d): u, v = inputs_d[:2], inputs_d[2:] return u,v def _is_corret(inputs_c): stack = [] for c in inputs_c: if c == '(': ...
6ff0110e98ad5e642d3aed34dc2cf15987a7b382
ad553dd718a8df51dabc9ba636040da740db57cf
/.history/app_20181209011747.py
f315e62e16bac6e29a0065fac970aaec00ade91b
[]
no_license
NergisAktug/E-Commerce-PythonWithFlask-Sqlite3
8e67f12c28b11a7a30d13788f8dc991f80ac7696
69ff4433aa7ae52ef854d5e25472dbd67fd59106
refs/heads/main
2023-01-01T14:03:40.897592
2020-10-19T20:36:19
2020-10-19T20:36:19
300,379,376
0
0
null
null
null
null
UTF-8
Python
false
false
8,172
py
import datetime import sqlite3 as sql from flask import Flask,flash, request, render_template_string, render_template from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string from flask_babelex import Babel from flask_sqlalchemy import SQLAlchemy from flask_user impo...
47ec1eb674eb47c0d01660f188daff40943df5e2
b5fb45288ed2a204692051ab78e72d8aa6e5accd
/argo_data_scripts/vis/vis_contrast.py
51dc949c3ad92268e7c9143fa92182c57a7c0d8f
[ "Apache-2.0" ]
permissive
nithinksath96/MMdetection_TensorRT_FP16
d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d
c8379b209d4deeff9350baf5bbedfc95fb8941f4
refs/heads/master
2023-02-13T20:00:21.834541
2021-01-06T09:24:20
2021-01-06T09:24:20
327,260,988
0
0
null
null
null
null
UTF-8
Python
false
false
5,937
py
# Merge and convert real-time results # Optionally, visualize the output # This script does not need to run in real-time import argparse from os import scandir from os.path import join, isfile from tqdm import tqdm import numpy as np from PIL import Image, ImageFont, ImageDraw import sys; sys.path.insert...
65f48d5c7bdf634c88c47b5df4e34a43fb7061f4
dfaa71f8064d3d0773941cf14ab86ff57ff67284
/part35/blog/models.py
e096fa50faab3cc7fd3ab30abcc1c60a66a4db46
[ "Apache-2.0" ]
permissive
yllew36/WellyGI
e94c5000ff3a7f2fd7316d22ad166fbf7916ea23
7d53fac4c81bb994f61b22761e5ac7e48994ade4
refs/heads/master
2020-09-05T15:49:37.386078
2019-11-15T08:16:59
2019-11-15T08:16:59
220,148,061
1
0
null
null
null
null
UTF-8
Python
false
false
373
py
from django.db import models # Create your models here. class PostModel(models.Model): judul = models.CharField(max_length=20) body = models.TextField() category = models.CharField(max_length=20) published = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) def __str__...
059945b503bc8e858ff2111eb171506610714b02
8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6
/venv/Lib/site-packages/mypy/typeshed/third_party/2and3/markdown/extensions/legacy_attrs.pyi
035b589a9f34a9529d88c4a202238e44166669ca
[]
no_license
RodrigoNeto/cursopythonyt
fc064a2e6106324e22a23c54bdb9c31040ac9eb6
279dad531e21a9c7121b73d84fcbdd714f435e7e
refs/heads/master
2023-07-03T00:54:09.795054
2021-08-13T12:42:24
2021-08-13T12:42:24
395,646,798
0
0
null
null
null
null
UTF-8
Python
false
false
313
pyi
from typing import Any, Pattern from markdown.extensions import Extension from markdown.treeprocessors import Treeprocessor ATTR_RE: Pattern class LegacyAttrs(Treeprocessor): def handleAttributes(self, el, txt): ... class LegacyAttrExtension(Extension): ... def makeExtension(**kwargs): ...
5fc3082edcd76e319526f196ca4f0ac1f08de570
d10d6d037ad741e2383eb1bb8bbc5dd3b3f09e41
/python3/practice/classic_puzzle/easy/pirates-treasure.py
b6637587260c3ffcd0f4ba3521b9a43ac09effcb
[]
no_license
jz4o/codingames
4614d34a3d9be07205747ee3617479e1e77fd6ed
1f2222d23aaf670c7ddb658e7aca1a8e12e9bcab
refs/heads/master
2023-08-18T03:30:04.640290
2023-08-17T14:24:04
2023-08-17T14:24:04
102,266,024
6
2
null
2021-05-01T13:33:34
2017-09-03T13:20:10
Java
UTF-8
Python
false
false
1,193
py
# import sys # import math # Auto-generated code below aims at helping you parse # the standard input according to the problem statement. w = int(input()) h = int(input()) grid = [] grid.append([1] * (w + 2)) for i in range(h): row = [] row.append(1) for j in input().split(): v = int(j) r...
4c04be0c1b62494ac0091aebed2588dc3cae107f
bcc916eb6c5ce649758c903fba6065f6d53dc6d2
/datalad_webapp/__init__.py
9ebfad5fa15a49e81b35bb43c19031ae832458dd
[ "MIT" ]
permissive
bpoldrack/datalad-webapp
ed4d432d3a6fc49eff40bfcc296e5426ae3ab3b6
c6107ba0460b7a967cabe5cecbf2b8e18b3fbf49
refs/heads/master
2021-05-25T11:44:53.770310
2018-03-29T13:38:53
2018-03-29T13:38:53
127,297,116
0
0
null
null
null
null
UTF-8
Python
false
false
6,220
py
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
670cd19658bb9118b6186e4645afd044289372ac
82042141439ae004fc38bb2ef6238f36ec6bb050
/attendance/settings.py
03f8fb508ead9f5f52ebcd48f3f82c239a48a82e
[]
no_license
psteichen/clusil-intranet
2e9a2cf3b00692a4ef441ebf669af4e63945e9a2
5c028d33f6a8559af57a4eeb02fc0f612cb1b261
refs/heads/master
2021-07-13T15:40:06.464105
2020-06-30T19:51:00
2020-06-30T19:51:00
27,195,950
2
1
null
2021-06-10T20:06:47
2014-11-26T20:59:46
Python
UTF-8
Python
false
false
1,458
py
# Application settings for attendance app # coding=utf-8 ACTIONS = { 'invite': ( { 'label' : u'Invite (a) collegue(s).', 'grade' : 'info', 'icon' : 'plus', 'url' : '/meetings/invite/', }, ), } ATTENDANCE_TMPL_CONTENT = { 'template' : 'done.html', 'too_la...
c5e49b4de1ac2ec9e848c99af5781b7e842799cf
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/dev/cv/image_classification/RANet_ID0994_for_PyTorch/dataloader.py
8d73f52aa9fc6f2e781b3bfbb395740fb1153839
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
6,745
py
# # BSD 3-Clause License # # Copyright (c) 2017 xxxx # All rights reserved. # Copyright 2021 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain ...
485f03dae69df4b6ada9fb3ae69c80c9a25a63be
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03018/s073874742.py
f981861b7dd86b3250675915160c0c2a28113c5c
[]
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
516
py
S = input() rlt = 0 b = '' tA = 0 A = 0 BC = 0 for s in S: if s == 'A': if b == 'A': tA += 1 elif b == 'B': rlt += A*BC tA = 1 A = 0 BC = 0 else: rlt += A*BC tA = A + 1 A = 0 BC = 0 elif s == 'B': if b == 'B': rlt += A*BC tA = 0 ...
5086248faf63027b66d09017218bbf3019c4625f
881a76acaf0b6a26fd34548f0b1abbcf176a37b2
/ezgal/__init__.py
70fdcaa0ab7a97b7b8f4f8afe7ec51d6a94d571a
[ "MIT" ]
permissive
gsnyder206/ezgal
930ed644b00332e3fc1f733a32afc72d511b7cb0
f10e57021ca88c7139a28b058b8716c5507ce48c
refs/heads/master
2021-01-11T11:17:09.551803
2017-01-11T16:44:50
2017-01-11T16:44:50
78,657,426
0
0
null
2017-01-11T16:28:50
2017-01-11T16:28:50
null
UTF-8
Python
false
false
1,767
py
import ezgal,utils,astro_filter,ezgal_light,wrapper,sfhs,weight,dusts __all__ = ["model", "utils", "wrapper", "sfhs", "weight"] __author__ = 'Conor Mancone, Anthony Gonzalez' __email__ = '[email protected]' __ver__ = '2.0' ezgal = ezgal.ezgal model = ezgal astro_filter = astro_filter.astro_filter ezgal_light = ezgal...
2929024e5b2b882ef9940eb706da9e2ad2f7e2c7
482297526ed7eedc7c3600a4b98c45e775065852
/emsapi/models/adi_ems_web_shared_tableau_rest_view_py3.py
9815d11e7c037465cd2c29f30ceddec172074ad0
[ "MIT" ]
permissive
ge-flight-analytics/emsapi-python
9c441095c0f9c9dc8a42ee918f830a5261f4f4d1
d3de16397c6f3a35c0965e4dfc76741d1379145e
refs/heads/master
2023-08-03T20:47:45.950550
2023-07-26T16:13:01
2023-07-26T16:13:01
233,153,982
0
1
MIT
2023-07-26T16:13:31
2020-01-11T00:38:20
Python
UTF-8
Python
false
false
1,008
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
972e173dd684f111e265003215339e68adb7e6fb
cac36b279aa1ea889a5e3803efd615449c55922b
/src/012_costMinimize.py
2d75190ae9e5e749cffd703687dcfa87d42aa3ce
[]
no_license
GunSik2/ml
6e16cbbe04406686e394f59c634ed105bf90f849
bdc7ad59c113e13eb13d01d05e30ec77cc96035f
refs/heads/master
2020-06-12T09:53:30.965606
2017-01-05T03:37:34
2017-01-05T03:37:34
75,591,930
0
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
import tensorflow as tf # Single variable linear regression # Hypothesis: H(x) = Wx + b # Cost Fun.: cost(w,b) = 1/m * Sum(H(x) - y)^2 # Gradient descent: W := W - alpah * 1/m * Sum((W*x - y) * x) # training data x = [1., 2., 3., 4.] y = [2., 4., 6., 8.] # Initial value (w, b) W = tf.Variable(tf.random_uniform([1], ...
272780c50836d3f265770a3986bd720199357fd3
5337ddfe3adf3a044bae5cdd530e8836b9000db1
/tests/structshape_test.py
0766479528b059d1cc38582a4d7d205a6395bf01
[]
no_license
404cafe/Swampy
ef1d3206e9fece098910fb41d542ac7195dde50a
82fdafb27e219d0544b74a745f516bfb2264fdaf
refs/heads/master
2020-12-01T06:27:08.869741
2020-03-04T08:41:59
2020-03-04T08:41:59
230,575,461
0
0
null
2019-12-28T07:30:18
2019-12-28T07:30:17
null
UTF-8
Python
false
false
1,260
py
"""This module is part of Swampy, a suite of programs available from allendowney.com/swampy. Copyright 2011 Allen B. Downey Distributed under the GNU General Public License at gnu.org/licenses/gpl.html. """ import unittest from swampy.structshape import structshape class Tests(unittest.TestCase): def test_lump...
1e0051a965e57364e9feb7ed0b8838ad82f4619a
95978243568bee7c33a2d6c100f42e0c5a15c933
/coremltools/converters/mil/mil/ops/defs/iOS16/tensor_transformation.py
473b7c683407b03e7a405cbd4224e62ba2dda7be
[ "BSD-3-Clause" ]
permissive
cclauss/coremltools
6cc68874c45ce1035b1b59417eacfdce738d725d
0c63b0aeb63acedce0d39446c19b80cc47d57a7a
refs/heads/master
2023-05-01T16:56:43.042564
2023-04-14T20:16:24
2023-04-14T20:16:24
106,254,817
0
1
null
2017-10-09T08:11:43
2017-10-09T08:11:43
null
UTF-8
Python
false
false
6,920
py
# Copyright (c) 2022, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clausefrom coremltools.converters.mil.mil import types import numpy as np from coremltools.converters.mil.m...
729cda05f7cf671ee84fa46f47321cf0aba2496a
b1c97831338b0c2f8099a56f23bddf394561e0e3
/Chapter 05/queueJoin.py
440160eac7fb2079148b0631868f55e20a0c9aca
[ "MIT" ]
permissive
PacktPublishing/Learning-Concurrency-in-Python
03b242f64a0b6515a41ceccab86936dc54b20e15
bafc928ce9edc601e3def4441b51555ede13c973
refs/heads/master
2023-02-06T00:51:37.297067
2023-01-30T08:05:25
2023-01-30T08:05:25
100,243,064
77
51
MIT
2018-10-26T12:14:45
2017-08-14T08:03:03
Python
UTF-8
Python
false
false
530
py
import threading import queue import time def mySubscriber(queue): time.sleep(1) while not queue.empty(): item = queue.get() if item is None: break print("{} removed {} from the queue".format(threading.current_thread(), item)) queue.task_done() myQueue = queue.Queue() for i in range(5): my...
bb8ab784baecc945d7331bba2ea31191ffddd9fb
10d98fecb882d4c84595364f715f4e8b8309a66f
/f_net/configs/classification.py
2d1e0d6deb8ebaa8cff5ae3928c884995cda95e1
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
2,352
py
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
09d1805c4d1b7e98881a9a7b658b3a20a6a61e32
2c07ae4239d217f4a4b3d356ca4be31629dea4d5
/assets.py
2c3cc15e2b9d049fc77ed0707642012353ae75fc
[]
no_license
themylogin/thelogin.ru
771afe0e3afbdc1072695fb2d4920f6ec3b7c6d3
1f66ff940dfafe6d065c63e832d51b5e16522edc
refs/heads/master
2023-04-25T22:02:56.004822
2020-03-22T18:02:40
2020-03-22T18:02:40
7,691,963
0
0
null
2023-04-15T01:17:22
2013-01-18T18:31:57
Python
UTF-8
Python
false
false
1,157
py
#!/usr/bin/python # -*- coding: utf-8 -*- import cssmin import glob import jsmin import os from config import config assets = {} assets_dir = os.path.join(config.path, "asset") for asset, function, separator in [("css", cssmin.cssmin, ""), ("js", jsmin.jsmin, ";")]: asset_dir = os.path.join(assets_dir, asset) ...
a6c00c649c8adf9f2fd19814f9961b8051ffa0c4
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/dccf58efe393b6912faf2e89cf7e87942e28273e-<_connect>-fix.py
166d99bac0993991bbe9ef5d461007d89ccd7f3a
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
def _connect(self): if (not HAS_WINRM): raise AnsibleError(('winrm or requests is not installed: %s' % to_text(WINRM_IMPORT_ERR))) elif (not HAS_XMLTODICT): raise AnsibleError(('xmltodict is not installed: %s' % to_text(XMLTODICT_IMPORT_ERR))) super(Connection, self)._connect() if (not s...
448bcd261807fa05a45781f836527a3b1d6f27f8
8d2e5b5ea408579faa699c09bdbea39e864cdee1
/ufora/util/ThreadSafeDict.py
75509f50e6a673f9c5cf633da81f7f424242c589
[ "dtoa", "MIT", "BSD-3-Clause", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
iantuioti/ufora
2218ef4c7e33c171268ce11458e9335be7421943
04db96ab049b8499d6d6526445f4f9857f1b6c7e
refs/heads/master
2021-01-17T17:08:39.228987
2017-01-30T16:00:45
2017-01-30T16:00:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,955
py
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
e4cb407440b02134b7fb10f738ba19ed0698aa2f
786de89be635eb21295070a6a3452f3a7fe6712c
/pyimgalgos/tags/V00-00-13/src/image_crop.py
3c24a7427ffe5f080f718d92b120ac8d33ba992e
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,994
py
#-------------------------------------------------------------------------- # File and Version Information: # $Id$ # # Description: # Pyana/psana user analysis module image_crop... # #------------------------------------------------------------------------ """User analysis module for pyana and psana frameworks. Thi...
[ "[email protected]@b967ad99-d558-0410-b138-e0f6c56caec7" ]
[email protected]@b967ad99-d558-0410-b138-e0f6c56caec7
7fef47453d50a19daade3ccb1cac7c5cf2db9935
3f6c16ea158a8fb4318b8f069156f1c8d5cff576
/.PyCharm2019.1/system/python_stubs/-1317042838/_codecs.py
19d1dd99bb98e64143e5afef560b11128f7229a6
[]
no_license
sarthak-patidar/dotfiles
08494170d2c0fedc0bbe719cc7c60263ce6fd095
b62cd46f3491fd3f50c704f0255730af682d1f80
refs/heads/master
2020-06-28T23:42:17.236273
2019-10-01T13:56:27
2019-10-01T13:56:27
200,369,900
0
0
null
2019-08-03T12:56:33
2019-08-03T11:53:29
Shell
UTF-8
Python
false
false
8,128
py
# encoding: utf-8 # module _codecs # from (built-in) # by generator 1.147 # no doc # no imports # functions def ascii_decode(*args, **kwargs): # real signature unknown pass def ascii_encode(*args, **kwargs): # real signature unknown pass def charmap_build(*args, **kwargs): # real signature unknown pass ...
419ece67d00ba37f7460c57ca43884e4ca9e0b2f
dafd25bce1c1fe6c667119e7a541b3cdb44b6181
/youtube_tranding/auto.py
454beae653fc6832b41abb2c345f1805d9012b0e
[]
no_license
armannurhidayat/python_scraper
23fd84dfb7263b7e23a96bb72ee8b7ce68cb52df
5b0b56247e753f190a9dfdd0bbc150f84d1609f9
refs/heads/master
2023-02-05T00:00:48.380383
2020-12-27T02:28:29
2020-12-27T02:28:29
250,330,177
1
1
null
null
null
null
UTF-8
Python
false
false
1,010
py
import mysql.connector from selenium import webdriver from selenium.webdriver.chrome.options import Options import time config = { 'user' : 'root', 'password': 'root', 'host' : 'localhost', 'port' : 8889, 'database': 'yt_trending', 'raise_on_warnings': True } url = 'https://www.youtube.com/feed/t...
de900b93a39989817a16977f10cddadf7b234e32
06292f96cba132ca57777672a447cfff7c5abee6
/Asm1/ThamKhao/testPhuc/ParserSuite.py
940fca2dcbd72c810ca6309115c038b9b10115ef
[]
no_license
kietteik/ppl
1746440b12affe71e67d6f958922b32b1fdaab5c
2ee60582e81595b8d8b5d0f8212d20151cfe9264
refs/heads/master
2023-03-01T00:24:36.969189
2021-01-31T05:15:13
2021-01-31T05:15:13
305,802,556
0
0
null
null
null
null
UTF-8
Python
false
false
4,965
py
import unittest from TestUtils import TestParser class ParserSuite(unittest.TestCase): def test_var_dec_1(self): input = """Var: a = 5;""" expect = "successful" self.assertTrue(TestParser.checkParser(input,expect,201)) def test_var_dec_2(self): input = """Var: ;""" expec...
7c7c20cdfdc1ad53c73c20ab931e5efcff7528aa
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/15174011.py
d436adf8e9635a383cb4126186976d45e43be6ef
[]
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
774
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/15174011.py generated: Fri, 27 Mar 2015 16:10:06 # # Event Type: 15174011 # # ASCII decay Descriptor: [Lambda_b0 -> D+(-> K- pi+ pi+) mu-]cc # from Configurables import Generation Generation().EventType = 15174011 Generation().SampleGenerationTool = "Sign...
6dae49d404619d13917ca5e5dd08fa811d287aad
37db56765276c0835a2c7e3955c412ce204836c1
/241.py
19a44d3fb46bd049d5ae60b83250f8d7f974f167
[]
no_license
supperllx/LeetCode
9d0a3a7258d1cff6afa6e77f61a2e697834914ca
df3a589ea858218f689fe315d134adc957c3debd
refs/heads/master
2023-05-01T06:57:17.403568
2021-05-19T18:29:25
2021-05-19T18:34:03
288,351,041
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
class Solution: @functools.cache def diffWaysToCompute(self, input: str) -> List[int]: if input.isnumeric(): return [int(input)] else: ops = {'+': operator.add, '-': operator.sub, '*': operator.mul} res = [] indexes = [] for i, ch in en...
ab05aff12541f245de8fe7bd4437943a46a928ec
77166c6ed9b872fa69b454d3682f63527f5f3951
/tests/unit2/test_load_textures.py
9f74bd64ebe79c8225596d0f8f2a84e1267ace5a
[ "MIT" ]
permissive
biggzlar/arcade
d72d936f3c244a9d5173b6f36bca3ede3382a0ae
fc444db356452660ac6cb2ffe241f0b1a3d4bcf3
refs/heads/master
2020-12-14T06:30:18.997456
2020-01-18T04:44:03
2020-01-18T04:44:03
234,668,560
1
0
NOASSERTION
2020-01-18T02:07:41
2020-01-18T02:07:40
null
UTF-8
Python
false
false
4,737
py
import os import arcade SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 LINE_HEIGHT = 20 CHARACTER_SCALING = 0.5 COIN_SCALE = 0.25 class MyTestWindow(arcade.Window): def __init__(self, width, height, title): super().__init__(width, height, title) file_path = os.path.dirname(os.path.abspath(__file__)) ...
ca40a4e3bed0d8bd97234170a3f8ec82dfa77d02
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/14_Code_Quality/04_mocking/example_2/test_calculator.py
773fb6d377820f066c3352f19151f1de0c8dade3
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
from unittest import TestCase from main import Calculator class TestCalculator(TestCase): def setUp(self): self.calc = Calculator() def test_sum(self): answer = self.calc.sum(2, 4) self.assertEqual(answer, 6)
1965d29d375c6499f282d0e556160f23324bf4c5
bec623f2fab5bafc95eb5bd95e7527e06f6eeafe
/django-gc-shared/visitor_analytics/migrations/0001_initial.py
8f99c744d9c12c4a97d23a04880458deedb220fe
[]
no_license
riyanhax/a-demo
d714735a8b59eceeb9cd59f788a008bfb4861790
302324dccc135f55d92fb705c58314c55fed22aa
refs/heads/master
2022-01-21T07:24:56.468973
2017-10-12T13:48:55
2017-10-12T13:48:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,255
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
[ "ibalyko@ubuntu-server-16-04" ]
ibalyko@ubuntu-server-16-04
c51fe65b0eea696958298037853329c6a2320d97
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/62/usersdata/172/29550/submittedfiles/ex1.py
c6a1b4c62ab0c54ae5cb58541624113d1e9cb84a
[]
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
194
py
# -*- coding: utf-8 -*- from __future__ import division a = float(input('Digite a: ')) b = float(input('Digite b: ')) c = float(input('Digite c: ')) #COMECE A PARTIR DAQUI! d=b*b-4(a*c) print(d)
7d24a6875659d927451451cfe5c01e242aee20e7
417ab6024a95e97b4d2236c67e28d00e6d1defc0
/python/fetch/mayi01/img.py
589afd6265b67e6b4c17fef51b293b349378b05d
[]
no_license
zeus911/myconf
11139069948f7c46f760ca0a8f1bd84df5ec4275
6dc7a6761ab820d6e97a33a55a8963f7835dbf34
refs/heads/master
2020-04-18T02:16:09.560219
2019-01-22T18:15:08
2019-01-22T18:15:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,826
py
#!/usr/bin python # -*- coding: utf-8 -*- import datetime import threading from common import common from baseparse import * from common import db_ops from common.envmod import * from common import dateutil from fetch.profile import * global baseurl class ImgParse(BaseParse): def __init__(self): threadin...
54a4f16e087a850dd1d3dd642d82d5f350eae00e
de28d64694919a861760fa8db8ff5ff781c9e4e3
/wild_card_matching.py
653f701bd6d307a858b2dc5d5dc736c7214b34a3
[]
no_license
pramitsawant/interview_prep_python
2202ac6bd7574316885f6067a8c6ac98fc5e88af
7a3dad53b954f874995bafdbfd5677959f8b8de7
refs/heads/master
2020-09-25T06:34:26.903728
2016-12-12T13:59:46
2016-12-12T13:59:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
# coding=utf-8 ''' '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching should cover the entire input string (not partial). The function prototype should be: bool isMatch(const char *s, const char *p) Some examples: isMatch("aa","a") → false isMatch("a...
8f4bb724abec5c2be28133f11fadc5f0306fc94f
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/fv/from.py
59ac01b9a307e3cca82f10539aba98acaab784ca
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
7,246
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
d3920561c0ee2d24d702c2e5d3ce5eb4d555dbd3
b94ab99f9c1f8bbb99afd23e1bfcd2332060b4bd
/run.py
4e3d7e4f1400e503e81bde7fd29bd036b083e6d3
[]
no_license
georgecai904/bookshelf
e54ccae00d4ee48e91ca1564a425ba4586b52d93
0002207dc8ca586ce1127d3ea98bb53102d043df
refs/heads/master
2021-01-02T22:52:26.046535
2017-08-05T15:32:13
2017-08-05T15:32:13
99,409,971
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
import time def run_bash_command(command): import subprocess process = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stdin=subprocess.PIPE) print(process.communicate()) while True: run_bash_command("python manage.py runcrons") time.sleep(60)
c9ea21dbe986fc835e4e862c46e843454f7a3906
1c78b144662c5d0473e53ff5622e6cbf8c593ef9
/nba_matchup/yfs.py
6f89a3e678a6563409b64ce31519d6b5e36ce0aa
[ "MIT" ]
permissive
sharadmv/nba-fantasy-optimize
fe1eb45df26a8c23b47de1ff5ad98ada877dfd77
81fdfa78fce4ce356220c91a1063a6efcfa4ff02
refs/heads/master
2022-12-13T10:34:51.756539
2021-11-23T05:54:12
2021-11-23T05:54:12
168,676,401
4
0
MIT
2022-12-08T01:44:37
2019-02-01T09:48:53
Python
UTF-8
Python
false
false
774
py
from yaspin import yaspin import datetime from yahoo_oauth import OAuth2 from fantasy_sport import FantasySport __all__ = ['yfs', 'LEAGUE_KEY', 'CURRENT_WEEK', 'START_DATE'] LEAGUE_KEY = "nba.l.64384" oauth = OAuth2(None, None, from_file='oauth.json', base_url='https://fantasysports.yahooapis.com/fantasy/v2/') yfs =...
5c48e7effb0eb65a92e95ec6ab09a44a7f7f028d
192dec1ea734fd67a3c3720228826cf754b2da5a
/valeo/vr/models.py
a1a86f3d91add9b73c1e35fc55c2fc8182a5293b
[]
no_license
fafaschiavo/cpi_valeo
a4df4e64161e58e44ade276f0b6284abfb5af6d2
777ef6173bbc4bf5941098cb2ea3b13fccf490c1
refs/heads/master
2020-04-06T04:14:59.226013
2017-05-02T22:39:00
2017-05-02T22:39:00
82,980,893
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
from __future__ import unicode_literals from django.db import models # Create your models here. class joystick(models.Model): joystick_data = models.CharField(max_length=200) angle = models.IntegerField(default=90) pedal = models.FloatField(default=0) left_buttons = models.IntegerField(default=0) ...
f6dba0a7e196a8718ed2fb1a7978fd42953ee6e8
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_322/ch30_2019_03_26_18_43_32_991323.py
901b0a5a75d9547c3b7aa65aa4eecdd7ec4a9796
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
import math velocidade = int(input("Qual a velocidade?:")) angulo = int(input("Qual o angulo?:")) distancia = (((velocidade ** 2) * (math.sin(2 * math.radians( angulo))))) / (9.8) if distancia >= 98 and distancia <= 102 print('Acertou!') if distancia < 98: print('Muito perto') if distancia > 102: print('Muito...
e8fedba445c7d316d56ebdb5ed0292e721f568e9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/162/61510/submittedfiles/testes.py
fdf544d79486196cce5adcbccad32091483213bf
[]
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
925
py
import numpy as np def menorlinha(a): for i in range(0,a.shape[0],1): for j in range(0,a.shape[1],1): if a[i,j]==1: return(i) def menorcoluna(a): for j in range(0,a.shape[1],1): for i in range(0,a.shape[0],1): if a[i,j]==1: return(j) def ma...
f97d1a8d1a8a7dc659883a5b5bc249e619f17c03
f1c071430a352ef82a4e7b902d6081851e5d569a
/neuronunit/capabilities/channel.py
87c52e19babe3b1c5dbc25efe5553022cee45991
[]
no_license
rgerkin/neuronunit
b1e5aeadc03c0be3507b0182ae81c89371c5f899
85330f1c4e4206b347d5a5e7792d41536ae71a0a
refs/heads/master
2021-01-17T05:41:06.109463
2015-10-23T22:22:30
2015-10-23T22:22:30
8,037,496
2
1
null
2015-06-25T15:32:01
2013-02-05T20:37:39
Python
UTF-8
Python
false
false
1,382
py
"""Channel capabilities""" import inspect import sciunit class NML2_Channel_Runnable(sciunit.Capability): """Capability for models that can be run using functions available in pyNeuroML.analsysi.NML2ChannelAnalysis""" def NML2_channel_run(self,**run_params): return NotImplementedError("%s not implemen...
e7391ef71192ed06e3c4ff224131362673034076
2b4badbedab24ed4376ab65818d0e59af6539144
/messcode/mail_first.py
5e2d1b63c30dd456564b90b3732846639eeebee1
[]
no_license
matthewangbin/Python
878d8180d12d235f8d238574414bb41edad5ceee
c9a94b4203380a06364da1f7466aafc4b141d951
refs/heads/master
2021-10-11T01:45:22.890144
2019-01-21T02:44:25
2019-01-21T02:44:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,071
py
# -*- coding: utf-8 -*- # @Time : 2017/12/25 21:55 # @Author : Matthew # @Site : # @File : mail_first.py # @Software: PyCharm from email import encoders from email.header import Header from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib def _format_addr(s): ...
87cc4210ce4c5b742377c17cba6924f894a19b86
c1ba3127b3526aba8b9bf25fddd172020a8858a8
/easy/array/max_product_of_3_numbers/max_product_of_3_numbers.py
92170a0b39e7a4c064842c5fbae87866cdf17d9c
[ "MIT" ]
permissive
deepshig/leetcode-solutions
f5c627215e79323dba3bb6d4005e35e33f31c858
1e99e0852b8329bf699eb149e7dfe312f82144bc
refs/heads/master
2022-11-30T20:50:02.007164
2020-08-06T19:21:02
2020-08-06T19:21:02
279,260,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
class Solution(object): def maximumProduct(self, nums): """ :type nums: List[int] :rtype: int """ first_min, second_min = float("inf"), float("inf") first_max, second_max, third_max = - \ float("inf"), -float("inf"), -float("inf") for n in nums: ...
fdf0aba38c57fae8c11e4e5cdb741c8e4a0951be
743ad4ed116b838da917f105909d9e84e10a4b31
/day06/ResponseAndRequest/ResponseAndRequest/spiders/myspider.py
7568ce3d3f4c4f39a6c46469c61ae47cf2fc81a5
[]
no_license
heiyouyou/Scrapy
62bb90638a8d6ee1aa62dcf525463c6b0a6a46e6
afa74f885d30ae3486b1da52dc90d0b7118f4dc1
refs/heads/master
2021-09-07T12:44:11.063627
2018-02-23T03:05:39
2018-02-23T03:05:39
113,541,279
0
1
null
null
null
null
UTF-8
Python
false
false
196
py
import scrapy class MySpider(scrapy.Spider): name = 'myspider' start_urls = ['http://example.com'] def parse(self,response): print('Existing settings: %s' % self.settings.attributes.keys())
6f0728d8e2f5aeeb689a2bb3c96ffab2ed3f3d84
3d154d9b3fe7487356d155c23d2b3541dacae1c1
/dao/userhelper.py
dc1d343b7a1cb51c8d4dcdd22c7e3441947cccc7
[]
no_license
igortereshchenko/python_oracle_orm_service
ef847fff7d0762813edf64f54235f471cdccd62f
d824fa0f01b2fdcc92b053ea942bb382266a0b43
refs/heads/master
2020-05-23T12:06:54.729982
2019-05-16T19:12:05
2019-05-16T19:12:05
186,751,346
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
from dao.db import OracleDb import cx_Oracle class UserHelper: def __init__(self): self.db = OracleDb() def getSkillData(self, skill_name=None): if skill_name: skill_name="'{0}'".format(skill_name) else: skill_name='null' query = "select * from table...
cc7e03607b31f4438fef4e654117ffd8353d2dc4
58afefdde86346760bea40690b1675c6639c8b84
/leetcode/minimum-initial-energy-to-finish-tasks/422867377.py
4ecf5f68fe76384049941bdc723c184406bd6d20
[]
no_license
ausaki/data_structures_and_algorithms
aaa563f713cbab3c34a9465039d52b853f95548e
4f5f5124534bd4423356a5f5572b8a39b7828d80
refs/heads/master
2021-06-21T10:44:44.549601
2021-04-06T11:30:21
2021-04-06T11:30:21
201,942,771
1
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
# title: minimum-initial-energy-to-finish-tasks # detail: https://leetcode.com/submissions/detail/422867377/ # datetime: Sun Nov 22 14:20:04 2020 # runtime: 1260 ms # memory: 59.4 MB class Solution: def minimumEffort(self, tasks: List[List[int]]) -> int: ''' 假设T是tasks列表的最优排列,初始energy等于E,最后剩余的energy...
4085500854bc565a03cb7ed04cbd39c6bb4c3dca
b7255be7fc09f7fd8178b820c6ff3c69d7e4d750
/flask-api/python_go/pythonjs/runtime/go_builtins.py
52c0758a59fb24623525b8c7a61e7f2eaaca7eb8
[]
no_license
divyajyotiuk/go-asn-playground
e65bcd5474674005fb64567ec205b3b5f757e438
ee7fd0c57e86f84e045bbc888fb3c4f265bdb969
refs/heads/master
2021-02-05T02:09:02.338834
2020-04-13T10:40:31
2020-04-13T10:40:31
243,732,017
0
3
null
null
null
null
UTF-8
Python
false
false
1,434
py
# PythonJS Go builtins # by Brett Hartshorn - copyright 2014 # License: "New BSD" import strconv inline(""" type __object__ struct { __class__ string } type object interface{ getclassname() string } func (self __object__) getclassname() string { return self.__class__ } func ord(x string) int { r := []rune(x...
bd866540d8720bd5ec59b2b3bc0c4f34b4c1c817
4cf14ded3e404a9801f7fc1103d7a72019fecd0c
/alembic/unused_versions/b70252e34014_use_sqlitecompat_module.py
f581905adf8096ee4040a7550b77a921cd531c63
[]
no_license
elthran/RPG-Game
8315aac6b0b162e9233a901d5af5c018ca4bf9d1
6168d7938c72a5a0bb36ca40b96a2a7232021cb5
refs/heads/master
2018-09-23T14:51:27.111954
2018-06-12T18:28:02
2018-06-12T18:28:02
64,792,548
0
0
null
2018-06-12T18:32:20
2016-08-02T21:05:58
Python
UTF-8
Python
false
false
992
py
"""Use SQLiteCompat module to drop a column. Also first revision, yay! IMPORTANT!! Fancy method to drop a column when using SQLite. Yes, it it super long and stupidly complex. All it does is replicate: op.drop_column('forum', 'title') Revision ID: b70252e34014 Revises: Create Date: 2018-01-31 20:48:18.530044 """ f...
567b57a6d4840a4a37fbb66684b700fe4a6dd28f
74983098c5de53007bde6052a631845c781b5ba8
/hartmann6/hartmann6_54/hartmann6.py
bbbeab0123de21bfab6548b67e88e58a1eaed978
[]
no_license
numairmansur/Experiments
94ccdd60f4c2cf538fab41556ac72405656c9d77
592f39916461c7a9f7d400fa26f849043d1377ed
refs/heads/master
2021-04-29T12:39:16.845074
2017-02-15T07:36:47
2017-02-15T07:36:47
78,043,284
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
import numpy as np import sys import math import time import csv from hpolib.benchmarks.synthetic_functions import Hartmann6 from time import gmtime, strftime def main(job_id, params): print '!!! Entered Main !!!' print 'Anything printed here will end up in the output directory for job #:', str(job_id) print par...
1bf849a5f322986e8eb6180f2477adc70b8f1651
63b0fed007d152fe5e96640b844081c07ca20a11
/yukicoder/MMA Contest 016/f.py
8898f332475726cac9f98f6195e8c1c880d65675
[]
no_license
Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
S = input() N = len(S) alp = [[] for _ in range(26)] ans = 0 for i, v in enumerate(S): alp[ord(v)-65].append(i) for i in range(26): for j in range(1, len(alp[i])): idx = alp[i][j] tmp = j*(N-idx-1-(len(alp[i])-j-1)) ans += tmp print(ans)
dad7e56953388c605ffb3cee21d10c587cc1f059
3002ce1c3a5628386fe747c8f1733b2f482780b9
/tests/densities/test_posterior_gp_classification_ard.py
ce104a3bdc897f1397b9c19df1fb5cae0676e0e7
[]
no_license
exord/kernel_hmc
eb74f58d4c4a5a121f7383ba11dabfc1f1c95220
f74e9eafe5637c4c95af1823d629140ca3b4b909
refs/heads/master
2020-03-19T10:28:05.767470
2018-06-06T19:01:04
2018-06-06T19:01:04
136,373,212
0
0
null
2018-06-06T18:54:42
2018-06-06T18:54:42
null
UTF-8
Python
false
false
674
py
# depends on shogun, which might not be available from nose import SkipTest import numpy as np try: from kernel_hmc.densities.posterior_gp_classification_ard import GlassPosterior glass_available = True except ImportError: glass_available = False def test_glass_posterior_setup_execute(): if no...