blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8551023f5f01183f80fdb557850853c81a77e44c | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/217730e8-5cc5-11e4-af55-00155d01fe08.py | b81d80a78c91d769ff51a4be16ff0081d76c7664 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | #!/usr/bin/python
################################################################################
# 217730e8-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
7fdd7581cf6a1a3a28e7f9f029d0cc20a8350163 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayItemOperationContext.py | 5b097ae98cf3dbb8b64e4efe460aa824e04b704e | [
"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,817 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayItemOperationContext(object):
def __init__(self):
self._creator = None
self._op_role = None
self._partner_id = None
@property
def creator(self):
ret... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
fc225f082872effae806c1aba8a0db114f791385 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/mmd_tools/core/pmx/importer.py | e215c42b9dfbdff7c7e563def4a862ed4c8a362b | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,578 | py | # -*- coding: utf-8 -*-
import os
import collections
import logging
import time
import bpy
from mathutils import Vector, Matrix
import mmd_tools.core.model as mmd_model
from mmd_tools import utils
from mmd_tools import bpyutils
from mmd_tools.core import pmx
from mmd_tools.core.bone import FnBone
from mmd_tools.core.... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9c9dcd97c378f6c8bb0f36d9e987e7fa0c8af276 | a7bc152c9d64081685701f6335f242a05d3815b0 | /bcl2fastq/handlers/bcl2fastq_handlers.py | 787d1eac4a72a1f2d4d3846ebdf07300bdafe305 | [
"MIT"
] | permissive | johandahlberg/arteria-bcl2fastq | bee47fea3b284777e855704511881b3fb2bdad9a | 4429503c3d561d1d8f4d9900fb81e8fb5a7ca7ca | refs/heads/master | 2020-04-05T03:22:10.458288 | 2017-11-29T11:42:38 | 2017-11-29T11:42:38 | 41,308,903 | 0 | 0 | null | 2015-08-24T14:47:44 | 2015-08-24T14:47:43 | null | UTF-8 | Python | false | false | 10,071 | py |
import json
import logging
import os
from bcl2fastq.lib.jobrunner import LocalQAdapter
from bcl2fastq.lib.bcl2fastq_utils import BCL2FastqRunnerFactory, Bcl2FastqConfig
from bcl2fastq import __version__ as version
from bcl2fastq.lib.bcl2fastq_logs import Bcl2FastqLogFileProvider
from arteria.exceptions import Arteria... | [
"johan.dahlberg@medsci.uu.se"
] | johan.dahlberg@medsci.uu.se |
5a66fa255751c9f4fc6e588e6a9f799a2f2f4d4c | f531c94f93bd53b3099ad7917a0e6ae2a628e88e | /api/views.py | 4b3fe1f5602fb40e2105ba788277eb845d6d0f18 | [] | no_license | skiboorg/nw_api_ru | 428149b0814de0b670ca682a5d65528a43d496bc | e64faec9d58406ff94ed8340b0cfa09eb4c5eb3c | refs/heads/master | 2023-08-13T12:44:36.928753 | 2021-10-15T08:37:48 | 2021-10-15T08:37:48 | 405,299,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,214 | py | from django.shortcuts import render
import json
from pytils.translit import slugify
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import generics
from .serializers import *
from .models import *
from bs4 import BeautifulSoup
import requests
class GetTexts(g... | [
"d@skib.org"
] | d@skib.org |
a92328fdd5769c5bdffca2f2fd94296defe041f3 | a90d66e3c77eae53eeaf7f503afe5bf815923333 | /pgm4app/tests.py | 35a4763027808c139368ab245e64e473db365ec0 | [] | no_license | C14L/pgm4 | a6e94a194b7bb9520db5387b816c80fce313d677 | 40d1f6f8af8fd27fd30628336eb93bbe5b2faba8 | refs/heads/master | 2020-12-24T07:19:48.989394 | 2016-08-15T14:36:18 | 2016-08-15T14:36:18 | 58,115,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,653 | py | from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.utils.text import slugify
from pgm4app.models import Content, Tag
class Pgm4appTestCase(TestCase):
passwd = 'hunter2'
user1 = {'username': 'user1', 'password': passwd, 'email'... | [
"me@C14L.com"
] | me@C14L.com |
bce6bd1156470b1ba2cbe958ac07b5eade0793ff | 003ffcf8144565404636f3d74590a8d6b10a90a4 | /722-remove-comments/722-remove-comments.py | a42454510528942a0be8a6b49b590cf593ffcde7 | [] | no_license | congve1/leetcode | fb31edf93049e21210d73f7b3e7b9b82057e1d7a | ce1e802b5052da2cdb919d6d7e39eed860e0b61b | refs/heads/master | 2020-05-13T19:19:58.835432 | 2019-05-06T00:44:07 | 2019-05-06T00:44:07 | 181,652,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | class Solution(object):
def removeComments(self, source):
"""
:type source: List[str]
:rtype: List[str]
"""
| [
"congve1@live.com"
] | congve1@live.com |
29f6da566167d6cda74a92b32d2d1d30842ac7d9 | af1f899165d64105244b64ed18e7450241c3310b | /installer.py | 20b60410c6ad0b55ba428d1c0e335515ba7ee243 | [] | no_license | AFlyingCar/Ping-Monitor | 0f1daccb7d400e3a058f98c3919e7c06de2774a3 | 3081baeb78c310d95edeef442c732dab799169d2 | refs/heads/master | 2021-01-18T23:09:15.504695 | 2016-06-28T18:53:11 | 2016-06-28T18:53:11 | 38,146,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import os,sys,getpass,urllib2
try:
import MySQLdb
except ImportError:
print "Installing MySQLdb"
if sys.platform.startswith("linux"):
system("sudo apt-get instal python-MySQLdb")
import MySQLdb
host="localhost"
usr=raw_input("User: ")
pass=getpass.getpass("Password: ")
name="pingmonitor"
print "Creating Datab... | [
"tyler@familyrobbins.com"
] | tyler@familyrobbins.com |
57ff921afb27817490445222548dc92b67ef5746 | f7d2114152ec5c8e283b6bfbb9feeb5a4337eb71 | /ACL054400-python37/samples/CH14/decorators/burgers.py | 5810088a806f0306ebae63d0c6faf6c415617414 | [] | no_license | faustfu/hello_python | f5759ff6bf87694e6ba472349f4263bc8ad479b0 | 1487e60e2d9307e1a0ebffbf26d8e075da806a39 | refs/heads/master | 2021-02-10T18:01:50.450295 | 2020-11-20T02:17:18 | 2020-11-20T02:17:18 | 244,406,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from typing import Callable
PriceFunc = Callable[..., float]
def sidedish1(meal: PriceFunc) -> PriceFunc:
return lambda: meal() + 30
@sidedish1
def friedchicken():
return 49.0
print(friedchicken()) # 顯示 79.0 | [
"faust.fu@gmail.com"
] | faust.fu@gmail.com |
5170f307088df55bf656fc72db8311ac22b0ec5b | 377ce9cab3ba1e79b978988eebddbd2e30a62d42 | /users/views.py | 3e5e84e7938f71bfe66115cd7236e52e431e042a | [] | no_license | MATT143/coreysBlog | e7453c476afd0fab9917de6d1ef936092648168f | 6e16959639c01d6c10863d88f31afca05b45c273 | refs/heads/master | 2022-04-19T16:09:15.119570 | 2020-04-16T11:18:47 | 2020-04-16T11:18:47 | 256,192,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | from django.shortcuts import render,redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from.forms import UserRegisterForm
# Create your views here.
def register(request):
if request.method=='POST':
f... | [
"mnahak@cisco.com"
] | mnahak@cisco.com |
c87b012da1b466fca36873ebd6981c9492c4b83a | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/h5py/tests/hl/test_dataset_getitem.py | fdc4b87b1c7de3cb8160cc021ce78eaf20be438e | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d3de2c37825aa965a7ca0fa3aec0d23160a2c4f9ba6b0e54ff8d1d008334576a
size 15292
| [
"Nqk180998!"
] | Nqk180998! |
e05ced8bc0225f9a07aa6ef8ce71c990c5abb94b | 791f96493c7030f7323cdc30708fc302fa996b89 | /venv/bin/django-admin | f4c2b8fd2c0052728228381f08e1f0f71071e53e | [] | no_license | vsevolodpohvalenko/django_graphene | 066b3478296bd02debcb856f6823ce42f94f4511 | 1a39c6133163e6d61a85303e30154bcab7bb4d2a | refs/heads/master | 2023-06-27T01:10:55.893204 | 2021-07-24T03:44:19 | 2021-07-24T03:44:19 | 388,991,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | #!/home/devvs/Desktop/Django/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"vsevolod.pohvalenko@gmail.com"
] | vsevolod.pohvalenko@gmail.com | |
a427ce0e9c919640c9ba793fbf641bf40f69a0e1 | 69e318f2b60175108bc74ee669bfe16287a71cb6 | /plugins/modules/fortios_spamfilter_dnsbl.py | 135a843b5b49a6ad38472ca52a8c747a1e97a10b | [] | no_license | chillancezen/ansible-galaxy-fortios-collection | 5268a5fd97fb4594772349b8d89cb818ec54b3bd | 66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3 | refs/heads/master | 2022-04-09T19:20:59.073193 | 2020-03-26T07:17:09 | 2020-03-26T07:17:09 | 250,185,374 | 0 | 0 | null | 2020-03-26T07:06:16 | 2020-03-26T07:06:16 | null | UTF-8 | Python | false | false | 11,190 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program 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 Lic... | [
"fshen01@fortinet.com"
] | fshen01@fortinet.com |
5c4309aad5c5ac5275c12fa45073325725778a1c | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/gluon/finetune/level_8_layers_main.py | e16b80162f6a2822d7459fb77226ea8e2b126779 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 150,606 | py | import math
from monk.gluon.finetune.imports import *
from monk.system.imports import *
from monk.gluon.finetune.level_7_aux_main import prototype_aux
class prototype_layers(prototype_aux):
'''
Main class for all layers and activations
- Layers and activations while appending to base network
-... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
3984f82cd5d24b74080df4378623ba42a5366262 | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/96/205e88823a6a00141afa8a8ed49a3dc2 | 26f6d3fc0741f8e2dd34951ad9398f5d04e62489 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 5,465 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This 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, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
12a3f7b2d8366713e4805a5d65cd66f0a9775339 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/pyface/ui/qt4/action/tool_bar_manager.py | 01e215297980ef60db560c6350818c52b9b04a6e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 67 | py | # proxy module
from pyface.ui.qt4.action.tool_bar_manager import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
ac9d17624edd566d3969a9b5dfa65bade16f3762 | f0330854766bfccb419568c8f2c15ab85f1b519e | /dakobed-algorithms/python-algorithms/alrogithms/arrays/house_robber.py | 637e18c8315b1396e7e11e390119054d6ab89704 | [] | no_license | MathiasDarr/Algorithms | a7a64efba127666725c1f6c574075198abe655ef | 9098ca1ba5eab2b8b96360bc3a3b7a71a384444a | refs/heads/master | 2023-01-11T21:55:27.583794 | 2020-11-10T23:43:13 | 2020-11-10T23:43:13 | 309,563,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | class Solution:
def rob(self, nums):
dp = [0] * len(nums)
dp[0] = nums[0]
dp[1] = max(nums[0],nums[1])
for i in range(2,len(nums)):
dp[i] = max(dp[i-1], dp[i-2] + nums[i])
return dp
nums = [1,2,3,1]
solution = Solution()
solution.rob(nums) | [
"mddarr@gmail.com"
] | mddarr@gmail.com |
7d17553e9e34d4ba19c09779dcf50fa0596dc8c9 | 1086ef8bcd54d4417175a4a77e5d63b53a47c8cf | /Forks/uvapy-master/simulation/p11530.py | bace874e7444117c66b344b1d8c5c1bbf7aa2e78 | [
"MIT"
] | permissive | wisdomtohe/CompetitiveProgramming | b883da6380f56af0c2625318deed3529cb0838f6 | a20bfea8a2fd539382a100d843fb91126ab5ad34 | refs/heads/master | 2022-12-18T17:33:48.399350 | 2020-09-25T02:24:41 | 2020-09-25T02:24:41 | 298,446,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | mapping = [
"abc", "def",
"ghi", "jkl", "mno",
"pqrs", "tuv", "wxyz",
" "
]
key_count = {}
for key in mapping:
for i, ch in enumerate(key):
key_count[ch] = i + 1
cases = int(input())
for c in range(cases):
text = input()
count = 0
for ch in text:
count += key_count[ch]
print("Case #{}: {}... | [
"elmanciowisdom@gmail.com"
] | elmanciowisdom@gmail.com |
69231a30112a7c061ecd6863a58543d71e86001b | c7b35f82d69ff993a7f8c6273cc3bcbe65e4184f | /james_process/multi_process_Semaphore.py | c8c7d68b26f0fb8f26b9b3e3954c23b39c6885f8 | [] | no_license | james-hadoop/JamesPython | 0c9015fc50b7100b9e251f56b2c014f9d2d3653e | 848973686b0b00474638083f326d5bd503ca93c8 | refs/heads/master | 2023-08-02T20:49:33.629320 | 2023-08-01T12:41:20 | 2023-08-01T12:41:20 | 98,605,310 | 1 | 0 | null | 2022-05-15T14:40:29 | 2017-07-28T03:41:58 | Jupyter Notebook | UTF-8 | Python | false | false | 485 | py | import multiprocessing
import time
def worker(s, i):
s.acquire()
print(time.strftime('%H:%M:%S'),multiprocessing.current_process().name + " 获得锁运行");
time.sleep(i)
print(time.strftime('%H:%M:%S'),multiprocessing.current_process().name + " 释放锁结束");
s.release()
if __name__ == "__main__":
... | [
"james@JamesUbuntu"
] | james@JamesUbuntu |
1d3dc1cb784690c5bfdde176ec72ad16f4dc48eb | 3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72 | /month04/spider/day03/05_maoyan_xml.py | ff0505d2aa07843c8768a2a82eea3c0fad6f0a86 | [] | no_license | leinian85/year2019 | 30d66b1b209915301273f3c367bea224b1f449a4 | 2f573fa1c410e9db692bce65d445d0543fe39503 | refs/heads/master | 2020-06-21T20:06:34.220046 | 2019-11-04T06:37:02 | 2019-11-04T06:37:02 | 197,541,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | from urllib import request
from fake_useragent import UserAgent
import re
import time
import random
import csv
from lxml import etree
class spider_movie:
movies = []
def __init__(self):
pass
def set_useragent(self):
ua = UserAgent()
self.headers = {"User-Agent":ua.random}
de... | [
"42737521@qq.com"
] | 42737521@qq.com |
12963b1ed9230fee4da0171dce8c4582cd50ca1d | f74119a55ff5d4e89f5b7fb7da24a23828e1c203 | /detectors/tran_detector.py | 53f9cde0519d90ac72d2a87c0469fd6a07280bd8 | [
"MIT"
] | permissive | mdlaskey/yolo_labeler | 3f15dd229f6a5e01e508c5141345ff9363717b94 | 93463ee54ee8773e7c2ce2368a95c4c1102e712c | refs/heads/master | 2021-08-16T00:50:10.238386 | 2017-09-20T22:49:40 | 2017-09-20T22:49:40 | 96,812,011 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | import tensorflow as tf
import numpy as np
import os
import glob
import cv2
import argparse
import configs.config_bed as cfg
from yolo.success_net import SNet
from yolo.yolo_conv_features import YOLO_CONV
from utils.timer import Timer
import IPython
import sys, os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID... | [
"mdlaskey@umich.edu"
] | mdlaskey@umich.edu |
7e2934769eda76eb31ce38a7dc8c61f2b236a745 | 7c5da9f7299c5f5080fb5f7416caede5b4d92d6f | /0x11-python-network_1/3-error_code.py | 9e97bc793bdd2c2ed7387104f43632e51a817e36 | [] | no_license | stefansilverio/holbertonschool-higher_level_programming | eb0b9415047eb089d69e4099ff00d1f9ed529a4d | f47fc1817245fa41e597c9b03707687c78bc80e6 | refs/heads/master | 2020-04-09T10:20:45.203061 | 2019-05-17T00:36:42 | 2019-05-17T00:36:42 | 160,268,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/python3
# send request to URL & display body of response
import urllib.request
import sys
if __name__ == "__main__":
req = urllib.request.Request(sys.argv[1])
try:
with urllib.request.urlopen(req) as res:
result = res.read()
print(result.decode('utf-8'))
except url... | [
"494@holbertonschool.com"
] | 494@holbertonschool.com |
9b263dbe1cbb87d87c2127751d4205d69b8aaa57 | b478d1e63cce432b6fd3692c0aa7a84f411ae9dc | /prog_py/PP4E/sys_prog/file_dir/bin_file.py | bb87128ef789fcbea60ec0fd5342f7f36c0098b3 | [] | no_license | yiqing95/py_study | 8d414aa00b4ac31070fe5667a98815980eee46d0 | 6ce6b46ad729a795bc9253d6339169e62ef47766 | refs/heads/master | 2016-09-06T17:45:26.081269 | 2015-01-12T15:22:29 | 2015-01-12T15:22:29 | 20,810,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | __author__ = 'yiqing'
open('data.bin','wb').write(b'Spam\n')
print(
open('data.bin','rb').read()
)
try:
open('data.bin','wb').write('spam\n')
except:
print(
'only byte string allowed!'
) | [
"yiqing-95@qq.com"
] | yiqing-95@qq.com |
34e669fd4c64d930f00411c7694609530e9e3ed9 | aad3cf85e522299bd199521609f761ae2dd33cbb | /news/migrations/0003_article.py | 627e38921af262031c9ee621e61762d8787994b3 | [] | no_license | Isaacg94/Moringa-Tribune | 21828f9b23fb9eb6a5f707fd40fa8555682071a1 | bd86a228289ceccd65d9e4bb3990a397d6f310aa | refs/heads/master | 2022-04-30T21:37:20.118396 | 2021-06-14T06:05:51 | 2021-06-14T06:05:51 | 220,437,790 | 0 | 0 | null | 2022-04-22T22:38:10 | 2019-11-08T09:56:31 | Python | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-11-05 08:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('news', '0002_auto_20191105_1114'),
]
operations = [
... | [
"7248zack@gmail.com"
] | 7248zack@gmail.com |
94eee9e61f213d9d78a769b5f516bb38ef4ef967 | a904e99110721719d9ca493fdb91679d09577b8d | /month04/day07/day07-2/mysite7/middleware/mymiddleware.py | 224c49f2663bfdcd9c045bfced63b97be154ce30 | [
"Apache-2.0"
] | permissive | chaofan-zheng/tedu-python-demo | 7c7c64a355e5380d1f8b6464affeddfde0d27be7 | abe983ddc52690f4726cf42cc6390cba815026d8 | refs/heads/main | 2023-03-12T05:17:34.596664 | 2021-02-27T08:33:31 | 2021-02-27T08:33:31 | 323,350,480 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | # file : middleware/mymiddleware.py
from django.http import HttpResponse
from django.utils.deprecation import MiddlewareMixin
import re
class MyMiddleWare(MiddlewareMixin):
def process_request(self, request):
print("中间件方法 process_request 被调用")
def process_view(self, request, callback, callback_args,... | [
"417355570@qq.com"
] | 417355570@qq.com |
595386430a6217d87fcc21b851f49f8e6a38bad6 | 46bd3e3ba590785cbffed5f044e69f1f9bafbce5 | /env/lib/python3.8/site-packages/pip/_vendor/distlib/util.py | 3e84fda7ab072f58398f318fc943a64425f50898 | [] | no_license | adamkluk/casper-getstarted | a6a6263f1547354de0e49ba2f1d57049a5fdec2b | 01e846621b33f54ed3ec9b369e9de3872a97780d | refs/heads/master | 2023-08-13T11:04:05.778228 | 2021-09-19T22:56:59 | 2021-09-19T22:56:59 | 408,036,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:78828a279329e2e9c730e5738b14484711aae2dcb9fa1fcfa05999fe5a6f9243
size 67558
| [
"a.klukowski@live.com"
] | a.klukowski@live.com |
b71a241fc66c500a83f476b1ac46cd06fa62a1f9 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Introdução à Programação - 500 Algoritmos resolvidos/Capitulo 2/Exemplos 2a/Algoritmo25_teste.py | a7946a70f05d2ccc8ecda52e7392e1e717de6d49 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # Program: Algoritmo25_teste.py
# Author: Ramon R. Valeraino
# Description:
# Developed: 14/03/2020 - 15:39
# Updated:
date_complete = int(input("Enter with a complete date: "))
day = int(date_complete/1000000)
month = int((date_complete%1000000)/10000)
year = int(date_complete%10000)
print("%02d" %day)
print("%02d" ... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
e649ca3e749e1a3325b1eec4314b041c90c55c51 | aa3c8051df97dde4fabdc2282cbcd7a651723d7a | /Program/presentation/layouts/MeleeWeaponLayout.py | a1f5dc1706e2bab62d1637ac16272d4f1002c170 | [] | no_license | Wilson194/DeskChar | fdac6b3c9066f989fea02bc7629657d56bd9f913 | 40b088e061042599cbb30373ac229d37dddc01e6 | refs/heads/master | 2020-06-02T14:25:20.240420 | 2017-06-08T16:06:08 | 2017-06-08T16:06:08 | 191,186,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,953 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtWidgets, QtGui, QtCore
from business.managers.ItemManager import ItemManager
from structure.enums.Handling import Handling
from structure.enums.Races import Races
from structure.enums.WeaponWeight import WeaponWeight
from presentation.layouts.Layout import Layout
from structu... | [
"horacj10@fit.cvut.cz"
] | horacj10@fit.cvut.cz |
da666012cffd959cff513b627430ddb859086c22 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/201/55307/submittedfiles/mediaLista.py | 39a7ab8a645e81e1fd9659cc0c014bfe3b1a4225 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # -*- coding: utf-8 -*-
LISTA=[]
n=int(input('Digite n:'))
for i in range(1,n+1,1):
valor=float(input('valor'))
LISTA.append(valor)
print(LISTA[0])
print(LISTA[4])
print(n/LISTA)
print(LISTA) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c3bc0cd62cc9190a38b2a0e461d1d2f8238b12c0 | c72aaa4a20e4e5918d9fa73b8bc9627f704a5aad | /layers/subscribe/forms.py | 84cd4ae5eb712e77ff295457209bceb5ee7be5a0 | [] | no_license | jkol36/layers | 8f80c905ef2a243be449bd8315bc29c63fd10d22 | 3ef0b0a950986c929aa43e5f7d37538972fe9576 | refs/heads/master | 2020-04-21T13:55:21.837276 | 2015-03-17T17:18:17 | 2015-03-17T17:18:17 | 28,834,179 | 0 | 1 | null | 2015-03-17T17:18:17 | 2015-01-05T22:07:43 | HTML | UTF-8 | Python | false | false | 418 | py | from django import forms
from .models import Subscriber
from .utils import add_subscriber
class signup_for_emails_form(forms.ModelForm):
email = forms.CharField(widget=forms.EmailInput())
class Meta:
model = Subscriber
fields = ['email']
def save(self):
s = super(signup_for_emails_form, self).save()
ema... | [
"jonathankolman@gmail.com"
] | jonathankolman@gmail.com |
ec6aa12e84e8e03cecc0d9e1810710b34bc56bff | e436e729b0a78c7062311e0f48c55dd25d13faef | /apps/core/urls.py | 0c1d9b0dfeb85d8ef648ef52a0da8fc0c48f259c | [
"MIT"
] | permissive | cad106uk/market-access-public-frontend | 71ff602f4817666ed2837432b912f108010a30a1 | 092149105b5ddb1307c613123e94750b0b8b39ac | refs/heads/master | 2023-02-03T18:48:45.838135 | 2020-12-24T09:38:56 | 2020-12-24T09:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.urls import path
from django.views.generic import TemplateView
from .views import CookiesView, CookiePolicyView
app_name = "core"
urlpatterns = [
path("cookies/", CookiesView.as_view(), name="cookies"),
path("cookie-policy/", CookiePolicyView.as_view(), name="cookie-policy"),
path('accessibil... | [
"noreply@github.com"
] | cad106uk.noreply@github.com |
e37218219bbf0191ef8d14fcfcf619a212b25cc0 | 0a7d49300a547eecc823b78a891057f1017db1b2 | /AI/deep_learning/dist_tensor.py | 1f83db006297ceb2079e586aeb620e5980f88bf3 | [] | no_license | PeterZhangxing/codewars | f315b2ce610207e84a2f0927bc47b4b1dd89bee4 | 8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba | refs/heads/master | 2020-09-22T12:09:59.419919 | 2020-03-02T12:52:55 | 2020-03-02T12:52:55 | 224,330,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import tensorflow as tf
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_string("job_name","worker","启动服务的类型ps/worker")
tf.app.flags.DEFINE_integer("task_index",0,"指定ps或worker当中的哪一台服务器是task:0,哪个是task:1")
def main(argv):
'''
tf.app.run()会自动调用此函数
:param argv:
:return:
'''
# 定义全局计数的op,给钩子列表当中的训练步... | [
"964725349@qq.com"
] | 964725349@qq.com |
64952a4d80ff6124a0f62f6feb4fcec6cb1c4242 | 7a0625ef4c271ed9992a736de7bb93215b7013fd | /leetcode229.py | cc59a7525da2cf2211a6f8322dc551cfd38a9d67 | [] | no_license | yuchien302/LeetCode | 6576b93c005ea2275646df7b9547c22683d3b45c | c9a53ef2fc1fd1fea7377c3633689fa87601dba6 | refs/heads/master | 2020-12-11T01:42:36.980414 | 2015-12-03T02:53:51 | 2015-12-03T02:53:51 | 36,424,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from collections import defaultdict
class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
if nums == []:
return []
count = defaultdict(int)
for i in nums:
count[i] += 1
... | [
"yc2257@cornell.edu"
] | yc2257@cornell.edu |
0656fc09f466ffab967ac3ad432c013170c33c38 | 30736dab9d8e682e5603d4803349144a5f6a84fb | /sdk/cognitiveservices/azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/places_py3.py | d37c5584d19e1a9b2761d4a9f5cb4683308a3f50 | [
"MIT",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-generic-cla"
] | permissive | montgomp/azure-sdk-for-python | 6fcaffc59f4321852aa71109691e94ad38c66464 | 0ffb0b0de095b97cbc5b69309bbce0a3b91d3eb4 | refs/heads/master | 2020-12-06T11:08:01.683369 | 2020-01-07T23:24:42 | 2020-01-07T23:24:42 | 232,445,563 | 1 | 0 | MIT | 2020-01-08T00:45:33 | 2020-01-08T00:45:33 | null | UTF-8 | Python | false | false | 2,400 | 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 ... | [
"noreply@github.com"
] | montgomp.noreply@github.com |
5d90aac792c480c20d39889bd4b82ac454f6f4a3 | 7839d009f3ae0a0c1bc360b86756eba80fce284d | /build/genmsg/catkin_generated/genmsg-extras.cmake.develspace.context.cmake.py | 445abeaa42241e230bc77bd14352a8631192a149 | [] | no_license | abhat91/ros_osx | b5022daea0b6fdaae3489a97fdb1793b669e64f5 | 39cd8a79788d437927a24fab05a0e8ac64b3fb33 | refs/heads/master | 2021-01-10T14:43:41.047439 | 2016-03-13T23:18:59 | 2016-03-13T23:18:59 | 53,812,264 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # generated from catkin/cmake/template/cfg-extras.context.py.in
DEVELSPACE = 'TRUE' == 'TRUE'
INSTALLSPACE = 'FALSE' == 'TRUE'
CATKIN_DEVEL_PREFIX = '/Users/adityabhat/Downloads/devel'
CATKIN_GLOBAL_BIN_DESTINATION = 'bin'
CATKIN_GLOBAL_ETC_DESTINATION = 'etc'
CATKIN_GLOBAL_INCLUDE_DESTINATION = 'include'
CATKIN_GLOB... | [
"abhat@wpi.edu"
] | abhat@wpi.edu |
8c73bfa7cd02e3c57ee6ebf811c428c4babd5d13 | 0562b574c9aaf716fdf67010a82326c93514687b | /sgtpy/pure/a2m_monomer.py | 618fc00bb66805500a96c90bee736b84030cd4c3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | hyunp2/SGTPy | d22bd55183ad70b3fc68d140d16606d445ad631e | 7a0306baa82f5c53e1dbd1543832e305b52fe43d | refs/heads/master | 2023-04-06T06:25:43.148618 | 2021-04-15T23:45:35 | 2021-04-15T23:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | import numpy as np
# Second pertubation Eq 36
def a2m(suma_a2, khs, xi, cte_a2m):
a2 = khs*(1+xi)*suma_a2*cte_a2m
return a2
def da2m_deta(suma_a2, dKhs, dXi, cte_a2m):
khs, dkhs = dKhs
xi, dx1 = dXi
x1 = 1. + xi
#sum1, dsum1 = np.matmul(da1sb, x0lambda)
sum1, dsum1 = suma_a2
# a2 =... | [
"gustavoch@outlook.com"
] | gustavoch@outlook.com |
2bcfd3b63115449bb0bbc8fa76c929e554bed2c8 | 539077b499f10c133fe8ed003255b9fbc6d4c178 | /廖雪峰python3教程/E-mail/BJ_SMTP_01.py | c63ebe406069cc84fb9eeab301282dad62c05516 | [] | no_license | lxh1997zj/Note | 78e8310ff49f27bc22953b510cad3f35a25ed182 | 2dab5957f0f4a2117339b449d730f51626fd4b08 | refs/heads/master | 2020-04-25T16:11:29.890458 | 2019-03-05T12:56:00 | 2019-03-05T12:58:09 | 172,901,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
# 第一个test案例
from email.mime.text import MIMEText
msg = MIMEText('hello,send by python...', 'plain', 'utf-8')
# 输入Email地址和口令:
from_addr = input('From:')
password = input('Password:')
# 输入收件人地址:
to_addr = input('To:')
# 输入SMTP服务器地址:
smtp_server = input('SMTP server:')
# 发... | [
"lxh1997zj@163.com"
] | lxh1997zj@163.com |
2c925c79eb3754202bc3d2b46b3752f89a1e19a4 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-airec/aliyunsdkairec/request/v20201126/ListFlowControlTaskRequest.py | 34973526e6d818f1992cca6f2f671eec48bacf93 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,201 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
79887bef31814dde31cdfa14a775b3033eff18e1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03282/s669308173.py | a0eef47dffa1a6ba2f1439be9442d562f5758026 | [] | 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 | 135 | py | s=input()
k=int(input())
t=0
one=0
for i in s:
if i=="1":
one+=1
else:
t=i
break
if k<=one:
print(1)
else:
print(t) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1ef5e96cbfca227839393710a8f9488fcb09c0b2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2776/8246/306414.py | 1cbae6f1aa9a74729f22175d1fab5949d60a700e | [] | 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 | 1,312 | py | class Solution:
def findAllConcatenatedWordsInADict(self, words):
def check_word(word, pre_dict):
if len(word) == 0:
return True
cur_dict = pre_dict
for index, c in enumerate(word):
cur_dict = cur_dict.get(c, None)
if cur_di... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
47afbc912da0ce56e83ab6a28e7d28726769711f | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_5/ar_/test_artificial_1024_Fisher_Lag1Trend_5__20.py | ab9e2577a1b22fa9dfd49f413cecd13e50634291 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 262 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
4e3c3b03f20d16ad87ebb2e8033ec5ca7f0c1742 | 291c59da17eef6f4f61bff3abc77c303415ef07d | /buzzword_bingo_client/core/__init__.py | 9449b9a1c903b54e8b378d9941186a3dc025e290 | [] | no_license | seanfisk/buzzword-bingo-client | f81ff8c1983053d2258f9f8545ba3f432b404482 | 0a31bbcd13cf0701f947f272274ef3dd910d4a04 | refs/heads/master | 2016-09-05T11:37:29.116195 | 2012-05-03T00:21:25 | 2012-05-03T00:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | """:mod:`buzzword_bingo_client.core` --- All core client code
"""
| [
"sean@seanfisk.com"
] | sean@seanfisk.com |
e2ef1c449fbcae7ae7653fc789fdc005c74715bb | d4f1bd5e52fe8d85d3d0263ede936928d5811bff | /Python/Problem Solving/BOJ/boj2161.py | 9cbf9b92d6204607793b254509fc65aed9d4d3e0 | [] | no_license | ambosing/PlayGround | 37f7d071c4402599995a50cac1e7f1a85c6d10dd | 0d5262dbb2fa2128ecb3fd969244fa647b104928 | refs/heads/master | 2023-04-08T04:53:31.747838 | 2023-03-23T06:32:47 | 2023-03-23T06:32:47 | 143,112,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | n = int(input())
lst = [i + 1 for i in range(n)]
for i in range(n):
print(lst.pop(0), end="")
if i + 1 != n:
print(end=" ")
lst.append(lst.pop(0)) | [
"ambosing_@naver.com"
] | ambosing_@naver.com |
2c6da5427b24c298d6edf8a0cb80284b6de644f7 | eec696163b725c9c644ad0a94efa3b0e8a30be0c | /ap/apps/users/apps.py | b746c42a63312f5eca2d5e63d4f04fe8deb4505b | [
"BSD-2-Clause"
] | permissive | shacker/ap | fb4412f76ddb8658b6af774d9753e789740a2150 | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | refs/heads/master | 2022-07-20T21:14:29.870910 | 2020-04-30T05:48:15 | 2020-04-30T05:48:15 | 150,219,062 | 1 | 1 | BSD-3-Clause | 2022-07-07T01:27:42 | 2018-09-25T06:39:45 | Python | UTF-8 | Python | false | false | 273 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
verbose_name = "Users"
def ready(self) -> None:
"""Override this to put in:
Users system checks
Users signal registration
"""
pass
| [
"shacker@birdhouse.org"
] | shacker@birdhouse.org |
600580ce9945d02e3f2db4ff838d7aef459d364b | 3374332ce09299ed1783507def78bba53a035149 | /PlotCDFHeteroplasmyFreqFunction.py | 292d43289bed011ff09967746abe14c6e7bb7915 | [] | no_license | rjovelin/MitoVariants | ca6f53777abef5eb225b2f8d3b4ca72f444bc5ed | 18ada503447b16f1fe3f252cccab49440171eeee | refs/heads/master | 2021-01-21T04:50:36.694371 | 2016-07-14T15:41:34 | 2016-07-14T15:41:34 | 54,673,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,647 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 29 15:23:39 2016
@author: RJovelin
"""
# use this script to plot the CDF of heteroplasmie frequencies (ie. within individual, a same mutant may be recorded multiple times)
# for various functional categories
# place this script in folder with heteroplasmy summary files... | [
"richard.jovelin@oicr.on.ca"
] | richard.jovelin@oicr.on.ca |
c1a9785996b8cdb5e5d85e211c7ea5d3c4b23ae6 | e21ed71610f9d1004dfa21206300c0e9f3887e89 | /modulo_2/CodingBat/list-2/sum13.py | 2f2bf5e4253b1ac4c799d539cf007ce523d74ba5 | [] | no_license | hpfn/wttd-2017-exerc | c0c79ee0cb3b5b331932787d280deee679357bc1 | b1bf1394d2e2adc29257b7c4273af21b8509335f | refs/heads/master | 2020-12-30T11:29:13.218980 | 2017-10-03T19:04:03 | 2017-10-03T19:04:03 | 91,572,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # coding=utf-8
def sum13(nums):
count_13 = nums.count(13)
# author wants this 'try/except'
try:
for x in range(count_13):
location = nums.index(13)
nums.pop(location)
if location + 1 <= len(nums):
nums.pop(location)
except ValueError:
p... | [
"hpfn@debian.org"
] | hpfn@debian.org |
a747456d2e634ec149e441b969faec6ef400a9a0 | 629606ef6e0ce252f74729ac60f57ca8805c3c78 | /hw_001_Django/hw_009_test1/hw_009_test1/wsgi.py | 43315453c3f2c6e45ae1652e55e190e00d3b8938 | [] | no_license | LeeXyan/lxgzhw006 | cc31024874725f60b766c9d5d24c2dafc66b8de3 | 621a73544262df7e104806579242deeaa8dbe2c2 | refs/heads/master | 2021-10-10T17:41:52.381843 | 2019-01-15T00:25:08 | 2019-01-15T00:25:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for hw_009_test1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"1156956636@qq.com"
] | 1156956636@qq.com |
d8d60c8924f65dfd9c30068aeb5530f2b7bba38b | 97a331e6cdeb3424a1897fe08dd6d54623534b22 | /supervised_learning/0x11-attention/2-rnn_decoder.py | 6c968fabe8ea54f7f447cff287ce8fe4671372a8 | [] | no_license | dalexach/holbertonschool-machine_learning | 2fa324f49da5ea27aecc4dff6d87b60b33b76cb3 | fc2cec306961f7ca2448965ddd3a2f656bbe10c7 | refs/heads/master | 2023-02-03T03:49:46.149072 | 2020-12-22T15:57:41 | 2020-12-22T15:57:41 | 255,250,596 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py | #!/usr/bin/env python3
"""
RNN Decoder Class
"""
import tensorflow as tf
SelfAttention = __import__('1-self_attention').SelfAttention
class RNNDecoder(tf.keras.layers.Layer):
"""
Class RNNDecoder to decode for machine translation
"""
def __init__(self, vocab, embedding, units, batch):
"""
... | [
"dalexach@gmail.com"
] | dalexach@gmail.com |
a3d842491d435f2ef359c32444f441e7e33edb14 | 463411688fd841add1c89c88852cff79c223cca4 | /db/models/tb_MessageDetectionLog.py | 685dfeafcf6dfeef9032bb6d52ea5ec770b823a6 | [] | no_license | hsiang0107/Restful_API_Testing | 8d9063186e53ddf03d50efa983ec3f73ec794958 | 2411b9c8a3c87336f7dbfaa807857d01bb1540d9 | refs/heads/master | 2020-03-23T04:56:56.345366 | 2018-07-16T09:27:10 | 2018-07-16T09:27:10 | 141,115,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | from sqlalchemy import Column
from db.cm_session import cm_session, Base
from sqlalchemy.dialects.mssql import BIGINT, CHAR, DATETIME, INTEGER, NVARCHAR, SMALLINT, VARCHAR
class TbMessageDetectionLog(Base):
__tablename__ = 'tb_MessageDetectionLog'
id = Column(BIGINT, primary_key=True, nullable=False)
MsgL... | [
"hsiang0107@hotmail.com"
] | hsiang0107@hotmail.com |
396fd77acb1ba442fe000b1731f30f11ec512529 | f13ef18abfb61d983040f83249bd19c6f55c29c9 | /tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/utils/saving.py | 1c09bf9f9e09a5f2a8853ee17b94b196ac009241 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | AEW2015/Vitis-AI | 5487b6474924e57dbdf54f66517d1c604fc2c480 | 84798c76e6ebb93300bf384cb56397f214676330 | refs/heads/master | 2023-06-24T11:02:20.049076 | 2021-07-27T05:41:52 | 2021-07-27T05:41:52 | 390,221,916 | 1 | 0 | Apache-2.0 | 2021-07-28T05:12:07 | 2021-07-28T05:12:06 | null | UTF-8 | Python | false | false | 6,299 | py | #
# Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"hanxue.lee@xilinx.com"
] | hanxue.lee@xilinx.com |
2f0e9a3dccb907373ff05b4c78288bf95a17c899 | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Request/CrmGrademktMemberQueryRequest.py | 746432539ec7a11a2eef746cb635ce9502a6afb4 | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 商家通过该接口查询线上店铺会员。
# @author wuliang@maimiaotech.com
# @date 2013-09-22 16:52:39
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.... | [
"chenke@maimiaotech.com"
] | chenke@maimiaotech.com |
8e23025954ae75c3a15a8021e15e8c670b77d6c7 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /PhysFit/P2VV/standalone/python/P2VV/Parameterizations/AngularFunctions.py | db60a6a581aca68fccf7252a2b644a7e507927ca | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | ../../../../python/P2VV/Parameterizations/AngularFunctions.py | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
87e2e34cd88b80449f53b0b23c51ab0c97a4475c | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/matplotlib/tests/test_bbox_tight.py | 75156dd3dbc6353a86fbbd7aa271332377e11de1 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d0e87aeafbbc475a3666277d1bdec7eb06bf7b352e7a0cff579b9b626931397c
size 4949
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
3a1e46e742b223e8d66115e7718c1b5c477118c7 | 520219554d34df8a29f76304db424f1946b9171d | /accounts/migrations/0001_initial.py | d003fffc9f6edd9ed951a869070d4d4737d3835f | [] | no_license | amschaal/glims | c59aa2edbdec2267b9361e892efb7e871962372e | ce31f0179deb1b8e9659c688717ca37ebeee1cd8 | refs/heads/master | 2021-06-08T23:39:57.099783 | 2020-01-17T18:30:27 | 2020-01-17T18:30:27 | 55,446,799 | 4 | 0 | null | 2021-03-19T21:59:11 | 2016-04-04T21:31:38 | Python | UTF-8 | Python | false | false | 984 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-06-08 20:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('glims', '0009_lab_url'),
]
oper... | [
"amschaal@ucdavis.edu"
] | amschaal@ucdavis.edu |
39b139325f2040b40a583a9abd5314225f88f95b | dfac17f0a181ef4630100d9bf5edb6979336f072 | /ihub/migrations/0007_auto_20200824_0615.py | 1c01312ff4d1fb66985a41c6f797c4c163271c0d | [] | no_license | rskelly/dm_apps | 2ca1294f3a516b5bb5d3c8e6434c39b2cec6241f | ca9e90c546a8bc8ca3480f6aab4b872a4e88e24a | refs/heads/master | 2023-01-18T17:40:12.407006 | 2020-11-03T18:03:54 | 2020-11-03T18:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # Generated by Django 2.2.13 on 2020-08-24 09:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ihub', '0006_auto_20200722_1422'),
]
operations = [
migrations.AlterModelOptions(
name='entrynote',
options={'ordering': ['... | [
"davjfish@gmail.com"
] | davjfish@gmail.com |
9a2bb2c7bebee2da9c07dfb3cac5de0e721649e1 | ec8d16934034255a0a4334b863795dc4f09e9c9d | /src/softeng1/experiments/src/sphinxjp.themes.impressjs/setup.py | cfc980a3d1af36d772f492b49311dbf814722a26 | [] | no_license | zclfly/num-methods-for-PDEs | cb02847cbafafb291d0f9d0b22aa71bc8d2e4e3a | 5e394daca40f17562c1c6d1f04dc3dbd4877aaf6 | refs/heads/master | 2020-12-11T05:32:01.549906 | 2014-12-17T14:37:10 | 2014-12-17T14:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os, sys
version = '0.1.2'
long_description = '\n'.join([
open(os.path.join("src", "README.txt")).read(),
open(os.path.join("src", "AUTHORS.txt")).read(),
open(os.path.join("src", "HISTORY.txt")).read(),
])
class... | [
"hpl@simula.no"
] | hpl@simula.no |
69b0c0a5010372ce40738d025269fefed2439aff | 8d56828fb72dcbb502a857c48394ee3684120745 | /parsers/blob.py | d8bef2591437db7fd85a7b5b968fe2d459950da0 | [
"MIT"
] | permissive | ArseniySky/mitra | 1a26166e39df76d4472ce2a3000fca46e5327034 | bb6038587300d34072cda1409e3bb72772b11dc9 | refs/heads/master | 2023-01-03T05:39:51.486063 | 2020-10-24T15:35:56 | 2020-10-24T15:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
from parsers import FType
class reader(FType):
DESC = "binary blob"
TYPE = "BIN"
def __init__(self, data=""):
FType.__init__(self, data)
self.data = data
self.start_o = 4*1024*1024
def identify(self):
return True
| [
"ange.albertini@gmail.com"
] | ange.albertini@gmail.com |
f7e23d3d67522574ea6f51ce116ce354230f640e | 377ec156e459f70ad32e625de2dde2672736dd06 | /Exercises/RedirectDemo/redirect_urls.py | 6907247d052f81864290c4d3679e123af449888a | [] | no_license | tsonglew/learn-python | b657cc34d3e27993ec0dcce152796bea43224d4f | edbf0b5d24bf0e2d9ad7aa5811c7d3aa0a66b57c | refs/heads/master | 2021-06-13T13:46:35.199562 | 2017-04-14T16:57:38 | 2017-04-14T16:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from urlparse import urlparse, urljoin
from flask import request, url_for, redirect
def is_safe_url(target):
ref_url = urlparse(request.host_url)
test_url = urlparse(urljoin(request.host_url, target))
return test_url.scheme in ('http', 'https') and \
ref_url.netloc == test_url.netloc
def get_re... | [
"417879751@qq.com"
] | 417879751@qq.com |
c81ca9d9e39d9b0f935865198b87041c03478a8f | f124e7540eea998470a39a9a385d6685dd395490 | /python/django/sample_project/apps/push/models.py | 319570fdc5067199306199a82a5ad8ea58dc8852 | [] | no_license | seungjinhan/dev_sources | b165a4a2d04a8ad7689f263704339eadc9245447 | c2f9261938cc6efad7d8edffe5484b5c9c6bce54 | refs/heads/master | 2023-01-29T03:59:13.327108 | 2020-05-17T13:20:07 | 2020-05-17T13:20:07 | 218,919,869 | 0 | 0 | null | 2023-01-24T01:24:21 | 2019-11-01T05:36:32 | Java | UTF-8 | Python | false | false | 2,702 | py | from django.db import models
# Create your models here.
class AppDevice(models.Model):
no = models.BigAutoField(primary_key=True)
app_key = models.CharField(max_length=100)
app_version = models.CharField(max_length=20)
device_os = models.CharField(max_length=10)
install_date = models.Char... | [
"hanblues@gmail.com"
] | hanblues@gmail.com |
f4b8ace87d62e440bda718c65dc67ddae293fc3c | 5fd80d4197d725533177233e0dc9892b2f6afba2 | /code/MNI/nii_fix_header_100um_bstem_MNI.py | 1aef6a29e7ee011008e7041df6cb8f4077ebd0af | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sitek/subcortical-auditory-atlas | 3ceaaacd2fc0d0d401ff61b5854b2395a28022f6 | 8218140c457ab97a6d897eb26aae4d6240596033 | refs/heads/master | 2021-10-26T00:20:11.108550 | 2021-10-18T14:12:11 | 2021-10-18T14:12:11 | 172,933,637 | 3 | 3 | null | 2019-02-27T15:44:40 | 2019-02-27T14:47:40 | null | UTF-8 | Python | false | false | 1,135 | py | """Modify nifti header to make 100um bstem volume overlay correctly on MNI.
Notes
-----
I have compared nifti headers from MNI 0.5 data (2009b) and our resampled
brainstem-only 100um images. Sform and Qfroms were different. So I have copied
headers from MNI and override sform with a translation-only transformation.
Th... | [
"farukgulban@gmail.com"
] | farukgulban@gmail.com |
1b4a77dd9c603ea369037e6c87ffc15467da8465 | 6f2267dcb42d1090d2a94269824544af64415baf | /parsimonyProteinEstimator.py | af3d39ec9d18789d6ae48b17b1852a0720a03f24 | [
"MIT"
] | permissive | jfnavarro/proteomics | 2e9aac6b1e96cf8eb0897bdf57fed40d9e2f7023 | 55af142236a032659e573a32717065f67423aefc | refs/heads/master | 2020-05-27T21:22:50.918090 | 2017-03-02T12:14:31 | 2017-03-02T12:14:31 | 83,673,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,638 | py | #! /usr/bin/env python
# @Created by Jose Fernandez
# dec 10th, 2011
import sys
import os
from operator import itemgetter, attrgetter
import getopt
import random
import copy
from pygraph.classes.graph import graph
from pygraph.algorithms.accessibility import connected_components
import itertools
import percolatorUtils... | [
"jc.fernandez.navarro@gmail.com"
] | jc.fernandez.navarro@gmail.com |
6112c697a70e833d28ce13dd17b7f78303aec4f9 | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /SANFOUNDRY/File Handling/Number_LetterAppear.py | 5c6adf41bfcd151db5e2de09c794ffc47e2a345c | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #Python Program that Reads a Text File and Counts the Number of Times a Certain Letter Appears in the Text File
word = input()
k= 0
with open("C:\\Users\\nekapoor\\git\\Python-and-Django\\PYTHON PROGRAMS\\file_data\\word.txt",'r',encoding='utf-8') as file1:
for line in file1:
words = line.split()
f... | [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
df33c2ed146024e9a89e9fa33a8835490f3d3ce2 | 6acea1c5206052393beb5cba132f40e55b637c11 | /doc_curation_projects/puraaNa/mahaabhaarata/main.py | cbe38e919df4ee2f9ad880ee70f89e4ed95a3d39 | [
"MIT"
] | permissive | sanskrit-coders/doc_curation | a44afacf68d1711bcebd02c97b30a42b6d82bccc | db330393d3df052c008811f4b442421900e5fa84 | refs/heads/master | 2023-08-27T09:41:22.784001 | 2023-08-11T05:40:46 | 2023-08-11T05:40:46 | 157,027,340 | 8 | 4 | MIT | 2022-12-08T08:26:49 | 2018-11-10T22:32:26 | Python | UTF-8 | Python | false | false | 861 | py | import os
import regex
from doc_curation.md import library
from doc_curation.md.library import arrangement
from doc_curation.md.file import MdFile
from doc_curation.md.library import metadata_helper
from indic_transliteration import sanscript
ROOT_DIR = "/home/vvasuki/gitland/vishvAsa/purANam/content/mahAbhAratam/g... | [
"vishvas.vasuki@gmail.com"
] | vishvas.vasuki@gmail.com |
51721e9fd1be652bcc33a3b903e6ed4f8035f545 | 0909dd4fd63f093022369948622c2627a5ddc47c | /data/root-.pyload-config/userplugins/hooks/Captcha9kw.py | 1031ef22426641a2737d169d7c616e226c1bfa79 | [] | no_license | kurtiss/htpc | 3c4f523f0b12e878211d51c1ea63ec1645d4f62c | ef6d859b92dbcace76abef04ef251ee0bf09cf8b | refs/heads/master | 2021-01-18T13:46:47.932073 | 2015-07-01T21:51:18 | 2015-07-01T21:51:18 | 34,362,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,198 | py | # -*- coding: utf-8 -*-
from __future__ import with_statement
import re
from base64 import b64encode
from time import sleep
from module.network.HTTPRequest import BadHeader
from module.network.RequestFactory import getURL
from module.plugins.Hook import Hook, threaded
class Captcha9Kw(Hook):
__name__ = "C... | [
"kurtiss@gmail.com"
] | kurtiss@gmail.com |
e5ca3860812a92b08a9e1ea5bc17d91c194f55d7 | fe096ed06c34ae3adf958760886dd5f2fc64fa90 | /String/checkIfWordEqualsSummationOfTwoWords.py | a6adc034bdc42de68d00ca52d496cce63c76a4ed | [] | no_license | harshmalviya7/LeetCode_Coding_Questions | c9d8a93f4a5664dcf57098cd58f3f1d95667b0c0 | 47edb51e55e390861ed539972d8bf66b41b4cdd7 | refs/heads/master | 2023-08-23T01:09:40.110710 | 2021-10-21T12:53:36 | 2021-10-21T12:53:36 | 373,072,675 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # 1880. Check if Word Equals Summation of Two Words
# https://leetcode.com/problems/check-if-word-equals-summation-of-two-words/
class Solution:
def isSumEqual(self, firstWord: str, secondWord: str, targetWord: str) -> bool:
a=b=""
for i in firstWord:
a+=str(ord(i)-ord("a"))
for ... | [
"harsh.malviya.9869@gmail.com"
] | harsh.malviya.9869@gmail.com |
6b204a4025e429192d0d667f75714c254ce9fc9d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ATM-FORUM-MIB.py | f56bfd28c31795b6e7fad4a0248ecd449ee10d96 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 36,394 | py | #
# PySNMP MIB module ATM-FORUM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ATM-FORUM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:15:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
38e9ecf7b71facdb55664abfe8b885fe3a91ee90 | 5286255a93db21ea9defc1f8f6fc71990c3c2fa9 | /hadronic/python/.svn/text-base/Binned_AlphaT_HT_275.py.svn-base | 709f4b7e180d10b4434e91c1b011e146b727939b | [] | no_license | brynmathias/AnalysisV2 | 1367767dbf22eef6924700c4b0a00581ea8ed965 | ee17c019bb04243876a51c7ef7719cc58a52adea | refs/heads/master | 2021-01-01T19:20:27.277628 | 2012-04-17T13:34:26 | 2012-04-17T13:34:26 | 2,600,415 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | #!/usr/bin/env python
import setupSUSY
from libFrameworkSUSY import *
from libHadronic import *
from icf.core import PSet,Analysis
from time import strftime
from time import strftime
from Binned_Sample_Config import *
mu_id = PSet(
doJetLoop = False,
MuID = "Tight",
MinPt = 10.,
MaxEta = 2.5,
MaxI... | [
"brynmathias@gmail.com"
] | brynmathias@gmail.com | |
3a01a8fdba71a65adf3baf88eba22afbbf524627 | d299522b5fd95946f9b9819cd78ba684566bfcc6 | /zypmediaProject/zypmediaProject/asgi.py | d34e5f23b474357d2ae427de022e4fcd736fad1f | [] | no_license | knkemree/zypmedia | 48a94024725e2761f3dee16eb39af48d4b427041 | b87845f7d0ac40e57a73811903c93642b809ee41 | refs/heads/master | 2023-07-18T17:37:18.436487 | 2020-04-20T00:38:09 | 2020-04-20T00:38:09 | 257,132,264 | 0 | 0 | null | 2021-09-22T18:54:05 | 2020-04-20T00:33:28 | Python | UTF-8 | Python | false | false | 407 | py | """
ASGI config for zypmediaProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"konakziyaemre@gmail.com"
] | konakziyaemre@gmail.com |
40283026b2164dae89e7d3fb2f708c301a700d78 | 90afc972b2259054e7cc9b63ec19bf11c3153e48 | /problems/A/YetAnotherTwoIntegersProblem.py | 527f947faa292d49591c35c063e6e3570581acc9 | [
"MIT"
] | permissive | Ahsanhabib1080/CodeForces | 88ca768ceefa409b0c10cac500148bfaf19e3c7e | 707b374f03012ec68054841f791d48b33ae4ef1b | refs/heads/master | 2023-05-26T20:58:23.180369 | 2021-06-19T02:40:15 | 2021-06-19T02:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/problemset/problem/1409/A
Solution: Since we can use all numbers from 1 to 10, we try greedily to employ 10 to either increase or decrease a so
that we get a and b only differ in units place. Now for that, we do one another move using the suitable number from 1
... | [
"devesh.bajpai19@gmail.com"
] | devesh.bajpai19@gmail.com |
4e46214fbc28086d5728ea814bfb61aa885e5d64 | 7a8e69fe45340351119cf014f757284722b784dd | /log/regenerate_log_config.py | ca7d3a9ba76c40cf775e6d636390406db7dbe2b9 | [] | no_license | texttest/capturemock | 41b819089f1656f38be6a5be8d8ba1b31f34ef6c | 427b95518ab30c43fddd4b7eff6c4d87b38d500d | refs/heads/master | 2023-08-31T00:42:52.995777 | 2023-08-30T08:10:55 | 2023-08-30T08:10:55 | 173,738,877 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
import logconfiggen, os
if __name__ == "__main__":
gen = logconfiggen.PythonLoggingGenerator("logging.conf", prefix="%(LOCAL_DIR)s/", postfix="diag")
enabledLoggerNames = []
installationRoot = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
coreLib = os.path.... | [
"geoff.bache@jeppesen.com"
] | geoff.bache@jeppesen.com |
db099f4d8f989a94cf875c679029348dfbefb853 | 05ec80585e500eb75baade82bada8f0c5a2a76dc | /Dynamic programming/longest _increasing_subsequence.py | e966438fa3a49d8ced2e5c92660e90d237b00f5a | [] | no_license | NenadPantelic/GeeksforGeeks-Must-Do-Interview-preparation | 24477da148d4b9fe8113f669f21984d081327563 | 180c6b1bc6a4b6e1b44c409c220368b391b672b8 | refs/heads/master | 2021-01-05T19:16:22.436554 | 2020-11-15T14:39:02 | 2020-11-15T14:39:02 | 241,113,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 27 20:44:18 2020
@author: nenad
"""
def longest_increasing_subsequence(arr):
n = len(arr)
# dp array - stores length of lic so far, to that element (lic = longest incr. subseq.)
dp = [1] * n
for i in range(1, n):
for j... | [
"nenadpantelickg@gmail.com"
] | nenadpantelickg@gmail.com |
b8e791d73735e95cad87affccd971e1b2eb3e33a | a29b8d6ae6642ef80d04ae99d721b703de06db69 | /maro/rl/training/proxy.py | 04f1af849809f1515574dcb8ba1b90573d02b320 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/maro | 6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3 | b3c6a589ad9036b03221e776a6929b2bc1eb4680 | refs/heads/master | 2023-08-24T16:52:38.250279 | 2023-05-15T04:31:58 | 2023-05-15T04:31:58 | 230,389,247 | 764 | 158 | MIT | 2023-07-25T20:59:06 | 2019-12-27T06:48:27 | Python | UTF-8 | Python | false | false | 4,451 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from collections import defaultdict, deque
from typing import Deque
from maro.rl.distributed import DEFAULT_TRAINING_BACKEND_PORT, DEFAULT_TRAINING_FRONTEND_PORT, AbsProxy
from maro.rl.utils.common import bytes_to_pyobj, pyobj_to_bytes
from maro... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
1f380157c6bb3c795b14b3afecb4d6e5bd7e07e0 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/recoveryservices/v20210301/replication_policy.py | e6bc45ff67f43fa0e66a01d337ee7b8b5f5d8180 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 9,998 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
58d9aabaac368bc6ae17836b33c9f76efc4dc49f | 68bad4b3d92872bb5b77b4ee503e588d20511a27 | /python/scripts_inhibition/old_script/simulate_beta_ZZZ28.py | 5684088f6e8cd344eda96ce56369f172ea5f94da | [] | no_license | mickelindahl/bgmodel | 647be626a7311a8f08f3dfc897c6dd4466fc0a92 | 78e6f2b73bbcbecd0dba25caf99f835313c914ee | refs/heads/master | 2023-08-29T13:57:04.122115 | 2022-02-11T14:28:23 | 2022-02-11T14:28:23 | 17,148,386 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | '''
Created on Aug 12, 2013
@author: lindahlm
'''
from core import monkey_patch as mp
mp.patch_for_milner()
from scripts_inhibition.base_simulate import (get_path_rate_runs,
get_path_logs, get_args_list_oscillation,
get_kwargs_list_indv_nets,
par_pro... | [
"mickelindahl@gmail.com"
] | mickelindahl@gmail.com |
fb2346b9ad315ac2189f0206a2f221d970aa4b10 | 9cd0f22b1b335c8dd59addcbe3032141e76af8b5 | /5. Modules/Time Functions/max.py | 1574df91767dea2f55ddce024edfb2a537f6facb | [] | no_license | Swapnil2095/Python | 06e6249d8f50767fce8fcdddbfd0aefc23d3deae | d11270391c4d3c30f59266a5bc3216dad8fc81b7 | refs/heads/master | 2022-02-28T08:12:27.266950 | 2019-09-24T15:48:20 | 2019-09-24T15:48:20 | 103,416,564 | 0 | 2 | null | 2019-10-24T11:16:40 | 2017-09-13T15:22:54 | HTML | UTF-8 | Python | false | false | 530 | py | # Python code to demonstrate the working of
# fromtimestamp(), min() and max()
# importing built in module datetime
import datetime
from datetime import date
# using fromtimestamp() to calculate date
print ("The calculated date from seconds is : ",end="")
print (date.fromtimestamp(3452435))
# using min() to print mi... | [
"swapnilgaikwad7291@gmail.com"
] | swapnilgaikwad7291@gmail.com |
90a6640e143b216a86533c52753f190d8b2451d5 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/fkzluv001/question2.py | 79e0901ce8ec1b3c98e8f143163aacb12caab979 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | """ a program that uses a recursive function to count the number of pairs of repeated characters in a string.
Luvo Fokazi
10 May 2014"""
x=input("Enter a message:\n")
def Pairs(rString,n,count):
d=n+1
if d > (len(rString)-1):
return count
elif(rString[n]==rString[d]):
count=count+1
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ae60b65118d3c1180e197aad843b28bad254a6a6 | f8aa2abd61af6a6f4ac770f203e36403551d2c55 | /server/swissvoice/__init__.py | 1b0167924380b0359bc9d86a3cd60acb9cf8c284 | [
"MIT"
] | permissive | DeepSwissVoice/SwissVoice | cebee779e49149ecf57a4be5bd44e2a0160f77bb | b99efff65112ee30fdfa089ef7b2755018290921 | refs/heads/master | 2021-05-08T20:17:02.416722 | 2018-09-07T08:20:18 | 2018-09-07T08:20:18 | 119,602,340 | 2 | 1 | MIT | 2018-09-07T08:20:19 | 2018-01-30T22:25:50 | JavaScript | UTF-8 | Python | false | false | 140 | py | import logging.config
from . import config
logging.config.dictConfig(config.logging)
from .__info__ import *
from .swissvoice import app
| [
"siku2@outlook.de"
] | siku2@outlook.de |
b0816e688ccd18e04b9c7d02949605c44f46615a | 8dad9c4fc22ba754179a86a5c74467249685b171 | /GCP/json_iot/json1.py | bb660dae90fab86e85c42e30b61f2ff2e8022988 | [] | no_license | ANTZ314/raspi | d3aefab9694c73767e0b243a8539f0c2fbb713a5 | a1688c2c3b0f0372f3c5674c8e098dcbebbfd38a | refs/heads/master | 2021-06-10T18:08:50.308992 | 2021-06-03T14:58:03 | 2021-06-03T14:58:03 | 173,297,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,183 | py | # -*- coding: utf-8 -*-
"""
Description:
Read from text file - which will be the QR Code scan
Fill in data feilds in the dictionary with QR data
Convert all data from dictionary to JSON format
Write to JSON file
NOTE: File CANNOT be called "json.py" -> causes error
"""
import json
from datetime import datetime
## Pro... | [
"antony.smith411@gmail.com"
] | antony.smith411@gmail.com |
b0078682d9309b0533457415986f66be8d1f638d | a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84 | /1344_AngleBetweenHandsofaClock.py | b0035c31ef61dbd58bc25508541a1fc4c9a5d6bb | [] | no_license | renukadeshmukh/Leetcode_Solutions | 0108edf6c5849946623a75c2dfd57cbf9bb338e4 | 1211eac167f33084f536007468ea10c1a0ceab08 | refs/heads/master | 2022-11-10T20:48:42.108834 | 2022-10-18T07:24:36 | 2022-10-18T07:24:36 | 80,702,452 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | '''
1344. Angle Between Hands of a Clock
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal
units) formed between the hour and the minute hand.
Example 1:
Input: hour = 12, minutes = 30
Output: 165
Example 2:
Input: hour = 3, minutes = 30
Output: 75
Example 3:
Input: hour = 3, minutes = ... | [
"renud1988@gmail.com"
] | renud1988@gmail.com |
9590a703ebd7cccb5148bfef900a8672639e429e | 09d44d959a474c55feea0d5560f505db4daa059b | /cfripper/cfripper/rules/iam_roles.py | 2f2daf9ce03d5897877fe345f4f68083a5c25528 | [
"Apache-2.0"
] | permissive | chuckbnorris/Canivete | c0b50809d09c5cf9b01ea969799ab90503593d9d | b8acef26765816c0bf33ed195a8bd74df03c7b70 | refs/heads/main | 2023-03-22T21:39:41.459158 | 2021-03-14T17:00:37 | 2021-03-14T17:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,629 | py | __all__ = ["IAMRolesOverprivilegedRule", "IAMRoleWildcardActionOnPolicyRule"]
from typing import Dict, Optional
from pycfmodel.model.cf_model import CFModel
from pycfmodel.model.resources.iam_managed_policy import IAMManagedPolicy
from pycfmodel.model.resources.iam_role import IAMRole
from cfripper.config.regex impo... | [
"gustcol@gmail.com"
] | gustcol@gmail.com |
c84452d3d699554f57753e383c70267ba1204539 | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/vlanrange_148db4d50cddf2f2a938c933ee8e9b16.py | 52b97f9d5d4ebd33952c083db1e21c8a210fa9b6 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 19,983 | 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, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
21b6699fab5696fc871b10df4f99ca48b5fd55d9 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_27304.py | 49af882549ee749898f219605d0844a65a7ae305 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,846 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
b0f15efaa73a6cb10404b27c2f307b17bb478b20 | 0ee9b76436f68987799551cbfcee7d37c78bdab8 | /plugin.video.sportwa/resources/lib/cfdecoder.py | c8aba2e94e58746063852219459e972283cbb95b | [] | no_license | gacj22/WizardGacj22 | 69f83b04c09b255525ba4247272fb5931b80b5e7 | ed4d80d1e6f09634c12c0c3096e39667c6642b95 | refs/heads/master | 2020-07-26T01:05:50.007884 | 2019-09-14T17:59:28 | 2019-09-14T17:59:28 | 208,479,686 | 4 | 3 | null | 2022-09-12T18:27:37 | 2019-09-14T17:47:12 | Python | UTF-8 | Python | false | false | 5,458 | py | # -*- coding: utf-8 -*-
# --------------------------------------------------------------------------------
# Cloudflare decoder
# --------------------------------------------------------------------------------
import re
import time
import urllib
import urlparse
from decimal import Decimal, ROUND_UP
cl... | [
"gacj22@gmail.com"
] | gacj22@gmail.com |
f009f0e8ca0d881ad1dfb5102ac402dd2ce76e63 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03286/s282830666.py | cb4c4d47baf0e6a86b226dc3e24f194a19006427 | [] | 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 | 240 | py | n = int(input())
if n ==0:
print(0)
else:
res = []
while n != 0:
if n % 2 == 1:
res.append("1")
else:
res.append("0")
n = (n-n%2) // -2
res = res[::-1]
print("".join(res))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0025685bbe25181fb9210203d6fd0bc7601d399c | 597ed154876611a3d65ca346574f4696259d6e27 | /dbaas/workflow/steps/mysql/deploy/config_fox.py | 8f08763a6f19fa5c2a30c3acf4de4ee9f655767f | [] | permissive | soitun/database-as-a-service | 41984d6d2177734b57d726cd3cca7cf0d8c5f5d6 | 1282a46a9437ba6d47c467f315b5b6a3ac0af4fa | refs/heads/master | 2023-06-24T17:04:49.523596 | 2018-03-15T19:35:10 | 2018-03-15T19:35:10 | 128,066,738 | 0 | 0 | BSD-3-Clause | 2022-05-10T22:39:58 | 2018-04-04T13:33:42 | Python | UTF-8 | Python | false | false | 4,386 | py | # -*- coding: utf-8 -*-
import logging
from dbaas_foxha.dbaas_api import DatabaseAsAServiceApi
from dbaas_foxha.provider import FoxHAProvider
from dbaas_credentials.models import CredentialType
from time import sleep
from util import get_credentials_for
from util import full_stack
from workflow.steps.util.base import B... | [
"ricardo@ricardodias.org"
] | ricardo@ricardodias.org |
ff1195865d3b89ad06031ed361d6cedd535d7acd | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /components/consent_auditor/DEPS | e85ccffd28061584157838d5847ab56418c0b3b1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 96 | include_rules = [
"+components/keyed_service",
"+components/prefs",
"+components/sync",
]
| [
"arnaud@geometry.ee"
] | arnaud@geometry.ee | |
44136e42828dbba47981c10618d40d8e870d3cc2 | d2252cfd56688a9b1e54e63a469040748bc17793 | /agendas/urls.py | 34b0bd02af41406081cef97b3a89338b0d76b206 | [] | no_license | eos87/cafod | ef7552ce2dbc1063354b8138a16f03f43ec8bc2c | c54180820184fdda52c62a85b3705a43af5d94c2 | refs/heads/master | 2020-12-30T18:50:28.442831 | 2012-04-24T18:01:12 | 2012-04-24T18:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from django.conf.urls.defaults import *
from django.views.generic import ListView, DetailView
from models import Agendas
urlpatterns = patterns('agendas.views',
url(r'^$', ListView.as_view(model=Agendas,
template_name="agendas/agenda_list.html"),
name="... | [
"crocha09.09@gmail.com"
] | crocha09.09@gmail.com |
aad36ae7779eab72d847a210a7a42ff81d040814 | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/Axiom_AIR_25_49_61/MainModeSelector.py | 1e5dca0b0ab306770c25455c0474ee9f72ec08d9 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/Axiom_AIR_25_49_61/MainModeSelector.py
from _Framework.ModeSelectorComponent import ModeSelectorComponent
from consts import *
class MainModeSelector(ModeSelectorComponent):
""" SelectorComponent that assigns navi... | [
"admin@scoopler.com"
] | admin@scoopler.com |
0fb22da2909a7387a61baac96c3c237148f450a9 | 435749b1e6c9bd4c40d845da6d278411fdc4dec4 | /app/api_1_0/posts.py | 572a094f02a3bab99cdeaa549171e5719eaf45eb | [
"MIT"
] | permissive | purelind/My_blog_purelind | da23bed1b3fece5a09a3968073362e1acffdc601 | 196227c9ef9b96f669761ea08535f8a4d963abe9 | refs/heads/master | 2022-12-24T04:26:42.413441 | 2018-04-29T11:27:01 | 2018-04-29T11:27:01 | 97,668,456 | 2 | 1 | MIT | 2022-12-08T00:41:31 | 2017-07-19T03:23:10 | HTML | UTF-8 | Python | false | false | 1,729 | py | from flask import jsonify, request, g, url_for, current_app
from .. import db
from ..models import Post, Permission
from . import api
from .decorators import permission_required
from .errors import forbidden
@api.route('/posts/')
def get_posts():
page = request.args.get('page', 1, type=int)
pagination = Pos... | [
"kevinsocial@outlook.com"
] | kevinsocial@outlook.com |
d2c46374856bff3fbfc0f573b2bdc2e1b1254fee | 1183f422948d4a9283c196ff6e19b68f04cb12dd | /profiles_login/profiles_login/asgi.py | 29ba23763739e5d30fe2f5f9db29be0ab3ddfe2b | [
"MIT"
] | permissive | madlad33/restapi-django-login | 8cfbb9bf207646da2156ed4128fcd2c907285ad1 | 08b8821c41b8a15131fc3ad6860d0c105daa4c90 | refs/heads/master | 2023-02-12T09:09:34.983026 | 2021-01-06T19:31:47 | 2021-01-06T19:31:47 | 325,009,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for profiles_login project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"tanmay.milky33@gmail.com"
] | tanmay.milky33@gmail.com |
b07688bb8ef54773e0e75112e3faa692c2509309 | ae81b16cf4242d329dfcb055e85fafe87262cc7f | /leetcode/I though I have idea/657. 机器人能否返回原点.py | f2dd8180150d1d75db7f5304cf708803f499d3e5 | [] | no_license | coquelin77/PyProject | 3d2d3870b085c4b7ff41bd200fe025630969ab8e | 58e84ed8b3748c6e0f78184ab27af7bff3778cb8 | refs/heads/master | 2023-03-18T19:14:36.441967 | 2019-06-19T02:44:22 | 2019-06-19T02:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | '''在二维平面上,有一个机器人从原点 (0, 0) 开始。给出它的移动顺序,判断这个机器人在完成移动后是否在 (0, 0) 处结束。
移动顺序由字符串表示。字符 move[i] 表示其第 i 次移动。机器人的有效动作有 R(右),L(左),U(上)和 D(下)。如果机器人在完成所有动作后返回原点,则返回 true。否则,返回 false。
注意:机器人“面朝”的方向无关紧要。 “R” 将始终使机器人向右移动一次,“L” 将始终向左移动等。此外,假设每次移动机器人的移动幅度相同。
示例 1:
输入: "UD"
输出: true
解释:机器人向上移动一次,然后向下移动一次。所有动作都具有相同的幅度,因此它最终回到它开始的原... | [
"zhangyiming748@users.noreply.github.com"
] | zhangyiming748@users.noreply.github.com |
21cf6bb802c5aa58846b9b9de90827a2f539a540 | fa3430fd579456707bad560f2bece51b39e2f007 | /applications/common/utils/gen_captcha.py | c97b8acffa92687081581d2fdf8664a85f557daa | [] | no_license | xuguangzong/LnkunAdmin | 4a9b2c1784f2d7386a5602b82b1648d0ace66d7f | 8be30d9f3049d36b6ad0e239ddccf647194d2ce6 | refs/heads/main | 2023-08-14T06:37:33.389291 | 2021-09-14T02:03:26 | 2021-09-14T02:03:26 | 405,866,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""
@Project : LnkunAdmin
@File : gen_captcha.py
@IDE : PyCharm
@Author : 小生爱吃窝窝头
@Date : 2021/9/13 10:44
"""
import random
from PIL import Image
from captcha.image import ImageCaptcha
def gen_captcha():
""" 生成验证码 """
image = ImageCaptcha()
# 获取字符串
captcha... | [
"2359301733@qq.com"
] | 2359301733@qq.com |
14de130cea077914525bf74fa8127bafba667024 | d44b67c55baa9fe6045ff947407eec04519dbebf | /rlpyt/experiments/scripts/atari/dqn/train/atari_r2d1_async_alt.py | 1ed66c15d4f47236e511cb369d1cc0ff158183a2 | [
"MIT"
] | permissive | zizai/rlpyt | e9ce863837473dab7540099d2ad399ff7729ff05 | 85d4e018a919118c6e42fac3e897aa346d84b9c5 | refs/heads/master | 2022-09-12T03:26:30.497037 | 2020-05-21T02:20:44 | 2020-05-21T02:20:44 | 266,970,605 | 1 | 0 | MIT | 2020-05-26T07:11:24 | 2020-05-26T07:11:24 | null | UTF-8 | Python | false | false | 1,686 | py |
import sys
from rlpyt.utils.launching.affinity import affinity_from_code
from rlpyt.samplers.async_.alternating_sampler import AsyncAlternatingSampler
from rlpyt.samplers.async_.collectors import DbGpuResetCollector
from rlpyt.envs.atari.atari_env import AtariEnv, AtariTrajInfo
from rlpyt.algos.dqn.r2d1 import R2D1
f... | [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
09e8d3733e1efc959b3957f7fcac8ad861ad3b10 | bf79a856c8a9dd2d72190883dc31f5e652a3b9e7 | /run/idp-sql/credentials.py | 5726c809cf317a3025b6c5c3b612acae58c4d859 | [
"Apache-2.0"
] | permissive | aog5/python-docs-samples | 5630c2864ee4f141e09d6909de3a3b7ac211703a | 300527f4b12369f6b0ad59fba42cc66159853bdd | refs/heads/master | 2022-10-28T04:48:52.060095 | 2022-10-18T06:50:12 | 2022-10-18T06:50:12 | 157,914,880 | 2 | 0 | Apache-2.0 | 2018-11-16T19:55:30 | 2018-11-16T19:55:30 | null | UTF-8 | Python | false | false | 1,761 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | aog5.noreply@github.com |
47edb6a977a55366f35ced83009722935e716631 | cb13037cdbd3e0ab6108670108e9497cc1e2a5a7 | /0.leetcode/3.刷题/2.算法系列/2.搜索/1.DSF/6.不同的二叉搜索树/95.mid_不同的二叉搜索树 II.py | 3bd6c923b2d79b8b21c894bac7c6b103a510ed5f | [] | no_license | GMwang550146647/network | 390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce | 576de9b993f7763789d25a995702b40c9bc6fa57 | refs/heads/master | 2023-06-15T04:42:54.306077 | 2021-07-12T06:06:02 | 2021-07-12T06:06:02 | 315,488,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from fundamentals.test_time import test_time
from fundamentals.tree import TreeNode
class Solution():
def __init__(self):
pass
@test_time
def generateTrees(self,n):
def gen_tree(s,e):
if s>=e:
return [None]
else:
all_trees=[]
... | [
"550146647@qq.com"
] | 550146647@qq.com |
57098ad2da3b116599cd2c0adeb305b1750f3568 | ddfc20cb2df0c936585f93f7fa879ce904151c29 | /core/python/SampleBase.py | a83769e7b8f34093c26d3d90736277415f9b8f73 | [] | no_license | llechner/RootTools | dc2b705217fdc3cb5871646956412a3f678bb4c3 | 21c1de6b087ea40c7356c056d049d385832d90ef | refs/heads/master | 2021-10-27T08:12:37.415387 | 2021-10-22T07:22:49 | 2021-10-22T07:22:49 | 160,841,285 | 0 | 0 | null | 2019-09-06T15:30:36 | 2018-12-07T15:28:45 | Python | UTF-8 | Python | false | false | 1,968 | py | ''' Abstract Class for a Sample.
'''
#Abstract Base Class
import abc
# Logging
import logging
logger = logging.getLogger(__name__)
# RootTools imports
import RootTools.core.helpers as helpers
class SampleBase( object ):
__metaclass__ = abc.ABCMeta
def __init__(self, name, files, normalization, xSection... | [
"robert.schoefbeck@cern.ch"
] | robert.schoefbeck@cern.ch |
1fa62a48c08e3fc2cd09a033787c83a390e6f9d8 | d77bb1886aa50cffb4c935f40fb128ac5e2964d0 | /model.py | 144615ca98063d2160d709abb1baae8856672ef8 | [] | no_license | katbelle/Flask_testing_2 | 0c59846b0d20a070f65b3b7375ebc9e70ba677cf | 01ba9836b064a571227b06db9c4daccd5f99fbc8 | refs/heads/master | 2020-04-04T12:06:31.867337 | 2018-11-02T19:46:10 | 2018-11-02T19:46:10 | 155,914,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Game(db.Model):
"""Board game."""
__tablename__ = "games"
game_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(20), nullable=False, unique=True)
description = db.Column(db.String(100))
d... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
d25e5c3569452cd14edab6cc10d74f9b72f57f49 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_123/433.py | f77b594fdf56cd704d96486a776478ed16be74ce | [] | 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 | 813 | py | import fileinput
fi = fileinput.input()
T = int(fi.readline())
for caseN in xrange(T):
A,N = map(int,fi.readline().strip().split())
sizes = map(int,fi.readline().strip().split())
sizes.sort()
mysize=A
answer=0
if A==1:
answer=N
else:
myind=0
nadd=[]
while myind < N:
if mysize>sizes[myind]:
mysiz... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f518af21128ee7cee1ea64a6666ac5b2ecfab9a1 | 6bbacd62a5dec87855fbaa6271be97d5219b9125 | /places/models.py | 8df50ed8e92a1526e30e7a4ad3a908f9662618d4 | [] | no_license | chenchiyuan/zoneke | e8889ae94e1fcf0ad2818cdbb12d76408b1498f3 | d4a29f36a725a43cc23c3f61d8faf510e3686932 | refs/heads/master | 2021-01-13T01:50:56.286112 | 2012-05-20T03:00:59 | 2012-05-20T03:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | # -*- coding: utf-8 -*-
from mongoengine.document import Document
from mongoengine.fields import StringField, GeoPointField, ListField
from core.const import CENTER_PLACE, PER_GEO, SLUG_MAX, PLACE_MSG_CENTER_PREFIX
from place_listener import PlaceMsgCenter
__author__ = 'chenchiyuan'
class Area(Document):
'''
... | [
"chenchiyuan03@gmail.com"
] | chenchiyuan03@gmail.com |
9a8817e759e43f3af0651f0fb3f2e10caf11518d | 2db25c568278495ac6101d5e6f89a61e9c8eca8d | /pyrl/processors/drop.py | b9487c56044c63dd8a4e9a22894981198fcd0bb8 | [
"MIT"
] | permissive | abesto/pyrl | b49a40301501bf8b514e9aaad4c11158e98f4f1a | 34eb9843217ed5b557bff99ed66ef46b49b5c295 | refs/heads/master | 2020-09-23T11:17:16.356169 | 2019-12-02T23:23:29 | 2019-12-02T23:23:29 | 225,488,000 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | #!/usr/bin/env python
import tcod
from pyrl.components import Energy, Equipment, Inventory, Name, Position
from pyrl.components.action import Action, DropFromInventory
from pyrl.resources import Messages
from pyrl.world_helpers import ActionProcessor, act
class DropProcessor(ActionProcessor):
@act(DropFromInvent... | [
"abesto@abesto.net"
] | abesto@abesto.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.