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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c186114a0216954a64e53918c7b378ef5e8a03cc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02572/s385611964.py | ccccaf7fdb46d6d3cec106fa87b84aca48df3463 | [] | 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 | 133 | py | N = int(input())
A = list(map(int, input().split()))
sm=0
mod=10**9+7
s=sum(A)
for i in A:
s-=i
sm+=i*s
sm%=mod
print(sm) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7c746fd0722e331339392a33d6dd6d0ee6bb447f | 47ae678aa432deb0eb4f99b6a9787853315ab899 | /qikan/spiders/SAGE98.py | cf07402e9740f4cf25e2bf0532526b2ee40a0397 | [] | no_license | RoggerLuo/python-scrapy-journal | 1f3fb2ac41d90d25a0b635932600ff2327bf22d1 | 38d8e714f346e5951bcb55487fc0056a834f30d8 | refs/heads/master | 2020-04-05T20:32:42.201876 | 2018-11-13T06:35:59 | 2018-11-13T06:35:59 | 157,185,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,645 | py | # -*- coding: utf-8 -*-
import scrapy
from qikan.items import QikanItem
import re
import time
from .config import Config,postItemWithPdf,postItem,proxyRequest
class Sage98Spider(scrapy.Spider):
name = 'SAGE98'
# url = input('请输入网址:')
start_urls = ['http://journals.sagepub.com/toc/ccxa/25/1']
base_url... | [
"luojie.5408@163.com"
] | luojie.5408@163.com |
104e018bb395b8b1d79f831552a6263af5c3fb3a | 9c4ceb78678a8755c6ac7e54a47e8054b6e79c2c | /core/registration/static/tests/all.py | 7451fc79c5027621889ad0002de165664b6750ac | [] | no_license | caseybecking/inventory | 068ca06a9b2c28a4baaea1c71491fa029552ab1b | aa74ed891f665a0eed6899b631e08b2227e42887 | refs/heads/master | 2021-01-23T01:41:28.443608 | 2014-03-17T15:32:49 | 2014-03-17T15:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from core.registration.static.tests.basic import * # noqa
from core.registration.static.tests.A_tests import * # noqa
from core.registration.static.tests.aux_attrs import * # noqa
from core.registration.static.tests.PTR_tests import * # noqa
from core.registration.static.tests.ipv6_basic import * # noqa
from core.... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
f96bee2aabbb2ff7ae9d9e3953a6e2004602c1d0 | 4e359e13ea42fd17901adb4f42b3e7d3c98b683b | /src/image_complete/webp.py | b964b1b3e2ca1393b2118481328afb910d7fe6fc | [
"MIT"
] | permissive | waikato-datamining/python-image-complete | 746aea9dadde82e718bfe5533aa86e05172f1886 | 3f88a7c60ff93a7bc9b4eed6a53e9be9220b3d9d | refs/heads/master | 2023-04-27T20:58:53.832539 | 2023-04-17T04:12:41 | 2023-04-17T04:12:41 | 181,777,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import struct
from io import BytesIO
from .base import load
def is_webp(img):
"""
Checks whether the image represents a WebP image.
https://developers.google.com/speed/webp/docs/riff_container
:param img: the absolute path to the WebP image or a bytes/BytesIO object
:type img: str or bytes or B... | [
"fracpete@gmail.com"
] | fracpete@gmail.com |
c6e5ba0ed254afc97046bf8920da882de756b4ee | b764a5e4da83bfb4bcc95f9b5e1e7def5058a91a | /pirates/quest/QuestLadderDB.py | e5b84f75657702de9b637819ffd80ba7b7a808c8 | [] | no_license | Kealigal/POS2013 | 452222fa48f0a0045b40b1d245031c6b99da5e2d | fff01f7229daeb5dd76116b1ac74c3584a7fe2b1 | refs/heads/master | 2020-03-07T10:02:57.766520 | 2018-03-29T09:53:30 | 2018-03-29T09:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154,678 | py | # File: p (Python 2.4)
from pirates.quest.QuestLadderDNA import QuestLadderDNA, QuestChoiceDNA, QuestBranchDNA
from pirates.quest import QuestDB
from pirates.quest import QuestLinkDB
from pirates.quest.QuestDNA import QuestDNA
from pirates.quest.QuestConstants import NPCIds, ExpRewards
from pirates.piratesbase import ... | [
"mlgrainbowluna@gmail.com"
] | mlgrainbowluna@gmail.com |
a536c0000e90b8763828e6a2c40f8c1b138c9b17 | c8f49fdec1611df9ad6782f67612fc521d767a33 | /Ch_7_User_Inputs_and_While_Loops/dream_vacation_7-10.py | b69451dccc8ee9639953ef737c54d1e0fea9faeb | [] | no_license | tdominic1186/Python_Crash_Course | 777f799102df8f7293201d7f90d33b6b48745fa0 | 135431b33cd7571b6f0e664b8e6cd21e16dd4471 | refs/heads/master | 2020-05-04T23:10:55.580312 | 2019-04-04T19:49:01 | 2019-04-04T19:49:01 | 179,535,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 14 12:39:34 2018
@author: ACANTAMA
"""
responses = {}
polling_active = True
while polling_active:
name = input("What is your name? ")
vacation = input(name.title() + ", if you could visit one place in the world, \
where would you go? ")
responses[name]... | [
"tdominic1186@gmail.com"
] | tdominic1186@gmail.com |
c80e128dc838d48408c5f770ef928f93dceee5a9 | 4520f56d4952c788e198ee7eee39911c9a76c60f | /03_Bigdata/04_AI/02.Text Mining/practice/1_CountVectorizer_TfidTransformer/3_Movie_Review/2_text_mining_regression.py | 3f602f64e32e9b67033ae58fba01300870918ed5 | [] | no_license | SuHyeonJung/iot_python2019 | bef8877a1cd41981ad2125291f5af44f4fd1701c | 7860630ae28c53677a3c2761c9e997b28ea55f26 | refs/heads/master | 2020-06-14T22:18:27.503781 | 2019-11-08T05:50:41 | 2019-11-08T05:50:41 | 195,142,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # 사용 모델: LogitsticRegression
# 고정 변수 항목 : review text에 쓰인 단어들, 단어 빈도
# 분석 목표(예측값) : 리뷰가 긍정인지 부정인지 판별
import pickle
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
with open('pre_movie_review.pickle', 'rb') as file:
label, voca, features = pickle.load(file)
... | [
"galma94815@naver.com"
] | galma94815@naver.com |
5ba82a0c8c520613272d7bb23bb3cba7454f0381 | 1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c | /paws/bin/eulb-register-instances-with-lb | cb96528d5d2ba0fa1346650e00f04658dbf7b818 | [
"MIT"
] | permissive | cirobessa/receitas-aws | c21cc5aa95f3e8befb95e49028bf3ffab666015c | b4f496050f951c6ae0c5fa12e132c39315deb493 | refs/heads/master | 2021-05-18T06:50:34.798771 | 2020-03-31T02:59:47 | 2020-03-31T02:59:47 | 251,164,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | #!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt
# EASY-INSTALL-SCRIPT: 'euca2ools===3.4.1-2-g6b3f62f2','eulb-register-instances-with-lb'
__requires__ = 'euca2ools===3.4.1-2-g6b3f62f2'
__import__('pkg_resources').run_script('euca2ools===3.4.1-2-g6b3f62f2', 'eulb-register-instances-with-lb')
| [
"cirobessa@yahoo.com"
] | cirobessa@yahoo.com | |
b5087cba420a169e92ca4dea27d5912494f98983 | bc441bb06b8948288f110af63feda4e798f30225 | /next_builder_sdk/model/flowable/process_instance_pb2.pyi | 1446b44da5ebf6e494e856ef6de0019a4ef958e9 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,527 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
9b71083886b2eb5468addb3d494c4cdb06cbe3e5 | b0df7ea65355163b910cd1c489e614f9ad7bd162 | /elvis/tests/views/test_composer.py | 184b30bd8192b1da669cb3b0bbde9c9d34eace97 | [] | no_license | vee-L/elvis-database | d95c8b79676e2464a6634fb53fe64cb607999cb9 | 37efd7d8499e7a3e71803e77a45118034ac7ab89 | refs/heads/master | 2020-12-29T00:29:25.943699 | 2016-03-02T18:19:04 | 2016-03-02T18:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from rest_framework.test import APITestCase
from rest_framework import status
from elvis.tests.helpers import ElvisTestSetup
from elvis.models.composer import Composer
class ComposerViewTestCase(ElvisTestSetup, APITestCase):
def setUp(self):
self.setUp_elvis()
self.setUp_user()
self.setUp_... | [
"a.g.parmentier@gmail.com"
] | a.g.parmentier@gmail.com |
b44b4115a4253c1c2f1e11df13e541b6d66d9e5e | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Cocoa/Examples/AppKit/TableModel/TableModel.py | c18db1c4bfde160d1045f3d62ed389610fd74666 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | """TableModel.py -- Minimal example showing how to use an NSTableView.
To build the demo program, run this line in Terminal.app:
$ python setup.py py2app -A
This creates a directory "dist" containing TableModel.app. (The
-A option causes the files to be symlinked to the .app bundle instead
of copied. This means ... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
42e0083e3d496154f33e912354bc621be53a5921 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_213/26.py | b11bbfd80ca710dd9665a8154928b1df3f9aaa37 | [] | 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 | 546 | py | #!/usr/bin/python3
import math
t = int(input())
for it in range(1, t+1) :
N, C, M = [int(i) for i in input().split()]
C = [0] * C
P = [0] * N
for _ in range(M):
p, c = [int(i)-1 for i in input().split()]
P[p] += 1
C[c] += 1
ans = max(C)
tot = 0
for i in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f8b3d266dfbb61292d5473d3b0639c725cd12af4 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/completion/hasattrCompletion/hasattrAndWithNot.py | 9e876d4805e9d47695646d66e909a2ef9f53907f | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 118 | py | def foo(x):
if hasattr(x, 'foo') and not hasattr(x, 'bar') and not not hasattr(x, 'baz'):
print(x.<caret>) | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
b5401d001244d2367887a64b49fab46425af2319 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/connectedvmwarevsphere/v20201001preview/inventory_item.py | fa96bab7b27b8f0ba6d0f3930bd98b4e3ca8ea52 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,119 | 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"
] | bpkgoud.noreply@github.com |
f300583fe17af0b3fcb1bdd040078714c4aa7a24 | ac6711cf815fdad87721cea21a6ff45f5de82bb5 | /src/youtime/extract_event_types.py | 13a54d4d6b5059f12e61593cc77e292cecaa24fc | [] | no_license | flaviovdf/youtime | 340913a08fc6bbe32bd7e1735704dbe3af9dc1b7 | 579dc3e76e1334947ae334b9dc0abffca2f31719 | refs/heads/master | 2021-01-19T02:39:44.260330 | 2016-08-02T22:42:16 | 2016-08-02T22:42:16 | 10,673,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | # -*- coding: utf-8
'''
Map reduce script which prints out every event type
found in raw html files.
'''
from __future__ import division, print_function
from vod.mapreducescript import BaseMapper
from vod.mapreducescript import Runner
from youtime.mapred.ig import ListDir
import re
import sys
LINKS_START_RE = r'Li... | [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
e96856514513cc0ff5506d61484a1545849dcb64 | 24cee07743790afde5040c38ef95bb940451e2f6 | /acode/abc290/c/ans.py | 8116b7e9006d4a5e1615aac8c07c59b2f0e2d9c4 | [] | no_license | tinaba96/coding | fe903fb8740d115cf5a7f4ff5af73c7d16b9bce1 | d999bf5620e52fabce4e564c73b9f186e493b070 | refs/heads/master | 2023-09-01T02:24:33.476364 | 2023-08-30T15:01:47 | 2023-08-30T15:01:47 | 227,594,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | N,K = map(int,input().split())
A = set(map(int,input().split()))
ans = 0
for i in range(K):
if i in A:
ans += 1
else:
print(ans)
exit()
print(ans)
| [
"tinaba178.96@gmail.com"
] | tinaba178.96@gmail.com |
735f8f5208c3daa1b33a5a3beeeefd8df199e61a | a4653fb6c5a7a9e6db0457480e9e860c5304b2b8 | /loop/continue_keyword.py | 65f1a06a32abd7a65a0a38b9350f72b6a5c47093 | [] | no_license | pratik-iiitkalyani/Python | c315ca1f3a2446ccb871b74026edae97daec3773 | 082ae6d833f151054567d737de543898ebfe1d87 | refs/heads/master | 2020-08-07T05:59:21.930089 | 2020-01-04T17:05:27 | 2020-01-04T17:05:27 | 213,324,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | # continue
# print 1to 10, but not 5
for i in range(1,11):
if i==5:
continue
print(i) | [
"ts-pratik.kumar@rakuten.com"
] | ts-pratik.kumar@rakuten.com |
59238eb7af3078ff2d54a97a9044d082df5ce954 | 53ed8b8d650439ba9aac764f5de5d96b67cbd77a | /1356. Sort Integers by The Number of 1 Bits 2.22 contest.py | 0ca29272d272e0446ade5c594739c03dffe92b38 | [] | no_license | IrwinLai/LeetCode | df49d152b4bf439c966afa53eecfe3022fb043ae | 779c3a98d9052a12d319c0219324e5d0f5517fc6 | refs/heads/master | 2021-07-03T08:02:55.425285 | 2021-03-21T11:19:46 | 2021-03-21T11:19:46 | 221,848,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | class Solution:
def sortByBits(self, arr: List[int]) -> List[int]:
arr.sort(key = lambda x:(list(bin(x)[2:]).count('1'),x))
return arr | [
"noreply@github.com"
] | IrwinLai.noreply@github.com |
4c7da0fd8751e40a703a88b60926493e8773e4a0 | ecb448dd3622d7afa1a3ea59db9418b49bf06c15 | /config.py | 1ed7f25be30ec54ee680f14ef5da5055bd966336 | [] | no_license | RZachLamberty/learnedleague | 90238f9bcbfd2919f98810e4208d061a6ab21cf9 | 191af72de3dea8085e2138c6c696abf1c44a177f | refs/heads/master | 2021-08-26T07:08:38.479449 | 2017-11-22T04:15:41 | 2017-11-22T04:15:41 | 111,635,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module: config.py
Author: zlamberty
Created: 2017-11-21
Description:
simple configuration details
Usage:
<usage>
"""
URLS = {'base': 'https://www.learnedleague.com'}
URLS['profile'] = '{}/profiles.php'.format(URLS['base'])
URLS['login'] = '{}/ucp.php'.forma... | [
"r.zach.lamberty@gmail.com"
] | r.zach.lamberty@gmail.com |
ccb69a02f0e239383aba54bc5b45beb10ced9da0 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1Jb1Q2Z6YzwFgRTFsPLQouxWrDRDnqo2Gs_babylon.py | 2dd77ffd6ef039b9b73ad0f60a2fde375c2bf22f | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,170 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1Jb1Q2Z6YzwFgRTFsPLQouxWrDRDnqo2Gs_babylon(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
8825fbe5d275f627822d7e947523d3c014aba351 | 267a8177d62c4ae3862b1a99e5e6332bc2e66ec2 | /nova/policies/remote_consoles.py | 43b7870dc48af2a74d6684849b6ace95de001046 | [
"Apache-2.0"
] | permissive | cloudbase/nova | faaa803faa0888594b25a2e9071d92758a70b0cb | ddbbf5782759c5b437c8a7bbb9291d038bcf915b | refs/heads/master | 2020-04-06T17:52:04.697348 | 2016-10-12T15:58:56 | 2016-10-12T15:58:56 | 22,788,176 | 0 | 2 | Apache-2.0 | 2018-02-14T08:53:12 | 2014-08-09T14:48:19 | Python | UTF-8 | Python | false | false | 1,102 | py | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"cbelu@cloudbasesolutions.com"
] | cbelu@cloudbasesolutions.com |
897812931eaf58748376234936255068f38e3290 | 815da50296b63d191ebedd4564daa955b604c2c5 | /app/core/migrations/0014_auto_20201010_1535.py | 88a49014957bce74afc3a11293105c39c4bd348c | [] | no_license | saif43/inventory_app_api | 762c2b97f95a6d382b4adcf0233dafb0f0f4283c | fc447d2dd355ee0f6bacd713d85795e5f35957fb | refs/heads/master | 2023-02-02T16:11:52.435789 | 2020-12-20T06:38:15 | 2020-12-20T06:38:15 | 293,722,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.2.16 on 2020-10-10 15:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0013_expense'),
]
operations = [
migrations.AlterField(
model_name='expense',
name='amount',
fi... | [
"saif.ahmed.anik.0@gmail.com"
] | saif.ahmed.anik.0@gmail.com |
b64c8be0a9b7a3b3318c004b78d95f0a64689b8c | 7ec35bd037077e9b65d3fa26a91978e8652c7409 | /Stream-3/Full-Stack-Development/4.Hello-Django-Administration/4.-Wire-Up-A-Model-To-A-Template/ModelTest/ModelTest/urls.py | eca2c5913cb350377838af2a7c3bffa2e0e6cb2a | [
"MIT"
] | permissive | GunnerJnr/_CodeInstitute | 8f743abef66c33a77ce13ca719963e93ffe22607 | efba0984a3dc71558eef97724c85e274a712798c | refs/heads/master | 2023-01-05T10:53:57.536047 | 2020-01-27T13:04:12 | 2020-01-27T13:04:12 | 99,014,961 | 8 | 6 | MIT | 2022-12-26T20:24:35 | 2017-08-01T15:15:55 | CSS | UTF-8 | Python | false | false | 879 | py | """ModelTest URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"gunnerjnr@live.co.uk"
] | gunnerjnr@live.co.uk |
24b1674d73313973f1bf269c94816f99c7b7b332 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/InAIte/scripts/addons/run_from_blender.py | c9d3fe11e5e831b5ee2df0df2ac5db953fb917a2 | [] | 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 | 792 | py | for f in range(30):
print("")
import bpy
import sys
path = r'''C:\Users\Peter\Documents\Hills road\Computing\A2\COMP4\CrowdFX\scripts\addons'''
sys.path.append(path)
import imp
from types import ModuleType
done = []
def rreload(module):
"""Recursively reload modules."""
done.append(module)
print("... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4c3857ff6b8575fbf86090124dc280979b38b9e3 | 0da627b78feede9437c669d5776b79150aa12236 | /datadog_checks_base/tests/test_utils.py | ee10b212675d66076679119292acc3310112bfa7 | [] | permissive | ofek-public/integrations-core | 92977b2c9092fbbe224e208052d5820af0a86e5a | 1e580549576f668eed98f6c443fb907d8060847d | refs/heads/master | 2021-10-23T20:42:54.090006 | 2021-10-12T08:25:46 | 2021-10-12T08:25:46 | 174,144,200 | 0 | 1 | BSD-3-Clause | 2019-03-06T12:48:26 | 2019-03-06T12:48:26 | null | UTF-8 | Python | false | false | 1,548 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.utils.common import pattern_filter
class Item:
def __init__(self, name):
self.name = name
def __eq__(self, other):
return self.name == other.name
class TestPatternF... | [
"mpippi@gmail.com"
] | mpippi@gmail.com |
f36f3ac892b21c7591b12856dadba518755f0df7 | 6ad03699c6b3a9721e1dfe4a7e507fc198b11122 | /CodingDojo_Python/main1/apps/vinmyMVC/urls.py | 5b6e15a0fecc5bcc6021cd7873c31db2b12cab25 | [] | no_license | anishg1231/Coding_Dojo2016 | 9389c0b44c6905def87a00c83154f79fb6fd04ae | 0b55abeab2acf3d2cff8c8ebf8bd0297f0dcebe7 | refs/heads/master | 2020-07-04T10:16:22.000965 | 2017-09-26T19:59:32 | 2017-09-26T19:59:32 | 74,075,734 | 0 | 0 | null | 2017-09-21T16:34:28 | 2016-11-17T23:13:17 | Python | UTF-8 | Python | false | false | 165 | py | from django.conf.urls import url
# from django.contrib import admin
from.import views
urlpatterns = [
url(r'^$', views.index),
url(r'^users$', views.show)
]
| [
"agheewala1231@gmail.com"
] | agheewala1231@gmail.com |
0a57d9b214868021c805bddbc157ac4afa26f163 | 4ba9a6274d78ff47bc00920be790b62390fc8f42 | /16最接近三数之和.py | 01bb14c56ddc2ed8e119018ec9a83ef75cf2d898 | [] | no_license | wzwhit/leetcode | 02b04f9f354de321a32d8e5b93f20a527100cca5 | e732ee7e99a015a0d124677ab73fb58fc8e64b59 | refs/heads/master | 2020-04-26T03:02:06.380171 | 2019-08-23T04:04:42 | 2019-08-23T04:04:42 | 173,253,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # 给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。假定每组输入只存在唯一答案。
# 例如,给定数组 nums = [-1,2,1,-4], 和 target = 1.
# 与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2).
# 与15题三数之和类似,先排序,遍历数值指定第一个数,双指针找其他两个数,O(n*2)时间复杂度
class Solution:
def threeSumClosest(self, nums: List[int], target: int) -> int... | [
"1064951590@qq.com"
] | 1064951590@qq.com |
b7598a3d2dfef1621344eddaa6a8940f62cff083 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03011/s128860167.py | 6cd769de1ff3c4fa493341835f9b2fc47aace54a | [] | 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 | 63 | py | a= list(map(int,input().strip().split()))
print(sum(a)- max(a)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
88928f7d840b15150ef08473935022503c5c42b7 | 8cbe4f97176a01d6a64ab33e32ad9896a0266670 | /anna_code/icd/tally_icd.py | 8670690730068b40ac46f52500abe95e6aea1fc6 | [] | no_license | HongyuanWu/ukbb-1 | 33228c189acad5f28d3d892f761ebc6a29627c38 | b52a431c0d35f4a5d49b0541a42a4a840d086e02 | refs/heads/master | 2022-03-31T04:13:55.367963 | 2020-01-21T20:50:54 | 2020-01-21T20:50:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #tallies up the ICD codes and maps them to the corresponding disease meaning
import argparse
import pdb
def parse_args():
parser=argparse.ArgumentParser(description="tallies up the ICD10 codes in UKBB subjects and maps them to corresponding disease meaning")
parser.add_argument("--bulk_data",default="/oak/stanf... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
e50a895a4e4f1d1d8dfd26c2dadb8f525d76fe1b | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_atoms_Reorgs_qsplit_fittedscreens/Jobs/Sexithiophene/Sexithiophene_cation_neut_inner6_outer0/Sexithiophene_cation_neut_inner6_outer0.py | 536071d1ff8de471cc57ec21adcb524aefb855ca | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 7,555 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
33feefdf08953ab84a85802b02be30089f46b7f4 | 3ff7d85304b25668ddabc6b16fe7148814ac5b99 | /vendor/PepperTools/naoqi_proxy_python_classes/ALAutonomousLife.py | 051a166a66627fc8ac6313f2c8cbc57c2146e0af | [] | no_license | randombenj/hslu-roblab-renate | 4f0951f72f9ee301163dbb4b5e0c01265a6121fd | 1b9ddd6cddc8f5c0d2042f3e49d84640eb0a0d9e | refs/heads/master | 2023-02-08T08:47:15.856506 | 2023-01-11T07:13:39 | 2023-01-11T07:13:39 | 219,535,524 | 2 | 0 | null | 2023-02-08T00:53:23 | 2019-11-04T15:36:51 | Python | UTF-8 | Python | false | false | 10,815 | py | #!/usr/bin/env python
# Class autogenerated from /home/sam/Downloads/aldebaran_sw/nao/naoqi-sdk-2.1.4.13-linux64/include/alproxies/alautonomouslifeproxy.h
# by Sammy Pfeiffer's <Sammy.Pfeiffer at student.uts.edu.au> generator
# You need an ALBroker running
from naoqi import ALProxy
class ALAutonomousLife(object):
... | [
"randombenj@gmail.com"
] | randombenj@gmail.com |
5b261526b086e0a06fc4c4f1c6fd256e3fe17416 | ddbf241462454bc3f9cfef1ce8bb23c192959028 | /Exercise3app/migrations/0008_idoldetail_profilepicture.py | 44e287a30d216655873da0410a668227a1d3095b | [] | no_license | 1loveanime/Exercise3 | b772f493569e618e1b7640623b37b3983a59e349 | be24bd857c83b162c50d2d79c6f6d081eee855e3 | refs/heads/master | 2020-05-04T15:40:17.035818 | 2019-04-08T08:16:34 | 2019-04-08T08:16:34 | 179,251,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # Generated by Django 2.0.13 on 2019-04-05 06:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Exercise3app', '0007_auto_20190405_1058'),
]
operations = [
migrations.AddField(
model_name='idoldetail',
name='pro... | [
"you@example.com"
] | you@example.com |
f37443763bc2ce7a49a5093e73da2d36edcdb70d | 918f0fdef0e9224aa1a0596479178618290055ec | /mmdet3d/core/utils/gaussian.py | 854faaae338b963690fa252c07352893730def73 | [
"Apache-2.0"
] | permissive | Tsinghua-MARS-Lab/futr3d | b7eb3a0c9d92a58759c9c43e96bfd024a2e3de96 | 9130d71e487bad47f5dbcffd696fe9e4a838104f | refs/heads/main | 2023-07-24T15:40:00.121665 | 2023-07-06T05:50:45 | 2023-07-06T05:50:45 | 499,766,918 | 188 | 27 | MIT | 2022-06-19T10:42:03 | 2022-06-04T08:21:17 | Python | UTF-8 | Python | false | false | 5,410 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import torch
def gaussian_2d(shape, sigma=1):
"""Generate gaussian map.
Args:
shape (list[int]): Shape of the map.
sigma (float, optional): Sigma to generate gaussian map.
Defaults to 1.
Returns:
... | [
"noreply@github.com"
] | Tsinghua-MARS-Lab.noreply@github.com |
e632ec110eaf54bc746540bb540d7a4b25058be4 | 99e1a15d8f605be456f17608843c309dd8a3260f | /src/Battle/Attack/EffectDelegates/Test/weather_charge_test.py | 1348f25ef1250243bde067504b4016b14377e87d | [] | no_license | sgtnourry/Pokemon-Project | e53604096dcba939efca358e4177374bffcf0b38 | 3931eee5fd04e18bb1738a0b27a4c6979dc4db01 | refs/heads/master | 2021-01-17T23:02:25.910738 | 2014-04-12T17:46:27 | 2014-04-12T17:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | import unittest
from Test.test_helper import *
from Battle.battle_environment import BattleEnvironment
from Battle.Attack.EffectDelegates.weather_charge_delegate import WeatherChargeDelegate
from Battle.Weather.hail import Hail
class isCharging(unittest.TestCase):
""" Test cases of isCharging """
def se... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
cca37808dff61c614a8ffa0a53ce7445d46586d1 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/perfectsquare_20200504163734.py | c91482860fb04a05e7fec52a76aaff5c91867c61 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import math
def perfect(sq):
root= int(math.sqrt(sq))
root1 = math.pow(root,2)
print(root,'root')
if root1 == sq:
print(sq,'is a perfect square')
print (root1,'square')
# next = math.pow(root + 1,2)
print (next,'next')
else:
# print(root1)
print('It... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
084c6eb385b35f2243671af649b09aeef8f03143 | 77a014156f639330f10162b79e6fa31fce7e88f9 | /adminacttools/acttools/Identity.py | c60a3a00e4121ba1a9ee28d1ebac5417ca26abcb | [
"Apache-2.0"
] | permissive | tmbx/teambox-acttools | 1d50e6cdc2c78fb31f1bf8da05897971439645c5 | 4ca2e0a59d37cfa9756047e9655f6a769b688a9e | refs/heads/master | 2016-09-05T19:12:05.439175 | 2013-05-16T19:56:42 | 2013-05-16T19:56:42 | 3,780,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,223 | py | #
# Copyright (C) 2010-2012 Opersys 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... | [
"karim.yaghmour@opersys.com"
] | karim.yaghmour@opersys.com |
02c81f6bbeec6953b1a9cd8cfcfe2c796e3abaf8 | df353a4f73203a415b8c97a35e1957b12b42c6dc | /pylinnworks/inventory/inventory_view_column.py | 51b0b7f552825e91781964c455ba8cd58ff52b97 | [] | no_license | stcstores/pylinnworks | f65b2a6a6970f6b412faea2fba7b1dda66d13b5a | 9953dc500f24714ace1b4aa1b6a1f91e95c12597 | refs/heads/master | 2021-01-12T00:38:00.465911 | 2017-02-14T13:32:51 | 2017-02-14T13:32:51 | 78,750,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | import json
from pylinnworks.api_requests import GetInventoryColumnTypes
class InventoryViewColumns:
def __init__(self, api_session):
self.api_session = api_session
data = GetInventoryColumnTypes(self.api_session).response_dict
self.columns = [
InventoryViewColumn().load_from... | [
"luke@lukeshiner.com"
] | luke@lukeshiner.com |
236952c23f96ef2de21895043214d525bcc43801 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /asset/snippets/quickstart_list_saved_queries_test.py | d09c2c0c1a666869257d50e6ec0834744e76bc37 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/env python
# Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"71398022+dandhlee@users.noreply.github.com"
] | 71398022+dandhlee@users.noreply.github.com |
66bb5026b12b0e70bdfcebfb6b60b960ab749923 | e027847c96e45561acb729cd2ef07c23543c5fcf | /details/urls.py | ccca283484a65652b7cdd5ff8ed23180a8ea1439 | [] | no_license | Shwetabhk/IFSC_REST_API | e897e6026f6d7631f89f75c397bac16d37965c30 | 0b372cbe9d7ea129b582ccc91a2ee03eb3bf8a15 | refs/heads/master | 2023-01-08T16:44:44.305233 | 2018-11-18T13:58:14 | 2018-11-18T13:58:14 | 158,086,644 | 1 | 2 | null | 2022-12-08T01:18:01 | 2018-11-18T13:27:59 | Python | UTF-8 | Python | false | false | 315 | py | from django.urls import path
from .views import ListBankView, FromIFSCView, FromBankInfoView
urlpatterns = [
path('banks/', ListBankView.as_view(), name="banks-all"),
path('banks/<str:pk>/', FromIFSCView.as_view(), name="from-ifsc"),
path('branches/', FromBankInfoView.as_view(), name="from-info"),
]
| [
"shwetabh002@gmail.com"
] | shwetabh002@gmail.com |
fd6d18801ab8c27c07da86ecae75bbffa6fd2687 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/staticfiles_tests/models.py | 26572b650dda339be4081b64bd1383342db9f041 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/staticfiles_tests/models.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
cf6b050da2190943aefbc32a344865b33fd46df8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /4GT8pM8JQHW97bYzi_0.py | 7245d889718695c74e6383d6f9d2857f7d1f4e09 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | """
In this challenge, write a funcion `loneliest_number` to find the last
_Lonely_ number inside a sequence. A number is _Lonely_ if the distance from
its **closest** Prime sets a new record of the sequence.
Sequence = from 0 to 3
# Any number lower than 3 doesn't have a Prime preceeding it...
# .... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
df098c70e5e9610277c1fd593328f0af32a22eac | c33496682b760deac61fedecba3e82ce4e41dfde | /scripts/e392.py | 59f5745ef67c7dee1f39ddf0120048050fa308e8 | [
"MIT"
] | permissive | ferasalsaab/neuralnilm_prototype | c5e9cde02d475ac499b15fea62143e76adff07d0 | 2119292e7d5c8a137797ad3c9abf9f37e7f749af | refs/heads/master | 2020-04-16T14:38:03.615279 | 2018-01-29T15:30:43 | 2018-01-29T15:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,236 | py | from __future__ import print_function, division
import matplotlib
import logging
from sys import stdout
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
from neuralnilm import (Net, RealApplianceSource,
BLSTMLayer, DimshuffleLayer,
Bidirectio... | [
"jack-list@xlk.org.uk"
] | jack-list@xlk.org.uk |
209dbd78fabdc6ed18e03b22c3f3d591f216c2e3 | 7dc77414abe19554f0f7dd7241a45dcff116a0b4 | /tools/_lib/client/bean/match.py | 816e7081b02589a2623ddcb78a033e961beab550 | [
"MIT"
] | permissive | zhongxinghong/Botzone-Tank2 | fd543de5378681e49cb619e793b690a646524579 | 17fd00a57405ddd2f2bace58bab27800080b1fc7 | refs/heads/master | 2022-07-12T13:46:02.245187 | 2019-06-01T08:07:37 | 2019-06-01T08:07:37 | 183,338,511 | 12 | 0 | MIT | 2022-07-06T20:08:59 | 2019-04-25T02:10:29 | Python | UTF-8 | Python | false | false | 5,696 | py | # -*- coding: utf-8 -*-
# @Author: zhongxinghong
# @Date: 2019-05-05 16:54:33
# @Last Modified by: Administrator
# @Last Modified time: 2019-05-23 19:20:13
__all__ = [
"RankMatchBean",
"FavoriteMatchBean",
"GlobalMatchBean",
"GroupContestMatchBean",
]
from ...utils import CachedProperty
from... | [
"zxh2017@pku.edu.cn"
] | zxh2017@pku.edu.cn |
bad4b40af06284ec5fcbc2e4d68a86ec15cf8fbd | 172f089f84b6ac54ddac69a15937a81c62f681f5 | /stucampus/dreamer/apps.py | f58ae4e02d02ca6b1653de8057f7f99d21e2a1ac | [] | no_license | szu-stu/stucampus | 97877cedc7f69a2aeaa3d45a08f3d6a9afc0becc | bb5ceac5f29959be054680854d9b70fac6d8ff21 | refs/heads/master | 2020-04-11T04:30:12.512612 | 2017-09-14T01:59:53 | 2017-09-14T01:59:53 | 68,268,353 | 5 | 14 | null | 2016-11-24T14:21:45 | 2016-09-15T05:16:41 | Java | UTF-8 | Python | false | false | 134 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class MemberInforConfig(AppConfig):
name = 'dreamer'
| [
"shonenada@gmail.com"
] | shonenada@gmail.com |
506cb44cf20ca2747029e063f1caa261d7fe41dd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02407/s738227486.py | 743f3ecc529c0349ae863f75a95196688b4e19ba | [] | 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 | 54 | py | dummy = input()
print(' '.join(input().split()[::-1])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5585eda572b4a5c9fa856ea9ee7651187f7d8b39 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/328/71060/submittedfiles/formula.py | 6657ec68f9412056d44075dcf2b90ae654a6d7aa | [] | 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 | 140 | py | # -*- coding: utf-8 -*-
p=float(input('digite o valor de p:'))
i=float(input('digite o valor de i:'))
n=float(input('digite o valor de n:')) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1ff281353e11b4b6662f98a3f71d4c05eb39a0dd | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/external/importtools.py | d1f57acd0e3933e8abb47669916439e7cfd49c7d | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 7,383 | py | """Tools to assist importing optional external modules."""
import sys
from distutils.version import LooseVersion
# Override these in the module to change the default warning behavior.
# For example, you might set both to False before running the tests so that
# warnings are not printed to the console, or set both to ... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
95b6705746caa33b7e3603cea399dec652aab3a4 | c5a618ab198a7cc93b35715af2575ad4932f8dbb | /4_cupy/b.py | 80a4d2a0f08b4e565c4773bedea0d33d16597101 | [] | no_license | JaeDukSeo/Personal_Daily_NeuralNetwork_Practice | f33808a0413e130beae27f80fb4cc524834a8cc5 | f83ad23faefd726c647cc1d78021c25e086581be | refs/heads/master | 2021-09-12T07:20:49.212032 | 2018-04-15T08:15:37 | 2018-04-15T08:15:37 | 114,972,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,963 | py | import urllib.request
from io import BytesIO
from PIL import Image
import numpy as np
import cupy as cp,time,sys
import matplotlib.pyplot as plt
from numba import jit, double
s = 15
array_a = np.random.rand(s ** 3).reshape(s, s, s)
array_b = np.random.rand(s ** 3).reshape(s, s, s)
# Original code
def custom_convolut... | [
"jae.duk.seo@ryerson.ca"
] | jae.duk.seo@ryerson.ca |
4b53bac13ec9e14c5c2e67cac65ee84b387b34f8 | 47251a29e3141277b3c4fb2b09711ac1336d8ed3 | /Titanic/Titanic.py | ec4af8c330e464c4ebd5f3e09410675f008635a1 | [] | no_license | librauee/DataMining | 15c2390c5638757560500a6b0afeb829602b00aa | e97e2a7e31df2f152397c1d79aa2976ad30c0fb3 | refs/heads/master | 2020-04-24T23:07:52.193195 | 2020-04-12T03:49:01 | 2020-04-12T03:50:22 | 172,333,391 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,450 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 6 19:50:55 2019
@author: Administrator
"""
import pandas as pd
import numpy as np
#显示所有列
pd.set_option('display.max_columns', None)
#设置value的显示长度为100,默认为50
pd.set_option('max_colwidth',100)
data_train=pd.read_csv("./Titanic/Train.csv")
#print(data.info())
#print(data.... | [
"870407139@qq.com"
] | 870407139@qq.com |
157fa038553aa02ba92261b9c338fd18d0094005 | a60e777378ddf45f7cfd5a29f20f1b10d2936481 | /python/lsst/sims/selfcal/transmission/aerSim.py | 46969146696672e39a24ef88b93b3fc8c5715215 | [] | no_license | jonathansick-shadow/sims_selfcal | 4b1dfa89b5f4f148766e416bf3d0266cbf116463 | 32a988660af339056300343f0390cbb293c7d60e | refs/heads/master | 2021-01-24T09:50:31.940565 | 2015-09-28T18:07:33 | 2015-09-28T18:07:33 | 45,875,612 | 0 | 0 | null | 2015-11-10T00:04:47 | 2015-11-10T00:04:47 | null | UTF-8 | Python | false | false | 18,383 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import numpy as np
# import matplotlib.pyplot as plt
import numpy.fft as npf
import numpy.random as npr
import numpy.linalg as npl
from scipy.interpolate import InterpolatedUnivariateSpline # , splev, splrep
# LOCAL
#------
# mainpath = '/Users/alexandreboucaud/... | [
"yoachim@uw.edu"
] | yoachim@uw.edu |
108f24a025ed00feb7827caa7d0751e6eaf32500 | cf6ddc0309c1744cd9cdc215fb89ff0db9dbb3d5 | /pm25_server.py | 33b4aaee2fb8e1c99d913eec1de1a19d4ea6c0b2 | [] | no_license | nuaays/PM25_Tornado_Server | fa664ce0f3e263f17640caccbdd27c8d40d40e23 | 5365c3ebf4ba398f9632526a6bd680b78b05f6d9 | refs/heads/master | 2021-01-01T17:33:21.053134 | 2016-03-01T00:59:50 | 2016-03-01T00:59:50 | 19,991,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,209 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Note: Setup on AWS EC2 Linux Server
# App can get the PM2.5 JSON data from the URL: http://ec*-*-*-*-*.XX-XX-X.compute.amazonaws.com:8888/{CityName}
#
import tornado.ioloop
import tornado.web
import simplejson as json
import pickle
import requesocks as requests
impor... | [
"nuaays@gmail.com"
] | nuaays@gmail.com |
be965a8b97ec047abf98ffd4adfe98bebf458960 | 270f6259756f29cd26dd75e46682ff0dfa9ddeb8 | /AthenaCommon/python/AlgSequence.py | 6548b7b8b7030903e96bab60aa80ac7c01dc3943 | [] | no_license | atlas-control/control | 79066de6c24dc754808d5cecc11e679520957e00 | 8631c6b8edb576caf247c459c34e158c1b531f50 | refs/heads/master | 2016-08-12T03:03:51.372028 | 2016-02-28T22:29:15 | 2016-02-28T22:29:15 | 52,747,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,255 | py | # File: AthenaCommon/python/AlgSequence.py
# Author: Wim Lavrijsen (WLavrijsen@lbl.gov)
# Author: Sebastien Binet (binet@cern.ch)
__version__ = '$Revision: 1.21 $'
__author__ = """Wim Lavrijsen (WLavrijsen@lbl.gov)
Sebastien Binet <binet@cern.ch>
"""
__all__ = [ 'AlgSequence', 'AthS... | [
"dguest@cern.ch"
] | dguest@cern.ch |
c5c2769c8a60dce833c7f7987e762b15fe10779f | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01/aio/_configuration.py | aa91ae19fe510176d76bdcbc85e1334927efbb24 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 3,661 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
3dce680d4ceb9a18b39ecb0f3a68da8548b52db9 | d6833270e21fc14d8dd9d6624f8906ed7fe3ae86 | /__init__.py | 75c8c7fc38a56bbae4f7dba3b7a755888ffebea7 | [
"MIT"
] | permissive | ChienDavid/pysoarlib | 0f9c91424f7900d43b39e401f91274b0fdf21540 | 3c722d163acf3dd35c5be914bf200e23369e169a | refs/heads/master | 2022-10-24T22:37:24.839494 | 2020-06-13T15:10:32 | 2020-06-13T15:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | """ Helper classes and functions for creating a soar agent and working with SML
Depends on the Python_sml_ClientInterface, so make sure that SOAR_HOME is on the PYTHONPATH
SoarAgent and AgentConnector are used to create an agent
WMInterface is a standardized interface for adding/removing structures from working memor... | [
"mininger@umich.edu"
] | mininger@umich.edu |
1167bed1c212000aae6cd1159b7b6e058211b35f | 4c0328c7fa7805cdd196cf890695ec1a8a438a5f | /devel/lib/python2.7/dist-packages/pal_navigation_msgs/msg/_NavigationStatus.py | c70121c70c31134befda0f4f1d7eaa995f47241b | [] | no_license | SebsBarbas/iRob_KTH | d98dfce8692bdd4d32ce3a4d72daa8d022976c0a | c164c9d12efcab56b4871fc5bb5538df5849a42e | refs/heads/main | 2023-01-23T10:49:59.073113 | 2020-12-04T18:49:53 | 2020-12-04T18:49:53 | 318,595,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,556 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_navigation_msgs/NavigationStatus.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class NavigationStatus(genpy.Message):
_md5sum = "37841f68... | [
"ssbl@kth.se"
] | ssbl@kth.se |
94b35bc94a905e74d456dc0f2b033ad1229e6a50 | a369fac78bd8e17250b2c8bfdca90be79a40c8f5 | /utils/data.py | 414d4d861997a3cac557f6ec0f1811645ddf3f7b | [
"BSD-3-Clause"
] | permissive | TrentBrick/flu-sequence-predictor | 1713954462cdbf780752d45b6741bfee6b435eb9 | 7f760e2fcd410d3ac3ccb0594d23b3050dd7637b | refs/heads/master | 2020-04-01T06:11:23.232342 | 2018-10-14T17:24:19 | 2018-10-14T17:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | import logging
from datetime import datetime
import pandas as pd
from Bio import SeqIO
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def load_sequence_and_metadata(kind='feather'):
"""
Returns the sequences as a list of SeqRecords, and metadata as a pandas
DataFrame.
"""
sta... | [
"ericmajinglong@gmail.com"
] | ericmajinglong@gmail.com |
897619095db24141b06b08b50073834a9da8b2d5 | 7a63ce94e1806a959c9c445c2e0bae95afb760c8 | /tests/identity/test_getpasswordpolicy.py | bd1c7c4ee1c5b28c019e3efddbeaf8c5cb1b53ca | [
"MIT"
] | permissive | pklauke/pycamunda | 20b54ceb4a40e836148e84912afd04d78d6ba0ec | 3faac4037212df139d415ee1a54a6594ae5e9ac5 | refs/heads/master | 2023-08-18T10:23:30.503737 | 2022-04-17T18:34:40 | 2022-04-17T18:34:40 | 240,333,835 | 40 | 16 | MIT | 2023-09-12T13:29:08 | 2020-02-13T18:37:25 | Python | UTF-8 | Python | false | false | 1,821 | py | # -*- coding: utf-8 -*-
import unittest.mock
import pytest
import pycamunda.identity
from tests.mock import raise_requests_exception_mock, not_ok_response_mock
def test_getpasswordpolicy_params(engine_url):
get_policy = pycamunda.identity.GetPasswordPolicy(url=engine_url)
assert get_policy.url == engine_u... | [
"peter.klauke@tu-dortmund.de"
] | peter.klauke@tu-dortmund.de |
08dfe4473006f1d6885acc13cc160566b28f62af | 6fce025097cebfd9d1dd37f6611e7fdfdbea90e6 | /rainfields/small_z/data_loader_2chan_rainfields.py | 64ea1d04b67476348375098d63a27dad65842d00 | [] | no_license | ANU-WALD/pluvi_pondus | ec0439d19acdcf4fdf712d6b14a1714297d661b2 | ff8680f7115ab2cb75138bf6705abb59618e47d1 | refs/heads/master | 2021-07-01T14:32:14.501631 | 2020-08-22T09:41:28 | 2020-08-22T09:41:28 | 138,804,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | import xarray as xr
import tensorflow as tf
import numpy as np
import datetime
import os
import random
tf.compat.v1.enable_eager_execution()
class gen:
def __call__(self, fname, insert=None, jitter=False):
insert = insert.decode("utf-8")
dsg = xr.open_dataset(fname.decode("utf-8"))
if ins... | [
"pablo.larraondo@anu.edu.au"
] | pablo.larraondo@anu.edu.au |
ffb4e9f44290ff83bf40e425e87cbbeb0ee5f0a7 | cb65766afee776ac0900e7a69b25f64bda098167 | /ECG/gbdt_ecg.py | 8953f890d331e67d2cc77fbcc0e4b498f30984cb | [] | no_license | guohuiGH/graduation_design | 9c89836ee0f60f38a865e81deb4cdec20ed3183b | 6432b733537e48169e9254eb057094df3cbbe52b | refs/heads/master | 2020-01-23T21:51:18.073770 | 2017-05-30T07:37:39 | 2017-05-30T07:37:39 | 74,739,796 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,108 | py | #!/usr/bin/env python
# encoding: utf-8
import sys
import numpy as np
sys.path.append("../script")
from convert_input import Convert
from validation import Validation
from read_data import DataReader
from sklearn.datasets import load_svmlight_file, dump_svmlight_file
from sklearn.preprocessing import OneHotEncoder
fr... | [
"="
] | = |
d4bb56a009e21e9988186c76845de844060e4d27 | dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962 | /AI/DataAnalysis/Day02/demo07_locator.py | 0ba4782d898f82e3c0115dc1fff6ee94dc1fe39f | [] | no_license | biabulinxi/Python-ML-DL | 7eff6d6898d72f00575045c5aa2acac45b4b0b82 | 217d594a3c0cba1e52550f74d100cc5023fb415b | refs/heads/master | 2020-06-01T09:13:17.314121 | 2019-06-08T03:59:36 | 2019-06-08T03:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # -*- coding: utf-8 -*-
# @Project:AID1810
# @Author:biabu
# @Date:2019/3/14 15:47
# @File_name:demo07_locator.py
# @IDE:PyCharm
"""
刻度定位器
"""
import matplotlib.pyplot as plt
localtors = ['plt.NullLocator()','plt.MultipleLocator(1)','plt.MaxNLocator(nbins=4)']
plt.figure('Locator', facecolor='lightgray')
for i, lo... | [
"biabu1208@163.com"
] | biabu1208@163.com |
59e7acde93552feb3312d1da6072389b4b37e466 | 76f23cc69dc10c44bc7cf00b78e37db04c7a9c45 | /datalad/typing.py | 6965b406d07d10bdf77cf432ff9da4666ee844c8 | [
"BSD-3-Clause",
"MIT"
] | permissive | datalad/datalad | 2d9c247344d340325ba84e7ab674ac320e57f30c | 40332b5ad25bf8744f7399f6c3575f7d28f71384 | refs/heads/maint | 2023-09-04T11:03:02.264714 | 2023-08-10T15:56:19 | 2023-08-10T15:56:19 | 14,052,034 | 453 | 134 | NOASSERTION | 2023-09-14T19:10:18 | 2013-11-01T19:40:08 | Python | UTF-8 | Python | false | false | 1,070 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 et:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ### ... | [
"git@varonathe.org"
] | git@varonathe.org |
d255ea420184aca90fb9a290bc5f7d332696858e | a50f58524c34e7e8c46d302209e35dbe57a6f7e7 | /docs/src/body_nested_models/tutorial005.py | f5f19b39046f4b32a0d10ecd09ffab858c96bbbb | [
"MIT"
] | permissive | kabirkhan/fastapi | 532758b9855a55ed15a7f6793f2c8c4771638a09 | 9ca72f4ea1fc6f04b7d8d4e2f3c4d7da5f6c322e | refs/heads/master | 2021-08-06T23:55:14.278165 | 2019-03-30T21:57:16 | 2019-03-30T21:57:16 | 169,940,473 | 1 | 0 | MIT | 2019-02-10T03:48:09 | 2019-02-10T03:48:08 | null | UTF-8 | Python | false | false | 495 | py | from typing import Set
from fastapi import FastAPI
from pydantic import BaseModel
from pydantic.types import UrlStr
app = FastAPI()
class Image(BaseModel):
url: UrlStr
name: str
class Item(BaseModel):
name: str
description: str = None
price: float
tax: float = None
tags: Set[str] = []
... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
1cc3cd6f3c219fdde6b51488e6aeb4ad5478de2a | c9138a8e07049dc5a501c956903171c441c47722 | /dynamo_consistency/signaling.py | bed86c735b2c3167a18d375b85b6c1dbae6258c2 | [
"MIT"
] | permissive | SmartDataProjects/dynamo-consistency | 6857aeede7b2f1cc7f574c6394debd2577b63722 | 78671ed1c26785c9feb3830f192faf826cebd4a4 | refs/heads/master | 2023-01-07T05:48:17.244486 | 2022-12-28T14:59:37 | 2022-12-28T14:59:37 | 111,568,921 | 0 | 2 | MIT | 2022-12-28T14:59:38 | 2017-11-21T15:45:24 | Python | UTF-8 | Python | false | false | 522 | py | """
A small module for handling signals
"""
import logging
from . import config
from . import summary
LOG = logging.getLogger(__name__)
def halt(signum, _):
"""
Halts the current listing using the summary tables
"""
LOG.warning('Received signal %i. Terminating', signum)
# If disabled, leave ... | [
"dabercro@mit.edu"
] | dabercro@mit.edu |
57cdbbb0e656d7a6a7f7342596544ab1b43a2d66 | d7edc1c4f198f1f7e22746b0abc5dc9818adc37e | /venv/Scripts/pip-script.py | 665bc21cce788290ff158a1764a64833d05d2030 | [] | no_license | CuteCatCrying/My-Django | bd868da5e6c59f372680fe7a3ada71db000dc723 | dea36341ca93180bd173cf61dbbc115b393cb048 | refs/heads/master | 2022-04-01T20:17:53.894082 | 2020-02-05T09:53:20 | 2020-02-05T09:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!"E:\PyCharm Project\My Django\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"zukronalviandy@gmail.com"
] | zukronalviandy@gmail.com |
9c4efb676df13ac6c7ff2be5cc5b2ec952196590 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /pycommon/dev/common_dev1.py | 1d1cd091e3dc34bc200cd8f9658f244a66fe5f24 | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 9,926 | py | import re
import os
import sys
import inspect
import numpy as np
import weakref
import glob
#from varname import nameof
"""
version dependency included
common functions gathering
yes_or_no(question) : to obtain y/n for next command
FILES
find_file(dir,kw): search dir & find fname with kw in fro... | [
"hopefulp@gmail.com"
] | hopefulp@gmail.com |
29ca50bd3e3f300f1c7635a4824b1f20dbb769e9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_1/Python/Moriz/coin.py | c582cfe42ed5f23ea4247db4149daf19197835a4 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | import math
import random
import sys
def allPrimeNumbers(n):
sifter = [1]*(n+1)
for i in range(2, n/2+1):
sifter[2*i] = 0
sifter[0] = 0
sifter[1] = 0
for i in range(3, int(math.ceil(math.sqrt(n)))):
if (sifter[i]):
for j in range(i, n//i+1, 2):
sifter[j*i... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
545299a98006229717a4beed11c72a502c3f03e6 | ae4f39840d85f0f74948231e16306242effbe6a5 | /src/targets/MIMXRT595/bltargetconfig.py | d68e23841c27215f55c91a35f3ff37242b7452b3 | [
"Apache-2.0"
] | permissive | AlexShiLucky/NXP-MCUBootUtility | f04e1b514598a512200ecd5f552f9dad9cfec52e | 3ff9fa203d667844f83a08c855fef85723d2612e | refs/heads/master | 2020-09-09T21:40:55.117941 | 2019-09-23T03:22:15 | 2019-09-23T03:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | #!/usr/bin/env python
# Copyright (c) 2014 Freescale Semiconductor, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# o Redistributions of source code must retain the above copyright notic... | [
"jie.heng@nxp.com"
] | jie.heng@nxp.com |
27b3ca297134742550229cc851849fc704eb8c47 | 362849779c309782c2d1f2b88a8a921ad500a656 | /Lesson_1/sockets/simple/blocking/example5_nonblock_server.py | 765a8b675c94ddf126b7aaa5fe8a0e70dc87dad2 | [] | no_license | zarkaltair/Advanced_python_ITVDN | b6d794cd64c782b391099a3b1fc579e227932069 | 911037ce171723eef4131c45113692ca5c7dadad | refs/heads/main | 2022-12-28T21:38:53.814025 | 2020-10-17T10:21:58 | 2020-10-17T10:21:58 | 304,083,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind(('127.0.0.1', 8888))
sock.listen(5)
sock.setblocking(True)
# sock.settimeout(5)
# sock.settimeout(0) --> sock.blocking(False)
# sock.settimeout(None) --> sock.blocking(True)
try:
client, addr = sock.accept()
except socket.error:
... | [
"zarkaltair@gmail.com"
] | zarkaltair@gmail.com |
6529ed72fc861532d92b493213ffd45a7d819cfc | f7c24e58d3655016f9309fedca4e73d39087c2b7 | /src/models/users/decorators.py | 734b5932913a1e2a8fd8f0091c247af34f95cc08 | [] | no_license | VTHoop/homer-hokie-tailgate-2 | 9cd3923aa83839e8ac3404d1ca76a63099d8983f | c22755cdd12e24af1ba642752d12aad1d8b105da | refs/heads/master | 2020-03-26T03:33:51.359726 | 2019-09-01T12:31:38 | 2019-09-01T12:31:38 | 109,769,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | from functools import wraps
from flask import session, url_for, redirect
def requires_login(func):
@wraps(func)
def decorated_function(*args, **kwargs):
if 'user' not in session.keys() or ['user'] is None:
return redirect(url_for('users.login_user', message='You need to be logged in to ac... | [
"patrick.hooper.m@outlook.com"
] | patrick.hooper.m@outlook.com |
db4be10ca1123b588e12dcf090c3317d21cdc8f1 | 48d232cc6dcf57abf6fca9cbbef8943e189acb04 | /network-delay-time.py | bf6c88cf24e470cf85127e8469ddd46f00a284f6 | [] | no_license | csusb-005411285/CodeBreakersCode | dae796ba4262770e0a568e9c27597a041db0775c | 8f218164e1b9e42c1a928d22ef5a76328abb66a2 | refs/heads/master | 2022-01-12T09:11:33.668338 | 2021-12-27T04:45:13 | 2021-12-27T04:45:13 | 232,490,141 | 1 | 1 | null | 2021-01-29T23:09:14 | 2020-01-08T06:02:11 | Python | UTF-8 | Python | false | false | 903 | py | class Solution:
def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:
adj_list = defaultdict(list)
heap = []
visited = set()
max_cost = 0
self.build_adj_list(times, adj_list)
heappush(heap, (0, k))
while heap:
node = heappop(he... | [
"noreply@github.com"
] | csusb-005411285.noreply@github.com |
a209f6b0a3977cff1c4335780a9e56f6149cb465 | 66b7a2fb1c573d8c26bcccd7b54b950dc13bd69c | /tests/test_audio.py | a6b9e9893cd9bdeb33b0bed42cd80663107f4323 | [
"Apache-2.0"
] | permissive | jodal/pyspotify | 020b12e486239414c25cdf7408471a4bcbadb182 | 575e0cbd6dfeee0b2e22a6c1d8b4ff3a14bb129a | refs/heads/master | 2023-08-25T05:36:09.958002 | 2022-06-15T14:30:36 | 2022-06-15T14:30:36 | 1,103,479 | 62 | 13 | Apache-2.0 | 2022-06-14T21:53:00 | 2010-11-22T20:31:34 | Python | UTF-8 | Python | false | false | 2,049 | py | from __future__ import unicode_literals
import unittest
import spotify
class AudioBufferStatsTest(unittest.TestCase):
def test_samples(self):
stats = spotify.AudioBufferStats(100, 5)
self.assertEqual(stats.samples, 100)
def test_stutter(self):
stats = spotify.AudioBufferStats(100, ... | [
"stein.magnus@jodal.no"
] | stein.magnus@jodal.no |
e0d69f78a976645199c5209ccf9032fc63b6a865 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/aio/operations/_regions_operations.py | 0239ea007cf6aa6cc26ceb88b0a9d0eb64a9e9c9 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 6,295 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
a8ee2f493eec6f67cf571bef2aae2f768125e4fb | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/PyOpenGL-2.0.2.01/OpenGL/Demo/NeHe/lesson41.py | d9f93068e788dd8651a498b4e86bac4eacfb61b4 | [] | no_license | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 13,490 | py | # NeHe Tutorial Lesson: 41 - Volumetric Fog
#
# Ported to PyOpenGL 2.0 by Brian Leair 18 Jan 2004
#
# This code was created by Jeff Molofee 2000
#
# The port was based on the PyOpenGL tutorials and from
# PyOpenGLContext (tests/glprint.py)
#
# If you've found this code useful, feel free to let me know
# at (Brian Lea... | [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
c08402459c6b80a2b7dc440a27af7c1d16384447 | fc43470de13ff8f03105efc2a3660a1ed6a1a553 | /BAEKJOON/9663_NQueen.py | 4fb15454e35c0f22c37ced52db5ab345014143b8 | [] | no_license | youseop/Problem_solutions | 5a05597f188b4ef8f7d8483b46bf05fbf2158d01 | 1fba638d9520bca4354bca01f194f80b159e26aa | refs/heads/master | 2023-06-24T05:12:45.060086 | 2021-07-24T14:22:33 | 2021-07-24T14:22:33 | 298,317,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import sys
read=sys.stdin.readline
def dfs(left, center, right,cnt):
global answer
if cnt== n:
answer += 2
return
left >>= 1
right <<= 1
board = center | right | left
if board&full==full:
return
if cnt ==0:
for i in range(n//2):
bit = 1 << i
... | [
"66366941+youseop@users.noreply.github.com"
] | 66366941+youseop@users.noreply.github.com |
eda0d1b7117d4199ea3b29758b900749bf2ef929 | bdb0a0232da7575cac9a1149a6c5439d3a6f9095 | /miur_daad_dataset_pipeline/utils/ungzip_data.py | b9ef548d3c2bcfb4ea738c72cdaea916017a9852 | [] | no_license | LucaCappelletti94/miur_daad_dataset_pipeline | ec0588a89fa367e541fc6049829376399cc05752 | 389a9c42bdb0389e727259d3e5c51cca029cc293 | refs/heads/master | 2022-03-22T01:32:29.387497 | 2019-12-09T15:46:01 | 2019-12-09T15:46:01 | 198,881,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from .ungzip import ungzip
import os
from typing import List
from auto_tqdm import tqdm
from glob import glob
from multiprocessing import cpu_count, Pool
def ungzip_data(target: str):
paths = list(glob('{target}/**/*.gz'.format(target=target), recursive=True))
paths = [
path for path in paths if no... | [
"cappelletti.luca94@gmail.com"
] | cappelletti.luca94@gmail.com |
dded074923a46f42c9cb0ef1399ee8a8e9ee4594 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/422/usersdata/348/87723/submittedfiles/lecker.py | c29887eb4d055f8497bf78323a8acf013137503d | [] | 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 | 273 | py | # -*- coding: utf-8 -*-
import math
n1 = int(input( 'informe o numero 1: '))
n2 = int(input( 'informe o numero 2: '))
n3 = int(input( 'informe o numero 3: '))
n4 = int(input( 'informe o numero 4: '))
if n1 == n2 and n2 == n3 and n3 == n4 and n4 == n1:
print( 'N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f7ede766471a8438b6cf1b69848b8fb50adcb516 | 8ebb138562884f01cae3d3ffaad9501a91e35611 | /dbCruiseKeywords/insertKeywordsKM1823.py | 08400252c7a52d5faa910bf1f50b8917fbc3fcdf | [] | no_license | simonscmap/DBIngest | 7b92214034e90f8de88b06c17b48f83c769d8d35 | 9ae035cbf7453df375f0af5e920df3880a419107 | refs/heads/master | 2021-07-16T07:12:31.749027 | 2020-08-13T16:28:24 | 2020-08-13T16:28:24 | 200,295,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | import sys
import pycmap
sys.path.append('../')
import insertFunctions as iF
import config_vault as cfgv
import pandas as pd
sys.path.append('../dbCatalog/')
import catalogFunctions as cF
"""-----------------------------"""
"""KM1823 CRUISE KEYWORDS"""
"""-----------------------------"""
cruise_name = 'KM1823'
serve... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
becc3873f3ae71f70efb0be47d9607b12667b7b3 | 95fb4b8e51dd7a852d9ed9de067c1e929a71404a | /colour/utilities/metrics.py | bc63c1ad1924638e02758231b5144965eedce1d8 | [
"BSD-3-Clause"
] | permissive | zachlewis/colour | e9b1f6978dae157306536492a652b2fb9588894a | c248e2913d6c62658e4892e5bc8503d86ed5d9ab | refs/heads/develop | 2021-04-25T22:08:34.617007 | 2020-11-29T23:18:48 | 2020-11-29T23:18:48 | 109,490,837 | 0 | 0 | BSD-3-Clause | 2019-10-28T19:44:56 | 2017-11-04T11:53:24 | Python | UTF-8 | Python | false | false | 3,023 | py | # -*- coding: utf-8 -*-
"""
Metrics
=======
Defines various metrics:
- :func:`colour.utilities.metric_mse`
- :func:`colour.utilities.metric_psnr`
References
----------
- :cite:`Wikipedia2003c` : Wikipedia. (2003). Mean squared error. Retrieved
March 5, 2018, from https://en.wikipedia.org/wiki/Mean_squared_... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
c993e3a3babd8cc6aca8c8e9dd5d450762ff7421 | c39e466c2b6fdffbc410f24669f214e13fb87781 | /PYTHON/EDX/Nested loops2.py | 4e167e09fc106055670f83a4ac1340ad74f12b77 | [] | no_license | enanibus/biopython | 3a58efbcc92f1ce60285a115c620de9295b7d281 | 613d334a5c0502059930d9381a9464ef533cca1c | refs/heads/master | 2021-01-12T17:27:39.516793 | 2017-01-02T18:30:09 | 2017-01-02T18:30:09 | 71,573,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | m = 1
for x in [1,2,3]:
for y in [3,1,4]:
if x == y:
m = m * x
print (m)
| [
"juanenriqueztraba@gmail.com"
] | juanenriqueztraba@gmail.com |
d56b84cda7c8fa458314c7e85923090ea5462868 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/510399_Byte_Hex_Hex_Byte_String/recipe-510399.py | 5024b443babb9d5f7f10c485d8a141f2f3c148b8 | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 2,403 | py | """
HexByteConversion
Convert a byte string to it's hex representation for output or visa versa.
ByteToHex converts byte string "\xFF\xFE\x00\x01" to the string "FF FE 00 01"
HexToByte converts string "FF FE 00 01" to the byte string "\xFF\xFE\x00\x01"
"""
#-----------------------------------------------------------... | [
"betty@qburst.com"
] | betty@qburst.com |
3669a26b8a6838dfa35819e9861099c6fadc7c13 | 75954bb39221e91c75cf8818c59ead08aab7d345 | /glue/qt/mime.py | fa53d556cb566d53d71543790bc114ff61c23ccb | [
"MIT"
] | permissive | yarikoptic/glue | 6fe7be6addf750061fa053b3a2d3766fafa64433 | e252af49e47e73e0a84f1e52fb664177ca0f7dfa | refs/heads/master | 2021-01-15T19:28:41.132421 | 2014-07-09T18:00:16 | 2014-07-09T18:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from ..external.qt.QtCore import QMimeData, QByteArray
class PyMimeData(QMimeData):
"""
A custom MimeData object that stores live python objects
Associate specific objects with a mime type by passing
mime type / object kev/value pairs to the __init__ method
If a single object is passed to the in... | [
"beaumont@hawaii.edu"
] | beaumont@hawaii.edu |
f8faa28b752cfd702fff0690ac02fa784aee5a51 | f8baff291cdf02ea92141c7a7eb48b859776c224 | /google/cloud/dialogflow_v2/services/intents/client.py | 1363372a8d032ce603b2478a3b2c78f088f133c8 | [
"Apache-2.0"
] | permissive | precs-jmcrs/python-dialogflow | 1a6a12741cb14460f5ecfe1200b2b0a20064b5cb | bf68864ff14e1a1f3626cb27fbbabb96e618358f | refs/heads/main | 2023-08-20T09:45:21.354126 | 2021-10-25T20:52:08 | 2021-10-25T20:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,829 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | precs-jmcrs.noreply@github.com |
701dc2c522f105f2b5bdf99cf6b3dd265e5d62a4 | 6e2117bd8ed3fe00d4ad0fa152b75f20213c2748 | /dephell/converters/pipfile.py | 4e44efd6e5d392f4dfd7dbd5e19950df470de9cc | [
"MIT"
] | permissive | eli-schwartz/dephell | ae0f0cc5c37fc13bcbb5b88f2cdd66de914a2c42 | f3e07b497e3ad7998e563b1a4c5ad9f023834d36 | refs/heads/master | 2020-05-29T09:47:45.438331 | 2019-05-25T07:51:33 | 2019-05-25T07:51:33 | 189,078,364 | 0 | 0 | MIT | 2019-05-28T18:03:03 | 2019-05-28T18:03:03 | null | UTF-8 | Python | false | false | 6,111 | py | # built-in
from collections import OrderedDict
from pathlib import Path
from typing import List, Optional
# external
import tomlkit
from dephell_pythons import Pythons
from dephell_specifier import RangeSpecifier
# app
from ..controllers import DependencyMaker
from ..models import Constraint, Dependency, RootDependen... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
c469127f9207888465ac7780c6e119f385e857cd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/307/usersdata/301/70471/submittedfiles/swamee.py | 50db52260081b1540acef710208acc5f058de55e | [] | 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 | 410 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
F = float(input('digite F : '))
L = float(input('digite L : '))
Q = float(input('digite Q : '))
H = float(input('digite H : '))
V = float(input('digite V : '))
G = 9.81
E = 0.000002
pi=math.pi
D = ((8*F*L*Q*Q)/(pi*pi*G*H))**0.2
REY=(4*Q)/(pi*D*V)
K=(0.25/(math... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
641cd9ca8183ea296b1b588ade66a5ef539165c6 | f80c689b49125321342206930f30dede37b2b117 | /app/schemas/RolePermission.py | 435ebba8cfec1aebd124dad73c87cc6574839bab | [] | no_license | AnsaganK/NProject | 6c74ee9126989c06ac6f85fedea7da9820b046ca | 6c043fba5b0f2c21724bca5773c4eee898760052 | refs/heads/master | 2023-06-04T13:29:15.789316 | 2021-06-21T13:14:10 | 2021-06-21T13:14:10 | 345,971,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from pydantic import BaseModel
from pydantic.types import List
class RolePermissionSchema(BaseModel):
roles: List[int]
permissions: List[int]
#class RolePermissionSchema(BaseModel):
# roles: List[RoleCreateSchema]
# permissions: List[PermissionNameSchema] | [
"ansagankabdolla4@gmail.com"
] | ansagankabdolla4@gmail.com |
0d15f42cc221213619fe137d4987031e6a12fca2 | 994aa831b94fd9b1f77d117294d75c835613ae97 | /tests/test_analysis/test_feature_relevance/test_relevance.py | 2184271e7f08d1d76445b78035ca13d4a0523f21 | [
"Apache-2.0",
"MIT"
] | permissive | jingmouren/etna-ts | 4edfd8373f2e1f7fd90e8838395e2b2dbf10c458 | b2453671b00affe2af23c4b10f556f6fb5d7d602 | refs/heads/master | 2023-09-05T16:21:29.240794 | 2021-11-03T12:48:33 | 2021-11-03T12:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from etna.analysis.feature_relevance import StatisticsRelevanceTable
def test_statistics_relevance_table(simple_df_relevance):
rt = StatisticsRelevanceTable()
assert not rt.greater_is_better
df, df_exog = simple_df_relevance
assert rt(df=df, df_exog=df_exog).shape == (2, 2)
| [
"noreply@github.com"
] | jingmouren.noreply@github.com |
2ce4f0d1c7eafb44e29b65aa275bebc5d4694833 | 77809fff52b600414cebe12e827df34cc8ac14f1 | /0x0D-NoSQL/8-all.py | 8362d18ba06856e986cfd9f0a09acb2a8a294f95 | [] | no_license | OnsJannet/holbertonschool-web_back_end | 6963ec58b071c91c3b5577f30276e2d42196775c | cf61d1607676d0a4e2c79723f221e560d1af02ee | refs/heads/main | 2023-08-14T14:27:02.845424 | 2021-10-05T12:54:47 | 2021-10-05T12:54:47 | 387,498,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/env python3
""" List all documents in Python """
from pymongo import MongoClient
def list_all(mongo_collection):
""" lists all documents in a collection """
documents = mongo_collection.find()
if not documents:
return ([])
else:
return (documents)
| [
"onsjannet@gmail.com"
] | onsjannet@gmail.com |
a544b1f52235e741b573c007b0e73162c8bf1960 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ET2voBkuSPLb3mFSD_12.py | fa9408dfcd5977aa12b70e8f8f636b8c4df3f61c | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py |
def sum_every_nth(numbers, n):
return sum([numbers[x-1] for x in range(0,len(numbers)+1,n) if x-1>=0])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
41cba72ba2a517d1c4a187587b56425541f990ff | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/fortifications/fortrosterintrowindow.py | 0eb27f6e375899fe1605f546093d5d4e7b4ea5bc | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortRosterIntroWindow.py
import BigWorld
from gui.Scaleform.daapi.view.lobby.fortifications.fort_utils.FortViewHelper import FortViewHelper
from gui.Scaleform.daapi.view.lobby.fortifications.fort_utils.fort_formatters import getDivisionI... | [
"info@webium.sk"
] | info@webium.sk |
345a6bd377e9e3b694003b0e00614a1bbc326279 | 57a2b45a694913d2b8e525aca1dade6a65512d30 | /schedule.spec | 6921aff6ec742685e1e5f788b5c92d7d48299965 | [] | no_license | lkfo415579/ACM | d40c6d6011aa790f5c55904bde160572c7e33868 | 9538c4328b48d5896c55e327ff555a3c0078b81a | refs/heads/master | 2020-09-24T15:44:09.308276 | 2019-12-04T06:11:32 | 2019-12-04T06:11:32 | 225,792,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['schedule.py'],
pathex=['C:\\Users\\CC\\PycharmProjects\\ACM'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"gm0648@hotmail.com"
] | gm0648@hotmail.com |
3392ca6c11dcfb0e04a7d8549de1cbc5b546ed7a | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20170530/example_logging/02primitives/mylog.py | eafffe804a9cdbd8d5c38766efe087da1754c011 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 855 | py | import logging
class SelfLevelOnlyWrapper:
def __init__(self, handler, lv):
self.handler = handler
self.lv = lv
self.handler.setLevel(lv)
def __getattr__(self, name):
return getattr(self.handler, name)
def handle(self, record):
if record.levelno == self.lv:
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
b7b8728c982659f4e3885df1907f08290d499f5d | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/policy_rule_quota_post.py | a587a37845b146dc705514bd78ee40ea66a60ea2 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,901 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
e060cc847462ecda2d380815b671722b5c5ae01d | 997c82f5d9684945fb2f5d5481dc4d251a93755f | /famapy/metamodels/cnf_metamodel/models/cnf_model.py | eff0e32ee8dd1020253f56e44bd82679bd8ed169 | [] | no_license | jmhorcas/famapy-aafms | a6e45b5fff2c820037daf95151df5bc6895b1611 | bcc80f7061bed4d6bfd536f9d53cf195bffa01e6 | refs/heads/main | 2023-08-24T05:51:47.337325 | 2021-10-15T10:18:20 | 2021-10-15T10:18:20 | 389,559,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | from enum import Enum, auto
from famapy.core.models import VariabilityModel
class CNFLogicConnective(Enum):
"""The propositional logic connectives a formula in CNF can contain."""
NOT = auto()
AND = auto()
OR = auto()
class CNFNotation(Enum):
"""Possible notations of a CNF formula."""
LOGIC... | [
"jhorcas@us.es"
] | jhorcas@us.es |
36575a12047d334dc0fc1c741397935ef0ecded3 | 0420ce2fc8799d5fbd6e96313e6716f5e2ef825b | /bagogold/bagogold/admin/investidores.py | be7e0892a2c2b5b3a59d8c904f59b54253c44c95 | [] | no_license | nizbel/bag-of-gold | 1da10acef4d73b8426ca3329b37a28c5f9587af4 | a3fd89eb47d33d546bd91947f033d71218c8700f | refs/heads/master | 2022-11-13T01:07:26.934813 | 2020-01-14T16:00:16 | 2020-01-14T16:00:16 | 275,689,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
from bagogold.bagogold.models.investidores import Investidor
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
admin.site.register(Investidor)
# Define an inline admin descriptor for Employee model
#... | [
"kingbowserii@gmail.com"
] | kingbowserii@gmail.com |
875389da102f244a9d6968dbe8fc7041fc398fb9 | e5fe3e3a821685fae2160cc86e028623b40dd8cf | /platformio/commands/serialports.py | c52f27da2b5edb67072887ad273452d611ac3840 | [
"MIT"
] | permissive | TimJay/platformio | 28f3b7e6ea5bdb8e597faf5be96fefd03361d25d | 7b60d595a762dc01f9d98bd1b85babe649cfeb4a | refs/heads/develop | 2021-01-18T17:31:51.682433 | 2015-05-14T21:13:47 | 2015-05-14T21:13:47 | 35,637,431 | 1 | 0 | null | 2015-05-14T21:16:31 | 2015-05-14T21:16:31 | null | UTF-8 | Python | false | false | 3,002 | py | # Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import sys
import click
from serial.tools import miniterm
from platformio.util import get_serialports
@click.group(short_help="List or Monitor Serial ports")
def cli():
pass
@cli.command("list", short_help="List Serial port... | [
"me@ikravets.com"
] | me@ikravets.com |
d9e38467df230278dd7313a1a561aaf4b7b0c691 | d60ee49abaee6c74c5b777f8f112a7f75f71f029 | /genome/variants2/somatic/stats/plot.py | 832fc61a9d4fdb2ce8668e6a96dc2e3bd21ecfdb | [] | no_license | ak352/melanomics | 41530f623b4bfdbd5c7b952debcb47622d1a8e88 | fc5e6fdb1499616fb25a8dc05259add8a65aeca0 | refs/heads/master | 2020-12-24T16:14:42.271416 | 2015-08-06T12:48:52 | 2015-08-06T12:48:52 | 18,439,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from pylab import *
import sys
infiles = []
for k in [2,4,5,6,7,8]:
infiles.append("/work/projects/melanomics/analysis/genome/variants2/somatic/stats/patient_%s.depth.hist" % str(k))
x = []
xrang=1001
t = linspace(0,xrang,xrang)
for infile in infiles:
y = []
for line in open(infile):
a,b = line[:... | [
"ak@uni.fake"
] | ak@uni.fake |
b53ca44da2dab3a096938fc2790382c8e5d844be | a58009ce3ad972ef517cd75664a39e28974a0598 | /2164.py | 8d2d7e8ddbaa287b90a21660e5a04fe80b3580db | [] | no_license | good5229/python-practice | b1c688f59129dc0044a8acd8e9e06a44d1777979 | ef9f298df73223f2098f69a499963b9a013e69f2 | refs/heads/master | 2020-12-03T21:15:01.644129 | 2020-03-25T03:46:47 | 2020-03-25T03:46:47 | 231,489,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import sys
import collections
# n = int(sys.stdin.readline().strip())
# card_list = [_ for _ in range(n, 0, -1)]
# card_len = len(card_list)
# if n == 1:
# print("1")
# while card_len >= 2:
# del card_list[-1]
# card_len -= 1
# card_list.insert(0, card_list[-1])
# del card_list[-1]
#
# print(card_l... | [
"kjb45841497@gmail.com"
] | kjb45841497@gmail.com |
cc67468472b222e68744754fc93d8fed903868d7 | a1b26e2decc464fa166e59f9b0a79a10911afee8 | /SortingAlgo/median2.py | e058b37ec2119714d8befe1bb5cb6a8d01ede933 | [] | no_license | samDeopa/CECques | 64132d54d9ab966cf1e826b4f6cf5bccaf2af489 | a956ff9992374ead9f79787ac24668ab74b51ed7 | refs/heads/main | 2023-03-24T22:45:25.047500 | 2021-03-18T04:43:46 | 2021-03-18T04:43:46 | 341,891,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import random
def partition(arr, low, high):
i = (low-1)
pivot = arr[high]
for j in range(low, high):
if(arr[j] <= pivot):
i += 1
arr[i], arr[j] = arr[j], arr[i]
arr[i+1], arr[high] = arr[high], arr[i+1]
return(i+1)
def QuickSort(arr, low, high, k):
# print(l... | [
"you@example.com"
] | you@example.com |
1eef71f3a4a0e6da26dbe44b26d865f269c94162 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_09_30_preview/aio/operations/_open_shift_managed_clusters_operations.py | 01bd9deea9ad8d01f8b5f9c2492dccac07343253 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 41,214 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | gaoyp830.noreply@github.com |
dee202c18bb0175dacac26d69633b6cc8383108c | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/src/programy/clients/render/passthrough.py | 8e7b1c9f97560fd097898f4d2a55ad15042f4ea9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
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, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.