blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
636287a026b036c4db22cc1f8fbad2a93d1e3f6b | 90e39e45d469bb5dd9cb36805a88c97f41c147de | /2-do_deploy_web_static.py | 5fc6c711832e5b59a00fa0831b049af1e986aac4 | [] | no_license | Noeuclides/AirBnB_clone_v2 | 372b3d01ba76d41a79dca166d6ca7d471749a07d | 13fac5127af0149e7bef9a94b70e6d2746eeb4fd | refs/heads/master | 2020-07-03T19:16:10.404783 | 2019-09-11T00:42:29 | 2019-09-11T00:42:29 | 202,020,044 | 0 | 2 | null | 2019-08-19T03:08:39 | 2019-08-12T22:44:22 | Python | UTF-8 | Python | false | false | 1,700 | py | #!/usr/bin/python3
from datetime import datetime
from fabric.api import *
from os import path
'''automatize with fabric
'''
'''env.user = 'localhost'
'''
env.hosts = ['35.231.53.89', '35.190.176.186']
def do_pack():
'''making a pack on web_static folder
'''
now = datetime.now()
file = 'web_static_' +... | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
6af689639ddfcb358242510a287fa6c89aca2e3a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArCalibTools/share/LArMCConditions2Ntuple.py | 1a35ffa4835cfb273b6320e18243c2bfdc57f847 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,483 | py | import AthenaCommon.AtlasUnixGeneratorJob #use MC event selector
from string import split,join
## get a handle to the default top-level algorithm sequence
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()
#Input Parameters:
# PoolFiles: sequence of pool files to read from though CondProx... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b968c173c17ee7e0970eab6d6e3ee7ba4a7e8ab9 | ca77e9e45d666771c7b0897e7e3093b3d3c12f65 | /random_scripts/update_costs/update_wo_costs.py | 20ad1cd9856990dbe5c11c2b9e38c6a9d2275cf5 | [] | no_license | 2gDigitalPost/custom | 46175d3a3fc4c3be21dc20203ff0a48fb93b5639 | 6a3a804ef4ef6178044b70ad1e4bc5c56ab42d8d | refs/heads/master | 2020-04-04T07:40:17.962611 | 2016-12-28T18:35:28 | 2016-12-28T18:35:28 | 39,648,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | import os, sys, math, hashlib, getopt, tacticenv, time
def kill_mul_spaces(origstrg):
newstrg = ''
for word in origstrg.split():
newstrg=newstrg+' '+word
return newstrg
def make_data_dict(file_name):
the_file = open(file_name, 'r')
fields = []
data_dict = {}
count = 0
for line i... | [
"topher.hughes@2gdigital.com"
] | topher.hughes@2gdigital.com |
335a917f993a2444982d969d5168c22b7ae98d6d | 6d5fd2e7b9a66e17593a490a80e96e95d36436a3 | /src/profiles/signals.py | 81924a9d88eb4f0810a55822910c9384d971ed0a | [] | no_license | Husain-Jinia/Django-Report-Generator | f38276b47c263824b2f6794d793ff63872ba31fc | 277a06584e7d333d9380f213abc217e29ecafd17 | refs/heads/master | 2023-04-20T06:05:13.294836 | 2021-05-15T08:01:11 | 2021-05-15T08:01:11 | 365,412,503 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from .models import Profile
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
@receiver(post_save, sender=User)
def post_save_create_profile(sender, instance, created, **kwargs):
print(sender)
print(instance)
print(created)
i... | [
"husainjinia0201@gmail.com"
] | husainjinia0201@gmail.com |
66a4c5f13e1dc79c7ef110ee7f36ab90411658d1 | 3a6cf9261ca5e58468622f49cfa109d65f7b4eda | /src/python/spikes/stereo.py | 3bfe579ce6e4881dbb41e9f01fcc2026dd9dddab | [] | no_license | romilly/cluster-hat | a6784f85da5287466a73ef61a0111063bcd171b1 | a872da5bfa6ab2cb666095ab6845bafa5d4badca | refs/heads/master | 2021-05-09T13:30:34.743067 | 2018-01-30T15:11:35 | 2018-01-30T15:11:35 | 119,036,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
imgL = cv2.imread('images/p1-image1.jpg',0)
imgR = cv2.imread('images/p2-image1.jpg',0)
stereo = cv2.StereoBM_create(numDisparities=16, blockSize=15)
disparity = stereo.compute(imgL,imgR)
plt.imshow(disparity,'gray')
plt.show() | [
"romilly.cocking@gmail.com"
] | romilly.cocking@gmail.com |
a64456fc0046b8a42ad60ddaa19ba450e3c4bfac | 4a7804ee05485c345b4e3c39a0c96ed4012542ac | /editor/emacs/emacs-python/actions.py | b0523c81855ca5f5c430977b55c02381e42c60ee | [] | no_license | Erick-Pardus/Pardus | 1fef143c117c62a40e3779c3d09f5fd49b5a6f5c | 2693e89d53304a216a8822978e13f646dce9b1d3 | refs/heads/master | 2020-12-31T02:49:33.189799 | 2013-03-17T06:29:33 | 2013-03-17T06:29:33 | 17,247,989 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "python-mode.el-6.0.11"
def install():
pisitools.insinto("/usr/share/emacs/si... | [
"namso-01@hotmail.it"
] | namso-01@hotmail.it |
0653972e0dd62e235f1b6c73af6da5b96e246c6f | 1a812d520fa0788864cab3c6bbd4e2ba0e8872c2 | /employeedataandprintthatdata.py | d97719e66d1ee36ecddc97ae0f16f35d728b4462 | [] | no_license | manutdmohit/pythonprogramexamples | b6f6906a6169ad2ecd9b16d95495474d570b065e | 06ac4af8ce13872bbe843175a61d7ad77e0f92b6 | refs/heads/main | 2023-01-14T13:14:57.468947 | 2020-11-25T05:39:01 | 2020-11-25T05:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | eno=int(input('Enter employee number:'))
ename=input('Enter employee name:')
esal=float(input('Enter employee salary:'))
eaddr=input('Enter employee address:')
married=bool(input('Employee married?[True/False]:'))
print('Please confirm your provided information')
print('Employee Number:',eno)
print('Employee Nam... | [
"noreply@github.com"
] | manutdmohit.noreply@github.com |
961781e9a4421f843daec46bf7d27a5b190cffc6 | 989b3499948137f57f14be8b2c77d0610d5975e6 | /python-package/daily_study/python/question_python(resolved)/chapter4_conditional_and_loops(완결)/i_is_member.py | fb8ea88f0fd87a269fb0ec00839eb849b2386979 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
def is_member(member_list, mem):
""" 리스트 member_list 와, 어떤 데이터 mem을 전달받고, mem이 member_list에 포함되어 있는지를 True/False로 반환하는 함수를 작성하자
sample in/out:
is_member([1, 5, 8, 3], 3) -> True
is_member([5, 8, 3], -1) -> False
"""
# 여기 작성
return mem in me... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
4f2d7e9a93ccb1c73bfa12146ad9add11e573b27 | d07a26e443538c5fc6b0711aff6e233daef79611 | /LearnPythonGuessGame.py | e3a41526a4b12716d27871e2464f08f1855a7ba6 | [] | no_license | Zahidsqldba07/Python-learn | bd602d490ee53f8e5331e70f92919ca315944ff9 | ffc1608695ed6c7c3d2b6789913e34235dcf468e | refs/heads/master | 2023-03-16T02:18:19.155281 | 2020-09-19T09:12:48 | 2020-09-19T09:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | secret_word = "respect"
guess = ''
guess_count = 0
guess_limit = 7
out_of_guesses = False
while guess != secret_word and not (out_of_guesses):
if guess_count < guess_limit:
guess = input("What's the secret word?: ")
guess_count += 1
if guess != secret_word:
print("Hin... | [
"noreply@github.com"
] | Zahidsqldba07.noreply@github.com |
1817dddcfb6a350fe4323472755486725543c750 | d70db722710bccf7a834e8e4acdb376b151b20a1 | /apps/finances/models.py | 0f4b847dc96b1d4ee9872b62f624905c17cde98f | [] | no_license | intentaware/Vader | b0d433f640b244d592126b2713506d214dc1d287 | 54d5d799beab1fc5cef99fb90d4e50e00720bfe0 | refs/heads/master | 2021-01-20T07:07:11.393929 | 2017-12-06T19:16:53 | 2017-12-06T19:16:53 | 30,995,526 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import shortuuid
from django.db import models
from django.utils.text import slugify, Truncator
from django.contrib.postgres.fields import JSONField
from django_extensions.db.fields import ShortUUIDField
from apps.common.models import *
from apps.common.utils.money import convert_to_cents
from .mixins import Stripe, CUR... | [
"yousuf.jawwad@gmail.com"
] | yousuf.jawwad@gmail.com |
19261cb62700033a9cef08d8687bae4821b6f92d | 21569b68b510b55bdc2acb1ff5ae521b31d44a79 | /bin/pyrsa-encrypt-bigfile | 9afaf7317207ef369910d93588778e7aefc825d6 | [] | no_license | howarder3/Rpi3_study | a99faef434ae4f751d4d9f339aca918186f7cb3e | 533ba60ae4d11b5e3cebc12283e067ccee5a5cfd | refs/heads/master | 2020-03-18T18:11:01.030936 | 2018-05-27T20:46:40 | 2018-05-27T20:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/pi/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import encrypt_bigfile
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt_bigfile())
| [
"howarder3@gmail.com"
] | howarder3@gmail.com | |
667907153fb3690183536d53d10538fd0e5ee2f8 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/197978/Grasp-and-lift-EEG-challenge-master/genInfos.py | 3fe287f7ae615d7d863ba13934411a5cad7ad2b9 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 13 21:35:28 2015.
@author: fornax
"""
import numpy as np
import pandas as pd
from glob import glob
from mne import concatenate_raws
from preprocessing.aux import creat_mne_raw_object
# #### define lists #####
subjects = list(range(1, 13))
lbls_tot = []
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
7d61b22340803854812ce2fb50445f429aebeeb0 | df44affab179c2546fb3e0d1dc29eebcfdf51c1c | /toughradius/common/smsapi.py | 06534cfab472a0cec1e3f4ef54e6c8980f14269e | [] | no_license | sailorhdx/taurusradius | 121c508e7faffaddcd5326d2b6d3710eaf0ed08e | 92d30820611a0c9102ae41713ea3c35437a3c6ee | refs/heads/master | 2021-01-22T02:28:31.543338 | 2017-06-17T02:15:33 | 2017-06-17T02:15:33 | 92,362,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/env python
# coding=utf-8
import time
import json
import base64
from urllib import urlencode
from toughradius.toughlib import apiutils
from toughradius.toughlib import logger
from toughradius.toughlib import utils
from toughradius.toughlib.smsutils import smscn
from toughradius.toughlib.smsutils import qclou... | [
"sailorhdx@hotmail.com"
] | sailorhdx@hotmail.com |
b8a0233512848689eab5dea8d359062c641e2a1d | 6a2bda031f53b057e7aac3aeebd070151f5923f1 | /zmqpy/zmqpy.py | d012bf64ed8ad12196b425161f1ed1cec45fec26 | [
"BSD-2-Clause"
] | permissive | pfw/zmqpy | ab34b9f9f7e662e5d056a5a35078c27f4c9b5d9b | 185758349176709da43327e1f9b7c7c04d4ca850 | refs/heads/master | 2020-12-24T20:14:41.117019 | 2012-12-10T18:43:17 | 2012-12-10T18:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,024 | py | # coding: utf-8
from ._cffi import C, ffi, zmq_version, new_uint64_pointer, \
new_int64_pointer, \
new_int_pointer, \
new_binary_data, \
value_uint64_pointer, ... | [
"felipecruz@loogica.net"
] | felipecruz@loogica.net |
0e10c4dc821d92d19a19781c29184f2c21a3a2f8 | a2e0e03e31f892454e537df32e3e1e1d94764fa0 | /virtual/bin/gunicorn_paster | a5acb6c5f33e8c0f85c1fc0f5f42198bd48c6b30 | [
"MIT"
] | permissive | MichelAtieno/Instagram-Clone | 557272585a3fff6f7a7c552b08cc5ef5e2c129da | 7250579e4f91084ad9bf8bd688df3f556dfef64a | refs/heads/master | 2020-03-30T16:23:19.351522 | 2018-10-09T09:42:05 | 2018-10-09T09:42:05 | 151,406,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/michel/Desktop/Python-Django/Instagram/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"mishqamish@gmail.com"
] | mishqamish@gmail.com | |
3a4c7f9d712049cf02648c56d53ff66b940cd9fb | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/tryfinally5.py | 7a605945006ab61d29eedb42aaf62afea001654d | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | try:
fob = open ( 'test.txt', 'w' )
fob.write ( "It's my test file to verify try-finally in exception handling!!"
)
print 'try block executed'
finally:
fob.close ()
print 'finally block executed'
| [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
6893b1b04629476fddf2845af7cfe5908b9cb720 | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /hgdemandimport/demandimportpy3.py | e2ea27fa0f1166fc55324efb1bbdaf6c4a5029c6 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | # demandimportpy3 - global demand-loading of modules for Mercurial
#
# Copyright 2017 Facebook Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
"""Lazy loading for Python 3.6 and above.
This uses the new importlib finder/load... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
68b377124eb26ae187dc04f00fc3c6cc81fed129 | a21d2fb3f111f30b842a4c3a5c6940d1a003b94d | /Python3/Foundation/Day 8/进程 join.py | 883a86cf1f1208853b0f0f2f71b0dd2e70e1d4ae | [] | no_license | hygnic/MyPython | 438f16206770a006a3b7bcf2ada9150c71ce8af9 | 26aaa57728ad545af5920ff2015eae258712d077 | refs/heads/master | 2021-07-01T02:10:15.810495 | 2021-02-26T08:07:54 | 2021-02-26T08:07:54 | 220,612,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # User: hygnic
# Date: 2018/9/8
# User: hygnic
# Date: 2018/9/8
import os
import time
from multiprocessing import Process
# help(os)
def func1(args):
print(args)
time.sleep(2)
print('son process: ', os.getpid())
def func2(filename, content):
with open(filename, 'w') as content_wp:
content_w... | [
"hygnic@outlook.com"
] | hygnic@outlook.com |
d070ea5b57e7c9f251743e491b019532adcef562 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_indispositions.py | fabc644b17f9f752e045cebb4233bf3276caa5da | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
#calss header
class _INDISPOSITIONS():
def __init__(self,):
self.name = "INDISPOSITIONS"
self.definitions = indisposition
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['indisposition']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
11b3528b2e69e8e20b3ffec5e3cabb26665f60f8 | 7653ddbbc2256fae9cc62251f0241d0e9696df7d | /pyshtools/spectralanalysis/cross_spectrum.py | 5b48e4b63cf25c38d0ad3ff3a882735c27d890b2 | [
"BSD-3-Clause"
] | permissive | SHTOOLS/SHTOOLS | c3415b38da290805ecdfd59699587e5ac5233cc8 | 93e77dcc6b36b2363f07d79d07ec47d86e6cba65 | refs/heads/master | 2023-08-31T01:35:49.211882 | 2023-08-28T10:50:08 | 2023-08-28T10:50:08 | 24,725,612 | 315 | 117 | BSD-3-Clause | 2023-08-28T10:50:10 | 2014-10-02T15:53:36 | Python | UTF-8 | Python | false | false | 6,773 | py | import numpy as _np
from scipy.special import factorial as _factorial
def cross_spectrum(clm1, clm2, normalization='4pi', degrees=None, lmax=None,
convention='power', unit='per_l', base=10.):
"""
Return the cross-spectrum of the spherical harmonic coefficients as a
function of spherical... | [
"mark.a.wieczorek@gmail.com"
] | mark.a.wieczorek@gmail.com |
b9c464b3bef52750e1eb2aeee448f5b6b3831cf5 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/acl/acl.py | 3d4dcafee709a227b8b3d2212c124493b9b78f7a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 3,907 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
97538fec829806a6dc0663c869c8d080db247647 | f62aa26461e381435c86019ca2f502d10ff75b88 | /catalog/migrations/0006_auto_20170121_1008.py | aa8cfe9522994670ffaf090ae699983f1dd31edd | [] | no_license | viktortat/CAP | edb2aef09169d9bcf04b541682d8dcb067edf1c6 | 60221d8fa1d1ccb209e40001554cb004480dd2d5 | refs/heads/master | 2021-06-12T13:03:33.917809 | 2017-04-30T19:58:38 | 2017-04-30T19:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-21 07:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('catalog', '0005_auto_20170113_0259'),
]
operations = [... | [
"l2maximum@mail.ru"
] | l2maximum@mail.ru |
d6f5168e7ed6ddd0d588ee89ae179faafdae37c6 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.icechannel.Thevideome.settings/default.py | b7d904cce475928faec807af89e23a0002229f7a | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 169 | py | addon_id="script.icechannel.Thevideome.settings"
addon_name="iStream - Thevideome - Settings"
import xbmcaddon
addon = xbmcaddon.Addon(id=addon_id)
addon.openSettings()
| [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
57adbfd2865b7cf8540897ff6ca3685bbaf4dfb0 | 164457b943d0b426e9a5e2eb57779e4e37f2d1bb | /the_tale/accounts/workers/accounts_manager.py | 84d4482f67e8a0b8ffab01b81c7cb415dffd6c34 | [
"BSD-2-Clause-Views"
] | permissive | lshestov/the-tale | 64334fd99a442ad736d9e8a38e8f0fb52d0ebab6 | 6229edfec6420307975269be9926c68ecdefb930 | refs/heads/master | 2021-01-18T08:38:44.147294 | 2015-10-27T18:43:10 | 2015-10-27T18:43:10 | 50,228,827 | 0 | 0 | null | 2016-01-23T07:38:54 | 2016-01-23T07:38:54 | null | UTF-8 | Python | false | false | 3,166 | py | # coding: utf-8
import time
import datetime
from dext.settings import settings
from the_tale.common.utils.workers import BaseWorker
from the_tale.common import postponed_tasks
from the_tale.accounts.prototypes import AccountPrototype, RandomPremiumRequestPrototype
from the_tale.accounts.conf import accounts_settings... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
7cf3515e7f6034a2c7c8f4d75546e29fa79cc092 | 1e58c8aaff5bb1273caaa73c49c07fd61ebd4439 | /wavencoder/__init__.py | ff0dd47ac2d71605c97213e27e6d38be784f8314 | [
"MIT"
] | permissive | samsudinng/wavencoder | 9870d6dd86cb126b170c9a6af93acee4acbbd633 | a64e16444ed25b5491fd2ba0c9f1409671e12e5e | refs/heads/master | 2023-03-01T22:42:42.477643 | 2021-02-08T11:23:00 | 2021-02-08T11:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | __version__ = '0.0.6'
from wavencoder.models.wav2vec import Wav2Vec
from wavencoder.models.wav2vec2 import Wav2Vec2Model
from wavencoder.models.sincnet import SincNet, SincConvLayer
from wavencoder.models.lstm_classifier import LSTM_Classifier
from wavencoder.models.lstm_classifier import LSTM_Attn_Classifier
from w... | [
"shangethrajaa@gmail.com"
] | shangethrajaa@gmail.com |
70456061b62a6c44867abca2486de5c1e3cbbd30 | 2316ce8a21d44a5d09284968ef42530633dc10d2 | /sample_code/ep264/rev04/t.py | bb11896bd80b2ae0441665c1f237b272afbbc397 | [] | no_license | AlexanderWinkelmeier/explains | 160de2c41fc5fc0156b482b41f89644dc585c4f3 | d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc | refs/heads/master | 2023-07-30T04:55:31.234482 | 2021-09-15T02:59:42 | 2021-09-15T02:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import os.path
import tempfile
SOME_FILE = 'foo.txt'
fd, temp_path = tempfile.mkstemp(dir=os.path.dirname(SOME_FILE))
try:
with open(fd, 'w') as f:
f.write('these are the new contents\n')
os.replace(temp_path, SOME_FILE)
except BaseException:
os.remove(temp_path)
raise
| [
"int3l@users.noreply.github.com"
] | int3l@users.noreply.github.com |
ac47410c081854dcc9bc0251f7925ae5e152c61f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/poddhcpserverinfo.py | 578744b8cd584e1c2bc24ce6e7cb39c73bd5bc04 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 7,213 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
0457cef64ea7b68406f6e46a7669f6fc1dce58d8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2518/49823/278350.py | 2cb366ad69dc313778213eda8c71db7c66cfe53f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | def al(a,b):
l=[]
a=sorted(a)
b=sorted(b)
p,r=0,0
for i in range(len(a)):
while(b[p]<a[i] and p<len(b)-1):
p+=1
if(p==0):
d=abs(b[p]-a[i])
else:
d=min(abs(a[i]-b[p-1]),abs(b[p]-a[i]))
r=max(r,d)
print(r)
if __name__ == '__main_... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
87d5ac6dbfe5558297a98172e06f7a77e461a57f | cb56e1554f43ef93b470019e5a36ddc26680d837 | /DjangoAyushh/first_site/first_site/wsgi.py | 2ae3b1b5a0a4a9042a3af49b19677cd72ff23d53 | [] | no_license | Ayush900/initiating-django | 6790ed4fde82a18af661922a7e3f7165a6d10b98 | ea7a2c3f3467dc92f229468fb3de274e1143a3c8 | refs/heads/master | 2020-07-05T20:52:05.169025 | 2019-08-16T18:14:49 | 2019-08-16T18:14:49 | 202,770,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for first_site 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/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"ayush.mehrotra900@gmail.com"
] | ayush.mehrotra900@gmail.com |
3b368f4bde0884863f26ff8302e96f97e0254648 | 5897a1b176f9c404fe421c61342f20820f685c07 | /RIS/OSL/zbrush/normalMap.py | 0d231757d9fd9b6a6e7b2b9114f427cc59a996c7 | [] | no_license | NCCA/Renderman | d3269e0c7b5e58a69d8744051100013339516ad0 | ebf17298e0ee56899a3288a3ff8eb4c4a0f806e8 | refs/heads/master | 2023-06-09T07:51:29.251270 | 2023-05-25T11:13:37 | 2023-05-25T11:13:37 | 51,373,926 | 17 | 11 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | #!/usr/bin/python
import prman
# import the python functions
import sys
sys.path.append("../../common")
from functions import drawTeapot
import Obj
from Camera import Camera
from Vec4 import Vec4
from Transformation import *
import random
ri = prman.Ri() # create an instance of the RenderMan interface
filename = ... | [
"jmacey@bournemouth.ac.uk"
] | jmacey@bournemouth.ac.uk |
53e96ad958d483b7b85fb9c3119b9e98031ef73c | 922b6d67ca8dcc1573bddd0aa7193107f42b6207 | /dms/web/base.py | 4d5a1c7e76049df5a818300081908190a9e6437b | [
"MIT"
] | permissive | zhmsg/dms | 40c91ea3945fd8dfcd0b056f4bcf324774c4e88c | a1ae1430893d9dde8f45bba0e50818f0224fcd8a | refs/heads/master | 2023-09-03T23:00:44.615748 | 2023-08-25T00:13:59 | 2023-08-25T00:13:59 | 42,572,830 | 0 | 2 | MIT | 2022-07-06T19:54:32 | 2015-09-16T07:50:17 | JavaScript | UTF-8 | Python | false | false | 3,419 | py | # !/usr/bin/env python
# coding: utf-8
from flask import Blueprint, g, Response, jsonify, redirect
from flask_login import login_required
import functools
from flask_helper.view import View as OView
from dms.utils.log import getLogger
from dms.utils.manager import Explorer
__author__ = 'zhouhenglc'
class RegisterD... | [
"zhouhenglc@inspur.com"
] | zhouhenglc@inspur.com |
6dd5e90c13cbc8921188a2a55e954bfeb8c45d71 | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /pro/migrations/0007_auto_20200222_1157.py | 4b4329dc3c21c4faddc276aeb4688a4472386e24 | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # Generated by Django 3.0.3 on 2020-02-22 11:57
from django.db import migrations, models
import p7.validators
class Migration(migrations.Migration):
dependencies = [
('pro', '0006_merge_20200222_1117'),
]
operations = [
migrations.RenameField(
model_name='professional',
... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
0663ca2468470dd94deb42af8ca3dab1a2cc3333 | 8e97cb7c8668a9061683ea3ba893dab32029fac9 | /pytorch_toolkit/person_reidentification/data/datamanager.py | 75b80c905990d162e028c8e00d6e2abce522f5de | [
"Apache-2.0"
] | permissive | DmitriySidnev/openvino_training_extensions | e01703bea292f11ffc20d50a1a06f0565059d5c7 | c553a56088f0055baba838b68c9299e19683227e | refs/heads/develop | 2021-06-14T06:32:12.373813 | 2020-05-13T13:25:15 | 2020-05-13T13:25:15 | 180,546,423 | 0 | 1 | Apache-2.0 | 2019-04-15T13:39:48 | 2019-04-10T09:17:55 | Python | UTF-8 | Python | false | false | 5,895 | py | """
MIT License
Copyright (c) 2018 Kaiyang Zhou
Copyright (c) 2019 Intel Corporation
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
Unles... | [
"48012821+AlexanderDokuchaev@users.noreply.github.com"
] | 48012821+AlexanderDokuchaev@users.noreply.github.com |
6383995e35ee51c384da1285d358de91724811e2 | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-rdflib.py | 1ef29499af98b492b37a7bc902fb9532e1abc901 | [
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 539 | py | # ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPD... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
cf1e3075185cefc817f86f6636ba6ca84b9a73ae | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve/devtools/script/behaviortools/clientdebugadaptors.py | 2a22a85a0875ed2b83664cddb9e4a59eb4130b2b | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,637 | py | #Embedded file name: eve/devtools/script/behaviortools\clientdebugadaptors.py
import logging
from brennivin.messenger import Messenger
import eve.common.script.net.eveMoniker as moniker
from eve.devtools.script.behaviortools.debugwindow import BehaviorDebugWindow
import uthread2
logger = logging.getLogger(__name__)
EVE... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
f410057cae7ae8e1339c8dac17c74dc88a9d8708 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/GAD/fairseq/data/audio/raw_audio_dataset.py | 1d92e4966bddce95d492eae411952a4a9ca2c9bd | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 5,267 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import os
import sys
import numpy as np
import torch
import torch.nn.functional as F
from .. import FairseqDataset
logger ... | [
"tage@microsoft.com"
] | tage@microsoft.com |
5bd1c4c635fe32c3791141e9bc42704f35a43e4b | 06ae8168b7067c8f77f06a48a22d158af1657651 | /models.py | 98bc2e3f49a110d63721b232a0145760a06b1461 | [] | no_license | Jiangjao/teaProject | 61e3cab41fab4b1aa8d2b1cfd6c6337c01196497 | 9f14d59d974bf82158a43d19c42b977b393857d2 | refs/heads/master | 2023-08-12T11:38:56.561815 | 2021-10-11T06:30:17 | 2021-10-11T06:30:17 | 347,795,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | from django.db import models
class Chemistry(models.Model):
cid = models.IntegerField(blank=True, null=True)
structure = models.CharField(max_length=255, blank=True, null=True)
molecularformula = models.CharField(primary_key=True, max_length=255)
molecularweight = models.CharField(max_length=255, blan... | [
"918718278@qq.com"
] | 918718278@qq.com |
b246744037954e4d56a3d62e35f360a31c14f200 | 787022de03a2dd6998c1518673830395b389e3df | /migration/migrator/migrations/system/20190708143708_add_submitty_admin_json.py | bbd3ab8fcc84b2fbfb1be63377cd4a2f875ea629 | [
"BSD-3-Clause",
"MIT"
] | permissive | Submitty/Submitty | e6b8731656291a025aa77f928eb067bc9a307540 | b223d9e952bcdb8664721a55593bc75e0e3c8c4f | refs/heads/main | 2023-08-31T23:56:11.291752 | 2023-08-31T19:12:18 | 2023-08-31T19:12:18 | 16,236,118 | 592 | 727 | BSD-3-Clause | 2023-09-13T05:36:08 | 2014-01-25T17:43:57 | PHP | UTF-8 | Python | false | false | 715 | py | """
Migration for the Submitty system.
adds submitty admin json
"""
from pathlib import Path
import shutil
import json
import os
def up(config):
submitty_admin_filename = str(Path(config.submitty['submitty_install_dir'], 'config', 'submitty_admin.json'))
if not os.path.isfile(submitty_admin_filename):
... | [
"bmcutler@users.noreply.github.com"
] | bmcutler@users.noreply.github.com |
e11c58e1dcc7848596649d5524206b7ba632f80d | a732c1380c8dc829df5ba57b67456a9b603b0cf4 | /model.py | b9386587de7cded1f73f81a5ce43913598a42395 | [] | no_license | ilkaynazli/job-search-planner | 1266433ce6bb8c249c65dfcdb1d01e4a8d97095d | 6ac5f3c82de1c33d564eea627468e54c99daf968 | refs/heads/master | 2020-04-15T07:59:26.225728 | 2019-01-19T05:16:40 | 2019-01-19T05:16:40 | 164,510,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,025 | py | """
the database model of job search planner web app
"""
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
"""Import SQLAlchemy object from flask_sqlalchemy library and make the
connection to PostgreSQL"""
db = SQLAlchemy() #create an instance of SQLAlchemy object
class User(db.Mode... | [
"ilkayncelik@gmail.com"
] | ilkayncelik@gmail.com |
ba9793454b72cf6087c048cea652467469da0dc2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_vagrant.py | 25425a414477258cae648761022543eca0a49624 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py |
#calss header
class _VAGRANT():
def __init__(self,):
self.name = "VAGRANT"
self.definitions = [u'a person who is poor and does not have a home or job: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
retur... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9bc4cb5d38e560f98cf8e7fd5812eddb7adfb613 | b6c09a1b87074d6e58884211ce24df8ec354da5c | /1637. 两点之间不包含任何点的最宽垂直面积.py | ca285a4325e0ec01f5b84e4b3523ea887d7501c8 | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
给你 n 个二维平面上的点 points ,其中 points[i] = [xi, yi] ,请你返回两点之间内部不包含任何点的 最宽垂直面积 的宽度。
垂直面积 的定义是固定宽度,而 y 轴上无限延伸的一块区域(也就是高度为无穷大)。 最宽垂直面积 为宽度最大的一个垂直面积。
请注意,垂直区域 边上 的点 不在 区域内。
"""
def maxWidthOfVerticalArea(points):
points.sort()
res = 0
n = len(points)
for i in range(1, n):
# print(points[i][0])
... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
ade449d196c2f24f481058c91a30d29132d82299 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_service_reference.py | 819f741043d5bbd68d7c07a9e9013f4996efcf56 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
c1fe45b3e7445a6563381aa858ccbee35fc7fb33 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/programming/languages/perl/XML-SAX/actions.py | 5573fe066768c8ff99b6aad789159fe54b90d0fb | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import pisitools
from pisi.actionsapi import perlmodules
def setup():
perlmodules.configure()
def build()... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
9cb597f1e7850ac04cafc87043fdb422489ce144 | 335944885d937316236102a80f76a696b48b51e1 | /scripts/segmentation_pipeline/lifted_features.py | d07d668c6b6cd5f4aa9b74a9dc94ef84ed3125cd | [
"MIT"
] | permissive | chaubold/nifty | b33153c3ba2dd7907c1f365b76a31471f9313581 | c351624a7f14278eb241fb730f44bdd275563dec | refs/heads/master | 2021-01-11T17:43:23.443748 | 2017-01-22T12:48:21 | 2017-01-22T12:48:21 | 79,821,703 | 0 | 3 | null | 2017-12-22T10:47:30 | 2017-01-23T16:16:55 | C++ | UTF-8 | Python | false | false | 7,996 | py | import vigra
import nifty
import nifty.graph
import nifty.graph.rag
import nifty.graph.agglo
import numpy
import h5py
import sys
nrag = nifty.graph.rag
nagglo = nifty.graph.agglo
from reraise import *
from tools import *
@reraise_with_stack
def multicutFromLocalProbs(raw, rag, localProbs, liftedEdges):
u = ... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
b5b422227dabc1bfe8fc6b9334c87ba02f816f48 | 5abdbe26ad89d50761e505d02c35ea184d79f712 | /users/views.py | a97471d6b3ea8fef81e3388ad3b5f6e8a24fd6db | [] | no_license | liyongjun-brayan/xuexi | 5c00abaeadb46caa4a63fdcd316fabd2d1ebdb15 | b5356a5115b34dc1d5f627215aef780d7d5a0693 | refs/heads/master | 2021-06-25T10:25:12.602434 | 2019-08-27T02:27:23 | 2019-08-27T02:27:23 | 204,632,981 | 1 | 0 | null | 2021-06-10T21:54:15 | 2019-08-27T06:16:39 | Python | UTF-8 | Python | false | false | 1,128 | py | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
def logout_view(request):
"""注销用户"""
logou... | [
"johndoe@example.com"
] | johndoe@example.com |
823fbcd52596c818081a713b22fef9460caaa729 | 0abcbbac1efc95877f159c65d6f898e749b1bf09 | /MyMusicApp/blog/migrations/0002_auto_20190913_2052.py | ccada31f79d7ce09bbd01e6324ea7b32fcd3506e | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL",
"LicenseRef-scancod... | permissive | kells4real/MusicApp | 5055e465b46c39e0687c98b7a8adbb2203ac9156 | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | refs/heads/master | 2022-10-07T15:49:38.406106 | 2019-10-24T19:55:52 | 2019-10-24T19:55:52 | 197,428,434 | 0 | 1 | MIT | 2022-10-02T02:23:26 | 2019-07-17T16:48:16 | Python | UTF-8 | Python | false | false | 637 | py | # Generated by Django 2.2.2 on 2019-09-13 19:52
import blog.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
... | [
"kells4real@gmail.com"
] | kells4real@gmail.com |
ef65cb5846d5c0c185b517fe86785d6f5e79bb80 | 84290c584128de3e872e66dc99b5b407a7a4612f | /Writing Functions in Python/More on Decorators/Print the return type.py | 5e5dcd69342c2f3687cdaafabdcedb9d3637648a | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | def print_return_type(func):
# Define wrapper(), the decorated function
def wrapper(*args, **kwargs):
# Call the function being decorated
result = func(*args, **kwargs)
print('{}() returned type {}'.format(
func.__name__, type(result)
))
return result
# R... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
672ab02fe434eb1a41749a43cc63853910b29c5f | a19275ff09caf880e135bce76dc7a0107ec0369e | /catkin_ws/src/robot_python/nodes/send_single_cmd_gaebo_node.py | 0e95c32d3222631780ea123c1986f759e3d06a86 | [] | no_license | xtyzhen/Multi_arm_robot | e201c898a86406c1b1deb82326bb2157d5b28975 | 15daf1a80c781c1c929ba063d779c0928a24b117 | refs/heads/master | 2023-03-21T14:00:24.128957 | 2021-03-10T12:04:36 | 2021-03-10T12:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
#本文档用于发送关节角度
#程序员:陈永厅
#版权:哈尔滨工业大学
#日期:初稿:2019.11.6
import rospy
from std_msgs.msg import Float64MultiArray
from std_msgs.msg import Float64
import os
import numpy as np
from robot_python import FileOpen
def talker():
#建立节点
pub1 = rospy.Publisher("armc/joint1_effort_... | [
"qyz146006@163.com"
] | qyz146006@163.com |
ff78462a33b2ecb3dd40c291fb4d19cfd65795d3 | 50639b8c539b9d69539f9b9016527f831cee213d | /LC/LC17-LetterCombinationsOfPhoneNumber.py | 2031ec7bbc8fc07ceae9ae08c38a89b1b4edec00 | [] | no_license | yaelBrown/pythonSandbox | fe216b2c17d66b6dde22dd45fe2a91f1315f2db4 | abac8cabeb7a2b4fbbe1fc8655f7f52a182eaabe | refs/heads/master | 2023-08-10T09:42:26.249444 | 2023-08-03T21:54:37 | 2023-08-03T21:54:37 | 194,980,832 | 0 | 1 | null | 2023-05-02T18:01:41 | 2019-07-03T04:42:16 | Jupyter Notebook | UTF-8 | Python | false | false | 800 | py | """
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
A mapping of digits to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters.
"""
class Solution:
def let... | [
"yaelrbrown@gmail.com"
] | yaelrbrown@gmail.com |
60c2e8e9ff8c5b9bd21b22fa945733c893bb0522 | 3e0e674e07e757dfb23e18ba30dbb440c0966848 | /树二.py | d983ceabbf739253db8b0bd723fcaccfa61ffb57 | [] | no_license | Jasonmes/Algorithm--Advanced | 0bfaa844127ff146997d2dd19b4943be29467fad | 3f29b07b6d55197c5d21f44a474f6e96021cd5b0 | refs/heads/master | 2020-03-27T12:34:49.537881 | 2018-08-29T06:26:38 | 2018-08-29T06:26:38 | 146,554,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Jason Mess
Tree = [['a', 'b'], ['c'], ['b', ['e', 'f']]]
print(Tree[0][1])
print(Tree[2][1][0])
| [
"wow336@163.com"
] | wow336@163.com |
6ddae08c21df8c42e44f5e6d4404af25f79849a0 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/64_2.py | 5b45ab1e95ee997b47876fb571f3e9db42c2eeed | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | Python program to print Calendar without calendar or datetime module
Given the month and year. The task is to show the calendar of that month and
in the given year without using any module or pre-defined functions.
**Examples:**
**Input :**
mm(1-12) :9
yy :2010
... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
243b00fb792df0d908725a77d369f7a886e958ca | 7319bdc1aa1edd9e37424da47264882753dda919 | /monitor_nomina.py | fde617e7fa6aa3fb079d6c0dc9c7e6ee000411ae | [] | no_license | njmube/satconnect | 4ff81ac132811d2784d82a872be34590f53021db | de421f546a6f7f4cc5f247d1b2ba91ac272bdcb9 | refs/heads/master | 2023-03-18T12:58:18.379008 | 2017-10-24T07:14:05 | 2017-10-24T07:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # -*- coding: utf-8 -*-
from LibTools.filesystem import Carpeta
from slaves import SentinelNomina
import settings
if __name__ == '__main__':
carpeta = Carpeta(settings.folder_nomina)
sentinela = SentinelNomina(carpeta)
sentinela.start_Monitoring()
| [
"="
] | = |
7091475a03d37a18e9d953f65307c93e950ce3ad | fee71dd79c16f8e4aa4be46aa25863a3e8539a51 | /ear/core/bs2051.py | 058eefc981611aa995294b0783b491c5ba08e367 | [
"BSD-3-Clause-Clear"
] | permissive | ebu/ebu_adm_renderer | d004ed857b3004c9de336426f402654779a0eaf8 | ef2189021203101eab323e1eccdd2527b32a5024 | refs/heads/master | 2023-08-09T09:13:06.626698 | 2022-12-07T12:22:39 | 2022-12-07T12:22:39 | 123,921,945 | 61 | 13 | BSD-3-Clause-Clear | 2023-08-30T17:17:05 | 2018-03-05T13:15:36 | Python | UTF-8 | Python | false | false | 1,791 | py | import pkg_resources
from ..compatibility import load_yaml
from .geom import PolarPosition
from .layout import Channel, Layout
def _dict_to_channel(d):
position = PolarPosition(azimuth=d["position"]["az"],
elevation=d["position"]["el"],
distance=1.0)
... | [
"tom@tomn.co.uk"
] | tom@tomn.co.uk |
bb98f35adc8e0f2ec79f4ea7a0b2314a9ec8bec0 | 0a85e9ecb51c89110794aeb399fc3ccc0bff8c43 | /InterviewCake/Practice Problems/reverse_string_inPlace.py | 482b60e1d1415f53519182dd35b2f0e7cd6af001 | [] | no_license | jordan-carson/Data_Structures_Algos | 6d246cd187e3c3e36763f1eedc535ae1b95c0b18 | 452bb766607963e5ab9e39a354a24ebb26ebaaf5 | refs/heads/master | 2020-12-02T23:19:11.315890 | 2020-09-15T01:23:29 | 2020-09-15T01:23:29 | 231,147,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py |
STRING = ['a', 'b', 'c', 'd']
def reverse_string(string_list):
left_index = 0
right_index = len(string_list) - 1
while left_index < right_index:
string_list[left_index], string_list[right_index] = \
string_list[right_index], string_list[left_index]
left_index += 1
r... | [
"jordanlouiscarson@gmail.com"
] | jordanlouiscarson@gmail.com |
7b35ac2384529e8bb902194f56b1d0d824520edc | 016109b9f052ffd037e9b21fa386b36089b05813 | /hashP4.py | 559f024f058f63f9e587e9c5a8b7a38c51b5ec47 | [] | no_license | nsshayan/DataStructuresAndAlgorithms | 9194508c5227c5c8c60b9950917a4ea8da8bbab2 | 2f7ee1bc8f4b53c35d1cce62e898a9695d99540a | refs/heads/master | 2022-09-29T21:15:33.803558 | 2022-09-08T17:14:59 | 2022-09-08T17:14:59 | 73,257,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | A,k = map(int,raw_input().rstrip().split(" "))
nos = map(int,raw_input().rstrip().split(" "))
hashMap = [0 for y in range(1000002)]
for i in range(A):
hashMap[nos[i]] += 1
left = 0
right = 1000001
flag = 0
while left < right:
if hashMap[left] == 0 or hashMap[right]==0:
while hashMap[left]==0:
... | [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
2d04eb4a6d7119cd114da0714ffeaa23551be0a1 | ad5ad404d24f1ef195d069b2e9d36b1a22cfd25d | /kde/applications/kiten/kiten.py | 68d4236f5c283e083b03af733ec7b7b92ed78a0d | [
"BSD-2-Clause"
] | permissive | arruor/craft-blueprints-kde | 6643941c87afd09f20dd54635022d8ceab95e317 | e7e2bef76d8efbc9c4b84411aa1e1863ac8633c1 | refs/heads/master | 2020-03-22T17:54:38.445587 | 2018-07-10T11:47:21 | 2018-07-10T11:47:21 | 140,423,580 | 0 | 0 | null | 2018-07-10T11:43:08 | 2018-07-10T11:43:07 | null | UTF-8 | Python | false | false | 1,228 | py | import info
class subinfo(info.infoclass):
def setTargets(self):
self.versionInfo.setDefaultValues()
self.description = "Kiten"
def setDependencies(self):
self.runtimeDependencies["virtual/base"] = "default"
self.buildDependencies["kde/frameworks/extra-cmake-modules"] = "defa... | [
"vonreth@kde.org"
] | vonreth@kde.org |
7c5e77e8e8708914b94c95c7da9fc3574ad25c8c | a14795a79fd8f39cede7fa5eb86f9717b5c289c2 | /backend/course/api/v1/serializers.py | 977b3866deffb183b0133225485e9b022f8b7e3e | [] | no_license | crowdbotics-apps/dearfuturescientist-21123 | fcdbe95a9cd9e8713198b6accbeeb56aa5b0b2d4 | 5b282411ebaf39580b938f6678afc8a36e34aba4 | refs/heads/master | 2022-12-30T20:23:25.888830 | 2020-10-05T19:00:56 | 2020-10-05T19:00:56 | 301,510,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | from rest_framework import serializers
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
class LessonSerializer(serializers.ModelSerializer):
class Meta:
model = Le... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
263ca80ed3ebdcc465692fef40cd71b494ac004c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03807/s835726532.py | c603899438bd501bb5871b424daa8724dfe35dfc | [] | 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 | 164 | py | N = int(input())
a = list(map(int,input().split()))
odd = 0
for i in range(N):
if a[i] % 2:
odd += 1
if odd % 2:
print('NO')
else:
print('YES') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fcb2745a3b28acb9bdab55a49b61a805e5d2198f | 55493112595d303d39b90ca9112e1d0a52f435e4 | /WorkforceManagement/views/Computer_View.py | 4fc447fa4d1e6adaa0a611f92c7069d1ab909d56 | [] | no_license | NSS-Spontaneous-Spoonbills/Sprint2 | a06c2ea08dbe58289984591b5ef412242924f86f | 7fd603ee531556b32b100c5a9f109b0e9207f369 | refs/heads/master | 2020-03-25T11:38:55.449223 | 2018-08-13T21:00:35 | 2018-08-13T21:00:35 | 143,741,505 | 0 | 1 | null | 2018-08-13T21:26:08 | 2018-08-06T14:38:30 | Python | UTF-8 | Python | false | false | 1,944 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from WorkforceManagement.models import Computer
from WorkforceManagement.forms import *
def Computer_List_View(request):
"""Displays all computers in the database
Author: Erin Meaker
"""
computers = Comp... | [
"erinmeaker@gmail.com"
] | erinmeaker@gmail.com |
0f20818aacacd277b492468e80b7128771cc7584 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/1704.py | 2ef79a2cad74434c186149c67d373ceeab96e152 | [] | 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 | 837 | py | def areRecycled(number1, number2):
recycled = False
numero1 = number1
for i in range(len(number2)):
numero1.insert(0,numero1.pop())
if numero1 == number2:
return True
return False
archi = open("C-small-attempt2.in","r")
cant = open("output.dat","w")
cases = int(archi.r... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4d7ab7bfcefd8572eb06e3978ebf7097d6c4a4f4 | 232fc2c14942d3e7e28877b502841e6f88696c1a | /dizoo/multiagent_particle/config/cooperative_navigation_collaq_config.py | 59f41109f0f514f61ca8866df2a01ca581003b23 | [
"Apache-2.0"
] | permissive | shengxuesun/DI-engine | ebf84221b115b38b4b3fdf3079c66fe81d42d0f7 | eb483fa6e46602d58c8e7d2ca1e566adca28e703 | refs/heads/main | 2023-06-14T23:27:06.606334 | 2021-07-12T12:36:18 | 2021-07-12T12:36:18 | 385,454,483 | 1 | 0 | Apache-2.0 | 2021-07-13T02:56:27 | 2021-07-13T02:56:27 | null | UTF-8 | Python | false | false | 2,129 | py | from easydict import EasyDict
n_agent = 5
num_landmarks = n_agent
collector_env_num = 4
evaluator_env_num = 2
cooperative_navigation_collaq_config = dict(
env=dict(
n_agent=n_agent,
num_landmarks=num_landmarks,
max_step=100,
collector_env_num=collector_env_num,
evaluator_env... | [
"niuyazhe@sensetime.com"
] | niuyazhe@sensetime.com |
984769b8bfd917b7f3a450664dda8ca833caabdc | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /components/safe_browsing/content/web_ui/DEPS | c4dfe28ac40a5b9fd60086f5f0bb2d45f1b6d99f | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 409 | include_rules = [
"+components/enterprise/common/proto/connectors.pb.h",
"+components/grit/components_resources.h",
"+components/password_manager/core/browser/hash_password_manager.h",
"+components/user_prefs",
"+components/safe_browsing/core/proto/csd.pb.h",
"+components/strings/grit/components_strings.h",... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
699b7062a1c9a0e705a481a5c8cf42e5a18dc7f6 | ef20884169d10ec9ac4d1d3b77ee35245d248294 | /practice/first_step_with_tensorflow/kmean_create_data.py | b95cc97c8c9d36f85fbdcbe9af721f29fd09ec7d | [] | no_license | heaven324/Deeplearning | 64016671879cdf1742eff6f374cfb640cfc708ae | a7a8d590fa13f53348f83f8c808538affbc7b3e8 | refs/heads/master | 2023-05-05T08:54:27.888155 | 2021-05-22T08:25:47 | 2021-05-22T08:25:47 | 188,010,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import numpy as np
num_points = 2000
vectors_set = []
for i in range(num_points):
if np.random.random() > 0.5:
vectors_set.append([np.random.normal(0.0, 0.9), np.random.normal(0.0, 0.9)])
else:
vectors_set.append([np.random.normal(3.0, 0.5), np.random.normal(1.0, 0.5)])
# 난수 생성 확인
#print(vect... | [
"wjdtjdgh2005@gmail.com"
] | wjdtjdgh2005@gmail.com |
83c63b60c22628725f344b1bf4635e30bbf5aae9 | 577fd6f5ce00ba4b530937e84f3b426b30cd9d08 | /Checkiolearn/Polygon/sun_angle.py | ecd226f204d9bf718eb6cd5d5451c14c7f50b0f1 | [] | no_license | YxiangJ/Python | 33e2d0d4c26ce35ccd3504b73de15e45adb6946c | bcb1a0ace39fbcbe868a341652085c0ddf307c17 | refs/heads/master | 2018-09-24T08:24:13.692535 | 2018-06-07T01:11:00 | 2018-06-07T01:11:00 | 126,120,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def sun_angle(time):
# replace this for solution
l = time.split(':')
result = (int(l[0]) - 6) * 15 + int(l[1]) / 4
if int(l[0]) > 18 or int(l[0]) < 6:
return "I don't see the sun!"
else:
return result
if __name__ == '__main__':
print("Example:")
print(sun_angle("07:00"))
... | [
"284953505@qq.com"
] | 284953505@qq.com |
c14d81b13ff0bfca027e09587f8f586914771894 | 8051c715e86095c1a0f2d6dcee78150417562d00 | /app/api/response_api.py | 8ea2f772957ae7aa5d8b6a8b84bed6bcac25e956 | [
"BSD-3-Clause"
] | permissive | minkione/Apfell | 45bd47249afa59389ab8237558c52d3f083cae29 | 096b6524c44b0673f11d18bd2388193d074380d6 | refs/heads/master | 2020-03-28T12:22:37.741190 | 2018-09-10T02:42:06 | 2018-09-10T02:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | from app import apfell, db_objects
from sanic.response import json
from app.database_models.model import Task, Response
import base64
from sanic_jwt.decorators import protected, inject_user
from app.api.file_api import create_filemeta_in_database_func, download_file_to_database_func
import json as js
# This gets all ... | [
"codybthomas@gmail.com"
] | codybthomas@gmail.com |
e3e25ce23370e068912110921559d559bca593e6 | 1a5c27bc6e2d39a258dd517d2dc3570c13e42a70 | /flaskext/utils.py | ff2d1dcf02a01b52fcfe2121292f09a4dde4989a | [
"MIT"
] | permissive | fumingshih/flask-peewee | 0f8e169ca7ab2d7ab437a5620a2ff2f082d668dd | 4f44ec5583abba5099880a2a2af76404223a594b | refs/heads/master | 2021-01-18T11:00:19.120283 | 2011-11-09T14:36:02 | 2011-11-09T14:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | import math
import random
import re
import sys
from hashlib import sha1
from flask import abort, request, render_template
from peewee import Model, DoesNotExist, SelectQuery
def get_object_or_404(query_or_model, **query):
try:
return query_or_model.get(**query)
except DoesNotExist:
abort(404)... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
ba897465ddc7bea4ef33e45bb292ec6dcdea5381 | 392495a85f77e72e7c3562576aa362d7860c17ee | /backend/setup.py | 244a73c8d40ebb0836da93cb7d08757fdc76199d | [] | no_license | messa/aiohttp-nextjs-graphql-demo-forum | ef51c26720a6f67a36f08d5caeba4e2d9bef0332 | 38fb66d011faec881b184e132aa7347517ee99e6 | refs/heads/master | 2020-04-16T22:38:08.171305 | 2019-02-04T02:18:35 | 2019-02-04T02:18:35 | 165,976,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='forum-backend',
version='0.0.1',
packages=find_packages(exclude=['doc', 'tests*']),
install_requires=[
'aiohttp',
'aiohttp-graphql',
'pyyaml',
],
entry_points={
'console_scripts': [
... | [
"petr.messner@gmail.com"
] | petr.messner@gmail.com |
410aa5e90d452ce0c150cc25c78df4ee555a14c6 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc094/arc095_a/7981214.py | 7f6c3dcab7bd1fb3884adf64c039c5841bf608cf | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | N=int(input())
a=list(map(int,input().split()))
b=sorted(a)
ans=[b[N//2],b[(N//2) -1]]
for i in range(N):
if a[i] >= ans[0]:
print(ans[1])
else:
print(ans[0])
| [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
63bd83adcb7f9700378098678b26a5b39b3d7a86 | 719853613b5b96f02072be1fde736d883e799f02 | /server/intrinsic/management/commands/intrinsic_import_ec2.py | a6bd9aeef70b6ccd8ad1fe6dbb896cfbc53d5e39 | [
"MIT",
"CC-BY-2.0"
] | permissive | anmolkabra/opensurfaces | 5ba442123586533a93eb29890fa1694e3efdbfe8 | a42420083a777d7e1906506cc218f681c5cd145b | refs/heads/master | 2020-03-20T01:11:05.182880 | 2018-06-13T14:55:45 | 2018-06-13T14:55:45 | 137,068,945 | 0 | 0 | MIT | 2018-06-12T12:32:53 | 2018-06-12T12:32:52 | null | UTF-8 | Python | false | false | 1,615 | py | import glob
import time
import timeit
from django.core.management.base import BaseCommand
from intrinsic.tasks import import_ec2_task
class Command(BaseCommand):
args = ''
help = 'Import image algorithms run on ec2'
def handle(self, *args, **options):
indir = '/vol/completed-tasks'
sched... | [
"sbell@cs.cornell.edu"
] | sbell@cs.cornell.edu |
7c0088fc02afdb9058cbb4fdf743efb97e73fad2 | f76f83dcdfdbfe254ab67e26b244475d2e810819 | /conttudoweb/inventory/migrations/0016_auto_20200723_1607.py | 3116c549689509a9211c9601d3096006c7d686c2 | [] | no_license | ConTTudOweb/ConTTudOwebProject | fda13ece406e1904d6efe4c3ceebd30e3d168eae | 18c3b8da1f65714eb01a420a0dbfb5305b9461f3 | refs/heads/master | 2022-12-14T22:05:00.243429 | 2021-03-15T23:32:41 | 2021-03-15T23:32:41 | 138,349,067 | 1 | 3 | null | 2022-12-08T07:49:21 | 2018-06-22T21:19:03 | Python | UTF-8 | Python | false | false | 436 | py | # Generated by Django 3.0.8 on 2020-07-23 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0015_auto_20200723_1600'),
]
operations = [
migrations.AlterField(
model_name='product',
name='descript... | [
"sandrofolk@hotmail.com"
] | sandrofolk@hotmail.com |
1b78135398abeca244e835d6de11727d963c8134 | 49ee49ee34fa518b0df934081f5ea44a0faa3451 | /study-crow-framework/crow/examples/example_test.py | d252df0b805e995dadd5e2d37ab2bed1e000c5f6 | [
"BSD-3-Clause",
"MIT",
"ISC"
] | permissive | kingsamchen/Eureka | a9458fcc7d955910bf2cefad3a1561cec3559702 | e38774cab5cf757ed858547780a8582951f117b4 | refs/heads/master | 2023-09-01T11:32:35.575951 | 2023-08-27T15:21:42 | 2023-08-27T15:22:31 | 42,903,588 | 28 | 16 | MIT | 2023-09-09T07:33:29 | 2015-09-22T01:27:05 | C++ | UTF-8 | Python | false | false | 1,401 | py | import urllib
assert "Hello World!" == urllib.urlopen('http://localhost:18080').read()
assert "About Crow example." == urllib.urlopen('http://localhost:18080/about').read()
assert 404 == urllib.urlopen('http://localhost:18080/list').getcode()
assert "3 bottles of beer!" == urllib.urlopen('http://localhost:18080/hello... | [
"kingsamchen@gmail.com"
] | kingsamchen@gmail.com |
152e6de373d3950907e1041d754d5e444fc78569 | c71e5115b895065d2abe4120799ffc28fa729086 | /procon-archive/atcoder.jp/abc129/abc129_c/Main.py | 7e58a42e6fbe088cfc45aa4987d551c677b95895 | [] | no_license | ken0105/competitive-programming | eb82f92a7b7ad0db601ea341c1441de6c6165064 | f918f85a0ea6dfbe9cac3ef835f80503bb16a75d | refs/heads/master | 2023-06-05T09:55:25.264731 | 2021-06-29T14:38:20 | 2021-06-29T14:38:20 | 328,328,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from bisect import bisect, bisect_right, bisect_left
if __name__ == "__main__":
n,m = map(int,input().split())
a = set()
for i in range(m):
a.add(int(input()))
dp = [0] * (n + 1)
dp[0] = 1
for i in range(1,n+1):
if i not in a and i >= 2:
dp[i] = (dp[i-1] + dp[i-2])
... | [
"iwata.kenaaa@gmail.com"
] | iwata.kenaaa@gmail.com |
8fb3f79b350977c88931c3266b2db486922dcec9 | ffad717edc7ab2c25d5397d46e3fcd3975ec845f | /Python/pyesri/ANSWERS/countwords.py | 3cb94d4482bdf35763fd40b40028fc5136cad2d1 | [] | no_license | shaunakv1/esri-developer-conference-2015-training | 2f74caea97aa6333aa38fb29183e12a802bd8f90 | 68b0a19aac0f9755202ef4354ad629ebd8fde6ba | refs/heads/master | 2021-01-01T20:35:48.543254 | 2015-03-09T22:13:14 | 2015-03-09T22:13:14 | 31,855,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python
import sys
if len(sys.argv) < 3:
print "Syntax: countwords.py PATTERN FILE ..."
sys.exit()
pattern = sys.argv[1]
for fname in sys.argv[2:]:
count = 0
with open(fname) as f:
for line in f:
if pattern in line:
count += 1
print ... | [
"shaunakv1@gmail.com"
] | shaunakv1@gmail.com |
2c14b342ece31335f536bac793332b879a2c8b94 | 7f54637e347e5773dfbfded7b46b58b50544cfe5 | /8-1/chainxy/settings.py | 0f222740778cd9f63c7bbb6304924cd66e17b44f | [] | no_license | simba999/all-scrapy | 5cc26fd92b1d03366b74d4fff58c4a0641c85609 | d48aeb3c00fa2474153fbc8d131cf58402976e1d | refs/heads/master | 2021-01-25T14:24:04.715550 | 2018-03-03T13:43:13 | 2018-03-03T13:43:13 | 123,695,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | # -*- coding: utf-8 -*-
# Scrapy settings for chainxy project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/e... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
58e695680127bb42f2f78903fc84e26e9f79b012 | 7822e658e88f3f948732e6e3e588ca4b2eb5662a | /guias/2012-2/octubre-17/torneos.py | 3cc64246b4e91ed046f843aea8d045bff0ea5db2 | [] | no_license | carlos2020Lp/progra-utfsm | 632b910e96c17b9f9bb3d28329e70de8aff64570 | a0231d62837c54d4eb8bbf00bb1b84484efc1af2 | refs/heads/master | 2021-05-28T06:00:35.711630 | 2015-02-05T02:19:18 | 2015-02-05T02:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | def contar_partidos(partidos):
return len(partidos)
def obtener_equipos(partidos):
equipos = set()
for local, visita in partidos:
equipos.add(local)
equipos.add(visita)
equipos = list(equipos)
equipos.sort()
return equipos
def obtener_fechas(partidos):
fechas = set()
fo... | [
"rbonvall@gmail.com"
] | rbonvall@gmail.com |
958bffbcef5c0c35574ec6229d4eb3360c9cde5e | 9d9fcf401bb47ccaaa6c3fd3fe7a8be255762855 | /libs/numpy/sort/argsort.py | 2725c26fb628d43f78413d5fa7ac417f25fcd07d | [] | no_license | hanhiver/PythonBasic | f05ef9fe713f69610860c63e5223317decee09ad | 8e012855cce61fb53437758021416e5f6deb02ea | refs/heads/master | 2022-10-11T22:57:47.931313 | 2020-12-30T12:32:44 | 2020-12-30T12:32:44 | 148,477,052 | 0 | 3 | null | 2022-10-01T05:35:03 | 2018-09-12T12:29:33 | Python | UTF-8 | Python | false | false | 187 | py | import numpy as np
a = np.random.randint(0, 10, (4, 5))
print(a, '\n')
index = np.argsort(a, axis=0)
print(index, '\n')
index_3 = index[..., 3]
print(index_3, '\n')
print(a[index_3]) | [
"handongfr@163.com"
] | handongfr@163.com |
385dc29e8a96a82daa9709d0c22d2c368662202c | be0d83dde6b499b60f36c14c961a125581f36a57 | /preprocess_files/mv_img.py | 592114d7036909b48ede59be9b6dcca5df06b54f | [] | no_license | zhengziqiang/gan_learning | 4acaf18f452fed0e2eeb0ddb45d861e9d10af835 | d9ffb1c18e592715b62df684e23a362f8d07ac41 | refs/heads/master | 2021-01-01T13:35:28.696378 | 2017-10-29T13:42:51 | 2017-10-29T13:42:51 | 97,583,619 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import os
import glob
# d={}
# for files in glob.glob('/home/zzq/research/windows_file/IIIT-CFW1.0/tmp/*.jpg'):
# filepath, filename = os.path.split(files)
# # print filename
# l=filename.split('.')
# # print l[0]
# my_namee=filter(str.isalpha, l[0])
# print my_namee
# if d.has_key(my_namee)... | [
"1174986943@qq.com"
] | 1174986943@qq.com |
9813d2f1469dc08e215edac52165f3615023264d | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/AlibabaOpendspAdgroupsAddRequest.py | ecc347df1177f0300f8f99e6b18777f4d00cdb29 | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | '''
Created by auto_sdk on 2015-01-20 12:44:32
'''
from top.api.base import RestApi
class AlibabaOpendspAdgroupsAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
def getapiname(self):
return 'alibaba.opendsp.adgroups.add'
| [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
cf634701ce51fc3cb9c14499ec878f065f7baad4 | 427cb811a465677542172b59f5e5f102e3cafb1a | /python/classes/subClass.py | 2244d735db508c992121644c9b9e179b8a63ef61 | [] | no_license | IzaakWN/CodeSnippets | 1ecc8cc97f18f77a2fbe980f322242c04dacfb89 | 07ad94d9126ea72c1a8ee5b7b2af176c064c8854 | refs/heads/master | 2023-07-26T21:57:10.660979 | 2023-07-20T20:35:59 | 2023-07-20T20:35:59 | 116,404,943 | 18 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # http://www.jesshamrick.com/2011/05/18/an-introduction-to-classes-and-inheritance-in-python/
# https://stackoverflow.com/questions/2843165/python-how-to-inherite-and-override
# http://blog.thedigitalcatonline.com/blog/2014/05/19/method-overriding-in-python/
# https://docs.python.org/2.7/library/functions.html#super
... | [
"iwn_@hotmail.com"
] | iwn_@hotmail.com |
b5f7b40cdab61e773d1bec1c144966fc8c019ad5 | b9878c92b857f73ff0452fc51c822cfc9fa4dc1c | /watson_machine_learning_client/libs/repo/swagger_client/models/connection_object_target_experiments.py | f8548c105d870dc07cfbde41d0896b443cf3f175 | [] | no_license | DavidCastilloAlvarado/WMLC_mod | 35f5d84990c59b623bfdd27369fe7461c500e0a5 | f2673b9c77bd93c0e017831ee4994f6d9789d9a1 | refs/heads/master | 2022-12-08T02:54:31.000267 | 2020-09-02T15:49:21 | 2020-09-02T15:49:21 | 292,322,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in comp... | [
"dcastilloa@uni.pe"
] | dcastilloa@uni.pe |
68740806ca9fdcb8c924b5a4b88a4c98f0efd8d7 | 3b831eedb7afede666088b6e018c829219938a93 | /Grouping_Values.py | d73419177b17ac18330e2f7223561e75e54c044e | [] | no_license | joydas65/GeeksforGeeks | f03ed1aaea88d894f4d8ac0d70f574c4cd78a64b | e58c42cb3c9fe3a87e6683d8e3fda442dc83b45b | refs/heads/master | 2023-01-12T02:19:54.967779 | 2023-01-10T17:28:41 | 2023-01-10T17:28:41 | 161,937,667 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | class Solution:
def isPossible(self, N, arr, K):
# code here
d = dict()
for i in arr:
if i in d:
d[i] += 1
else:
d[i] = 1
for i in d:
... | [
"noreply@github.com"
] | joydas65.noreply@github.com |
bfe6eb6e9734dbfe24074e1964400cdb06a23cc3 | fce1b262820539e8574e5476692096f599ca2b27 | /luffycity_s8/luffy/views/article.py | fecd0d8cf009734ca9798d3523d3afb6d261806e | [] | no_license | iyouyue/green_hand | 9386082a0589ee6e1805aafe189ee38e823c8202 | 7b80e8cc0622e4d8e9d07dde37c72ac7d6e3261c | refs/heads/master | 2020-03-26T14:39:02.224727 | 2018-08-16T14:27:57 | 2018-08-16T14:27:57 | 144,997,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | from rest_framework.views import APIView
from rest_framework.viewsets import GenericViewSet
from rest_framework.response import Response
from rest_framework.renderers import JSONRenderer, BrowsableAPIRenderer
from django.core.exceptions import ObjectDoesNotExist
from luffy import models
from luffy.response.base... | [
"iyouyue@qq.com"
] | iyouyue@qq.com |
16632e1cfd929360e81b6b66540741a40107d618 | 113d9082d153adbccd637da76318b984f249baf5 | /setup.py | b2cce85ef433c74f9b005df1a6e7c62d9261ca91 | [
"BSD-3-Clause"
] | permissive | jorcast18462/django-applepodcast | bebb6f85d4c3ed98c96e6628443ece613898ca32 | 50732acfbe1ca258e5afb44c117a6ac5fa0c1219 | refs/heads/master | 2023-03-21T13:05:08.576831 | 2018-10-06T22:19:12 | 2018-10-06T22:19:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | from __future__ import unicode_literals
import os
from setuptools import find_packages, setup
setup(
name='django-applepodcast',
version='0.3.7',
description='A Django podcast app optimized for Apple Podcasts',
long_description=open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rs... | [
"richardcornish@gmail.com"
] | richardcornish@gmail.com |
a9340662bebfa1cdd1adef79408712eb2e5883fd | 7188e4eca6bb6ba03453e5c1d9e3134e9ef1b588 | /apps/clndr/apps.py | 29d6fb8f53be320b7e1c8a59f9267f426baf18ea | [] | no_license | mitshel/ghc_yapokaju | c85eb2c3cbfd9802f6fac16a6d6192ae85ad2511 | d70b53235223dc935792aac3838678cb1b4d2b2e | refs/heads/master | 2020-05-15T21:50:15.646729 | 2019-04-21T08:48:31 | 2019-04-21T08:48:31 | 182,509,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.apps import AppConfig
class ClndrConfig(AppConfig):
name = 'apps.clndr'
verbose_name = 'The calendar'
def ready(self):
from . import signals
| [
"mitshel@mail.ru"
] | mitshel@mail.ru |
23d6a04e73cb64a8b99b1049956a491e698cfc84 | 86dc81e21f5b9e784dd087666d4d980c34781536 | /udp_bro_send.py | 596343dd578225cf7d1f4e55544f7bb7e2be5825 | [] | no_license | sheltie03/udp_python | 37b4e1f3377979c26e247a020efb958b3dfc28e5 | cb0551fc4026a3baff968e81b758ea4d7d7e5fd6 | refs/heads/master | 2021-07-09T15:37:46.684924 | 2017-10-02T08:06:25 | 2017-10-02T08:06:25 | 105,496,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # -*- coding: utf-8 -*-
import socket
import time
def main():
host = ''
port = 4000
# local_addr = '192.168.10.255'
local_addr = '255.255.255.255'
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.bind((host, port))
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c261a3aa2393582101930b0d509c572623981a2b | 29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68 | /lightly/openapi_generated/swagger_client/models/docker_run_scheduled_priority.py | 8f59946a24631b8670f78eced6e272cd1b4e2588 | [
"MIT"
] | permissive | lightly-ai/lightly | 5b655fe283b7cc2ddf1d7f5bd098603fc1cce627 | 5650ee8d4057139acf8aa10c884d5d5cdc2ccb17 | refs/heads/master | 2023-08-17T11:08:00.135920 | 2023-08-16T12:43:02 | 2023-08-16T12:43:02 | 303,705,119 | 2,473 | 229 | MIT | 2023-09-14T14:47:16 | 2020-10-13T13:02:56 | Python | UTF-8 | Python | false | false | 1,014 | py | # coding: utf-8
"""
Lightly API
Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: ... | [
"noreply@github.com"
] | lightly-ai.noreply@github.com |
2613f41ca4dc3a52d8a9eba8b22d5db1b4f73c1e | 04d9ee05feb6dddf19b9f7653f4dd9e9ce3ee95c | /rbtools/commands/install.py | 03724c98f41a1da2e2262344e0806a96951d6e81 | [
"MIT"
] | permissive | pbwkoswara/rbtools | 2fa44ade1c60b4f076198bb8206a5d624dd40cd2 | 8ea5ff8843d2a3d44056ad4358d75c81a066cf28 | refs/heads/master | 2021-07-17T22:22:20.906220 | 2017-10-20T22:11:03 | 2017-10-25T17:05:21 | 108,022,324 | 0 | 0 | null | 2017-10-23T18:26:30 | 2017-10-23T18:26:30 | null | UTF-8 | Python | false | false | 7,398 | py | from __future__ import division, print_function, unicode_literals
import hashlib
import logging
import os
import shutil
import tempfile
import zipfile
import tqdm
from six.moves.urllib.error import HTTPError, URLError
from six.moves.urllib.request import urlopen
from rbtools.commands import Command, CommandError
fro... | [
"trowbrds@gmail.com"
] | trowbrds@gmail.com |
9117f9f2cce95c3f9c960a40127f7cde6384a932 | d21864a26233d32913c44fd87d6f6e67ca9aabd8 | /prosodic/lib/Phoneme.py | 876171217cb508068e7a472fe4fc487bf116ba6c | [
"MIT"
] | permissive | quadrismegistus/litlab-poetry | 7721a8849667f2130bb6fa6b9f18a7f6beb9912e | 28fff4c73344ed95d19d7e9a14e5a20697599605 | refs/heads/master | 2021-01-23T20:14:05.537155 | 2018-11-19T08:56:55 | 2018-11-19T08:56:55 | 27,054,260 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | from ipa import ipa,ipakey,ipa2cmu,formantd
from entity import entity
class Phoneme(entity):
def __init__(self,phons,ipalookup=True):
self.feats = {}
self.children = [] # should remain empty unless dipthong
self.featpaths={}
self.phon=None
if type(phons)==type([]):
for phon in phons:
if type(phon)... | [
"ryan.heuser@gmail.com"
] | ryan.heuser@gmail.com |
16fa0a4b39d17c4ece50384f657fc65fb6ee0fef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02271/s666225963.py | a1e305d0cdb1bc4f6641e39bb56d1f7301cd5a82 | [] | 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 | 450 | py | # ALDS_5_A - 総当たり
import sys
n = int(input())
A = list(map(int, sys.stdin.readline().strip().split()))
q = int(input())
m = list(map(int, sys.stdin.readline().strip().split()))
sum_set = set()
for i in range(2 ** n):
bit = [(i >> j) & 1 for j in range(n)]
combined = [x * y for (x, y) in zip(A, bit)]
sum... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9db73616056bed06a9c8484c5aea2920e6c7b81e | 421b0ae45f495110daec64ed98c31af525585c2c | /PythonProgramsTraining/graphics/frame1.py | c0c8e6a93f60c197702ad936f518643ad8a67d1b | [] | no_license | Pradeepsuthar/pythonCode | a2c87fb64c79edd11be54c2015f9413ddce246c4 | 14e2b397f69b3fbebde5b3af98898c4ff750c28c | refs/heads/master | 2021-02-18T05:07:40.402466 | 2020-03-05T13:14:15 | 2020-03-05T13:14:15 | 245,163,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import tkinter as tk
from tkinter import messagebox
def area():
'to calculate area'
len = float(tfLen.get())
wid = float(tfWidth.get())
result = len*wid
tfArea.insert(0,result)
# Showing massage box
messagebox.showinfo("Info MAss ", "Area is : "+str(result)+" CM")
# creating a ... | [
"sutharpradeep081@gmail.com"
] | sutharpradeep081@gmail.com |
9cd66536cdc51a43bf901eccb7e2154f2e6368ec | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/numba/cuda/simulator/compiler.py | 5a88a649e47d11efe9887678a7397e77376673b8 | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
The compiler is not implemented in the simulator. This module provides a stub
to allow tests to import successfully.
"""
compile_kernel = None
| [
"jan@multiply.ai"
] | jan@multiply.ai |
a02d45d50426a72b18991c0c25da0082ba9e835f | 1886065d10342822b10063cd908a690fccf03d8b | /appengine/findit/crash/loglinear/changelist_classifier.py | 96277a04aefab650a935aa33a7cf08c3b48f7e7a | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/chromium-infra_A6Y5 | 26af0dee12f89595ebc6a040210c9f62d8ded763 | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | refs/heads/master | 2023-03-16T15:33:31.015840 | 2017-01-31T19:55:59 | 2017-01-31T20:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,932 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from collections import defaultdict
import logging
from common.chrome_dependency_fetcher import ChromeDependencyFetcher
from crash import changelist_classif... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
5e02976a619cb1e6ada32cf79cbd4ed879067ae8 | 4b69b5dd4b1b3cf81b996065831226a243abb332 | /articles/admin.py | 45fafe2207a9eb4a089c73b9557ee149401c8418 | [] | no_license | cui0519/myBlog | d8ebd601ac5bf5a3fe0dc16e2c703cdbaa055ab9 | c0852b6e42bfa93820d330e8f9e547be229344e8 | refs/heads/master | 2023-02-09T06:33:13.641351 | 2021-01-05T00:18:21 | 2021-01-05T00:18:21 | 326,308,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.contrib import admin
from .models import Articles
# Register your models here.
class ArticlesAdmin(admin.ModelAdmin):
list_display = ('title','author','img','abstract','visited','created_at')
<<<<<<< HEAD
search_fields = ('title','author','abstract','content')
=======
search_fields = ('ti... | [
"you@example.com"
] | you@example.com |
c5b193fb983b5e4d663f93a6485499e152a180c1 | e5cf5fd657b28d1c01d8fd954a911d72526e3112 | /tide_teach/tide_time_windows.py | b54f5fcebaccedcc95ffb40b903d76d6c69a1cd4 | [] | no_license | parkermac/ptools | 6b100f13a44ff595de03705a6ebf14a2fdf80291 | a039261cd215fe13557baee322a5cae3e976c9fd | refs/heads/master | 2023-01-09T11:04:16.998228 | 2023-01-02T19:09:18 | 2023-01-02T19:09:18 | 48,205,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | """
Code to plot observed tide time series.
"""
import os
import sys
import pytz
import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import numpy as np
from importlib import reload
import ephem_functions as efun
reload(efun)
import tractive_functions as tfun
reload(tfun)
alp... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
6b1d1fdaa602c7768fb7a668612821ad314b4395 | 52d797a1a9f853f691d2d6fb233434cf9cc9e12b | /Implementation Challenges/Append and Delete.py | 1e2622a5816301cb9b83c0a56d915bdfe4639df0 | [] | no_license | harshildarji/Algorithms-HackerRank | f1c51fedf2be9e6fbac646d54abccb7e66800e22 | 96dab5a76b844e66e68a493331eade91541fd873 | refs/heads/master | 2022-05-21T06:57:59.362926 | 2020-04-19T14:05:19 | 2020-04-19T14:05:19 | 114,212,208 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Append and Delete
# https://www.hackerrank.com/challenges/append-and-delete/problem
s, t = input().strip(), input().strip()
k = int(input().strip())
for i in reversed(range(1, k + 1)):
if s == t[:len(s)] and len(t) - len(s) == i or len(s) == 0:
break
s = s[:-1]
print("Yes" if len(t) - len(s) <= i els... | [
"darjiharshil2994@gmail.com"
] | darjiharshil2994@gmail.com |
c305892b8de9942ba1433b2aa00240da71b7b0bc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCloudCloudbaseHttpaccessBindQueryResponse.py | ebc27653df46ebfce5e7c7e7b22f0e76998f3f54 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.DomainBind import DomainBind
class AlipayCloudCloudbaseHttpaccessBindQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCloudCloudbaseHttpacc... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
b4f391918f30a778d049bd168cb1ca4154c0b42a | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/decorators/addto.py | 979a905e9a18fdcddf2620939aec919f9baa031a | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | __copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
http://www.VyperLogix.com for details
THE AUTHOR VYPER LOGIX CORP DISCLAIMS ... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
7ca223afe5153d45121ca9011ccb886e87b49eb5 | 99fddc8762379bcb707ad53081cd342efa7a5d89 | /test/pinocchio_frame_test.py | fa17c45921833826190201d02cca144b699b6959 | [
"MIT"
] | permissive | zhilinxiong/PyPnC | ef19a4bcc366666d2550466b07cd8ec8f098c0c4 | abf9739c953d19ca57fd4bd37be43415f3d5e4a7 | refs/heads/master | 2023-07-04T19:09:26.115526 | 2021-08-03T04:29:10 | 2021-08-03T04:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import os
import sys
cwd = os.getcwd()
sys.path.append(cwd)
import pinocchio as pin
import numpy as np
urdf_file = cwd + "/robot_model/manipulator/three_link_manipulator.urdf"
model = pin.buildModelFromUrdf(urdf_file)
data = model.createData()
print(model)
q = np.array([np.pi / 2., 0., 0.])
# q = np.zeros(3)
qdot = ... | [
"junhyeokahn91@gmail.com"
] | junhyeokahn91@gmail.com |
2e808d917489faf59e65fb3ab6a7e999316ec019 | 14a853584c0c1c703ffd8176889395e51c25f428 | /sem1/fop/lab5/static/strings.py | 2f47c15c3b3c7d3bd361c700be9a29ee4f30b077 | [] | no_license | harababurel/homework | d0128f76adddbb29ac3d805c235cdedc9af0de71 | 16919f3b144de2d170cd6683d54b54bb95c82df9 | refs/heads/master | 2020-05-21T12:25:29.248857 | 2018-06-03T12:04:45 | 2018-06-03T12:04:45 | 43,573,199 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
Most long messages displayed by the UI will be found here.
"""
from util.Color import bold
STRINGS = {
'helpPrompt':
'Commands:\n' +
'\t%s - displays this prompt.\n' % bold('help') +
'\t%s - adds a new student or assignment.\n' % bold('add') +
'\t%s -... | [
"srg.pscs@gmail.com"
] | srg.pscs@gmail.com |
007da86134bd9cf81656b9de3a4b00e9262caadf | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0983. Minimum Cost For Tickets.py | 67eeee126a10f3fbd09cd9f37ac9a746033d4c3f | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | class Solution:
def mincostTickets(self, days: List[int], costs: List[int]) -> int:
# end = days[-1] + 1
# dp = [0]*end
# for d in range(1,end):
# temp = dp[d-1] + costs[0]
# temp = min(temp,min(dp[max(0,d-7):d])+costs[1])
# temp = min(temp,min(dp[max(0,d-... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.