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
efec59e8370e4f56814a2820c890bc9dc2fff0bd
659836ef3a9ac558538b016dbf4e128aa975ae7c
/backend/ingredient/migrations/0001_initial.py
4f51e388822ee86c8a34ae068419dd993474fd70
[]
no_license
zzerii/save_your_ingredients
fda1c769d158bca9dfd3c28ac9ff34ed7ae4e6a3
5ebde82255c1a6edf0c19d9032015d05c9d0abc9
refs/heads/master
2023-02-21T22:19:28.954594
2021-01-22T11:39:16
2021-01-22T11:39:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
# Generated by Django 3.1.3 on 2020-11-13 05:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ingredient', fields=[ ('id', models.AutoFie...
[ "jinsoo941010@naver.com" ]
jinsoo941010@naver.com
c97da6f4cbe2fab9d85310007193f7f9c0e31396
add74ecbd87c711f1e10898f87ffd31bb39cc5d6
/xcp2k/classes/_guess_vectors1.py
dc797ddfb00b810b4621cc8d73f069c7cf32de02
[]
no_license
superstar54/xcp2k
82071e29613ccf58fc14e684154bb9392d00458b
e8afae2ccb4b777ddd3731fe99f451b56d416a83
refs/heads/master
2021-11-11T21:17:30.292500
2021-11-06T06:31:20
2021-11-06T06:31:20
62,589,715
8
2
null
null
null
null
UTF-8
Python
false
false
688
py
from xcp2k.inputsection import InputSection from xcp2k.classes._each591 import _each591 class _guess_vectors1(InputSection): def __init__(self): InputSection.__init__(self) self.Section_parameters = None self.Add_last = None self.Common_iteration_levels = None self.Filename...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
6ea8d87f4043296a4cc62e53fd9effbbff89bc02
23307f8e889f232724756bb26b1def1f0ba3323b
/fairseq/tasks/translation.py
eb8f1152748737cafa5b8b528dcc64d926689108
[]
no_license
krisjeong/fairseq_data
9395cb574d91147c95b6f08eecd814e4cb2fdad8
f29e7dae3c2be3a908e795bfc952cc845b80280d
refs/heads/master
2023-07-12T22:21:22.349970
2021-08-18T06:20:11
2021-08-18T06:20:11
397,152,122
0
0
null
null
null
null
UTF-8
Python
false
false
18,421
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import json import logging import os from argparse import Namespace import numpy as np from fairseq import metri...
[ "krisjeong00@gmail.com" ]
krisjeong00@gmail.com
65b28ee3513376fdfc19b0ce3e8b4f8543856013
d737fa49e2a7af29bdbe5a892bce2bc7807a567c
/software/qt_examples/src/pyqt-official/webkit/formextractor/ui_formextractor.py
518bb9cef3ef753de6499455d980501f40903ab0
[ "GPL-3.0-only", "MIT", "CC-BY-NC-SA-4.0", "GPL-1.0-or-later" ]
permissive
TG-Techie/CASPER
ec47dfbfd6c3a668739ff4d707572e0b853518b4
2575d3d35e7dbbd7f78110864e659e582c6f3c2e
refs/heads/master
2020-12-19T12:43:53.825964
2020-01-23T17:24:04
2020-01-23T17:24:04
235,736,872
0
1
MIT
2020-01-23T17:09:19
2020-01-23T06:29:10
Python
UTF-8
Python
false
false
4,813
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'formextractor.ui' # # Created: Tue May 14 17:59:08 2013 # by: PyQt5 UI code generator 5.0-snapshot-b0831183bf83 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object):...
[ "TGTechie01@gmail.com" ]
TGTechie01@gmail.com
a151f15578260c6246fa532d91a39e1ae25d102d
f7bc9ff51518d11d0d21249e57cdbd7277091e18
/0x02-python-import_modules/2-args.py
7ed9bebdf1babd5e74b51714354869b8faf4b092
[]
no_license
veeteeran/holbertonschool-low_level_programming
578fd521de625e47406b9141920a531c0483f042
ff2f79942eb282ae485deda7d9598eda50723c3f
refs/heads/master
2020-12-29T04:41:46.509414
2020-12-27T14:49:57
2020-12-27T14:49:57
238,458,078
0
1
null
null
null
null
UTF-8
Python
false
false
379
py
#!/usr/bin/python3 if __name__ == "__main__": from sys import argv length = len(argv) if length == 1: print("{:d} arguments.".format(length - 1)) elif length == 2: print("{:d} argument:".format(length - 1)) else: print("{:d} arguments:".format(length - 1)) for i in rang...
[ "vietnamtran@gmail.com" ]
vietnamtran@gmail.com
25c20fdddfb3b6a9a8654381f8f2a0f5d7f1be1a
0e1cbcf4f05e6ddd498f6b334014106f5734bfa4
/backend/bin/elbadmin
ebaace8a1f684454e7e59b8e022e57f4975abdf8
[ "MIT" ]
permissive
rcmiskin10/mem_landing_page
33e9b448dcc2ff7de566044d6f81adf465f0c561
892e5f57a6359f39e4edd13de848cf4d0ec6344a
refs/heads/master
2020-04-01T00:04:35.525714
2018-10-12T02:12:58
2018-10-12T02:12:58
152,680,376
0
0
null
null
null
null
UTF-8
Python
false
false
9,721
#!/home/rcmiskin/Desktop/mem/backend/bin/python3 # Copyright (c) 2009 Chris Moyer http://coredumped.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # wit...
[ "rcmiskin@gmail.com" ]
rcmiskin@gmail.com
bdb8f13e9fbc077dbe3d7433f38846a7e81f3246
12abe02e205d3e8dabe78fb5a93ccca89e2c42c4
/otp/level/LevelSpec.py
921ec08b942508c5f2208dfbb93a095d690be079
[]
no_license
nate97/toontown-src-py3.0
55092b2973b76e6b6d566887f44c52822684394c
f76c515801ae08c40b264b48365211fd44b137eb
refs/heads/master
2022-07-07T05:23:22.071185
2022-06-22T16:36:10
2022-06-22T16:36:10
187,682,471
15
8
null
null
null
null
UTF-8
Python
false
false
15,137
py
from pandac import PandaModules as PM from direct.directnotify import DirectNotifyGlobal from direct.showbase.PythonUtil import list2dict, uniqueElements import string from . import LevelConstants import types import importlib if __dev__: import os class LevelSpec: notify = DirectNotifyGlobal.directNotify.newC...
[ "nathanielfuhr@gmail.com" ]
nathanielfuhr@gmail.com
6dd98b7831f5feee90d9df6b5301c0257eb2e665
b972faf032590c9722dc240c45fc60157d5a1bee
/(구현)주사위네개.py
a7b250ef8517e21ed6b5335a12dac1288a5381af
[]
no_license
kih1024/codingStudy
3a91b628bc301d1777d954595e93bf1f9246aca3
3e8a6fe86d3861613a85d3e75991f4bc7cd1e716
refs/heads/master
2022-12-09T04:58:55.264433
2020-09-22T07:29:44
2020-09-22T07:29:44
269,874,529
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
# https://www.acmicpc.net/problem/2484 def dice(): li = sorted(list(map(int, input().split()))) temp = set(li) if len(temp) == 1: return li[0] * 5000 + 50000 elif len(temp) == 2 and li[1] == li[2]: return li[1] * 1000 + 10000 elif len(temp) == 2 and li[1] != li[2]: return (li...
[ "rladlsgh654@naver.com" ]
rladlsgh654@naver.com
a8140ac64131df0e94f7c4b4e3daa8d4fbc87dbf
6d60ac89ee9c14bfc62342f7b33da3932f4eb564
/mini_build.py
8b0881434026fcc7a4ba9e7ec6986b0b8a269d1d
[ "MIT" ]
permissive
samuelcolvin/donkey-simple-old
dda5b3c41387231b755965fa982bbb4c845e24c1
765810076c01d3677819e4f5a03aefd05300fbda
refs/heads/master
2021-05-28T19:49:45.269978
2014-05-30T17:04:33
2014-05-30T17:04:33
14,808,774
1
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
from DonkeySimple.DS.download import download_libraries import os, re lib_static_dir = os.path.join('DonkeySimple', 'WebInterface', 'static', 'libs') libs_json_path = 'static_libraries.json' try: download_libraries(libs_json_path, lib_static_dir) except Exception, e: print 'ERROR: %s' % str(e) print 'Probl...
[ "s@muelcolvin.com" ]
s@muelcolvin.com
a40ab2dbce7300afcd86166710c810b3a538e662
f63c4eb29ce57319441f5469d1d049b63bc220de
/swu_cycle_variance/run909.py
93ff56deac66a626022dba5caebd6cc9b16e0c7d
[]
no_license
a-co/diversion_models
0237642153668b16035699e9e734ff0538568582
69eed2687b1cd2b48f5717d15919eccd24a0eabc
refs/heads/main
2023-05-02T19:04:26.333677
2020-06-18T20:50:18
2020-06-18T20:50:18
216,904,337
0
0
null
null
null
null
UTF-8
Python
false
false
4,241
py
SIMULATION = {'simulation': {'agent': [{'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'name': 'Source'}, {'lib': 'cycamore', 'name': 'Sink'}, {'lib': 'cy...
[ "acaldwel@wellesley.edu" ]
acaldwel@wellesley.edu
3b1d6dec03293efd9bdbed97ea34210432f2cbb3
228ebc9fb20f25dd3ed2a6959aac41fd31314e64
/schema/predict/instance/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_classification.py
aac9e2bc91fc75d16de26dfd01bb98512f260f25
[ "Apache-2.0" ]
permissive
orionnye/python-aiplatform
746e3df0c75025582af38223829faeb2656dc653
e3ea683bf754832340853a15bdb0a0662500a70f
refs/heads/main
2023-08-03T06:14:50.689185
2021-09-24T03:24:14
2021-09-24T03:24:14
410,091,957
1
0
Apache-2.0
2021-09-24T20:21:01
2021-09-24T20:21:00
null
UTF-8
Python
false
false
1,593
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
orionnye.noreply@github.com
93576199922965b76e6aae451eccce45bfffccf8
47175228ce25812549eb5203fc8b86b76fec6eb9
/API_scripts/dfp/dfp_python3/v201408/custom_targeting_service/update_custom_targeting_values.py
ff879dd7d5d7d8f3c1653d851a0c2fe2b2a727d5
[]
no_license
noelleli/documentation
c1efe9c2bdb169baa771e9c23d8f4e2683c2fe20
a375698b4cf0776d52d3a9d3c17d20143bd252e1
refs/heads/master
2021-01-10T05:41:30.648343
2016-02-13T05:46:31
2016-02-13T05:46:31
51,477,460
1
1
null
null
null
null
UTF-8
Python
false
false
2,604
py
#!/usr/bin/python # # Copyright 2014 Google 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 required b...
[ "noelle@makermedia.com" ]
noelle@makermedia.com
dc297c0b5e6036c2ea15e34e99425db785dd32f1
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2019_03_01/aio/operations/_operations.py
00d071f258156e1def7090b7a8e641437310f9b5
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
4,665
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
yunhaoling.noreply@github.com
4e68d6993b53a2ddd25f70df5669610a0df20cf0
952762035d7ffa7c46a2c7dc85063f08b1c4a975
/2019/23/intcode.py
be46113b6662b2f5f65c6203efea2182ca7f225a
[]
no_license
pjot/advent-of-code
c8a59df25b3c1afa0e14fd22139b9ac3b789ff4d
4b8b5c55c44dc8325caa2aeea7aa064a98738fd7
refs/heads/master
2023-03-10T20:22:44.724300
2023-03-04T21:01:02
2023-03-04T21:01:02
225,183,593
1
0
null
null
null
null
UTF-8
Python
false
false
3,708
py
def parse_file(filename): with open(filename) as f: code = f.readline() ints = code.split(',') program = [int(i) for i in ints] return program def parse_instruction(instruction): full_instruction = '{:05d}'.format(instruction) return ( instruction % 100, int...
[ "peter.bergstrom@trioptima.com" ]
peter.bergstrom@trioptima.com
3f263a2f1abc45d83649b00dfc604ebb900b4cbd
fa7deca280e1443d5ca79e9910f295a668be14b0
/compile.py
bc770262d10363c06f9b6fdd5e15420b7d681620
[ "Apache-2.0" ]
permissive
tomas-cliqz/ichnaea
e210ba419eb2a69553594e3dd4dba2c56c88753a
1e49cc694b1e9c850417ac093e81849b1886b19e
refs/heads/master
2021-01-12T20:00:27.455686
2016-01-27T14:00:22
2016-01-27T14:00:22
49,965,385
0
0
null
2016-01-19T16:17:23
2016-01-19T16:17:22
null
UTF-8
Python
false
false
1,686
py
""" This script is used as part of the "make release" command used as part of building an rpm of this entire virtualenv. The rpm building process compiles all *.py files found anywhere in the source tree, independent of whether or not these would actually be used. It finds some Python files which aren't meant for the ...
[ "hanno@hannosch.eu" ]
hanno@hannosch.eu
f745deca3f8bab4ea141b85d67a953beab121496
025fa245d4cbffdaa422287ed2f31c4d0442ee28
/orders/api/serializers.py
15a4a1cf958d28696d037af645fde921fd646007
[ "MIT" ]
permissive
elcolie/zero-to-deploy
01f346ca50b8ccb271faef23934abe6a487baca6
6191a33ef55af7c550c0e529a4e373bfe40bc014
refs/heads/master
2022-02-08T23:22:17.008555
2018-06-15T19:39:06
2018-06-15T19:39:06
137,083,690
0
0
MIT
2022-01-21T19:35:33
2018-06-12T14:28:01
Python
UTF-8
Python
false
false
1,228
py
from rest_framework import serializers from menus.models import Menu from order_items.api.serializers import ShortItemSerializer from order_items.models import OrderItem from orders.models import Order class OrderSerializer(serializers.ModelSerializer): url = serializers.HyperlinkedIdentityField(view_name='api:o...
[ "sarit@elcolie.com" ]
sarit@elcolie.com
fa003de4ee3de4e7bedcf10266cdb6a8c9a3f183
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02576/s945264148.py
c54a359be369f17e4f7c755d919335e3b79d3522
[]
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
81
py
n, x, t = map(int, input().split()) ans = t * (n//x) print(ans+t if n%x else ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
33d9a5f14e08e91b0a36cea7796270daf9f6d3fc
71f19c14de97846193972830fbc9a4ec972d0ca9
/website/management/commands/tweet_something.py
9c69a942adf0593825c1b90f2c1043deb803ba42
[]
no_license
wbt/govtrack.us-web
87790050aaba83ca6cca16e26ec796603317e7da
c94c0dfdc809ad506a54108802a2328cc26ca97d
refs/heads/master
2021-01-25T06:25:24.943845
2017-07-26T13:55:01
2017-07-26T13:55:01
93,572,164
0
0
null
2017-09-24T03:54:30
2017-06-06T23:15:59
Python
UTF-8
Python
false
false
7,400
py
#;encoding=utf8 from django.db.models import F from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.utils import timezone from django.template.defaultfilters import truncatechars from collections import defaultdict import json, os, sys from datetime import time...
[ "jt@occams.info" ]
jt@occams.info
4a34314cf3ab3799f0e9db22f7bf9934c45a1f33
d0ff9af885dc01de43ae7bdd2d26d6370c7b7ab5
/unsup_vvs/neural_fit/brainscore_mask/compute_rdms_from_activations.py
6d62b4160899f47a41da16e2251033e1f396d3d0
[]
no_license
augix/unsup_vvs
a09f89c7d002006f59ffbe223c9469e959949e04
168ed0d068d27b7a7ca1dd5c1ebc28fbe84f8c7c
refs/heads/master
2023-07-17T05:55:27.630844
2021-06-24T01:27:28
2021-06-24T01:27:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,860
py
import pickle import argparse import os import sys import pdb from tqdm import tqdm import numpy as np RESULT_CACHING_DIR = '/mnt/fs4/chengxuz/v4it_temp_results/.result_caching' DEFAULT_SAVE_DIR = os.path.join(RESULT_CACHING_DIR, 'computed_rdms') ACTIVATION_DIR = os.path.join( RESULT_CACHING_DIR, 'model...
[ "chengxuz@node07-ccncluster.stanford.edu" ]
chengxuz@node07-ccncluster.stanford.edu
8a31fb2658e068c346166523f70684bc6035c3fc
410f0d66049ca881dfdeb9b7f784bd70b1c3f6e7
/bootea/bootea/pipelines.py
1bcd7524443c973b2ed7217b2a7ddcccda6d3f42
[]
no_license
ans2human/Scrappers
1bdf5a1a4a34752c58fb18d45ac01e3cb54b5fe1
cb2183d25a8af08284f2a6c1311b8da24c720b96
refs/heads/master
2020-03-19T20:41:01.244911
2018-06-11T11:27:17
2018-06-11T11:27:17
136,911,832
0
0
null
null
null
null
UTF-8
Python
false
false
2,934
py
from scrapy import log from twisted.enterprise import adbapi import time import sys; sys.path.append("/users/user/appdata/local/programs/python/python36-32/lib/site-packages") import MySQLdb.cursors from bootea.items import test class MySQLStorePipeline(object): def __init__(self): print ('init') s...
[ "ans2human@gmail.com" ]
ans2human@gmail.com
ecbbe380ee06e59502cd568e0d8911e8ee387e8b
ef72a7df3c39c215dd90ac5e72b164eb9d7da892
/rpg/heroes/exp.py
8580678d1bd1cda8e1e24f9779c8fce251493dcc
[]
no_license
thebmo/messing_around
d49a87fc1ff722428ea67bc710ca99ad287098bd
4cb12e0b224cf7d1f93cb4ae6ff7603619fb7aa9
refs/heads/master
2021-01-13T02:18:50.799898
2015-04-08T01:12:41
2015-04-08T01:12:41
28,570,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
exp_to_next_level = [ 0, 29, 87, 174, 304, 499, 792, 1232, 1891, 2880, 4364, 6218, 8534, 11428, 15045, 19114, 23690, 28837, 34627, 41141, 48468, 56711, 65983, 76413, 88147, 101347, 116196, 132901, 151694,...
[ "bmosier@gmail.com" ]
bmosier@gmail.com
3c415b6254a6a1dfd67e5c564bbeeab602bbbac5
c3432a248c8a7a43425c0fe1691557c0936ab380
/Greedy/1744_수묶기*.py
cb76fdcd5d14a3364ec30819632212850e7c8292
[]
no_license
Parkyunhwan/BaekJoon
13cb3af1f45212d7c418ecc4b927f42615b14a74
9a882c568f991c9fed3df45277f091626fcc2c94
refs/heads/master
2022-12-24T21:47:47.052967
2022-12-20T16:16:59
2022-12-20T16:16:59
232,264,447
3
0
null
null
null
null
UTF-8
Python
false
false
670
py
import heapq n = int(input()) sm = 0 plus = [] minus = [] zero = 0 one = 0 for _ in range(n): val = int(input()) if val == 1: one += 1 elif val > 0: heapq.heappush(plus, -val) elif val == 0: zero += 1 else: heapq.heappush(minus, val) if len(plus) % 2: heapq.hea...
[ "pyh8618@gmail.com" ]
pyh8618@gmail.com
3042f2d03444d4ec8ed65c9bcad199f8c3f11f73
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2536/60761/235389.py
3dece7a79508610db4ccd9b65cff8208cc2b29f7
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
412
py
airlines=input("") airlines=list(map(str,airlines[2:-2].split("],["))) result=[] result.append("JFK") i=0 while(0<len(airlines)): destination=[] for airline in airlines: if(airline.startswith('"'+result[i])): destination.append(airline[7:-1]) destination.sort() airlines.remove('"'+re...
[ "1069583789@qq.com" ]
1069583789@qq.com
047f80690a5099e9f1505b2dd7da347d7bd2adc1
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/378/Solution.py
2933a83513c07b54670ecbf4838330642d1675d9
[]
no_license
zhangruochi/leetcode
6f739fde222c298bae1c68236d980bd29c33b1c6
cefa2f08667de4d2973274de3ff29a31a7d25eda
refs/heads/master
2022-07-16T23:40:20.458105
2022-06-02T18:25:35
2022-06-02T18:25:35
78,989,941
14
6
null
null
null
null
UTF-8
Python
false
false
2,165
py
""" Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth distinct element. Example: matrix = [ [ 1, 5, 9], [10, 11, 13], [12, 13, 15] ], k = 8, return 1...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
cabf56396409a2b8bbe2bba525dd0a4347f411d5
4af8e73d47535494a25e06d5ac693fdc60fc95f5
/NLP_pytorch/04_pytorch_ignite/main.py
3c143464dd83f6b08e51033562e87b446747ba97
[]
no_license
woosa7/nbcc_projects
4de2f846068bacdc73a6877d26dba93c483b1be3
0e7a30f58e554125d02451ab407f2a19c8c7b5f4
refs/heads/main
2023-06-16T16:19:51.975216
2021-07-16T05:18:53
2021-07-16T05:18:53
306,594,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
import argparse import torch import torch.nn as nn import torch.optim as optim from model import ImageClassifier from trainer import Trainer from data_loader import get_loaders def define_argparser(): p = argparse.ArgumentParser() p.add_argument('--model_fn', required=True) p.add_argument('--gpu_id', ty...
[ "woosa7@gmail.com" ]
woosa7@gmail.com
71a26a87ecee866c893700324d40a1a2572e4a99
6eb58e32b469c37428185ab4456184905a5b4fb5
/analysis_code/parse_ICD.py
c9e4102115862dbdf62d0a5bc4cdcd1bf75b3e03
[]
no_license
rchenmit/mht_analysis
0b8bfff7730df835975c7c41d65f007ad269e3a9
678d4419bdaed9ed9d0041df3a2cd8638074590f
refs/heads/master
2020-04-06T03:40:41.577209
2015-01-12T00:14:48
2015-01-12T00:14:48
19,548,658
1
0
null
null
null
null
UTF-8
Python
false
false
4,113
py
## Robert Chen ## Monday 5/12/2014 ## ## read and process BMI file ## ## import datetime as dt import scipy as s ## options input_folder = '../../data/new_data_20140416/Data_20140409/' output_dir = '../../data/new_data_20140416/Data_curated_RC/' pickle_dir = '../analysis_output/pickle/' bool_make_count_matrix_ALL = 0...
[ "robchen401@gmail.com" ]
robchen401@gmail.com
581ff3c3ff8eac75bf2c32be001fe3da752ff030
87bbeac699af7fa4dc76592acecef52dead1f436
/Adelphi Academic Calendar/skill/skill_env/Lib/site-packages/docutils/parsers/rst/languages/it.py
ad6085c6d6d78353bca04e8d50786cae5b9e5628
[ "MIT", "OpenSSL", "bzip2-1.0.6", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "Python-2.0", "TCL", "LicenseRef-scancode-newlib-historical" ]
permissive
EnriqueGambra/Amazon-Alexa-Skill
79ec8848605a0e1e13092a1f6163dd63573322ec
198ed51bef555eee006041fef0bcbf5c955142d5
refs/heads/master
2022-12-02T01:01:48.419524
2019-10-23T21:45:49
2019-10-23T21:45:49
214,226,014
0
2
MIT
2022-11-27T06:15:00
2019-10-10T15:58:16
Python
UTF-8
Python
false
false
3,267
py
# $Id: it.py 7119 2011-09-02 13:00:23Z milde $ # Authors: Nicola Larosa <docutils@tekNico.net>; # Lele Gaifax <lele@seldati.it> # Copyright: This module has been placed in the public domain. # Beware: the italian translation of the reStructuredText documentation # at http://docit.bice.dyndns.org/static/ReST, ...
[ "gambra7@gmail.com" ]
gambra7@gmail.com
3ec541908b733c963a38d71f7f5949c8f8a7327d
465efab6e7b419d4493d09786a4b2d7a976f7a31
/src/Universe/LevelProps/Decorator.py
d036547a63ad9d0c74b8c3f991b1315b75e5aedb
[]
no_license
dzz/kthuune
aa2cadcdfaed9a06b6384516be429575640a7896
2a8be25ec5303586e5a7e067c024d6e6ca171efa
refs/heads/master
2021-01-24T07:42:41.426973
2018-07-29T06:21:34
2018-07-29T06:21:34
93,354,629
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
from Newfoundland.Object import Object from Beagle import API as BGL class Decorator(Object): textures = BGL.assets.get('KT-forest/animation/decorators') def parse(od,df): x1 = float(od["x"]) y1 = float(od["y"]) x2 = float(od["w"]) y2 = float(od["h"]) cx = (x1+x2) / ...
[ "devon.zachary@gmail.com" ]
devon.zachary@gmail.com
c618214707b9fb6a6ca9236d529434d841c267c9
50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7
/challenge17(backOnTime)/solutions/FelipeAg.py
87790a5c157315c30659f1835cb2ca4e79b5036b
[ "MIT" ]
permissive
banana-galaxy/challenges
792caa05e7b8aa10aad8e04369fc06aaf05ff398
8655c14828607535a677e2bb18689681ee6312fa
refs/heads/master
2022-12-26T23:58:12.660152
2020-10-06T13:38:04
2020-10-06T13:38:04
268,851,516
11
8
MIT
2020-09-22T21:21:30
2020-06-02T16:24:41
Python
UTF-8
Python
false
false
190
py
def solution(steps): if len(steps) > 10: return False elif steps.count('n') == steps.count('s') and steps.count('e') == steps.count('w'): return True return False
[ "cawasp@gmail.com" ]
cawasp@gmail.com
5b2207888d5917f774beaa8e83fa97856d693717
f6c69a7f7f1bbae5fd5473dfaac5ef5fad840d58
/lib/datatools/dataclass/datacatalog.py
61a0c4aa163e163193588df29a4266dfac7aa5a3
[ "Apache-2.0" ]
permissive
JokerWDL/PyAnomaly
8c5ca4ca705a1251c70ff1f36c908c8f6f75e7d8
cf93437e5d7ae87fa916141cf4b5cc2e929b8199
refs/heads/master
2022-11-05T11:31:42.345422
2020-06-22T17:21:20
2020-06-22T17:21:20
274,295,638
1
0
Apache-2.0
2020-06-23T03:04:32
2020-06-23T03:04:31
null
UTF-8
Python
false
false
2,336
py
''' Refer to the detectron2's DatasetCatalog ''' from typing import List class DatasetCatalog(object): """ A catalog that stores information about the datasets and how to obtain them. It contains a mapping from strings (which are names that identify a dataset, e.g. "coco_2014_train") to a f...
[ "446358161@qq.com" ]
446358161@qq.com
b5ead447cfefeb3618026a45f0fd21cea7995513
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/expensive/_internally_replaced_utils.py
8276fa0ab10c37bd4effe408fa3f5694ab102d26
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
2,197
py
""" Copyright 2020 The OneFlow Authors. 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 required by applicable law or agr...
[ "noreply@github.com" ]
Oneflow-Inc.noreply@github.com
f9f83f196d52a47793819cfbd6af460d5fdce595
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/storage/cases/test_KT1UCoFzRwpQhRg9BWz2QMNwzTud56fCdjSP_babylon.py
f8d8b822bf224b7b14e0e62f9d3dfc07c4a33180
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
1,170
py
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1UCoFzRwpQhRg9BWz2QMNwzTud56fCdjSP_babylon(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None ...
[ "mz@baking-bad.org" ]
mz@baking-bad.org
c5ff1437f0d351d49af69153cb81a3ca68b48a2c
f4475acdf01fa80ae3a638c19df30773cfd379dc
/listenclosely/admin.py
b7740fd874d120412af39807149d22c7247f7d97
[ "BSD-3-Clause" ]
permissive
jlmadurga/listenclosely
ea48e7ea05f971ca4fc979f5f52d5a07ec74dcbb
d6df9110c3ed6fd337e0236cccbe4d931bf217b0
refs/heads/master
2023-01-07T13:27:30.024214
2016-03-12T12:40:29
2016-03-12T12:40:29
49,677,476
7
3
BSD-3-Clause
2022-12-26T20:23:37
2016-01-14T21:49:08
Python
UTF-8
Python
false
false
203
py
from django.contrib import admin from listenclosely.models import Message, Chat, Agent, Asker admin.site.register(Message) admin.site.register(Chat) admin.site.register(Agent) admin.site.register(Asker)
[ "jlmadurga@gmail.com" ]
jlmadurga@gmail.com
c383989311b6a33537436038b4dedd0a24e43d79
658773cf775fd97c3cec3aca5f559500dec021bc
/controllers/asset.py
c93abf8e08e4c373f5688d022a96348e5dd4d844
[ "MIT" ]
permissive
smeissner/ifrc
f3795474219d20fba5c68192f5d9b90006288e3e
505eb6ffbb8fc32fdbbe63fdab4c19d87e53ca86
refs/heads/master
2021-01-18T10:43:55.847965
2012-10-07T22:43:15
2012-10-07T22:43:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,079
py
# -*- coding: utf-8 -*- """ Asset Management Functionality http://eden.sahanafoundation.org/wiki/BluePrint/Assets """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------...
[ "fran@aidiq.com" ]
fran@aidiq.com
f7cb7a5de948cd36e56b54eee4c79406be49b77a
dffd7156da8b71f4a743ec77d05c8ba031988508
/ac/abc109/abc109_b/11416688.py
a108bbb8ac35b9102f2c74dfe3e7b4513b27c333
[]
no_license
e1810/kyopro
a3a9a2ee63bc178dfa110788745a208dead37da6
15cf27d9ecc70cf6d82212ca0c788e327371b2dd
refs/heads/master
2021-11-10T16:53:23.246374
2021-02-06T16:29:09
2021-10-31T06:20:50
252,388,049
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
st = set() cant = False prev = "-" for i in range(int(input())): s = input() if (prev!="-" and prev!=s[0]) or s in st: cant = True prev = s[-1] st.add(s) print("YNeos"[cant::2])
[ "v.iceele1810@gmail.com" ]
v.iceele1810@gmail.com
72a7cb385ba562e3c44eeb5951a6ad27b05b8072
992f6a7436a9755d13bfbf0e3e0d98daa7541f1a
/coresite/views.py
3956a3f993453816a94d377858f59f39293cc9de
[ "MIT" ]
permissive
Klim314/argent_app
838c3f6b2d15666670ea1e90ac0c23bdc0df50aa
767a0a11646fc08fb7197a191348466c913fe360
refs/heads/master
2021-01-22T05:32:44.626421
2017-09-17T15:23:54
2017-09-17T15:23:54
102,282,161
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
from django.shortcuts import render, reverse, HttpResponseRedirect, HttpResponse from django.views import View from argent_app.models import Room, InRoom from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django....
[ "klim314@gmail.com" ]
klim314@gmail.com
4fe09e4033ab5248274e1eb4eca7d375acc4598d
b1ba5707a5cbe918d33bc2082b3eb4ff1378c060
/SDPython/tests/test_sd/test_package.py
21b1b208b6690f20449ad6c4d37e68781b3b36f3
[]
no_license
qq781217732/SubstanceDev
2eb1d9ed48d477cf70c7bfdac2103bb884e9204c
b9ffab0a1b8f3c01783259074940b2712a8142b8
refs/heads/master
2023-03-26T00:43:35.047305
2021-03-01T04:12:28
2021-03-01T04:12:28
342,539,111
0
0
null
null
null
null
UTF-8
Python
false
false
2,105
py
# ADOBE CONFIDENTIAL # # Copyright 2019 Adobe # All Rights Reserved. # # NOTICE: Adobe permits you to use, modify, and distribute this file in # accordance with the terms of the Adobe license agreement accompanying it. # If you have received this file from a source other than Adobe, # then your use, modification, or d...
[ "gaoyuyang@senseinn.com" ]
gaoyuyang@senseinn.com
e4944b1b43ee05a56b2e875b6344b52e18ed8f74
08ff71fec39604302c36d0a016147f0a57820765
/zentral/contrib/monolith/views.py
7d825ad49521e9bea382df96fe07f47f223e397b
[ "Apache-2.0" ]
permissive
secdragon/zentral
a20134cd5288b6689bfdd6528836e93229e48a03
a000fb314ba514488df49dcc3d2106001948ea3b
refs/heads/master
2020-03-25T11:11:50.871327
2018-07-09T06:52:10
2018-07-09T06:52:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
52,388
py
from itertools import chain import json import logging from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.core.urlresolvers import reverse_lazy from django.http import (FileResponse, Http404, ...
[ "eric.falconnier@112hz.com" ]
eric.falconnier@112hz.com
8e601ba9e0dbeb81f667938b4d361cda5ccc749d
1ff9adfdb9d559e6f81ed9470467bab25e93b5ab
/src/ta_lib/_vendor/tigerml/pyspark/eda/eda.py
6d6da84cea9ce373d66310101722a68fb7f8f2f8
[]
no_license
Seemant-tiger/housing-price-prediction
a39dbefcb11bc460edeeee92e6becf77d35ff3a8
be5d8cca769c7e267cfee1932eb82b70c2855bc1
refs/heads/main
2023-06-24T00:25:49.776720
2021-07-18T16:44:28
2021-07-18T16:44:28
387,222,852
0
0
null
null
null
null
UTF-8
Python
false
false
40,365
py
"""Functions to carry out the EDA in spark framework.""" import gc import logging # noqa from collections import Counter import holoviews as hv import matplotlib.pyplot as plt import numpy as np import pandas as pd from hvplot import hvPlot from pyspark.ml import Pipeline from pyspark.ml.feature import StringIndexer...
[ "seemantsingh1199@gmail.com" ]
seemantsingh1199@gmail.com
ed3353e5133a00ddd17176040ec7d8f1a619806c
1d7eec692553afc411ec1e7325634f71a2aed291
/backend/curriculum_tracking/management/project_wrangle_helpers.py
8c347fb6739812587fcbd8c3727942620ad8dd97
[]
no_license
Andy-Nkumane/Tilde
a41a2a65b3901b92263ae94d527de403f59a5caf
80de97edaf99f4831ca8cb989b93e3be5e09fdd6
refs/heads/develop
2023-05-09T10:02:41.240517
2021-05-28T09:20:51
2021-05-28T09:20:51
299,501,586
0
0
null
2020-10-25T22:37:30
2020-09-29T04:10:48
Python
UTF-8
Python
false
false
10,188
py
""" These helper functions were leveraged heavily in preparing the recruit projects for flavoursome cards. There were a lot of different messes to be cleaned up """ from taggit.models import Tag import csv from core.models import User, Team from curriculum_tracking.models import ( RecruitProject, ContentItem, ...
[ "sheena.oconnell@gmail.com" ]
sheena.oconnell@gmail.com
cc25b49cba139ab957706257cc9e9cdd5119b7a6
382c8cfb29f420297462d122c571995b62e10a6b
/temp.py
ab5d445e6bd49d2df01744e32851e61b3e05f170
[]
no_license
innovation-labs/Vader
c1a9592cc02f85cc5a28b3116fc41b35df5baf04
aa9091f90c41fe2b1ae6e488670bf89bcbbde5c9
refs/heads/master
2021-08-23T21:18:46.609875
2017-12-06T15:50:56
2017-12-06T15:50:56
103,031,449
0
0
null
2017-09-10T13:28:51
2017-09-10T13:28:50
null
UTF-8
Python
false
false
1,914
py
# from django.conf import settings from geoip2 import database from geoip2.errors import AddressNotFoundError from apps.warehouse.models import IPStore reader = database.Reader(settings.MAXMIND_CITY_DB) ips = ['99.248.9.54', '173.34.75.225', '70.54.130.204', '67.58.222.87', '70.55.50.230'...
[ "yousuf.jawwad@gmail.com" ]
yousuf.jawwad@gmail.com
1bff2ac0967e16eaba266de1b1749c487521c995
08778088da558a8bc79326754bb86f61c4cf082b
/eisitirio/database/waiting.py
5d06fb161572f0a5a5f73faf4ed6d38b4a5a6dad
[]
no_license
toastwaffle/Eisitirio
b5a7c48fc015857bfccdbe3f702e4c12c2e8277c
64ff15704b6b62d6ed385f7add59e7face88a95c
refs/heads/master
2020-05-24T15:51:12.023834
2019-09-12T19:09:23
2019-09-12T19:09:23
187,341,863
0
0
null
2019-05-18T09:59:35
2019-05-18T09:59:35
null
UTF-8
Python
false
false
954
py
# coding: utf-8 """Database model for entries on the waiting list.""" from __future__ import unicode_literals import datetime from eisitirio.database import db DB = db.DB class Waiting(DB.Model): """Model for entries on the waiting list.""" __tablename__ = "waiting" waiting_since = DB.Column(DB.Date...
[ "samuel.littley@toastwaffle.com" ]
samuel.littley@toastwaffle.com
7aba7f32ed96c5e577fdeed1ddb2f5bf167c0d91
0d32e3819606c3fb6820d0cd5f5097db3b0d3dd4
/HW3/q_learning_no_epsilon_decay_mountain_car.py
6afd1f1d11cfe24eb60909d28e8ea03a2aa4b912
[]
no_license
IanCBrown/COMP5600
e8e06b2a8e3bde0acc6897adb2396a57a2811f0a
ef454c009d6fd5eec50ceec5a8283a7c6d81d097
refs/heads/master
2020-08-02T13:20:41.024681
2019-12-09T03:53:37
2019-12-09T03:53:37
211,366,293
2
1
null
null
null
null
UTF-8
Python
false
false
6,059
py
import math import numpy as np import matplotlib matplotlib.use("TkAgg") from matplotlib import pyplot as plt import gym from gym import spaces from gym.utils import seeding # Resources: # https://en.wikipedia.org/wiki/Mountain_car_problem # https://towardsdatascience.com/getting-started-with-reinforcement-learning-...
[ "icb0004@auburn.edu" ]
icb0004@auburn.edu
04495c8e1849b8df9b7b60f749e3172809966b93
7e419f7046386c20b9a6ed121c377fbcc8ff6885
/mobject/region.py
d5ba70ff04615c627dc85bf3d0a85a9d4bddec0d
[]
no_license
ralusek/manim
47ebabb4d42accdda42a0da32ccdef6b129205b8
d53412d738e3b9d306b7d7d2ad39cac702ff3d18
refs/heads/master
2021-04-29T00:47:40.990006
2018-02-16T20:16:59
2018-02-16T20:16:59
121,837,012
1
0
null
2018-02-17T07:44:48
2018-02-17T07:44:47
null
UTF-8
Python
false
false
3,206
py
import numpy as np import itertools as it from PIL import Image from copy import deepcopy from mobject import Mobject from helpers import * #TODO, this whole class should be something vectorized. class Region(Mobject): CONFIG = { "display_mode" : "region" } def __init__(self, condition = (lambda ...
[ "grantsanderson7@gmail.com" ]
grantsanderson7@gmail.com
3d44285b7f4667f8c29bbb1bf7a019e76508ecb4
61673ab9a42f7151de7337608c442fa6247f13bb
/pillow/change-pixels-numpy-array-PixelAccess/main-PixelAccess.py
753aed3b65ccfc089b9e2661eb5527fc4b576b6e
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
449
py
#!/usr/bin/env python3 # date: 2019.09.29 # `PixelAccess` changes pixels in original `img` # so there is no need to convert it back to `Image` # BTW: Image uses [col,row] (array uses [row,col]) from PIL import Image img = Image.open('image.jpg') pixels = img.load() width, height = img.size for col in range(widt...
[ "furas@tlen.pl" ]
furas@tlen.pl
ad2df6b8a4b5b1a74f780a295c9eebfbadacb6db
131f9efacc5944e1f1f156b82ae0f59fe1d39dfa
/django_quickblocks/migrations/0002_auto__add_field_quickblocktype_has_rich_text__add_field_quickblocktype.py
752a8a7bd6459d2f40fd1660969c53e1f12a0d44
[]
no_license
nyaruka/django-quickblocks
fcaeb5c45c968c96e47f34ca7c641b674f2194f6
2ac419caff11dad1570f0a56b4576e5e40cfa758
refs/heads/master
2022-11-12T18:32:27.666397
2014-10-29T17:04:13
2014-10-29T17:04:13
1,535,809
6
4
null
2022-11-03T10:37:39
2011-03-28T08:47:23
JavaScript
UTF-8
Python
false
false
9,029
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'QuickBlockType.has_rich_text' db.add_column('django_quickblocks_quickblocktype', 'has_rich_t...
[ "nicpottier@gmail.com" ]
nicpottier@gmail.com
8af072ca10d2818422727df5fbd11c71012690ef
5da80918ac50156f351966f96e2131123222d483
/hack/coalesce.py
ddb07665af6933731c1eef0253ccadbd9605a08e
[ "Apache-2.0" ]
permissive
dinomiteX/cluster-api-provider-aws
43045e2c2d1836f1722795e5d4afeef2a3b407ea
bc4496ff9235a64f81dd9e6f2c97e368b6099431
refs/heads/master
2020-07-07T14:50:26.244166
2019-08-20T13:37:01
2019-08-20T13:37:01
203,380,287
0
0
Apache-2.0
2019-08-20T13:18:24
2019-08-20T13:18:23
null
UTF-8
Python
false
false
3,191
py
#!/usr/bin/env python # Copyright 2016 The Kubernetes 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 appli...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
92785644c971f51c1aff7d47c833a14c473328a3
dea5dfdc661309fa26fc93d4884fbcbb75e4d8a0
/Back_ground/control/classcontrol.py
be904879e1ec0441ee72a9fc24b89447004fa001
[ "Apache-2.0" ]
permissive
sherwel/Behavior_culture
0583ba061d7a2feba8f45c2b574005fcc76e4cfd
43b68e50aed369aacefc5435ec4f9b70960d2344
refs/heads/master
2021-01-10T03:47:20.328109
2016-02-29T04:42:49
2016-02-29T04:42:49
50,472,281
1
1
null
null
null
null
UTF-8
Python
false
false
7,199
py
#!/usr/bin/python #coding:utf-8 from tool import SQLTool ,config from Back_ground.model import takeclass,Class limitpage=15 localconfig=config.Config() def haveclassshow(schoolid='',classid='',teacherid='',page='0'): validresult=False request_params=[] values_params=[] if schoolid!='': reque...
[ "nanshihui@qq.com" ]
nanshihui@qq.com
6ef63b1370f15c96f0052bd21466bd3759df1805
8e939e0f075a14377d87e0eb7729e4f0818f1df9
/zarc/old/views_2017-05-20-19:22:30.py
6430fada935c77135158fdeceb7ba6caefb39194
[ "MIT" ]
permissive
mimcomp/caseke
072d076c9442c19916d8f71ec25fa45676031914
3c0749a431bb2e2c82bcb292d528c748bea8b1ba
refs/heads/master
2020-06-02T15:42:24.159728
2019-06-03T16:34:09
2019-06-03T16:34:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
54,958
py
# coding: utf-8 # AUTOGENERATED BY gen_script.sh from kpony3.py # Copyright (C) Nyimbi Odero, Sat May 20 19:21:41 EAT 2017 import calendar from flask import redirect, flash, url_for, Markup from flask import render_template from flask_appbuilder.models.sqla.interface import SQLAInterface from flask_appbuilder.view...
[ "nyimbi@gmail.com" ]
nyimbi@gmail.com
56922e0d19840031cf2fd989884a3f68c517958f
28c0bcb13917a277cc6c8f0a34e3bb40e992d9d4
/koku/api/resource_types/azure_regions/view.py
903367bda356e2193783aa57648a5dc9d0784689
[ "Apache-2.0" ]
permissive
luisfdez/koku
43a765f6ba96c2d3b2deda345573e1d97992e22f
2979f03fbdd1c20c3abc365a963a1282b426f321
refs/heads/main
2023-06-22T13:19:34.119984
2021-07-20T12:01:35
2021-07-20T12:01:35
387,807,027
0
1
Apache-2.0
2021-07-20T13:50:15
2021-07-20T13:50:14
null
UTF-8
Python
false
false
2,126
py
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """View for Azure Region locations.""" from django.db.models import F from django.utils.decorators import method_decorator from django.views.decorators.vary import vary_on_headers from rest_framework import filters from rest_framework import generi...
[ "noreply@github.com" ]
luisfdez.noreply@github.com
9602630702d42d0b11831605326a2ac95fab89e6
c04cacb72f04a478b1168fd1c99a7374e185332c
/gym_SnakeGame/envs/__init__.py
81e9d6fcc454c9d3816a7313a9d3328360fadb8a
[]
no_license
x2ever/Snake-Game
6f5dc17843b51ee1cfeadfce2593cd9cb13ac5ba
07d73b2b63b90091915fa9e1a8c3b9db879cc98e
refs/heads/master
2021-12-22T22:19:59.258420
2021-12-21T22:51:50
2021-12-21T22:51:50
225,833,456
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
from gym_SnakeGame.envs.SnakeGame import SnakeGameEnv
[ "x2ever@naver.com" ]
x2ever@naver.com
844a75a41f3d66405dd80d5bfc9004b0700ee34c
a479a5773fd5607f96c3b84fed57733fe39c3dbb
/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/use_multiple_paths/ebgp/state/__init__.py
bb2f3ba984ed9af5079bfaa77f8bc4d6cafda7c5
[ "Apache-2.0" ]
permissive
napalm-automation/napalm-yang
839c711e9294745534f5fbbe115e0100b645dbca
9148e015b086ebe311c07deb92e168ea36fd7771
refs/heads/develop
2021-01-11T07:17:20.226734
2019-05-15T08:43:03
2019-05-15T08:43:03
69,226,025
65
64
Apache-2.0
2019-05-15T08:43:24
2016-09-26T07:48:42
Python
UTF-8
Python
false
false
22,119
py
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
ef24ba60db7198ba0b519cb7a3e69990ba8cea61
87bb2b9258c887e8fbcaca08d18e5d95ae96462d
/Codewars/Python/6kyu/6kyu_Sort the odd.py
8cedc8b089fe3134f4a5c46a38957c62ca3278d3
[]
no_license
KonradMarzec1991/Codewars-LeetCode
a9e4d09f4271fecb3a7fc1ee436358ac1bbec5e4
442113532158f5a3ee7051a42e911afa5373bb5f
refs/heads/master
2023-04-21T17:04:37.434876
2021-05-11T21:47:14
2021-05-11T21:47:14
166,555,499
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
def sort_array(source_array): sorted_odds = sorted([d for d in source_array if d % 2 == 1]) startpoint = 0 for d in range(len(source_array)): if source_array[d] % 2 == 1: source_array[d] = sorted_odds[startpoint] startpoint += 1 return source_array
[ "konrimarzec@gmail.com" ]
konrimarzec@gmail.com
82519a5e2771413edc95e5dee8e2e066d793d518
e838076bc1c8aedbb8c77710b1a1a32efc3a4da1
/pc1/models.py
1e61f611c4a5dbf401dcd01d926e4bc857bb4b2f
[]
no_license
abbasgis/ferrp
5f2f7768f0e38e299498c2e74379311698b6321f
77736c33e7ec82b6adf247a1bf30ccbc4897f02e
refs/heads/master
2023-05-25T09:59:45.185025
2021-06-12T09:15:07
2021-06-12T09:15:07
376,236,936
0
0
null
null
null
null
UTF-8
Python
false
false
4,549
py
from django.db import models # Create your models here. class AdpDraft201718Vw(models.Model): gs_no = models.TextField(primary_key=True) # This field type is a guess. s_name = models.TextField(blank=True, null=True) # This field type is a guess. district = models.TextField(blank=True, null=True) # Thi...
[ "abbas123@abc" ]
abbas123@abc
ef1c013cd55b95725b787557e86769b4fd758760
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/cyphon/cyphon/alerts/migrations/0011_auto_20170815_1432.py
83a21b67e06bc5f594c3731289b36f09f4baa58f
[ "LicenseRef-scancode-proprietary-license", "GPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft", "MIT" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
621
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-08-15 18:32 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('alerts', '0010_remove_alert_tags'), ] operations =...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
1d9066b6f8c175153341870908a2697e4398d8bf
e0df2bc703d0d02423ea68cf0b8c8f8d22d5c163
/ScientificComputing/ch14/filter_equalizer.py
8d3830bd050cd0f33b823f8ec982a021af94ccdc
[]
no_license
socrates77-sh/learn
a5d459cb9847ba3b1bc4f9284ce35d4207d8aa8b
ae50978023f6b098b168b8cca82fba263af444aa
refs/heads/master
2022-12-16T16:53:50.231577
2019-07-13T13:52:42
2019-07-13T13:52:42
168,442,963
0
0
null
2022-12-08T05:18:37
2019-01-31T01:30:06
HTML
UTF-8
Python
false
false
860
py
# -*- coding: utf-8 -*- import scipy.signal as signal import pylab as pl import math import numpy as np def design_equalizer(freq, Q, gain, Fs): '''设计二次均衡滤波器的系数''' A = 10**(gain/40.0) w0 = 2*math.pi*freq/Fs alpha = math.sin(w0) / 2 / Q b0 = 1 + alpha * A b1 = -2*math.cos(w0) b2 = 1 - alp...
[ "zhwenrong@sina.com" ]
zhwenrong@sina.com
04dafde3bc7f94f93d9f00a64036a3aba00ae0e4
caf0ba85f1c7a2b7208e7f0acebb3c047b17b0ba
/4_py_libro_1_pydroid/venv/4_py_libro_1_pydroid/COLECCIONES/py_1_collecciones.py
f5b5a8874953870d8fbe5e698201b48134170b5f
[]
no_license
JAreina/python
12ca9bd5467420a813ac3f33b0adba6cd492f855
3b9ac8d37ab2abe70e34043857f96a76c19468c8
refs/heads/master
2020-03-22T07:57:31.675271
2018-09-12T06:38:49
2018-09-12T06:38:49
139,735,465
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
import collections c = collections # JAreina a = c.Counter([2,2,8,5,1,2,3,4,5,8]) print(a) b = 'en un lugar de la mancha' print( c.Counter(b)) d = ['a',"b",'c',"c",'z'] print(c.Counter(d)) print("\n ::::::::: update counter::::::::::::\n") e = c.Counter() print(e) e.update("hola hola") print(e) #JAreina e....
[ "jareinafdez@gmail.com" ]
jareinafdez@gmail.com
2f44a2a3e2304fa716d563c22a881c2c0fbf5ef7
257bd63361aa846ffdacdc15edaecf84c6364e78
/psou/pro1/pack3/class_ex9.py
b5fb7d6e7b2028d16e4b7c2b560541e4fb51073b
[]
no_license
gom4851/hcjeon
86dcfd05ce47a13d066f13fe187d6a63142fb9fe
59a00ca9499f30e50127bb16eb510553e88ace43
refs/heads/master
2020-06-04T23:16:08.632278
2019-01-15T09:54:08
2019-01-15T09:54:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,152
py
''' Created on 2018. 11. 8. 상속 ''' class Person: say = "난 사람이야~" nai = '20' __kor = 59 # 앞에 __ 해주면 private가 됨. def __init__(self, nai): print('Person 생성자') self.nai = nai def printInfo(self): print('나이:{}, 이야기:{}'.format(self.nai, self.say)) def h...
[ "wer104@naver.com" ]
wer104@naver.com
83b2690e40232cdd946af37e4e070b48b12eccf2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02379/s325687867.py
d01451aa8ad3582ccaf4aae8635f9f68db13f00f
[]
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
113
py
import math x1, y1, x2, y2 = map(float,input().split()) a = abs(x1-x2) b = abs(y1-y2) print(math.sqrt(a*a+b*b))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c4efff0966532f4a7d4d8ee3839194c7e641bf5c
91668f2d4404dd3d85b598b15b852d5a2eeeec6a
/setup.py
27912b3549aa77181a86318e03cafa84b6cf5e87
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
r-swilderd/mi-instrument
b4fd841f05e7c0522580b73f145c2a826ccf21d6
34b60925a01d6cf89db254fdc75566c59ccba144
refs/heads/master
2021-01-17T21:56:34.298829
2015-08-29T23:02:31
2015-08-29T23:02:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import os import sys # Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml) if sys.platform == 'darwin': os.environ['C_INCLU...
[ "petercable@gmail.com" ]
petercable@gmail.com
92f42f9f2b8c96f0d8e83bcaa79b8813312fbb2e
ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3
/controls/Control_Toolbox/steady_state_error.py
25f782973e80f3f0f6a329e2308fc7e37a7425c8
[]
no_license
cmontalvo251/Python
293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05
2b12ce043ee41e08537cfb62301c6a55d4661e04
refs/heads/master
2023-06-22T21:50:21.225067
2023-06-14T13:42:16
2023-06-14T13:42:16
229,313,158
8
3
null
2021-07-31T16:01:54
2019-12-20T18:03:52
Python
UTF-8
Python
false
false
1,015
py
###Integrate an ordinary differential equation #in MATLAB that's using the function ode45. #in Python we're going to use the Scipy toolbox and odeint import numpy as np import matplotlib.pyplot as plt import scipy.integrate as I import control as ctl import scipy.signal as S import scipy.linalg as slin plt.close("all"...
[ "cmontalvo251@gmail.com" ]
cmontalvo251@gmail.com
fdc34a5acdc9df05688e643c6e3939d0f1cfc1a2
ca7162adc548c5937ebedd6234b40de7294e2da1
/11-dababase/sqlite/createTable.py
b5b8058f153badef698c5a031aec4709f76832e6
[]
no_license
meloLeeAnthony/PythonLearn
03c259d745b1ccdc039e9999889ab54be14ae020
9915ec5bb7048712a97539a9c5bce8743567b22a
refs/heads/master
2023-07-10T21:12:54.027143
2021-08-19T12:43:19
2021-08-19T12:43:19
289,487,502
1
2
null
null
null
null
UTF-8
Python
false
false
908
py
# coding=utf-8 ''' 1.导入sqlite3模块 2.创建连接 sqlite3.connect() 3.创建游标对象 4.编写创建表的sql语句 5.执行sql 6.关闭连接 ''' import sqlite3 conn = None # 创建连接 try: conn = sqlite3.connect('e:/sqlite3Demo/demo.db') print('连接sqlite库成功') except Exception as e: print('连接sqlite库失败:', e) if conn is not None: # 创建游标对象 cur = conn...
[ "li.chun158@gmail.com" ]
li.chun158@gmail.com
1eb5b10cb25082008a50ed8a90198526794f3f9b
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_http_get_py3.py
d9ca73f638183794cf20b5a1d7c59793e37d8b7d
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
1,433
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
06d91053430128ffbd2e417b7711666eb0bcf41a
5dd47abf7061201d9378e73e51f08fbb314ba2fd
/envdsys/envdaq/migrations_old/0008_auto_20190215_2305.py
aaa12d1357f80fc2772ac6d5b38aa0b5464dee40
[ "Unlicense" ]
permissive
NOAA-PMEL/envDataSystem
4d264ae5209015e4faee648f37608d68a4461d0a
4db4a3569d2329658799a3eef06ce36dd5c0597d
refs/heads/master
2023-02-23T22:33:14.334737
2021-07-22T01:09:16
2021-07-22T01:09:16
191,809,007
1
0
Unlicense
2023-02-08T00:45:54
2019-06-13T17:50:03
Python
UTF-8
Python
false
false
448
py
# Generated by Django 2.1.5 on 2019-02-15 23:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('envdaq', '0007_auto_20190215_2300'), ] operations = [ migrations.RemoveField( model_name='devicedef', name='contacts', ...
[ "derek.coffman@noaa.gov" ]
derek.coffman@noaa.gov
7e94fa976fa69e30a6a8fecb112d0151ab64e36a
14d66cef63d9e540f4a7dd76e8810b7f39c9e536
/viewer.py
81b3111c4649653ed33f54c8cbfa293e9a3acd44
[ "MIT" ]
permissive
YarinAVI/GraphLayout
5327daebdb45f8273cf75c53341bc02f42d293c7
187ea93b06730186ec25dd71a28dd2ccdfaa4a7c
refs/heads/master
2021-06-17T04:21:02.746604
2017-05-31T16:23:20
2017-05-31T16:23:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,692
py
import layout import render import wx TESTS = [ [('t', 'te'), ('t', 'ti'), ('t', 'to'), ('te', 'tea'), ('te', 'ten'), ('tea', 'team'), ('ti', 'tin'), ('tin', 'tine'), ('to', 'ton'), ('ton', 'tone')], [(5, 11), (11, 10), (11, 2), (3, 10), (3, 8), (8, 9), (11, 9), (7, 8), (7, 11)], [(1, 2), (1, 5), (2, 5), (...
[ "fogleman@gmail.com" ]
fogleman@gmail.com
ef5b018a2b5ea2a4f02c3054530d9c410298db2c
bc5d0c3e950ebd9a7fbd33fbbcad94979cbe344f
/src/scratch.py
1e0bc9d7ea1f286057ac7e65ffcc5322727de2fe
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
bgshin/bert
44e7b23016087e7fda6396bd4432188918d2af28
5d13d62909f120ec097c606a0366b49887ea1baf
refs/heads/master
2020-04-06T11:41:44.788854
2018-12-03T04:48:56
2018-12-03T04:48:56
157,426,269
0
0
null
null
null
null
UTF-8
Python
false
false
4,344
py
import os import numpy as np import tensorflow as tf import collections import tokenization from run_classifier import SstProcessor, file_based_input_fn_builder, model_fn_builder, file_based_convert_examples_to_features import modeling import cPickle def get_model_size(ckpt_fpath): # Open TensorFlow ckpt read...
[ "nomolos79@gmail.com" ]
nomolos79@gmail.com
3a9cb5d26818969cfb8af7ed4edd0f0d30c3c771
2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac
/Python/Core/Lib/encodings/utf_32_be.py
f84e9045e1470bfbee6b819f251ac345d9b60040
[]
no_license
FingerLeakers/DanderSpritz_docs
f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364
d96b6a71c039b329f9f81544f645857c75360e7f
refs/heads/master
2021-01-25T13:05:51.732149
2018-03-08T01:22:49
2018-03-08T01:22:49
123,527,268
2
0
null
2018-03-02T03:48:31
2018-03-02T03:48:30
null
UTF-8
Python
false
false
1,048
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20) # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] # Embedded file name: utf_32_be.py """ Python 'utf-32-be' Codec """ import codecs encode = codecs.utf_32_be_encode def decode(input, er...
[ "francisck@protonmail.ch" ]
francisck@protonmail.ch
0e3e32f77124f0e14236d74d16a1a23002091b70
ae10b60cb92a69146bfb05ef5dde735a0aa45d4b
/examples/Extended Application/matplotlib/examples/userdemo/annotate_simple_coord02.py
c8424d6389371288876249d81040115991437882
[ "MIT" ]
permissive
kantel/nodebox-pyobjc
471cea4c5d7f1c239c490323186458a74edcc214
068ba64c87d607522a240ab60c3ba14f869f6222
refs/heads/master
2021-08-14T18:32:57.995445
2017-11-16T13:42:23
2017-11-16T13:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
""" ======================= Annotate Simple Coord02 ======================= """ import matplotlib.pyplot as plt # nodebox section if __name__ == '__builtin__': # were in nodebox import os import tempfile W = 800 inset = 20 size(W, 600) plt.cla() plt.clf() plt.close('all') def ...
[ "karstenwo@web.de" ]
karstenwo@web.de
0a8bd7608db9b29c07d9adbc6e136ba7c4662200
35e28d7705773eed54345af4440700522c9d1863
/deps/libgdal/gyp-formats/tsx.gyp
b8f05037aec95a26a96a811114431a86f6467c1c
[ "Apache-2.0" ]
permissive
naturalatlas/node-gdal
0ee3447861bf2d1abc48d4fbdbcf15aba5473a27
c83e7858a9ec566cc91d65db74fd07b99789c0f0
refs/heads/master
2023-09-03T00:11:41.576937
2022-03-12T20:41:59
2022-03-12T20:41:59
19,504,824
522
122
Apache-2.0
2022-06-04T20:03:43
2014-05-06T18:02:34
C++
UTF-8
Python
false
false
245
gyp
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_tsx_frmt", "type": "static_library", "sources": [ "../gdal/frmts/tsx/tsxdataset.cpp" ], "include_dirs": [ "../gdal/frmts/tsx" ] } ] }
[ "brian@thirdroute.com" ]
brian@thirdroute.com
ffabd2487c7b9698475b0ebf663f97afebe11c6a
0f7666900a3d203481b1009fe3d9dd2186938c30
/gpu-example.py
e89103c48573461470473750392cc1d8d4e2ed0b
[]
no_license
MZ195/Cupy-GPU-Example
4a7d99c25e9d26213c3f27b6618b6f8c8cbc4393
108b920848e60b3e2706749ca97404572433e130
refs/heads/master
2022-10-29T23:45:48.093569
2020-06-13T21:09:04
2020-06-13T21:09:04
272,086,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
import numpy as np from timeit import default_timer as timer from numba import vectorize NUM_ELEMENTS = 100000000 # This is the CPU version. def vector_add_cpu(a, b): c = np.zeros(NUM_ELEMENTS, dtype=np.float32) for i in range(NUM_ELEMENTS): c[i] = a[i] + b[i] return c # This is the GPU version. Note th...
[ "40984264+MZ195@users.noreply.github.com" ]
40984264+MZ195@users.noreply.github.com
31e36abf085c1f9a230b668343ec294935b1c1da
91fe8f479fa921fa84111d19222a5c6aa6eff030
/apps/django-web/learning_log/ll_env/Scripts/django-admin.py
8785f03fb524b48fbb8c6393ffc1f4c9ea3ed203
[]
no_license
romanticair/python
2055c9cdaa46894c9788d5797643283786ed46dd
6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141
refs/heads/master
2022-11-03T17:17:17.608786
2019-07-05T07:07:29
2019-07-05T07:07:29
195,356,190
0
1
null
2022-10-14T20:51:14
2019-07-05T07:00:33
Python
UTF-8
Python
false
false
183
py
#!l:\mypythonprogr\somepythonprojects\learning_log\ll_env\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "1024519570@qq.com" ]
1024519570@qq.com
f32ae2236fb684777b438596d850abf6885dc83b
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/qLMZ2hEvrhRSSSnQw_20.py
dba82c5c1e6082f3f6e2d972820ab53ab7f449e3
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
""" Graded lexicographic order (grlex order for short) is a way of ordering words that: 1. First orders words by length. 2. Then orders words of the same size by their dictionary order. For example, in grlex order: * "tray" < "trapped" since "tray" has length 4 while "trapped" has length 7. * "trap" < "tr...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
1c54e78c3a9fa11c3884d713d206b69fd669a135
a08d885cb9150d7e84f5ffbf0c9734893105a898
/2021/Day 04/giant_squid.py
113e0335b32c0ec58d8789010615a252f8d92b66
[]
no_license
vhsw/Advent-of-Code
ab422c389340a1caf2ec17c5db4981add6433fbe
3c1dac27667472202ab15098c48efaac19348edf
refs/heads/master
2022-12-29T03:56:59.648395
2022-12-26T11:01:45
2022-12-26T11:01:45
162,491,163
0
0
null
2022-05-10T08:43:32
2018-12-19T21:10:26
Python
UTF-8
Python
false
false
1,821
py
"""Day 4: Giant Squid""" from typing import Iterable with open("2021/Day 04/input.txt", encoding="utf-8") as fp: DATA = fp.read().strip() def part1(data: str): """Part 1 solution""" nums, boards = parse(data) for num in nums: for board in boards: for line in board: ...
[ "nevermind1025@gmail.com" ]
nevermind1025@gmail.com
861709efdf3acd7f6154b69f466c98536af3d22c
98e1716c1c3d071b2fedef0ac029eb410f55762c
/part13-introduction-data-visualization/No33-Multiple-time-series-on-common-axes.py
d1207e9079b0d4e197a6b8b3812ed67aab364a3e
[]
no_license
iamashu/Data-Camp-exercise-PythonTrack
564531bcf1dff119949cbb75e1fd63d89cb2779f
c72a4e806494f0e263ced9594597dc8882c2131c
refs/heads/master
2020-07-22T00:23:12.024386
2019-04-12T09:24:42
2019-04-12T09:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,261
py
#Multiple time series on common axes ''' For this exercise, you will construct a plot showing four time series stocks on the same axes. The time series in question are represented in the session using the identifiers aapl, ibm, csco, and msft. You'll generate a single plot showing all the time series on common axes wit...
[ "beiran@hotmail.com" ]
beiran@hotmail.com
1b7c96a2295ea7e138deda6e3742ba95cd5763db
6d05f11c55ea277a08fc375b1c5af5ecc076000b
/python/paddle/fluid/tests/unittests/test_allclose_op.py
94e30621ef1377344457aa3d94a725abac99ef31
[ "Apache-2.0" ]
permissive
sfraczek/Paddle
8602df1b11937400f93ac5861a366226208a6f05
d1e2c61b22b9675adc3c4a52227d2220babaa001
refs/heads/develop
2023-04-04T22:52:42.629243
2023-03-16T12:06:10
2023-03-16T12:06:10
140,574,617
0
0
Apache-2.0
2019-03-26T15:54:00
2018-07-11T12:51:20
C++
UTF-8
Python
false
false
8,362
py
# Copyright (c) 2018 PaddlePaddle Authors. 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 required by app...
[ "noreply@github.com" ]
sfraczek.noreply@github.com
e7bb5f16a923ff9ad17aaa6eb1e32af386aebe07
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa1/sample/def_func_global-20.py
dc6dfd6544ed1c4f088d8b9645ac5760817cfc2e
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
z:int = 0 def foo(x:int) -> $ID: global z return x > z foo(1)
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
8718fb18f40bed47885972a98c7d3c06d6a3ca6c
9db8e7bbd09eb07126a7f0c14e2f3af86bf6e8d9
/datasets/centralia/convert.py
51efa94fe2198d2ccf0de3656af8e6b03e2c11b4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jayschauer/TCPD
ddeb193eca2fa9ea04b791025fe529dfd3ee4686
f99ab1decc165707115fd60e991ac1c12091f334
refs/heads/master
2022-12-05T02:21:16.517774
2020-09-02T18:56:49
2020-09-02T18:56:49
292,368,325
0
0
MIT
2020-09-02T18:52:00
2020-09-02T18:52:00
null
UTF-8
Python
false
false
1,365
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dataset conversion script Author: Gertjan van den Burg """ import json import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument( "-s", "--subsample", help="Number of observations to skip during subsam...
[ "gertjanvandenburg@gmail.com" ]
gertjanvandenburg@gmail.com
ac415525282185598f7818ce48ba05afe6778b4c
78efa54b2b253f99ea7e073f783e6121c20cdb52
/Codechef/Substraction Game 1.py
70eba9c0690d035feb1d0ea1b9eec2fb43d7f3d6
[]
no_license
NishchaySharma/Competitve-Programming
32a93581ab17f05d20129471f7450f34ec68cc53
1ec44324d64c116098eb0beb74baac7f1c3395bb
refs/heads/master
2020-04-08T04:02:46.599398
2020-01-01T15:51:39
2020-01-01T15:51:39
159,000,529
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
def gcd(a:int,b:int)->int: if a==0 or b==0: return a+b else: return gcd(b%a,a) for _ in range(int(input())): n=int(input()) arr=list(map(int,input().split())) res=arr[0] for i in arr[1:]: res=gcd(res,i) if res==1: break print(res)
[ "noreply@github.com" ]
NishchaySharma.noreply@github.com
20906ab3c18a8740b0c15f21a626b89b87f75c8d
10fbe5526e5f0b8588b65f70f088cd86b6e9afbe
/qqpppzas/migrations/0015_auto_20150218_1630.py
8c6435040612046c9d19f24e8b395845cbb10c31
[]
no_license
MarkusH/django-migrations-benchmark
eb4b2312bb30a5a5d2abf25e95eca8f714162056
e2bd24755389668b34b87d254ec8ac63725dc56e
refs/heads/master
2016-09-05T15:36:45.250134
2015-03-31T23:44:28
2015-03-31T23:44:28
31,168,231
3
1
null
null
null
null
UTF-8
Python
false
false
1,078
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cohutfvb', '0014_auto_20150218_1630'), ('qqpppzas', '0014_auto_20150218_1628'), ] run_before = [ ('ysgxuyu', '0012_d...
[ "info@markusholtermann.eu" ]
info@markusholtermann.eu
339fbbf64e0beffc337a085e31729f800c8127dd
d03582a9f9a853a07eeb36f746530dee29f7a258
/build/catkin_generated/generate_cached_setup.py
b68e8b3be2e20e0a06efc00fe0407cd24717e837
[]
no_license
tanmayshankar/decision_making
6df835c6c26e9cb2f0fdfbec509f5a46bf3c98ae
fdd3b1ea127a89fb03181cb8f766e86e6d933eed
refs/heads/master
2021-01-21T04:48:16.259813
2016-07-15T17:43:06
2016-07-15T17:43:06
44,739,541
4
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.p...
[ "tanmay.shankar@gmail.com" ]
tanmay.shankar@gmail.com
efce919b3664c741e5e5cdd3efddf076345b6093
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/PyPattyrn-master/pypattyrn/structural/decorator.py
947743818a1dceeb4c5e662540bafd0242dc5234
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
2,788
py
from functools import partial from abc import ABCMeta, abstractmethod class Decorator(object, metaclass=ABCMeta): """ Base Decorator class that all decorator classes inherit from. - External Usage Documentation: U{https://github.com/tylerlaberge/PyPattyrn#decorator-pattern} - External Decorator Patte...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
ef0eff35233191513b76fde38c78e1f3e0f13ea5
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Games/Attack/Attack.spec
c15c4364b14dd93124576beac54254b27f0aea6d
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
975
spec
# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['Attack.py'], pathex=['D:\\Users\\dhhyey\\Code'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
9099b68c27e3fbffcb996837b243735fb81db3c4
cc5eb8eb50d64ffbca780c42a908053ec549f295
/Python Course CSe11309x/quiz3_prog3.py
2b9ed7f99272eb84762ebb8b2b6185efa3fb98e4
[]
no_license
bemagee/LearnPython
328b1f7a9d5046fe1503aece8a5134a7dd2727d2
a42565f8fb45f9e2ebbcdcf359ebb9092bf837c2
refs/heads/master
2020-12-13T02:45:30.308604
2016-10-24T03:09:12
2016-10-24T03:09:12
10,793,864
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
#!/usr/bin/env python3 # Write a program that asks the user for a positive number 'n' as input. Assume that the user # enters a number greater than or equal to 3 and print a triangle as described below. # For example if the user enters 6 then the output should be: #* #** #*** #**** #***** #****** #***** #**** #*** #*...
[ "bemagee@gmail.com" ]
bemagee@gmail.com
d58ebf4ac0db230cddebff1dad95bb3e7734694c
6ae1ba7d2ad2a97725699e1467171cc2deebb0d4
/文件、异常/02-文件的路径.py
3e1488362ed58e9b33d2e32db13dabf3db3ec841
[]
no_license
weizt/python_studying
6a95edcf781bd91d8b5f2684f1c6046a40a6d432
6dace3a6b73032de220c4b3ea4b3c37d47880ff1
refs/heads/master
2023-01-18T19:45:48.291898
2020-12-02T00:59:01
2020-12-02T00:59:01
293,965,283
2
0
null
2020-09-13T01:15:50
2020-09-09T01:04:03
Python
UTF-8
Python
false
false
1,156
py
# 路径:绝对路径 和 相对路径 # 绝对路径:是从盘符开始的路径,详细的路径 # 相对路径:从当前路径开始的路径,简写的路径 推荐 # 技巧:右键点击文件名,打开Show in Explorer。直接打开文件位置 import os print(os.sep) # 在windows操作系里,文件夹之间用 \ 分隔; # 而python中\表示字符串转义,所以会冲突 # 解决\冲突的三种方法 # 1.用两个\\表示一个\\ # 2.在字符串前加 r # 3.在非windows系统用 / 推荐这一种 # file = open('D:\\桌面备份文件\\207操作手册.txt', encoding='gbk') # fi...
[ "weizhetao3@163.com" ]
weizhetao3@163.com
0d03883d7784067097556669a9d66f4dde920729
de01cb554c2292b0fbb79b4d5413a2f6414ea472
/algorithms/Medium/360.sort-transformed-array.py
0f69da25ba1935966ee90c3a22fa9f0d71097b1f
[]
no_license
h4hany/yeet-the-leet
98292017eadd3dde98a079aafcd7648aa98701b4
563d779467ef5a7cc85cbe954eeaf3c1f5463313
refs/heads/master
2022-12-10T08:35:39.830260
2020-09-02T23:12:15
2020-09-02T23:12:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
# # @lc app=leetcode id=360 lang=python3 # # [360] Sort Transformed Array # # https://leetcode.com/problems/sort-transformed-array/description/ # # algorithms # Medium (48.92%) # Total Accepted: 35.5K # Total Submissions: 72.6K # Testcase Example: '[-4,-2,2,4]\n1\n3\n5' # # Given a sorted array of integers nums and...
[ "kevin.wkmiao@gmail.com" ]
kevin.wkmiao@gmail.com
df255a93aa6826829f42b9c50283a11d91b9f72d
25d2afe5d12fe58a97da7b51e23fdc55929e38f5
/anonymise_dataset_folder.py
18e10508f9b9043df95dc7985d4acfe30a7b2071
[]
no_license
apmoore1/tdsa_comparisons
071396efe0c5e0bad297119d2ce48bf0c1cbb42f
ba613afece15239e6a38f277c455a035739f0b2d
refs/heads/master
2021-06-23T16:00:49.803589
2021-05-25T09:32:53
2021-05-25T09:32:53
225,565,449
0
0
null
null
null
null
UTF-8
Python
false
false
1,574
py
import argparse from pathlib import Path from target_extraction.data_types import TargetTextCollection def parse_path(path_string: str) -> Path: path_string = Path(path_string).resolve() return path_string if __name__ == '__main__': save_dir_help = ('File Path to directory where the anonymised results ' ...
[ "andrew.p.moore94@gmail.com" ]
andrew.p.moore94@gmail.com
b223c25deb92c2584942abe587611364fd6452fb
47c39800fa6f928e0d13f26727ba52bda2aa6ff0
/venv/Lib/site-packages/aliyunsdkrds/request/v20140815/DescribeDBInstanceNetInfoRequest.py
aaaad8b6f364419423cb88b61323a126dae4413a
[ "MIT" ]
permissive
dddluke/zhihuipingtai
952ed5f9a4011cb4fb2765a0571c978af784d708
4e46e01440f8c270c05259ac0f38bd56dd04016c
refs/heads/master
2023-03-09T03:32:47.807760
2021-02-26T02:36:10
2021-02-26T02:36:10
341,816,381
0
0
null
null
null
null
UTF-8
Python
false
false
2,765
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "lukeli0306@gmail.com" ]
lukeli0306@gmail.com
cfac7879161065f706def9686ddfbc28119b790b
48832d27da16256ee62c364add45f21b968ee669
/res_bw/scripts/common/lib/idlelib/keybindingdialog.py
de38be02b11f8caf736a506da269f98fbd744c30
[]
no_license
webiumsk/WOT-0.9.15.1
0752d5bbd7c6fafdd7f714af939ae7bcf654faf7
17ca3550fef25e430534d079876a14fbbcccb9b4
refs/heads/master
2021-01-20T18:24:10.349144
2016-08-04T18:08:34
2016-08-04T18:08:34
64,955,694
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
11,956
py
# 2016.08.04 19:59:37 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/idlelib/keybindingDialog.py """ Dialog for building Tkinter accelerator key bindings """ from Tkinter import * import tkMessageBox import string import sys class GetKeysDialog(Toplevel): def __init__(self, parent, title, act...
[ "info@webium.sk" ]
info@webium.sk
a0ed35e6fc27549ff2800fb20c22fb6efdff37bf
ce3499f5d09396e72151f4d742a5562ebdb127c3
/godap.py
367a6d0ef7f1af07ba0250eebd821485442e3696
[]
no_license
jscouet/godap
08fb0e020b95e00e92f3a94df3761cc965dda52d
e0dda750aba60ad59dfb7183e9beead62712dbe4
refs/heads/master
2021-01-01T04:06:41.399768
2016-05-24T15:35:37
2016-05-24T15:35:37
59,554,618
0
0
null
null
null
null
UTF-8
Python
false
false
3,244
py
#!/usr/bin/python3 """ script d'envoie de user dans LDAP """ VERSION = 0.2 import logging logging.basicConfig(filename='client_application.log', level=logging.DEBUG) from ldap3 import Server, Connection, SUBTREE from ldap3.utils.log import set_library_log_detail_level, OFF, BASIC, NETWORK, EXTENDED, PROTOCOL import ...
[ "gogs@fake.local" ]
gogs@fake.local
5f5c2d5fd25e62e92717b420b164f974576182c3
3539d0e3ddd7849a14876e95f0332428ec28ebf7
/Data Scientist Career Path/3. Python Fundamentals/6. Python Loop/2. List Comprehension Code Challenge/18. ages.py
e5fdc328f0eaafe3e447ed0b4cf91a74ee9f7ef5
[ "MIT" ]
permissive
DincerDogan/Data-Science-Learning-Path
ff146de2cf4ebc5fedfa9377babf959208dfe7e6
2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb
refs/heads/main
2023-05-08T10:53:47.449974
2021-06-06T21:27:31
2021-06-06T21:27:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
names = ["Shilah", "Arya", "Kele"] ages = [14, 9, 35] users = ["Name: " + x[0] + ", Age: " + str(x[1]) for x in zip(names, ages)]
[ "aristyanto2320@gmail.com" ]
aristyanto2320@gmail.com
1347a718ac0fe7a1d32610c9e403b982b3bd4506
c5f58af61e3577ded52acda210f4f664651b598c
/template/mmdetection/configs/vfnet/vfnet_x101_32x4d_fpn_mstrain_2x_coco.py
9f445458c8365c10abb325f59a583923ce416a73
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hojihun5516/object-detection-level2-cv-02
0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac
bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109
refs/heads/master
2023-08-31T09:50:59.150971
2021-10-16T15:00:19
2021-10-16T15:00:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
_base_ = "./vfnet_r50_fpn_mstrain_2x_coco.py" model = dict( backbone=dict( type="ResNeXt", depth=101, groups=32, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type="BN", requires_grad=True), norm_eval=True...
[ "hojihun5516@daum.net" ]
hojihun5516@daum.net
3a68029f539876708281d23051be8c94c328cd85
3171b42757e60a61c2a71474cb07f81b9219ee50
/tests/test_upload.py
ebf1b3cf99f8570e73ec3366ba494fdd4c1da8d1
[]
no_license
yoophi/flaskygram
cde431d1a177e5bf54558ab83bb07886b93bc9ed
363e29f393ab3e1b8d40102add09b1f9bff65670
refs/heads/main
2023-05-14T15:11:05.307578
2021-06-05T06:55:53
2021-06-05T06:55:53
57,872,879
0
0
null
2023-05-02T20:26:02
2016-05-02T07:40:40
Python
UTF-8
Python
false
false
695
py
""" TestCase migration with Flask-Testing """ from flask import url_for from cStringIO import StringIO from flaskygram.models import Media from tests import BaseTestCase class MediaTest(BaseTestCase): def test_upload(self): res = self.client.post(url_for('api.media_upload'), ...
[ "yoophi@gmail.com" ]
yoophi@gmail.com
1bdad74646ded2dbe5d41d72449d186dbcc5986a
fa9bae32c203323dfb345d9a415d4eaecb27a931
/492. Construct the Rectangle.py
223ca17420f3b701265528b09aa68d0b6bc71233
[]
no_license
IUIUN/The-Best-Time-Is-Now
48a0c2e9d449aa2f4b6e565868a227b6d555bf29
fab660f98bd36715d1ee613c4de5c7fd2b69369e
refs/heads/master
2020-09-14T12:06:24.074973
2020-02-15T06:55:08
2020-02-15T06:55:08
223,123,743
3
0
null
null
null
null
UTF-8
Python
false
false
253
py
class Solution: def constructRectangle(self, area: int) -> List[int]: mid = int(math.sqrt(area)) while mid > 0: if area % mid == 0: return [int(area // mid), int(mid)] mid -= 1
[ "liuyijun0621@hotmail.com" ]
liuyijun0621@hotmail.com
3d276284f2a17ce3cb97170644da2537cb159809
1c390cd4fd3605046914767485b49a929198b470
/leetcode/find-the-kth-largest-integer-in-the-array.py
0b79c89ea7dd853e247daaeaeb9b7d66593bed4d
[]
no_license
wwwwodddd/Zukunft
f87fe736b53506f69ab18db674311dd60de04a43
03ffffee9a76e99f6e00bba6dbae91abc6994a34
refs/heads/master
2023-01-24T06:14:35.691292
2023-01-21T15:42:32
2023-01-21T15:42:32
163,685,977
7
8
null
null
null
null
UTF-8
Python
false
false
113
py
class Solution: def kthLargestNumber(self, a: List[str], k: int) -> str: return sorted(a,key=int)[-k]
[ "wwwwodddd@gmail.com" ]
wwwwodddd@gmail.com
3a335ae6cc7bab264be2c947c01ec8df7a6e941e
abad82a1f487c5ff2fb6a84059a665aa178275cb
/Codewars/8kyu/age-range-compatibility-equation/Python/solution1.py
3657a02d2a92ac4c93199e60e1489bc9fdc04b1a
[ "MIT" ]
permissive
RevansChen/online-judge
8ae55f136739a54f9c9640a967ec931425379507
ad1b07fee7bd3c49418becccda904e17505f3018
refs/heads/master
2021-01-19T23:02:58.273081
2019-07-05T09:42:40
2019-07-05T09:42:40
88,911,035
9
0
null
null
null
null
UTF-8
Python
false
false
242
py
# Python - 3.4.3 from math import floor def dating_range(age): minage = lambda a: (a / 2) + 7 if a > 14 else 0.9 * a maxage = lambda a: (a - 7) * 2 if a > 14 else 1.1 * a return '%d-%d' % (floor(minage(age)), floor(maxage(age)))
[ "d79523@hotmail.com" ]
d79523@hotmail.com
d55ce02404f32b0877e1a295d5b671b302e5db52
0466559817d3a1be9409da2c83db99c4db3bacfe
/hubcheck/pageobjects/widgets/members_profile_mailpreference.py
cdbdc54f4a0ca509c4b8a5bcbc0be220497cb01e
[ "MIT" ]
permissive
ken2190/hubcheck
955cf9b75a1ee77e28256dfd3a780cfbc17de961
2ff506eb56ba00f035300862f8848e4168452a17
refs/heads/master
2023-03-20T15:17:12.949715
2015-09-29T16:11:18
2015-09-29T16:11:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,363
py
from hubcheck.pageobjects.basepageelement import Radio from hubcheck.pageobjects.basepageelement import Select from hubcheck.pageobjects.widgets.members_profile_element import MembersProfileElement class MembersProfileMailPreference1(MembersProfileElement): def __init__(self, owner, locatordict={}): super(...
[ "telldsk@gmail.com" ]
telldsk@gmail.com
a9a1d3f8224ac0897447a887e426b0391bef5786
788f1d32045560ffafff468476c9c9897dabb31c
/Curso em Vídeo/Mundo 1 Fundamentos/Desafios/desafio019.py
9a32db158cf6b88cdf869f23df5dd89ebfe57efa
[ "MIT" ]
permissive
henriqueumeda/-Python-study
7f8d911e9e724aa2f183e652e6a7ae31b742b90e
28e93a377afa4732037a29eb74d4bc7c9e24b62f
refs/heads/main
2023-08-10T21:10:32.360808
2021-09-21T02:37:16
2021-09-21T02:37:16
330,294,636
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
from random import choice primeiroAluno = input('Primeiro aluno: ') segundoAluno = input('Segundo aluno: ') terceiroAluno = input('Terceiro aluno: ') quartoAluno = input('Quarto aluno: ') choiceList = [primeiroAluno, segundoAluno, terceiroAluno, quartoAluno] print('O aluno escolhido foi {}'.format(choice(choiceList)))
[ "issamuumeda@gmail.com" ]
issamuumeda@gmail.com
de4d019cf164022898f2466c7ffb7d80085142ed
bb150497a05203a718fb3630941231be9e3b6a32
/models/Paddle2ONNX/ocr_v2/main_test.py
5e669c2b5e142253e0524cf4ddc5edf09bee4f17
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
4,519
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ main test """ import os import shutil import platform class OcrV2Test(object): """ test Ocr to onnx tipc """ def __init__(self): if os.path.exists("tipc_models_url_PaddleOCR_latest.txt"): ...
[ "825276847@qq.com" ]
825276847@qq.com
ed2aff3a66672c8a682fc5200fdd435cdc11b20a
7386480f7e09101b0518cf1f92b5902726c8816e
/RTMinuit/minuit_html.py
46e3db8756e812009af255ede952105be3242ba4
[]
no_license
mattbellis/RTMinuit
51458bc9fd5a83895eba959c44895826e070741b
d67c35b9aaf904bed278d4ce237cc2e6cf9485dc
refs/heads/master
2020-12-25T03:00:43.769380
2012-05-21T19:09:56
2012-05-21T19:09:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,872
py
class MinuitHTMLResult: def __init__(self,m): """ :param m: :type m Minuit: """ self.varnames = m.varname self.values = m.values self.errors = m.errors self.mnerrors = m.minos_errors() def _repr_html_(self): tmp = [] header = u"""...
[ "piti118@gmail.com" ]
piti118@gmail.com
f1c9b9076961020c81cbaf3646daba66e73e364d
8f6cc0e8bd15067f1d9161a4b178383e62377bc7
/Video_future_frame_prediction/fc_lstm_n202_ubu/old_code/old_code_v0002/models/lstmcell_simple_encoder_decoder.py
95a2bc4e593826921cf1006deb6946f36735942c
[]
no_license
humorbeing/python_github
9c4dfc61a3cefbb266fefff335f6b28d05797e5e
e4b4b49bee7e7e3843c6874717779ce8d619bd02
refs/heads/master
2023-01-22T21:51:20.193131
2020-01-26T21:47:23
2020-01-26T21:47:23
163,707,778
0
0
null
2022-12-27T15:37:48
2019-01-01T01:58:18
Python
UTF-8
Python
false
false
1,400
py
# encoder decoder, only 1 layer, flatten style # lstmcell # v0004 import torch import torch.nn as nn import numpy as np class FC_LSTM(nn.Module): def __init__(self): super(FC_LSTM, self).__init__() self.encoder_lstmcell = nn.LSTMCell(4096, 4096) self.decoder_lstmcell = nn.LSTMCell(4096, 40...
[ "geemguang@gmail.com" ]
geemguang@gmail.com