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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83ea1cd60b07b7661cf4d71ba9914ae9e4c12194 | deda76cdf57c2a178f7a6af0ef8abf0c239d0fbf | /post/migrations/0010_auto_20170225_1412.py | 3b015c6440e5213db5654f71dec65202d685fad1 | [] | no_license | mikekeda/Jess-blog | 55c03deaa3587f4280cb77f4c33a4728965f7503 | 0498450c671b7116e759ee608b60a56cf5c1722c | refs/heads/master | 2023-07-26T21:25:31.519523 | 2023-06-06T17:27:13 | 2023-06-06T17:27:13 | 69,493,913 | 2 | 0 | null | 2023-07-05T22:57:16 | 2016-09-28T18:53:57 | Python | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-25 14:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0009_auto_20170225_1410'),
]
operations = [
migrations.AlterField(
... | [
"mriynuk@gmail.com"
] | mriynuk@gmail.com |
2eab272b612bf0026bdfa21c63ff576d34fd8dde | 8780bc7f252f14ff5406ce965733c099034920b7 | /pyCode/novel_Mongodb/novel/settings.py | e49a3b889bb618337c2e82ee26bcf3662da38c06 | [] | no_license | 13661892653/workspace | 5e4e458d31b9355c67d67ba7d9faccbcc1ac9f6b | 17960becabb3b4f0fc30009c71a11c4f7a5f8330 | refs/heads/master | 2020-12-24T20:00:15.541432 | 2018-08-14T13:56:15 | 2018-08-14T13:56:15 | 86,225,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | # -*- coding: utf-8 -*-
# Scrapy settings for novel project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"470563152@qq.com"
] | 470563152@qq.com |
a8eb9ab1b268fd5c994efa2afb0f3d85321e1cf9 | 06d86ca0465405a7d1a64fc6dbf4980f76565e54 | /torchnlp/nn/__init__.py | be635ea9026ee2911bec1756db558956b484099d | [
"BSD-3-Clause"
] | permissive | PetrochukM/PyTorch-NLP | 22b7f2628d6545270bc36964ce4551609f84ca9f | 53d7edcb8e0c099efce7c2ddf8cd7c44157fcac3 | refs/heads/master | 2023-08-05T20:15:06.954467 | 2023-07-04T21:11:26 | 2023-07-04T21:11:26 | 122,806,629 | 2,304 | 290 | BSD-3-Clause | 2022-07-16T23:44:23 | 2018-02-25T05:00:36 | Python | UTF-8 | Python | false | false | 499 | py | from torchnlp.nn.attention import Attention
from torchnlp.nn.lock_dropout import LockedDropout
from torchnlp.nn.weight_drop import WeightDropGRU
from torchnlp.nn.weight_drop import WeightDropLSTM
from torchnlp.nn.weight_drop import WeightDropLinear
from torchnlp.nn.weight_drop import WeightDrop
from torchnlp.nn.cnn_enc... | [
"petrochukm@gmail.com"
] | petrochukm@gmail.com |
412a3e50c46c08906300fcef62d66e697c2954e4 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_Newyork167_RevengeOfThePancakes.py | b033b830db3257268cd1574abffce775324afeeb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 503 | py | def start():
output_file = open('output.txt', 'w+')
t = int(raw_input().strip())
for x in range(t):
flip_count = 0
p = raw_input().strip()
for y in xrange(len(p) - 1, -1, -1):
if p[y] == "-":
flip_count += 1
p = flip(p[:y + 1]) + p[y + 1:]
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d653b9469d563ede22ef0db716328cbd291036b3 | 6466eef5477db250879a74935b3b776dc878ff3b | /iprofile/migrations/0002_auto_20210302_0739.py | d5634f9ccf7c6c6bfbe7220e774c7d58326a69ca | [] | no_license | BakdauletBolatE/django_ideas | 8edb61a569f436865283e82edba3377a150665a8 | ef0258f3aae0c090d38a5098d175bceaddcf67af | refs/heads/master | 2023-03-12T00:02:04.969353 | 2021-03-02T19:41:00 | 2021-03-02T19:41:00 | 324,287,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Generated by Django 3.1.4 on 2021-03-02 07:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('iprofile', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"bakosh21345@gmail.com"
] | bakosh21345@gmail.com |
1e2c08e559a9397aff2ade4a07738486067ea297 | 77428d258556f1cae13c7435bcb5ee387d2f7ed9 | /src/program/python/snippet/ProcExit.py | 23d60713b22cf13747dd1e925f813b5c6bffea4a | [] | no_license | imxood/imxood.github.io | d598d3d991f7e7d39787ecb2415ffe48489d9fd6 | a6fe8fe069b8af9d65b6afaabecfcfe99ed1ed21 | refs/heads/main | 2022-10-23T12:52:11.966389 | 2022-10-04T06:04:59 | 2022-10-04T06:04:59 | 47,911,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class ProcExit(Exception):
def __init__(self, message, status):
super().__init__(message, status)
self.message = message
self.status = status
| [
"imxood@gmail.com"
] | imxood@gmail.com |
775b89ca5e6b11635f184ce04290426d9263a5c2 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.sc/py/C1601.py | 9235408d65c17a872e648fbd8198636110ece8af | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 24,450 | py | from ED6SCScenarioHelper import *
def main():
SetCodePage("ms932")
CreateScenaFile(
FileName = 'C1601 ._SN',
MapName = 'Bose',
Location = 'C1601.x',
MapIndex = 250,
MapDefaultBGM = "ed60125",
Flags ... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
63c08bd189da2b98bb7420b249deca19b3e20d5d | d3b2d0432a4f488128c2798829d017a1a2377318 | /caffe/python/caffe/custom_layers/split_loss_layer.py | befe7e3d2fa52f704efd66073c0c9e3e1e3e523b | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | openvinotoolkit/training_toolbox_caffe | 94b65290724e839cdb50e4accf6a79776190402d | 5e543a49c73190a091fe6ff364444a9714962ec0 | refs/heads/develop | 2023-01-05T17:07:42.279772 | 2022-12-21T06:50:52 | 2022-12-21T06:50:52 | 165,683,591 | 4 | 3 | Apache-2.0 | 2022-12-21T06:50:53 | 2019-01-14T15:19:52 | Jupyter Notebook | UTF-8 | Python | false | false | 11,748 | py | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"evgeny.izutov@intel.com"
] | evgeny.izutov@intel.com |
b2821e252c94e69a8e4c84bc04d5b2f793b836f8 | c10f20abec372f81dbd6468ead208543f60940f1 | /learning/22.LDA/22.3.reuters.py | 9fcc780c9a33d39ab337bd60e3a9bc6a7ec0b357 | [] | no_license | alenzhd/meachineLearning | 64876e7a6c0b8b39a63a9eb586d306a3489b4447 | 1b66ce2f73b226548f07e45c8537b8286635a048 | refs/heads/master | 2021-08-24T10:55:52.056439 | 2017-12-09T10:26:37 | 2017-12-09T10:26:37 | 112,688,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import lda
import lda.datasets
from pprint import pprint
if __name__ == "__main__":
# document-term matrix
X = lda.datasets.load_reuters()
print("type(X): {}".format(type(X)))
print("... | [
"zhanghd@asiainfo-mixdata.com"
] | zhanghd@asiainfo-mixdata.com |
b248e867f89bea426fd4105ea1bc0119dbf2cc49 | 56bcae383daea12cc1818a19a6415e0d9b58bd0c | /month01/day10/exercise04.py | be84b5e64c084983ff26f235609fb67556cb5474 | [] | no_license | wpy-111/python | 97ede872cf6b17f8c229cee9ecfb7df25363a37a | afbd0e081763c53833617a4892d03043e644d641 | refs/heads/main | 2023-08-03T18:26:25.656984 | 2021-09-26T08:47:21 | 2021-09-26T08:47:21 | 323,897,439 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | class Student:
def __init__(self, name, old, achement, gender):
self.name = name
self.old = old
self.achement = achement
self.gender = gender
def print_personal_info(self):
print("学生姓名:", self.name, "年龄:", self.old, "成绩:", self.achement, "性别:", self.gender)
list_studen... | [
"1324749417@qq.com"
] | 1324749417@qq.com |
2b6f97889be157eea94f461089f319b502ea9cb5 | d4c74a8001451840f3efb87f15856cdb9d5e9eb6 | /tools/bin/s19toslm-new.py | d67635c2fd33f93ce452d69cbae1f9f87e361ddf | [
"Apache-2.0"
] | permissive | danieldennett/gap_sdk | 3e4b4d187f03a28a761b08aed36a5e6a06f48e8d | 5667c899025a3a152dbf91e5c18e5b3e422d4ea6 | refs/heads/master | 2020-12-19T19:17:40.083131 | 2020-02-27T14:51:48 | 2020-02-27T14:51:48 | 235,814,026 | 1 | 0 | Apache-2.0 | 2020-01-23T14:39:59 | 2020-01-23T14:39:58 | null | UTF-8 | Python | false | false | 10,343 | py | #!/usr/bin/python
# ////////////////////////////////////////////////////////////////////////////////
# // Company: Multitherman Laboratory @ DEIS - University of Bologna //
# // Viale Risorgimento 2 40136 //
# // Bologna - fax 0512093785 - ... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
bf732d79c691374c2a1fbe7b8c8e18e5e53ec00e | ac2bc51f88ca0d966968d3aa28331ac715d9a1e2 | /pymeshio/pmd/reader.py | d68a767ff889e6d5f4668235e16b345b35f6905f | [] | no_license | zhouhang95/pymeshio | 5b29a864253d75bbcc23e7514ea4f9c86338031c | 256dd9146103abc3e2e300de9ae09dcde057b534 | refs/heads/master | 2020-06-14T23:30:34.727047 | 2020-04-18T14:05:04 | 2020-04-18T14:05:04 | 195,154,815 | 0 | 0 | null | 2019-07-04T02:21:55 | 2019-07-04T02:21:55 | null | UTF-8 | Python | false | false | 7,910 | py | #coding: utf-8
"""
pmd reader
"""
import io
from .. import common
from .. import pmd
class Reader(common.BinaryReader):
"""pmx reader
"""
def __init__(self, ios, version):
super(Reader, self).__init__(ios)
self.version=version
def read_text(self, size):
"""read cp932 text
... | [
"ousttrue@gmail.com"
] | ousttrue@gmail.com |
1fa6918b789095c70ac0a9b29a5bf35351e768ff | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/bases/anaconf/fichier_configuration.py | 3c393fe67c215a743548a07ae83628cef8b5bacf | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,208 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# l... | [
"kredh@free.fr"
] | kredh@free.fr |
7f5bf99bf96136efc47b1ad93ed0722deb7c4c24 | 663365d4c1c4068dab79a4b24cf6c96888b0862d | /Functions/migrations/0021_contribute_upload_file.py | 173945ddf3192fbd6275812a40ffb533ccbbbafa | [] | no_license | gitanjali1077/UnistashFinal | e7052b26db70d3ed728f7cddd90da31f6d4f0a50 | 31251e441c8759ca3d6c4b0cb274902293fd38a7 | refs/heads/master | 2021-07-02T07:01:10.919891 | 2017-09-23T11:55:03 | 2017-09-23T11:55:03 | 104,563,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-28 18:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Functions', '0020_contribute'),
]
operations = [
migrations.AddField(
... | [
"gitanjali1077@gmail.com"
] | gitanjali1077@gmail.com |
c705ad27d574a1c68f53e7ea69f8e302c6e3bd45 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03360/s908615245.py | 1bd71f84ec89bec0620034eb77b6014bd7f9078f | [] | 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 | 129 | py | lis = list(map(int,input().split()))
a = int(input())
lis.sort(reverse = True)
for i in range(a):
lis[0] *= 2
print(sum(lis)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
81dee0a2004d73370b2d84df410b1771eb0f2555 | 1fd8e5db25f8ebc7cc4506cbb07ba98f717b667e | /blackjack_2.py | 7f3f9103277f58cbeedc43f4453994139b518033 | [] | no_license | flatplanet/Intro-To-TKinter-Youtube-Course | 6103410435fc3b977fb44a4b08d045950ba10380 | cf988099fc358e52ed773273cb2e7ddb9d37d995 | refs/heads/master | 2022-10-06T10:02:38.689302 | 2022-07-18T18:11:12 | 2022-07-18T18:11:12 | 174,183,345 | 524 | 426 | null | 2021-10-10T16:16:44 | 2019-03-06T16:44:03 | Python | UTF-8 | Python | false | false | 9,301 | py | from tkinter import *
import random
from PIL import Image, ImageTk
from tkinter import messagebox
root = Tk()
root.title('Codemy.com - Card Deck')
root.iconbitmap('c:/gui/codemy.ico')
root.geometry("1200x800")
root.configure(background="green")
# Test for blackjack on shuffle
def blackjack_shuffle(player):
if player... | [
"johne4196@gmail.com"
] | johne4196@gmail.com |
396afefec4925ee05474afb55fca1e1c01268612 | 627fda699b0dc401a19b0cbbc17ea6632f315c8c | /baltimore.py | 123f209bc531b868c7a5fed241650c20e9899e8a | [] | no_license | Romulus83/python | 31db444e766ceff39813162f3e64edbb53bfdfdf | f5dc170ccd2b98f84a17f8bd8d8f5d8bd9a51f60 | refs/heads/master | 2023-02-16T16:07:18.947227 | 2021-01-16T17:08:40 | 2021-01-16T17:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 3 18:14:48 2020
@author: user
"""
"""
remove the dollar signs in the AnnualSalary field and assign it as a int
"""
import pandas as pd
df4 = pd.read_csv("Baltimore_City_Employee_Salaries_FY2014.csv")
df4["AnnualSalary"] = df4["AnnualSalary"].astype("int64")
"... | [
"sandeepjain20178@gmail.com"
] | sandeepjain20178@gmail.com |
c501b83c089a167048db9394457c00320da924b2 | 786de89be635eb21295070a6a3452f3a7fe6712c | /CalibManager/tags/V00-00-68/src/ConfigParametersForApp.py | f7d3a9f5c4bce80fcb97df832afdda9a10bccf88 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,587 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module ConfigParametersForApp
#
#------------------------------------------------------------------------
"""ConfigParametersForApp - class supporting configuration parameters for spe... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
ffaa5f02e39b29398daa68fa9fb34f9b4ddb956e | 9b11e49cbb9120f3f7e69a8884c0cee42896566d | /Hyperbola_search_part1.py | 7c39171ec6408d181e5a721ab55f1b089259ad66 | [] | no_license | albusdemens/Backscattering_3DND | e6966cd8c39342181183de20028b959227a5f570 | f911f1f9f9bf863daffe2bcc85bd7d7a94e5b3c7 | refs/heads/master | 2021-01-21T13:53:17.469879 | 2016-06-27T10:51:45 | 2016-06-27T10:51:45 | 44,485,363 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,527 | py | # Alberto Cereser, 4 Feb 2014
# alcer@fysik.dtu.dk, Technical University of Denmark
# For each point, this script looks for its successor
# For the location of the cutouts, the code follows the approach described in
# http://scikit-image.org/docs/dev/auto_examples/plot_template.html
import sys
#import pandas as pd
imp... | [
"mannaro85@gmail.com"
] | mannaro85@gmail.com |
1568ebac3d05d96cad143aed5faa28b55aed2fbf | 6b6e20004b46165595f35b5789e7426d5289ea48 | /data/archivedlogs.py | 0172c74c8c3e951453a1aadc5a5a85a31982dc97 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 1,038 | py | import logging
from util.registry.gzipinputstream import GzipInputStream
from flask import send_file, abort
from data.userfiles import DelegateUserfiles, UserfilesHandlers
JSON_MIMETYPE = 'application/json'
logger = logging.getLogger(__name__)
class LogArchive(object):
def __init__(self, app=None, distributed... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
5b47ee2fdfef62a928d08f196124943124e29eaf | f0c402d3858f0643561886797578b1e64655b1b3 | /py/riscv/exception_handlers/EnvironmentCallHandler.py | f7d7320626d9fcd3c808a7a8d10bd79f12fbd112 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Leo-Wang-JL/force-riscv | 39ad2a72abd814df4b63879ce9825b6b06a9391a | deee6acaaee092eb90ac2538de122303334e5be3 | refs/heads/master | 2023-01-28T00:06:58.135651 | 2020-11-18T02:54:10 | 2020-11-18T02:54:10 | 271,873,013 | 0 | 0 | NOASSERTION | 2020-06-28T00:51:26 | 2020-06-12T19:15:26 | C++ | UTF-8 | Python | false | false | 7,073 | py | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PRO... | [
"jwang1@futurewei.com"
] | jwang1@futurewei.com |
c67f1cf56af12a5f1b00dfeda2daebc7d6a86dd6 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/get_express_route_circuit_peering.py | 325f529ed85bffafc77adce6623c016101deda54 | [
"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 | 16,085 | 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
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
e00fbc256f3ed06f3244641137c2c4a0e5b73e33 | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/aritherror2.py | c75466829af775917e307f139c966ffebef05188 | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | try:
a = 0 / 19
print a
except ArithmeticError:
print "This statement is raising an exception"
else:
print "Welcome"
#syntax
#
# try:
# #run code
# except exception/error name1:
# #run code
# except exception error name2:
# # run code
# else:
# # run code | [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
98cd0f98537d4de5abe64aee34a9cc391d8459f8 | 106ddccf8f19ca2dcdde9bc455a230f144222493 | /remoview/settings.py | 63e6d00fb8b857afbe3a1a4d5facf7637551f70d | [] | no_license | Simeon2001/dsc-backend-project | b7cea249bf0855af53fd1e189371474bfeeec590 | 96069df96c22973ce00ace9d043475ff326086ab | refs/heads/main | 2023-01-09T08:57:04.846997 | 2020-11-12T16:38:16 | 2020-11-12T16:38:16 | 312,234,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | """
Django settings for remoview project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"jesusanyasimeon@gmail.com"
] | jesusanyasimeon@gmail.com |
4bb6112541cc85b424d4faf0558bc75faaa26289 | 670f4ba8ded99b420c3454c6ae35789667880cc8 | /tobiko/openstack/openstackclient/_port.py | b08f02ffe1daafec91e5b874d0db5f8185c53ddc | [
"Apache-2.0"
] | permissive | FedericoRessi/tobiko | 892db522198ab48380892138459d801c4bd00efa | ce2a8734f8b4203ec38078207297062263c49f6f | refs/heads/master | 2022-07-26T22:52:10.273883 | 2022-07-20T20:04:43 | 2022-07-20T20:04:43 | 145,856,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | # Copyright (c) 2020 Red Hat, Inc.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"fressi@redhat.com"
] | fressi@redhat.com |
d124e275a16bc01dc86309b27e0b3fe2746089f4 | 9aa5c69ec4ae4c1a54028f6add3327929d81b929 | /nodes/camnode | c8c7ba947819137cd6d9dda5703fa04f085ab012 | [] | no_license | strawlab/ros_flydra | 818fed6cdc9ed8afd17950ea5de7595e91a0483e | 0a922c24235d971b665461db6151f5867eee5870 | refs/heads/master | 2021-01-01T16:06:00.097118 | 2018-01-19T16:52:20 | 2018-01-19T16:52:20 | 4,662,078 | 0 | 2 | null | 2015-04-17T11:46:43 | 2012-06-14T10:40:47 | null | UTF-8 | Python | false | false | 635 | #!/usr/bin/env python
import threading
try:
import flydra.camnode
except ImportError:
import sys
import os.path
sys.path.insert(0, os.path.expanduser("~/flydra.git"))
import flydra.camnode
import roslib; roslib.load_manifest('rospy')
import rospy
def main():
rospy.init_node('flydra_camnode')... | [
"john.stowers@gmail.com"
] | john.stowers@gmail.com | |
15713a4aa17b0af607f4967edc241d1f1688c313 | b2403817f9221ee3550130572a808194ef4f3fda | /OOP/Polymorphism/SuperMethod.py | 660f0501f83896f9d29e77f3e7dd6ac1d1370e5a | [] | no_license | xaviergoby/Python-Data-Structure | e962444ef5b1313c3facbf1fcc315af182b73a26 | eaaf31ea98d63e812a75c1d6ecb8722b9c0cf142 | refs/heads/master | 2020-04-13T00:24:40.896592 | 2018-11-27T11:51:36 | 2018-11-27T11:51:36 | 162,844,732 | 1 | 0 | null | 2018-12-22T21:46:29 | 2018-12-22T21:46:29 | null | UTF-8 | Python | false | false | 873 | py | class SomeBaseClass(object):
def __init__(self):
print('SomeBaseClass.__init__(self) called')
class UnsuperChild(SomeBaseClass):
def __init__(self):
print('Child.__init__(self) called')
SomeBaseClass.__init__(self)
class SuperChild(SomeBaseClass):
def __init__(self):
print(... | [
"sanjay.siddha3@gmail.com"
] | sanjay.siddha3@gmail.com |
168db45b1fc971c12d5b647b5f82a75bda4f9473 | f10053d489f102cd6eb81d7ab4ca5f1875570ebd | /data.py | 27e371d23d6ea353cd6106be94b19b932004145a | [
"MIT"
] | permissive | dragonlong/DR_blend | 5aa30e4045052c2b5bc663e92780abd00325cf16 | 7eef0b55b0dcfdc45c740597721d147de3415413 | refs/heads/master | 2021-04-27T00:20:19.830628 | 2018-03-04T14:31:10 | 2018-03-04T14:31:10 | 123,796,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,260 | py | """IO and data augmentation.
The code for data augmentation originally comes from
https://github.com/benanne/kaggle-ndsb/blob/master/data.py
"""
from __future__ import division, print_function
from collections import Counter
import os
from glob import glob
import h5py
import numpy as np
import pandas as pd
from PIL imp... | [
"lxiaol9@vt.edu"
] | lxiaol9@vt.edu |
694bd1b545d6e74fa955877bac704efbbedcc3d4 | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/phonenumbers/shortdata/region_JO.py | 10652f5720029f060d27895417cf44fbe7fee355 | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 860 | py | """Auto-generated file, do not edit by hand. JO metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_JO = PhoneMetadata(id='JO', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2,4}', possible_length=(3, 5)),... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
d7764b7bc2f3043d08cfc2717d91e64ea6735c41 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /142/142.linked-list-cycle-ii.234403149.Accepted.leetcode.py | f353efaede5f020953c36a7ea4c336d0ce14af66 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | class Solution(object):
def detectCycle(self, head):
if not head or not head.next:
return None
q1 = head
q2 = head.next
while q1 != q2:
if not q2 or not q2.next:
return None
q1 = q1.next
q2 = q2.next.next
res =... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
01d83774e476624b33ddf3a10ae333bcda615ea8 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /WsHSAEBQW6F7nsMjr_3.py | e76b9be89606cf93b3d7c28044740984c736df0f | [] | 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 | 117 | py |
def flatten_the_curve(lst):
return [round(sum(n for n in lst)/len(lst),1) for n in lst] if len(lst) > 0 else lst
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9c4afa38b67e13163c77c102951dc681f27676dc | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/F/Fabien/wikipedia_power_plants_2.py | b1aa08a3ed31016e75e650d95cb5a313cb461888 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,388 | py | import csv
from lxml import etree
import re
import scraperwiki
from StringIO import StringIO
from urllib import urlencode
#code inspired by https://scraperwiki.com/scrapers/dbpedia-us-hospitals/edit/
#code build using yql library doesn't seem to work, get a SSLHandshakeError when using code based on https://scraperwik... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
a542c28168e1d849dfb3e5a94a62c3bf549828d5 | 92b8b1b0914a1bb4f6571bf7c3597ac33dbc58aa | /MLG-Crypto_90/solution.py | ad3cf3c7935532127e6bd9a25f91be9243680449 | [] | no_license | leogemetric/cryptoctf-2016 | 0cb5e5179125d88f8ad14bc3c29ff5aeaeac7787 | 69b02f0bbfa941d04a2f9af101d1420a096f2437 | refs/heads/master | 2021-01-19T07:18:53.908002 | 2016-05-27T22:33:02 | 2016-05-27T22:33:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | lines = open("mlg_crypto.txt", "r").readlines()[1:-1]
subs = {}
for line in lines:
line = line.strip()
for word in line.split("_"):
if word in subs:
subs[word] += 1
else:
subs[word] = 1
print len(subs)
print subs
space = max(subs, key=lambda x: subs[x])
del subs[space]
... | [
"jameswang9909@hotmail.com"
] | jameswang9909@hotmail.com |
9d7f40b1e1cb4a8d9e542a673113d94d0418e724 | c43fbcb4442428e85616f664964d1e27ca396070 | /runs/malte/snr_study/simparamsec.py | 7a5a04938a59f165f1b98855287c2f20abe47592 | [] | no_license | megalut/megalut | ddac89a0dca70e13979d31b80d52233226233ade | 63bd4bec8000ad13f4963d464d7b7b4d470a36ab | refs/heads/master | 2020-04-15T00:33:42.815988 | 2018-09-11T08:45:48 | 2018-09-11T08:45:48 | 20,882,727 | 2 | 1 | null | 2018-09-11T08:45:49 | 2014-06-16T11:39:14 | Python | UTF-8 | Python | false | false | 3,043 | py | import megalut.sim
import numpy as np
import random # np.random.choice is only available for newer numpys...
import itertools
class Simple1(megalut.sim.params.Params):
"""
No PSF, just round Gaussians, but with Euclid zeropoint and sky level etc.
"""
def __init__(self):
megalut.sim.params.Params.__init_... | [
"malte.tewes@gmail.com"
] | malte.tewes@gmail.com |
2ff4be473a4847f049f4cc30b5101abf4ed13ff8 | cc64d03b132b773acae845c52f41fcdcdcaee273 | /test/functional/wallet_coinbase_category.py | 15e59fad3c5890d950270402edb2f1939d3bf62f | [
"MIT"
] | permissive | phlsolo316/vidcoin | aa9aae1e0f2215edadd2df89e1c9b6669abbce76 | d6eec232378c329ebc2a31e7d21acf58cf62368d | refs/heads/main | 2023-05-26T05:01:32.379060 | 2021-06-07T02:46:07 | 2021-06-07T02:46:07 | 373,622,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test coinbase transactions return the correct categories.
Tests listtransactions, listsinceblock, and ... | [
"36169687+blockinator@users.noreply.github.com"
] | 36169687+blockinator@users.noreply.github.com |
d114bd12241b8318364df59f4a6569dd709ee16c | 6131b2738a7c087dfa6907c624453576f6f0e393 | /flask_project/fish/app/spider/yushu_book.py | 027eea09c9285f9ff2cb4b25722aa5d35719a702 | [] | no_license | heheddff/myPythonProcess | 60ef240130cd02906dc500eedb397a9662c02e5a | 885a25dd2a9cd43801306d9e70b9ce89daec4406 | refs/heads/master | 2020-04-08T19:09:18.192738 | 2019-08-06T02:52:54 | 2019-08-06T02:52:54 | 159,642,468 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from app.libs.download import DOWNLOAD
from flask import current_app
class YuShuBook:
# isbn_url = 'https://api.douban.com/v2/book/isbn/{}'
# keyword_url = 'https://api.douban.com/v2/book/search?q={}&count={}&start={}'
isbn_url = 'http://t.yushu.im/v2/book/isbn/{}'
keyword_url = 'http://t.yush... | [
"qq2003qq@126.com"
] | qq2003qq@126.com |
f00aab7f8fb74e06325b57eac9054ee1eee7131a | 6ed9e72d2676447dcb68683d8823712110bb3b5e | /setup.py | b8e64f5229ce5f874831ed45e3a972b29e0365eb | [] | no_license | brandon-rhodes/python-johnhancock | 79a416e037817ee41fa384797a001ee6fcfa31b5 | 43b1128a9c217fad5ba6c6143cdbea97d6e44e51 | refs/heads/master | 2023-07-21T17:30:09.358965 | 2020-07-01T00:34:43 | 2020-07-01T00:34:43 | 6,408,682 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from distutils.core import setup
setup(
name='johnhancock',
version='0.1',
description='Sign a PDF using a PNG image',
author='Brandon Rhodes',
author_email='brandon@rhodesmill.org',
#url='',
packages=['johnhancock'],
install_requires=['Pillow', 'pyPdf', 'reportlab'],
)
| [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
42bbe971b17f3ffdb89bfd9a3742a6d66de4dd62 | 85308aca1148f3b1223f39290dafde335d36d20b | /autoimpute/imputations/dataframe/single_imputer.py | f1df335daee93d17d6c984d29414930ae1879184 | [
"MIT"
] | permissive | shabarka/autoimpute | 44ac4837e51b09f4f18e1c5de018664490d534ef | cc6f119387f9342e01126b2a8f925d116ae98488 | refs/heads/master | 2020-05-23T08:24:59.373502 | 2019-05-14T05:35:26 | 2019-05-14T05:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,094 | py | """This module performs one imputation of missing features in a dataset.
This module contains one class - the SingleImputer. Use this class to
impute each Series within a DataFrame one time. This class makes numerous
imputation methods available - both univariate and multivatiate. Each method
runs once on its specifie... | [
"josephkearney14@gmail.com"
] | josephkearney14@gmail.com |
26bc6917e32b1470a9c5e17be693dbd5ee407aea | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2560/60580/313785.py | 220666b21e9e0726571f13ffcbd14a6e29126aca | [] | 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 | 497 | py | size = int(input())
a = 0
while a < size:
b = input()
list = input().split()
num = int(input())
i = 0
d = {}
while i < len(list):
if (list[i] in d):
d[list[i]] = d[list[i]] + 1
else:
d[list[i]] = 1
i = i + 1
dict = sorted(d.items(), key=lambda ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cc3722d0a6ada9953627c61b49f3cfed650d7810 | cb1d6bd2bf5edb6e38a9094b6a003f8c8d6c01e8 | /carrent/myapp/migrations/0001_initial.py | d3efa695ec10d0db57d17a7ac52e39711a0794cf | [] | no_license | wasit7/cs459_2018s | b3d8444f2c697c1211ba949634e132af1692f7bd | dee7edcefd0964e342bf958bf91314e3c27b4be6 | refs/heads/master | 2020-04-19T15:20:43.543867 | 2019-02-20T05:01:39 | 2019-02-20T05:01:39 | 168,271,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # Generated by Django 2.1.5 on 2019-02-20 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
('id', models.AutoField(auto... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
d7a4a0f9aeec15da14a66873cdfff142ccbe3ea8 | 70e79590cd66ba1cd37ff977890164baa3d5c53c | /blog/migrations/0002_blogpage.py | cb87b9ef8a74366436525193a302f6efca545ccb | [] | no_license | thibaudcolas/codersofcolour | 7206c18f9c0e31f206f7d1dccaef2df1e46f5ecf | b085d5ec14c08d04ab2439f0a79730996cb87785 | refs/heads/master | 2022-12-02T15:06:20.984555 | 2020-06-10T18:06:02 | 2020-06-10T18:06:02 | 270,047,484 | 0 | 0 | null | 2020-07-26T14:16:37 | 2020-06-06T17:06:10 | Python | UTF-8 | Python | false | false | 963 | py | # Generated by Django 3.0.7 on 2020-06-06 16:42
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0045_assign_unlock_grouppagepermission'),
('blog', '0001_initial'),
]
... | [
"thibaudcolas@gmail.com"
] | thibaudcolas@gmail.com |
cb6eb73063e7f44c86ad29a66545b4d90f775ce6 | ae3d0e3c2fb614d96f6c787583c6e2e4cb654ad4 | /leetcode/118_generate.py | b1346f72c2348527aadf663326c7f5841837c9c0 | [] | no_license | Cjz-Y/shuati | 877c3f162ff75f764aa514076caccad1b6b43638 | 9ab35dbffed7865e41b437b026f2268d133357be | refs/heads/master | 2023-02-02T10:34:05.705945 | 2020-12-14T01:41:39 | 2020-12-14T01:41:39 | 276,884,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from typing import List
class Solution:
def generate(self, numRows: int) -> List[List[int]]:
result = []
if numRows == 0:
return result
result.append([1])
for i in range(1, numRows):
temp_array = []
for j in range(i + 1):
temp_int... | [
"cjz.y@hotmail.com"
] | cjz.y@hotmail.com |
6bb690802c91855dd0f6fa1add90a9b09c97c432 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_four/form_practice/form_app/views.py | c648c4ca3b1982be30485cd36518e4f4e2084c59 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 1,469 | py | from django.shortcuts import render, redirect
import random
def index(request):
return render(request, 'form.html')
def success(request):
if "gold" not in request.session:
request.session['gold'] = 0
return render(request, "result.html")
def process(request):
print(request.POST['user_name'])
... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
b1c59fe04d1ba3b07bb1c5709673c2d7f7d2fd61 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/pygments/lexers/gsql.py | 6af99b27ce040871edb2972c020afb40d527b0bb | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,772 | py | """
pygments.lexers.gsql
~~~~~~~~~~~~~~~~~~~~
Lexers for TigerGraph GSQL graph query language
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, include, bygroups, using, this, words
from... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
d87f498e4a7d959b5fc54f1785b26a4afec1578f | a8c95f5152c08b487c3f85246150f9f7cdd557e0 | /torabot/frontend/admin/auth.py | 1e1558234cd037fcc769c44fbecd2bb02d103592 | [
"MIT"
] | permissive | sorunis/torabot | b58113adab85e78551095e8f4551b0bbaf48e8f1 | 6d1a0a524f184cc33c5dfb3d7fc5e95af791a018 | refs/heads/master | 2020-12-11T07:19:54.269478 | 2014-05-04T18:15:54 | 2014-05-04T18:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from functools import wraps
from ...core.local import is_admin
from ..auth import require_session
from .errors import AdminAuthError
def require_admin(f):
@require_session
@wraps(f)
def inner(user_id, *args, **kargs):
if not is_admin:
raise AdminAuthError()
return f(*args, **ka... | [
"answeror@gmail.com"
] | answeror@gmail.com |
fa66b83ea082481837e05a8ceeb01bb4f447c3b4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02700/s830417832.py | 15b00c59d92d438ff9c194f96ea1df0e3dd49e2a | [] | 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 | 248 | py | a, b, c, d = map(int,input().split())
for i in range(100):
if c > b:
c -= b
elif c <= b:
print("Yes")
exit()
if a > d:
a -= d
elif a <= d:
print("No")
exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9fb01516e4f8787ceff10bc29939e2893ff1d0d4 | 47596e586b3e21b31cf360be7cd1c7d3a5dc6163 | /Mode/TaxiExperiment.py | 9390b61dc4394538c8b4af40453059b67d5122ba | [] | no_license | jasonlingo/RoadSafety | bfef06abe0668a9cb8ead5b183008a53eabdefa2 | b20af54b915daf7635204e3b942b3ae4624887d7 | refs/heads/master | 2021-03-19T13:51:13.736277 | 2015-09-17T03:49:43 | 2015-09-17T03:49:43 | 36,019,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,514 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from config import OUTPUT_DIRECTORY
from Util.kml import KmzParser
from Map.MapMatrix import MapMatrix
from Google.Direction import getDirection
from Google.Road import getRoadGPS
from Entity.Taxi import Taxi
from Entity.Crash import C... | [
"jasonlingo@gmail.com"
] | jasonlingo@gmail.com |
4a86fdc37d06384976bba51986fb40e2f225bded | a62390c9497363a9afbaac79336b3e1cb04e096e | /Day 23/turtle_crossing_game.py | dee8b9aae7eb48119d8fb87fe7a405c05db3634d | [] | no_license | PravinSelva5/100-Days-of-Code | 2cf3ae9766bdfd053532823214276e291024d5a2 | 3a299af3de5f4f0cab05fc73563df29e3c292560 | refs/heads/master | 2023-07-13T06:29:15.360016 | 2021-08-22T16:50:49 | 2021-08-22T16:50:49 | 380,812,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import time
from turtle import Screen
from player import Player
from car_manager import CarManager
from scoreboard import Scoreboard
screen = Screen()
screen.setup(width=600, height=600)
screen.tracer(0)
player = Player()
car_manager = CarManager()
scoreboard = Scoreboard()
screen.listen()
screen.onkey(player.go_up,... | [
"pravin.selvarajah.eng@gmail.com"
] | pravin.selvarajah.eng@gmail.com |
0d89b4421f4197551bd71933e7e38fc0a07c5a69 | 012837eafe45c8f7ee5fc77d4c4d7725d5314c5c | /workshops/9-section/5-clazz.py | 387fdf5912dcfa0b0f19553d2a5d7c3b235a1fe0 | [
"MIT"
] | permissive | ai-erorr404/opencv-practice | e9408cf006779a678cf3a30fc60e9dbeb3c8e493 | 60ef5e4aec61ee5f7e675fb919e8f612e59f664a | refs/heads/master | 2021-02-08T11:17:04.763522 | 2020-02-22T09:43:04 | 2020-02-22T09:43:04 | 244,146,060 | 1 | 1 | MIT | 2020-03-01T12:35:02 | 2020-03-01T12:35:01 | null | UTF-8 | Python | false | false | 2,927 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import cv2 as cv
from goto import with_goto
import math
import numpy as np
"""
KLT光流跟踪法二:
静止点删除与跟踪轨迹绘制。处置流程为 输入第一帧图像 -> 特征点检测 -> 保持特征点 -> 输入第二帧图像(开始跟踪) -> 跟踪特征点 -> 删除
损失特征点 -> 保存跟踪特征点 -> 用第二帧图像替换第一帧图像 -> 用后续输入帧替换第二帧 -> 选择新的特征点替换损失的特征点 -> 保存特征点数据... | [
"afterloe@foxmail.com"
] | afterloe@foxmail.com |
a35891111803780d3dcda76b80534ba76ce26d0e | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py | d0b0ddb2402df4eb56c081be1fa45e79a4cb2ea7 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 11,837 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from petstore_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
b7bb5a4bd176aab25895eb1ca53fd4d48febbf54 | 5054c805be8bf94d660b806dc7ee5a9f426d49bc | /ee/clickhouse/views/test/test_clickhouse_paths.py | 90ffd672f7c6c5fc992aae663c7cdba169a39947 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | BElluu/posthog | 31a121ee1e690ee5d88cb268a3cd922031dcbee4 | 1e207230ba285c64ea8e7f58fd1f78ef7d7c160a | refs/heads/master | 2022-11-29T09:37:13.072632 | 2022-07-06T16:38:37 | 2022-07-06T16:38:37 | 254,587,554 | 0 | 0 | null | 2020-04-10T08:48:41 | 2020-04-10T08:48:41 | null | UTF-8 | Python | false | false | 9,271 | py | import json
from rest_framework import status
from posthog.constants import FUNNEL_PATH_AFTER_STEP, INSIGHT_FUNNELS, INSIGHT_PATHS
from posthog.test.base import APIBaseTest, ClickhouseTestMixin, _create_event, _create_person
class TestClickhousePaths(ClickhouseTestMixin, APIBaseTest):
def _create_sample_data(se... | [
"noreply@github.com"
] | BElluu.noreply@github.com |
a149db09fb1a3483f75201ee41bba85f77be8210 | 8999b8522b18a52d09e1c76d28ee77f0d022e8fd | /pyrarcrack/pyrarcrack.py | 1e8a4da42a11f4804de1c921b09bf62577372f1e | [
"Apache-2.0"
] | permissive | abhushansahu/py-rarcrack | 7bbba825e7e9794b538818e3f1958758f58ca767 | 4326da72d9a351f1e64c8657cacada08bdbada0b | refs/heads/master | 2021-01-14T16:04:03.282548 | 2019-10-27T18:09:40 | 2019-10-27T18:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,151 | py | #!/usr/bin/python
#
##################################################
######## Please Don't Remove Author Name #########
############### Thanks ###########################
##################################################
#
#
__author__='''
Suraj Singh
surajsinghbisht054@gmail.com
http://bitforestinfo.bl... | [
"surajsinghbisht054@gmail.com"
] | surajsinghbisht054@gmail.com |
d5a296c83ab4f727f06b118c20ec16b6cc4fe178 | 34652a47355a8dbe9200db229a1bbc62619de364 | /BASE SCRIPTS/dictionary_basic_ops.py | fc5105e8a1d904c625467fc820f6c0c6b8dba090 | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,876 | py | __author__ = 'trifb'
# List the values from a Dictionary
d = {'one': 1, 'two':2, 'three':3, 'four':4, 'five':5}
for k in d:
print(k, d[k], end = ' ; ')
print('\nPrint (Reference) only a value from the dictionary : ',d['three'])
# DICTIONARY (MUTABLE) , KEYS are Immutable because are based on hashes and ... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
250bd77824bcedf7034eb92f335b65c75371bac9 | c6abddbc632b2362db0817aeab89387ea6a92902 | /qiskit/extensions/standard/ry.py | 5ac582759d10f05f7b9c33e624e57ba90dae61a4 | [
"Apache-2.0"
] | permissive | azulehner/qiskit-sdk-py | 10c3c8d5e198e06e668d356bb78a98b279c8b3b8 | 138484e41eb8bd504f3b6977e267efdd0d9f208b | refs/heads/master | 2021-05-12T19:59:23.051113 | 2018-01-11T09:12:18 | 2018-01-11T09:12:18 | 117,109,018 | 2 | 0 | null | 2018-01-11T14:11:08 | 2018-01-11T14:11:07 | null | UTF-8 | Python | false | false | 2,131 | py | # -*- coding: utf-8 -*-
# pylint: disable=invalid-name
# Copyright 2017 IBM RESEARCH. 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/licen... | [
"diego.plan9@gmail.com"
] | diego.plan9@gmail.com |
0185585a72a6d43205d0b55e5098876e40118a49 | 1726f4c11106d09313324d12d274705540baa9f4 | /server/apps/rooms/urls.py | 56e2c3207ecacd33289f58af7f389a47a8768e7b | [] | no_license | AlAstroMoody/chat | 3c1f33a343c72836867587200abbe2adedf0bbc4 | 7a528d62ccf5e4ed1d478a6479e41d37d08b87f8 | refs/heads/main | 2023-03-25T04:29:55.547258 | 2021-03-15T02:30:19 | 2021-03-15T02:30:19 | 347,811,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.urls import path
from .views import RoomView
from .views import ReportView
rooms_urlpatterns = [
path('room/', RoomView.as_view(), name='room'),
path('room/<uuid:uuid>-<str:token>/report/', ReportView.as_view(), name='report'),
]
| [
"aastrotenko@mail.ru"
] | aastrotenko@mail.ru |
232ae1fa95eccd3f919594407f942bf53ac1636b | 6c3dbc51b19ddd21c389de79c29fa3706fc44733 | /models/cnn_bilstm_attention.py | 823f648be7ed06d81bfbd1e5e92a28a9c426eb31 | [
"MIT"
] | permissive | Eurus-Holmes/Tumor2Graph | 7db12920a21b1b8609087fd9d7ceb245420cb536 | 6e52748d8cd2e8fe33092e2c67e92e6454a964b3 | refs/heads/main | 2023-07-07T22:15:17.869378 | 2021-09-02T03:31:46 | 2021-09-02T03:31:46 | 390,660,583 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,951 | py | from torch import nn
import torch
import torch.nn.functional as F
class TextCNN(nn.Module):
def __init__(self, feaSize, contextSizeList, filterNum, name='textCNN'):
super(TextCNN, self).__init__()
self.name = name
moduleList = []
for i in range(len(contextSizeList)):
modu... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
18f94647b65564f8455ffaaba1d6773b058d9354 | 6a2c101774903441bc43bcafaef788a7465d38bb | /music_controller/spotify/migrations/0001_initial.py | 6d380eb7954ae335440d0885ddd1edc8b8424db7 | [] | no_license | naistangz/house-party | 9faa66e12a528881cd7e613fede9da2a1ccf8c19 | 2bad502dececbdf7d273c14b9ea96dd9dc9a0c45 | refs/heads/main | 2023-02-17T04:35:31.012691 | 2021-01-17T12:07:36 | 2021-01-17T12:07:36 | 330,140,403 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Generated by Django 3.1.4 on 2021-01-03 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SpotifyToken',
fields=[
('id', models.AutoF... | [
"a6anaistang@hotmail.co.uk"
] | a6anaistang@hotmail.co.uk |
d5d79711a8ecbee5719606b201e7c9849b0a16e5 | e4607b5c37a4eba4d8c93e910375bbaf711e208b | /task/utils/ansible_api_v2.py | 242b4d9df49c41971be46265ff9757ee0e97af62 | [] | no_license | scholarg/Ops | 4d703d3fd3cb83ea0fb06b22918e40037e9171e5 | a409b07b6a256b2df2182b0441a33dc1ba29b307 | refs/heads/master | 2020-04-28T21:09:58.789788 | 2019-03-13T10:19:58 | 2019-03-13T10:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,630 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: ansible_api
Description:
Author: Administrator
date: 2018/6/11
-------------------------------------------------
Change Activity:
2018/6/11:
---------------------... | [
"zm_world@163.com"
] | zm_world@163.com |
2f58447eca540956aaaab1ccc21b07ff3717c1a8 | 4d2443d54c8a1104cad8ecc60e417e8a5af69450 | /entertainment_center.py | e0bef0107dacc1b001e5bdd21b53091f6f0b3a90 | [] | no_license | xueweiyema/movie_website | 4fa73dfbaf0a395e72eb6edcf91995dd5a2136e5 | 9770f994a291b51d4fd1a7032fc21a5ac3c537aa | refs/heads/master | 2021-01-19T07:09:44.646186 | 2017-04-24T06:41:19 | 2017-04-24T06:41:19 | 87,527,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import media
import fresh_tomatoes
titles = [
"Pirate Radio", "The Social Network", "Hidden Figures", "The Martian",
"Good Will Hunting", "The Lives of Others"
]
storylines = [
'''A band of rogue DJs that captivated Britain, playing the music that defined a generation and
standing up to a government t... | [
"123456"
] | 123456 |
34e2afbf4f41a4aff51f96b7411be3d80992143d | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /swagger_client/models/i_ospfv3_log_adjacency_changes.py | 7ded1a2c2292e58b760cb914f7d1efd4e458559b | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
0e2f843c6f77029a11b47217263877d7bcd0f437 | aeea7889a986e23ababbfc470e5fa97a4982bca0 | /devel/lib/python2.7/dist-packages/pal_interaction_msgs/msg/_WebGuiEvent.py | 068b236c1fdeb1d78c4037e05350bf894fd1ee86 | [] | no_license | robstolarz/sturdy-broccoli | 834798751985a0e77c8791859d9d5a8398da0416 | 2e4ae8f1966f01cab4938b8c5b42e3cfd1d9370a | refs/heads/master | 2021-01-20T07:09:07.867184 | 2017-05-15T14:10:56 | 2017-05-15T14:10:56 | 89,967,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_interaction_msgs/WebGuiEvent.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class WebGuiEvent(genpy.Message):
_md5sum = "bd4a90be174b9e14b06cf397c1359fb1"
_... | [
"robert.stolarz@yandex.com"
] | robert.stolarz@yandex.com |
9b2983584ad068a54f43777bcf968b094e4c2bb3 | ae5b2f3b1a37a32fcf6388cc7ce14ea69df3eade | /Password Hacker/Problems/Input/main.py | a05ae94c21ef72424d4ff263bdaae9368e4fa2df | [] | no_license | Lyasinkovska/PycharmProjects | 9e05e9161c2f5019f68d5ec456c3871ec96835ca | 02ab034f6618c013cc42197f97ba56355f9b6163 | refs/heads/master | 2021-07-14T03:59:44.146017 | 2021-03-10T18:59:53 | 2021-03-10T18:59:53 | 242,104,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # write the code here
line = input()
file = open('input.txt', 'w')
file.write(line)
file.close() | [
"l.yasinkovska@gmail.com"
] | l.yasinkovska@gmail.com |
974d23b2db78a98dff8a60dd5fd88c8a96574f4a | 3636cc88862e72016932459bf5a14afa5249a628 | /manage.py | d6ba9f7bc8246711107ec0cdc403ac2efad8fd77 | [] | no_license | crowdbotics-apps/punch-17156 | a19f2d55db2b3b15cd9c582e1576e06033191169 | 332fb19031bef7b26101e0e77f6e3dca70b45780 | refs/heads/master | 2023-05-30T20:26:47.145506 | 2020-05-19T19:21:38 | 2020-05-19T19:21:38 | 265,340,874 | 0 | 0 | null | 2021-06-12T08:02:20 | 2020-05-19T19:13:40 | Python | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "punch_17156.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d86ce35082ffe54da97e3fc64900cb94273d31e3 | 01031a3d3a33f7591185049e0e44526d9b852821 | /SLAM/FastSLAM/fast_slam.py | 5fb58f0f6c79cffce9e14f0fb876674a3d575e77 | [
"MIT"
] | permissive | matthewgan/PythonRobotics | 8555e2afe95d09c12c5e18ab4658b8e9e3f6817c | ba926c6307e353dbef0d6ee67f5156ec923dc974 | refs/heads/master | 2021-04-06T03:39:43.702250 | 2018-03-10T18:38:06 | 2018-03-10T18:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | """
Fast SLAM example
author: Atsushi Sakai (@Atsushi_twi)
"""
import numpy as np
import math
import matplotlib.pyplot as plt
# EKF state covariance
Cx = np.diag([0.5, 0.5, math.radians(30.0)])**2
# Simulation parameter
Qsim = np.diag([0.2, math.radians(1.0)])**2
Rsim = np.diag([1.0, math.radians(10.0)])**2
DT... | [
"asakai.amsl+github@gmail.com"
] | asakai.amsl+github@gmail.com |
1cc5122e5c66d396e0dc0b524d9525bc39c29fb8 | 9f7c106d50681b394d822fbdc5e3ad25f04d927c | /week6_nissi_miika/week6_ass10_nissi_miika.py | ffc57d3b785e28d30b956c0c90436868710caa64 | [] | no_license | miikanissi/python_course_summer_2020 | edf032b1d9815dfa6e0b5f7c902f7b469117c04f | 3969288b969b3db8f9d7f2fdb67905f13d4969fa | refs/heads/master | 2022-12-02T09:33:42.625374 | 2020-08-24T17:38:59 | 2020-08-24T17:38:59 | 273,909,320 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | def search(array, n):
for i in array:
if i == n:
return True
return False
arr = [23,4,89,19,0,700,30]
print("Number 19 found: ", search(arr, 19))
print("Number 20 found: ", search(arr, 20))
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
52fe8f06f0857f20301770af0233c347deb1dcc6 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/reservation/azext_reservation/aaz/latest/reservations/reservation/_archive.py | 734b5fe8a45e886531655e01256e5a4e690f51e7 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 3,904 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e70678a04a2923ec5b42793b99a701886f815120 | 023763d9f86116381f5765c51fb8b403e8eef527 | /Other/M-SOLUTIONS プロコンオープン 2020/m_solutions2020_c.py | a2a8e2a8ef4bdc030af9099c1af7be71984e6691 | [] | no_license | Hilary02/atcoder | d45589682159c0f838561fc7d0bd25f0828e578b | 879c74f3acc7befce75abd10abf1ab43967fc3c7 | refs/heads/master | 2021-07-18T11:34:22.702502 | 2021-07-11T09:04:12 | 2021-07-11T09:04:12 | 144,648,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | n, k = [int(w) for w in input().split()]
la = [int(w) for w in input().split()]
for i in range(k, n):
cond = la[i] > la[i-k]
print("Yes" if cond else "No")
| [
"c011605154@edu.teu.ac.jp"
] | c011605154@edu.teu.ac.jp |
f8392b31b550f3e9534ab9a3e39f8baed6780ccb | bd5c1f86971a068e9a4ea57459653d649ea4c50e | /tests/unit/test_util.py | 18973c6f16a056c938ac6e25dcb06fc61da6117c | [
"MIT"
] | permissive | monoflo/bloop | 553372c7155de386afd098e3c91435186064a5d4 | c476298e5a40decf9fdf2ed50df74be8f91fdffd | refs/heads/master | 2020-04-06T12:54:19.184591 | 2018-11-14T22:06:01 | 2018-11-14T22:06:01 | 157,475,484 | 0 | 0 | MIT | 2018-11-14T02:04:44 | 2018-11-14T02:04:44 | null | UTF-8 | Python | false | false | 3,510 | py | import collections
import gc
import pytest
from bloop.models import BaseModel, Column
from bloop.types import Integer
from bloop.util import (
Sentinel,
WeakDefaultDictionary,
index,
ordered,
walk_subclasses,
)
def test_index():
"""Index by each object's value for an attribute"""
class P... | [
"joe.mcross@gmail.com"
] | joe.mcross@gmail.com |
321af11c680482b013a293d81093854eec9201fc | 4680b7f858232806ea15bf2464ec4b6401d93cf0 | /src/joins/models.py | e62ea42028a7e3943d20ac673c2baa3bcb0d8b56 | [] | no_license | Tushant/socialSharingCampaign | 69017e602648ea8ef6e02092668039d61844b61f | 96dc8176be1cf64e9ef4ec6a305c61666612be20 | refs/heads/master | 2020-04-02T06:45:17.103905 | 2016-07-18T02:09:51 | 2016-07-18T02:09:51 | 63,562,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from django.db import models
# Create your models here.
class Join(models.Model):
email = models.EmailField()
friend = models.ForeignKey("self", related_name='referral',\
null=True, blank=True)
ref_id = models.CharField(max_length=120, default='ABC', unique=True)
count_added = models.ForeignKey("self",n... | [
"programmertushant@gmail.com"
] | programmertushant@gmail.com |
98cfe74c39eaab9a20964b5ba9dd22e3e4ede5a4 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /workmail_write_2/organization_delete.py | 6780aa72ae6f9c251cf32b3f0cb708c6b7c074ff | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/workmail/delete-organization.html
if __name__ ==... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
59591e6819e784285a66c1e75672d25166bbaab7 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/-1317042838/fcntl.py | bec2cdc25d0f7a7a50514e4edeaf1497362d20c3 | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 8,460 | py | # encoding: utf-8
# module fcntl
# from (built-in)
# by generator 1.147
"""
This module performs file control and I/O control on file
descriptors. It is an interface to the fcntl() and ioctl() Unix
routines. File descriptors can be obtained with the fileno() method of
a file or socket object.
"""
# no imports
# Var... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
ccd41b50340ff40a19e60d5e20e3b3ea9833977d | b2e93927aad0ddf373b1078dc1adfdaf0a3157a7 | /corr_test_terms.py | 70fdd49cd00b6ee488b4751ed908c9586320636d | [] | no_license | TaiSakuma/metrecoat | 30dc084458cf48f8c63f7c6c8ec47ec50cdd6b73 | f62b269a5cb5f066a7cc1a748f999ebe36d6bd41 | refs/heads/master | 2016-09-02T00:07:00.514760 | 2013-12-16T22:03:45 | 2013-12-16T22:03:45 | 12,684,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,141 | py | #!/usr/bin/env python
# Tai Sakuma <sakuma@fnal.gov>
import ROOT
import sys
import math
import json
import re
import unittest
from optparse import OptionParser
ROOT.gROOT.SetBatch(1)
##____________________________________________________________________________||
parser = OptionParser()
parser.add_option('-e', '--exp... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
84291218bcb69359e7565f114049da7a9bd357a7 | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.1/fdtd3d/exchange_boundary/355-measure-mpi_persistent_nonblocking.py | c1fbb85ec48b24c37996bf959eafdc9e592df130 | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | #!/usr/bin/env python
import numpy as np
import sys
from datetime import datetime
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
size = comm.Get_size()
tmax = 100
start = 2 * np.nbytes['float32'] * (3 * 32)**2 # 96, 73728 B, 72.0 KIB
end = 2 * np.nbytes['float32'] * (15 * 32)**2 # 480, 1843200 ... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
039324dbe1f538d8614a5cc1c3f43b35c154f65b | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/ipv4_external_reachability/prefixes/prefixes_/__init__.py | a2e03cc506bcde6ac792116445848e658db09a92 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 33,968 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
13a79905720eff6384e566cd5ce78aabc98fad6e | 449f410b621049c4049a4f7d4b0858f53d56a7d7 | /wsgi.py | 4de7f7338ea0c3cfe5726fae5cb96379bb08522d | [
"MIT"
] | permissive | mvwicky/holdmypics | c02f25fd05d9694ff61d5839bd039a3a1bea4b01 | 194b135f885ef76d55975727a4a5125a6f9d33ee | refs/heads/main | 2023-05-10T19:36:20.978697 | 2023-05-06T21:27:29 | 2023-05-06T21:27:29 | 196,925,416 | 0 | 0 | MIT | 2023-03-31T15:23:01 | 2019-07-15T04:45:27 | Python | UTF-8 | Python | false | false | 98 | py | from __future__ import annotations
from holdmypics import create_app
application = create_app()
| [
"mvanwickle@gmail.com"
] | mvanwickle@gmail.com |
91e2340c81606ad57b2da8e47bcf915ee87475ec | 36dfd21c845f37d1b01c093715d6688513aec704 | /contrib/diggext/drivers/devices/powerstrips/__init__.py | 6fa4d8b6c852defbf7a7be20a2b27cc78c22c843 | [] | permissive | clusto/clusto | f992040ef935cc43a9f967d1412888f56ec82f71 | 7ac64e94482cc71075227dacda48953439f46dab | refs/heads/master | 2021-07-15T21:51:23.247277 | 2021-03-13T13:23:54 | 2021-03-13T13:23:54 | 1,432,240 | 246 | 63 | BSD-3-Clause | 2021-03-13T13:12:45 | 2011-03-02T20:17:28 | Python | UTF-8 | Python | false | false | 25 | py | from servertech import *
| [
"jeremy@synack.me"
] | jeremy@synack.me |
d591713f33f151a2652cf6743bb465b5f8fd228c | 7848ded2f7b1cf5cc33380d739e0ceee5718ffec | /imrunicorn/api/migrations/0001_initial.py | b482e08ed992a3d2a8fb1b85887896b36c690222 | [] | no_license | benspelledabc/djangosite | cbed1a7da3eb6ba6eee05897ec928b350831fc6b | fa8004b20f790f56fc69e9d158128a867be700f3 | refs/heads/master | 2023-04-17T19:24:48.908640 | 2021-05-02T19:05:38 | 2021-05-02T19:05:38 | 294,891,690 | 1 | 1 | null | 2021-05-02T19:05:38 | 2020-09-12T07:16:11 | Python | UTF-8 | Python | false | false | 850 | py | # Generated by Django 3.0.7 on 2021-04-25 07:33
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DockerHubWebhook',
fields=[
... | [
"admin@benspelledabc.me"
] | admin@benspelledabc.me |
495298d24e69f2a064d50674a1cfb7b26a1e67ae | 60da3d5a9c3957ddbaaf481fea19691f87d682b0 | /frec/utils.py | 025ccc33cb295f36e33179c60bf53eded66b6c7d | [] | no_license | heynemann/frec | 59d46740ee86c7f3fc68fe0e0d14d98c043c8a31 | bb23732f1c367f4c8167adeeefad93cc153851a2 | refs/heads/master | 2020-05-16T23:17:42.826305 | 2012-08-13T13:35:25 | 2012-08-13T13:35:25 | 4,644,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# frec face recognition service
# https://github.com/heynemann/frec
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2012 Bernardo Heynemann heynemann@gmail.com
# code adapted from thumbor's util module (http://github.com/glo... | [
"heynemann@gmail.com"
] | heynemann@gmail.com |
33978a2e58d074881b12e622dcb6d6abc7198bd0 | d4418afe18acc3e46533aedf4ac66c237dab65db | /Processing/bin/htmlDressing.py | 720c796db1f1214595d89fb4559b7f01dffd3967 | [] | no_license | cpausmit/MitProd | c148772ee6c844d384f5e83ca21b77591d979403 | c552a39533487c4e90fb52d35ce083dae24304d8 | refs/heads/master | 2021-01-17T03:49:17.821338 | 2016-11-30T21:56:38 | 2016-11-30T21:56:38 | 14,059,357 | 0 | 4 | null | 2016-10-12T04:40:27 | 2013-11-02T02:56:11 | Python | UTF-8 | Python | false | false | 3,697 | py | #!/usr/bin/env python
#---------------------------------------------------------------------------------------------------
# Script to get a quick overview how far the production has come.
#
# Author: C.Paus (Feb 16, 2016)
#---------------------------... | [
"paus@mit.edu"
] | paus@mit.edu |
c6b2eb96daa285928570f762bd1a2c747ba8d49d | 33d490698f2958f2d53a6436043959bac5c9f63d | /radius_advanced/models/radius/__init__.py | 0784c3e972603c412b2f1ac75db238c121875525 | [] | no_license | ideosoft/odoo-modules | cf1a4bf0a1f0f25bfa44a83f8c10a2c73baed67e | 3183a533ec9b89a57fd2b4c09cca0111afc86730 | refs/heads/master | 2021-03-30T18:13:42.873503 | 2016-07-14T13:46:01 | 2016-07-14T13:46:01 | 49,328,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # -*- coding: utf-8 -*-
import group
import user
import usergroup | [
"jgomez@ideosoft.es"
] | jgomez@ideosoft.es |
a7a7c414f370b2b086402995386596237370520c | 35fe64e51683305123d85701093325858596bdeb | /sliders.py | 6ed673c095f555930634eae5178d60210ed7d022 | [] | no_license | BruceJohnJennerLawso/atmosphere | 9d12a226cd287703927e577b19c6c9fb713448df | 9690d3dd7332f08a2f5fea20d32b5a0cd4408f7f | refs/heads/master | 2022-02-02T09:57:16.452393 | 2018-06-15T19:53:14 | 2018-06-15T19:53:14 | 71,283,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | ## sliders.py ##################################################################
## all manner of useful widgets to get yo sliding needs done ###################
## looks like this was just a testbed I had for learning how the tkinter #######
## sliders work #############################################################... | [
"johnnybgoode@rogers.com"
] | johnnybgoode@rogers.com |
b792a234218d5cd156cf4eba9d6f7772a2555e38 | 5a171226c273825345429b0bd6e4a2878ef4979f | /aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py | f41349e6a788eea512555eb6125272b7dfe9da7a | [] | no_license | taka25/OpenColorIO-Configs | 5ea63f024804c1dbc98631358ef5c6f6a051fe8b | 547fceb44bbc1f7475fb17851c3b3cc31b616455 | refs/heads/master | 2021-01-15T09:23:42.345060 | 2015-05-05T18:54:32 | 2015-05-05T18:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Defines unit tests for *ACES* configuration.
"""
from __future__ import division
import hashlib
import os
import re
import shutil
import tempfile
import unittest
from aces_ocio.utilities import files_walker
from aces_ocio.create_aces_config import (
ACES_OCIO_CT... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
a15603b3758d92526600d42a165894eca6cd2f51 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_toeing.py | 94ec751994aa0fdf9ff24eee291846ff392885e8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _TOEING():
def __init__(self,):
self.name = "TOEING"
self.definitions = toe
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['toe']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6a9099a6a18d621eb5bef925cbb1bc5ce827c848 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/azure-firewall/azext_firewall/vendored_sdks/v2020_07_01/v2020_07_01/operations/_vpn_site_links_operations.py | b7c35fdfc04bbbcbdc10df704b1a330725d28142 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 8,009 | 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"
] | ebencarek.noreply@github.com |
5ea023f8b22b079a1c6ef60caf7748d09c188e78 | a742bd051641865d2e5b5d299c6bc14ddad47f22 | /Mysite/Mysite/urls.py | 3b6e04e1c9549e94a6cee0321e84fbd1d387ce51 | [] | no_license | lxconfig/UbuntuCode_bak | fb8f9fae7c42cf6d984bf8231604ccec309fb604 | 3508e1ce089131b19603c3206aab4cf43023bb19 | refs/heads/master | 2023-02-03T19:10:32.001740 | 2020-12-19T07:27:57 | 2020-12-19T07:27:57 | 321,351,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | """Mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"525868229@qq.com"
] | 525868229@qq.com |
183738a9cec443d7c91c9694e74ba4eb9486ce94 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/net_tools/nios/test_nios_member.py | c9ad0fcfea3515184182cc14f31e2fdf2be4fc80 | [
"MIT",
"GPL-3.0-only",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 6,928 | py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
c2e00b209d01add39d31fcef937d285577c5e4f1 | 5c09a25f0b401d525a0d6023399e4910d8a8c487 | /students/alex_skrn/lesson04/mailroom.py | 5ae4740324a09c03e2f86c865016bc03ad5fb085 | [] | no_license | UWPCE-PythonCert-ClassRepos/Wi2018-Online | d6183f47e5b37b6ba56e2310d252334cb6024c9e | 8c32086bf30de8decdc8e5f43cfa1344d5747200 | refs/heads/master | 2021-09-11T13:26:31.817582 | 2018-04-07T20:11:20 | 2018-04-07T20:11:20 | 115,212,113 | 0 | 38 | null | 2018-04-07T20:11:20 | 2017-12-23T17:47:10 | Python | UTF-8 | Python | false | false | 7,714 | py | #!/usr/bin/env python3
"""Mailroom - Part 2 - Dicts, Files."""
import os
import datetime
import tkinter as tk
from tkinter import filedialog
donors = {'Aristarkh Lentulov': [4.5, 5.0],
'El Lissitzky': [34.2, 30.0, 35.5],
'Kazimir Malevich': [15.0, 20.25, 12.25],
'Marc Chagall': [148.75, ... | [
"askrn123@gmail.com"
] | askrn123@gmail.com |
644d2ebcf8dde622bf31286a808291a3ac4b316c | f4fd57b93fa7178a38357f4ab2391aa299a2f1de | /.c9/metadata/environment/employees/resources.py | 179c7eefe305777134f677baa8e6ac57a3df8ca8 | [] | no_license | matthewrr/Employee-Scheduling-App | 10660bba2afead94fe9c43f772e185355f9ac101 | aec55f3a622486d77521f47e83f50c4733694545 | refs/heads/master | 2020-03-22T00:56:47.918978 | 2018-09-02T20:25:15 | 2018-09-02T20:25:15 | 139,274,371 | 1 | 0 | null | 2018-08-03T20:57:43 | 2018-06-30T19:26:13 | Python | UTF-8 | Python | false | false | 4,311 | py | {"filter":false,"title":"resources.py","tooltip":"/employees/resources.py","undoManager":{"mark":6,"position":6,"stack":[[{"start":{"row":0,"column":0},"end":{"row":5,"column":21},"action":"insert","lines":["from import_export import resources","from .models import Event","","class EventResource(resources.ModelResource... | [
"matthewrr@users.noreply.github.com"
] | matthewrr@users.noreply.github.com |
c03ee96cb703f340a5d609bd3956659f5382d3ae | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/45f445a1-9136-48b4-8087-3e2ba78df746__ngnotifier_filters.py | da1355a8abf0fee1c219af55f72201920e09c7ba | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import operator
from django import template
register = template.Library()
@register.filter(name='sort_hosts')
def list_sort(value):
return sorted(value, key=operator.attrgetter('host'))
@register.filter(name='sort_groups')
def list_sort(value):
return sorted(value, key=operator.attrgetter('name')) | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
de46502ffb2b3dece449752adde08694708987ae | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03379/s380015361.py | 436f043c6480227367064b8e867d7e9f66a47528 | [] | 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 | 231 | py | import copy
n = int(input())
x = list(map(int,input().split()))
x2 = copy.copy(x)
x2.sort()
num1,num2 = (len(x)//2)-1,(len(x)//2)
med1,med2 = x2[num1],x2[num2]
for i in range(n):
if x[i] <= med1:
print(med2)
else:
print(med1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b5f8c14ad7122cdf83315be435b923ae1edff549 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.12.4/1/1569576594.py | 1b464c42214abc044ae82513f5d498da2e00f185 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def nwords(s: str)-> int:
"""
Die Funktion nwords berechenet zu einem String Argument s die Anzahl der Worte im String.
args:
s(str): Text
return:
Anzahl an Wörter im Text
"""
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
c9169e0f5182f273adf69081428b61877d165c48 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_3091.py | 4cc06869f0330e8014d867c4d1cdc15f089c51c8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | # How to call an element in an numpy array?
print arr[1,1]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
5b34f79f6412bb654bf991a1c15c12d7d6e8f3b7 | 730d9a4b1a8a031d3dd158f695634ef9a3da9506 | /non_hugin_based_stitching/parse_output_for_hugin_2.py | 5eca6ddecf0912b2faf181d3a81fd2a3d4a03885 | [] | no_license | tingleshao/kirito | dcf6ddb49059624ef5f4aff966b1d56ef516d740 | 6309852cbd24b21e724060510a71e6ff84789c96 | refs/heads/master | 2020-05-20T21:12:37.159318 | 2017-07-21T20:22:42 | 2017-07-21T20:22:42 | 84,524,894 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | import matched
import cv2
# parse the plain text output into hugin style
# the opencv feature extraction is on images with scale 581 x xxx
# hugin uses the original image resolution
# 2160 x xxxx
adjacernt_map = [[1, 8, 9, 10, 11, 12, 13, 14],[0, 2, 7, 8, 9, 13, 14, 15],[1, 3, 6, 7, 8, 14, 15, 16],
[2... | [
"cshao@cs.unc.edu"
] | cshao@cs.unc.edu |
3eddaa9d2ce87b1a7007b1bf576aa4a6cd259e13 | 5d9bd0ee9ef2875b5d0f050bb859bbc1a9e8cf2d | /邮件发送/邮件1.py | 836a6f16decc5830592be48b8aa3d1301d817933 | [] | no_license | StarLord777/Spider-learn | 75a825fd2f858682c7388bd5565a9b126e515fba | 1b206df0d6298f3ac401d85ded86f6fb328e49a4 | refs/heads/master | 2020-03-27T10:01:36.215743 | 2018-10-12T13:23:14 | 2018-10-12T13:23:14 | 146,390,047 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import smtplib
from email.mime.text import MIMEText
from email.header import Header
import threading,time
import redis
redis = redis.Redis(db=15)
def sendMailToOne():
print('线程{}正在运行---------------'.format(threading.current_thread().name))
sender = '001@vipjiexi.club'
receiver = ['2492057915@qq.com']
... | [
"1694222672@qq.com"
] | 1694222672@qq.com |
8b87c7af62f2b1e6b49f820f026a418edaecf433 | 339f9b9425c76c1c09c6244fa9918482477d4a5a | /catkin_ws/devel_isolated/apriltag_ros/lib/python3/dist-packages/apriltag_ros/msg/_AprilTagDetectionArray.py | 2b64a27431ae88c6e057d9e483ea1eaca93e9547 | [] | no_license | kloya03/AuE893_SP21_KartikLoya | b33b4830e678b0ba2f6531f5d311cc95d05ba89d | 84c72144878d5f41daa199aa6636d2e4e2cd849d | refs/heads/main | 2023-04-13T14:41:43.970494 | 2021-04-26T01:41:31 | 2021-04-26T01:41:31 | 356,286,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,916 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from apriltag_ros/AprilTagDetectionArray.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import apriltag_ros.msg
import geometry_msgs.msg
import std_msgs.msg... | [
"kloya@g.clemson.edu"
] | kloya@g.clemson.edu |
255178d0466894ec672c8e0a84ade575a81e6df0 | 62050251587de5a816cb55deb20ad57be5362fa1 | /ws2812b_rmt_demo-2.py | e095922651b373cc1cc602ae80659e3748d439d7 | [] | no_license | rsp-esl/micropython_esp32_examples | 60832e7bc4a2e7864d60f96d9d523f754d7ea085 | 073222d467ae914838a0a475d07cb679f7a4ba01 | refs/heads/master | 2022-09-17T10:42:44.331333 | 2020-05-27T15:22:31 | 2020-05-27T15:22:31 | 257,871,864 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # File: rmt_ws2812b_demo-2.py
# Date: 2022-05-27
from machine import Pin
import utime as time
from ws2812b import WS2812B
WS2812B_PIN = Pin(27)
NUM_LEDS = 8
# create WS2812B object for n-pixel RGB LED strip
strip = WS2812B(pin=WS2812B_PIN,n=NUM_LEDS)
# define test colors
COLORS = [
0x3f << 16, 0x3f << 8, 0x3... | [
"noreply@github.com"
] | rsp-esl.noreply@github.com |
c2aea491b89982df7749eb3e86a0983090c42777 | a1ee744a2b31bd8177589924c06dcb065fe16646 | /2022/22_Monkey_Map/main.py | acb8a9528fb940c80491625ac337d2f9a7374394 | [] | no_license | claytonjwong/advent-of-code | 7cdd381698b62276ca58a6ef684c950aeb315c53 | 234298a5b6d40ef17f48065b37cbfcca70e02513 | refs/heads/master | 2023-01-27T18:33:17.558144 | 2023-01-16T17:36:51 | 2023-01-16T17:37:07 | 161,686,749 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | #
# https://adventofcode.com/2022/day/22
#
A, dirs = [], []
with open('input.txt') as input:
for line in input:
line = list(line[:-1]) # discard trailing newline
if not len(line):
continue
elif line[0] in [' ', '.', '#']:
A.append(line)
else:
step... | [
"claytonjwong@gmail.com"
] | claytonjwong@gmail.com |
34da2c9efaf65c6127540f5c1078643dff788197 | bc8b15fa1e22983995063d5ddf46d58dc0a13787 | /apps/login_registration/models.py | 24fb3de4849d164b02a7086bf3e0482e53857d1e | [] | no_license | mtjhartley/new_semi_restful_routes | d8aa4e95f900d1841c46461b05940f6e3fdb883b | 44e5b7053643302489b27a529f4593420aebe516 | refs/heads/master | 2022-12-10T07:30:19.023696 | 2017-06-26T22:35:12 | 2017-06-26T22:35:12 | 95,484,930 | 0 | 0 | null | 2022-12-07T23:58:08 | 2017-06-26T20:06:52 | JavaScript | UTF-8 | Python | false | false | 4,167 | py | from __future__ import unicode_literals
from django.db import models
import datetime
import re
import bcrypt
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
# Create your models here.
class UserManager(models.Manager):
#takes request.POST, returns loginObject. If "user" in loginObject,... | [
"mtjhartley@gmail.com"
] | mtjhartley@gmail.com |
de53da853cc6103cea2c395036310e4d7cea6c8b | af1a5e8245a34cb205216bc3e196045bb53f27d1 | /cottonformation/res/eventschemas.py | f9bdafc5e0c0c3a833bf51c8b24dd57bf16846c4 | [
"BSD-2-Clause"
] | permissive | gitter-badger/cottonformation-project | b77dfca5679566fb23a63d94c0f56aebdd6f2508 | 354f1dce7ea106e209af2d5d818b6033a27c193c | refs/heads/main | 2023-06-02T05:51:51.804770 | 2021-06-27T02:52:39 | 2021-06-27T02:52:39 | 380,639,731 | 0 | 0 | BSD-2-Clause | 2021-06-27T03:08:21 | 2021-06-27T03:08:21 | null | UTF-8 | Python | false | false | 16,852 | py | # -*- coding: utf-8 -*-
"""
This module
"""
import attr
import typing
from ..core.model import (
Property, Resource, Tag, GetAtt, TypeHint, TypeCheck,
)
from ..core.constant import AttrMeta
#--- Property declaration ---
@attr.s
class SchemaTagsEntry(Property):
"""
AWS Object Type = "AWS::EventSchemas::... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
fabe74c1ac07365d3462e69f8781152f04bd89d2 | 777b281b8a13eb33276023cb1fddbc41be55950f | /lib/dataset/mpii.py | f85aa17676e7d37c6b3403b647b8122ee5df71df | [
"MIT"
] | permissive | CrystalSixone/DSPNet | af0980908f5e0008b4b5499bc3092bddce4a25d5 | e82cc1938af65234471b6a139a8ac51f22de32a6 | refs/heads/main | 2023-01-03T21:59:14.891648 | 2020-10-24T02:20:21 | 2020-10-24T02:20:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,734 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __futu... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.