blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca961b1e71f986614c0bf218071657be14d01724 | 7a9607d97bbf19eea7f539013ad96b21449111d0 | /dialogs/views.py | 468e291b442b2b11118e6ead4b81d2d5a0ed4b96 | [] | no_license | python-coach/microsocial2 | a9911a34f8a47d10f42c0d5ea5de934cf76bc984 | b3b64a231d90cee41f0a4b707cd11a124fbe088f | refs/heads/master | 2021-01-02T22:45:22.986911 | 2015-06-30T14:36:56 | 2015-06-30T14:36:56 | 35,723,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.http import Http404
from django.shortcuts import get_object_or_404, redirect
from django.utils.decorators import method_decorator
... | [
"igormeln@gmail.com"
] | igormeln@gmail.com |
8a83bf8ef20f20ee95cecc0b2477a686e3b614b9 | d53c2df06539619d97d2de2c0150ec4821eef8a7 | /django_env/bin/pygmentize | 8e0319c1fe38fc496cd7ef8a21ddfc0d4dcde7d6 | [] | no_license | joelranjithjebanesan7/Python-Django | 4098cff3fcae6b5dbd33c977d2b00d8dce627a0e | 42ec7bdfa678d7efe10972fad359b866af3fdf58 | refs/heads/master | 2020-04-17T23:14:38.044382 | 2019-03-02T06:09:06 | 2019-03-02T06:09:06 | 167,027,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/joelrj/Python-Django/django_env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"joel@tivonaglobal.com"
] | joel@tivonaglobal.com | |
19bad92cb7eb649553003bebd4eaf1d46b583df9 | d44ce693005ad7526060275804899a8154031e57 | /wikipedia/wikipedia.py | d8da9334cbd4b556fb835ef7666a1a8f771667f2 | [
"MIT"
] | permissive | bobbybabra/Wikipedia | efffe6047ba5560d2f31c1ff99722c188860fd48 | bc92b6565a4f0e1db99b595de943efba06c7f1e5 | refs/heads/master | 2021-01-18T04:49:59.057298 | 2013-08-23T18:22:31 | 2013-08-23T18:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,643 | py | import requests
from bs4 import BeautifulSoup
from .exceptions import *
from .util import cache
@cache
def search(query, results=10, suggestion=False):
"""
Do a Wikipedia search for `query`.
Keyword arguments:
* results - the maxmimum number of results returned
* suggestion - if True, return results and sugges... | [
"jhghank@gmail.com"
] | jhghank@gmail.com |
9b64afa65c9d6ded04f35a8e66d55c8a70318c62 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/serviceuser/v1/serviceuser_v1_client.py | 81860d607ce811e4c113893404142a4427ea51cd | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 7,177 | py | """Generated client library for serviceuser version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.serviceuser.v1 import serviceuser_v1_messages as messages
class ServiceuserV1(base_api.BaseApiClient):
"""Generat... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
e30f4d590e82a42c8f381fff4999181b8c0f708c | fc7d2c565105e31c0734006f895306dba3810721 | /Data/dataset.py | ed45c7d2debfe23c2d6d516f833c4a1d920c076b | [] | no_license | Marmelator/Hyperparameter-Anthillsearch | ad0801916ff0f6f808e6436961f164c098102661 | 5ca93a34bc4e2a275a56465882df4611920a7f4a | refs/heads/main | 2023-04-11T23:48:33.332621 | 2021-05-07T20:25:10 | 2021-05-07T20:25:10 | 365,344,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import numpy as np
import pandas as pd
import os
from sklearn.preprocessing import OneHotEncoder
class MushroomData():
def __init__(self):
location = os.path.join(os.path.dirname(__file__), 'mushrooms.csv')
self.x, self.y = self.assemble_matrix(location)
def assemble_matrix(self, file_name):
... | [
"kilian.schuettler@eckert-partner.it"
] | kilian.schuettler@eckert-partner.it |
2618795e21cd045120479b98251290d8eaa8f2c1 | 89d2587ff2bbefa763d0b471a1c2c2a295b87c8d | /workshop/build_cmos_gate_model.py | b48c4135bac6c861ac809db225151d8ba634b16b | [] | no_license | guyroyse/deep-learning-like-a-viking | 25fdd49505d2ab8ac464e568684bcc4c0ec0cf3d | 1df65fe7bb9a7e40f2d8e26796460de85f7a0ac9 | refs/heads/master | 2023-02-21T06:30:18.311773 | 2022-10-25T21:03:06 | 2022-10-25T21:03:06 | 142,622,777 | 31 | 12 | null | 2023-02-16T06:51:17 | 2018-07-27T20:54:43 | Python | UTF-8 | Python | false | false | 1,577 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from keras.models import Sequential
from keras.layers import Dense
from keras.utils import np_utils
# x holds the voltages, y holds the labels
x, y = [], []
# read the data from... | [
"guy@guyroyse.com"
] | guy@guyroyse.com |
097bcb484e898145895118958d891df3c5377fe3 | 183e4126b2fdb9c4276a504ff3ace42f4fbcdb16 | /I семестр/Програмування (Python)/Лабораторні/Братун 6305/Приклади/34/Ex26.py | 4c5ba37cc50a32792e7f969423731ecf7a45162d | [] | no_license | Computer-engineering-FICT/Computer-engineering-FICT | ab625e2ca421af8bcaff74f0d37ac1f7d363f203 | 80b64b43d2254e15338060aa4a6d946e8bd43424 | refs/heads/master | 2023-08-10T08:02:34.873229 | 2019-06-22T22:06:19 | 2019-06-22T22:06:19 | 193,206,403 | 3 | 0 | null | 2023-07-22T09:01:05 | 2019-06-22T07:41:22 | HTML | UTF-8 | Python | false | false | 296 | py | import re
p1 = re.compile(r"[0-9]+")
print(p1.findall("2012, 2013, 2014, 2015, 2016"))
p2 = re.compile(r"[a-z]+")
print(p2.findall("2012, 2013, 2014, 2015, 2016"))
t = r"[0-9]{3}-[0-9]{2}-[0-9]{2}"
p = re.compile(t)
print(p.findall("322-55-98"))
print(p.findall("322-55-98, 678-56-12"))
| [
"mazanyan027@gmail.com"
] | mazanyan027@gmail.com |
bd548c6e28569374dce6cece185f426673c7f3d6 | 8d0eec5c051cf902df1ef004b537115b888fe5c6 | /async_dev/generators_two_way.py | 7483829ccf1ffe0d0ef3648065fd504c53c26ea0 | [] | no_license | MadhuV99/complete_py_course | 494300225eef49470a92290f908c1d6f1296cb4f | ade2ac8c5722c45196b700d3ad99f37c9deb76d8 | refs/heads/main | 2023-02-24T06:57:57.441762 | 2021-02-04T03:49:58 | 2021-02-04T03:49:58 | 329,334,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from collections import deque
# friends = ['Rolf', 'Jose', 'Charlie', 'Jen', 'Anna']
friends = deque(('Rolf', 'Jose', 'Charlie', 'Jen', 'Anna'))
def get_friend():
yield from friends
def greet(g):
while True:
try:
friend = next(g)
yield f'HELLO {friend}'
except StopIt... | [
"madhuvasudevan@yahoo.com"
] | madhuvasudevan@yahoo.com |
51d7332654eab786b063de914b6c3a743ffaef5e | ae86ecac0a85317029097edef4726f63c1f7008a | /nblearn_part3.py | 96d796eecafa2f44f63cca14c9250f3d25232b7d | [] | no_license | vivektiwari7114/Text-Classification | 3a65b36cf2a4ae2d5820d4a7adca4aee326688b2 | ac94c9c37748f8a4d5f7c4ba8df7bc2a079ddc47 | refs/heads/master | 2021-01-18T20:18:01.355514 | 2016-09-27T21:34:35 | 2016-09-27T21:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | #Basic Program Needs
import sys
import os
import math
from os.path import join, getsize
#Global Variables
spamDict = {}
hamDict = {}
#Function to get recursively search the directory
def getTheListOfFiles(folderName, rootDir):
nameOfFiles =[]
for root, dirs, files in os.walk(rootDir):
getAllFilesNames... | [
"vivektiwari7114@gmail.com"
] | vivektiwari7114@gmail.com |
f0ae052c5b0b8463da08c228210c0886e7c2f4a6 | 2fa12cde6a091a1559617e8f825b00f2a5c7f8ba | /src/007.py | 7441d7fc81f6d9ddf193b5423fc9674d9eb1bc6f | [] | no_license | yeasellllllllll/bioinfo-lecture-2021-07 | b9b333183047ddac4436180cd7c679e3cc0e399a | ce695c4535f9d83e5c9b4a1a8a3fb5857d2a984f | refs/heads/main | 2023-06-15T20:31:35.101747 | 2021-07-18T14:31:27 | 2021-07-18T14:31:27 | 382,995,460 | 0 | 0 | null | 2021-07-05T06:06:35 | 2021-07-05T02:45:29 | Python | UTF-8 | Python | false | false | 87 | py |
for i in range(2,9,2):
for j in range(1,10,1):
print(i, "*", j, '=', i*j)
| [
"yeasel6112@gmail.com"
] | yeasel6112@gmail.com |
a49e0a245eeb08aacd28e8d456ca89e6f3b6c12b | f577d89766b44b3fbe3d21ab288ccb819a65a097 | /solver/swa.py | b3bcb9e6907af7e3164fe76d73e4521c4f65339d | [
"Apache-2.0"
] | permissive | SmallMunich/centerX | 79fcb417b798c1cd671f54fb81d9103496a3ac33 | 1073753533f26483c3ab053a7d8753708fcacde7 | refs/heads/master | 2023-02-09T09:36:24.820201 | 2020-12-31T08:34:52 | 2020-12-31T08:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,911 | py | import warnings
from collections import defaultdict
import torch
from torch.optim.optimizer import Optimizer
class SWA(Optimizer):
def __init__(self, optimizer, swa_freq=None, swa_lr_start=None):
r"""Implements Stochastic Weight Averaging (SWA).
Stochastic Weight Averaging was proposed in `Averag... | [
"chengpeng8@jd.com"
] | chengpeng8@jd.com |
fc1a2897b55e9c6109a9729b245562e9d13b8022 | 347c70d4851b568e03e83387f77ae81071ab739e | /older/rc-query-rest/tests/test_rest_query.py | 5974c1291876236f288ae59b86951e2be8b4d673 | [
"MIT"
] | permissive | neetinkandhare/resilient-community-apps | 59d276b5fb7a92872143ce2b94edd680738693ce | 3ecdabe6bf2fc08f0f8e58cbe92553270d8da42f | refs/heads/master | 2021-12-27T09:05:36.563404 | 2021-09-29T13:04:56 | 2021-09-29T13:04:56 | 159,804,866 | 1 | 0 | MIT | 2021-08-03T19:45:45 | 2018-11-30T10:07:32 | Python | UTF-8 | Python | false | false | 2,446 | py | """System Integration Tests for REST Query component"""
from __future__ import print_function
import os.path
import pytest
from circuits.core.handlers import handler
data_dir = os.path.join(os.path.dirname(__file__), "rest_sample_data")
config_data = """[rest]
queue = rest
query_definitions_dir = %s
test_endpoint = h... | [
"hpyle@us.ibm.com"
] | hpyle@us.ibm.com |
92abee3a30aa9cc1fdf66e54449b2607302a919b | d3631edd8ec21471a361d8ce5561e9e0441b4cc2 | /src/event_replayer/lambda_function.py | adcee635c342576e94161636f1ab566b71b21e37 | [
"MIT"
] | permissive | fernandogoncalves-me/serverless-datalake | f62591933602ffb4405a53868480133f863a00a1 | 75eba43f41d64fe20dbe4a1890830a75a0825316 | refs/heads/master | 2023-04-13T03:20:19.778752 | 2020-04-13T14:37:31 | 2020-04-13T14:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py |
import boto3
import datetime
import json
import logging
import os
TABLE_NAME = os.getenv('TABLE_NAME')
QUEUE_URL = os.getenv('QUEUE_URL')
logger = logging.getLogger()
logger.setLevel(os.getenv('LOGLEVEL') or 'INFO')
def get_metadata_from_catalog(source, interval_start, interval_end):
ddb = boto3.client('dynamo... | [
"fernandosg88@gmail.com"
] | fernandosg88@gmail.com |
891495601cb3a5d90cb691273f4b2eaf72768690 | 26ec25767ecc5f24f62a0778c3d127b5abc70c18 | /lib/charmhelpers/core/templating.py | 2c63885319aef318789efea8b5e37eec8e502ef4 | [] | no_license | AdamIsrael/reddit-charm | 892e39291b367ee506e54078b23825d0ba02ca87 | a41f1e76b205a1bf916a138a689940d1ea4c4bc1 | refs/heads/master | 2021-01-19T15:27:27.265332 | 2015-03-21T03:10:33 | 2015-03-21T03:10:33 | 21,801,514 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | import os
from charmhelpers.core import host
from charmhelpers.core import hookenv
def render(source, target, context, owner='root', group='root', perms=0444, templates_dir=None):
"""
Render a template.
The `source` path, if not absolute, is relative to the `templates_dir`.
The `target` path should... | [
"adam@adamisrael.com"
] | adam@adamisrael.com |
6947ec91cff5c0f614614ebc46ea20f20d4175cd | 812b4819aff718230c978c01f3633fe1f701e160 | /BalancedForest.py | 867f1bd449136a6d734e99ddf865a30ec6698115 | [] | no_license | Santhilata/Python-scripts | e9bda666841078db575cb1e6709bed4a55cc3836 | 42e6047b158b88eb5df666ee94e7d05ba334c27d | refs/heads/main | 2023-01-08T16:40:53.006333 | 2020-11-02T09:00:57 | 2020-11-02T09:00:57 | 309,295,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 2 08:49:35 2020
@author: santhilata
input
2
5
1 2 2 1 1
1 2
1 3
3 5
1 4
3
1 3 5
1 3
1 2
output
2
-1
"""
def balancedForest(c, edges):
if (len(edges) < 2):
return -1 # The tree is far too small
n = len(c)
for node in range(n):
... | [
"santhilata.venkata@nationalarchives.gov.uk"
] | santhilata.venkata@nationalarchives.gov.uk |
6fe927c97dff9f30388d7e764421f05e3e9ffa5d | a671cd15450f3becbfb7af7ab190af2a840e6fb2 | /7_type_casting_str.py | 6e03ef3c7ef07d5ef426ded8584f4158e066268e | [] | no_license | mohammedaasem/PythonBasicPrograms | c9cc467d7d334b99886f5782a1711e203b6da5da | e681dcdfbcb5843abe9e6b6aa8fae5e709c69545 | refs/heads/master | 2020-07-01T07:39:16.198957 | 2019-08-21T11:14:13 | 2019-08-21T11:14:13 | 201,092,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | a=1
b=7.6
c=True
print(str(a))
print(str(b))
print(str(c)) | [
"imohammedaasem@gmail.com"
] | imohammedaasem@gmail.com |
1734d731ff48e8fcb9e921086572cb3c89830ab7 | 86df126a63d476298faff3096d2e0f925dee70c4 | /media/chinmoy/AlgorithmsArchive/LinkedList.py | 51c1729bce038821972b97855c36f431765d7e50 | [] | no_license | SabikAbtahee/BYTE-PRO | 0b76f32efaa47855d2386c2d3abc9ce96099f25e | a84ad04241d63e9d2104c554319d2023c4864b0c | refs/heads/master | 2022-12-25T19:30:22.742603 | 2019-04-27T07:37:13 | 2019-04-27T07:37:13 | 124,196,353 | 4 | 3 | null | 2022-12-11T06:00:11 | 2018-03-07T07:26:17 | JavaScript | UTF-8 | Python | false | false | 11,343 | py |
<<<<<<<<<< Sabik
class Node():
def __init__(self,data):
self.data=data
self.nextNode= None
self.prevNode = None
def getData(self):
return self.data
def setData(self,data):
self.data=data
def getNextNode(self):
return self.nextNode
def setNextNo... | [
"chinmoyacharjee15@gmail.com"
] | chinmoyacharjee15@gmail.com |
7128c64d41dbd9f583a0740cc04da47b47c793ca | 990210dce02dde1ec7cebb325a1cc83ecff95eb9 | /examplenn/11linenn.py | 0771836d886057212f9895edc5b8444a4ab01852 | [] | no_license | mogwai/learningml | 689e5a3a349b75473f62dc8b2ffe6f10e599dc07 | 61961a612e06f180be7515b961f18512ecb03649 | refs/heads/master | 2020-03-19T04:27:52.975661 | 2018-06-04T15:04:43 | 2018-06-04T15:04:43 | 135,831,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # https://iamtrask.github.io/2015/07/12/basic-python-network/
# Trains a NN
import numpy as np
print("Started")
X = np.array([[0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]])
y = np.array([[0, 1, 1, 0]]).T
syn0 = 2*np.random.random((3, 4)) - 1
syn1 = 2*np.random.random((4, 1)) - 1
for i in range(60000):
l1 = 1/(1+... | [
"himion0@gmail.com"
] | himion0@gmail.com |
ea10f526b1385f7e048a418e5d749d1d83805f90 | 0a7c86329c509bf324ef165cdd8e839e4991fefa | /color.pyde | 5ff60dca2c68a84c5d8a2239d7e657a96c7e5c8b | [] | no_license | Beloved1/color | 82d8b54e6fddfe3fe2b946967fc0aae269b8f2a9 | 7e96d337c76c932d7000803aeb18e99ac65c5ce2 | refs/heads/master | 2020-03-23T11:18:52.380359 | 2018-07-18T22:31:36 | 2018-07-18T22:31:36 | 141,496,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | pyde | def setup():
size(400, 400)
dog = loadImage("dog.jpg")
image (dog, 0, 0)
loadPixels()
print(red(pixels[0]), green(pixels[0]), blue(pixels[0]))
print(red(pixels[57]), green(pixels[57]), blue(pixels[57]))
c = color(255, 255 , 0)
pixels[57] = c
updatePixels()
print(red(pixel... | [
"obafemielegbede@gmail.com"
] | obafemielegbede@gmail.com |
58abc4b1b7819ca83c47d829f036934ed54e49e7 | bf7959048edc0005e04431a0864c719adc5ea9ea | /python版本/451-FrequencySort.py | def3b0ce4fd72584a4725058697bf09520d70677 | [] | no_license | Yohager/Leetcode | 7c24f490cfa5fd8e3cdb09e5a2305a134a064a93 | 585af82ff2c2d534053f6886714406019ed0c7d1 | refs/heads/master | 2022-12-07T23:51:16.347174 | 2022-11-28T02:30:53 | 2022-11-28T02:30:53 | 178,201,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | class Solution:
def frequencySort(self, s: str) -> str:
c = collections.Counter(s)
n = len(c.keys())
ans = ''
for x in c.most_common(n):
ans += x[0] * x[1]
return ans | [
"guoyuhang0921@gmail.com"
] | guoyuhang0921@gmail.com |
1d1bce381708be4fc64b894ae43fcf0a22f2e34e | 6ee9a46a95a504cf91eb5031b180f2d6c6cc9d98 | /cut_rod.py | f4f900ef0683dad36b563fa62f8a127caac380dd | [] | no_license | rohitmungre/dynamic_programming | 8dc952f9f83e15a9b6eae8eef0e509da1c2add97 | 1d1f8036f5f6066bdc39436ace8132208466541e | refs/heads/master | 2020-08-01T22:37:25.817167 | 2019-11-20T05:33:11 | 2019-11-20T05:33:11 | 211,140,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | rod = 7
sz = [1,2,3,4]
vl = [2,5,7,8]
def cut_rod_dp(sz, vl, rod, idx, memo):
if rod<= 0:
return 0
if idx <0:
return 0
tval = 0
varr = []
while rod >= 0:
varr.append(tval+cut_rod_dp(sz, vl, rod, idx-1, memo))
rod = rod - sz[idx]
tval = tval + vl[... | [
"noreply@github.com"
] | noreply@github.com |
8b1e781ba56cc29faae63e1da5b0d6d1feb5f6f3 | f3159749142a9b143c622780bbb414d08f71fead | /pyban/tickets/migrations/0007_auto_20210606_1901.py | d88f46964b8f54f16add3497d1a724111439504e | [
"MIT"
] | permissive | abderrahmen-hadjadj-aoul/pyban | 2a7e72ffb274f3b0487830c7762c90ad585b5032 | 82fe3f0bcf36880b710bbf617f2a7e6b1097f80c | refs/heads/main | 2023-06-02T14:30:11.990771 | 2021-06-07T11:02:21 | 2021-06-07T11:02:21 | 373,596,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.1.2 on 2021-06-06 19:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tickets', '0006_ticket_board'),
]
operations = [
migrations.AlterField(
model_name='ticket',
name='description',
... | [
"abder78@gmail.com"
] | abder78@gmail.com |
53db8753d8c4e718450caf4aedd4c34c6bf8bbe6 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /BitPim/rev2895-2929/rev2895-2929/playlist.py | 80a59694380a0966cc13538dfbfcc9752a490f64 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,937 | py | """
Code to handle Playlist items.
The playlist data includes 2 components: the list of available songs, and
the playlist items.
The format of the Playlist items is standardized. It is a list of dict which
has the following standard fields:
name: string=the name of the play list
type: string=the type of this play list... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
b83ad2d4e1821a822a0a025c4c8ac3d98b9ceca2 | e87aec694108cb1f76716260daf569bcb8091958 | /fluo/db/backends/postgresql_psycopg2.py | 0dc6fcb482eacb73871660aaf300340fe45c5048 | [
"MIT"
] | permissive | rsalmaso/django-fluo | a283b8f75769ac6e57fa321c607819899e0c31c8 | 340e3b4f9c1b4b09feccefb9b3ab2d26d59fac2b | refs/heads/master | 2023-01-12T01:37:06.975318 | 2020-12-01T17:13:11 | 2020-12-01T17:13:11 | 48,948,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | # Copyright (C) 2007-2020, Raffaele Salmaso <raffaele@salmaso.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | [
"raffaele@salmaso.org"
] | raffaele@salmaso.org |
0ce83cdf66c9e20b1fde60f7629d8e5ee1e222f4 | f6fc115dfe298305b8fab3585014fd880db283c0 | /auth/messageQueue.py | 31ac2ef7f768fafcc5f760d5bfc818e5a6ce6537 | [] | no_license | yakovdom/DC | 120f7410260c0944e72bfa8c333c1216a258e3b4 | d416905155be23436270359271c5ecc179ed4c61 | refs/heads/master | 2023-08-21T00:30:44.358627 | 2020-06-13T07:21:28 | 2020-06-13T07:21:28 | 245,479,807 | 0 | 0 | null | 2023-08-14T22:10:08 | 2020-03-06T17:29:11 | Python | UTF-8 | Python | false | false | 1,295 | py | import pika
from config import get_config
config = get_config()
QUEUE_HOST = config['rabbitmq']['host']
QUEUE_PORT = config['rabbitmq']['port']
QUEUE_LOGIN = config['rabbitmq']['user']
QUEUE_PSWD = config['rabbitmq']['password']
QUEUE_NAME = config['rabbitmq']['queue']
class MessageQueue:
def __init__(self):
... | [
"yack_domnicky@mail.ru"
] | yack_domnicky@mail.ru |
ec628d33783692cf774a1407c6b159164dae7a58 | 703d4b42e0998a4ecd07a5beab8b4e63a4ef8dc3 | /accounts/views.py | 0d7929a5f6799f4916c2bca862c6a5c708f0e7d8 | [
"MIT"
] | permissive | Planik64/petstagram | d32095bdd8ad7873235acdcf09b7fc39c59b0a0b | 8dcf2966c1e19d9c6f36c39601cf8ff776fef8fb | refs/heads/main | 2023-04-13T00:08:54.976002 | 2021-04-20T21:50:08 | 2021-04-20T21:50:08 | 359,918,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | from django.contrib.auth import login, logout
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
# Create your views here.
from accounts.forms import UserProfileForm, SignUpForm
from accounts.models import UserProfile
def user_profile(request, pk=None):
user = request.user ... | [
"plamen.b.nikolov@gmail.com"
] | plamen.b.nikolov@gmail.com |
73bbab25409bb3a778ef3dd83a746c1a3afa4f41 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/dnsresolver/azure-mgmt-dnsresolver/generated_samples/forwarding_rule_patch.py | ec4f075536336909b5c46cae450b85e6328d0b0b | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,788 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
c68617a69d1bfff66dcf169f3dd51fb76e870386 | f20e531a213f6892991653e7c6f2288f07c15f9c | /override/importer.py | b1de347f19b6a5b9845017b4ecd2c861cdef1048 | [
"Apache-2.0",
"MIT"
] | permissive | Clever/clever-python | 54ec744ef997d2c739ea056ae223aa35ef487876 | c123d339f9af16aa32405cdf4051ad4afbdc5bd2 | refs/heads/master | 2022-07-09T11:33:03.804757 | 2022-06-24T01:38:24 | 2022-06-24T01:38:24 | 7,064,597 | 18 | 21 | Apache-2.0 | 2022-06-24T01:38:35 | 2012-12-08T06:12:45 | Python | UTF-8 | Python | false | false | 950 | py | # Imports needed in setup.py and __init__.py
def import_json():
# Python 2.5 and below do not ship with json
_json_loaded = None
try:
import json
if hasattr(json, 'loads'):
return json
_json_loaded = False
except ImportError:
pass
try:
import simplejson
return simplejson
exce... | [
"amelia.jones@clever.com"
] | amelia.jones@clever.com |
99e3c192c64912e7758a796e19378225ef653ade | 91cee59084b5aae6e64cc98d36a5fe665ed910e0 | /智能软硬件 (python全栈系列)/Micropython_esp32/bluetooth(demo)/ble.py | 5eb63f213ee53f26d035b572ba9568512d35249e | [] | no_license | ekongyun/History | 46cabcec17a58720a67d3398b00b8aafe5645092 | 04ea8bc71dc87fa957670fbd21e25739291b1027 | refs/heads/master | 2020-07-30T04:02:20.568594 | 2019-09-22T02:23:14 | 2019-09-22T02:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import bluetooth
bt = bluetooth.Bluetooth()
bt.active(1)
bt.advertise(100, 'MicroPython')
print('----')
tx = bluetooth.Characteristic('6E400002-B5A3-F393-E0A9-E50E24DCCA9E', bluetooth.FLAG_READ|bluetooth.FLAG_NOTIFY)
rx = bluetooth.Characteristic('6E400003-B5A3-F393-E0A9-E50E24DCCA9E', bluetooth.FLAG_WRITE)
s = bt.add_... | [
"ywzsunny@buaa.edu.cn"
] | ywzsunny@buaa.edu.cn |
2818d0529d9825314d6b9002411e1bf622ffdedd | dc55688007e03dff5292d3d2f72c0bfc28cc6f2f | /models.py | 69f8fd273d7063c97c09fc8e445a5be4d84585a4 | [] | no_license | pscohn/micro.py | 2d3cf5591b79ec6f55f36af2d8366aa6700573a1 | 451b2a791cac9f31f78a0e2f4c39bc9b7866e08c | refs/heads/master | 2016-09-05T20:38:18.724689 | 2015-02-10T22:50:24 | 2015-02-10T22:50:24 | 30,336,754 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import re
import feedparser
import orm as model
class User(model.Model):
username = model.Field()
default_user = model.Field(default=False)
unread_only = model.Field(default=False)
def subscribed(self):
feeds = []
for sub in Subscription.all(user=self):
feeds.append(Feed.g... | [
"pscohn@gmail.com"
] | pscohn@gmail.com |
4171d90d4b1c5c3de4ae8c53bd8bdef3775a16e4 | 421a9f7ba8e0b381e3c19468bd809ba298150bed | /main.py | 1ad56b79f8af1d020528db4f5cab10945123f8d0 | [] | no_license | wvzi/Thunder | 743ba502f5867213af28b568ecca91f25f12c164 | a53c8a5dfb6f46bda1561cbf966feea3cf7d5fcc | refs/heads/main | 2023-08-07T17:22:04.985555 | 2021-09-09T19:10:38 | 2021-09-09T19:10:38 | 404,780,123 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py |
thunder = """
████████╗██╗░░██╗██╗░░░██╗███╗░░██╗██████╗░███████╗██████╗░
╚══██╔══╝██║░░██║██║░░░██║████╗░██║██╔══██╗██╔════╝██╔══██╗
░░░██║░░░███████║██║░░░██║██╔██╗██║██║░░██║█████╗░░██████╔╝
░░░██║░░░██╔══██║██║░░░██║██║╚████║██║░░██║██╔══╝░░██╔══██╗
░░░██║░░░██║░░██║╚██████╔╝██║░╚███║██████╔╝███████╗██║░░██║... | [
"noreply@github.com"
] | noreply@github.com |
9368280d9ee457a1cfa73ecf4480b343a178dfb7 | cbe003e08110a88b33b953d4597da286cf2e8ea5 | /Models.py | 8d802ea8b19fd3fffd34ca3f5ea04f880dad3e2e | [] | no_license | nanoop14/IML411CS_Anoop_Nagabhushana | 3a35419c71289dcc94e828789667d45589fce3e2 | 8c825f85506a4cbcb9fb73a54c61663e3cf0c679 | refs/heads/master | 2020-04-10T06:14:21.522892 | 2018-12-08T05:17:33 | 2018-12-08T05:17:33 | 160,849,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,316 | py | import tensorflow as tf
from tensorflow.keras import layers
import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import LogisticRegression
import util
from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier
def run_nn(x_train,y_train,x_val,y_val):
seed=7
np.random.seed(s... | [
"noreply@github.com"
] | noreply@github.com |
598461f24de83038d812ad637e5b7f69e0d078df | 3fbd05e539e12e05fd0b75109a0d7d3e36c61946 | /app/migrations/0004_auto_20200402_0929.py | 13ab601e92dbe3440b64def61678bb7b9ae02c72 | [] | no_license | Diana-Toledo/Naturopatia | 1eaa8ed6a663f755a207c18d6266bba8a7708648 | 74c6d5063aef1ae46ade17209e705afacaf4117c | refs/heads/main | 2023-07-02T19:48:01.299930 | 2021-08-01T16:20:19 | 2021-08-01T16:20:19 | 391,036,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # Generated by Django 2.2.11 on 2020-04-02 07:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20200331_1106'),
]
operations = [
migrations.CreateModel(
name='Info',
fields=[
('... | [
"diaelitg@gmail.com"
] | diaelitg@gmail.com |
e5f55207dd9a043e94437287cbd5b94a341aeb9a | 5ec3dc6d172d758f9f547686b68cbbe903ab3161 | /test/no_running_jobs_test.py | 7740a6977d3edacfdbd71a677bae1499bce61a23 | [] | no_license | dixudx/jenkinsflow | ea8bdf4b8abdfb06ab6e05f5c5a83a1c0744f849 | 2c07f8fc2951d9167dcd08ae2e1f6a8afc32f7f5 | refs/heads/master | 2020-12-26T00:25:27.092813 | 2015-05-19T19:41:47 | 2015-05-19T19:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | # Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.
from pytest import raises
from jenkinsflow.flow import serial, JobNotIdleException
from jenkinsflow.mocked import hyperspeed
from .cfg import ApiType
from .framework import api_sele... | [
"lhn@hupfeldtit.dk"
] | lhn@hupfeldtit.dk |
6922d6d41191fd0681fdcee505890f0d0c1cf1c4 | 960077138e79a6f28b2f8bfdd32664a06e6cbb13 | /sig_app.py | 1b79c0ae736d3326a136a8064bfac92d8b57d190 | [] | no_license | vscherbo/apps | 3c41ab07e0c84d4cff48915f161f82b8993bdbc8 | 9bdca690006ccbfe2e0985d5572d3f2ed3d2e587 | refs/heads/master | 2022-12-22T12:22:36.820765 | 2022-12-09T10:43:54 | 2022-12-09T10:43:54 | 246,818,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | #!/usr/bin/env python
""" Application with signal handler
"""
import time
import signal
import logging
class Application:
""" class for apps with signal handle """
def __init__(self):
logging.getLogger(__name__).addHandler(logging.NullHandler())
signal.signal(signal.SIGINT, lambda signal, frame... | [
"vscherbo@gmail.com"
] | vscherbo@gmail.com |
503291f3903d71c769695f844e81e4686d85cf7d | 0c4f5e5fa9c09cd87dae8e81d208a36354cf2d2d | /para_placement/config.py | c98bfefa873aab498e712dcf1b6f05162ed750c9 | [] | no_license | fnrg-nfv/flexchain | 67b1d4d781312f9805181b2465b1bbf7efa5be2d | 1bb5c9f8f054525f79a7fea34936a13f7a6a5419 | refs/heads/master | 2022-12-18T19:14:13.119054 | 2020-09-30T10:27:58 | 2020-09-30T10:27:58 | 196,699,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | import random
import enum
def TOPO_CONFIG(): return None
# TOPO_CONFIG.latency = lambda: 0.05 # ok
TOPO_CONFIG.latency = lambda: 0.001
TOPO_CONFIG.bandwidth = lambda: 1000 # ok not write no source
TOPO_CONFIG.cpu = lambda: random.randint(4000, 8000) # ok not write
def SFC_CONFIG(): return None
SFC_CONFIG.size... | [
"virgilma28@gmail.com"
] | virgilma28@gmail.com |
b43f005983c986b9fbe055bd62c1254d8d65c0d0 | c8533fb7a247bfd7511b1dc86a9bba98602f0398 | /portfolio/views.py | 2092d09cc2ff6c869417de7b3044d048b9fec576 | [] | no_license | karanraghani/MySite | f9cf7fe34f8a05895931e65521021c66e882a6bc | 062dfd359e5cf27e5d34e98ad2b92ada9780c214 | refs/heads/master | 2020-03-18T17:46:01.777246 | 2018-06-03T08:28:06 | 2018-06-03T08:28:06 | 135,049,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from django.shortcuts import render, redirect
from portfolio.models import message
from portfolio.forms import contact_form
from django.template.loader import get_template
from django.core.mail import EmailMessage, send_mail
def home_page(request):
return render(request, 'portfolio/index.html', {})
#def resume(reque... | [
"karanraghani14@gmail.com"
] | karanraghani14@gmail.com |
00d03cc2dd392561308b3019724e793ee7ea4fb1 | dff17b32038e14ad57e623b61b9e8aa5a540cf31 | /LOG_Analyzer/latency_analyzer.py | 2821e696295ba526ce394769a9e1dc2c02fbd498 | [] | no_license | supermt/log_analysis_rocksdb | 121649eaa328b34424d68d3f7dd291a00043ffec | 4ef995419d9e360513f6b8b9cf1d535e6aa51017 | refs/heads/master | 2020-07-26T20:47:39.402228 | 2019-09-30T04:50:27 | 2019-09-30T04:50:27 | 208,761,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | #!/usr/bin/python3
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import numpy as np
import random
def Average(lst):
return round(sum(lst)/len(lst), 2)
data = open('run_log_large.txt', 'r')
line = data.readline()
max_key = 0
min_key = 0xffffffffffffffff
values = []
x = 0
couting =... | [
"18007092757@163.com"
] | 18007092757@163.com |
8850dd5b3a9e29b53ecc9a07f7502c46a81ed2d7 | 2b79029e8c1c4650f5d80b21cd9297d13037c94c | /webapp/.ipynb_checkpoints/__init__-checkpoint.py | 986f4f66ded642f1dfe46f367c7fdda974e11ff1 | [
"MIT"
] | permissive | alxanderpierre/data-science | 9171c80c8e91cc3e1fdbc92ebee252dfea84af3a | deef7f949d1e227e716e7a59c1667cc1032e3157 | refs/heads/master | 2020-12-08T02:07:05.939277 | 2020-01-09T00:07:39 | 2020-01-09T00:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from .app import create_app
#APP is global variable
APP = create_app() | [
"kking1795@gmail.com"
] | kking1795@gmail.com |
348ec2eec4d21d7506aea88f63e6a2a997a674b6 | 131caeecc070839555b95382fe9c6ea77a618dce | /.history/Classiles/scynced_lights_20210615180248.py | a220c037ce3499a5a4636818e84bdd60366e17aa | [
"Unlicense"
] | permissive | minefarmer/Coding101-OOP | f128e34c95f5362b3d9a53bbac3d862c3f256263 | d5655977559e3bd1acf6a4f185a6121cc3b05ce4 | refs/heads/main | 2023-05-22T18:42:37.769345 | 2021-06-18T00:28:06 | 2021-06-18T00:28:06 | 376,620,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | """[Scynced Lights]
Class attributes are "shared"
"""
class Light:
pass
a = Light()
b = Ligth()
| [
"pgoldfarm@yahoo.com"
] | pgoldfarm@yahoo.com |
f2580f6105ea4a96c942696ed4662ee9691c1104 | 9763c31318311e8ffb0022a61184582e159411eb | /adagios/misc/forms.py | 15fb0effc1c9c650392f8983fe0b1638d26bd624 | [] | no_license | spil-sean/adagios | 832fa7bff9c4d7bb2238c450870274aa47bff42e | 03615724166d104196dbbda6a4025830ba58955b | refs/heads/master | 2021-01-16T19:12:17.024497 | 2013-05-30T13:05:44 | 2013-05-30T13:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,210 | py | # -*- coding: utf-8 -*-
#
# Copyright 2010, Pall Sigurdsson <palli@opensource.is>
#
# This script is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | [
"palli@opensource.is"
] | palli@opensource.is |
e4cf3d7b27e696c7ad9997e4ac9f817cb0f3f306 | 9cb5521f247a47963e229a021ece638c2dd6c2ea | /4_genEquTileGrid.py | d60a85541e4020968cedc4af1a3bb8f74fdbd1ed | [
"MIT"
] | permissive | crpurcell/CORNISH-S-PIPELINE | f97a677bb6047d6291daac184b9992c66a54c98e | 32ebaf694bbd1a46a68fa875f8557243280bfe10 | refs/heads/master | 2021-01-12T02:48:31.985664 | 2017-06-09T05:54:14 | 2017-06-09T05:54:14 | 78,108,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,072 | py | #!/usr/bin/env python
#=============================================================================#
# #
# NAME: 4_genEquTileGrid.py #
# ... | [
"cormac.r.purcell@gmail.com"
] | cormac.r.purcell@gmail.com |
9510e335e0222d984df0099559069d0d714c1cbf | ced309b456bbca6a6acd63fe134edf8c400bb3f5 | /Django/saver.py | f74f04445da41deb80fafc4c7f5c50797ae1fd8e | [
"MIT"
] | permissive | JOHNKYON/Data_save | 0f2e1e7393ab32b28f3aa85ee24aa9c543d053b5 | 8d6820e2d6923cf5ca038abd39da8f42793d9ad7 | refs/heads/master | 2021-01-24T18:08:34.521893 | 2017-03-15T05:18:16 | 2017-03-15T05:18:16 | 84,408,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import generators
from __future__ import nested_scopes
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import with_statement
from django.http import HttpResponse... | [
"wjfwzzc@gmail.com"
] | wjfwzzc@gmail.com |
7b2e7475bab47ca81e443274773121ef956d6117 | 0626388c2e9a1db06a49b90ea71420f4f7f30273 | /ai_blog/wsgi.py | 3889b1e9a9f261cc98c071e62f83aff08d3dc7ae | [] | no_license | Charnel2500/blog_ai_py385_django311 | 2382c1a4fdee4d528d5d37038efb35f2b85cd407 | 0f44cce326c3ccb3fcbf262d772a78aedada92df | refs/heads/master | 2023-01-01T23:39:54.703597 | 2020-10-27T23:49:56 | 2020-10-27T23:49:56 | 300,914,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for ai_blog 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"jakubrhryc@gmail.com"
] | jakubrhryc@gmail.com |
c1fa7ddb3cb26e3ba1673fd853a21c0bcecf5b52 | 865ee6eb8ee52c8056fbf406059c5481f365de6e | /openresty-win32-build/thirdparty/x86/pgsql/pgAdmin 4/venv/Lib/site-packages/typing.py | 693945365d671e3b1c522b0d19caa4eba538a5c8 | [
"MIT",
"LicenseRef-scancode-ssleay",
"BSD-3-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-pcre",
"LicenseRef-scancode-public-domain",
"Zlib",
"BSD-2-Clause"
] | permissive | nneesshh/openresty-oss | 76e119081ea06bc82b184f96d531cc756b716c9d | bfbb9d7526020eda1788a0ed24f2be3c8be5c1c3 | refs/heads/master | 2022-12-12T21:39:48.917622 | 2019-05-31T03:14:18 | 2019-05-31T03:14:18 | 184,213,410 | 1 | 0 | MIT | 2022-12-06T17:28:59 | 2019-04-30T07:28:45 | C | UTF-8 | Python | false | false | 71,396 | py | from __future__ import absolute_import, unicode_literals
import abc
from abc import abstractmethod, abstractproperty
import collections
import functools
import re as stdlib_re # Avoid confusion with the re we export.
import sys
import types
import copy
try:
import collections.abc as collections_abc
except ImportE... | [
"nneesshh@163.com"
] | nneesshh@163.com |
b4ce0ab8358e4b133a3e29c81f58f4af43d26e85 | 35da6e7db2872b5e75fb042244dc7ba403987dbe | /dataCache.py | 76e6b5f0e6a2d851b8785a1783e567eb6396b176 | [] | no_license | sudhakosuri/MIPS-Architecture-CPU-Analyzer | fec591aecc2ed7c071eb4a9625e76e84ff039d3b | 4fb67ae70c528f7f0f0439da42b3ff91aba77217 | refs/heads/master | 2020-12-11T15:55:33.527148 | 2020-01-14T17:00:35 | 2020-01-14T17:00:35 | 233,890,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,499 | py | import reg
D_Cache = [[0 for x in range(8)] for y in range(2)]
val1 = 0
val2 = 0
val3 = 0
val4 = 0
dcache_hits = 0
def search(current_value, data_value, displacement, isDouble):
global dcache_hits
for row in range(0, 2):
for d_value in range(0, 8):
if (D_Cache[row]... | [
"noreply@github.com"
] | noreply@github.com |
ead6973b197fb0173814eb97e7b5102034a3a425 | d486cbde3d3ef37e42ded11de2730c6dc1565319 | /lab4/task1.py | d1ef85fdc12d2ca088a5656345905d54068487ee | [] | no_license | dominika-olszewska/python-exercises | 13b401d5103aa50864c11ca79d523d54dde404cd | 552a0658ac0ef21201dc74dda17dbda9a10e5f2c | refs/heads/master | 2022-06-12T16:13:16.074241 | 2022-05-22T15:11:54 | 2022-05-22T15:11:54 | 173,439,317 | 0 | 0 | null | 2022-05-22T15:11:54 | 2019-03-02T11:25:06 | Jupyter Notebook | UTF-8 | Python | false | false | 696 | py | import numpy as np
import matplotlib.pyplot as plt
# TASKS (9p)
# 1 Looking at the Euler method above create your own function which takes:
# a (from x' = ax)
# h - step
# T time range
# as an input and plots the solution of a differential equation x' = ax (1p)
# TASK 1
def Euler(a, T, h):
initial_x = 1
... | [
"dominika275@gmail.com"
] | dominika275@gmail.com |
706c4a133f112d01c765c80eac0083d6d5e90652 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/uhd_restpy/testplatform/sessions/ixnetwork/topology/rxsakpool_22340fe5cb5d81664cab595d3e6d08ef.py | 8aea7fbb4b72c3d049aa51d15c50a9fa0db81919 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,134 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
e0a788cfb8f516327f28f0651f84f2a9ac5f2324 | 8f40340d7a023e14260ce9e239f94c61d13c92af | /bregression/notebooks/compareScale.py | b3b0b90ea3290de1f90f2760cd42256242d4898d | [] | no_license | mdonega/HHbbgg_ETH | 15bbc683feff77ad1daef8e30dc4c778957499b7 | 938a83a2b1c14f7075ac4b996e420f693e814d15 | refs/heads/master | 2020-04-04T03:00:12.174266 | 2019-03-31T21:05:02 | 2019-03-31T21:05:02 | 155,703,739 | 0 | 0 | null | 2018-11-01T11:17:04 | 2018-11-01T11:17:04 | null | UTF-8 | Python | false | false | 6,172 | py |
# coding: utf-8
# In[9]:
import os
import sys; sys.path.append("~/HHbbgg_ETH_devel/bregression/python") # to load packages
import training_utils as utils
import numpy as np
reload(utils)
import preprocessing_utils as preprocessing
reload(preprocessing)
import plotting_utils as plotting
reload(plotting)
import optimi... | [
"nadezda.chernyavskaya@cern.ch"
] | nadezda.chernyavskaya@cern.ch |
6b77d8e8260bf6dcb9f443b9a700a1dfa9e73bc2 | 4678c79ba53884b8a18383d3bf5a312d2408a20a | /adanet/core/estimator.py | b46b61c933221791b9569c7f56d2058a88c14e89 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mlzxy/adanet | af902854b8ed79accf3f48121970524bd3283a82 | 5f30fd61457fd6fafea6e4fa9eef178e3de6b9fa | refs/heads/master | 2021-10-10T06:59:04.818230 | 2019-01-07T20:33:24 | 2019-01-07T22:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,691 | py | """An AdaNet estimator implementation in Tensorflow using a single graph.
Copyright 2018 The AdaNet Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.ap... | [
"weill@google.com"
] | weill@google.com |
7d3fc3ee1fbadfbfdeae383c58c42296cb0e2128 | 73b158f51285300c1d3456b7af9163939ee206f2 | /DevOps/sprint03/t00_lambda/expression.py | 0ddfdb9345aef1a2a08f49f12d1afab8728d3beb | [] | no_license | nnocturnnn/DevOps | 2e332b3552a5b294b36d2af7de854aa18f2da46f | 173c75938e65be8fbbb5c02c3d655d09df9a2931 | refs/heads/master | 2023-06-11T07:21:14.097930 | 2021-06-30T13:58:15 | 2021-06-30T13:58:15 | 352,070,911 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py |
n = int(input('n: '))
a = int(input('a: '))
b = int(input('b: '))
result = lambda a, b, n : n % a == 0 and n % b == 0
print(result(a,b,n)) | [
"vikchehovich@gmail.com"
] | vikchehovich@gmail.com |
10f4f3a055566d43dc7c35839294dee6e6843fc8 | 8246502a8c7935ce0cd98352d6707041703b0b98 | /src/acquisition/cdcp/cdc_extract.py | faa4bf7e31128207b835787d6c02a8cbfd95b685 | [
"MIT"
] | permissive | jarad/delphi-epidata | 0ad7e62888d0570c8de5d11ee2e1f610219c1f29 | 6cbde914a055a86b5deba8fa49528604e4db0cc8 | refs/heads/master | 2021-06-23T14:38:18.018736 | 2017-09-07T04:08:20 | 2017-09-07T04:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,140 | py | """
===============
=== Purpose ===
===============
Extract a useful subset of the CDC data. Reads from `cdc` and `cdc_meta` (all
pages, and daily resolution) and writes to `cdc_extract` (selected pages, and
weekly resolution). The Epidata API is then used to read from `cdc_extract` and
update the `sensors` and `nowca... | [
"dfarrow0@gmail.com"
] | dfarrow0@gmail.com |
36e251c5924bff41aea966c737d2fe875f0d3015 | 417c552d04854e23d266280e997321aae843a727 | /calcpkg/geometry.py | 45d64c3a89ef7d2b7b8e34180a64882cedfa3823 | [] | no_license | mywns123/dojangPython | 5e97079ca0bf2e2716f12a3f6f4674a8e049d9fe | 4946f4c78934ffd4ac6d395ed07753996204a163 | refs/heads/master | 2023-08-01T04:54:44.267809 | 2021-09-27T03:22:17 | 2021-09-27T03:22:17 | 381,210,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | def triangle_area(base, height):
return base * height / 2
def rectangle_area(width, height):
return width * height
| [
"wnsduq2000@naver.com"
] | wnsduq2000@naver.com |
c272181e517c8d3037a15c241cba4c3307a861fe | 531c1907cc202f66d4ef69d063c343d4ea4d7a7a | /exercicios/ex021.py | 41dfd2d873a1f334968fc069b0d680e08a5a1588 | [] | no_license | senseyluiz/estudopython | 1ac5e535314144a6bc2afdc4fcc70061ff9b57cd | 427306f832af7813ab3cd5616dad1168b4a6e866 | refs/heads/master | 2020-10-02T05:32:25.908371 | 2020-01-05T13:06:00 | 2020-01-05T13:06:00 | 227,712,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from random import randint
x = 1
while x <= 6:
print(randint(1,60))
x += 1 | [
"senseyluiz@gmail.com"
] | senseyluiz@gmail.com |
1b1ac1d2e106127664ae091c0ade1719fb091e18 | 6ad54c3661c2f7d38cd3474e421997751614c8a8 | /test/hello.py | c9e7aa681cfc97599e5e6e5fd5b482e8c0df3551 | [] | no_license | ehyman/awesome-python-app | 9f17bf44cee7b257c3475c1537dba90e3031f125 | 78cbf88a756d7c92a20c63dc43fec97fb879ce2f | refs/heads/master | 2020-12-25T14:33:28.471758 | 2016-08-03T13:02:05 | 2016-08-03T13:02:05 | 67,108,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'It works!'
@app.route('/hello')
def hello():
return 'hello, world!'
@app.route('/user/<username>')
def user_profile(username):
return 'hello, %s' % username
@app.route('/post/<int:post... | [
"elahyman@gmail.com"
] | elahyman@gmail.com |
0b7588a3b45b10353a4db110ad65bc568a6dbc53 | 81ed4db4dc598698371608c8173f5b2418432637 | /tests/functional_tests.py | 5ae764430e68cafcff7f486ed479a878416d84c2 | [] | no_license | feuloren/fexchange | d4b6697d7869c39b7cdc9627a4f8700237f8c824 | 011da9e6ead81b95b7110a920e8d88aa11f40721 | refs/heads/master | 2021-01-01T17:32:38.300210 | 2014-01-18T15:20:03 | 2014-01-18T15:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from pytest import fail
from selenium import webdriver
from selenium.webdriver.common.by import By
# Doc pour le webdriver :
#http://selenium.googlecode.com/git/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html
# Et pour les webelement obtenus par un fi... | [
"florent@fthevenet.fr"
] | florent@fthevenet.fr |
b4571590ec6a3e3ec47fcc2114275054d35df44f | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/container/builds/describe.py | c3386e7ed0435df473c1cbd30730d4657cc15fba | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 2,193 | py | # Copyright 2016 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 ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
91a257e297a4cd745426be39c93b98f9223448d3 | a41ee6d7d2e120ad55bc211f8f09b26c7a36541e | /Full python (boring to interesting)/6_project_stopWatch.py | 0c6d9319b896951b58dfeb06bd16c94307735b3d | [] | no_license | ujjwalsb/python | 0d213a4e0cf26e9ef266ce3656853cd8af487c10 | f66cb7b2017992f99496d878bf89c634aa797cf2 | refs/heads/master | 2023-05-27T10:44:54.103400 | 2021-06-14T17:41:50 | 2021-06-14T17:41:50 | 110,427,253 | 5 | 2 | null | 2021-06-14T17:41:51 | 2017-11-12T11:35:43 | Python | UTF-8 | Python | false | false | 759 | py | # /usr/bin/python3
# A simple stopwatch program.
import time
# Display the program's instructions.
print('Press ENTER to begin. Afterwards, press ENTER to "Click" the Stopwatch.\
Press Ctrl+C to quit.')
input() # press Enter to begin.
print('Started.')
startTime = time.time() # Get the first lap's start time... | [
"ujjwalsingh15@gmail.com"
] | ujjwalsingh15@gmail.com |
78d28ede545ee5391bd12639beca0fcaf2fe7ff7 | ed8313e4a74d63591334477de28bd75114329c1a | /backend/api/repos.py | 9713273aa96885c8b238d91d2e4bbbc266cc9713 | [] | no_license | allenkg/test_students | 0ab2a9fad2203c409c3719fa0a4314efcb96fb5f | 1ebe034c86ca6f4395ad88ae7b995b82ea1f8ad6 | refs/heads/master | 2020-03-27T21:06:16.708216 | 2018-09-17T20:56:56 | 2018-09-17T20:56:56 | 147,115,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | from api.common.exceptions import EntityDoesNotExist
from api.models import Student, Course
class StudentRepo(object):
def get_student_by_id(self, id):
try:
student = Student.objects.get(pk=id)
except Student.DoesNotExist:
raise EntityDoesNotExist
return student
... | [
"andyahont@gmail.com"
] | andyahont@gmail.com |
a1f4226052a32689bc862ca22f433d56200649fc | e4ab008b3768cdfcc6e424a3936508554fc0f152 | /jobFinder/jobFinder/settings.py | aa354c8f7d1bc32aa13e240ebdbb894fc1632110 | [] | no_license | janithmalshan/pythonFinalProject | bf4323d6831bfa03c92aa60526d9c2fae2e98651 | 355c0047d617ecc865f8a7e917618313c5356152 | refs/heads/master | 2023-06-20T18:51:39.617376 | 2021-07-25T14:10:51 | 2021-07-25T14:10:51 | 384,674,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | """
Django settings for jobFinder project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"janithmalshan@gmail.com"
] | janithmalshan@gmail.com |
8f608eb54cc99e4c496150d0edecc71a52d4e030 | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /nni/experiment/config/utils/__init__.py | c4b8b586d0953435188171ce60154e6e190380ee | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 237 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
Utility functions for experiment config classes.
Check "public.py" to see which functions you can utilize.
"""
from .public import *
from .internal import *
| [
"noreply@github.com"
] | noreply@github.com |
afbcbe77345db932b12c03726ae7f17b1697b727 | f95b77be3eee8bb6bdb61bd4128fd8321bc8889c | /yl_lab1/lab1.py | 4fa2df853ada57f5c27753f9854f44664c44c34e | [] | no_license | or20-meet/meetyl1201819 | c02df7c9ae18d310d3621b647e803dde60e26d17 | e1ee6aff0815b9671d8ac70967d740bf8da6ea5d | refs/heads/master | 2020-04-02T04:28:49.593304 | 2019-02-23T16:29:35 | 2019-02-23T16:29:35 | 154,018,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | import turtle
turtle.goto(0,100)
turtle.goto(100,100)
turtle.goto(100,0)
turtle.goto(0,0)
turtle.mainloop() | [
"or20@meet.mit.edu"
] | or20@meet.mit.edu |
937175e4b5291adf7936b6fa829b3bbd28c7c340 | 3af2998fe7bc3c48fbe6eae476f7e0ec5bfc0ca6 | /control_flow/while_loop.py | 503c2959186fb69a16e04e59916b7b694844032c | [] | no_license | east825/python-inference-playground | 22acb8f2c71eb07e13293a9fec1d67a6f5aa25cf | f60387604a1c535ad30b7f3f44acf08cbd7d88c7 | refs/heads/master | 2020-06-01T01:29:00.399986 | 2014-04-15T12:28:18 | 2014-04-15T12:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | while False:
if True:
a1 = 42
break
else:
a1 = 'spam'
print(a1)
while False:
if True:
a2 = 42
else:
a2 = 'spam'
print(a2)
a3 = 42
while False:
if True:
a3 = 'spam'
print(a3)
while False:
if True:
a4 = 42
else:
a4 = 'spam'
print(a4) | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
f3b10390cab97640945f5d3aca56278e1e40272a | c1dd4501e134e3cfef5b7dc82d0e022e3ec7e9b6 | /apps/authentication/models.py | c031d2d7466c3a46d4046b2478ba78cb8946cc6d | [] | no_license | artemmj/set_up_jwt_django | a189cd1d59eac5fe9d02772284f794480f7525f7 | 8ba80f83b8516e5a2226e005ec22a821997c319f | refs/heads/master | 2023-04-25T01:22:41.274238 | 2021-04-28T11:47:50 | 2021-04-28T11:47:50 | 362,447,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | import jwt
from datetime import datetime, timedelta
from django.conf import settings
from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager, PermissionsMixin,
)
from django.db import models
from phonenumber_field.modelfields import PhoneNumberField
class UserManager(BaseUserManager):
"""... | [
"webep4@gmail.com"
] | webep4@gmail.com |
778e3ae044f6c1eabf5462f9e16d75af88ce8eb1 | 10c9fee15669f72e79e50ba59569c48ee7c96997 | /back-end/etudiants.py | 723072ecbe292a863abc19d607b012075cc5e169 | [] | no_license | MouadAe/iHome | 4e915092548b4e4a66f22ce330b5171b224301db | 2067a94a26ce9b221d31584535e3dc405e7abebf | refs/heads/master | 2023-07-16T00:24:08.791428 | 2021-08-08T23:11:01 | 2021-08-08T23:11:01 | 394,084,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from views import app
from flask import Flask , jsonify, request, redirect
from flask_pymongo import PyMongo
from werkzeug.security import generate_password_hash, check_password_hash
from flask_jwt_extended import create_access_token
from flask_jwt_extended import get_jwt_identity
from flask_jwt_extended import jwt_req... | [
"mouadaouane49@gmail.com"
] | mouadaouane49@gmail.com |
9e518f73a4a29b04a4ec59db895584adc263ae23 | e08e994abad15444b3a254c660c724fbdd1f0d89 | /no_shebang.py | d193b243d75d4f58c6ffc829f0ce37f07805c17c | [] | no_license | jjalal1234/myCode | 8e02b79d2a4788ea201d2e313380614afde3a08d | 321a9cb82189622808051331b5415465fc2d3fbc | refs/heads/master | 2020-05-22T18:10:14.520163 | 2019-06-27T20:12:14 | 2019-06-27T20:12:14 | 186,467,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | print("ello")
print("Did you say, hello?")
print("No, I sad ello, but that\'s close enough.")
| [
"jjalal1234@gmail.com"
] | jjalal1234@gmail.com |
891869c00f24639fa8d33f4d0a3dea0f62cc2f18 | 5b1eb22194cb2f4c9df63765f78a6998a6ad3de2 | /src/helpsys.py | ad173e7ce6e17082de7d532ab17840bb10f89ca2 | [] | no_license | Jawmo/akriosmud | 85c2ecd520fd15ba86d0210b018055146b9e2192 | aac434919586f5590f089e8e87e0f2e946a80aa9 | refs/heads/master | 2020-10-01T23:26:47.290481 | 2019-12-09T01:11:05 | 2019-12-09T01:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,804 | py | #! usr/bin/env python
# Project: Akrios
# Filename: helpsys.py
#
# File Description: Module to handle the help system.
#
# By: Jubelo
from collections import namedtuple
import glob
import logging
import json
import os
import olc
import world
log = logging.getLogger(__name__)
WRITE_NEW_FILE_VERSION = False
# Defi... | [
"phippsb@gmail.com"
] | phippsb@gmail.com |
14d21ba34e1b8337cb0439ea712b203c5317703c | 2a8abd5d6acdc260aff3639bce35ca1e688869e9 | /telestream_cloud_qc_sdk/telestream_cloud_qc/models/audio_loudness_itest.py | 387597f5a62e6090eec6343a0872aa4c534e52f5 | [
"MIT"
] | permissive | Telestream/telestream-cloud-python-sdk | 57dd2f0422c83531e213f48d87bc0c71f58b5872 | ce0ad503299661a0f622661359367173c06889fc | refs/heads/master | 2021-01-18T02:17:44.258254 | 2020-04-09T11:36:07 | 2020-04-09T11:36:07 | 49,494,916 | 0 | 0 | MIT | 2018-01-22T10:07:49 | 2016-01-12T11:10:56 | Python | UTF-8 | Python | false | false | 7,273 | py | # coding: utf-8
"""
Qc API
Qc API # noqa: E501
The version of the OpenAPI document: 3.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from telestream_cloud_qc.configuration import Configuration
class... | [
"cloudsupport@telestream.net"
] | cloudsupport@telestream.net |
ee4f61f74210096066bc2bcba7fd5cea88b316c6 | ddbad6b2bd4ce606dfc97e827b7eff0005e36b3a | /freeradius/app_test/models_io.py | 5f748bd7a4b6f3b966010a631239d26fc9b26ae5 | [] | no_license | sk-rama/freeradius | ac325ae5716ea662281f593b2f653701410794ad | b97ff16cb4d6fae043d9b2ca4df12b1c2f9dfd23 | refs/heads/master | 2023-03-03T05:41:34.275612 | 2021-02-16T10:59:07 | 2021-02-16T10:59:07 | 331,944,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | from pydantic import BaseModel, EmailStr, validator
from typing import Optional, List
from datetime import datetime
import re
class UserOut(BaseModel):
id: int
name: str
company: Optional[str] = None
email: Optional[EmailStr] = None
ts: datetime = None
@validator('ts', pre=True, always=True)
... | [
"rrastik@seznam.cz"
] | rrastik@seznam.cz |
6e65fb505daa2b5a7ee67d8524269f3177d69153 | b9a4efbcf48e52a1333f6a548338e2f62aed30e3 | /forms/urls/house_map_construction.py | 39240ea9ad410035e9f9e17f93e9ce87c87d90b6 | [] | no_license | Rabin5/formcollection | 0747639d9a2ff291457aacce874eb5a6428dea73 | 38c0bf763ae0a15c301c020d76ff0596c561da14 | refs/heads/main | 2023-08-10T18:48:26.736876 | 2021-09-26T06:19:09 | 2021-09-26T06:19:09 | 410,467,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.urls import path
from forms.views.house_map_construction import HouseMapConstructionCreateView, HouseMapConstructionUpdateView
app_name = 'house_map'
urlpatterns = [
path('create/', HouseMapConstructionCreateView.as_view(), name='create'),
path('<int:pk>/update', HouseMapConstructionUpdateView.as_... | [
"rai.rabin@infodevelopers.com.np"
] | rai.rabin@infodevelopers.com.np |
c7355a7926645add681b504489ff0e5c7ae88407 | d700c1974e438338b2ba6fd07d2484ab5134d270 | /algorithms/sorting/test.py | 76646bc29a8684891e31197059600507bf1cf574 | [] | no_license | AlekseySh/computer_science | eff26a2fccbbfc97f95a41aacda2efe9c7fa5596 | 8c470b200717cf3798a86474c2c192fee80e1f44 | refs/heads/master | 2022-09-17T12:09:13.426657 | 2022-08-23T21:29:08 | 2022-08-23T21:29:08 | 163,635,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from random import randint
def test(sort_func,
n_test=1000,
size_bounds=(0, 10),
val_bounds=(0, 10),
inplace_sort=True
):
for _ in range(n_test):
x = [randint(*val_bounds) for _ in range(randint(*size_bounds))]
if inplace_sort:
x_for_defau... | [
"lexibender@ya.ru"
] | lexibender@ya.ru |
603148152e47b6b5f499dbd1eb89acda902ebc7c | 4bb891a60497c0effb6e20468cb8db25bbbeefc9 | /painters-identification/scripts/capstone-models-final-model-building.py | 1f2e5cb880f131ec67f821ac9a720b0a3d1b3250 | [
"MIT"
] | permissive | mhdella/deep-learning-1 | f9a8da9cab73ca407a33cf3c17ff5fabaf9e3993 | 604054d8f728b56bb9dedb1743dbf9e83b5664cf | refs/heads/master | 2020-06-21T13:33:44.306925 | 2019-04-16T22:11:24 | 2019-04-16T22:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,172 | py |
# coding: utf-8
# In[ ]:
<br>
# Painters Identification using ConvNets
### Marco Tavora
<br>
## Index
# - [Building Convolutional Neural Networks](#convnets)
# - [Small ConvNets](#smallconvnets)
# - [Imports for Convnets](#importconvnets)
# - [Preprocessing](#keraspreprocessing)
# ... | [
"noreply@github.com"
] | noreply@github.com |
273ec318437049163304e122bcd887729e5f96f8 | 5832aced2d94c06adac0c9de719beee5c0d7d1a8 | /pancancer_evaluation/utilities/data_utilities.py | 92f8ddd0ff4af1bd7a40274d27ea38f5abde0abc | [
"BSD-3-Clause"
] | permissive | greenelab/wenda_gpu_paper | 4cde1cc239448832df6ac9c6e9b6ae2ff8a3c869 | 60ae443d7ce72f572d16c76b2127d4b7b661d14f | refs/heads/main | 2023-03-01T01:48:06.174592 | 2022-04-19T21:28:21 | 2022-04-19T21:28:21 | 457,892,363 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,291 | py | # Functions for reading and processing input data.
# Originally written by Jake Crawford.
import os
import sys
from pathlib import Path
import numpy as np
import pandas as pd
import pickle as pkl
from sklearn.model_selection import KFold, StratifiedKFold
from sklearn.preprocessing import MinMaxScaler
import pancance... | [
"ariel.hippen@gmail.com"
] | ariel.hippen@gmail.com |
94ca286760368bc7efe7db01e11c244b8fdcad94 | eb70b1610d167e250df8f7cdee6413c896808253 | /computing_and_control/ipcv/histogram_opencv.py | cac9f58d278b4ee3b6b127cba53cfd09d4cff834 | [
"MIT"
] | permissive | aap5869/RIT | cc3c81880546eacd45b01d40bfb74e0e8d4b2e09 | d8a408e59a94b0edde56a207592fd7b803172119 | refs/heads/master | 2021-01-10T14:45:17.071357 | 2016-04-20T15:20:06 | 2016-04-20T15:20:06 | 55,375,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,919 | py | import cv2
import numpy
def histogram(image, bitDepth=8):
"""
title::
histogram_opencv
description::
This method will gneerate the histogram, probability density funciton
and the cumulative density funciton of an image. It will use the
cv2.calcHist method from the opencv ... | [
"aap5869@g.rit.edu"
] | aap5869@g.rit.edu |
bf6a35193c25eeb08ef1d1610147904daa40253f | 6be2d138b50c0968c7997688f941bfb0e0230ae6 | /management_audit/models.py | bc896ea922f40d0da6dcdc9098f5418e7414d784 | [] | permissive | hiisi13/django-management-audit | 0cbd8403a105509b5a72bc2a1b20f6bb1a00c6bb | 3d8a289f8388f1ba89eca8903c0e1af88d62e6b2 | refs/heads/master | 2023-01-12T08:48:04.731561 | 2014-06-16T06:05:19 | 2014-06-16T06:05:28 | 20,496,147 | 0 | 0 | BSD-3-Clause | 2022-12-26T19:45:31 | 2014-06-04T19:06:16 | Python | UTF-8 | Python | false | false | 272 | py | # -*- coding: utf-8 -*-
from django.db import models
class Audit(models.Model):
command_name = models.CharField(max_length=80)
date_started = models.DateTimeField()
date_ended = models.DateTimeField()
class Meta:
app_label = 'management_audit'
| [
"dmitry-kozhedubov@yandex.ru"
] | dmitry-kozhedubov@yandex.ru |
d90fcac0e12cd0f321dbfa11976d0074cb2a681c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_75/200.py | fffe0758681ce42de20ca4fef4e35391db502cce | [] | 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 | 1,091 | py |
def checkCase(data):
elements=[]
nonbase=[]
opposed=[]
for i in xrange(0, int(data[0])):
nonbase.append((data[i+1][0],data[i+1][1],data[i+1][2]))
data=data[int(data[0])+1:]
for i in xrange(0, int(data[0])):
opposed.append((data[i+1][0],data[i+1][1]))
data=data[-1]
for cm... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
30fb72f40582c23a9f9dd19a02d75877810dce08 | 44b9fa8d1113299d327d087da73febf26bef61e7 | /WINDOW_openMDAO/AEP/FastAEP/farm_energy/wake_model_mean_new/wake_overlap.py | ff871ca75c2e2612402c55bb235094bbeda88a94 | [] | no_license | sebasanper/WINDOW_openMDAO | 828e6d38546e706d23e4920b1c6e857c6be10825 | 3779fa8380874bc2cd7380df90339b37806a6a60 | refs/heads/master | 2023-04-12T22:09:42.951295 | 2023-04-05T08:54:15 | 2023-04-05T08:54:15 | 107,442,976 | 3 | 9 | null | 2019-01-20T16:32:42 | 2017-10-18T17:47:04 | HTML | UTF-8 | Python | false | false | 789 | py | from math import sqrt
def root_sum_square(array_deficits):
# This is one model, root sum square of individual wind speed deficits.
total_deficit = sqrt(sum([deficit ** 2.0 for deficit in array_deficits]))
return total_deficit
def multiplied(array_deficits):
total_deficit = 1.0
for element in ar... | [
"s.sanchezperezmoreno@tudelft.nl"
] | s.sanchezperezmoreno@tudelft.nl |
86cfe8a6f28681768008e205860dc50ea646a073 | 76af5f63e173850a461dd104d696a3ad86958b6d | /ObjectDetectionDeps/Generate_Labelmap.py | 543168988a48df229884cc695dd2deda73776def | [] | no_license | Danny-Dasilva/Tensorflow_Object_Detection | 599b76d86918b1425a8d9e35d6dc5644224e6692 | b0386dfac730b516594d511849560ff59a2bf979 | refs/heads/master | 2022-03-30T11:34:08.595899 | 2020-02-08T16:35:20 | 2020-02-08T16:35:20 | 197,986,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py |
import os
path = os.environ['IMAGEPATH'] + '/Train_labels.csv'
import csv
col = []
with open(path, newline='') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
#print(set(row['class']))
col.append(row['class'])
classes = list(set(col))
print(classes)
count = 0
pbtxt_label ... | [
"yahchayildasilva@gmail.com"
] | yahchayildasilva@gmail.com |
34d6c85cbf533f303b059ed7e10e34a4332e91a5 | 9d440715f9263086f8b69d5d8cce8542ba43786e | /two_sum.py | 4eed31eb02c287a4ca0d0d8da44f5fe3931e0907 | [] | no_license | mickey1233/two_sum2 | 41bc17220fc3eb0aca284d1bf8f5e191ae840a7a | c779d30e65f0d770e325125228063585ccb2b5f1 | refs/heads/main | 2023-08-14T13:09:52.904208 | 2021-09-15T12:58:23 | 2021-09-15T12:58:23 | 406,764,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | def twosum(numbers, target):
map = {}
for i in range(len(numbers)):
if target-numbers[i] not in map:
map[numbers[i]] = i
else:
print(list(map[target-numbers[i]]+1, i+1))
def main():
twosum([2, 7, 11, 15], 9)
twosum([2, 3, 4], 6)
twosum([-1, 0],... | [
"noreply@github.com"
] | noreply@github.com |
38134a59f724c411568dd11a3bfac0f88a1b52b7 | e9c86da8186bcdd507bf26633fef1601d519631d | /config.py | b4622fbfb01bc6b411aed34b2fc9039681bcc1ea | [
"Apache-2.0"
] | permissive | LGM-Curtis/Bilibili-picture_area | 9f82d4d931a7a4de5f3d9eccfd42142078c8b99c | 8cbad6ba28036045526f5fd516f1f19d4306f144 | refs/heads/master | 2020-09-05T03:01:16.515166 | 2019-11-06T10:28:24 | 2019-11-06T10:28:24 | 219,963,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | """"
Cosplay分区
最热 'https://api.vc.bilibili.com/link_draw/v2/Photo/list?category=cos&type=hot&page_num=0&page_size=20'
最新 'https://api.vc.bilibili.com/link_draw/v2/Photo/list?category=cos&type=new&page_num=0&page_size=20'
私服分区
最热 'https://api.vc.bilibili.com/link_draw/v2/Photo/list?category=sifu&type... | [
"45490062+LGM-Curtis@users.noreply.github.com"
] | 45490062+LGM-Curtis@users.noreply.github.com |
cc97afe2fdf21ecab13afb0ddcfafe6ae2c2144f | 9002c1b9f6ca9c70f5cc25899d5fe9b193de3a52 | /project/models.py | c752a0d6a7e28ef6f5f068a57f14b6b33e770ac7 | [] | no_license | SandipanGhosh/FlaskTaskManager-02 | b9f0254f72ef4df89f25bac87caac34ece9d8be1 | c6a6d9b7f0754d80c773f1c9b0e98ba200a2b871 | refs/heads/master | 2021-05-09T09:09:27.427759 | 2018-02-02T21:07:36 | 2018-02-02T21:07:36 | 119,424,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | # project/models.py
from views import db
import datetime
class Task(db.Model):
__tablename__ = "tasks"
task_id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
due_date = db.Column(db.Date, nullable=False)
priority = db.Column(db.Integer, nullable=False)
posted_date = db.Co... | [
"sandipan.ghosh2005@gmail.com"
] | sandipan.ghosh2005@gmail.com |
6da9faa43719b34fe1f5824aa6c271c993fb4534 | 7ad0ea6e17c6505c419f70b956a06f36b734779b | /BizchoolLab/project/urls.py | e8a928037905962c68a0c309904a81b359a0d1ac | [] | no_license | yoongyo/BizLab | 34cb2e6386030fb091853d90065063367ae32521 | dfe5f1e69d6a711e96f0f456f36ecfbccf010892 | refs/heads/master | 2020-04-12T13:08:55.782891 | 2018-12-20T02:09:54 | 2018-12-20T02:09:54 | 162,513,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.urls import path, re_path
from . import views
urlpatterns = [
re_path(r'^new/$', views.project_new, name="project_new"),
re_path(r'^$', views.project_list, name="project_list"),
re_path(r'^(?P<pk>\d+)/$', views.project_detail, name="project_detail"),
re_path(r'^(?P<pk>\d+)/Edit/$', views.pro... | [
"jyg0172@naver.com"
] | jyg0172@naver.com |
fc4ab389840c49b9e8ef3baf3fbebff64ef16ba7 | a4e14955779a44024d3299ecc4857741a00236e0 | /src/test_client.py | cbe11ea781d682484a0b4ff8efbc082d3a321478 | [] | no_license | Cornell-Tech-Turtlebot/orchestrator | 226e1170d5348275ff70025d5e94339f40c168dd | 449c97080fe3141b99597e44b2d69f5869729041 | refs/heads/master | 2022-12-11T20:20:35.101870 | 2020-08-23T18:04:10 | 2020-08-23T18:04:10 | 283,891,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | #!/usr/bin/python
import rospy
from std_msgs.msg import String
from rospy_tutorials.srv import *
def status_out():
rospy.init_node('orch', anonymous=True)
pub = rospy.Publisher('status_out', String, queue_size=10)
rate = rospy.Rate(10) # 10hz
while not rospy.is_shutdown():
msg_out = "hello world %s" % rospy.get... | [
"zachgitt@umich.edu"
] | zachgitt@umich.edu |
f2536c6d3f382ecd5d7c0ab7aa19a39a61db1aff | 453d2e699d218fdb3bc1e535a707988194ac6717 | /lib/opengl/postproc/base.py | e38f2f67f6835325a7416c113e3b01a34d8e7a81 | [
"MIT"
] | permissive | defgsus/thegame | d54ffcd343c7e1805d2c11e24cd38b02243e73d4 | 38a627d9108f1418b94b08831fd640dd87fbba83 | refs/heads/master | 2023-07-23T06:32:40.297591 | 2022-04-11T12:02:32 | 2022-04-11T12:02:32 | 127,875,178 | 1 | 0 | MIT | 2023-07-06T22:07:07 | 2018-04-03T08:21:31 | Python | UTF-8 | Python | false | false | 1,264 | py | from ..RenderSettings import RenderSettings
from ..RenderNode import RenderNode
from ..ScreenQuad import ScreenQuad
from ..core.Shader import Shader
class PostProcNode(RenderNode):
def __init__(self, name):
super().__init__(name)
self.quad = ScreenQuad(name="pp-quad-%s" % self.name)
self... | [
"s.berke@netzkolchose.de"
] | s.berke@netzkolchose.de |
038243668ac16b39e17fbc3ecc4dfe6eb39856d0 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-Photos/PyObjCTest/test_phphotolibrary.py | 7174dd32bc9163fff070ec2f446bfa8aa62aa0cf | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | from PyObjCTools.TestSupport import *
import sys
if sys.maxsize > 2 ** 32:
import Photos
class TestPHPhotoLibrary (TestCase):
def testConstants(self):
self.assertEqual(Photos.PHAuthorizationStatusNotDetermined, 0)
self.assertEqual(Photos.PHAuthorizationStatusRestricted, 1)
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
ce8aa85757920f22d73bf26e17470172c47f5e75 | 15db063c0c420ae080c5a3261305c133842fbd09 | /generate_filelist.py | f1964b18306011881724105c36b6b6390fd21cf3 | [
"MIT"
] | permissive | Viarow/Mask_RCNN | f6e61c236cdae4d32fa04a2a8b1d54eb513b10ca | e88a0f29785a94b4adbc493fdb63d8ef8e300edf | refs/heads/master | 2020-07-09T03:26:51.892382 | 2019-09-15T08:37:08 | 2019-09-15T08:37:08 | 203,862,431 | 0 | 0 | NOASSERTION | 2019-08-22T19:47:43 | 2019-08-22T19:47:42 | null | UTF-8 | Python | false | false | 1,589 | py | import os
from tqdm import tqdm
_UCF101_ROOT_ = '/media/Med_6T2/mmaction/data_tools/ucf101/videos/'
def average_filelist(root_path, vid_num, filelist_path):
listfile = open(filelist_path, 'w')
all_classes = os.listdir(root_path)
all_classes.sort()
for c_item in tqdm(all_classes):
class_path ... | [
"universe37@outlook.com"
] | universe37@outlook.com |
a3058160dea228fc765e45cdcec942bd35ec57a9 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/core/data/db/tests/test_dbms.py | cf0aed0578e3412ae13b214eeeea0442098cd14d | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,053 | py | # -*- coding: UTF-8 -*-
"""
Copyright 2013 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the h... | [
"everping@outlook.com"
] | everping@outlook.com |
076aeab25669433e451a3d814becbd6c70e99b89 | 0e2676e962968cc30cab3df6225db34d4efc64d1 | /recipebox/recipes/migrations/0011_auto_20161115_1842.py | f384533c57da54ae239f786063d058b4dd809749 | [
"BSD-3-Clause"
] | permissive | drmatthews/recipebox | f46534fcd9067a237cab486afe3d6d3b0e93a2c9 | d3879a348a6b3580ec448a8f4d6d71c33ef653f4 | refs/heads/master | 2021-01-15T15:37:27.235332 | 2016-11-21T17:39:53 | 2016-11-21T17:39:53 | 55,221,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-11-15 18:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0010_externalrecipe_source'),
]
operations = [
migrations.RemoveF... | [
"daniel.r.matthews@kcl.ac.uk"
] | daniel.r.matthews@kcl.ac.uk |
3d985057d89eb79da653bd79087e157f47836539 | 5755d7598e066cacc6a68045dd458d9d07e7aef0 | /hello_world.py | 515637ea003110ea08e3c7f33bffbcac6ec6d7ab | [] | no_license | JemZzz/JEM-SPRITE | 6e7c60202620e3ba18582a5148e965a1ea5b83ad | a2f5653824a0e2e96c2a947c3c739c8335962cb0 | refs/heads/master | 2021-01-02T09:46:20.010435 | 2017-08-04T03:47:33 | 2017-08-04T03:47:33 | 99,295,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | print("This is a git branch")
print("This is a branch master")
| [
"z5157678@ad.unsw.edu.au"
] | z5157678@ad.unsw.edu.au |
b728b7a1c74922c4b5ecc77fd20377d3924e6d66 | 0821d92db624dada6bc50887f6e435ef1e1c03e2 | /norm/common.py | f8233b282b34e20c3f2abe8c3bf385be4388f6bb | [
"MIT"
] | permissive | jcollie/norm | a29a3052705e805ba240232aec1fd6aac59897ba | db303b28e4184cae08228d92868f9409c013096a | refs/heads/master | 2021-01-18T04:19:45.679791 | 2013-07-22T22:34:09 | 2013-07-22T22:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | # Copyright (c) Matt Haggard.
# See LICENSE for details.
from zope.interface import implements
from twisted.internet import defer
from collections import deque, defaultdict
from norm.interface import IAsyncCursor, IRunner, IPool
class BlockingCursor(object):
"""
I wrap a single DB-API2 db cursor in an asy... | [
"haggardii@gmail.com"
] | haggardii@gmail.com |
7bea6a7d912067776c98db744ef90611d4af71f9 | 29c3fcdbdcafa87902fc1ebc2ab501bfc014e61c | /vpmoauth/permissions.py | b0271a6c7052f753c4968fa5f46aeb2b86f3c33a | [] | no_license | gingerComms/vpmo | 762151478298214d753d31619171e2cb5588e80b | 4eaf94f85c470056db6af9dd832e490fdf5ac920 | refs/heads/master | 2022-06-17T18:50:25.422109 | 2018-11-15T10:19:31 | 2018-11-15T10:19:31 | 140,488,185 | 0 | 0 | null | 2022-05-25T00:21:09 | 2018-07-10T21:17:51 | Python | UTF-8 | Python | false | false | 1,048 | py | from rest_framework import permissions
from vpmoauth.models import MyUser
class AssignRolesPermission(permissions.BasePermission):
""" Permission that decides whether a user a can assign a permission or not """
deliverable_types = ["Deliverable", "Topic"]
def has_object_permission(self, request, view, ob... | [
"wigeriaaeriag@gmail.com"
] | wigeriaaeriag@gmail.com |
53118de399b53e109d78e4325c5bd5111b6a559a | 494387316b955e85b73bc971f253dab2f81094ec | /Sell All the Cars.py | d141c650ae86017075a3730cdf270ca18d36f7fc | [] | no_license | chandra2245/Codechef-April-Long-Challenge2020 | 78bfb20dc30efc6985e3d65e802fe3db2b5f8932 | f088573b9120d4d2b4a464fdc78927381b897c89 | refs/heads/master | 2023-06-12T06:04:59.779133 | 2021-06-30T13:47:14 | 2021-06-30T13:47:14 | 263,425,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | test_case=int(input())
while test_case>0:
test_case-=1
final=0
n=int(input())
#flag value storing index
flag=None
array=list(map(int,input().split()))
array.sort()
array.reverse()
#iterating
for iters in range(n):
if array[iters]<iters:
flag=iters... | [
"noreply@github.com"
] | noreply@github.com |
adaa57d9b720488987461130043aa0db176584e1 | 3b63782b0c499deeb9e52b1cfe10e0de1f0c14a9 | /quota/Unconfigured.py | cb6a3a2d6583cb7bec1e359cbfe648763a407c4a | [] | no_license | laobubu/ssland | db119efec0f1c635ae994e4308123f1108aa5f4f | 80aff970c608c51f6fca1f447507f4a03fd9bbe3 | refs/heads/universal | 2021-01-21T15:00:04.921472 | 2018-04-08T15:29:15 | 2018-04-08T15:29:15 | 59,768,159 | 113 | 27 | null | 2018-04-08T15:29:16 | 2016-05-26T17:00:52 | Python | UTF-8 | Python | false | false | 249 | py | '''
Default type of Quota. do not modify this.
'''
from django import forms
FRIENDLY_NAME = 'Unconfigured'
class Form(forms.Form):
pass
def descript(q, is_admin=False):
return ["Unconfigured quota."]
def is_exceeded(q):
return False
| [
"laobubu@gmail.com"
] | laobubu@gmail.com |
4de27c4e999264cdb3702646a38ff55fe063e173 | c7be396d97d8aa16374ce94ab39bdc3413fbbcd1 | /python-apiai-webhook/device/application.py | 82c724e369d8325be0afcb77020ba0b5610e3cfe | [] | no_license | bsaxen/my_ioant_examples | 31cdf9c14939149c4bc7f307b40ed79e02a6948d | 5ec83f5d2577fa48aa7db6c314fb8139300386fd | refs/heads/master | 2021-01-22T02:04:20.463409 | 2019-01-20T14:02:51 | 2019-01-20T14:02:51 | 92,329,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,301 | py | # =============================================
# Benny Saxen
# Date: 2017-09-23
# Description: API.ai webhook with IOAnt support
# =============================================
from __future__ import print_function
from future.standard_library import install_aliases
install_aliases()
import json
import os
import thr... | [
"benny.saxen@gmail.com"
] | benny.saxen@gmail.com |
bd5007f5ea485e97bda7e458055eb62fbd663a8a | 8520c991dc543f5f4e1efe59ab401824173bb985 | /457-circular-array-loop/solution.py | e31ba44f932755442e14be18a59b1756d31061c2 | [] | no_license | katryo/leetcode | d44f70f2853c4f5ea9a462d022feb0f5436c2236 | 0da45559271d3dba687858b8945b3e361ecc813c | refs/heads/master | 2020-03-24T12:04:53.859047 | 2020-02-18T04:27:55 | 2020-02-18T04:27:55 | 142,703,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | class Solution(object):
def circularArrayLoop(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
def next(idx):
return (idx + nums[idx]) % len(nums)
for i in range(len(nums)):
if nums[i] == 0:
continue
pslow =... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
d98f3ed569fc29eb0c4c57187c6023849f737681 | d22df6ab8afcf030b92c6813b11cb4f6f1eb2174 | /etude_de_base/ufwi-administration-suite-ufwi-conf/ufwi_conf/backend/components/exim/exim.py | 9518e7893bad6b61379c43510a5f543ed459473c | [] | no_license | maximerobin/Ufwi | 67dbee6c90b21b5a6a1815e3853b9ec8e10747b7 | a516e52535534262fce127d96812b7ded4171707 | refs/heads/master | 2021-01-22T23:16:40.064512 | 2012-03-28T11:12:04 | 2012-03-28T11:12:04 | 3,254,471 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,976 | py | #coding: utf-8
"""
Copyright (C) 2008-2011 EdenWall Technologies
Written by Michael Scherer <m.scherer AT inl.fr>
This file is part of NuFirewall.
NuFirewall is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, v... | [
"mdp.robin@gmail.com"
] | mdp.robin@gmail.com |
84c8bc28d069f1510ef5a0bc2b52bc09cf9b9b9e | 40ab5bb935cf055413c2439dd12891ec58da0b24 | /main/views.py | e4ca63fa270eec41f607f73ddc8922a4b0e99a0c | [] | no_license | sanketnakhate26/stockManager | 33e58030ee13d28fa7ddd91b043c8037b1f5ea07 | 6fc0456a14ead50b70f802b74774adb9287dfa57 | refs/heads/master | 2022-12-07T00:58:42.735860 | 2020-08-24T11:49:55 | 2020-08-24T11:49:55 | 265,965,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,992 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from main.models import Overview
from main.models import History
from .forms import OverviewForm
from django.db.models import Sum
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators... | [
"snakhate@cisco.com"
] | snakhate@cisco.com |
945e6af56bb2a8322e9583389d14c9810cdc23a9 | 59976760649d2b28c28523140c1457232d4108c9 | /hacker-rank/algorithms/PalindromeIndex.py | 00adae5bb02a68ff3f8a63a255f56fc1ff29a6f5 | [
"MIT"
] | permissive | masharp/algorithms-n-structures | b0149517889800b0d3ff3c8ec2bc1c8e699138a0 | 97c360f9d295b6eedb5f951ffffe35ea0083d024 | refs/heads/master | 2023-03-03T20:49:10.174660 | 2023-03-01T00:17:26 | 2023-03-01T00:17:26 | 37,022,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | """
* Palindrome Index (Python)
* HackerRank Algorithm Challenge
* https://www.hackerrank.com/challenges/palindrome-index
*
* NOTE: Currently passes half of test cases. Times out on large cases
"""
testA = 'aaab';
testB = 'baa';
testC = 'aaa';
testD = 'hgygsvlfcwnswtuhmyaljkqlqjjqlqkjlaymhutwsnwcwflvsgygh';
testQ ... | [
"msharp.oh@gmail.com"
] | msharp.oh@gmail.com |
ae2edc8589f0c988e83769e45b4b2f1c038156ac | 8abc4260e0c387b9b4f79bee86b1ed07d356f843 | /main/migrations/0011_auto_20151109_2018.py | 0eefd01035011bf4d755164a1c296c0af3909801 | [] | no_license | justinhammer/Django_States | 4daae335ce52f2a91bfaa54c2a32408595b2356c | 61be25c01a90174be379d21d3de0b1aba9edb9c2 | refs/heads/master | 2021-01-10T09:32:36.086167 | 2015-11-17T20:37:55 | 2015-11-17T20:37:55 | 44,116,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0010_auto_20151012_1918'),
]
operations = [
migrations.AlterField(
model_name='state',
name=... | [
"justhamr@gmail.com"
] | justhamr@gmail.com |
cabf485b998ad1b05d897d637356a88473eb549d | 1fae5832045750882e0ec72132210adba186292f | /algorithms/226.py | 8361f40692dc84ebc8eccdaa3bb679d87b6401f7 | [] | no_license | JmeHsieh/leetcode | 44c15577f2a48e6d610ee8571448a46fe659a1e3 | ab8511e39d302c087c300eac416aa3e27e5876c5 | refs/heads/master | 2021-01-12T16:15:34.629313 | 2016-10-26T03:22:03 | 2016-10-26T03:22:03 | 71,962,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # https://leetcode.com/problems/invert-binary-tree
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def invertTree(self, root):
"""
:type root: TreeNode... | [
"jmehsieh@gmail.com"
] | jmehsieh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.