blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a40a5e4a05246938f3827a9d2f4804b32cb1e50 | eab0cc7ca62bd97cb75a13e4e1ec24391d3253c6 | /NAMS/download.py | 0d25eadfa833f8e99a42f6de2758afcd23242fe4 | [] | no_license | MiCurry/easy_plots | f0ee07d11998d5661e15f5c32daab8cfcfc1f5ad | e03e9906e43c49cc21b02293dcc773defffd5e9d | refs/heads/master | 2021-01-19T13:42:02.378373 | 2017-05-31T17:59:13 | 2017-05-31T17:59:13 | 88,103,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import os
import sys
import urllib
from datetime import datetime, timedelta
# TODO: Change arguments to a float??
""" download(north, south, east, west, height)
north - north latitude value (string)
south - south latitude value (string)
east - east longitude value (string)
west - west longitude value (string)
height ... | [
"currymiles@gmail.com"
] | currymiles@gmail.com |
eb3b66b1e699ae4e0f838ee32d7a5106b449befc | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/016_iterator/_exercises/templates/6-python-design-patterns-building-more-m6-exercise-files/BeforeIterator/__main1__.py | 2eb5be6885205db5a459393ddd9c9113541e58c8 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 347 | py | from testdata import employees
def main():
print("Employees:")
for i in range(1, employees.headcount+1):
employee = employees.get_employee(i)
print('Employee Id: {}; Name: {}; Date of Hire: {}'
.format(employee.empid, employee.name, employee.hiredate)
)
if __name__... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0d94bb112cca7dde3d728ef42f2d1cd0bb36b5c2 | eee19e7aace0ee38039a6d829b4511e3a981334a | /AISProject/ais_conv.py | 4200ec8ccf95240b550f78a3280100fb5df7c2f4 | [
"MIT"
] | permissive | lzz5235/Code-Segment | fb47c67c3a019c6ed30b80ab70da31276558ab58 | e10a172972ea75151f77929dfe105729600c854e | refs/heads/master | 2020-12-23T03:24:50.918907 | 2019-11-17T15:59:30 | 2019-11-17T15:59:30 | 41,672,861 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,300 | py | import os
import xml.etree.ElementTree as ET
import xml.dom.minidom as minidom
import numpy as np
NationDict = {307: 'Aruba', 401: 'Afghanistan', 601: 'South Africa (Rep. of)', 603: 'Angola (Rep. of)', 301: 'Anguilla',
201: 'Albania (Rep. of)', 605: 'Algeria (People\'s Democratic Rep. of)', 303: 'Alaska ... | [
"lzz5235@vip.qq.com"
] | lzz5235@vip.qq.com |
6d69b85e4acd9fec219dae89e6dc3f1d19170dbe | 4aadd2bca50408f14414de12caf5ce01e4dfbcf0 | /main_app/migrations/0012_routine_activity_name.py | 99d81918261781388b087123ebf373d4ac115743 | [] | no_license | daronefrancis/Tiff-and-The-Lads | 3868161394faaaadde491402b93ae3162ba01bdd | 1f5fd914ea8ccef84fccf858bcc634cd706f02bb | refs/heads/master | 2022-11-17T10:18:36.270781 | 2020-07-10T14:15:26 | 2020-07-10T14:15:26 | 277,565,184 | 0 | 0 | null | 2020-07-06T14:31:33 | 2020-07-06T14:31:32 | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 3.0.6 on 2020-07-09 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0011_auto_20200709_1635'),
]
operations = [
migrations.AddField(
model_name='routine',
name='activity_na... | [
"daronefrancis@gmail.com"
] | daronefrancis@gmail.com |
a74b2822c5671132bdfc8acb516eb7d19f9613ca | cc52ae6cf0fd6b66de5b2e36ec6d755749b96850 | /3_pattern1.py | 6b91dea9b372992dee5375ab7fc51b0cf7bd4ae8 | [] | no_license | edagotti689/PYTHON-7-REGULAR-EXPRESSIONS | 5a48a3e381d7be476741c87c253956f0b65697be | f935b6e9c8f1d4ce49c8bc0923b072c6d0680d6e | refs/heads/master | 2020-11-24T01:13:26.544872 | 2019-12-13T18:24:06 | 2019-12-13T18:24:06 | 227,898,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import re
# Matches 1 or more occurencies of preceding expression.
# name = 'sriram'
# mo = re.match('\w+', name)
# print(mo.group())
# Matches 0 or more occurrence of preceding expression.
name = 'sriram123'
mo = re.match('\d*', name)
print(mo.group())
# Matches 0 or 1 occurrence of preceding expres... | [
"noreply@github.com"
] | edagotti689.noreply@github.com |
51d195e1ea2a4b102ddff7f8544416bdc5bf2851 | 57c4e419d696621fad7d0ac28e78743ea1c0296e | /.ipynb_checkpoints/app-checkpoint.py | 5fe60243ea7af364e294cd2f7b260cb12159ecb9 | [] | no_license | geadalfa/depokSehat | 18c996fa9c061663db31d07a1cb99e74d5b5b30f | c6f11fdddbcbd7c52be2eb08c8798ccfc4b11225 | refs/heads/main | 2023-07-08T12:45:33.999830 | 2021-08-12T12:15:14 | 2021-08-12T12:15:14 | 346,625,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | from flask import Flask,render_template,url_for,request, redirect, Response
import numpy as np
#import pickle
import pickle5 as pickle
import pandas as pd
#import tensorflow as tf
from tensorflow.keras.models import load_model
#from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessin... | [
"ggeadalfa@gmail.com"
] | ggeadalfa@gmail.com |
30a55bb17173a3f4680ecf975a40f336f9e04562 | bc120a459a66291d18172b123978076160d731f7 | /run_codegen.py | 0d06b8f4f85ea22ebf5d0393e9ff560e47bccb0f | [] | no_license | takp/grpc-sample | 9c4c79e5bf0269125de87ddf6606c4c6a61c6c18 | d03c171faa7a69d933f9eaaaa0558ff27bc39bcf | refs/heads/master | 2020-04-04T00:57:44.023282 | 2018-11-04T05:24:11 | 2018-11-04T05:24:11 | 155,663,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"takayoshi.nishida@gmail.com"
] | takayoshi.nishida@gmail.com |
738181729eb2d9a6b0e3fd73dfae9eb50c4cf98c | d1bcd0150979532a9b6caa37a9b119b4203c1091 | /PyBootCamp/print_and_string.py | e09c933bae56bcb79c6eaad620da759e70579e32 | [] | no_license | svfarande/Python-Bootcamp | 5b626bbb6f7047eb3c3cd5490ac58f42ff4771d6 | 0d7eb14b50fbe9bd8709422a51f34f1d6202c8e6 | refs/heads/main | 2023-03-11T19:29:37.574840 | 2021-03-07T18:12:19 | 2021-03-07T18:12:19 | 339,967,567 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | mystr = "Shubham"
print(len(mystr))
print(mystr[::-1])
print("Shubham"[::-1])
mystr = mystr[:3] + "B" + mystr[4:]
print(mystr)
letter = "S"
print(letter * 5)
mystr = "Shubham Farande"
print(mystr.split("a"))
print('%f' % (0.1 + 0.2 - 0.3))
print("Answer is {s:}".format(s=100 / 777)) # Answer is 0.128700128700128... | [
"svfarande@gmail.com"
] | svfarande@gmail.com |
12fcdca2eabebc85e0a958a99edb385746718a0d | 2c95e0f7bb3f977306f479d5c99601ab1d5c61f2 | /tests/wallet/cc_wallet/test_cc_wallet.py | 71b397292145e285fe313b58e34463afcb6b990c | [
"Apache-2.0"
] | permissive | Olive-blockchain/Olive-blockchain-CLI | d62444f8456467f8105531178d2ae53d6e92087d | 8c4a9a382d68fc1d71c5b6c1da858922a8bb8808 | refs/heads/main | 2023-07-19T03:51:08.700834 | 2021-09-19T16:05:10 | 2021-09-19T16:05:10 | 406,045,499 | 0 | 0 | Apache-2.0 | 2021-09-19T16:05:10 | 2021-09-13T16:20:38 | Python | UTF-8 | Python | false | false | 23,670 | py | import asyncio
from typing import List
import pytest
from olive.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward
from olive.full_node.mempool_manager import MempoolManager
from olive.simulator.simulator_protocol import FarmNewBlockProtocol
from olive.types.blockchain_format.coin impo... | [
"87711356+Olive-blockchain@users.noreply.github.com"
] | 87711356+Olive-blockchain@users.noreply.github.com |
43470fa1896c46eb2705c59d8033d19d37490dc1 | 466e62d8226af6b2277c9c927bfbf55cfe02158e | /music/apps.py | 442abb81a6ed596a98636e0238c15c0259d87fcf | [] | no_license | gbip/djRDO | f9cae89a29560ed3f7f02b17824579cf67123c56 | e2d6a0336c7934cae71f833cb34a1f5f21db2d02 | refs/heads/master | 2023-08-27T15:05:23.601486 | 2021-11-04T17:53:20 | 2021-11-04T17:53:20 | 355,814,216 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class MusicImporterConfig(AppConfig):
name = "music"
| [
"perso@florencepaul.com"
] | perso@florencepaul.com |
8a3ea212efe2d9f38ce16796b86ef36e7e2d6b41 | 4bbfe889885084e33767020124d17607c120a5b2 | /demisto_sdk/commands/common/content/objects/pack_objects/pack.py | 3db84be477490e031a0caa6dfbc5dbaf69561abf | [
"MIT"
] | permissive | shubgwal-gif/demisto-sdk | fc80163b7a2c2fc00d5b664a47326a9dbebf6dd6 | 35b15113ff8488c7c9051da2c2cbcbc7c6915e8d | refs/heads/master | 2023-01-29T11:31:36.928267 | 2020-12-08T16:37:20 | 2020-12-08T16:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,444 | py | from typing import Any, Iterator, Optional, Union
from demisto_sdk.commands.common.constants import (CLASSIFIERS_DIR,
CONNECTIONS_DIR,
DASHBOARDS_DIR,
DOC_FILES_DIR,
... | [
"noreply@github.com"
] | shubgwal-gif.noreply@github.com |
266aa42a7d13fb27c4027899a7e959bbff0a81b6 | 935a3f949041bb43433bd02bb0988519f0fd8c4e | /ex2.py | 0690e9624d92f0461f54cda7f1aff4db3d6a16f9 | [] | no_license | damiankoper/iobLab | c5acae472be66b27f6c58d2453a8419129e33eb6 | 819f02e3aa8a8bbfbfab27362f2982fed12fb03a | refs/heads/master | 2021-03-21T22:12:26.707722 | 2020-05-08T19:34:39 | 2020-05-08T19:34:39 | 247,330,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,584 | py | #!/usr/bin/env python3
import numpy as np
import urllib.request
import cv2
import binascii
import lorem
import math
import matplotlib.pyplot as plt
def encode_as_binary_array(msg):
"""Encode a message as a binary string."""
msg = msg.encode("utf-8")
msg = msg.hex()
msg = [msg[i:i + 2] for i in range(0... | [
"kopernickk@gmail.com"
] | kopernickk@gmail.com |
1e89fbf40a207c845671b836a424fd324fc46b79 | 30834d127caf5044959ae7e17fdf0cf03b1db4d0 | /41. First Missing Positive.py | cce102c99c3c7dc206eb0ff957e525b0b7a3676a | [] | no_license | xigaoli/lc-challenges | 9c4dfe866340b42a2780994719e12c3a5a513af2 | eb06aab20129fca8239717842582c0dc2bb69d53 | refs/heads/main | 2023-02-11T09:00:51.777126 | 2021-01-13T23:27:46 | 2021-01-13T23:27:46 | 308,232,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from collections import defaultdict
class Solution:
def firstMissingPositive(self, nums: List[int]) -> int:
numdict = defaultdict(int)
for n in nums:
#print(n)
numdict[n]+=1
for i in range(1,len(nums)+1):
if(numdict[i]==0):
... | [
"lxgfrom2009@gmail.com"
] | lxgfrom2009@gmail.com |
38a16b4a5bc7e81a08051d387e1db8cf70226add | 8a07250aaa7aaa0756e1abc36579f6dcc8f2db1d | /solutions/143. Reorder List.py | 60bf5e8ba6870141ce8613dd85cb08f74571864b | [] | no_license | atriekak/LeetCode | f92db0f5f2efb3ba97393b496374f7adc8b92545 | 8438f8a53fbc44d9d10a1e0b96f7ba78dc38eb88 | refs/heads/main | 2023-07-17T08:29:45.625297 | 2021-07-04T04:22:43 | 2021-07-04T04:22:43 | 324,005,296 | 0 | 0 | null | 2021-09-02T21:23:06 | 2020-12-23T21:29:59 | Python | UTF-8 | Python | false | false | 1,622 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def reorderList(self, head: ListNode) -> None:
"""
Do not return anything, modify head in-place instead.
"""
#Time Co... | [
"atriekak@gmail.com"
] | atriekak@gmail.com |
3468f110d4766d5a44d5adf35a319949bf68ada8 | 03b8cd4f58fd7e6c2d40bc8b29c5bfacf3fe9424 | /server/src/posts/migrations/0009_comment.py | 283b594542c8fddc470592dff6a8bc73650e0205 | [
"MIT"
] | permissive | AlecLangford/SnapShare | 545667d25ae94b3dcd04e3f9aad005a426598c5f | c6883ca21d6f86aad025829a49a5d845893cdd9b | refs/heads/master | 2023-07-10T00:43:23.850214 | 2018-08-29T12:06:12 | 2018-08-29T12:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # Generated by Django 2.0.1 on 2018-03-19 13:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('posts', '0008_auto_20180... | [
"gupta.chetan1997@gmail.com"
] | gupta.chetan1997@gmail.com |
bf18367780339e77ed828796cf86505757387a00 | e6a1c4389d1ea3582b3b5e18228c2e79eb0cece5 | /0x0A-python-inheritance/11-square.py | 9c04159e897287b30f41171d87bc7659e4ddfc96 | [] | no_license | TMcMac/holbertonschool-higher_level_programming | 4cd5dcf25163306c1bf4f5434cb9e5d07118f750 | 7449dc4642a8d5a04c731aea8c5fb176ea31e4ce | refs/heads/master | 2023-03-02T19:00:56.483666 | 2021-02-12T21:41:37 | 2021-02-12T21:41:37 | 290,367,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | #!/usr/bin/python3
"""Docstring because reasons"""
class BaseGeometry:
"""
A mostly empty class with a few error conditions
"""
def area(self):
"""
Just an error for this one
"""
raise Exception("area() is not implemented")
def integer_validator(self, name, value):... | [
"timmcmackenjr@gmail.com"
] | timmcmackenjr@gmail.com |
0bdc8c06e4802b8ff2829a1cf4c8094fc2f85d2d | c83ee3848bbc0bceea5f93eaa98660381e226efa | /Exercise-3/Sap_Router/Sap_app/apps.py | 1b29525f90cd7480e9a102029dc1fa4cc4bf2c71 | [] | no_license | malikdipti/DIPTIRANJAN-MALIK_PYTHON | 2f59ef72c1df1078fcf2c38f4bd16eec08d9a08a | 17559ff4440225a5c386cc80e1e65d394e4f9fe0 | refs/heads/master | 2022-12-26T13:14:41.127720 | 2020-10-03T13:28:52 | 2020-10-03T13:28:52 | 300,805,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class SapAppConfig(AppConfig):
name = 'Sap_app'
| [
"44806816+malikdipti@users.noreply.github.com"
] | 44806816+malikdipti@users.noreply.github.com |
d8d88d318e27c532dc2b61b297b8f211d573a61d | 92e26b93057723148ecb8ca88cd6ad755f2e70f1 | /cov_exp/plain30_dfconv/network.py | 8f490c139b1dc143c53b076304e5055ea7a21755 | [] | no_license | lyuyanyii/CIFAR | 5906ad9fbe1377edf5b055098709528e06b5ace2 | d798834942d6a9d4e3295cda77488083c1763962 | refs/heads/master | 2021-08-30T20:09:52.819883 | 2017-12-19T08:37:37 | 2017-12-19T08:37:37 | 112,701,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,308 | py | import numpy as np
from megskull.network import Network
from megskull.opr.all import (
Conv2D, Pooling2D, FullyConnected, Softmax,
CrossEntropyLoss, Dropout, ElementwiseAffine, Concat,
Floor, Ceil, ones, Cumsum, Min, Max,
AdvancedIndexing, Astype, Linspace, IndexingRemap,
Equal, ZeroGrad,
)
from megsk... | [
"315603442@qq.com"
] | 315603442@qq.com |
f2a847b465f50e422b5e138f8c78615c567e22df | 8f494a0663fa056812ca1edb5fbb866ddb22aa37 | /bin/plot_stars_and_frames.py | 9bd401dcd4065ae7446637628d6c08725bc9e99c | [] | permissive | desihub/teststand | c2ea0ea3efbcb2e7e5d041261d40a3b7378c88c8 | fc1bc9630b6a295140ef98ed35ebfe0acfb199d2 | refs/heads/master | 2020-02-26T16:37:39.111241 | 2020-02-25T23:48:49 | 2020-02-25T23:48:49 | 55,595,894 | 0 | 1 | BSD-3-Clause | 2019-04-26T17:51:22 | 2016-04-06T10:10:48 | Python | UTF-8 | Python | false | false | 2,445 | py | #!/usr/bin/env python
import os
import sys
import argparse
import numpy as np
import astropy.io.fits as pyfits
import astropy.units as units
import matplotlib.pyplot as plt
from desispec.io import read_frame
from desispec.interpolation import resample_flux
from desispec.io.filters import load_legacy_survey_filter
... | [
"jguy@lbl.gov"
] | jguy@lbl.gov |
2f6fb73fff92314c3df9607f2a9a43dde4896e14 | f949d54a1bdb26a124fb0f690f16c46cfcd6ecc3 | /2 - Even Fibonacci Numbers/Brute Force.py | c81379ba6ac5f903349a5172e55ef50db5604624 | [] | no_license | Brain13/Project-Euler | d57b35b7e7ca19081f94d21a70bece7a25caa329 | b88e54aa9c37174b37cde3f10b480dfce9fc7776 | refs/heads/master | 2021-01-19T07:13:32.147420 | 2015-04-11T05:18:22 | 2015-04-11T05:20:01 | 33,696,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | #!/usr/bin/env python3
MAX_VALUE = 4000000
# iterative fibonacci
# this sequence starts with 1, 2, 3, 5...
fib1 = 1
fib2 = 2
runningTotal = 0
while fib1 < MAX_VALUE:
if fib1 % 2 == 0:
runningTotal += fib1
fib3 = fib1 + fib2
fib1 = fib2
fib2 = fib3
print(runningTotal) | [
"BrianKlinect@gmail.com"
] | BrianKlinect@gmail.com |
39cdc6f248a4a68259c53e7807d24f3070950075 | 788e202b4a9d33b419e0b32dc1aaf1325e5cc3db | /Lib/site-packages/pybitbucket/build.py | 33ad6bf82c6deb3d5fe9ebcf3c6753465338addc | [] | no_license | DShaw14/supportal-web | a8de71042d5c277e7702fbfaf116070022e3aac7 | 152c8f8030a673791de2af50f92106c4752af6ed | refs/heads/master | 2022-10-15T07:21:54.517723 | 2021-01-27T04:58:10 | 2021-01-27T04:58:10 | 74,401,106 | 0 | 1 | null | 2022-10-05T13:19:43 | 2016-11-21T20:03:15 | Python | UTF-8 | Python | false | false | 4,375 | py | # -*- coding: utf-8 -*-
"""
Defines the BuildStatus resource and registers the type with the Client.
Classes:
- BuildStatusStates: enumerates the possible states of a build status
- BuildStatus: represents the result of a build
"""
from uritemplate import expand
from pybitbucket.bitbucket import Bitbucket, BitbucketB... | [
"david14shaw@gmail.com"
] | david14shaw@gmail.com |
0cbd04b6ef65ee08c9dc3e2028930c50f679cbb3 | c800cba645625b24ff9b2e5fd75812f950f3aa2d | /main/migrations/0001_initial.py | 33c4d1498022ccb09c506d1454b26d526450c953 | [] | no_license | ZICCORP/booknow | 0d68592b8604a89432da6b1d0c9733da72d967b4 | 7815471c03d503cdebeee5ba9e96cff2f62a4add | refs/heads/master | 2022-12-13T05:21:25.688799 | 2020-09-12T01:24:26 | 2020-09-12T01:24:26 | 290,068,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # Generated by Django 2.2 on 2020-09-03 15:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(au... | [
"frankchuka250@gmail.com"
] | frankchuka250@gmail.com |
4002df1f037029048dc4fdc1f9909bf1a602c0d6 | 4c0707c00eb437fe80cbae46ebcf90ae28690430 | /experts/migrations/0027_auto__del_field_langue_nom__add_field_langue_nomlangue.py | a51fa413e427f4c5b84a94f66c553534a52537dd | [] | no_license | matnode/lesexpertsauf | 4d2ea8c9a7348a825eeb648df6c11385425a608b | 106b1982ac4b35015b91e4b9487c402a334ddae3 | refs/heads/master | 2021-01-02T22:32:34.014121 | 2015-09-29T11:34:03 | 2015-09-29T11:34:03 | 42,111,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,688 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Langue.nom'
db.delete_column('experts_langue', 'nom')
... | [
"martial.nodem@auf.org"
] | martial.nodem@auf.org |
97fd972b1c27f2217820fd2196cd6048b8d568eb | abb3daa870fc818980af90893e197517b95467af | /DataCollection/eventbriteData.py | cec994bb110bd8558443457374bd3db244f47938 | [] | no_license | souless94/main-1 | 9ecc19954ba7caa1e083f812faee8d2ce3219c21 | 2b95ab940c0f618e67087d80a7215d46800fe1ef | refs/heads/master | 2020-05-07T12:25:23.815342 | 2019-06-04T04:00:25 | 2019-06-04T04:00:25 | 179,941,599 | 0 | 0 | null | 2019-04-07T09:08:34 | 2019-04-07T09:08:34 | null | UTF-8 | Python | false | false | 3,283 | py | # file to collect data from eventbrite
from requests import get
import os
from datetime import datetime
class EventbriteData:
def __init__(self):
# f = open(r"C:\Users\wen kai\Downloads\y4s2\event-advisor\DataCollection\token.txt","r")
# credentials = f.read()
# f.close()
# txt... | [
"cl.wk@hotmail.com"
] | cl.wk@hotmail.com |
cdefd2ad395a69ada95e1118b6ce8f7617d09066 | acfab9011d276323ce4aa24075aee35f470c17b8 | /13. Exceptions/99.2.IndexError.py | f2da757e4c9c5d3013194297b85368b872a98dc8 | [] | no_license | Engi20/Python-Programming-for-Beginners | ad84d66a5ce9dd4e6ab23acde13f74607b87ead1 | fa02fcd265f8d7145e554267435c7e73ed562e36 | refs/heads/master | 2022-06-07T05:56:17.326070 | 2020-05-02T17:41:20 | 2020-05-02T17:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | l = [10,20,30,40]
#print(l[10])
#print(l)
try:
print(l[10])
except IndexError as e:
print(e)
print(l)
| [
"noreply@github.com"
] | Engi20.noreply@github.com |
6ad3be5505734d9c10992339771c730efc9c9099 | 3fbd28e72606e5358328bfe4b99eb0349ca6a54f | /.history/a_Young_Physicist_20210607192618.py | 36507965512f61ea782fbecec4eb9fd7112b6c47 | [] | no_license | Tarun1001/codeforces | f0a2ef618fbd45e3cdda3fa961e249248ca56fdb | 576b505d4b8b8652a3f116f32d8d7cda4a6644a1 | refs/heads/master | 2023-05-13T04:50:01.780931 | 2021-06-07T21:35:26 | 2021-06-07T21:35:26 | 374,399,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | n= int(input())
x=[]
for i in range(n):
p=list(map(int,input().split()) | [
"tarunsivasai8@gmail.com"
] | tarunsivasai8@gmail.com |
abcbf44cdf9d64ce61f4ab61659e75a0b56b5847 | 83fe081b5ab66e63116774858bebd32a8e5f50ce | /resolution/harmonic.py | daf618fc0c9d0f8e0a1c603472afdcddae85006c | [] | no_license | dborzov/Light-in-Flight | d0ff638f0ea9aaade242d84d2d1c02d2898e3597 | 798627e4d98d5d5b66ecbc68bd665bc1263b98d9 | refs/heads/master | 2020-06-09T02:34:30.702774 | 2013-07-15T00:50:05 | 2013-07-15T00:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import numpy as np
import matplotlib.pyplot as plt
def component(m):
flips = [x/float(m) + 1./float(2.*m) for x in range(m)]
flips.append(1.)
return flips
def l2(interval,m):
sign = (-1.)**len([x for x in component(m) if interval[0] >= x])
inside = [x for x in component(m) if interval[0] < x and i... | [
"tihoutrom@gmail.com"
] | tihoutrom@gmail.com |
532e2122130f05f313aa1e7cd3a9aed542525cf1 | f3d5a903c4dfb87b0a53d46c047a1cd39e147577 | /colorplor.py | a153d33e0a57f2969cf4816f3b5d57d2b11517e1 | [] | no_license | vishalgolcha/Computational-Physics | 60b40272cb5265822bc4717adee1f0ddd0070217 | dd9c97bc160cb4860cf63bb2fc078d66ac374713 | refs/heads/master | 2021-06-10T17:09:36.634995 | 2017-01-19T04:10:20 | 2017-01-19T04:10:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import numpy as np
import matplotlib
# import matplotlib
matplotlib.use('QT4Agg')
import matplotlib.pyplot as plt
H = np.array([[1, 2, 3, 4],
[5, 6, 7, 8],
[9, 10, 11, 12],
[13, 14, 15, 16]]) # added some commas and array creation code
fig = plt.figure(figsize=(6, 3.2))
ax =... | [
"vishalgolcha@hotmail.com"
] | vishalgolcha@hotmail.com |
78b88ce44a1b69163f787739f2f16b29b7c3a456 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02400/s247086956.py | 5fa80293019ffc5a8ea215926eec8e94cb127c10 | [] | 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 | 106 | py | import math
r = float(input())
s = r * r * math.pi
l = r * 2.0 * math.pi
print("{:f} {:f}".format(s, l))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9167ad416df88889048241c2117b86f525de23fb | f27d87c7039a978824251a2f8bbef7c3524f5e7b | /whole/lat.py | 5acb0af39bc504a6a99980b256d8c8bc91fa65c5 | [] | no_license | tonyre4/CSPmio | 4ecd22d4511fb7a79183fa8551f2d9e1b7b4b07f | 4a037973bce2694f247914e872a51bf088a8472c | refs/heads/master | 2022-05-20T02:26:40.817934 | 2020-03-19T00:40:23 | 2020-03-19T00:40:23 | 242,209,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from pylatex import (Document, TikZ, TikZNode,
TikZDraw, TikZCoordinate,
NoEscape,TikZUserPath, TikZOptions)
import pylatex as pl
def cutReport(num_part,data):
space = 0.8
s = ""
s+= """\\begin{center}Reporte de cortes\\end{center}\\newline\\newline... | [
"tonyre4@gmail.com"
] | tonyre4@gmail.com |
e3f5ce740dabae5d2ac3f96257e4f3b50c6647a7 | e7a88984a771e34f125fa9ba550bfd5ba47f2c13 | /test/test.py | f67d51f44c7ca0b50ebd51bc4dc7fe7b7864218d | [] | no_license | ljljlj23/flask | b53d3e7835f8cd9440022420ae8ff35bd5593e16 | 02a099611e347e2c3818eb8b848c7aa70d0d3ecc | refs/heads/master | 2022-12-10T17:09:54.243851 | 2019-10-15T12:55:11 | 2019-10-15T12:55:11 | 214,779,820 | 0 | 0 | null | 2022-11-23T03:33:10 | 2019-10-13T07:37:39 | CSS | UTF-8 | Python | false | false | 113 | py | def test(**kwargs):
print(kwargs)
def newfunc(**kwargs):
test(**kwargs)
newfunc(name='zhangsan',age=90) | [
"1074819863@qq.com"
] | 1074819863@qq.com |
5f23b71eab551abbda9843c431936e26edeb3eb1 | 6d7a3764b52fa29cc258974e8390e1f1d3c714ad | /2task5.py | 94b1e1e0e42c31ab70e9bb206775fa21f93f1254 | [] | no_license | LinJiaB00755804/inwk6312fall | 1cae60946245f95e458c75a7d9487297a97d4bbc | b3e8cd6f8f9e591227c506a51f5aa212474acf0a | refs/heads/master | 2021-07-06T21:02:31.268074 | 2017-10-03T20:47:23 | 2017-10-03T20:47:23 | 103,432,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import turtle
def lt(t,s):
t.lt(s)
def polygon(t,l,n):
for i in range(n):
t.fd(l)
lt(t,360/n)
bob = turtle.Turtle()
print(bob)
polygon(bob,100,6)
turtle.mainloop()
| [
"noreply@github.com"
] | LinJiaB00755804.noreply@github.com |
05bc7e1cddab918e4effdc029f0e775a0bcfd668 | 6afe8d05916871d08547afe184674acbe5a10ef3 | /binary_tree.py | 7ca32e970397816abc58c285d1cf7eae6f5d76af | [] | no_license | ryenumu2/Python-Database | 063988e13ca1da8d8cbb3c79c555d16cfba79af2 | 699cec17c4530843a0c14723cd5aa4230015f029 | refs/heads/master | 2022-11-30T15:32:57.011820 | 2020-08-10T23:33:48 | 2020-08-10T23:33:48 | 285,759,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | from logic import LogicBase
class BinaryTree(LogicBase): #the binary search tree implementation: child nodes to the left are smaller than their parent nodes and child nodes to the right are larger than their parent nodes
#def __init__(self, node):
# self._pathTo(node) = None
def _get(self,node,key): #... | [
"ryenumu2@ncsu.edu"
] | ryenumu2@ncsu.edu |
d591953bb2e16de6a6843ab053f2d020532add83 | c4223c042fbb2087b7008ee924b4f2cd1af6276d | /deals/models.py | 9174e722f7f2859226b481f5a57af5f761d6ddc4 | [] | no_license | Difroz/test | fcd51437fa6a0f84dd784c4a88918bef31d7cb68 | 69b88e10d3a01d12c6d597f5c7677d18450b677f | refs/heads/main | 2023-07-09T01:22:56.206728 | 2020-12-17T04:16:07 | 2020-12-17T04:16:07 | 322,042,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | from django.db import models, transaction
import csv
import io
class Deal(models.Model):
customer = models.CharField(max_length=200)
item = models.CharField(max_length=200)
total = models.DecimalField(max_digits=7, decimal_places=2)
quantity = models.PositiveIntegerField()
date = models.DateTimeFi... | [
"proger@company.com"
] | proger@company.com |
171a3cdb427b5ed0f0934add26311b837838c58b | 645d1e9b73f382da28e2d0f6494b05fa5e278bf2 | /answers/lowestCommonAncestor.py | f81cf6aa48df56412fb40064598eba03974344dd | [] | no_license | xxbeam/leetcode-python | 63efcba4f0fc1c09ceebca725778dacd9dfd27fd | 5f1282abb64651c4b67ce0b262456920827fe7dc | refs/heads/master | 2023-07-17T23:33:08.783011 | 2021-09-10T01:47:46 | 2021-09-10T01:47:46 | 345,580,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # 236. 二叉树的最近公共祖先
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode':
if p == q:
re... | [
"xiongxin@songxiaocai.com"
] | xiongxin@songxiaocai.com |
4837ebd038cc18b587ef85ec7d63576591ad3473 | 89ba31bb75f4f3c9b693131512952e21af050350 | /P04_graficos_B_double.py | 2f2bf593546a17e6f1f197626495d5873e88ddb4 | [] | no_license | pablo14simon/pablo-simon-P0 | 1754001accd9d52f584a8abb8389ed690a8803a3 | 3d72b757a933f06df7a0489040932281d64899bf | refs/heads/main | 2023-07-17T23:12:40.652225 | 2021-09-03T23:40:54 | 2021-09-03T23:40:54 | 392,175,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,841 | py | import matplotlib.pyplot as plt
arch1 = open("Caso B.1 con float64 (double).txt", "r")
arch2 = open("Caso B.2 con float64 (double).txt", "r")
arch3 = open("Caso B.3 con float64 (double).txt", "r")
arch4 = open("Caso B.4 con float64 (double).txt", "r")
arch5 = open("Caso B.5 con float64 (double).txt", "r")
arch6... | [
"noreply@github.com"
] | pablo14simon.noreply@github.com |
aebecf84a9bd58c8a5a36840047bb1925f631d96 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Linear_base.py | 609e726630a951b88424fbc92f5769c4d4b3c8f1 | [] | 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 | 617 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
7a9be2675b22dfe3ccc0eefb4cdbc51cb3cb3e1c | 1f05f79f4dfe196da7849632243f98473cb16be7 | /knosk/__init__.py | cce2a0c3f10b54770b9a5a818808b68d43b50f54 | [
"MIT"
] | permissive | knosk/knosk-core | b15c01b2b2bc38557e8df9d0916dab2340f8a200 | 1d26f7c2f64ace8bed49a42eb1ed50f03ffb6dfe | refs/heads/master | 2020-08-04T13:52:27.139931 | 2019-10-07T18:53:44 | 2019-10-07T18:53:44 | 212,158,152 | 2 | 1 | MIT | 2019-10-07T18:53:45 | 2019-10-01T17:31:09 | Python | UTF-8 | Python | false | false | 141 | py | from knosk.choosers import *
from knosk.core import *
from knosk.fields import *
from knosk.matchers import *
from knosk.suggesters import *
| [
"makcimkos@gmail.com"
] | makcimkos@gmail.com |
61298a4f8b3d7a48d59e50876e618227c7e7ce24 | 518fd7db1a3bf65f142a913378a9d9e2eff0f6bd | /tests/remotes/ssh.py | c0514b363fb5b09476916c73807415b3a2b71817 | [
"Apache-2.0"
] | permissive | backwardn/dvc | 6cd95c45862235e2554f65b7f6cae879f90acb34 | 83a2afc7b05e38014aca224ab85949b0974d9bec | refs/heads/master | 2020-09-13T16:50:22.918981 | 2020-06-26T23:36:56 | 2020-06-26T23:36:56 | 222,845,893 | 0 | 0 | Apache-2.0 | 2019-11-20T03:49:09 | 2019-11-20T03:49:07 | null | UTF-8 | Python | false | false | 3,043 | py | import getpass
import os
from subprocess import CalledProcessError, check_output
import pytest
from funcy import cached_property
from dvc.utils import env2bool
from .base import Base
from .local import Local
TEST_SSH_USER = "user"
TEST_SSH_KEY_PATH = os.path.join(
os.path.abspath(os.path.dirname(__file__)), f"{... | [
"noreply@github.com"
] | backwardn.noreply@github.com |
3e59e5eacd253275ed1c9ad571b36ac64bf88496 | ae5af2cadc237e18a23d1e4dd3d4a89d2df544d2 | /ansible_syntax_check.py | f68dd7973e702cf7924082ee5012825f9999164e | [] | no_license | balasaajay/python_ops_automation | 96a1f31129040f7aa7a026f127865a6b09fbe433 | 49cf0fec69ad43529e749a91bb34ebeec38bd88b | refs/heads/develop | 2021-01-20T12:12:32.696309 | 2016-06-12T07:06:38 | 2016-06-12T07:06:38 | 59,611,419 | 1 | 1 | null | 2016-05-26T05:19:22 | 2016-05-24T21:56:25 | Python | UTF-8 | Python | false | false | 362 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# syntax check for an ansible yaml
import yaml
import sys
try:
playbook = yaml.load(open('/path/to/playbook.yml','r')) # Update with path to your playbook
except:
print "Error loading the ansible-playbook, must be a yaml syntax problem"
sys.exit(1)
... | [
"ajaybre1987@gmail.com"
] | ajaybre1987@gmail.com |
ac58df38bea86bc7de2141fe27a069d62b652058 | 74d8b2f864e0e6656c41697e9d2ea180036924ba | /0416/0416/ntust/mysite/cms/models.py | d44e7259f00997dc43412b00a9e05a71fcb4cc73 | [] | no_license | ssandylin/JerryHW | da124e249d5726668b66ae835b3a8be360512a93 | 313867d4320d70d9f848680128822ae7152799e0 | refs/heads/master | 2022-12-06T22:47:56.369762 | 2018-06-04T04:25:20 | 2018-06-04T04:25:20 | 125,645,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.db import models
class person(models.Model):
name = models.CharField(max_length=10)
birthday = models.CharField(max_length=10)
is_girl = models.BooleanField(default=0)
def __str__(self):
return self.name
# Create your models here.
| [
"37054703+ssandylin@users.noreply.github.com"
] | 37054703+ssandylin@users.noreply.github.com |
ce1852be828f534ad3ec8cc0ebe37b8417b276a9 | 51899c24fe2ab1ee1a0dd40b58867532f5428004 | /DC/main.py | f5e64c5b20c5ab51afe661e607e07513c179847f | [] | no_license | 763272955/python | a2d07ee37d31c919d0fecb0a798a87bc024b6970 | b1952ee702227d5624a76410e365dfc38e9beb5c | refs/heads/master | 2021-05-11T11:33:55.246035 | 2018-01-16T06:20:28 | 2018-01-16T06:20:28 | 117,638,934 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | # -*- coding:utf-8 -*-
import os
import urlparse
from methods import google_
from methods import see_page
import sys
reload(sys)
sys.setdefaultencoding("utf-8" )
class DC_Main(object):
def __init__(self, url):
self.url = url
self.keyword = []
self.google = ['inurl:', 'site:']
def get_... | [
"33079717+763272955@users.noreply.github.com"
] | 33079717+763272955@users.noreply.github.com |
f7f5297ba162fe5008c618168f67f3604586d3e7 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /scripts/speech_recognition/confidence/benchmark_asr_confidence.py | 8922fe09176db4b0b0767adb7d1e7ad616a721cd | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 12,042 | py | # Copyright (c) 2022, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
5382140e9fa0a39c22d11d9d2e26a67d161e55f9 | 396787df1b472ddfab7d934c149b150352342f03 | /python_fundemental/80_Consecutive_Numbers_Sum.py | 621b036d6cad85320f5dc18d8916f11e8fd3ff97 | [] | no_license | Deanwinger/python_project | a47b50a9dfc88853a5557da090b0a2ac3f3ce191 | 8c0c2a8bcd51825e6902e4d03dabbaf6f303ba83 | refs/heads/master | 2022-07-10T16:41:56.853165 | 2019-07-21T13:08:48 | 2019-07-21T13:08:48 | 107,653,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | # leetcode 829. Consecutive Numbers Sum | [
"a541203951@163.com"
] | a541203951@163.com |
aaf603f12269c28ff5c4caaab8ec16a82eecd936 | 29dfec7f0cccfba38d1fcb3eca586284290e3211 | /data_pre-processing.py | 5c339f05a4a43d4877f597ecf4bdb98ee00e1a85 | [] | no_license | anondo1969/baseline-emotion-recognizer | a85855bcc2a0810411ac7fff2260dfbc457f66cf | f53acdc5b5c79a3b989a9ebfbb27fe83b8df87a8 | refs/heads/master | 2020-12-30T06:30:16.646665 | 2016-06-25T19:29:09 | 2016-06-25T19:29:09 | 238,893,378 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | #=====================================================================================
#this script will eliminate the unwanted portions of feature file-
#generated by OpenSmile and store them in Numpy array formatted text files.
# Written by Mahbub Ul Alam
#============================================================... | [
"alammb@ims.uni-stuttgart.de"
] | alammb@ims.uni-stuttgart.de |
ace9b59b193f5bf5eee08edf92be7370d22caaa6 | d437120d191e37691f9ec824e753faa05ddb3b31 | /Practice/Interview/6.从尾到头打印链表.py | 14b9ca41a2ab57f23f0188834edd6fed59ef760f | [] | no_license | ICESDHR/Bear-and-Pig | c1153345c13ec52f0b000acccede773ad2421ad4 | 2fb98240258de285b43eae92c187bf36372c9668 | refs/heads/master | 2022-03-06T09:35:35.164032 | 2022-02-24T08:49:23 | 2022-02-24T08:49:23 | 127,283,094 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # -*- coding:utf-8 -*-
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def PrintListFromTailToHead(listNode):
if listNode != None:
temp = [listNode.val]
nodes = listNode
else:
return []
while nodes.next != None:
temp.append(nodes.nex... | [
"smilewangyizhe@163.com"
] | smilewangyizhe@163.com |
bdad26231a915897f8611a7c72d2e4aad1eaed8a | 2c3f5692e50fa4e7c7561faced7501650de7f83d | /App.py + csvfiles/app.py | 4f1f33aaa8a07f6e115c8b3bd3e6edeb1026d6ba | [] | no_license | cageofan21/sqlalchemy-challenge | 6c4a9c764d589a52278d77f59dc45a9f2b9190f7 | f3313f8055d2fdd909b48a9c1f87ff776d387ace | refs/heads/master | 2020-12-28T13:57:28.520671 | 2020-04-09T07:59:49 | 2020-04-09T07:59:49 | 238,359,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | import numpy as np
import pandas as pd
import datetime as dt
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#################################################
# Database Setup
#############... | [
"adib.cena@gmail.com"
] | adib.cena@gmail.com |
093b920439e7837b4a8f668ec9e2bfda1feeb331 | 12ce225916bbee1c4fc83104478a695a9afc8b4f | /user/migrations/0001_initial.py | 6400393f1988638c361642e57fe4802875a179d8 | [] | no_license | suman-kr/prism | 4985711edbd7f178663e7de8034c13f378777034 | 7b731304bd1a441c29d87edb0944e95026e125a1 | refs/heads/master | 2022-12-21T21:37:56.697211 | 2020-09-25T08:58:28 | 2020-09-25T08:58:28 | 298,069,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | # Generated by Django 3.1.1 on 2020-09-21 15:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"skcool.123bgp@gmail.com"
] | skcool.123bgp@gmail.com |
acb4d49de13e8c5b8f71ab3a8a6a31918cebbe30 | 191969ffc6f6cd164964129f2a986c9f3a3c045e | /05day/07-变量.py | a635c8e36ead4c3308e5ed749fbe5468dd1d8aa5 | [] | no_license | 2001128/p1805 | 72844bde17b23de85a60308253da8a39750659fb | 65538d83229639c237ea6de56dc2105bd3ca06a2 | refs/heads/master | 2020-03-19T11:32:06.878033 | 2018-06-28T02:50:36 | 2018-06-28T02:50:36 | 136,460,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # = 赋值运算符
a=2
b=5
c=a+b
print(c)
d=a-b
print(d)
e=a*b
print(e)
f=a/b
print(f)
g=a//b
print(g)
h=a%b
print(h)
i=a**b
print(i)
| [
"335775879@qq.com"
] | 335775879@qq.com |
9cdb66c2b0c31cb1f388722770337ffa10ab9818 | 743be419d9af6be760a4c9754a9fb946b84827ec | /videos/migrations/0003_video_share_message.py | 55f26e1f4ad49f07086cc256cd27a73eda0033cb | [] | no_license | mathbeal/videomembership-django | f76c9debaef1b00171d79e8fd1e9409e24705f68 | 3fa779458197a245aacb82d00ff0e7102a3cb831 | refs/heads/master | 2021-06-04T20:13:38.457946 | 2016-09-13T13:37:05 | 2016-09-13T13:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-22 13:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('videos', '0002_auto_20160219_1433'),
]
operations = [
migrations.AddField(
... | [
"leo.maltrait@gmail.com"
] | leo.maltrait@gmail.com |
334259432a3f79cae1881f83df692c4d55ebd401 | 241dc11ca83565b0e4626277c2b4226d2bb2a7d0 | /Dhein_Elegans_Projects/Code/draw_plots.py | 61d7ef9adef8bc5e7aa4d1770432780294a25181 | [] | no_license | SES591/C.-elegans | 7badaaf0317e6b5f67fd41e6a9d867d2f569a2cd | 08f0ef49f7002dd4847b27c7dc9afac8e75da989 | refs/heads/master | 2016-08-12T13:39:38.032623 | 2016-05-05T23:26:30 | 2016-05-05T23:26:30 | 50,062,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | #!/usr/bin/python
#bionetworks.py
#last update : 14 Aug 2014
__author__ = '''Hyunju Kim'''
import networkx as nx
import os
import sys
import random as ran
from math import log
from optparse import OptionParser, OptionGroup
from scipy import *
from collections import defaultdict
import matplotlib.pyplot as plt
#from ... | [
"Kelle Dhein"
] | Kelle Dhein |
adbc022b93ab8d6fd6995816263a766c5680a84f | c2640725115d0d62fd815539b9f3d33006586b81 | /VertexCover.py | 0cd9697cf61a71b297187fb1d0cf27b8323b1396 | [] | no_license | GiridharaSPK/Advanced-Analysis-and-Design-of-Algorithms | 79f91241022075ae604ab287f1505b6c13ccc3be | f189d4c99d48b1dd71dd00b9b896c3e0cafbc348 | refs/heads/master | 2021-10-29T02:16:43.225151 | 2021-10-19T07:42:30 | 2021-10-19T07:42:30 | 143,556,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | from pulp import *
A= [[0,1,1,0,0,0,0],
[1,0,1,1,0,0,0],
[1,1,0,0,1,0,1],
[0,1,0,0,0,1,0],
[0,0,1,0,0,1,0],
[0,0,0,1,1,0,1],
[0,0,0,0,0,1,0]
]
prob = LpProblem("VertexCover",LpMinimize)
variables=[]
for i in range(len(A[0])):
variables.append(LpVariable("A_{}".format(... | [
"noreply@github.com"
] | GiridharaSPK.noreply@github.com |
7649769d02263db44beb3e9dabb1074a73afe3bd | 76a3099faad6720ad1d3f7595cb7fbe660c640cc | /reverse.py | c0aac686a9a199e07d69b63bab55deabea0b3bf1 | [] | no_license | AcidPenguin/learning-python | fab019020c74945cac9f7dae804272f80932e539 | 8b9282863c33e6f708caf394564c9ece7ad6f023 | refs/heads/master | 2021-07-10T12:22:25.533284 | 2020-07-22T22:25:36 | 2020-07-22T22:25:36 | 168,377,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # print what ever results from the brackets
#
print(" ".join(input().split()[::-1])) | [
"addictedpenguins@icloud.com"
] | addictedpenguins@icloud.com |
7e47cc01ebb88fb90a91148d4b000cd84c660f05 | 47b6ca131212a3e434b701d5e67d1d2e49ab21b2 | /Exercise 5.py | 5afc6bdd2ddaa97d4805057984e4084b7996a05a | [] | no_license | ZarkoHDS/MuhammadYusuf_ITP2017_Exercise5 | 472110787f6f9a6fe9d3396113d3bafb0abac97d | 49fb3ed3d56c3a603051230b6dba6733b90b877f | refs/heads/master | 2021-07-10T12:06:53.856432 | 2017-10-08T11:09:47 | 2017-10-08T11:09:47 | 106,169,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #exercise 5
x=0
def calculator(num1,num2,operator,x):
if operator == "+":
x=num1 + num2
elif operator == "-":
x=num1 - num2
elif operator == "*":
x=num1 * num2
elif operator == "/":
x=num1 / num2
else:
x = num1+num2
if format == "integer":
print(i... | [
"muhammad.andiyusuf@ymail.com"
] | muhammad.andiyusuf@ymail.com |
d7263ad2898835a25b3012e0164c9c1abf279507 | 4c9bfaa5f83d76b00db63f14e5c8484a58ed7d99 | /ll_env/bin/django-admin | f8372abe329761312875b9b51ea2a766734fff95 | [] | no_license | davidthurman/My-Website | 0fb14ed4aa45ea905f259c5091fef41f5c2bea2e | 55bd5aa2e72e2d811da3f01f5a97b2715ad16c1b | refs/heads/master | 2020-12-01T05:27:25.521149 | 2016-10-01T15:27:52 | 2016-10-01T15:27:52 | 67,652,235 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321 | #!/Users/davidthurman/Desktop/Python/Django/My-Website/ll_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())... | [
"davidthurmanwork@gmail.com"
] | davidthurmanwork@gmail.com | |
a702e97955980bf12bf92cfbc414efd0e9a8c369 | 35d1b6ba84ffcc682e361e929bfb3b81caf0402f | /invenio_records/systemfields/model.py | efc74c3cf19daa7ce1f4a3d4d60900de4ba83da4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ppanero/invenio-records | 59f87f43f02760f4c16d39954e062843b9b545fc | b189ce21d89f2e186d51a368931d5ab3e721ffae | refs/heads/master | 2022-09-14T19:34:26.877056 | 2022-03-17T09:13:43 | 2022-03-17T09:13:43 | 179,234,572 | 0 | 0 | MIT | 2019-04-03T07:28:48 | 2019-04-03T07:28:47 | null | UTF-8 | Python | false | false | 2,645 | py | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2020 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Constant system field."""
from ..dictutils import dict_lookup
from .base import System... | [
"lars.holm.nielsen@cern.ch"
] | lars.holm.nielsen@cern.ch |
2d99be2947ed06a48d470ebeae9181f5060181a0 | b6eedb13dc8968bff95da19c82cc3c390d57419c | /SPrEader.py | c036387ed9cb0f59a8a10fa604f75d61df0cc79b | [] | no_license | Alirezabln/RubyRead-3 | 65365791385778fb30a80dcb746973a749031301 | e37cf2469dc995c2dd0ae81c575d0cbc43641824 | refs/heads/master | 2023-04-24T18:59:37.297387 | 2021-05-19T18:20:44 | 2021-05-19T18:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,065 | py | ''' winspec.py - read SPE files created by WinSpec with Princeton Instruments' cameras. '''
import ctypes, os
import struct
import numpy as np
import logging
__all__ = ['SpeFile', 'print_offsets']
__author__ = "Anton Loukianov"
__email__ = "anton.loukianov@gmail.com"
__license__ = "BSD"
__version__ = "0.2.1"
log = ... | [
"jssmith@anl.gov"
] | jssmith@anl.gov |
67ee694b86cd7dc3c2c0e4b65be8f0f59bff7f81 | 3a343e05afa4a3b2485aa6bba8386011ade0f32c | /gohappyserver/authviews.py | 368e431fb4e8eb9d5e4644f7a7ad4b6c81bedf9b | [] | no_license | kazemnejad/gohappy-filemanager-server | 21c3cc5ede3dadafb3f898513098eb3ad209f2cc | e9ca82cb567da62cf3cf48cf1bdeb4dbb0058095 | refs/heads/master | 2021-01-10T08:48:41.119086 | 2016-03-27T09:53:15 | 2016-03-27T09:53:15 | 54,634,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | from flask import abort
from flask import request, jsonify, render_template
from gohappyserver.database import db_session
from gohappyserver.models import User
from gohappyserver.server import app
class AuthResponceCode:
SUCCESS = 10
FAIL = 11
USER_EXISTS = 12
INVALID_CREDENTIALS = 13
@app.route("... | [
"ub.maka@gmail.com"
] | ub.maka@gmail.com |
4d0112a32f6eca81ffc2fdd40fa60162f829a9b4 | 07d01fa4ec60b5a6cb0d157e97b4352847f8ef36 | /.venv/Lib/site-packages/pathspec/tests/test_pathspec.py | a76ec0701f627ac13736aeddc56178808c7bd9eb | [] | no_license | freddieaviator/simple_python_pipeline | 9b833df352a3310e10929313d46bc76b23ae9490 | 34c11a04d028906aa8de73d5b8a6a6f143c94de0 | refs/heads/main | 2023-06-30T04:41:13.738241 | 2021-08-05T14:25:30 | 2021-08-05T14:25:30 | 392,977,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,416 | py | # encoding: utf-8
"""
This script tests ``PathSpec``.
"""
import unittest
import pathspec
class PathSpecTest(unittest.TestCase):
"""
The ``PathSpecTest`` class tests the ``PathSpec`` class.
"""
def test_01_absolute_dir_paths_1(self):
"""
Tests that absolute paths will be properly no... | [
"harberg@kth.se"
] | harberg@kth.se |
79b993423382b3e092e440f39a6078aea418e1fc | 5ac5440db74b41e46ca5ac4de10430251a3076f9 | /Copia de velocidades.py | 948249c5881035ff6713195c642cc8e24b44fcf9 | [] | no_license | JMicrobium/progra | f75663cfe18b39367fb218919b190aad51581c62 | 47c24c27b1cde1401bde10a760244ee7a21041c7 | refs/heads/master | 2020-08-08T06:16:47.236430 | 2019-11-07T03:41:35 | 2019-11-07T03:41:35 | 213,751,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | """# division of lists
# using zip() + list comprehension
res = [i / j for i, j in zip(test_list1, test_list2)]"""
deltasA=[50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 9... | [
"54874211+JMicrobium@users.noreply.github.com"
] | 54874211+JMicrobium@users.noreply.github.com |
32ed04f60ded1e497874c903fcb12015b3432175 | af217fb6a724a0450917dc365a0dff3c38fbe94f | /grocy/model/inline_object7.py | 33a02074e26fb3493103c6992b18b2322518fd35 | [] | no_license | fipwmaqzufheoxq92ebc/grocy-python-openapi | b8f7ab5eba96ff28d6845ada22493bf233ac1900 | 014c7b3ef88c9a2e11d6a59c4ef2f8037c623bc6 | refs/heads/main | 2023-06-02T16:59:20.253117 | 2021-06-24T13:23:02 | 2021-06-24T13:23:02 | 379,931,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,177 | py | """
grocy REST API
Authentication is done via API keys (header *GROCY-API-KEY* or same named query parameter), which you can manage [here](http://localhost:8111/manageapikeys).<br>Additionally requests from within the frontend are also valid (via session cookie). # noqa: E501
The version of the OpenAPI d... | [
"29818044+fipwmaqzufheoxq92ebc@users.noreply.github.com"
] | 29818044+fipwmaqzufheoxq92ebc@users.noreply.github.com |
a8f892dce29287628553c4c94badbe69cb409949 | e593273909dd6b5148357c775bb3acb15fad3779 | /b2/part.py | 5e93e234327b55a13dc365d62b51bae7f652945d | [
"MIT"
] | permissive | Python3pkg/B2_Command_Line_Tool | e2ed8cfaf1cbd2b13d4fe8479f17b6ecb97d6961 | 15f5a235d831e3fe1987ecfb787893e9e01e279d | refs/heads/master | 2021-01-21T09:23:43.104569 | 2017-05-18T08:45:35 | 2017-05-18T08:45:35 | 91,653,925 | 1 | 0 | null | 2017-05-18T05:50:33 | 2017-05-18T05:50:32 | null | UTF-8 | Python | false | false | 1,150 | py | ######################################################################
#
# File: b2/part.py
#
# Copyright 2016 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
class PartFactory(object):
@classmeth... | [
"coder@beachfamily.net"
] | coder@beachfamily.net |
71967d56f56ea90ba5abb1691448706e5b956b69 | e7881505ecc7e993b1d87be5bf604448fa2a3e2d | /server/taxi/taxi/urls.py | a8e995c75829d2cc0fbf6ee7d3e0090012af6d15 | [] | no_license | pmaturure3/React_Django_Taxi_App | 8bf7e78174dd6eab6e4cdb1da70aa58af4d2ae05 | 1e69d4120b83be2bb430decea3fbc16d74a77b31 | refs/heads/master | 2023-02-11T02:33:18.081483 | 2020-07-26T21:58:46 | 2020-07-26T21:58:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.contrib import admin
from django.urls import include, path
from rest_framework_simplejwt.views import TokenRefreshView
from trips.views import SignUpView, LogInView
urlpatterns = [
path('admin/', admin.site.urls),
path('api/sign_up/', SignUpView.as_view(), name='sign_up'),
path('api/log_in/',... | [
"sjogleka@uncc.edu"
] | sjogleka@uncc.edu |
c55d8ac50017b3cbc3399ad4b902e24e61709f95 | e30aa4cbaecf14398ca72eac996e7dfda55d85cd | /setup.py | 2b72191566b82e2d64d07f6393417b32da4e4f65 | [
"MIT"
] | permissive | DanielLSM/crypto-insider | 2adfa9fc707a69d58440bc75cb3f2ebb4b6ef14d | f668f184e5d748e82918f4ec4b57f8ae9b417804 | refs/heads/master | 2021-04-28T18:44:54.614934 | 2018-02-24T21:07:11 | 2018-02-24T21:07:11 | 121,878,453 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from setuptools import setup, find_packages
import sys
if sys.version_info.major != 3:
print('This Python is only compatible with Python 3, but you are running '
'Python {}. The installation will likely fail.'.format(sys.version_info.major))
setup(name='baselines',
packages=[package for package in... | [
"daniellsmarta@gmail.com"
] | daniellsmarta@gmail.com |
8a43744f7e3df08e09834cfc54ecc99bb72ea18f | c63bf01b632c52dcfb19e78b47c36fb5efcab507 | /src/components/enemy.py | ca6b6fdbea24c7d86a63f385b3af1085c8dd35c9 | [] | no_license | Grimmys/BubbleTanks2 | 3292173eb6abd66d40aa5306e65af381a47867bd | a015ece36b4bea80b92656ffc37e947b0919a536 | refs/heads/main | 2023-06-26T12:27:15.150425 | 2021-07-29T19:47:51 | 2021-07-29T19:47:51 | 400,833,006 | 1 | 0 | null | 2021-08-28T15:58:14 | 2021-08-28T15:58:13 | null | UTF-8 | Python | false | false | 10,242 | py | from random import uniform
from math import pi, cos, sin, hypot
import pygame as pg
from assets.paths import *
from data.constants import *
from data.enemies import ENEMIES
from components.utils import *
from components.base_mob import BaseMob
from components.enemy_body import EnemyBody
from components.enemy_weapons ... | [
"ildar.239@mail.ru"
] | ildar.239@mail.ru |
c8dcd6449bc4e03816534630d254503edabffe65 | f42431fa2dd76706ebf694bd421e8416b9ba83a5 | /training/train_with_action_masking_3/callbacks.py | 6067e2a9855f116eb7ffc5acdced23c3cc65c800 | [] | no_license | Woitoxx/bomberman-rl | 95e633bc711ebd6f42914c68a7f7565199d58fba | 6071bfcb5a8d4d5398e5c9e43221d83361932209 | refs/heads/master | 2023-03-26T13:10:52.269182 | 2021-03-29T13:34:44 | 2021-03-29T13:34:44 | 338,549,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,682 | py | import copy
import random
from typing import Dict
import numpy as np
from ray.rllib import RolloutWorker, BaseEnv, Policy, SampleBatch
from ray.rllib.agents.callbacks import DefaultCallbacks
from ray.rllib.evaluation import MultiAgentEpisode
class MyCallbacks(DefaultCallbacks):
def __init__(self):
super()... | [
"15731141+Woitoxx@users.noreply.github.com"
] | 15731141+Woitoxx@users.noreply.github.com |
6fde26ec65ad1921499ea7fa51e39286788804c3 | b21a81b7f8ad98c87321b735487c10069e6fc72a | /attendance/urls.py | 08a5e7f46a8c08376ca3c2f4d83d6381095701d0 | [] | no_license | cabilangan112/Attendace | 2bf809a1ce6db849cc9dcf7f311600e453f52f9c | bfb4aa86293f4321cd2f121a5cdc957d61ea704a | refs/heads/master | 2021-08-24T11:29:53.448940 | 2017-11-21T05:52:28 | 2017-11-21T05:52:28 | 111,504,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """attendace URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"jassencabilangan@gmail.com"
] | jassencabilangan@gmail.com |
c533d73f97e5d29a1450cb193a09ef1e06419fc7 | bf01f2ee9dc903810dfaba3bff6dda56d31f41b9 | /ctpnsource/lib/fast_rcnn/train.py | abfaf281cb80815ea2f43a088ffa22019ae3286f | [
"MIT"
] | permissive | cwxcode/OCR_caption_recognition | e978741ccae2889ceb9cda055e9694dad40b80b0 | b2c5641e37e0d98b52e659ff42f549eb33840ea2 | refs/heads/master | 2020-04-07T01:31:35.243289 | 2018-11-17T03:42:45 | 2018-11-17T03:42:45 | 157,943,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,190 | py |
import numpy as np
import os
import tensorflow as tf
from lib.roi_data_layer.layer import RoIDataLayer
from lib.utils.timer import Timer
from lib.roi_data_layer import roidb as rdl_roidb
from lib.fast_rcnn.config import cfg
_DEBUG = False
class SolverWrapper(object):
def __init__(self, sess, network, imdb, roidb... | [
"kl1411@126.com"
] | kl1411@126.com |
eded561f07a96acb72afcdd9528b380067981cdc | 402125c206c68ddb33203d0d106e7dc681e47c9d | /13/part1.py | 34cffa3e7708354d5b387e93143ab04435d311f7 | [] | no_license | zacharyliu/advent-of-code-2020 | bcd02f6e2b4eaaa3ac35024b2e70e2e697bdebf4 | 0f2e69130d050a98ca9f83925a08345779edda58 | refs/heads/main | 2023-02-08T02:27:50.094890 | 2020-12-25T06:07:58 | 2020-12-25T06:07:58 | 321,265,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | '''
Your ferry can make it safely to a nearby port, but it won't get much further. When you call to book another ship, you discover that no ships embark from that port to your vacation island. You'll need to get from the port to the nearest airport.
Fortunately, a shuttle bus service is available to bring you from the... | [
"zach@zliu.io"
] | zach@zliu.io |
059b0a3788bb9be3058493f22296697b9d146e09 | ec38bb5972e1c9bc401bc62c3d1bd9b2e9b2e8f6 | /project/app/models/tortoiseORM.py | 1d4a34f005af92195649b6f25df82efad6bcf767 | [] | no_license | AimVoma/fastapi-tdd-docker | 87a4217bba5156dfb099ed46ab96530dbe177dd4 | 2046bda82d25a6fb824508a348eb829c7feb82e5 | refs/heads/master | 2023-05-09T05:20:37.985464 | 2021-05-29T17:04:10 | 2021-05-29T17:04:10 | 367,978,226 | 1 | 0 | null | 2021-06-06T19:08:03 | 2021-05-16T20:24:42 | Python | UTF-8 | Python | false | false | 401 | py | # project/app/models/tortoise.py
from tortoise import fields, models
from tortoise.contrib.pydantic import pydantic_model_creator # new
class TextSummary(models.Model):
url = fields.TextField()
summary = fields.TextField()
created_at = fields.DatetimeField(auto_now_add=True)
def __str__(self):
... | [
"aim.voma@outlook.com"
] | aim.voma@outlook.com |
aea11a35bba0d061397f5bdd20233c0cf6b90b7c | 7928e262f4a02f660708a7e5c68df88d0687076f | /python/autscore/app/__init__.py | e9add9e0e15d85c5218949b4ee9361ae4a70d7df | [] | no_license | sunyinggang/w_project | e61619922a4ea2c27ac8f40242a211ecaf9fb7a3 | 2c65457e91d84fc39cd96d3e2e8010af03b1ddd0 | refs/heads/master | 2022-12-14T20:10:22.552572 | 2020-09-05T11:09:47 | 2020-09-05T11:09:47 | 233,967,595 | 0 | 0 | null | 2022-12-08T04:22:17 | 2020-01-15T01:01:52 | HTML | UTF-8 | Python | false | false | 761 | py |
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql+pymysql://root:123456@localhost/wautscore"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['SECRET_KEY'] = '8906ced739ec4d3a80c0bcecfb15fb8c'
app.debug = True
db = SQLAl... | [
"136080416@qq.com"
] | 136080416@qq.com |
b984ec0ae65ac9b2c3d218e69774959c6ec17e79 | ed70c80a4dcd8438fd5873ad9f0166c49e51fb1d | /datasets/Vessels.py | 4003140289681cb8eb281d4266f9060d74ae28af | [
"MIT"
] | permissive | texsmv/point_cloud_reconstruction | 65ae96aee53c2eef4ee79947adba91c75de899cc | ef348b0884245c818674d2bb5e3ba05cc832a639 | refs/heads/master | 2021-11-30T20:55:30.757450 | 2021-11-20T06:07:14 | 2021-11-20T06:07:14 | 205,484,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,278 | py | from os import listdir, makedirs, remove
from os.path import exists, join
import os
import pickle
import pandas as pd
import numpy as np
import itertools
from torch.utils.data import Dataset
from utils.data import load_obj, load_obj_features, basis_point_set_random, load_HKS_features
class VesselDataset(Dataset):
... | [
"texs.mv@gmail.com"
] | texs.mv@gmail.com |
9dd531a45b01bb96b38f0b077553e091a9191659 | 6daab8f7776ef1f7dcfa656e7caefe2c100d214a | /part05/if elif else.py | dff6bacbbc29328652a27175e3ce5fcfaf821d4d | [] | no_license | yoga-nugroho129/python-dasar-kelasterbuka | 5b46bf20eb6fa5dfe4e58aa703c67c66bca83366 | 33dd66a01f048fea69d8e7775150905f55552eca | refs/heads/master | 2022-07-16T16:42:45.768305 | 2020-05-21T04:00:03 | 2020-05-21T04:00:03 | 265,750,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | ### PENGKONDISIAN/PENGKONDISIAN
nilai = 80
### syntax if dalam python :
### if ..kondisi.. :
### ..aksi..
### cara 1) dengan 'sama dengan' (==)
if nilai == 75:
print("Nilai anda", nilai)
### cara 2) dengan 'is'
if nilai is 75:
print("Nilai anda", nilai)
### NEGASI bisa dengan menggunakan '!... | [
"yoga.nugroho129@gmail.com"
] | yoga.nugroho129@gmail.com |
af907f12b024fb1fc96229918c602bc5b99accf1 | 5f85a871faaffecf55f766cdd58d1ea6b48ad679 | /natlas-server/app/auth/__init__.py | 8695e60d1ef501afb4cb16063fe656b7e9f9d362 | [
"Apache-2.0"
] | permissive | fdcarl/natlas | 859bbd56cf08d1cfb7e7a9d40c80e690d8c231f9 | 551038f3b7100546721a9185e194107521abbfc5 | refs/heads/main | 2022-10-22T04:01:43.747947 | 2020-05-12T03:58:26 | 2020-05-12T03:58:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from flask import Blueprint
bp = Blueprint('auth', __name__)
from app.auth import routes, wrappers # noqa: F401
| [
"0xdade@users.noreply.github.com"
] | 0xdade@users.noreply.github.com |
626d43a51f20589955b459724b2c27d00796debf | 43b50da74e752bc20bb3f71f04ad4b0d6b9d4d67 | /6pro.py | 0f5a2f7dc58a286421631edbb5fc357732f5d4a6 | [] | no_license | abinayavarshini/python | a547b35b0790a863267a218bec7d052bfd397555 | 1f2a5298ff1dea92fa503e8ff9623cae0a18d558 | refs/heads/master | 2020-06-12T07:50:46.982132 | 2019-08-12T16:33:58 | 2019-08-12T16:33:58 | 194,237,394 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | gh1=int(input())
gh2=list(map(int,input().split()))
ant=0
for j in range(len(gh2)-2):
for k in range(j+1,len(gh2)-1):
for l in range(k+1,len(gh2)):
if gh2[j]<gh2[k]<gh2[l] and j<k<l:
ant=ant+1
print(ant)
| [
"noreply@github.com"
] | abinayavarshini.noreply@github.com |
a3724821f4d69568eb22265b90af7dd176e3a666 | e72f1268c4f2737ae24f27f250c6b36e795dd94b | /lesson5/hashtable_add.py | 5f63c16200baf2435e9ee891a9c336548f4de74f | [] | no_license | maykjony90/intro_to_cs | 33201aaf93114f5fb60cd22b58020d97b8fdd30c | 39b52c566c7403163f99d8e18bdb5f2cf7e8228b | refs/heads/master | 2021-01-20T13:10:47.726371 | 2017-10-09T20:56:05 | 2017-10-09T20:56:05 | 90,456,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # Define a procedure,
#
# hashtable_add(htable,key,value)
#
# that adds the key to the hashtable (in
# the correct bucket), with the correct
# value and returns the new hashtable.
#
# (Note that the video question and answer
# do not return the hashtable, but your code
# should do this to pass the test cases.)
... | [
"aykilkilic@gmail.com"
] | aykilkilic@gmail.com |
79c1df71b44a8417307bb340d793675fc6e22870 | 5d42cfb9340f2b8bb3eae2de4fe459d16c1aba28 | /Python_Challenge/PyBank/Main.py | 66514060a866e3d41285372b3460c4a4442a6191 | [] | no_license | saniyasule/Python-Challenge | c699e951c030867cbd242c0ed536e0161831bf99 | 948c948f784c209e957726fc7b04141a90ad979c | refs/heads/master | 2020-09-23T13:25:21.501095 | 2020-03-10T14:59:08 | 2020-03-10T14:59:08 | 225,511,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | import os
import csv
os.chdir(os.path.dirname(os.path.abspath(__file__)))
csvpath = os.path.join('Resources', 'budget_data.csv')
with open(csvpath) as csvfile:
csvreader = (csv.reader(csvfile, delimiter=","))
csv_header = next(csvreader)
sheet_row = []
sheet_column = []
maxandmin = [... | [
"noreply@github.com"
] | saniyasule.noreply@github.com |
1ae7156d2599d5a3a932e57176a82951011e5f59 | 4acabcefbdb4ddb8289bced532dc18adc4257558 | /PA3/simple_de_bruijn.py | 9208f5e47bbb120e0f43d25400a870ec34ea124e | [] | no_license | insomnolent/CM122-projects | 29f59f5770900a32899edbd2d91da388cf4bed4e | 67e3baaaaeafe6ed9f4d19bcd526db424c9237d9 | refs/heads/master | 2021-01-20T09:21:21.970979 | 2017-03-24T07:32:48 | 2017-03-24T07:32:48 | 82,614,599 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | from os.path import join
import sys
import time
from collections import defaultdict, Counter
import sys
import os
sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../.."))
from BIOINFO_M260B.helpers import read_reads
def read_assembly_reads(read_fn):
return read_reads(read... | [
"jbcccsun@gmail.com"
] | jbcccsun@gmail.com |
c6f5ac6fea9aff3e441cf19f8b673b69c380f927 | 9cabe395035e3e344dcf0d83baa20bcdefec969e | /LibreriasFallidas/pippi-master/pippi/wavetables.py | 13c3e839f624d7a92b869a91c0fd4cf27453e374 | [] | no_license | dagomankle/LukeBox | 11703ab6ea0079e98649f41e23b5f780e33d3611 | 2b86167f2c3f6717194751f2e6ee605fb48858a2 | refs/heads/master | 2020-03-12T17:50:11.556813 | 2018-04-23T19:29:52 | 2018-04-23T19:29:52 | 130,737,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import collections
import random
import numpy as np
from . import interpolation
SINEWAVE_NAMES = set(('sin', 'sine', 'sinewave'))
COSINE_NAMES = set(('cos', 'cosine'))
TRIANGLE_NAMES = set(('tri', 'triangle'))
SAWTOOTH_NAMES = set(('saw', 'sawtooth', 'ramp', 'line', 'lin'))
RSAWTOOTH_NAMES = set(('isaw', 'rsaw', ... | [
"dagomankle@hotmail.com"
] | dagomankle@hotmail.com |
61e355d3284db96cc11f987258d161aa7254a7af | 5b2c920946732fb2c03f37a83220491230e39aff | /testlyt.py | 19b2fc038a1b8a2d92b7195cdb0cbaccf461aabc | [] | no_license | gloriaiaiaiaia/test_123 | 2a4bb46f6b740696424d5a1b0bd23f86d3013267 | 2115b507bbe0403dc52c96115bc01fc3356b07e3 | refs/heads/master | 2021-07-05T14:53:40.310527 | 2017-09-29T17:31:11 | 2017-09-29T17:31:11 | 105,297,462 | 0 | 0 | null | 2017-09-29T17:04:58 | 2017-09-29T17:04:58 | null | UTF-8 | Python | false | false | 52 | py | ddddddddddddd
jjkslaksl;ajodhqocdqwe
jjkk
kklklklll
| [
"noreply@github.com"
] | gloriaiaiaiaia.noreply@github.com |
09af47de6a19917c807d1f56ea540c3629f06085 | 02a680759a50f523a42d274d844b9a3b13d8b98e | /local_settings-example.py | 37e2ad76384a6786467c1b9c69320b9298474dbe | [] | no_license | JuliFed/board_v2 | 86261772ac662e3347d757776eda3d728b8f653d | f15157633e0311ce21072941418bbcfb88f59ec9 | refs/heads/master | 2020-03-19T08:52:37.123119 | 2018-06-12T13:45:32 | 2018-06-12T13:45:32 | 136,241,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_TRACK_MODIFICATIONS = False
# SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir,'app.db')
# SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
| [
"fedorchenkojuli@gmail.com"
] | fedorchenkojuli@gmail.com |
54cc2229676d7ba820006f56c595adce01319a33 | 07e1f102993454350d0daaa8d61a11d4c018ca2f | /test4.py | f2341f6962b2cfc362321b945335e1bcccb1600a | [] | no_license | ravinkece/Selenium-WebDriver-Python- | cc117ae804e1306f4986fdb3138699394e752461 | 2d19cef2abf082578552544fc9934d85dc293edc | refs/heads/master | 2020-04-01T19:57:51.323785 | 2020-01-14T04:23:55 | 2020-01-14T04:23:55 | 153,580,711 | 0 | 1 | null | 2019-08-19T11:20:06 | 2018-10-18T07:21:53 | Python | UTF-8 | Python | false | false | 282 | py | import time
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get("http://google.com")
print ("Ada")
| [
"noreply@github.com"
] | ravinkece.noreply@github.com |
3c71cf23f566faaac769fd3eb5aa1b028593dd60 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/command_lib/compute/scope.py | 3d89de4a7553e92bbf964aee1d1f46b7782b7ab6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,976 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
f687eba6bdacdff5305d1244a95c34500656513f | f43ef4a4291d65087407c1f1fd4bb0a532bf152d | /MoviesHub/views.py | b243e1ffc5e41b20cb76285222b56c3493add83a | [] | no_license | dheerajiiitv/Spoon | 807f1d03e0fbadeaa4d2bd10794ddaeb72345752 | 4f1e99a3d860c0ba7b9ac63eea1fa96912d0ab00 | refs/heads/master | 2022-12-21T12:03:11.263825 | 2018-12-07T00:32:07 | 2018-12-07T00:32:07 | 160,619,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib import messages
import requests
from threading import Thread
from Spoon.settings import TMDB_KEY
import queue
import time
# Create your views here.
def index(request):
# Function to show home page.
if reques... | [
"dheeraj.agarwal@monoxor.com"
] | dheeraj.agarwal@monoxor.com |
bf6b1db427afcec7a6112db1436fba53c06a09b2 | ab3a53ef9f39e7124afa49a3de7c28359f036aff | /exemples/langue-bois.py | f02d7bb5c81b16701a90426544fe4df223c17379 | [] | no_license | marcyves/Python-Pratique | 19ae70525b9ef399ee76f1d6ae7297f411352fc2 | d1104252eab688778e31b1cc7f5e4cdb178847e0 | refs/heads/master | 2021-08-16T21:36:54.580105 | 2018-10-13T10:34:54 | 2018-10-13T10:34:54 | 134,450,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | from random import randint
fragment = []
fragment.append(
[
"Mesdames, messieurs, ",
"Je reste profondement persuadé que ",
"Dès lors, sachez que je me battrai pour faire admettre que ",
"Par ailleurs, c'est en toute connaissance de cause que je peux affirmer aujourd'hui que ",
... | [
"m.augier@me.com"
] | m.augier@me.com |
f34f7b206662ef49703b1ecbd2f758bb64d2328f | 8a090cf9d8d27f62a0024774792783f751599db8 | /array-string/max-product-subarray.py | 5ee822653017dd7268992a8a1f58634936552089 | [] | no_license | kcaebe/interview-practice | 1809964351fc7f81cc281cade18c2a1d85568b2b | a00847f49de646205ccb29f0619a8b6dead47cd0 | refs/heads/master | 2020-06-26T18:56:46.112861 | 2019-10-29T06:11:58 | 2019-10-29T06:11:58 | 199,721,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py |
def maxProd(nums):
max_here = min_here = nums[0]
tot_max = tot_min = nums[0]
for i in range(1, len(nums)):
num = nums[i]
print(max_here, min_here ,num)
max_here = max(num, max_here * num, min_here * num)
min_here = min(num, max_here * num, min_here * num)
tot_max = ... | [
"kcaebe@gmail.com"
] | kcaebe@gmail.com |
8b2e3aea484729669fff0e7f931cf7252b691257 | e6c442ed80d147d53759985b8b34abe1af47ec8a | /blog/migrations/0001_initial.py | 892a40b9013c1c2aa117c941a247abf7cc82db4a | [] | no_license | ConjureETS/site-2015 | 178db4b2693f2e4a6ae268eed40e3886dadc8f83 | 119fbd2b8215908b2ace9d4e03c2d594f0c8f124 | refs/heads/master | 2021-06-11T14:41:16.432678 | 2015-11-12T04:01:14 | 2015-11-12T04:01:14 | 38,846,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(verb... | [
"emile.filteau@gmail.com"
] | emile.filteau@gmail.com |
88693c9476a42420cea4bce4980ecc2686d2b249 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/containerregistry/latest/replication.py | 88bad9240e4a22c7d76aa251b4b8af98bb69f71d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,403 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
5787b2a7f26f241cdc436266558d80aabdec547a | e66635486a8abc7710432b52aa15c2d6e4488c94 | /vmware_nsx/services/qos/common/utils.py | 9384070307b7fe32628078496486bb60e1070665 | [
"Apache-2.0"
] | permissive | yfauser/vmware-nsx | ba2bff4c3cc982b7af03ac7d9891a067018a7233 | 1fb08a7555efd820c2d5625665ab77d7e69d3b0c | refs/heads/master | 2021-01-18T17:41:40.411620 | 2016-06-02T21:13:43 | 2016-06-02T21:13:43 | 60,336,943 | 2 | 0 | null | 2016-06-03T09:42:43 | 2016-06-03T09:42:43 | null | UTF-8 | Python | false | false | 1,836 | py | # Copyright 2016 VMware, 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... | [
"asarfaty@vmware.com"
] | asarfaty@vmware.com |
96e6cf4dee890b0cf54958c1c5bf892d01bf4b23 | 8ba34c5c61105ef7e444d96ecfeb1fe049e16aee | /scripts/sofi.py | dc273143c2f7bb95e6dc6713bbaacc3b982f9e24 | [] | no_license | lifewinning/blackbox.finance | 2bbc156155438c3e2190362721fac96b2c7e774e | fb484c76cfbf586b65d6347ef81190683c13d72c | refs/heads/master | 2021-01-21T13:48:34.935530 | 2016-05-25T04:03:10 | 2016-05-25T04:03:10 | 53,981,462 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | #!/usr/bin/python
# MUST BE RUN AS ROOT (due to GPIO access)
#
# Required software includes Adafruit_Thermal, Python Imaging and PySerial
# libraries. Other libraries used are part of stock Python install.
#
# Resources:
# http://www.adafruit.com/products/597 Mini Thermal Receipt Printer
# http://www.adafruit.com/prod... | [
"lifewinning@gmail.com"
] | lifewinning@gmail.com |
4c7408245d0f7d1fcc88dbabb956dc8e46589020 | 5dccc472d1699f0ce0527c7c4966f937875452ae | /instagramy/__init__.py | af5d33c518798d232ac95c34d1de75261908424e | [
"MIT"
] | permissive | gabcarvalhogama/instagramy | 7dd2f8f79f7fb97cdbe164b99a1c158196a6485d | 56aa3b3468942b3d2469075752784333b7ab6939 | refs/heads/master | 2023-04-01T22:28:48.208118 | 2021-04-08T03:25:29 | 2021-04-08T03:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # -*- coding: utf-8 -*-
"""
Instagramy
~~~~~~~~~~
A python package for Instagram. It scarpe the Instagram
contents.
:license: MIT License
"""
__package__ = "instagramy"
__description__ = "A python package for Instagram. It scarpe the Instagram contents."
__url__ = "https://github.com/yogeshwaran0... | [
"yogeshin247@gmail.com"
] | yogeshin247@gmail.com |
cace5e557a5ff1d7bc9aa35d633a24612384608f | 3daceea1f6a57498a2dac48e8479cb21b34ee307 | /inScribble/getpatientprescriptions/__init__.py | 32c2ac99b9f6c6801c63fe2ca676301328602e5e | [
"MIT"
] | permissive | shreybatra/inScribble | 3e5452e3c23f5203f714206fa986c7ef0ceb2e50 | c22446fb4a74fc2e6914ec3e3be60669fb5e12e1 | refs/heads/master | 2022-12-27T04:12:43.470749 | 2019-11-17T02:01:01 | 2019-11-17T02:01:01 | 222,119,968 | 0 | 1 | MIT | 2022-12-10T07:11:43 | 2019-11-16T15:35:57 | JavaScript | UTF-8 | Python | false | false | 1,655 | py | import logging
import azure.functions as func
from ..common.response import make_response
from pymongo import MongoClient
def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info("Python HTTP trigger function processed a request.")
email = req.params.get("email")
if not email:
... | [
"shrey.batra@innovaccer.com"
] | shrey.batra@innovaccer.com |
e713fe8dc1c287ce74088bc73a770941fc8ed2b3 | d5eb97923a877fca8dc195d3c5a5b12bac784f04 | /PythonImageAnalysis/GeometricalAnalysisForSUN/FullGeometricalFeaturesAnalysisForSUN.py | 1fc99c16af51d2cac9db29d16a0267026c8d9b66 | [] | no_license | manf1984/RemotePythonImageAnalysis | 60acc65ecf66b96d57a655b88d2949e8911421aa | 737af0dc68f0ede999fab14ad8b87fdae05f387f | refs/heads/master | 2022-11-20T13:04:43.269068 | 2020-07-05T18:18:48 | 2020-07-05T18:18:48 | 256,361,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,226 | py | '''
Created on 5 Jul 2020
@author: Andrea Manfrin
'''
#Import of necessary Modules and Packages:
import os
import re
from pathlib import Path
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import skimage
from skimage.measure import label, regionprops
import skimage.filters as skf
import skim... | [
"andrea@localhost"
] | andrea@localhost |
dbe0942ebb3c4ee44c4c49ccca899603e66decd1 | d453b2914128b4d8d83eb5e7a5c01a383a3b0299 | /django_project/blog/forms.py | a4a544470c340d40647fcf26a60770a2d497398f | [] | no_license | geegatomar/Django-DBMS | 441ca47ee0462e03870677b087055bc93bd13cac | 132e124a9a8218bbff50a52d4154d950a3d2ad9f | refs/heads/master | 2023-03-31T01:56:24.592722 | 2021-03-31T09:20:30 | 2021-03-31T09:20:30 | 344,864,384 | 0 | 1 | null | 2021-03-31T08:43:45 | 2021-03-05T16:12:06 | Python | UTF-8 | Python | false | false | 379 | py | from django import forms
from .models import Items, ItemsCart
class ItemsForm(forms.ModelForm):
class Meta:
model = Items
fields = [
"item_name",
"item_type",
"item_details",
"item_price",
]
class ItemsCartForm(forms.ModelForm):
class M... | [
"djoshithareddy@gmail.com"
] | djoshithareddy@gmail.com |
492d20da99257954825f5906068e71391ad96673 | 1b9f547ccc303f5505f1471980329d71c226ce49 | /Proba/wsgi.py | 9e80bea2ed132c11d2deed990770069cfd4e52a4 | [] | no_license | Sergikv/my-first-blog | e581cf54f1033544f0739a421071068b97d41a3a | 04ced896cdb12d8ebe2184a9272c21a18a6d3d02 | refs/heads/master | 2020-04-05T04:07:50.638330 | 2018-11-07T11:13:40 | 2018-11-07T11:13:40 | 156,538,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for Proba 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"sergikv@rambler.ru"
] | sergikv@rambler.ru |
b825071f64c76fbd90187acb619a61e11ec0eb88 | 2cb133bca85eb5e8d1a224ec72e8783f62b31f3b | /72_inheritance.py | 886d46a2661b206d7398ae4ccb8eb8d28757b725 | [] | no_license | KarmanyaT28/Python-Code-Yourself | 9739e424eef64b14742a959140a51d5b0e4508ff | 84081354232456842ee5fddba4d6c417cc94a75d | refs/heads/main | 2023-08-15T03:08:30.192210 | 2021-10-12T11:40:38 | 2021-10-12T11:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | class Person(object):
def __init__(self,name):
self.name = name
def getName(self):
return self.name
def isEmployee(self):
return False
#Inherited class
class Employee(Person):
# Here we return true
def isEmployee(self):
return True
e... | [
"noreply@github.com"
] | KarmanyaT28.noreply@github.com |
6d688a3c14986fda73b9177746945be47f60e40b | e60c2fd49adaac61de0f5df658927b3b050cc917 | /hw4/matrix_topdown.py | d09849d2d5f9434118620aa03bba449a2bd89000 | [] | no_license | scordata/spring2014 | 5c799d033dbd60b2deea2b64c9522e063e305d44 | 7d2977ffc503d514fd42547726e673ae8e34480a | refs/heads/master | 2020-06-12T20:44:20.328796 | 2014-05-25T01:42:08 | 2014-05-25T01:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | __author__ = "Adam Najman"
#__sources__ == "CLRS"
"""
Adam Najman
Python implementation of top-down (recursive)
Matrix-chain Multiplication
Adapted from CLRS
"""
import re
import sys
def print_best(s, i, j):
if i == j:
sys.stdout.write("A%i" % i)
else:
sys.stdout.write("(")
print_best(s, i, s[i][j... | [
"najman@gmail.com"
] | najman@gmail.com |
126ba0d7d136420efb359711f3b449175e9aee3b | 8004831758776360a421b6cb458b48a120d1586e | /chapter_3/your_own_list.py | 360b62f50d4d4a392f2b592c3873c2ae7afa70b0 | [] | no_license | scott-gordon72/python_crash_course | 025d15952d7372c2a40780b7038008f9b39c42d2 | 605f1f7e8d90534bd9cb63f44098d95dec739e50 | refs/heads/master | 2022-06-04T19:29:40.142291 | 2020-04-25T01:13:48 | 2020-04-25T01:13:48 | 255,947,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | automobiles = ['lexus', 'bmw', 'tesla', 'acura']
print(f"I would like to own a {automobiles[0].title()} automobile.")
print(f"I would like to own a {automobiles[1].title()} automobile.")
print(f"I would like to own a {automobiles[2].title()} automobile.")
print(f"I would like to own a {automobiles[3].title()} automobil... | [
"scott.gordon72@outlook.com"
] | scott.gordon72@outlook.com |
72218b87d882051997aef5524f192134bc7d09f1 | c500eab7d2d7504e337eb9dc6ebb12fb0765321e | /werewolf/commands/base.py | 456f59f611b167e864b929aa2fb7d39c0c0b2e92 | [
"Apache-2.0"
] | permissive | jan-g/slackwolf | 7316ad02b2817923145afd5524d49d5578f0699e | 7da027b87d79d663fe88e2e8301a748b8fcf6951 | refs/heads/master | 2020-06-08T15:22:29.428811 | 2019-08-23T14:56:40 | 2019-08-23T14:57:40 | 193,251,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | import logging
from ..service import Agent
LOG = logging.getLogger(__name__)
def match_agent(agents=None, any_agent=False):
def match(item):
if isinstance(item, Agent) and (any_agent or item in agents):
return item
elif isinstance(item, str):
matches = {agent
... | [
"jan.grant@oracle.com"
] | jan.grant@oracle.com |
9facc7b7965e5fd143564b4f208b64108527bd39 | f074fe742b1b242c75872e64a1196ba539066609 | /verres/data/event/__init__.py | 289584da344e726d716467aa82a5d63b4dae8cf5 | [
"MIT"
] | permissive | csxeba/Verres | 63f31d82b4e12b4da8b5fa5cc930eb874f1aa60d | 04230d22b7791f84d86b9eb2272a6314a27580ed | refs/heads/master | 2023-04-07T02:07:26.863612 | 2021-12-09T20:15:12 | 2021-12-09T20:15:12 | 176,881,974 | 0 | 0 | MIT | 2023-03-18T19:56:38 | 2019-03-21T06:17:58 | Python | UTF-8 | Python | false | false | 37 | py | from .video2events import DiffStream
| [
"noreply@github.com"
] | csxeba.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.