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
d10192ab95a1b46d604aa924f07a235b10ff2971
4fbd844113ec9d8c526d5f186274b40ad5502aa3
/algorithms/python3/number_of_digit_one.py
538d9b720619759dbae129533367a918a55ffec3
[]
no_license
capric8416/leetcode
51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1
503b2e303b10a455be9596c31975ee7973819a3c
refs/heads/master
2022-07-16T21:41:07.492706
2020-04-22T06:18:16
2020-04-22T06:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. Example: Input: 13 Output: 6 Explanation: Digit 1 occurred in the following numbers: 1, 10, 11, 12, 13. """ """ ==================== body =======...
[ "capric8416@gmail.com" ]
capric8416@gmail.com
4afb6395738c94f6f3c5f69cd5aba31fac3f7ab9
23a56e0555d6b27aa444d8396ec32f9d2b678a39
/07_ur_online/shifted_frames_setup/compas/packages/compas_fabrication/fabrication/grasshopper/utilities/sets.py
0aa962839f412ffad8a96c1e5c3841c1df6bb963
[ "MIT" ]
permissive
dtbinh/T1_python-exercises
2ce1b01bc71f8032bbe8fb4ef8f71b648dcde1c5
f4710c3dc2ba8ddb3e3e9069ab8d65df674463ab
refs/heads/master
2020-04-04T20:00:52.191601
2018-01-09T08:14:36
2018-01-09T08:14:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
from Grasshopper import DataTree as Tree from Grasshopper.Kernel.Data import GH_Path as Path from System import Array def list_to_tree(alist, none_and_holes=False, base_path=[0]): """ Transforms nestings of lists or tuples to a Grasshopper DataTree Usage: mytree = [ [1,2], 3, [],[ 4,[5]] ] a = list...
[ "rusenova" ]
rusenova
18a6e21aeda01c6a19f315813bff0d01b04146e0
b66450f669095b0ad013ea82cb1ae575b83d74c3
/Interview Preparation 2/maze.py
eae0d33ab121c0679d4a9e3e440d6211bec9b2ad
[]
no_license
aulb/ToAsk
2649a3fad357820e3c8809816967dfb274704735
1e54c76ab9f7772316186db74496735ca1da65ce
refs/heads/master
2021-05-01T20:35:14.062678
2020-02-23T07:44:29
2020-02-23T07:44:29
33,289,737
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
Implement a function to generate a maze. from random import randint import enum class Condition(enum): CLEAR = 0 RIGHT = 1 BOTTOM = 2 class Direction(enum): RIGHT = 0 LEFT = 1 UP = 2 DOWN = 3 # Create maze from top left to bottom right def generate_maze(row, col): if row < 0 or col < 0: return [] # create...
[ "aalbertuntung@gmail.com" ]
aalbertuntung@gmail.com
742f8a6dd2aee367cca6f94262b5612485524064
868b90e85541f1f76e1805346f18c2cb7675ffc8
/cnn/02_introductory_cnn.py
1eac1abda98b5a9c829bc11f7f50f4ba5b7d7589
[]
no_license
WOW5678/tensorflow_study
a9a447c39c63a751046d4776eedc17589324634e
39e202b102cd2ebc1ba16f793acc8ebe9ea0e752
refs/heads/master
2020-03-19T15:49:24.729778
2018-10-19T06:45:26
2018-10-19T06:45:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,639
py
# Introductory CNN Model: MNIST Digits #--------------------------------------- # # In this example, we will download the MNIST handwritten # digits and create a simple CNN network to predict the # digit category (0-9) import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow.contrib.l...
[ "noreply@github.com" ]
WOW5678.noreply@github.com
86c22ca4ca7fe3b67919b54097bc9189805b71f3
e4066b34668bbf7fccd2ff20deb0d53392350982
/project_scrapy/spiders/grammarly.py
19c27a8c3349910b1bd4ad1227155e4b6ced0815
[]
no_license
sushma535/WebSites
24a688b86e1c6571110f20421533f0e7fdf6e1a8
16a3bfa44e6c7e22ae230f5b336a059817871a97
refs/heads/master
2023-08-18T09:09:16.052555
2021-10-11T00:41:50
2021-10-11T00:41:50
415,621,279
0
0
null
null
null
null
UTF-8
Python
false
false
2,541
py
import scrapy from scrapy.crawler import CrawlerProcess import os import csv from csv import reader import re total_data = {} class SimilarWeb(scrapy.Spider): name = 'SW' user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' start_url...
[ "sushmakusumareddy@gmail.com" ]
sushmakusumareddy@gmail.com
700a9fbcb89b1b66f52a940e26430e4a1f4c5494
c96d9a76fe28630fe1b4cd7efa22e12fdce0399f
/kaggle/Song_popularity/optimize.py
a81690bd13b858784678e25cf5a75a1761a95589
[]
no_license
tarunbhavnani/ml_diaries
858839e8ab8817caae3d56d3dad6d4ee9176ddbe
8d0700211a2881279df60ab2bea7095ef95ea8dc
refs/heads/master
2023-08-18T08:28:50.881356
2023-08-16T09:39:34
2023-08-16T09:39:34
157,958,911
0
1
null
2023-03-13T05:17:52
2018-11-17T06:52:34
Python
UTF-8
Python
false
false
1,620
py
#!/usr/bin/env python3 """ optimize.py """ import optuna import optuna.integration.lightgbm as lgb import pandas as pd from lightgbm import early_stopping, log_evaluation from sklearn.metrics import roc_auc_score from sklearn.model_selection import train_test_split def objective(trial: optuna.Trial): df = pd.rea...
[ "tarun.bhavnani@gmail.com" ]
tarun.bhavnani@gmail.com
f10cf0c87250140ac5312dc31eb6fb3097b38031
5983bf3f4cbd49e222a4448f6e738946c1012553
/aicall/apps/info/migrations/0002_auto_20210322_1329.py
eb91fe911bbbd8d6a9721e302847df2eb2ef5cea
[]
no_license
RympeR/aciall
7fa88eaf6799444aef84dba1ce9974de858ddfd4
ca238234160d93a1058f725121e1f3fbe71be33c
refs/heads/master
2023-04-04T14:45:39.390609
2021-04-05T10:02:00
2021-04-05T10:02:00
354,790,599
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
# Generated by Django 3.1.7 on 2021-03-22 11:29 from django.db import migrations import imagekit.models.fields class Migration(migrations.Migration): dependencies = [ ('info', '0001_initial'), ] operations = [ migrations.AlterField( model_name='talkthemes', name=...
[ "georg.rashkov@gmail.com" ]
georg.rashkov@gmail.com
cd70acfcb63726d43d38f161933d4473e020bcb4
416ea1127f3e3a1a8e64dd980e59c7bf585379a0
/read_favorite_number.py
13e6938ce6b8bf90c1ab89faddd39721b21296a8
[]
no_license
jocogum10/learning_python_crash_course
6cf826e4324f91a49da579fb1fcd3ca623c20306
c159d0b0de0be8e95eb8777a416e5010fbb9e2ca
refs/heads/master
2020-12-10T02:55:40.757363
2020-01-13T01:22:44
2020-01-13T01:22:44
233,486,206
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
import json filename = 'favorite_number.json' with open(filename) as file_object: message = json.load(file_object) print("I know your favorite number! It's " + message + "!")
[ "jocogum10@gmail.com" ]
jocogum10@gmail.com
5ccb0de7903a5ad587a6809250f6a95518d6d850
2151544cd386b550b137c4c738a6e57af542f50a
/src/pipelinex/extras/datasets/pillow/images_dataset.py
e787712d4c62212e94e720b17a91161cc9b33575
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MarchRaBBiT/pipelinex
b82725b7307a58f28d7d663f5072b969a2c9591d
ea8def32a71752b667f9f3522acba3fd79102fe1
refs/heads/master
2023-01-05T22:41:58.241802
2020-11-08T13:18:19
2020-11-08T13:18:19
311,065,793
0
0
NOASSERTION
2020-11-08T13:18:20
2020-11-08T13:12:11
null
UTF-8
Python
false
false
9,864
py
import copy from pathlib import Path from typing import Any, Dict, Union from PIL import Image import logging import numpy as np from ..core import AbstractVersionedDataSet, DataSetError, Version from ...ops.numpy_ops import to_channel_first_arr, to_channel_last_arr, ReverseChannel log = logging.getLogger(__name__) ...
[ "yusuke.minami86@gmail.com" ]
yusuke.minami86@gmail.com
13423cd0e461c0cae46874f40a88916e7e259d73
13c404b0f6e45049ed1f2dc788f5c55129c8bd57
/TriblerGUI/widgets/settingspage.py
c2e60ceb1f7ad236ba96b0d0d482a0d5c9f5610e
[]
no_license
brussee/tribler
5a849e7b260a5f95e360c2b079e4d7f5d065d7af
d1a1d0ba08ba4a3fca9ef99aad3e74859a7454e3
refs/heads/android-app
2021-01-24T01:10:49.293465
2016-12-02T16:32:38
2016-12-02T16:32:38
46,921,190
0
2
null
2016-05-19T13:48:56
2015-11-26T10:53:45
Python
UTF-8
Python
false
false
11,404
py
import json from PyQt5.QtWidgets import QWidget from TriblerGUI.defs import PAGE_SETTINGS_GENERAL, PAGE_SETTINGS_CONNECTION, PAGE_SETTINGS_BANDWIDTH, \ PAGE_SETTINGS_SEEDING, PAGE_SETTINGS_ANONYMITY, BUTTON_TYPE_NORMAL from TriblerGUI.dialogs.confirmationdialog import ConfirmationDialog from TriblerGUI.tribler_req...
[ "mdmartijndevos@gmail.com" ]
mdmartijndevos@gmail.com
3734e13259f4b245375820776dc260e0f60a01d5
2455062787d67535da8be051ac5e361a097cf66f
/Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_129.py
7569fce71cd2fd69603dc29210d1978acc440b9c
[]
no_license
kmtos/BBA-RecoLevel
6e153c08d5ef579a42800f6c11995ee55eb54846
367adaa745fbdb43e875e5ce837c613d288738ab
refs/heads/master
2021-01-10T08:33:45.509687
2015-12-04T09:20:14
2015-12-04T09:20:14
43,355,189
0
0
null
null
null
null
UTF-8
Python
false
false
3,360
py
import FWCore.ParameterSet.Config as cms process = cms.Process("PAT") #process.load("BBA/Analyzer/bbaanalyzer_cfi") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load('Configuration.EventContent.EventContent_cff') process.load("Configuration.Geometry.GeometryRecoDB_cff") process.load("Configuration.St...
[ "kmtos@ucdavis.edu" ]
kmtos@ucdavis.edu
50b38f5aa112634f69a1964367b345d28107fa78
62153e297ca84bf9d76eef56b28408f5337113f9
/tasks/migrations/0005_announcements_picture.py
470373d027006370d1516280f097642bee71c5a1
[]
no_license
zarif007/HRTaskManager
22b72c80d2cac99fa9d3f7f0cfd480cb832ff910
4c7e7f04b82f138a7177f659bb347c7e189c6220
refs/heads/main
2023-06-23T22:05:33.812024
2021-07-31T19:55:11
2021-07-31T19:55:11
373,304,992
2
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 3.2.4 on 2021-07-26 12:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_announcements'), ] operations = [ migrations.AddField( model_name='announcements', name='picture', ...
[ "zarifhuq786@gmail.com" ]
zarifhuq786@gmail.com
fd0816dae9157631a8d5823e89d9650f7806a979
75ce5b7fee397fe4e67ed15a58f4cd42e0f8de9f
/PythonMasterclass/HelloWorld/Strings.py
3b45aebdb6a60836687406b37ebae58981f463c5
[]
no_license
lukbast/stuff
7fd03b7e035394802c307682a25621dfd667960b
160e1d77d1b592fac099b9c7139fb4e2f7f8dbbe
refs/heads/main
2023-08-06T21:39:55.334812
2021-09-23T17:37:47
2021-09-23T17:37:47
409,684,114
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
greeting = 'Hello' name = 'Bruce' # print(greeting+' ' + name) # sample comment # name2 = input('Please enter your name') # print(greeting + ' ' + name2) # splitString = 'This string has been\nsplit\nover\nseveral\nlines' # print(splitString) tabbedStrings = '1\t2\t3\t4\t5' print(tabbedStrings) print('The pet sho...
[ "jaimperator99@gmail.com" ]
jaimperator99@gmail.com
8380622bbde43b92e00ac4f96152d1afa7c46f30
bb4241ec40d0f3bc7484957a3aad2c7921f3ab5f
/src/tracewhack/log.py
c21fc7cf7481ebc5c882c0be2775dba2f2ae8ccc
[ "BSD-3-Clause" ]
permissive
wingu/tracewhack
a17b7e54cbe7cc74cc99511cdf490cd2f12e4184
a324705c23ddd8921ed829152f07fa9ff758de0f
refs/heads/master
2020-06-04T17:25:08.534182
2013-01-28T15:29:20
2013-01-28T15:29:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
""" Logging utilities. """ # LATER Right now these are just dumb placeholders. def warn(msg): """ Log a warning. """ print msg def verbose(msg, options): """ Log only if verbose mode """ if options and options.get('verbose', False): print msg def error(msg): """ Lo...
[ "tomheon@gmail.com" ]
tomheon@gmail.com
3444f7edd6f1163f10d9be2255fc8f130c62da24
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v11/errors/types/asset_group_listing_group_filter_error.py
0aa4caab0394edc17f6c1870dd1f51adb4f736d5
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
1,792
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
GerhardusM.noreply@github.com
4d3e87116d6556c0d297a5c799aedc741f817923
1854841ff9de3391f1c858fcb9f5ccd7dc5488eb
/backend/aidin_27554/wsgi.py
989a9b46785cae5d98a29e68726486205737a9bf
[]
no_license
crowdbotics-apps/aidin-27554
84f8ddd4e63ebfa233fc8d4a2b617af399371b50
fd1e1768ee18919395a1740c70bbcd337360174e
refs/heads/master
2023-05-05T15:50:29.989821
2021-05-29T14:26:12
2021-05-29T14:26:12
371,992,096
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for aidin_27554 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
2600ae63925448ced497283cd025918eceef3b18
81221fd4c09d828fac08229b3640398a39bd0b5b
/c0923/p0602.py
cb72dd108a4760175c5a410dcd87b7e33136c627
[]
no_license
Jill-rong/practice-python
e60148294f59e256b70d531669ad86dcb0c92320
c8f44a3d3d8f5c2b87e36e171cc042d16350908a
refs/heads/master
2020-08-01T17:38:16.664386
2019-09-26T10:33:44
2019-09-26T10:33:44
211,063,114
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
a = input('請輸入:') print(a[0]) print(a[len(a)-1])
[ "you@example.com" ]
you@example.com
862e50035f6c13d3f48ac50c598fab378f1734e0
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/timing_point_in_journey_pattern.py
22366d74aaa3b679bdbaf7bc59fc9c56bf9ca822
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
373
py
from dataclasses import dataclass from .timing_point_in_journey_pattern_versioned_child_structure import TimingPointInJourneyPatternVersionedChildStructure __NAMESPACE__ = "http://www.netex.org.uk/netex" @dataclass class TimingPointInJourneyPattern(TimingPointInJourneyPatternVersionedChildStructure): class Meta:...
[ "chris@komposta.net" ]
chris@komposta.net
5f7d3b174e463bba868cbf3615002a82f700e4a7
cafefb0b182567e5cabe22c44578bb712385e9f5
/lib/gcloud/search/index.py
c9014b24817e8f19ade1e9fdffd86991f1fc12d3
[ "BSD-3-Clause" ]
permissive
gtaylor/evennia-game-index
fe0088e97087c0aaa0c319084e28b2c992c2c00b
b47f27f4dff2a0c32991cee605d95911946ca9a5
refs/heads/master
2022-11-25T20:28:23.707056
2022-11-07T17:47:25
2022-11-07T17:47:25
55,206,601
2
2
BSD-3-Clause
2018-04-19T05:41:12
2016-04-01T05:40:15
Python
UTF-8
Python
false
false
10,736
py
# Copyright 2015 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 by applicable law or a...
[ "snagglepants@gmail.com" ]
snagglepants@gmail.com
2308fad2814b489f253f4b87ca63706bb82054c9
dfbd3e12a7a7ed28c13715b2fa0c964d0745c8cb
/python/day04/solve.py
a0ee63dd7b81c99836e716257b0c5ef859f13a1f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ijanos/advent2017
3a90c479bf4f1689264576fb2c4468883458b911
db7ba6c3f2abbe206e47f25480c24d2bade709bb
refs/heads/master
2021-08-31T23:20:35.637440
2017-12-23T12:09:55
2017-12-23T12:09:55
112,766,905
1
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/usr/bin/env python3 import fileinput p1 = 0 p2 = 0 for line in fileinput.input(): line = line.strip().split() if len(set(line)) == len(line): p1 += 1 line = [''.join(sorted(word)) for word in line] if len(set(line)) == len(line): p2 += 1 print(f"Part 1: {p1}") print(f"Part 2: {p2...
[ "ijanos@gmail.com" ]
ijanos@gmail.com
5b891f3d735e0b91211908f1f7706d84e34478f9
88906fbe13de27413a51da917ebe46b473bec1b9
/Part-I/Chapter 6 - Dictionaries/favourite_languages.py
6c94cb510f855c612346614864fa12fd8c159746
[]
no_license
lonewolfcub/Python-Crash-Course
0b127e40f5029d84ad036263fd9153f6c88c2420
322388dfb81f3335eeffabcdfb8f9c5a1db737a4
refs/heads/master
2021-01-01T16:45:50.617189
2017-10-27T14:23:58
2017-10-27T14:23:58
97,911,584
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
# A dictionary of similar objects favourite_languages = { 'jen': 'python', 'sarah': 'c', 'edward': 'ruby', 'phil': 'python', } print("Sarah's favourite language is " + favourite_languages['sarah'].title() + ".")
[ "lonewolfcub020@gmail.com" ]
lonewolfcub020@gmail.com
9896a8d751a0cc983347cfab70f1606a7af16e7d
fa2fdfcf180507344be8de71da75af2fe72101b2
/train_and_run_experiments_bc.py
771396e09f5607ebe7f7628cd776c4f2b3cc08e2
[]
no_license
sarahwie/AttentionExplanation
48b49c1769324fe40015b8a96f862753f559e329
919fe5c710be5d1721ef1803cd46c731e1953088
refs/heads/master
2020-05-16T12:46:31.184833
2019-04-23T16:39:04
2019-04-23T16:39:04
183,055,153
1
0
null
2019-04-23T16:31:19
2019-04-23T16:31:19
null
UTF-8
Python
false
false
1,163
py
import argparse parser = argparse.ArgumentParser(description='Run experiments on a dataset') parser.add_argument('--dataset', type=str, required=True) parser.add_argument("--data_dir", type=str, required=True) parser.add_argument("--output_dir", type=str) parser.add_argument('--encoder', type=str, choices=['cnn', 'lstm...
[ "successar@gmail.com" ]
successar@gmail.com
051003ddbbd931a6739cad35f09979734ace6342
f5ffd566166948c4202eb1e66bef44cf55a70033
/openapi_client/model/single_taxonomy.py
218f06214ff6263cea99e00dd25b9ad43a1967fd
[]
no_license
skyportal/skyportal_client
ed025ac6d23589238a9c133d712d4f113bbcb1c9
15514e4dfb16313e442d06f69f8477b4f0757eaa
refs/heads/master
2023-02-10T02:54:20.757570
2021-01-05T02:18:03
2021-01-05T02:18:03
326,860,562
0
1
null
null
null
null
UTF-8
Python
false
false
8,666
py
""" Fritz: SkyPortal API SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ...
[ "profjsb@gmail.com" ]
profjsb@gmail.com
b2e460a9d9de520b845d05370218279875c2e09e
b76fa48d4931cbf926a2660ad7fb84c9b70f7e40
/venv/bin/pip
16348f15aa2d5ef6d948db31ed37151446b21c4f
[]
no_license
pydjango-dev/flask
e94ac2550f2d3df5c02348c31440e396f714747c
d2492c49a06587b377fa61eab26ae73e4ac96e4d
refs/heads/master
2022-04-12T11:35:43.737423
2020-04-07T11:18:32
2020-04-07T11:18:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
#!/Users/macair/PycharmProjects/Blog/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.e...
[ "mbrsagor@gmail.com" ]
mbrsagor@gmail.com
826972294e6a434d16ec6b57db5baf36e50f6c3f
13617cd87821cab9a4f0b1fb0a8355dfd145a43a
/CSW/csw_post_request.py
cba597d4d043f355c9dc3c7b105137a414bf190f
[ "GFDL-1.1-only", "MIT" ]
permissive
petercunning/notebook
a84acf2ba22c053cf2dfd912387ab66dfe1668c7
5b26f2dc96bcb36434542b397de6ca5fa3b61a0a
refs/heads/master
2021-01-15T03:54:00.227967
2020-02-25T00:02:23
2020-02-25T00:02:23
242,869,782
0
0
MIT
2020-02-24T23:56:41
2020-02-24T23:56:40
null
UTF-8
Python
false
false
13,391
py
# coding: utf-8 # # Try some "RAW" requests to pycsw # In[1]: import requests, json # In[2]: headers = {'Content-Type': 'application/xml'} # ### Try apiso:serviceType query # In[3]: input = ''' <csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:x...
[ "rsignell@usgs.gov" ]
rsignell@usgs.gov
2ca58914081b89507b7e4b2db63b231eb16c13dc
5a113e0758da14ccf3e7f4b6b0eb3abddd4adf39
/tests/test_models/test_user.py
abb3c1ef9d5527f2de5cbc1764f4e25d0ee323bd
[]
no_license
Esteban1891/AirBnB_clone
22a64c45d1e0c997c842ae907ea216ab662639fd
5860cf7ae43afe6e2fee96be60fcfb0b67d1d2fc
refs/heads/master
2022-11-30T06:41:54.718592
2020-08-13T22:58:50
2020-08-13T22:58:50
275,320,501
5
7
null
null
null
null
UTF-8
Python
false
false
1,734
py
#!/usr/bin/python3 """Module for test User class""" import unittest import json import pep8 import datetime from models.user import User from models.base_model import BaseModel class TestUser(unittest.TestCase): """Test User class implementation""" def test_doc_module(self): """Module documentation""...
[ "esteban.delahoz15@gmail.com" ]
esteban.delahoz15@gmail.com
21922a99ad639c61627562fe098fa13350d8bffa
dc54a813f0e5d3b1ea44b38e10f8e5f8ef4764d4
/sciwing/api/api.py
22b7a61170cfdaa45f4dcf65700bbe3d6c5ec570
[ "MIT" ]
permissive
dragomirradev/sciwing
fc0a33b25d19ea0e11170e4930442eb0f8d05da4
b3f4e6831b2dadf20e3336821ca8d50db1248ee7
refs/heads/master
2022-04-18T14:03:31.275169
2020-04-13T04:48:44
2020-04-13T04:48:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
import sciwing.api.conf as config from fastapi import FastAPI from sciwing.api.routers import parscit from sciwing.api.routers import citation_intent_clf app = FastAPI() @app.get("/") def root(): return {"message": "Welcome To SciWING API"} # add the routers to the main app app.include_router(parscit.router) a...
[ "abhinav@comp.nus.edu.sg" ]
abhinav@comp.nus.edu.sg
b2192129c1bf5e2df3ed5fee141a2932e0af8440
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R2/benchmark/startQiskit335.py
99346e8c0d944fc6842431c4a000ef35f61d00ed
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
7,145
py
# qubit number=3 # total number=66 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5da9e788a3db46e978e8273bd81283efdec746fe
b6b04c3bc6afe61e3c3128f552417091c451ba69
/flink-ml-python/pyflink/examples/ml/feature/elementwiseproduct_example.py
2dd8ffff654fb21c9023ca110ebb26cfa02623ee
[ "Apache-2.0" ]
permissive
apache/flink-ml
d15365e1b89b82eb451b99af0050d66dff279f0c
5619c3b8591b220e78a0a792c1f940e06149c8f0
refs/heads/master
2023-08-31T04:08:10.287875
2023-08-24T06:40:12
2023-08-24T06:40:12
351,617,021
288
85
Apache-2.0
2023-09-07T08:03:42
2021-03-26T00:42:03
Java
UTF-8
Python
false
false
2,548
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...
[ "noreply@github.com" ]
apache.noreply@github.com
9d110fbcb12c9f90b00998d9551a69ce4a763ec7
fd67592b2338105e0cd0b3503552d188b814ad95
/test/test_models/test_catalog.py
b7209c829133250b36b1bc84e473cacaa134d2c9
[]
no_license
E-goi/sdk-python
175575fcd50bd5ad426b33c78bdeb08d979485b7
5cba50a46e1d288b5038d18be12af119211e5b9f
refs/heads/master
2023-04-29T20:36:02.314712
2023-04-18T07:42:46
2023-04-18T07:42:46
232,095,340
5
2
null
null
null
null
UTF-8
Python
false
false
5,014
py
# coding: utf-8 """ APIv3 (New) # Introduction This is our new version of API. We invite you to start using it and give us your feedback # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We've created a developer focused portal to give your organiza...
[ "integrations@e-goi.com" ]
integrations@e-goi.com
95dcb275b4a638f2ba8f0094654be362d6d3ae3f
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/KoubeiCateringPosDishcateTransferModel.py
095ca8346512b61fba41d3997f22f02f7c9433ae
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,652
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KoubeiCateringPosDishcateTransferModel(object): def __init__(self): self._cate_id = None self._cook_id = None self._dish_ids = None self._shop_id = None @prop...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
da2db0a6d1935e5fd45ba13f2ae2e27b96afb0b0
090324db0c04d8c30ad6688547cfea47858bf3af
/soko/perception/policy.py
bb1cb833033df50bbc170434ebf153d81461f29b
[]
no_license
fidlej/sokobot
b82c4c36d73e224d0d0e1635021ca04485da589e
d3d04753a5043e6a22dafd132fa633d8bc66b9ea
refs/heads/master
2021-01-21T13:14:29.523501
2011-06-12T07:34:14
2011-06-12T07:34:14
32,650,745
1
0
null
null
null
null
UTF-8
Python
false
false
3,752
py
import logging from soko.solver.solver import Solver from soko.perception import perceiving, saving from libctw import factored, modeling class PerceptSolver(Solver): """A sokoban solver. It converts the seen states to a sequence of bits. It then predicts the next action to take. It is used to show...
[ "ivo@danihelka.net" ]
ivo@danihelka.net
75f7278194a9195bc7423d26c1cab9ce1d07c3a7
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/11_动态规划/dp优化/kitamasa法.py
38f9a2c16abdaad119175126f6cd40ebaaf09584
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,638
py
# 常系数线性递推 # https://tjkendev.github.io/procon-library/python/series/kitamasa.html # !O(k^2logn) 求线性递推式的第n项 (比矩阵快速幂快一个k) # 線形漸化式 dp[i+k] = c0*dp[i] + c1*dp[i+1] + ... + ci+k-1*dp[i+k-1] (i>=0) の第n項を求める # C: 系数 c0,c1,...,ci+k-1 # A: dp[0]-dp[k-1] 初始值 # n: 第n项 from typing import List MOD = int(1e9 + 7) ...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
1cff3f3f0a3735895b7b13a5a9cfffbe43591a22
9c0f26c54cd36139758993fc8310345596373e15
/pyatmos/utils/atmosphere.py
f979e70516960e0a2066208ec2d7de606e4af22a
[ "BSD-3-Clause" ]
permissive
214929177/pyatmos
e02f5e2fe040e8a1738c833586b23a62d9657a0b
433a5055077e211dc3f34c2a2b65bee24b8e8e4b
refs/heads/master
2022-04-20T20:02:59.594669
2020-04-15T17:21:19
2020-04-15T17:21:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,674
py
""" Contains the following atmospheric functions: - density = atm_density(alt, mach) - mach = atm_mach(alt, velocity) - velocity = atm_velocity(alt, mach) - pressure = atm_pressure(alt) - temperature = atm_temperature(alt) - sos = atm_speed_of_sound(alt) - mu = atm_dynamic_viscosity_mu(alt) - nu = atm_kinemati...
[ "mesheb82@gmail.com" ]
mesheb82@gmail.com
32e09174565a44e786fa360e7af4bf2209769ac7
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2722/60618/263228.py
b160da742780d937979025c0c44bdfcdabe7989e
[]
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
106
py
t=int(input()) for i in t: n=input() if n%5==0: print("YES") else: print("NO")
[ "1069583789@qq.com" ]
1069583789@qq.com
9fe0d3081bfd6bb1753c83a2b2f171503339a041
52b5773617a1b972a905de4d692540d26ff74926
/.history/Nesting_20200908173521.py
5169bca441ee68541cce697351971411928c70bf
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
def nesting(S): # first print(nesting("(()"))
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
307d7db79493210adf18a3116db90a72fbcf7642
1279908d488776ef1450492f0995e1bd48c99767
/.history/app_20210728170028.py
56fb63ebb031b38348b9cdfc6656f0a9ec0a72ab
[]
no_license
tritchlin/sqlalchemy-challenge
249ed221daab1e148209904aa1544a924ce6a344
5d9288b516a1ab68bd6af16c98ca5c1170d3b927
refs/heads/main
2023-06-25T23:27:10.175847
2021-07-29T06:35:04
2021-07-29T06:35:04
388,950,398
0
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
from flask import Flask, jsonify from flask_sqlalchemy import SQLAlchemy import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func # import climate_flask_data.py as querydata app = Flask(__name__) app.config['Hawaii']='sqlite:///haw...
[ "annylin@gmail.com" ]
annylin@gmail.com
582acb3bcfdc0d636dfcd9571a7b4b463d749705
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r10p1/Gen/DecFiles/options/23123011.py
c22ed6aed9a114cbc62b3916ee36b83d4b2a3b8e
[]
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
748
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/23123011.py generated: Wed, 25 Jan 2017 15:25:37 # # Event Type: 23123011 # # ASCII decay Descriptor: [D_s+ -> pi- e+ e+]cc # from Configurables import Generation Generation().EventType = 23123011 Generation().SampleGenerationTool = "SignalPlain" from ...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
d0cfda9b9e6f2e6f19df057e89736ab28b36d573
c1edf63a93d0a6d914256e848904c374db050ae0
/Python/黑客攻防/破解/dictionary.py
909018a1cd432c05322b59a1d4b38474cb25f02d
[]
no_license
clhiker/WPython
97b53dff7e5a2b480e1bf98d1b2bf2a1742cb1cd
b21cbfe9aa4356d0fe70d5a56c8b91d41f5588a1
refs/heads/master
2020-03-30T03:41:50.459769
2018-09-28T07:36:21
2018-09-28T07:36:21
150,703,520
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
import itertools as its import time def main(): a = time.time() word = "abcdefghijklmnopqrstuvwxyz" r = its.product(word, repeat=6) dic = open("dictionary.txt", "a") for i in r: dic.write("".join(i)) b = time.time() print(b-a) dic.close() main()
[ "1911618290@qq.com" ]
1911618290@qq.com
9d1d0d94f750d498a91dd81d6d464c609ac9368c
eb19f68b76ab16375a096c06bf98cf920c8e7a0c
/src/tracking1.py
ab06f2fc4b87671ddc02529d29cd626c4a85187b
[]
no_license
YerongLi/statistical-connectomes
a9869d918761b05bcd9980a0b4d36205673d582e
7519289c2f26314d88149e878125042021cea07d
refs/heads/master
2020-04-09T03:53:42.754095
2018-12-02T01:03:19
2018-12-02T01:03:19
160,001,525
0
0
null
null
null
null
UTF-8
Python
false
false
6,242
py
""" ==================== Tracking Quick Start ==================== This example shows how to perform fast fiber tracking using DIPY_ [Garyfallidis12]_. We will use Constrained Spherical Deconvolution (CSD) [Tournier07]_ for local reconstruction and then generate deterministic streamlines using the fiber directions (p...
[ "yerong.li@outlook.com" ]
yerong.li@outlook.com
549fcc281ee7b1ff3519de8b8882f35c1e72e4de
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_animations.py
02af88c871ee685813138b37592a71c92dd2f001
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#calss header class _ANIMATIONS(): def __init__(self,): self.name = "ANIMATIONS" self.definitions = animation self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['animation']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1f0f22bcce72ff8ae6781b02b4e85005590893ab
15592893bd1871bfeb1cdb4741523894cf32cf67
/python_fundamentals/bubblesort.py
accec854cbab91b213adf4927d6494e188eeb934
[]
no_license
philmccormick23/Learning-Python
b07758d2bb310e617991a13230b257a71c3c2510
5a06c5155941816ce3e61d262ae5779ae2899196
refs/heads/master
2020-04-08T08:50:03.749946
2018-11-26T16:01:27
2018-11-26T16:01:27
159,195,744
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
arr=[8,3,5,1,2,0] def bubbleSort(arr): for j in range(len(arr)-1): for i in range(len(arr)-1-j): if(arr[i]>arr[i+1]): arr[i],arr[i+1]=arr[i+1],arr[i] return arr print(bubbleSort([8,3,5,1,2,0]))
[ "phillipmccormick@Phillips-MacBook-Pro.local" ]
phillipmccormick@Phillips-MacBook-Pro.local
42f89f949b1d952ff7a39e2b92955b2ee6d2e7ee
2987124e4fc79943021596adf0b605d3b9ce5a3b
/models/05_irs.py
4b0071b13acb48a7ff3ebcb47d54d0998693bda2
[ "MIT" ]
permissive
abhishekarora9/eden
4ff1fe022264fee5f972295b3d7d6662b6df3515
be6c3e22eefd61bfd4cc54af392aed2404184e37
refs/heads/master
2021-05-26T20:09:33.936000
2011-12-27T23:23:16
2011-12-27T23:23:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,717
py
# -*- coding: utf-8 -*- """ Incident Reporting System - Model @author: Sahana Taiwan Team @author: Fran Boon """ if deployment_settings.has_module("irs"): # Staff as component of Incident Reports if deployment_settings.has_module("vehicle"): link_table = "irs_ireport_vehicle_human_resource" ...
[ "fran@aidiq.com" ]
fran@aidiq.com
71784b9871d44330a0d1df8c0e7409643afef6bf
4436277af74df812490a42f33deccfcf218e25f8
/backend/wallet/migrations/0001_initial.py
f2c922540416302dee4c799fa0921b7c911673d0
[]
no_license
crowdbotics-apps/lunchbox-25105
308c49dcc77383ee8f11b25207f4b94e452f618e
21de4ca0cbad83a09ec5e28a99ccc3dc1fc3dbeb
refs/heads/master
2023-03-15T09:50:00.100961
2021-03-18T18:53:30
2021-03-18T18:53:30
349,182,205
0
0
null
null
null
null
UTF-8
Python
false
false
6,258
py
# Generated by Django 2.2.19 on 2021-03-18 18:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ("task_profile", "0001_initial"), ("task", "0001_initial"), ] operations = [ mig...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
575352ef768eea3f97b304e28386e9a5188da6ef
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02258/s967893517.py
fef386565550a9bfb1823e41855b7904dda27051
[]
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
757
py
n = int(input()) R = [] for i in range(n): R.append(int(input())) kouho = set() diff_max = None for (i, rt) in enumerate(R): if i == 0: rt_min = rt else: if rt < rt_min and not (diff_max is None): kouho.add(diff_max) diff_max = None rt_min = rt ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f79ea22c3b37f1ac9e6301b576168361eecb66b3
7bead245354e233f76fff4608938bf956abb84cf
/test/test_page_conversion_result.py
79bca57ea61ab579fcc7be32e07b455a76551754
[ "Apache-2.0" ]
permissive
Cloudmersive/Cloudmersive.APIClient.Python.Convert
5ba499937b9664f37cb2700509a4ba93952e9d6c
dba2fe7257229ebdacd266531b3724552c651009
refs/heads/master
2021-10-28T23:12:42.698951
2021-10-18T03:44:49
2021-10-18T03:44:49
138,449,321
3
2
null
null
null
null
UTF-8
Python
false
false
1,011
py
# coding: utf-8 """ convertapi Convert API lets you effortlessly convert file formats and types. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import cloudmersive_convert_api_...
[ "35204726+Cloudmersive@users.noreply.github.com" ]
35204726+Cloudmersive@users.noreply.github.com
89db78394769d2f53cdc241dbc7981412dde67f7
2d14aa082e33f3c9d2344ea6811a5b18ec906607
/skdecide/discrete_optimization/rcpsp/solver/cp_solvers.py
0e6d401ed2b4eb7947aac1cc87f569ee91c950c7
[ "MIT" ]
permissive
walter-bd/scikit-decide
4c0b54b7b2abdf396121cd256d1f931f0539d1bf
d4c5ae70cbe8b4c943eafa8439348291ed07dec1
refs/heads/master
2023-07-30T14:14:28.886267
2021-08-30T14:16:30
2021-09-03T06:46:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
36,649
py
# Copyright (c) AIRBUS 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. from __future__ import annotations from dataclasses import InitVar from typing import Union, List from skdecide.discrete_optimization.generic_tools.cp_...
[ "guillaume.alleon@gmail.com" ]
guillaume.alleon@gmail.com
bc7ad62bc0617a78f8aefb15b880c4de8926bd23
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/171/usersdata/269/82030/submittedfiles/decimal2bin.py
685e2ff066c0cea09273c3191d603c291bc3306a
[]
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
245
py
# -*- coding: utf-8 -*- binario=int(input('digite the fucking binario: ')) a=0 b=binario while binario>0: binario=binario//10 a=a+1 c=1 d=0 for i in range(0,a,1): decimal=b//10**c d=decimal*(2**i)+d c=c+1 print(d)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8eea73a4817b583b59e9ae72e614c0630731fafb
dcddc234eea906c63553f6495e182e44f3e8431d
/forum/migrations/0001_initial.py
5ec4c7773023cc10c07b7d6d003e4cc6ea318831
[ "MIT" ]
permissive
Kromey/akwriters
53e648e1cc4c0970c843c9b426d0e7de21c9eabb
72812b5f7dca3ad21e6e9d082298872b7fa607b9
refs/heads/master
2022-03-08T00:57:42.232126
2021-07-21T15:23:33
2021-07-21T15:23:33
28,463,802
0
0
MIT
2022-02-10T08:06:49
2014-12-24T22:41:56
JavaScript
UTF-8
Python
false
false
2,238
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-01-20 01:11 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "travisvz@gmail.com" ]
travisvz@gmail.com
daa206411acf7dd63ef2ac0a7f67334f0de62493
6146d080087b21e36347408eea76598f4691ed67
/code/1112/2383.py
d2e70847a9ef9a11958d0d8c95a94edf7d85889f
[]
no_license
banggeut01/algorithm
682c4c6e90179b8100f0272bf559dbeb1bea5a1d
503b727134909f46e518c65f9a9aa58479a927e9
refs/heads/master
2020-06-27T14:07:51.927565
2019-12-19T03:48:30
2019-12-19T03:48:30
199,800,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,576
py
# 2383.py [모의 SW 역량테스트] 점심 식사시간 import sys sys.stdin = open('2383input.txt', 'r') def getTime(t, l): # t: 사람-입구 거리 배열, l: 계단길이 for idx in range(len(t)): if idx < 3: t[idx] += l else: if t[idx - 3] > t[idx]: t[idx] = t[idx - 3] + l else: ...
[ "genie121110@gmail.com" ]
genie121110@gmail.com
b186151473ccd843ebb0867eb5d9584dbb5d852d
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/yosinski_deep-visualization-toolbox/deep-visualization-toolbox-master/misc.py
ed1ee755e93c924c466045c1232ccace4c7d6ee6
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
1,272
py
#! /usr/bin/env python import os import time import errno class WithTimer: def __init__(self, title = '', quiet = False): self.title = title self.quiet = quiet def elapsed(self): return time.time() - self.wall, time.clock() - self.proc def enter(self): '''Manual...
[ "659338505@qq.com" ]
659338505@qq.com
67122d17e933488f9e88e64701632d1088a4001e
31c9cd96667166ac4af15ce8b48753167da3084d
/sorting/bubble_sort.py
1c21807ac98a7e18e5e4c1b990067d0c11664874
[]
no_license
vitorponce/algorithms
a8e305e32e38bbb2f473dc07c0e93bdf6a10fde0
87d5f3e3110394d21844b7f3a17468e01a366e83
refs/heads/master
2022-06-17T04:04:18.757909
2020-05-04T03:03:09
2020-05-04T03:03:09
259,844,564
1
0
null
2020-05-04T03:04:54
2020-04-29T06:34:52
Python
UTF-8
Python
false
false
1,717
py
def bubble_sort(input_list): """ The smallest element bubbles to the correct position by comparing adjacent elements. For each iteration, every element is compared with its neighbor and swapped if they arent in the right order. Smallest elements 'bubble' to the beginning of the list. At ...
[ "johneshiver@gmail.com" ]
johneshiver@gmail.com
71581e2aa28a19aa508f908fff09ae9da3e41017
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_connoisseur.py
f2ebfdee7349c5f0eb2d9d637ed4b4d9b3670125
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
#calss header class _CONNOISSEUR(): def __init__(self,): self.name = "CONNOISSEUR" self.definitions = [u'a person who knows a lot about and enjoys one of the arts, or food, drink, etc. and can judge quality and skill in that subject: '] self.parents = [] self.childen = [] self.properties = [] self.json...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4e9f69d87e835061a181778d25e5810c1fdb12f4
dccf1fea8d62764b8c51259671f9b61d36196d41
/quiz/tests/test_views.py
3206b640c985d6489348d1011b7e9a68160df405
[ "MIT" ]
permissive
Palombredun/django_quiz
e4594852c2709a9c6c58a96cc210f3f3dc1a282b
1565d251d54dfb54fdee83096b560876833275a2
refs/heads/master
2021-07-08T23:11:23.157677
2021-01-13T14:26:31
2021-01-13T14:26:31
224,863,683
0
0
null
2019-11-29T13:53:50
2019-11-29T13:53:50
null
UTF-8
Python
false
false
3,013
py
import datetime import pytest from pytest_django.asserts import assertTemplateUsed from django.contrib.auth.models import User from quiz.models import Category, SubCategory, Quiz, Statistic, Question, Grade ### FIXTURE ### @pytest.fixture def user_A(db): return User.objects.create_user( username="A",...
[ "baptiste.name" ]
baptiste.name
a3c84c720bb0bc8a3ec2921c600f975aaed6f1b8
20b4be7df5efeb8019356659c5d054f29f450aa1
/tools/indicators/build_indicators.py
16a8d1caeb8619580fb4836cc6c8c4cbb50269bb
[ "Apache-2.0" ]
permissive
kumars99/TradzQAI
75c4138e30796573d67a5f08d9674c1488feb8e4
1551321642b6749d9cf26caf2e822051a105b1a5
refs/heads/master
2020-03-29T20:14:45.562143
2018-09-25T16:07:21
2018-09-25T16:07:21
150,302,554
1
0
null
2018-09-25T17:17:54
2018-09-25T17:17:54
null
UTF-8
Python
false
false
3,553
py
import pandas as pd from tools.indicators.exponential_moving_average import exponential_moving_average as ema from tools.indicators.volatility import volatility as vol from tools.indicators.stochastic import percent_k as K from tools.indicators.stochastic import percent_d as D from tools.indicators.relative_strength_i...
[ "awakeproduction@hotmail.fr" ]
awakeproduction@hotmail.fr
3e78cd5beb2f40b2d302957a40cda8debb722657
84f8696f6f4c9f785615211fe1a746c3ac5b6996
/fish_proc/utils/demix.py
aab6d2425221e6340e2ed4d005b33857aa250edf
[]
no_license
zqwei/fish_processing
48a5494b92a2568bd6393685adfa465a6fe05cdb
53251f4dc3698285873f7c58e4dd4cfaf030375a
refs/heads/master
2021-09-21T06:51:35.874171
2021-08-16T19:39:34
2021-08-16T19:39:34
117,905,371
2
1
null
2021-08-16T19:39:34
2018-01-17T23:30:06
Python
UTF-8
Python
false
false
9,382
py
''' A set of posthoc processing from demix algorithm ------------------------ Ziqiang Wei @ 2018 weiz@janelia.hhmi.org ''' from ..demix.superpixel_analysis import * import numpy as np def pos_sig_correction(mov, axis_): return mov - (mov).min(axis=axis_, keepdims=True) def recompute_C_matrix_sparse(sig, A): ...
[ "weiz@janelia.hhmi.org" ]
weiz@janelia.hhmi.org
6a77109c6aa14b0e717e99865a97ceffd8cda1c1
09e5ce9673590f7ca27c480da605199a6d054a63
/modules/highscore.py
3daff9734d8b6c7a31ec3c42d9c75b6f9f816fd8
[]
no_license
KirillMysnik/PySnake
781d7767cbb404033b608d15427e9e7996cc71d6
3fe1edc20248f20029413a31d88f673411374faf
refs/heads/master
2021-01-13T09:46:00.622694
2016-09-28T14:52:14
2016-09-28T14:52:14
69,473,624
1
1
null
null
null
null
UTF-8
Python
false
false
1,698
py
from modules.delays import Delay from modules.gui import TextLabel from internal_events import InternalEvent LABEL_COLOR = (255, 255, 255) HIGHSCORE_LABEL_CAPTION = "score: {score}" HIGHSCORE_LABEL_X = 64 HIGHSCORE_LABEL_Y = 64 TIME_LABEL_CAPTION = "elapsed: {seconds}s" TIME_LABEL_X = 64 TIME_LABEL_Y = 100 app_ = No...
[ "kirill@mysnik.com" ]
kirill@mysnik.com
fb58449531e8d4d38e17ea8628b285f48a6c86ad
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/153/153.find-minimum-in-rotated-sorted-array.250607228.Accepted.leetcode.py
86c48a645e1a8abbc02eb311cb58e81777442548
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
378
py
class Solution(object): def findMin(self, nums): if nums[0] <= nums[-1]: return nums[0] left, right = 0, len(nums) - 1 while left + 1 < right: mid = (left + right) // 2 if nums[left] >= nums[mid]: right = mid else: ...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
f7e66124cfb611cfdde05053e6b48a4ce7dff2fd
efd30b0ba0fd4d8c9e4ababe8113ba5be08319f2
/parkings/migrations/0015_fill_normalized_reg_nums.py
9f8b7a05457ba264cae61e627952374292b9a03d
[ "MIT" ]
permissive
City-of-Helsinki/parkkihubi
3f559ef047592c5321b69c52474fc23a5eae0603
24751065d6e6cd68b89cd2a4358d51bdfc77cae6
refs/heads/master
2023-07-20T12:52:43.278380
2023-05-10T07:46:38
2023-05-10T07:46:38
75,084,288
14
15
MIT
2023-07-20T12:52:08
2016-11-29T13:32:13
Python
UTF-8
Python
false
false
838
py
from __future__ import unicode_literals from django.db import migrations from django.db.models import Q from ..models import Parking def fill_normalized_reg_nums(apps, schema_editor): parking_model = apps.get_model('parkings', 'Parking') parkings_to_process = parking_model.objects.filter( Q(normaliz...
[ "tuomas.suutari@anders.fi" ]
tuomas.suutari@anders.fi
6c351742ccd9c3c58c9a7048ff2f0434e916f76c
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/019/Solution.py
77b23c403e0c7749e27a5927c92d8dbf83f175dd
[]
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,040
py
""" Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Follow up: Could you do this in one pass? """ # Defini...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
fb785b48dbc3883bf3983cf9a771dd2f9a6bb328
4a44d785d19f23033ec89775c8219a2f8275a4dd
/cride/circles/admin.py
a7031ba8c50be95f1f6624a720fbf3187af1f7ce
[ "MIT" ]
permissive
mdark1001/crideApiRest
d17989dfb650eb799c44c57d87f3e0cec8fc647b
228efec90d7f1ad8a6766b5a8085dd6bbf49fc8a
refs/heads/main
2023-04-09T23:27:09.931730
2021-04-19T13:46:44
2021-04-19T13:46:44
357,706,873
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
from django.contrib import admin # Register your models here. from .models import Circle @admin.register(Circle) class CircleAdmin(admin.ModelAdmin): list_display = ['name', 'is_verified', 'is_public', 'rides_taken', 'rides_offered'] list_filter = ['created', 'is_verified', 'is_public','is_limited']
[ "miguel.cabrera.app@gmail.com" ]
miguel.cabrera.app@gmail.com
2d8e282e4ff5217cf1139f3a412e41342844571a
278a000f8b40476b5d1473cc1b98d5872551cab2
/test_sphere_volume.py
cb30c89536569a7350adecec0fb65901984d43cd
[]
no_license
Kaliumerbol/kaliev_erbol_hw_2.6
172eb765a9cd5be8f8a9dc4f28e3fc258e5d92d9
5ea5fa98baf10d467a287da435f40e796c2594c3
refs/heads/main
2023-06-05T15:44:51.723761
2021-06-29T10:51:01
2021-06-29T10:51:01
381,329,097
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
import unittest import math from sphere_volume import calculate_sphere_volume pi = math.pi class TestSphereVolume(unittest.TestCase): def test_area(self): self.assertAlmostEqual(calculate_sphere_volume(5), 4/3*pi*5**3) self.assertAlmostEqual(calculate_sphere_volume(3.7), 4/3*pi*3.7**3) s...
[ "you@example.com" ]
you@example.com
924fcb51f482e997c837a79f2363ad5b113136aa
03195a6f98396fd27aedc3c06d81f1553fb1d16b
/pandas/tests/series/methods/test_rename.py
90c8f775586e6d8a3b4fbc61dfc9c8334d7b3417
[ "BSD-3-Clause" ]
permissive
huaxz1986/pandas
a08d80d27726fe141d449835b9a09265bca5b5e0
ba2473834fedcf571d3f8245b4b24796873f2736
refs/heads/master
2023-06-11T02:20:14.544220
2022-01-12T04:40:06
2022-01-12T04:40:06
131,370,494
3
4
BSD-3-Clause
2018-04-28T03:51:05
2018-04-28T03:51:05
null
UTF-8
Python
false
false
4,450
py
from datetime import datetime import numpy as np import pytest from pandas import ( Index, MultiIndex, Series, ) import pandas._testing as tm class TestRename: def test_rename(self, datetime_series): ts = datetime_series renamer = lambda x: x.strftime("%Y%m%d") renamed = ts.r...
[ "noreply@github.com" ]
huaxz1986.noreply@github.com
ab3e2eb43508d9f342a4113bbe93ea6f50279af2
63255cf9da84b5dd6aa4454dd50385d50c43aac9
/tencent/sort_and_search/search.py
7ed8bafa2fc87c9642650340c00b88a538a669e8
[ "MIT" ]
permissive
summer-vacation/AlgoExec
d37054e937b7e3cc4c0f76019cf996acb0fb5a34
55c6c3e7890b596b709b50cafa415b9594c03edd
refs/heads/master
2021-07-09T12:18:51.532581
2020-12-20T13:46:43
2020-12-20T13:46:43
223,929,183
1
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
# -*- coding: utf-8 -*- """ File Name: search Author : jing Date: 2020/3/19 https://leetcode-cn.com/explore/interview/card/tencent/224/sort-and-search/927/ 搜索旋转排序数组 O(log n) """ class Solution: def search(self, nums, target: int) -> int: if nums is None or len(nums...
[ "280806137@qq.com" ]
280806137@qq.com
2ad5fa16421f87f656519643af8a3217cfecc11c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_145/223.py
c67f0e3c81cc4903f6cdce8da4043c6407e2bad7
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
#!/usr/bin/env pypy # -*- coding: utf-8 -*- # google code jam - c.durr - 2014 # Part Elf # https://code.google.com/codejam/contest/3004486/dashboard # # from math import * from sys import * from fractions import * def readint(): return int(stdin.readline()) def readarray(f): return map(f, stdin.read...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
385a5bafa117ea93e64ca3733a3337a00c47b93e
d24cef73100a0c5d5c275fd0f92493f86d113c62
/SRC/tutorials/adaptive.py
a1b03746e2aa8e81ec7c3f1153c3136a05f080a9
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
rlinder1/oof3d
813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee
1fb6764d9d61126bd8ad4025a2ce7487225d736e
refs/heads/master
2021-01-23T00:40:34.642449
2016-09-15T20:51:19
2016-09-15T20:51:19
92,832,740
1
0
null
null
null
null
UTF-8
Python
false
false
6,624
py
# -*- python -*- # $RCSfile: adaptive.py,v $ # $Revision: 1.14.2.6 $ # $Author: langer $ # $Date: 2014/09/27 22:34:44 $ # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities as...
[ "faical.congo@nist.gov" ]
faical.congo@nist.gov
0d66bfb2e2f61e6192594453d928317bed7f64d2
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/MAzBohC2PxchT3wqK_13.py
a37c09d7d848225a334c7b4bb512adb1efefa6cd
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
def shadow_sentence(a, b): alist, blist = a.split(' '), b.split(' ') if len(alist) != len(blist): return False j = -1 for word in alist: j += 1 if len(word) != len(blist[j]): return False i = -1 for word in blist: i += 1 for letter in word: if letter in alist[i]: ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
164b25b05085c828e869ca41bbabfa5671265b28
4cf3f8845d64ed31737bd7795581753c6e682922
/.history/main_20200118153116.py
17842057b52a9388e5ecd34d985ca161511000dd
[]
no_license
rtshkmr/hack-roll
9bc75175eb9746b79ff0dfa9307b32cfd1417029
3ea480a8bf6d0067155b279740b4edc1673f406d
refs/heads/master
2021-12-23T12:26:56.642705
2020-01-19T04:26:39
2020-01-19T04:26:39
234,702,684
1
0
null
2021-12-13T20:30:54
2020-01-18T08:12:52
Python
UTF-8
Python
false
false
301,331
py
from telegram.ext import Updater, CommandHandler import requests import re # API call to source, get json (url is obtained): contents = requests.get('https://random.dog/woof.json').json() image_url = contents['url'] def get_url(): contents = requests.get('https://random.dog/woof.json').json() url = cont...
[ "ritesh@emerald.pink" ]
ritesh@emerald.pink
01eb27b1efe1e94dc35839dd99988ef3512c19f4
6584124fee86f79ce0c9402194d961395583d6c3
/blog/migrations/0005_userprofile.py
741df13e8b0ed00bd33880271c9c54062c148c8f
[]
no_license
janusnic/webman
fdcffb7ed2f36d0951fd18bbaa55d0626cd271e1
2e5eaadec64314fddc19f27d9313317f7a236b9e
refs/heads/master
2018-12-28T18:21:00.291717
2015-06-05T11:49:00
2015-06-05T11:49:00
35,676,834
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0004_auto_20150522_1108'), ] ...
[ "janusnic@gmail.com" ]
janusnic@gmail.com
efb302e6899348b8a39d8588818d325e6a0f9ada
1d1a21b37e1591c5b825299de338d18917715fec
/Mathematics/Data science/Mathmatics/02/Exercise_2_4_5.py
4c1094e1a0624eace4209363bf4bc2727406716d
[]
no_license
brunoleej/study_git
46279c3521f090ebf63ee0e1852aa0b6bed11b01
0c5c9e490140144caf1149e2e1d9fe5f68cf6294
refs/heads/main
2023-08-19T01:07:42.236110
2021-08-29T16:20:59
2021-08-29T16:20:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
# 보스턴 집값 문제는 미국 보스턴내 각 지역(town)의 주택 가격을 그 지역의 범죄율이나 공기 오염도 등의 특징 # 을 사용하여 예측하는 문제다. Scikit-Learn 패키지에서 임포트할 수 있다. 보스턴 집값 문제를 선형 예측모형 # Ax = b_hat로 풀었을 때의 가중치 벡터 를 구하라. 행렬과 벡터 데이터는 다음과 같이 얻을 수 있다. 여기에서는 # 문제를 간단하게 하기 위해 입력 데이터를 범죄율(CRIM), 공기 오염도(NOX), 방의 개수(RM), 오래된 정도 # (AGE)의 4종류로 제한했고 데이터도 4개만 사용했다 import numpy ...
[ "jk04059@naver.com" ]
jk04059@naver.com
93dab5e033bf2be71722860d57e80346b770aa7b
3b1daac7c1f72b985da899770d98e5f0e8fb835c
/Configurations/VBS/2017CR_v7/variables.py
695bd91e5fdd8c45254bfdcdab37fb9d9235b46a
[]
no_license
freejiebao/PlotsConfigurations
7e10aa45aa3bf742f30d1e21dc565d59d2a025d8
cdfd3aff38d1ece9599a699997753bc8ba01b9b1
refs/heads/master
2020-06-18T19:22:00.561542
2019-09-02T12:52:28
2019-09-02T12:52:28
186,931,874
0
0
null
2019-05-16T01:58:07
2019-05-16T01:58:07
null
UTF-8
Python
false
false
5,363
py
# variables #variables = {} #'fold' : # 0 = not fold (default), 1 = fold underflowbin, 2 = fold overflow bin, 3 = fold underflow and overflow # variables['events'] = { 'name': '1', # 'range' : (1,0,2), # 'xaxis' : 'events', # 'fold' : 3 # } variables['nJet'] = { 'name': 'nJet', 'range...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
4655a05a2e59738d661f9702526dbfdea1f20f57
ce083128fa87ca86c65059893aa8882d088461f5
/python/flask-webservices-labs/graphene/graphene/types/mutation.py
fe15f6a2daa5be2a7b09b6fd4419a7e2f2e88fd1
[ "MIT" ]
permissive
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
2,892
py
from collections import OrderedDict from ..utils.get_unbound_function import get_unbound_function from ..utils.props import props from .field import Field from .objecttype import ObjectType, ObjectTypeOptions from .utils import yank_fields_from_attrs from ..utils.deprecated import warn_deprecation # For static type ...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
fc768d86e67ffc89d1d24ffed58e0444d7d7b40f
01fc3bd7098dd265a78dcf23c08f427a59581dd3
/src/prosestats/stats.py
4988679a238bb6f0a0baadab6ab16ec4a26ccb0c
[]
no_license
rosspeckomplekt/textual-analogy-parsing
68ba0a6e259d26059552eb8a5082c38890a43a32
d60bdfd1d7c69bb28a16ee69c99a4f9c53044c1e
refs/heads/master
2020-12-09T10:21:30.208376
2018-12-06T16:57:45
2018-12-06T16:57:45
233,275,236
1
0
null
2020-01-11T18:06:47
2020-01-11T18:06:46
null
UTF-8
Python
false
false
12,237
py
from collections import defaultdict, Counter import numpy as np import scipy.stats as scstats def invert_dict(data): ret = defaultdict(dict) for m, dct in data.items(): for n, v in dct.items(): ret[n][m] = v return ret def flatten_dict(data): ret = {} for k, vs in data.items():...
[ "arunchaganty@gmail.com" ]
arunchaganty@gmail.com
d654571b75c42601d497f2010175e9d03db70f79
a9f38bb28ff9bd04b151d86c653cde9f46768c7c
/easy/guessNumberHigherLower.py
3d9a440d88b43dfb848527e6505af7060a690b0d
[]
no_license
Xynoclafe/leetcode
02388516b10b8ee6bec6ee1b91ab5681c3254d33
4a80f02683e7fc14cb49c07170651ea3eeb280ac
refs/heads/master
2020-12-01T21:05:44.656581
2020-02-02T09:05:32
2020-02-02T09:05:32
230,770,600
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# The guess API is already defined for you. # @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 # def guess(num: int) -> int: class Solution: def guessNumber(self, n: int) -> int: def binSearch(start, end): if start == end: start ...
[ "gokulprem.94@gmail.com" ]
gokulprem.94@gmail.com
92e70f3375c49b5f0f371ed4cc14858df4e12007
2c4763aa544344a3a615f9a65d1ded7d0f59ae50
/waflib/Node.py
3024f5f7b3370c9e79f3ce9efc8e4d02de3fe9ca
[]
no_license
afeldman/waf
572bf95d6b11571bbb2941ba0fe463402b1e39f3
4c489b38fe1520ec1bc0fa7e1521f7129c20f8b6
refs/heads/master
2021-05-09T18:18:16.598191
2019-03-05T06:33:42
2019-03-05T06:33:42
58,713,085
0
0
null
2016-05-13T07:34:33
2016-05-13T07:34:33
null
UTF-8
Python
false
false
26,479
py
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2005-2018 (ita) """ Node: filesystem structure #. Each file/folder is represented by exactly one node. #. Some potential class properties are stored on :py:class:`waflib.Build.BuildContext` : nodes to depend on, etc. Unused class members can increas...
[ "anton.feldmann@outlook.de" ]
anton.feldmann@outlook.de
a8972a430ffb07204980882f80982295def04f91
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02690/s260373583.py
683e4c44817819625608097b879fb92b1bb0fe95
[]
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
181
py
def get(n): for i in range(-1000,1001): for j in range(-1000,1001): if(i**5-j**5==n): print(i,j) return n=int(input()) get(n)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ee3ab7b304dcfd2627a23109f9e5a4af1e9cf3b9
02b6f852787c0f169c298090e412de84d9fffdfa
/src/dsrlib/ui/configuration.py
1f6bd8871dcf3223bf9723382947e5adbfa4f922
[ "MIT" ]
permissive
ca4ti/dsremap
f5ffa0d5f15e37af23ec5bd2c326a0dfa5e6f99c
ad0929adfe5fa8499515b3a6a80e94dfd8c1c0bc
refs/heads/master
2023-04-02T10:02:02.147173
2021-04-11T11:16:59
2021-04-11T11:16:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,439
py
#!/usr/bin/env python3 import os import shutil from PyQt5 import QtCore, QtGui, QtWidgets from dsrlib.domain import ConfigurationMixin, commands from dsrlib.meta import Meta from .actions import ActionWidgetBuilder from .mixins import MainWindowMixin from .utils import LayoutBuilder from .uicommands import AddActio...
[ "jerome@jeromelaheurte.net" ]
jerome@jeromelaheurte.net
3218938f4ff24c3363c12fa9d7ea10d14f347fda
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/VBSjjlnu/Full2018v6s5/conf_tests_HEM/nuisances.py
974c0373478496cf6e80d8576ac4c314386b397e
[]
no_license
latinos/PlotsConfigurations
6d88a5ad828dde4a7f45c68765081ed182fcda21
02417839021e2112e740607b0fb78e09b58c930f
refs/heads/master
2023-08-18T20:39:31.954943
2023-08-18T09:23:34
2023-08-18T09:23:34
39,819,875
10
63
null
2023-08-10T14:08:04
2015-07-28T07:36:50
Python
UTF-8
Python
false
false
15,703
py
# # nuisances # #FIXME: TO BE UPDATED FOR 2018! # # name of samples here must match keys in samples.py mc =["DY", "top", "VV", "VVV", "VBF-V", "top", "VBS", "Wjets_LO", "Wjets_njetsLO"] # phase_spaces_boost = [] # phase_spaces_res = [] # for d in ["all","high","low", "all_lowvtx", "all_loweta", "all_higheta"]: # ...
[ "davide.valsecchi@cern.ch" ]
davide.valsecchi@cern.ch
8e48cdc36af358ce63b9cee3a6d9027cf929722e
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/deviceupdate/azure-iot-deviceupdate/setup.py
3b4d52e9e304da8944d2b8b5c37ac85830a070fd
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
2,815
py
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
[ "noreply@github.com" ]
scbedd.noreply@github.com
8e52e5124bb4d7475be9e1aba419b63c10e1da71
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/105/usersdata/188/50874/submittedfiles/av1_3.py
0328c1b58fec2bb6085db012bf78c1af432e4c52
[]
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
311
py
# -*- coding: utf-8 -*- import math N1=int(input('Digite o valor do número 1:')) N2=int(input('Digite o valor do número 2:')) N3=int(input('Digite o valor do número 3:')) n=1 b=0 while n>0: if(n%a)==0 and (n%b)==0 and (n%c)==0: b=b+n break else: n=n+1 print ('b')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
0c5b75952bd055ee2807574adfbafd0a1718e38e
ab670d6e59ebd4a0c23fa867fb77866d223163da
/Python/Problem243.py
4e68455830c3935144068fae503f0d467fa66e99
[]
no_license
JeromeLefebvre/ProjectEuler
18799e85947e378e18839704c349ba770af4a128
3f16e5f231e341a471ffde8b0529407090920b56
refs/heads/master
2020-07-05T02:42:44.844607
2014-07-26T01:04:38
2014-07-26T01:04:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
''' Problem 243 A positive fraction whose numerator is less than its denominator is called a proper fraction. For any denominator, d, there will be d−1 proper fractions; for example, with d = 12: 1/12 , 2/12 , 3/12 , 4/12 , 5/12 , 6/12 , 7/12 , 8/12 , 9/12 , 10/12 , 11/12 . We shall call a fraction that cannot be c...
[ "jerome.p.lefebvre@gmail.com" ]
jerome.p.lefebvre@gmail.com
2af42a2b6608396255e292e61e930cbde59accca
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/third_party/kubernetes/client/apis/autoscaling_v2beta1_api.py
dded44c74978be142fca5084827f341ddb1b8418
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
95,742
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os imp...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
06711799efc8419d428058ea3f7582f7a48c0a3e
284713c5e6ad6681d2c6c379efc96e5c42833321
/DB_SQLITE/04_sql_injection.py
ba90ecf3dcc02dcf9e5f32d856ff698089f5add3
[]
no_license
alexeysorok/Udemy_Python_2019_YouRa
ddfa1f620dcac44cc53958bb88169845072db38e
8ebd8483f7927892b346af209b4325c9ae0c7dab
refs/heads/master
2020-09-27T03:24:08.997040
2019-12-07T19:04:17
2019-12-07T19:04:17
226,417,119
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
import sqlite3 conn = sqlite3.connect('users.db') # cursor.execute('CREATE TABLE users (user_name TEXT,' # 'user_password TEXT)') users = [ ('jack123', 'asdasdasd'), ('kasdsa', 'asdsadasd'), ('Bio', 'asdasda') ] # insert_query = "INSERT INTO users VALUES (?, ?);" user_name = input('...
[ "alexe@W10SSD" ]
alexe@W10SSD
376d81f18957b729df1c5d3158ad6a37aa802021
a183a600e666b11331d9bd18bcfe1193ea328f23
/pdt/core/migrations/0032_case_revision.py
ff8909b6297a1b81d520bff33753bd05266aae58
[ "MIT" ]
permissive
AbdulRahmanAlHamali/pdt
abebc9cae04f4afa1fc31b87cbf4b981affdca62
5c32aab78e48b5249fd458d9c837596a75698968
refs/heads/master
2020-05-15T07:51:09.877614
2015-12-01T18:22:56
2015-12-01T18:22:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0031_auto_20150618_1116'), ] operations = [ migrations.AddField( model_name='case', name='re...
[ "bubenkoff@gmail.com" ]
bubenkoff@gmail.com
c7ef589bf879fb64a6c1ba7225ee9fec2cfe12bb
ccd30f827fb3bd4231c59d05e6d61c5963019291
/Practice/LeetCode/EverydayPrac/3.py
603f49bc17eca59b1792306e56056465b5c878af
[]
no_license
anthony20102101/Python_practice
d6709e7768baebaa248612e0795dd3e3fa0ae6ba
56bb1335c86feafe2d3d82efe68b207c6aa32129
refs/heads/master
2023-06-10T18:49:11.619624
2021-06-27T15:36:10
2021-06-27T15:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# 给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 # # 在杨辉三角中,每个数是它左上方和右上方的数的和。 # # 示例: # 输入: 3 # 输出: [1,3,3,1] # 进阶: # 你可以优化你的算法到 O(k) 空间复杂度吗? # 优化: # 注意到对第 i+1 行的计算仅用到了第 i 行的数据,因此可以使用滚动数组的思想优化空间复杂度。 # 利用上述公式我们可以在线性时间计算出第 n 行的所有组合数。 # # 复杂度分析 # # 时间复杂度:O(rowIndex)。 # # 空间复杂度:O(1)。不考虑返回值的空间占用。
[ "492193947@qq.com" ]
492193947@qq.com
04003011021ed9b70a92bbdc33e87c7af6f9ad9e
6fa0c051f742c3f9c99ee2800cd132db5ffb28c7
/src/account/migrations/0008_auto_20200806_2318.py
03591749cf0b1a71c7d4f20b7e81927a0e349322
[]
no_license
MCN10/NXTLVL
9c37bf5782bfd8f24d0fb0431cb5885c585369b0
76d8818b7961e4f0362e0d5f41f48f53ce1bfdc5
refs/heads/main
2023-06-02T13:51:34.432668
2021-06-02T14:19:21
2021-06-02T14:19:21
328,625,042
1
0
null
2021-06-16T10:16:17
2021-01-11T10:19:44
Python
UTF-8
Python
false
false
611
py
# Generated by Django 3.0.8 on 2020-08-06 23:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0007_account_is_axisstaff'), ] operations = [ migrations.AlterField( model_name='account', name='phone', ...
[ "mcn10.foxx@gmail.com" ]
mcn10.foxx@gmail.com
3d0e54171f99c5973fdb441873c4d1302c56d070
86d499787fb35024db798b0c1dbfa7a6936854e9
/py_tools/example/TV.py
4ec42492467c2b2392e40b3209a8fa35afb1b711
[]
no_license
Tomtao626/python-note
afd1c82b74e2d3a488b65742547f75b49a11616e
e498e1e7398ff66a757e161a8b8c32c34c38e561
refs/heads/main
2023-04-28T08:47:54.525440
2023-04-21T17:27:25
2023-04-21T17:27:25
552,830,730
0
1
null
null
null
null
UTF-8
Python
false
false
1,095
py
class TV: def __init__(self): self.channel = 1 # Default channel is 1 self.volumeLevel = 1 # Default volume level is 1 self.on = False # By default TV is off def turnOn(self): self.on = True def turnOff(self): self.on = False def getChannel(self): re...
[ "gogs@fake.local" ]
gogs@fake.local
932c777e82f9b34d9552ecd5044100328cbcb95c
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/class스타크래프트프로젝트전반전_20200709105346.py
18786ac5676fbf66cb3c84a0ce24b862c00e37aa
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
4,135
py
# 일반 유닛 class Unit: def __init__(self, name, hp, speed): self.name = name self.hp = hp self.speed = speed print("{0} 유닛이 생성되었습니다.".format(name)) def move(self, location): print("[지상 유닛 이동]") print("{0} : {1} 방향으로 이동합니다. [속도 {2}]" .format(self.name, ...
[ "sangha0719@gmail.com" ]
sangha0719@gmail.com
cde9e8c41184ee204fbf4f603084f018c667ea9d
4cb81903c4d07cd85d9bb8d37eab8ab399a6e276
/Array Sequences/Practice Problems/uniquechar.py
ac9f2e97f4e67e22a89c814f8168cfb1ea4cb2ad
[]
no_license
JitenKumar/Python-for-Algorithms--Data-Structures
0011881c8c8558a2e21430afc1aa7d9232392b2c
7ee8a3ef287761b00be1907c5bbad35e75c5bfd6
refs/heads/master
2020-03-18T22:02:47.673814
2018-08-05T06:07:17
2018-08-05T06:07:17
135,320,756
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
''' Unique Characters in String Problem Given a string,determine if it is compreised of all unique characters. For example, the string 'abcde' has all unique characters and should return True. The string 'aabcde' contains duplicate characters and should return false. ''' # solution def unique_char(string): s = s...
[ "jitenderpalsra@gmail.com" ]
jitenderpalsra@gmail.com
92ec87d6a1f183a10a48e5bb65076fbca52c2d3c
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Lazymux/routersploit/tests/creds/routers/netcore/test_ssh_default_creds.py
2d81b6e62845318c12ca1f5a515d18860390ca6d
[]
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
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:029aa8eb5f4144f599d8be14416b93b3a2e19b768949e76237a74d16a341aaf0 size 634
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
91f62217c7ebbd46b2d45992db0ba07ce6eb95da
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_197/ch36_2020_04_13_17_07_50_283710.py
6a077ebde6ef2622e4e4f67db4cfcdf80a8088b7
[]
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
111
py
def fatorial(n): resultado=1 m=1 while m<=n: resultado*=m m+=1 return resultado
[ "you@example.com" ]
you@example.com
ad10934a59e725774c6d2fb2e45840eb0379946f
9919439783a3d9ec7a4435e50e0225ea1d6f2b69
/manage
87e7fe63bfcd2a83db73800733b609a1a3835c72
[]
no_license
newcontext-oss/django-rest-json-api
19c2e5210c59d02eee88afb3061761f02f4037d6
107ef896397d93715d9f3eed34fcb6f14d5893b9
refs/heads/master
2021-01-15T20:27:51.771682
2017-10-02T18:41:28
2017-10-02T18:41:28
99,850,109
1
0
null
null
null
null
UTF-8
Python
false
false
826
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_rest_json_api_example.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other rea...
[ "me@rpatterson.net" ]
me@rpatterson.net
922539ebe02f2df53fc16aea241cff2fb0df5b23
795df757ef84073c3adaf552d5f4b79fcb111bad
/i4lib/i4vec_sorted_unique.py
eea4deabcf5c5276323c987e360cb3e95fd03a39
[]
no_license
tnakaicode/jburkardt-python
02cb2f9ba817abf158fc93203eb17bf1cb3a5008
1a63f7664e47d6b81c07f2261b44f472adc4274d
refs/heads/master
2022-05-21T04:41:37.611658
2022-04-09T03:31:00
2022-04-09T03:31:00
243,854,197
3
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
#! /usr/bin/env python # def i4vec_sorted_unique ( n, a ): #*****************************************************************************80 # ## I4VEC_SORTED_UNIQUE finds the unique elements in a sorted I4VEC. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 29 Februar...
[ "tnakaicode@gmail.com" ]
tnakaicode@gmail.com
827e8cc5f49718946538d832c5f3d61d6eebdca7
568345ee64e3e283a916af372a40b34b595d6ff3
/utils/lldb-dotest/lldb-dotest.in
cc6ea350654a205aae889195f9e92b114c284d36
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
enterstudio/swift-lldb
b16fb3f067da3933af0fb1024630f7066b38a7ef
af85d636d230da2460f91938b1ff734b0fb64b42
refs/heads/stable
2020-04-27T01:43:35.935989
2019-03-05T01:43:09
2019-03-05T01:43:09
173,973,645
2
0
Apache-2.0
2019-03-05T15:37:31
2019-03-05T15:37:26
null
UTF-8
Python
false
false
453
in
#!/usr/bin/env python import os import subprocess import sys dotest_path = '@LLDB_SOURCE_DIR@/test/dotest.py' dotest_args_str = '@LLDB_DOTEST_ARGS@' if __name__ == '__main__': wrapper_args = sys.argv[1:] dotest_args = dotest_args_str.split(';') # Build dotest.py command. cmd = [dotest_path, '-q'] ...
[ "jonas@devlieghere.com" ]
jonas@devlieghere.com
a93ec77494af1405eec2e4807036d13cb21449f5
a88e486c3be855554e8c9998766869a19a4e0635
/coursera/knapsack/greedy.py
9fcfd92a3a800c1f6cb2b685445bf70c2456db4b
[]
no_license
DXV-HUST-SoICT/Combinatorial-Optimization
03559786a36f66f10742e3a0c520a3369e96a065
67c326635bb4245e3dd9819ea9704c37bb9635d3
refs/heads/master
2021-03-17T12:59:51.141027
2020-06-09T17:42:41
2020-06-09T17:42:41
246,992,799
5
0
null
null
null
null
UTF-8
Python
false
false
412
py
def greedy_by_avarage_value(items, taken, capacity): def key(item): return item.value / item.weight items.sort(key=key, reverse=True) value = 0 weight = 0 for i in range(len(items)): item = items[i] if weight + item.weight <= capacity: value += item.weight ...
[ "vuong.1998@gmail.com" ]
vuong.1998@gmail.com
0a26c1cda5fed23e78e41221fca74d55a0da585f
1524720d6480ad0a51b6fd8ff709587455bf4c5d
/tums/trunk/source/plugins/DHCP.py
7af3eb81f2a7ce65771d5d72723a41f35579e175
[]
no_license
calston/tums
2bd6d3cac5232d2ccb7e9becfc649e302a310eab
b93e3e957ff1da5b020075574942913c8822d12a
refs/heads/master
2020-07-12T03:46:43.639800
2018-05-12T10:54:54
2018-05-12T10:54:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,247
py
import config, os from Core import Utils class Plugin(object): parameterHook = "--dhcp" parameterDescription = "Reconfigure DHCP" parameterArgs = "" autoRun = True configFiles = [ "/etc/dhcp/dhcpd.conf" ] def reloadServices(self): if config.General.get('services', {}).get(...
[ "junwin@gmail.com" ]
junwin@gmail.com
de495f8070a7258d450001eb321fe83c21087cd2
df601ac0a0dd618c75241ca050468cab5f580d3a
/kgb/calls.py
77111f43f0829d696bd0c66e7999af9890c67e7f
[]
no_license
mitchhentges/kgb
ff90d7e6c66417ba147ab3e32518d9e4facba256
4c7f4361a8050e5426cb23e4a84ee64df25a6c12
refs/heads/master
2022-12-12T14:50:18.838424
2020-09-04T06:57:34
2020-09-04T06:57:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,232
py
"""Call tracking and checks for spiess.""" from __future__ import unicode_literals from kgb.pycompat import iteritems, text_type from kgb.signature import FunctionSig class SpyCall(object): """Records arguments made to a spied function call. SpyCalls are created and stored by a FunctionSpy every time it is...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
d59aaea52583e6a20a8bae86ba53ef71554cb62d
64f39ad662546e1f92df4dd2bf7b5ac2f748d39d
/octavia_f5/common/constants.py
0e1768c388d52b598ce6766ffe5f6d26eec24a41
[ "Apache-2.0" ]
permissive
zongzw/python-as3
2b5026bec3a2e1bba24d4fae7fc90b7f1f58523a
de51773fb2877f4a0988cc655cf4624a3129fd65
refs/heads/master
2022-11-24T07:58:04.738669
2020-07-28T01:12:25
2020-07-28T01:12:25
283,049,282
0
0
null
null
null
null
UTF-8
Python
false
false
2,640
py
# Copyright 2018 SAP SE # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
[ "a.zong@f5.com" ]
a.zong@f5.com
034ac87ab3d44c8c5221b639dd2987db0f489445
4302fd10583ccff63ff5693bd2ae5903323cb769
/curate/migrations/0033_auto_20190224_0315.py
9e514c889504231d27382afd8b779b6510c0517c
[ "MIT" ]
permissive
ScienceCommons/curate_science
1faf742c8de1e9c9180e4d8ec6a7457ad95bb705
4e4072e8c000df0d2e80637016f8f0e667f4df54
refs/heads/master
2022-02-12T19:56:51.730534
2022-01-25T16:44:54
2022-01-25T16:44:54
149,122,317
14
7
MIT
2021-03-23T17:27:05
2018-09-17T12:32:25
HTML
UTF-8
Python
false
false
1,466
py
# Generated by Django 2.1.7 on 2019-02-24 03:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('curate', '0032_auto_20190224_0231'), ] operations = [ migrations.AddField( model_name='keyfigure', name='height', ...
[ "alex.kyllo@gmail.com" ]
alex.kyllo@gmail.com
46f088c66d64354d6e4a7ddddc6951a6a16cb979
7e4ee5b457ac9c85b64661eeedba0ba51b211c68
/entities/background.py
043381b99de005498e7cbc63c0fda1b10cbdf342
[]
no_license
iCodeIN/Maze-Game
180ae7dfb2ffc7b8f2868e450b186b41f3ab510a
9956bf10f12326307eccff668cbc9cc615c0fee9
refs/heads/master
2022-12-03T04:00:12.270692
2020-08-26T23:43:45
2020-08-26T23:43:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
import pygame import os import sys from easy_sdl.tools import * from easy_sdl.sprite import Sprite from easy_sdl.sprite import keyUp, keyDown class Background(Sprite): def __init__(self): super().__init__(0, 0, image=path("background.png"))
[ "noreply@github.com" ]
iCodeIN.noreply@github.com