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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b6a96c0a23de192aef4979a78648815eb239d92 | 992eeae8bb54ac7eb258994049e74474f090eb36 | /13. Exam Prep Questions/08. SoftUni Past Exams/03. Mobile Operator.py | dc6f231cff698f876d138de9b09d21bcfbc97dc0 | [] | no_license | elenaborisova/Python-Basics | 4ae856ee50a543479902467167f3b8f8169284b8 | b7476e3c25c2448f4f12a29e16f20caa10b72038 | refs/heads/main | 2023-01-04T17:17:17.091347 | 2020-10-26T22:56:11 | 2020-10-26T22:56:11 | 307,164,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | contract_duration = input() # one or two years
contract_type = input() # small middle large or extralarge
mobile_data_added = input() # yes or no
number_of_months = int(input())
contract_price = 0
if contract_duration == "one":
if contract_type == "Small":
contract_price = 9.98
elif contract_type == "... | [
"elenaborrisova@gmail.com"
] | elenaborrisova@gmail.com |
7c48c8e83a560ecd8044c2f4b2f47c7c852ed284 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/cfmsimulatedmp_67cd757b726cce9c0de4f91be721d97e.py | e957cbfe3617fc809b6fa94e5dd802489dfcbd93 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 71,282 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
d1b6fae5395dae27e6940600476a13e19aa1ece8 | 38a9eda76b10e0cceafc4a255f79c22df8847001 | /logrec/dataprep/split/samecase/random_word_selector_for_splitting.py | a48b3453b655ee7984a4fe21c6ecacb18a091c73 | [
"MIT"
] | permissive | hlibbabii/log-recommender | 4272bb1c91c5c213ee4944930584af713da01c6d | 03c975da4029676acb2c29f5915e30b2b29fce6c | refs/heads/master | 2022-12-21T06:28:04.702117 | 2020-03-27T11:39:30 | 2020-03-27T11:39:30 | 123,821,082 | 2 | 1 | MIT | 2022-11-22T03:57:00 | 2018-03-04T19:25:35 | Python | UTF-8 | Python | false | false | 3,689 | py | import logging
import math
import os
import random
import re
from collections import defaultdict
from logrec.dataprep import base_project_dir
logger = logging.getLogger(__name__)
base_dataset_dir = f'{base_project_dir}/nn-data/devanbu_no_replaced_identifier_split_no_tabs_new_splits3_under_5000_15_percent/'
path_to_l... | [
"hlibbabii@gmail.com"
] | hlibbabii@gmail.com |
1d06373897f48a555acb6a7d135865bc7e91c296 | a7f16c95f973905e880ad4dc277fbba890486654 | /wildlifecompliance/migrations/0156_merge_20190404_1353.py | d96e85d324a57c0b6ffd2aafb82f55f0ed27fe98 | [
"Apache-2.0"
] | permissive | dbca-wa/wildlifecompliance | 9e98e9c093aeb25dbb7ff8d107be47e29bcd05e1 | cb12ad9ea1171f10b5297cdb7e1eb6ea484e633d | refs/heads/master | 2023-08-08T14:37:05.824428 | 2023-07-31T02:57:23 | 2023-07-31T02:57:23 | 232,276,030 | 1 | 17 | NOASSERTION | 2023-07-31T02:57:24 | 2020-01-07T08:12:53 | Python | UTF-8 | Python | false | false | 361 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-04-04 05:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0155_merge_20190329_1202'),
('wildlifecompliance', '0153_auto_20190401... | [
"brendan.blackford@dbca.wa.gov.au"
] | brendan.blackford@dbca.wa.gov.au |
74b80d103cc37eb12487e7e844178fe41b54c302 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_mjsull_question3.py | b771467002762d05249323aa63a62a9f07232319 | [] | 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 | 3,080 | py | import sys
out_file = open(sys.argv[2], 'w')
from math import sqrt
def mrange(start, stop, step):
while start < stop:
yield start
start += step
def is_prime(num):
if num == 2:
return True
if (num < 2) or (num % 2 == 0):
return False
return all(num % i for i in mrange(... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
5917a97739223f8f73a354d07010fcee9adf413b | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /find-positive-integer-solution-for-a-given-equation.py | b82f8bf6dc218a2aad30c5ddee48ba089412517b | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | """
binary search
O(XlogY)
"""
from typing import List
"""
This is the custom function interface.
You should not implement it, or speculate about its implementation
"""
class CustomFunction:
# Returns f(x, y) for any given positive integers x and y.
# Note that f(x, y) is increasing with respect to bo... | [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
935e4d71d8e2cc2d2787b422938bbc1c20cbd6cd | a451c9f6b4e0fad4efdc7440e6a180fbed580a15 | /DB_lab1/randomize_db.py | 5e1d4b4a9d2b5511379e642aa8d0c96c90898ab2 | [] | no_license | serhiisad/DB-labs-2018 | 0124c6b997ad641fb952e62f9caee6e63ff0459f | 8316d2ce6a7cfa2b45a567d4e981260435893d44 | refs/heads/master | 2020-03-29T19:51:52.931565 | 2018-12-27T20:54:52 | 2018-12-27T20:54:52 | 150,284,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import rand_data.parser as parser
from database import Database as db
from datetime import *
import names
import random
from entities.entities import *
from database import Database
def get_random_name():
return names.get_full_name()
def get_rand_boolean():
return random.choice([True, False])
def get_rand_da... | [
"serhiisad.kpi@gmail.com"
] | serhiisad.kpi@gmail.com |
7d01fbe9aa522fa6202068b4dedf8344b95f56ea | a46fc5187245f7ac79758ae475d4d865e24f482b | /edit_distance/edit_distance.py | 5dd8b9754dc67ee9bc34183673021cd15ce19585 | [] | no_license | narnat/leetcode | ae31f9321ac9a087244dddd64706780ea57ded91 | 20a48021be5e5348d681e910c843e734df98b596 | refs/heads/master | 2022-12-08T00:58:12.547227 | 2020-08-26T21:04:53 | 2020-08-26T21:04:53 | 257,167,879 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | #!/usr/bin/env python3
class Solution:
''' Levenshtein distance '''
def minDistance(self, word1: str, word2: str) -> int:
m, n = len(word1), len(word2)
dp = [[0] * (n + 1) for _ in range(m + 1)]
for i in range(1, m + 1):
dp[i][0] = i
for j in range(1, n + 1):
... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
899779762741ff6ffa86533fb97ad109ba0b797f | c0340c511cff5b40b4681c4d3238d807624c0323 | /models/revision/grammar_formalism/computeLikelihood.py | 99f6045096e9a21b6d613b95a0d8539384ddd704 | [] | no_license | m-hahn/grammar-optim | 5fa7ade47d2ad91f517c887ee2c65af24059069d | 07a1a80692a504bcafc8120a21c4dc9066b495ee | refs/heads/master | 2022-08-30T06:54:42.749264 | 2022-08-05T12:09:28 | 2022-08-05T12:09:28 | 156,456,167 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,958 | py |
import random
import sys
objectiveName = "LM"
language = sys.argv[1]
batchSize = 1
myID = random.randint(0,10000000)
FILENAME = "dotdotdot_COARSE_PLANE_noise.py"
#with open("../../../raw-results/LOG"+language+"_"+FILENAME+"_model_"+str(myID)+".txt", "w") as outFile:
# print >> outFile, " ".join(sys.argv)
... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
a6241ba745a03539ecfff80c894bfe4a28807540 | 7770f9830696547f6535155853d1ca744fc83dbe | /TurtleArt/tacanvas.py | 246fe35c221babe3243596abc3e4b2d6d7d632ec | [
"MIT"
] | permissive | sugar-activities/4585-activity | dc0811cd0974c3abf747b22f86a58625cee5811f | 38e6efd7b4fcb9cf820efaf7406ce7abde92406e | refs/heads/master | 2021-01-19T23:14:28.131425 | 2017-04-21T05:48:21 | 2017-04-21T05:48:21 | 88,938,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,613 | py | #Copyright (c) 2007-8, Playful Invention Company.
#Copyright (c) 2008-11, Walter Bender
#Copyright (c) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
#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 S... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
f7ab2d6e05b9a9ae4214f93604ca92b85456a336 | e14372adf86d3c4f9e73c9f7111db3215c696c3d | /3.算法小抄/排序/10.排序算法总结.py | dc74972ad4d1b42d5b3b41139e6b38b0038e6a8a | [] | no_license | hewei-bit/PYTHON_learning | 71ddd7560a52575528547187f4fb40f39a3cbbdb | 18de8e5bdca165df5a5a4b5e0887846593656f4e | refs/heads/master | 2022-12-02T13:38:05.907135 | 2020-08-13T04:57:41 | 2020-08-13T04:57:41 | 261,647,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,620 | py | """
这次收集整理并用Python实现了八大经典排序算法,
包括冒泡排序,插入排序,选择排序,希尔排序,归并排序,快速排序,堆排序以及基数排序。
希望能帮助到有需要的同学。之所以用 Python 实现,
主要是因为它更接近伪代码,能用更少的代码实现算法,更利于理解。
本篇博客所有排序实现均默认从小到大。
"""
from time import *
class sort:
# 一、冒泡排序
"""
冒泡排序的原理非常简单,它重复地走访过要排序的数列,
一次比较两个元素,如果他们的顺序错误就把他们交换过来。
"""
def bubble_sort(self, ary):
... | [
"1003826976@qq.com"
] | 1003826976@qq.com |
2e8e22eccf577adb8f50383b8185e493ecca6916 | eea70db78a214217ba41801d870aba127ba56c56 | /Code/Tested TD Policy-Iteration/ARL_package/CodeFramework/main.py | 713e3872ac1424be5f414871c9f0572523da5a91 | [] | no_license | 356255531/poppyProject | 191b9a9e29817e3d6ce8c85dd5c0702982dd7157 | 678044afffa6390fac8cb402099bd32ae72d8a33 | refs/heads/master | 2021-01-21T14:32:47.373344 | 2016-07-12T19:42:25 | 2016-07-12T19:42:25 | 58,334,432 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | __author__ = 'erik'
from . import Actor, LearningAlgorithm, Reward, StateActionSpace, StateObserver
def run_learning(actor, learning_algorithm, reward, state_observer):
"""Run the main loop!"""
# Check that the variables given have the right superclasses
# assert (isinstance(actor, Actor))
# assert (... | [
"hanzw356255531@icloud.com"
] | hanzw356255531@icloud.com |
f8b3978cb753019e9ee6fec4c16e624de7034c9b | d047fed56a7d1de1d7c32ce83b8d62646fa7d19e | /leapyearQuestion.py | 6b7641183cdad87321077e16411144ded6c16051 | [] | no_license | shantinavgurukul/listQuestions | 508b6bd489731d5b8a9ba1a27e5b88b1bb27341a | 21f413f65b374e5fa63e0366591895757146d7c7 | refs/heads/master | 2022-11-23T07:56:15.392836 | 2020-08-02T03:51:46 | 2020-08-02T03:51:46 | 284,384,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | year=int (input("enter the year="))
if(year%4==0 and year%100!=0):
print(year,"it's leap year.")
elif(year%400==0):
print(year,"it's leap year-")
else:
print(year, "it's not leap year") | [
"you@example.com"
] | you@example.com |
83a1fbfb23b45c442e115f2747f1d9c39fafda6f | 86177bf66a3d4f6ffcd8972a1eb7305eb25d5301 | /lesson_10_2.py | e919169a0b0c65293af3e625cb67b05a6f8bef07 | [] | no_license | Mameluke8888/QA_Automation_Lesson_10_2 | 941dd99c5fb65d98407124514e146e6b51f528c1 | 175858d4b4d189926633d5323f4ac724e73f52c7 | refs/heads/main | 2023-05-07T01:36:35.742796 | 2021-05-24T12:15:35 | 2021-05-24T12:15:35 | 370,340,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | from selenium.webdriver.common.by import By
import time
from browser import Browser
from UIElement import UIElement as Element
from dropdown import Dropdown
from header import Header
from right_menu import RightMenu
from login_page import LoginPage
from registration_page import RegistrationPage
URL = "https://techsk... | [
"evgenyabdulin@Evgenys-Mac-mini.local"
] | evgenyabdulin@Evgenys-Mac-mini.local |
1607d69f94ab941b55a795973d3de6ce2af8080b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mDuDhhMWrdHJSGdtm_11.py | d5fda998b13ee4c0e40bf595960ffe6cd51bc475 | [] | 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 | 190 | py |
def is_exactly_three(n):
sqrt = n**0.5
if sqrt.is_integer() and sqrt != 1:
for i in range(2,int(sqrt)):
if sqrt % i == 0:
return False
return True
return False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b5a2c34f652b0489d4424f838120bdd77d8b4f34 | 6aff904a5c464c3a7437a1136420e4aa10488456 | /train_gl.py | 5944ede9b92d4972a264dcb8f8e89e7de747387f | [
"MIT"
] | permissive | chenjun2hao/imgclsmob | 8c845ce108f5c58c2be708012e6d0f5d0b0c7548 | e6dcf77bf9b5505946befec18f5c54c244f70304 | refs/heads/master | 2020-06-16T05:40:10.847813 | 2019-07-05T21:05:36 | 2019-07-05T21:05:36 | 195,492,889 | 1 | 0 | MIT | 2019-07-06T03:26:20 | 2019-07-06T03:26:20 | null | UTF-8 | Python | false | false | 22,868 | py | import argparse
import time
import logging
import os
import random
import numpy as np
import mxnet as mx
from mxnet import gluon
from mxnet import autograd as ag
from common.logger_utils import initialize_logging
from common.train_log_param_saver import TrainLogParamSaver
from gluon.lr_scheduler import L... | [
"osemery@gmail.com"
] | osemery@gmail.com |
78619db4bd98a279210cb7f4d217a84cfbeb1701 | 5d0fe4a9e026234fe15e6c4380355061bb4dac64 | /tests/browser/pages/invest/hpo.py | d5ba9be3f4f278923f41b32b53e671e09ebc9516 | [
"MIT"
] | permissive | uktrade/directory-tests | 37e243862da8ac594cf1ea06ade714db5e1aba03 | 39ec6c26203580238e65566a472cbd80916e6726 | refs/heads/master | 2022-08-09T16:58:56.248982 | 2022-08-01T12:25:10 | 2022-08-01T12:25:10 | 71,367,747 | 4 | 3 | MIT | 2022-08-01T12:26:09 | 2016-10-19T14:48:57 | Python | UTF-8 | Python | false | false | 8,015 | py | # -*- coding: utf-8 -*-
"""Invest in Great - HPO Page Object."""
import logging
from typing import List
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver
from directory_tests_shared import URLs
from directory_tests_shared.enums import PageType, Service
from pages im... | [
"kowalczykjanusz@gmail.com"
] | kowalczykjanusz@gmail.com |
67a02c6dd73076b37449187a6fab501e9765484c | 7c99ea5b1ffe089c97615336daf4b6ceed9a5b00 | /Configurations/VBSOS/SignalRegions/2018/var_v6/aliases.py | 3367d7c4e283746301669e915c952ddf8f0eff76 | [] | no_license | flaviacetorelli/PlotsConfigurations | 948faadba356e1d5e6f546dc11dd8dacfe1c1910 | aa5cf802c86902378617f566186bc638e69f9936 | refs/heads/master | 2022-05-02T00:37:56.070453 | 2022-03-18T10:14:23 | 2022-03-18T10:14:23 | 235,580,894 | 0 | 1 | null | 2020-01-22T13:37:30 | 2020-01-22T13:37:29 | null | UTF-8 | Python | false | false | 8,349 | py | import os
import copy
import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # ggH2018
configurations = os.path.dirname(configurations) # Differential
configurations = os.path.dirname(configurations) # Configurations
#alia... | [
"flavia.cetorelli@cern.ch"
] | flavia.cetorelli@cern.ch |
3b2dd0538593d549e4ae6830761d486da4941218 | ab5f28c2ef1d0e40fd335796f9717a0bb83f4ad6 | /server/modules/model.py | dc74edeeb4480f796afaba6fe7d4f18f7e63266f | [
"Apache-2.0"
] | permissive | Folashade/sagefy | dd2c40e3459c10c9cbc6ac7f283618b094b3aa5b | f92dcd8122ab524935dfaf50f1c15489f3e502f5 | refs/heads/master | 2021-01-12T20:59:16.852371 | 2016-01-04T02:58:18 | 2016-01-04T02:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,848 | py | import rethinkdb as r
import framework.database as database
from modules.util import uniqid, omit, pick, extend
from modules.content import get as c
from modules.classproperty import classproperty
from copy import deepcopy
# TODO-2 Remove OOP based model. Instead, just use simple functions,
# preferring pure func... | [
"heiskr@users.noreply.github.com"
] | heiskr@users.noreply.github.com |
9d74f6b7a1e32fffedd71a210f2a9009d0e57aa4 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/D/drj/multi.py | f1d9aa4aa940a0aa681026328186957517059a79 | [] | 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 | 274 | py | import scraperwiki
import random
import time
n = random.choice(range(100))
i=0
while True:
print n, i
i += 1
time.sleep(1.4)import scraperwiki
import random
import time
n = random.choice(range(100))
i=0
while True:
print n, i
i += 1
time.sleep(1.4) | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
8fe1a907db67146e05e04ef7aaa745788c55b202 | 5f25f45b7fac762b989563ca1270d37d31b749e8 | /tests/regnet_tests/conftest.py | b654d49b7f598cb10f8e5d08de01ab4861cf089a | [
"MIT"
] | permissive | thomaseizinger/cryptonote-library | 587c18d8e6662cc2920a896efbeab5fa49ee38b5 | c39d956847e5ba2b46c2c4c90ab289ae1c04fe03 | refs/heads/master | 2023-04-02T21:29:39.423776 | 2021-04-02T17:51:40 | 2021-04-02T17:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,785 | py | # Types.
from typing import Dict, List, Tuple, Any
# urandom standard function.
from os import urandom
# sleep standard function.
from time import sleep
# JSON standard lib.
import json
# pytest lib.
import pytest
# Transaction/Block classes.
from cryptonote.classes.blockchain import OutputIndex
# Crypto classes.... | [
"lukeparker5132@gmail.com"
] | lukeparker5132@gmail.com |
6ea8213e82dd3532a7da3312a90f6e1c64f353d4 | 63248ee10e29c11acebc9d3d977fe145cdfc156b | /tests/test_checker/test_noqa.py | 53763cb8d3b8fb977b42a21944992f06bc461240 | [
"MIT"
] | permissive | bekemaydin/wemake-python-styleguide | 68e6517d6cb70ad34c11706760a7042b2b84877d | fad6a1d2b66012d623fe0e0bba9b5561622deeb0 | refs/heads/master | 2020-04-03T02:07:08.558327 | 2018-10-27T12:09:35 | 2018-10-27T12:09:35 | 154,947,414 | 0 | 0 | MIT | 2018-10-27T12:09:12 | 2018-10-27T09:31:34 | Python | UTF-8 | Python | false | false | 1,919 | py | # -*- coding: utf-8 -*-
import re
import subprocess
from collections import Counter
ERROR_PATTERN = re.compile(r'(Z\d{3})')
def _assert_errors_count_in_output(output, errors):
found_errors = Counter((
match.group(0) for match in ERROR_PATTERN.finditer(output)
))
for found_error, found_count in ... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
cb2e2c8132f7d9953a559e5e1221ff0310aa5b05 | 572e5a017d615b1d8ce15bf109d7befb6e6fa0b8 | /scilifelab/pm/core/production.py | 9153576f4afc86ebfb7d7f35b6560cf6d7651bfd | [] | no_license | dargorr/scilifelab | ba509f0a3ab33d0911276c5512ccf03cc5184b64 | fa9d661cc8bbcc95fbf3f65743b7e8874b434e31 | refs/heads/master | 2021-01-18T11:00:07.754888 | 2013-02-08T09:15:30 | 2013-02-08T09:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,129 | py | """Pm production module"""
import os
import re
import yaml
from cement.core import controller
from scilifelab.pm.core.controller import AbstractExtendedBaseController
from scilifelab.utils.misc import query_yes_no, filtered_walk
from scilifelab.bcbio import prune_pp_platform_args
from scilifelab.bcbio.flowcell import ... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
5db1252b0f2688a2ca7f7c38ca5bf3858df851e0 | 36f7e329efaf9f3b37003ef5c769628865f472ec | /Swasthya/eattendance/models/__init__.py | 11f403f212880041ed35ab6447cce8dc7a533854 | [] | no_license | aolashram/kri-vibe | d40080679f7f37568a8b57c2f7009ce6f6bcbbbc | 6d77600c0c6953c3c78ec9a1fdf5a80c6611e162 | refs/heads/main | 2023-05-31T17:50:09.377629 | 2021-06-21T04:38:51 | 2021-06-21T04:38:51 | 378,806,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from .backengine import *
from .attendance import *
| [
"amalrajrs@gmail.com"
] | amalrajrs@gmail.com |
83da29e85a3f4fb8c21958106bea5955ac87b29c | 03d99657f557e37694f7aa4eeb6dc90a918ea647 | /Cyberbook/XBlocks/simstudent-xblock/simstudent/simstudent.py | fb1fd2cce4a51c0b2285d3599a2cd015f5602985 | [] | no_license | pawans1994/QUADL | 5c3c824f2c813fd287d7135e878f5f962797bc2e | 3f03eabb54e295ceaa9d4add1329ddc5eeafdec3 | refs/heads/master | 2023-05-11T21:25:07.046794 | 2020-03-18T16:41:15 | 2020-03-18T16:41:15 | 248,282,752 | 1 | 0 | null | 2023-05-01T20:19:11 | 2020-03-18T16:20:11 | JavaScript | UTF-8 | Python | false | false | 4,077 | py | """TO-DO: Write a description of what this XBlock is."""
import pkg_resources
from web_fragments.fragment import Fragment
from xblock.core import XBlock
from xblock.fields import Integer, Scope, String
class SimStudentXBlock(XBlock):
"""
TO-DO: document what your XBlock does.
"""
# Fields are define... | [
"nobody@ncsu.edu"
] | nobody@ncsu.edu |
a04894d893ca8889368bac7bf6f3d839ea9fb93e | 5ea1216c24b62c6beab3c6d9d2e2e06a9c58c796 | /剑指Offer/39.数组中出现超过一半的数字.py | e639b88b4d8662393e9bf94769eb2228f051f053 | [] | no_license | xiami2019/LeetCode | 596de2f093d52b58cf80421f67de03757578cd5f | 8d09a56672553ecee4af731796980b2c61c52df2 | refs/heads/master | 2021-01-02T15:15:13.984178 | 2020-07-08T01:20:15 | 2020-07-08T01:20:15 | 239,675,873 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | class Solution:
def majorityElement(self, nums: List[int]) -> int:
preNum = nums[0]
count = 1
for i in range(1, len(nums)):
if nums[i] == preNum:
count += 1
else:
count -= 1
if count < 0:
preNum = nums[i]
... | [
"435350193@qq.com"
] | 435350193@qq.com |
cbe6836d45d807758d91ab44c6a674f19084cdd7 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/tests/indexes/interval/test_constructors.py | 54bacf8438132fd7a64734bf4b806e19692b4f26 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,243 | py | from functools import partial
import numpy as np
import pandas._testing as tm
import pandas.core.common as com
import pytest
from pandas import (
Categorical,
CategoricalIndex,
Float64Index,
Index,
Int64Index,
Interval,
IntervalIndex,
date_range,
notna,
period_range,
timedel... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
dffe57932f7e1c84cc32acf781fca7f7715216ff | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /Coderbyte_algorithms/Hard/OptimalAssignments/test_OptimalAssignments.py | c35bb39e583b90f4477373996093898a9f6f1e86 | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | '''
Unittests for OptimalAssignments.py
December 2020 Jakub Kazimierski
'''
import unittest
import OptimalAssignments
class test_OptimalAssignments(unittest.TestCase):
'''
Class with unittests for OptimalAssignments.py
'''
# region Unittests
def test_ExpectedOutput(self):
... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
961ada8bd15c4bbc33270ba8fdeae8e08efdfdff | 15a739dc7f2f83d3b85d7b355a81d62a0c9386ad | /src/measure/07_calc_pale_para_time_cases.py | 6cd253560e1a7f9adbf6de1082e92acbff671a52 | [] | no_license | Allen517/half | 4d232563cb85ec73b78c263b8e6df04549bcecac | 18e6b5c2b69e1b90656328a6ae840fe7f7071398 | refs/heads/master | 2020-05-16T17:29:40.304766 | 2019-09-25T15:16:52 | 2019-09-25T15:16:52 | 183,195,625 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | import sys,os
import random
import time
import numpy as np
from concurrent.futures import ThreadPoolExecutor
from concurrent import futures
def read_code(filename):
code_map = dict()
with open(filename, 'r') as fin:
for ln in fin:
elems = ln.strip().split('\t')
if len(elems)<2:
continue
code_map[elems... | [
"wangyongqing.casia@gmail.com"
] | wangyongqing.casia@gmail.com |
6973d3f90df8ecd1028285b111baa55b7a9d0f6b | 2e3e064ec2388f7a57428c32b77207280a0a9be1 | /Sect-A/source/sect04_control/s443.py | 496623c5b1ff4cc2b7b813f48f232d8d1636308f | [] | no_license | bigpycraft/sba19-seoulit | 1857a399d8f23c4fb8f98448139be8eb968d35ee | 2cf11a1ce9a04043911006531470a3e523cbf5f0 | refs/heads/master | 2020-07-02T22:48:52.681018 | 2019-09-19T03:08:59 | 2019-09-19T03:08:59 | 201,693,283 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | #pass 문 예시
signals = 'blue', 'yellow', 'red'
for x in range(len(signals)):
print(x, signals[x], '루프 시작!')
if signals[x] == 'yellow':
pass
print(x, signals[x], '루프 종료!!')
print('프로그램 종료!!!')
| [
"bluenine52@gmail.com"
] | bluenine52@gmail.com |
f2531dc8aa8f27aa3b6227b4feb0a00c64c8816d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200609191039.py | 8317547fb031c680266d7b47826445c4e751bb94 | [] | 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 | 944 | py | import json
def Strings(str):
#
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
for j in range(0,len(newArray)):
if newArray[j][0] in values:
# if newArray[j][0] in values:
# values[newArray... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
4dccf5e24c984abaa126f1ab46d14c24b4630c86 | df19b2ff22f0b27685cdc72d0d50b6b9dfe3fa5a | /cpuApp/urls.py | 0045b3558ce4f2b345a1a63fe6076491e4e97993 | [] | no_license | fadiarmoush/LinuxProject | 7ca01efe06f87bb13a0232327aa1a7d9d1c4bc0b | 4a7a5330e3b2af97fc8bc58e3483fda6d3cee42f | refs/heads/master | 2020-06-18T06:32:39.077572 | 2019-07-10T12:02:37 | 2019-07-10T12:02:37 | 196,196,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.urls import path
from django.conf.urls import url
from .views import ListSongsView
from .views import ListSongsView2
from .views import ListSongsView3
from . import views
from .views import currentsView
urlpatterns = [
path('cpu/', ListSongsView.as_view()),
path('mem/', ListSongsView2.as_view()),... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
612d082ff2748077733b448aaf1e9799d9054579 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/networkx/algorithms/bipartite/projection.py | 69c5f6bdad0581bb876f69fb33b51542531887e3 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 16,800 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2017-2019 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
#
# Authors: Aric Hagberg <aric.hagberg@gmail.com>
# Jordi Torrents <jtorrents@milnou.net>
"""One-mod... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
ec07f0da2e432113a1bac9c65ed9483a3c4b4cab | d3e31f6b8da5c1a7310b543bbf2adc76091b5571 | /Day26/mini_prj1/app.py | ff17127e9abd7fbf909d7cb7e72a85916cbb5fa1 | [] | no_license | pytutorial/py2103 | 224a5a7133dbe03fc4f798408694bf664be10613 | adbd9eb5a32eb1d28b747dcfbe90ab8a3470e5de | refs/heads/main | 2023-07-14T06:31:18.918778 | 2021-08-12T14:29:16 | 2021-08-12T14:29:16 | 355,163,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | from pymongo import MongoClient
from bson.objectid import ObjectId
db_host = '34.70.69.231'
db_user = 'mongo'
db_pass = 'abc@123'
client = MongoClient(db_host, username=db_user, password=db_pass)
db = client.db0001
import time
from flask import Flask, request, render_template, redirect, jsonify
app = Flask(__name__)
... | [
"duongthanhtungvn01@gmail.com"
] | duongthanhtungvn01@gmail.com |
f0d78e0407e9b493b7e09a592fbe281f65786de9 | fe47a536f3938a8f0bf0e52fa6e3284d1b35e356 | /backend/users/migrations/0002_auto_20200614_2037.py | 5976489efb44e03f267c41dda3aa73207d6f4113 | [] | no_license | crowdbotics-apps/i-do-weddings-18101 | 2d0e473b2b0f312c049c07c6e28d53c6c506ebea | aabc1b4d442378a32643365ce8a0eac30d2836b1 | refs/heads/master | 2022-10-17T02:13:55.759254 | 2020-06-14T20:38:14 | 2020-06-14T20:38:14 | 272,279,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # Generated by Django 2.2.13 on 2020-06-14 20:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
957b3ad7e784e2bb7d619623c8109f9100e498a2 | 64d1211404c89da4e09d77d859f2cdf6609a057e | /models/official/nlp/configs/bert.py | 47c0b26e436a76c0b31492d5397149af5ab66172 | [
"Apache-2.0"
] | permissive | Nerfertili/Deep_learning_learning_udemy | f375209e0675ab8f4da9551d8a5bdee4f2948ed8 | 0fe6c1f36019b29151acb17a1f248b34d6089aeb | refs/heads/master | 2023-02-17T10:10:52.536426 | 2021-01-19T02:48:23 | 2021-01-19T02:48:23 | 330,823,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | # Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | [
"leal.afonso@outlook.com"
] | leal.afonso@outlook.com |
8275002ef69810e28d7fee9ec873749fced30050 | 08f61d5432b6cf14bb6fc3448259a6c445b26780 | /dapodik/sekolah/base.py | 4da825ffab37d6c94b7bad8cb9f88d0073438da1 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | nainaidaa/dapodik | 9ecfabc6f262c24a4cd0288b3b1a7116b3a09199 | d89c0fb899c89e866527f6b7b57f741abd6444ea | refs/heads/master | 2023-07-22T23:37:16.694675 | 2021-09-08T15:04:23 | 2021-09-08T15:04:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from dapodik.base import BaseDapodik
from typing import List
from . import AkreditasiSp
from . import BlockGrant
from . import JurusanSp
from . import Kepanitiaan
from . import ProgramInklusi
from . import Sanitasi
from . import SekolahLongitudinal
from . import SekolahPaud
from . import Sekolah
from . import Semester... | [
"revolusi147id@gmail.com"
] | revolusi147id@gmail.com |
1de781d634fab52bcefa1bc7e3d2b231a9ea18d3 | 7013527a33a756c0f08a0672515e2c20df58faca | /clean_stripes.py | 9b47390310d9b6bf5de62b3688848299b2e63441 | [] | no_license | tukiains/stripe-filter-test | b1b88c9129f714c0e3cb47c6f62567a3b7eaec5a | 069d8a480628c9b1ae79de648ceddeeb264a6bcc | refs/heads/main | 2023-06-01T21:21:28.537687 | 2021-06-15T08:37:09 | 2021-06-15T08:37:09 | 369,167,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | import os.path
import requests
from cloudnetpy.categorize import generate_categorize
from cloudnetpy.plotting import generate_figure
test_cases = {
'munich': ('2021-05-16', '2021-05-05', '2021-05-08'),
'hyytiala': ('2021-05-09', '2021-05-10'),
'palaiseau': ('2021-03-05', ),
'granada': ('2021-05-11', '2... | [
"simo.tukiainen@fmi.fi"
] | simo.tukiainen@fmi.fi |
d099475d44c7f9479ce738eb7e71bd3820b37e50 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/openpyxl/chart/print_settings.py | 6a8fc2fab6ce1792aa3048c69834f29af9bb563d | [
"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 | 1,454 | py | # Copyright (c) 2010-2022 openpyxl
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Float,
Typed,
Alias,
)
from openpyxl.worksheet.page import PrintPageSetup
from openpyxl.worksheet.header_footer import HeaderFooter
class PageMargins(Serialisable):
"""
... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
5656a471d8a4d6fc40c39d07f5d22a52839f396b | 65cc1193afeced475cec02184dbc8043738a5a2e | /src/uvc/content/__init__.py | 125e0485fdbeb4068503d8f46244109a20d10daa | [] | no_license | novareto/uvc.content | e39b088b5d98b83f0e8836adc9c2188cbe501d50 | dc1b28f8f755dee26eb7721ecb2651761db03c16 | refs/heads/master | 2021-01-21T10:13:18.943078 | 2014-10-02T16:17:43 | 2014-10-02T16:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
from .interfaces import IContent, IDescriptiveSchema
from .directives import schema, Fields
from .utils import bootstrap_component, schematic_bootstrap
| [
"trollfot@gmail.com"
] | trollfot@gmail.com |
1f09508e58003a0f4fdffde95018f92964965c1a | fee4adc0f8a74801d728f1e3f1278110622a74be | /app/auth/views.py | 33d7919d5c4c4f1fcf292985b741777a515ef57c | [] | no_license | HuuBaa/todolist | 02957fef9c8690eaadf1f9e49f9505ae69c4c614 | eef38a3e1aa26f0ff8f9112c34587b46e6752e8a | refs/heads/master | 2021-09-13T03:19:17.414242 | 2018-04-24T13:15:04 | 2018-04-24T13:15:04 | 107,774,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
from . import auth
from ..models import User
from flask import request,redirect,url_for,render_template,flash
from flask_login import login_user,login_required,logout_user,current_user
from .forms import RegisterForm,CPasswdForm
from app import db
@auth.route('/login',method... | [
"742790905@qq.com"
] | 742790905@qq.com |
633db023bda8914aa62fcc73e17d56ffcf002b45 | 107e62a03254c9ebe2e1830977a47861633b0d33 | /TCPserver.py | 7ca995beb699d6e30bf8c95905f51a341c16e072 | [] | no_license | prasanna-ranganathan/mypython | bb798c0782cfb79a27b0730e924921b802da2a44 | 25fa93602e2465ec6ccb0c3ff30a2bbf90da96e4 | refs/heads/master | 2021-06-03T18:35:31.129399 | 2016-08-28T14:21:44 | 2016-08-28T14:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #!/usr/bin/env python
import SocketServer
class EchoHandler(SocketServer
serverAddr = ("0.0.0.0",90000)
server = SocketServer.TCPServer(serverAddr,EchoHandler)
server.serve_forver()
| [
"prassanna.mit@gmail.com"
] | prassanna.mit@gmail.com |
92d84d5e4a383d5e858345bc045ba5c2c7d536d2 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/pipelines_20200628013036.py | 0eefa73f2f51dc3dddf0fec4bc0d05238f5652f1 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 672 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class MaoyanspidersPipeline(object):
def process_item(self, item, spider):
films_name = item['films_name']
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
e84fbbd512417f983e287bc02ddae6f48acc8762 | b55a8edf12b5298c63966de429b61e97c61c9d46 | /src/generate_random_matrix.py | 19a2a2d4e0ccd7c26dfa385d092676a51f9b0e5e | [] | no_license | tmoldwin/DBasisHDA | c9bb5ba9d90e2526de5c0a78fe3d6cf34031a2d7 | 00063da2c27fa12470aa54d9d0321f95e350de8a | refs/heads/master | 2020-05-30T09:54:01.754277 | 2013-08-30T07:58:05 | 2013-08-30T07:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | #!/usr/bin/env python
#
"""
Author: Ulrich Norbisrath
This creates on stdout a matrix which can be fed to DBasisHDA
"""
import random
import sys
import getopt
__doc__ = """call: generate_random_matrix height width number_of_ones"""
def main():
# parse command line options
options = sys.argv[1:]
if l... | [
"devel@mail.ulno.net"
] | devel@mail.ulno.net |
57a08ee5a66c378652a86660e6234944f498cc65 | 661b08d621852b79d06710015ab0b165c7d65007 | /base/site-packages/PIL/Image.py | 8ab3c3e84c221bb802c40ce142b6a44636e76c17 | [
"Apache-2.0"
] | permissive | B-ROY/TESTGIT | cd45365f6c3eaff8d12bd2ab48cd455dc16ba7c8 | 40221cf254c90d37d21afb981635740aebf11949 | refs/heads/master | 2021-07-13T12:42:28.022035 | 2017-10-14T09:37:14 | 2017-10-14T09:37:14 | 106,913,556 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,237 | py | #
# The Python Imaging Library.
# $Id$
#
# the Image class wrapper
#
# partial release history:
# 1995-09-09 fl Created
# 1996-03-11 fl PIL release 0.0 (proof of concept)
# 1996-04-30 fl PIL release 0.1b1
# 1999-07-28 fl PIL release 1.0 final
# 2000-06-07 fl PIL release 1.1
# 2000-10-20 fl PIL release 1.1.1... | [
"biweibiren@163.com"
] | biweibiren@163.com |
9af4d770117e900fdc4f395633ef86a68d710ca6 | 9bf7d7ace42a61991970fd967c19071a50609b9e | /ipython/Matplotlib(2f)UnfilledHistograms.py | be423b643ffae045db7075154fed13fc75d8295f | [] | no_license | ParsonsRD/SciPy-CookBook | 29b68eace76962ae00735039bc3d488f31714e50 | 52f70a7aa4bd4fd11217a13fc8dd5e277f2388ea | refs/heads/master | 2020-03-17T17:33:28.827269 | 2013-05-17T06:56:54 | 2013-05-17T06:56:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | # <markdowncell>
# Here's some template code for plotting histograms that don't look like
# bar charts, but instead have only outlines (like IDL creates).
#
# First define a function that does the bulk of the heavy lifting.
#
# <codecell>
import numpy as np
def histOutline(dataIn, *args, **kwargs):
(histIn, b... | [
"matti.pastell@helsinki.fi"
] | matti.pastell@helsinki.fi |
d809e87594386c61ac619c02129311ca823d2635 | 19af2e1dfe389afc71e26bebaadf7008251e04e2 | /android_test/tensorflow-master/tensorflow/examples/saved_model/integration_tests/export_mnist_cnn.py | 1d36bc234aea7c51e9f284c7ea92aad0b392f6fc | [
"Apache-2.0"
] | permissive | simi48/Ef-If_Jassen | 6c4975216bb4ae4514fe94a8395a5da5c8e8fb2d | 6076839492bff591cf9b457e949999e9167903e6 | refs/heads/master | 2022-10-15T15:36:35.023506 | 2020-12-02T10:38:13 | 2020-12-02T10:38:13 | 173,759,247 | 4 | 0 | Apache-2.0 | 2022-10-04T23:51:35 | 2019-03-04T14:22:28 | PureBasic | UTF-8 | Python | false | false | 8,104 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"TheSiebi@users.noreply.github.com"
] | TheSiebi@users.noreply.github.com |
938bf1cf1edfa71a44cf21caf52bffa5190185a1 | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /recruitment/models.py | d7d2e7e6ae37db258fa3fa7f13aad1e057ab63fb | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 4,915 | py | from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from payroll.models.employee_models import (ServiceLine, Position,
EducationLevel, EmployeeProfile)
GENDER_CHOICES = (
('M', 'Male'),
('F', 'Female')
)
class District(models.Model):
short_name = mo... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
98efa4edbe42174f87ea94922bd37dc1115748e2 | c4ff5cf4a4af5883ef703c73daeaf353c809e75b | /Mask R-CNN/mrcnn/计算掩膜长宽和面积.py | d2c2bf5bb26dd4e0a15d108f7f66059ea754ff13 | [] | no_license | ZengyuanYu/wheat-segmentation | eba375d1f8becdb8b2966d6aee861daa2255b67a | c9e9064f49fb7e6125d80124f4a8678a64d10952 | refs/heads/master | 2020-04-25T22:04:29.685070 | 2019-03-01T09:21:22 | 2019-03-01T09:21:22 | 173,100,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,874 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Xiaoyu
#! /usr/bin/env python
# -*- coding:utf-8 -*-
# Author: Xiaoyu
import os
import sys
import random
import math
import numpy as np
import skimage.io
import matplotlib
import matplotlib.pyplot as plt
import cv2
import glob
import pandas as pd
# Root directory ... | [
"1952284157@qq.com"
] | 1952284157@qq.com |
75d0a5df0a742b764667caa2921eb78e951f0352 | 625a2b46caf94a8bfb1afdbc1b933cd19aaafc33 | /googoo2.py | 1d6ed3712b44ce201725c1f455955a635684e8da | [] | no_license | smilu97/SoftwareStartClass | 4118e5c80d0f8253785aa2ecb72db0935c457fcb | df41a2e93a315ab155e0995132a66a9e4dc86ef4 | refs/heads/master | 2020-12-24T21:21:22.779636 | 2016-05-04T07:42:35 | 2016-05-04T07:42:35 | 58,031,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | import random
a_until = input()
b_until = 10
if a_until == 123456 :
print 'You found a easteregg'
print 'Try to guess my number!'
gn = random.randint(1,10000)
un = -1
while gn != un :
un = input('number? : ')
if(un > gn) :
print 'Too big'
elif(un < gn) :
print 'Too small'
elif(un == gn) :
print ... | [
"smilup2244@gmail.com"
] | smilup2244@gmail.com |
54718fced5aa9042bbc2155ec342bb32c5c94923 | a5e6ce10ff98539a94a5f29abbc053de9b957cc6 | /competition/20191019/d.py | 7532b8635b4abeaabced44c4e2eea7583d904bb3 | [] | no_license | shimaw28/atcoder_practice | 5097a8ec636a9c2e9d6c417dda5c6a515f1abd9c | 808cdc0f2c1519036908118c418c8a6da7ae513e | refs/heads/master | 2020-07-26T10:59:51.927217 | 2020-06-13T11:53:19 | 2020-06-13T11:53:19 | 208,622,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | N = int(input())
L = [int(i) for i in input().split()]
import bisect
L.sort()
ans = 0
for i in range(N-2):
for j in range(i+1, N-1):
idx = bisect.bisect_left(L, L[i]+L[j])
ans += (idx-(j+1))
print(ans) | [
"shima.w28@gmail.com"
] | shima.w28@gmail.com |
b923bd02e0ee500e12d3202dc483f6915cc19651 | de4d88db6ea32d20020c169f734edd4b95c3092d | /aiotdlib/api/functions/get_login_url.py | 56c3af78020b2f5c644a8f4e0f93ebbde87ab0d3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | thiagosm/aiotdlib | 5cc790a5645f7e4cc61bbd0791433ed182d69062 | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | refs/heads/main | 2023-08-15T05:16:28.436803 | 2021-10-18T20:41:27 | 2021-10-18T20:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | [
"pylakey@protonmail.com"
] | pylakey@protonmail.com |
ce2896ad06aa191757ad56558bbe1b5d4d665cbc | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/lab44-config/scripts/BeamlineI06/Users/diffcalc_i06_4circle.py | 3752a2e626b109217f99c1116b9d145d772f50f8 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # See notes in: http://wiki.diamond.ac.uk/Wiki/Wiki.jsp?page=I06_Diffcalc
try:
import diffcalc
except ImportError:
from gda.configuration.properties import LocalProperties
import sys
diffcalc_path = LocalProperties.get("gda.install.git.loc") + '/diffcalc.git'
sys.path = [diffcalc_path] + sys.path
... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
81c5de514378a57338ac86399710a2a2b9fa1e95 | 17331ee8285a1f19e4ca1abd89dac64da381959d | /03-accessing-web-data/extracting_data_xml.py | 208cf4bf87e729149483bec35278bbab8946d4bc | [] | no_license | chaochaocodes/PY4E | 3681367ce548fe9a423adb895fe76efda60521bb | 09930f6187c3388b61903680bcd4a1533b0b4f82 | refs/heads/main | 2023-03-28T11:29:09.209120 | 2021-04-01T02:34:58 | 2021-04-01T02:34:58 | 333,506,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | '''
Extracting Data from XML
In this assignment you will write a Python program somewhat similar to http://www.py4e.com/code3/geoxml.py. The program will prompt for a URL, read the XML data from that URL using urllib and then parse and extract the comment counts from the XML data, compute the sum of the numbers in the... | [
"57464564+chaochaocodes@users.noreply.github.com"
] | 57464564+chaochaocodes@users.noreply.github.com |
b2d570a63a13b28c4dd3ba8334a77947e844fd44 | 5492859d43da5a8e292777c31eace71e0a57dedf | /user/admin.py | f807881a567d5d1c59dc38216d12dd9d167794b3 | [
"MIT"
] | permissive | akindele214/181hub_2 | 93ad21dc6d899b6c56fbe200354b1678bb843705 | 48b8814b5f66ad87f9a54721506076ddf70fe9bc | refs/heads/master | 2022-12-13T01:15:07.925556 | 2020-05-19T09:39:57 | 2020-05-19T09:39:57 | 196,470,605 | 1 | 1 | MIT | 2022-12-08T01:22:55 | 2019-07-11T22:04:42 | Python | UTF-8 | Python | false | false | 724 | py | from django.contrib import admin
from .models import Profile, Monetization, UserEmailRequest, Suggestion_Report
# Register your models here.
class UserAdmin(admin.ModelAdmin):
list_display = ('user', 'id', 'user_id')
class MonAdmin(admin.ModelAdmin):
list_display = ('user', 'amount', 'views', 'status', 'acc... | [
"yaomingnakel@gmail.com"
] | yaomingnakel@gmail.com |
2a9e0963993064c76e3f5f9de8b5a7bb88ef5f92 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/logr/0.1.0/conanfile.py | 967c8e88b68f965f50bf1e673113d8e6341a57de | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 4,011 | py | from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.microsoft import check_min_vs, is_msvc_static_runtime, is_msvc
from conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy, rmdir
from conan.tools.build import check_min_cppstd
from conan.tools... | [
"noreply@github.com"
] | conan-io.noreply@github.com |
1636eedda11d84791b0a596bc3cca51a8acf751e | b5cc6d7b5f7ccea36fce4eab961979404414f8b0 | /kent-report/py/matrix_scaling.py | 5aec834ea62a3306e75f6bd37e8e54ef70ea1205 | [] | no_license | MiroK/cutFEM-beam | adf0c925dbe64b370dab48e82335617450675f5d | 2fb3686804e836d4031fbf231a36a0f9ac8a3012 | refs/heads/master | 2021-01-21T23:54:32.868307 | 2015-02-14T13:14:59 | 2015-02-14T13:14:59 | 25,625,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | from eigen_poisson import mass_matrix as Meig1d
from eigen_poisson import laplacian_matrix as Aeig1d
from shen_poisson import mass_matrix as Mshen1d
from shen_poisson import laplacian_matrix as Ashen1d
import numpy as np
from numpy.linalg import cond
# Build 2d matrices
def Meig2d(n):
'2d mass matrix w.r.t Eigen b... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
1d0c9dd88b03bf9ef6dfcf2cfddf960be98a9378 | 5a017fc861db92e3a2919f260d54f1301afbb3e5 | /MIDI Remote Scripts/pushbase/note_settings_component.py | abedfa3f6b3dbb4b81db78835f310b635f15523b | [] | no_license | kera67/livepy_diff_ten | 8d8d0f3b76048f1fe5d4c0fbc02549dc922c7d5b | 12a0af9e9c57d0721af5036ce23af549df2c95f0 | refs/heads/master | 2023-07-14T18:26:33.591915 | 2020-11-19T07:50:28 | 2020-11-19T07:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,718 | py | from __future__ import absolute_import, print_function, unicode_literals
import math
from functools import partial
from itertools import ifilter, imap, chain, izip_longest
from ableton.v2.base import clamp, find_if, forward_property, listenable_property, listens, listens_group, liveobj_valid, task
from ableton.v2.contr... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
69c00bce760359ee971f98708caf1821b7d4f64d | 81e6391b9db249296ec84f6524093cf41b581f31 | /단계별로 풀어보기/16. 수학3/[2609] 최대공약수와 최소공배수.py | fb8c37e1e3d2c077f89732f90ea2d7ba29967031 | [] | no_license | jaeehooon/baekjoon_python | e991be4b510d642f72f625b898d20451dc920d7c | 295776309a883338bfbf51c33caf6dc6629493ca | refs/heads/master | 2023-04-15T14:22:21.281930 | 2021-04-26T02:15:09 | 2021-04-26T02:15:09 | 294,137,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | import sys
# 최대공약수 찾기 with 유클리드 호제법
def gcd(a, b):
while a != b:
if a > b:
a -= b
else:
b -= a
return a
def lcm(c, d):
gcd_val = gcd(c, d)
return gcd_val * (c // gcd_val) * (d // gcd_val)
if __name__ == '__main__':
num_a, num_b = map(int, sys.stdin.readl... | [
"qlenfr0922@gmail.com"
] | qlenfr0922@gmail.com |
631110d151d43400819d832cb1c6a1161eafed59 | f9ca7cce3cb020237aef05555554dfeba71db787 | /spatial_slim/up_traversal.py | a4eb4f84e2cd8d8fb605484393009e5fa67cf11e | [] | no_license | petrelharp/lineage_plotting | c8391ec0757df86e1ed44e2697d52d96a7bec2b5 | d63ac0d4f016380c58860a57c84069a29a16e756 | refs/heads/master | 2023-09-04T02:41:43.115557 | 2023-08-15T18:09:48 | 2023-08-15T18:09:48 | 189,054,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,649 | py | """
Modified from python implementation of the simplify algorithm.
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import sys
import numpy as np
import tskit
def overlapping_segments(segments):
"""
Returns an iterator over the (left, right, ... | [
"petrel.harp@gmail.com"
] | petrel.harp@gmail.com |
bff9007a8afa686e5c49c170d58711ff0baa3f89 | 0740320ac36a5943a96a8ff005a604c1ae354bed | /leave_serration/main3/main.py | aec1ca6d60d7f84244ec5ae03be8604c98d705f4 | [] | no_license | dezhili/leaves-image-processing | 0a4d4083b530bbb74b3f6d02c8370ccb61841127 | 62e2122e2aae39235c4e60b6526798270b1b1ed3 | refs/heads/master | 2021-01-21T12:31:19.568032 | 2017-09-01T06:01:48 | 2017-09-01T06:01:48 | 102,078,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import cv2
import matplotlib.pyplot as plt
import get_leave_boundary
from get_leave_top_bottom import get_leave_top_bottom
from get_leave_top_bottom import search_points
import math
image = '14.jpg'
# image = '442_100_1.jpg'
img = cv2.imread(image, 0)
contours = get_leave_boundary.get_leave_boundary(image)
p1_t, p2... | [
"599709657@qq.com"
] | 599709657@qq.com |
ce7e974931d53cdff0a364ab42db72a2fe665aaa | a6ee206333bae24ad24728a9a1440b450ce83056 | /tests/test_grpug_poetry_demo.py | 2b72f3eeb63223de560d480ed89c86b4a802bc3d | [] | no_license | GRPUG/grpug-poetry-demo | b596df8dd93ed84019b493989bb916110b26e18d | 59f7df2e1d59e118c97c0500bdb66158be4abfad | refs/heads/master | 2020-09-12T23:25:25.483285 | 2019-11-19T02:31:49 | 2019-11-19T02:31:49 | 222,591,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from grpug_poetry_demo import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
99d8c7c2a932fc594c79ee725fbc898cb2e020c1 | 371f94ee0f44feeaf68d740f24bd9bb27f83c8aa | /app/migrations/0002_auto_20161110_1920.py | 9061620da8349eb3f87829559618cfd001f3f03d | [] | no_license | cjredmond/final_proto | f69d62da97428af3d52020054e9a327abbff8d15 | 28d73c7f25a7e8fae07d78b12964cdefeb3103de | refs/heads/master | 2020-09-12T04:57:59.279571 | 2016-11-11T22:44:47 | 2016-11-11T22:44:47 | 73,517,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-10 19:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
mi... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
8f143b6444dd282b2bd0c6c3b9dcf9efc2353a8a | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/batch_job_service/transports/base.py | 7c0a5731d78ea08d03580092102147c29aebb834 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
3fcd539d30d02cd5409abaeb8516fa34204dfe44 | 548c26cc8e68c3116cecaf7e5cd9aadca7608318 | /feedback/migrations/0004_auto__add_field_feedback_type__chg_field_feedback_email__chg_field_fee.py | 82b0d78830f50c8b2e808681d8cdc1c75dc68e31 | [] | no_license | Morphnus-IT-Solutions/riba | b69ecebf110b91b699947b904873e9870385e481 | 90ff42dfe9c693265998d3182b0d672667de5123 | refs/heads/master | 2021-01-13T02:18:42.248642 | 2012-09-06T18:20:26 | 2012-09-06T18:20:26 | 4,067,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Feedback.type'
db.add_column('feedback_feedback', 'type', self.gf('django.db.models.fields... | [
"dalal.saumil@gmail.com"
] | dalal.saumil@gmail.com |
198bc43024f973401ae0dec802d22885249ca303 | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /stdlib_exam/socketserver-example-1.py | bcde479b54c4867b59ab85012d4fe7549633e7e7 | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import socketserver
import time
# user-accessible port
PORT = 8037
# reference time
TIME1970 = 2208988800
class TimeRequestHandler(socketserver.StreamRequestHandler):
def handle(self):
print("connection from", self.client_address)
t = int(time.time()) + TIME1970
b = chr(t>>24&255) + chr(t... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
6aaeb6f165fa71b2e82277ab1c4666f025d32a49 | 2772b58d09f3cc8fad2b4354dee7a06c481b7d23 | /forum/forms.py | 46319a0016cf611d0227b3061a330a88652e0231 | [
"MIT"
] | permissive | shmilyoo/ggxxBBS | 33cef10ac2284010028556c6d946566de05537da | cef6408e533bd0b0f57c3e2f5da4e93ea07c4331 | refs/heads/master | 2020-04-25T02:56:02.116161 | 2019-02-25T07:57:02 | 2019-02-25T07:57:02 | 172,458,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,294 | py | # -*- coding: utf-8 -*-
import datetime
from django import forms
from django.core.exceptions import NON_FIELD_ERRORS
from django.core.validators import RegexValidator
from django.utils.html import strip_tags, remove_tags
from django.utils.safestring import mark_safe
from forum import models as forumModels
from forum.h... | [
"fighter_yy@qq.com"
] | fighter_yy@qq.com |
28362fceebf77532f2fe2a04d4d1ea54fd38a7e1 | be50b4dd0b5b8c3813b8c3158332b1154fe8fe62 | /Math/Python/FizzBuzz.py | 7ba15c495b1f34a12eaa2eada55c1970b97ecf14 | [] | no_license | Zimmermann25/InterviewBit | a8d89e090068d9644e28085625963c8ce75d3dff | 6d2138e740bd5ba8eab992d9bf090977e077bfc5 | refs/heads/main | 2023-03-24T18:12:48.244950 | 2021-03-24T14:36:48 | 2021-03-24T14:36:48 | 350,835,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | class Solution:
# @param A : integer
# @return a list of strings
def fizzBuzz(self, A):
arr = [i+1 for i in range(A)]
for i in range(1,A+1):
if i % 5==0 and i %3==0:
arr[i-1] = 'FizzBuzz'
elif i % 5==0:
arr[... | [
"noreply@github.com"
] | Zimmermann25.noreply@github.com |
5dd937a052275fa1dbf2c1a3cb885c1a790e34ba | 226b1c73a706f4734834196d18305d4d2c873589 | /verification_libs/axiMaster.py | ec5de04702fc9521260d68cd88cb730c51288816 | [] | no_license | ocakgun/vlsistuff | 43b4b07ae186b8d2360d11c57cd10b861e96bcbe | 776c07f5d0c40fe7d410b5c85e7381017d4dab64 | refs/heads/master | 2022-06-13T14:40:22.641310 | 2020-05-08T11:09:00 | 2020-05-08T11:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,722 | py |
DEMO = '''
axi = axiMaster.axiMasterClass('tb',Monitors)
axi.makeRead(1,16,0x100,4)
axi.makeWrite(1,16,0x100,4)
axi.wait(100)
'''
import os,sys,string,types
import logs
import veri
class axiMasterClass:
def __init__(self,Path,Monitors):
self.Path = Path
Monitors.append(self)
self.Queue=... | [
"greenblat@mac.com"
] | greenblat@mac.com |
6ce81949e3f2282a9f151be94fc7093a54818ac8 | e1afe8d3f5d776c2d80be502de8380cd786a3fb9 | /pointgate/__init__.py | d8b174c2f1e216b821605ea846e1d9708e473ad1 | [] | no_license | mbr/pointgate | 5566b1929d8f1a93a1a2183b78287173e41bf82b | 44527722e797222b35ba92a6538ae72c4f980fc4 | refs/heads/master | 2023-06-06T20:42:22.766233 | 2014-04-18T13:21:34 | 2014-04-18T13:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from flask import Flask
from flask.ext.appconfig import HerokuConfig
from pointgate.dyndnsapi import dyndnsapi
def create_app(configfile=None):
app = Flask(__name__)
HerokuConfig(app, configfile)
app.config.setdefault('POINTDNS_API_URL', 'https://pointhq.com')
app.config.setdefault('POINTDNS_RECORD_T... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
63d99f5a3aff98c8202c811567e3db5295057bbb | 8126d1bc2afe0925a24fce039d0f02a3bd7acbae | /tests/test_grid.py | c48893de2ba516734e6e3f92675639e9c74bab2c | [
"BSD-2-Clause"
] | permissive | rafwiewiora/pytraj | 54fb6fe07a754f65b865dd161f64c7af15fc3926 | 91a019ea406081ccf0043170cc64c48b4a5ea04a | refs/heads/master | 2021-01-20T17:33:05.974254 | 2016-03-11T21:25:32 | 2016-03-11T21:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | #!/usr/bin/env python
from __future__ import print_function
import unittest
import os
import numpy as np
import pytraj as pt
from pytraj.utils import eq, aa_eq
from pytraj.testing import cpptraj_test_dir
class TestGrid(unittest.TestCase):
def test_0(self):
from pytraj.math import Grid
import nump... | [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
3a73b821bf69bc409fc73a51db492275552b09a3 | 1581f1d66d6835b2c271295e3251c2dde239fec8 | /expense/admin.py | 569aba91027a1072734efcf4d5e35e26be0b2b1e | [] | no_license | abinash-kumar/pythod | 527659e3bdd161f9abcaaa9182dfe58044b3ff66 | 1469dc0cd9d6d72b2fe2e69f99542e470bea807b | refs/heads/master | 2023-01-30T02:54:10.729606 | 2020-02-24T07:18:51 | 2020-02-24T07:18:51 | 242,670,715 | 0 | 0 | null | 2023-01-25T13:57:52 | 2020-02-24T07:16:02 | Python | UTF-8 | Python | false | false | 902 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Channel
from .models import ExpenceDetails
from .models import ABDoc
from django.contrib.auth.models import User
admin.site.register(Channel)
class ExpenceDetailsView(admin.ModelAdmin):
list_displa... | [
"abinashlv@AbinashSymboMac.local"
] | abinashlv@AbinashSymboMac.local |
6101ffbcf6bdcad6190dbf061d007a7f56793e4a | bfcd8f1f6ac8590df321f23a422eca0370a25b8f | /myenv/lib/python3.7/site-packages/layoutmargin/_margin_layout.py | 3c7b7f4b634a6c45e59c56c7b890314835cd6c0d | [] | no_license | Stephen-Tipa-Augustine/KMC_ventilator | 0567fa0b72d41fb0de11cd72c62567bed973d9f5 | 456e88ae4fff3984d5456517ba8787f9d5762745 | refs/heads/master | 2022-12-26T08:00:41.102890 | 2020-09-07T11:00:13 | 2020-09-07T11:00:13 | 293,500,282 | 0 | 1 | null | 2022-12-19T04:33:28 | 2020-09-07T10:49:08 | Python | UTF-8 | Python | false | false | 5,591 | py | from typing import NamedTuple
from kivy.properties import ObjectProperty
class AddMargin:
margin = ObjectProperty()
_last_X = None
_last_Y = None
_last_Width = None
_last_Height = None
_last_MarginX = None
_last_MarginY = None
def __init__(self, **kwargs):
super().__init__(**... | [
"tipastep5@gmail.com"
] | tipastep5@gmail.com |
cad6c4183f117d037e4b8286d3ca10b6fac08c37 | 1eddc123709611cf2ddccb0b7d48b722b2a09a5d | /plugins/modules/fmgr_devprof_system_dns.py | a11e38aab902237bc37cafe4a109b08161c0e197 | [] | no_license | fortinet-ansible-dev/ansible-galaxy-fortimanager-collection | bfb2014a72007358b491bb1d27c0fa3191ec62a8 | 63b65abce410ed4d6b76e3dd1dcf7a4341cc173d | refs/heads/main | 2023-07-09T04:33:38.304263 | 2023-06-21T21:11:57 | 2023-06-21T21:11:57 | 242,629,431 | 10 | 18 | null | 2022-12-16T15:57:16 | 2020-02-24T02:28:03 | Python | UTF-8 | Python | false | false | 35,988 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"hq-devops-admin@fortinet.com"
] | hq-devops-admin@fortinet.com |
a409824bbeb2bee142944ddfef80720e93e45871 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/components/CalendarComponent.py | 468107eb74fdcf3dd1a24f4654b1b61c2cb03022 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,193 | py | # 2017.08.29 21:46:49 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/components/CalendarComponent.py
from debug_utils import LOG_DEBUG
import BigWorld
from Event import Event, EventManager
from gui.Scaleform.daapi.view.meta.CalendarMeta import CalendarMeta
class Calendar... | [
"info@webium.sk"
] | info@webium.sk |
9461eef63e4da2652e875cd5b3f59a30f042a584 | b554dbc85ca470c4598d412ff34f516a8ab324dc | /azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_scale_set_py3.py | 1db294839a1ba61549769cd0b97f6bbb0b5bbcc8 | [
"MIT"
] | permissive | bgsky/azure-sdk-for-python | 62bd7b12b0b407690707cbaf6ad4322ed58d1d3b | ec18d0b25be10fddbde416b901b905dfb0896430 | refs/heads/master | 2021-04-12T01:59:34.293330 | 2018-11-27T21:57:19 | 2018-11-27T21:57:19 | 125,912,205 | 0 | 0 | MIT | 2018-03-19T19:50:37 | 2018-03-19T19:50:37 | null | UTF-8 | Python | false | false | 5,519 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
1d3fe4cf1c880b8a628afd2b1e092450fb946243 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0236.0_Lowest_Common_Ancestor_of_a_Binary_Tree.py | dd4df406dc9baf8ebc67905db08cce531e2aaf01 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | '''
DFS
Runtime: 114 ms, faster than 46.58% of Python3 online submissions for Lowest Common Ancestor of a Binary Tree.
Memory Usage: 26.3 MB, less than 30.85% of Python3 online submissions for Lowest Common Ancestor of a Binary Tree.
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x... | [
"838255715@qq.com"
] | 838255715@qq.com |
7a15d2971289ce0096ffa5f055a850c83a0882cc | 55e21abf0b4bd5daa0b0f9a5fe6eae3abd0d5f69 | /redgo/tests/sgf_parser/sgf_grammar_test.py | bf749ef92bba9258c4ef68445d73c3866ab8d886 | [] | no_license | gcaaa31928/RedGo | 8b3efc610870aabfbcbee82046cc57e773336b98 | d42ea65ce925006c4bbd234213e94a779c01fdee | refs/heads/master | 2021-01-12T01:12:51.446644 | 2017-01-20T11:03:36 | 2017-01-20T11:03:36 | 78,358,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,247 | py | """Tests for sgf_grammar.py."""
import unittest
from redgo.sgf_parser import sgf_grammar
class SgfGrammarTestCase(unittest.TestCase):
def test_is_valid_property_identifier(tc):
ivpi = sgf_grammar.is_valid_property_identifier
tc.assertIs(ivpi(b"B"), True)
tc.assertIs(ivpi(b"PB"), True)
... | [
"gcaaa31928@gmail.com"
] | gcaaa31928@gmail.com |
6376fb9392d11160868a6f7f6fcd88553812000f | c1a7e00efbf7ebb2a60063c62eb2642631a49fd8 | /backend/src/passwordreset/admin.py | f7e0157a57cddc8951fc543b9e6532b644466ad1 | [] | no_license | rajesh241/GandhiCollectedWorks | a8557c3367a69be9e13606cef0bb74d11e8bc747 | efb68310a1362791e4cda09e7bb54ae91e407db3 | refs/heads/master | 2023-01-21T10:19:19.465420 | 2021-02-21T11:10:33 | 2021-02-21T11:10:33 | 194,344,659 | 2 | 0 | null | 2023-01-07T15:00:15 | 2019-06-28T23:40:41 | HTML | UTF-8 | Python | false | false | 299 | py | """ contains basic admin views for MultiToken """
from django.contrib import admin
from passwordreset.models import ResetPasswordToken
@admin.register(ResetPasswordToken)
class ResetPasswordTokenAdmin(admin.ModelAdmin):
list_display = ('user', 'key', 'created_at', 'ip_address', 'user_agent')
| [
"togoli@gmail.com"
] | togoli@gmail.com |
79c186e80eb2eee32c1ac2621e0123201dd4c013 | d0510d14958c0881eb8ac6266f87a183513062f0 | /peas/plotting/create_plots.py | 7caab92e33283597dd9019a13c941c0eed798aa8 | [
"Apache-2.0"
] | permissive | 13thProgression/peas-blockchain | 382095f5dc99513e9f79b01209414439d6ab99f4 | 8e058cbfe0c1ab73f7c1ec41bedb39071c63141c | refs/heads/main | 2023-08-22T10:51:57.731419 | 2021-10-13T00:55:41 | 2021-10-13T00:55:41 | 411,798,736 | 0 | 1 | Apache-2.0 | 2021-10-13T00:55:42 | 2021-09-29T19:08:40 | null | UTF-8 | Python | false | false | 11,355 | py | import logging
from datetime import datetime
from pathlib import Path
from secrets import token_bytes
from typing import List, Optional, Tuple
from blspy import AugSchemeMPL, G1Element, PrivateKey
from chiapos import DiskPlotter
from peas.daemon.keychain_proxy import KeychainProxy, connect_to_keychain_and_validate, w... | [
"jincao@126.com"
] | jincao@126.com |
01b29bd4c0ab79ad15650e94fa06bb276c2daa04 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5752104073297920_0/Python/festony/2014_r1A_C.py | 6c2ad6f11d19adb3199ff6afe0482c43aab22da6 | [] | 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,432 | py | '''
CodeJam Practice
Created on 2012-12-20
@author: festony
'''
from cj_lib import *
from properties import *
import math
import fractions
#curr_file_name = 'C-large'
curr_file_name = 'C-small-attempt1'
#curr_file_name = 'test'
# map(int, input_lines.pop(0).split(' '))
def input_dividing_fun... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
009e681b99ae5412a43a6b8aaa5ec64851a1afb1 | 7030259044f2afd4164f2f0507bdb9f091708067 | /project/settings/dev.py | f5a58a8568aa08a174cd82beca88bf9f92851863 | [] | no_license | m2candre/django-vue-template | f64fa5c28e08abeab7f10dcb2d3a93132d5a969a | 79517dbcaf740f07bad6fc19a18ba36e1e9fdd24 | refs/heads/master | 2020-03-25T23:35:29.759950 | 2018-08-10T06:19:21 | 2018-08-10T06:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,016 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
8d8aff77d83973f585f201fd0852388ae2b83750 | 5077fc5d82caa3b3ed5ce0e062bfe75cd4037ebc | /杂项/豆瓣2.0.py | ca3069d5209891cdea35ff7b96a964dff22a719e | [] | no_license | asswecanfat/git_place | ee10e1057d8307d3c72f57291b5bcb6d0579017e | 244ff0de11ffbe1aa9f20308e43af39486507f6f | refs/heads/master | 2021-07-18T23:06:14.324164 | 2020-09-02T12:15:27 | 2020-09-02T12:15:27 | 210,833,462 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | import requests
from bs4 import BeautifulSoup
import re
class Douban_login:
def login(self):
def post_data(data):#发送data并判断是否登陆成功
reponse = s.post(url, data = data, headers = headers)
if str(reponse.url) == final_url:
print('登陆成功!')
else:
... | [
"1024847824@qq.com"
] | 1024847824@qq.com |
998b1ddc40d9341734d6d53772d4c1c0015de1a3 | 876de904572c611b8cbad21f50877cdc812f2946 | /Leetcode/103. 二叉树的锯齿形层次遍历.py | 77492d7c29f409cbabe69df893d7f7c2079e571c | [
"MIT"
] | permissive | QDylan/Learning- | 66a33de0e15f26672fb63c0b393866721def27ae | f09e0aa3de081883b4a7ebfe4d31b5f86f24b64f | refs/heads/master | 2023-02-08T02:34:26.616116 | 2020-12-25T05:02:32 | 2020-12-25T05:02:32 | 263,805,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # -*- coding: utf-8 -*-
"""
@Time : 2020/7/14 8:28
@Author : QDY
@FileName: 103. 二叉树的锯齿形层次遍历.py
给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。
例如:
给定二叉树 [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
返回锯齿形层次遍历如下:
[
[3],
[20,9]... | [
"qdy960411@outlook.com"
] | qdy960411@outlook.com |
4ee9494f0c45ab6a761d51a2fd97c8ffaa0268e9 | 168556624401cd884fe0bfdac5a312adf51286a1 | /CS1430/homework4_sceneclassification-Enmin/code/create_results_webpage.py | 5c57e681a7d8cba065ea34346d769b5d152bf014 | [] | no_license | Enmin/Coursework | f39dc7b54a07b901491fbd809187fd54e96fa5a4 | a17d216c37e70a8073602389924af10019cfe7de | refs/heads/master | 2021-12-28T02:53:15.949547 | 2021-12-21T22:45:19 | 2021-12-21T22:45:19 | 179,909,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,869 | py | import matplotlib.pyplot as plt
import numpy as np
import warnings
import skimage
import glob
import os
from skimage import io
# Skimage gives us some lossy conversion errors that we really don't care about
# so we suppress them
warnings.filterwarnings('ignore', '', UserWarning)
def create_results_webpage(train_imag... | [
"zhouem14@gmail.com"
] | zhouem14@gmail.com |
306a3bd19cae6afd4c07662217dfa4233cc55817 | 4e808ecca7a94a70a63c59b4c91a15cd61bada6e | /natuurpunt_imp_members/__init__.py | aa961a1fb03e95eeccdde06ef8b561394c9cab51 | [] | no_license | smart-solution/natuurpunt-crm | 79b98cfc8c69027dc82afa3779b65616141e6779 | 0bd247e78c01e79ec54b90c0d0bcaca38742f04d | refs/heads/master | 2021-05-22T05:43:42.913854 | 2020-12-02T08:06:05 | 2020-12-02T08:06:05 | 39,186,027 | 0 | 0 | null | 2020-12-02T08:06:06 | 2015-07-16T08:36:27 | Python | UTF-8 | Python | false | false | 228 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
#
##############################################################################
import natuurpunt_imp_members
| [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
221069477e0d8b653578b817b9402d37916c81ea | 2e5dd9e5c634c1c2163b96a3607f9806a9598d39 | /rastervision2/pytorch_learner/semantic_segmentation_learner.py | 38fec3f11bd120f09443b73f6423fae3662d50e7 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | jpolchlo/raster-vision | 8fc60c8bfa2d6319810c3414606400abd63ff633 | 8aa9601d168de2c6bbc00d7f5ba2b70f1d5f7f13 | refs/heads/master | 2022-10-29T07:39:15.551708 | 2020-04-28T19:20:42 | 2020-04-28T19:20:42 | 259,924,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,656 | py | import warnings
warnings.filterwarnings('ignore') # noqa
from os.path import join, isdir, basename
import logging
import glob
import numpy as np
import matplotlib
matplotlib.use('Agg') # noqa
import torch
from torch.utils.data import Dataset, ConcatDataset
import torch.nn.functional as F
from torchvision import mode... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
16e691f5d9996ec589acc9303e1a1b44345a49f2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03209/s412514584.py | 8a91d7202b2f680aa7cfc95494723a5132f74cba | [] | 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 | 1,472 | py | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
from itertools import permutations, accumulate, combinations, combinations_with_replacement
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right, insort_left, insort_right
from copy imp... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
807db398dd1cd2e6f9f343554b314b6cf2edaaa3 | 21bbc3fbeb7a1616dbd6993b66dc44d9b30df3e7 | /PycharmProjects/samp_proj1/day_201118/assign20_4.py | ae6872a76db98685e7dd0950125cf38c9062df25 | [] | no_license | PoornimaDevii/python_training | 6124640608d8bf14289ae61b2b28e0db3b473b6f | 42b535590a6a244a91bd48b4451b74a29c1aaa80 | refs/heads/master | 2020-04-05T19:55:49.723114 | 2018-12-04T11:49:59 | 2018-12-04T11:49:59 | 157,157,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py |
# see expandtabs()
def gen_f(fname):
with open(fname) as file:
file_lines = file.readlines()
for each in file_lines:
if each == '\n':
a = each.strip()
yield a
j = 0
for i in gen_f('/home/cisco/PycharmProjects/samp_proj1/day_201118/para.txt'):
... | [
"poornimadevi.rama@gmail.com"
] | poornimadevi.rama@gmail.com |
8495a3c6af74d2c3e28bea856fdf2fc0cbc300d6 | 50914176887f9f21a3489a9407195ba14831354c | /insert_delete_get_random.py | 7d4822ccfec6abae0608b190b89b3b2f2688234c | [] | no_license | nkukarl/leetcode | e8cfc2a31e64b68222ad7af631277f1f66d277bc | b1dbe37e8ca1c88714f91643085625ccced76e07 | refs/heads/master | 2021-01-10T05:42:04.022807 | 2018-02-24T03:55:24 | 2018-02-24T03:55:24 | 43,725,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | import random
class RandomizedSet(object):
def __init__(self):
# Use self.vals to store all the elements
self.vals = []
# Use element:index as key:value pairs to store position info
self.pos = {}
def insert(self, val):
"""
Inserts a value to the set.
R... | [
"kai.wang.nankai@gmail.com"
] | kai.wang.nankai@gmail.com |
9ab7d64d30b2d113f53f28daec9949ecff89d635 | 60f5b2e7916bfb2686f5e0da2a5d9031a097ce05 | /test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDevicesInfoInDTO.py | 651c76e969fba7bc6266b6f6f356c18de0700aae | [
"BSD-3-Clause"
] | permissive | SuYai/LiteOS_Lab | 65f1a73026331f2a78567f07955e43ee82df265f | 3c9a579cd17d730e21814efc15076351a365e5f8 | refs/heads/iot_link | 2020-11-28T18:39:02.989946 | 2020-03-02T02:09:51 | 2020-03-02T02:09:51 | 229,894,455 | 1 | 0 | BSD-3-Clause | 2020-03-05T07:49:17 | 2019-12-24T07:32:24 | C | UTF-8 | Python | false | false | 498 | py | class QueryDevicesInfoInDTO(object):
def __init__(self):
self.deviceId = None
self.select = None
self.appId = None
def getDeviceId(self):
return self.deviceId
def setDeviceId(self, deviceId):
self.deviceId = deviceId
def getSelect(self):
return self.se... | [
"xu_liqun@hoperun.com"
] | xu_liqun@hoperun.com |
1488329995fbcb36ea381a45fa7fe9f6cb83e31d | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /count_the_smiley_faces.py | d6531cdadb8fdc7555b1e23aa72d792f0cf282e4 | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #Count the smiley faces! kata
#https://www.codewars.com/kata/583203e6eb35d7980400002a
def count_smileys(arr):
total = 0
for face in arr:
template = [[':',';'], ['-','~'], [')','D']]
if len(face) == 2:
template = template[0::2]
elif len(face) != 3:
continue
... | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
157b8295a211d8eb2ee9ad809fd14457e720b6fe | 6c151b3952a0c84765b78d82f2db64de92dcbb71 | /tests/test_save_multiple.py | 7a856cb6ed8fd387768c90d677fb147f60779b1d | [
"MIT"
] | permissive | SmirkCao/jupytext | 1e02daf54e24f600bef2ddd4f4d2b91f1c11aa79 | 3d8c5e8bffe35289dd46df04cd3529f0b8716383 | refs/heads/master | 2020-08-10T20:17:31.462179 | 2019-09-29T07:56:11 | 2019-09-29T07:56:11 | 214,413,393 | 1 | 0 | MIT | 2019-10-11T10:58:02 | 2019-10-11T10:58:02 | null | UTF-8 | Python | false | false | 3,510 | py | import os
import pytest
from nbformat.v4.nbbase import new_notebook
from nbformat.validator import NotebookValidationError
from tornado.web import HTTPError
import jupytext
from jupytext.contentsmanager import TextFileContentsManager
from jupytext.compare import compare_notebooks
from .utils import list_notebooks
@py... | [
"marc.wouts@gmail.com"
] | marc.wouts@gmail.com |
06c481a7302a0a6b4508ee4f023660450e8bcba8 | 63648b8d970c2739f9edc49c743fe55e8732f370 | /TrainingGym/tools/contributed/sumopy/coremodules/demand/virtualpop_wxgui.py | 67f65b6a6456ae69356a9cbd1f6cbf79a8f29e26 | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GPL-2.0-or-later",
"EPL-2.0",
"MIT"
] | permissive | Sahmwell/G15_Capstone | a0038b047fe6ba2fc4538137cb038ee1e1236463 | 6d2944a6d472e82fe01b1a9bf28a8ae153abcb77 | refs/heads/master | 2023-04-14T03:06:46.876134 | 2021-04-09T03:43:48 | 2021-04-09T03:43:48 | 310,671,914 | 5 | 1 | MIT | 2021-04-09T03:43:49 | 2020-11-06T18:09:52 | Python | UTF-8 | Python | false | false | 13,982 | py | # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2016-2020 German Aerospace Center (DLR) and others.
# SUMOPy module
# Copyright (C) 2012-2017 University of Bologna - DICAM
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public ... | [
"samuelandersonsss@gmail.com"
] | samuelandersonsss@gmail.com |
079f18d1faa74d780d07da79b90885ac6a046b56 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sentry/2016/4/apikey.py | 6815b0fec307ab6cbbaf52e803d90027c59c261b | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 3,384 | py | """
sentry.models.apikey
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
import six
from bitfield import BitField
from django.db import models
from django.utils imp... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
07f0aff0ee04c49fe79e03dbf6a3da55ffd35cd2 | 7d096568677660790479d87c22b47aae838ef96b | /examples/RFSG/RFSGGettingStartedIQDevice.py | 784cee721d32221af1028ea131db6d96d4acdb74 | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 4,025 | py | import clr
import sys
import time
import os
import argparse
import csv
import numpy as np
# Argparse section
parser = argparse.ArgumentParser()
parser.add_argument('--resource', \
help="enter instrument resource name")
parser.add_argument('--trigger', default="none", \
help="enable trigger on requested termin... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
6fc1c089abc9dba76e6b8a4df05edc5f6e2817f3 | a12bd9ee16dd864756829f2ff98f9e7ca59e322a | /07. raspberrypi/python/objectdetection-ex/tf/examples/obj-detect-api-ex/ex02.py | aa6248d3e51ee81ca5b24c2d31758f7650e2a698 | [] | no_license | hongjy127/TIL | 0bda9250f850a21dc27597a8b6288cf7ecb9e470 | a1760aba50bb3b77ab6576f5b5dcb16f0d9f5c5a | refs/heads/master | 2023-06-17T17:04:21.873930 | 2021-07-18T07:54:26 | 2021-07-18T07:54:26 | 325,415,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import cv2
from video import Video
from objdetect import ObjDetectApi
import time
PATH_TO_LABELS = 'data/mscoco_label_map.pbtxt'
MODEL_NAME = 'ssd_mobilenet_v1_coco_2017_11_17'
api = ObjDetectApi(MODEL_NAME, PATH_TO_LABELS)
def detect(frame):
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
# output_dict를 클... | [
"hhhong127@gmail.com"
] | hhhong127@gmail.com |
4c4ee08f8d7ff033d096bc6f764a9a81fd99e6ce | f425902cfa5dba2058b0885ffa103f7156b6be08 | /supervised_learning/0x0A-object_detection/5-yolo.py | 53410b498a3dbc4ae2422f5c29928baaebc8730b | [] | no_license | PilarPinto/holbertonschool-machine_learning | 2a23af14c851bd3e5d1926e644525bf0ab45df84 | 74213384b0998f65e123adc146ea5e91c4d77b37 | refs/heads/master | 2022-12-22T16:29:03.960474 | 2020-10-03T22:47:51 | 2020-10-03T22:47:51 | 279,387,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,488 | py | #!/usr/bin/env python3
'''
algorithm to perform object detection
File in YOLO dataset
'''
import tensorflow.keras as K
import numpy as np
import glob
import cv2
class Yolo:
'''
Initialize the class YOLO
'''
def __init__(self, model_path, classes_path, class_t, nms_t, anchors):
'''uses the Yolo... | [
"piapintoch@unal.edu.co"
] | piapintoch@unal.edu.co |
88895b7e721bf818a7dc07867690fd85b1bb77e8 | 6eea60bcbf206dafc5fe578b996267ce2bc9ae6e | /UVA/11953 - Battleships.py | 0d6e814baa4fed1595d51143f5b702dbd8328d1f | [] | no_license | SueAli/cs-problems | 491fef79f3e352d7712cd622d3b80ec15d38642b | b321116d135f868d88bd849b5ea7172feb74fb4c | refs/heads/master | 2023-08-31T10:46:30.374394 | 2023-08-24T20:14:04 | 2023-08-24T20:14:04 | 95,930,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # Time Complexity is O( n * n )
# Space Complexity is O( n * n )
dir_ = [(0,-1),(0,1),(-1,0),(1,0)]
def dfsFloodFill(i,j,grid, x_cnt):
if (i <0 or j <0
) or (i == len(grid)
or j == len(grid[0])
or grid[i][j]=='.' or
grid[i][j] == '#' )... | [
"souad.hassanien@gmail.com"
] | souad.hassanien@gmail.com |
63ef341c72185f123495f264333a53ed7e75ae37 | ef1989ac573384c32659ac21303293abee8a4e22 | /2020/3try/10972.py | 8215328977a502a57c6938deddbaef3d76c3bc93 | [] | no_license | Algorithm-P0/meanjung | f3605fd4e515d61d3aeedf420932a029b6037f00 | 028906eb7275485a5e739c10b8dda85dff63e341 | refs/heads/master | 2023-06-05T18:52:16.708158 | 2021-06-24T07:41:12 | 2021-06-24T07:41:12 | 262,729,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | # next permutation 구현하기 | [
"meanjunghong@naver.com"
] | meanjunghong@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.